pigfarmer Posted June 8, 2020 Share Posted June 8, 2020 Hi! I am trying to get the Id of the NPC that the bot i currently interacting / attacking. Dose anyone have any idea of how this is possible? Quote Link to comment Share on other sites More sharing options...
Chris Posted June 8, 2020 Share Posted June 8, 2020 https://osbot.org/api/org/osbot/rs07/api/model/Character.html#getInteracting-- store the interacting NPC then call the getId() on the object you create NPC n = myPlayer.getInteracting() if (n != null) log(n.getId()); 1 Quote Link to comment Share on other sites More sharing options...
pigfarmer Posted June 8, 2020 Author Share Posted June 8, 2020 2 minutes ago, Chris said: https://osbot.org/api/org/osbot/rs07/api/model/Character.html#getInteracting-- store the interacting NPC then call the getId() on the object you create NPC n = myPlayer.getInteracting() if (n != null) log(n.getId()); Thanks for the help! Quote Link to comment Share on other sites More sharing options...