joedezzy1

AntiBan

Mar 4th, 2014
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. package scripts.Runecrafter.RCPro;
  2.  
  3. import org.tribot.api.General;
  4. import org.tribot.api.input.Mouse;
  5. import org.tribot.api2007.GameTab;
  6. import org.tribot.api2007.GameTab.TABS;
  7. import org.tribot.script.Script;
  8.  
  9. public class AntiBan extends Script {
  10.  
  11. //when ruins arent there in sleep if in a cetain area, walk to ruins again. Than flawless
  12. @Override
  13. public void run() {
  14.  
  15. }
  16.  
  17. public AntiBan()
  18. {
  19. int x = General.random(1, 50);
  20.  
  21. int XPCheck = General.random(1, 15);
  22. int CheckFriends = General.random(10, 20);
  23. int SleepyTime = General.random(10, 40);
  24.  
  25. if(x == XPCheck)
  26. CheckXP();
  27.  
  28. else if(x == CheckFriends)
  29. CheckFriends();
  30.  
  31. else if(x == SleepyTime)
  32. sleep(1000, 2700);
  33.  
  34.  
  35. }
  36.  
  37.  
  38. private void CheckFriends() {
  39.  
  40. GameTab.open(TABS.FRIENDS);
  41. sleep(400, 1200);
  42. GameTab.open(TABS.INVENTORY);
  43.  
  44. while(!GameTab.getOpen().equals(TABS.INVENTORY))
  45. GameTab.open(TABS.INVENTORY);
  46.  
  47.  
  48. }
  49.  
  50. public void CheckXP()
  51. {
  52. GameTab.open(TABS.STATS);
  53. Mouse.move(General.random(563, 600), General.random(400, 417));
  54. sleep(400, 1200);
  55. GameTab.open(TABS.INVENTORY);
  56.  
  57. while(!GameTab.getOpen().equals(TABS.INVENTORY))
  58. GameTab.open(TABS.INVENTORY);
  59.  
  60. }
  61. }
Advertisement
Add Comment
Please, Sign In to add comment