New Content - Implemented Guzzlr tablet - May Item of the month

fredg1

Member
Code:
4572  if ( QuestDatabase.isQuestLaterThan( Quest.GUZZLR, QuestDatabase.UNSTARTED ) [COLOR="#FF0000"]&&
4573     Preferences.getString( "guzzlrQuestLocation" ).equals( KoLAdventure.lastLocationName )[/COLOR] )
4574  {
4575     int incr = Math.max( 3, 10 - Preferences.getInteger( "_guzzlrDeliveries" ) );
4576     if ( KoLCharacter.hasEquipped( ItemPool.GUZZLR_SHOES ) )
4577     {
4578        incr = (int) Math.floor( 1.5 * incr );
4579     }
4580     Preferences.increment( "guzzlrDeliveryProgress", incr );
4581  }
4582
4583  if ( QuestDatabase.isQuestLaterThan( Quest.GUZZLR, QuestDatabase.UNSTARTED ) &&
4584     responseText.contains( "You finally manage to track down" ) ) [...]

A little thing to note here: this doesn't seem to take into consideration whether or not you have the requested item in inventory, which is actually mandatory for progression.

This doesn't mean that you'd need to track the possession of the item, though (especially convoluted for platinum quests)! You could instead make another new property which tracks the name of the client, and see if this name appears in the response text (which, so far, consistently does when making progress on the quest. It also does NOT appear when you DON'T make progress/have the item).


So you could make a property with a name in the likes of
Code:
guzzlrQuestClient
, and on line 4573, replace the
Code:
Preferences.getString( "guzzlrQuestLocation" ).equals( KoLAdventure.lastLocationName ) )
by
Code:
4572  if ( QuestDatabase.isQuestLaterThan( Quest.GUZZLR, QuestDatabase.UNSTARTED ) [COLOR="#008000"]&&
4573     responseText.contains( Preferences.getString( "guzzlrQuestClient" ) )[/COLOR] )
 

Erosion

Member
Bug: guzzlrDeliveryProgress isn't reset to 0 when abandoning your previous client. Causes issues for tracking the next day.
 
Top