progamerz Posted January 1, 2016 Posted January 1, 2016 Hello can some1 help me fix this? if (mine != null){ if (mine.isVisible()){ if (getMap().canReach(mine)) { mine.interact("Mine"); sleep(2000); } }else { getLocalWalker().walk(mine); } } at the (getlocalwalker().walk(Mine)) it strikes out the walk can some1 help me fix it?
Acerd Posted January 1, 2016 Posted January 1, 2016 (edited) http://osbot.org/forum/topic/89606- Changelog: -Added Walking class -Deprecated LocalWalker class -Re-wrote WalkingEvent -Added WebWalker file handler to booter -Various Mirror Mode performance improvements Scripters: Hold off on using WebWalkEvent (deprecated), it will undergo pretty large changes. if (mine != null && mine.isVisible() && getMap().canReach(mine)){ mine.interact("Mine"); sleep(2000); } else { getWalking().walk(mine); } Edited January 1, 2016 by Assnerd 1
progamerz Posted January 1, 2016 Author Posted January 1, 2016 http://osbot.org/forum/topic/89606- Changelog: -Added Walking class -Deprecated LocalWalker class -Re-wrote WalkingEvent -Added WebWalker file handler to booter -Various Mirror Mode performance improvements Scripters: Hold off on using WebWalkEvent (deprecated), it will undergo pretty large changes. if (mine != null && mine.isVisible() && getMap().canReach(mine)){ mine.interact("Mine"); sleep(2000); } else { getWalking().walk(mine); } TYVM worked
Joseph Posted January 1, 2016 Posted January 1, 2016 http://osbot.org/forum/topic/89606- Changelog: -Added Walking class -Deprecated LocalWalker class -Re-wrote WalkingEvent -Added WebWalker file handler to booter -Various Mirror Mode performance improvements Scripters: Hold off on using WebWalkEvent (deprecated), it will undergo pretty large changes. if (mine != null && mine.isVisible() && getMap().canReach(mine)){ mine.interact("Mine"); sleep(2000); } else { getWalking().walk(mine); } No need for checking an object visibility cause that's what interaction event does for us. And object.interact (action) come from interactionEvent