ID:179446
 
Logout() has never worked for me. I put things in it and nothing happens. I could do something such as:

mob/Logout()
world << "[usr] left."

and it doesn't work! Please help! :(
Try this:
mob
Logout()
world << "[usr] has left! He says: Merry Christmas to all, and to all a good night!"
del(src)
..()//I think this is what you were missing


-Sariat

PS, don't copy and paste this, the indention is wrong :)
Well, Logout doesn't have a usr so you can try:

mob/Logout()
world<<"[src] has left!"//See src.
WizDragon wrote:
Logout() has never worked for me. I put things in it and nothing happens. I could do something such as:

mob/Logout()
world << "[usr] left."

and it doesn't work! Please help! :(

It's called after the user disconnects, so the user himself will not see the message. Other people in the world should, though.

In general, the server has no way of sending a message to the user just before he disconnects, since it might happen abruptly (ie- a cut connection). We could probably provide a provision to do so on manual disconnects (through the Quit or Logout options), though. I can't remember if there is a way to do that right now or not.