Search results

  1. T

    Need help with while (have_effect($effect

    Just confirmed that this approach infinitely loops. Adding refresh_status() as mentioned by mredge73 works just fine.
  2. T

    Need help with while (have_effect($effect

    Is there a way to check to see if the bot is online before kmailing or csending?
  3. T

    Need help with while (have_effect($effect

    My analysis of this code: Kmail and IF are CLI commands (they are listed in the CLI HELP but not the ASHREF list). But they seem to work without the cli_execute, so they must be either inherent or enabled in both but these are written in ASH. The Parameters for ASH kmail seem to be - recipient...
  4. T

    Need help with while (have_effect($effect

    Coding in CLI is more familiar to me. I am still learning the syntax and capabilities of ASH. As I learn them, I convert my cli_execute over to ASH. @mredge73: calling "refresh_status" - that is a good idea. @Veracity: adding a refresh_status() in the loop and changing to wait( 5 ). @Grotfang...
  5. T

    Need help with while (have_effect($effect

    I have a piece of code that does not seem to work. while (have_effect($effect[ode to booze]) == 0) { print("Waiting for ode to kick in"); cli_execute("Wait 5"); // can track to see how long this takes } A bit before this, I purchase a buff, run 10 adventures, and do maximize. The idea is that...
  6. T

    EatDrink.ash: Optimize your daily diet (and see how your old diet stacks up).

    I have a question on line 137. Reads int VALUE_OF_ADVENTURE = to_int(get_property("valueOfAdventure")); Changed to read int VALUE_OF_ADVENTURE = to_int(vars["eatdrink_valueOfAdventure"]); As it was written, it would not use the preferences value. The changed version does. What does the...
  7. T

    Miner.ash - Automated ore farming

    Ninja - Where can I get the update?
  8. T

    Auto equip halloween costume

    I wrote a script that did not work. A kind soul (maybe the same one?) rewrote my script. That script broke with 7772, so I had to make some modifications to make it work again.
  9. T

    main method must appear at top level

    Can this also happen if you are importing scripts that have their own mains?
  10. T

    I have seen some of your postings. What is wrong with this script piece? if...

    I have seen some of your postings. What is wrong with this script piece? if (item_amount($item[wolfman mask]) > 0) { cli_execute("equip wolfman mask"); cli_execute("adv trick-or-treat"); } It says I don't have any when I actually have 3 if I use the same code in the CLI (ash ...)
  11. T

    EatDrink.ash: Optimize your daily diet (and see how your old diet stacks up).

    I noted that the decrement of the number owned no longer decrements. 12: twinkly wad lev:6 gain:1.0 adv:1.0 musc:9.0 myst:9.0 mox:9.0 meat:229 own:100 value:71 Choosing spleen to consume. Waiting to consume... twinkly wad lev:6 gain:1.0 adv:1.0 musc:9.0 myst:9.0 mox:9.0 meat:229 own:100...
  12. T

    EatDrink.ash: Optimize your daily diet (and see how your old diet stacks up).

    This worked fine from dailygrind.ash, but looped in farm.ash. When it chooses something to buy (my case was a dusty bottle of muscat) it seems to not try something different when the max price does not purchase the item. The drink map meat was 200 with max price of 250, but the mall only had...
  13. T

    EatDrink.ash: Optimize your daily diet (and see how your old diet stacks up).

    I had it loop because I had the "pull from clan stash" preference checked but did not have enough karma to cover the pull.
  14. T

    Session log != CLI - How can I fix?

    I did that - went through not only the log preferences, but all of them. The situation is described here: http://kolmafia.us/showthread.php?p=19142#post19142 There are things being captured that seem like debugging info. I was looking for a way to trim down what was being logged.
  15. T

    Session log != CLI - How can I fix?

    A follow up question: What are the rules, logic, or guidelines for what gets recorded in the session log?
  16. T

    EatDrink.ash: Optimize your daily diet (and see how your old diet stacks up).

    Great script!:D I was looking at the session log and have a question/observation. (Mafia v 7754.jar, EatDrink.ash v2.4, both verbosity print lines commented out) The log contains the following: > Now at fullness of 0, eating to 15. > <b>Boris's key lime pie</b> lev:6 gain:4.0 adv:16.0...
  17. T

    Session log != CLI - How can I fix?

    Thanks for the enlightenment! Worked like a charm!
  18. T

    Session log != CLI - How can I fix?

    I am running a script and near the end (not the last line - tried it both ways) I have cli_execute("Summary"); The see the output in the CLI. It is a summary of the adventures used, the stats gained, the meat gained/lost, the items gained/used, etc. This summary does not appear in the session...
  19. T

    Question about the eat command

    General/Preferences also has a choice for pulling from the clan stash. Do the preferences follow the character? For example, I run my main character with certain preferences, then logout, and login back in with a multi (same instance of KoLMafia). Do the preferences get changed appropriately...
  20. T

    EatDrink.ash: Optimize your daily diet (and see how your old diet stacks up).

    I found it - I think. Someone knowing the inner workings of Mafia will need to chime in. Under the General Preferences, there are options to "Buy items from NPC stores whenever needed", (not checked) "Buy items from the mall whenever needed", (not checked) and "Take items from the clan stash...
Back
Top