xdh
2019-01-28 205a0ea7e949e5dc443013f11430681400824ef5
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
aÞJ\c@sØdZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZedƒ\ZZZdZdZdZdZdZd    Zd
Ziad „Zd „Zd „Zd„Z d„Z!d„Z"d„Z#d„Z$d„Z%d„Z&d„Z'd„Z(d„Z)d„Z*d„Z+e,d„Z-d„Z.d„Z/d„Z0d„Z1d„Z2d „Z3dS(!sVersion = 2018-04-16 17:20iÿÿÿÿNitMap_FamilyPartyFB_StartTicksLastEnterFbDay_%ssXMYH_TotalExp%ssXMYH_TotalExpPoint%ssXMYH_TotalPoint%ssXMYH_HasCollect%ss XMYH_HasSit%scCstj|tjdƒdS(Ni(t PlayerControltNomalDictSetPropertytChConfigt$Def_Player_Dict_FamilyPartyAnswerCnt(t    curPlayer((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnFBPlayerOnDay4scCs-tjƒ}|jƒ|jtjdƒdS(Ni(t    GameWorldt    GetGameFBtClearAllPlayerGameFBDictt SetGameFBDictRtMap_FBDict_NotifyStart(tticktgameFB((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnOpenFB=s 
cCstjƒdS(N(tFBCommontDoLogic_FBKickAllPlayer(R ((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt    OnCloseFBHs
cCs t||ƒS(N(t __CheckEnter(RtmapIDtlineIDR ((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnEnterFBEventTscCs'|jƒdkr#tjdƒtStS(Nis Ã»ÓÐÕ½ÃË£¬²»ÄܽøÈëÕ½ÃËboss¸±±¾£¡(t GetFamilyIDRtDebugLogtFalsetTrue(RR((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyR]s cCs|S(N((RRtlineIdtipyEnterPosInfoR ((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnGetFBEnterPosnscCsZtjd|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.pytOnChangeMapAskvs   c Csytjƒjƒ}|jƒ}t||ƒs>tj|ƒdStjƒ}tjƒ}t|ƒ}|sytj|ƒdS|j    t
j d|t ƒtj d|ƒtjƒjtjƒ}|jt|ƒ|dkrÒ|jt||dƒ|jt|dƒ|jt|dƒ|jt|dƒ|jt|dƒ|jt|dƒtj|ƒtj|tjƒtj|tjƒt j!|tjdtj"ƒt#j$|tj%dƒt&j$|tj%dƒntjƒj'ƒ}|t(krýgt(|<n|t(|kr!t(|j)|ƒntj*ƒ}    xEt+|    j,ƒƒD]1}
|    j-|
ƒ}|saq@nt.||t ƒq@WdS(NiscloseFB_RemainTick=%si(/Rt GetGameWorldtGetMapIDt GetPlayerIDRRt PlayerLeaveFBRt__GetRemainTickt Sync_TimeTickR!t tttTowerTakeRRtGetGameWorldDictByKeyt ShareDefinetDef_Notify_WorldKey_ServerDaytGameFBDict_LastEnterFbDaytSetGameWorldDicttFBPlayerDict_TotalExptFBPlayerDict_TotalExpPointtFBPlayerDict_TotalPointtFBPlayerDict_HasCollecttFBPlayerDict_HasSitRtClearAreaRewardRecordtAddEnterFBCountRtDef_FBMapID_FamilyPartyt PlayerFamilytAddFamilyActivitytFamilyActive_Partyt EventReportt WriteEvent_FBt CME_Log_StarttPlayerFairyCeremonytAddFCPartyActionCnttDef_PPAct_FamilyPartytPlayerNewFairyCeremonyt    GetLineIDtg_familyMapPlayerIDDicttappendtGetMapCopyPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextDoFBHelp( RR RR'R t    gameWorldtcloseFB_RemainTickt openServerDayRt playerManagertindex((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt    DoEnterFB“sN          cCsStjƒjƒ}tjƒjtƒ}tdtj|ƒdd||ƒ}|S(Niiè(    RtGetMapR*R)R0RtmaxRtGetFBLineStepTime(R Rt    startTickRP((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyR-Äs(c    CsŸtjƒjƒ}|sdStjƒ}|jƒ}|tkrhtjtj    ƒr›tj
t |ƒq›n3|t kr›tjtj    ƒsÌtj |t dƒgt_tj
t|ƒtjƒtj|ƒq›tj |t dƒtjƒjƒ}|jtjƒ}tj|ƒd}|t|ƒkr›||}tdt|ƒdƒ}||ddkr˜tj|d|gƒtjƒjtj|dƒq˜q›ndS(Nii'iiètParty_OverTime(RR)t GetPropertyIDRt    GetFBStept FB_Step_OpenRtGetFBFuncOpenStateRR<t    SetFBSteptFB_Step_FightingtNotifyCopyMapPlayerFBHelpRNt
PyGameDatatg_familyPartyInfot FB_Step_OverRtGameWorldProcesstCloseFBRUR*tGetGameFBDictByKeyR RWtlenRVR-Rt FamilyNotifyR
(    R tfamilyIDR tfbStepRt notifyIndextnotifySecondListt notifySecondt remaindTick((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt    OnProcessÐs4        
 
&cCs¥tjddƒ\}}tj||ttjtƒtj|ƒj|ƒ|j    t
j ƒ}tj |t
j |dƒt jƒjƒt
jkr¡t|dƒndS(Nt PartyRewardiii(t IpyGameDataPYtGetFuncEvalCfgR=tAddPlayerFamilyActiveValueRR1tDef_AddFAVReason_FamilyPartyRtAddExptNomalDictGetPropertyRRRRRUR*R<RN(RtaddPointtaddExpt curAnswerCnt((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytFamilyPartyAnswerRightöscCs‡tjd|ƒtjƒjƒ}|tjkr6dS|rmtjƒjtƒsƒtjƒj    t|ƒqƒntjƒj    tdƒdS(Ns!    ÏÉÃËÑç»á»î¶¯×´Ì¬±ä¸ü state=%si(
RRRUR*RR<R)R0RR4(tstateR R((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnFamilyPartyStateChange s cCsd|jƒS(Ns%s(R+(RR((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytGetPlayerResetWorldPosFBMsg4scCs|jƒ}tj|ƒdS(N(R+RR,(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.pytOnPlayerRebornGscCsWtjƒ}|jƒ}tj||ƒ}|jtjƒ}tj    ddƒ\}}|j
t |ƒ}    |j
t |ƒ}
||
tj |    ||}|tj }    |tj }
|j
t|ƒ} | ||7} |j
t|ƒ} |j
t|ƒ} |j
tj|ƒ}|tjddƒkr,dnd}i|    tj6|
tj6| tj6| d6|d6| d    6}tjrþg}xNttjddƒD]6\}}|ji|d
6|dd 6|dd 6ƒq‘W||d <itjdd 6tjdd 6|d<n|r/tjƒjƒ}tj|gƒ|d<ntjd||ƒtj||ƒdS(NRpitFamilyPartyAreaAwardiiit
hasCollectt    isFullExpthasSittranktnametcnttfamilyPartyRanktfamilyPartyToptfamilyPartyPlayers DoFBHelp %s(RR)R+RtGetFBAreaRewardExpRvRRRqRrR0R5R6tDef_PerPointValueR7R8R9tMap_Player_AreaReward_GetCntt
GetFuncCfgtHelp_expt Help_expPointt
Help_scoreRaRbt    enumerateRIRGRHtgetRt Notify_FBHelp(RR tisSyncPlayerIDROR'ttotalExpRyRwRxtexptexpPointt
totalPointR‚R„tgetCnttisFullthelpDicttrankListtitinfoR((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyRNPs:    $9    #.
)cCstjƒjt|jƒƒ}|r9tj|dƒdSttj    ddƒƒ}t
j |t j |ƒ}||kr‰tj|dƒdStS(NtParty_HadCollectedtFamilyPartyDeskitGeRen_chenxin_998371(RR)R0R8tGetIDRt
NotifyCodeRgRqRrt
ItemCommontGetItemPackSpaceR!trptItemR(RtcurNPCR R‚t    needSpacet    packSpace((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt OnCanCollect{s cCstjddƒdS(NR¡iiè(RqRŽ(RR¨((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytGetFBPrepareTimesc Cs|jƒ}tjƒ}|jt|dƒtjd|ƒtjddƒ}x6|D].\}}}tj    ||||t
j gƒqUWtj dƒ}    t j|d|    gƒtj||    ttjƒ|jt|ƒ}
|
|    } |jt|| ƒt|dƒdS(Nis    Ñç»á²É¼¯³É¹¦£¡R¡itParty_CollectSuccessi(R£RR)R4R8RRqRrt ItemControlertGivePlayerItemR!R§RŽRR¤R=RsRR1RtR0R7RN( RtnpcIDR R'ROt    itemAwardtitemIDt    itemCounttisBindRwR™tupdPoint((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt OnCollectOK–s  #
 cCs¹t|ƒtjƒjƒ}|jƒ}|tj|gƒkrµt|j|ƒt|rµtjƒ}xHt    |j
ƒƒD]1}|j |ƒ}|s›qznt ||t ƒqzWqµndS(N(t__GiveSitAwardRR)RGR£RHR“tremoveRJRKRLRMRNR(RR RR'RRRS((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytDoExitFB®s
 
 c
Cstjƒ}|jƒ}|dkré|}|jƒtjtjgkr\tjd|ƒdS|jt    |ƒ}|r‰tj
d|ƒdStj ƒ}|j |ƒ}    |    sÒtjd||ƒt j|dƒdS|jƒ|jƒn,|dkrt|ƒsdSt|dƒndS(Nis!ÑûÇë´ò×ø,Íæ¼ÒÒÑ´¦ÓÚ´ò×ø»ò²É¼¯×´Ì¬sÑûÇë´ò×ø,Íæ¼ÒÒÑ´ò×ø¹ýÒ»´ÎsÑûÇë%s´ò×ø,¸ÃÍæ¼Ò²»ÔÚ¸±±¾Àït PartySitFaili(RR)R£tGetPlayerActionR!tpaSitt paPreparingRR0R9tLogRJtFindPlayerByIDRR¤tStopMovetSitR·RN(
Rt
actionTypet
actionInfoR ROR't tagPlayerIDR„tcopyMapPlayerManagert    tagPlayer((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt
DoFBActionÄs0    
   c CsÔtjƒ}|jƒ}|jt|ƒ}|rEtjd|ƒdS|jƒtjkrntjd|ƒdS|j    ƒ|j
