SphereCommunity
something wrong under @callguards - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: something wrong under @callguards (/Thread-something-wrong-under-callguards)



something wrong under @callguards - Rizz - 09-12-2014 03:19 AM

PHP Code:
ON=@CallGuards


ARGN1
=0
ARGN2
=0
RETURN 

If you call the guards, the guard will appear for 0.1 second, disappear and the REF1 will gain one kill.


RE: something wrong under @callguards - richm - 09-12-2014 06:20 AM

Where are you getting ref1 from?

I just added

ON=@CallGuards
RETURN 1

To my all player event and the guards still came anyway. In the sphere_speech.scp file under ON=*GUARDS* i added return 1 and it stopped the player actually saying "guards" at all. So they didnt appear - but this is obviously server wide.

I presume your adding an event to players, and when they have that event you dont want them to be able to call the guards? If it is a certain area that you dont want the guards to be called, such as a PVP arena or something, can you not just edit the region?


RE: something wrong under @callguards - Rizz - 09-12-2014 10:44 AM

I blocked the normal guards bcuz i decided to script new features with sphere_speech.
So actually i need to prevent the guards incoming.
I think this is a bug bcuz in the previous release this never happened.


RE: something wrong under @callguards - Ben - 09-13-2014 03:17 AM

try with RETURN 0... I think I may have found the issue...