getinventorylist;
.@i = 0;
while ( .@i < @inventorylist_count ) {
/* Filter only items that is not bound */
if (!@inventorylist_bound[.@i]){
.@itemname$ = callfunc( "getitemname2", @inventorylist_id[.@i], @inventorylist_identify[.@i], @inventorylist_refine[.@i], @inventorylist_attribute[.@i], @inventorylist_card1[.@i], @inventorylist_card2[.@i], @inventorylist_card3[.@i], @inventorylist_card4[.@i], @inventorylist_bound[.@i]);
.@menu$ = .@menu$ + @itemname2_info$ + .@itemname$ +":";
}
.@i++;
}
.@s = select(.@menu$) -1;
/* Now display ItemID of selected inventory */
mes "You have selected "+@inventorylist_id[.@s]; // this did not return correct info because it reads [.@s] index from getinventorylist but not the filtered menu.
im trying to make menu of items in my inventory excluding the bound items. When select the menu, how to point it to my inventorylist?
Question
jawbreaker
getinventorylist; .@i = 0; while ( .@i < @inventorylist_count ) { /* Filter only items that is not bound */ if (!@inventorylist_bound[.@i]){ .@itemname$ = callfunc( "getitemname2", @inventorylist_id[.@i], @inventorylist_identify[.@i], @inventorylist_refine[.@i], @inventorylist_attribute[.@i], @inventorylist_card1[.@i], @inventorylist_card2[.@i], @inventorylist_card3[.@i], @inventorylist_card4[.@i], @inventorylist_bound[.@i]); .@menu$ = .@menu$ + @itemname2_info$ + .@itemname$ +":"; } .@i++; } .@s = select(.@menu$) -1; /* Now display ItemID of selected inventory */ mes "You have selected "+@inventorylist_id[.@s]; // this did not return correct info because it reads [.@s] index from getinventorylist but not the filtered menu.
im trying to make menu of items in my inventory excluding the bound items. When select the menu, how to point it to my inventorylist?
Link to comment
Share on other sites
1 answer 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.