Character Info Toolbox

Fluxxdog

Active member
Quick oddity: I click on the radio in the block with the Knoll open and it just tries to use the item. It doesn't buy it. Dunno if that was by design or not.
 

Theraze

Active member
Probably, since that will use your acquire settings to buy it if you've allowed mafia auto-buy from NPCs...
 

Veracity

Developer
Staff member
That seems like an irrelevant comment. I'd expect it to use the "mcd" command to set whatever kind of mcd your sign allows, which will "acquire" the radio if you don't have one - and which will fail with an error if it can't end up with a radio.

If the script is manually checking the sign and manually using the radio, that would be a script bug.
Ditto if the script is manually trying to "acquire" the radio and is ignoring a failure.
If "mcd 10" is not attempting to acquire a radio first, that wwould be a KoLmafia bug.
 

Fluxxdog

Active member
Veracity got me wondering, so I went hunting for it. Ctrl+F led me to this block:
Code:
	if (knoll_available()) {
		mcdname = "Detuned Radio";
		mcdlabel = "Radio";
		mcdtitle = "Turn it up or down, man";
		mcdpage = "inv_use.php?pwd=" + my_hash() + "&which=3&whichitem=2682";
		mcdchange = "inv_use.php?pwd=" + my_hash() + "&which=3&whichitem=2682&tuneradio=";
		mcdbusy = "Tuning Radio...";
		if (item_amount($item[detuned radio]) == 0) {
			mcdSettable = false;
			if (my_meat() < 300)
				progress = '<span title="You can\'t afford a Radio">Buy Radio</span>';
			else
				progress = '<a title="Buy a Detuned Radio (300 meat)" href="' + sideCommand("buy detuned radio") + '">Buy Radio</a>';
		}
	}
Definitely doesn't use change_mcd(). It looks like it's set up to ask if you want to buy a radio, but I never got such a prompt.

Forgive me, my understanding of this script is very limited. Is it possible there's an option I need?
 

ereinion

