Search results

  1. T

    ASH Map error

    For some reason, mafia is destroying the original map. int[int] randomizeList(int[int] input, boolean readout){ int elementCount = count(input); int randNum; int[int] rndList; if(readout){ print("randomize function:","red"); foreach i in input{ print("input["+i+"]...
  2. T

    Feature - Implemented User Input w/ timed default

    I'm not really sure where this thread should go, so I stuck it here. I would like to make a request for: boolean user_confirm(string msg) in the flavor of: boolean user_confirm(string msg, int timer, boolean default) There are instances, when I have sufficient time at night after I get...
  3. T

    CNCS (Custom Non-Combat Script)

    Is there any way to do this? I know you can set choice adventures via the drop-downs, however, I'd like something more robust. For instance, I'd like a way to choose the fudge wasps 3 times and then switch to super-heated fudge ONLY if my remaining turns of Stop and Smell the Fudge (fudge lily...
  4. T

    Buying from the BHH

    To qualify, I'm not very versed in web page coding. However, I dug through the BHH pane source code and came across: Items for Sale:</b><table><form action=bhh.php method=post><input type=hidden name=action value="buy" ... <input type=radio name=whichitem value=2464 ></td><td><img...
  5. T

    Running Mafia from a flash drive

    I am going to be out of town for a few weeks for work and want to bring Mafia and all my scripts with me and still play KoL. However, I can't install anything on the work laptop. So, I remember hearing about some development going on to write apps that run from flashdrives (like AIM, etc). Does...
  6. T

    Bug - Not A Bug Map_to_file directory problem

    It's been a while since I have been writing .ash files but I found myself with some free time and have been back at it. A long time ago (can't remember the version) mafia used to make a directory if it didn't exist when writing a file. I'm assuming it just used the default file creation call of...
  7. T

    Mafia and Math

    I see that mafia can do basic math and float^float. I am in need of the natural log function -> ln(x). I'm sure there is support for this in the math library it uses as it is pretty standard, however, does mafia support it's use?
  8. T

    Rumpus Room (associating text with a link)

    Doeas anyone know how to tie rumpus room equipment to a position to generate the correct visit_url() ? Obviously Mafia does, but I wanted to generally know how to parse the returned visit_url() string text and be able to associate a matching string with it's link. I tried digging through...
  9. T

    /whois

    Is there any way to return whether or not a character is logged in? (/whois) The reasons are: I figured it would be much more polite to check if a buffbot is online before sending meat so that when it logs in it doesn't have a list of 400 to process from everyone else doing the same. I...
  10. T

    NPC store item price

    I need a way to return the value of an npc store item. The reason is, I'd like to be able to calculate how many of an item to buy based on my current meat without relying on Mafia's lookup in 'npcstores.txt'. For instance, when the anti-antidotes were changed in price (also the change in...
Top