| | |
| | | NotifyFamilyPartyQuestion(curPlayer)
|
| | | return
|
| | |
|
| | | def OnPlayerChangeMap(curPlayer, tick):
|
| | | if curPlayer.GetMapID() != ChConfig.Def_FBMapID_FamilyParty:
|
| | | return
|
| | | playerID = curPlayer.GetID()
|
| | | if playerID not in PyGameData.g_partyheroAnswerDict:
|
| | | PyGameData.g_partyheroAnswerDict[playerID] = 0
|
| | | return
|
| | |
|
| | |
|
| | | def NotifyFamilyPartyQuestion(curPlayer):
|
| | | #刚登录的或刚进仙盟的补发最近的题目
|
| | | gameWorld = GameWorld.GetGameWorld()
|
| | |
| | | PlayerCompensation.SendPersonalItemMailEx('', content, day, [topHeroID], itemList)
|
| | |
|
| | | PlayerControl.WorldNotify(0, 'Party_TopPlayer', [topHeroName])
|
| | | |
| | | #给参与奖励
|
| | | joinPlayerIDList = PyGameData.g_partyheroAnswerDict.keys()
|
| | | if joinPlayerIDList:
|
| | | joinReward = IpyGameDataPY.GetFuncEvalCfg('PartyReward')
|
| | | if joinReward:
|
| | | PlayerCompensation.SendMailByKey('FamilyParty', joinPlayerIDList, joinReward)
|
| | | |
| | | return
|
| | |
|
| | | def __GetFamilyAnswerRankList():
|
| | |
| | | ipyData = IpyGameDataPY.IPY_Data().GetQuestionBankByIndex(questionID-1)
|
| | | answerList = eval(ipyData.GetAnswer())
|
| | | ChContent = PlayerTalk.ChangeVoiceChat(content)
|
| | | ChContent = ChContent.decode(GameWorld.GetCharacterEncoding()).encode(ShareDefine.Def_Game_Character_Encoding)
|
| | | ChContent = GameWorld.CodeToGBK(ChContent)
|
| | | ChContent = ChContent.strip()
|
| | | isRight = ChContent in answerList
|
| | | # if curPlayer.GetMapID() != ChConfig.Def_FBMapID_FamilyParty:
|