• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

How execute function when players login in already player online?

aberick

New Member
Joined
Aug 10, 2011
Messages
35
Reaction score
1
I have one function that is used when i log my character, now...
How i execute a function when i exit my character with Battle and login angain?


Sorry for bad english..
 
hmm i see now, you mean you press exit while in battle and log back in immediatly so you didnt really logout
sorry i don't think theres a function for that, maybe try to find an alternative
 
You can check it server wise with the players ip, when a player exits the client while pz locked then the ip adress will be empty shown as 0 because he is not connected.
Another solution would be (source wise) to implement a ping creaturescript, if there is no ping / pong between server and client but the player is still on, then it means he exited it while beeing infight.
 
You will need to add a creature event such as "onReLogin" to your server. The code is somewhere on the forum already.
 
Back
Top