Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- g.setColor(Color.RED);
- Tile t = new Tile(getMyPlayer().getLocation().getX(), getMyPlayer().getLocation().getY()-1);
- byte[][][] groundSettings = getClient().getGroundSettingsArray();
- boolean bool = true;
- String type = "";
- int id = -1;
- int ret = groundSettings[getClient().getCurrentPlane()][t.getX() - getClient().getBaseX()][t.getY() - getClient().getBaseY()];
- try {
- bool = !(objects.getObjectsAt(t)[0].getType().equals(com.kbotpro.scriptsystem.wrappers.PhysicalObject.Type.BOUNDARY) && ret == 1);
- if(bool)
- bool = !(objects.getObjectsAt(t)[0].getType().equals(com.kbotpro.scriptsystem.wrappers.PhysicalObject.Type.INTERACTIVE));
- type = "" + objects.getObjectsAt(t)[0].getType();
- id = objects.getObjectsAt(t)[0].getID();
- } catch(Exception e) { }
- g.drawString("ONE TILE DOWN: " + ret + " (ID: " + id + ")", 50, 50);
- g.drawString("Tile walkable? " + (bool), 50, 65);
- g.drawString("Type: " + type, 50, 80);
- g.drawOval((int)calculations.tileToScreen(t).getX(), (int)calculations.tileToScreen(t).getY(), 3, 3);
Add Comment
Please, Sign In to add comment