Advertisement
Guest User

Untitled

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