Bug - Fixed Mafia doesn't recognize Lopez taking damage from reverse earworms

Bale

Minion
When I sing to get rid of earworms inflicted by my Nemesis, the Demon Mariarchi Somerset Lopez, the earworms swarm their creator dealing a lot of damage to him. However, mafia does not recognize the damage.

Here's the html:

Code:
<html><head>
<script language=Javascript>
<!--
if (parent.frames.length == -1) location.href="game.php";
top.charpane.location.href="charpane.php";
//-->
</script>
<script language=Javascript src="/images/scripts/keybinds.min.2.js"></script>
<script language=Javascript src="/images/scripts/window.js?date=20090915"></script>
<script language="javascript">function chatFocus(){if(top.chatpane.document.chatform.graf) top.chatpane.document.chatform.graf.focus();}
defaultBind(47, CTRL, chatFocus); defaultBind(190, CTRL, chatFocus);defaultBind(191, CTRL, chatFocus); defaultBind(47, META, chatFocus);defaultBind(190, META, chatFocus); defaultBind(191, META, chatFocus);</script><script language="javascript" src="/images/scripts/core.js"></script><link rel="stylesheet" type="text/css" href="http://images.kingdomofloathing.com/actionbar.6.css">
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="http://images.kingdomofloathing.com/actionbar.ie.4.css">
<script src='/images/scripts/minmax.js'></script>
<![endif]-->
<script>
var onturn = 5;
function newpic(pic, name)
{
   var monpic = getObj('monpic');
   var monname = getObj('monname');
   monpic.src = pic;
   monname.innerHTML = name;
}

var waking = false;

function killforms(sub) {
	sub.disabled = true;
	var is = document.getElementsByTagName("input");
	for (i=0; i < is.length; i++) {
		if (is[i].getAttribute('type') == 'submit') { is[i].disabled = true; }
	}

	if (waking) { clearTimeout(waking); }
	waking = setTimeout(function () {
		for (i=0; i < is.length; i++) {
			if (is[i].getAttribute('type') == 'submit') { is[i].disabled = false; }
		}
	}, 3000);

	sub.form.submit();

	return true;
}


</script>
<link rel="stylesheet" type="text/css" href="http://images.kingdomofloathing.com/styles.css">
<script language="Javascript" src="/basics.js"></script><link rel="stylesheet" href="/basics.css" /></head>

