Prolax Posted May 15, 2017 Share Posted May 15, 2017 - How to implement 'Click here to continue' in your script? For example when you reached a level. - What is the best way to turn your camera when npc is not visible? camera.toEntity(target) ? Quote Link to comment Share on other sites More sharing options...
Eagle Scripts Posted May 15, 2017 Share Posted May 15, 2017 You can take a look at the API and navigate to Dialogues https://osbot.org/api/ Quote Link to comment Share on other sites More sharing options...
Shudsy Posted May 15, 2017 Share Posted May 15, 2017 npc.interact("Attack") uses interactionEvent and will turn the camera if the npc is not visible. Quote Link to comment Share on other sites More sharing options...
Void Posted May 15, 2017 Share Posted May 15, 2017 (edited) if (api.dialogues.isPendingContinuation()){ api.dialogues.clickContinue(); Passes pending continuation (the dialog) And for get closest NPC/Entity/Object api.getObjects().closest("Object").interact("???"); EG api.getObjects().closest("Spinning wheel").interact("Spin"); api.log("Interacting with Spinning wheel.."); Edited May 15, 2017 by Void 1 Quote Link to comment Share on other sites More sharing options...
Prolax Posted May 15, 2017 Author Share Posted May 15, 2017 3 minutes ago, Void said: if (api.dialogues.isPendingContinuation()){ api.dialogues.clickContinue(); Passes pending continuation (the dialog) And for get closest NPC/Entity/Object api.getObjects().closest("Object").interact("???"); EG api.getObjects().closest("Spinning wheel").interact("Spin"); api.log("Interacting with Spinning wheel.."); Thanks for the info! Quote Link to comment Share on other sites More sharing options...
Void Posted May 15, 2017 Share Posted May 15, 2017 Just now, Prolax said: Thanks for the info! Np Quote Link to comment Share on other sites More sharing options...