Search results

  1. raorn

    fight.php override - action buttons and a little fight-related library

    Scripts updated for recent RuntimeLibrary changes and will not work with 12.2 release. Can't remember minimum revision required. You must edit buttons_main() function in fight_buttons.ash and add your favorite skills after "Add your own leet skillz here" comment. By default this will work...
  2. raorn

    fight.php override - action buttons and a little fight-related library

    Aw! I meant "max" of course. But I'd better use ceil() here. Then what would happen if: 1. Monster defense is known and: I will_surely_miss and using TT combos or LTS I will_surely_miss and NOT using and combos/skills 2. Monster defense is unknown. I've noticed that TT combos have higher...
  3. raorn

    No relay override in next fight if something goes wrong

    After creating bartender-in-the-box Meat Maid disappeared form "creatable" list. I wanted to check what parts am I missing and tried to "make 1 Meat Maid" in gCLI. "You need 1 more XXX to continue." says mafia and sideframe turns red. I headed to YYY to get YYY and got no pretty fight...
  4. raorn

    fight.php override - action buttons and a little fight-related library

    Scripts updated for recent KoLmafia RuntimeLibrary changes. However, my Melee attach damage estimates looks a bit higher than actual damage. At least for lower level areas.
  5. raorn

    Fuzzy matching change

    Hey! How do I "use 10 mmj" from CLI?
  6. raorn

    More library funtions wanted

    Two reasons, make scripts simplier and make scripts faster. But of course RuntimeLibrary stability takes precedence In this case I will be happy too ;-)[hr] What about old weapon_type()? How do I know if this Mox weapon crossbow or not?
  7. raorn

    More library funtions wanted

    But not to relay overrides. To check if I can use Spectral Snapper and other weapon-dependent skills (fight_buttons.ash). Also it could be useful to check if two items can be equipped together (Maximize.ash). fight_buttons.ash again ;-) This could be done by checking page buffer, but library...
  8. raorn

    Is it shield?

    How do I know if given item is shield? Or not "generic" item, but equipped off-hand item. weapon_type() returns empty string (BTW, can it return "unknown"?) for both shields an other off-hands. Is this code correct:
  9. raorn

    More library funtions wanted

    It would be nice if those KoLmafia internal functions would be available directly from ASH: FightRequest.getCurrentRound(); EquipmentDatabase.equipStat(); FightRequest.alreadyJiggled(); KoLConstants.inventory as array/iterator, direct or slot/type-based.
  10. raorn

    fight.php override - action buttons and a little fight-related library

    What about Attack value? Is is reduced too? Crap! I always forget about that "sixth element"! Thanks, I'll take a look. Everything is fixed, some things are simplified. I'll attach new scripts tomorrow when I test it.
  11. raorn

    fight.php override - action buttons and a little fight-related library

    Who is TPTB? Call it "bugs" please ;-) Yes. Typo. Well, maybe I missed some things when read wiki. And it was late night ;-) I'll fix it. I'm not sure... Hot monsters will always take Cold damage because of Hot Resistance. Let's look at Spooky monster. It takes double damage from Hot...
  12. raorn

    fight.php override - action buttons and a little fight-related library

    It shows non-critical damage range that you could deliver to opponent if you hit him. However, it does not check whether you can certainly hit opponent, so it may be wrong with Attack with Weapon and melee-based skills like Headbutt if your Muscle is way too low. For Melee attack I had to...
  13. raorn

    fight.php override - action buttons and a little fight-related library

    This script is a rewrite of stationary combat buttons script written by miser. You will need: relay/fight.ash - main wrapper, you need to edit this script to enable/disable additional fight.php overrides. relay/fight_buttons.ash - the script itself. lib/fight_helper.ash - helper library for...
  14. raorn

    Discussion: Standards in relay over-ride scripts

    Why search for scripts, if you can use "all"? Just execute relay/PAGENAME/*.ash. Furthermore, mafia can do all the dirty work herself, passing current page buffer to scripts and writing output when all scripts are done.
  15. raorn

    variable inheritance when using import

    Thanks. Now things a bit more clear for me. Only two things have meaning for fight.php relay override - page itself and encountered monster. These two can be passed as function arguments. I'll post my results when it's ready. It could be great if one can have two functions with the same...
  16. raorn

    El Vibrato punchcard actions (untested)

    O hai, I made dis for you. First of all you need recent KoLmafia snapshot (at least rev5719). This script is a copy-paste of Disco Combos script. Unfortunately, I can remember where I downloaded it, but I'd like to thank it's author. I can't test it myself because I'm in BadMoon, but at...
  17. raorn

    (Hopefully) Improved stationary combat buttons with damage estimates

    Great script, thanks. Here's a hint for you on how to use two items: public static ScriptValue throw_items( final ScriptValue item1, final ScriptValue item2 ) { return RuntimeLibrary.visit_url( "fight.php?action=useitem&whichitem=" + item1.intValue() + "&whichitem2=" + item2.intValue() ); }
  18. raorn

    variable inheritance when using import

    Does ``import'' just "paste" other script, or it does something "clever"? Let's say i have three scripts: script1.ash int var1; int do_something1(...) { ... } script2.ash int var2; int do_something2(...) { ... } mainscript.ash int mainvar1; import <script1.ash>; import <script2.ash>...
  19. raorn

    Trophy progress

    It looks more like copy-paste ;-) Thanks for a nice script.
  20. raorn

    Trophy progress

    Why did Jack of Several Trades requires 6 skills in HC and 5 otherwise?
Back
Top