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
plixplox Offline
Expired VIP Member
**

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

Kerb, that valiance page with this info is brokem,
do you by chance have it saved?
I just need those Rgrade Id's to test it .. thxSmile
05-29-2015 16:28 PM
Find all posts by this user Quote this message in a reply
kerberos464 Offline
Bug revealer

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

(05-29-2015 16:28 PM)plixplox Wrote:  Kerb, that valiance page with this info is brokem,
do you by chance have it saved?
I just need those Rgrade Id's to test it .. thxSmile
link is still working, i don't know why it doesn't work for you.
anyway i reuploaded it, check 2nd post:
http://forum.l2tower.eu/thread-wtb-craft...8#pid90638

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

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

it loaded the 1st, just says error loading additional pages...
I will check yours..

Sweet, I can finally sit back and craft!!!!
(This post was last modified: 05-29-2015 17:27 PM by plixplox.)
05-29-2015 17:09 PM
Find all posts by this user Quote this message in a reply
capucine Offline
Expired VIP Member
**

Posts: 1,083
Joined: Jan 2013
Reputation: 208
Version: 1.4.2.142
Post: #14
RE: WTB craft script code

Just tried it and successfully crafted SSR, SSS, BSSS, BSSR. here are the codes I used

CraftItem(327); --SSS=24 ; SSR=1125 ; BSSS=327 ; BSSR=1127

+2 rep me if it helped you...!
05-29-2015 17:43 PM
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: #15
RE: WTB craft script code

Capucine,
did you put in a mana check?
Everytime I try it either doesn't work, or it crash instantly ..
05-29-2015 17:45 PM
Find all posts by this user Quote this message in a reply
aiwaras83 Offline
Expired VIP Member
**

Posts: 29
Joined: Oct 2013
Reputation: 4
Version: 1.4.2.135
Post: #16
RE: WTB craft script code

try this:
if (GetMe():GetMp() >= 258) then

or this:

if (GetMe():GetMpPercent() > 10) then
05-30-2015 00:55 AM
Find all posts by this user Quote this message in a reply
capucine Offline
Expired VIP Member
**

Posts: 1,083
Joined: Jan 2013
Reputation: 208
Version: 1.4.2.142
Post: #17
RE: WTB craft script code

(05-29-2015 17:45 PM)plixplox Wrote:  Capucine,
did you put in a mana check?
Everytime I try it either doesn't work, or it crash instantly ..

no, I did not ad mana check...
05-30-2015 01:09 AM
Find all posts by this user Quote this message in a reply
schubbel2208 Offline
Expired VIP Member
**

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

(05-30-2015 01:09 AM)capucine Wrote:  
(05-29-2015 17:45 PM)plixplox Wrote:  Capucine,
did you put in a mana check?
Everytime I try it either doesn't work, or it crash instantly ..

no, I did not ad mana check...

ok now with checks
    LUA Programming
me = GetMe();
crystals = "Crystal (R-grade)";
stone = "Soulstone";
 
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;
 
function GetItemAmountByName(name)
 local invList = GetInventory();
 for item in invList.list do
 if (item.Name == name) then
 ShotsDisId = item.displayId;
 return item.ItemNum;
 end;
 end;
 return 0;
end;
 
 
 
repeat
 if (me:GetMp() > 258) then
if (GetItemAmountByName(crystals) > 2) then
 if (GetItemAmountByName(stone) > 80) then
 CraftItem(1125);
 Sleep(1000);
 end;
 end;
 end;
until false

(This post was last modified: 05-30-2015 19:57 PM by schubbel2208.)
05-30-2015 01:16 AM
Find all posts by this user Quote this message in a reply
capucine Offline
Expired VIP Member
**

Posts: 1,083
Joined: Jan 2013
Reputation: 208
Version: 1.4.2.142
Post: #19
RE: WTB craft script code

didn't test it, but just by looking at it, its wrong because your checking for crystal count twice... the one with >80 should be soulstones...

if (GetItemAmountByName(crystals) > 2) then
if (GetItemAmountByName(crystals) > 80) then




(05-30-2015 01:16 AM)schubbel2208 Wrote:  
(05-30-2015 01:09 AM)capucine Wrote:  
(05-29-2015 17:45 PM)plixplox Wrote:  Capucine,
did you put in a mana check?
Everytime I try it either doesn't work, or it crash instantly ..

no, I did not ad mana check...

ok now with checks
    LUA Programming
me = GetMe();
crystals = "Crystal (R-grade)";
stone = "Soulstone";
 
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;
 
function GetItemAmountByName(name)
 local invList = GetInventory();
 for item in invList.list do
 if (item.Name == name) then
 ShotsDisId = item.displayId;
 return item.ItemNum;
 end;
 end;
 return 0;
end;
 
 
 
repeat
 if (me:GetMp() > 258) then
 if (GetItemAmountByName(crystals) > 2) then
 if (GetItemAmountByName(crystals) > 80) then
 CraftItem(1125);
 Sleep(1000);
 end;
 end;
 end;
until false

05-30-2015 05:20 AM
Find all posts by this user Quote this message in a reply
schubbel2208 Offline
Expired VIP Member
**

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

hrhr my fault it should be

    LUA Programming
if (GetItemAmountByName(crystals) > 2) then
 if (GetItemAmountByName(stone) > 80) then

05-30-2015 13:42 PM
Find all posts by this user Quote this message in a reply
Post Reply 




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