1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
è`›[c@sÜddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
dZ dZ d„Z d„Zd„Zd„Zd„Zd    „Zd
„Zd „ZdS( iÿÿÿÿNsFamilyPartyFB_QuestionID%ssFamilyPartyFB_AnswerTick%scCst|ƒdS(N(tNotifyFamilyPartyQuestion(t    curPlayer((sL.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerFamilyParty.pyt OnPlayerLogin(s
cCsH|jƒtjkrdS|jƒ}|tjkrDdtj|<ndS(Ni(tGetMapIDtChConfigtDef_FBMapID_FamilyPartytGetIDt
PyGameDatatg_partyheroAnswerDict(RtticktplayerID((sL.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerFamilyParty.pytOnPlayerChangeMap,s  cCs‚tjƒ}|jtjtjƒ}|dkr5dS|jƒ}|sKdS|jt|ƒ}|shdSt    j
|d|gƒdS(Nit Party_Topic( t    GameWorldt GetGameWorldt GetDictByKeyt ShareDefinetDef_Notify_WorldKey_FBFuncStateRRt GetFamilyIDtFamilyPartyFB_QuestionIDt PlayerControlt
NotifyCode(Rt    gameWorldtstatet curFamilyidt
questionID((sL.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerFamilyParty.pyR5s   cCsˆ|dkr®it_it_gt_it_tjƒ}tjƒ}xctd|j    ƒƒD]I}|j
|ƒ}|j ƒ}|j t |dƒ|j t|dƒq^Wn|dkr„tjdtjtjfƒd}|||g}tjr•tƒ}tjd|ƒtjddƒ}    xqt|ƒD]`\}}
|
d \}} | ||<tjƒj|ƒ}|suq.ntj||jƒ|    ƒq.Wntjdd    |ƒtjr>tjd \} } tjdd
ƒ}|\}}}tj|d f}tjd |ƒtjd ||| g|ƒtjdd | gƒntjj ƒ}|r„tjdƒ}|rtj!d||ƒqq„ndS(Niis< ÏÉÃËÑç»á½áËã g_familyAnswerDict=%s, g_familyPartyTopInfo=%stnulls    Ñç»á½áÊø sortFamilyList=%st PartyRewardiitParty_TopThreeits$·¢ËÍÏÉÃËÑç»á´ðÌâÍõÓʼþ   itemList=%stParty_TopPlayert FamilyParty("Rtg_questionIDHistorytg_familyAnswerDicttg_familyPartyTopInfoRR RtGetFamilyManagertrangetGetCounttGetAtRtSetDictRtFamilyPartyFB_AnswerTicktLogt__GetFamilyAnswerRankListtDebugLogt IpyGameDataPYt
GetFuncCfgt    enumeratet
FindFamilytPlayerFamilyRedPackettCreatNewFamilyRedPackett GetLeaderIDRt WorldNotifytGetFuncEvalCfgRtDef_MailFormattPlayerCompensationtSendPersonalItemMailExtkeyst SendMailByKey(RRt familyManagertitfamilytfamilyIDtnoneStrttopfamilyNameListtsortFamilyListt    redPackIDt
familyInfot
familyNamet    topHeroIDt topHeroNamet
rewardInfotmailKeytdaytitemListtcontenttjoinPlayerIDListt
joinReward((sL.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerFamilyParty.pytFamilyPartyStateChangeDsT                             
     cCsotjs gStjjƒ}|jdtƒg}x6|d D]*\}}|j||d|dgƒq=W|S(Ntcmpiii(RR!titemstsorttCmpFunctappend(R@trankListR=tinfo((sL.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerFamilyParty.pyR*~s    "cCsMt|dd|ddƒ }|dkrIt|dd|ddƒS|S(Nii(RN(telem1telem2tresult((sL.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerFamilyParty.pyRQs  c Csrtjƒ}|jtjtjƒ}|dkr5dStjƒ}x*td|j    ƒƒD]}|j
|ƒ}|j ƒ}|jt |ƒr‘qWn|jt |ƒ}||dkrºqWntjj|gƒ}tjƒjƒ}    x\tdƒD]N}tjd|    ƒ}
|
|ks|dkrî|j|
ƒ|tj|<PqîqîW|jt ||
ƒtj|d|
gƒqWWdS(Niiiˆi2i1R (R RRRRRRR#R$R%R&RRR(RR tgetR,tIPY_DatatGetQuestionBankCounttxrangetrandomtrandintRRR'Rt FamilyNotify( R    RRR:R;R<R=t
answerTickthistoryQuestionIDListt questionCntR((sL.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerFamilyParty.pytFamilyParty_Process“s0      cCswtjƒ}|jtjtjƒ}|dkr5dS|jƒ}|sKdS|jt|ƒ}|shdSt    j
ƒj |dƒ}t |j ƒƒ}tj|ƒ}    tj|    ƒ}    |    jƒ}    |    |k}
|jƒ} tjd||    f| ƒ|
rstjd| ƒ|jƒ} |jt|dƒ|jt||ƒtj|d| gƒ|tjkrŠtj|dcd7<|tj|d<n%tj|ƒ} d|| gtj|<tjj| dƒdtj| <tjrtj| tjtjdkr| | gt_qn| | gt_t ƒtjdtjtjdg}tj!tj"|ƒ|j#dddddƒndS(Nis    answer=%s  ChContent=%ss    ´ð¶ÔÁË! %sit Party_AnswertFamilyPartyAnswerR($R RRRRRRRRR,RYtGetQuestionBankByIndextevalt    GetAnswert
PlayerTalktChangeVoiceChatt    CodeToGBKtstripRR+tGetNameR'R(RR^RR!t PlayerFamilytGetFamilyName_ByIDRRXR"R*tSendMapServerMsgExt#Def_Notify_WorldKey_FamilyPartyInfotMapServer_QueryPlayerResult(RRJR    RRRRtipyDatat
answerListt    ChContenttisRightR
t
playerNameRCtmsgList((sL.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerFamilyParty.pyt OnTalkFamily¶sL            !'(R RmRRR,R6RR0RhRR\RR(RR RRMR*RQRbRx(((sL.\ServerPython\CoreServerGroup\GameServer\Script\Player\PlayerFamilyParty.pyt<module>s(                               :            #