ID:262909
 
Code:
mob
Move()
if(src.cansummon == 1 && src.HP <= 0 && src.Deadis == 1)
return 1


Problem description:well... well... i create the cansummon to make a time(5 secs) for when mob dies, a nemesis can revive him, but as zombie.When i log in the game, i cant move, whats wrong?

deathcheck code:
mob
var
Strength
Exp_Give
gold_give
necromanx
cansummon = 0
summoned = 0
proc //Some new procs
Death(mob/M) //Named deathcheck, and when I put M in the coding for this proc, it will mean the mob (not src, but other mob)
if(src.type == /mob/Player) //If the mobs type is that of /mob/PC
PCDeath() //Then do the PCDeathCheck on it
else //Otherwise...
if(src.HP <= 0) //if its HP is less than or equal to 0...
usr.Exp += src.Exp_Give
s_damage(usr,src.Exp_Give,"white")
usr.gold += src.gold_give
usr.overlays = null
usr.LevelUp()
usr.CreateName()
usr.Custom += 1
var/tempo = src.icon
src.cansummon = 1
src.Deadis = 1
src.icon = 'skull.dmi'
sleep(10)
if(src.cansummon == 0)
src.icon = tempo
sleep(10)
if(src.cansummon == 0)
src.icon = tempo
sleep(10)
if(src.cansummon == 0)
src.icon = tempo
sleep(10)
if(src.cansummon == 0)
src.icon = tempo
sleep(10)
//lol
src.Deadis = 0
del(src)
PCDeath(mob/M)
if(src.HP <= 0)
world << "[src] died."
src.loc = locate(28,818,1) //Move it to the starting point
src.HP = MaxHP //Refill the PC's HP
src.overlays = null
src.CreateName()
//lol
usr.PK ++


No put usr in proc, ungh.
For boolean (false/true) vars, use if(var) or if(!var) for negative.
Also, return 0 cancels movement, return ..() allows it. Normally, it returns to 0 when there isn't an else statement. So add an else statement that return to ..().
In response to Mysame
Mysame wrote:
No put usr in proc, ungh.
For boolean (false/true) vars, use if(var) or if(!var) for negative.
Also, return 0 cancels movement, return ..() allows it. Normally, it returns to 0 when there isn't an else statement. So add an else statement that return to ..().

thanks

edit: just more one thing... whats the command for "popup"?
In response to Pharaoh Atem
That depends, what do you mean by popup?
In response to Loduwijk
Loduwijk wrote:
That depends, what do you mean by popup?

i used pop-up demo, now all ok