CLI Links -- easily add CLI power to your relay script

zarqon

Well-known member
CLI Links

What is it?
Originally CLI Links was a small utility for authors of relay scripts, allowing relay scripts to add links which would perform CLI commands. It has since incorporated Drag-and-Drop Inventories as well as various other functions to become a library of tools for relay scripts.

Making CLI Links Work for You
First, if it's not already installed (it may have been installed already by a script that uses it) you'll need install it by entering the following into your CLI:
Code:
svn checkout https://svn.code.sf.net/p/clilinks/code/
This will install five files into your relay folder:
  • clilinks.js (the jQuery)
  • clilinks.ash (the ASH function library)
  • clilinks.css (makes things look nice)
  • jQuery1.10.1.min.js (jQuery itself)
  • datatables.min.js (the DataTables plugin)
You can incorporate CLI Links functionality extremely easily using CLI Links' prep_page( buffer destpage, [ string scriptlist ] ) ASH function. It takes a target HTML page destpage and adds all the necessary scripts to it, including any additional scripts (or stylesheets!) you specify in scriptlist (comma-delimited). You can either pass it a complete page (for when you're enhancing an existing KoL page), or a partially generated page (like when you're making a relay script for the drop-down menu in the relay browser). The only requirement for the page you pass to it is that it has <head></head> tags, since the scripts are inserted into them.

But Really, CLI Links

So first, let's explain the CLI Links part of CLI Links. It makes all links with a class of "clilink", "cliimglink", or "clilinknostyle" become CLI Links which, when clicked, perform whatever their text is (or whatever their title attribute is, if that's specified) in the CLI. Further, it also makes a CLI dialog box accessible to your script, which if triggered will pop up and allow the user to enter and perform CLI commands. Whenever a CLI command is finished executing -- either as the result of clicking a CLI Link or entering a command in the dialog box -- a message pops up showing the CLI output resulting from the command.

You may now begin including CLI Links in your page. Like so:

CLI Links for All Occasions
The most basic CLI link is simply a link to nowhere with the "clilink" class:
HTML:
<a href=# class="clilink">outfit Mining Gear</a>
It will look like this: [outfit Mining Gear]. A cute little link surrounded by brackets, much like KoL and KoLmafia use. When clicked, that will execute the CLI command "outfit Mining Gear" -- meaning the player will attempt to equip the outfit -- and then pop up a message showing the CLI output.

If the title attribute is specified, that will be the CLI command executed, rather than the text of the link itself:
HTML:
<a href=# class="clilink" title="print A duck!">What else floats on water?</a>
When clicked, the message "A duck!" will print to the CLI, and then the same will pop up in the browser.

If you want to make an image a CLI Link, use the "cliimglink" class rather than the "clilink" class.
HTML:
<a href=# class="cliimglink" title="use 1 mmj"><img src="/images/itemimages/potion4.gif"></a>
Using the "clilink" class would actually work, but the image would be surrounded by square braces. Using the "cliimglink" class avoids that unsightliness, while being otherwise functionally identical to regular "clilink" links.

