July 26, 201510 yr Hello can sombody show me example script that interact npc and then interact's dialog.
July 26, 201510 yr Dialogue api;http://osbot.org/api/org/osbot/rs07/api/Dialogues.htmlInteracting;http://osbot.org/api/org/osbot/rs07/api/model/Character.html#interact-java.lang.String...-
July 26, 201510 yr http://osbot.org/forum/topic/60537-tutorial-simple-interaction-with-objects-and-npcs/
July 26, 201510 yr NPC npc = npcs.closest(npcName); if(!dialogues.inDialogue()){ if(npc != null){ if(npc.isVisible()){ npc.interact(actionString); } } } else { // handle specific dialogue }
Create an account or sign in to comment