Bug - Not A Bug choiceAdventure793 leads to a Shop!

Bale

Minion
When "The Shore, Inc." is visited, choosing option 4 from the choice adventure will lead to shop.php?whichshop=shore, but mafia does not know that it is in a shop, so it will not run a shop.shore.ash relay script. Although, if I buy something from the store, mafia will then know it is in a shop and trigger appropriately. It would be necessary though to work when I first enter the store.

Could someone please fix that so that I can run a relay script which will highlight the crate that my telescope tells me would be nice to purchase? Thank you, please!
 

Crowther

Active member
Could someone please fix that so that I can run a relay script which will highlight the crate that my telescope tells me would be nice to purchase? Thank you, please!
After all these years, I still have no idea which vacation goes with which tower item and have to check every single time. If I'm in a hurry and guess, I'm more often wrong than right. I'd love to see the tower items listed by the crates even if I don't have a relay script.

EDIT: Jick, you're far more likely to see a barbed-wire fence at a dude ranch than a ski resort. Are they raising mountain sheep during the summers?
 
Last edited:

ckb

Minion
Staff member
Could someone please fix that so that I can run a relay script which will highlight the crate that my telescope tells me would be nice to purchase? Thank you, please!

You can successfully relay the Shore shop with a choice.ash override... which is a non-optimal, but semi-workable solution.
This is what I did for my shore relay... which is also why I have never released it, because overriding choice.php for a single niche script seems like the wrong way to do it.
 

Bale

Minion
You can successfully relay the Shore shop with a choice.ash override...

I'd need a choice override AND a shop override, or else the override will stop working after clicking the button to buy something.


overriding choice.php for a single niche script seems like the wrong way to do it.

That is exactly why I made this thread.
 

Veracity

Developer
Staff member
I'm going to have to study (again) how we invoke relay scripts, but here are the 4 browser requests involved:

Click on shore (adventure.php)
-> redirects to choice.php
Click on option 4
-> redirects to shop.php

Code:
GET /adventure.php?snarfblat=355 HTTP/1.1
Requesting: http://www.kingdomofloathing.com/adventure.php?snarfblat=355
Retrieved: http://www.kingdomofloathing.com/adventure.php?snarfblat=355
Field: null = [HTTP/1.1 302 Found]
Field: Location = [choice.php?forceoption=0]
HTTP/1.1 302 Found
Location: choice.php?forceoption=0

GET /choice.php?forceoption=0 HTTP/1.1
Requesting: http://www.kingdomofloathing.com/choice.php?forceoption=0
Retrieved: http://www.kingdomofloathing.com/choice.php?forceoption=0
Field: null = [HTTP/1.1 200 OK]
ResponseText has 8765 characters.
HTTP/1.1 200 OK
Content-Length: 10282

POST /choice.php HTTP/1.1
Content-Length: 61
pwd=XXX&whichchoice=793&option=4
Requesting: http://www.kingdomofloathing.com/choice.php?pwd&whichchoice=793&option=4
Retrieved: http://www.kingdomofloathing.com/choice.php?pwd&whichchoice=793&option=4
Field: null = [HTTP/1.1 302 Found]
Field: Location = [shop.php?whichshop=shore]
HTTP/1.1 302 Found
Location: shop.php?whichshop=shore

GET /shop.php?whichshop=shore HTTP/1.1
Requesting: http://www.kingdomofloathing.com/shop.php?whichshop=shore
Retrieved: http://www.kingdomofloathing.com/shop.php?whichshop=shore
ResponseText has 14181 characters.
HTTP/1.1 200 OK
Content-Length: 13705
 

Veracity

Developer
Staff member
OK, I'm not seeing an issue. I added debug prints and got this:

Code:
getClientHTML path = place.php?whichplace=desertbeach
Looking for script: place.desertbeach.ash
Looking for script: place.ash
getClientHTML path = adventure.php?snarfblat=355
Looking for script: adventure.ash
getClientHTML path = choice.php?forceoption=0
Looking for script: choice.ash
getClientHTML path = choice.php
Looking for script: choice.ash
getClientHTML path = shop.php?whichshop=shore
Looking for script: shop.shore.ash
Looking for script: shop.ash
I guess I will make a real shop.shore.ash script and will verify that it gets invoked. Or, if not, why not.
 

lostcalpolydude

Developer
Staff member
I just added a print statement to Bale's shop.shore.ash script (since I'm in aftercore, that was the easy way to test), and it runs as soon as I pick choice 4.
 

Veracity

Developer
Staff member
Here is my relay script.

Code:
void main()
{
    print( "Welcome to shop.shore.ash, which does NOTHING!" );
}
I turned on debug logging and visited the shore gift shop in the Relay Browser.

Code:
GET /shop.php?whichshop=shore HTTP/1.1
Starting relay script: shop.shore.ash
Welcome to shop.shore.ash, which does NOTHING!
Finished relay script: shop.shore.ash
Since it did nothing, KoLmafia just submits the URL, gets the response, and sends it down to the browser.

Code:
Requesting: http://www.kingdomofloathing.com/shop.php?whichshop=shore
Retrieved: http://www.kingdomofloathing.com/shop.php?whichshop=shore
Field: null = [HTTP/1.1 200 OK]
ResponseText has 14181 characters.
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Content-Length: 13705
Near as I can tell, it already works exactly the way you want it to.
 

Bale

Minion
No. It doesn't. Let's simplify the example by doing this entirely in the relay browser so you can easily see a lack of effect. Please try the simple override, shop.shore, I am attaching to this post.

If this works, it will always add the bold red words, "This Shop has been overriden by a Script!" as shown:

tfZBWhS.png



It does not do that for me until after I try to purchase from the shop.
 

Attachments

  • shop.shore.ash
    229 bytes · Views: 17

Veracity

Developer
Staff member
Works for me. I select the "gift shop" option and I see the red text immediately.

Edit: Please go to the desert beach, turn on the debug log, enter the shore, go to the gift shop, and try to buy something you cannot afford, and exit to the desert beach again. Turn off the debug log and post it here, please.

Thanks.

Edit 2: Do it with "log browser interactions" checked, please.
 
Last edited:

Bale

Minion
Code:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
         KoLmafia v16.3 r14246, Windows XP, Java 1.7.0_65
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 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: Sat Jul 26 01:49:31 EDT 2014
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


