コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: RuneMagicCraftDialog.cs プロジェクト: Mixi59/Stump
 protected virtual void OnRuneApplied(CraftResultEnum result, MagicPoolStatus poolStatus)
 {
 }
コード例 #3
0
 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));
 }