protected override void OnRuneApplied(CraftResultEnum result, MagicPoolStatus poolStatus) { InventoryHandler.SendExchangeCraftResultMagicWithObjectDescMessage(Character.Client, result, ItemToImprove.PlayerItem, ItemEffects, poolStatus); InventoryHandler.SendExchangeCraftInformationObjectMessage(Character.Client, ItemToImprove.PlayerItem, ItemToImprove.Owner, (ExchangeCraftResultEnum)result); ItemToImprove.Owner.Inventory.RefreshItem(ItemToImprove.PlayerItem); }
protected virtual void OnRuneApplied(CraftResultEnum result, MagicPoolStatus poolStatus) { }
public static void SendExchangeCraftResultMagicWithObjectDescMessage(IPacketReceiver client, CraftResultEnum craftResult, IItem item, IEnumerable <EffectBase> effects, MagicPoolStatus poolStatus) { client.Send(new ExchangeCraftResultMagicWithObjectDescMessage((sbyte)craftResult, new ObjectItemNotInContainer((short)item.Template.Id, effects.Select(x => x.GetObjectEffect()), item.Guid, (int)item.Stack), (sbyte)poolStatus)); }