Esempio n. 1
0
 internal static void Despawn(Player dst, byte id)
 {
     dst.SendRaw(Opcode.RemoveEntity, id);
     if (!Server.TablistGlobal)
     {
         TabList.Remove(dst, id);
     }
 }
Esempio n. 2
0
 internal static void Despawn(Player dst, PlayerBot b)
 {
     dst.SendRaw(Opcode.RemoveEntity, b.id);
     if (Server.TablistBots)
     {
         TabList.Remove(dst, b.id);
     }
 }
Esempio n. 3
0
 internal static void Despawn(Player dst, PlayerBot b)
 {
     OnEntityDespawnedEvent.Call(b, dst);
     dst.Send(Packet.RemoveEntity(b.id));
     if (Server.Config.TablistBots)
     {
         TabList.Remove(dst, b);
     }
 }
Esempio n. 4
0
        public static void Despawn(Player dst, PlayerBot b)
        {
            OnEntityDespawnedEvent.Call(b, dst);
            dst.Session.SendRemoveEntity(b.id);

            if (Server.Config.TablistBots)
            {
                TabList.Remove(dst, b);
            }
        }
Esempio n. 5
0
        internal static void Despawn(Player dst, Player other)
        {
            OnEntityDespawnedEvent.Call(other, dst);
            byte id = other == dst ? SelfID : other.id;

            dst.Send(Packet.RemoveEntity(id));
            if (!Server.Config.TablistGlobal)
            {
                TabList.Remove(dst, other);
            }
        }