cehua_ZWJ
2019-01-30 6afaa4408f4e09e3e95dbd92f0d1cd5a1fb2942b
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
Õ#\c@sPdZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZedƒ\ZZZZdZdZdZedƒ\ZZZZZd„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-e.d„Z/e.d„Z0d„Z1d„Z2d„Z3d„Z4d„Z5d„Z6id„Z7d„Z8d „Z9d!„Z:d"„Z;d#„Z<d$„Z=d%„Z>d&„Z?d'„Z@dS((sVersion = 2017-10-10 14:30iÿÿÿÿNit DuJieFB_StartDuJieFB_RealmLVtDuJieFB_LeaderPlayerIDicCs+tjƒrdnd}tjtj|ƒS(Nii(tFBCommontGetFBPropertyMarktGetFBLineStepTimetChConfigtDef_FBMapID_DuJie(tlineID((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytGetRealmFBTimeCfg=scCsItjƒjtƒ}tj|ƒ}|s?tjd|ƒdS|jƒS(NsûÓиþ³½çµÈ¼¶Êý¾Ý! Lv=%s(t    GameWorldt    GetGameFBtGetGameFBDictByKeyRtPlayerPrestigeSystGetRealmIpyDatatErrLogt    GetBossID(trealmLVt realmIpyData((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytGetDuJieBossIDAs cCsdS(N((ttick((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytDoFBInitMscCs@tjƒ}|jtdƒ|jtdƒ|jtdƒdS(Ni(R
R t SetGameFBDictRRR(RtgameFB((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytOnOpenFBUs
 cCstjƒdS(N(RtDoLogic_FBKickAllPlayer(R((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyt    OnCloseFBas
cCsA|jƒtjƒjtƒkr=tttjƒjƒƒndS(N(    tGetIDR
R R Rt__DoDoJieFBOvertFalset GetGameWorldtGetTick(t    curPlayer((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyt DoPlayerDeadks!cCst|||ƒS(N(t __CheckEnter(R tmapIDRR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytOnEnterFBEventvscCstj|tjƒs0tjd|jƒƒtS|dkso|jƒt    j
kso|dkr|j ƒdkr|j ƒ}t j|ƒ}|s¥tjd|ƒtS|jƒ}|sÕtjd||jƒƒtStj|tj|tƒstjd||jƒƒtSntS(Ns)¾ôλ¾³½ç¹¦ÄÜ먦Æô, ÎÞ·¨¿ªÆô¶É½Ù!curLV=%siisûÓиþ³½çµÈ¼¶Êý¾Ý! Lv=%ss!¾³½çÒÑÊÇ×î´óµÈ¼¶£¬²»ÄÜÉý¼¶! Lv=%ss/¾³½çÐÞÁ¶µã²»×㣬ÎÞ·¨¿ªÆô¶É½Ù£¡needRealmPoint=%s(t GameFuncCommt GetFuncCanUset ShareDefinetGameFuncID_OfficialR
tDebugLogtGetLVRt    GetTeamLVt IPY_GameWorldt    tmlLeadert    GetTeamIDtGetOfficialRankR RRt GetNeedPointt GetPlayerIDt PlayerControlt    HaveMoneytTYPE_Price_RealmPointtTrue(R R#Rt
curRealmLVRtneedRealmPoint((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyR"s"?  cCs|S(N((R R#tlineIdtipyEnterPosInfoR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytOnGetFBEnterPosžscCstjS(N(R,t    cmeAccept(taskR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytOnChangeMapAsk¨sc
Csðtjƒ}|jƒ}|tkr5tj|ƒdS|jtjƒ}t    j
ƒsº|re|j ƒn|}tjƒj tj |dƒtj||ƒ|dkrºt    jt|ƒqºn|jtjƒ}tƒ}|jtƒs-x,|tD] }tj|tj|dƒqïWtjdƒt|ƒn|jƒ}|dkrh|tkrhtj|tjƒdS|tkr’t||td||ƒnM|t krßt!|t"d||j#ƒdƒ}    |j$t%j&d|    t'ƒnt(||ƒdS(Niis Íæ¼Ò½øÈ븱±¾iè()R
R t    GetFBSteptFB_Step_LeaveTimeR2t PlayerLeaveFBtNomalDictGetPropertyRtDef_Player_Dict_ReqFBFuncLineRtGetHadSetFBPropertyMarkR/RtMap_FBDict_PropertyMarktSetFBFuncLineIDt    SetFBSteptFB_Step_MapPrepareR tDef_FB_NPCStrengthenPlayerCntR    RtDef_HelpAddAttrIDtNomalDictSetPropertytDef_PDict_RealmFBAttrAddR)t__SetFBLeaderPlayertFB_Step_CallHelpt FBHelpBattlet&SendGameServer_RefreshHelpBattlePlayerRt__EnterFBInPreparetDef_Time_MapPreparetFB_Step_FightingtmaxtDef_Time_Fightt GetFBStepTickt Sync_TimeTickR,t tttTowerTakeR5tDoFBHelp(
R RRtfbStepRt propertyMarkt fbPlayerCntt
DuJieFBCfgtattrIDt
notifyTick((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyt    DoEnterFB±s<               % cCsutjƒrdnd}tj|tj|tjdƒtƒ}tjt    |ƒt
||t dt j ƒ|ƒdS(Niiiè(RRt EventReportt WriteEvent_FBRRt CME_Log_StartR    RFRGRPRQR
R (R RRR\((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytOnCallHelpBattleOKçs     !cCsctjƒ}|jt|jƒƒ|jt|jƒƒtj|ƒt    j
|ƒt |t ƒdS(N( R
R RRR1RR/R tSyncRealmFBStateRtUpdateFBEnterTicktOnGetMemberForHelpDujieR(R R((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRLïs    cCsatjƒjƒ}|tkr+t|ƒn2|tkrDt|ƒn|tkr]t|ƒndS(N(    R
R R>RGt__DoLogic_MapPrepareRRt__DoLogic_MapFightingR?t__DoLogic_MapLeave(RRY((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyt    OnProcessÿs      cCsudStjƒ}|jtƒ}|dkr/|Sttj||jƒdƒƒ}tƒ}|t    }d}d}x<t
|dƒD]+\}    }
||
kr|    }|
|}qqW||krÇ| rÇ|S|j t|ƒtj d||||fƒtj ƒ} xnt| jƒƒD]Z} | j| ƒ} | s4qnt| |ƒ|dkr| jtjd|dtƒqqW|S(Nig@@iisB__UpdDuJieFBStar useSecond=%s,curStar=%s,updStar=%s, diffSecond=%siè(R
R R RtinttmathtceilRUR    t Def_StarTimet    enumerateRR)tGetMapCopyPlayerManagertxrangetGetPlayerCounttGetPlayerByIndexRXRVR,t tttFlagTakeR5(RtisForceRtcurStart    useSecondR\t starTimeListt
diffSecondtupdStartstartstarTimet playerManagertindexR ((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyt__UpdDuJieFBStar s8  #    
        $cCs\t|||jƒdƒ}|jtjd|tƒ|rX|jtjd|tƒndS(Ni(RSRURVR,t tttWaitStartR5t tttAddUpTime(R tdownTimeRRt    notifyEffR^((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRP2s
cCsOtƒ}|tjƒjƒ|tdkr1dStjt|ƒt|ƒdS(Niè(    R    R
R RURQRRFRRt__OnDuJieFBStart(Rt    invadeCfg((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRg<s     $
cCsLtƒ}|tjƒjƒ|tdkr>tt|ƒdSt|ƒdS(Niè(R    R
R RURTRRR(RR…((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRhEs     $ 
cCs5tƒ}|tjƒjƒ|tdkr1dSdS(Niè(R    R
R RUtDef_Time_Leave(RR…((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRiNs    $c
Csntjƒrdnd}tjƒjtƒsât}tjƒ}x|t|j    ƒƒD]h}|j
|ƒ}|ssqRn|j ƒt j ks¦|dkrR|jƒdkrRt|ƒt}PqRqRW|sâtjdƒtjƒdSntƒ}tƒ}|sþdStjƒjƒ}tj||ƒ}    tj|    |gƒtjt j|tdƒtj|tƒt|ƒdS(Niis+    ×¼±¸µ¹¼ÆÊ±Òѹý£¬¶Ó³¤ÈÔδ½øÈ븱±¾£¡£¡£¡ iè( RRR
R R RRRpRqRrRsR+R,R-R.RLR5tLogRR    RtGetMaptGetMapIDtGetFBLineRefreshNPCtNPCCustomRefresht SetNPCRefreshtSync_Player_TimeTickRWRTtNotifyCopyMapPlayerFBHelpRXR(
RRt
findLeaderR}R~R R\tbossIDR#trefreshBossMark((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyR„Vs6 3
 
        
c
CsØtjƒ}|jƒtkr"dStjdƒtƒ}||jƒ}tjt    |ƒ|j
t ƒ}tj ƒ}|j |ƒ}|s‘t}nt||gƒ}tjƒjdddd|t|ƒƒ|j
tƒ}    |j
tƒ}
tj|
ƒ} tjƒ} | rdnd} |td}i|tj6|    tj6|tj6}|jƒ}x}t|ƒD]o}|j|ƒ}|dksa|j ƒr”qant!j"|t#j$| t#j%d|ƒ|j&t'j(d|t)ƒ|r´|r´|j*ƒ|krgtj+||
|    ƒtj,|t#j-t#j$dƒtj.|ƒ| rgt/j0|t#j$| ƒ\}}||g|tj1<qgn| r’| j2ƒr’t3j4|t5j6dƒn|dkr´t7j8|dƒq´ntj9|t#j$| ||ƒqaWdS(Ns´¦Àí¶É½Ù¸±±¾½áÊøÂß¼­it DuJieFBOveriièt    teamdujie(:R
R R>RRR)R    RURRFR?R RRptFindPlayerByIDRtstrtGetPlayerManagertGameServer_QueryPlayerResulttlenRRR RRR†t Over_costTimet
Over_gradet Over_leaderIDRrRqRstNonetIsEmptyR`RaRRt CME_Log_EndRVR,t tttLeaveMapR5R1tDologicDujieFBPasstSetFBPDictValuetDef_PDict_LastEnterFBTicktSyncFBEnterTickRNtDoFBAddXianyuanCointOver_xianyuanCoint GetIsBigRealmt PlayerSuccesstDoAddSuccessProgressR'tSuccType_DujieFBHelpPasst
EventShelltEventRespons_FBEventt NotifyFBOver(tisPassRRR…tcostTimetleaderPlayerIDtcopyMapPlayerManagert leaderPlayertmsgStrRvRRtFBPropertyMarkRt    leaveTicktoverDictt    playerCnttiR taddXianyuanCointreason((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRwsT           ( $ "    c Cs|s
dS|jƒ}|s dS|j|gƒ}t|ƒ}tj|tj|ƒ}t||kƒ}|r¹tj    d|j
ƒg||j ƒgƒt j dt|ƒ|j
ƒƒnHxE|D]=\}    }
} tj||    |
| tjgddtigƒqÀWdS(Nt RealmFBTeams'±³°ü¿Õ¼ä²»¹»£¬·¢ËÍÓʼþ: mailItemList=%steventtDojie(t GetTeamAwardtgetR˜t
ItemCommontGetItemPackSpaceR,trptItemRkR2t SendMailByKeyR1t GetPlayerNameR
R)R•t ItemControlertGivePlayerItemR( R R±RRvt teamAwardDictt prizeItemListt    needSpacet
emptySpacet
isSendMailtitemIDtitemCnttisBind((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyt__GiveTeamAward³s   (#cCs<tjƒ}|jtƒ}||tj<tj||ƒdS(N(R
R R RRt Help_leaderIDt Notify_FBHelp(R RthelpDictRR¯((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRXÍs
  cCst||ƒdS(N(t__FBNPCOnKilled(tattackertcurNPCR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytDoFB_Npc_KillNPCÖs cCst||ƒdS(N(RÒ(R RÔR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytDoFB_Player_KillNPCßs cCs=|jƒ}|tƒkrdStjdƒtt|ƒdS(Ns¶É½ÙÒѱ»»÷ɱ£¡(tGetNPCIDRR
R)RR5(RÔRR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRÒãs    cCs&tjƒ}|jƒtkr"tStS(N(R
R R>RRRR5(RÓtdefenderR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytCheckCanAttackTagObjInFBñs cCs‚|jƒtjƒjtƒkr%dS||jtjƒtj    ddƒkr^tj
dƒdS|j tj|ƒt |t ƒdS(NtRealmFBHelpAttris µã»÷¹ÄÎè¼ä¸ô(R1R
R R Rt GetTickByTypeRtTYPE_Player_Tick_DuJieInspiret IpyGameDataPYt
GetFuncCfgR)t SetTickByTypeRfR5(R t
actionTypet
actionInfoR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyt
DoFBActionýs!(  cCsµtjƒjtƒ}tj|ƒ}|s.dS|jƒrKtjdƒdStjdƒ|jt    j
t j ƒ}t ||gƒ}tjƒj|jƒddd|t|ƒƒdS(Ns´ó¾³½ç¶É½Ù£¬²»ÄÜÇëÇóÊØ»¤£¡sÏòÃËÓÑѰÇó¶É½ÙÊØ»¤£¡itGetMemberForHelpDujie(R
R R RR RR¦R)RARRKR'tDef_Effect_BaseAtkAddPerR•R–R—RR˜(R t    isInspireRRtatkAddR²((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRf s   .c Cs/tjdƒ}i}d}xw|D]o\}}|jt|ƒiƒ}x4|jƒD]&\}}    |j|dƒ|    ||<qSW|d||f7}q"WxP|jƒD]B\}}    t|ƒtƒtkr¢tj    |t
j ||    ƒq¢q¢Wtj|ƒj ƒ|r|d }ni|d6}
t |d|
ƒdS(NRÚtis%s|%s,iÿÿÿÿthelpInfo(RÝtGetFuncEvalCfgR¾R•titemsRkR    RIR2RJRRKtRefreshPlayerAttrByBuffRX( R RètrealmFBHelpAttrDictt totalAttrDictt
fbhelpInfothelpTypetnametattrDictR]t    attrValueRÑ((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytOnGetDuJieHelpInfo s"!  cCsÇtj|jƒƒtjkr"dStjƒjtƒ}|j    ƒ|krMdSt
ƒ}|s`dStj d|ƒx>t
ƒt D]/}|j tj|ƒ}tj|||ƒqWtj d|ƒdS(Ns»¤·¨ÊôÐÔ¼ÆËã allAttrList=%ss»¤·¨ÊôÐÔ¼ÆËã½á¹û allAttrList=%s(RtGetRecordMapIDR‰RRR
R R RRR    R)RIRARKR2tCalcAttrDict_Type(R t allAttrListR¯tfbcfgR]Rò((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytCalcDujieFBAttrAdd9s    cCstS(N(R5(((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytOnPlayerRebornPs(At__doc__RRR,R2R
R‹RÝR R%R¿R'RÄR§RªR`RNRlttimetrangeRMRGRRR?RRRRQRTR†RnRIR    RRRRR!R$R"R:R=R_RcRLRjRRRPRgRhRiR„RRÎRXRÕRÖRÒRÙRâRfRóRøRù(((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyt<module>sn                                            
                     
            6             &
                        !    <