Bug - Fixed Scary Death Orb damage tracking

lostcalpolydude

Developer
Staff member
When a Scary Death Orb does damage to you, mafia thinks it also damages the enemy. The message is "<name> drills into your skull and siphons out some of your blood, to the tune of X damage."
 

Theraze

Active member
That's odd... I'm looking at lines 3892-3902 (in my highly modified version of FightRequest, at least) and that matches the message, when using the spooky death orb, specifically of:
some of your blood, to the tune of ([\\d,]+) damage

Works the same as stab bat, exactly...
 

Bale

Minion
Maybe there's an extra space in there or something. Copy-pasting the page's html would answer that.
 

Rinn

Developer
Code:
<td valign=center>Orbita drills into your skull and siphons out some of your blood, to the tune of 23 damage.</td>

The regex appears to be correct, there's probably some bad logic elsewhere.
 

Veracity

Developer
Staff member
Could we have the HTML for the whole page, please? In fact, if you turn on debug logging, you should see the HTML tree for the fight page right there. That would be helpful, too, since we could see just how this message appears on the fight page in terms of nested HTML constructs.
 

Rinn

Developer
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="[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/scripts/keybinds.min.2.js"]/images/scripts/keybinds.min.2.js[/URL]"></script> <script language=Javascript src="[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/scripts/window.20090915.js"]/images/scripts/window.20090915.js[/URL]"></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="[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/scripts/core.js"]/images/scripts/core.js[/URL]"></script><link rel="stylesheet" type="text/css" href="[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/actionbar.6.css"]/images/actionbar.6.css[/URL]"> <!--[if IE]> <link rel="stylesheet" type="text/css" href="/images/actionbar.ie.4.css"> <script src='/images/scripts/minmax.js'></script> <![endif]--> <script> var onturn = 8; function newpic(pic, name, width, height) {    var h = height || 100;    var w = width || 100;    mpic = getObj('monpic');    mnam = getObj('monname');    mpic.src=pic;    mpic.width=w;    mpic.height=h;    mnam.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="[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/styles.css"]/images/styles.css[/URL]"> <script language="Javascript" src="[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/basics.js"]/basics.js[/URL]"></script><link rel="stylesheet" href="[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/basics.css"]/basics.css[/URL]" /></head>  <body> <img src='[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/itemimages/blank.gif"]/images/itemimages/blank.gif[/URL]' 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='[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/fight.php?action=custom"]fight.php?action=custom[/URL]'><img src='[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/itemimages/plexpock.gif"]/images/itemimages/plexpock.gif[/URL]'></td><td class=spacer></td><td><img src='[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/itemimages/book3.gif"]/images/itemimages/book3.gif[/URL]' id='skills'></td><td class=spacer></td><td><img src='[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/itemimages/blank.gif"]/images/itemimages/blank.gif[/URL]' id='button1'></td><td><img src='[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/itemimages/blank.gif"]/images/itemimages/blank.gif[/URL]' id='button2'></td><td><img src='[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/itemimages/blank.gif"]/images/itemimages/blank.gif[/URL]' id='button3'></td><td><img src='[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/itemimages/blank.gif"]/images/itemimages/blank.gif[/URL]' id='button4'></td><td><img src='[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/itemimages/blank.gif"]/images/itemimages/blank.gif[/URL]' id='button5'></td><td><img src='[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/itemimages/blank.gif"]/images/itemimages/blank.gif[/URL]' id='button6'></td><td><img src='[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/itemimages/blank.gif"]/images/itemimages/blank.gif[/URL]' id='button7'></td><td><img src='[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/itemimages/blank.gif"]/images/itemimages/blank.gif[/URL]' id='button8'></td><td><img src='[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/itemimages/blank.gif"]/images/itemimages/blank.gif[/URL]' id='button9'></td><td><img src='[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/itemimages/blank.gif"]/images/itemimages/blank.gif[/URL]' id='button10'></td><td><img src='[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/itemimages/blank.gif"]/images/itemimages/blank.gif[/URL]' id='button11'></td><td><img src='[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/itemimages/blank.gif"]/images/itemimages/blank.gif[/URL]' id='button12'></td><td valign=center align=center class=page><a class=nounder href='javascript:pageup();'><img src='[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/otherimages/tinyup.gif"]/images/otherimages/tinyup.gif[/URL]' class=updown></a><br><span id='page_out'></span><br><a class=nounder href='javascript:pagedown();'><img src='[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/otherimages/tinydown.gif"]/images/otherimages/tinydown.gif[/URL]' class=updown></a></td><td class=spacer></td><td><img src='[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/itemimages/backpack.gif"]/images/itemimages/backpack.gif[/URL]' 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 8!</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><table><tr><td><img id='monpic' src="[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/adventureimages/rgiant.gif"]/images/adventureimages/rgiant.gif[/URL]" width=100 height=100></td><td valign=center>You're fighting <span id='monname'>a Raver Giant</span><font size=2 color=gray><br />HP: 95, Atk: 139, Def: 139<br />Drops: Angry Farmer candy (30), giant needle (30), Mick's IcyVapoHotness Rub (30), rave whistle (5), discarded pacifier (bounty)</font></td></tr></table><br><p>Your movements acquire the jerky, staccato motion of a Lego-based YouTube video. Your opponent is momentarily confused, and flinches when you throw a punch that stops just short of connecting with their face. When they hesitantly open their eyes a moment later, you finish the movement, landing a blow worth 7 damage.<!--familiarmessage--><center><table><tr><td align=center valign=center><img src="[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/itemimages/orb.gif"]/images/itemimages/orb.gif[/URL]" width=30 height=30></td><td valign=center>Orbita drills into your skull and siphons out some of your blood, to the tune of 23 damage.</td></tr></table></center><p>Your opponent struggles free of your entangling noodles.<p><table><tr><td>He swings a glowstick on a string at you, but misses.</td></tr></table><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=brcrossbow onclick="return killforms(this)"  class=button type=submit value="Attack with your bottle-rocket crossbow"></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 (1)</option><option picurl=8ball value=1907>8-ball (99)</option><option picurl=scroll2 value=547>334 scroll (10)</option><option picurl=scroll1 value=548>668 scroll (23)</option><option picurl=scroll2 value=549>30669 scroll (217)</option><option picurl=scroll2 value=550>33398 scroll (653)</option><option picurl=scroll2 value=551>64067 scroll (1)</option><option picurl=disease value=2537>ancient spice (36)</option><option picurl=poisoncup value=829>anti-anti-antidote (117)</option><option picurl=handmirror value=2092>antique hand mirror (29)</option><option picurl=nutsack value=1510>bag of airline peanuts (1)</option><option picurl=toyball value=1391>ball (2)</option><option picurl=bananapeel value=2374>banana peel (37)</option><option picurl=fence value=145>barbed-wire fence (1)</option><option picurl=baseball value=181>baseball (57)</option><option picurl=beer value=2350>beer bomb (970)</option><option picurl=bigbomb value=2617>big boom (27)</option><option picurl=lore value=4583>big glob of skin (1)</option><option picurl=blpepper value=2341>black pepper (14)</option><option picurl=luckycap value=3480>black spot (2)</option><option picurl=ppotion value=465>blue pixel potion (2)</option><option picurl=claybottle value=2240>bottle of alcohol (156)</option><option picurl=bubblebath value=1965>bottle of Monsieur Bubble (3)</option><option picurl=bigrock value=4586>boulder (10)</option><option picurl=locust1 value=2575>bronzed locust (90)</option><option picurl=exclam value=821>bubbly potion of confusion (94)</option><option picurl=buckyball value=3065>buckyball (153)</option><option picurl=bigcaret value=3730>caret (1)</option><option picurl=cast value=474>cast (30)</option><option picurl=butterfly value=615>chaos butterfly (1)</option><option picurl=chlororag value=2396>chloroform rag (150)</option><option picurl=clingtangle value=2992>clingfilm tangle (1)</option><option picurl=cloaca value=1336>Cloaca grenade (12)</option><option picurl=exclam value=823>cloudy potion of mental acuity (59)</option><option picurl=napkin value=2956>cocktail napkin (302)</option><option picurl=coily value=4118>Coily™ (4)</option><option picurl=hotsauce value=3734>Colon Annihilation Hot Sauce (8)</option><option picurl=chimes value=2354>communications windchimes (7)</option><option picurl=hulahoop value=4117>crusty hula hoop (121)</option><option picurl=exclam value=826>dark potion of ettin strength (57)</option><option picurl=smokebomb value=2397>depantsing bomb (153)</option><option picurl=disease value=452>disease (149)</option><option picurl=divblowout value=3120>divine blowout (350)</option><option picurl=divstring value=3119>divine can of silly string (313)</option><option picurl=divpopper value=3121>divine champagne popper (62)</option><option picurl=divcracker value=3122>divine cracker (66)</option><option picurl=divnoise value=3118>divine noisemaker (289)</option><option picurl=balm value=232>Doc Galaktik's Ailment Ointment (10)</option><option picurl=elixir value=234>Doc Galaktik's Homeopathic Elixir (20)</option><option picurl=balm value=231>Doc Galaktik's Pungent Unguent (5)</option><option picurl=dyspepsi value=347>Dyspepsi-Cola (13)</option><option picurl=dyspepsi value=1335>Dyspepsi grenade (15)</option><option picurl=exclam value=824>effervescent potion of teleportitis (69)</option><option picurl=punchcard value=3153>El Vibrato punchcard (FLOOR) (17)</option><option picurl=punchcard value=3146>El Vibrato punchcard (ATTACK) (1)</option><option picurl=punchcard value=3148>El Vibrato punchcard (BUFF) (1)</option><option picurl=punchcard value=3149>El Vibrato punchcard (MODIFY) (1)</option><option picurl=punchcard value=3152>El Vibrato punchcard (SELF) (6)</option><option picurl=facehugger value=4087>facehugging alien (13)</option><option picurl=cookbook value=1316>facsimile dictionary (96)</option><option picurl=potion4 value=2091>fancy bath salts (894)</option><option picurl=maskball value=2133>fancy dress ball (1)</option><option picurl=quark value=4582>fat bottom quark (15)</option><option picurl=ferretbait value=2041>ferret bait (596)</option><option picurl=stenchfeather value=2647>fetid feather (1)</option><option picurl=poultice value=2369>filthy poultice (171)</option><option picurl=exclam value=825>fizzy potion of inebriety (72)</option><option picurl=hotfeather value=2644>flaming feather (9)</option><option picurl=flaregun value=1705>flaregun (200)</option><option picurl=sleazefeather value=2648>flirtatious feather (6)</option><option picurl=spookyfeather value=2646>frightful feather (1)</option><option picurl=styore value=3391>Frosty's iceball (1)</option><option picurl=coldfeather value=2645>frozen feather (8)</option><option picurl=nitrous value=2349>gas balloon (519)</option><option picurl=gauzegarter value=2402>gauze garter (404)</option><option picurl=gizmo value=2848>Gnomitronic Hyperspatial Demodulizer (2)</option><option picurl=hairwad value=1922>gob of wet hair (707)</option><option picurl=ringa value=3099>golden ring (1)</option><option picurl=smokebomb value=2371>green smoke bomb (114)</option><option picurl=spirit value=1939>grouchy restless spirit (402)</option><option picurl=spraycan value=744>hair spray (7)</option><option picurl=scpowder value=2581>handful of sand (364)</option><option picurl=scpowder value=3020>handful of sawdust (32)</option><option picurl=crabmeat value=3597>imitation crab meat (563)</option><option picurl=bladder value=3679>ink bladder (5)</option><option picurl=inkwell value=1958>inkwell (3675)</option><option picurl=metalfeather value=3098>killing feather (69)</option><option picurl=kite value=1392>kite (55)</option><option picurl=firecrack value=747>Knob Goblin firecracker (5)</option><option picurl=seltzer value=344>Knob Goblin seltzer (1)</option><option picurl=seltzer value=345>Knob Goblin superseltzer (4)</option><option picurl=jart value=4120>lawn dart (5)</option><option picurl=leftovers value=1777>leftovers of indeterminate origin (1)</option><option picurl=lewdcard value=3403>lewd playing card (1)</option><option picurl=navalmine value=3608>live nautical mine (2)</option><option picurl=music value=3755>love song of smoldering passion (1)</option><option picurl=music value=3757>love song of sugary cuteness (3)</option><option picurl=music value=3754>love song of vague ambiguity (1)</option><option picurl=string value=1159>mariachi G-string (7)</option><option picurl=vortex value=546>meat vortex (444)</option><option picurl=mem_ca value=4011>memory of a CA base pair (3)</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 (3)</option><option picurl=mem_gt value=4016>memory of a GT base pair (2)</option><option picurl=mem_at value=4015>memory of an AT base pair (1)</option><option picurl=scroll1 value=3809>Mer-kin healscroll (1)</option><option picurl=exclam value=819>milky potion of healing (103)</option><option picurl=destroyobot value=3114>Miniborg Destroy-O-Bot (2)</option><option picurl=phone value=779>Mob Penguin cellular phone (3)</option><option picurl=molotov value=2400>molotov cocktail cocktail (258)</option><option picurl=razoryoyo value=3082>monomolecular yo-yo (771)</option><option picurl=exclam value=827>murky potion of sleepiness (58)</option><option picurl=scoutdrone value=3086>mylar scout drone (24)</option><option picurl=ng value=624>NG (8)</option><option picurl=petfrisbee value=4119>old-school flying disc (5)</option><option picurl=padl value=2065>PADL Phone (5)</option><option picurl=palmfan value=2606>palm-frond fan (6)</option><option picurl=palmnet value=2608>palm-frond net (3)</option><option picurl=incense value=208>patchouli incense stick (29)</option><option picurl=patchbomb value=2040>patchouli oil bomb (8)</option><option picurl=petnoodles value=4257>petrified wood (344)</option><option picurl=torpedo value=630>photoprotoneutron torpedo (692)</option><option picurl=hole value=613>plot hole (1)</option><option picurl=liquidmetal value=4084>pool of liquid metal (11)</option><option picurl=posstomato value=3726>possessed tomato (6)</option><option picurl=scpowder value=2538>powdered organs (33)</option><option picurl=spine value=3643>pufferfish spine (2)</option><option picurl=tinyblowgun value=2237>pygmy blowgun (101)</option><option picurl=canlid value=559>razor-sharp can lid (372)</option><option picurl=razoryoyo value=2138>razor-tipped yo-yo (1)</option><option picurl=ppotion value=464>red pixel potion (4)</option><option picurl=redwagon value=4121>red wagon (114)</option><option picurl=unicycle2 value=4116>rickety old unicycle (24)</option><option picurl=roboegg value=3100>robotronic egg (64)</option><option picurl=raccoon value=2613>rocky raccoon (315)</option><option picurl=swarmer value=3101>rogue swarmer (81)</option><option picurl=shingle value=1704>roofie (146)</option><option picurl=sakebomb value=2067>sake bomb (581)</option><option picurl=sausagebomb value=2715>sausage bomb (24)</option><option picurl=vial value=2438>scented massage oil (35)</option><option picurl=sealsnare value=4423>sealhide snare (14)</option><option picurl=powder value=2704>shrinking powder (13)</option><option picurl=exclam value=822>smoky potion of detection (54)</option><option picurl=biscuit value=563>sonar-in-a-biscuit (4)</option><option picurl=scepter value=2678>spectre scepter (99)</option><option picurl=spice value=8>spices (6)</option><option picurl=web value=27>spider web (225)</option><option picurl=blooddrops value=4256>spooky sap (346)</option><option picurl=dynamite value=2493>stick of dynamite (1)</option><option picurl=stonefrisbee value=2687>stone frisbee (143)</option><option picurl=exclam value=820>swirly potion of blessing (24)</option><option picurl=rattails value=4736>tangle of rat tails (1)</option><option picurl=tatpaper value=1959>tattered scrap of paper (2403)</option><option picurl=teqgrenade value=2068>tequila grenade (266)</option><option picurl=book4 value=2947>The Big Book of Pirate Insults (5)</option><option picurl=tinygothgiant value=4587>tiny goth giant (6)</option><option picurl=tube value=2966>Tom's of the Spanish Main Toothpaste (116)</option><option picurl=deathbot value=3068>toy deathbot (2)</option><option picurl=soldier value=2139>toy mercenary (2)</option><option picurl=soldier value=1397>toy soldier (2)</option><option picurl=evilkite value=2131>tree-eating kite (19)</option><option picurl=troporchid value=2492>tropical orchid (1)</option><option picurl=dixiecup value=1788>unrefined Mountain Stream syrup (2)</option><option picurl=battery value=3103>unstable laser battery (68)</option><option picurl=bong value=2348>water pipe bomb (1842)</option><option picurl=wumpbola value=4045>wumpus-hair bolo (1)</option><option picurl=wumpnet value=4046>wumpus-hair net (1)</option><option picurl=potion5 value=469>wussiness potion (369)</option><option picurl=yoyo value=1389>yo-yo (51)</option><option picurl=zomboeye value=3388>Zombo's empty eye (1)</option></select><br><select name=whichitem2><option value=0>(select an item)</option><option  value=4169>4-d camera (1)</option><option  value=1907>8-ball (99)</option><option  value=547>334 scroll (10)</option><option  value=548>668 scroll (23)</option><option  value=549>30669 scroll (217)</option><option  value=550>33398 scroll (653)</option><option  value=551>64067 scroll (1)</option><option  value=2537>ancient spice (36)</option><option  value=829>anti-anti-antidote (117)</option><option  value=2092>antique hand mirror (29)</option><option  value=1510>bag of airline peanuts (1)</option><option  value=1391>ball (2)</option><option  value=2374>banana peel (37)</option><option  value=145>barbed-wire fence (1)</option><option  value=181>baseball (57)</option><option  value=2350>beer bomb (970)</option><option  value=2617>big boom (27)</option><option  value=4583>big glob of skin (1)</option><option  value=2341>black pepper (14)</option><option  value=3480>black spot (2)</option><option  value=465>blue pixel potion (2)</option><option  value=2240>bottle of alcohol (156)</option><option  value=1965>bottle of Monsieur Bubble (3)</option><option  value=4586>boulder (10)</option><option  value=2575>bronzed locust (90)</option><option  value=821>bubbly potion of confusion (94)</option><option  value=3065>buckyball (153)</option><option  value=3730>caret (1)</option><option  value=474>cast (30)</option><option  value=615>chaos butterfly (1)</option><option  value=2396>chloroform rag (150)</option><option  value=2992>clingfilm tangle (1)</option><option  value=1336>Cloaca grenade (12)</option><option  value=823>cloudy potion of mental acuity (59)</option><option  value=2956>cocktail napkin (302)</option><option  value=4118>Coily™ (4)</option><option  value=3734>Colon Annihilation Hot Sauce (8)</option><option  value=2354>communications windchimes (7)</option><option  value=4117>crusty hula hoop (121)</option><option  value=826>dark potion of ettin strength (57)</option><option  value=2397>depantsing bomb (153)</option><option  value=452>disease (149)</option><option  value=3120>divine blowout (350)</option><option  value=3119>divine can of silly string (313)</option><option  value=3121>divine champagne popper (62)</option><option  value=3122>divine cracker (66)</option><option  value=3118>divine noisemaker (289)</option><option  value=232>Doc Galaktik's Ailment Ointment (10)</option><option  value=234>Doc Galaktik's Homeopathic Elixir (20)</option><option  value=231>Doc Galaktik's Pungent Unguent (5)</option><option  value=347>Dyspepsi-Cola (13)</option><option  value=1335>Dyspepsi grenade (15)</option><option  value=824>effervescent potion of teleportitis (69)</option><option  value=3153>El Vibrato punchcard (FLOOR) (17)</option><option  value=3146>El Vibrato punchcard (ATTACK) (1)</option><option  value=3148>El Vibrato punchcard (BUFF) (1)</option><option  value=3149>El Vibrato punchcard (MODIFY) (1)</option><option  value=3152>El Vibrato punchcard (SELF) (6)</option><option  value=4087>facehugging alien (13)</option><option  value=1316>facsimile dictionary (96)</option><option  value=2091>fancy bath salts (894)</option><option  value=2133>fancy dress ball (1)</option><option  value=4582>fat bottom quark (15)</option><option  value=2041>ferret bait (596)</option><option  value=2647>fetid feather (1)</option><option  value=2369>filthy poultice (171)</option><option  value=825>fizzy potion of inebriety (72)</option><option  value=2644>flaming feather (9)</option><option  value=1705>flaregun (200)</option><option  value=2648>flirtatious feather (6)</option><option  value=2646>frightful feather (1)</option><option  value=3391>Frosty's iceball (1)</option><option  value=2645>frozen feather (8)</option><option  value=2349>gas balloon (519)</option><option  value=2402>gauze garter (404)</option><option  value=2848>Gnomitronic Hyperspatial Demodulizer (2)</option><option  value=1922>gob of wet hair (707)</option><option  value=3099>golden ring (1)</option><option  value=2371>green smoke bomb (114)</option><option  value=1939>grouchy restless spirit (402)</option><option  value=744>hair spray (7)</option><option  value=2581>handful of sand (364)</option><option  value=3020>handful of sawdust (32)</option><option  value=3597>imitation crab meat (563)</option><option  value=3679>ink bladder (5)</option><option  value=1958>inkwell (3675)</option><option  value=3098>killing feather (69)</option><option  value=1392>kite (55)</option><option  value=747>Knob Goblin firecracker (5)</option><option  value=344>Knob Goblin seltzer (1)</option><option  value=345>Knob Goblin superseltzer (4)</option><option  value=4120>lawn dart (5)</option><option  value=1777>leftovers of indeterminate origin (1)</option><option  value=3403>lewd playing card (1)</option><option  value=3608>live nautical mine (2)</option><option  value=3755>love song of smoldering passion (1)</option><option  value=3757>love song of sugary cuteness (3)</option><option  value=3754>love song of vague ambiguity (1)</option><option  value=1159>mariachi G-string (7)</option><option  value=546>meat vortex (444)</option><option  value=4011>memory of a CA base pair (3)</option><option  value=4012>memory of a CG base pair (1)</option><option  value=4013>memory of a CT base pair (3)</option><option  value=4016>memory of a GT base pair (2)</option><option  value=4015>memory of an AT base pair (1)</option><option  value=3809>Mer-kin healscroll (1)</option><option  value=819>milky potion of healing (103)</option><option  value=3114>Miniborg Destroy-O-Bot (2)</option><option  value=779>Mob Penguin cellular phone (3)</option><option  value=2400>molotov cocktail cocktail (258)</option><option  value=3082>monomolecular yo-yo (771)</option><option  value=827>murky potion of sleepiness (58)</option><option  value=3086>mylar scout drone (24)</option><option  value=624>NG (8)</option><option  value=4119>old-school flying disc (5)</option><option  value=2065>PADL Phone (5)</option><option  value=2606>palm-frond fan (6)</option><option  value=2608>palm-frond net (3)</option><option  value=208>patchouli incense stick (29)</option><option  value=2040>patchouli oil bomb (8)</option><option  value=4257>petrified wood (344)</option><option  value=630>photoprotoneutron torpedo (692)</option><option  value=613>plot hole (1)</option><option  value=4084>pool of liquid metal (11)</option><option  value=3726>possessed tomato (6)</option><option  value=2538>powdered organs (33)</option><option  value=3643>pufferfish spine (2)</option><option  value=2237>pygmy blowgun (101)</option><option  value=559>razor-sharp can lid (372)</option><option  value=2138>razor-tipped yo-yo (1)</option><option  value=464>red pixel potion (4)</option><option  value=4121>red wagon (114)</option><option  value=4116>rickety old unicycle (24)</option><option  value=3100>robotronic egg (64)</option><option  value=2613>rocky raccoon (315)</option><option  value=3101>rogue swarmer (81)</option><option  value=1704>roofie (146)</option><option  value=2067>sake bomb (581)</option><option  value=2715>sausage bomb (24)</option><option  value=2438>scented massage oil (35)</option><option  value=4423>sealhide snare (14)</option><option  value=2704>shrinking powder (13)</option><option  value=822>smoky potion of detection (54)</option><option  value=563>sonar-in-a-biscuit (4)</option><option  value=2678>spectre scepter (99)</option><option  value=8>spices (6)</option><option  value=27>spider web (225)</option><option  value=4256>spooky sap (346)</option><option  value=2493>stick of dynamite (1)</option><option  value=2687>stone frisbee (143)</option><option  value=820>swirly potion of blessing (24)</option><option  value=4736>tangle of rat tails (1)</option><option  value=1959>tattered scrap of paper (2403)</option><option  value=2068>tequila grenade (266)</option><option  value=2947>The Big Book of Pirate Insults (5)</option><option  value=4587>tiny goth giant (6)</option><option  value=2966>Tom's of the Spanish Main Toothpaste (116)</option><option  value=3068>toy deathbot (2)</option><option  value=2139>toy mercenary (2)</option><option  value=1397>toy soldier (2)</option><option  value=2131>tree-eating kite (19)</option><option  value=2492>tropical orchid (1)</option><option  value=1788>unrefined Mountain Stream syrup (2)</option><option  value=3103>unstable laser battery (68)</option><option  value=2348>water pipe bomb (1842)</option><option  value=4045>wumpus-hair bolo (1)</option><option  value=4046>wumpus-hair net (1)</option><option  value=469>wussiness potion (369)</option><option  value=1389>yo-yo (51)</option><option  value=3388>Zombo's empty eye (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="2" picurl="fireball" >Chronic Indigestion (4 Mojo Points)</option><option value="15" picurl="commacha" >CLEESH (9 Mojo Points)</option><option value="19" picurl="snout" >Transcendent Olfaction (39 Mojo Points)</option><option value="28" picurl="fire" >Awesome Balls of Fire (119 Mojo Points)</option><option value="29" picurl="campfire" >Conjure Relaxing Campfire (29 Mojo Points)</option><option value="30" picurl="cyclone" >Snowclone (119 Mojo Points)</option><option value="31" picurl="snowflake" >Maximum Chill (29 Mojo Points)</option><option value="37" picurl="wink" >Inappropriate Backrub (29 Mojo Points)</option><option value="36" picurl="greasebolt" >Grease Lightning (119 Mojo Points)</option><option value="32" picurl="egg" >Eggsplosion (119 Mojo Points)</option><option value="33" picurl="blooddrops" >Mudbath (29 Mojo Points)</option><option value="50" picurl="brokebone" >Break It On Down (1 Mojo Point)</option><option value="42" picurl="tombstone" >Raise Backup Dancer (119 Mojo Points)</option><option value="43" picurl="creepysleepy" >Creepy Lullaby (29 Mojo Points)</option><option value="49" picurl="loop" >Gothy Handwave (1 Mojo Point)</option><option value="51" picurl="oaf" selected>Pop and Lock It (1 Mojo Point)</option><option value="52" picurl="fast" >Run Like the Wind (1 Mojo Point)</option><option value="55" picurl="volcmeteor" >Volcanometeor Showeruption (0 Mojo Points)</option><option value="1022" picurl="clobber" >Clobber (1 Mojo Point)</option><option value="1023" picurl="hookspear" >Harpoon! (29 Mojo Points)</option><option value="1003" picurl="club" >Thrust-Smack (2 Mojo Points)</option><option value="1005" picurl="cudgel" >Lunging Thrust-Smack (7 Mojo Points)</option><option value="2022" picurl="ssnapper" >Spectral Snapper (19 Mojo Points)</option><option value="2023" picurl="toss" >Toss (1 Mojo Point)</option><option value="2024" picurl="leviatuga" >Summon Leviatuga (39 Mojo Points)</option><option value="2003" picurl="headbutt" >Headbutt (2 Mojo Points)</option><option value="2015" picurl="kneebutt" >Kneebutt (3 Mojo Points)</option><option value="3019" picurl="fearfulfet" >Fearful Fettucini (23 Mojo Points)</option><option value="3020" picurl="line" >Spaghetti Spear (1 Mojo Point)</option><option value="3022" picurl="candypile" >Candyblast (5 Mojo Points)</option><option value="3023" picurl="scharm" >Stringozzi Serpent (12 Mojo Points)</option><option value="3003" picurl="ravshurikens" >Ravioli Shurikens (3 Mojo Points)</option><option value="3009" picurl="lasbandage" >Lasagna Bandages (5 Mojo Points)</option><option value="3005" picurl="pastacannon" >Cannelloni Cannon (5 Mojo Points)</option><option value="3007" picurl="stuffshell" >Stuffed Mortar Shell (12 Mojo Points)</option><option value="3008" picurl="ironspoon" >Weapon of the Pastalord (23 Mojo Points)</option><option value="4020" picurl="salsaball" >Salsaball (1 Mojo Point)</option><option value="4022" picurl="icingsurge" >Surge of Icing (9 Mojo Points)</option><option value="4023" picurl="cheesestorm" >Käsesoßesturm (9 Mojo Points)</option><option value="4003" picurl="saucestream" >Stream of Sauce (2 Mojo Points)</option><option value="4014" picurl="saucysalve" >Saucy Salve (3 Mojo Points)</option><option value="4005" picurl="raincloud" >Saucestorm (9 Mojo Points)</option><option value="4009" picurl="saucewave" >Wave of Sauce (15 Mojo Points)</option><option value="4012" picurl="saucegeyser" >Saucegeyser (27 Mojo Points)</option><option value="5019" picurl="terrortango" >Tango of Terror (7 Mojo Points)</option><option value="5021" picurl="hernia" >Suckerpunch (0 Mojo Points)</option><option value="5023" picurl="mistletoe" >Stealth Mistletoe (4 Mojo Points)</option><option value="5003" picurl="eyepoke" >Disco Eye-Poke (2 Mojo Points)</option><option value="5005" picurl="dance1" >Disco Dance of Doom (4 Mojo Points)</option><option value="5008" picurl="dance2" >Disco Dance II: Electric Boogaloo (6 Mojo Points)</option><option value="5012" picurl="facestab" >Disco Face Stab (9 Mojo Points)</option><option value="6025" picurl="breath" >Sing (1 Mojo Point)</option><option value="7007" picurl="breath" >Sleazy Breath (4 Mojo Points)</option><option value="7008" picurl="moxman" >Moxious Maneuver (20 Mojo Points)</option><option value="7010" picurl="bottlerocket" >Fire Red Bottle-Rocket (4 Mojo Points)</option><option value="7011" picurl="bottlerocket" >Fire Blue Bottle-Rocket (4 Mojo Points)</option><option value="7012" picurl="bottlerocket" >Fire Orange Bottle-Rocket (4 Mojo Points)</option><option value="7013" picurl="bottlerocket" >Fire Purple Bottle-Rocket (4 Mojo Points)</option><option value="7014" picurl="bottlerocket" >Fire Black Bottle-Rocket (4 Mojo Points)</option><option value="7052" picurl="hobohead" >Summon hobo underling (0 Mojo Points)</option><option value="7074" picurl="burrowgrub" >Consume Burrowgrub (0 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="1461" picurl="raindrop" >Skill MP Restore</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 (100% chance of being free)"></td></tr></form></table></center></div><br><a href='[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/fight.php#"]#[/URL]' onclick='document.getElementById("fightform").className="showform"; document.getElementById("formlink").style.display = "none";' id='formlink' class=tiny>(show old combat form)</a></td></tr><tr><table border=2 cols=5><caption>Pop and Lock It</caption><tr><form method=POST action="fight.php"><td><input type=hidden name="action" value="macro"><input type=hidden name="macrotext" value="skill 5003;skill 5005;skill 5008;"><input onclick="return killforms(this);" type="submit" value="Disco Concentration" disabled> </td></form><td>Item Drop +20</td><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="5003"><input onclick="return killforms(this);" type="submit" value="Eye-Poke"> </td></form><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="5005"><input onclick="return killforms(this);" type="submit" value="Dance"> </td></form><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="5008"><input onclick="return killforms(this);" type="submit" value="Dance II"> </td></form></tr><tr><form method=POST action="fight.php"><td><input type=hidden name="action" value="macro"><input type=hidden name="macrotext" value="skill 5005;skill 5008;"><input onclick="return killforms(this);" type="submit" value="Disco Nirvana" disabled> </td></form><td>Meat Drop +30</td><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="5005"><input onclick="return killforms(this);" type="submit" value="Dance"> </td></form><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="5008"><input onclick="return killforms(this);" type="submit" value="Dance II"> </td></form><td> </td></tr><tr><form method=POST action="fight.php"><td><input type=hidden name="action" value="macro"><input type=hidden name="macrotext" value="skill 5003;skill 5008;"><input onclick="return killforms(this);" type="submit" value="Disco Inferno" disabled> </td></form><td>Moxie +5, Hot Damage +3</td><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="5003"><input onclick="return killforms(this);" type="submit" value="Eye-Poke"> </td></form><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="5008"><input onclick="return killforms(this);" type="submit" value="Dance II"> </td></form><td> </td></tr><tr><form method=POST action="fight.php"><td><input type=hidden name="action" value="macro"><input type=hidden name="macrotext" value="skill 5005;skill 5012;"><input onclick="return killforms(this);" type="submit" value="Disco Bleeding" disabled> </td></form><td>Recurring damage</td><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="5005"><input onclick="return killforms(this);" type="submit" value="Dance"> </td></form><br><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="5008"><input onclick="return killforms(this);" type="submit" value="Dance II"> </td></form><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="5012"><input onclick="return killforms(this);" type="submit" value="Face Stab"> </td></form><td> </td></tr><tr><form method=POST action="fight.php"><td><input type=hidden name="action" value="macro"><input type=hidden name="macrotext" value="skill 5005;skill 5003;"><input onclick="return killforms(this);" type="submit" value="Disco Blindness" disabled> </td></form><td>Monster stunned</td><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="5005"><input onclick="return killforms(this);" type="submit" value="Dance"> </td></form><br><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="5008"><input onclick="return killforms(this);" type="submit" value="Dance II"> </td></form><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="5003"><input onclick="return killforms(this);" type="submit" value="Eye-Poke"> </td></form><td> </td></tr><tr><form method=POST action="fight.php"><td><input type=hidden name="action" value="macro"><input type=hidden name="macrotext" value="skill 50;skill 52;skill 51;"><input onclick="return killforms(this);" type="submit" value="Rave Concentration" disabled> </td></form><td>Item Drop +30</td><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="50"><input onclick="return killforms(this);" type="submit" value="Break"> </td></form><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="52"><input onclick="return killforms(this);" type="submit" value="Run"> </td></form><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="51"><input onclick="return killforms(this);" type="submit" value="Pop"> </td></form></tr><tr><form method=POST action="fight.php"><td><input type=hidden name="action" value="macro"><input type=hidden name="macrotext" value="skill 51;skill 52;skill 50;"><input onclick="return killforms(this);" type="submit" value="Rave Nirvana" disabled> </td></form><td>Meat Drop +50</td><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="51"><input onclick="return killforms(this);" type="submit" value="Pop"> </td></form><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="52"><input onclick="return killforms(this);" type="submit" value="Run"> </td></form><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="50"><input onclick="return killforms(this);" type="submit" value="Break"> </td></form></tr><tr><form method=POST action="fight.php"><td><input type=hidden name="action" value="macro"><input type=hidden name="macrotext" value="skill 52;skill 50;skill 51;"><input onclick="return killforms(this);" type="submit" value="Rave Knockout" disabled> </td></form><td>Multi-round stun+damage</td><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="52"><input onclick="return killforms(this);" type="submit" value="Run"> </td></form><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="50"><input onclick="return killforms(this);" type="submit" value="Break"> </td></form><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="51"><input onclick="return killforms(this);" type="submit" value="Pop"> </td></form></tr><tr><form method=POST action="fight.php"><td><input type=hidden name="action" value="macro"><input type=hidden name="macrotext" value="skill 51;skill 50;skill 52;"><input onclick="return killforms(this);" type="submit" value="Rave Bleeding" disabled> </td></form><td>Recurring damage</td><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="51"><input onclick="return killforms(this);" type="submit" value="Pop"> </td></form><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="50"><input onclick="return killforms(this);" type="submit" value="Break"> </td></form><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="52"><input onclick="return killforms(this);" type="submit" value="Run"> </td></form></tr><tr><form method=POST action="fight.php"><td><input type=hidden name="action" value="macro"><input type=hidden name="macrotext" value="skill 52;skill 51;skill 50;"><input onclick="return killforms(this);" type="submit" value="Rave Steal" disabled> </td></form><td>Steal item</td><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="52"><input onclick="return killforms(this);" type="submit" value="Run"> </td></form><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="51"><input onclick="return killforms(this);" type="submit" value="Pop"> </td></form><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="50"><input onclick="return killforms(this);" type="submit" value="Break"> </td></form></tr><tr><form method=POST action="fight.php"><td><input type=hidden name="action" value="macro"><input type=hidden name="macrotext" value="skill 50;skill 51;skill 52;"><input onclick="return killforms(this);" type="submit" value="Rave Substats" disabled> </td></form><td>2-4 substats</td><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="50"><input onclick="return killforms(this);" type="submit" value="Break"> </td></form><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="51"><input onclick="return killforms(this);" type="submit" value="Pop"> </td></form><form method=POST action="fight.php"><td><input type=hidden name="action" value="skill"><input type=hidden name="whichskill" value="52"><input onclick="return killforms(this);" type="submit" value="Run"> </td></form></tr></table></tr></table></center></td></tr><tr><td height=4></td></tr></table></center></div></div><script src='[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/scripts/actionbar.20100629.js"]/images/scripts/actionbar.20100629.js[/URL]'></script></body><script src="[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/onfocus.js"]/onfocus.js[/URL]"></script></html>

I already burned the rest of my turns on automation, but I left the source window open so there you go.
 

Idran

Member
Stab Bat damage to you also recorded as damage to enemy

When you take damage from your Stab Bat, Mafia also records the damage as given to the enemy. Just a few examples taken out of combat logs from today:

Round 3: Azmyth stabs you for 37 damage.
You lose 37 hit points
Round 3: tipsy pirate takes 37 damage.

Round 3: Azmyth stabs you for 28 damage.
You lose 28 hit points
Round 3: toothy pirate takes 28 damage.

Round 3: Azmyth stabs you for 26 damage.
You lose 26 hit points
Round 3: flock of seagulls takes 26 damage.
 

Idran

Member
Here's the HTML code from a fight where it just happened again.

Code:
<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 2!</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/bathtub.gif" width=100 height=100></td><td valign=center>You're fighting <span id='monname'>a claw-foot bathtub</span><font size=2 color=gray><br />HP: 40, Atk: 90, Def: 100<br />Drops: bottle of Monsieur Bubble (25), fancy bath salts (35)</font></td></tr></table><br><p>You grin and pick out a tune on your banjo.  The resultant sound waves deal 33 damage to your opponent.<b><font color=blue> ZAP! KAPOW! BONK! BARF! ZOT! WHAM!</font></b><!--familiarmessage--><center><table><tr><td align=center valign=center><img src="http://images.kingdomofloathing.com/itemimages/familiar10.gif" width=30 height=30></td><td valign=center>Azmyth stabs you for 27 damage.</td></tr></table></center><p><table><tr><td>It leaps into the air and tries to land on you, but you quickly flip it upside-down and it lands around you, instead.</td></tr></table><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=discobanjo onclick="return killforms(this)"  class=button type=submit value="Attack with your Shagadelic Disco Banjo"></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=scroll2 value=547>334 scroll (3)</option><option picurl=scroll2 value=549>30669 scroll (5)</option><option picurl=scroll2 value=550>33398 scroll (2)</option><option picurl=handmirror value=2092>antique hand mirror (1)</option><option picurl=fence value=145>barbed-wire fence (1)</option><option picurl=baseball value=181>baseball (2)</option><option picurl=butterfly value=615>chaos butterfly (3)</option><option picurl=napkin value=2956>cocktail napkin (3)</option><option picurl=exclam value=826>dark potion of ettin strength (2)</option><option picurl=disease value=452>disease (1)</option><option picurl=exclam value=824>effervescent potion of inebriety (3)</option><option picurl=cookbook value=1316>facsimile dictionary (1)</option><option picurl=exclam value=825>fizzy potion of detection (1)</option><option picurl=flaregun value=1705>flaregun (9)</option><option picurl=scpowder value=3020>handful of sawdust (5)</option><option picurl=inkwell value=1958>inkwell (2)</option><option picurl=string value=1159>mariachi G-string (1)</option><option picurl=vortex value=546>meat vortex (5)</option><option picurl=exclam value=827>murky potion of healing (1)</option><option picurl=ng value=624>NG (1)</option><option picurl=torpedo value=630>photoprotoneutron torpedo (3)</option><option picurl=hole value=613>plot hole (6)</option><option picurl=potion1 value=610>procrastination potion (3)</option><option picurl=canlid value=559>razor-sharp can lid (10)</option><option picurl=ppotion value=464>red pixel potion (1)</option><option picurl=biscuit value=563>sonar-in-a-biscuit (2)</option><option picurl=web value=27>spider web (1)</option><option picurl=dynamite value=2493>stick of dynamite (1)</option><option picurl=tatpaper value=1959>tattered scrap of paper (3)</option><option picurl=book4 value=2947>The Big Book of Pirate Insults (1)</option><option picurl=tube value=2966>Tom's of the Spanish Main Toothpaste (2)</option><option picurl=potion5 value=469>wussiness potion (3)</option></select><br><select name=whichitem2><option value=0>(select an item)</option><option  value=547>334 scroll (3)</option><option  value=549>30669 scroll (5)</option><option  value=550>33398 scroll (2)</option><option  value=2092>antique hand mirror (1)</option><option  value=145>barbed-wire fence (1)</option><option  value=181>baseball (2)</option><option  value=615>chaos butterfly (3)</option><option  value=2956>cocktail napkin (3)</option><option  value=826>dark potion of ettin strength (2)</option><option  value=452>disease (1)</option><option  value=824>effervescent potion of inebriety (3)</option><option  value=1316>facsimile dictionary (1)</option><option  value=825>fizzy potion of detection (1)</option><option  value=1705>flaregun (9)</option><option  value=3020>handful of sawdust (5)</option><option  value=1958>inkwell (2)</option><option  value=1159>mariachi G-string (1)</option><option  value=546>meat vortex (5)</option><option  value=827>murky potion of healing (1)</option><option  value=624>NG (1)</option><option  value=630>photoprotoneutron torpedo (3)</option><option  value=613>plot hole (6)</option><option  value=610>procrastination potion (3)</option><option  value=559>razor-sharp can lid (10)</option><option  value=464>red pixel potion (1)</option><option  value=563>sonar-in-a-biscuit (2)</option><option  value=27>spider web (1)</option><option  value=2493>stick of dynamite (1)</option><option  value=1959>tattered scrap of paper (3)</option><option  value=2947>The Big Book of Pirate Insults (1)</option><option  value=2966>Tom's of the Spanish Main Toothpaste (2)</option><option  value=469>wussiness potion (3)</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="1005" picurl="cudgel" >Lunging Thrust-Smack (8 Mojo Points)</option><option value="3004" picurl="entnoodles" >Entangling Noodles (3 Mojo Points)</option><option value="5021" picurl="hernia" >Suckerpunch (0 Mojo Points)</option></select> <input class=button type=submit onclick="return killforms(this);" value="Use Skill"></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><tr></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>
 

Veracity

Developer
Staff member
I'm merging this with the Spooky Death Orb report.

Edit: I just added the ability to load in an HTML file from a fight request and parse it as such and print the parse tree to the debug log. Here is what I get for the stab bat:

Code:
> test load sb.html

Read 9,433 bytes

> test fight

<td>
  <center>
    <table>
      <tbody>
        <tr>
          <td>
            <img id="monpic" src="http://images.kingdomofloathing.com/adventureimages/bathtub.gif" width="100" height="100">
          <td valign="center">
            You're fighting
            <span id="monname">
              a claw-foot bathtub
            <font size="2" color="gray">
              <br>
              HP: 40, Atk: 90, Def: 100
              <br>
              Drops: bottle of Monsieur Bubble (25), fancy bath salts (35)
    <br>
    <p>
      You grin and pick out a tune on your banjo.  The resultant sound waves deal 33 damage to your opponent.
      <b>
        <font color="blue">
          ZAP! KAPOW! BONK! BARF! ZOT! WHAM!
      <!--familiarmessage-->
    <center>
      <table>
        <tbody>
          <tr>
            <td align="center" valign="center">
              <img src="http://images.kingdomofloathing.com/itemimages/familiar10.gif" width="30" height="30">
            <td valign="center">
              Azmyth stabs you for 27 damage.
    <p>
    <table>
      <tbody>
        <tr>
          <td>
            It leaps into the air and tries to land on you, but you quickly flip it upside-down and it lands around you, instead.
    <br>
and here is what I get for the scary death orb:
Code:
> test load sdo.html

Read 40,712 bytes

> test fight

<td>
  <center>
    <table>
      <tbody>
        <tr>
          <td>
            <img id="monpic" src="/images/adventureimages/rgiant.gif" width="100" height="100">
          <td valign="center">
            You're fighting
            <span id="monname">
              a Raver Giant
            <font size="2" color="gray">
              <br>
              HP: 95, Atk: 139, Def: 139
              <br>
              Drops: Angry Farmer candy (30), giant needle (30), Mick's IcyVapoHotness Rub (30), rave whistle (5), discarded pacifier (bounty)
    <br>
    <p>
      Your movements acquire the jerky, staccato motion of a Lego-based YouTube video. Your opponent is momentarily confused, and flinches when you throw a punch that stops just short of connecting with their face. When they hesitantly open their eyes a moment later, you finish the movement, landing a blow worth 7 damage.
      <!--familiarmessage-->
    <center>
      <table>
        <tbody>
          <tr>
            <td align="center" valign="center">
              <img src="/images/itemimages/orb.gif" width="30" height="30">
            <td valign="center">
              Orbita drills into your skull and siphons out some of your blood, to the tune of 23 damage.
    <p>
      Your opponent struggles free of your entangling noodles.
    <p>
    <table>
      <tbody>
        <tr>
          <td>
            He swings a glowstick on a string at you, but misses.
    <br>
I see a "familiarmessage" HTML comment in both, but it looks like the actual message is at a higher level or something.
 
Last edited:
Top