def initCharacterQuest(self):
     '''初始化角色任务'''
     characterId = self._owner.baseInfo.id
     processlist = dbtask.getAllProcessInfo(characterId)
     for process in processlist:
         questId = process.get('taskId')
         if process['finished']:
             self._finished.append(questId)
             continue
         quest = Quest(questId,characterId = self._owner.baseInfo.id)
         quest.initQuestData(process)
         quest.setProfession(self._owner.profession.getProfession())
         self._tasks[questId] = quest
 def initCharacterQuest(self):
     '''初始化角色任务'''
     characterId = self._owner.baseInfo.id
     self._MainRecord = dbtask.getMainTaskRecord(characterId)
     if not self._MainRecord:
         dbtask.InitMainTaskRecord(characterId)
         self._MainRecord = {'mainRecord':10000,'status':1}
     processlist = dbtask.getAllProcessInfo(characterId)
     for process in processlist:
         questId = process.get('taskId')
         quest = Quest(questId,characterId = self._owner.baseInfo.id)
         quest.initQuestData(process)
         quest.setProfession(self._owner.profession.getProfession())
         self._tasks[questId] = quest