Search results

  1. D

    get_property weirdness and auto-abort semirare counter

    I wanted to write a 'simple' castle farming script that collects semi-rares (newgo.ash). I ran into two problems. 1) EDIT: I was getting strange behaviour from get_property() but it was a hidden typo. 2) The semirare counters abort the script even though I check the result of the boolean...
  2. D

    Maximize.ash, maximize equipment in one command.

    This script is very nice. The HP maximization could be better if it considered items that give +muscle as they are sometimes better than +HP items (especially is muscle class).
  3. D

    Fuzzy matching change

    Thankyou for your answer. My initial reaction of panic and dismay at this change was due in part to not knowing there was substring matching (that isn't changing) and thinking that full names would need to be used. Before reading this I was just starting to think that the answer was probably...
  4. D

    Fuzzy matching change

    Okay I read the early posts again and I'm sorry my previous examples were not good ones. If I were to use string_to_item("disclover") would that return the item disassembled clover?
  5. D

    Fuzzy matching change

    Re: Fuzzy matcher. What about things like string_to_location("castle") or $location[castle] or string_to_item("bitch")? Will these still be resolved with fuzzy matching?
  6. D

    Fuzzy matching change

    Fuzzy matcher. With the recent changes to fuzzy matching in the CLI I find myself wishing it just worked the way it used to. I assume that the ash still has fuzzy matching. Would it be possible to write a namespaces script which replaced all the cli commands so that they used fuzzy matching in...
  7. D

    Multiple arguments from the cli

    How do I pass multiple arguments from the cli to an ash function now? If I have a file foo.ash: "void main(int fint, string fstring) { print(fstring) }" I used to be able to type something like: "foo 12 bar" into the cli to pass "12" and "bar" to main in foo.ash, but that doesnt work now. Mafia...
  8. D

    Combat Script - Cast Spell if you have enough MP

    Ah that's a much better way of handling once per combat things. I have thought of a way to handle use of padl phones (or communications wind chimes) also. The problem with these is they can only be used every 6 combats or so, the spading still needed for exact numbers. So an adventuring script...
  9. D

    Combat Script - Cast Spell if you have enough MP

    Thanks for posting that, its good to have a simple script to see how to make consult scripts. Is there anyway to determine if you have fired bottle-rockets in the current combat? I tried have_skill() but it seems that mafia still thinks you have the skill even once the game takes the drop-down...
  10. D

    Yet Another Meat/Item Farm

    Try equip (slot, item);
  11. D

    Temporary discontinuation of daily builds

    I down loaded a daily build so I could use the reply browser and avoid the item pages in the lag... I have used multies for a bit of manual spading but not farming (and I have stopped spading with them because I have trouble using all the turns on my main anyway). Its a shame that people dont...
  12. D

    PvP Diet Balance and Wine tasting. [spoilers]

    Yeah I use retrofrogs tools, but it doesnt tell you what your missing it tells you what you have consumed...also comparing more than a few days is time consuming... Perl would probably be a much nicer solution...
  13. D

    User input

    I have also come up against the wall that is no user input once the script is started. The way I get around it is to use the script menu to call the script; this allows CLI commands to be entered while the script is running. Using the SET command I can enter data into a script while it is...
  14. D

    Giving away buffs between battles...

    I was getting too much mp as I was adventuring so I wrote this script to run in the moods to give away all the extra-mp. (Hearts were costing too much and I was buffed alot already myself). Its a quick script that I wrote and edited while adventuring and asking people in chat if anyone wanted...
  15. D

    PvP Diet Balance and Wine tasting. [spoilers]

    I want to make a set of scripts that save the current consumption records and compare them to the last 30days records for use in eating the best food/booze to get adventures and improve mini's. I think this is possible but rather a large process. Has anyone made anything like this before? With...
  16. D

    Do I have [item] ?

    Thanks metraxis and macman. This was very helpful. I somehow had missed the ? command modifier. I made a slightly different version that reports all the available items. Its messy and maybe a bit too verbose but anyway.... void main(string need) { int x; int total; int SCtotal; string...
  17. D

    Do I have [item] ?

    I wanted to write a little script to anwser the question: Do I have this item? The idea is that it checks inventory, then closet, then hagnks, then clan stash and tells me if I have the item. I wanted it to run from the gCLI and use the same fuzzy matcher that the gCLI uses, so I can also test...
  18. D

    I Wanted to Comment so I made A Thread!

    Yes the did you know thread is great. Mostly because the answer is usually: "No... i didnt know that."
  19. D

    Changing equipment in a between battle script. Is this possible?

    I have sometimes written scripts that change my equipment based on various conditions between battles. However mafia always changes back to the items that were equipt when the script started. I understand the reasoning behind this is probably because between battles scripts may change into...
  20. D

    a Buffbot script

    I've been using the today_to_string() for a little while now and it works fairly well for rollover checks. However it fails at the start and end of day; which is bad. A function that returned the current KOL date would be much better. I guess this info could be stripped from the chat panel...
Top