05-27-2015, 20:21 PM
05-27-2015, 23:13 PM
LUA Programming
function CraftItem(RecipeId)
if (type(RecipeId) == "number" and RecipeId > 0) then
local packet = PacketBuilder();
packet:AppendInt(0xB8, 1);
packet:AppendInt(RecipeId, 4);
SendPacket(packet);
end;
end;
-- usage example
-- CraftItem(20); -- crafting soulshot d-grade
don't forget to send me a lot of money =)
p.s. recipes id can be found here, by CoolAsIce
or download this list here: [attachment=2445]
05-28-2015, 21:35 PM
(05-27-2015 23:13 PM)kerberos464 Wrote: [ -> ]hei, this does not work, it disconnects meLUA Programming
function CraftItem(RecipeId) if (type(RecipeId) == "number" and RecipeId > 0) then local packet = PacketBuilder(); packet:AppendInt(0xB8, 1); packet:AppendInt(RecipeId, 4); SendPacket(packet); end; end; -- usage example -- CraftItem(20); -- crafting soulshot d-grade
don't forget to send me a lot of money =)
p.s. recipes id can be found here, by CoolAsIce
05-28-2015, 22:26 PM
i don't have a good dwarf to test it, so i only tested with 20 lvl crafter and d-grade soulshot recipe, worked well.
need a higher level crafter to test it, or wait ~4 days till i level up my own crafter.
need a higher level crafter to test it, or wait ~4 days till i level up my own crafter.
05-29-2015, 01:24 AM
usage example
but as i sayed example no mana checks etc
LUA Programming
function CraftItem(RecipeId)
if (type(RecipeId) == "number" and RecipeId > 0) then
local packet = PacketBuilder();
packet:AppendInt(0xB8, 1);
packet:AppendInt(RecipeId, 4);
SendPacket(packet);
end;
end;
repeat
CraftItem(1125);
Sleep(5000);
until false
but as i sayed example no mana checks etc
05-29-2015, 06:29 AM
(05-29-2015 01:24 AM)schubbel2208 Wrote: [ -> ]usage example
It disconnects with single use, no loop
05-29-2015, 07:51 AM
What recipe id do you use?
05-29-2015, 09:07 AM
(05-29-2015 07:51 AM)kerberos464 Wrote: [ -> ]What recipe id do you use?
ok, this is interesting.
i tried with recipe ssd it works
it does not work, however, with mats recipes (tried some upgrade ones) or armors/weapons, it disconnects the client
05-29-2015, 15:50 PM
does it work with R-SS R-BSBS?
05-29-2015, 15:59 PM
it should work.
important! you must use the first number from that excel table (column B: id_mk) and NOT id_recipe!
[attachment=2444]
important! you must use the first number from that excel table (column B: id_mk) and NOT id_recipe!
[attachment=2444]