Code:
mob
Logout()
world<<"<World: [src]([src.key]) has logged off..."
..()
world
New()
.=..()
spawn() BootCheck()
proc
BootCheck()
for(var/mob/M in world) if(M.client && M.client.inactivity>=300) {world<<"Naruto AI:([M]) has been kicked for being idle";M.Logout()}
sleep(300)
BootCheck()
Problem description:
hey i finally got my logout mob to work. but now there is another problem well a continued problem with my inactivity check it doesn't boot when i am inactive but the message pops up after i have logged out right above my logout message. Is there a reason why its not working. could be be because i didn't define something right >.>. Here are the two codes plz help and let me know what i did wrong.(had help but i need more). I was in Developer hot to with this but it has become more a a problem seein as tho i got the code to work even had alot of help from erve(sorry ifi spelled it wrong) but the code still isn't working.
ID:143718
![]() Jul 18 2007, 12:15 pm (Edited on Jul 18 2007, 12:26 pm)
|
|
QMarkReal wrote:
Instead of a so my coding should look like this mob Logout() del(src) world<<"World:[src]([src.key]) has logged off..." ..() proc BootCheck() for(var/mob/M in world) if(M.client && M.client.inactivity>=300) {world<<"AI:([M]) has been kicked for being idle";M.Logout()} spawn(300) BootCheck() or with its like spawn(300) BootCheck() right next to each other and not under. (sorry it took so long major storm had to shut down comp) |
mob |
oh ok so i need to add del b4 it i was wondering why it wasn't tellin me i logged out but thank u so much for this i've been going crazy for the last 3 or 4 days trying to get this 1 piece of code in ^_^
|
sleep(300)
you must want to use
spawn(300) BootCheck()
and you don't have del(src) in the Logout() proc to boot that person. You need to the delete the mob in order to remove them from the game.