Guest User

Untitled

a guest
Dec 19th, 2015
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. package ProAdimantOres;
  2.  
  3. import org.parabot.environment.api.utils.Time;
  4. import org.parabot.environment.scripts.framework.SleepCondition;
  5. import org.parabot.environment.scripts.framework.Strategy;
  6. import org.rev317.min.api.methods.Bank;
  7. import org.rev317.min.api.methods.Inventory;
  8. import org.rev317.min.api.methods.Menu;
  9. import org.rev317.min.api.methods.Players;
  10.  
  11. /**
  12. * Created by william on 2015-12-20.
  13. */
  14. public class BankingOres implements Strategy {
  15. @Override
  16. public boolean activate() {
  17. return Inventory.isFull() && Players.getMyPlayer().getAnimation() == -1;
  18.  
  19. }
  20.  
  21. @Override
  22. public void execute() {
  23. Bank.open();
  24. Time.sleep(new SleepCondition() {
  25. @Override
  26. public boolean isValid() {
  27. return false;
  28. }
  29. },2500);
  30. Menu.sendAction(646,1511,383,23412);
  31. Time.sleep(new SleepCondition() {
  32. @Override
  33. public boolean isValid() {
  34. return Inventory.isEmpty();
  35. }
  36. },5000);
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment