Snowydell Posted January 24, 2015 Share Posted January 24, 2015 So this is my script now fire.interact("Use"); sleep(500); if (getInterfaces().getChild(548, 127).isVisible()) { getInterfaces().getChild(307, 2).interact("Cook All"); } It's for the cooking interface on a fire but I just can't get it to work. Link to comment Share on other sites More sharing options...
Alek Posted January 24, 2015 Share Posted January 24, 2015 Use a conditional sleep to wait until the interface is visible. 1 Link to comment Share on other sites More sharing options...
Extreme Scripts Posted January 24, 2015 Share Posted January 24, 2015 Also null check before interacting with it otherwise you will get horrible NPE's. Link to comment Share on other sites More sharing options...
Snowydell Posted January 24, 2015 Author Share Posted January 24, 2015 Use a conditional sleep to wait until the interface is visible. Never knew that was a command thanks for that Link to comment Share on other sites More sharing options...