futurepasts Posted July 26, 2015 Posted July 26, 2015 Hello can sombody show me example script that interact npc and then interact's dialog.
iJodix Posted July 26, 2015 Posted July 26, 2015 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...-
Alek Posted July 26, 2015 Posted July 26, 2015 http://osbot.org/forum/topic/60537-tutorial-simple-interaction-with-objects-and-npcs/
blabla123 Posted July 26, 2015 Posted July 26, 2015 NPC npc = npcs.closest(npcName); if(!dialogues.inDialogue()){ if(npc != null){ if(npc.isVisible()){ npc.interact(actionString); } } } else { // handle specific dialogue }