Advertisement
Guest User

Untitled

a guest
Feb 25th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.88 KB | None | 0 0
  1. import org.dreambot.api.methods.map.Tile;
  2. import org.dreambot.api.methods.quest.Quest;
  3. import org.dreambot.api.methods.tabs.Tab;
  4. import org.dreambot.api.script.AbstractScript;
  5. import org.dreambot.api.script.Category;
  6. import org.dreambot.api.script.ScriptManifest;
  7.  
  8. import static org.dreambot.api.methods.magic.Normal.LUMBRIDGE_TELEPORT;
  9.  
  10. @ScriptManifest(
  11.         author = "depwession",
  12.         description = "ye",
  13.         category = Category.MISC,
  14.         version = 0.01,
  15.         name = "Starter"
  16. )
  17.  
  18. public class Main extends AbstractScript {
  19.  
  20.     Tile lumb = new Tile(3221,3217);
  21.  
  22.     @Override
  23.     public int onLoop(){
  24.         if (!getLocalPlayer().isAnimating()) {
  25.             if (getQuests().isFinished(Quest.THE_RESTLESS_GHOST)) {
  26.                 if (getQuests().isFinished(Quest.ROMEO_AND_JULIET)) {
  27.                     if (getQuests().isFinished(Quest.SHEEP_SHEARER)) {
  28.                         getTabs().open(Tab.MAGIC);
  29.                         sleep(100,120);
  30.                         getMagic().castSpell(LUMBRIDGE_TELEPORT);
  31.                         sleep(80,100);
  32.                         if (getLocalPlayer().equals(lumb)){
  33.                             stop();
  34.                         }else{
  35.                             sleep(60,110);
  36.                             getWalking().walk(lumb);
  37.                             stop();
  38.                         }
  39.                     }else {
  40.                         sleep(40, 60);
  41.                         getTabs().logout();
  42.                         stop();
  43.                     }
  44.                 }else {
  45.                     sleep(40, 60);
  46.                     getTabs().logout();
  47.                     stop();
  48.                 }
  49.             }else{
  50.                 sleep(40,60);
  51.                 getTabs().logout();
  52.                 stop();
  53.             }
  54.         }else{
  55.             sleep(100);
  56.         }
  57.         return 0;
  58.     }
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement