open it?
handle each cId to remove the item in slot X (if has inv space etc obv)
|
If i open the bank tab first then closes it, and then goes on to open the equipment tab, it bugs out, only loading the inventoryinterface.
but the Equipment Interface Dosent open.
Would appreciate it, if anyone have a quickfix.
-Im using 718 Matrix
open it?
handle each cId to remove the item in slot X (if has inv space etc obv)
The "openEquipmentBonuses" void, already tells the system to open the equipment interface.
public static void openEquipmentBonuses(final Player player, boolean banking) {
player.stopAll();
player.getInterfaceManager().sendInterface(667);
player.getInterfaceManager().sendInventoryInterfac e(670);
player.getPackets().sendConfigByFile(4894, banking ? 1 : 0);
player.getPackets().sendItems(93,
player.getInventory().getItems());
player.getPackets().sendInterSetItemsOptionsScript (670, 0, 93,
4, 7, "Equip", "Compare", "Stats", "Examine");
player.getPackets().sendUnlockIComponentOptionSlot s(670, 0, 0,
27, 0, 1, 2, 3);
player.getPackets().sendUnlockIComponentOptionSlot s(667, 9, 0, 14, 0);
player.getPackets().sendIComponentSettings(667, 14, 0, 13, 1030);
refreshEquipBonuses(player);
if(banking) {
player.getTemporaryAttributtes().put("Banking", Boolean.TRUE);
player.setCloseInterfacesEvent(new Runnable() {
@Override
public void run() {
player.getTemporaryAttributtes().remove("Banking") ;
}
});
}
}
I guess there's is a varp or varpbit is being sent on interface close just search in clientscripts or go runescape and dump what config is being sent on close
Don't have a fix for the closing though.Code:public static void openEquipmentBonuses(final Player player, boolean banking) { player.stopAll(); player.getInterfaceManager().sendInventoryInterface(670); player.getInterfaceManager().sendInterface(667); player.getPackets().sendUnlockIComponentOptionSlots(667, 9, 0, 14, 0); player.getPackets().sendConfigByFile(4894, banking ? 1 : 0); player.getPackets().sendItems(93, player.getInventory().getItems()); player.getPackets().sendInterSetItemsOptionsScript(670, 0, 93, 4, 7, "Equip", "Compare", "Stats", "Examine"); player.getPackets().sendUnlockIComponentOptionSlots(670, 0, 0, 27, 0, 1, 2, 3); player.getPackets().sendIComponentSettings(667, 14, 0, 13, 1030); refreshEquipBonuses(player); if(banking) { player.getTemporaryAttributtes().put("Banking", Boolean.TRUE); player.setCloseInterfacesEvent(new Runnable() { @Override public void run() { player.getTemporaryAttributtes().remove("Banking"); } }); } }
Ty baby boys.
- - - Updated - - -
meh still having issues, i tried adding all the configs from the screen tab interface id: 28. into the Void:closeInterfaces, which didnt fix anything. dunno if i did anything wrong
- - - Updated - - -
i even tried all the bank interface configs. im out of ideas. dunno if im doing anything wrong
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |