Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Code Gallery (https://forums.graalonline.com/forums/forumdisplay.php?f=179)
-   -   Very awesome staff "panel" (https://forums.graalonline.com/forums/showthread.php?t=134262776)

Crow 07-19-2011 07:23 PM

Quote:

Originally Posted by fatcat123 (Post 1659441)
I love this. :blush:

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.

fatcat123 07-21-2011 05:11 PM

Works like a charm. Thanks for posting this =), I've been growing my scripting experience off of it.:cool:

Emera 07-23-2011 10:48 PM

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.

fowlplay4 07-23-2011 10:59 PM

Quote:

Originally Posted by Emera (Post 1660021)
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.

fatcat123 07-23-2011 11:40 PM

Quote:

Originally Posted by fowlplay4 (Post 1660022)
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.

Crow 07-23-2011 11:43 PM

Quote:

Originally Posted by fatcat123 (Post 1660028)
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?

xAndrewx 07-24-2011 12:04 AM

Make sure the //#CLIENTSIDE at the top doesn't have a space after it

Crow 07-24-2011 12:16 AM

Quote:

Originally Posted by xAndrewx (Post 1660033)
Make sure the //#CLIENTSIDE at the top doesn't have a space after it

Right, listen to this man. Damn vBulletin code boxes :p

fatcat123 07-24-2011 02:16 AM

Quote:

Originally Posted by xAndrewx (Post 1660033)
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 :[..!pissed!

fatcat123 07-24-2011 05:45 PM

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.. "

Emera 07-24-2011 05:53 PM

Quote:

Originally Posted by fatcat123 (Post 1660148)
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...

fatcat123 07-24-2011 07:12 PM

Quote:

Originally Posted by Emera (Post 1660150)
Because you press W...

No. E scrolls/turns it on, "W" activates the weapon.

Emera 07-24-2011 07:26 PM

Quote:

No. E scrolls/turns it on, "W" activates the weapon.
Oh pardon me, I should have looked closer, sorry mate.

Crow 07-24-2011 08:29 PM

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?

fatcat123 07-25-2011 02:51 AM

Quote:

Originally Posted by Crow (Post 1660171)
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?


All times are GMT +2. The time now is 03:54 AM.

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