Search results

  1. P

    mall = DEPRECATED

    So, I have four KoL directories, Primary, Ascending, AfterCore, Merchant When ever there is a new KoL jar file I download it into Primary, then I have short cuts to the primary Kol.Jar from the others with the run in folder set to that specific folder, this allows me to customize everything...
  2. P

    To zip or not to zip (General scripting not ash)

    Ok, so the whole story is, I am writing an application for which the primary interface is command line, however the commands should be able to be sent from pretty much anywhere. So, the Kernal accepts commands in Json format, then runs the command and responds with Json results. A client...
  3. P

    To zip or not to zip (General scripting not ash)

    Lets see... The plaintext data is Json encoded... possibly encrypted json encoded.. so, I don't know how compressible that is. And the rest of it is up in the air b/c I still have to pick a Server.... but It lets assume I use a pretty cheapest VPS (The Vps has to be windows b/c .net apps...
  4. P

    To zip or not to zip (General scripting not ash)

    Hey, hope nobody minds but I just wanted to ask a general question even though it doesn't relate to ash. How large would a string need to be to justify zipping it before sending it over the wire? I.E, at how many bytes would the time spent zipping/unzipping become shorter then the time spent...
  5. P

    CAB Names

    <b>CAB Names 1.0.0</b> Set the title for each CAB Bar. Also, toggle the direction the up and down arrows move your cab bars. Now you can easily tell which CAB is for your Boris runs, or your Jarlsberg runs, or for your after core, etc. Setting a Cab Title: zlib CAB_Title_XX = <new title>...
  6. P

    Advice on consult-script

    Familiars proxy records have a charges property... It's there so you don't have to check the familiar image, or the boots text... and presumably future similar mechanics for familiars. $familiar[...].charges Cool trick, enter ash ${familiar/item/etc}[none] will show the properties available...
  7. P

    ChibiParent

    Thank god for this script, You brought by 1,1,8,9 back to a healthy 4,4,6,6 in only 54 moves! :)
  8. P

    Determine if/which holiday it is

    I think the most common use would be today_to_holiday, and tommorow_to_holiday... as those are the only two that have practical in-game/in-run usage... knowing past holidays is not useful gameplay wise, and you can pretty much fully prepare within a day, not to mention that if you want more...
  9. P

    Determine if/which holiday it is

    I just put tommorow_to_holiday because it would be useful for log out scripts or last minute preparations for a specific holiday, maybe ensure that you rollover to 200 adv instead of burning more today. params = new Type[]{DataTypes.INT_TYPE}; functions.add(new...
  10. P

    Determine if/which holiday it is

    Here's a patch that would allow ash and cli access to holiday information File: KolMafia/src/net/sourceforge/kolmafia/textui/RuntimeLibrary.java Line 411 params = new Type[] {}; functions.add(new LibraryFunction("today_to_holiday", DataTypes.STRING_TYPE,params)); params = new Type[]...
  11. P

    Bug - Fixed EmptyStackException when using call

    Double checked, you are correct... I typo'ed the change and it does in fact have to call int myFunc rather then call void myFunc. Here is trace... Note the line that I marked... perhaps that is a clue as to what is happening. Executing main function Param #1: funcB() Param #1...
  12. P

    Bug - Fixed EmptyStackException when using call

    Ok... so the empty stack exception was coming from restoreBindings in UserDefinedFunction.java So I made 2 changes to the func ArrayList values=(ArrayList) this.callStack.pop(); . . if(!current.isStatic()) { current.forceValue((Value) values.get(i++)); } became ArrayList values = null; if...
  13. P

    Feature Use Kol Combat Macros in Custom Combat Scripts

    Kol Combat macros are saved to your account... so no matter which instance on which computer I run KolMafia from, I know that I have macro X available. Also, I can add Kol Combat Macros to the Combat Action Bar for manual adventuring.
  14. P

    Feature Use Kol Combat Macros in Custom Combat Scripts

    Hm.. I didn't realize that it was so lenient on naming conventions. Either way though, here are two regexs that would do the trick of finding the info. .*?<select name="macroid">(.*?)</select>.* <--- Results in group 1 having just the options html, requires the DOTALL flag for dot to mach...
  15. P

    Feature Use Kol Combat Macros in Custom Combat Scripts

    Ok... so the easy part is calling the combat macro, just visit_url("fight.php?action=macro&whichmacro=<MacroNumber>",true); The slightly more difficult part is getting the macro name->macro number mapping... but... a visit to account_combatmacros.php has some html wrapped around the important...
  16. P

    Bug - Fixed EmptyStackException when using call

    Is there any hope for this one getting fixed? I downloaded the latest code via SVN, and installed eclipse to try to take a look at it myself, but I am a C# Dev, not really a java guy... maybe someone can give me some advice of what I am looking for? I got to the point where I was able to write...
  17. P

    Combat macros in custom combat script...

    I like to put my custom combat stuff in kol's combat script because it's easy to put them into the combat action bar... is there a way to use the Kol Combat macros in custom combat settings? Right now, I have one set up as an auto attack, and gennerally that seems to do the trick, but that...
  18. P

    ChibiParent

    So.. I don't know anything about my chibibuddy, will this script keep him alive indefinatly (if i run it daily)? Or just as long as possible until the magic of the RNG kills it?
  19. P

    Needing help with writing a script

    I don't know what you are trying to do, but you can set a log out script to run when you log out rather then when you run out of adventures.
  20. P

    Determine if/which holiday it is

    Thanks guys, I was only interested in halloween which, luckly is fairly easy to predict... I just thought that mafia might have had some built in way to do it.
Back
Top