Skip to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

myPlayer().getPosition.equal();

Featured Replies

myPlayer().getPosition.equal() works

 

buy myPlayer().getZ()==3 doesnt work for me

Edited by josedpay

myPlayer().getPosition.equal() works

 

buy myPlayer().getZ()==3 doesnt work for me

 

Define doesn't work.

  • Author

 

myPlayer().getPosition.equal() works

 

buy myPlayer().getZ()==3 doesnt work for me

 

Define doesn't work.

 

ok if i try checking to see if myZ()==3 all i get is a nullPointer

 

 

myPlayer().getPosition.equal() works

 

buy myPlayer().getZ()==3 doesnt work for me

 

Define doesn't work.

 

ok if i try checking to see if myZ()==3 all i get is a nullPointer

 

Without see the exact error message, I am not entirely sure, but maybe myZ() is returning null.

  • Author

 

 

 

myPlayer().getPosition.equal() works

 

buy myPlayer().getZ()==3 doesnt work for me

 

Define doesn't work.

 

ok if i try checking to see if myZ()==3 all i get is a nullPointer

 

Without see the exact error message, I am not entirely sure, but maybe myZ() is returning null.

 

ill get your the exact error now

 

edit:

Error on executing script worker!
java.lang.NullPointerException
	at SlimeCollector.climb(SlimeCollector.java:231)
	at SlimeCollector.onLoop(SlimeCollector.java:114)
	at org.osbot.lpt6.run(ih:106)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

Edited by josedpay


if(client.getMyPlayer() != null)

{

if(client.getMyPlayer().getZ() == 3)

{

log("On Level 3");

}

else

{

log("Not On Level 3");

}

}

  • Author

thanks that worked

 

edit:

it worked once and never worked again 

Edited by josedpay

  • Author

well at the moment this works. 

			if (client.getMyPlayer().getPosition().getZ() == 0)	{
				log("Your Z ==0");
			}else {
				this.log("Your Z !=0");
			}
			return 500;
		}

ill try it out tomorrow, ill report back

I believe it's suppose to be

client.getMyPlayer().getPosition().getZ()

Rather than
client.getMyPlayer().getZ()

  • Author

I believe it's suppose to be

client.getMyPlayer().getPosition().getZ()

Rather than

client.getMyPlayer().getZ()

Well before the earlier bot updates "client.myPlayer().getZ()" would always work for me.

im getting so fucking pissed!!!!!!!!!!!!!!!!!!!! angry.png , im using  

client.getMyPlayer().getPosition().getZ()

 i havent changed anything. and im getting the same fucking error -.-"!!!!!!!!!!!!!!

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.