Search results

  1. raorn

    basement.php - quick command buttons

    Hi everybody, I'm back again with new relay override script! When running Firefox via ssh from remote machine, there's a 3-5 second lag when opening any pull-down item. This really speeds down my basement diving, so I decided to add some buttons for changing outfits and running other commands...
  2. raorn

    Implicit typecasts? How?

    Looks like mafia does implicit typecats. For example, in int n = 5; print("n = " + n); n in assignment will be autoconverted to_int(). Can anyone describe these rules? When mafia does implicit typecasts and when it bails with "can's assign XXX to YYY type"? I may admit, that mafia can...
  3. raorn

    A bit of self-adverizing and explainations

    As you can see from my latest posts I've created several scripts for KoLmafia, mostly relay-overrides. Most of these scripts tied to each other and I don't think it's very comfortable for most users to jump from topic to topic downloading files one by one and putting this all to KoLmafia...
  4. raorn

    Mad Hatrack equip helper (relay override)

    Not sure if it should belong to Relay-overrides section. This script adds hat effects to familiar.php page. relay/familiar.ash - simple wrapper script for merging multiple scripts in one. relay/familiar_hatrack.ash - script itself. This may mess up your familiar name if it matches with some...
  5. raorn

    fight.php override - punchcard helper

    Simple disco combos-alike punchcard helper. relay/fight_el_vibrato.ash - script itself. data/el_vibrato.txt - construct data. relay/fight.ash and lib/fight_helper.ash - wrapper script and helper library (don't forget to enable fight_el_vibrato.ash in fight.ash!). lib/html.ash - HTML helper library.
  6. raorn

    fight.php override - Disco Combos

    My rewrite of Disco Combos script by holatuwol. relay/fight_disco_combos.ash - the script itself. relay/fight.ash - wrapper script. lib/html.ash - HTML helper library.
  7. raorn

    fight.php override - simple rounds-to-survive data.

    It adds combat-rounds-until-death count below monster name. Not very accurate, however. relay/fight_info.ash - script itself. lib/scriptproperty.ash and relay/script_settings.ash - custom script settings framework. relay/fight.ash and lib/fight_helper.ash - wrapper script and helper library...
  8. raorn

    Simple HTML library

    Simple HTML library inspired by Ruby on Rails' ActionSupport::Helpers class. Nothing complicated, just a simple way to create forms. (should be put in lib/ subdirectory)
  9. 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...
  10. 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:
  11. 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.
  12. 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...
  13. 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...
  14. 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>...
  15. raorn

    Personal script settings (no need to edit scripts)

    Many scripts require editing to set some internal settings. Therefore it's hard for end user to update such scripts to a new version. Here's mini-library for using personal script settings. How to use it? import <scriptproperty.ash>; string scriptname = "MyCoolScript"; boolean some_option...
  16. raorn

    VIm syntax/filetype

    I wonder if anyone created ASH script syntax highlight / filetype plugin for VIm?
Top