PDA

View Full Version : basement.php - quick command buttons



raorn
06-02-2009, 10:21 PM
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 (like drinking MMJ's).

Put two attached files in relay/ folder. Just like all my relay overrides, this script uses lib/html.ash and lib/scriptproperty.ash. These scripts available form my repository, see signature.

I was too lazy to create configuration UI, so you have to set your buttons by hand:



set script_BasementChOutfit_customButtons0 = Mus:outfit muscle,Mys:outfit mysticality,Mox:outfit moxie,HP:outfit gauntlet,MP:outfit mpdrain
set script_BasementChOutfit_customButtons1 = Hot:outfit resist-hot,Cold:outfit resist-cold,Stench:outfit resist-stench,Sleaze:outfit resist-sleaze,Spooky:outfit resist-spooky
set script_BasementChOutfit_customButtons2 = Spell:outfit spell-damage-s,MMJ:use 10 magical mystery juice,Hand:familiar Disembodied Hand,Sombrero:familiar Hovering Sombrero


Or use my all-purpose script configuration UI available at http://127.0.0.7:60080/script_settings.php (there's no such page in real life, get relay/script_settings.ash from my repository).

Format is simple: CAPTION1:COMMAND1[,CAPTION2:COMMAND2...]. You can use any KoLmafia CLI commands there.

Terrabull
12-15-2009, 08:17 AM
I can't figure out how to install this, I have all the files you specified, but nothing happens.

mredge73
12-17-2009, 02:10 PM
you just put the files in the relay folder, that's it.

When you navigate to the page specified the scripts autorun.

Terrabull
12-18-2009, 06:58 AM
I did that, I downloaded the repository, and moved all the files he mentioned from there to the corresponding folders.
Not a single change that I can see.

jasonharper
12-18-2009, 07:58 AM
Do you have relay browser overrides enabled in mafia's preferences? They're off by default.

Terrabull
12-18-2009, 06:52 PM
Bah, no I didn't, I hadn't thought it would be off by default.
Now it works. Still can't access the script settings page though.