as u can see 40005 is a rental item but it does not deleted right after completed..
full script below.
Spoiler
moc_para01,46,36,4 script GuildBlacksmith826,{if(countitem(40056)<1){goto notmember;}
soundeffect "menu.wav",0;
mes "^ce7e00 === Hafiz === ^000000";
mes "Oh hello there, how can i help you ?";switch(select("- Restore :- Cancel")){case1:
clear;
soundeffect "menu.wav",0;
mes "^ce7e00 === Hafiz === ^000000";
mes "Oh you need to restore ?";switch(select("- Restore:- Restore Information :- Cancel")){case1:goto restore;case2:goto restoreinfo;case3:
end;}case2:
end;}
restore:
clear;
soundeffect "menu.wav",0;
mes "^ce7e00 === Hafiz === ^000000";
mes "Ok then, what type of item you wish to restore ?";switch(select("- Weapon:- Armor :- Tool:- Cancel")){case1:goto weapon;case2:
end;case3:
end;case4:
end;}
restoreinfo:
clear;
soundeffect "menu.wav",0;
mes "^ce7e00 === Hafiz === ^000000";
mes "Well you do have an equipment or tool";
mes "with you right?, well those item have";
mes "rental period, which means when the";
mes "time is up, your rental item will be";
mes "gone for good..";
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === Hafiz === ^000000";
mes "But i can restore those item";
mes "back to box form, which means";
mes "you can use it much more longer";
next;
soundeffect "menu.wav",0;
mes "^ce7e00 === Hafiz === ^000000";
mes "But i do need 1 Restore Token";
mes "and 10 Durengo Coin";
mes "in oder for me to restore";
close;
weapon:
clear;
soundeffect "menu.wav",0;
mes "^ce7e00 === Hafiz === ^000000";
mes "And the weapon tiers ?";switch(select("- Tier 1:- Cancel")){case1:goto wt1;case2:
end;}
wt1:
clear;
soundeffect "menu.wav",0;
mes "^ce7e00 === Hafiz === ^000000";
mes "Ok then, what is the weapon ?";switch(select("- Stone Knife:- Cancel")){case1:
clear;
soundeffect "menu.wav",0;
setarray(.@product_recipe,40004,1,40005,1,1,40225,0,1,40016,0,10);break;case2:
end;}if(getarraysize(.@product_recipe)==0){
end;}.@product_id=.@product_recipe[0];.@product_amount=.@product_recipe[1];for(.@i=2;.@i< getarraysize(.@product_recipe);.@i+=3){.@next_start_index= getarraysize(.@product_requirements);.@product_requirements[.@next_start_index]=.@product_recipe[.@i];.@product_requirements[.@next_start_index+1]=.@product_recipe[.@i+1];.@product_requirements[.@next_start_index+2]=.@product_recipe[.@i+2];}
clear;
soundeffect "menu.wav",0;
mes "Require";for(.@i=0;.@i< getarraysize(.@product_requirements);.@i+=3){if(.@product_requirements[.@i+1]==1){.@item_amount= rentalcountitem(.@product_requirements[.@i]);}else{.@item_amount= countitem(.@product_requirements[.@i]);}.@item_requirement_text$=.@product_requirements[.@i+2]+" "+ getitemname(.@product_requirements[.@i]);if(.@item_amount<.@product_requirements[.@i+2]){.@not_enough_items=1;
mes "^ff0000- "+.@item_requirement_text$+"^000000";}else{
mes "^8fce00- "+.@item_requirement_text$+"^000000";}}if(.@not_enough_items==1){
close;}
next;
soundeffect "menu.wav",0;
select("- Start");
close2;
progressbar("ffffff",3);
soundeffect "make.wav",0;for(.@i=0;.@i< getarraysize(.@product_requirements);.@i+=3){if(.@product_requirements[.@i+1]==0){
delitem(.@product_requirements[.@i],.@product_requirements[.@i+2]);}}
getitem(.@product_id,.@product_amount);}
Question
Dolphin86
as title my current script does not delete the rental item right after it is completed.
as u can see 40005 is a rental item but it does not deleted right after completed..
full script below.
please help?
Edited by Dolphin862 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.