astralprojection
New member
- Messages
- 334
- Points
- 0
i plan to make all items in inventory account bound with this code, my
problem now is that, If 2 same items found (example: 2 gloves_) only 1
gloves_ is bounded, the other is not. Can somebody help me with this
routine? Thanks
problem now is that, If 2 same items found (example: 2 gloves_) only 1
gloves_ is bounded, the other is not. Can somebody help me with this
routine? Thanks
Code:
//account bound all items.@boundtype = 1;getinventorylist();for(.@i = 0; .@i < @inventorylist_count; .@i++) { delitem2 @inventorylist_id[.@j],@inventorylist_amount[.@j],@inventorylist_identify[.@j],@inventorylist_refine[.@j],@inventorylist_attribute[.@j],@inventorylist_card1[.@j],@inventorylist_card2[.@j],@inventorylist_card3[.@j],@inventorylist_card4[.@j]; getitembound2 @inventorylist_id[.@j],@inventorylist_amount[.@j],@inventorylist_identify[.@j],@inventorylist_refine[.@j],@inventorylist_attribute[.@j],@inventorylist_card1[.@j],@inventorylist_card2[.@j],@inventorylist_card3[.@j],@inventorylist_card4[.@j],.@boundtype; .@j++;}