Snowydell Posted January 24, 2015 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.
Alek Posted January 24, 2015 Posted January 24, 2015 Use a conditional sleep to wait until the interface is visible. 1
Extreme Scripts Posted January 24, 2015 Posted January 24, 2015 Also null check before interacting with it otherwise you will get horrible NPE's.
Snowydell Posted January 24, 2015 Author Posted January 24, 2015 Use a conditional sleep to wait until the interface is visible. Never knew that was a command thanks for that