- Thread Author
- #1
Hey,
I searched through the tutorials on this website and try the following code :
When i start the script my mouse laggs and after some minutes the bot crashes and nothing worked.
here the error code :
Please help me
Thanks!!!
I searched through the tutorials on this website and try the following code :
Code:
package com.test.first;
import com.runemate.game.api.client.paint.PaintListener;
import com.runemate.game.api.hybrid.local.hud.interfaces.Bank;
import com.runemate.game.api.script.framework.LoopingScript;
import com.runemate.game.api.client.paint.PaintListener;
import com.runemate.game.api.hybrid.input.Mouse;
import com.runemate.game.api.hybrid.location.Area;
import com.runemate.game.api.hybrid.location.Coordinate;
import com.runemate.game.api.hybrid.net.GrandExchange;
import com.runemate.game.api.hybrid.util.StopWatch;
import com.runemate.game.api.script.framework.task.TaskScript;
import java.awt.*;
/**
* Created by domen on 19.02.2016.
*/
public class mainClass extends LoopingScript{
private String aSetting;
@Override
public void onStart(String... args) {
//Sets the length of time in milliseconds to wait before calling onLoop again
setLoopDelay(400, 800);
//Load script configuration
aSetting = getSettings().getProperty("setting");
}
@Override
public void onLoop() {
//logic goes here
System.out.println("Round");
}
}
When i start the script my mouse laggs and after some minutes the bot crashes and nothing worked.
here the error code :
Code:
(03:08:52) Interface closer has been activated!
(03:08:58) java.lang.StringIndexOutOfBoundsException: String index out of range: -1
(03:08:58) at java.lang.String.charAt(String.java:658)
(03:08:58) at nul.iIIiIIiIIiii.spoof_startup_error(Unknown Source)
(03:08:58) at pj.v(pj.java:42)
(03:08:58) at rw.run(rw.java:508)
(03:08:58) at java.lang.Thread.run(Thread.java:745)
(03:08:58) error_game_crash
(03:08:58) The game attempted to load http://world10.runescape.com/k=3/error_game_crash.ws.
Process finished with exit code 0
Thanks!!!
Last edited: