Czar Posted October 20, 2015 Posted October 20, 2015 This bug is geared toward newer mirror users who commonly hook mirror mode with their RS account logged in already This issue has been reported before, and it has improved, however inventory items are still messed up: getInventory() existsgetInventory().getItems() exists however the actual items are messed up, and their names = null code: @Override public void onPaint(Graphics2D g) { int x = 15; int y = 90; boolean invNull = getInventory() != null; g.drawString("Inv exists = " + invNull, x, y += 15); if (getInventory() == null) { return; } boolean invItems = getInventory().getItems() != null; g.drawString("Inv items exist = " + invItems, x, y += 15); if (getInventory().getItems() == null) { return; } int slot = 0; for (Item i : getInventory().getItems()) { g.drawString("Item[" + slot + "] = " + i.getName(), x, y += 15); slot++; } } this bug leads to ALOT of spam posts and help threads, so it benefits not only script writers, but the entire community thanks 3
Developer MGI Posted October 25, 2015 Developer Posted October 25, 2015 This is a limitation related to osbot core. Please attach to client right after its done loading and most importantly - BEFORE logging in.
Developer Zach Posted October 26, 2015 Developer Posted October 26, 2015 Someone moved this to archive, so I'm unpinning it.