set .@menu$, "";
set .@a, .orbs[0];
while((set(.@a,.@a+1)-1)<=.orbs[1])
if(getiteminfo(.@a-1,2)>-1)
if(set(.@c,countitem(.@a-1))) {
set .@menu$, .@menu$+getitemname(.@a-1)+" x"+.@c+":";
set .@b,.@b+1; set .@item[.@b], .@a-1;
}
if(.@menu$=="") {
mes .npc$;
mes "Hmm, you don't seem to have any enchantment orbs.";
close;
}
mes .npc$;
mes "Please, select an enchantment from the menu."; next;
select(.@menu$);
set .@itm, .@item[@menu];
setarray .orbs, 4702,4712,4722,4732,4742,4752,4767,4834;
Question
kalabasa
Link to comment
Share on other sites
7 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.