Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.72 KB | None | 0 0
  1. import org.rsbot.script.ScriptManifest;
  2. import org.rsbot.script.Script;
  3.  
  4. import org.rsbot.script.wrappers.RSObject;
  5. import org.rsbot.script.wrappers.RSTile;
  6. import org.rsbot.script.wrappers.RSArea;
  7.  
  8. @ScriptManifest(authors = { "oxas" }, keywords = { "LumbridgeToGe" }, name = "LumbridgeToGe", version = 1.0, description = "Walks from Lumbridge(direct after home tele) to GE!")
  9. public class LumbridgeToGe extends Script {
  10.  
  11.     private RSTile[] walkingPath ={ new RSTile(3225, 3236),
  12.                                     new RSTile(3218, 3253),
  13.                                     new RSTile(3215, 3270),
  14.                                     new RSTile(3199, 3280),
  15.                                     new RSTile(3189, 3295),
  16.                                     new RSTile(3181, 3310),
  17.                                     new RSTile(3174, 3327),
  18.                                     new RSTile(3176, 3344),
  19.                                     new RSTile(3177, 3361),
  20.                                     new RSTile(3191, 3371),
  21.                                     new RSTile(3207, 3377),
  22.                                     new RSTile(3211, 3393),
  23.                                     new RSTile(3210, 3411),
  24.                                     new RSTile(3206, 3428),
  25.                                     new RSTile(3196, 3443),
  26.                                     new RSTile(3180, 3451),
  27.                                     new RSTile(3165, 3460),
  28.                                     new RSTile(3164, 3477),
  29.                                     new RSTile(3164, 3486)};
  30.                                    
  31.     private RSArea geArea = {   new RSTile(3160, 3492),
  32.                                 new RSTile(3169, 3494)};
  33.                                
  34.     private RSArea lumbridgeArea = {new RSTile(3217, 3215),
  35.                                     new RSTile(3225, 3226)};
  36.  
  37.     public boolean onStart(){
  38.             log("Going there!");
  39.         return true;
  40.     }
  41.  
  42.     public int loop(){
  43.         if(lumbridgeArea.contains(getMyPlayer().getLocation())){
  44.             return random(500, 700);
  45.         }else{
  46.             if(walking.getDestination() == null || calc.distanceTo(walking.getDestination()) < random(4, 6)){
  47.                     walking.walkPathMM(walkingPath);
  48.                     return random(300, 600);
  49.             }
  50.        
  51.         }
  52.    
  53.            
  54.    
  55.    
  56.         public void onFinish(){
  57.        
  58.     }
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement