Script help - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Expired/Outdated Versions (/Forum-Expired-Outdated-Versions) +--- Forum: Sphere 51a Help (/Forum-Sphere-51a-Help) +--- Thread: Script help (/Thread-Script-help) Pages: 1 2 |
RE: Script help - jdchixin - 10-08-2013 12:57 PM it's wrong don't write <src.npc> if <src.findlayer(29).id>=0 //it's npc if rand(100)=1 src.kill //or src.hits=0 is dead src.effect xxxx src.sound xx return 1 elseif rand(20)=1 src.sleep //npc will sleep ,but i can't understand ,why let npc sleep. return 1 else src.effect=3,036b0 6,15,1 SRC.SOUND=snd_Spell_EXPLOSION endif else //else ,test player if rand(100)=1 src.suicide return 1 endif endif I hope this can help you |