I want to delete specifically an equiped item that is supposed to be refined to +7, but when i have 3 jackets and one is equiped, my script keeps deleting the ones in the inventory first even when they are +0, then at last deletes the one equiped. I have tried many ways but i keep getting inventory items deleted or errors. Here's what i tried:
Question
Erebos
I want to delete specifically an equiped item that is supposed to be refined to +7, but when i have 3 jackets and one is equiped, my script keeps deleting the ones in the inventory first even when they are +0, then at last deletes the one equiped. I have tried many ways but i keep getting inventory items deleted or errors. Here's what i tried:
getinventorylist; for(set .@ida,0; .@ida < @inventorylist_count; set .@ida,.@ida+1) if (@inventorylist_refine[.@ida] == 7 && @inventorylist_id[.@ida] == 2304 && @inventorylist_equip[.@ida]) { delitem @inventorylist_id[.@ida],1; }
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.