Jump to content

Hooking mirror mode incorrectly (end-user issue)


Czar

Recommended Posts

This bug is geared toward newer mirror users who commonly hook mirror mode with their RS account logged in already
 
8fb02ce212988700fd3241bb8eb33a0f.png
 
This issue has been reported before, and it has improved, however inventory items are still messed up:
 
getInventory() exists
getInventory().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 :D

 

thanks 

  • Like 3
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...