You need to make it loop through your equipment slots, bank them, and then delete them. It would be a bad idea to bank each item one by one.
|
Okay, So I made a new bank interface and I need the "Deposit Equipment" button to deposit the items I am wearing.
In clickingbutton I am trying to make the command but I couldnt figure out how to do it. I got deposit inventory but cant seem to do this.
Here is my code:
case 82024: //Deposit Worn Items
c.getItems().bankItem(What to put here?);
break;
I dont know ow I would make it so it pulls it from the slot into the bank?
Help?
You need to make it loop through your equipment slots, bank them, and then delete them. It would be a bad idea to bank each item one by one.
Maybe if you get it working some time, you should make a little snippet to help out those who don't have this?
Would personally find it useful myself.
OT: Sorry I couldn't help here, just wanted to share my thoughts on this
Wrote this in browser so not sure if it will work.
Code:case 82024: //Deposit Worn Items for (int i = 0; i < c.playerEquipment.length; i++) { int itemId = c.playerEquipment[i]; int itemAmount = c.playerEquipmentN[i]; c.getItems().removeItem(itemId, i); c.getItems().bankItem(itemId, c.getItems().getItemSlot(itemId), itemAmount); } break;
Sec ill post
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |