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
  #5  
Old 07-21-2013, 04:21 AM
baseman101 baseman101 is offline
Scripter
baseman101's Avatar
Join Date: Nov 2012
Location: Purcellville, VA
Posts: 76
baseman101 will become famous soon enough
Hey,

Thanks for your help! I was wondering if there was a function to make a variable, thanks for pointing it out. Cheers! I'll post the whole script in the code gallery when I'm done

Quote:
Originally Posted by fowlplay4 View Post
KeyPress can be shortened, unless you plan to changing it from the number keys:

PHP Code:
function onKeyPressed(keycodekeyname) {
  
temp.code keycode 49;
  if (
temp.code getTools().size()) {
    
selectToolName(temp.code);
  }
  else if (
keycode == 87) {
    
//Activate selected staff tool with w
    
triggerServer("gui"this.name"staffbar"this.staffCode);
  }

Yes, I had actually planned to change it in the future, but thanks for the snippet
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 07:37 AM.


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