Bonnie 2 Share Posted October 15, 2015 Cant really find a sinppet or example anywhere of what im looking for. dont get why this isnt work There is a widget that counts down from 5 and i want it to hop world 86 when timer hits 1 on the widget if it isnt already in 86 Time remaining = 1 p 58 c 3 WidgetChild Ahmed = getWidgets().getChildWidget(324, 3); if(Ahmed != null) { if(getWidgets().getChildWidget(324, 3).getText().endsWith("1")) { if (!Client.getCurrentWorld.contains("386")){ getWorldHopper().hopWorld(386); } } Link to comment Share on other sites More sharing options...
Diddy 265 Share Posted October 15, 2015 what doesn't work? your if statement? try to do bit by bit to see what is working and what is not Link to comment Share on other sites More sharing options...
Dreamlicker 750 Share Posted October 15, 2015 paint getWidgets().getChildWidget(324, 3).getText() to the screen to make sure it's returning the values that you are looking for. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.