xdh
2018-10-26 74c4efa89c46c79d9bd198765c4bbcf7b5d445bd
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
ØyÒ[c@s«dZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZedƒ\ZZZdZdZdZdZdZd    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)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%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.pytOnFBPlayerOnDay3scCs=tjƒ}|jtdƒ|jƒ|jtjdƒdS(Ni(t    GameWorldt    GetGameFBt SetGameFBDicttMap_FamilyPartyFB_FamilyIDtClearAllPlayerGameFBDictRtMap_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(taskRt playerIDStrtplayerID((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnChangeMapAskvs   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ƒ|jt|dƒtj|ƒtj|tj ƒt!j"|tj#ƒt$j%|tj dtj&ƒt'j(|tj)dƒnt*||ƒdS(NiscloseFB_RemainTick=%si(+Rt GetGameWorldtGetMapIDt GetPlayerIDRRt PlayerLeaveFBR    t__GetRemainTickt Sync_TimeTickR#t tttTowerTakeRRtGetGameFBDictByKeyR R
RtGetGameWorldDictByKeyt ShareDefinetDef_Notify_WorldKey_ServerDaytGameFBDict_LastEnterFbDaytSetGameWorldDicttFBPlayerDict_TotalExptFBPlayerDict_TotalExpPointtFBPlayerDict_TotalPointtFBPlayerDict_HasCollecttFBPlayerDict_HasSitRtClearAreaRewardRecordtAddEnterFBCountRtDef_FBMapID_FamilyPartyt PlayerFamilytAddFamilyActivitytFamilyActive_Partyt EventReportt WriteEvent_FBt CME_Log_StarttPlayerFairyCeremonytAddFCPartyActionCnttDef_PPAct_FamilyPartytDoFBHelp(RRRR)Rt    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+R3RtmaxRtGetFBLineStepTime(RRt    startTickRK((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyR/¹s(c    Cstjƒ}|jƒ}|tkrLtjtjƒr{tjt    |ƒq{n/|t    kr{tjtjƒs°tj
|t dƒgt _ tjt|ƒtjƒtj|ƒq{tjƒjƒ}|jtjƒ}tj|ƒd}|t|ƒkr{||}tdt|ƒdƒ}||ddkrx|jtƒ}tj|d|gƒtjƒjtj|dƒqxq{ndS(NiiiètParty_OverTime(RR    t    GetFBStept FB_Step_OpenRtGetFBFuncOpenStateRR?t    SetFBSteptFB_Step_FightingtNotifyCopyMapPlayerFBHelpRIt
PyGameDatatg_familyPartyInfot FB_Step_OverRtGameWorldProcesstCloseFBRNR,R2R RPtlenROR/R Rt FamilyNotifyR
(    RRtfbStepRt notifyIndextnotifySecondListt notifySecondt remaindTicktfamilyID((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt    OnProcessÅs.        
 
&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@tAddPlayerFamilyActiveValueRR4tDef_AddFAVReason_FamilyPartyRtAddExptNomalDictGetPropertyRRRRRNR,R?RI(RtaddPointtaddExpt curAnswerCnt((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytFamilyPartyAnswerRightçscCs_tjd|ƒtjƒjƒ}|tjkr6dS|dkr[tjƒjt|ƒndS(Ns!    ÏÉÃËÑç»á»î¶¯×´Ì¬±ä¸ü state=%si(    RRRNR,RR?R+R7R(tstateRR((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.pytGetPlayerResetWorldPosFBMsg#scCs|jƒ}tj|ƒdS(N(R-RR.(RRt 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.pytOnPlayerReborn6scCs&tjƒ}|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<ntjd||ƒtj||ƒdS(NRgitFamilyPartyAreaAwardiiit
hasCollectt    isFullExpthasSittranktnametcnttfamilyPartyRanktfamilyPartyTops DoFBHelp %s(RR+R-RtGetFBAreaRewardExpRmRRRhRiR3R8R9tDef_PerPointValueR:R;R<tMap_Player_AreaReward_GetCntt
GetFuncCfgtHelp_expt Help_expPointt
Help_scoreRYRZt    enumeratetappendRt Notify_FBHelp(RRRJR)ttotalExpRpRnRotexptexpPointt
totalPointRyR{tgetCnttisFullthelpDicttrankListtitinfo((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyRI?s4    $9    #.
)cCstjƒjt|jƒƒ}|r9tj|dƒdSttj    ddƒƒ}t
j |t j |ƒ}||kr‰tj|dƒdStS(NtParty_HadCollectedtFamilyPartyDeskitGeRen_chenxin_998371(RR+R3R;tGetIDRt
NotifyCodeR^RhRit
ItemCommontGetItemPackSpaceR#trptItemR(RtcurNPCRRyt    needSpacet    packSpace((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt OnCanCollectgs cCstjddƒdS(NR–iiè(RhR„(RR((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytGetFBPrepareTimeysc 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+R7R;RRhRit ItemControlertGivePlayerItemR#RœR„RR™R@RjRR4RkR3R:RI( RtnpcIDRR)RJt    itemAwardtitemIDt    itemCounttisBindRnRŽtupdPoint((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt OnCollectOK‚s  #
 cCsStjƒ}|jƒ}|dkr|}|jƒtjtjgkr\tjd|ƒdS|jt    |ƒ}|r‰tj
d|ƒdStj ƒ}|j |ƒ}    |    sÂtjd||ƒdS|j ƒ|jƒ|    jƒtjtjgkrO|    j ƒ|    jƒqOnA|dkrO|jƒ}
tj|ƒ} tjƒjtjƒ} ttjdƒƒ} | ròtj|ƒj| ƒ|jt|ƒ}|jt|ƒ}|tj|| }|jt||tjƒ|jt||tjƒn|jt    |dƒt|dƒ|jƒtjkr5|jƒntjd| | fƒndS(Nis!ÑûÇë´ò×ø,Íæ¼ÒÒÑ´¦ÓÚ´ò×ø»ò²É¼¯×´Ì¬sÑûÇë´ò×ø,Íæ¼ÒÒÑ´ò×ø¹ýÒ»´ÎsÑûÇë%s´ò×ø,¸ÃÍæ¼Ò²»ÔÚ¸±±¾ÀïitFamilyPartySitAwards"    ´«¹¦½áÊø£¬¸ø¾­Ñé%s, worldlv=%s(RR+R˜tGetPlayerActionR#tpaSitt paPreparingRR3R<tLogtGetMapCopyPlayerManagertFindPlayerByIDtStopMovetSittGetLVRtGetPlayerReExpR4t"Def_Notify_WorldKey_WorldAverageLvtevalRhtGetFuncCompileCfgRlR8R9RR‚R7RItStand(Rt
actionTypet
actionInfoRRJR)t tagPlayerIDR{tcopyMapPlayerManagert    tagPlayertreLVtreExptworldlvtgiveExpRŒRt newTotalExp((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt
DoFBActionsN    
 
 
    (/t__doc__R4RRR#RRR@RhR\RFRCRYRšR£trangeRTRWR[R RR6R8R9R:R;R<RRRRRRR*RMR/RfRqRsRtRvRwRIR R¡R«RÅ(((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt<module>sV                                                        &         "        '                     (