Advertisement
Guest User

test123123

a guest
Apr 20th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package scripts;
  2.  
  3. import org.tribot.api.General;
  4. import org.tribot.api.interfaces.Positionable;
  5. import org.tribot.api2007.Banking;
  6. import org.tribot.api2007.Camera;
  7. import org.tribot.api2007.Inventory;
  8. import org.tribot.api2007.NPCChat;
  9. import org.tribot.api2007.NPCs;
  10. import org.tribot.api2007.Objects;
  11. import org.tribot.api2007.Player;
  12. import org.tribot.api2007.Players;
  13. import org.tribot.api2007.Trading;
  14. import org.tribot.api2007.WebWalking;
  15. import org.tribot.api2007.types.RSArea;
  16. import org.tribot.api2007.types.RSNPC;
  17. import org.tribot.api2007.types.RSObject;
  18. import org.tribot.api2007.types.RSPlayer;
  19. import org.tribot.api2007.types.RSTile;
  20. import org.tribot.script.Script;
  21. import org.tribot.script.ScriptManifest;
  22.  
  23. @ScriptManifest(authors = { "turbo" }, category = "quests", name = "test romeojhuliethuke", version = 1.00, description = "GXSZr.")
  24.  
  25. public class test123xd extends Script {
  26. public static final RSArea JulietPirm = new RSArea(new RSTile [] { new RSTile(3159, 3435, 0) });
  27. public static final RSArea JulietAntr = new RSArea(new RSTile [] { new RSTile(3159, 3435, 0),new RSTile(3159, 3436, 0),new RSTile(3160, 3436, 0),new RSTile(3160, 3435, 0) });
  28. public static final RSArea Lawrence = new RSArea(new RSTile [] { new RSTile(3252, 3484, 0),new RSTile(3252, 3480, 0),new RSTile(3255, 3480, 0),new RSTile(3255, 3484, 0) });
  29.  
  30.  
  31. private static final String ID_DOOR = null;
  32.  
  33.     @Override
  34.     public void run()
  35.     {
  36.         while(true)
  37.         {
  38.             General.sleep(300);
  39.         {
  40.  
  41.        
  42.             walkTo(JulietPirm);
  43.             climbUp(11797);
  44.             walkTo(JulietAntr);
  45.            
  46.        
  47.    
  48.  
  49.    
  50.         }
  51.         }
  52.        
  53.     }
  54.    
  55.  
  56.    
  57.  
  58.  
  59.     void walkTo(RSArea kintamasis) {
  60.         if(!kintamasis(Player.getPosition())) {
  61.             WebWalking.walkTo(kintamasis.getRandomTile());
  62.            
  63.             }
  64.     }
  65.    
  66.     private boolean kintamasis(RSTile position) {
  67.         // TODO Auto-generated method stub
  68.         return false;
  69.     }
  70.  
  71.  
  72.        
  73.        
  74.    
  75.     private void climbUp(int OBJ_ID) {
  76.         RSTile currentTile = Player.getPosition();
  77.         RSObject[] x = Objects.find(6, OBJ_ID);
  78.         if(x.length > 0 && x[0] != null) {
  79.             x[0].click("Climb-up");
  80.             sleep(1200,1300);
  81.             int i = 0;
  82.             while(Player.getPosition().equals(currentTile) && Player.getPosition().getPlane() == currentTile.getPlane() && i < 5) {
  83.                 x[0].click("Climb-up");
  84.                 sleep(800,900);
  85.                 i++;
  86.             }      
  87. }
  88. }
  89.     void zinute(String tekstas) {
  90.         String zinute1 = NPCChat.getMessage();
  91.         while(zinute1 == null) {
  92.             sleep(1000);
  93.             println("miegu 1sec, nera zinutes");
  94.             zinute1 = NPCChat.getMessage();
  95.         }
  96.         while(zinute1.contains(tekstas) == false) {
  97.             sleep(1000);
  98.             println("miegu 1sec, tekstas nera zinuteje");
  99.             }
  100.         NPCChat.clickContinue(true);
  101.         sleep(2000);
  102.         }
  103.  
  104.  
  105.     void pasirinkimai(String pasirinkimas) {
  106.         String[] optionsai = NPCChat.getOptions();
  107.         while(optionsai == null) {
  108.             sleep(1000);
  109.             println("miegu 1sec, nera optionsu");
  110.             optionsai = NPCChat.getOptions();
  111.         }
  112.         NPCChat.selectOption(pasirinkimas, true);
  113.         sleep(2000);
  114.     }
  115.    
  116. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement