Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- KoLmafia v20.3 r20014, Windows 10, Java 11.0.1
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Please note: do not post this log in the KoLmafia thread of KoL's
- Gameplay-Discussion forum. If you would like the KoLmafia dev team
- to look at it, please write a bug report at kolmafia.us. Include
- specific information about what you were doing when you made this
- and include this log as an attachment.
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Timestamp: Sun Apr 19 07:19:47 EDT 2020
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- -----From Browser-----
- GET /place.php?whichplace=bathole HTTP/1.1
- Host: 127.0.0.1:60080
- Connection: keep-alive
- Upgrade-Insecure-Requests: 1
- User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36
- Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
- Sec-Fetch-Site: same-origin
- Sec-Fetch-Mode: navigate
- Sec-Fetch-User: ?1
- Sec-Fetch-Dest: frame
- Referer: http://127.0.0.1:60080/charpane.php
- Accept-Encoding: gzip, deflate, br
- Accept-Language: en-US,en;q=0.9
- Cookie: AWSALB=ueGmlUM3cDVMnY9lkYmGW+GR9rFOsaCKJG8yHaN00lhEjDFjdNjoRLcv+YeQBD5O1bkjWYaNZDnAGBKkWfY7xFTiH/9+Rpnd+mrHZqJIJIbIHNruKI9HBXSo1cQJ
- dnt: 1
- ----------
- class net.sourceforge.kolmafia.request.RelayRequest
- Connecting to place.php...
- Requesting: https://www.kingdomofloathing.com/place.php?whichplace=bathole
- 3 request properties
- Field: Cookie = [PHPSESSID=djenlfsntd68p9llc6gbh1pe65; AWSALB=SAkzaPZbvxOINhCfTDHouU612tw8dv7qNW0M7ZJsR6xW9Apqk/IOQVU75pURdQerJSJxWnSFImlfgCv0U2Ap62vkakMevPKhAJTHi7BMzivcLpBhSe4waV1LEdE2]
- Field: User-Agent = [KoLmafia v20.3]
- Field: Accept-Encoding = [gzip]
- Retrieving server reply...
- Retrieved: https://www.kingdomofloathing.com/place.php?whichplace=bathole
- 13 header fields
- Field: Transfer-Encoding = [chunked]
- Field: null = [HTTP/1.1 200 OK]
- Field: Server = [nginx/1.8.1]
- Field: Connection = [keep-alive]
- Field: Pragma = [no-cache]
- Field: Date = [Sun, 19 Apr 2020 11:19:50 GMT]
- Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
- Field: Content-Encoding = [gzip]
- Field: Vary = [Accept-Encoding]
- Field: Set-Cookie = [AWSALBCORS=8CnmFMUpN2U5fWEDyMnSmvkvnVuGqZ9jO1jbD3bgKWoZ2INyae1CN2DzlxQCLlYhN7z+SmZbZhxmkACaoRil9CQjKTyQ4KA11L0y8pnQ6otw6bojNfMefGUTCfXi; Expires=Sun, 26 Apr 2020 11:19:49 GMT; Path=/; SameSite=None; Secure, AWSALB=8CnmFMUpN2U5fWEDyMnSmvkvnVuGqZ9jO1jbD3bgKWoZ2INyae1CN2DzlxQCLlYhN7z+SmZbZhxmkACaoRil9CQjKTyQ4KA11L0y8pnQ6otw6bojNfMefGUTCfXi; Expires=Sun, 26 Apr 2020 11:19:49 GMT; Path=/]
- Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
- Field: X-Powered-By = [PHP/5.3.29]
- Field: Content-Type = [text/html; charset=UTF-8]
- Retrieving server reply
- ResponseText has 4753 characters.
- <html><head>
- <script language=Javascript>
- <!--
- if (parent.frames.length == 0) location.href="game.php";
- //-->
- </script>
- <script language=Javascript src="https://s3.amazonaws.com/images.kingdomofloathing.com/scripts/keybinds.min.2.js"></script>
- <script language=Javascript src="https://s3.amazonaws.com/images.kingdomofloathing.com/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">
- function updateParseItem(iid, field, info) {
- var tbl = $('#ic'+iid);
- var data = parseItem(tbl);
- if (!data) return;
- data[field] = info;
- var out = [];
- for (i in data) {
- if (!data.hasOwnProperty(i)) continue;
- out.push(i+'='+data[i]);
- }
- tbl.attr('rel', out.join('&'));
- }
- function parseItem(tbl) {
- tbl = $(tbl);
- var rel = tbl.attr('rel');
- var data = {};
- if (!rel) return data;
- var parts = rel.split('&');
- for (i in parts) {
- if (!parts.hasOwnProperty(i)) continue;
- var kv = parts[i].split('=');
- tbl.data(kv[0], kv[1]);
- data[kv[0]] = kv[1];
- }
- return data;
- }
- </script><script language=Javascript src="https://s3.amazonaws.com/images.kingdomofloathing.com/scripts/jquery-1.3.1.min.js"></script>
- <script type="text/javascript" src="https://s3.amazonaws.com/images.kingdomofloathing.com/scripts/pop_query.20130705.js"></script>
- <script type="text/javascript"> function pop_ircm(clicked) { return false; } </script> <link rel="stylesheet" type="text/css" href="https://s3.amazonaws.com/images.kingdomofloathing.com/styles.20151006.css">
- <style type='text/css'>
- .faded {
- zoom: 1;
- filter: alpha(opacity=35);
- opacity: 0.35;
- -khtml-opacity: 0.35;
- -moz-opacity: 0.35;
- }
- </style>
- </head>
- <body>
- <centeR><table width=95% cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>The Bat Hole</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><div id=background style='position: relative; width:500px;height:553px' ><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/1x1trans.gif" width=500 height=553 border=0><div id=bathole_bg4 style=' z-index: -1; position: absolute; top: 0; left: 0; height: 553; width: 500;'><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/bathole/bathole_4.gif" width=500 height=553 border=0 alt="" title=""></div><div id=bathole_burrow style=' position: absolute; top: 250; left: 0; height: 150; width: 150;'><a href=adventure.php?snarfblat=32><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/1x1trans.gif" width=150 height=150 border=0 alt="Batrat and Ratbat Burrow (1)" title="Batrat and Ratbat Burrow (1)"></a></div><div id=bathole_chamber style=' position: absolute; top: 237; left: 357; height: 150; width: 150;'><a href=adventure.php?snarfblat=33><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/1x1trans.gif" width=150 height=150 border=0 alt="Beanbat Chamber (1)" title="Beanbat Chamber (1)"></a></div><div id=bathole_entryway style=' position: absolute; top: 100; left: 150; height: 100; width: 180;'><a href=adventure.php?snarfblat=30><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/1x1trans.gif" width=180 height=100 border=0 alt="Entryway (1)" title="Entryway (1)"></a></div><div id=bathole_exit style=' position: absolute; top: 1; left: 229; height: 90; width: 58;'><a href=place.php?whichplace=plains><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/1x1trans.gif" width=58 height=90 border=0 alt="Exit" title="Exit"></a></div><div id=bathole_junction style=' position: absolute; top: 250; left: 175; height: 150; width: 165;'><a href=adventure.php?snarfblat=31><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/1x1trans.gif" width=165 height=150 border=0 alt="Guano Junction (1)" title="Guano Junction (1)"></a></div><div id=bathole_lair style=' position: absolute; top: 428; left: 172; height: 120; width: 150;'><a href=adventure.php?snarfblat=34><img src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/1x1trans.gif" width=150 height=120 border=0 alt="The Boss Bat's Lair (1)" title="The Boss Bat's Lair (1)"></a></div></div><p><a href=place.php?whichplace=plains>Back to the Nearby Plains</a></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center></body></html>
- Processing results...
- -----To Browser-----
- HTTP/1.1 200 OK
- Server: nginx/1.8.1
- Date: Sun, 19 Apr 2020 11:19:50 GMT
- Vary: Accept-Encoding
- Set-Cookie: AWSALBCORS=8CnmFMUpN2U5fWEDyMnSmvkvnVuGqZ9jO1jbD3bgKWoZ2INyae1CN2DzlxQCLlYhN7z+SmZbZhxmkACaoRil9CQjKTyQ4KA11L0y8pnQ6otw6bojNfMefGUTCfXi; Expires=Sun, 26 Apr 2020 11:19:49 GMT; Path=/; SameSite=None; Secure
- Set-Cookie: AWSALB=8CnmFMUpN2U5fWEDyMnSmvkvnVuGqZ9jO1jbD3bgKWoZ2INyae1CN2DzlxQCLlYhN7z+SmZbZhxmkACaoRil9CQjKTyQ4KA11L0y8pnQ6otw6bojNfMefGUTCfXi; Expires=Sun, 26 Apr 2020 11:19:49 GMT; Path=/
- Expires: Thu, 19 Nov 1981 08:52:00 GMT
- X-Powered-By: PHP/5.3.29
- Content-Type: text/html; charset=UTF-8
- Content-Length: 4500
- Cache-Control: no-cache, must-revalidate
- Pragma: no-cache
- <html><head>
- <script language=Javascript>
- <!--
- if (parent.frames.length == -1) location.href="game.php";
- //-->
- </script>
- <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">
- function updateParseItem(iid, field, info) {
- var tbl = $('#ic'+iid);
- var data = parseItem(tbl);
- if (!data) return;
- data[field] = info;
- var out = [];
- for (i in data) {
- if (!data.hasOwnProperty(i)) continue;
- out.push(i+'='+data[i]);
- }
- tbl.attr('rel', out.join('&'));
- }
- function parseItem(tbl) {
- tbl = $(tbl);
- var rel = tbl.attr('rel');
- var data = {};
- if (!rel) return data;
- var parts = rel.split('&');
- for (i in parts) {
- if (!parts.hasOwnProperty(i)) continue;
- var kv = parts[i].split('=');
- tbl.data(kv[0], kv[1]);
- data[kv[0]] = kv[1];
- }
- return data;
- }
- </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"> function pop_ircm(clicked) { return false; } </script> <link rel="stylesheet" type="text/css" href="/images/styles.20151006.css">
- <style type='text/css'>
- .faded {
- zoom: 1;
- filter: alpha(opacity=35);
- opacity: 0.35;
- -khtml-opacity: 0.35;
- -moz-opacity: 0.35;
- }
- </style>
- <script language="Javascript" src="/basics.js"></script><link rel="stylesheet" href="/basics.1.css" /></head>
- <body>
- <centeR><table width=95% cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>The Bat Hole</b></td><td width=15 valign=bottom align=left bgcolor=blue><a style="color: white; font-weight: normal; font-size: small; text-decoration: underline" href="javascript: attachSafetyText(); void(0);">?</a></tr><tr><td colspan=2 style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><div id=background style='position: relative; width:500px;height:553px' ><img src="/images/otherimages/1x1trans.gif" width=500 height=553 border=0><div id=bathole_bg4 style=' z-index: -1; position: absolute; top: 0; left: 0; height: 553; width: 500;'><img src="/images/otherimages/bathole/bathole_4.gif" width=500 height=553 border=0 alt="" title=""></div><div id=bathole_burrow style=' position: absolute; top: 250; left: 0; height: 150; width: 150;'><a href=adventure.php?snarfblat=32><img src="/images/otherimages/1x1trans.gif" width=150 height=150 border=0 alt="Batrat and Ratbat Burrow (1)" title="Batrat and Ratbat Burrow (1)"></a></div><div id=bathole_chamber style=' position: absolute; top: 237; left: 357; height: 150; width: 150;'><a href=adventure.php?snarfblat=33><img src="/images/otherimages/1x1trans.gif" width=150 height=150 border=0 alt="Beanbat Chamber (1)" title="Beanbat Chamber (1)"></a></div><div id=bathole_entryway style=' position: absolute; top: 100; left: 150; height: 100; width: 180;'><a href=adventure.php?snarfblat=30><img src="/images/otherimages/1x1trans.gif" width=180 height=100 border=0 alt="Entryway (1)" title="Entryway (1)"></a></div><div id=bathole_exit style=' position: absolute; top: 1; left: 229; height: 90; width: 58;'><a href=place.php?whichplace=plains><img src="/images/otherimages/1x1trans.gif" width=58 height=90 border=0 alt="Exit" title="Exit"></a></div><div id=bathole_junction style=' position: absolute; top: 250; left: 175; height: 150; width: 165;'><a href=adventure.php?snarfblat=31><img src="/images/otherimages/1x1trans.gif" width=165 height=150 border=0 alt="Guano Junction (1)" title="Guano Junction (1)"></a></div><div id=bathole_lair style=' position: absolute; top: 428; left: 172; height: 120; width: 150;'><a href=adventure.php?snarfblat=34><img src="/images/otherimages/1x1trans.gif" width=150 height=120 border=0 alt="The Boss Bat's Lair (1)" title="The Boss Bat's Lair (1)"></a></div></div><p><a href=place.php?whichplace=plains>Back to the Nearby Plains</a></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center></body><script src="/onfocus.1.js"></script></html>
- ----------
- -----From Browser-----
- GET /basics.js HTTP/1.1
- Host: 127.0.0.1:60080
- Connection: keep-alive
- User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36
- Accept: */*
- Sec-Fetch-Site: same-origin
- Sec-Fetch-Mode: no-cors
- Sec-Fetch-Dest: script
- Referer: http://127.0.0.1:60080/place.php?whichplace=bathole
- Accept-Encoding: gzip, deflate, br
- Accept-Language: en-US,en;q=0.9
- Cookie: AWSALB=8CnmFMUpN2U5fWEDyMnSmvkvnVuGqZ9jO1jbD3bgKWoZ2INyae1CN2DzlxQCLlYhN7z+SmZbZhxmkACaoRil9CQjKTyQ4KA11L0y8pnQ6otw6bojNfMefGUTCfXi
- dnt: 1
- ----------
- -----To Browser-----
- HTTP/1.1 200 OK
- Date: Sun Apr 19 07:19:51 EDT 2020
- Server: KoLmafia v20.3
- Content-Type: text/javascript
- Connection: close
- function getObject( id )
- { return getObjectInPane( top.mainpane.document, id );
- }
- function getObjectInPane( pane, id )
- {
- if ( document.getElementById )
- return pane.getElementById( id );
- if ( document.all )
- return pane.all[ id ];
- return false;
- }
- function getHttpObject()
- {
- var httpObject = false;
- if ( window.ActiveXObject )
- {
- try
- {
- httpObject = new ActiveXObject( "Msxml2.XMLHTTP" );
- }
- catch ( e )
- {
- httpObject = new ActiveXObject( "Microsoft.XMLHTTP" );
- }
- }
- else
- {
- httpObject = new XMLHttpRequest();
- }
- return httpObject;
- }
- function updateDisplay( display, responseText )
- {
- if ( responseText.length < 2 )
- return;
- display.innerHTML += responseText;
- if ( display.innerHTML.length > 30000 )
- {
- var lineIndex = display.innerHTML.indexOf( "<br", 20000 );
- if ( lineIndex != -1 )
- lineIndex = display.innerHTML.indexOf( ">", lineIndex );
- if ( lineIndex != -1 )
- {
- var length = display.innerHTML.length;
- display.innerHTML = display.innerHTML.substring( lineIndex + 1, length );
- }
- else
- display.innerHTML = "";
- }
- display.scrollTop = display.scrollHeight;
- if ( !isRefreshing && responseText.indexOf("<!-- REFRESH -->") != -1 )
- top.charpane.location.reload();
- }
- function inlineLoad( location, fields, id )
- {
- var httpObject = getHttpObject();
- if ( !httpObject )
- return true;
- httpObject.onreadystatechange = function()
- {
- if ( httpObject.readyState != 4 )
- return;
- var prefix = httpObject.responseText.substring(
- 0, httpObject.responseText.indexOf( "<table" ) );
- var text = httpObject.responseText.substring(
- httpObject.responseText.indexOf( "<table" ),
- httpObject.responseText.lastIndexOf( "</table>" ) + 8 );
- var text = prefix + "<center>" + text + "</center>";
- // <tinyskills.js>
- var div = top.mainpane.document.getElementById('effdiv');
- if (!div)
- {
- var container = top.mainpane.document.createElement('DIV');
- container.id = 'effdiv';
- container.innerHTML = text;
- var buttons = top.mainpane.document.getElementById('mafiabuttons');
- if ( buttons )
- {
- top.mainpane.document.body.insertBefore(container, buttons.nextSibling);
- }
- else
- {
- top.mainpane.document.body.insertBefore(container, top.mainpane.document.body.firstChild);
- }
- div = container;
- }
- else
- {
- div.innerHTML = text;
- }
- div.style.display = "block";
- top.mainpane.scrollTo(0, 0);
- // </tinyskills.js>
- if ( httpObject.responseText.indexOf( "charpane" ) != -1 )
- top.charpane.location.reload();
- if ( httpObject.responseText.indexOf( "topmenu" ) != -1 )
- top.menupane.location.reload();
- };
- httpObject.open( "GET", "/" + location + "?" + fields, true );
- httpObject.send( null );
- return true;
- }
- function singleUse( location, fields )
- {
- return inlineLoad( location, fields, false );
- }
- function multiUse( location, id, quantity )
- {
- var qfield = "quantity";
- if ( location == "skills.php" )
- qfield = "itemquantity";
- var qvalue = quantity ? quantity : getObject( "quantity" + id ).value;
- var num = parseInt(prompt('How many?', qvalue));
- if (num < 1 || isNaN(num))
- {
- return false;
- }
- return inlineLoad( location, "pwd=23f4403f9ef487f4700169df011a75f3&action=useitem&whichitem=" + id + "&" + qfield + "=" + num, id );
- }
- function showObject( id )
- {
- getObject(id).style.display = "inline";
- return true;
- }
- function hideObject( id )
- {
- getObject(id).style.display = "none";
- return true;
- }
- function getAdventureId( link )
- {
- if ( link.indexOf( "adventure.php" ) != -1 )
- return link.substring( link.lastIndexOf( "?" ) + 1 );
- var name = link.substring( link.indexOf( "document." ) + 9, link.indexOf( ".submit" ) );
- var forms = document.getElementsByTagName( "form" );
- for ( var i = 0; i < forms.length; ++i )
- if ( forms[i].name == name )
- for ( var j = 0; j < forms[i].length; ++j )
- if ( forms[i][j].name == "adv" || forms[i][j].name == "snarfblat" )
- return "snarfblat=" + forms[i][j].value;
- return "";
- }
- function updateSafetyText()
- {
- var safety = getObjectInPane( top.chatpane.document, "safety" );
- if ( !safety )
- return true;
- if ( safety.style.display == "none" )
- return true;
- var httpObject = getHttpObject();
- if ( !httpObject )
- return true;
- httpObject.onreadystatechange = function()
- {
- if ( httpObject.readyState != 4 )
- return;
- if ( httpObject.responseText.length < 2 )
- return;
- safety.innerHTML = httpObject.responseText;
- }
- httpObject.open( "GET", "/KoLmafia/updateLocation?pwd=23f4403f9ef487f4700169df011a75f3", true );
- httpObject.send( null );
- return true;
- }
- var lastAdventureId;
- function showSafetyText( location )
- {
- var safety = getObjectInPane( top.chatpane.document, "safety" );
- var adventureId = getAdventureId( location );
- if ( adventureId == "" )
- return true;
- if ( !safety )
- {
- safety = top.chatpane.document.createElement( "div" );
- safety.id = "safety";
- safety.closed = true;
- safety.active = true;
- safety.style.textAlign = "left";
- top.chatpane.document.body.appendChild( safety );
- safety.style.position = "absolute";
- safety.style.top = 0;
- safety.style.left = 0;
- safety.style.padding = "8px";
- }
- if ( !safety.active || adventureId == lastAdventureId )
- {
- lastAdventureId = "";
- document.location.href = "adventure.php?" + adventureId;
- return true;
- }
- lastAdventureId = adventureId;
- var httpObject = getHttpObject();
- if ( !httpObject )
- return true;
- httpObject.onreadystatechange = function()
- {
- if ( httpObject.readyState != 4 )
- return;
- if ( httpObject.responseText.length < 2 )
- return;
- if ( safety.closed )
- {
- var nodes = top.chatpane.document.body.childNodes;
- for ( var i = 0; i < nodes.length; ++i )
- {
- if ( nodes[i].style && nodes[i].id != "safety" )
- {
- nodes[i].unsafety = nodes[i].style.display;
- nodes[i].style.display = "none";
- }
- }
- safety.style.display = "inline";
- safety.closed = false;
- safety.active = true;
- }
- safety.innerHTML = httpObject.responseText;
- }
- httpObject.open( "GET", "/KoLmafia/lookupLocation?" + adventureId + "&pwd=23f4403f9ef487f4700169df011a75f3", true );
- httpObject.send( null );
- return true;
- }
- function attachSafetyText()
- {
- var safety = getObjectInPane( top.chatpane.document, "safety" );
- if ( safety )
- safety.active = true;
- var links = document.getElementsByTagName( "a" );
- for ( var i = 0; i < links.length; ++i )
- {
- if ( links[i].href.indexOf( "showSafetyText" ) != -1 )
- return true;
- if ( links[i].href.indexOf( "adventure.php" ) != -1 )
- {
- links[i].data = links[i].href;
- links[i].href = "javascript: showSafetyText( '" + links[i].href + "' ); void(0);";
- links[i].style.cursor = "help";
- }
- else if ( links[i].href.indexOf( "submit" ) != -1 )
- {
- links[i].data = links[i].href;
- links[i].href = "javascript: showSafetyText( '" + links[i].href + "' ); void(0);";
- links[i].style.cursor = "help";
- }
- }
- return true;
- }
- function discardKarma()
- {
- var have = getObject('haveKarma').innerHTML;
- var banked = getObject('bankedKarma').innerHTML;
- if (Number(have) < 1)
- return true;
- if (have != null && banked != null) {
- getObject('haveKarma').innerHTML = Number(have) - 1;
- getObject('bankedKarma').innerHTML = Number(banked) + 11;
- }
- return true;
- }
- // ====================================================================
- // URLEncode and URLDecode functions
- //
- // Copyright Albion Research Ltd. 2002
- // httpObject://www.albionresearch.com/
- //
- // You may copy these functions providing that
- // ( a ) you leave this copyright notice intact, and
- // ( b ) if you use these functions on a publicly accessible
- // web site you include a credit somewhere on the web site
- // with a link back to http://www.albionresarch.com/
- //
- // If you find or fix any bugs, please let us know at albionresearch.com
- //
- // SpecialThanks to Neelesh Thakur for being the first to
- // report a bug in URLDecode() - now fixed 2003-02-19.
- // ====================================================================
- function URLEncode( x )
- {
- // The Javascript escape and unescape functions do not correspond
- // with what browsers actually do...
- var SAFECHARS = "0123456789" + // Numeric
- "ABCDEFGHIJKLMNOPQRSTUVWXYZ" + // Alphabetic
- "abcdefghijklmnopqrstuvwxyz" +
- "-_.!~*'()"; // RFC2396 Mark characters
- var HEX = "0123456789ABCDEF";
- var plaintext = x;
- var encoded = "";
- for ( var i = 0; i < plaintext.length; i++ ) {
- var ch = plaintext.charAt( i );
- if ( ch=="+" ) {
- encoded+="%2B";
- } else if ( ch == " " ) {
- encoded += "+"; // x-www-urlencoded, rather than %20
- } else if ( SAFECHARS.indexOf( ch ) != -1 ) {
- encoded += ch;
- } else {
- var charCode = ch.charCodeAt( 0 );
- if ( charCode > 255 ) {
- alert( "Unicode Character '" + ch + "' cannot be encoded using standard URL encoding.\n" +
- "( URL encoding only supports 8-bit characters. )\n" +
- "A space ( + ) will be substituted." );
- encoded += "+";
- } else {
- encoded += "%";
- encoded += HEX.charAt( ( charCode >> 4 ) & 0xF );
- encoded += HEX.charAt( charCode & 0xF );
- }
- }
- }
- return encoded;
- };
- function URLDecode( x )
- {
- // Replace + with ' '
- // Replace %xx with equivalent character
- // Put [ERROR] in output if %xx is invalid.
- var HEXCHARS = "0123456789ABCDEFabcdef";
- var encoded = x;
- var plaintext = "";
- var i = 0;
- while ( i < encoded.length ) {
- var ch = encoded.charAt( i );
- if ( ch == "+" ) {
- plaintext += " ";
- i++;
- } else if ( ch == "%" ) {
- if ( i < ( encoded.length-2 )
- && HEXCHARS.indexOf( encoded.charAt( i+1 ) ) != -1
- && HEXCHARS.indexOf( encoded.charAt( i+2 ) ) != -1 ) {
- plaintext += unescape( encoded.substr( i,3 ) );
- i += 3;
- } else {
- alert( 'Bad escape combination near ...' + encoded.substr( i ) );
- plaintext += "%[ERROR]";
- i++;
- }
- } else {
- plaintext += ch;
- i++;
- }
- } // while
- return plaintext;
- };
- ----------
- -----From Browser-----
- GET /images/otherimages/bathole/bathole_4.gif HTTP/1.1
- Host: 127.0.0.1:60080
- Connection: keep-alive
- User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36
- Accept: image/webp,image/apng,image/*,*/*;q=0.8
- Sec-Fetch-Site: same-origin
- Sec-Fetch-Mode: no-cors
- Sec-Fetch-Dest: image
- Referer: http://127.0.0.1:60080/place.php?whichplace=bathole
- Accept-Encoding: gzip, deflate, br
- Accept-Language: en-US,en;q=0.9
- Cookie: AWSALB=8CnmFMUpN2U5fWEDyMnSmvkvnVuGqZ9jO1jbD3bgKWoZ2INyae1CN2DzlxQCLlYhN7z+SmZbZhxmkACaoRil9CQjKTyQ4KA11L0y8pnQ6otw6bojNfMefGUTCfXi
- dnt: 1
- ----------
- -----To Browser-----
- HTTP/1.1 200 OK
- Date: Sun Apr 19 07:19:51 EDT 2020
- Server: KoLmafia v20.3
- Content-Type: image/gif
- Last-Modified: Mon, 08 Nov 2010 21:42:55 GMT
- Connection: close
- ----------
- -----From Browser-----
- GET /adventure.php?snarfblat=34 HTTP/1.1
- Host: 127.0.0.1:60080
- Connection: keep-alive
- Upgrade-Insecure-Requests: 1
- User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36
- Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
- Sec-Fetch-Site: same-origin
- Sec-Fetch-Mode: navigate
- Sec-Fetch-User: ?1
- Sec-Fetch-Dest: frame
- Referer: http://127.0.0.1:60080/place.php?whichplace=bathole
- Accept-Encoding: gzip, deflate, br
- Accept-Language: en-US,en;q=0.9
- Cookie: AWSALB=8CnmFMUpN2U5fWEDyMnSmvkvnVuGqZ9jO1jbD3bgKWoZ2INyae1CN2DzlxQCLlYhN7z+SmZbZhxmkACaoRil9CQjKTyQ4KA11L0y8pnQ6otw6bojNfMefGUTCfXi
- dnt: 1
- ----------
- class net.sourceforge.kolmafia.request.RelayRequest
- Connecting to adventure.php...
- Requesting: https://www.kingdomofloathing.com/adventure.php?snarfblat=34
- 3 request properties
- Field: Cookie = [PHPSESSID=djenlfsntd68p9llc6gbh1pe65; AWSALB=8CnmFMUpN2U5fWEDyMnSmvkvnVuGqZ9jO1jbD3bgKWoZ2INyae1CN2DzlxQCLlYhN7z+SmZbZhxmkACaoRil9CQjKTyQ4KA11L0y8pnQ6otw6bojNfMefGUTCfXi]
- Field: User-Agent = [KoLmafia v20.3]
- Field: Accept-Encoding = [gzip]
- Retrieving server reply...
- Retrieved: https://www.kingdomofloathing.com/adventure.php?snarfblat=34
- 12 header fields
- Field: Transfer-Encoding = [chunked]
- Field: null = [HTTP/1.1 302 Moved Temporarily]
- Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
- Field: Server = [nginx/1.8.1]
- Field: Connection = [keep-alive]
- Field: Set-Cookie = [AWSALBCORS=uV9EVOxwYPDzdNYkLqggQtBV8ueXdMAUPFPZPKmoJMbaROG4VNfG7YidAxGH0yYbubNTnCIbBixyBZiw8/7Hk2hsycJaBYQYDLuhlk1v5a1l+GBQ3/eMRJFF+232; Expires=Sun, 26 Apr 2020 11:19:51 GMT; Path=/; SameSite=None; Secure, AWSALB=uV9EVOxwYPDzdNYkLqggQtBV8ueXdMAUPFPZPKmoJMbaROG4VNfG7YidAxGH0yYbubNTnCIbBixyBZiw8/7Hk2hsycJaBYQYDLuhlk1v5a1l+GBQ3/eMRJFF+232; Expires=Sun, 26 Apr 2020 11:19:51 GMT; Path=/]
- Field: Pragma = [no-cache]
- Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
- Field: Date = [Sun, 19 Apr 2020 11:19:51 GMT]
- Field: Location = [fight.php?ireallymeanit=1587295191]
- Field: X-Powered-By = [PHP/5.3.29]
- Field: Content-Type = [text/html]
- -----To Browser-----
- HTTP/1.1 302 Found
- Date: Sun Apr 19 07:19:53 EDT 2020
- Server: KoLmafia v20.3
- Location: fight.php?ireallymeanit=1587295191
- Connection: close
- ----------
- -----From Browser-----
- GET /fight.php?ireallymeanit=1587295191 HTTP/1.1
- Host: 127.0.0.1:60080
- Connection: keep-alive
- Upgrade-Insecure-Requests: 1
- User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36
- Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
- Sec-Fetch-Site: same-origin
- Sec-Fetch-Mode: navigate
- Sec-Fetch-User: ?1
- Sec-Fetch-Dest: frame
- Referer: http://127.0.0.1:60080/place.php?whichplace=bathole
- Accept-Encoding: gzip, deflate, br
- Accept-Language: en-US,en;q=0.9
- Cookie: AWSALB=8CnmFMUpN2U5fWEDyMnSmvkvnVuGqZ9jO1jbD3bgKWoZ2INyae1CN2DzlxQCLlYhN7z+SmZbZhxmkACaoRil9CQjKTyQ4KA11L0y8pnQ6otw6bojNfMefGUTCfXi
- dnt: 1
- ----------
- Starting relay script: fight.ash
- class net.sourceforge.kolmafia.request.RelayRequest
- Connecting to fight.php...
- Requesting: https://www.kingdomofloathing.com/fight.php?ireallymeanit=1587295191
- 3 request properties
- Field: Cookie = [PHPSESSID=djenlfsntd68p9llc6gbh1pe65; AWSALB=uV9EVOxwYPDzdNYkLqggQtBV8ueXdMAUPFPZPKmoJMbaROG4VNfG7YidAxGH0yYbubNTnCIbBixyBZiw8/7Hk2hsycJaBYQYDLuhlk1v5a1l+GBQ3/eMRJFF+232]
- Field: User-Agent = [KoLmafia v20.3]
- Field: Accept-Encoding = [gzip]
- Retrieving server reply...
- Retrieved: https://www.kingdomofloathing.com/fight.php?ireallymeanit=1587295191
- 13 header fields
- Field: Transfer-Encoding = [chunked]
- Field: null = [HTTP/1.1 200 OK]
- Field: Server = [nginx/1.8.1]
- Field: Connection = [keep-alive]
- Field: Pragma = [no-cache]
- Field: Date = [Sun, 19 Apr 2020 11:19:51 GMT]
- Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
- Field: Content-Encoding = [gzip]
- Field: Vary = [Accept-Encoding]
- Field: Set-Cookie = [AWSALBCORS=qiQa4i0ros9Yjz2p9eUj2XowTjFioA3dF57f2aq+T/K2YGluiw6xUh6Ow0yOkZodbEB0JefAUgiksQ8gFxEL6FH9duVllu5yNW3u0BKBzvmtMVPRI9GEvP0lwiIK; Expires=Sun, 26 Apr 2020 11:19:51 GMT; Path=/; SameSite=None; Secure, AWSALB=qiQa4i0ros9Yjz2p9eUj2XowTjFioA3dF57f2aq+T/K2YGluiw6xUh6Ow0yOkZodbEB0JefAUgiksQ8gFxEL6FH9duVllu5yNW3u0BKBzvmtMVPRI9GEvP0lwiIK; Expires=Sun, 26 Apr 2020 11:19:51 GMT; Path=/]
- Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
- Field: X-Powered-By = [PHP/5.3.29]
- Field: Content-Type = [text/html; charset=UTF-8]
- Retrieving server reply
- ResponseText has 8093 characters.
- <html><head>
- <script language=Javascript>
- <!--
- if (parent.frames.length == 0) location.href="game.php";
- //-->
- </script>
- <script language=Javascript src="https://s3.amazonaws.com/images.kingdomofloathing.com/scripts/keybinds.min.2.js"></script>
- <script language=Javascript src="https://s3.amazonaws.com/images.kingdomofloathing.com/scripts/window.20111231.js"></script>
- <script language=Javascript src="https://s3.amazonaws.com/images.kingdomofloathing.com/scripts/jquery-1.3.1.min.js"></script>
- <script language="javascript" src="https://s3.amazonaws.com/images.kingdomofloathing.com/scripts/core.js"></script><script language="javascript" src="https://s3.amazonaws.com/images.kingdomofloathing.com/scripts/ocrs.20200128.js"></script><link rel="stylesheet" href="https://s3.amazonaws.com/images.kingdomofloathing.com/scripts/ocrs.css" /><script src="https://s3.amazonaws.com/images.kingdomofloathing.com/scripts/fight.js"></script>
- <script>
- var onturn = 1;
- </script> <link rel="stylesheet" type="text/css" href="https://s3.amazonaws.com/images.kingdomofloathing.com/styles.20151006.css">
- <style type='text/css'>
- .faded {
- zoom: 1;
- filter: alpha(opacity=35);
- opacity: 0.35;
- -khtml-opacity: 0.35;
- -moz-opacity: 0.35;
- }
- </style>
- </head>
- <body>
- <center><table width=95% cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>Combat!</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><table><tr><td><div id=monsterpic style='position: relative;'> <img id='monpic' crossorigin="anonymous" src="/iii/adventureimages/beefybat.gif?a=1587295191" width=100 height=100><img crossorigin="anonymous" src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/powerpixels/eyes10.png" style="position: absolute; top: 20px; left: 30px" id='peyes' /></div></td><td valign=center>You're fighting <span id='monname'>a beefy bodyguard bat</span></td><td width=30></td><td><table><tr><td width=30><img src=https://s3.amazonaws.com/images.kingdomofloathing.com/itemimages/nicesword.gif width=30 height=30 alt="Enemy's Attack Power" title="Enemy's Attack Power"></td><td width=50 valign=center align=left><b><font size=+2>35</font></b></td><td><img src=https://s3.amazonaws.com/images.kingdomofloathing.com/itemimages/beastflavor.gif alt="This monster is a Beast" title="This monster is a Beast"></td></tr><tr><td width=30><img src=https://s3.amazonaws.com/images.kingdomofloathing.com/itemimages/whiteshield.gif width=30 height=30 alt="Enemy's Defense" title="Enemy's Defense"></td><td width=50 valign=center align=left><b><font size=+2>32</font></b></td><td><img src=https://s3.amazonaws.com/images.kingdomofloathing.com/itemimages/circle.gif width=30 height=30 alt="This monster has no particular elemental alignment." title="This monster has no particular elemental alignment."></td></tr><tr><td width=30><img src=https://s3.amazonaws.com/images.kingdomofloathing.com/itemimages/hp.gif width=30 height=30 alt="Enemy's Hit Points" title="Enemy's Hit Points"></td><td width=50 valign=center align=left><b><font size=+2>34</font></b></td><td><img src=https://s3.amazonaws.com/images.kingdomofloathing.com/itemimages/watch.gif alt="Initiative +50%" title="Initiative +50%"></td></tr></table></td></tr></table><br><script type="text/javascript">var monsterstats = {"hp":"34","def":"32","off":"35"};</script></center><blockquote>This is one of the beefiest bats in the burrow, and that's why the Boss Bat chose him as a personal bodyguard. He looks eager to buffet, batter, bedevil, and even berate you, leaving you thoroughly bedraggled. Beware!</blockquote><center><p><p>You get the jump on him.<p><script>var ocrs = ["powerPixel"];</script><p><center><table><a name="end"></a><tr><td><center><Table cellpadding=10 cellspacing=0><Tr><td></td><td valign=top><form name=mariosk7331 action=fight.php?method=post><input type=hidden name=action value=skill><input type=hidden name=whichskill value=7331><input type=submit class=button onclick="return killforms(this);" value="Fireball Toss"></form><form name=mariosk7333 action=fight.php?method=post><input type=hidden name=action value=skill><input type=hidden name=whichskill value=7333><input type=submit class=button onclick="return killforms(this);" value="Fireball Barrage (2PP)"></form></td><td valign=top><form name=mariosk7334 action=fight.php?method=post><input type=hidden name=action value=skill><input type=hidden name=whichskill value=7334><input type=submit class=button onclick="return killforms(this);" value="Jump Attack"></form><form name=mariosk7336 action=fight.php?method=post><input type=hidden name=action value=skill><input type=hidden name=whichskill value=7336><input type=submit class=button onclick="return killforms(this);" value="Multi-Bounce (2PP)"></form></td></tr></table></center></td></tr><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=bubblebath value=1965>bottle of Monsieur Bubble (3)</option><option picurl=centeggs value=6414>clutch of dodecapede eggs (1)</option><option picurl=napkin value=2956>cocktail napkin (1)</option><option picurl=mario_mushroom2 value=10456>deluxe mushroom (1)</option><option picurl=cookbook value=536>dictionary (1)</option><option picurl=disease value=452>disease (2)</option><option picurl=camera value=7266>disposable instant camera (1)</option><option picurl=electronicskit value=9952>electronics kit (5)</option><option picurl=potion4 value=2091>fancy bath salts (4)</option><option picurl=gascan value=9947>gas can (3)</option><option picurl=glarkcable value=7246>glark cable (1)</option><option picurl=hairwad value=1922>gob of wet hair (2)</option><option picurl=sandgrain value=10259>grain of sand (13)</option><option picurl=inkwell value=1958>inkwell (4)</option><option picurl=deadbootlet value=9968>jam band bootleg (3)</option><option picurl=firecrack value=747>Knob Goblin firecracker (2)</option><option picurl=mario_mushroom1 value=10455>mushroom (1)</option><option picurl=pencilstub value=6418>pencil stub (1)</option><option picurl=canlid value=559>razor-sharp can lid (1)</option><option picurl=tatpaper value=1959>tattered scrap of paper (3)</option><option picurl=tinydress value=9963>very small red dress (4)</option></select> <input class=button type=submit onclick="return killforms(this);" value="Use Item"></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="7336" picurl="mario_multibounce" selected>Multi-Bounce (2 PP)</option><option value="7334" picurl="mario_jump" >Jump Attack (0 Mana Points)</option><option value="7333" picurl="mario_barrage" >Fireball Barrage (2 PP)</option><option value="7331" picurl="mario_fireball" >Fireball Toss (0 Mana Points)</option><option value="7327" picurl="shrinkenemy" >CHEAT CODE: Shrink Enemy (5 of today's remaining 95%)</option><option value="7326" picurl="replaceenemy" >CHEAT CODE: Replace Enemy (10 of today's remaining 95%)</option><option value="7320" picurl="retrospecs" >Detect Weakness (0 Mana Points)</option><option value="7310" picurl="bat" >Become a Bat (10 time(s) remaining today))</option><option value="7309" picurl="puff" >Become a Cloud of Mist (10 time(s) remaining today))</option><option value="7308" picurl="wolfmask" >Become a Wolf (10 time(s) remaining today))</option><option value="7297" picurl="songboombox" >Sing Along (0 Mana 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></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center></body></html>
- [124] The Boss Bat's Lair
- Encounter: beefy bodyguard bat
- Round 0: Arbos wins initiative!
- <td>
- <center>
- <table>
- <tbody>
- <tr>
- <td>
- <div id="monsterpic" style="position: relative;">
- <img id="monpic" crossorigin="anonymous" src="/iii/adventureimages/beefybat.gif?a=1587295191" width="100" height="100">
- <img crossorigin="anonymous" src="https://s3.amazonaws.com/images.kingdomofloathing.com/otherimages/powerpixels/eyes10.png" style="position: absolute; top: 20px; left: 30px" id="peyes">
- <td valign="center">
- You're fighting
- <span id="monname">
- a beefy bodyguard bat
- <td width="30">
- <td>
- <table>
- <tbody>
- <tr>
- <td width="30">
- <img src="https://s3.amazonaws.com/images.kingdomofloathing.com/itemimages/nicesword.gif" width="30" height="30" alt="Enemy's Attack Power" title="Enemy's Attack Power">
- <td width="50" valign="center" align="left">
- <b>
- <font size="+2">
- 35
- <td>
- <img src="https://s3.amazonaws.com/images.kingdomofloathing.com/itemimages/beastflavor.gif" alt="This monster is a Beast" title="This monster is a Beast">
- <tr>
- <td width="30">
- <img src="https://s3.amazonaws.com/images.kingdomofloathing.com/itemimages/whiteshield.gif" width="30" height="30" alt="Enemy's Defense" title="Enemy's Defense">
- <td width="50" valign="center" align="left">
- <b>
- <font size="+2">
- 32
- <td>
- <img src="https://s3.amazonaws.com/images.kingdomofloathing.com/itemimages/circle.gif" width="30" height="30" alt="This monster has no particular elemental alignment." title="This monster has no particular elemental alignment.">
- <tr>
- <td width="30">
- <img src="https://s3.amazonaws.com/images.kingdomofloathing.com/itemimages/hp.gif" width="30" height="30" alt="Enemy's Hit Points" title="Enemy's Hit Points">
- <td width="50" valign="center" align="left">
- <b>
- <font size="+2">
- 34
- <td>
- <img src="https://s3.amazonaws.com/images.kingdomofloathing.com/itemimages/watch.gif" alt="Initiative +50%" title="Initiative +50%">
- <br>
- <blockquote>
- This is one of the beefiest bats in the burrow, and that's why the Boss Bat chose him as a personal bodyguard. He looks eager to buffet, batter, bedevil, and even berate you, leaving you thoroughly bedraggled. Beware!
- <center>
- <p>
- <p>
- You get the jump on him.
- <p>
- <p>
- <center>
- <a name="end">
- <table>
- <tbody>
- <tr>
- <td>
- <center>
- <table cellpadding="10" cellspacing="0">
- <tbody>
- <tr>
- <td>
- <td valign="top">
- <form name="mariosk7331" action="fight.php?method=post">
- <input type="hidden" name="action" value="skill">
- <input type="hidden" name="whichskill" value="7331">
- <input type="submit" class="button" onclick="return killforms(this);" value="Fireball Toss">
- <form name="mariosk7333" action="fight.php?method=post">
- <input type="hidden" name="action" value="skill">
- <input type="hidden" name="whichskill" value="7333">
- <input type="submit" class="button" onclick="return killforms(this);" value="Fireball Barrage (2PP)">
- <td valign="top">
- <form name="mariosk7334" action="fight.php?method=post">
- <input type="hidden" name="action" value="skill">
- <input type="hidden" name="whichskill" value="7334">
- <input type="submit" class="button" onclick="return killforms(this);" value="Jump Attack">
- <form name="mariosk7336" action="fight.php?method=post">
- <input type="hidden" name="action" value="skill">
- <input type="hidden" name="whichskill" value="7336">
- <input type="submit" class="button" onclick="return killforms(this);" value="Multi-Bounce (2PP)">
- <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 picurl="bubblebath" value="1965">
- bottle of Monsieur Bubble (3)
- <option picurl="centeggs" value="6414">
- clutch of dodecapede eggs (1)
- <option picurl="napkin" value="2956">
- cocktail napkin (1)
- <option picurl="mario_mushroom2" value="10456">
- deluxe mushroom (1)
- <option picurl="cookbook" value="536">
- dictionary (1)
- <option picurl="disease" value="452">
- disease (2)
- <option picurl="camera" value="7266">
- disposable instant camera (1)
- <option picurl="electronicskit" value="9952">
- electronics kit (5)
- <option picurl="potion4" value="2091">
- fancy bath salts (4)
- <option picurl="gascan" value="9947">
- gas can (3)
- <option picurl="glarkcable" value="7246">
- glark cable (1)
- <option picurl="hairwad" value="1922">
- gob of wet hair (2)
- <option picurl="sandgrain" value="10259">
- grain of sand (13)
- <option picurl="inkwell" value="1958">
- inkwell (4)
- <option picurl="deadbootlet" value="9968">
- jam band bootleg (3)
- <option picurl="firecrack" value="747">
- Knob Goblin firecracker (2)
- <option picurl="mario_mushroom1" value="10455">
- mushroom (1)
- <option picurl="pencilstub" value="6418">
- pencil stub (1)
- <option picurl="canlid" value="559">
- razor-sharp can lid (1)
- <option picurl="tatpaper" value="1959">
- tattered scrap of paper (3)
- <option picurl="tinydress" value="9963">
- very small red dress (4)
- <input class="button" type="submit" onclick="return killforms(this);" value="Use Item">
- <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 value="7336" picurl="mario_multibounce" selected="selected">
- Multi-Bounce (2 PP)
- <option value="7334" picurl="mario_jump">
- Jump Attack (0 Mana Points)
- <option value="7333" picurl="mario_barrage">
- Fireball Barrage (2 PP)
- <option value="7331" picurl="mario_fireball">
- Fireball Toss (0 Mana Points)
- <option value="7327" picurl="shrinkenemy">
- CHEAT CODE: Shrink Enemy (5 of today's remaining 95%)
- <option value="7326" picurl="replaceenemy">
- CHEAT CODE: Replace Enemy (10 of today's remaining 95%)
- <option value="7320" picurl="retrospecs">
- Detect Weakness (0 Mana Points)
- <option value="7310" picurl="bat">
- Become a Bat (10 time(s) remaining today))
- <option value="7309" picurl="puff">
- Become a Cloud of Mist (10 time(s) remaining today))
- <option value="7308" picurl="wolfmask">
- Become a Wolf (10 time(s) remaining today))
- <option value="7297" picurl="songboombox">
- Sing Along (0 Mana Points)
- <input class="button" type="submit" onclick="return killforms(this);" value="Use Skill">
- <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">
- Finished relay script: fight.ash (11049 bytes)
- -----To Browser-----
- HTTP/1.1 200 OK
- Date: Sun Apr 19 07:19:53 EDT 2020
- Server: KoLmafia v20.3
- Content-Type: text/html; charset=UTF-8
- Cache-Control: no-cache, must-revalidate
- Pragma: no-cache
- Connection: close
- <html><head>
- <script language=Javascript>
- <!--
- if (parent.frames.length == -1) location.href="game.php";
- //-->
- </script>
- <script language=Javascript src="/images/scripts/keybinds.min.2.js"></script>
- <script language=Javascript src="/images/scripts/window.20111231.js"></script>
- <script language=Javascript src="/images/scripts/jquery-1.3.1.min.js"></script>
- <script language="javascript" src="/images/scripts/core.js"></script><script language="javascript" src="/images/scripts/ocrs.20200128.js"></script><link rel="stylesheet" href="/images/scripts/ocrs.css" /><script src="/images/scripts/fight.js"></script>
- <script>
- var onturn = 1;
- </script> <link rel="stylesheet" type="text/css" href="/images/styles.20151006.css">
- <style type='text/css'>
- .faded {
- zoom: 1;
- filter: alpha(opacity=35);
- opacity: 0.35;
- -khtml-opacity: 0.35;
- -moz-opacity: 0.35;
- }
- </style>
- <script src="/images/jquery-1.9.1.js"></script><script src="/stationarybuttons.1.js"></script><link rel="stylesheet" type="text/css" href="/stationarybuttons.2.css"><script src="/hotkeys.js"></script><script language="Javascript" src="/basics.js"></script><link rel="stylesheet" href="/basics.1.css" /></head>
- <body onkeyup="handleCombatHotkey(event,false);" onkeydown="handleCombatHotkey(event,true);" ><div id="page"><div id="mafiabuttons"><center><table width="95%"><tr><td align=left><div id="btnwrap"><input type="button" onClick="document.location.href='fight.php?action=custom';void(0);" value="script" id="defaultButton"> <input type="button" onClick="document.location.href='fight.php?action=skill&whichskill=7336';void(0);" value="multi-bounce"> <input type="button" onClick="document.location.href='fight.php?action=skill&whichskill=7334';void(0);" value="jump attack"> <input type="button" onClick="document.location.href='fight.php?action=skill&whichskill=7333';void(0);" value="fireball barrage"> <input type="button" onClick="document.location.href='fight.php?action=skill&whichskill=7331';void(0);" value="fireball toss"> <input type="button" onClick="document.location.href='fight.php?action=skill&whichskill=7327';void(0);" value="cheat code: shrink enemy"> <input type="button" onClick="document.location.href='fight.php?action=skill&whichskill=7326';void(0);" value="cheat code: replace enemy"> <input type="button" onClick="document.location.href='fight.php?action=skill&whichskill=7320';void(0);" value="detect weakness"> <input type="button" onClick="document.location.href='fight.php?action=skill&whichskill=7310';void(0);" value="become a bat"> <input type="button" onClick="document.location.href='fight.php?action=skill&whichskill=7309';void(0);" value="become a cloud of mist"> <input type="button" onClick="document.location.href='fight.php?action=skill&whichskill=7308';void(0);" value="become a wolf"> <input type="button" onClick="document.location.href='fight.php?action=skill&whichskill=7297';void(0);" value="sing along"> </div></td><td align=right valign=top><select id="hotkeyViewer" onchange="updateCombatHotkey();"><option>- update hotkeys -</option><option>0: </option><option>1: </option><option>2: </option><option>3: </option><option>4: </option><option>5: </option><option>6: </option><option>7: </option><option>8: </option><option>9: </option></select></td></tr></table></center></div><div class='content' id='content_'><div id='effdiv' style='display: none;'></div><div>
- <center><table width=95% cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>Combat: Round 1!</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><table><tr><td><div id=monsterpic style='position: relative;'> <img id='monpic' crossorigin="anonymous" src="/images/adventureimages/beefybat.gif?a=1587295191" width=100 height=100><img crossorigin="anonymous" src="/images/otherimages/powerpixels/eyes10.png" style="position: absolute; top: 20px; left: 30px" id='peyes' /></div></td><td valign=center>You're fighting <span id='monname'>a beefy bodyguard bat</span><font size=2 color=gray><br />HP: 34, Atk: 35, Def: 32, Type: beast<br />Drops: beefy pill (0)<br />Meat: 370-555</font></td><td width=30></td><td><table><tr><td width=30><img src=/images/itemimages/nicesword.gif width=30 height=30 alt="Enemy's Attack Power" title="Enemy's Attack Power"></td><td width=50 valign=center align=left><b><font size=+2>35</font></b></td><td><img src=/images/itemimages/beastflavor.gif alt="This monster is a Beast" title="This monster is a Beast"></td></tr><tr><td width=30><img src=/images/itemimages/whiteshield.gif width=30 height=30 alt="Enemy's Defense" title="Enemy's Defense"></td><td width=50 valign=center align=left><b><font size=+2>32</font></b></td><td><img src=/images/itemimages/circle.gif width=30 height=30 alt="This monster has no particular elemental alignment." title="This monster has no particular elemental alignment."></td></tr><tr><td width=30><img src=/images/itemimages/hp.gif width=30 height=30 alt="Enemy's Hit Points" title="Enemy's Hit Points"></td><td width=50 valign=center align=left><b><font size=+2>34</font></b></td><td><img src=/images/itemimages/watch.gif alt="Initiative +50%" title="Initiative +50%"></td></tr></table></td></tr></table><br><script type="text/javascript">var monsterstats = {"hp":"34","def":"32","off":"35"};</script></center><blockquote>This is one of the beefiest bats in the burrow, and that's why the Boss Bat chose him as a personal bodyguard. He looks eager to buffet, batter, bedevil, and even berate you, leaving you thoroughly bedraggled. Beware!</blockquote><center><p><p>You get the jump on him.<p><script>var ocrs = ["powerPixel"];</script><p><center><table><a name="end"></a><tr><td><center><Table cellpadding=10 cellspacing=0><Tr><td></td><td valign=top><form name=mariosk7331 action=fight.php?method=post><input type=hidden name=action value=skill><input type=hidden name=whichskill value=7331><input type=submit class=button onclick="return killforms(this);" value="Fireball Toss"></form><form name=mariosk7333 action=fight.php?method=post><input type=hidden name=action value=skill><input type=hidden name=whichskill value=7333><input type=submit class=button onclick="return killforms(this);" value="Fireball Barrage (2PP)"></form></td><td valign=top><form name=mariosk7334 action=fight.php?method=post><input type=hidden name=action value=skill><input type=hidden name=whichskill value=7334><input type=submit class=button onclick="return killforms(this);" value="Jump Attack"></form><form name=mariosk7336 action=fight.php?method=post><input type=hidden name=action value=skill><input type=hidden name=whichskill value=7336><input type=submit class=button onclick="return killforms(this);" value="Multi-Bounce (2PP)"></form></td></tr></table></center></td></tr><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=bubblebath value=1965>bottle of Monsieur Bubble (3)</option><option picurl=centeggs value=6414>clutch of dodecapede eggs (1)</option><option picurl=napkin value=2956>cocktail napkin (1)</option><option picurl=mario_mushroom2 value=10456>deluxe mushroom (1)</option><option picurl=cookbook value=536>dictionary (1)</option><option picurl=disease value=452>disease (2)</option><option picurl=camera value=7266>disposable instant camera (1)</option><option picurl=electronicskit value=9952>electronics kit (5)</option><option picurl=potion4 value=2091>fancy bath salts (4)</option><option picurl=gascan value=9947>gas can (3)</option><option picurl=glarkcable value=7246>glark cable (1)</option><option picurl=hairwad value=1922>gob of wet hair (2)</option><option picurl=sandgrain value=10259>grain of sand (13)</option><option picurl=inkwell value=1958>inkwell (4)</option><option picurl=deadbootlet value=9968>jam band bootleg (3)</option><option picurl=firecrack value=747>Knob Goblin firecracker (2)</option><option picurl=mario_mushroom1 value=10455>mushroom (1)</option><option picurl=pencilstub value=6418>pencil stub (1)</option><option picurl=canlid value=559>razor-sharp can lid (1)</option><option picurl=tatpaper value=1959>tattered scrap of paper (3)</option><option picurl=tinydress value=9963>very small red dress (4)</option></select> <input class=button type=submit onclick="return killforms(this);" value="Use Item"></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="7336" picurl="mario_multibounce" selected>Multi-Bounce (2 PP)</option><option value="7334" picurl="mario_jump" >Jump Attack (0 Mana Points)</option><option value="7333" picurl="mario_barrage" >Fireball Barrage (2 PP)</option><option value="7331" picurl="mario_fireball" >Fireball Toss (0 Mana Points)</option><option value="7327" picurl="shrinkenemy" >CHEAT CODE: Shrink Enemy (5 of today's remaining 95%)</option><option value="7326" picurl="replaceenemy" >CHEAT CODE: Replace Enemy (10 of today's remaining 95%)</option><option value="7320" picurl="retrospecs" >Detect Weakness (0 Mana Points)</option><option value="7310" picurl="bat" >Become a Bat (10 time(s) remaining today))</option><option value="7309" picurl="puff" >Become a Cloud of Mist (10 time(s) remaining today))</option><option value="7308" picurl="wolfmask" >Become a Wolf (10 time(s) remaining today))</option><option value="7297" picurl="songboombox" >Sing Along (0 Mana 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"></form><p><form name=enablebatman action=fight.php method=post><input type=hidden name=enabletoggle value=on><input class=button type=submit value='Enable BatMan RE'></td></tr></form></table></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center></div></div></div></body><script src="/onfocus.1.js"></script><script src="/combatfilter.1.js"></script></html>
- ----------
- -----From Browser-----
- GET /hotkeys.js HTTP/1.1
- Host: 127.0.0.1:60080
- Connection: keep-alive
- User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36
- Accept: */*
- Sec-Fetch-Site: same-origin
- Sec-Fetch-Mode: no-cors
- Sec-Fetch-Dest: script
- Referer: http://127.0.0.1:60080/fight.php?ireallymeanit=1587295191
- Accept-Encoding: gzip, deflate, br
- Accept-Language: en-US,en;q=0.9
- Cookie: AWSALB=8CnmFMUpN2U5fWEDyMnSmvkvnVuGqZ9jO1jbD3bgKWoZ2INyae1CN2DzlxQCLlYhN7z+SmZbZhxmkACaoRil9CQjKTyQ4KA11L0y8pnQ6otw6bojNfMefGUTCfXi
- dnt: 1
- ----------
- -----To Browser-----
- HTTP/1.1 200 OK
- Date: Sun Apr 19 07:19:53 EDT 2020
- Server: KoLmafia v20.3
- Content-Type: text/javascript
- Connection: close
- var shiftKey = false;
- var ctrlKey = false;
- var altKey = false;
- var metaKey = false;
- function getNumericKey( keyCode )
- {
- if ( keyCode >= 48 && keyCode <= 57 )
- return keyCode - 48;
- if ( keyCode >= 96 && keyCode <= 105 )
- return keyCode - 96;
- if ( keyCode == 192 )
- return 11;
- return -1;
- }
- function handleCombatHotkey( e, isDown )
- {
- if ( inputsActive )
- return false;
- var keyCode = window.event ? e.keyCode : e.which;
- if ( e.metaKey )
- metaKey = isDown;
- if ( isDown && (shiftKey || ctrlKey || altKey || metaKey) )
- return false;
- // Detect release of the different modifier keys
- // so we know whether or not the person has pressed
- // something in addition to the numeric key.
- if ( !isDown )
- {
- shiftKey = (keyCode == 16);
- ctrlKey = (keyCode == 17);
- altKey = (keyCode == 18);
- return false;
- }
- // Otherwise, if the person has pressed the shift,
- // control, or alt key, update your current state.
- if ( keyCode == 16 )
- shiftKey = true;
- if ( keyCode == 17 )
- ctrlKey = true;
- if ( keyCode == 18 )
- altKey = true;
- // Finally, make sure this is a valid hotkey before
- // attempting to process it as one.
- var numericKey = getNumericKey( keyCode );
- if ( numericKey == -1 )
- return false;
- var button = document.getElementById( "defaultButton" );
- var viewer = document.getElementById( "hotkeyViewer" );
- var command = viewer.options[numericKey + 1].innerHTML;
- var commandIndex = command.indexOf( ":" ) + 2;
- command = commandIndex + 2 >= command.length ? "" : command.substring( commandIndex, command.length );
- if ( button.value == "auto" )
- {
- return false;
- }
- if ( command.length == 0 )
- {
- if ( numericKey == 0 )
- button.onclick();
- return true;
- }
- if ( executeCommand( command ) )
- return true;
- if ( button.value == "again" )
- {
- button.onclick();
- return true;
- }
- document.location.href = "fight.php?hotkey=" + numericKey;
- return true;
- }
- function executeCommand( command )
- {
- if ( command.indexOf( "attack" ) == 0 || command.indexOf( "skill" ) == 0 || command.indexOf( "item" ) == 0 || command.indexOf( "custom" ) == 0 || command.indexOf( "consult" ) == 0 )
- {
- return false;
- }
- top.charpane.document.location.href = "/KoLmafia/sideCommand?cmd=" +
- URLEncode( command ) + "&pwd=23f4403f9ef487f4700169df011a75f3";
- return true;
- }
- function updateCombatHotkey()
- {
- var viewer = document.getElementById( "hotkeyViewer" );
- var hotkey = (viewer.selectedIndex - 1);
- var hotkeyAction = prompt( "New command for " + hotkey, "" );
- if ( hotkeyAction === false )
- return true;
- var httpObject = getHttpObject();
- if ( !httpObject )
- return true;
- httpObject.open( "GET", "/KoLmafia/submitCommand?cmd=set+combatHotkey" + hotkey + "%3D" +
- URLEncode( hotkeyAction ) + "&pwd=23f4403f9ef487f4700169df011a75f3", true );
- httpObject.send( "" );
- viewer[ hotkey + 1 ].innerHTML = hotkey + ": " + hotkeyAction;
- return true;
- }
- ----------
- -----From Browser-----
- GET /basics.js HTTP/1.1
- Host: 127.0.0.1:60080
- Connection: keep-alive
- User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36
- Accept: */*
- Sec-Fetch-Site: same-origin
- Sec-Fetch-Mode: no-cors
- Sec-Fetch-Dest: script
- Referer: http://127.0.0.1:60080/fight.php?ireallymeanit=1587295191
- Accept-Encoding: gzip, deflate, br
- Accept-Language: en-US,en;q=0.9
- Cookie: AWSALB=8CnmFMUpN2U5fWEDyMnSmvkvnVuGqZ9jO1jbD3bgKWoZ2INyae1CN2DzlxQCLlYhN7z+SmZbZhxmkACaoRil9CQjKTyQ4KA11L0y8pnQ6otw6bojNfMefGUTCfXi
- dnt: 1
- ----------
- -----To Browser-----
- HTTP/1.1 200 OK
- Date: Sun Apr 19 07:19:53 EDT 2020
- Server: KoLmafia v20.3
- Content-Type: text/javascript
- Connection: close
- function getObject( id )
- { return getObjectInPane( top.mainpane.document, id );
- }
- function getObjectInPane( pane, id )
- {
- if ( document.getElementById )
- return pane.getElementById( id );
- if ( document.all )
- return pane.all[ id ];
- return false;
- }
- function getHttpObject()
- {
- var httpObject = false;
- if ( window.ActiveXObject )
- {
- try
- {
- httpObject = new ActiveXObject( "Msxml2.XMLHTTP" );
- }
- catch ( e )
- {
- httpObject = new ActiveXObject( "Microsoft.XMLHTTP" );
- }
- }
- else
- {
- httpObject = new XMLHttpRequest();
- }
- return httpObject;
- }
- function updateDisplay( display, responseText )
- {
- if ( responseText.length < 2 )
- return;
- display.innerHTML += responseText;
- if ( display.innerHTML.length > 30000 )
- {
- var lineIndex = display.innerHTML.indexOf( "<br", 20000 );
- if ( lineIndex != -1 )
- lineIndex = display.innerHTML.indexOf( ">", lineIndex );
- if ( lineIndex != -1 )
- {
- var length = display.innerHTML.length;
- display.innerHTML = display.innerHTML.substring( lineIndex + 1, length );
- }
- else
- display.innerHTML = "";
- }
- display.scrollTop = display.scrollHeight;
- if ( !isRefreshing && responseText.indexOf("<!-- REFRESH -->") != -1 )
- top.charpane.location.reload();
- }
- function inlineLoad( location, fields, id )
- {
- var httpObject = getHttpObject();
- if ( !httpObject )
- return true;
- httpObject.onreadystatechange = function()
- {
- if ( httpObject.readyState != 4 )
- return;
- var prefix = httpObject.responseText.substring(
- 0, httpObject.responseText.indexOf( "<table" ) );
- var text = httpObject.responseText.substring(
- httpObject.responseText.indexOf( "<table" ),
- httpObject.responseText.lastIndexOf( "</table>" ) + 8 );
- var text = prefix + "<center>" + text + "</center>";
- // <tinyskills.js>
- var div = top.mainpane.document.getElementById('effdiv');
- if (!div)
- {
- var container = top.mainpane.document.createElement('DIV');
- container.id = 'effdiv';
- container.innerHTML = text;
- var buttons = top.mainpane.document.getElementById('mafiabuttons');
- if ( buttons )
- {
- top.mainpane.document.body.insertBefore(container, buttons.nextSibling);
- }
- else
- {
- top.mainpane.document.body.insertBefore(container, top.mainpane.document.body.firstChild);
- }
- div = container;
- }
- else
- {
- div.innerHTML = text;
- }
- div.style.display = "block";
- top.mainpane.scrollTo(0, 0);
- // </tinyskills.js>
- if ( httpObject.responseText.indexOf( "charpane" ) != -1 )
- top.charpane.location.reload();
- if ( httpObject.responseText.indexOf( "topmenu" ) != -1 )
- top.menupane.location.reload();
- };
- httpObject.open( "GET", "/" + location + "?" + fields, true );
- httpObject.send( null );
- return true;
- }
- function singleUse( location, fields )
- {
- return inlineLoad( location, fields, false );
- }
- function multiUse( location, id, quantity )
- {
- var qfield = "quantity";
- if ( location == "skills.php" )
- qfield = "itemquantity";
- var qvalue = quantity ? quantity : getObject( "quantity" + id ).value;
- var num = parseInt(prompt('How many?', qvalue));
- if (num < 1 || isNaN(num))
- {
- return false;
- }
- return inlineLoad( location, "pwd=23f4403f9ef487f4700169df011a75f3&action=useitem&whichitem=" + id + "&" + qfield + "=" + num, id );
- }
- function showObject( id )
- {
- getObject(id).style.display = "inline";
- return true;
- }
- function hideObject( id )
- {
- getObject(id).style.display = "none";
- return true;
- }
- function getAdventureId( link )
- {
- if ( link.indexOf( "adventure.php" ) != -1 )
- return link.substring( link.lastIndexOf( "?" ) + 1 );
- var name = link.substring( link.indexOf( "document." ) + 9, link.indexOf( ".submit" ) );
- var forms = document.getElementsByTagName( "form" );
- for ( var i = 0; i < forms.length; ++i )
- if ( forms[i].name == name )
- for ( var j = 0; j < forms[i].length; ++j )
- if ( forms[i][j].name == "adv" || forms[i][j].name == "snarfblat" )
- return "snarfblat=" + forms[i][j].value;
- return "";
- }
- function updateSafetyText()
- {
- var safety = getObjectInPane( top.chatpane.document, "safety" );
- if ( !safety )
- return true;
- if ( safety.style.display == "none" )
- return true;
- var httpObject = getHttpObject();
- if ( !httpObject )
- return true;
- httpObject.onreadystatechange = function()
- {
- if ( httpObject.readyState != 4 )
- return;
- if ( httpObject.responseText.length < 2 )
- return;
- safety.innerHTML = httpObject.responseText;
- }
- httpObject.open( "GET", "/KoLmafia/updateLocation?pwd=23f4403f9ef487f4700169df011a75f3", true );
- httpObject.send( null );
- return true;
- }
- var lastAdventureId;
- function showSafetyText( location )
- {
- var safety = getObjectInPane( top.chatpane.document, "safety" );
- var adventureId = getAdventureId( location );
- if ( adventureId == "" )
- return true;
- if ( !safety )
- {
- safety = top.chatpane.document.createElement( "div" );
- safety.id = "safety";
- safety.closed = true;
- safety.active = true;
- safety.style.textAlign = "left";
- top.chatpane.document.body.appendChild( safety );
- safety.style.position = "absolute";
- safety.style.top = 0;
- safety.style.left = 0;
- safety.style.padding = "8px";
- }
- if ( !safety.active || adventureId == lastAdventureId )
- {
- lastAdventureId = "";
- document.location.href = "adventure.php?" + adventureId;
- return true;
- }
- lastAdventureId = adventureId;
- var httpObject = getHttpObject();
- if ( !httpObject )
- return true;
- httpObject.onreadystatechange = function()
- {
- if ( httpObject.readyState != 4 )
- return;
- if ( httpObject.responseText.length < 2 )
- return;
- if ( safety.closed )
- {
- var nodes = top.chatpane.document.body.childNodes;
- for ( var i = 0; i < nodes.length; ++i )
- {
- if ( nodes[i].style && nodes[i].id != "safety" )
- {
- nodes[i].unsafety = nodes[i].style.display;
- nodes[i].style.display = "none";
- }
- }
- safety.style.display = "inline";
- safety.closed = false;
- safety.active = true;
- }
- safety.innerHTML = httpObject.responseText;
- }
- httpObject.open( "GET", "/KoLmafia/lookupLocation?" + adventureId + "&pwd=23f4403f9ef487f4700169df011a75f3", true );
- httpObject.send( null );
- return true;
- }
- function attachSafetyText()
- {
- var safety = getObjectInPane( top.chatpane.document, "safety" );
- if ( safety )
- safety.active = true;
- var links = document.getElementsByTagName( "a" );
- for ( var i = 0; i < links.length; ++i )
- {
- if ( links[i].href.indexOf( "showSafetyText" ) != -1 )
- return true;
- if ( links[i].href.indexOf( "adventure.php" ) != -1 )
- {
- links[i].data = links[i].href;
- links[i].href = "javascript: showSafetyText( '" + links[i].href + "' ); void(0);";
- links[i].style.cursor = "help";
- }
- else if ( links[i].href.indexOf( "submit" ) != -1 )
- {
- links[i].data = links[i].href;
- links[i].href = "javascript: showSafetyText( '" + links[i].href + "' ); void(0);";
- links[i].style.cursor = "help";
- }
- }
- return true;
- }
- function discardKarma()
- {
- var have = getObject('haveKarma').innerHTML;
- var banked = getObject('bankedKarma').innerHTML;
- if (Number(have) < 1)
- return true;
- if (have != null && banked != null) {
- getObject('haveKarma').innerHTML = Number(have) - 1;
- getObject('bankedKarma').innerHTML = Number(banked) + 11;
- }
- return true;
- }
- // ====================================================================
- // URLEncode and URLDecode functions
- //
- // Copyright Albion Research Ltd. 2002
- // httpObject://www.albionresearch.com/
- //
- // You may copy these functions providing that
- // ( a ) you leave this copyright notice intact, and
- // ( b ) if you use these functions on a publicly accessible
- // web site you include a credit somewhere on the web site
- // with a link back to http://www.albionresarch.com/
- //
- // If you find or fix any bugs, please let us know at albionresearch.com
- //
- // SpecialThanks to Neelesh Thakur for being the first to
- // report a bug in URLDecode() - now fixed 2003-02-19.
- // ====================================================================
- function URLEncode( x )
- {
- // The Javascript escape and unescape functions do not correspond
- // with what browsers actually do...
- var SAFECHARS = "0123456789" + // Numeric
- "ABCDEFGHIJKLMNOPQRSTUVWXYZ" + // Alphabetic
- "abcdefghijklmnopqrstuvwxyz" +
- "-_.!~*'()"; // RFC2396 Mark characters
- var HEX = "0123456789ABCDEF";
- var plaintext = x;
- var encoded = "";
- for ( var i = 0; i < plaintext.length; i++ ) {
- var ch = plaintext.charAt( i );
- if ( ch=="+" ) {
- encoded+="%2B";
- } else if ( ch == " " ) {
- encoded += "+"; // x-www-urlencoded, rather than %20
- } else if ( SAFECHARS.indexOf( ch ) != -1 ) {
- encoded += ch;
- } else {
- var charCode = ch.charCodeAt( 0 );
- if ( charCode > 255 ) {
- alert( "Unicode Character '" + ch + "' cannot be encoded using standard URL encoding.\n" +
- "( URL encoding only supports 8-bit characters. )\n" +
- "A space ( + ) will be substituted." );
- encoded += "+";
- } else {
- encoded += "%";
- encoded += HEX.charAt( ( charCode >> 4 ) & 0xF );
- encoded += HEX.charAt( charCode & 0xF );
- }
- }
- }
- return encoded;
- };
- function URLDecode( x )
- {
- // Replace + with ' '
- // Replace %xx with equivalent character
- // Put [ERROR] in output if %xx is invalid.
- var HEXCHARS = "0123456789ABCDEFabcdef";
- var encoded = x;
- var plaintext = "";
- var i = 0;
- while ( i < encoded.length ) {
- var ch = encoded.charAt( i );
- if ( ch == "+" ) {
- plaintext += " ";
- i++;
- } else if ( ch == "%" ) {
- if ( i < ( encoded.length-2 )
- && HEXCHARS.indexOf( encoded.charAt( i+1 ) ) != -1
- && HEXCHARS.indexOf( encoded.charAt( i+2 ) ) != -1 ) {
- plaintext += unescape( encoded.substr( i,3 ) );
- i += 3;
- } else {
- alert( 'Bad escape combination near ...' + encoded.substr( i ) );
- plaintext += "%[ERROR]";
- i++;
- }
- } else {
- plaintext += ch;
- i++;
- }
- } // while
- return plaintext;
- };
- ----------
- -----From Browser-----
- GET /images/adventureimages/beefybat.gif?a=1587295191 HTTP/1.1
- Host: 127.0.0.1:60080
- Connection: keep-alive
- Origin: http://127.0.0.1:60080
- User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36
- Accept: image/webp,image/apng,image/*,*/*;q=0.8
- Sec-Fetch-Site: same-origin
- Sec-Fetch-Mode: cors
- Sec-Fetch-Dest: image
- Referer: http://127.0.0.1:60080/fight.php?ireallymeanit=1587295191
- Accept-Encoding: gzip, deflate, br
- Accept-Language: en-US,en;q=0.9
- Cookie: AWSALB=8CnmFMUpN2U5fWEDyMnSmvkvnVuGqZ9jO1jbD3bgKWoZ2INyae1CN2DzlxQCLlYhN7z+SmZbZhxmkACaoRil9CQjKTyQ4KA11L0y8pnQ6otw6bojNfMefGUTCfXi
- dnt: 1
- ----------
- -----To Browser-----
- HTTP/1.1 200 OK
- Date: Sun Apr 19 07:19:53 EDT 2020
- Server: KoLmafia v20.3
- Content-Type: image/gif
- Last-Modified: Thu, 21 Jun 2007 23:15:33 GMT
- Connection: close
- ----------
- -----From Browser-----
- GET /iii/otherimages/powerpixels/p1.png HTTP/1.1
- Host: 127.0.0.1:60080
- Connection: keep-alive
- User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36
- Accept: image/webp,image/apng,image/*,*/*;q=0.8
- Sec-Fetch-Site: same-origin
- Sec-Fetch-Mode: no-cors
- Sec-Fetch-Dest: image
- Referer: http://127.0.0.1:60080/fight.php?ireallymeanit=1587295191
- Accept-Encoding: gzip, deflate, br
- Accept-Language: en-US,en;q=0.9
- Cookie: AWSALB=8CnmFMUpN2U5fWEDyMnSmvkvnVuGqZ9jO1jbD3bgKWoZ2INyae1CN2DzlxQCLlYhN7z+SmZbZhxmkACaoRil9CQjKTyQ4KA11L0y8pnQ6otw6bojNfMefGUTCfXi
- dnt: 1
- ----------
- Requesting: http://www.kingdomofloathing.com/iii/otherimages/powerpixels/p1.png
- 0 request properties
- -----From Browser-----
- GET /iii/otherimages/powerpixels/p2.png HTTP/1.1
- Host: 127.0.0.1:60080
- Connection: keep-alive
- User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36
- Accept: image/webp,image/apng,image/*,*/*;q=0.8
- Sec-Fetch-Site: same-origin
- Sec-Fetch-Mode: no-cors
- Sec-Fetch-Dest: image
- Referer: http://127.0.0.1:60080/fight.php?ireallymeanit=1587295191
- Accept-Encoding: gzip, deflate, br
- Accept-Language: en-US,en;q=0.9
- Cookie: AWSALB=8CnmFMUpN2U5fWEDyMnSmvkvnVuGqZ9jO1jbD3bgKWoZ2INyae1CN2DzlxQCLlYhN7z+SmZbZhxmkACaoRil9CQjKTyQ4KA11L0y8pnQ6otw6bojNfMefGUTCfXi
- dnt: 1
- ----------
- Requesting: http://www.kingdomofloathing.com/iii/otherimages/powerpixels/p2.png
- 0 request properties
- -----From Browser-----
- GET /iii/otherimages/powerpixels/p3.png HTTP/1.1
- Host: 127.0.0.1:60080
- Connection: keep-alive
- User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36
- Accept: image/webp,image/apng,image/*,*/*;q=0.8
- Sec-Fetch-Site: same-origin
- Sec-Fetch-Mode: no-cors
- Sec-Fetch-Dest: image
- Referer: http://127.0.0.1:60080/fight.php?ireallymeanit=1587295191
- Accept-Encoding: gzip, deflate, br
- Accept-Language: en-US,en;q=0.9
- Cookie: AWSALB=8CnmFMUpN2U5fWEDyMnSmvkvnVuGqZ9jO1jbD3bgKWoZ2INyae1CN2DzlxQCLlYhN7z+SmZbZhxmkACaoRil9CQjKTyQ4KA11L0y8pnQ6otw6bojNfMefGUTCfXi
- dnt: 1
- ----------
- Requesting: http://www.kingdomofloathing.com/iii/otherimages/powerpixels/p3.png
- 0 request properties
- -----From Browser-----
- GET /iii/otherimages/powerpixels/p4.png HTTP/1.1
- Host: 127.0.0.1:60080
- Connection: keep-alive
- User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36
- Accept: image/webp,image/apng,image/*,*/*;q=0.8
- Sec-Fetch-Site: same-origin
- Sec-Fetch-Mode: no-cors
- Sec-Fetch-Dest: image
- Referer: http://127.0.0.1:60080/fight.php?ireallymeanit=1587295191
- Accept-Encoding: gzip, deflate, br
- Accept-Language: en-US,en;q=0.9
- Cookie: AWSALB=8CnmFMUpN2U5fWEDyMnSmvkvnVuGqZ9jO1jbD3bgKWoZ2INyae1CN2DzlxQCLlYhN7z+SmZbZhxmkACaoRil9CQjKTyQ4KA11L0y8pnQ6otw6bojNfMefGUTCfXi
- dnt: 1
- ----------
- Requesting: http://www.kingdomofloathing.com/iii/otherimages/powerpixels/p4.png
- 0 request properties
- -----From Browser-----
- GET /iii/otherimages/powerpixels/p5.png HTTP/1.1
- Host: 127.0.0.1:60080
- Connection: keep-alive
- User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36
- Accept: image/webp,image/apng,image/*,*/*;q=0.8
- Sec-Fetch-Site: same-origin
- Sec-Fetch-Mode: no-cors
- Sec-Fetch-Dest: image
- Referer: http://127.0.0.1:60080/fight.php?ireallymeanit=1587295191
- Accept-Encoding: gzip, deflate, br
- Accept-Language: en-US,en;q=0.9
- Cookie: AWSALB=8CnmFMUpN2U5fWEDyMnSmvkvnVuGqZ9jO1jbD3bgKWoZ2INyae1CN2DzlxQCLlYhN7z+SmZbZhxmkACaoRil9CQjKTyQ4KA11L0y8pnQ6otw6bojNfMefGUTCfXi
- dnt: 1
- ----------
- Requesting: http://www.kingdomofloathing.com/iii/otherimages/powerpixels/p5.png
- 0 request properties
- -----From Browser-----
- GET /iii/otherimages/powerpixels/p6.png HTTP/1.1
- Host: 127.0.0.1:60080
- Connection: keep-alive
- User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36
- Accept: image/webp,image/apng,image/*,*/*;q=0.8
- Sec-Fetch-Site: same-origin
- Sec-Fetch-Mode: no-cors
- Sec-Fetch-Dest: image
- Referer: http://127.0.0.1:60080/fight.php?ireallymeanit=1587295191
- Accept-Encoding: gzip, deflate, br
- Accept-Language: en-US,en;q=0.9
- Cookie: AWSALB=8CnmFMUpN2U5fWEDyMnSmvkvnVuGqZ9jO1jbD3bgKWoZ2INyae1CN2DzlxQCLlYhN7z+SmZbZhxmkACaoRil9CQjKTyQ4KA11L0y8pnQ6otw6bojNfMefGUTCfXi
- dnt: 1
- ----------
- Requesting: http://www.kingdomofloathing.com/iii/otherimages/powerpixels/p6.png
- 0 request properties
- Retrieved: http://www.kingdomofloathing.com/iii/otherimages/powerpixels/p2.png
- 15 header fields
- Field: null = [HTTP/1.1 200 OK]
- Field: Server = [nginx/1.8.1]
- Field: Access-Control-Allow-Origin = [*]
- Field: Access-Control-Allow-Methods = [GET, POST, OPTIONS]
- Field: Connection = [keep-alive]
- Field: Last-Modified = [Mon, 20 Jan 2020 20:21:15 GMT]
- Field: Access-Control-Allow-Headers = [DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type]
- Field: Date = [Sun, 19 Apr 2020 11:19:52 GMT]
- Field: Accept-Ranges = [bytes]
- Field: X-Cache-Status = [MISS]
- Field: ETag = ["8e6d7dd0c047a10409f91256dc549285"]
- Field: Set-Cookie = [AWSALBCORS=QpcFwq1rXBM593a1Ozm8I4spxAD+B+hRxBqv6KbSPvu0+kNmV+cfrbxaxyc95ThWlv0J8/WZMwVIBcUAJwirGHiZorttNXJ9q4FNak9zBcPOMAsMxtlx4AkGkpp+; Expires=Sun, 26 Apr 2020 11:19:52 GMT; Path=/; SameSite=None, AWSALB=QpcFwq1rXBM593a1Ozm8I4spxAD+B+hRxBqv6KbSPvu0+kNmV+cfrbxaxyc95ThWlv0J8/WZMwVIBcUAJwirGHiZorttNXJ9q4FNak9zBcPOMAsMxtlx4AkGkpp+; Expires=Sun, 26 Apr 2020 11:19:52 GMT; Path=/]
- Field: Access-Control-Max-Age = [1728000]
- Field: Content-Length = [254]
- Field: Content-Type = [image/png]
- -----To Browser-----
- HTTP/1.1 200 OK
- Date: Sun Apr 19 07:19:53 EDT 2020
- Server: KoLmafia v20.3
- Content-Type: image/png
- Connection: close
- ?PNG