Ejemplo n.º 1
0
 static bool OnPlayerLogoutExecute(LoginClient client, CMSG msgID, BinReader data)
 {
     LoginServer.LeaveWorld(client);
     if (logOutEvent != null)
     {
         EventManager.RemoveEvent(logOutEvent);
         logOutEvent = null;
     }
     return(true);
 }
Ejemplo n.º 2
0
        static bool OnPlayerLogoutCancel(LoginClient client, CMSG msgID, BinReader data)
        {
            BinWriter pkg = LoginClient.NewPacket(SMSG.LOGOUT_CANCEL_ACK);

            client.Send(pkg);
            client.Send(pkg);
            client.IsLoggingOut = false;
            if (logOutEvent != null)
            {
                EventManager.RemoveEvent(logOutEvent);
                logOutEvent = null;
            }
            return(true);
        }