ƒ}tjƒjt j ƒ}t tjddƒƒ}d}|rÞtj||ttdƒ}n|j
ƒ}tj|ƒ}t tjdƒƒ}    |    r¢tj|ƒj|    ƒ|jt|ƒ}
|jt|ƒ} | tj|
|    |} |jt|| tjƒ|jt|| tjƒn|jt|dƒtjd||    |fƒtS(Ns´ò×ø½áÊø¸ø½±Àø,Íæ¼ÒÒÑ´ò×ø¹ýÒ»´Îs´ò×ø½áÊø¸ø½±Àø,Íæ¼Ò²»ÔÚ´ò×ø×´Ì¬tFamilyPartySitAwardiiis/    ´«¹¦½áÊø£¬giveLV=%s, giveExp=%s, worldlv=%s(RR)R£R0R9R¾R»R!R¼tStandtGetLVR1t"Def_Notify_WorldKey_WorldAverageLvtevalRqtGetFuncCompileCfgt
Item_AddLVt    DoAddLVExRRtGetPlayerReExpRuR5R6RRŒR4R( RROR'R„treLVtworldlvtgiveLVRxtreExptgiveExpR—R˜t newTotalExp((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyR·æs:  
  (4t__doc__R1RRR!RRR=RqRdRCRFR@RaR¥R®RÎtrangeR\R_RcRR3R5R6R7R8R9RHRRRRRRR(RTR-RoRzR|R}RR€RRNR«R¬R¶R¹RÇR·(((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt<module>s^                                                          1         &        )                  +                        "