Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 08-09-2006, 12:34 AM
Omini Omini is offline
Millenium Owner
Join Date: Feb 2006
Location: N.Ireland
Posts: 293
Omini is on a distinguished road
Send a message via AIM to Omini Send a message via MSN to Omini Send a message via Yahoo to Omini
I hope you want to turn it on somewhere else in the script. You forgot the # for Clientside ( //#CLIENTSIDE ), and forgot to close the { bracket for turning it on. Also, I dont think scripts can go back if they call a function (if they call a function, that function needs to be below it). And the part

PHP Code:
function onKeyPressed(code,key) {
if (
keycode==0x75) {//F9 
the if (keycode == 0x75) { }

keycode is the code given within the onKeyPressed params, so it would either be

PHP Code:
function onKeyPressed(keycode,key) {
if (
keycode==0x75) { 
or

PHP Code:
function onKeyPressed(code,key) {
if (
code==0x75) { 
Also I don't see why this is entitled 'Gui Scripting', since so far you havn't mentioned anything about GUIs--but rather, GS2 Scripting.
__________________



Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:19 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.