-----From Browser-----
POST /relay_Guide.ash HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Content-Length: 15
Origin: http://127.0.0.1:60080
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Content-Type: text/plain;charset=UTF-8
Accept: */*
Referer: http://127.0.0.1:60080/relay_guide.ash
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
API status=true
----------
Starting relay script: relay_Guide.ash
Finished relay script: relay_Guide.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:31 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Connection: close
----------
-----From Browser-----
POST /relay_Guide.ash HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Content-Length: 15
Origin: http://127.0.0.1:60080
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Content-Type: text/plain;charset=UTF-8
Accept: */*
Referer: http://127.0.0.1:60080/relay_guide.ash
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
API status=true
----------
Starting relay script: relay_Guide.ash
Finished relay script: relay_Guide.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:32 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Connection: close
----------
-----From Browser-----
POST /relay_Guide.ash HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Content-Length: 15
Origin: http://127.0.0.1:60080
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Content-Type: text/plain;charset=UTF-8
Accept: */*
Referer: http://127.0.0.1:60080/relay_guide.ash
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
API status=true
----------
Starting relay script: relay_Guide.ash
Finished relay script: relay_Guide.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:33 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Connection: close
----------
-----From Browser-----
POST /relay_Guide.ash HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Content-Length: 15
Origin: http://127.0.0.1:60080
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Content-Type: text/plain;charset=UTF-8
Accept: */*
Referer: http://127.0.0.1:60080/relay_guide.ash
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
API status=true
----------
Starting relay script: relay_Guide.ash
Finished relay script: relay_Guide.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:34 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Connection: close
----------
-----From Browser-----
POST /relay_Guide.ash HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Content-Length: 15
Origin: http://127.0.0.1:60080
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Content-Type: text/plain;charset=UTF-8
Accept: */*
Referer: http://127.0.0.1:60080/relay_guide.ash
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
API status=true
----------
Starting relay script: relay_Guide.ash
Finished relay script: relay_Guide.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:35 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Connection: close
----------
-----From Browser-----
GET /adventure.php?snarfblat=355 HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Referer: http://127.0.0.1:60080/place.php?whichplace=desertbeach
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
----------
class net.sourceforge.kolmafia.request.RelayRequest
Connecting to adventure.php...

Requesting: http://www.kingdomofloathing.com/adventure.php?snarfblat=355
2 request properties
Field: Cookie = [appserver=www8; PHPSESSID=cok92l7gf8iin45cqlilqq17u3]
Field: User-Agent = [KoLmafia v16.3]

Retrieving server reply...

Retrieved: http://www.kingdomofloathing.com/adventure.php?snarfblat=355
11 header fields
Field: null = [HTTP/1.1 302 Found]
Field: Date = [Sat, 26 Jul 2014 05:49:38 GMT]
Field: Content-Length = [0]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Location = [choice.php?forceoption=0]
Field: Connection = [keep-alive]
Field: Content-Type = [text/html; charset=UTF-8]
Field: X-Powered-By = [PHP/5.3.3]
Field: Server = [nginx/1.0.15]
Field: Pragma = [no-cache]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]

-----To Browser-----
HTTP/1.1 302 Found
Date: Sat Jul 26 01:49:36 EDT 2014
Server: KoLmafia v16.3
Location: choice.php?forceoption=0
Connection: close
----------
-----From Browser-----
GET /choice.php?forceoption=0 HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Referer: http://127.0.0.1:60080/place.php?whichplace=desertbeach
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
----------
Starting relay script: choice.ash
class net.sourceforge.kolmafia.request.RelayRequest
Connecting to choice.php...

Requesting: http://www.kingdomofloathing.com/choice.php?forceoption=0
2 request properties
Field: Cookie = [appserver=www8; PHPSESSID=cok92l7gf8iin45cqlilqq17u3]
Field: User-Agent = [KoLmafia v16.3]

Retrieving server reply...

Retrieved: http://www.kingdomofloathing.com/choice.php?forceoption=0
10 header fields
Field: null = [HTTP/1.1 200 OK]
Field: Date = [Sat, 26 Jul 2014 05:49:38 GMT]
Field: Content-Length = [7942]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Connection = [keep-alive]
Field: Content-Type = [text/html; charset=UTF-8]
Field: X-Powered-By = [PHP/5.3.3]
Field: Server = [nginx/1.0.15]
Field: Pragma = [no-cache]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]

Retrieving server reply
ResponseText has 7942 characters.
<html><head><script language=Javascript><!--if (parent.frames.length == 0) location.href="game.php";//--></script><script language=Javascript src="http://images.kingdomofloathing.com/scripts/jquery-1.5.1.js"></script><script language=Javascript src="http://images.kingdomofloathing.com/scripts/keybinds.min.2.js"></script><script language=Javascript src="http://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>function switchFocus(){if (top.chatpane.document.chatform.graf.focus)top.chatpane.document.chatform.graf.focus();return false;}function repeat(){var linx = document.getElementsByTagName("A");for (var i = 0; i < linx.length; i++){if (typeof timersfunc != 'undefined') {if (!timersfunc()) {return;}timersfunc = null;}var link = linx[i];if (link.innerHTML.match(/Adventure Again/) || link.innerHTML.match(/Do it again/))location.href = link.href;}}defaultBind(47, CTRL, switchFocus);defaultBind(191, CTRL, switchFocus);defaultBind(47, META, switchFocus);defaultBind(191, META, switchFocus);defaultBind(192, NONE, repeat);defaultBind(220, NONE, repeat);</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 type="text/javascript" src="http://images.kingdomofloathing.com/scripts/pop_query.20130705.js"></script><script type="text/javascript" src="http://images.kingdomofloathing.com/scripts/ircm.20120523.js"></script><script type="text/javascript">function pop_ircm_contents(i, some) {var contents = '',shown = 0,da = ' <a href="#" rel="?" class="small dojaxy">[some]</a> <a href="#" rel="',db = '" class="small dojaxy">[all]</a>',dc = '<div style="width:100%; padding-bottom: 3px;" rel="',dd = '<a href="#" rel="1" class="small dojaxy">[';one = 'one'; ss=some;if (i.d==1 && i.s>0) { shown++;contents += dc + 'sellstuff.php?action=sell&ajax=1&type=quant&whichitem%5B%5D=IID&howmany=NUM&pwd=14fd8765d612b9456e8eafb25bf2debb" id="pircm_'+i.id+'"><b>Auto-Sell ('+i.s+' meat):</b> '+dd+one+']</a>';if (ss) { contents += da + i.n + db;}contents += '</div>';}one = 'one'; ss=some;if (i.q==0) { shown++;contents += dc + 'inventory.php?action=closetpush&ajax=1&whichitem=IID&qty=NUM&pwd=14fd8765d612b9456e8eafb25bf2debb" id="pircm_'+i.id+'"><b>Closet:</b> '+dd+one+']</a>';if (ss) { contents += da + i.n + db;}contents += '</div>';}one = 'one'; ss=some;if (i.q==0 && i.g==0 && i.t==1) { shown++;contents += dc + 'managestore.php?action=additem&qty1=NUM&item1=IID&price1=&limit1=&ajax=1&pwd=14fd8765d612b9456e8eafb25bf2debb" id="pircm_'+i.id+'"><b>Stock in Mall:</b> '+dd+one+']</a>';if (ss) { contents += da + i.n + db;}contents += '</div>';}one = 'one'; ss=some;if (i.q==0) { shown++;contents += dc + 'managecollection.php?action=put&ajax=1&whichitem1=IID&howmany1=NUM&pwd=14fd8765d612b9456e8eafb25bf2debb" id="pircm_'+i.id+'"><b>Add to Display Case:</b> '+dd+one+']</a>';if (ss) { contents += da + i.n + db;}contents += '</div>';}return [contents, shown];}var todo = [];function nextAction() {var next_todo = todo.shift();if (next_todo) {eval(next_todo);}}function dojax(dourl, afterFunc, hoverCaller, failureFunc, method, params) {$.ajax({type: method || 'GET', url: dourl, cache: false,data: params || null,global: false,success: function (out) {nextAction();if (out.match(/no\|/)) {var parts = out.split(/\|/);if (failureFunc) failureFunc(parts[1]);else $('#ChatWindow').append('<font color="green">Oops!  Sorry, Dave, you appear to be ' + parts[1] + '.</font><br />' + "\n");return;}if (hoverCaller)  {float_results(hoverCaller, out);if (afterFunc) { afterFunc(out); }return;}$(top.mainpane.document).find("#effdiv").remove(); if(!window.dontscroll || (window.dontscroll && dontscroll==0)) { window.scroll(0,0);}var $eff = $(top.mainpane.document).find('#effdiv');if ($eff.length == 0) {var d = top.mainpane.document.createElement('DIV');d.id = 'effdiv';var b = top.mainpane.document.body;if ($('#content_').length > 0) {b = $('#content_ div:first')[0];}b.insertBefore(d, b.firstChild);$eff = $(d);}$eff.find('a[name="effdivtop"]').remove().end().prepend('<a name="effdivtop"></a><center>' + out + '</center>').css('display','block');if (!window.dontscroll || (window.dontscroll && dontscroll==0)) {top.mainpane.document.location = top.mainpane.document.location + "#effdivtop";}if (afterFunc) { afterFunc(out); }}});}</script><script>var currentkey = 49;$(document).ready(function () {$('form').each(function () {var form = this;defaultBind(currentkey++, NONE, function () { form.submit(); });return currentkey < 58;});});</script><link rel="stylesheet" type="text/css" href="http://images.kingdomofloathing.com/styles.20130904.css"><style type='text/css'>.faded {zoom: 1;filter: alpha(opacity=35);opacity: 0.35;}</style></head><body><Center><centeR><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>Welcome to The Shore, Inc.</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><img src="http://images.kingdomofloathing.com/adventureimages/shorelady.gif" width=100 height=100></center><p>Welcome to The Shore, Inc., the finest travel agency in the Kingdom of Loathing. Our vacations are sure to be just the thing for a weary soul in need of rest and relaxation.  Just select a package, pay up, and let us do the rest!<center><form name=choiceform1 action=choice.php method=post><input type=hidden name=pwd value='14fd8765d612b9456e8eafb25bf2debb'><input type=hidden name=whichchoice value=793><input type=hidden name=option value=1><input class=button type=submit value="Distant Lands Dude Ranch Adventure"><br>(Costs 3 Adventures and 500 Meat)</form><form name=choiceform2 action=choice.php method=post><input type=hidden name=pwd value='14fd8765d612b9456e8eafb25bf2debb'><input type=hidden name=whichchoice value=793><input type=hidden name=option value=2><input class=button type=submit value="Tropical Paradise Island Getaway"><br>(Costs 3 Adventures and 500 Meat)</form><form name=choiceform3 action=choice.php method=post><input type=hidden name=pwd value='14fd8765d612b9456e8eafb25bf2debb'><input type=hidden name=whichchoice value=793><input type=hidden name=option value=3><input class=button type=submit value="Large Donkey Mountain Ski Resort"><br>(Costs 3 Adventures and 500 Meat)</form><form name=choiceform4 action=choice.php method=post><input type=hidden name=pwd value='14fd8765d612b9456e8eafb25bf2debb'><input type=hidden name=whichchoice value=793><input type=hidden name=option value=4><input class=button type=submit value="Check out the gift shop"></form></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center></body></html>

[846] The Shore, Inc. Travel Agency
Processing results...
Starting ASH script: postAdventureScript.ash
Finished ASH script: postAdventureScript.ash
Finished relay script: choice.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:36 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Connection: close
----------
-----From Browser-----
GET /basics.js HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Accept: */*
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Referer: http://127.0.0.1:60080/choice.php?forceoption=0
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
----------
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:36 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/javascript
Connection: close
----------
-----From Browser-----
POST /relay_Guide.ash HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Content-Length: 15
Origin: http://127.0.0.1:60080
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Content-Type: text/plain;charset=UTF-8
Accept: */*
Referer: http://127.0.0.1:60080/relay_guide.ash
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
API status=true
----------
Starting relay script: relay_Guide.ash
Finished relay script: relay_Guide.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:36 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Connection: close
----------
-----From Browser-----
POST /choice.php HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Content-Length: 61
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: http://127.0.0.1:60080
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Content-Type: application/x-www-form-urlencoded
Referer: http://127.0.0.1:60080/choice.php?forceoption=0
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
pwd=14fd8765d612b9456e8eafb25bf2debb&whichchoice=793&option=4
----------
Starting relay script: choice.ash
class net.sourceforge.kolmafia.request.RelayRequest
Connecting to choice.php...

Requesting: http://www.kingdomofloathing.com/choice.php?pwd&whichchoice=793&option=4
3 request properties
Field: Cookie = [appserver=www8; PHPSESSID=cok92l7gf8iin45cqlilqq17u3]
Field: User-Agent = [KoLmafia v16.3]
Field: Content-Type = [application/x-www-form-urlencoded]

Retrieving server reply...
-----From Browser-----
POST /relay_Guide.ash HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Content-Length: 15
Origin: http://127.0.0.1:60080
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Content-Type: text/plain;charset=UTF-8
Accept: */*
Referer: http://127.0.0.1:60080/relay_guide.ash
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
API status=true
----------
Starting relay script: relay_Guide.ash
Finished relay script: relay_Guide.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:37 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Connection: close
----------

Retrieved: http://www.kingdomofloathing.com/choice.php?pwd&whichchoice=793&option=4
11 header fields
Field: null = [HTTP/1.1 302 Found]
Field: Date = [Sat, 26 Jul 2014 05:49:40 GMT]
Field: Content-Length = [0]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Location = [shop.php?whichshop=shore]
Field: Connection = [keep-alive]
Field: Content-Type = [text/html; charset=UTF-8]
Field: X-Powered-By = [PHP/5.3.3]
Field: Server = [nginx/1.0.15]
Field: Pragma = [no-cache]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]

class net.sourceforge.kolmafia.request.RelayRequest
Connecting to shop.php...

Requesting: http://www.kingdomofloathing.com/shop.php?whichshop=shore
2 request properties
Field: Cookie = [appserver=www8; PHPSESSID=cok92l7gf8iin45cqlilqq17u3]
Field: User-Agent = [KoLmafia v16.3]

Retrieving server reply...

Retrieved: http://www.kingdomofloathing.com/shop.php?whichshop=shore
10 header fields
Field: null = [HTTP/1.1 200 OK]
Field: Transfer-Encoding = [chunked]
Field: Date = [Sat, 26 Jul 2014 05:49:40 GMT]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Connection = [keep-alive]
Field: Content-Type = [text/html; charset=UTF-8]
Field: X-Powered-By = [PHP/5.3.3]
Field: Server = [nginx/1.0.15]
Field: Pragma = [no-cache]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]

