Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. if(House.isInside()
  2. && Inventory.getCount("Oak logs") == 26){
  3. HouseOptions.open();
  4. HouseOptions.callButler();
  5.  
  6.  
  7.  
  8. if (!Dialog.isOpen()
  9. && butler.distance() <= 5){
  10. butler.click();
  11. Time.sleepUntil(() -> Dialog.isOpen(), 1000);
  12. Time.sleep(500, 800);
  13. }
  14.  
  15. InterfaceComponent sawMill = Interfaces.getComponent(219, 1, 1);
  16. InterfaceComponent charge = Interfaces.getComponent(231, 4);
  17. InterfaceComponent continueOption = Interfaces.getComponent(231, 3);
  18.  
  19. if(Dialog.isOpen()
  20. && sawMill.getText().contains("Take to sawmill: 26 x Oak logs")
  21. && sawMill != null){
  22. sawMill.click();
  23. Time.sleep(500, 800);
  24. }
  25.  
  26. if(Dialog.isOpen()
  27. && sawMill != null
  28. && Dialog.getChatOption(option -> option.contains("Take to sawmill:")) != null){
  29. sawMill.click();
  30. Time.sleep(250, 500);
  31.  
  32. if(Dialog.isOpen()
  33. && charge != null
  34. && charge.getText().contains("Using my powers")){
  35. Log.severe("Text contains: Using my powers");
  36. }
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement