Results 1 to 5 of 5

Thread: Definitely noob question about URLs

  1. #1
    Junior Member
    Join Date
    Dec 2015
    Posts
    4

    Default Definitely noob question about URLs

    I am playing around with scripting and many of the actions that I want to automate have to do with creating potions at the DNA lab, checking the plumber arcade, summoning clip art, resting at the chateau etc. I get the sense from reading the forums that many of the actions are invoked using the visit_url command. What continues to escape me is how you guys can tell what the url is.

    Lets take the "Make a gene tonic" button in the DNA workshop. The discussion here shows that the url that I want to use is "campground.php?action=dnapotion" but my question is how would I figure that out on my own?

    Thanks!

  2. #2
    Developer
    Join Date
    Apr 2010
    Posts
    4,533

    Default

    I am playing around with scripting and many of the actions that I want to automate have to do with creating potions at the DNA lab, checking the plumber arcade, summoning clip art, resting at the chateau etc. I get the sense from reading the forums that many of the actions are invoked using the visit_url command. What continues to escape me is how you guys can tell what the url is.

    Lets take the "Make a gene tonic" button in the DNA workshop. The discussion here shows that the url that I want to use is "campground.php?action=dnapotion" but my question is how would I figure that out on my own?

    Thanks!
    Originally Posted by jag2k2 View Post
    Here are three ways:
    1. When you mouse over a link, you can get the link displayed (not applicable for buttons on forms).
    2. Look at the source code of the frame.
    3. Start debug log, take actions, stop debug log, read debug log.

  3. #3
    Junior Member
    Join Date
    Dec 2015
    Posts
    4

    Default

    Thank you!

  4. #4
    Senior Member ckb's Avatar
    Join Date
    Mar 2006
    Posts
    813

    Default

    Also to note, most of the actions you want are built in KolMafia commands. Some are CLI only, some in ASH. Using 'help' or 'ashref' in the CLI will often find the command you need. visit_url() calls are used when something comes out and has not yet been implemented into Mafia or for some commands that are more obscure and not supported.

    Creating potions in the DNA lab, CLI command: camp dnapotion
    Checking the plumber arcade is done at breakfast, if the preference is set: "checkJackassHardcore" or "checkJackassSoftcore"
    summoning clip are can be done in ASH or the CLI with the create or acquire command
    resting can be done with the 'rest' command, and it will be done at the Chateau if the preference "restUsingChateau" is true

    Likely, unless it is a new feature to KOL, it can be done with a Mafia command.

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

    Default

    The 'mini-browser' built in to KoLmafia is also very good for figuring out URLs.

    Several of the things mentioned already have a command built into KoLmafia so visit_url might not be the best or preferred way.

Posting Permissions

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