Bug - Fixed Cannot multi-sell to coinmaster with sell() command?

Bale

Minion
This used to work. It broke a few weeks ago. Regardless of quantity, the sell() command only trades one item to the coinmaster. The coinmaster frame works fine though; it is only the ash command that is bugged.

> inv bead

green clay bead
pink clay bead (3)
purple clay bead (2)
reinforced beaded headband (4)

> ash sell($coinmaster[Quartersmaster], 2, $item[purple clay bead]);

Visiting the Quartersmaster...
You acquire 3 quarters
Quartersmaster successfully looted!
Returned: true

> inv bead

green clay bead
pink clay bead (3)
purple clay bead
reinforced beaded headband (4)

> ash sell($coinmaster[Quartersmaster], 2, $item[purple clay bead]);

Visiting the Quartersmaster...
You acquire 3 quarters
Quartersmaster successfully looted!
Returned: true

> ash sell($coinmaster[Quartersmaster], 3, $item[pink clay bead]);

Visiting the Quartersmaster...
You acquire 1 quarter
Quartersmaster successfully looted!
Returned: true

> inv bead

green clay bead
pink clay bead (2)
reinforced beaded headband (4)
 
Last edited:

Bale

Minion
I'll grab a debug log since I've still got 2 pink beads...

> debug on

> ash sell($coinmaster[Quartersmaster], 2, $item[pink clay bead]);

Visiting the Quartersmaster...
You acquire 1 quarter
Quartersmaster successfully looted!
Returned: true

> debug off

Code:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
         KoLmafia v16.8 r15585, Windows 7, Java 1.8.0_40
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 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: Fri Mar 13 02:26:41 EDT 2015
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


-----From Browser-----
POST /relay_Guide.ash HTTP/1.1
Host: localhost:60080
Connection: keep-alive
Content-Length: 15
Origin: http://localhost:60080
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.74 Safari/537.36 OPR/28.0.1750.36 (Edition beta)
Content-Type: text/plain;charset=UTF-8
Accept: */*
Referer: http://localhost:60080/relay_guide.ash
Accept-Encoding: gzip, deflate, lzma
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200
API status=true
----------
Starting relay script: relay_Guide.ash
Finished relay script: relay_Guide.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Fri Mar 13 02:26:45 EDT 2015
Server: KoLmafia v16.8
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: localhost:60080
Connection: keep-alive
Content-Length: 15
Origin: http://localhost:60080
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.74 Safari/537.36 OPR/28.0.1750.36 (Edition beta)
Content-Type: text/plain;charset=UTF-8
Accept: */*
Referer: http://localhost:60080/relay_guide.ash
Accept-Encoding: gzip, deflate, lzma
Accept-Language: en-US,en;q=0.8
Cookie: frcm_style=3; charpwd=200
API status=true
----------
Starting relay script: relay_Guide.ash
> ash sell($coinmaster[Quartersmaster], 2, $item[pink clay bead]);

Visiting the Quartersmaster...
Finished relay script: relay_Guide.ash
-----To Browser-----
HTTP/1.1 200 OK
Date: Fri Mar 13 02:26:50 EDT 2015
Server: KoLmafia v16.8
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Connection: close
----------
class net.sourceforge.kolmafia.request.QuartersmasterRequest
Connecting to bigisland.php...

Requesting: http://www.kingdomofloathing.com/bigisland.php?place=camp&whichcamp=2&action=turnin&whichitem=2358&quantity=1
3 request properties
Field: Cookie = [appserver=www9; PHPSESSID=127n4c0sbsobhmvvvq520ca447]
Field: User-Agent = [KoLmafia v16.8]
Field: Content-Type = [application/x-www-form-urlencoded]

Retrieving server reply...

Retrieved: http://www.kingdomofloathing.com/bigisland.php?place=camp&whichcamp=2&action=turnin&whichitem=2358&quantity=1
10 header fields
Field: Transfer-Encoding = [chunked]
Field: null = [HTTP/1.1 200 OK]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
Field: Server = [nginx/1.0.15]
Field: Connection = [keep-alive]
Field: Pragma = [no-cache]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Date = [Fri, 13 Mar 2015 06:26:55 GMT]
Field: X-Powered-By = [PHP/5.3.3]
Field: Content-Type = [text/html; charset=UTF-8]

