ID:827275
 
Code:
                    switch(input(usr,"Who will you fight?","Arrancar Battles") in deliverynpcs+list("Cancel"))
if("Gantenbainne Mosqueda")
if(usr.level>=50&&ingantenbainnefight==""&&src in oview(usr))
var/location=usr.loc
switch(alert(usr,"Would you like to fight Gantenbainne?",,"Yes","No"))
if("Yes")
if(usr.inhouse||usr.knockedout||usr.died)
usr.popup2=0
return
if(ingantenbainnefight==""&&location==usr.loc)
for(var/mob/enemies/DeliveryBattle/Gantenbainne/I in world) del(I)
ingantenbainnefight="[usr.name]"
usr.loc=locate(66,52,14)
usr.popup2=0
usr.beingfollowed=0

var/mob/enemies/DeliveryBattle/Gantenbainne/K=new()
K.loc=locate(83,37,14)
if(K in view(7,usr))
espadaview=1
else
espadaview=0
K.loc=locate(83,37,14)


Problem description:

I am trying to make it so when the usr goes off screen, the mob is sent back to his original spot (83,37,14). But nothing seems to do the trick for me. Any help would be appreciated
How about making a tur that teleports usr to that location the seting it on the map how you desired example:
turf/respawn
Enter(mob/M)
M.loc=locate(83,37,14)
//please bear with my im doing this from my phone