SphereCommunity
Help about scripting the item.. - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Help about scripting the item.. (/Thread-Help-about-scripting-the-item)



Help about scripting the item.. - serveradmin - 09-14-2017 06:17 AM

I want to make a robe which will allow PK's to come inside the guard zone without getting killed by the guards. (only players may kill)

I had 2 ideas about scripting, but my mind couldn't figure how to make it.

1. Robe can give a "tag" and on=@equip the guard will be removed before hitting our murderer guy.

2. There might be an event on=@equip with the robe, which will make the guards passive to the wearer.

Should I focus on scripting of the char->guard?, or the event?, or the robe?, or all?
I know my robe needs to give some tag or event to the wearer, but I couldn't reach to the final point and lack your help.

Best wishes


RE: Help about scripting the item.. - x77x - 09-14-2017 08:26 AM

save the kills...

@equip
tag.killsX=<SRC.KILLS>
src.kills=0

@unequip
SRC.KILLS=<tag.killsX>


=P


RE: Help about scripting the item.. - serveradmin - 09-14-2017 07:44 PM

I'll try that when I get home. Thank you..


RE: Help about scripting the item.. - Criminal - 09-15-2017 12:44 AM

http://wiki.spherecommunity.net/index.php?title=@CallGuards


RE: Help about scripting the item.. - serveradmin - 09-15-2017 02:22 AM

Thank you Criminal