Search results

  1. N

    Repeatitive log in

    Im pretty sure theres an example in the redepository somewhere, although in very basics just make a standard CLI script and all you need to know are 2 commands. Login PlayerName and call TheScript And for maps, if you havent yet read the new manual...
  2. N

    Easy Requests

    Example use of "{" and "}" if( true) { print("A code block that extends"); print("for more then the 1 line"); print("directly under the if."); } In other words you use them to define "How much of the below code to use when the check in the flow control returns true". The "void main()"...
  3. N

    ASH Maps question.

    I'm sort of confused at what your asking but something like this might suit your needs (Total guess at what your trying to do.). int [ item, string ] HP_Restore_Map; HP_Restore_Map [ $item[none], "min"] = 5; HP_Restore_Map [ $item[none], "max"] = 10; print( HP_Restore_Map [ $item[none]...
  4. N

    Live with what you have...

    Not a built in function but you can construct either a huge list of "if" and such commands or a ASH map that lists food and possibly the respective fullnesses (If you dont want to utterly waste the server and brute force your attempts) and then loop a function which runs down the map item by...
  5. N

    Spice Loop

    Open with a text editor, if your using a default install of windows you should have something like notepad//wordpad. (ASH is effectively a plain text file)
  6. N

    Easy Requests

    A few things to remember: If you really want to get into the script then remember to "set" the choice adventures to finish the outfit instead of relying on the item dropping. As a tip you might want to consider putting the different ore commands into a single "boolean GetOre( item OreType)"...
  7. N

    Easy Requests

    Well I assume he means 3 ores based on the "Trapper" part of the request ;) If you are going to script the actual adventuring of the mine to get ores then it might quickly become a little messy. Since theres no way to get ores by "normal" adventuring you will have to do some mining game...
  8. N

    ASH Function Reference Manual

    Heh I have too much spare time, I'll see if I can write up some example scripts for you, something simple that wont be all messy like my usual work... and smaller. >> I completely suck at explaining things so I don't really see myself writing actual "references" as such >> Edit: Just a little...
  9. N

    errors

    Uhh... >> Well that was unexpected. Just so you know I wasn't making a complaint, I agree after re-reading my post now, that depending on the tone used it could be taken as a complaint but I was attempting to state that there are some missing commands in the documentation which if he wanted...
  10. N

    errors

    All minus anything undocumented, which actually is quite a bit >>. (It doesn't even have stash_take in the reference manual among other things) You should read the "scripting related" release notes that veracity has kindly posted for us in the "Scripting Discussion" section of this forums. They...
  11. N

    Loop

    In ASH use while() instead of if()If your just wanting a infinite loop just stick "true" into the while. Edit: Go have a read of http://kolmafia.sourceforge.net/ash_tutorial.html, Since it kind of already explains it in there if you dont get what I mean.
  12. N

    errors

    // works as a comment, just dont have code to the left of it. (I tend to use // but falling into using # as a comment starter, not that I comment much in my scripts anyway) As for constructive comments, yeah its probably better if this isnt being run everyday, the minor "Its just nice not to"...
  13. N

    Closeting Meat command

    lowercase being the key >> I tried this with a uppercase M and bam its looking for Meatcars//meat detectors and all other meat items >>. Well that was a few versions back anyway, not too sure if it still has the same thing happen in the current versions.
  14. N

    Custom Combat scripts?

    Mox Manu got changed to the dropdown menu right?? Perhaps it broke the CCS?
  15. 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 >>)
  16. N

    Silly mistakes?

    0_o... you can do if's in that manner?? >> I did NOT know that... (The bracketing of the && statements) I guess the tutorial is semi-misleading by the last example code where in the "void main" there are 2 different if's (One for the AT && level 9 check and another for a SC || PM check).
  17. N

    Silly mistakes?

    -_- err... same things? And the ash command have_bartender() RETURNS a boolean value. Minor difference between "being a boolean" and "returning a boolean value". But if you ment if( have_bartender()) will work then yes it will. However boolean TheBoolean; if( TheBoolean) "TheBoolean" isnt...
  18. N

    Advanced Cocktail Crafting Script

    Personally I would use a bartender... and adventure at the peak and then mall the basic booze. (Although if your scripting this then its possible malling is "risky" but then again that means someone buying up the basic boozes alot)
  19. N

    Odd request? Raffles

    Indeed, as far as I know mafia doesnt have any scripting functions that can currently interact with chat.
  20. N

    Closeting Meat command

    Ok thats it I'm officially crazy >> Attached now... XD. Edit: Oh and yeah, pwd and phash (Possibly other I cant recall right now) when used in a raw URL manner, mafia automatically enters your hash on the request.
Back
Top