Search results

  1. N

    Generating a equipment data map from internal datafiles.

    Basically this script just grabs equipment.txt and modifiers.txt and mashes them together in a map to form a map... It doesn't actually do anything in terms of your KoL character but I suppose some people might find the data they can get from it useful for some other purpose. (Yeah I know some...
  2. N

    Passing $location[none] to a ASH script?

    Seeing as how you can have void main( location PassedLoc) and it pops up with a dropdown box for you to select which location to set PassedLoc to, is there some way to edit the adventures file to have a "fake" location so theres a option to select $location[none]? I'm just asking as I have...
  3. N

    Adventures.dat to Location Map?

    I'm just wondering if anyone has figured out a way to import a file using file_to_map when the file has different numbers of tab characters? (The objectives section of adventures.dat for instance) I'm trying to pull out what locations are in mafia's internal datafiles but clearly I'm having...
  4. N

    can_adventure( location loc)?

    I'm just wondering if there is currently a way to know if you can adventure at a location or not without attempting a adventure( int, loc) as a check? (Since that means a server hit per attempted location, in my script those hits will build up massively quickly) I wonder if it is already...
  5. N

    Combat Strategy?

    While this topic isn't strictly about scripting I'm sticking it in here as I'm using the information gathered here as a idea base for the various methods of combat for which a script I am writing will use. Feel free to move it if deemed inappropriate for this section of the forums. -=The...
  6. N

    Scripting "Headdesk" Moments!

    Well I suppose this could be put in the general section if anyone feels it should be in there since it doesn't have to really do with anything productive... just embarrassing//annoying headdesk moments in scripting! Just wondering if anyone has those moments ;) Feel free to share if you do. A...
  7. N

    IsNewDay()

    Just wondering if anyone knows a way of checking if it is a new day (read as "after rollover from last time this script ran") in KoL without hitting the servers? The best I've come up with is using today_to_string() but then its not based on rollover but rather your computer clock which isn't...
  8. N

    Is item check?

    Is there some way to check if a string name corresponds to a item name? I tried string_to_item, but that throws a error when it isnt a actual item. Just wondering... (Yes for the trade response script again =P)
  9. N

    Checking for files?

    Is there currently any way to get mafia to "check if a local file exists"? (As far as I understand the file_to_map is a void so no boolean checking that.) Just curious since my trade response script throws a hissy-fit at the moment when a certain local file which is ment to hold "History" isn't...
  10. N

    Alternate Trade Response Script

    Yeah before anyone says anything... I know its messy++... but anyway... Anyone trying to read and understand this script better have some sort of pain killers for the massive headache your bound to get =P. Currently Supports: (Assuming I didn't break it while doing some editing. after my last...
  11. N

    Manual Item Quant Editing

    Is it currently possible for a script to manually alter the item quantities that mafia handles internally? I'm looking for this ability for my trade handler (Since if you offer up a item in trade, mafia wont recognise that the item is gone until you do a inventory refresh which would need to be...
  12. N

    Re: ensure()

    Re: ensure() I was under the impression that "Acquire" already factors in currently existing items in your inventory. Unless I'm reading your request wrong... (Or I don't understand how acquire works...) Edit: I just tested with meat paste, and it seems acquire does already factor in existing...
  13. N

    Item from Description Number

    Just wondering if there is currently a inbuilt "This item description number == this item". Where you put in the description number and it pops out the item//item number?
  14. N

    ASH Maps question.

    Hmmm just wondering but is there a function in ASH that will "remove" a section of a ASH map? (The manual doesnt even have any documentation on maps so im left with asking the people here >>)
  15. N

    Equipment Maps (Currently Only Missing Acc's and Shirts)

    While I was editing my script to list Ranged//Melee weapon returns I have discovered a bug in my script. The current map is not trustworthy but I will however leave it linked as a example of whats to come. Basically this is a file with weapons stats in them... (Im not even using this myself...
  16. N

    Script or Link + Questions?

    This is more of poll//set of questions then a actual scripting question but the question I'm asking is more or less script requests related. Points//Questions: ~=~Script Requests Questions~=~ 1. Link people, when they ask for a script that can be easily done in CLI scripting, to the specific...
  17. N

    Finding food//booze//spleen stats

    Well this little script just returns the amount of fullness each item is. I decided to use strings rather then "$item[]" because of the Chez Snootée foods which are not real items and so therefore made them "Incorrect inputs" for a $item[]. This ment me choosing between leaving them out... or...
  18. N

    Monster Stats (ASH)

    Well simply put, this script returns Hit and Evade %'s vs certain monsters and in locations as a float value... Remember you need to manually set the "MCD" level in the script for it to work. It assumes you have 0 MCD unless changed. Completely trivial things: Input: MonStat(...
  19. N

    Old "Can Create" Function

    Before this was added to KoLMafia's function base I had created this script. Yes it has a few bugs but thats why I requested it to be added offically to the function base. Remember to import. Use this order: CanCreateTier2.ash CanCreateTier3.ash CanCreateTier4.ash CanCreateTier5.ash...
  20. N

    "Can Create Item" Function.

    Is there currently (7.1 public release) a way to check if it is possible to create a item? (Without actually creating the item) No longer needed, wrote myself a script for this.
Top