why won't my first basic script work?

Discussion in 'Archives' started by hobbiez, May 24, 2009.

Thread Status:
Not open for further replies.
why won't my first basic script work?
  1. Unread #1 - May 24, 2009 at 12:00 AM
  2. hobbiez
    Joined:
    Dec 19, 2008
    Posts:
    6
    Referrals:
    1
    Sythe Gold:
    0

    hobbiez Newcomer

    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;
    }

    }
     
< WHy some times connection fail in Sythe | borrowing a ss >

Users viewing this thread
1 guest
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site