Search results

  1. E

    is this possible

    That's probably better handled with a simple cli script. You just about wrote the script there. create X spaghetti with Skullheads eat X spaghetti with Skullheads buy 3 cocktails drink 3 cocktails Where "X" would be replaced with the quantity desired, and "cocktails" would be replaced with the...
  2. E

    Pidgin chat plugin request

    I might know the reason why. He may have had the same reason I have in the game I am working on. Using frames, I want the chat frame to "fit in" with the rest of the frames. By fit in, I mean I want chat to have a similar appearance to the rest of the game. I also don't like the additional...
  3. E

    How does mafia evaluate if statements?

    Consider this: if((item_amount($item[bat wing]) >= 1) && eat(1, $item[bat wing])) adventure(2, $location[entryway]); we don't want to try to eat a bat wing if we don't have 1 or kolmafia will buy 1. if(item_amount($item[bat wing]) >= 1) if(eat(1, $item[bat wing])) adventure(2...
  4. E

    Pidgin chat plugin request

    I have been working on a stand alone chat interface in pascal, one reason being that java is a resource hog, and the second being I want to log chat. One of the problems that I hit was the implementation of MD5 into the login pages. For some reason pascals md5 and the one in use by web browsers...
  5. E

    PLZ HELP ME

    you could also copy kolmafia.jar or kolmafia.exe or whatever filename the program is on your system to a new folder, and start using it. I have found this method more desirable because I don't like to delete files immediately, I prefer to wait till I am certain I don't want them anymore.
  6. E

    TirianLib.Ash (Sell_item)

    I think you meant: "sell -5 chaos butterfly" sells all but 5 chaos butterflies.
  7. E

    VIm syntax/filetype

    You should be able to just use the javascript highlighter as the 2 languages are very similar. That is what I use in context.
  8. E

    How does mafia evaluate if statements?

    In writing of that page, I did not go that into depth. They are is referring strict boolean evaluation vs loose boolean evaluation. As of the time of writing The following held true: strict if((false) && (this code get's evaluated also)) even though kolmafia already knew that the answer was...
  9. E

    Learning Programming

    Ash is beginning to look more like an oop (object oriented programming) language as time goes by, but it really isn't in the true meaning of oop. from http://en.wikipedia.org/wiki/Object-oriented_programming In ash, there really are no objects or inheritance. Ash does allow you to create...
  10. E

    Learning Programming

    Everyone should first try Hello World so... Start up notepad, and type the following: print("Hello World!"); Save it as hello.ash, then run it from the scripts menu in kolmafia, and look at the graphical CLI. There are many other commands you can use besides print. check out...
  11. E

    Inventory cleanup script - in progress, help needed. (cleanup.ash)

    Sorry about that, itemset was declared in another file which I removed to simplify it. The original scripts (there were 3 or 4) would keep huge logs of everything coming to the account using the pulverize command and use command. A lot of people do not want that functionality, and those logs...
  12. E

    Help with script!

    make that use( item_amount( $item[disassembled clover]), $item[disassembled clover]); adventure( item_amount( $item[Ten-leaf clover]), $location[Lemon Party]); put_shop( 4000, 0, $item[big rock]); where 4000 is the price, 0 is the limit per day, and kolmafia puts all in by default. You are...
  13. E

    Nothing to do with KoLmafia, proxy server info.

    I also know a little, but I wont say a lot. I figure just ask your question and maybe we can answer maybe we can't. Wont hurt to try though. Wanna see me make this relate to kolmafia? Potentially kolmafia wont work on some computer if the proxy server is not working. There ya go. It relates.
  14. E

    Location of a script question (version-detection)

    That creates a new problem I normally update if I have time, but if I don't I wont. If I am never prompted again, I never will update because I will forget. Other people are different, so who knows what the best plan for the individual might be? Adding another prompt asking if they want...
  15. E

    Location of a script question (version-detection)

    Hmm, Well I just duplicated what you wrote, another "something like" sample pointing out the often forgotten user_confirm function in kolmafia which would seem quite useful in this situation, I do agree that I wouldn't want to stop a script if the versioning system were updated and not the...
  16. E

    Inventory cleanup script - in progress, help needed. (cleanup.ash)

    I might be able to help you get past all the errors. Holatuwol re-wrote what I was trying to do at one point, and I cannot find the topic on here right now, but this is a modified version. The basics are still there. item_cleanup.ash is the script, item_cleanup.txt is the data map containing...
  17. E

    Location of a script question (version-detection)

    Just an opinion, but I think that it would be more suitable to do this: void main() { if (!check_version(VER_VERSION,VER_VERSION_PAGE)) { if( user_confirm( "A newer version of the ver.ash script is available. Update first?") ) { cli_execute("abort For...
  18. E

    Inventory limit reached

    I don't think I would, only a few thousand of twinkly wads nuggets and powders. No where near the amount I have had before. considers the limit,,,16 million something..wow! I would love to have that many of even a 200 meat item!!!
  19. E

    Inventory limit reached

    What does inventory limit reached mean?
  20. E

    My .jar is skinny?

    When files are compressed, a single compression algorithm that decreases the size of one file will increase the size of some other file. Commonly a compressor will select a method of compression allowable in a format, and store what method was used in the file being compressed so as to get the...
Back
Top