Search results

  1. B

    subfolders

    Hey all. Been out of the game for a while (both KoL and coding in general) and I was doing some upkeep when I noticed that files that used to be stored in a subfolder of /data (namely, /data/backups) have begun piling up in /data. I tried doing a quick search to see what changed but couldn't...
  2. B

    Avoiding errors

    So, it's been a while since I've gotten under the hood of some good ASH. Last time, I remember try/finally being added, but my search-fu is weak and I'm not sure if this has been expanded at all. So, my question. Is it possible to intercept an error in ASH and have the script go on? Or even...
  3. B

    Bug - Not A Bug modifier maximizer hates pvp

    So, about 3 days ago, my maximizer decided it didn't know what "pvp fights" were. It was working fine until then, but now it just says "Unrecognized keyword". Everything else I've tried works fine, but I can't get it to do PvP. "fites" gives the same error message. I tried running a debug log...
  4. B

    Feature CCS "unknown" or "unexpected"

    I'm not sure if something like this exists already, as I couldn't find it by searching and the mafia wiki page for CCS seems a little underdeveloped, but I would find it immensely useful for an [ unknown ] predicate in CCS. I imagine this would be fairly simple to implement - handle any monster...
  5. B

    Debug logs and hunting down issues.

    So, I have a few debug logs. They come from account running very big scripts. I'd like to fix them, but the errors appear at random, and I have no idea how to force them to show up. Unexpected error, debug log printed. class java.lang.IndexOutOfBoundsException: Index: 5, Size: 3...
  6. B

    Feature - Implemented Allow visit_url() to follow redirects in Relay Script

    Not sure if bug or feature, but it seems that visit_url() handles redirect requests differently in a relay override than a regular script. Same code, 2 debug logs: relay Connecting to clan_dreadsylvania.php... Requesting...
  7. B

    visit_url help.. again

    I'm not sure what I'm doing wrong. void executeCommand(string cmd){ matcher m=create_matcher("whichchoice value=(\\d*)",""); print(cmd); string url; if(cmd.to_int()>0){ url="clan_dreadsylvania.php?action=forceloc&loc="+cmd.char_at(0); string p=visit_url(url,true,true); print("first result...
  8. B

    Feature form_fields with arrays

    It looks like if I currently try to submit an array in a form, form_fields() handles it by returning multiple key-value pairs, where the keys start with the array name (including the brackets, escaped for HTML...) and successive items just append continuous underscores to this. Would it be...
  9. B

    Bug - Fixed chatBot != chatbot

    When setting the script via Preference->Automation, mafia saves the preference as chatBotScript instead of chatbotScript.
  10. B

    Bug chatbotScript executing twice

    So, I've tried to replicate the issue on a smaller scale, but I haven't been able to. It seems that my buffbot, when sending himself commands (using chat_private() to himself, from his loginScript) is running the chatbotScript twice. I thought at first maybe somehow the loginScript was being...
  11. B

    Feature - Implemented svn delete 2

    The Uninstallening. Would it be worthwhile to implement a way to free a script from the tyranny of svn without deleting all the files? Like "svn uninstall projectname" or something. If not (or just in the meantime) is there a way for me to do this manually? EDIT: deleting the folder from /svn...
  12. B

    Feature - Rejected get_florist_plants() return size, and others

    Would it be possible to make get_florist_plants()[locationName] only have as many keys as there are plants, instead of having 3 with 1 or 2 of them returning empty strings (didn't check what it does for a zone with no plants, I assume it just isn't in the map at all)? Would make counting plants...
  13. B

    florist friar flower facts

    Just thought I'd leave this here in case any scripters wanted to avoid doing the work themselves. Also, if there is already access to any of this data from within mafia (without any page hits) would be awesome to know. record plantInfo{ int no; string desc; boolean territorial...
  14. B

    Bug - Fixed Florist Friar showing in queue

    While doing some work with the new get_florist_plants, I saw this:Returned: Cobb's Knob Harem nocombats => false zone => Knob parent => Knob parentdesc => Cobb's Knob bounty => none combat_queue => Knob Goblin Harem Guard noncombat_queue => The Florist Friar's Cottage Pretty sure that last...
  15. B

    Bug - Fixed Ms. Accessory

    So, not really sure why, but for some reason the maximizer decided that a Ms. Accessory was better than a Mr. Accessory. I wasn't paying that close attention (and they look pretty similar) so I just trusted mafia to do its thing. And it spent my Mr. Accessory on a Ms. Accessory. If we get get...
  16. B

    Bug crashes while minimized

    I use minimize to System Tray, because I'm typically running a bot (or 3... long story). Each instance is running from its own folder, to be safe, but it seems like once a day I have to kill the process and restart them because they won't come back up (and, looking from another account, they are...
  17. B

    Bug - Cannot Reproduce dance card counters

    Using a script that checks get_counters() and uses dance cards to get me leveled. According to the gCLI, though, "(usable quantity of dance card is limited to 0 by existing counter)" get_counters("Dance Card",0,3) isn't showing anything, and according to the gCLI also, > counters Last...
  18. B

    master relays

    Before I go making a request, I just want to understand what the order of operations on relays is. As I understand it (and I don't know that I do) if a master is set, then the master gets run for all requests from the browser that ask for a KoL page, and that's it. When a master is set, a...
  19. B

    Bug - Fixed missing monsters?

    I have a wicked crude script that generates a monster->location map that depends on to_monster(). I looked through the most recent changes but nothing stood out as an obvious "that's what broke this". Current list of failed monsters. Creating monster map 1: Fire-Breathing Duck 2: Scorched Duck...
  20. B

    Feature ash from chat macros

    Currently, I can call an ash script from chat by typing /run myscript.ash Parameters Here which is pretty cool. I know it's only going to save a few keystrokes, but it would be crazy intuitive and awesome if I could define custom macros that link straight into an ash script so I could just type...
Top