case ItemPool.DINGHY_PLANS:
if ( InventoryManager.hasItem( ItemPool.DINGY_PLANKS ) )
{
return new UseLink( itemId, 1, "use", "inv_use.php?which=3&whichitem=" );
}
if ( HermitRequest.getWorthlessItemCount() > 0 )
{
return new UseLink( ItemPool.DINGY_PLANKS, 1, "planks", "hermit.php?autopermit=on&action=trade&quantity=1&whichitem=" );
}
return new UseLink( ItemPool.DINGY_PLANKS, 1, "planks", "hermit.php?autoworthless=on&autopermit=on&action=trade&quantity=1&whichitem=" );
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
KoLmafia v15.4 r11388, Windows 7, Java 1.7.0_05
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Please note: do not post this log in the KoLmafia thread. If you
would like the 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 the log as an attachment.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Timestamp: Fri Aug 10 06:50:28 EDT 2012
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Unexpected error, debug log printed.
class java.lang.NullPointerException: null
java.lang.NullPointerException
at net.sourceforge.kolmafia.request.CoinMasterRequest.buyStuff(CoinMasterRequest.java:430)
at net.sourceforge.kolmafia.request.CoinMasterRequest.buyStuff(CoinMasterRequest.java:423)
at net.sourceforge.kolmafia.request.CoinMasterRequest.registerRequest(CoinMasterRequest.java:653)
at net.sourceforge.kolmafia.request.HermitRequest.registerRequest(HermitRequest.java:511)
at net.sourceforge.kolmafia.RequestLogger.doRegister(RequestLogger.java:928)
at net.sourceforge.kolmafia.RequestLogger.registerRequest(RequestLogger.java:476)
at net.sourceforge.kolmafia.request.GenericRequest.execute(GenericRequest.java:1386)
at net.sourceforge.kolmafia.request.GenericRequest.run(GenericRequest.java:1328)
at net.sourceforge.kolmafia.request.RelayRequest.run(RelayRequest.java:2056)
at net.sourceforge.kolmafia.RequestThread.postRequest(RequestThread.java:222)
at net.sourceforge.kolmafia.RequestThread.postRequest(RequestThread.java:185)
at net.sourceforge.kolmafia.webui.RelayAgent.readServerResponse(RelayAgent.java:520)
at net.sourceforge.kolmafia.webui.RelayAgent.performRelay(RelayAgent.java:159)
at net.sourceforge.kolmafia.webui.RelayAgent.run(RelayAgent.java:132)
Got an error when using the use link,
Code:=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= KoLmafia v15.4 r11388, Windows 7, Java 1.7.0_05 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Please note: do not post this log in the KoLmafia thread. If you would like the 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 the log as an attachment. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Timestamp: Fri Aug 10 06:50:28 EDT 2012 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Unexpected error, debug log printed. class java.lang.NullPointerException: null java.lang.NullPointerException at net.sourceforge.kolmafia.request.CoinMasterRequest.buyStuff(CoinMasterRequest.java:430) at net.sourceforge.kolmafia.request.CoinMasterRequest.buyStuff(CoinMasterRequest.java:423) at net.sourceforge.kolmafia.request.CoinMasterRequest.registerRequest(CoinMasterRequest.java:653) at net.sourceforge.kolmafia.request.HermitRequest.registerRequest(HermitRequest.java:511) at net.sourceforge.kolmafia.RequestLogger.doRegister(RequestLogger.java:928) at net.sourceforge.kolmafia.RequestLogger.registerRequest(RequestLogger.java:476) at net.sourceforge.kolmafia.request.GenericRequest.execute(GenericRequest.java:1386) at net.sourceforge.kolmafia.request.GenericRequest.run(GenericRequest.java:1328) at net.sourceforge.kolmafia.request.RelayRequest.run(RelayRequest.java:2056) at net.sourceforge.kolmafia.RequestThread.postRequest(RequestThread.java:222) at net.sourceforge.kolmafia.RequestThread.postRequest(RequestThread.java:185) at net.sourceforge.kolmafia.webui.RelayAgent.readServerResponse(RelayAgent.java:520) at net.sourceforge.kolmafia.webui.RelayAgent.performRelay(RelayAgent.java:159) at net.sourceforge.kolmafia.webui.RelayAgent.run(RelayAgent.java:132)
sourceforge/kolmafia/webui/UseLinkDecorator.java
770: if ( InventoryManager.hasItem( ItemPool.DINGY_PLANKS ) )
777: return new UseLink( ItemPool.DINGY_PLANKS, 1, "planks", "hermit.php?autopermit=on&action=trade&quantity=1&whichitem=" );
sourceforge/kolmafia/request/UseItemRequest.java
2369: if ( InventoryManager.hasItem( ItemPool.DINGY_PLANKS ) )
I think I'd like to see a "buy planks" link which buys the planks - using ajax, perhaps, so all you see is the result - with a "use plans" link on the newly acquired planks (which happens already, if you have the plans).
javascript:singleUse('store.php','phash&buying=1&which=3&whichitem=140&ajax=1');singleUse('inv_use.php','whichitem=146&pwd&ajax=1');void(0);