public static void HandleLivingObjectDissociateMessage(WorldClient client, LivingObjectDissociateMessage message)
        {
            BasePlayerItem basePlayerItem = client.Character.Inventory.TryGetItem((int)message.livingUID);

            if (basePlayerItem is BoundLivingObjectItem)
            {
                ((BoundLivingObjectItem)basePlayerItem).Dissociate();
            }
        }
Ejemplo n.º 2
0
        public static void HandleLivingObjectDissociate(LivingObjectDissociateMessage message, WorldClient client)
        {
            CharacterItemRecord item = client.Character.Inventory.GetItem(message.livingUID);

            if (item != null)
            {
                client.Character.Inventory.DissociateLiving(item);
            }
        }
Ejemplo n.º 3
0
        public static void HandleLivingObjectDissociateMessage(WorldClient client, LivingObjectDissociateMessage message)
        {
            if (client.Character.IsInFight())
            {
                return;
            }

            var item = client.Character.Inventory.TryGetItem(message.livingUID);

            (item as BoundLivingObjectItem)?.Dissociate();
        }