Member
There seems to be something wrong with the effect-list too (I think the 0 is supposed to be my shore counter, it's supposed to be at 19):
blfh9gV.png

HTML with CHIT enabled:
HTML:
<html><head>
<meta http-equiv="X-UA-Compatible" content="IE=8" />

<link rel="stylesheet" type="text/css" href="/images/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" />
<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 language=Javascript src="/images/scripts/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="/images/scripts/pop_query.20130705.js"></script>
<script type="text/javascript">

    var CURFAM = 74;
    var FAMILIARFAVES = [["Fenrir","Reagnimated Gnome","frankengnome",162],["Fenrir","Hovering Sombrero","hat2",18],["Fenrir","Stocking Mimic","smimic",120],["Fenrir","Jumpsuited Hound Dog","hounddog",69],["Fenrir","Baby Sandworm","babyworm",111],["Fenrir","Hobo Monkey","hobomonkey",89],["Fenrir","Pair of Stomping Boots","stompboots",150],["Fenrir","Frumious Bandersnatch","bandersnatch",105],["Fenrir","Fancypants Scarecrow","pantscrow2",152],["Fenrir","Baby Bugged Bugbear","babybugbug",124],["Fenrir","Mini-Hipster","minihipster",136],["Fenrir","Rogue Program","tronguy",135],["Fenrira","Happy Medium","medium_0",159],["Fenrir","Bloovian Groose","groose",154],["Fenrir","Angry Jung Man","jungman",165],["Fenrir","Slimeling","slimeling",112],["Fenrir","Artistic Goth Kid","crayongoth",160],["Fenrir","He-Boulder","heboulder",113],["Fenrir","Knob Goblin Organ Grinder","organgoblin",139],["Fenrir","Obtuse Angel","obtuseangel",146],["Fenrir","Gluttonous Green Ghost","ggg",74] ];
</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 = 522675;
var turnsthisrun = 303;
var rollover = 1374291000;
var rightnow = 1374245993;
var playerid = 352230;
var pwdhash = "b1a45bf3fba1c08418f30dda61b5ddc9";
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="/images/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">
jQuery(function ($) {
    $(window).resize(function () {
        var winW = 300;
        if (document.body && document.body.offsetWidth) { winW = document.body.offsetWidth; }
        if (document.compatMode=='CSS1Compat' && document.documentElement && document.documentElement.offsetWidth ) { winW = document.documentElement.offsetWidth; }
        if (window.innerWidth && window.innerHeight) { winW = window.innerWidth; }
        setCookie('charpwd', winW, 365, true);
    });
})
</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">Ereinion</a> (<span style='cursor: hand; cursor: pointer;' onClick='outfit("8");'>Mining Gear</span>)</th></tr><tr><td rowspan="4" class="avatar"><a href="#" class="chit_launcher" rel="chit_pickeroutfit" title="Select Outfit"><img src="/images/otherimages/customavatars/352230.gif"></a></td><td class="label"><a target="mainpane" href="campground.php?action=grave" title="Visit your guild">Mad Wizard of Ee</a></td><td class="level" rowspan="2"><a target="mainpane" href="council.php" title="Visit the Council">8</a></td></tr><tr><td class="info">Hardcore</td></tr><tr><td class="info">Zombie Slayer</td></tr><tr><td colspan="2"><div class="chit_resource"><div title="Meat" style="float:left"><span>12 994</span><img src="/images/itemimages/meat.gif"></div><div title="0 Adventures remaining
 Current Run: 2 / 303" style="float:right"><span>0</span><img src="/images/itemimages/slimhourglass.gif"></div></div><div style="clear:both"></div></td></tr><tr><td class="progress" colspan="3" title="11 muscle until level 9
 (1 322 substats needed)" ><div class="progressbar" style="width:27.16253443526171%"></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">75</span>  (57)</td><td class="progress"><div class="progressbox" title="53 / 115 (62 needed)"><div class="progressbar" style="width:46.08695652173913%"></div></div></td></tr><tr><td class="label">Myst</td><td class="info">42</td><td class="progress"><div class="progressbox" title="9 / 85 (76 needed)"><div class="progressbar" style="width:10.588235294117647%"></div></div></td></tr><tr><td class="label">Moxie</td><td class="info"><span style="color:blue">53</span>  (42)</td><td class="progress"><div class="progressbox" title="27 / 85 (58 needed)"><div class="progressbar" style="width:31.764705882352942%"></div></div></td></tr></tbody><tbody><tr><td class="label">Spleen</td><td class="info">0 / 15</td><td class="progress"><div class="progressbox" title="Your spleen is in perfect shape!"><div class="progressbar" style="width:0.0%;background-color:blue"></div></div></td></tr><tr><td class="label">Stomach</td><td class="info">13 / 30</td><td class="progress"><div class="progressbox" title="Hmmm... pies"><div class="progressbar" style="width:43.333333333333336%;background-color:green"></div></div></td></tr><tr><td class="label">Liver</td><td class="info">0 / 4</td><td class="progress"><div class="progressbox" title="You are stone-cold sober"><div class="progressbar" style="width:0.0%;background-color:blue"></div></div></td></tr></tbody><tbody><tr><td class="label">HP</td><td class="info"><a title="Restore HP" href="/KoLmafia/sideCommand?cmd=restore+hp&pwd=b1a45bf3fba1c08418f30dda61b5ddc9">90 / 117</a></td><td class="progress"><a href="/KoLmafia/sideCommand?cmd=restore+hp&pwd=b1a45bf3fba1c08418f30dda61b5ddc9"><div class="progressbox" title="Restore your HP"><div class="progressbar" style="width:76.92307692307692%;background-color:green"></div></div></a></td></tr><tr><td colspan="3"><center><img src=images/otherimages/zombies/horde_15.gif width=167 height=100 border=0></center></td></tr><tr><td class="label" colspan="3"><center><a href="skills.php" target="mainpane" title="Use Horde Skills">Horde: 50</a></center></td></tr></tbody><tbody><tr><td class="label"><a href="inv_use.php?pwd=b1a45bf3fba1c08418f30dda61b5ddc9&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></table><table id="chit_familiar" class="chit_brick nospace"><tr><th width="40" title="Buffed Weight" style="color:blue">9</th><th><a target=mainpane href="familiar.php" class="familiarpick" title="Visit your terrarium">Fenrir</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/ggg.gif"></a></td><td class="info" style=""><a title="Familiar Haiku" class="hand" onclick="fam(74)" origin-level="third-party"/>Gluttonous Green Ghost</a></td><td class="icon" title="Equip your familiar"><a class="chit_launcher" rel="chit_pickerfam" href="#"><img title="" src="/images/itemimages/blank.gif"></a></td></tr><tr><td colspan="3" class="progress" title="5 / 19" ><div class="progressbar" style="width:26.31578947368421%"></div></td></tr></table><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="buffs"><tr class="effect"><td class="icon"></td><td class="info"></td><td class="noshrug">0</td><td> </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></div><div id="chit_floor" class="chit_chamber"><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></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><li><img src="/images/chit/moodnone.png"></li></ul><ul><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="Recent Adventures" href="#" rel="trail"><img src="/images/chit/trail.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="done" target="mainpane" href="familiarbinger.php">Force Feed</a></tr><tr class="pickloader" style="display:none"><td class="info">Changing Equipment...</td><td class="icon"><img src="/images/itemimages/karma.gif"></td></tr><tr class="picknone"><td class="info" colspan="2">You don't have any equipment for your Gluttonous Green Ghost.<br><br>Poor Fenrir</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=b1a45bf3fba1c08418f30dda61b5ddc9">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=b1a45bf3fba1c08418f30dda61b5ddc9">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=b1a45bf3fba1c08418f30dda61b5ddc9">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=b1a45bf3fba1c08418f30dda61b5ddc9">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=b1a45bf3fba1c08418f30dda61b5ddc9">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=b1a45bf3fba1c08418f30dda61b5ddc9">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=b1a45bf3fba1c08418f30dda61b5ddc9">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=b1a45bf3fba1c08418f30dda61b5ddc9">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=b1a45bf3fba1c08418f30dda61b5ddc9">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=b1a45bf3fba1c08418f30dda61b5ddc9">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=b1a45bf3fba1c08418f30dda61b5ddc9">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=b1a45bf3fba1c08418f30dda61b5ddc9">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+in-run&pwd=b1a45bf3fba1c08418f30dda61b5ddc9">in-run</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+initiative&pwd=b1a45bf3fba1c08418f30dda61b5ddc9">initiative</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+levelling&pwd=b1a45bf3fba1c08418f30dda61b5ddc9">levelling</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+stannius_spaaace&pwd=b1a45bf3fba1c08418f30dda61b5ddc9">stannius_spaaace</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+tmp&pwd=b1a45bf3fba1c08418f30dda61b5ddc9">tmp</a></td><td> </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=b1a45bf3fba1c08418f30dda61b5ddc9">Birthday Suit</a></td><tr class="pickitem "><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Knob+Goblin+Elite+Guard+Uniform&pwd=b1a45bf3fba1c08418f30dda61b5ddc9">Knob Goblin Elite Guard Uniform</a></td><tr class="pickitem current"><td class="info">Mining Gear</td><tr><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+Backup&pwd=b1a45bf3fba1c08418f30dda61b5ddc9">Backup</a></td><tr class="pickitem "><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Chat+effects+f%3Dsquamous+gibberer+e%3Dflaming+familia&pwd=b1a45bf3fba1c08418f30dda61b5ddc9">Chat effects f=squamous gibberer e=flaming familia</a></td><tr class="pickitem "><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Combat+Gear&pwd=b1a45bf3fba1c08418f30dda61b5ddc9">Combat Gear</a></td><tr class="pickitem "><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Frat+War&pwd=b1a45bf3fba1c08418f30dda61b5ddc9">Frat War</a></td><tr class="pickitem "><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Rollover+%28NA%29+f%3Ddisembodied+hand+e%3Dtime+sword&pwd=b1a45bf3fba1c08418f30dda61b5ddc9">Rollover (NA) f=disembodied hand e=time sword</a></td><tr class="pickitem "><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Sea&pwd=b1a45bf3fba1c08418f30dda61b5ddc9">Sea</a></td><tr class="pickitem "><td class="info"><a class="change" href="/KoLmafia/sideCommand?cmd=outfit+Sewer&pwd=b1a45bf3fba1c08418f30dda61b5ddc9">Sewer</a></td><tr><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+continuum+transfunctioner&pwd=b1a45bf3fba1c08418f30dda61b5ddc9">continuum transfunctioner</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_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_50dc6ad849f824b165eae4ab87da7951"><td class="small" colspan="2"><div>The Trapper wants you to investigate the top of <a class=nounder target=mainpane href=place.php?whichplace=mclargehuge><b>Mt. McLargeHuge</b></a><br>   * Get Superhuman cold resistance (currently So-So (2))<br>   * Find your way to the Icy Peak</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">+30,%</td></tr><tr><td class="label">Item Drop</td><td class="info">+40,%</td></tr><tr><td class="label">  Forced Drop @</td><td class="info">72%</td></tr></tbody><tbody><tr><td class="label">Monster Level</td><td class="info">+10</td></tr><tr><td class="label">Initiative</td><td class="info">+100%</td></tr><tr><td class="label">Modified Init</td><td class="info">+100%</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">42% (280)</td></tr><tr><td class="label">Damage Red</td><td class="info">5</td></tr></tbody><tbody><tr><td class="label">Spell Damage</td><td class="info">+0</td></tr><tr><td class="label">Weapon Damage</td><td class="info">+12 / +20%</td></tr><tr><td class="label">Ranged Damage</td><td class="info">+0</td></tr></tbody></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="dungeons.php"><img src="/images/chit/trail.png">Last Adventure</a></th></tr><tr><td class="last"><a class="visit" target="mainpane" href="dungeon.php"> Daily Dungeon</a></td></tr><tr><td><a class="visit" target="mainpane" href="mining.php?mine=1&intro=1">Itznotyerzitz Mine (in Disguise)</a></td></tr><tr><td><a class="visit" target="mainpane" href="adventure.php?snarfblat=270">Itznotyerzitz Mine</a></td></tr><tr><td><a class="visit" target="mainpane" href="shore.php"> Shore</a></td></tr><tr><td><a class="visit" target="mainpane" href="adventure.php?snarfblat=39"> Dungeons of Doom</a></td></tr></table></div></div></div></body></html>

HTML without CHIT enabled (does show the shore counter):
HTML:
<html><head>
<link rel="stylesheet" type="text/css" href="/images/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" /></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 language=Javascript src="/images/scripts/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="/images/scripts/pop_query.20130705.js"></script>
<script type="text/javascript">

    var CURFAM = 74;
    var FAMILIARFAVES = [["Fenrir","Reagnimated Gnome","frankengnome",162],["Fenrir","Hovering Sombrero","hat2",18],["Fenrir","Stocking Mimic","smimic",120],["Fenrir","Jumpsuited Hound Dog","hounddog",69],["Fenrir","Baby Sandworm","babyworm",111],["Fenrir","Hobo Monkey","hobomonkey",89],["Fenrir","Pair of Stomping Boots","stompboots",150],["Fenrir","Frumious Bandersnatch","bandersnatch",105],["Fenrir","Fancypants Scarecrow","pantscrow2",152],["Fenrir","Baby Bugged Bugbear","babybugbug",124],["Fenrir","Mini-Hipster","minihipster",136],["Fenrir","Rogue Program","tronguy",135],["Fenrira","Happy Medium","medium_0",159],["Fenrir","Bloovian Groose","groose",154],["Fenrir","Angry Jung Man","jungman",165],["Fenrir","Slimeling","slimeling",112],["Fenrir","Artistic Goth Kid","crayongoth",160],["Fenrir","He-Boulder","heboulder",113],["Fenrir","Knob Goblin Organ Grinder","organgoblin",139],["Fenrir","Obtuse Angel","obtuseangel",146],["Fenrir","Gluttonous Green Ghost","ggg",74] ];
</script>
<script type="text/javascript" src="/images/scripts/familiarfaves.20120307.js"></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 = 522675;
var turnsthisrun = 303;
var rollover = 1374290999;
var rightnow = 1374246422;
var playerid = 352230;
var pwdhash = "b1a45bf3fba1c08418f30dda61b5ddc9";
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="/images/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">
jQuery(function ($) {
    $(window).resize(function () {
        var winW = 300;
        if (document.body && document.body.offsetWidth) { winW = document.body.offsetWidth; }
        if (document.compatMode=='CSS1Compat' && document.documentElement && document.documentElement.offsetWidth ) { winW = document.documentElement.offsetWidth; }
        if (window.innerWidth && window.innerHeight) { winW = window.innerWidth; }
        setCookie('charpwd', winW, 365, true);
    });
})
</script>
<body onload="updateSafetyText();" bgcolor=white text=black link=black alink=black vlink=black onload='startup();'>
<center id='rollover' class=tiny style='color: red; cursor: pointer;' onClick='doc("maintenance");'></center><center><table align=center><tr><td><a class=nounder target=mainpane href="charsheet.php"><img src="/images/otherimages/customavatars/352230.gif" width=60 height=100 border=0></a></td><td valign=center><center><a class=nounder target=mainpane href="charsheet.php"><b>Ereinion</b></a><br>Mad Wizard of Ee<br>(Level 8)<table title='4 / 15' cellpadding=0 cellspacing=0 style='border: 1px solid #5A5A5A'><tr><td height=5 width=26 bgcolor=#5A5A5A></td><td width=74 bgcolor=white></td></tr></table></td></tr></table><center class=tiny>Outfit: <span style='cursor: hand; cursor: pointer;' onClick='outfit("8");'>Mining Gear</span></center><table align=center><tr><td align=right>Muscle:</td><td align=left><b><font color=blue>75</font> (57)</b><table title='53 / 115' cellpadding=0 cellspacing=0 style='border: 1px solid #5A5A5A'><tr><td height=3 width=23 bgcolor=#5A5A5A></td><td width=27 bgcolor=white></td></tr></table></td></tr><tr><td align=right>Mysticality:</td><td align=left><b>42</b><table title='9 / 85' cellpadding=0 cellspacing=0 style='border: 1px solid #5A5A5A'><tr><td height=3 width=5 bgcolor=#5A5A5A></td><td width=45 bgcolor=white></td></tr></table></td></tr><tr><td align=right>Moxie:</td><td align=left><b><font color=blue>53</font> (42)</b><table title='27 / 85' cellpadding=0 cellspacing=0 style='border: 1px solid #5A5A5A'><tr><td height=3 width=15 bgcolor=#5A5A5A></td><td width=35 bgcolor=white></td></tr></table></td></tr><Tr><td align=right>Fullness:</td><td><b>13</b></td></tr></table><img src=/images/otherimages/zombies/horde_15.gif width=167 height=100 alt="Horde (50 zombie(s))" title="Horde (50 zombie(s))"><br>Horde: 50<br /><table cellpadding=3 align=center><tr><td align=center><img src="/images/itemimages/hp.gif" class=hand onclick='doc("hp");' title="Hit Points" alt="Hit Points"><br><span class=black><a style="color:black" title="Restore your HP" href="/KoLmafia/sideCommand?cmd=restore+HP&pwd=b1a45bf3fba1c08418f30dda61b5ddc9">90</a> / 117</span></td></tr><tr><td align=center><img src="/images/itemimages/meat.gif" class=hand onclick='doc("meat");' title="Meat" alt="Meat"><br><span class=black>12,994</span></td><td align=center><img src="/images/itemimages/hourglass.gif" class=hand onclick='doc("adventures");' title="Adventures Remaining" alt="Adventures Remaining"><br><span class=black>0</span></td></tr></table><font size=2><b>Hardcore</b></font><br><br><font size=2><a target=mainpane href="inv_use.php?pwd=b1a45bf3fba1c08418f30dda61b5ddc9&whichitem=2682">Detuned Radio</a>: <b>10</b></font><br><br><center id="nudgeblock"><font size=2><a class=nounder href=questlog.php target=mainpane><b>Current Quest:</b></a></font><br><table id="nudges"><tr rel="qn_50dc6ad849f824b165eae4ab87da7951"><td class="small" colspan="2"><div>The Trapper wants you to investigate the top of <a class=nounder target=mainpane href=place.php?whichplace=mclargehuge><b>Mt. McLargeHuge</b></a><br>   * Get Superhuman cold resistance (currently So-So (2))<br>   * Find your way to the Icy Peak</div></td></tr></table><p></center><script type="text/javascript">hide_nudges = false;</script><center><font size=2><b><a onclick='if (top.mainpane.focus) top.mainpane.focus();' class=nounder href="dungeons.php" target=mainpane>Last Adventure:</a></b></font><br><table cellspacing=0 cellpadding=0><tr><td><font size=2><a onclick='if (top.mainpane.focus) top.mainpane.focus();' target=mainpane href="dungeon.php">The Daily Dungeon</a><br></font></td></tr></table><font size=1><nobr><a onclick='if (top.mainpane.focus) top.mainpane.focus();' target=mainpane href="mining.php?mine=1&intro=1">Itznotyerzitz Mine (in Disguise)</a></nobr><br/><nobr><a onclick='if (top.mainpane.focus) top.mainpane.focus();' target=mainpane href="adventure.php?snarfblat=270">Itznotyerzitz Mine</a></nobr><br/><nobr><a onclick='if (top.mainpane.focus) top.mainpane.focus();' target=mainpane href="shore.php">The Shore</a></nobr><br/><nobr><a onclick='if (top.mainpane.focus) top.mainpane.focus();' target=mainpane href="adventure.php?snarfblat=39">The Dungeons of Doom</a></nobr></font></center><p><center><p><b><font size=2>Effects:</font></b></p></center><table><tr><td></td><td><a href="shore.php" target="mainpane"><img src="/images/itemimages/dinghy.gif"></a></td><td valign=center><font size=2>The Shore (<a href="/KoLmafia/sideCommand?cmd=counters+deletehash+25736476&pwd=b1a45bf3fba1c08418f30dda61b5ddc9">19</a>)</td></tr></table><table width=90%><tr><td colspan=2 align=center><font size=2><b>Familiar:</b></font></td></tr><tr><td align=center valign=center><a target=mainpane href="familiar.php" class="familiarpick"><img src="/images/itemimages/ggg.gif" width=30 height=30 border=0></a></td><td valign=center align=left><a target=mainpane href="familiar.php" class="familiarpick"><b><font size=2>Fenrir</a></b>, the  <b>9</b> pound Gluttonous Green Ghost<table title='5 / 19' cellpadding=0 cellspacing=0 style='border: 1px solid #5A5A5A'><tr><td height=3 width=26 bgcolor=#5A5A5A></td><td width=74 bgcolor=white></td></tr></table></font></td></tr></table></center></center><center><font size=1>[<a href="charpane.php">refresh</a>]</font></center></body></html>

- EDIT - The line disappeared once my shore counter expired
 
Last edited:

Bale

Minion
There seems to be something wrong with the effect-list too (I think the 0 is supposed to be my shore counter, it's supposed to be at 19):

Are you using KoLmafia r12316 or later? Please type svn update mafiachit in the CLI to ensure that you are using the latest version of ChIT.

There have been changes to KoL, KoLmafia and ChIT that are all interrelated. Right now the current version of ChIT will only parse effects properly if you are using r12316. Older versions of either KoLmafia or ChIT will fail in some way. It'll be troublesome for me to dig into that huge block of html until you confirm both are current.
 
Last edited:

Merneith

New member
Pardon me if this has been mentioned. When I click on the Avatar in the chatpane, I get a non-scrollable list of outfits. Is there a thing I can do to make scrollable?

Chit is up to date, using FF 22.

Thanks
 

Bale

Minion
Do you still have that problem when you disable greasemonkey?

I know that you told me that you are using a recent version of ChIT, but please humor me and copy/paste the output when you type svn update mafiachit
 

ereinion

Member
Are you using KoLmafia r12316 or later? Please type svn update mafiachit in the CLI to ensure that you are using the latest version of ChIT.

There have been changes to KoL, KoLmafia and ChIT that are all interrelated. Right now the current version of ChIT will only parse effects properly if you are using r12316. Older versions of either KoLmafia or ChIT will fail in some way. It'll be troublesome for me to dig into that huge block of html until you confirm both are current.
Yup, I was using r12316, and has mafia set to update SVN-projects on startup, so I assume I was using the most recent verson of ChIT as well. I could check if the shore-counter still appears like that after I try asking for the most recent update in the cli as well, if you'd like me to?
 

Bale

Minion
ereinion. Thank you for your patience and double-checking. Especially thank you for posting that huge block of html which made the bug fixing possible.

It turns out that if the icon for a counter is also a link to a location, like the beach or dance card counter, then it wasn't properly parsed. I fixed the regexp thanks you to.

svn update
 

ereinion

Member
Thanks for taking the time to look through those huge blocks of html, in order to search for a rather small bug :) And thanks a ton for maintaining this script, I don't think I could ever get used to using KoLs native character pane again :)

-edit- Another small issue: in AoB, changing Clancy's instrument by right-clicking it doesn't work, probably because the command sent to mafia is "equip familiar Clancy's crumhorn". I think the command should be "use Clancy's crumhorn" or something like that? I hope you don't think I'm nagging :-D
 
Last edited:

Bale

Minion
That's.... weird. I know that used to work. I nust have messed it up in the sideCommand refactoring. Please update and confirm that it works now.

svn update

Telling me about the existence of a bug is not nagging. I call that being helpful. Especially since you provide me the information I need to know. That's what I call helpful.
 

ereinion

Member
It seems to be working now, though I haven't had the chance to try with the lute yet. Thanks for the quick update :)
 

Merneith

New member
Bale, thanks for the suggestion. After I did the svn update just now, the problem went away and the scrollbar appeared. This is what it said afterward:

Validating repo...
Repo validated.
Updating mafiachit...
E:\gamesz\Mafia\svn\mafiachit
A https://svn.code.sf.net/p/mafiachit/code/dependencies.txt
D E:\gamesz\Mafia\svn\mafiachit\images\chit\upred.png
AU https://svn.code.sf.net/p/mafiachit/code/images/chit/disable.png
AU https://svn.code.sf.net/p/mafiachit/code/images/chit/redup.png
AU https://svn.code.sf.net/p/mafiachit/code/images/chit/fortune.png
AU https://svn.code.sf.net/p/mafiachit/code/images/chit/tracker.png
AU https://svn.code.sf.net/p/mafiachit/code/images/chit/control_add_blue.png
AU https://svn.code.sf.net/p/mafiachit/code/images/chit/effects.png
https://svn.code.sf.net/p/mafiachit/code/images/chit
https://svn.code.sf.net/p/mafiachit/code/images
U https://svn.code.sf.net/p/mafiachit/code/data/chit_ReadMe.Txt
U https://svn.code.sf.net/p/mafiachit/code/data/chit_effects.txt
https://svn.code.sf.net/p/mafiachit/code/data
U https://svn.code.sf.net/p/mafiachit/code/relay/chit.js
U https://svn.code.sf.net/p/mafiachit/code/relay/charpane.ash
U https://svn.code.sf.net/p/mafiachit/code/relay/chit.css
https://svn.code.sf.net/p/mafiachit/code/relay
https://svn.code.sf.net/p/mafiachit/code
At revision 47
Pushing local updates...
chit.css => E:\gamesz\Mafia\relay\chit.css
charpane.ash => E:\gamesz\Mafia\relay\charpane.ash
chit.js => E:\gamesz\Mafia\relay\chit.js
WARNING: too many matches for chit_effects.txt in your namespace; no local files were updated.
chit_ReadMe.Txt => E:\gamesz\Mafia\data\chit_ReadMe.Txt
effects.png => E:\gamesz\Mafia\images\chit\effects.png
control_add_blue.png => E:\gamesz\Mafia\images\chit\control_add_blue.png
tracker.png => E:\gamesz\Mafia\images\chit\tracker.png
fortune.png => E:\gamesz\Mafia\images\chit\fortune.png
redup.png => E:\gamesz\Mafia\images\chit\redup.png
disable.png => E:\gamesz\Mafia\images\chit\disable.png
upred.png => DELETED
Done.
Requests complete.

It's such a handy feature - I love the CHiT!
 

Bale

Minion
I'm somewhat relieved that updating solved your problem.

However, it seems that you have a problem. There are more than one file named chit_effects.txt in your mafia directory. Unless you delete the copy that is not in /data you will not get any update I make to that file. The base mafia directory is a possiblity as is any subdirectory in /data /relay and /scripts. Please find it and eradicate it.
 

Erich

Member
chit is having the intrinsic problem again. I'm fully up to date with mafia and chit, but it only shows intrinsics if I have an active effect (this does not count mafia counters).
 

Bale

Minion
Seriously?! Sigh... I'll work on that once I can. Hint: It will be sooner if you post your html of that problem with chit disabled.

zlib chit.disabled = true
 
Top