ID:266526
 
Whats the code for respawning monsters?If you know,please tell me!!
Thanks!

-Kappa the Imp
mob/monsters
New()
..()
spawn(rand(10))
LifeCycle()
return
I think that would work,but most likely not.
In response to Justin Sun
Well,is there a way?I tried that code,it doesn't work.Please,something else besides a Repop( ) code.
Thanks!

-Kappa the Imp
In response to Kappa the Imp
Well here is a way.
mob
var
startx
starty
startz
Monster
New()
src.startx=src.x
src.starty=src.y
src.startz=src.z

mob/proc/DeathCheck()//I am calling this when I mob dies
if(src.health<=0)
new/mob/Monster(locate(src.startx,src.starty,src.startz))
del(src)

Give that a shot.
In response to Super16
Thanks!=) I had to add in to the Deathcheck() proc if(istype(src,/mob/monsters)).Thanks alot Super16!

-Kappa the Imp