mob
proc/UserDcheck(mob/M)
if(M.HP<=0)
if(istype(src,/mob/You/Player))
var/obj/Corpse/C = new(src.loc) // Create the corpse
for(var/obj/O in src.contents)
O.Move(C) // Loop through each item and put it in the fresh corpse
sleep(2)
M<<"You Have Died!"
M.gold -= M.gold
ID:268098
Mar 14 2004, 3:13 am (Edited on Mar 14 2004, 3:18 am)
|
|
In response to Ease
|
|
thanks ease
|
In response to Vash_616
|
|
mob But when i kill a monster the game over,reviving etc etc shows up for me and its not supposed to. |
In response to Vash_616
|
|
Show me how you call that procedure.
~Ease~ |
In response to Vash_616
|
|
mob I fixed the last problem,it had something to do with attacking anyways the monster wont delete when it dies,any help -_- |
In response to Vash_616
|
|
But how do you CALL it? That is what is going to affect it. What tells the game to run that proc?
~Ease~ |
In response to Ease
|
|
mob |
In response to Vash_616
|
|
Okay, first, change your "if(E.NPC==0)" to "if(!E.NPC)". Second, change your "if(istype(src,/mob/You/Player))" to "if(istype(E,/mob/You/Player))".
That SHOULD work. If not, change your (now) "if(istype(E,/mob/You/Player))" to "if(E.client)". ~Ease~ |
In response to Ease
|
|
that worked,thanks alot :)
|
~Ease~