Search results

  1. A

    Universal Recovery Script

    Edit: Never mind, I am a complete idiot. The issue of being in Bad Moon aftercore may indeed exist, and I'll test it out tomorrow with actual fights, but of course what was happening to me was just Mafia auto-removing bad status effects! No recovery was called for, so it had nothing to do with...
  2. A

    arrays

    One possible solution (untested, beware of syntax errors!): void getKnobGoblinMoneyBuffs() { float [item] [effect] buffs; buffs[$item[pet-buffing spray]][$effect[Heavy Petting]] = 0.0; buffs[$item[nasal spray]][$effect[Wasabi Sinuses]] = 0.0; foreach it, eff in buffs { buffs[it][eff] =...
  3. A

    The latest Daily Build

    Edit: My apologies, I have just noticed that someone has already posted this bug. Please feel free to ignore me. The recent changes do seem to be interfering with meat detection at the nuns. According to the log, Mafia sees that I receive the meat, but my experience was that the handy...
  4. A

    Nash Crosby's Still automator

    What version of PA are you running? 1.62 should have done away with this problem.
  5. A

    PriceAdvisor: Maximize your profits

    Huh. This makes me sad. First, because it doesn't work as I'd like, and second, because I asserted that it did without actually checking. Which was pretty dumb. Thanks for catching this before I built too much on it, Jason! I stand by my statement that the difference in behavior is odd. I...
  6. A

    PriceAdvisor: Maximize your profits

    Yes, negative integers mean "all but x" in ash as well as cli. It would be awfully confusing if the two differed! (Which is to say, if more-experienced ash coders know of any place this isn't true, please let me know...)
  7. A

    Make.meat.fast

    He last posted on the 5th. Probably not dead, I'd say!
  8. A

    Testing out ASH. Will this work?

    Or do the check, then call historical_price() in the sort -- by that point, everything with an outdated historical price will have been updated so it's not outdated any more. Jason's solution is much nicer to read, though.
  9. A

    PriceAdvisor: Maximize your profits

    Yes, the code for replacing 0 in to_executable_string() is there already. I'm confused about your renaming suggestions (maybe we're still joking? I can't tell.). I take it you think there should be a to_cli_string() and to_ash_string() instead of just to_executable_string() (which is what...
  10. A

    PriceAdvisor: Maximize your profits

    Well, the update to SmashLib was just to add a wrapper function "smash" so I can use "smash" both as a readable description and a function name. It seemed like something that belonged in SmashLib (given that it's a library of smashy functions) rather than PA, so I put it in there. (There is no...
  11. A

    SmashLib: Expected results from smashing

    That's because I'm an idiot, and forgot to update the number in the post. The warning should go away soon.
  12. A

    PriceAdvisor: Maximize your profits

    You may want to see my implementation of quantities, but I'm not quite there yet. I present for discussion a beginning of a refactor for PA, in the hopes that those who are scripting with it can tell me if this is the sort of thing they are looking for... or if I'm completely off base. I'm not...
  13. A

    PriceAdvisor: Maximize your profits

    There's no real need for a recursive record definition here (and I'm not surprised it didn't work). I've found a work-around (which is also a better way) -- pretty easily, really. I'm already keeping a pa_advice [item] cache (well, pa_advice [item][boolean], but whatever), so the "results"...
  14. A

    typedefs in ash

    Thank you! I know, typedefs for ints are pretty silly...
  15. A

    typedefs in ash

    So: on a wild guess I tried using typedef in ash, and lo and behold! typedefs exist. However, I am having a little trouble working with them according to my C/C++ typedef background knowledge. I'm not sure if this is a Mafia bug or just my lack of understanding as to how they work in Mafia...
  16. A

    PriceAdvisor: Maximize your profits

    I'm definitely interested in minimizing server hits. You're absolutely right that PA is very bad at that right now. I really appreciate all this feedback and will do my best to incorporate it!
  17. A

    PriceAdvisor: Maximize your profits

    heeheehee: I haven't actually tested if recursive records work yet. It's entirely possible they don't. It might make sense to have all executable-style output be ash, I suppose. I know your reasons for wanting ash output, if that were to be available, would there be any reason to have...
  18. A

    PriceAdvisor: Maximize your profits

    I think your suggestions and requests are excellent ones. I was kinda thinking of changing the way things are represented anyway -- as you point out, the string + float record is very limited in what information it provides you. My current guess at the new record is something like this:record...
  19. A

    autoBasement.ash - Better basement automation

    Yeah, if you don't have gear that automagically maxes DA while maxing HP, a better option is to change the Gauntlet outfit from "maximize HP" to something like "maximize DA, .1 HP". And remember your Oil of Parrrlay and mother's little helper.
  20. A

    Ascend.ash: hands-off ascension script

    eatdrink_suppressOverdrink just suppresses the "Are you really sure you want to overdrink?" message that Mafia gives. I think -- though I haven't tried it -- that what you want to do is go into ascend.ash, find the calls to the eatdrink function, and change the fourth parameter to false. I'm...
Back
Top