public static void updateQuests(final Player player){
  final EntityManager entityMgr=SingletonRepository.getEntityManager();
  migrateSumTimedQuestSlot(player,"Valo_concoct_potion","valo_concoct_potion");
  for (  final String questSlot : player.getQuests()) {
    if (player.hasQuest(questSlot)) {
      final String itemString=player.getQuest(questSlot);
      final String[] parts=itemString.split(";");
      final StringBuilder buffer=new StringBuilder();
      boolean first=true;
      for (int i=0; i < parts.length; ++i) {
        final String oldName=parts[i];
        String newName=UpdateConverter.updateItemName(oldName);
        if (!newName.equals(oldName)) {
          if (!entityMgr.isCreature(newName) && !entityMgr.isItem(newName)) {
            newName=oldName;
          }
        }
        if (first) {
          buffer.append(newName);
          first=false;
        }
 else {
          buffer.append(';');
          buffer.append(newName);
        }
      }
      player.setQuest(questSlot,buffer.toString());
    }
  }
  fixKillQuestsSlots(player);
  fixDailyMonsterQuestSlot(player);
  fixMazeQuestSlot(player);
}

public static void updateQuests ( final Player player ) { final EntityManager entityMgr = SingletonRepository . getEntityManager ( ) ; migrateSumTimedQuestSlot ( player , "Valo_concoct_potion" , "valo_concoct_potion" ) ; for ( final String questSlot : player . getQuests ( ) ) { if ( player . hasQuest ( questSlot ) ) { final String itemString = player . getQuest ( questSlot ) ; final String [ ] parts = itemString . split ( ";" ) ; final StringBuilder buffer = new StringBuilder ( ) ; boolean first = true ; for ( int i = 0 ; i < parts . length ; ++ i ) { final String oldName = parts [ i ] ; String newName = UpdateConverter . updateItemName ( oldName ) ; if ( ! newName . equals ( oldName ) ) { if ( ! entityMgr . isCreature ( newName ) && ! entityMgr . isItem ( newName ) ) { newName = oldName ; } } if ( first ) { buffer . append ( newName ) ; first = false ; } else { buffer . append ( ';' ) ; buffer . append ( newName ) ; } } player . setQuest ( questSlot , buffer . toString ( ) ) ; } } fixKillQuestsSlots ( player ) ; fixDailyMonsterQuestSlot ( player ) ; fixMazeQuestSlot ( player ) ; }
update the quest slot to the current version .
