thats the way it shut be..
|
|
thats the way it shut be..

hmm what exactly is the problem???
Moved it to the correct section btw.
Im guessing he wants them to stay in the same spot when u drink a pot etc.
I want them to behave like they do in real Runescape, and not move to the first available slot in my inventory.
Open your ItemOption1.java and add or replace:
If you get int errors, add above (under handlePacket):Code:case 387: // Unequip item. if (itemSlot < p.equipment.length && p.equipment[itemSlot] == itemId) { if (!Engine.playerItems.addItem(p, p.equipment[itemSlot], p.equipmentN[itemSlot])) { break; } p.equipment[itemSlot] = -1; p.equipmentN[itemSlot] = 0; p.frames.setItems(p, 387, 28, 94, p.equipment, p.equipmentN); p.playerWeapon.setWeapon(); p.appearanceUpdateReq = true; p.updateReq = true; p.calculateEquipmentBonus(); } break;
Code:int itemSlot = p.stream.readUnsignedWordBigEndianA(); int interfaceId = p.stream.readUnsignedWord(); int junk = p.stream.readUnsignedWord(); int itemId = p.stream.readUnsignedWord();


ItemOption1 is irrelevant as unequiping directly should go to the first slot, for this problem you need the equipping packet class, which also includes 'passive' unequiping (replacing) and the itemselect packet class for potions etc
| « Z508 Duel Arena [Help] | Interrupted » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |