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

Reported Post by the black tux

Status
Not open for further replies.

The Black Tux

Veteran

The Black Tux Donor
Java Programmers
PHP Programmers
Joined
Apr 19, 2009
Sythe Gold
55
Messages
10,306
Location
Colombia
Vouch Thread
Click Here
Two Factor Authentication User
Sythe Awards 2011 Winner
Cook
Cool Kid
Former OMM
RsProd
Sythe Awards 2012 Winner
Village Drunk
the black tux has reported a post.

Reason:
Repeated thread
Post: why won't my first basic script work?
Forum: RSBot Help
Assigned Moderators: Darthatron, SuF

Posted by: hobbiez
Original Content:
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.
duelarena.gg
Back
Top