Results 1 to 4 of 4

Thread: Coinmaster is_accessible

  1. #1
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    4,674

    Default Coinmaster is_accessible

    https://wiki.kolmafia.us/index.php?title=Is_accessible

    What does "currently available" mean in this context? I made a half-hearted look at the code to answer that but there is a fair amount of introspection going on and it just seemed easier to ask.

    What I am hoping for is that when is_accessible is true then I can immediately initiate a transaction provided I have the necessary tokens. But some quick experimentation suggests otherwise. Before I decide that there might be bugs to investigate I figure I should make sure my definition of available is the same as what the implementation intended. Thanks.
    Well, thank you.
    Originally Posted by Veracity View Post

  2. #2
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,775

    Default

    You've probably already thought of this, but inaccessible_reason( coinmaster ) may also provide helpful clues as to what constitutes accessibility.
    Sig by JakAtk
    My scripts: Prefref Plus | Skillref Plus | One-Click Woss | Om****est (??) | Psychose-a-Matic | RandBot
    Combat suite: Best Between Battle | Mercenary Mood | SmartStasis | BatMan | BatMan RE
    For script authors: ASH Wiki | ZLib | BatBrain | CLI Links | Drag-n-Drop Inventories | CanAdv | Script Registry | Map Manager
    If you appreciate my work, help me become BAT KING OF THE WORLD! Thanks to all donators!

  3. #3
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    4,674

    Default

    You've probably already thought of this, but inaccessible_reason( coinmaster ) may also provide helpful clues as to what constitutes accessibility.
    Originally Posted by zarqon View Post
    I've done some and can do more but I'm seeing things that are not right if I understand intentions. For example, KoLmafia has the Topiary Nugglecrafting shop as always available in the GUI. Yet is_accessible() is false which is correct for the circumstances). I'm trying to understand definitions/intentions.
    Well, thank you.
    Originally Posted by Veracity View Post

  4. #4
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    4,674

    Default

    The definition is what you would expect. To be available you need to have access to a location or item or have some of the currency or various combinations of all three. I found some of the non available messages counterintuitive but they were accurate. I did find, and fix, an error in the Guzzlr token definition.

Posting Permissions

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