<body>
<img src='http://images.kingdomofloathing.com/itemimages/blank.gif' id='dragged'><div id='debug'></div><div class=contextmenu id='skillmenu'></div><div class=contextmenu id='itemsmenu'></div><div id=topbar><center><table class=actionbar cellpadding=0 cellspacing=1><tbody><tr class=label><td></td><td></td><td></td><td></td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td><td>0</td><td>–</td><td>=</td><td></td><td></td><td></td></tr><tr class=blueback><td><a href='fight.php?action=custom'><img src='http://images.kingdomofloathing.com/itemimages/plexpock.gif'></td><td class=spacer></td><td><img src='http://images.kingdomofloathing.com/itemimages/book3.gif' id='skills'></td><td class=spacer></td><td><img src='http://images.kingdomofloathing.com/itemimages/blank.gif' id='button1'></td><td><img src='http://images.kingdomofloathing.com/itemimages/blank.gif' id='button2'></td><td><img src='http://images.kingdomofloathing.com/itemimages/blank.gif' id='button3'></td><td><img src='http://images.kingdomofloathing.com/itemimages/blank.gif' id='button4'></td><td><img src='http://images.kingdomofloathing.com/itemimages/blank.gif' id='button5'></td><td><img src='http://images.kingdomofloathing.com/itemimages/blank.gif' id='button6'></td><td><img src='http://images.kingdomofloathing.com/itemimages/blank.gif' id='button7'></td><td><img src='http://images.kingdomofloathing.com/itemimages/blank.gif' id='button8'></td><td><img src='http://images.kingdomofloathing.com/itemimages/blank.gif' id='button9'></td><td><img src='http://images.kingdomofloathing.com/itemimages/blank.gif' id='button10'></td><td><img src='http://images.kingdomofloathing.com/itemimages/blank.gif' id='button11'></td><td><img src='http://images.kingdomofloathing.com/itemimages/blank.gif' id='button12'></td><td valign=center align=center class=page><a class=nounder href='javascript:pageup();'><img src='http://images.kingdomofloathing.com/otherimages/tinyup.gif' class=updown></a><br><span id='page_out'></span><br><a class=nounder href='javascript:pagedown();'><img src='http://images.kingdomofloathing.com/otherimages/tinydown.gif' class=updown></a></td><td class=spacer></td><td><img src='http://images.kingdomofloathing.com/itemimages/backpack.gif' id='items'></td></tr><tr class=label><td>script</td><td></td><td>skills</td><td></td><td id='qty1'></td><td id='qty2'></td><td id='qty3'></td><td id='qty4'></td><td id='qty5'></td><td id='qty6'></td><td id='qty7'></td><td id='qty8'></td><td id='qty9'></td><td id='qty10'></td><td id='qty11'></td><td id='qty12'></td><td></td><td></td><td>items</td></tr></tbody></table></center></div><div class=content id='content_'><div id='effdiv' style='display: none'></div><div style='overflow: auto'><center><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>Combat: Round 5!</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><table><tr><td><img id='monpic' src="http://images.kingdomofloathing.com/adventureimages/6_4a.gif" width=200 height=200></td><td valign=center>You're fighting <span id='monname'> Somerset Lopez, Demon Mariachi</span><font size=2 color=gray><br />HP: 529, Atk: 14, Def: 14</font></td></tr></table><br>There's only one cure for earworms: to cancel them out with something even worse. You start pumping your accordion, and loudly sing a mashup of "Feliz Navidad" and "The Fishhead Song".<p><i>Fish heads, fish heads a merry Christmas,<p>I wanna wish-a you a roly-poly fish heads,<p>I wanna fish heads a merry Christmas, from the bottom of eat them up, yum!</i><p>The two most virulent songs known to man, they easily drive the earworms from your head, neatly canceling each other out in the process and leaving your mind clear. Meanwhile, the worms go berserk, and squealing in pain and frustration they swarm back at their creator, dealing 50 to the foul demon. <p><p>Somerset Lopez's face opens wide, and he screeches a terrible cacophony filled with harsh, jagged notes, yet with an oddly catchy melody. You stagger back, gasping for breath, and notice your toes tapping of their own accord. Oh god -- that catchy melody! You've caught it! The tune echoes through your skull over and over... and then you feel it. Them. Crawling. Wriggling. In your head! In your ears! Earworms! He's given you <i>EARWORMS!</i><center><table><tr><td><img class=hand src="http://images.kingdomofloathing.com/itemimages/larva.gif" onClick='eff("9ed86341d30a9cc55db66ee59b33fd5b");' width=30 height=30 alt="Earworm" title="Earworm"></td><td valign=center class=effect>You acquire an effect: <b>Earworm</b><br>(duration: 1 Adventure)</td></tr></table></center><p><table><tr><td>Lopez whirls toward you, slashing deep cuts across your chest with the razor-sharp thorns on his sombrero.</td></tr></table><b><font color=red> Ow! Ouch!</font></b><center><table><tr><td><img src="http://images.kingdomofloathing.com/itemimages/hp.gif" height=30 width=30></td><td valign=center class=effect>You lose 4 hit points.</td></tr></table></center><div id='fightform' class='hideform'><p><center><table><a name="end"><form name=attack action=fight.php method=post><input type=hidden name=action value="attack"><tr><td align=center><input id='tack' picurl=trikitixa onclick="return killforms(this)"  class=button type=submit value="Attack with your The Trickster's Trikitixa"></td></tr></form></a><form name=useitem action=fight.php method=post><input type=hidden name=action value="useitem"><tr><td align=left><select name=whichitem><option value=0>(select an item)</option><option picurl=camera value=4169>4-d camera (3)</option><option picurl=scroll2 value=547>334 scroll (30)</option><option picurl=scroll1 value=548>668 scroll (5)</option><option picurl=scroll2 value=549>30669 scroll (20)</option><option picurl=scroll2 value=550>33398 scroll (11)</option><option picurl=poisoncup value=829>anti-anti-antidote (25)</option><option picurl=handmirror value=2092>antique hand mirror (1)</option><option picurl=lore value=4583>big glob of skin (1)</option><option picurl=bubblebath value=1965>bottle of Monsieur Bubble (3)</option><option picurl=clingtangle value=2992>clingfilm tangle (1)</option><option picurl=coily value=4118>Coily™ (1)</option><option picurl=hulahoop value=4117>crusty hula hoop (1)</option><option picurl=divblowout value=3120>divine blowout (4)</option><option picurl=divstring value=3119>divine can of silly string (2)</option><option picurl=divpopper value=3121>divine champagne popper (2)</option><option picurl=divnoise value=3118>divine noisemaker (2)</option><option picurl=cookbook value=1316>facsimile dictionary (86)</option><option picurl=smokebomb value=4251>fish-oil smoke bomb (3)</option><option picurl=hairwad value=1922>gob of wet hair (99)</option><option picurl=ppotion value=466>green pixel potion (3)</option><option picurl=seltzer value=345>Knob Goblin superseltzer (4)</option><option picurl=jart value=4120>lawn dart (1)</option><option picurl=potion4 value=518>magical mystery juice (4)</option><option picurl=mem_ca value=4011>memory of a CA base pair (1)</option><option picurl=mem_cg value=4012>memory of a CG base pair (1)</option><option picurl=mem_ct value=4013>memory of a CT base pair (1)</option><option picurl=destroyobot value=3114>Miniborg Destroy-O-Bot (6)</option><option picurl=petfrisbee value=4119>old-school flying disc (5)</option><option picurl=palmfan value=2606>palm-frond fan (3)</option><option picurl=redwagon value=4121>red wagon (1)</option><option picurl=unicycle2 value=4116>rickety old unicycle (1)</option><option picurl=scepter value=2678>spectre scepter (83)</option><option picurl=sputtysheet value=3665>Spooky Putty sheet (1)</option><option picurl=tatpaper value=1959>tattered scrap of paper (92)</option><option picurl=soldier value=2139>toy mercenary (16)</option><option picurl=wumpbola value=4045>wumpus-hair bolo (1)</option><option picurl=wumpnet value=4046>wumpus-hair net (1)</option></select><br><select name=whichitem2><option value=0>(select an item)</option><option  value=4169>4-d camera (3)</option><option  value=547>334 scroll (30)</option><option  value=548>668 scroll (5)</option><option  value=549>30669 scroll (20)</option><option  value=550>33398 scroll (11)</option><option  value=829>anti-anti-antidote (25)</option><option  value=2092>antique hand mirror (1)</option><option  value=4583>big glob of skin (1)</option><option  value=1965>bottle of Monsieur Bubble (3)</option><option  value=2992>clingfilm tangle (1)</option><option  value=4118>Coily™ (1)</option><option  value=4117>crusty hula hoop (1)</option><option  value=3120>divine blowout (4)</option><option  value=3119>divine can of silly string (2)</option><option  value=3121>divine champagne popper (2)</option><option  value=3118>divine noisemaker (2)</option><option  value=1316>facsimile dictionary (86)</option><option  value=4251>fish-oil smoke bomb (3)</option><option  value=1922>gob of wet hair (99)</option><option  value=466>green pixel potion (3)</option><option  value=345>Knob Goblin superseltzer (4)</option><option  value=4120>lawn dart (1)</option><option  value=518>magical mystery juice (4)</option><option  value=4011>memory of a CA base pair (1)</option><option  value=4012>memory of a CG base pair (1)</option><option  value=4013>memory of a CT base pair (1)</option><option  value=3114>Miniborg Destroy-O-Bot (6)</option><option  value=4119>old-school flying disc (5)</option><option  value=2606>palm-frond fan (3)</option><option  value=4121>red wagon (1)</option><option  value=4116>rickety old unicycle (1)</option><option  value=2678>spectre scepter (83)</option><option  value=3665>Spooky Putty sheet (1)</option><option  value=1959>tattered scrap of paper (92)</option><option  value=2139>toy mercenary (16)</option><option  value=4045>wumpus-hair bolo (1)</option><option  value=4046>wumpus-hair net (1)</option></select> <input class=button type=submit onclick="return killforms(this);" value="Use Item(s)"></td></tr></form><form name=skill action=fight.php method=post><input type=hidden name=action value="skill"><tr><td align=center><select name=whichskill><option value='none'>(select a skill)</option><option value="15" picurl="commacha" >CLEESH (10 Mojo Points)</option><option value="1003" picurl="club" >Thrust-Smack (3 Mojo Points)</option><option value="1005" picurl="cudgel" >Lunging Thrust-Smack (8 Mojo Points)</option><option value="2022" picurl="ssnapper" >Spectral Snapper (20 Mojo Points)</option><option value="2015" picurl="kneebutt" >Kneebutt (4 Mojo Points)</option><option value="3019" picurl="fearfulfet" >Fearful Fettucini (24 Mojo Points)</option><option value="3022" picurl="candypile" >Candyblast (6 Mojo Points)</option><option value="3023" picurl="scharm" >Stringozzi Serpent (13 Mojo Points)</option><option value="3004" picurl="entnoodles" >Entangling Noodles (3 Mojo Points)</option><option value="3005" picurl="pastacannon" >Cannelloni Cannon (6 Mojo Points)</option><option value="3007" picurl="stuffshell" >Stuffed Mortar Shell (13 Mojo Points)</option><option value="3008" picurl="ironspoon" >Weapon of the Pastalord (24 Mojo Points)</option><option value="4023" picurl="cheesestorm" >Käsesoßesturm (10 Mojo Points)</option><option value="4014" picurl="saucysalve" >Saucy Salve (4 Mojo Points)</option><option value="4009" picurl="saucewave" >Wave of Sauce (16 Mojo Points)</option><option value="4012" picurl="saucegeyser" >Saucegeyser (28 Mojo Points)</option><option value="5019" picurl="terrortango" >Tango of Terror (8 Mojo Points)</option><option value="5023" picurl="mistletoe" >Stealth Mistletoe (5 Mojo Points)</option><option value="5012" picurl="facestab" >Disco Face Stab (10 Mojo Points)</option><option value="6025" picurl="breath" selected>Sing (1 Mojo Point)</option><option value="7008" picurl="moxman" >Moxious Maneuver (13 Mojo Points)</option><option value="7056" picurl="woodstub" >Mr. Bear:  Fire off a Roman Candle (10 Mojo Points)</option><option value="7101" picurl="trikitixa" >Extreme High Note (15 Mojo Points)</option></select> <input class=button type=submit onclick="return killforms(this);" value="Use Skill"></td></tr></form><form name=macro action=fight.php method=post><input type=hidden name=action value="macro"><input type="hidden" name="macrotext" value=""><tr><td align=center><select name=whichmacro><option value='0'>(select a macro)</option><option value="4726" picurl="assembly2" >attack</option><option value="4271" picurl="assembly2" >bird</option><option value="4722" picurl="simpleshield" >current</option><option value="9949" picurl="" >noodle-saucesplash</option><option value="4687" picurl="simpleshield" >shieldbutt strategy</option><option value="10688" picurl="assembly2" >test</option></select> <input class=button type=submit onclick="return killforms(this);" value="Execute Macro"></td></tr></form><form name=runaway action=fight.php method=post><input type=hidden name=action value="runaway"><tr><td align=center><input class=button onclick="return killforms(this);" type=submit value="Run Away"></td></tr></form></table></center></div><br><a href='#' onclick='document.getElementById("fightform").className="showform"; document.getElementById("formlink").style.display = "none";' id='formlink' class=tiny>(show old combat form)</a></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center></div></div><script src='/images/scripts/actionbar.20100629.js'></script></body><script src="/onfocus.js"></script></html>
 

