L2Tower Discord Let's keep the community alive with discord. Discussions about plugins and scripts L2Tower Discord

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WTB craft script code
Author Message
goanga1 Offline
VIP Member
***

Posts: 434
Joined: Apr 2012
Reputation: 76
Version: 1.4.2.142
Post: #1
WTB WTB craft script code

WTB the code needed to craft an item based on the recipe id or item name

Chonos Shop
(closed atm)

accepting paypal
For more info contact me on Skype : michail.gh

Info here: http://forum.l2tower.eu/thread-wts-lvl-9...aia-chonos
05-27-2015 20:21 PM
Find all posts by this user Quote this message in a reply
kerberos464 Offline
Bug revealer

Posts: 1,538
Joined: Jun 2012
Reputation: 576
Version: 1.4.3.143
Post: #2
RE: WTB craft script code

    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:
.xlsx  RecipeID.xlsx (Size: 205.62 KB / Downloads: 164)

Everything is possible. The impossible just takes longer.
(This post was last modified: 05-29-2015 16:32 PM by kerberos464.)
05-27-2015 23:13 PM
Visit this user's website Find all posts by this user Quote this message in a reply
 Reputed by : schubbel2208(+2) , goanga1(+2)
goanga1 Offline
VIP Member
***

Posts: 434
Joined: Apr 2012
Reputation: 76
Version: 1.4.2.142
Post: #3
RE: WTB craft script code

(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

Chonos Shop
(closed atm)

accepting paypal
For more info contact me on Skype : michail.gh

Info here: http://forum.l2tower.eu/thread-wts-lvl-9...aia-chonos
05-28-2015 21:35 PM
Find all posts by this user Quote this message in a reply
kerberos464 Offline
Bug revealer

Posts: 1,538
Joined: Jun 2012
Reputation: 576
Version: 1.4.3.143
Post: #4
RE: WTB craft script code

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.

Everything is possible. The impossible just takes longer.
05-28-2015 22:26 PM
Visit this user's website Find all posts by this user Quote this message in a reply
 Reputed by : benbt91(+2)
schubbel2208 Offline
Expired VIP Member
**

Posts: 154
Joined: Jun 2012
Reputation: 35
Version: 1.4.3.143
Post: #5
RE: WTB craft script code

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
Find all posts by this user Quote this message in a reply
goanga1 Offline
VIP Member
***

Posts: 434
Joined: Apr 2012
Reputation: 76
Version: 1.4.2.142
Post: #6
RE: WTB craft script code

(05-29-2015 01:24 AM)schubbel2208 Wrote:  usage example

It disconnects with single use, no loop

Chonos Shop
(closed atm)

accepting paypal
For more info contact me on Skype : michail.gh

Info here: http://forum.l2tower.eu/thread-wts-lvl-9...aia-chonos
(This post was last modified: 05-29-2015 06:30 AM by goanga1.)
05-29-2015 06:29 AM
Find all posts by this user Quote this message in a reply
kerberos464 Offline
Bug revealer

Posts: 1,538
Joined: Jun 2012
Reputation: 576
Version: 1.4.3.143
Post: #7
RE: WTB craft script code

What recipe id do you use?

Everything is possible. The impossible just takes longer.
05-29-2015 07:51 AM
Visit this user's website Find all posts by this user Quote this message in a reply
goanga1 Offline
VIP Member
***

Posts: 434
Joined: Apr 2012
Reputation: 76
Version: 1.4.2.142
Post: #8
RE: WTB craft script code

(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

Chonos Shop
(closed atm)

accepting paypal
For more info contact me on Skype : michail.gh

Info here: http://forum.l2tower.eu/thread-wts-lvl-9...aia-chonos
(This post was last modified: 05-29-2015 09:11 AM by goanga1.)
05-29-2015 09:07 AM
Find all posts by this user Quote this message in a reply
plixplox Offline
Expired VIP Member
**

Posts: 304
Joined: Nov 2013
Reputation: 23
Version: 1.4.2.138
Post: #9
RE: WTB craft script code

does it work with R-SS R-BSBS?
05-29-2015 15:50 PM
Find all posts by this user Quote this message in a reply
kerberos464 Offline
Bug revealer

Posts: 1,538
Joined: Jun 2012
Reputation: 576
Version: 1.4.3.143
Post: #10
RE: WTB craft script code

it should work.

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

   

Everything is possible. The impossible just takes longer.
(This post was last modified: 05-29-2015 16:01 PM by kerberos464.)
05-29-2015 15:59 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)