Exemple #1
0
        public void CleanupInstances()
        {
            if (Room != null)
            {
                if (Room.Type == MiniRoomBase.RoomType.PersonalShop)
                {
                    Room.RemovePlayerFromShop(this);
                }
                else
                {
                    Room.RemovePlayer(this, 0);
                }
                Room = null;
            }

            ShopNPCID  = 0;
            TrunkNPCID = 0;

            NpcSession?.Stop();
            NpcSession = null;
        }
Exemple #2
0
 public ChannelClient()
 {
     this.Creatures  = new Dictionary <long, Creature>();
     this.NpcSession = new NpcSession();
 }