pigfarmer Posted June 8, 2020 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?
Chris Posted June 8, 2020 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
pigfarmer Posted June 8, 2020 Author 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!