/// <summary> /// </summary> /// <param name="client"> /// </param> /// <param name="item"> /// </param> /// <returns> /// </returns> public static AddTemplateMessage Create(IZoneClient client, Item item) { return new AddTemplateMessage { Identity = client.Character.Identity, Unknown = 0x00, LowId = item.LowID, HighId = item.HighID, Quality = item.Quality, Count = item.MultipleCount }; }
/// <summary> /// </summary> /// <param name="client"> /// </param> /// <param name="item"> /// </param> /// <param name="container"> /// </param> /// <param name="placement"> /// </param> /// <returns> /// </returns> public static TemplateActionMessage Create(IZoneClient client, Item item, int container, int placement) { return new TemplateActionMessage() { Identity = client.Character.Identity, ItemHighId = item.HighID, ItemLowId = item.LowID, Quality = item.Quality, Placement = new Identity() { Type = (IdentityType)container, Instance = placement }, Unknown1 = 1, Unknown2 = 3 }; }
/// <summary> /// </summary> /// <param name="client"> /// </param> /// <param name="item"> /// </param> public static void Send(IZoneClient client, Item item) { client.Character.Playfield.Send(client, Create(client, item)); }
/// <summary> /// </summary> /// <param name="client"> /// </param> /// <param name="item"> /// </param> /// <param name="container"> /// </param> /// <param name="placement"> /// </param> public static void Send(IZoneClient client, Item item, int container, int placement) { client.Character.Send(Create(client, item, container, placement)); }