![]() |
My First Code in the Gallery -spar
Umkay, this is a spar script and you would place the npc in the center of ur spar
commands: Focus = to turn on focus Focus off = to turn off focus Start = to start count down /In = to enter spar /out = to leave spar End = to stop the count down PHP Code:
u just have to replace the x and y coordinates |
A good start :)
I would just do something about that you can say /heal when you're inside the fighting area though :) |
Not a bad start. There is a bracket missing at the very end of the code, but I suspect maybe you accidently cut that off when you pasted the code?
In terms of improving scripting style/optimizing the script I'd suggest looking into switch statements maybe to avoid using so many if statements for checking the chat. ie. PHP Code:
PHP Code:
|
Why is it clientside?
|
Quote:
Quote:
|
You're aware that you can't edit your hearts clientside and once you say start, only YOU can see the message?
|
Quote:
|
Did you test it out with anyone? You may have seen the message but since it is clientside, the other person wouldn't see anything.
As Andrew said, hearts cannot be set clientside no matter what. Triggers are needed as only serverside can right to the variable. |
Quote:
|
the first enablepause() should be disablepause()
I've noticed that this is a script from graal.net converted into GS2 |
| All times are GMT +2. The time now is 08:21 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.