April 5, 20205 yr 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, 20205 yr by bigbob420
April 5, 20205 yr 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, 20205 yr by camaro 09
April 8, 20205 yr 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(); }
April 10, 20205 yr Author 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?
Create an account or sign in to comment