Results 1 to 7 of 7

Thread: who_clan()

  1. #1
    Senior Member Pazleysox's Avatar
    Join Date
    Feb 2009
    Posts
    470

    Default who_clan()

    ash who_clan()
    returns this:
    PazSox => true
    Ruby => true
    Skf => true

    Doing /who clan, returns (virtually) the same on the events tab.

    When I open a relay browser, open chat, and do /who, it shows me that Ruby, and Skf are away from chat. I've tried this in 2 separate clans. I"m using build 19145.

    If I check an open channel, such as trade, or normal, it shows both active, and away people.
    Scripts I have written:
    Unlock Dread A Script to save you a bunch of clicks.
    Standard Rollover Bonus A Script that shows best items to pull/equip for bonus turns.
    Standard PVP Bonus A Script that shows the best items to pull/equip for bonus PVP Fights.
    Rollover Management A Script that does all the daily deeds you might have forgotten, or might have missed.
    Chatbot A Chatbot script. Simple start for those who want/need one for their clan.
    Zap Wand A Dungeon of Doom ZAP WAND getting script.

  2. #2
    Developer
    Join Date
    Apr 2010
    Posts
    5,130

    Default

    > ash who_clan()

    Returned: aggregate boolean [string]
    Darzil => true
    Kittenbabble => false
    justinarms => false
    missfishie => true


    Players in this channel:
    missfishie, Darzil, Kittenbabble, justinarms (4 total)

    (and Kittenbabble and justinarms are in grey)

  3. #3
    Senior Member Pazleysox's Avatar
    Join Date
    Feb 2009
    Posts
    470

    Default

    > ash who_clan()

    (and Kittenbabble and justinarms are in grey)
    Originally Posted by Darzil View Post
    I wonder why mine are not returning as false. One of the players in a seperate clan was a multi of mine, and I know they have not spoken in chat, and kol returned true for them.
    Last edited by Pazleysox; 03-29-2019 at 08:18 PM.

  4. #4
    Developer
    Join Date
    Apr 2010
    Posts
    5,130

    Default

    There are a few different chat versions, maybe you are using another?

  5. #5
    Senior Member Pazleysox's Avatar
    Join Date
    Feb 2009
    Posts
    470

    Default

    I switched to the tabbed version, and come up with the same results.

    This time however, with one change. There is a player who is listening to clan, and not active.
    Nienor => true
    PazSox => true
    Ruby => true
    intermIssion => false

    When I do a /who (player)
    Nienor This player is currently away from KoL in channel clan.
    intermIssion This player is currently online in channel talkie and listening to clan.
    PazSox This player is currently online in channel clan.
    Ruby This player is currently online in channel clan.

  6. #6
    Developer
    Join Date
    Apr 2010
    Posts
    5,130

    Default

    And that is what the true/false means, according to https://wiki.kolmafia.us/index.php?title=Who_clan

    The boolean values are true if the character is in clan chat or false if just listening.

  7. #7
    Senior Member Pazleysox's Avatar
    Join Date
    Feb 2009
    Posts
    470

    Default

    And that is what the true/false means, according to https://wiki.kolmafia.us/index.php?title=Who_clan

    The boolean values are true if the character is in clan chat or false if just listening.
    Originally Posted by Darzil View Post
    I get it now.

    I thought it would return true/false if someone was active vs listening regardless of being in the channel or not. This is what I was looking to work with.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •