SHARE
TWEET

Untitled

a guest Apr 21st, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top