static bool OnPlayerLogoutExecute(LoginClient client, CMSG msgID, BinReader data)
 {
     LoginServer.LeaveWorld(client);
     if (logOutEvent != null)
     {
         EventManager.RemoveEvent(logOutEvent);
         logOutEvent = null;
     }
     return(true);
 }
        static bool OnPlayerLogout(LoginClient client, CMSG msgID, BinReader data)
        {
            client.IsLoggingOut = true;
            LoginServer.LeaveWorld(client);
            return(true);

            /*logOutEvent= new LogOut(client);
             * EventManager.AddEvent(logOutEvent);
             * BinWriter pkg = LoginClient.NewPacket(SMSG.LOGOUT_RESPONSE);
             * pkg.Write((byte)12);
             * client.Send(pkg);
             * return true;*/
        }
Example #3
0
 public override void Close(string reason)
 {
     if (m_account != null)
     {
         Account = null;
     }
     if (m_character != null)
     {
         LoginServer.LeaveWorld(this);
         LoginServer.RemoveCharacter(this);
     }
     Console.WriteLine(this + " closed: " + reason);
     base.Close(reason);
 }
 public override void FireEvent()
 {
     LoginServer.LeaveWorld(client);
 }
Example #5
0
 static bool OnPlayerLogout(LoginClient client, CMSG msgID, BinReader data)
 {
     client.IsLoggingOut = true;
     LoginServer.LeaveWorld(client);
     return(true);
 }