randombottingacc Posted January 10, 2017 Posted January 10, 2017 How can I know if my player is in a clan chat? I don't think there's a config value for it and I cbf checking the clan chat screen every 3 seconds.
Juggles Posted January 10, 2017 Posted January 10, 2017 http://osbot.org/forum/topic/84362-check-if-user-is-in-clan/
randombottingacc Posted January 10, 2017 Author Posted January 10, 2017 http://osbot.org/forum/topic/84362-check-if-user-is-in-clan/ I don't think this'll work if the clan chat is not open. public boolean isInClanChat() { RS2Widget talkingIn = script.getWidgets().getWidgetContainingText("Talking in:"); return (talkingIn != null && talkingIn.isVisible() && !talkingIn.getMessage().contains("Not in chat")); }