Пример #1
0
        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);
        }
Пример #2
0
        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);
        }