bigbob420 Posted April 5, 2020 Posted April 5, 2020 (edited) So when a script is first ran, OSBot API will automatically usually either move the camera or click the quests tab - how do I disable this functionality and replace it? Where should I be looking at in the API? Thanks! Edited April 5, 2020 by bigbob420
Camaro Posted April 5, 2020 Posted April 5, 2020 (edited) You'll have to manually create an interaction/webwalk event, set it to not use the camera, and execute it https://osbot.org/api/org/osbot/rs07/event/InteractionEvent.html https://osbot.org/api/org/osbot/rs07/event/WebWalkEvent.html Edited April 5, 2020 by camaro 09
Khaleesi Posted April 8, 2020 Posted April 8, 2020 Yes, create your own event like this: private boolean interactionEvent(NPC monster, String action) { InteractionEvent ev = new InteractionEvent(monster, action); ev.setOperateCamera(false); ev.setWalkTo(true); execute(ev); return ev.hasFinished() && !ev.hasFailed(); } 1 1
bigbob420 Posted April 10, 2020 Author Posted April 10, 2020 On 4/8/2020 at 12:45 AM, Khaleesi said: Yes, create your own event like this: private boolean interactionEvent(NPC monster, String action) { InteractionEvent ev = new InteractionEvent(monster, action); ev.setOperateCamera(false); ev.setWalkTo(true); execute(ev); return ev.hasFinished() && !ev.hasFailed(); } Ah, but what about overriding the quest tab being clicked and hovered through?