i think this one, but need to make it simple.
maybe using array.
lhz_dun_n,132,260,4 script Memory of Regret 114,{
mes "I can convert some items to energy debris in random from 1 to 5 what do you want";
next;
menu "Exchange Items to Energy Debris",Z_EE,"Create Costume",Z_EEE,"Leave",Z_EXIT;
Z_EE:
mes "What now lets see";
next;
if(countitem(1284) > 0) goto one;
if(countitem(1285) > 0) goto two;
if(countitem(1290) > 0) goto three;
if(countitem(18109) > 0) goto four;
if(countitem(18110) > 0) goto five;
if(countitem(18111) > 0) goto six;
if(countitem(1745) > 0) goto seven;
if(countitem(18103) > 0) goto eight;
if(countitem(1647) > 0) goto nine;
if(countitem(1659) > 0) goto ten;
if(countitem(1654) > 0) goto eleven;
if(countitem(2004) > 0) goto twelve;
if(countitem(2005) > 0) goto thirteen;
if(countitem(13431) > 0) goto fourteen;
if(countitem(1196) > 0) goto fifteen;
if(countitem(13421) > 0) goto sixteen;
if(countitem(1584) > 0) goto seventeen;
if(countitem(13061) > 0) goto eightteen;
if(countitem(13062) > 0) goto nineteen;
if(countitem(13070) > 0) goto twenty;
if(countitem(13046) > 0) goto twentyone;
if(countitem(13047) > 0) goto twentytwo;
if(countitem(16017) > 0) goto twentythree;
if(countitem(16010) > 0) goto twentyfour;
if(countitem(16000) > 0) goto twentyfive;
if(countitem(16001) > 0) goto twentysix;
if(countitem(1433) > 0) goto twentyseven;
if(countitem(1435) > 0) goto twentyeight;
if(countitem(1490) > 0) goto twentynine;
if(countitem(1930) > 0) goto thirty;
if(countitem(1963) > 0) goto thirtyone;
if(countitem(1830) > 0) goto thirtytwo;
{
goto Z_NOITEM;
}
one:
delitem 1284,1;
getitem 6820,rand(1,5);
end;
two:
delitem 1285,1;
getitem 6820,rand(1,5);
end;
three:
delitem 1290,1;
getitem 6820,rand(1,5);
end;
four:
delitem 18109,1;
getitem 6820,rand(1,5);
end;
five:
delitem 18110,1;
getitem 6820,rand(1,5);
end;
six:
delitem 18111,1;
getitem 6820,rand(1,5);
end;
zeven:
delitem 1745,1;
getitem 6820,rand(1,5);
end;
eight:
delitem 18103,1;
getitem 6820,rand(1,5);
end;
nine:
delitem 1647,1;
getitem 6820,rand(1,5);
end;
ten:
delitem 1659,1;
getitem 6820,rand(1,5);
end;
eleven:
delitem 1654,1;
getitem 6820,rand(1,5);
end;
twelve:
delitem 2004,1;
getitem 6820,rand(1,5);
end;
thirteen:
delitem 2005,1;
getitem 6820,rand(1,5);
end;
fourteen:
delitem 13431,1;
getitem 6820,rand(1,5);
end;
fifteen:
delitem 1196,1;
getitem 6820,rand(1,5);
end;
sixteen:
delitem 13421,1;
getitem 6820,rand(1,5);
end;
seventeen:
delitem 1584,1;
getitem 6820,rand(1,5);
end;
eightteen:
delitem 13061,1;
getitem 6820,rand(1,5);
nineteen:
delitem 13062,1;
getitem 6820,rand(1,5);
end;
twenty:
delitem 13070,1;
getitem 6820,rand(1,5);
end;
twentyone:
delitem 13046,1;
getitem 6820,rand(1,5);
end;
twentytwo:
delitem 13047,1;
getitem 6820,rand(1,5);
end;
twentythree:
delitem 16017,1;
getitem 6820,rand(1,5);
end;
twentyfour:
delitem 16010,1;
getitem 6820,rand(1,5);
end;
twentyfive:
delitem 16000,1;
getitem 6820,rand(1,5);
end;
twentysix:
delitem 16001,1;
getitem 6820,rand(1,5);
end;
twentyseven:
delitem 1433,1;
getitem 6820,rand(1,5);
end;
twentyeight:
delitem 1435,1;
getitem 6820,rand(1,5);
end;
twentynine:
delitem 1490,1;
getitem 6820,rand(1,5);
end;
thirty:
delitem 1930,1;
getitem 6820,rand(1,5);
end;
thirtyone:
delitem 1963,1;
getitem 6820,rand(1,5);
end;
thirtytwo:
delitem 1830,1;
getitem 6820,rand(1,5);
end;
Z_EEE:
mes "I can also Exchange 50pcs energy debris and 1 3rd job head gear to 1 costume 3rd job items";
next;
menu "let me see",Z_EEEE,"Leave",Z_EXIT;
Z_EEEE:
next;
if(countitem(6820) > 50 || countitem(5746) > 1) goto costumea;
if(countitem(6820) > 50 || countitem(5757) > 1) goto costumeb;
if(countitem(6820) > 50 || countitem(5755) > 1) goto costumec;
if(countitem(6820) > 50 || countitem(5750) > 1) goto costumed;
if(countitem(6820) > 50 || countitem(5752) > 1) goto costumee;
if(countitem(6820) > 50 || countitem(5749) > 1) goto costumef;
if(countitem(6820) > 50 || countitem(5754) > 1) goto costumeg;
if(countitem(6820) > 50 || countitem(5747) > 1) goto costumeh;
if(countitem(6820) > 50 || countitem(5753) > 1) goto costumei;
if(countitem(6820) > 50 || countitem(5756) > 1) goto costumej;
if(countitem(6820) > 50 || countitem(5748) > 1) goto costumek;
if(countitem(6820) > 50 || countitem(5751) > 1) goto costumel;
if(countitem(6820) > 50 || countitem(5758) > 1) goto costumem;
{
GOTO Z_NOITEM;
}
costumea:
delitem 6820,50;
delitem 5746,1;
getitem 19961,1;
mes "Thank you very very much!";
end;
costumeb:
delitem 6820,50;
delitem 5757,1;
getitem 20393,1;
mes "Thank you very very much!";
end;
costumec:
delitem 6820,50;
delitem 5755,1;
getitem 20391,1;
mes "Thank you very very much!";
end;
costumed:
delitem 6820,50;
delitem 5750,1;
getitem 19965,1;
mes "Thank you very very much!";
end;
costumee:
delitem 6820,50;
delitem 5752,1;
getitem 19967,1;
mes "Thank you very very much!";
end;
costumef:
delitem 6820,50;
delitem 5749,1;
getitem 19963,1;
mes "Thank you very very much!";
end;
costumeg:
delitem 6820,50;
delitem 5754,1;
getitem 19962,1;
mes "Thank you very very much!";
end;
costumeh:
delitem 6820,50;
delitem 5747,1;
getitem 19969,1;
mes "Thank you very very much!";
end;
costumei:
delitem 6820,50;
delitem 5753,1;
getitem 19968,1;
mes "Thank you very very much!";
end;
costumej:
delitem 6820,50;
delitem 5756,1;
getitem 19970,1;
mes "Thank you very very much!";
end;
costumek:
delitem 6820,50;
delitem 5748,1;
getitem 20392,1;
mes "Thank you very very much!";
end;
costumel:
delitem 6820,50;
delitem 5751,1;
getitem 19966,1;
mes "Thank you very very much!";
end;
costumem:
delitem 6820,50;
delitem 57,1;
getitem 19971,1;
mes "Thank you very very much!";
end;
Z_NOITEM:
mes "You dont have enought items i need";
mes "Good bye.";
close;
Z_EXIT:
mes "[Reaper]";
mes callfunc("F_Bye");
close;
}