Beispiel #1
0
 void ZoneClient_OnDisconnect(object sender, SessionCloseEventArgs e)
 {
     ClientManager.Instance.RemoveClient(this);
     if (Character != null)
     {
         Character.Save();
         Character.RemoveFromMap();
         Character.IsInParty = false;//stop thread
     }
     Log.WriteLine(LogLevel.Debug, "Client disconnected.");
 }
Beispiel #2
0
 void WorldClient_OnDisconnect(object sender, SessionCloseEventArgs e)
 {
     Log.WriteLine(LogLevel.Debug, "{0} Disconnected.", this.Host);
     ClientManager.Instance.RemoveClient(this);
 }