• Log in or sign up for an account here: https://www.sythe.org/login

why won't my first basic script work?

Status
Not open for further replies.

hobbiez

Newcomer
Joined
Dec 19, 2008
Sythe Gold
0
Messages
6
why won't my first basic script work?
All i'm trying to make the script do, is make it walk from lumbo castle to a little before the cow area, but the script wont start/compile/work for some reason. Its my first ever script and its VERY basic, but im clueless. PLEASEE HELPP ME. give me all suggestions, thanks.






import com.speljohan.rsbot.script.*;
import com.speljohan.rsbot.script.wrappers.*;

public class lumbogs extends Script {

RSTile[] myTiles = new RSTile[] {
new RSTile(3221, 3218),
new RSTile(3232, 3219),
new RSTile(3238, 3225),
new RSTile(3247, 3226),
new RSTile(3257, 3226),
new RSTile(3260, 3232),
new RStile(3260, 3238) };

RSTilePath myPath = new RSTilePath(myTiles, this); // We declare a new
// RSTilePath and tell
// it to use the tiles
// stores in 'myTiles'

public String getName() {
return "lumbo general store walker";
}

public String getAuthor() {
return "jeremy";
}

public String getScriptCategory() {
return "walking";
}

public double getVersion() {
return 0;
}

public boolean onStart(String[] args) {
return true;
}

public int loop() {
try {
myPath.walkToEnd();
myPath.walkToStart();
} catch (Exception e) {
log("An error occured whilst walking");
}
return -1;
}

}
 
Status
Not open for further replies.
Runescape Gamblingrunescape gambling
Back
Top