Retrieving server reply
ResponseText has 18749 characters.
<html><head><script language=Javascript><!--if (parent.frames.length == 0) location.href="game.php";top.charpane.location.href="charpane.php";//--></script><script language=Javascript src="//images.kingdomofloathing.com/scripts/keybinds.min.2.js"></script><script language=Javascript src="//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="//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.20150220.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=195a8220efe78d48f5cae46b0cee3f44" 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=195a8220efe78d48f5cae46b0cee3f44" 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=195a8220efe78d48f5cae46b0cee3f44" 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=195a8220efe78d48f5cae46b0cee3f44" 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 if (window.dojaxFailure) window.dojaxFailure(parts[1]);else if (top.chatpane.handleMessage) top.chatpane.handleMessage({type: 'event', msg: 'Oops!  Sorry, Dave, you appear to be ' + 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>document.getElementById('quantity').select();</script><link rel="stylesheet" type="text/css" href="//images.kingdomofloathing.com/styles.20150113.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>Results:</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td>"Hey, thanks, bra.  I can give you, like, 1 quarter for that gear.  Nice goin', bra."</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 Orcish Frat House</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><p>You walk into the Quartersmaster's room.  He's busily using a pocketknife to scratch a crude (in every sense of the word) bit of graffiti into the countertop, so it takes a few minutes for him to notice you. "Oh, hey bra," he says. "Quick, look and tell me if I spelled this word right."<p>"Actually," you say, "it ends with -is, not -us, but you're close."<p>"Thanks, bra.  Ah, good, bra, you've got some gear to trade in!  Here's what you can get for it, bra."<center><form action=bigisland.php?method=post><input type=hidden name=action value="turnin"><input type=hidden name=pwd value=195a8220efe78d48f5cae46b0cee3f44><input type=hidden name=whichcamp value=2><select name=whichitem><option value=2032>bullet-proof corduroys (4) (1 quarter each)</option><option value=2354>communications windchimes (2) (2 quarters each)</option><option value=2031>didgeridooka (1) (2 quarters each)</option><option value=2360>green clay bead (1) (5 quarters each)</option><option value=2361>hippy medical kit (1) (3 quarters each)</option><option value=2029>hippy protest button (1) (1 quarter each)</option><option value=2336>lead pipe (4) (1 quarter each)</option><option value=2030>Lockenstock™ sandals (1) (2 quarters each)</option><option value=2358>pink clay bead (1) (1 quarter each)</option><option value=2337>reinforced beaded headband (4) (1 quarter each)</option><option value=2033>round purple sunglasses (4) (1 quarter each)</option></select> <input type=text class=text name=quantity size=3 value=1> <input type=submit class=button value="Turn it in"></form></center><p>"You've got 8 quarters on file, bra.  Here's what you can trade them for."<p><form action=bigisland.php method=post><input type=hidden name=action value="getgear"><input type=hidden name=pwd value=195a8220efe78d48f5cae46b0cee3f44><input type=hidden name=whichcamp value=2><center><table><tr><td></td><td></td><td><b>Item:</b></td><td><b>Cost:</b></td><tr><td valign=center><input type=radio name=whichitem value=2350></td><td><img style='vertical-align: middle' class=hand src='http://images.kingdomofloathing.com/itemimages/beer.gif' onclick='descitem(263689541)'></td><td><b>beer bomb</b>   </td><td>1 quarter</td></tr><tr><td valign=center><input type=radio name=whichitem value=2067></td><td><img style='vertical-align: middle' class=hand src='http://images.kingdomofloathing.com/itemimages/sakebomb.gif' onclick='descitem(810136258)'></td><td><b>sake bomb</b>   </td><td>1 quarter</td></tr><tr><td valign=center><input type=radio name=whichitem value=2402></td><td><img style='vertical-align: middle' class=hand src='http://images.kingdomofloathing.com/itemimages/gauzegarter.gif' onclick='descitem(971643916)'></td><td><b>gauze garter</b>   </td><td>2 quarters</td></tr><tr><td valign=center><input type=radio name=whichitem value=2389></td><td><img style='vertical-align: middle' class=hand src='http://images.kingdomofloathing.com/itemimages/monstar.gif' onclick='descitem(762465625)'></td><td><b>Monstar energy beverage</b>   </td><td>3 quarters</td></tr><tr><td valign=center><input type=radio name=whichitem value=2351></td><td><img style='vertical-align: middle' class=hand src='http://images.kingdomofloathing.com/itemimages/radiogaga.gif' onclick='descitem(728656237)'></td><td><b>superamplified boom box</b>   </td><td>4 quarters</td></tr><tr><td valign=center><input type=radio name=whichitem value=2686></td><td><img style='vertical-align: middle' class=hand src='http://images.kingdomofloathing.com/itemimages/beerstein.gif' onclick='descitem(780091889)'></td><td><b>commemorative war stein</b>   </td><td>5 quarters</td></tr><tr><td valign=center><input type=radio name=whichitem value=2511></td><td><img style='vertical-align: middle' class=hand src='http://images.kingdomofloathing.com/itemimages/fgf.gif' onclick='descitem(738860128)'></td><td><b>Frat Army FGF</b>   </td><td>10 quarters</td></tr><tr><td valign=center><input type=radio name=whichitem value=2387></td><td><img style='vertical-align: middle' class=hand src='http://images.kingdomofloathing.com/itemimages/foamfinger.gif' onclick='descitem(709828596)'></td><td><b>giant foam finger</b>   </td><td>15 quarters</td></tr><tr><td valign=center><input type=radio name=whichitem value=2066></td><td><img style='vertical-align: middle' class=hand src='http://images.kingdomofloathing.com/itemimages/kicks.gif' onclick='descitem(147761182)'></td><td><b>kick-ass kicks</b>   </td><td>15 quarters</td></tr><tr><td valign=center><input type=radio name=whichitem value=2388></td><td><img style='vertical-align: middle' class=hand src='http://images.kingdomofloathing.com/itemimages/tongs.gif' onclick='descitem(203037613)'></td><td><b>war tongs</b>   </td><td>20 quarters</td></tr><tr><td valign=center><input type=radio name=whichitem value=2398></td><td><img style='vertical-align: middle' class=hand src='http://images.kingdomofloathing.com/itemimages/energyiv.gif' onclick='descitem(139612153)'></td><td><b>energy drink IV</b>   </td><td>25 quarters</td></tr><tr><td valign=center><input type=radio name=whichitem value=2386></td><td><img style='vertical-align: middle' class=hand src='http://images.kingdomofloathing.com/itemimages/kegshield.gif' onclick='descitem(268412638)'></td><td><b>keg shield</b>   </td><td>30 quarters</td></tr><tr><td valign=center><input type=radio name=whichitem value=2071></td><td><img style='vertical-align: middle' class=hand src='http://images.kingdomofloathing.com/itemimages/perfpaddle.gif' onclick='descitem(874003168)'></td><td><b>perforated battle paddle</b>   </td><td>35 quarters</td></tr><tr><td valign=center><input type=radio name=whichitem value=2401></td><td><img style='vertical-align: middle' class=hand src='http://images.kingdomofloathing.com/itemimages/beerbong.gif' onclick='descitem(269933574)'></td><td><b>beer bong</b>   </td><td>40 quarters</td></tr><tr><td valign=center><input type=radio name=whichitem value=2690></td><td><img style='vertical-align: middle' class=hand src='http://images.kingdomofloathing.com/itemimages/ironpaddle.gif' onclick='descitem(397320315)'></td><td><b>cast-iron legacy paddle</b>   </td><td>50 quarters</td></tr><tr><td valign=center><input type=radio name=whichitem value=2689></td><td><img style='vertical-align: middle' class=hand src='http://images.kingdomofloathing.com/itemimages/beerapult.gif' onclick='descitem(550532424)'></td><td><b>beer-a-pult</b>   </td><td>50 quarters</td></tr><tr><td valign=center><input type=radio name=whichitem value=2068></td><td><img style='vertical-align: middle' class=hand src='http://images.kingdomofloathing.com/itemimages/teqgrenade.gif' onclick='descitem(468076558)'></td><td><b>tequila grenade</b>   </td><td>2 quarters</td></tr><tr><td valign=center><input type=radio name=whichitem value=2400></td><td><img style='vertical-align: middle' class=hand src='http://images.kingdomofloathing.com/itemimages/molotov.gif' onclick='descitem(149097593)'></td><td><b>molotov cocktail cocktail</b>   </td><td>2 quarters</td></tr><tr><td colspan=4 align=center><input type=text class=text size=3 name=quantity value=1> <input type=submit class=button value="Get outfitted"></td></tr></table></form></center></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 Mysterious Island of Mystery</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><Table cellpadding=0 cellspacing=0><tr><td class=small align=center valign=center width=560 colspan=7 height=30><img src="http://images.kingdomofloathing.com/otherimages/bigisland/top.gif" width=560 height=30 border=0></td></tr><tr><td class=small align=center valign=center width=30 rowspan=4 height=400><img src="http://images.kingdomofloathing.com/otherimages/bigisland/left.gif" width=30 height=400 border=0></td><td class=small align=center valign=center width=100 height=100><img src="http://images.kingdomofloathing.com/otherimages/bigisland/1.gif" width=100 height=100 border=0></td><td class=small align=center valign=center width=100 height=100><a href="bigisland.php?place=junkyard" alt="The Junkyard" title="The Junkyard"><img src="http://images.kingdomofloathing.com/otherimages/bigisland/2.gif" width=100 height=100 border=0></a></td><td class=small align=center valign=center width=100 height=100><a href="bigisland.php?place=orchard" alt="The Organic Orchard" title="The Organic Orchard"><img src="http://images.kingdomofloathing.com/otherimages/bigisland/3.gif" width=100 height=100 border=0></a></td><td class=small align=center valign=center width=100 height=100><img src="http://images.kingdomofloathing.com/otherimages/bigisland/4.gif" width=100 height=100 border=0></td><td class=small align=center valign=center width=100 height=100><img src="http://images.kingdomofloathing.com/otherimages/bigisland/5.gif" width=100 height=100 border=0></td><td class=small align=center valign=center width=30 rowspan=4 height=400><img src="http://images.kingdomofloathing.com/otherimages/bigisland/right.gif" width=30 height=400 border=0></td></tr><tr><td class=small align=center valign=center width=100 height=100><a href="bigisland.php?place=concert" alt="Mysterious Island Arena" title="Mysterious Island Arena"><img src="http://images.kingdomofloathing.com/otherimages/bigisland/6.gif" width=100 height=100 border=0></a></td><td class=small align=center valign=center width=300 height=200 rowspan=2 colspan=3><table cellpadding=0 cellspacing=0><tr><td width=150 height=200><a href="adventure.php?snarfblat=132"><img src="http://images.kingdomofloathing.com/otherimages/bigisland/bfleft0.gif" width=150 height=200 border=0 alt="The Battlefield [Image #0] (1)" title="The Battlefield [Image #0] (1)"></a></td><td><a href="adventure.php?snarfblat=132"><img src="http://images.kingdomofloathing.com/otherimages/bigisland/bfright32.gif" width=150 height=200 border=0 alt="The Battlefield [Image #32] (1)" title="The Battlefield [Image #32] (1)"></a></td></tr></table></td><td class=small align=center valign=center width=100 height=100><a href="bigisland.php?place=camp&whichcamp=1" alt="The Hippy Camp" title="The Hippy Camp"><img src="http://images.kingdomofloathing.com/otherimages/bigisland/10.gif" width=100 height=100 border=0></a></td></tr><tr><td class=small align=center valign=center width=100 height=100><a href="bigisland.php?place=camp&whichcamp=2" alt="The Orcish Frat House" title="The Orcish Frat House"><img src="http://images.kingdomofloathing.com/otherimages/bigisland/11.gif" width=100 height=100 border=0></a></td><td class=small align=center valign=center width=100 height=100><a href="bigisland.php?place=farm" alt="McMillicancuddy's Farm" title="McMillicancuddy's Farm"><img src="http://images.kingdomofloathing.com/otherimages/bigisland/15.gif" width=100 height=100 border=0></a></td></tr><tr><td class=small align=center valign=center width=100 height=100><img src="http://images.kingdomofloathing.com/otherimages/bigisland/16.gif" width=100 height=100 border=0></td><td class=small align=center valign=center width=100 height=100><a href="bigisland.php?place=lighthouse" alt="The Lighthouse" title="The Lighthouse"><img src="http://images.kingdomofloathing.com/otherimages/bigisland/17.gif" width=100 height=100 border=0></a></td><td class=small align=center valign=center width=100 height=100 alt="A Conspicuous Absence of Pirates" title="A Conspicuous Absence of Pirates"><img src="http://images.kingdomofloathing.com/otherimages/bigisland/18.gif" width=100 height=100 border=0></td><td class=small align=center valign=center width=100 height=100><a href="bigisland.php?place=nunnery" alt="Our Lady of Perpetual Indecision" title="Our Lady of Perpetual Indecision"><img src="http://images.kingdomofloathing.com/otherimages/bigisland/19.gif" width=100 height=100 border=0></a></td><td class=small align=center valign=center width=100 height=100><img src="http://images.kingdomofloathing.com/otherimages/bigisland/20.gif" width=100 height=100 border=0></td></tr><tr><td class=small align=center valign=center width=560 colspan=7 height=30><img src="http://images.kingdomofloathing.com/otherimages/bigisland/bottom.gif" width=560 height=30 border=0></td></tr></table><p><Center><A href="main.php">Back to the Main Map</a></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center></body></html>
Processing results...
Processing result: pink clay bead (-1)
You acquire 1 quarter
class net.sourceforge.kolmafia.request.ApiRequest
Connecting to api.php...

