Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 4.28 KB | None | 0 0
  1. import org.parabot.environment.api.utils.Time;
  2. import org.parabot.environment.scripts.framework.SleepCondition;
  3. import org.rev317.min.api.methods.Menu;
  4. import org.rev317.min.api.methods.Players;
  5.  
  6. public enum Location {
  7.     //Monsters
  8.     ZIRCONIS(18831, "monster"),
  9.     ALIEN(18832, "monster"),
  10.     LE_FOSH(18833, "monster"),
  11.     SKIADRUM(18837, "monster"),
  12.     WEISSLOGIA(18838, "monster"),
  13.     ALLAN(18839, "monster"),
  14.     ARTILLERY(18840, "monster"),
  15.     BIG_BLACK_BEAST(18841, "monster"),
  16.     BELERION(18842, "monster"),
  17.     AQUANITE(18843, "monster"),
  18.     AURELIA(18844, "monster"),
  19.     LIVYATHANN(18845, "monster"),
  20.  
  21.     //Bosses
  22.     GROUDON(18831, "bosses"),
  23.     ABBADON(18832, "bosses"),
  24.     BANDOS_AVATAR(18833, "bosses"),
  25.     BAPHOMET(18834, "bosses"),
  26.     PHOENIX(18835, "bosses"),
  27.     VLADIMIR(18836, "bosses"),
  28.     SKOTIZO(18837, "bosses"),
  29.     DRAGONIX(18838, "bosses"),
  30.     QUEEN_DIANA(18839, "bosses"),
  31.     DANK_MONSTER(18840, "bosses"),
  32.     KBD_WARRIOR(18841, "bosses"),
  33.     NULGATH(18842, "bosses"),
  34.  
  35.     //Donator
  36.     REGULAR_DONATOR(18831, "donator"),
  37.     SUPER_DONATOR(18832, "donator"),
  38.     EXTREME_DONATOR(18833, "donator"),
  39.     SPONZER_ZONE(18834, "donator"),
  40.     EXECUTIVE_ZONE(18835, "donator"),
  41.  
  42.     //Wilderness
  43.     SAFE_PVP(18831, "wilderness"),
  44.     WEST_DRAGONS(18832, "wilderness"),
  45.     CHAOS_ALTAR(18833, "wilderness"),
  46.     WILDERNES_CASTLE(18834, "wilderness"),
  47.     EAST_DRAGONS(18835, "wilderness"),
  48.     GREEN_DRAGONS(18836, "wilderness"),
  49.     RUNE_ROCKS(18837, "wilderness"),
  50.     GREATER_DEMONS(18838, "wilderness"),
  51.     ICE_PLATEAU(18839, "wilderness"),
  52.     ROGUES_CASTLE(18840, "wilderness"),
  53.     RESOURCE_AREA(18841, "wilderness"),
  54.     REVENANT_TOWN(18842, "wilderness"),
  55.  
  56.     //Minigames
  57.     FANTASY_RAIDS(18831, "minigames"),
  58.     MARVEL_RAIDS(18832, "minigames"),
  59.     BETHLEHEM_WARRIOS(18833, "minigames"),
  60.     NEX(18834, "minigames"),
  61.     AFK_TREE(18835, "minigames"),
  62.     ENERGY(18836, "minigames"),
  63.     THREE_BROS(18837, "minigames"),
  64.     THREE_GROS(18838, "minigames"),
  65.     GLACORS(18839, "minigames"),
  66.     SHADES_AOE(18840, "minigames"),
  67.     PEST_CONTROL(18841, "minigames"),
  68.     GODWARS(18842, "minigames"),
  69.     ZULRAH(18838, "minigames"),
  70.     DRAGONBONE_CORP(18839, "minigames"),
  71.     UNDEAD_CERBERUS(18840, "minigames"),
  72.     LIZ_SHAMAN(18841, "minigames"),
  73.     BLOOD_WOLF(18842, "minigames"),
  74.  
  75.     //Titans
  76.     MADARA_UCHIHA(18831, "titans"),
  77.     BLOODLUST_SHADOWLORD(18832, "titans"),
  78.     GUNDAM(18833, "titans"),
  79.     DRAGONBALL_Z_ONE(18837, "titans"),
  80.     DRAGONBALL_Z_TWO(18838, "titans"),
  81.     DRAGONBALL_Z_THREE(18839, "titans"),
  82.     NARUTO_UZUMAKI(18843, "titans"),
  83.     SASUKE_UCHIHA(18844, "titans"),
  84.     SAKURA(18845, "titans"),
  85.     SHADOW_LORD(18849, "titans"),
  86.     MINI_TITANS(18850, "titans"),
  87.     MINI_GOKUS(18851, "titans"),
  88.     ;
  89.  
  90.     public int action3;
  91.     private String category;
  92.  
  93.     Location(int action3, String category) {
  94.         this.action3 = action3;
  95.         this.category = category;
  96.     }
  97.  
  98.     public int getAction3() {
  99.         return action3;
  100.     }
  101.  
  102.     public String getCategory() {
  103.         return category;
  104.     }
  105.  
  106.     public static void teleport(Location location) {
  107.         switch (location.category) {
  108.             case "monster":
  109.                 Menu.sendAction(315, 0,0,18815, 1);
  110.                 break;
  111.             case "bosses":
  112.                 Menu.sendAction(315, 0,0,18816, 1);
  113.                 break;
  114.             case "donator":
  115.                 Menu.sendAction(315, 0,0,18817, 1);
  116.                 break;
  117.             case "wilderness":
  118.                 Menu.sendAction(315, 0,0,18818, 1);
  119.                 break;
  120.             case "minigames":
  121.                 Menu.sendAction(315, 0,0,18819, 1);
  122.                 break;
  123.             case "titans":
  124.                 Menu.sendAction(315, 0,0,18820, 1);
  125.                 break;
  126.  
  127.         }
  128.         Time.sleep(200);
  129.         Menu.sendAction(315, 0, 0, location.action3, 1);
  130.         Time.sleep(200);
  131.         Menu.sendAction(315, 1852, 471, 18810, 1);
  132.         Time.sleep(new SleepCondition() {
  133.             @Override
  134.             public boolean isValid() {
  135.                 return Players.getMyPlayer().getAnimation() == -1;
  136.             }
  137.         }, 1500);
  138.     }
  139.  
  140.     public void teleport() {
  141.         teleport(this);
  142.     }
  143. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement