Currently Posted September 14, 2015 Posted September 14, 2015 Can anybody help? NPC check IF statement that a player must have an item id of 20000 or above in inventory to proceed? Quote
Scylla Posted September 16, 2015 Posted September 16, 2015 (edited) Can anybody help? NPC check IF statement that a player must have an item id of 20000 or above in inventory to proceed? From https://rathena.org/wiki/Getinventorylist Try this: getinventorylist; for(set .@i,0; .@i < @inventorylist_count; set .@i,.@i+1){ if(@inventorylist_id[.@i] >= 20000){ // Item ID 20000 + mes "You have an " + .@i + " with you!"; close; } } mes "You don't have an apple with you :("; close; Dunno if what i did on mes is right, i guess you could make something out of that one you wanted. Edited September 16, 2015 by Mary Magdalene 1 Quote
Currently Posted September 17, 2015 Author Posted September 17, 2015 thank you! -Bump- Sorry, but I just realized that the player must be wearing the headgear that is item ID of 20000 and above. Quote
Scylla Posted September 17, 2015 Posted September 17, 2015 thank you! -Bump- Sorry, but I just realized that the player must be wearing the headgear that is item ID of 20000 and above. I don't know if that's possible but please check this: https://rathena.org/wiki/Getequipid Quote
Stolao Posted September 17, 2015 Posted September 17, 2015 thank you! -Bump- Sorry, but I just realized that the player must be wearing the headgear that is item ID of 20000 and above. I don't know if that's possible but please check this: https://rathena.org/wiki/Getequipid simple if(getequipid(EQI_HEAD_TOP) > 20000 || getequipid(EQI_HEAD_MID) > 20000 || getequipid(EQI_HEAD_LOW) > 20000) 1 Quote
Scylla Posted September 17, 2015 Posted September 17, 2015 thank you! -Bump- Sorry, but I just realized that the player must be wearing the headgear that is item ID of 20000 and above. I don't know if that's possible but please check this: https://rathena.org/wiki/Getequipid simple if(getequipid(EQI_HEAD_TOP) > 20000 || getequipid(EQI_HEAD_MID) > 20000 || getequipid(EQI_HEAD_LOW) > 20000) Lol i wasn't thinking very well. This'll work. Quote
Stolao Posted September 17, 2015 Posted September 17, 2015 Lol i wasn't thinking very well. This'll work. XD is ok happens to all of us 1 Quote
Question
Currently
Can anybody help?
NPC check IF statement that a player must have an item id of 20000 or above in inventory to proceed?
8 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.