Winterbay

Active member
Damage given to AT Nemesis not recorded

When you fight the AT nemesis and he gives you earworms you can counter that with the use of "Sing". This damages him for ~70 damage (I noticed between 65 and 75 damage) however the word damage is not present in the text (so in that regard it is also a KoL bug) and thus Mafia misses this fact.

According to the Mafia stats showing in the relay browser he still had ~250 health left when I killed him.

The message is "The two most virulent songs known to man, they easily drive the earworms from your head, neatly canceling each other out in the process and leaving your mind clear. Meanwhile, the worms go berserk, and squealing in pain and frustration they swarm back at their creator, dealing X to the foul demon."
 

Theraze

Active member
Earworm counter doesn't decrement HP to monster

When you sing and return the earworms back at the demon AT nemesis, it doesn't decrement his hp. The quote for returning damage follows:
The two most virulent songs known to man, they easily drive the earworms from your head, neatly canceling each other out in the process and leaving your mind clear. Meanwhile, the worms go berserk, and squealing in pain and frustration they swarm back at their creator, dealing 72 to the foul demon.
 

GValko

Member
I'd assume it's probably a non-standard damage message. I'd assume that the regex is set up to parse anyhting of the form "X damage" and then log that X.

Both the Earworms message and another newer skill (Stinkpalm) don't use this form and don't have their damage counts properly parsed.
 
Top