Jump to content

Picking up ground item problem


Reid

Recommended Posts

Is it just me or is it something with the api?

	private Condition canPickupBones = new Condition(){
		GroundItem bone;
		@Override
		public boolean validate() {
			bone = s.groundItems.closest(526,532);
			return bone != null && !s.inventory.isFull() && bone.getPosition().distance(s.myPlayer().getPosition()) <= 5 && dFighterGUI.tglbtnBp.isSelected();
		}

		@Override
		public void execute() throws InterruptedException {
			bone.interact("Take");
			Script.sleep(Script.random(2000));
		}
	};

ERROR : 

[ERROR][Bot #1][06/01 01:11:14 PM]: Error in script executor!
java.lang.NullPointerException
	at org.dscripts.drunescape.scripts.dFighter$3.validate(dFighter.java:67)
	at org.dscripts.drunescape.scripts.dFighter.executeScript(dFighter.java:23)
	at org.dscripts.drunescape.dRunescape.onLoop(dRunescape.java:31)
	at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(zm:105)
	at java.lang.Thread.run(Unknown Source)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...