Prolax Posted May 15, 2017 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) ?
Eagle Scripts Posted May 15, 2017 Posted May 15, 2017 You can take a look at the API and navigate to Dialogues https://osbot.org/api/
Shudsy Posted May 15, 2017 Posted May 15, 2017 npc.interact("Attack") uses interactionEvent and will turn the camera if the npc is not visible.
Void Posted May 15, 2017 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
Prolax Posted May 15, 2017 Author 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!