Retrieving server reply
ResponseText has 14237 characters.
<html><head><script language=Javascript><!--if (parent.frames.length == 0) location.href="game.php";//--></script><script language=Javascript src="http://images.kingdomofloathing.com/scripts/keybinds.min.2.js"></script><script language=Javascript src="http://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="http://images.kingdomofloathing.com/scripts/jquery-1.3.1.min.js"></script><script type="text/javascript" src="http://images.kingdomofloathing.com/scripts/pop_query.20130705.js"></script><script type="text/javascript" src="http://images.kingdomofloathing.com/scripts/ircm.20120523.js"></script><script type="text/javascript">function pop_ircm_contents(i, some) {var contents = '',shown = 0,da = ' <a href="#" rel="?" class="small dojaxy">[some]</a> <a href="#" rel="',db = '" class="small dojaxy">[all]</a>',dc = '<div style="width:100%; padding-bottom: 3px;" rel="',dd = '<a href="#" rel="1" class="small dojaxy">[';one = 'one'; ss=some;if (i.d==1 && i.s>0) { shown++;contents += dc + 'sellstuff.php?action=sell&ajax=1&type=quant&whichitem%5B%5D=IID&howmany=NUM&pwd=14fd8765d612b9456e8eafb25bf2debb" id="pircm_'+i.id+'"><b>Auto-Sell ('+i.s+' meat):</b> '+dd+one+']</a>';if (ss) { contents += da + i.n + db;}contents += '</div>';}one = 'one'; ss=some;if (i.q==0) { shown++;contents += dc + 'inventory.php?action=closetpush&ajax=1&whichitem=IID&qty=NUM&pwd=14fd8765d612b9456e8eafb25bf2debb" id="pircm_'+i.id+'"><b>Closet:</b> '+dd+one+']</a>';if (ss) { contents += da + i.n + db;}contents += '</div>';}one = 'one'; ss=some;if (i.q==0 && i.g==0 && i.t==1) { shown++;contents += dc + 'managestore.php?action=additem&qty1=NUM&item1=IID&price1=&limit1=&ajax=1&pwd=14fd8765d612b9456e8eafb25bf2debb" id="pircm_'+i.id+'"><b>Stock in Mall:</b> '+dd+one+']</a>';if (ss) { contents += da + i.n + db;}contents += '</div>';}one = 'one'; ss=some;if (i.q==0) { shown++;contents += dc + 'managecollection.php?action=put&ajax=1&whichitem1=IID&howmany1=NUM&pwd=14fd8765d612b9456e8eafb25bf2debb" id="pircm_'+i.id+'"><b>Add to Display Case:</b> '+dd+one+']</a>';if (ss) { contents += da + i.n + db;}contents += '</div>';}return [contents, shown];}var todo = [];function nextAction() {var next_todo = todo.shift();if (next_todo) {eval(next_todo);}}function dojax(dourl, afterFunc, hoverCaller, failureFunc, method, params) {$.ajax({type: method || 'GET', url: dourl, cache: false,data: params || null,global: false,success: function (out) {nextAction();if (out.match(/no\|/)) {var parts = out.split(/\|/);if (failureFunc) failureFunc(parts[1]);else $('#ChatWindow').append('<font color="green">Oops!  Sorry, Dave, you appear to be ' + parts[1] + '.</font><br />' + "\n");return;}if (hoverCaller)  {float_results(hoverCaller, out);if (afterFunc) { afterFunc(out); }return;}$(top.mainpane.document).find("#effdiv").remove(); if(!window.dontscroll || (window.dontscroll && dontscroll==0)) { window.scroll(0,0);}var $eff = $(top.mainpane.document).find('#effdiv');if ($eff.length == 0) {var d = top.mainpane.document.createElement('DIV');d.id = 'effdiv';var b = top.mainpane.document.body;if ($('#content_').length > 0) {b = $('#content_ div:first')[0];}b.insertBefore(d, b.firstChild);$eff = $(d);}$eff.find('a[name="effdivtop"]').remove().end().prepend('<a name="effdivtop"></a><center>' + out + '</center>').css('display','block');if (!window.dontscroll || (window.dontscroll && dontscroll==0)) {top.mainpane.document.location = top.mainpane.document.location + "#effdivtop";}if (afterFunc) { afterFunc(out); }}});}</script><link rel="stylesheet" type="text/css" href="http://images.kingdomofloathing.com/styles.20130904.css"><style type='text/css'>.faded {zoom: 1;filter: alpha(opacity=35);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 Shore, Inc. Gift Shop</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><table><tr><td valign=top><img src=http://images.kingdomofloathing.com/otherimages/terrence.gif width=60 height=100 alt="Terrence" title="Terrence"></td><td valign=top><center><b>Terrence</b></center><p>Welcome to The Gift Shop, Inc.  My name is Terrence.  May I help you?</td></tr></table><form name=bigform action=shop.php method=post><input type=hidden name=pwd value=14fd8765d612b9456e8eafb25bf2debb><input type=hidden name=whichshop value="shore"><input type=hidden name=action value=buyitem><center><table cellpadding=2><tr><td></td><td colspan=2 align=center><b>Item:</b> (click for description)</td><td colspan=10 align=center><b>Price:</b></td></tr><tr rel="6726"><td valign=center><input type=radio name=whichrow value=180></td><td><img src="http://images.kingdomofloathing.com/itemimages/crate.gif" class=hand onClick='javascript:descitem(241890928)'></td><td valign=center><a onClick='javascript:descitem(241890928)'><b>dude ranch souvenir crate</b>    </a></td><td><img src=http://images.kingdomofloathing.com/itemimages/shorescrip.gif width=30 height=30 onClick='javascript:descitem(591185724)' alt="Shore Inc. Ship Trip Scrip" title="Shore Inc. Ship Trip Scrip"></td><td><b>1</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=shore&action=buyitem&quantity=1&whichrow=180&pwd=14fd8765d612b9456e8eafb25bf2debb' value='Buy'></td></tr><tr rel="6727"><td valign=center><input type=radio name=whichrow value=181></td><td><img src="http://images.kingdomofloathing.com/itemimages/crate.gif" class=hand onClick='javascript:descitem(631078936)'></td><td valign=center><a onClick='javascript:descitem(631078936)'><b>tropical island souvenir crate</b>    </a></td><td><img src=http://images.kingdomofloathing.com/itemimages/shorescrip.gif width=30 height=30 onClick='javascript:descitem(591185724)' alt="Shore Inc. Ship Trip Scrip" title="Shore Inc. Ship Trip Scrip"></td><td><b>1</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=shore&action=buyitem&quantity=1&whichrow=181&pwd=14fd8765d612b9456e8eafb25bf2debb' value='Buy'></td></tr><tr rel="6728"><td valign=center><input type=radio name=whichrow value=182></td><td><img src="http://images.kingdomofloathing.com/itemimages/crate.gif" class=hand onClick='javascript:descitem(978195555)'></td><td valign=center><a onClick='javascript:descitem(978195555)'><b>ski resort souvenir crate</b>    </a></td><td><img src=http://images.kingdomofloathing.com/itemimages/shorescrip.gif width=30 height=30 onClick='javascript:descitem(591185724)' alt="Shore Inc. Ship Trip Scrip" title="Shore Inc. Ship Trip Scrip"></td><td><b>1</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=shore&action=buyitem&quantity=1&whichrow=182&pwd=14fd8765d612b9456e8eafb25bf2debb' value='Buy'></td></tr><tr rel="636"><td valign=center><input type=radio name=whichrow value=178></td><td><img src="http://images.kingdomofloathing.com/itemimages/meatglobe.gif" class=hand onClick='javascript:descitem(126219215)'></td><td valign=center><a onClick='javascript:descitem(126219215)'><b>meat globe</b>    </a></td><td><img src=http://images.kingdomofloathing.com/itemimages/shorescrip.gif width=30 height=30 onClick='javascript:descitem(591185724)' alt="Shore Inc. Ship Trip Scrip" title="Shore Inc. Ship Trip Scrip"></td><td><b>1</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=shore&action=buyitem&quantity=1&whichrow=178&pwd=14fd8765d612b9456e8eafb25bf2debb' value='Buy'></td></tr><tr rel="637"><td valign=center><input type=radio name=whichrow value=179></td><td><img src="http://images.kingdomofloathing.com/itemimages/toaster.gif" class=hand onClick='javascript:descitem(305442740)'></td><td valign=center><a onClick='javascript:descitem(305442740)'><b>cheap toaster</b>    </a></td><td><img src=http://images.kingdomofloathing.com/itemimages/shorescrip.gif width=30 height=30 onClick='javascript:descitem(591185724)' alt="Shore Inc. Ship Trip Scrip" title="Shore Inc. Ship Trip Scrip"></td><td><b>3</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=shore&action=buyitem&quantity=1&whichrow=179&pwd=14fd8765d612b9456e8eafb25bf2debb' value='Buy'></td></tr><tr rel="6729"><td valign=center><input type=radio name=whichrow value=183></td><td><img src="http://images.kingdomofloathing.com/itemimages/uvcompass.gif" class=hand onClick='javascript:descitem(323401194)'></td><td valign=center><a onClick='javascript:descitem(323401194)'><b>UV-resistant compass</b>    </a></td><td><img src=http://images.kingdomofloathing.com/itemimages/shorescrip.gif width=30 height=30 onClick='javascript:descitem(591185724)' alt="Shore Inc. Ship Trip Scrip" title="Shore Inc. Ship Trip Scrip"></td><td><b>1</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit " type=button rel='shop.php?whichshop=shore&action=buyitem&quantity=1&whichrow=183&pwd=14fd8765d612b9456e8eafb25bf2debb' value='Buy'></td></tr><tr rel="146"><td valign=center><input type=radio name=whichrow value=176></td><td><img src="http://images.kingdomofloathing.com/itemimages/boatplan.gif" class=hand onClick='javascript:descitem(642515521)'></td><td valign=center><a onClick='javascript:descitem(642515521)'><b>dinghy plans</b>    </a></td><td><img src=http://images.kingdomofloathing.com/itemimages/shorescrip.gif width=30 height=30 onClick='javascript:descitem(591185724)' alt="Shore Inc. Ship Trip Scrip" title="Shore Inc. Ship Trip Scrip"></td><td><b>3</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=shore&action=buyitem&quantity=1&whichrow=176&pwd=14fd8765d612b9456e8eafb25bf2debb' value='Buy'></td></tr><tr rel="387"><td valign=center><input type=radio name=whichrow value=177></td><td><img src="http://images.kingdomofloathing.com/itemimages/dice.gif" class=hand onClick='javascript:descitem(832984520)'></td><td valign=center><a onClick='javascript:descitem(832984520)'><b>fuzzy dice</b>    </a></td><td><img src=http://images.kingdomofloathing.com/itemimages/shorescrip.gif width=30 height=30 onClick='javascript:descitem(591185724)' alt="Shore Inc. Ship Trip Scrip" title="Shore Inc. Ship Trip Scrip"></td><td><b>5</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=shore&action=buyitem&quantity=1&whichrow=177&pwd=14fd8765d612b9456e8eafb25bf2debb' value='Buy'></td></tr></table><center><input class=button type=submit value="Buy Item"> <input class=text type=text name=quantity size=2 value=1></center></form></form><div id="ass" style="font-size: .8em; text-align: center; width: 100%">*Right-Click to Multi-Buy</div><p><b>You have:</b><table><tr><td><img src=http://images.kingdomofloathing.com/itemimages/shorescrip.gif width=30 height=30 onClick='javascript:descitem(591185724)' alt="Shore Inc. Ship Trip Scrip" title="Shore Inc. Ship Trip Scrip"></td><td>no Shore Inc. Ship Trip Scrip</td></tr></table><p><a href=place.php?whichplace=desertbeach>Exit to Desert Beach</a></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center><script>jQuery(function ($) {var ass = false;$('.doit').bind('contextmenu', function (e) {e.preventDefault();var l = $(this);pop_query(l, 'How Many?', 'Take', function (num) {var url = l.attr('rel');url = url.replace(/quantity=1/, 'quantity=' + num);parent.mainpane.location=url;})}).each(function () {//$(this).val($(this).val() + '*');ass = true;}).click(function (e) {e.preventDefault();var url = $(this).attr('rel');parent.mainpane.location=url;});if (!ass) { $('#ass').hide() }});</script></body></html>
Processing results...
Finished relay script: choice.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:38 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Connection: close
----------
-----From Browser-----
GET /basics.js HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Cache-Control: max-age=0
Accept: */*
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Referer: http://127.0.0.1:60080/choice.php
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
----------
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:38 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/javascript
Connection: close
----------
-----From Browser-----
POST /relay_Guide.ash HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Content-Length: 15
Origin: http://127.0.0.1:60080
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Content-Type: text/plain;charset=UTF-8
Accept: */*
Referer: http://127.0.0.1:60080/relay_guide.ash
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
API status=true
----------
Starting relay script: relay_Guide.ash
Finished relay script: relay_Guide.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:38 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Connection: close
----------
-----From Browser-----
POST /relay_Guide.ash HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Content-Length: 15
Origin: http://127.0.0.1:60080
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Content-Type: text/plain;charset=UTF-8
Accept: */*
Referer: http://127.0.0.1:60080/relay_guide.ash
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
API status=true
----------
Starting relay script: relay_Guide.ash
Finished relay script: relay_Guide.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:39 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Connection: close
----------
-----From Browser-----
POST /relay_Guide.ash HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Content-Length: 15
Origin: http://127.0.0.1:60080
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Content-Type: text/plain;charset=UTF-8
Accept: */*
Referer: http://127.0.0.1:60080/relay_guide.ash
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
API status=true
----------
Starting relay script: relay_Guide.ash
Finished relay script: relay_Guide.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:40 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Connection: close
----------
-----From Browser-----
POST /relay_Guide.ash HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Content-Length: 15
Origin: http://127.0.0.1:60080
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Content-Type: text/plain;charset=UTF-8
Accept: */*
Referer: http://127.0.0.1:60080/relay_guide.ash
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
API status=true
----------
Starting relay script: relay_Guide.ash
Finished relay script: relay_Guide.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:41 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Connection: close
----------
-----From Browser-----
GET /shop.php?whichshop=shore&action=buyitem&quantity=1&whichrow=177&pwd=14fd8765d612b9456e8eafb25bf2debb HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Referer: http://127.0.0.1:60080/choice.php
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
----------
Starting relay script: shop.shore.ash
class net.sourceforge.kolmafia.request.RelayRequest
Connecting to shop.php...

Requesting: http://www.kingdomofloathing.com/shop.php?whichshop=shore&action=buyitem&quantity=1&whichrow=177&pwd
2 request properties
Field: Cookie = [appserver=www8; PHPSESSID=cok92l7gf8iin45cqlilqq17u3]
Field: User-Agent = [KoLmafia v16.3]

Retrieving server reply...

Retrieved: http://www.kingdomofloathing.com/shop.php?whichshop=shore&action=buyitem&quantity=1&whichrow=177&pwd
10 header fields
Field: null = [HTTP/1.1 200 OK]
Field: Transfer-Encoding = [chunked]
Field: Date = [Sat, 26 Jul 2014 05:49:44 GMT]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Connection = [keep-alive]
Field: Content-Type = [text/html; charset=UTF-8]
Field: X-Powered-By = [PHP/5.3.3]
Field: Server = [nginx/1.0.15]
Field: Pragma = [no-cache]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]

Retrieving server reply
ResponseText has 14584 characters.
<html><head><script language=Javascript><!--if (parent.frames.length == 0) location.href="game.php";//--></script><script language=Javascript src="http://images.kingdomofloathing.com/scripts/keybinds.min.2.js"></script><script language=Javascript src="http://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="http://images.kingdomofloathing.com/scripts/jquery-1.3.1.min.js"></script><script type="text/javascript" src="http://images.kingdomofloathing.com/scripts/pop_query.20130705.js"></script><script type="text/javascript" src="http://images.kingdomofloathing.com/scripts/ircm.20120523.js"></script><script type="text/javascript">function pop_ircm_contents(i, some) {var contents = '',shown = 0,da = ' <a href="#" rel="?" class="small dojaxy">[some]</a> <a href="#" rel="',db = '" class="small dojaxy">[all]</a>',dc = '<div style="width:100%; padding-bottom: 3px;" rel="',dd = '<a href="#" rel="1" class="small dojaxy">[';one = 'one'; ss=some;if (i.d==1 && i.s>0) { shown++;contents += dc + 'sellstuff.php?action=sell&ajax=1&type=quant&whichitem%5B%5D=IID&howmany=NUM&pwd=14fd8765d612b9456e8eafb25bf2debb" id="pircm_'+i.id+'"><b>Auto-Sell ('+i.s+' meat):</b> '+dd+one+']</a>';if (ss) { contents += da + i.n + db;}contents += '</div>';}one = 'one'; ss=some;if (i.q==0) { shown++;contents += dc + 'inventory.php?action=closetpush&ajax=1&whichitem=IID&qty=NUM&pwd=14fd8765d612b9456e8eafb25bf2debb" id="pircm_'+i.id+'"><b>Closet:</b> '+dd+one+']</a>';if (ss) { contents += da + i.n + db;}contents += '</div>';}one = 'one'; ss=some;if (i.q==0 && i.g==0 && i.t==1) { shown++;contents += dc + 'managestore.php?action=additem&qty1=NUM&item1=IID&price1=&limit1=&ajax=1&pwd=14fd8765d612b9456e8eafb25bf2debb" id="pircm_'+i.id+'"><b>Stock in Mall:</b> '+dd+one+']</a>';if (ss) { contents += da + i.n + db;}contents += '</div>';}one = 'one'; ss=some;if (i.q==0) { shown++;contents += dc + 'managecollection.php?action=put&ajax=1&whichitem1=IID&howmany1=NUM&pwd=14fd8765d612b9456e8eafb25bf2debb" id="pircm_'+i.id+'"><b>Add to Display Case:</b> '+dd+one+']</a>';if (ss) { contents += da + i.n + db;}contents += '</div>';}return [contents, shown];}var todo = [];function nextAction() {var next_todo = todo.shift();if (next_todo) {eval(next_todo);}}function dojax(dourl, afterFunc, hoverCaller, failureFunc, method, params) {$.ajax({type: method || 'GET', url: dourl, cache: false,data: params || null,global: false,success: function (out) {nextAction();if (out.match(/no\|/)) {var parts = out.split(/\|/);if (failureFunc) failureFunc(parts[1]);else $('#ChatWindow').append('<font color="green">Oops!  Sorry, Dave, you appear to be ' + parts[1] + '.</font><br />' + "\n");return;}if (hoverCaller)  {float_results(hoverCaller, out);if (afterFunc) { afterFunc(out); }return;}$(top.mainpane.document).find("#effdiv").remove(); if(!window.dontscroll || (window.dontscroll && dontscroll==0)) { window.scroll(0,0);}var $eff = $(top.mainpane.document).find('#effdiv');if ($eff.length == 0) {var d = top.mainpane.document.createElement('DIV');d.id = 'effdiv';var b = top.mainpane.document.body;if ($('#content_').length > 0) {b = $('#content_ div:first')[0];}b.insertBefore(d, b.firstChild);$eff = $(d);}$eff.find('a[name="effdivtop"]').remove().end().prepend('<a name="effdivtop"></a><center>' + out + '</center>').css('display','block');if (!window.dontscroll || (window.dontscroll && dontscroll==0)) {top.mainpane.document.location = top.mainpane.document.location + "#effdivtop";}if (afterFunc) { afterFunc(out); }}});}</script><link rel="stylesheet" type="text/css" href="http://images.kingdomofloathing.com/styles.20130904.css"><style type='text/css'>.faded {zoom: 1;filter: alpha(opacity=35);opacity: 0.35;}</style></head><body><centeR><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>Results:</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td>You don't have enough Shore Inc. Ship Trip Scrip for that transaction.</td></tr></table></center></td></tr><tr><td height=4></td></tr></table><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>The Shore, Inc. Gift Shop</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><table><tr><td valign=top><img src=http://images.kingdomofloathing.com/otherimages/terrence.gif width=60 height=100 alt="Terrence" title="Terrence"></td><td valign=top><center><b>Terrence</b></center><p>Welcome to The Gift Shop, Inc.  My name is Terrence.  May I help you?</td></tr></table><form name=bigform action=shop.php method=post><input type=hidden name=pwd value=14fd8765d612b9456e8eafb25bf2debb><input type=hidden name=whichshop value="shore"><input type=hidden name=action value=buyitem><center><table cellpadding=2><tr><td></td><td colspan=2 align=center><b>Item:</b> (click for description)</td><td colspan=10 align=center><b>Price:</b></td></tr><tr rel="6726"><td valign=center><input type=radio name=whichrow value=180></td><td><img src="http://images.kingdomofloathing.com/itemimages/crate.gif" class=hand onClick='javascript:descitem(241890928)'></td><td valign=center><a onClick='javascript:descitem(241890928)'><b>dude ranch souvenir crate</b>    </a></td><td><img src=http://images.kingdomofloathing.com/itemimages/shorescrip.gif width=30 height=30 onClick='javascript:descitem(591185724)' alt="Shore Inc. Ship Trip Scrip" title="Shore Inc. Ship Trip Scrip"></td><td><b>1</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=shore&action=buyitem&quantity=1&whichrow=180&pwd=14fd8765d612b9456e8eafb25bf2debb' value='Buy'></td></tr><tr rel="6727"><td valign=center><input type=radio name=whichrow value=181></td><td><img src="http://images.kingdomofloathing.com/itemimages/crate.gif" class=hand onClick='javascript:descitem(631078936)'></td><td valign=center><a onClick='javascript:descitem(631078936)'><b>tropical island souvenir crate</b>    </a></td><td><img src=http://images.kingdomofloathing.com/itemimages/shorescrip.gif width=30 height=30 onClick='javascript:descitem(591185724)' alt="Shore Inc. Ship Trip Scrip" title="Shore Inc. Ship Trip Scrip"></td><td><b>1</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=shore&action=buyitem&quantity=1&whichrow=181&pwd=14fd8765d612b9456e8eafb25bf2debb' value='Buy'></td></tr><tr rel="6728"><td valign=center><input type=radio name=whichrow value=182></td><td><img src="http://images.kingdomofloathing.com/itemimages/crate.gif" class=hand onClick='javascript:descitem(978195555)'></td><td valign=center><a onClick='javascript:descitem(978195555)'><b>ski resort souvenir crate</b>    </a></td><td><img src=http://images.kingdomofloathing.com/itemimages/shorescrip.gif width=30 height=30 onClick='javascript:descitem(591185724)' alt="Shore Inc. Ship Trip Scrip" title="Shore Inc. Ship Trip Scrip"></td><td><b>1</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=shore&action=buyitem&quantity=1&whichrow=182&pwd=14fd8765d612b9456e8eafb25bf2debb' value='Buy'></td></tr><tr rel="636"><td valign=center><input type=radio name=whichrow value=178></td><td><img src="http://images.kingdomofloathing.com/itemimages/meatglobe.gif" class=hand onClick='javascript:descitem(126219215)'></td><td valign=center><a onClick='javascript:descitem(126219215)'><b>meat globe</b>    </a></td><td><img src=http://images.kingdomofloathing.com/itemimages/shorescrip.gif width=30 height=30 onClick='javascript:descitem(591185724)' alt="Shore Inc. Ship Trip Scrip" title="Shore Inc. Ship Trip Scrip"></td><td><b>1</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=shore&action=buyitem&quantity=1&whichrow=178&pwd=14fd8765d612b9456e8eafb25bf2debb' value='Buy'></td></tr><tr rel="637"><td valign=center><input type=radio name=whichrow value=179></td><td><img src="http://images.kingdomofloathing.com/itemimages/toaster.gif" class=hand onClick='javascript:descitem(305442740)'></td><td valign=center><a onClick='javascript:descitem(305442740)'><b>cheap toaster</b>    </a></td><td><img src=http://images.kingdomofloathing.com/itemimages/shorescrip.gif width=30 height=30 onClick='javascript:descitem(591185724)' alt="Shore Inc. Ship Trip Scrip" title="Shore Inc. Ship Trip Scrip"></td><td><b>3</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=shore&action=buyitem&quantity=1&whichrow=179&pwd=14fd8765d612b9456e8eafb25bf2debb' value='Buy'></td></tr><tr rel="6729"><td valign=center><input type=radio name=whichrow value=183></td><td><img src="http://images.kingdomofloathing.com/itemimages/uvcompass.gif" class=hand onClick='javascript:descitem(323401194)'></td><td valign=center><a onClick='javascript:descitem(323401194)'><b>UV-resistant compass</b>    </a></td><td><img src=http://images.kingdomofloathing.com/itemimages/shorescrip.gif width=30 height=30 onClick='javascript:descitem(591185724)' alt="Shore Inc. Ship Trip Scrip" title="Shore Inc. Ship Trip Scrip"></td><td><b>1</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit " type=button rel='shop.php?whichshop=shore&action=buyitem&quantity=1&whichrow=183&pwd=14fd8765d612b9456e8eafb25bf2debb' value='Buy'></td></tr><tr rel="146"><td valign=center><input type=radio name=whichrow value=176></td><td><img src="http://images.kingdomofloathing.com/itemimages/boatplan.gif" class=hand onClick='javascript:descitem(642515521)'></td><td valign=center><a onClick='javascript:descitem(642515521)'><b>dinghy plans</b>    </a></td><td><img src=http://images.kingdomofloathing.com/itemimages/shorescrip.gif width=30 height=30 onClick='javascript:descitem(591185724)' alt="Shore Inc. Ship Trip Scrip" title="Shore Inc. Ship Trip Scrip"></td><td><b>3</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=shore&action=buyitem&quantity=1&whichrow=176&pwd=14fd8765d612b9456e8eafb25bf2debb' value='Buy'></td></tr><tr rel="387"><td valign=center><input type=radio name=whichrow value=177></td><td><img src="http://images.kingdomofloathing.com/itemimages/dice.gif" class=hand onClick='javascript:descitem(832984520)'></td><td valign=center><a onClick='javascript:descitem(832984520)'><b>fuzzy dice</b>    </a></td><td><img src=http://images.kingdomofloathing.com/itemimages/shorescrip.gif width=30 height=30 onClick='javascript:descitem(591185724)' alt="Shore Inc. Ship Trip Scrip" title="Shore Inc. Ship Trip Scrip"></td><td><b>5</b>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td></td><td>  </td><td valign=center><input class="button doit multibuy" type=button rel='shop.php?whichshop=shore&action=buyitem&quantity=1&whichrow=177&pwd=14fd8765d612b9456e8eafb25bf2debb' value='Buy'></td></tr></table><center><input class=button type=submit value="Buy Item"> <input class=text type=text name=quantity size=2 value=1></center></form></form><div id="ass" style="font-size: .8em; text-align: center; width: 100%">*Right-Click to Multi-Buy</div><p><b>You have:</b><table><tr><td><img src=http://images.kingdomofloathing.com/itemimages/shorescrip.gif width=30 height=30 onClick='javascript:descitem(591185724)' alt="Shore Inc. Ship Trip Scrip" title="Shore Inc. Ship Trip Scrip"></td><td>no Shore Inc. Ship Trip Scrip</td></tr></table><p><a href=place.php?whichplace=desertbeach>Exit to Desert Beach</a></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center><script>jQuery(function ($) {var ass = false;$('.doit').bind('contextmenu', function (e) {e.preventDefault();var l = $(this);pop_query(l, 'How Many?', 'Take', function (num) {var url = l.attr('rel');url = url.replace(/quantity=1/, 'quantity=' + num);parent.mainpane.location=url;})}).each(function () {//$(this).val($(this).val() + '*');ass = true;}).click(function (e) {e.preventDefault();var url = $(this).attr('rel');parent.mainpane.location=url;});if (!ass) { $('#ass').hide() }});</script></body></html>
Processing results...
Finished relay script: shop.shore.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:42 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Connection: close
----------
-----From Browser-----
GET /basics.js HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Accept: */*
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Referer: http://127.0.0.1:60080/shop.php?whichshop=shore&action=buyitem&quantity=1&whichrow=177&pwd=14fd8765d612b9456e8eafb25bf2debb
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
----------
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:42 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/javascript
Connection: close
----------
-----From Browser-----
POST /relay_Guide.ash HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Content-Length: 15
Origin: http://127.0.0.1:60080
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Content-Type: text/plain;charset=UTF-8
Accept: */*
Referer: http://127.0.0.1:60080/relay_guide.ash
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
API status=true
----------
Starting relay script: relay_Guide.ash
Finished relay script: relay_Guide.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:42 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Connection: close
----------
-----From Browser-----
POST /relay_Guide.ash HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Content-Length: 15
Origin: http://127.0.0.1:60080
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Content-Type: text/plain;charset=UTF-8
Accept: */*
Referer: http://127.0.0.1:60080/relay_guide.ash
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
API status=true
----------
Starting relay script: relay_Guide.ash
Finished relay script: relay_Guide.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:44 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Connection: close
----------
-----From Browser-----
GET /place.php?whichplace=desertbeach HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Referer: http://127.0.0.1:60080/shop.php?whichshop=shore&action=buyitem&quantity=1&whichrow=177&pwd=14fd8765d612b9456e8eafb25bf2debb
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
----------
class net.sourceforge.kolmafia.request.RelayRequest
Connecting to place.php...

