maniekzsk8 0 Share Posted October 12, 2020 Hi guys, need help with randomEvent listener. I try to play a sound when npc shows up. Anyone? Link to comment Share on other sites More sharing options...
maniekzsk8 0 Author Share Posted October 13, 2020 12 hours ago, Infidel said: NPC npc = NPCs.closest(n -> n != null && n.getName().contains("npcName")); if (npc != null) { Toolkit.getDefaultToolkit().beep(); } thanks! But without contains? Link to comment Share on other sites More sharing options...
LostVirt 106 Share Posted October 13, 2020 Thats just a filter. I suggest reading the JavaDocs, This link might help with finding what you are looking for: https://dreambot.org/javadocs/org/dreambot/api/wrappers/interactive/NPC.html Link to comment Share on other sites More sharing options...
maniekzsk8 0 Author Share Posted October 13, 2020 thank you guys Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.