ID:174900
 
I need to see if M logs out. If he does, the actions after the if statement need to take affect..
I can't find out where to start with it...
if(M.logout) //this logs out my character...
..//these need to take affect if he logs out..

Anyone can help me, it'd be appreciated.

-Camaro
Anyone can help me, it'd be appreciated.

Check out the mob/Logout() proc. It gets called when a player logs out which is what you want I think.
In response to Theodis
Theodis wrote:
Anyone can help me, it'd be appreciated.

Check out the mob/Logout() proc. It gets called when a player logs out which is what you want I think.


Don't forget that usr is invalid there. =P
mob/Logout()
//do stuff here
In response to Unknown Person
yah know, I never knew that. I've learnt more things looking at the newbie forum than I ever have chatting to other byonders face-to-face.