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:
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 [email protected],0; [email protected] < @inventorylist_count; set [email protected],[email protected]+1) if (@inventorylist_refine[[email protected]] == 7 && @inventorylist_id[[email protected]] == 2304 && @inventorylist_equip[[email protected]]) { delitem @inventorylist_id[[email protected]],1; }Thanks in advance
Link to comment
Share on other sites