Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 07-19-2011, 07:23 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by fatcat123 View Post
I love this.

Although, when I die, I cannot figure out why the black GUI disappears and all I see is the wording of the staff tool name in white font.
Graal destroys all GUI layer images upon (default) death. Since I don't care much in this case, I didn't add anything to "fix" this. Try adding these lines of code though:
PHP Code:
function onPlayerDies() {
  if (
this.toolOn)
    
DrawTool(true);

Just add it at the very bottom of the code. Should work.
__________________
Reply With Quote
  #17  
Old 07-21-2011, 05:11 PM
fatcat123 fatcat123 is offline
Levels Artist
fatcat123's Avatar
Join Date: Aug 2010
Location: Wisconsin
Posts: 70
fatcat123 is an unknown quantity at this point
Works like a charm. Thanks for posting this =), I've been growing my scripting experience off of it.
Reply With Quote
  #18  
Old 07-23-2011, 10:48 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
I tried to import this onto a server earlier today, and I have checked through the script many times but when I hit w or e or whatever it is, nothing happens.
__________________
Reply With Quote
  #19  
Old 07-23-2011, 10:59 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by Emera View Post
I tried to import this onto a server earlier today, and I have checked through the script many times but when I hit w or e or whatever it is, nothing happens.
Make sure it's added to you and that GraalControl has focus, you'll be able to move if it does.
__________________
Quote:
Reply With Quote
  #20  
Old 07-23-2011, 11:40 PM
fatcat123 fatcat123 is offline
Levels Artist
fatcat123's Avatar
Join Date: Aug 2010
Location: Wisconsin
Posts: 70
fatcat123 is an unknown quantity at this point
Quote:
Originally Posted by fowlplay4 View Post
Make sure it's added to you and that GraalControl has focus, you'll be able to move if it does.
It didn't work for me either when I first put it on :[
I had a scripter help me out, and after a while we got it to work.
Reply With Quote
  #21  
Old 07-23-2011, 11:43 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by fatcat123 View Post
It didn't work for me either when I first put it on :[
I had a scripter help me out, and after a while we got it to work.
That's strange. It should work right away. Mind posting any code differences?
__________________
Reply With Quote
  #22  
Old 07-24-2011, 12:04 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Make sure the //#CLIENTSIDE at the top doesn't have a space after it
__________________
Reply With Quote
  #23  
Old 07-24-2011, 12:16 AM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by xAndrewx View Post
Make sure the //#CLIENTSIDE at the top doesn't have a space after it
Right, listen to this man. Damn vBulletin code boxes
__________________
Reply With Quote
  #24  
Old 07-24-2011, 02:16 AM
fatcat123 fatcat123 is offline
Levels Artist
fatcat123's Avatar
Join Date: Aug 2010
Location: Wisconsin
Posts: 70
fatcat123 is an unknown quantity at this point
Quote:
Originally Posted by xAndrewx View Post
Make sure the //#CLIENTSIDE at the top doesn't have a space after it
Oh.. I feel stupid now because I had to have an actual scripter look at the script :[..
Reply With Quote
  #25  
Old 07-24-2011, 05:45 PM
fatcat123 fatcat123 is offline
Levels Artist
fatcat123's Avatar
Join Date: Aug 2010
Location: Wisconsin
Posts: 70
fatcat123 is an unknown quantity at this point
After fixing the //#CLIENTSIDE it won't scroll when press e. o_O?
" I had it working before, but I decided to replace my work and start over again.. "
Reply With Quote
  #26  
Old 07-24-2011, 05:53 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Quote:
Originally Posted by fatcat123 View Post
After fixing the //#CLIENTSIDE it won't scroll when press e. o_O?
" I had it working before, but I decided to replace my work and start over again.. "
Because you press W...
__________________
Reply With Quote
  #27  
Old 07-24-2011, 07:12 PM
fatcat123 fatcat123 is offline
Levels Artist
fatcat123's Avatar
Join Date: Aug 2010
Location: Wisconsin
Posts: 70
fatcat123 is an unknown quantity at this point
Quote:
Originally Posted by Emera View Post
Because you press W...
No. E scrolls/turns it on, "W" activates the weapon.
Reply With Quote
  #28  
Old 07-24-2011, 07:26 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Quote:
No. E scrolls/turns it on, "W" activates the weapon.
Oh pardon me, I should have looked closer, sorry mate.
__________________
Reply With Quote
  #29  
Old 07-24-2011, 08:29 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
It should work perfectly fine. Is there anything else mapped to E on the playerworld you're trying this on? Also, does GraalControl have focus?
__________________
Reply With Quote
  #30  
Old 07-25-2011, 02:51 AM
fatcat123 fatcat123 is offline
Levels Artist
fatcat123's Avatar
Join Date: Aug 2010
Location: Wisconsin
Posts: 70
fatcat123 is an unknown quantity at this point
Quote:
Originally Posted by Crow View Post
It should work perfectly fine. Is there anything else mapped to E on the playerworld you're trying this on? Also, does GraalControl have focus?
How do I give GraalControl focus?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 11:19 AM.


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