Search results

  1. T

    Bug - Not A Bug Map_to_file directory problem

    Ok, but why can't I make subdirectories inside the /data directory? I don't get how that makes anything 'secure' ?
  2. 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...
  3. T

    Mafia and Math

    I need it to solve the probability density function for a different variable. I am aware of the Newton-Raphson method. I've used it to calculate float^float before. I wasn't aware it could be used for logarithms, though. I guess I'll search on it more.
  4. 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?
  5. T

    /whois

    Excellent! Thanks :) edit, edit: I forgot to erase a line of code initially, but that worked. Thanks again.
  6. T

    /whois

    As an update, running this seems to continue to loop until j=4 even if you receive the buff you are looking for before the loop finishes. for j from 0 to 4{ print("Checking for " + stringbuff + "."); buffed = have_effect(buff); if( !(buffed>curr_buffed) ){ print("Waiting 60 seconds...
  7. T

    Rumpus Room (associating text with a link)

    I have one follow up question.: To save on server hits, I was going to create a file that held all the clan furniture owned, so as to not hit the rumpus room a bunch of times. However, what if some point in the future the clan furniture changes and you try to visit_url() the Mr. Klaw game and...
  8. T

    Rumpus Room (associating text with a link)

    Yeah I guess I wasn't clear enough. You are correct. I would like to do something like: int i; string buffer; buffer=visit_url("clan_rumpus.php"); if(contains_text(buffer, "Mr. Klaw")){ for i from 0 to 2{ [use the claw game] } } Looking at the page...
  9. 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...
  10. T

    /whois

    Ok, I got bogged down with school/finals. Anything come out of this? Was there an official yes or no regarding adding this?
  11. T

    /whois

    I was originally thinking along those lines, but then came up short when I realized that if the person isn't in a clan you couldn't tell if they were online or not. But, yes, logically you would assume a buffbot is clanned. However, I don't want to depend on that assumption, and as you stated...
  12. 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...
  13. T

    NPC store item price

    I was able to patch it together using index_of() and substring(), if anyone was curious. It's not as elegant though :)
  14. 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...
Back
Top