Guest User

Untitled

a guest
Jul 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. g.setColor(Color.RED);
  2. Tile t = new Tile(getMyPlayer().getLocation().getX(), getMyPlayer().getLocation().getY()-1);
  3. byte[][][] groundSettings = getClient().getGroundSettingsArray();
  4. boolean bool = true;
  5. String type = "";
  6. int id = -1;
  7. int ret = groundSettings[getClient().getCurrentPlane()][t.getX() - getClient().getBaseX()][t.getY() - getClient().getBaseY()];
  8. try {
  9. bool = !(objects.getObjectsAt(t)[0].getType().equals(com.kbotpro.scriptsystem.wrappers.PhysicalObject.Type.BOUNDARY) && ret == 1);
  10. if(bool)
  11. bool = !(objects.getObjectsAt(t)[0].getType().equals(com.kbotpro.scriptsystem.wrappers.PhysicalObject.Type.INTERACTIVE));
  12.  
  13. type = "" + objects.getObjectsAt(t)[0].getType();
  14.  
  15. id = objects.getObjectsAt(t)[0].getID();
  16.  
  17. } catch(Exception e) { }
  18. g.drawString("ONE TILE DOWN: " + ret + " (ID: " + id + ")", 50, 50);
  19. g.drawString("Tile walkable? " + (bool), 50, 65);
  20. g.drawString("Type: " + type, 50, 80);
  21. g.drawOval((int)calculations.tileToScreen(t).getX(), (int)calculations.tileToScreen(t).getY(), 3, 3);
Add Comment
Please, Sign In to add comment