SphereCommunity
Need Hlp With Script. Item Is Only Working If You're a GM and Not For Player - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Expired/Outdated Versions (/Forum-Expired-Outdated-Versions)
+--- Forum: Sphere 51a Help (/Forum-Sphere-51a-Help)
+--- Thread: Need Hlp With Script. Item Is Only Working If You're a GM and Not For Player (/Thread-Need-Hlp-With-Script-Item-Is-Only-Working-If-You-re-a-GM-and-Not-For-Player)



Need Hlp With Script. Item Is Only Working If You're a GM and Not For Player - Admin Drew - 06-27-2013 09:21 AM

Hi guys, I need some help with my ressurection ankh. The problem is that it will only ressurect you if you have GM turned on for some reason. If you are a regular player you get a sys message that says "Your Ghostly Hand Just Passes Through This Object" and the ankh won't ressurect you. Trying to figure out why it's only working properly for a gm and not a player. Do I have the type wrong or need some attribute added?
Thanks a bunch and here is the script-

[XXXX]
ID=1183
TYPE=18
NAME=Ressurection Stone
COLOR=447
ONTRIGGER=DCLICK
IF (<SRC.HITPOINTS> < 1)
SRC.SYSMESSAGE Live Again!
SRC.RESURRECT
else
SRC.SYSMESSAGE You Still Have Life In You!
endif

*Works for a Gm just not for a player*


RE: Need Hlp With Script. Item Is Only Working If You're a GM and Not For Player - RanXerox - 06-27-2013 10:06 AM

Try it with ONTRIGGER=CLICK


RE: Need Hlp With Script. Item Is Only Working If You're a GM and Not For Player - Admin Drew - 06-27-2013 03:19 PM

ONTRIGGER=CLICK makes it not work at all.. Anyone have a ressurection item script that you click on to ress that they can share? Thanks


RE: Need Hlp With Script. Item Is Only Working If You're a GM and Not For Player - Mulambo - 06-27-2013 05:44 PM

try TYPE=38 but I dont know if it will work


RE: Need Hlp With Script. Item Is Only Working If You're a GM and Not For Player - uo520 - 06-29-2013 07:29 PM

[XXXX]
ID=1183
TYPE=38 //t_shrine
NAME=Ressurection Stone
COLOR=447
ONTRIGGER=DCLICK
IF (<SRC.flags> &02)
SRC.SYSMESSAGE Live Again!
SRC.RESURRECT
else
SRC.SYSMESSAGE You Still Have Life In You!
endif

use the flags 02 to check while dead the best