ID:262623
 
Code:
    proc  
DeathCheck(mob/M)
if(src.powerlevel <= 0)
world << "<font color=red><B><b><u> Event: [M] has killed [src]!"
src.dead =1
src.Die_Relocate()
src.grav = 0

Relocate()
src.loc = locate(100,67,1)

Die_Relocate()
src.loc = locate(67,6,3)
if(src.race=="Saiyan")
src.maxpowerlevel+=src.maxpowerlevel/10
if(src.race=="Cell")
src.maxpowerlevel+=src.maxpowerlevel/20


Problem description:

ok what happens is when i die i go 2 the right place but when i try and move it keeps saying i have died plz can some 1 help me
First of all, write your own code.
Secondly, close your tags.
Thirdly, post your movement proc.
In response to Elation
kk heres what i think u want
client/Move()
if(mob.speeding <= 0)
mob.speeding = 1
..()
sleep(mob.rundelay)
mob.speeding = 0
else
return
tell me if thats not it
In response to Elation
Elation wrote:
First of all, write your own code.
Secondly, close your tags.
Thirdly, post your movement proc.

Don't need the movement proc, he didn't make it to where the player's powerlevel went above 0 when the player died, so as to prevent constant death.

National Guardsmen wrote:
else
return

Replace return with ..()
No Return Productions wrote:
ok what happens is when i die i go 2 the right place but when i try and move it keeps saying i have died plz can some 1 help me

It keeps saying that because you never reset the powerlevel. It's still 0 or less, which causes you to die all over again the next time DeathCheck() is called.

Lummox JR
In response to Lummox JR
Lummox JR wrote:
No Return Productions wrote:
ok what happens is when i die i go 2 the right place but when i try and move it keeps saying i have died plz can some 1 help me

It keeps saying that because you never reset the powerlevel. It's still 0 or less, which causes you to die all over again the next time DeathCheck() is called.

Lummox JR

You basically restated what I said. >_>