Requesting: http://www.kingdomofloathing.com/place.php?whichplace=desertbeach
2 request properties
Field: Cookie = [appserver=www8; PHPSESSID=cok92l7gf8iin45cqlilqq17u3]
Field: User-Agent = [KoLmafia v16.3]

Retrieving server reply...

Retrieved: http://www.kingdomofloathing.com/place.php?whichplace=desertbeach
10 header fields
Field: null = [HTTP/1.1 200 OK]
Field: Transfer-Encoding = [chunked]
Field: Date = [Sat, 26 Jul 2014 05:49:47 GMT]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Connection = [keep-alive]
Field: Content-Type = [text/html; charset=UTF-8]
Field: X-Powered-By = [PHP/5.3.3]
Field: Server = [nginx/1.0.15]
Field: Pragma = [no-cache]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]

Retrieving server reply
ResponseText has 9681 characters.
<html><head><script language=Javascript><!--if (parent.frames.length == 0) location.href="game.php";//--></script><script language=Javascript src="http://images.kingdomofloathing.com/scripts/keybinds.min.2.js"></script><script language=Javascript src="http://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="http://images.kingdomofloathing.com/scripts/jquery-1.3.1.min.js"></script><script type="text/javascript" src="http://images.kingdomofloathing.com/scripts/pop_query.20130705.js"></script><script type="text/javascript" src="http://images.kingdomofloathing.com/scripts/ircm.20120523.js"></script><script type="text/javascript">function pop_ircm_contents(i, some) {var contents = '',shown = 0,da = ' <a href="#" rel="?" class="small dojaxy">[some]</a> <a href="#" rel="',db = '" class="small dojaxy">[all]</a>',dc = '<div style="width:100%; padding-bottom: 3px;" rel="',dd = '<a href="#" rel="1" class="small dojaxy">[';one = 'one'; ss=some;if (i.d==1 && i.s>0) { shown++;contents += dc + 'sellstuff.php?action=sell&ajax=1&type=quant&whichitem%5B%5D=IID&howmany=NUM&pwd=14fd8765d612b9456e8eafb25bf2debb" id="pircm_'+i.id+'"><b>Auto-Sell ('+i.s+' meat):</b> '+dd+one+']</a>';if (ss) { contents += da + i.n + db;}contents += '</div>';}one = 'one'; ss=some;if (i.q==0) { shown++;contents += dc + 'inventory.php?action=closetpush&ajax=1&whichitem=IID&qty=NUM&pwd=14fd8765d612b9456e8eafb25bf2debb" id="pircm_'+i.id+'"><b>Closet:</b> '+dd+one+']</a>';if (ss) { contents += da + i.n + db;}contents += '</div>';}one = 'one'; ss=some;if (i.q==0 && i.g==0 && i.t==1) { shown++;contents += dc + 'managestore.php?action=additem&qty1=NUM&item1=IID&price1=&limit1=&ajax=1&pwd=14fd8765d612b9456e8eafb25bf2debb" id="pircm_'+i.id+'"><b>Stock in Mall:</b> '+dd+one+']</a>';if (ss) { contents += da + i.n + db;}contents += '</div>';}one = 'one'; ss=some;if (i.q==0) { shown++;contents += dc + 'managecollection.php?action=put&ajax=1&whichitem1=IID&howmany1=NUM&pwd=14fd8765d612b9456e8eafb25bf2debb" id="pircm_'+i.id+'"><b>Add to Display Case:</b> '+dd+one+']</a>';if (ss) { contents += da + i.n + db;}contents += '</div>';}return [contents, shown];}var todo = [];function nextAction() {var next_todo = todo.shift();if (next_todo) {eval(next_todo);}}function dojax(dourl, afterFunc, hoverCaller, failureFunc, method, params) {$.ajax({type: method || 'GET', url: dourl, cache: false,data: params || null,global: false,success: function (out) {nextAction();if (out.match(/no\|/)) {var parts = out.split(/\|/);if (failureFunc) failureFunc(parts[1]);else $('#ChatWindow').append('<font color="green">Oops!  Sorry, Dave, you appear to be ' + parts[1] + '.</font><br />' + "\n");return;}if (hoverCaller)  {float_results(hoverCaller, out);if (afterFunc) { afterFunc(out); }return;}$(top.mainpane.document).find("#effdiv").remove(); if(!window.dontscroll || (window.dontscroll && dontscroll==0)) { window.scroll(0,0);}var $eff = $(top.mainpane.document).find('#effdiv');if ($eff.length == 0) {var d = top.mainpane.document.createElement('DIV');d.id = 'effdiv';var b = top.mainpane.document.body;if ($('#content_').length > 0) {b = $('#content_ div:first')[0];}b.insertBefore(d, b.firstChild);$eff = $(d);}$eff.find('a[name="effdivtop"]').remove().end().prepend('<a name="effdivtop"></a><center>' + out + '</center>').css('display','block');if (!window.dontscroll || (window.dontscroll && dontscroll==0)) {top.mainpane.document.location = top.mainpane.document.location + "#effdivtop";}if (afterFunc) { afterFunc(out); }}});}</script><link rel="stylesheet" type="text/css" href="http://images.kingdomofloathing.com/styles.20130904.css"><style type='text/css'>.faded {zoom: 1;filter: alpha(opacity=35);opacity: 0.35;}</style></head><body><centeR><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>Desert Beach</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><div id=background style='position:relative;'><img src="http://images.kingdomofloathing.com/otherimages/desertbeach/desert_background.gif" width=400 height=500 border=0><div id=db_shore style=' position: absolute; top: 303; left: -8; height: 80; width: 120;'><a  href=adventure.php?snarfblat=355><img src="http://images.kingdomofloathing.com/otherimages/1x1trans.gif" width=120 height=80 border=0 alt="The Shore, Inc." title="The Shore, Inc."></a></div><div id=db_bordertown style=' position: absolute; top: 275; left: 254; height: 120; width: 100;'><a  href=place.php?whichplace=bordertown><img src="http://images.kingdomofloathing.com/otherimages/1x1trans.gif" width=100 height=120 border=0 alt="Bordertown" title="Bordertown"></a></div><div id=db_sotb style=' position: absolute; top: 414; left: 249; height: 40; width: 110;'><a  href=adventure.php?snarfblat=45><img src="http://images.kingdomofloathing.com/otherimages/1x1trans.gif" width=110 height=40 border=0 alt="South of the Border (1)" title="South of the Border (1)"></a></div><div id=db_oasis style=' position: absolute; top: 100; left: 300; height: 100; width: 100;'><a  href=adventure.php?snarfblat=122><img src="http://images.kingdomofloathing.com/otherimages/desertbeach/oasis.gif" width=100 height=100 border=0 alt="An Oasis (1)" title="An Oasis (1)"></a></div><div id=db_nukehouse style=' position: absolute; top: 250; left: 114; height: 18; width: 27;'><a  href=place.php?whichplace=desertbeach&action=db_nukehouse><img src="http://images.kingdomofloathing.com/otherimages/1x1trans.gif" width=27 height=18 border=0 alt="A Ruined House" title="A Ruined House"></a></div><div id=db_gnasir style=' position: absolute; top: 100; left: 250; height: 50; width: 50;'><a  href=place.php?whichplace=desertbeach&action=db_gnasir><img src="http://images.kingdomofloathing.com/otherimages/desertbeach/gnasir.gif" width=50 height=50 border=0 alt="Gnasir's Place" title="Gnasir's Place"></a></div><div id=db_l11desert style=' position: absolute; top: 150; left: 200; height: 100; width: 100;'><a  href=adventure.php?snarfblat=364><img src="http://images.kingdomofloathing.com/otherimages/desertbeach/ariddesert2.gif" width=100 height=100 border=0 alt="The Arid, Extra-Dry Desert (1)" title="The Arid, Extra-Dry Desert (1)"></a></div><div id=db_l11desertlabel style='text-align: center; position: absolute; top: 226; left: 200; height: 30; width: 100;'><a style='text-decoration: none; font-size: 11px' href=adventure.php?snarfblat=364><div class="pp" style="height: 10px"><img src="http://images.kingdomofloathing.com/otherimages/zonefont/lparen.gif" height="10" border="0" /><img src="http://images.kingdomofloathing.com/otherimages/zonefont/1.gif" height="10" border="0" /><img src="http://images.kingdomofloathing.com/otherimages/zonefont/0.gif" height="10" border="0" /><img src="http://images.kingdomofloathing.com/otherimages/zonefont/0.gif" height="10" border="0" /><img src="http://images.kingdomofloathing.com/otherimages/zonefont/percent.gif" height="10" border="0" style="margin-right: 4px"/><img src="http://images.kingdomofloathing.com/otherimages/zonefont/e.gif" height="10" border="0" /><img src="http://images.kingdomofloathing.com/otherimages/zonefont/x.gif" height="10" border="0" /><img src="http://images.kingdomofloathing.com/otherimages/zonefont/p.gif" height="10" border="0" /><img src="http://images.kingdomofloathing.com/otherimages/zonefont/l.gif" height="10" border="0" /><img src="http://images.kingdomofloathing.com/otherimages/zonefont/o.gif" height="10" border="0" /><img src="http://images.kingdomofloathing.com/otherimages/zonefont/r.gif" height="10" border="0" /><img src="http://images.kingdomofloathing.com/otherimages/zonefont/e.gif" height="10" border="0" /><img src="http://images.kingdomofloathing.com/otherimages/zonefont/d.gif" height="10" border="0" /><img src="http://images.kingdomofloathing.com/otherimages/zonefont/rparen.gif" height="10" border="0" /></div></a></div><div id=db_newpyramid style=' position: absolute; top: 110; left: 120; height: 70; width: 60;'><a  href=place.php?whichplace=pyramid><img src="http://images.kingdomofloathing.com/otherimages/desertbeach/pyramid.gif" width=60 height=70 border=0 alt="New Pyramid" title="New Pyramid"></a></div></div><p><a href=main.php>Back to the Main Map</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
Content-Type: text/html; charset=UTF-8
Content-Length: 9214
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
----------
-----From Browser-----
GET /basics.js HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Accept: */*
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Referer: http://127.0.0.1:60080/place.php?whichplace=desertbeach
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
----------
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:45 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/javascript
Connection: close
----------
-----From Browser-----
POST /relay_Guide.ash HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Content-Length: 15
Origin: http://127.0.0.1:60080
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Content-Type: text/plain;charset=UTF-8
Accept: */*
Referer: http://127.0.0.1:60080/relay_guide.ash
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
API status=true
----------
Starting relay script: relay_Guide.ash
Finished relay script: relay_Guide.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:45 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Connection: close
----------
-----From Browser-----
POST /relay_Guide.ash HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Content-Length: 15
Origin: http://127.0.0.1:60080
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Content-Type: text/plain;charset=UTF-8
Accept: */*
Referer: http://127.0.0.1:60080/relay_guide.ash
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
API status=true
----------
Starting relay script: relay_Guide.ash
Finished relay script: relay_Guide.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:46 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Connection: close
----------
-----From Browser-----
POST /relay_Guide.ash HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Content-Length: 15
Origin: http://127.0.0.1:60080
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Content-Type: text/plain;charset=UTF-8
Accept: */*
Referer: http://127.0.0.1:60080/relay_guide.ash
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
API status=true
----------
Starting relay script: relay_Guide.ash
Finished relay script: relay_Guide.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:47 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Connection: close
----------
-----From Browser-----
POST /relay_Guide.ash HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Content-Length: 15
Origin: http://127.0.0.1:60080
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Content-Type: text/plain;charset=UTF-8
Accept: */*
Referer: http://127.0.0.1:60080/relay_guide.ash
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
API status=true
----------
Starting relay script: relay_Guide.ash
Finished relay script: relay_Guide.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:48 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Connection: close
----------
-----From Browser-----
POST /relay_Guide.ash HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Content-Length: 15
Origin: http://127.0.0.1:60080
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Content-Type: text/plain;charset=UTF-8
Accept: */*
Referer: http://127.0.0.1:60080/relay_guide.ash
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
API status=true
----------
Starting relay script: relay_Guide.ash
Finished relay script: relay_Guide.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:49 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Connection: close
----------
-----From Browser-----
POST /relay_Guide.ash HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Content-Length: 15
Origin: http://127.0.0.1:60080
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Content-Type: text/plain;charset=UTF-8
Accept: */*
Referer: http://127.0.0.1:60080/relay_guide.ash
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
API status=true
----------
Starting relay script: relay_Guide.ash
Finished relay script: relay_Guide.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:50 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Connection: close
----------
-----From Browser-----
POST /relay_Guide.ash HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Content-Length: 15
Origin: http://127.0.0.1:60080
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Content-Type: text/plain;charset=UTF-8
Accept: */*
Referer: http://127.0.0.1:60080/relay_guide.ash
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
API status=true
----------
Starting relay script: relay_Guide.ash
Finished relay script: relay_Guide.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:51 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Connection: close
----------
-----From Browser-----
POST /relay_Guide.ash HTTP/1.1
Host: 127.0.0.1:60080
Connection: keep-alive
Content-Length: 15
Origin: http://127.0.0.1:60080
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 OPR/23.0.1522.58 (Edition Next)
Content-Type: text/plain;charset=UTF-8
Accept: */*
Referer: http://127.0.0.1:60080/relay_guide.ash
Accept-Encoding: gzip,deflate,lzma,sdch
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200; chatpwd=427
API status=true
----------
Starting relay script: relay_Guide.ash
Finished relay script: relay_Guide.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Sat Jul 26 01:49:52 EDT 2014
Server: KoLmafia v16.3
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Connection: close
----------
 

Veracity

Developer
Staff member
Here is the key thing I extracted from your log:

Code:
POST /choice.php HTTP/1.1
Starting relay script: choice.ash
Requesting: http://www.kingdomofloathing.com/choice.php?pwd&whichchoice=793&option=4
POST /relay_Guide.ash HTTP/1.1
Starting relay script: relay_Guide.ash
Finished relay script: relay_Guide.ash
HTTP/1.1 200 OK
Retrieved: http://www.kingdomofloathing.com/choice.php?pwd&whichchoice=793&option=4
Field: null = [HTTP/1.1 302 Found]
Field: Location = [shop.php?whichshop=shore]
Requesting: http://www.kingdomofloathing.com/shop.php?whichshop=shore
Retrieved: http://www.kingdomofloathing.com/shop.php?whichshop=shore
ResponseText has 14237 characters.
Finished relay script: choice.ash
HTTP/1.1 200 OK
When you selected the option to take the choice, it invoked your relay script, choice.ash.
Your script asked for the page and it came back with a redirect.
KoLmafia helpfully followed the redirect for you and fetched shop.php
Your choice.ash script did what it wanted with the page text and exited.

Subsequent actions in the shop came from shop.ash and called shop.shore.ash.

I point you to the following revisions:

r12648 | veracity0 | 2013-09-17 16:34:01 -0400 (Tue, 17 Sep 2013) | 2 lines
Follow redirections within the no-argument version of visit_url()

r12649 | veracity0 | 2013-09-17 16:45:30 -0400 (Tue, 17 Sep 2013) | 3 lines
Relay scripts can call visit_url with arguments to visit a different location.
Those get executed as RelayRequests, too, and therefore must follow redirects

This was done in response to this bug report. Notice that I commented "Seems a little funky for a relay script; what if you are redirecting to fight.php or choice.php or ... anything ... which might want to be handled by a different relay script?" - and that is exactly what is happening here.

So, you are in choice.ash and request the page, and when KoL says "now fetch shop.ash", we fetch it and give it to your script. If we refused to do that and returned a blank page to your script, it would exit and do nothing - and we would never follow the redirect.

Your solution, since you control choice.ash, is to look at the URL you were called with, using get_path_full() - or perhaps look at the form fields with form_fields() - and if it is whichchoice=793 and option=4, you know that if you submit it, it will redirect to shop.php. So, you simply exit without asking for the page. KoLmafia will submit it, follow the redirect, and call shop.shore.ash.
 

Bale

Minion
Whoa!

Thank you for debugging my problem. I hadn't realized that a choice relay would do that. It makes perfect sense now that you've pointed it out. It was indeed solved as soon as I made use of if(form_field("whichchoice") == "793") return; in my choice.ash override.

I'm really sorry I put you to so much trouble to sort out my problem. I've changed the tag from "Feature" to "Bug - Not a Bug" because that seems the best way to categorize my mistaken thread.

Thank you so much for the attention.
 
Last edited:
Top