Exemplo n.º 1
0
 internal static void Despawn(Player dst, byte id)
 {
     dst.SendRaw(Opcode.RemoveEntity, id);
     if (!Server.TablistGlobal)
     {
         TabList.Remove(dst, id);
     }
 }
Exemplo 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);
     }
 }
Exemplo 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);
     }
 }
Exemplo 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);
            }
        }
Exemplo 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);
            }
        }