If you don't want to have brackets, or you'd like to style the links yourself, but still retain the clicky CLI Link functionality, you can use the "clilinknostyle" class. This works exactly like the "clilink" class but applies no styles to the link (it's not small and has no surrounding brackets).

If you want the href to actually be visited after performing the CLI command, give the CLI Link an additional "through" class:
HTML:
<a href="adventure.php?snarfblat=159" class="clilink through" title="equip acc3 pirate fledges">Adventure at the Poop Deck with fledges on</a>
You can also use this to make the page refresh after clicking the link by having the page link to itself. You begin to see now that this handy little bit of code can really streamline things for you!

There's one more useful thing you can do with CLI Links, and that's provide most of a CLI command for the user in advance. If you give a CLI Link an additional "edit" class, rather than executing the command, it will bring up the CLI dialog box, with the command already filled in and the cursor positioned at the end waiting for the user to type more. BatMan RE uses this like so:
HTML:
<a href=# class="clilink edit" title="conditions set">add goals</a>
When the user clicks the [add goals] link, the dialog pops up containing "conditions set ", with the cursor positioned at the end ready for them to type the goals they wish to set.

Information for Advanced Users
Pardon the Windows-speak there. The following are details basically everyone would be just fine without knowing, but there may just come that time when you're scripting something using CLI Links, and you find yersef a-wonderin', by golly, if'n I could only finagle X tricky little bit, then my script could wrap up nicely with Y and Z. And if any of the following details help you accomplish that X, then it was info well typed. Here we go:

By default, the only way to activate the dialog box is by using a CLI Link with the "edit" class. You may, however, trigger the dialog box directly by calling cliPopup() in your own JavaScript. BatMan RE uses this in its document.keyPress() event to pop up the dialog when a user presses '0'. Also, cliPopup() can accept a parameter which allows you to prepopulate the box with text before displaying it if you like. Clicking anything with class "cliclose" will cancel the dialog (note that by default, pressing ESC will not cancel the dialog -- you'd have to add that functionality yourself).

This script has at its core a jQuery wrapper for cli_execute(), which takes a command as a parameter. You cannot capture the return value from this function, but you can extend the cliComplete function -- in which the result is accessible. Depending on what you're doing, you may wish to skip a link entirely and call this function directly in your script.

You may wish to perform certain actions after the CLI Links execute, such as refresh part of the page, or make the link disappear. You can do this by extending cliComplete(), like so:

PHP:
cliComplete = function(data) {
   oldComplete.apply(this, arguments);  // execute the default cliComplete function
  // additional code that you want to fire
  // after executing a CLI command can go here
  // (or above the default function call if you also want it
  // to execute before "through" links
};

This code must appear after you import clilinks.js. Then, whenever a CLI Link command is executed from your relay browser, your custom code will run afterward. BatMan RE uses this technique in batman.js to refresh the Adventure Again box after each CLI Link click, since its contents are very likely to change when following CLI Links (items could be used up, goals adjusted, etc).

One more tool for the authors, woohoo! Enjoy!
 
Last edited:

Bale

Minion
Holycrap!

Now I'm going to have to figure out if I want to refactor ChIT to use this.

What post CLI code would cause the charpane to reload after executing the command?
 

Bale

Minion
If? IF?! You know you want to ^^

Yeah... I kinda do. It just seems like a lot of work. I'd also need to know how to make it reload the frame after clicking. And there are some parts of that script I barely understand.
 

Bale

Minion
Wait. Would this work?

PHP:
<a href="charpane.php" class="clilink through" title="mcd 10">Vertebra of the Bonerdagon</a>

Edit: Tried that. It didn't work. I've also run into a small problem that I'm not sure how to style the links.
 
Last edited:

Theraze

Active member
For some reason, it appears that mafia is putting the CLI links into the session log as if they had been run. I have a LOT of "use dolphin whistle" lines in my session log for today (from fight.ash, I'm assuming) and many less that actually led to dolphin fighting. Not sure if this is a problem with how CLI Links work or a mafia bug.
 

zarqon

Well-known member
PHP:
<a href="charpane.php" class="clilink through" title="mcd 10">Vertebra of the Bonerdagon</a>

Edit: Tried that. It didn't work. I've also run into a small problem that I'm not sure how to style the links.

That should work exactly as you described. I'll look into that. (EDIT: try that again! I bet it works now.)

Regarding styles, I noted that some of the styles I was applying with css() weren't being applied, so I reworked it to append the styles to <head> rather than apply them using css(). That should allow dynamically added CLI Links to also be styled correctly. r2

Since CLI Links have the "clilink" class, you can simply apply any desired styles to that class if you want to style the links. If you're applying that class to other things than links for clickable fun (yes, you can have a clilink div!), you may have to specify "a.clilink" to get only the links.

Actually, Bale, one script of yours I was really thinking could benefit from CLI Links is OCD. The projected action for each item could be clicky -- which would actually perform the specified action, without needing to reload the page.

Also, I discovered an error with extending cli_execute(). Both ajax() and animations don't wait for the previous command to finish, so for anything other than instantaneous CLI commands, the "post-CLI" code was firing before the command was actually done. Old habits, etc. So I separated out the AJAX success function, named it cliComplete(), and now we have a function to extend which does only get called once the CLI command has finished. r3.

EDIT: After hours of trying lots of different ways to return information from a function encapsulating an AJAX call, I finally realized that I was pursuing an impossible algorithm due to ajax calls being asynchronous. It then took me a lot more head-banging research to realize that by tweaking just a few little things -- most importantly adding "context" to the ajax call -- I could achieve the desired results. Everything is working swimmingly now, including "through" links, so Bale, recommend you update and try that again. r4
 
Last edited:

Bale

Minion
Updated to r4. Tried that again. It did not reload the charpane. Also would it be possible to have the link without [brackets]?

Why would OCD benefit from this? The relay script doesn't take any actions. I'm not sure I understand.
 

zarqon

Well-known member
I want you to like and use this script, so I tracked down your problem. It lies in the old, old version of jQuery that KoL uses (beginning of 2009). If you use KoL's old version of jQuery, CLI Links' "through" ability won't work. If you use the latest 1.x version of jQuery, KoL's context menu code will break. Fortunately, all the commands used in the KoL charpane and all the commands used in CLI Links both work with jQuery 1.7, so if you add this to your script then "through" links will start working:

PHP:
results.replace_string("<script language=Javascript src=\"/images/scripts/jquery-1.3.1.min.js\"></script>","");
results.replace_string("</head>","<script src=\"//code.jquery.com/jquery-1.7.2.min.js\"></script><script src=\"clilinks.js\"></script></head>");

That removes KoL's old 1.3 before importing 1.7 and then CLI Links. Tested working in the charpane on my end with the exact code you posted. For slightly faster load time you may want to load 1.7 locally.

ETA: You can remove the brackets by overwriting that CSS:

Code:
<style>
   .clilink:before { content: "" }
   .clilink:after { content: "" }
</style>
 
Last edited:

Bale

Minion
I just tried that. It worked, but it screwed up ChIT. Specifically, it eliminated the scrollbar in my walls, anchoring it to the bottom of the page and overwriting the top of the page. Rather disconcerting. I'm starting to think it will be way too much trouble to make it ChIT compatible.

In case you're curious, this is the html. Maybe you'll see some obvious error. I'm going to be ascending now, so I might not be able to do too much testing.

HTML:
<html><head>
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="clilinks.js"></script>

<link rel="stylesheet" type="text/css" href="http://images.kingdomofloathing.com/styles.css">
<style type="text/css">
	#nudges div { position: relative; padding: 0px; }
	#nudges div .close { position: absolute; top: -2px; right: -10px; border: 1px solid black; }
</style>
<script language="Javascript" src="/basics.js"></script><link rel="stylesheet" href="/basics.css" /><script src="//code.jquery.com/jquery-1.7.2.min.js"></script><script src="clilinks.js"></script>
<link rel="stylesheet" href="chit.css">
</head>
<script language=Javascript src="/images/scripts/keybinds.min.2.js"></script>
<script language=Javascript src="/images/scripts/window.20111231.js"></script>
<script language="javascript">function chatFocus(){if(top.chatpane.document.chatform.graf) top.chatpane.document.chatform.graf.focus();}
if (typeof defaultBind != 'undefined') { defaultBind(47, 2, chatFocus); defaultBind(190, 2, chatFocus);defaultBind(191, 2, chatFocus); defaultBind(47, 8, chatFocus);defaultBind(190, 8, chatFocus); defaultBind(191, 8, chatFocus); }</script>
<script type="text/javascript" src="/images/scripts/pop_query.20130705.js"></script>
<script type="text/javascript">

	var CURFAM = 92;
	var FAMILIARFAVES = [["Princess Vina","Slimeling","slimeling",112],["Freddy \'Alastair\' Direwyrm","Artistic Goth Kid","crayongoth",160],["Baku","Unconscious Collective","uc",166],["Reibai-sensei","Happy Medium","medium_0",159],["Todd","Knob Goblin Organ Grinder","organgoblin",139],["Onegai Marie","Angry Jung Man","jungman",165],["Tron","Rogue Program","tronguy",135],["Superloose","Stocking Mimic","smimic",120],["Enn Reitel","Baby Sandworm","babyworm",111],["spartacus!","Baby Bugged Bugbear","babybugbug",124],["Nanael","Obtuse Angel","obtuseangel",146],["Yoroids","He-Boulder","heboulder",113],["Torgly","Frumious Bandersnatch","bandersnatch",105],["Rockin\' Wan-wan","Jumpsuited Hound Dog","hounddog",69],["Pantsless","Fancypants Scarecrow","pantscrow2",152],["Coco","Grouper Groupie","grouper2",116],["...","Pair of Stomping Boots","stompboots",150],["...","Nanorhino","nanorhino",167],["Birdy","Oily Woim","woim",168],["Inko-chan","Exotic Parrot","parrot",72],["Thing","Disembodied Hand","dishand",92] ];
</script>

	<script type="text/javascript">
var todo = [];
function nextAction() {
	var next_todo = todo.shift();
	if (next_todo) {
		eval(next_todo);
	}
}
function dojax(dourl, afterFunc, hoverCaller, failureFunc) {
	$.ajax({
		type: 'GET', url: dourl, cache: false,
		global: false,
		success: function (out) {
			nextAction();
			if (out.match(/no\|/)) {
				var parts = out.split(/\|/);
				if (failureFunc) failureFunc(parts[1]);
				else $('#ChatWindow').append('<font color="green">Oops!  Sorry, Dave, you appear to be ' + parts[1] + '.</font><br />' + "\n");
				return;
			}

			if (hoverCaller)  {
				float_results(hoverCaller, out);
				if (afterFunc) { afterFunc(); }
				return;
			}			var $eff = $(top.mainpane.document).find('#effdiv');
			if ($eff.length == 0) {
				var d = top.mainpane.document.createElement('DIV');
				d.id = 'effdiv';
				var b = top.mainpane.document.body;
				if ($('#content_').length > 0) {
					b = $('#content_ div:first')[0];
				}
				b.insertBefore(d, b.firstChild);
				$eff = $(d);
			}
			$eff.find('a[name="effdivtop"]').remove().end()
				.prepend('<a name="effdivtop"></a><center>' + out + '</center>').css('display','block');
			if (!window.dontscroll || (window.dontscroll && dontscroll==0)) {
				top.mainpane.document.location = top.mainpane.document.location + "#effdivtop";
			}
			if (afterFunc) { afterFunc(); }
		}
	});
}
	var turnsplayed = 581337;
var turnsthisrun = 4307;
var rollover = 1376623800;
var rightnow = 1376553825;
var playerid = 754005;
var pwdhash = "a849ce56f2c06e8ec1b989fe98b676cc";
var hide_nudges = true;
$(document).ready(function () {
	$('.showall').live('click',function () {
		var hidden = $(this).attr('rel');
		var hd = hidden.split(/,/);
		for (var i=0; i< hd.length; i++) {
			deleteCookie(hd[i], '');
		}
		document.location = 'charpane.php?foo=' + escape(Math.random());
	});
	var multi = function  (e) {
		e.preventDefault();
		var link = this;
		pop_query($(this), 'How many times?', 'Do It!', function (res) {
			dojax(($(link).attr('href')+'&ajax=1').replace('qty=1', 'qty='+res));
		});
	};
	$('.upeffect').click(function (e) {
		e.preventDefault();
		if (e.shiftKey) multi.apply(this, [e]);
		else dojax($(this).attr('href')+'&ajax=1');
	});
	$('.upeffect').bind('contextmenu', multi);

	/*
	try {
		var $ue = $('.upeffect');
		if (localStorage.getItem('showing-efarrows') != 1) 
			$ue.hide()
		$ue.parents('td').css('width', '15');
		$ue.parents('table').hover(function (e) {
			$ue.show();
			localStorage.setItem('showing-efarrows', 1);
		}, function (e) {
			$ue.hide();
			localStorage.removeItem('showing-efarrows');
		});
	} catch (e) { }
	 */

	if (hide_nudges) $('#nudges td div').hover(
		function () {
			if (!hide_nudges) return;
			var ht = '<a href="#" class="close"><img alt="Hide" title="Hide"  src="http://images.kingdomofloathing.com/closebutton.gif" /></a>';
			var c = $(ht);
			$(this).append(c);
			c.click(function () {
				var key = $(this).parents('tr:first').attr('rel');
				$(this).parents('tr:first').remove();
				setCookie(key, 1);
			});
		},
			function () {
				if (!hide_nudges) return;
				$(this).find('.close').remove();
			}
	);
});
</script>
<script language=Javascript src="/images/scripts/charpane.20130711.js"></script>
<script type="text/javascript" src="/images/scripts/cookie.20121112.js"></script>

<script type="text/javascript" src="chit.js"></script>
<body bgcolor=white text=black link=black alink=black vlink=black onload='startup();'>
<div id="chit_house"><div id="chit_roof" class="chit_chamber"><table id="chit_character" class="chit_brick nospace"><tr><th colspan="3"><a target="mainpane" href="charsheet.php">Bale</a> (<span style='cursor: hand; cursor: pointer;' onClick='outfit("95");'>Dreadful Pajamas</span>)</th></tr><tr><td rowspan="4" class="avatar"><a href="#" class="chit_launcher" rel="chit_pickeroutfit" title="Select Outfit"><img src="http://images.kingdomofloathing.com/otherimages/dvoutfitfred.gif"></a></td><td class="label"><a target="mainpane" href="guild.php?guild=t" title="Visit your guild">Accordion Thief</a></td><td class="level" rowspan="2"><a target="mainpane" href="council.php" title="Visit the Council">25</a></td></tr><tr><td class="info">Aftercore</td></tr><tr><td class="info">No Restrictions</td></tr><tr><td colspan="2"><div class="chit_resource"><div title="Meat" style="float:left"><span>10,151,489</span><img src="/images/itemimages/meat.gif"></div><div title="39 Adventures remaining" style="float:right"><span>39</span><img src="/images/itemimages/slimhourglass.gif"></div></div><div style="clear:both"></div></td></tr><tr><td class="progress" colspan="3" title="29 moxie until level 26
 (34,671 substats needed)" ><div class="progressbar" style="width:41.474654377880185%"></div></td></tr></table><table id="chit_stats" class="chit_brick nospace"><thead><tr><th colspan="3">My Stats</th></tr></thead><tbody><tr><td class="label">Muscle</td><td class="info"><span style="color:blue">4,723</span>  (396)</td><td class="progress"><div class="progressbox" title="653 / 793 (140 needed)"><div class="progressbar" style="width:82.34552332912989%"></div></div></td></tr><tr><td class="label">Myst</td><td class="info"><span style="color:blue">2,771</span>  (397)</td><td class="progress"><div class="progressbox" title="55 / 795 (740 needed)"><div class="progressbar" style="width:6.918238993710692%"></div></div></td></tr><tr><td class="label">Moxie</td><td class="info"><span style="color:blue">2,781</span>  (600)</td><td class="progress"><div class="progressbox" title="970 / 1201 (231 needed)"><div class="progressbar" style="width:80.76602830974188%"></div></div></td></tr></tbody><tbody><tr><td class="label">HP</td><td class="info">7052 / 7052</td><td class="progress"><div class="progressbox" title="7052 / 7052"><div class="progressbar" style="width:100.0%;background-color:green"></div></div></td></tr><tr><td class="label">MP</td><td class="info"><a title="Restore MP" href="/KoLmafia/sideCommand?cmd=restore+mp&pwd=a849ce56f2c06e8ec1b989fe98b676cc">351 / 4613</a></td><td class="progress"><a href="/KoLmafia/sideCommand?cmd=restore+mp&pwd=a849ce56f2c06e8ec1b989fe98b676cc"><div class="progressbox" title="Restore your MP"><div class="progressbar" style="width:7.608931281161934%;background-color:orange"></div></div></a></td></tr></tbody><tbody><tr><td class="label"><a href="inv_use.php?pwd=a849ce56f2c06e8ec1b989fe98b676cc&which=3&whichitem=2682" target="mainpane" title="Detuned Radio">Radio</a></td><td class="info"><a href="#" class="chit_launcher" rel="chit_pickermcd" title="Turn it up or down, man">10</a></td><td class="progress"><a href="#" id="chit_mcdlauncher" class="chit_launcher" rel="chit_pickermcd"><div class="progressbox" title="Turn it up or down, man"><div class="progressbar" style="width:100.0%;background-color:black"></div></div></a></td></tr></tbody><tbody><tr><td class="label"><a class="visit" target="mainpane" href="clan_dreadsylvania.php">Last</a></td><td class="info" style="display:block;" colspan="2"><a class="visit" target="mainpane" href="adventure.php?snarfblat=340">Dreadsylvanian Castle</a></td></tr><tr><td class="label"> </td><td class="florist" colspan="2"><a class="chit_launcher" rel="chit_pickerflorist" href="#"><img src="http://images.kingdomofloathing.com/otherimages/friarplants/plant12.gif" title="Stealing Magnolia
 (+25% Item drops)"><img src="http://images.kingdomofloathing.com/otherimages/friarplants/plant20.gif" title="Pitcher Plant
 (Restores MP after combat)"><img src="http://images.kingdomofloathing.com/otherimages/friarplants/plant16.gif" title="Red Fern
 (Delevels enemies during combat)"></a></td></tr></tbody></table></div><div id="chit_walls" class="chit_chamber"><center id='rollover' class=tiny style='color: red; cursor: pointer;' onClick='doc("maintenance");'></center><table id="chit_effects" class="chit_brick nospace"><thead><tr><th colspan="4"><img src="/images/chit/effects.png">Effects</th></tr></thead><tbody class="songs"><tr class="effect"><td class="icon"><img src="http://images.kingdomofloathing.com/itemimages/etude.gif" width=20 height=20  onClick='eff("26318ef7c75a6bf1fa80584e2e8941b3");' oncontextmenu='return shrug(532, "Elron's Explosive Etude");'></td><td class="info">Elron's</td><td class="shrug"><a href="/KoLmafia/sideCommand?cmd=uneffect+Elron%27s+Explosive+Etude&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Shrug off the Elron's Explosive Etude effect">3</a></td><td class="powerup"><a href="/KoLmafia/sideCommand?cmd=cast+1+Elron%27s+Explosive+Etude&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Increase rounds of Elron's Explosive Etude"><img src="/images/chit/redup.png" border=0></a></td></tr><tr class="effect"><td class="icon"><img src="http://images.kingdomofloathing.com/itemimages/fatleons.gif" width=20 height=20  onClick='eff("63e73adb3ecfb0cbf544db435eeeaf00");' oncontextmenu='return shrug(67, "Fat Leon's Phat Loot Lyric");'></td><td class="info">Phat Loot</td><td class="shrug"><a href="/KoLmafia/sideCommand?cmd=uneffect+Fat+Leon%27s+Phat+Loot+Lyric&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Shrug off the Fat Leon's Phat Loot Lyric effect">649</a></td><td class="powerup"><a href="/KoLmafia/sideCommand?cmd=cast+1+Fat+Leon%27s+Phat+Loot+Lyric&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Increase rounds of Fat Leon's Phat Loot Lyric"><img src="/images/chit/up.png" border=0></a></td></tr></tbody><tbody class="buffs"><tr class="effect"><td class="icon"><img src="http://images.kingdomofloathing.com/itemimages/strboost.gif" width=20 height=20  onClick='eff("e176f70d3a673e928e6c93aa523b5e14");' oncontextmenu='return hardshrug(33, "Phorcefullness");'></td><td class="info">Phorcefullness</td><td class="shrug"><a href="/KoLmafia/sideCommand?cmd=uneffect+Phorcefullness&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Use a remedy to remove the Phorcefullness effect">3</a></td><td class="powerup"><a href="/KoLmafia/sideCommand?cmd=use+either+1+philter+of+phorce%2C+1+evil+philter+of+phorce&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Increase rounds of Phorcefullness"><img src="/images/chit/redup.png" border=0></a></td></tr><tr class="effect"><td class="icon"><img src="http://images.kingdomofloathing.com/itemimages/strboost.gif" width=20 height=20  onClick='eff("fd5616e89e1c2ecb0b01b61929682d2d");' oncontextmenu='return hardshrug(30, "Incredibly Hulking");'></td><td class="info">Incredibly Hulking</td><td class="shrug"><a href="/KoLmafia/sideCommand?cmd=uneffect+Incredibly+Hulking&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Use a remedy to remove the Incredibly Hulking effect">3</a></td><td class="powerup"><a href="/KoLmafia/sideCommand?cmd=use+1+Ferrigno%27s+Elixir+of+Power&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Increase rounds of Incredibly Hulking"><img src="/images/chit/redup.png" border=0></a></td></tr><tr class="effect"><td class="icon"><img src="http://images.kingdomofloathing.com/itemimages/lycanth.gif" width=20 height=20  onClick='eff("79bc05cd8f6cdf869c66a840f79ce2d3");' oncontextmenu='return hardshrug(27, "Temporary Lycanthropy");'></td><td class="info">Temporary Lycanthropy</td><td class="shrug"><a href="/KoLmafia/sideCommand?cmd=uneffect+Temporary+Lycanthropy&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Use a remedy to remove the Temporary Lycanthropy effect">3</a></td><td class="powerup"><a href="/KoLmafia/sideCommand?cmd=use+1+blood+of+the+Wereseal&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Increase rounds of Temporary Lycanthropy"><img src="/images/chit/redup.png" border=0></a></td></tr><tr class="effect"><td class="icon"><img src="http://images.kingdomofloathing.com/itemimages/strboost.gif" width=20 height=20  onClick='eff("6d89203ac28fe98c2de379b0c3e0bb63");' oncontextmenu='return hardshrug(1202, "Superveiny 9000");'></td><td class="info">Superveiny 9000</td><td class="shrug"><a href="/KoLmafia/sideCommand?cmd=uneffect+Superveiny+9000&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Use a remedy to remove the Superveiny 9000 effect">3</a></td><td class="powerup"><a href="/KoLmafia/sideCommand?cmd=use+1+Super+Weight-Gain+9000&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Increase rounds of Superveiny 9000"><img src="/images/chit/redup.png" border=0></a></td></tr><tr class="effect"><td class="icon"><img src="http://images.kingdomofloathing.com/itemimages/snowflakes.gif" width=20 height=20  onClick='eff("c45d2469bf8cfd8c9bbc953e2a44f3c4");' oncontextmenu='return hardshrug(350, "Starry-Eyed");'></td><td class="info">Starry-Eyed</td><td class="shrug"><a href="/KoLmafia/sideCommand?cmd=uneffect+Starry-Eyed&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Use a remedy to remove the Starry-Eyed effect">3</a></td><td class="powerup"><a href="/KoLmafia/sideCommand?cmd=telescope+look+high&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Increase rounds of Starry-Eyed"><img src="/images/chit/redup.png" border=0></a></td></tr><tr class="effect"><td class="icon"><img src="http://images.kingdomofloathing.com/itemimages/9ball.gif" width=20 height=20  onClick='eff("1829f131d831dace601cd8b5c98263f3");' oncontextmenu='return hardshrug(627, "Mental A-cue-ity");'></td><td class="info">Mental A-cue-ity</td><td class="shrug"><a href="/KoLmafia/sideCommand?cmd=uneffect+Mental+A-cue-ity&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Use a remedy to remove the Mental A-cue-ity effect">3</a></td><td class="powerup"><a href="/KoLmafia/sideCommand?cmd=pool+2&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Increase rounds of Mental A-cue-ity"><img src="/images/chit/redup.png" border=0></a></td></tr><tr class="effect"><td class="icon"><img src="http://images.kingdomofloathing.com/itemimages/grapes.gif" width=20 height=20  onClick='eff("22a24325a136bd388cd85852ffee92e3");' oncontextmenu='return hardshrug(38, "Gr8tness");'></td><td class="info">Gr8tness</td><td class="shrug"><a href="/KoLmafia/sideCommand?cmd=uneffect+Gr8tness&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Use a remedy to remove the Gr8tness effect">3</a></td><td class="powerup"><a href="/KoLmafia/sideCommand?cmd=use+1+potion+of+temporary+gr8tness&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Increase rounds of Gr8tness"><img src="/images/chit/redup.png" border=0></a></td></tr><tr class="effect"><td class="icon"><img src="http://images.kingdomofloathing.com/itemimages/bathroomscale.gif" width=20 height=20  onClick='eff("210aca072eee884be7fe49b03f5098b6");' oncontextmenu='return hardshrug(698, "A Few Extra Pounds");'></td><td class="info">A Few Extra Pounds</td><td class="shrug"><a href="/KoLmafia/sideCommand?cmd=uneffect+A+Few+Extra+Pounds&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Use a remedy to remove the A Few Extra Pounds effect">3</a></td><td class="powerup"><a href="/KoLmafia/sideCommand?cmd=cast+1+Holiday+Weight+Gain&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Increase rounds of A Few Extra Pounds"><img src="/images/chit/redup.png" border=0></a></td></tr><tr class="effect"><td class="icon"><img src="http://images.kingdomofloathing.com/itemimages/potion4.gif" width=20 height=20  onClick='eff("1598c6d326da799034f65bc9da00c288");' oncontextmenu='return hardshrug(101, "Slippery Oiliness");'></td><td class="info">Slippery Oiliness</td><td class="shrug"><a href="/KoLmafia/sideCommand?cmd=uneffect+Slippery+Oiliness&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Use a remedy to remove the Slippery Oiliness effect">3</a></td><td class="powerup"><a href="/KoLmafia/sideCommand?cmd=use+1+oil+of+slipperiness&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Increase rounds of Slippery Oiliness"><img src="/images/chit/redup.png" border=0></a></td></tr><tr class="effect"><td class="icon"><img src="http://images.kingdomofloathing.com/itemimages/plasticball.gif" width=20 height=20  onClick='eff("b806c288732675bf60db7b948d748320");' oncontextmenu='return hardshrug(712, "Having a Ball!");'></td><td class="info">Having a Ball!</td><td class="shrug"><a href="/KoLmafia/sideCommand?cmd=uneffect+Having+a+Ball%21&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Use a remedy to remove the Having a Ball! effect">13</a></td><td class="powerup"><a href="/KoLmafia/sideCommand?cmd=ballpit&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Increase rounds of Having a Ball!"><img src="/images/chit/up.png" border=0></a></td></tr><tr class="effect"><td class="icon"><img src="http://images.kingdomofloathing.com/itemimages/fish.gif" width=20 height=20  onClick='eff("137b12bcd6da7cec342f6001b4b98958");' oncontextmenu='return hardshrug(828, "Pisces in the Skyces");'></td><td class="info">Pisces in the Skyces</td><td class="shrug"><a href="/KoLmafia/sideCommand?cmd=uneffect+Pisces+in+the+Skyces&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Use a remedy to remove the Pisces in the Skyces effect">14</a></td><td class="powerup"><a href="/KoLmafia/sideCommand?cmd=use+1+tobiko+marble+soda&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Increase rounds of Pisces in the Skyces"><img src="/images/chit/up.png" border=0></a></td></tr><tr class="effect"><td class="icon"><img src="http://images.kingdomofloathing.com/itemimages/trivia5.gif" width=20 height=20  onClick='eff("7708ec6dfa757a3d3be799743135b566");' oncontextmenu='return hardshrug(990, "Trivia Master");'></td><td class="info">Trivia Master</td><td class="shrug"><a href="/KoLmafia/sideCommand?cmd=uneffect+Trivia+Master&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Use a remedy to remove the Trivia Master effect">23</a></td><td class="powerup"><a href="/KoLmafia/sideCommand?cmd=use+1+Trivial+Avocations+Card%3A+What%3F%2C+1+Trivial+Avocations+Card%3A+When%3F%2C+1+Trivial+Avocations+Card%3A+Who%3F%2C+1+Trivial+Avocations+Card%3A+Where%3F&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Increase rounds of Trivia Master"><img src="/images/chit/up.png" border=0></a></td></tr><tr class="effect"><td class="icon"><img src="http://images.kingdomofloathing.com/itemimages/empathy.gif" width=20 height=20  onClick='eff("ac32e95f470a7e0999863fa0db58d808");' oncontextmenu='return shrug(50, "Empathy");'></td><td class="info">Empathy</td><td class="shrug"><a href="/KoLmafia/sideCommand?cmd=uneffect+Empathy&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Shrug off the Empathy effect">659</a></td><td class="powerup"><a href="/KoLmafia/sideCommand?cmd=cast+1+Empathy+of+the+Newt&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Increase rounds of Empathy"><img src="/images/chit/up.png" border=0></a></td></tr><tr class="effect"><td class="icon"><img src="http://images.kingdomofloathing.com/itemimages/scharm.gif" width=20 height=20  onClick='eff("6c7b4a5a3c6807d21493f1253bf8dfd9");' oncontextmenu='return shrug(19, "Reptilian Fortitude");'></td><td class="info">Reptilian Fortitude</td><td class="shrug"><a href="/KoLmafia/sideCommand?cmd=uneffect+Reptilian+Fortitude&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Shrug off the Reptilian Fortitude effect">659</a></td><td class="powerup"><a href="/KoLmafia/sideCommand?cmd=cast+1+Reptilian+Fortitude&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Increase rounds of Reptilian Fortitude"><img src="/images/chit/up.png" border=0></a></td></tr><tr class="effect"><td class="icon"><img src="http://images.kingdomofloathing.com/itemimages/ghosturtle.gif" width=20 height=20  onClick='eff("9d5cb67507556bb105664b1dc9e8bf9a");' oncontextmenu='return shrug(18, "Ghostly Shell");'></td><td class="info">Ghostly Shell</td><td class="shrug"><a href="/KoLmafia/sideCommand?cmd=uneffect+Ghostly+Shell&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Shrug off the Ghostly Shell effect">659</a></td><td class="powerup"><a href="/KoLmafia/sideCommand?cmd=cast+1+Ghostly+Shell&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Increase rounds of Ghostly Shell"><img src="/images/chit/up.png" border=0></a></td></tr><tr class="effect"><td class="icon"><img src="http://images.kingdomofloathing.com/itemimages/snapper.gif" width=20 height=20  onClick='eff("c05dc4b01f6f2826be599f07620979f7");' oncontextmenu='return shrug(51, "Tenacity of the Snapper");'></td><td class="info">Tenacity of the Snapper</td><td class="shrug"><a href="/KoLmafia/sideCommand?cmd=uneffect+Tenacity+of+the+Snapper&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Shrug off the Tenacity of the Snapper effect">659</a></td><td class="powerup"><a href="/KoLmafia/sideCommand?cmd=cast+1+Tenacity+of+the+Snapper&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Increase rounds of Tenacity of the Snapper"><img src="/images/chit/up.png" border=0></a></td></tr><tr class="effect"><td class="icon"><img src="http://images.kingdomofloathing.com/itemimages/blackshell.gif" width=20 height=20  onClick='eff("4e66acac6b908fb6f70b49092dcff375");' oncontextmenu='return shrug(52, "Astral Shell");'></td><td class="info">Astral Shell</td><td class="shrug"><a href="/KoLmafia/sideCommand?cmd=uneffect+Astral+Shell&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Shrug off the Astral Shell effect">659</a></td><td class="powerup"><a href="/KoLmafia/sideCommand?cmd=cast+1+Astral+Shell&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Increase rounds of Astral Shell"><img src="/images/chit/up.png" border=0></a></td></tr><tr class="effect"><td class="icon"><img src="http://images.kingdomofloathing.com/itemimages/elesphere.gif" width=20 height=20  onClick='eff("e3d1d1099648703e192a55a9aea17a1e");' oncontextmenu='return shrug(53, "Elemental Saucesphere");'></td><td class="info">Elemental Sauce</td><td class="shrug"><a href="/KoLmafia/sideCommand?cmd=uneffect+Elemental+Saucesphere&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Shrug off the Elemental Saucesphere effect">659</a></td><td class="powerup"><a href="/KoLmafia/sideCommand?cmd=cast+1+Elemental+Saucesphere&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Increase rounds of Elemental Saucesphere"><img src="/images/chit/up.png" border=0></a></td></tr><tr class="effect"><td class="icon"><img src="http://images.kingdomofloathing.com/itemimages/jinglebells.gif" width=20 height=20  onClick='eff("a32acc4a5de83386ae3417140d09bf43");' oncontextmenu='return shrug(699, "Jingle Jangle Jingle");'></td><td class="info">Jingle Bells</td><td class="shrug"><a href="/KoLmafia/sideCommand?cmd=uneffect+Jingle+Jangle+Jingle&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Shrug off the Jingle Jangle Jingle effect">697</a></td><td class="powerup"><a href="/KoLmafia/sideCommand?cmd=cast+1+Jingle+Bells&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Increase rounds of Jingle Jangle Jingle"><img src="/images/chit/up.png" border=0></a></td></tr><tr class="effect"><td class="icon"><img src="http://images.kingdomofloathing.com/itemimages/string.gif" width=20 height=20  onClick='eff("2d6d3ab04b40e1523aa9c716a04b3aab");' oncontextmenu='return hardshrug(16, "Leash of Linguini");'></td><td class="info">Leash of Linguini</td><td class="shrug"><a href="/KoLmafia/sideCommand?cmd=uneffect+Leash+of+Linguini&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Use a remedy to remove the Leash of Linguini effect">1014</a></td><td class="powerup"><a href="/KoLmafia/sideCommand?cmd=cast+1+Leash+of+Linguini&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Increase rounds of Leash of Linguini"><img src="/images/chit/up.png" border=0></a></td></tr><tr class="effect"><td class="icon"><img src="http://images.kingdomofloathing.com/itemimages/ocelot.gif" width=20 height=20  onClick='eff("5ac8444ac684a7f9113690c1f254c1e4");' oncontextmenu='return hardshrug(1193, "Singer's Faithful Ocelot");'></td><td class="info">Singer's Faithful Ocelot</td><td class="shrug"><a href="/KoLmafia/sideCommand?cmd=uneffect+Singer%27s+Faithful+Ocelot&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Use a remedy to remove the Singer's Faithful Ocelot effect">1020</a></td><td class="powerup"><a href="/KoLmafia/sideCommand?cmd=cast+1+Singer%27s+Faithful+Ocelot&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Increase rounds of Singer's Faithful Ocelot"><img src="/images/chit/up.png" border=0></a></td></tr></tbody><tbody class="intrinsics"><tr class="effect" style="color:blue;font-style:italic"><td class="icon"><img height=20 width=20 src="http://images.kingdomofloathing.com/itemimages/snowflake.gif" onClick='eff("518f53443c261c2b61ea11fe8716a715");'></td><td class="info" colspan="2">Spirit of Peppermint</td><td class="infinity">∞</td></tr></tbody></table><table id="chit_tracker" class="chit_brick nospace"><tr><th><img src="/images/chit/tracker.png"><a target="mainpane" href="questlog.php">Quest Tracker</a></th></tr><tr><td><a href="charpane.php" class="clilink through" title="mcd 10">Vertebra of the Bonerdagon</a></td></tr><tr><td>Find the 64735 of <a target="mainpane" href="mountains.php">Rof Lm Fao</a></td></tr></table></div><div id="chit_floor" class="chit_chamber"><table id="chit_familiar" class="chit_brick nospace"><tr><th width="40" title="Buffed Weight" style="color:blue">1</th><th><a target=mainpane href="familiar.php" class="familiarpick" title="Visit your terrarium">Thing</a></th><th width="30"> </th></tr><tr><td class="icon" title="Visit your terrarium"><a target=mainpane href="familiar.php" class="familiarpick"><img src="/images/itemimages/dishand.gif"></a></td><td class="info" style=""><a title="Familiar Haiku" class="hand" onclick="fam(92)" origin-level="third-party"/>Disembodied Hand</a></td><td class="icon"><a class="chit_launcher" rel="chit_pickerfam" href="#"><img title="Stick-Knife of Loathing" src="/images/itemimages/loathe_snife.gif"></a></td></tr></table><table id="chit_toolbar"><tr><th><ul style="float:left"><li><a href="charpane.php" title="Reload"><img src="/images/chit/refresh.png"></a></li><li><a href="/KoLmafia/sideCommand?cmd=zlib+chit.disable+%3D+true&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Disable ChIT"><img style="height:11px;width:11px;vertical-align:bottom;margin:0 -4 -3 -8;" src="/images/chit/disable.png"></a></li></ul><ul style="float:right"><li><a href="#" class="chit_launcher" rel="chit_pickermood" title="Select Mood"><img src="/images/chit/select_mood.png"></a></li></ul><ul><li><a class="tool_launcher" title="Recent Adventures" href="#" rel="trail"><img src="/images/chit/trail.png"></a></li><li><a class="tool_launcher" title="Current Quests" href="#" rel="quests"><img src="/images/chit/quests.png"></a></li><li><a class="tool_launcher" title="Modifiers" href="#" rel="modifiers"><img src="/images/chit/modifiers.png"></a></li><li><a class="tool_launcher" title="Elements" href="#" rel="elements"><img src="/images/chit/elements.png"></a></li><li><a class="tool_launcher" title="Consumption" href="#" rel="organs"><img src="/images/chit/organs.png"></a></li></ul></th></tr></table></div><div id="chit_closet"><div id="chit_pickerfam" class="chit_skeleton" style="display:none"><table class="chit_picker"><tr><th colspan="2">Equip Thy Familiar Well</th></tr><tr class="pickitem"><td class="action" colspan="2"><a class="change" href="/KoLmafia/sideCommand?cmd=use+moveable+feast&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Use Moveable Feast</a></td></tr><tr class="pickitem"><td class="remove"><a class="change" href="/KoLmafia/sideCommand?cmd=remove+familiar&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Unequip Stick-Knife of Loathing">Remove equipment<br /><span style='color:#707070'>Weapon Damage Percent: +100, Spell Damage Percent: +200, Cold Resistance: +5, Cloathing<span></a></td><td class="icon"><a class="change" href="/KoLmafia/sideCommand?cmd=remove+familiar&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Unequip Stick-Knife of Loathing"><img src="/images/itemimages/loathe_snife.gif"></a></td></tr><tr class="pickloader" style="display:none"><td class="info">Changing Weapons...</td><td class="icon"><img src="/images/itemimages/karma.gif"></td></tr><tr class="pickitem"><td class="inventory"><a class="change" href="/KoLmafia/sideCommand?cmd=equip+familiar+time+sword&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Equip time sword">time sword<br /><span style='color:#707070'>Adventures: +3<span></a></td><td class="icon"><a class="change" href="/KoLmafia/sideCommand?cmd=equip+familiar+time+sword&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Equip time sword"><img src="/images/itemimages/timesword.gif"></a></td></tr><tr class="pickitem"><td class="inventory"><a class="change" href="/KoLmafia/sideCommand?cmd=equip+familiar+Hodgman%27s+whackin%27+stick&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Equip Hodgman's whackin' stick">Hodgman's whackin' stick<br /><span style='color:#707070'>Muscle Percent: +20, Mysticality Percent: +20, Moxie Percent: +20<span></a></td><td class="icon"><a class="change" href="/KoLmafia/sideCommand?cmd=equip+familiar+Hodgman%27s+whackin%27+stick&pwd=a849ce56f2c06e8ec1b989fe98b676cc" title="Equip Hodgman's whackin' stick"><img src="/images/itemimages/whackstick.gif"></a></td></tr></table></div><div id="chit_pickerflorist" class="chit_skeleton" style="display:none"><table class="chit_picker"><tr><th colspan="2">Pull a Plant</th></tr><tr class="florist" style="background-color:PaleGreen"><td><img src="http://images.kingdomofloathing.com/itemimages/shovel.gif"></td><td><a href="/KoLmafia/sideCommand?cmd=ashq+visit_url%28%22forestvillage.php%3Faction%3Dfloristfriar%22%29%3Bvisit_url%28%22choice.php%3Foption%3D2%26whichchoice%3D720%26pwd%3Da849ce56f2c06e8ec1b989fe98b676cc%26plnti%3D0%22%29%3B&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Stealing Magnolia<br>(+25% Item drops)</a></td></tr><tr class="florist" style="background-color:LightSkyBlue"><td><img src="http://images.kingdomofloathing.com/itemimages/shovel.gif"></td><td><a href="/KoLmafia/sideCommand?cmd=ashq+visit_url%28%22forestvillage.php%3Faction%3Dfloristfriar%22%29%3Bvisit_url%28%22choice.php%3Foption%3D2%26whichchoice%3D720%26pwd%3Da849ce56f2c06e8ec1b989fe98b676cc%26plnti%3D1%22%29%3B&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Pitcher Plant<br>(Restores MP after combat)</a></td></tr><tr class="florist" style="background-color:LightSkyBlue"><td><img src="http://images.kingdomofloathing.com/itemimages/shovel.gif"></td><td><a href="/KoLmafia/sideCommand?cmd=ashq+visit_url%28%22forestvillage.php%3Faction%3Dfloristfriar%22%29%3Bvisit_url%28%22choice.php%3Foption%3D2%26whichchoice%3D720%26pwd%3Da849ce56f2c06e8ec1b989fe98b676cc%26plnti%3D2%22%29%3B&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Red Fern<br>(Delevels enemies during combat)</a></td></tr><tr class="pickitem"><td colspan="2" style="color:white;background-color:blue;font-weight:bold;">Remaining Plants</th></tr><tr class="florist" style="background-color:Khaki"><td><img src="http://images.kingdomofloathing.com/otherimages/friarplants/plant11.gif" title="War Lily
 (+30 Monster Level)"></td><td>War Lily<br>(+30 Monster Level)</td></tr><tr class="florist" style="background-color:Khaki"><td><img src="http://images.kingdomofloathing.com/otherimages/friarplants/plant13.gif" title="Canned Spinach
 (+5 Muscle stats per fight)"></td><td>Canned Spinach<br>(+5 Muscle stats per fight)</td></tr><tr class="florist" style="background-color:LightSkyBlue"><td><img src="http://images.kingdomofloathing.com/otherimages/friarplants/plant14.gif" title="Impatiens
 (+25% Combat Initiative)"></td><td>Impatiens<br>(+25% Combat Initiative)</td></tr><tr class="florist" style="background-color:LightSkyBlue"><td><img src="http://images.kingdomofloathing.com/otherimages/friarplants/plant15.gif" title="Spider Plant
 (Damages and poisons enemies before combat)"></td><td>Spider Plant<br>(Damages and poisons enemies before combat)</td></tr><tr class="florist" style="background-color:LightSkyBlue"><td><img src="http://images.kingdomofloathing.com/otherimages/friarplants/plant17.gif" title="BamBOO!
 (Deals Spooky damage)"></td><td>BamBOO!<br>(Deals Spooky damage)</td></tr><tr class="florist" style="background-color:LightSkyBlue"><td><img src="http://images.kingdomofloathing.com/otherimages/friarplants/plant18.gif" title="Arctic Moss
 (Deals Cold damage)"></td><td>Arctic Moss<br>(Deals Cold damage)</td></tr><tr class="florist" style="background-color:LightSkyBlue"><td><img src="http://images.kingdomofloathing.com/otherimages/friarplants/plant19.gif" title="Aloe Guv'nor
 (Restores HP after combat)"></td><td>Aloe Guv'nor<br>(Restores HP after combat)</td></tr><tr class="pickloader" style="display:none"><td class="info">Planting</td><td class="icon"><img src="/images/itemimages/karma.gif"></td></tr></table></div><div id="chit_pickermcd" class="chit_skeleton" style="display:none"><table class="chit_picker"><tr><th colspan="2">Turn it up or down, man</th></tr><tr class="pickloader" style="display:none"><td class="info">Tuning Radio...</td><td class="icon"><img src="/images/itemimages/karma.gif"></td></tr><tr class="pickitem "><td class="info"><a class="change"  href="/KoLmafia/sideCommand?cmd=mcd+0&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Turn it off</a></td><td class="level">0</td></tr><tr class="pickitem "><td class="info"><a class="change"  href="/KoLmafia/sideCommand?cmd=mcd+1&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Turn it mostly off</a></td><td class="level">1</td></tr><tr class="pickitem "><td class="info"><a class="change"  href="/KoLmafia/sideCommand?cmd=mcd+2&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Ratsworth's money clip</a></td><td class="level">2</td></tr><tr class="pickitem "><td class="info"><a class="change"  href="/KoLmafia/sideCommand?cmd=mcd+3&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Glass Balls of the King</a></td><td class="level">3</td></tr><tr class="pickitem "><td class="info"><a class="change"  href="/KoLmafia/sideCommand?cmd=mcd+4&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Boss Bat britches</a></td><td class="level">4</td></tr><tr class="pickitem "><td class="info"><a class="change"  href="/KoLmafia/sideCommand?cmd=mcd+5&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Rib of the Bonerdagon</a></td><td class="level">5</td></tr><tr class="pickitem "><td class="info"><a class="change"  href="/KoLmafia/sideCommand?cmd=mcd+6&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Horoscope of the Hermit</a></td><td class="level">6</td></tr><tr class="pickitem "><td class="info"><a class="change"  href="/KoLmafia/sideCommand?cmd=mcd+7&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Codpiece of the King</a></td><td class="level">7</td></tr><tr class="pickitem "><td class="info"><a class="change"  href="/KoLmafia/sideCommand?cmd=mcd+8&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Boss Bat bling</a></td><td class="level">8</td></tr><tr class="pickitem "><td class="info"><a class="change"  href="/KoLmafia/sideCommand?cmd=mcd+9&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Ratsworth's tophat</a></td><td class="level">9</td></tr><tr class="pickitem current"><td class="info">Vertebra of the Bonerdagon</td><td class="level">10</td></tr></table></div><div id="chit_pickermood" class="chit_skeleton" style="display:none"><table class="chit_picker"><tr><th colspan="2">Select New Mood</th></tr><tr class="pickloader" style="display:none"><td class="info">Getting Moody</td><td class="icon"><img src="/images/itemimages/karma.gif"></td></tr><tr class="pickitem"><td class="info"><a title="Make this your current mood" class="visit" href="/KoLmafia/sideCommand?cmd=mood+apathetic&pwd=a849ce56f2c06e8ec1b989fe98b676cc">apathetic</a></td><td> </td></tr><tr class="pickitem"><td class="info"><a title="Make this your current mood" class="visit" href="/KoLmafia/sideCommand?cmd=mood+default&pwd=a849ce56f2c06e8ec1b989fe98b676cc">default</a></td><td> </td></tr><tr class="pickitem"><td class="info"><a title="Make this your current mood" class="visit" href="/KoLmafia/sideCommand?cmd=mood+gladiators&pwd=a849ce56f2c06e8ec1b989fe98b676cc">gladiators</a></td><td><a title="ADD this to current mood" href="/KoLmafia/sideCommand?cmd=mood+default%2C+gladiators&pwd=a849ce56f2c06e8ec1b989fe98b676cc"><img src="/images/chit/control_add_blue.png"><a></td></tr><tr class="pickitem"><td class="info"><a title="Make this your current mood" class="visit" href="/KoLmafia/sideCommand?cmd=mood+hamburglaris&pwd=a849ce56f2c06e8ec1b989fe98b676cc">hamburglaris</a></td><td><a title="ADD this to current mood" href="/KoLmafia/sideCommand?cmd=mood+default%2C+hamburglaris&pwd=a849ce56f2c06e8ec1b989fe98b676cc"><img src="/images/chit/control_add_blue.png"><a></td></tr><tr class="pickitem"><td class="info"><a title="Make this your current mood" class="visit" href="/KoLmafia/sideCommand?cmd=mood+moxieleveling&pwd=a849ce56f2c06e8ec1b989fe98b676cc">moxieleveling</a></td><td><a title="ADD this to current mood" href="/KoLmafia/sideCommand?cmd=mood+default%2C+moxieleveling&pwd=a849ce56f2c06e8ec1b989fe98b676cc"><img src="/images/chit/control_add_blue.png"><a></td></tr><tr class="pickitem"><td class="info"><a title="Make this your current mood" class="visit" href="/KoLmafia/sideCommand?cmd=mood+muscle&pwd=a849ce56f2c06e8ec1b989fe98b676cc">muscle</a></td><td><a title="ADD this to current mood" href="/KoLmafia/sideCommand?cmd=mood+default%2C+muscle&pwd=a849ce56f2c06e8ec1b989fe98b676cc"><img src="/images/chit/control_add_blue.png"><a></td></tr><tr class="pickitem"><td class="info"><a title="Make this your current mood" class="visit" href="/KoLmafia/sideCommand?cmd=mood+noncom&pwd=a849ce56f2c06e8ec1b989fe98b676cc">noncom</a></td><td><a title="ADD this to current mood" href="/KoLmafia/sideCommand?cmd=mood+default%2C+noncom&pwd=a849ce56f2c06e8ec1b989fe98b676cc"><img src="/images/chit/control_add_blue.png"><a></td></tr><tr class="pickitem"><td class="info"><a title="Make this your current mood" class="visit" href="/KoLmafia/sideCommand?cmd=mood+nuns&pwd=a849ce56f2c06e8ec1b989fe98b676cc">nuns</a></td><td><a title="ADD this to current mood" href="/KoLmafia/sideCommand?cmd=mood+default%2C+nuns&pwd=a849ce56f2c06e8ec1b989fe98b676cc"><img src="/images/chit/control_add_blue.png"><a></td></tr><tr class="pickitem"><td class="info"><a title="Make this your current mood" class="visit" href="/KoLmafia/sideCommand?cmd=mood+orchard&pwd=a849ce56f2c06e8ec1b989fe98b676cc">orchard</a></td><td><a title="ADD this to current mood" href="/KoLmafia/sideCommand?cmd=mood+default%2C+orchard&pwd=a849ce56f2c06e8ec1b989fe98b676cc"><img src="/images/chit/control_add_blue.png"><a></td></tr><tr class="pickitem"><td class="info"><a title="Make this your current mood" class="visit" href="/KoLmafia/sideCommand?cmd=mood+spookypirate&pwd=a849ce56f2c06e8ec1b989fe98b676cc">spookypirate</a></td><td><a title="ADD this to current mood" href="/KoLmafia/sideCommand?cmd=mood+default%2C+spookypirate&pwd=a849ce56f2c06e8ec1b989fe98b676cc"><img src="/images/chit/control_add_blue.png"><a></td></tr><tr class="pickitem"><td class="info"><a title="Make this your current mood" class="visit" href="/KoLmafia/sideCommand?cmd=mood+upcom&pwd=a849ce56f2c06e8ec1b989fe98b676cc">upcom</a></td><td><a title="ADD this to current mood" href="/KoLmafia/sideCommand?cmd=mood+default%2C+upcom&pwd=a849ce56f2c06e8ec1b989fe98b676cc"><img src="/images/chit/control_add_blue.png"><a></td></tr><tr class="pickitem"><th colspan="2">Current Mood</th></tr><tr class="pickitem"><td class="info"><a class="visit" <a title="Execute Mood: default" href="/KoLmafia/sideCommand?cmd=mood+execute&pwd=a849ce56f2c06e8ec1b989fe98b676cc"><img src="/images/chit/moodplay.png"> default</a></td></tr></table></div><div id="chit_pickeroutfit" class="chit_skeleton" style="display:none"><table class="chit_picker"><tr><th colspan="2">Select Outfit</th></tr><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Birthday+Suit&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Birthday Suit</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Blasphemous+Bedizenment&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Blasphemous Bedizenment</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Bounty-Hunting+Rig&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Bounty-Hunting Rig</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Clothing+of+Loathing&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Clothing of Loathing</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Cold+Comforts&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Cold Comforts</a></td><tr class="pickitem current"><td class="info">Dreadful Pajamas</td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+eXtreme+Cold-Weather+Gear&pwd=a849ce56f2c06e8ec1b989fe98b676cc">eXtreme Cold-Weather Gear</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Filthy+Hippy+Disguise&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Filthy Hippy Disguise</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Frat+Boy+Ensemble&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Frat Boy Ensemble</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Frat+Warrior+Fatigues&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Frat Warrior Fatigues</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Hateful+Habiliment&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Hateful Habiliment</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Hodgman%27s+Regal+Frippery&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Hodgman's Regal Frippery</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Knob+Goblin+Elite+Guard+Uniform&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Knob Goblin Elite Guard Uniform</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Knob+Goblin+Harem+Girl+Disguise&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Knob Goblin Harem Girl Disguise</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Mer-kin+Gladiatorial+Gear&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Mer-kin Gladiatorial Gear</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Mer-kin+Scholar%27s+Vestments&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Mer-kin Scholar's Vestments</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Mining+Gear&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Mining Gear</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Raiments+of+the+Final+Boss&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Raiments of the Final Boss</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Seafaring+Suit&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Seafaring Suit</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Slimesuit&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Slimesuit</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Swashbuckling+Getup&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Swashbuckling Getup</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Transparent+Trappings&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Transparent Trappings</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+War+Hippy+Fatigues&pwd=a849ce56f2c06e8ec1b989fe98b676cc">War Hippy Fatigues</a></td><tr class="pickitem"><td style="color:white;background-color:blue;font-weight:bold;">Custom Outfits</td></tr><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+aaa&pwd=a849ce56f2c06e8ec1b989fe98b676cc">aaa</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Backup&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Backup</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Basement+damage+f%3Dsandworm+e%3Dfireworks&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Basement damage f=sandworm e=fireworks</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Basement+element+f%3Dexotic+parrot+e%3Dcracker&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Basement element f=exotic parrot e=cracker</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Basement+gauntlet+f%3DDis+Hand+e%3Dlawn+dart&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Basement gauntlet f=Dis Hand e=lawn dart</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Basement+moxie+f%3DDis+Hand+e%3Dsniff+sword&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Basement moxie f=Dis Hand e=sniff sword</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Basement+mpdrain+f%3DDis+Hand+e%3Dsniff+s&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Basement mpdrain f=Dis Hand e=sniff s</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Basement+muscle+f%3DDis+Hand+e%3Dsniff+sword&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Basement muscle f=Dis Hand e=sniff sword</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Basement+mysticality+f%3DDis+Hand+e%3Dsniff+s&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Basement mysticality f=Dis Hand e=sniff s</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+bbb&pwd=a849ce56f2c06e8ec1b989fe98b676cc">bbb</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+ccc&pwd=a849ce56f2c06e8ec1b989fe98b676cc">ccc</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Dreadsylvania&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Dreadsylvania</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+pool&pwd=a849ce56f2c06e8ec1b989fe98b676cc">pool</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Sewer+NC+no+umbrella&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Sewer NC no umbrella</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+x&pwd=a849ce56f2c06e8ec1b989fe98b676cc">x</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+y&pwd=a849ce56f2c06e8ec1b989fe98b676cc">y</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+z&pwd=a849ce56f2c06e8ec1b989fe98b676cc">z</a></td><tr class="pickitem"><td style="color:white;background-color:blue;font-weight:bold;">Equip Quest Item</td></tr><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=equip+acc3+pirate+fledges&pwd=a849ce56f2c06e8ec1b989fe98b676cc">pirate fledges</a></td><tr class="pickitem"><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=equip+acc3+Talisman+o%27+Nam&pwd=a849ce56f2c06e8ec1b989fe98b676cc">Talisman o' Nam</a></td><tr class="pickloader" style="display:none"><td class="info">Getting Dressed</td><td class="icon"><img src="/images/itemimages/karma.gif"></td></tr></table></div><div id="chit_tooltrail" class="chit_skeleton" style="display:none"><table id="chit_trail" class="chit_brick nospace"><tr><th><a class="visit" target="mainpane" href="clan_dreadsylvania.php"><img src="/images/chit/trail.png">Last Adventure</a></th></tr><tr><td class="last"><a class="visit" target="mainpane" href="adventure.php?snarfblat=340">Dreadsylvanian Castle</a></td></tr><tr><td><a class="visit" target="mainpane" href="adventure.php?snarfblat=339">Dreadsylvanian Village</a></td></tr><tr><td><a class="visit" target="mainpane" href="adventure.php?snarfblat=338">Dreadsylvanian Woods</a></td></tr><tr><td><a class="visit" target="mainpane" href="adventure.php?snarfblat=205"> Jungles of Ancient Loathing</a></td></tr></table></div><div id="chit_toolquests" class="chit_skeleton" style="display:none"><table id="nudges" class="chit_brick nospace"><tr><th><img src="/images/chit/quests.png"><a target="mainpane" href="questlog.php">Current Quests</a></th></tr><tr rel="qn_57774f8ab31c899e2ddc33e9226956e9"><td class="small" colspan="2"><div><a class=nounder target=mainpane href=oldman.php><b>The Old Man</b></a> wants you to find his boot in <a class=nounder target=mainpane href=thesea.php><b>The Sea</b></a>.</div></td></tr></table></div><div id="chit_toolmodifiers" class="chit_skeleton" style="display:none"><table id="chit_modifiers" class="chit_brick nospace"><thead><tr><th colspan="2"><img src="/images/chit/modifiers.png">Modifiers</th></tr></thead><tbody><tr><td class="label">Meat Drop</td><td class="info">+50.0%</td></tr><tr><td class="label">Item Drop</td><td class="info">+135.0%</td></tr><tr><td class="label">  Forced Drop @</td><td class="info">43%</td></tr></tbody><tbody><tr><td class="label">MP Cost</td><td class="info">-1</td></tr><tr><td class="label">Monster Level</td><td class="info">+10</td></tr><tr><td class="label">Initiative</td><td class="info">+85%</td></tr><tr><td class="label">Modified Init</td><td class="info">+85%</tr><tr><td class="label">Combat Rate</td><td class="info">-5%</td></tr></tbody><tbody><tr><td class="label">Damage Absorp</td><td class="info">90% (1,180)</td></tr><tr><td class="label">Damage Red</td><td class="info">25</td></tr></tbody><tbody><tr><td class="label">Spell Damage</td><td class="info">+20 / +550%</td></tr><tr><td class="label">Weapon Damage</td><td class="info">+75 / +100%</td></tr><tr><td class="label">Ranged Damage</td><td class="info">+15 </td></tr></tbody></table></div><div id="chit_toolelements" class="chit_skeleton" style="display:none"><table id="chit_elements" class="chit_brick nospace"><thead><tr><th><img src="/images/chit/elements.png">Elements</th></tr></thead><tr><td><img src="/images/chit/Elements2.gif"></tr></table></div><div id="chit_toolorgans" class="chit_skeleton" style="display:none"><table id="chit_organs" class="chit_brick nospace"><thead><tr><th colspan="3"><img src="/images/chit/organs.png">Consumption</th></tr></thead><tr><td class="label">Stomach</td><td class="info">15 / 15</td><td class="progress"><div class="progressbox" title="You're too full to even eat a wafer-thin mint"><div class="progressbar" style="width:100.0%;background-color:#707070"></div></div></td></tr><tr><td class="label">Liver</td><td class="info">72 / 19</td><td class="progress"><div class="progressbox" title="Sneaky!"><div class="progressbar" style="width:100.0%;background-color:black"></div></div></td></tr><tr><td class="label">Spleen</td><td class="info">15 / 15</td><td class="progress"><div class="progressbox" title="Your spleen can't take any more abuse today"><div class="progressbar" style="width:100.0%;background-color:#707070"></div></div></td></tr></table></div></div></div></body></html>
 

zarqon

Well-known member
Wording clarificaton please: Did it mess up ChIT when you clicked the link or when the page loaded?

Next step to try is adding a doctype, which KoL also fails to do:

PHP:
results.replace_string("<html>", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" "+
      "\"http://www.w3.org/TR/html4/loose.dtd\">\n<html>");

This will force IE out of "quirks" mode (making position:fixed work properly), among other things. I'm using CLI Links in BatMan RE, so it is possible to make KoL and this compatible. But if this doesn't do it, I'd probably have to install ChIT to figure it out. Nothing else jumped out at me from that code.
 

Bale

Minion
Wording clarificaton please: Did it mess up ChIT when you clicked the link or when the page loaded?

Before I clicked the link. And after. Same problem. I'll test your solution later. Busy now. I just ascended into highschool which is kind've a descension...
 

Bale

Minion
Tested. That fix ALMOST works! Thanks to adding a doctype my display looks perfect.

Now, a link in the charpane will execute the link and the reload the charpane perfectly without anything bad happening to the display.

Unfortunately, if I put the link in a picker (one of those pop-up lists of links), then it will execute TWICE and fail to reload the charpane. I'll attach my current version of chit so that you can see this yourself. (You'd need to install the whole script from SVN because there are many other files.)

I added CLI links in two places:
  • Check the MCD drop-down and try to change the MCD level. That won't work properly.
  • I also added a link to MCD 10 at the bottom of the Stats brick. Just for testing. It works perfectly there.
 

Attachments

  • charpane.ash
    165.8 KB · Views: 72

zarqon

Well-known member
Hmmm, I suspect that's due to event bubbling and could be fixed by adding stopPropagation() (or whatever it's called) to the event handler. Will update that when I get home and we can see if that solves it.

EDIT: Have altered the click event to return false rather than merely cancel the default behavior. This will prevent the click event from bubbling up the DOM and possibly causing problems such as you describe. If that's not actually the cause of the problem, then I'll need to look at ChIT compatibility in further detail, but so far in this thread I'm 2/2 in blind debugging, so feeling unreasonably optimistic. :D
 
Last edited:

Bale

Minion
EDIT: Have altered the click event to return false rather than merely cancel the default behavior. This will prevent the click event from bubbling up the DOM and possibly causing problems such as you describe. If that's not actually the cause of the problem, then I'll need to look at ChIT compatibility in further detail, but so far in this thread I'm 2/2 in blind debugging, so feeling unreasonably optimistic. :D

Finally got back to this. It still doesn't work for a CliLink in a picker menu. It attempts to execute the command twice and does not reload the charpane. Sadly I think I'm going to give up on adapting CliLinks for ChIT. The current method works well enough.
 

zarqon

Well-known member
r6 Update

Added a "clilinknostyle" class, which functions exactly like the "clilink" class but applies no CSS to the links, allowing you to style them yourself (or leave them unstyled).
 

Pazleysox

Member
[size=+1]CLI Links[/size]

Next, you'll be wantin' to import it into your script, and since it's jQuery, you'll also need to import jQuery. To do that, insert this in your page's <head> tag, although it will probably work anywhere in the document:
HTML:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="clilinks.js"></script>
Note that this code imports jQuery from Google before importing CLI Links. If you'd rather use a local copy, a different version, or the version that KoL already imports, you can change or omit the first <script> tag accordingly. Note that jQuery is included with ZLib, so you can simply import "jquery1.10.1.min.js" if you already have ZLib.


Perhaps I'm a little too n00bish to be running such a powerful script. Perhaps, I just don't understand why the earth takes 24 hours to spin. Perhaps I don't understand why everyone thought there was a dark side of the moon, when every time it passes by the sun, it gets plenty of light...

I'm not sure how to import this into my script properly. I've tried a few variations, but can't seem to get it to work... Can someone please tell me EXACTLY what command I SHOULD be using?

import <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
import "<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>"
import "src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

Can't get 'em to work properly.

EDIT:
PHP:
<html><head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="clilinks.js"></script>
</html>
I looked through the thread some more, and I'm pretty sure this will work.

Though, I'm not sure how to do what I'm trying to do...

Here's what I wrote:
PHP:
	if((get_property("stenchAirportAlways") == "true" || get_property("_stenchAirportToday") == "true") && item_amount($item[bag of park garbage]) > 0 && get_property("_dinseyGarbageDisposed") == "false")
	{
	print_html("You can still <font color=FF0000>Dispose Dinsey Garbage</font>");
	print_html("<a href="place.php?whichplace=airport_stench&action=airport3_tunnels>\n<a href="choice.php?pwd&whichchoice=1067&option=6" class="clilink through">Dinsey Garbage</a>
	}
I'm not sure how to get the script to run 2 commands instead of a single.
 
Last edited:

zarqon

Well-known member
In your edit to your post, the HTML for including the scripts looks good, although you need a closing </head> tag and are missing <body></body> tags for your content.

As for doing a command, are you trying to execute the CLI command "Dinsey Garbage"? Because that's what your second link will do, after which it will visit choice.php. Your first link is not a CLI link, and is missing its closing </a>.

What are you trying to do?
 

Pazleysox

Member
In your edit to your post, the HTML for including the scripts looks good, although you need a closing </head> tag and are missing <body></body> tags for your content.

As for doing a command, are you trying to execute the CLI command "Dinsey Garbage"? Because that's what your second link will do, after which it will visit choice.php. Your first link is not a CLI link, and is missing its closing </a>.

What are you trying to do?

I've tried this:
PHP:
void main(){
<html><head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="clilinks.js"></script>
</html></head>
Which gives this error: Script parsing error (0TEST.ash, line 1)
and this:
PHP:
<html><head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="clilinks.js"></script>
</html></head>
void main(){
Which gives this error: Expected }, found < (0TEST.ash, line 2)

As far as what I'm trying to do, is give the user the option to dump park garbage, with the choice adventure. In my experience of scripting, Mafia needs to be directed to the location where the choice adventure is, then you can perform the choice action, hence the 2 .php locations.
 
Top