Eliot Posted September 26, 2014 Posted September 26, 2014 Look in Player or Position there should be a getZ() somewhere.
BrownBird Posted September 26, 2014 Author Posted September 26, 2014 Opps :p I mean't through the client, I'm not sure what Z coord I'm currently on and I cannot find out how to get it..
Isolate Posted September 26, 2014 Posted September 26, 2014 Opps I mean't through the client, I'm not sure what Z coord I'm currently on and I cannot find out how to get it.. Does player location debug show it? or you could just make a script to log it or draw your coords on the screen.
Isolate Posted September 26, 2014 Posted September 26, 2014 If for some reason or another the debug option 'location' doesn't show z/Plane. you could always: //manifest public class Coords extends Script { @Override public int onLoop() throws InterruptedException { return 700; } @Override public void onStart() throws InterruptedException { log("Beginning Position Debug."); } private final Color color1 = new Color(255, 255, 255); private final Color color2 = new Color(0, 0, 0); private final BasicStroke stroke1 = new BasicStroke(1); private final Font font1 = new Font("Arial", 1, 15); @Override public void onPaint(Graphics2D g) { g.setColor(color1); g.fillRect(3, 4, 106, 63); g.setColor(color2); g.setStroke(stroke1); g.drawRect(3, 4, 106, 63); g.setFont(font1); g.drawString("Coords:", 8, 17); g.drawString("X - " + myPlayer().getPosition().getX(), 6, 33); g.drawString("Y - " + myPlayer().getPosition().getY(), 6, 48); g.drawString("Z - " + myPlayer().getPosition().getZ(), 8, 63); } }
BrownBird Posted September 26, 2014 Author Posted September 26, 2014 If for some reason or another the debug option 'location' doesn't show z/Plane. you could always: //manifest public class Coords extends Script { @Override public int onLoop() throws InterruptedException { return 700; } @Override public void onStart() throws InterruptedException { log("Beginning Position Debug."); } private final Color color1 = new Color(255, 255, 255); private final Color color2 = new Color(0, 0, 0); private final BasicStroke stroke1 = new BasicStroke(1); private final Font font1 = new Font("Arial", 1, 15); @Override public void onPaint(Graphics2D g) { g.setColor(color1); g.fillRect(3, 4, 106, 63); g.setColor(color2); g.setStroke(stroke1); g.drawRect(3, 4, 106, 63); g.setFont(font1); g.drawString("Coords:", 8, 17); g.drawString("X - " + myPlayer().getPosition().getX(), 6, 33); g.drawString("Y - " + myPlayer().getPosition().getY(), 6, 48); g.drawString("Z - " + myPlayer().getPosition().getZ(), 8, 63); } } That's what I ended up doing Thanks though! I thought this would've been built into the client though...
Joseph Posted September 26, 2014 Posted September 26, 2014 That's what I ended up doing Thanks though! I thought this would've been built into the client though... Map#getPlane