mob
verb
Attack(mob/M in oview(1))
set category="Taijutsu"
set name="Punch"
if(M in get_step(usr,dir))
if(!M)return
view(3)<<"[usr] attacks [M]"
M.health-=usr.strength
usr.deathcheck(M)
mob
proc/deathcheck(mob/M)
world<<"[src] : [M]"
if(M.health<=0)
if(M.Yen>=1&&M.client)
src<<"<b>You gained [M.Yen] Yen!</b>"
src.Yen+=M.Yen
src.exp+=M.exp
M.exp=M.exp/3
src.levelup()
else
if(!M.client)
src.exp+=M.exp
src<<"<b>You gain [M.expnext] exp!</b>"
src<<"<b>You killed [M]!</b>"
src.levelup()
del(M)
else
M.createcorpse()
sleep(10)
M << sound(null)
if(M.village=="Leaf")
M.loc = locate(/turf/leafspawn)
if(M.village=="Mist")
M.loc = locate(/turf/mistspawn)
if(M.village=="Sand")
M.loc = locate(/turf/sandspawn)
M.health=M.maxhealth
world<<"<u>News.</u>[M] was killed by [src]!"
M.finish=0
M.move=0
Problem description:
The person dying is not going to their spawn point. How can I fix this? and yes the turf is on the map.
And if that doesn't work, just use the coordinates
And also, text2path() is a lovely thing, those if()s can be easily replaced.