public static void SendChatGlobal(byte slotGlobal, SRItem item, string message) { Packet p = new Packet(Agent.Opcode.CLIENT_INVENTORY_ITEM_USE, true); p.WriteByte(slotGlobal); p.WriteUShort(item.GetUsageType()); p.WriteAscii(message); Bot.Get.Proxy.Agent.InjectToServer(p); }
public static void UseItem(SRItem item, byte slot, uint uniqueID = 0) { Packet p = new Packet(Agent.Opcode.CLIENT_INVENTORY_ITEM_USE, true); p.WriteByte(slot); p.WriteUShort(item.GetUsageType()); if (uniqueID != 0) { p.WriteUInt(uniqueID); } Bot.Get.Proxy.Agent.InjectToServer(p); }