ID:149415
 
when you talk to somebody and then he warp you to a place and you have to kll something and he warp you back when you done
mob/var/killed = 0

mob/person
icon = 'person.dmi'
verb/Talk()
if(!src.killed)
src.loc = locate(1,2,1)//whatever location here.
else
src.killed = 0
src.loc = locate(1,1,1)//whatever location here

mob/verb/Attack(mob/monster/M in oview(1))
M.health -= 5
M.DeathCheck()
usr.killed = 1

mob/proc/DeathCheck(mob/M as mob)
if(M.health<= 0)
M.loc = locate(1,1,1)//whatever location here
M <<"You have been killed by [usr]!"
usr <<"You have killed [M]!"


-Kappa the Imp
In response to Kappa the Imp
Thanks