Login()
if(usr.Dead == 1)
checkhost()
usr.frozen = 0
usr << sound('music/dq6-flute.mid',1)
world << "<B><font color = blue>The dead [src] has entered the world.</font color></B>"
usr.loc = locate(62,9,3)
return
if(usr.Dead == 0)
usr << sound(usr.Sound,1)
checkhost()
usr.loc = locate(14,26,2)
world << "<B><font color = blue>[src] has entered the world.</font color></B>"
..()
Problem description:
When someone kicks the bucket their dead variable gets set to one and their icon turns into a coffin. I added these if statements in the login to check if they're dead or alive upon login. Now, I know the previous codes outside here work, but the locate code here doesn’t. When the dead people log in their on the battle ground, not moved, but unfrozen and their music changed to the flute song.
so I know the problem lies within the locate verb
but I don’t know how to fix the locate thingy. If anyone could help it's be muchly appreciated.
Another problem is those bogus ifs. if(usr.Dead==1) should be if(Dead), and although if(!Dead) beats if(usr.Dead==0) you'd be better off using else there.
Lummox JR