'Kyle 1 Posted November 20, 2018 Report Share Posted November 20, 2018 You know those pesky little rocks and bushes that you'd like to add around for some more aesthetic appeal? But there is an issue ...you aren't quite sure as to how to obtain the idea of the object, being that you cannot right-click and examine in debug-mode. Well, here you go! Hope this helps. case "objdebug": System.out.println("Standing on " + World.getObject(player)); Region r = World.getRegion(player.getRegionY() | (player.getRegionX() << 8)); if (r == null) { player.getPackets().sendGameMessage("Region is null!"); return true; } List<WorldObject> objects = r.getObjects(); if (objects == null) { player.getPackets().sendGameMessage("Objects are null!"); return true; } for (WorldObject o : objects) { if (o == null || !o.matches(player)) { continue; } System.out.println("Objects coords: " + o.getX() + ", " + o.getY()); System.out.println("[Object]: id=" + o.getId() + ", type=" + o.getType() + ", rot=" + o.getRotation() + "."); } return true; Link to comment Share on other sites More sharing options...
zopte2 1 Posted September 3, 2019 Report Share Posted September 3, 2019 ty for sharing Link to comment Share on other sites More sharing options...
0117be 66 Posted June 2, 2022 Report Share Posted June 2, 2022 cool Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now