Recent content by Nightmist

  1. N

    FightOptimizer.ash

    Just here to verify that I'm understanding this script correctly. I'll write up what I think happens in a numbered list. 1. Brute Force every single possible mix of actions for the first 3 rounds (1-3). 1(a). In the event of expected death before 3 rounds then stop that particular branch to...
  2. N

    ASH maps - Calculations?

    Hmm in my opinion, DONT use a equipment[ int] map... Why? Because if equipment share the same increase in damage, they have the same int, which means they will result in overwriting eachother. Eg:item [int] oneHanded; oneHanded[3] = $item[gnollish slotted spoon]; oneHanded[3] = $item[gnollish...
  3. N

    ASH - iterating through a list of items

    Uhhh I'm not too clear on this but I'm going to take a blind guess and hope for the best >>. boolean [ string, int, item] MapName; MapName[ "Fruit1", 1, $item[grapefruit]] = true; MapName[ "Fruit2", 2, $item[lemon]] = true; foreach String1 in MapName { foreach Int1 in MapName[ String1] {...
  4. N

    ASH - iterating through a list of items

    In ash your looking at this: item [ int] MapName MapName [ 0] = $item[grapefruit]; MapName [ 0] = $item[lemon]; foreach Key1 in MapName { if( item_amount( Key1)) { print( "Yay, we have: "+item_amount( MapName[Key1])+" of "+MapName[Key1]); } } My syntax might be wrong but you should get the...
  5. N

    CLI Noob Questions - Boolean operators, Some basic scripting Qs

    Ohhh I get what was the problem now, heh I always just assumed that Ifs ran "what is the next command" rather then "what is the next command on the next line". (It never really proved to be a problem for me since I never "chained" commands//ifs on the same line, I've always had my separated so...
  6. N

    CLI Noob Questions - Boolean operators, Some basic scripting Qs

    Uhh whats wrong with using "if itemname > 0"? I mean the last time I used CLI scripts it took that as the number in your inventory?
  7. N

    a Buffbot script

    Assuming the ! does mean "mod" then yeah thats the right figures. (Incase anyone wants to know, if your using MS "calc" in scientific mode you can use "%" to act as "mod", so 83565 % 60 = 45... or use the "mod" button but heh =P)
  8. N

    CLI Noob Questions - Boolean operators, Some basic scripting Qs

    1. "==" is just "Equal to" and "!=" is "Not equal to" (Not sure if you need to use "==" instead of a single "=" anymore but that change might of been ASH only? I'm not sure) 2. While I'm more of a ASH person so your CLI scripts draw blanks from me, they "look" alright but I'm not too sure here.
  9. N

    Smithing bot? Need advice on workarounds and such.

    First I'm going to start off with... *blank* Okay nevermind I'll go straight to the questions. 1. I personally can't think of anything that "auto-updates" without extra server hits right now. 2. Get familiar with "foreach" looping? (I assume thats what your meaning? The foreach will allow you...
  10. N

    Generating a equipment data map from internal datafiles.

    2050 times using my current datafiles =P. Yeah sure its a bit excessive... (Okay a little more then a bit excessive) but thats what you get when the modifiers are not listed <tab> separated >>. (The whole having 737 different items it parses might do that to it too... come to think of it I would...
  11. N

    Generating a equipment data map from internal datafiles.

    modifiers.txt and equipment.txt both do NOT contain adventure++ stats, so in terms of rollover gear your going to have to make up something for that. Edit: This is really for use by people very familiar to ASH to show a method of mashing different datafiles into a single ASH map. But if you do...
  12. N

    Generating a equipment data map from internal datafiles.

    Heh if you are not used to using "record based maps" then you can always just load it into a map with this format: int [ item, int, stat, int, int, float, float, float, float, int, int, int, int, int, int, int, int, int, int] MapName; (I'm not sure if you can just "Map = Map" but you can always...
  13. 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...
  14. N

    modifiers.txt

    You will probably be working with a record of 2 strings, (2 at current point of time due to double <tab> of some items in the modifiers.txt file). I have a WIP version of a "internal datafile -> ASH Map" script which I started today, I'll do some more work on it before I post it up unless you...
  15. N

    Script to buy buffs

    Mafia doesn't allow the scripted purchase of philanthropic buffs, it will auto-convert to the next closest non-philanthropic price of that buff. Holatuwol (Heh man I think thats right? "Hero Of Legend And The Ultimate Warrior Of Light"? Radio interview love.) explains a bit in his radio...
Top