Search results

  1. M

    Thank you!

    Hey guys, it's been a long time since I last posted here, but I just wanted to thank everyone who is still around from when this forum first started up. I've always loved coding, and although I never took any classes or official learning-type things for any languages, I'm at least half-way...
  2. M

    Exit command / Close button

    I feel so silly being stumped by this, but... better to ask and know better from now on, I suppose! In the scripting manual, the CLI command "exit" says it submits a logout request, but I haven't seen it process the logoutscript before exiting the program in CLI mode, and in GUI mode using the...
  3. M

    have_outfit() not functioning properly?

    I am working on a basic "meat maintenence" script that borrows from the seltzer example on the wiki. However, it seems to be reporting that I have the knob elite uniform, when I don't (I only have the pants). This currently prints "Using: knob goblin seltzer" as the last line, which would...
  4. M

    Switch Familiar script

    Okay, I have a functioning workaround script to do the same thing right now, but I was trying to simplify it based on map values instead of "if(my_name() == "username") { do this }"... but, this isn't working. I have two functions set up to define the ItemFam and StatFam, and they're called at...
  5. M

    ASH maps - Calculations?

    I know a few of you are currently working on equipment maps right now, so maybe you can help... don't worry, I don't need anything nearly as comprehensive as the things you've got! All I want to do is have a map of one-handed +spell damage weapons, with their values, then, if I just so happen...
  6. M

    set_property question (ASH)

    Just wanted to make sure I had this correct before adding it to my breakfast routine... I saw a suggestion made for using this for fullness in another thread, and wanted to see if I had the right idea... Okay, point being, I'd like to summon 5 candy hearts a day automatically, and no more...
  7. M

    Question about defaultAutoAttack

    I saw the note in SVN update 2943, and yes, I am quite hopeful about what this means, given my bugging of everyone about using the URL to do so in a script not working. ;) Now, regarding this, I just have to ask a question, or two... The code to invoke this (in an ash script) would be simply...
  8. M

    Unable to set Auto-Attack using cli_execute or visit_url

    I've had this problem for a while, I just can't figure out if it's something I'm not doing right, something that can be done in another way, or something that's broken, heh. I've got a very basic "survival" script that I usually call manually. All it does is, if my HP is below a certain...
  9. M

    SellEquip v0.1

    Ah, yes, another in the line of UberLazy scripts from muffins. A simple script designed to keep only one of certain types of equipment on hand. It checks your currently equipped items, inventory, and closet, adds up the total of the specified item, and autosells any amount over 1 (removing...
  10. M

    Closeting Quest Items - ClosetQuest v0.8

    This is mostly for hardcore players and people who are super picky about keeping their inventory neat and clean... What it does, essentially, is place (mostly NS) quest items in your closet as you come across them. In the case of items that require combination to be made, it will closet the...
  11. M

    Closeting RPPs... (verification needed on code snippet)

    I'm working on a pretty big script at the moment, but it's not quite far along enough yet to post, so I'm just going to ask this here instead of posting a potentially very buggy script in the In-Progress section... The main thing I want to check is, as usual, whether I've done something right...
  12. M

    Changing Tattoo After Ascending

    I wanted to add this to my current "welcome noob" script. I would attach it, but, because it seems to be currently broken, I figure it's best to post the code directly. Here's the idea I had: string tattoo_text = visit_url("account_tattoos.php"); if(my_class() == $class[Accordion Thief]) {...
  13. M

    Consult

    I really hope I haven't overlooked something obvious, like the last time I started a thread... I decided to give a go at using the "consult" option for CCS... although I haven't been able to really find any documentation on this, I figured it was just entering "consult scriptname.ash" in the...
  14. M

    Conditional Switch Familiar Script

    Heya, Okay, this was just an idea I had for personal use as an extremely lazy method of switching familiars. The idea I had was to use something like this: if(equip_familiar($familiar[Cymbal-Playing Monkey])) { equip_familiar($familiar[Attention-Deficit Demon]); } else {...
  15. M

    Will this work?

    I've currently been a bit... skittish, of including any nightcap drinking in my scripts for fear of not receiving the "required" buff in time. After thinking about it a bit, though, I thought something like this might work... can anyone suggest a more efficient way of doing this (other than...
  16. M

    Price comparison of healing via skill vs. other method, etc...

    If it would be at all possible, I'd like to see a script that goes off of the data collected here to determine if it would be best to use a healing skill, or ailment ointments, and then use that skill or purchase and use ointment. It would be nice if it would also *try* to use better healing...
  17. M

    Call external URLs?

    This is almost more of a mafia question itself, but I'd like to replace my log files with an SQL database. I've already got the PHP file written to grab the variables from the URL and insert them into the database along with the current date, but I can't call it through my script. Here's the...
  18. M

    Adventure Function Library

    Haha, I'm sure you're all sick of me by now! Still, I'm trying to help with this one... Firstly, bigbigbig love to Tirian for creating his own function library. I hadn't even thought about implementing something like that for ASH scripting, but... when I did, I got a brilliant idea! I decided...
  19. M

    Batch file help / Log file creation

    Okay, erm, this isn't really an ASH/CLI scripting request, but it pertains to working with them and KOLmafia, so... What I am looking for is a batch file which calls a script and logs information from said script. I'd like the logs filename to be in a format similar to...
  20. M

    Removing commas from int_to_string?

    I'm trying to create a script that sends a variable amout of meat to each of my clanmates at the end of each daily run, but when I convert the int to a string and use it with the send function, it only sends the "second half" of the amount, i.e., if I were sending someone 1,234 meat, it would...
Top