SphereCommunity

Full Version: Script help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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
Pages: 1 2
Reference URL's