Zirius Posted December 22, 2014 Posted December 22, 2014 Hello! Can somebody help me how to run loop on "getinventorylist" array. Suppose, let's say, we want +10 Muffler and +10 Manteau as quest requirement, how do you successfully check for it and delete it? ??? Any example? Thanks! Quote
Emistry Posted December 22, 2014 Posted December 22, 2014 you can use countitem2 to check for specific refined item and use delitem2 to delete the refined item 1 Quote
Luciar Posted December 22, 2014 Posted December 22, 2014 Updated from the wiki: getinventorylist; for(.@i = 0; .@i < @inventorylist_count; .@i += 1){ if(@inventorylist_id[.@i] == 512){ // 512 is the item id for apple mes "You have an apple with you!"; close; } } mes "You don't have an apple with you :("; close; Read which variables are set by getinventorylist; Here 1 Quote
Question
Zirius
Hello! Can somebody help me how to run loop on "getinventorylist" array.
Suppose, let's say, we want +10 Muffler and +10 Manteau as quest requirement, how do you successfully check for it and delete it? ???
Any example?
Thanks!
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.