my problem is when they clicked it accidentally and they cancelled it the item will be gone
how can i make this item when used and cancel the item still in to inventory ?
here is the script
function script JobBox {
setarray .@Jobs$[0], "Str Set:Vit Set:Int Set:Dex Set";
setarray .@Items[0],30039,30039,30040,30042,30041;
set .@menu$,"";
for(set .@i,0; .@i<getarraysize(.@Jobs$); set .@i,.@i+1)
set .@menu$, .@menu$+.@Jobs$[.@i];
getitem .@Items[select(.@menu$)], 1;
close;
}
item.db
30037,Solo_Freebies,Solo_Freebies,2,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "JobBox",1; },{},{}