cehua_wcy
2018-08-27 c6f03d29b8c78ea2298276ddb808bd2289baa9b3
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
x{[c@sxdZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z e dƒ\Z ZZdZdZdZdZdZd    Zd
Zd „Zd „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d„Z"d„Z#d„Z$d„Z%d„Z&d„Z'd„Z(d„Z)dS(sVersion = 2018-04-16 17:20iÿÿÿÿNitFamilyPartyFB_FamilyIDtMap_FamilyPartyFB_StartTicksLastEnterFbDay_%ssXMYH_TotalExp%ssXMYH_TotalExpPoint%ssXMYH_TotalPoint%ssXMYH_HasCollect%scCs=tjƒ}|jtdƒ|jƒ|jtjdƒdS(Ni(t    GameWorldt    GetGameFBt SetGameFBDicttMap_FamilyPartyFB_FamilyIDtClearAllPlayerGameFBDicttChConfigtMap_FBDict_NotifyStart(tticktgameFB((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnOpenFB5s
 
cCstjƒdS(N(tFBCommontDoLogic_FBKickAllPlayer(R    ((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt    OnCloseFBAs
cCs t||ƒS(N(t __CheckEnter(t    curPlayertmapIDtlineIDR    ((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnEnterFBEventMscCs'|jƒdkr#tjdƒtStS(Nis Ã»ÓÐÕ½ÃË£¬²»ÄܽøÈëÕ½ÃËboss¸±±¾£¡(t GetFamilyIDRtDebugLogtFalsetTrue(RR((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyRVs cCs|S(N((RRtlineIdtipyEnterPosInfoR    ((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnGetFBEnterPosgscCsZtjd|jƒƒ|jƒ}tjd|ƒ|dkrGtjSt|ƒ}tjS(NsOnChangeMapAsk  CopyMapID=%ssOnChangeMapAsk playerIDStr=%stt0(ss0(RRt GetCopyMapIDtGetMsgt IPY_GameWorldt    cmeCustomtintt    cmeAccept(taskR    t playerIDStrtplayerID((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnChangeMapAskns   cCsátjƒjƒ}|jƒ}t||ƒs>tj|ƒdStjƒ}tjƒ}t|ƒ}|sytj|ƒdS|j    t
j d|t ƒtj d|ƒ|jtƒsË|jt|jƒƒntjƒjtjƒ}|jt|ƒ|dkrÐ|jt||dƒ|jt|dƒ|jt|dƒ|jt|dƒ|jt|dƒtj|ƒtj|tjƒt j!|tj"ƒt#j$|tjdtj%ƒt&j'|tj(dƒnt)||ƒdS(NiscloseFB_RemainTick=%si(*Rt GetGameWorldtGetMapIDt GetPlayerIDRt PlayerControlt PlayerLeaveFBRt__GetRemainTickt Sync_TimeTickRt tttTowerTakeRRtGetGameFBDictByKeyRRRtGetGameWorldDictByKeyt ShareDefinetDef_Notify_WorldKey_ServerDaytGameFBDict_LastEnterFbDaytSetGameWorldDicttFBPlayerDict_TotalExptFBPlayerDict_TotalExpPointtFBPlayerDict_TotalPointtFBPlayerDict_HasCollectR tClearAreaRewardRecordtAddEnterFBCountRtDef_FBMapID_FamilyPartyt PlayerFamilytAddFamilyActivitytFamilyActive_Partyt EventReportt WriteEvent_FBt CME_Log_StarttPlayerFairyCeremonytAddFCPartyActionCnttDef_PPAct_FamilyPartytDoFBHelp(RR    RR%R
t    gameWorldtcloseFB_RemainTickt openServerDay((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt    DoEnterFBŠs:        cCsStjƒjƒ}tjƒjtƒ}tdtj|ƒdd||ƒ}|S(Niiè(    RtGetMapR(R'R0RtmaxR tGetFBLineStepTime(R    Rt    startTickRG((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyR,­s(c    Cstjƒ}|jƒ}|tkrLtjtjƒr‰tjt    |ƒq‰n=|t    kr‰tjtjƒs›t
ƒtjt |ƒtj ƒt j|ƒq‰tjd|ƒtj|tdƒtjƒjƒ}|jtjƒ}tj|ƒd}|t|ƒkr‰||}tdt|ƒdƒ}||ddkr†|jtƒ}tj|d|gƒtjƒjtj|dƒq†q‰ndS(NtFamilyPartyAreaAwardi'iiiètParty_OverTime(RRt    GetFBStept FB_Step_OpenR tGetFBFuncOpenStateRR;t    SetFBSteptFB_Step_Fightingt GiveJoinPrizet FB_Step_OverR tGameWorldProcesstCloseFBtDoLogicAreaRewardtNotifyCopyMapPlayerFBHelpRERJR(R/RRLtlenRKR,RR*t FamilyNotifyR(    R    R
tfbStepRt notifyIndextnotifySecondListt notifySecondt remaindTicktfamilyID((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt    OnProcess¸s0    
 
&cCsItjƒjƒ}|tjkr%dS|jƒ}tjƒ}tjddƒ\}}t    j
||t t j ƒ|jt|ƒ}||}|jt||ƒtj|ƒj|ƒ|jt|ƒ}|jt|ƒ}    |    tj|}
|
|} | tj} | tj} |jt|| ƒ|jt|| ƒt|dƒdS(Nt PartyRewardii(RRJR(RR;tGetIDR't IpyGameDataPYtGetFuncEvalCfgR<tAddPlayerFamilyActiveValueRR1tDef_AddFAVReason_FamilyPartyR0R7R4R*tAddExpR5R6tDef_PerPointValueRE(RRR%RFtaddPointtaddExpt
totalPointtupdPointtexptexpPointttotalExpt updTotalExptupdExpt updExpPoint((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytFamilyPartyAnswerRightÜs*  
 
   cCs_tjƒjƒ}|tjkr%dStjd|ƒ|dkr[tjƒjt|ƒndS(Ns!    ÏÉÃËÑç»á»î¶¯×´Ì¬±ä¸ü state=%si(    RRJR(RR;RR'R4R(tstateR    R((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnFamilyPartyStateChangeþs cCsŒtjdƒ}|sdStjƒ}x`t|jƒƒD]L}|j|ƒ}|dks8|jƒrkq8nt    j
||t t j ƒq8WdS(NRd(Rft
GetFuncCfgRtGetMapCopyPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextNonetIsEmptyR<RhRR1Ri(t    joinAwardtcopyMapPlayerManagertiR((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyRU s cCsd|jƒS(Ns%s(R)(RR((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytGetPlayerResetWorldPosFBMsg"scCs|jƒ}tj|ƒdS(N(R)R*R+(RR    t curPlayerID((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt OnLeaveFamily)s  cCstS(N(R(((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnPlayerReborn5sc CsLtjƒ}|jƒ}tj||ƒ}|jt|ƒ}|jt|ƒ}||tj    |}|tj    }|tj    }|jt
|ƒ}|t j dƒ7}|jt |ƒ}|jtj|ƒ}    |    t j ddƒkrìdnd}
i|tj6|tj6|tj6|d6|
d6} tjd| |ƒtj|| ƒdS(    NRdRNiiit
hasCollectt    isFullExps DoFBHelp %s(RR'R)R tGetFBAreaRewardExpR0R5R6RRkR7RfRyR8tMap_Player_AreaReward_GetCnttHelp_expt Help_expPointt
Help_scoreRt Notify_FBHelp( RR    RFR%RrRpRqRnR‡tgetCnttisFullthelpDict((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyRE=s"    $2cCs=tjƒjt|jƒƒ}|r9tj|dƒdStS(NtParty_HadCollected(RR'R0R8ReR*t
NotifyCodeR(RtcurNPCR    R‡((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt OnCanCollect\s
cCstjddƒdS(NtFamilyPartyDeskiiè(RfRy(RR”((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytGetFBPrepareTimehscCs¼|jƒ}tjƒ}|jt|dƒtjd|ƒtjdƒ}tj    |d|gƒt
j ||t t jƒ|jt|ƒ}||}|jt||ƒt|dƒdS(Nis    Ñç»á²É¼¯³É¹¦£¡R–tParty_CollectSuccessi(ReRR'R4R8RRfRyR*R“R<RhRR1RiR0R7RE(RR    R%RFRlRnRo((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt OnCollectOKps  
 (*t__doc__R1R RRR*RR<RfRWRBR?trangeRQRTRVRRR3R5R6R7R8R RRRRR&RIR,RcRvRxRURƒR…R†RER•R—R™(((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt<module>sL                                                 #         $    "