Hello, ppl. I need some help, i need a script that check a limit only 3 ids of array in inventory.
example:
setarray .@rental[0],990,991,992,993;
if you have in your inventory 990,991,992 every combination of 3 ids you cannot get another item.
but if you have only 2 990,993 you can get other item.
i don't know how to check more of 3 ids in inventory, only one
getinventorylist;
for(set .@i,0; .@i < @inventorylist_count; set .@i,.@i+1){
if(@inventorylist_id[.@i] == .@rental > 2) {
mes "Only 3 ids in inventory";
close;
}
Hope someone help me