Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(House.isInside()
- && Inventory.getCount("Oak logs") == 26){
- HouseOptions.open();
- HouseOptions.callButler();
- if (!Dialog.isOpen()
- && butler.distance() <= 5){
- butler.click();
- Time.sleepUntil(() -> Dialog.isOpen(), 1000);
- Time.sleep(500, 800);
- }
- InterfaceComponent sawMill = Interfaces.getComponent(219, 1, 1);
- InterfaceComponent charge = Interfaces.getComponent(231, 4);
- InterfaceComponent continueOption = Interfaces.getComponent(231, 3);
- if(Dialog.isOpen()
- && sawMill.getText().contains("Take to sawmill: 26 x Oak logs")
- && sawMill != null){
- sawMill.click();
- Time.sleep(500, 800);
- }
- if(Dialog.isOpen()
- && sawMill != null
- && Dialog.getChatOption(option -> option.contains("Take to sawmill:")) != null){
- sawMill.click();
- Time.sleep(250, 500);
- if(Dialog.isOpen()
- && charge != null
- && charge.getText().contains("Using my powers")){
- Log.severe("Text contains: Using my powers");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement