Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 23

Thread: Commands for past IotMs

  1. #11

    Default

    I don't see a variable in the list of properties that I can check to see if I have voted already
    https://wiki.kolmafia.us/index.php?t...aily_Variables

    Is that list not up to date? And if so, is there a way to check such a list within mafia itself?

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

    Default

    _voteToday

    But there are several other voting variables so there is probably a fair amount of support and the doc is just not up to date :-)

  3. #13

    Default

    And if so, is there a way to check such a list within mafia itself?
    Originally Posted by locked_lunatic View Post
    Code:
    prefref vote
    is the type of command you want.

  4. #14
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,831

    Default

    I don't see a variable in the list of properties that I can check to see if I have voted already
    Originally Posted by locked_lunatic View Post
    The above script already checks that, so you could have a look there (line 89). Pretty sure there isn't a property for that because there doesn't need to be -- you can just check to see if you have a sticker.
    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!

  5. #15

    Default

    thanks lostcalpolydude, that command is extremely helpful

  6. #16

    Default

    How do I check the hot airport quests to see if the Acquire Medical Supplies quest is available to exchange 5 New Age healing crystals for a Volcoino?

    What I have right now is the visit to the place
    Code:
    string temp = visit_url("place.php?whichplace=airport_hot&action=airport4_questhub", false);
    I assume the next thing I need to do is make a matcher to find the quest name and the corresponding button?

  7. #17
    Senior Member
    Join Date
    Jun 2016
    Posts
    415

    Default

    You don't have to, because mafia will do that for you: visiting that page is enough to get mafia to fill the built-in variables, you can find them with prefref volcanoItem (there's a bunch of them, so I'm not gonna list them all).

    If you want some inspiration (or a lazy shortcut) you can check out my implementation here: Charters.ash

  8. #18

    Default

    Nice, that's very helpful.
    I should've probably figured that it'd be that easy.

  9. #19

    Default

    This isn't really a question about past IotMs but it's not worth opening a new topic for this.

    How do I switch clans?
    And what does auto_consultClan do?

  10. #20
    Senior Member Crowther's Avatar
    Join Date
    Nov 2006
    Posts
    1,581

    Default

    How do I switch clans?
    Originally Posted by locked_lunatic View Post
    You can do it in the relay browser or use a script.

Posting Permissions

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