ID:178424
 
well i got this deathcheck thing and when a usr dies he's sent back to to begining place , but i want it so when Monsters Die they get del'd , everytime i try to fix it the usr get del to , so how can i make it so it only del's Monster's when they die and send Users back to begining place when they die.Please Reply! Thanks
Try this,
var
const
BEGINX = 1
BEGINY = 1
BEGINZ = 1

mob/proc/DeathCheck(mob/M as mob)
if(M.client)
src.Move(locate(BEGINX,BEGINY,BEGINZ))
else
del(M)
Turles9000 wrote:
well i got this deathcheck thing and when a usr dies he's sent back to to begining place , but i want it so when Monsters Die they get del'd , everytime i try to fix it the usr get del to , so how can i make it so it only del's Monster's when they die and send Users back to begining place when they die.Please Reply! Thanks

I did this there might be an easiear way but you might want to try creating a second proc that deals with players deaths seperatly see the code below:

proc/DeathCheck(mob/M)
if(src.type == /mob/player)
PlayerDeath()
else
if(src.hp <= 0)
view(src) << "You see [src] fall into a pool of blood right infront of you."
ExpGive()
del src
proc/PlayerDeath(mob/M)
if(src.hp <= 0)
view(src) << "You see [src] fall into pool of blood right infront of you."
src << "You just died, you have lost a level and everything in your inventory!"
src.loc = locate(1,1,1)
src.hp = max_hp
src.clvl--
src.texp = src.texp / 2
src.tnl = src.texp / 2
ExpGive()

This is the copy and paste out of my WIP so it look funny.