Jump to content

Script laggs.


MassRS

Recommended Posts

So when i wrote my script but when it's up and running after some time it starts lagging really bad and gives this error in the logger:

[ERROR][Bot #1][01/17 07:46:41 PM]: Error in script executor!
java.lang.NullPointerException
at mWyverns.getState(mWyverns.java:134)
at mWyverns.onLoop(mWyverns.java:142)
at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(qf:131)
at java.lang.Thread.run(Unknown Source)
at line 134 i have this:
		GroundItem bone = getGroundItems().closestThatContains("potion","Clue", "Adamant", "Granite", "Uncut", "key", "logs", "Runite", "battlestaff", "Rune", "Dragon", "Snapdragon", "Ranarr", "bar", "Draconic","bones");

if (bone.isOnScreen())
	return State.LOOT;

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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