Requesting: http://www.kingdomofloathing.com/api.php?what=status&for=KoLmafia
3 request properties
Field: Cookie = [appserver=www9; PHPSESSID=127n4c0sbsobhmvvvq520ca447]
Field: User-Agent = [KoLmafia v16.8]
Field: Content-Type = [application/x-www-form-urlencoded]

Retrieving server reply...

Retrieved: http://www.kingdomofloathing.com/api.php?what=status&for=KoLmafia
10 header fields
Field: null = [HTTP/1.1 200 OK]
Field: Cache-Control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
Field: Server = [nginx/1.0.15]
Field: Connection = [keep-alive]
Field: Pragma = [no-cache]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Content-Length = [2766]
Field: Date = [Fri, 13 Mar 2015 06:26:55 GMT]
Field: X-Powered-By = [PHP/5.3.3]
Field: Content-Type = [text/html; charset=UTF-8]

Retrieving server reply
ResponseText has 2766 characters.
{"playerid":"754005","name":"Bale","hardcore":"1","ascensions":"359","path":"23","sign":"Wallaby","roninleft":"429","casual":"0","drunk":"0","full":"0","turnsplayed":"754586","familiar":"0","hp":"10","mp":"276","meat":"23316","adventures":"51","level":"12","rawmuscle":"7496","rawmysticality":"21780","rawmoxie":"7174","basemuscle":"86","basemysticality":"147","basemoxie":"84","familiarexp":"0","class":"17","lastadv":{"id":"132","name":"The Battlefield (Frat Uniform)","link":"adventure.php?snarfblat=132","container":"bigisland.php"},"title":"12","pvpfights":"54","maxhp":181,"maxmp":417,"spleen":"0","muscle":138,"mysticality":251,"moxie":93,"famlevel":1,"locked":false,"limitmode":0,"daysthisrun":"3","equipment":{"hat":"2069","pants":"2070","weapon":"8143","offhand":"4665","acc1":"5042","acc2":"7765","acc3":"2353","container":"6048","fakehands":0,"cardsleeve":"5001"},"stickers":[0,0,0],"soulsauce":0,"fury":0,"pastathrall":0,"pastathralllevel":1,"folder_holder":["21","12","14","00","00"],"eleronkey":"73bb16f8a6092773d44ed6d9e84648e8","flag_config":{"devskills":0,"shortcharpane":0,"lazyinventory":0,"compactfights":0,"poppvpsearch":0,"questtracker":0,"charpanepvp":"1","australia":0,"fffights":"1","compactchar":0,"noframesize":"1","fullnesscounter":"1","nodevdebug":0,"noquestnudge":0,"nocalendar":0,"alwaystag":0,"clanlogins":0,"quickskills":"1","hprestorers":"1","hidejacko":0,"anchorshelf":"1","showoutfit":"1","wowbar":"1","swapfam":"1","hidefamfilter":0,"invimages":0,"showhandedness":0,"acclinks":"1","invadvancedsort":"1","powersort":"1","autodiscard":0,"unfamequip":"1","invclose":0,"sellstuffugly":0,"oneclickcraft":"1","dontscroll":"1","multisume":"1","threecolinv":0,"profanity":"1","tc_updatetitle":0,"tc_alwayswho":0,"tc_times":"1","tc_combineallpublic":0,"tc_eventsactive":0,"tc_hidebadges":0,"tc_colortabs":0,"tc_modifierkey":0,"tc_tabsonbottom":0,"chatversion":0,"aabosses":0,"compacteffects":"1","slimhpmpdisplay":"1","ignorezonewarnings":"1","whichpenpal":"3","compactmanuel":0,"hideefarrows":0,"questtrackertiny":0,"questtrackerscroll":0,"autoattack":0,"topmenu":0},"recalledskills":0,"freedralph":0,"mcd":"10","pwd":"195a8220efe78d48f5cae46b0cee3f44","rollover":1426303802,"turnsthisrun":571,"familiar_wellfed":0,"intrinsics":[],"familiarpic":"","pathname":"Actually Ed the Undying","effects":{"14c15d7bd15409d39a304e7563b09fe8":["Wisdom of Thoth",5,"thoth","skill:17001","1794"],"4f33419678ca3e8cfdebda240494adaf":["Prayer of Seshat",5,"seshat","skill:17000","1795"],"e9325e8e890f2a27335a564ff7a70837":["Power of Heka",5,"heka","skill:17002","1796"],"a2ed9f5e059a87faca2e4888e0030414":["Purr of the Feline",5,"blackcat","skill:17011","1800"],"e54f33048e615d4598bab444030df180":["Blessing of Serqet",5,"serqet","skill:17004","1801"]}}
Quartersmaster successfully looted!
Returned: true

