Results 1 to 5 of 5

Thread: Help with creating a buy script using 'cheapest' CLI cmd

  1. #1

    Default Help with creating a buy script using 'cheapest' CLI cmd

    I wanted to create a script to buy the cheapest perfect drink. Using the CLI reference, it says that I can replace the subsequent commands with "it" after using the cheapest command. However when I tried it with the below code, I ran into issues.

    PHP Code:
    cli_execute("cheapest perfect cosmopolitan, perfect old-fashioned, perfect mimosa, perfect dark and stormy, perfect paloma, perfect negroni");
    cli_execute("acquire 7 it"); 
    When it comes to the 2nd line, it returns this error on the CLI
    PHP Code:
    do-it-yourself laser eye surgery kit
    hell 
    and how i bent it
    item 
    #13
    pimonkey item

    [ithas too many matches
    Would appreciate if someone could point me in the right direction or perhaps suggest a better way to do this than use CLI commands.

  2. #2

    Default

    Putting it all in a single command should work, instead of splitting it up.

  3. #3
    Senior Member ckb's Avatar
    Join Date
    Mar 2006
    Posts
    812

    Default

    per the CLI 'help cheapest':
    cheapest[?] [+]item [,[-]item]... [; cmds] - compare prices, do cmds with "it" replaced with best.

    So this:
    PHP Code:
    cheapest perfect cosmopolitanperfect old-fashionedperfect mimosaperfect dark and stormyperfect palomaperfect negroniacquire 7 it 

  4. #4

    Default

    Putting it all in a single command should work, instead of splitting it up.
    Originally Posted by lostcalpolydude View Post
    per the CLI 'help cheapest':
    cheapest[?] [+]item [,[-]item]... [; cmds] - compare prices, do cmds with "it" replaced with best.

    So this:
    PHP Code:
    cheapest perfect cosmopolitanperfect old-fashionedperfect mimosaperfect dark and stormyperfect palomaperfect negroniacquire 7 it 
    Originally Posted by ckb View Post
    Ahh okay will try that out thank you!

  5. #5
    Senior Member Crowther's Avatar
    Join Date
    Nov 2006
    Posts
    1,388

    Default

    Cool. I had no idea this was a thing.

Posting Permissions

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