hye i was using this script here, but somehow the script end up with item which is not suppose to be crafted on the part i tagged, the unwanted item on the part is 40011 which is no where to be found on the part of the script i was testing..
here is the part of the script, which should not produce 40011, but somehow it just did:
Spoiler
//======================================================================================================================if(rand(1,100)<=99){// I was making this, somehow i got unwated item which is 40011 which is not in this script part
delitem 40026,1;
getitem 40036,1;
setarray(getd("$wrkb_"+.@wrkb_id+"_products"),.@Meat[rand(getarraysize(.@Meat))],1);gotoOnCraftingStart;
end;}
delitem 40026,1;
setarray(getd("$wrkb_"+.@wrkb_id+"_products"),40036,1,40010,1);gotoOnCraftingStart;
end;//======================================================================================================================}
full script :
Spoiler
- script ::Buther_Table-1,{
setarray .@Bone[0],40101,40102,40103,40104,40105;
setarray .@Meat[0],40116,40117,40118,40119,40120;.@wrkb_id= atoi(strnpcinfo(2));if($wrkb_crafting_state[.@wrkb_id]==1){
mes "Please wait until the process is finished. ";
close;}if($wrkb_crafting_state[.@wrkb_id]==2){
mes "Here are your crafted items.";for(.@i=0;.@i< getarraysize(getd("$wrkb_"+.@wrkb_id+"_products"));.@i+=2)
getitem(getd("$wrkb_"+.@wrkb_id+"_products["+.@i+"]"), getd("$wrkb_"+.@wrkb_id+"_products["+(.@i+1)+"]"));
delwaitingroom;
$wrkb_crafting_state[.@wrkb_id]=0;
close;}
mes "Select :-";
next;switch(select("- Take Bone only:- Take Meat Only:- Take Monster Skin Only:- Cancel")){case1:// BONE
mes "Take Bone";switch(select("- Use Stone Blade:- Use Make Shift Bone Blade:- Cancel")){case1:// Stone Bladeif(countitem(40043)==1){//T1if(countitem(40026)<1|| rentalcountitem(40024)<1){
mes "Require :";
mes "[1] Monster Loot";
mes "[1] Stone Blade";
close3;}
delitem 40026,1;
setarray(getd("$wrkb_"+.@wrkb_id+"_products"),40036,1,40011,1);gotoOnCraftingStart;
end;}if(countitem(40106)==1){//T2if(countitem(40026)<1|| rentalcountitem(40024)<1){
mes "Require :";
mes "[1] Monster Loot";
mes "[1] Stone Blade";
close3;}
delitem 40026,1;
setarray(getd("$wrkb_"+.@wrkb_id+"_products"),40036,1,40011,1);gotoOnCraftingStart;
end;}case2:if(countitem(40043)==1){//T1if(countitem(40026)<1|| rentalcountitem(40058)<1){
mes "Require :";
mes "[1] Monster Loot";
mes "[1] Make Shift Bone Blade";
close3;}
delitem 40026,1;
setarray(getd("$wrkb_"+.@wrkb_id+"_products"),40036,1,40011,1);gotoOnCraftingStart;
end;}// if(countitem(40106)==1){//T2if(countitem(40026)<1|| rentalcountitem(40058)<1){
mes "Require :";
mes "[1] Monster Loot";
mes "[1] Make Shift Bone Blade";
close3;}if(rand(1,100)<=5){
delitem 40026,1;
getitem 40036,1;
setarray(getd("$wrkb_"+.@wrkb_id+"_products"),.@Bone[rand(getarraysize(.@Bone))],1);gotoOnCraftingStart;
end;}
delitem 40026,1;
setarray(getd("$wrkb_"+.@wrkb_id+"_products"),40036,1,40011,1);gotoOnCraftingStart;
end;}case3:
mes "Cancel";
close3;}case2://MEAT
mes "Take Meat";switch(select("- Use Stone Blade:- Use Make Shift Bone Blade:- Cancel")){case1:// Stone Bladeif(countitem(40043)==1){//T1if(countitem(40026)<1|| rentalcountitem(40024)<1){
mes "Require :";
mes "[1] Monster Loot";
mes "[1] Stone Blade";
close3;}
delitem 40026,1;
setarray(getd("$wrkb_"+.@wrkb_id+"_products"),40036,1,40010,1);gotoOnCraftingStart;
end;}if(countitem(40106)==1){//T2if(countitem(40026)<1|| rentalcountitem(40024)<1){
mes "Require :";
mes "[1] Monster Loot";
mes "[1] Stone Blade";
close3;}
delitem 40026,1;
setarray(getd("$wrkb_"+.@wrkb_id+"_products"),40036,1,40010,1);gotoOnCraftingStart;
end;}case2:if(countitem(40043)==1){//T1if(countitem(40026)<1|| rentalcountitem(40058)<1){
mes "Require :";
mes "[1] Monster Loot";
mes "[1] Make Shift Bone Blade";
close3;}
delitem 40026,1;
setarray(getd("$wrkb_"+.@wrkb_id+"_products"),40036,1,40010,1);gotoOnCraftingStart;
end;}// if(countitem(40106)==1){//T2if(countitem(40026)<1|| rentalcountitem(40058)<1){
mes "Require :";
mes "[1] Monster Loot";
mes "[1] Make Shift Bone Blade";
close3;}//======================================================================================================================if(rand(1,100)<=99){// I was making this, somehow i got unwated item which is 40011 which is not in this script part
delitem 40026,1;
getitem 40036,1;
setarray(getd("$wrkb_"+.@wrkb_id+"_products"),.@Meat[rand(getarraysize(.@Meat))],1);gotoOnCraftingStart;
end;}
delitem 40026,1;
setarray(getd("$wrkb_"+.@wrkb_id+"_products"),40036,1,40010,1);gotoOnCraftingStart;
end;//======================================================================================================================}case3:
mes "Cancel";
close3;}case3://SKIN
mes "WIP";
close3;case4:
mes "Process Cancel";
close3;}
end;OnCraftingStart:
$wrkb_crafting_state[.@wrkb_id]=1;
waitingroom("PROCESSING...",0);
initnpctimer;
end;OnTimer6000:
$wrkb_crafting_state[atoi(strnpcinfo(2))]=2;
delwaitingroom;
waitingroom("COMPLETED!",0);
end;OnInit:.@wrkb_id= atoi(strnpcinfo(2));if(.@wrkb_id<1) end;if($wrkb_crafting_state[.@wrkb_id]==1)gotoOnCraftingStart;}//Duplicate//=====================================================
chry_fld,81,74,6 duplicate(Buther_Table)PublicButcherTable#3001 665
ma_fild01,317,289,6 duplicate(Buther_Table)PublicButcherTable#3002 665
ma_fild01,264,358,6 duplicate(Buther_Table)PublicButcherTable#3003 665
ma_fild01,231,316,6 duplicate(Buther_Table)PublicButcherTable#3004 665
ma_fild01,144,285,6 duplicate(Buther_Table)PublicButcherTable#3005 665
ma_fild01,54,193,6 duplicate(Buther_Table)PublicButcherTable#3006 665
ma_fild01,91,91,6 duplicate(Buther_Table)PublicButcherTable#3007 665
ma_fild01,196,185,6 duplicate(Buther_Table)PublicButcherTable#3008 665
ma_fild01,234,240,6 duplicate(Buther_Table)PublicButcherTable#3009 665
ma_fild01,182,107,6 duplicate(Buther_Table)PublicButcherTable#3010 665
ma_fild01,281,120,6 duplicate(Buther_Table)PublicButcherTable#3011 665
new_1-3,87,137,6 duplicate(Buther_Table)PublicButcherTable#3012 665
new_1-3,93,137,6 duplicate(Buther_Table)PublicButcherTable#3013 665
new_1-3,99,137,6 duplicate(Buther_Table)PublicButcherTable#3014 665
Question
Dolphin86
hye i was using this script here, but somehow the script end up with item which is not suppose to be crafted on the part i tagged, the unwanted item on the part is 40011 which is no where to be found on the part of the script i was testing..
here is the part of the script, which should not produce 40011, but somehow it just did:
full script :
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.