mob/Player/Logout()
..()
battleend()
thanks
ID:171626
Aug 29 2004, 1:40 pm
|
|
when people log out i need the battle to end.. but that involves reading vars containing turfs in the world and client stuff and what not.. so i got a run time error when i call the battle end proc at logout. is there anyway around this? i have it written like this:
mob/Player/Logout() thanks |
Aug 29 2004, 1:42 pm
|
|
Do it at mob/Login, you cant do it at mob logout because the mob logs out before the process is carried out.
|
In response to DeathAwaitsU
|
|
problem with that is if a player logs out during battle their battle spot will be sealed until they logged in..
|
In response to Siefer
|
|
explain what you mean in more detail.
|
hmm i got this problem before. not the same thing as you but sumthing similar. so i did spawn(10) then i called the procs... o i remeber i had problem with my saving and then deleting the usr when they logout. mite work im not really sure what u mean tho =/
|
In response to DeathAwaitsU
|
|
what i mean is when a player enters a battle he is moved to a battle location, the battle location is then locked so that no other players can move to the same battle location.. if the person logs out in battle then the battle location is not unlocked. if i had the procs called at login the battle location would not be unlocked until that player logged back in. also if you use spawn the problem persists, but there are no runtime errors, so its pointless. if there is no way to handle this stuff before the person logs out then maybe some modifications should be made to the built in Logout()?...
thx anyway |
In response to Siefer
|
|
Turn based im guessing?
Set a var lets call it inbattle set the var to 1 when youre in battle and if you die or defeat the monster set it back to zero, now if you log out when the var is 1 do it what you want it to do at the login I Hope that helps.. -Goz |
In response to Goz
|
|
His problem is that when the inbattle var is 1, people cant access that certain battle place. The var would remain unchanged until the person relogs, which could be days.
|