Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.rsbot.script.ScriptManifest;
- import org.rsbot.script.Script;
- import org.rsbot.script.wrappers.RSObject;
- import org.rsbot.script.wrappers.RSTile;
- import org.rsbot.script.wrappers.RSArea;
- @ScriptManifest(authors = { "oxas" }, keywords = { "LumbridgeToGe" }, name = "LumbridgeToGe", version = 1.0, description = "Walks from Lumbridge(direct after home tele) to GE!")
- public class LumbridgeToGe extends Script {
- private RSTile[] walkingPath ={ new RSTile(3225, 3236),
- new RSTile(3218, 3253),
- new RSTile(3215, 3270),
- new RSTile(3199, 3280),
- new RSTile(3189, 3295),
- new RSTile(3181, 3310),
- new RSTile(3174, 3327),
- new RSTile(3176, 3344),
- new RSTile(3177, 3361),
- new RSTile(3191, 3371),
- new RSTile(3207, 3377),
- new RSTile(3211, 3393),
- new RSTile(3210, 3411),
- new RSTile(3206, 3428),
- new RSTile(3196, 3443),
- new RSTile(3180, 3451),
- new RSTile(3165, 3460),
- new RSTile(3164, 3477),
- new RSTile(3164, 3486)};
- private RSArea geArea = { new RSTile(3160, 3492),
- new RSTile(3169, 3494)};
- private RSArea lumbridgeArea = {new RSTile(3217, 3215),
- new RSTile(3225, 3226)};
- public boolean onStart(){
- log("Going there!");
- return true;
- }
- public int loop(){
- if(lumbridgeArea.contains(getMyPlayer().getLocation())){
- return random(500, 700);
- }else{
- if(walking.getDestination() == null || calc.distanceTo(walking.getDestination()) < random(4, 6)){
- walking.walkPathMM(walkingPath);
- return random(300, 600);
- }
- }
- public void onFinish(){
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement