How to check items based from a list in an array? Help please. I'm noob on using loops.
I tried to make one but it doesn't detect the item from the list.
I need to match the equipped item from any itemid on the list for the script to went thru.
but my script always trigger != even the item equipped is in the list.
for( .@i = 0; .@i < getarraysize(.list); .@i++ ){
if(getequipid(.@part) != .list[.@i]){
mes .npcname$;
mes "Sorry but I can't replicate this item. Please pick one from the list.";
emotion e_sry;
close;
}
}
mes .npcname$;
mes "I can replicate this item.";
Question
Lord Ganja
How to check items based from a list in an array? Help please. I'm noob on using loops.
I tried to make one but it doesn't detect the item from the list.
I need to match the equipped item from any itemid on the list for the script to went thru.
but my script always trigger != even the item equipped is in the list.
List of items that can be replcated:
Thanks in advance!
Link to comment
Share on other sites
2 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.