> debug off
 

Theraze

Active member
Selling looks to be fixed, but buying is also currently broken.
> ash $coinmaster[quartersmaster].available_tokens

Returned: 144

> ashq foreach it in $items[fancy seashell necklace, commemorative war stein] buy(it.seller, floor(it.seller.available_tokens / sell_price(it.seller,it)), it);

Visiting the Quartersmaster...
You acquire an item: commemorative war stein
Quartersmaster successfully looted!

> ashq foreach it in $items[fancy seashell necklace, commemorative war stein] buy(it.seller, floor(it.seller.available_tokens / sell_price(it.seller,it)), it);

Visiting the Quartersmaster...
You acquire an item: commemorative war stein
Quartersmaster successfully looted!
Buying one at a time rather than getting me the 28 it should have.
 

Theraze

Active member
Turning in 9 wicker shield...
Visiting the Quartersmaster...
You acquire 18 quarters
Quartersmaster successfully looted!
Saving outfit: Backup
Outfit saved
Putting on outfit: War Hippy Fatigues
Equipment changed.
Visiting the Dimemaster...
You acquire water pipe bomb (4)
Dimemaster successfully looted!
Putting on outfit: Backup
Equipment changed.
Visiting the Quartersmaster...
You acquire commemorative war stein (52)
Quartersmaster successfully looted!
Autoselling items to NPCs...
You gain 52,000 Meat
Confirmed working for both buy and sell with r15592. Thanks!
 
Top