Lineage 2 Tower Forum

Full Version: WTB craft script code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
WTB the code needed to craft an item based on the recipe id or item name
    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-27-2015 23:13 PM)kerberos464 Wrote: [ -> ]
    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
hei, this does not work, it disconnects me Sad
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.
usage example

    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 01:24 AM)schubbel2208 Wrote: [ -> ]usage example

It disconnects with single use, no loop
What recipe id do you use?
(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
does it work with R-SS R-BSBS?
it should work.

important! you must use the first number from that excel table (column B: id_mk) and NOT id_recipe!

[attachment=2444]
Pages: 1 2 3 4
Reference URL's