public static void SendExchangeCraftInformationObjectMessage(IPacketReceiver client, IItem item, Character owner, ExchangeCraftResultEnum result) { client.Send(new ExchangeCraftInformationObjectMessage((sbyte)result, (short)item.Template.Id, owner.Id)); }
public static void SendExchangeCraftResultWithObjectIdMessage(IPacketReceiver client, ExchangeCraftResultEnum result, ItemTemplate item) { client.Send(new ExchangeCraftResultWithObjectIdMessage((sbyte)result, (short)item.Id)); }
public static void SendExchangeCraftResultWithObjectDescMessage(IPacketReceiver client, ExchangeCraftResultEnum result, BasePlayerItem createdItem, int amount) { client.Send(new ExchangeCraftResultWithObjectDescMessage((sbyte)result, new ObjectItemNotInContainer((short)createdItem.Template.Id, createdItem.Effects.Select(x => x.GetObjectEffect()), createdItem.Guid, amount))); }
public static void SendExchangeCraftResultMessage(IPacketReceiver client, ExchangeCraftResultEnum result) { client.Send(new ExchangeCraftResultMessage((sbyte)result)); }