mob
monsters
Bug
icon = 'Icons.dmi'
icon_state = "Frozen"
origloc = "10,12,1" //The original location of the mob
respawn = 100 //Respawns after 10 seconds
-----------------------------------------
die(mob/M)
if(src.hp<=0)
blbalbalablablba
src.loc = null
sleep(src.respawn) //Waits respawn amount
src.loc = origloc // Moves the monsters back to his original location
Problem description: Doesn't respawn back
...
So, in effect, here's what you're doing:
src.loc = "10,12,1"
Wrong! loc is not a text string. It's an atom. Use locate() (or, if you're quite insistant on using a text string, download p_utility and use the locate_text() procedure) to get the turf at (10,12,1) and go there.