cehua_LC
2018-11-26 19ed0ff715c2960e92f41b475a684d88c68de533
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
87
88
>äû[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((sE:\SnxxServerCode\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((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytGetDuJieBossIDAs cCsdS(N((ttick((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytDoFBInitMscCs@tjƒ}|jtdƒ|jtdƒ|jtdƒdS(Ni(R
R t SetGameFBDictRRR(RtgameFB((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytOnOpenFBUs
 cCstjƒdS(N(RtDoLogic_FBKickAllPlayer(R((sE:\SnxxServerCode\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((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyt DoPlayerDeadks!cCst|||ƒS(N(t __CheckEnter(R tmapIDRR((sE:\SnxxServerCode\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((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyR"s"?  cCs|S(N((R R#tlineIdtipyEnterPosInfoR((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytOnGetFBEnterPosžscCstjS(N(R,t    cmeAccept(taskR((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytOnChangeMapAsk¨sc    CsÐtjƒ}|jƒ}|tkr5tj|ƒdS|jtjƒ}|r\|j    ƒ}nt
j ƒs—t
j |ƒ|dkr—t
j t|ƒq—n|jtjƒ}tƒ}|jtƒs
x,|tD] }tj|tj|dƒqÌWtjdƒt|ƒn|jƒ}|dkrH|tkrHtj|tj|ƒdS|tkrrt||td||ƒnM|tkr¿t|t d||j!ƒdƒ}|j"t#j$d|t%ƒnt&||ƒdS(Nis Íæ¼Ò½øÈ븱±¾iè('R
R t    GetFBSteptFB_Step_LeaveTimeR2t PlayerLeaveFBtNomalDictGetPropertyRtDef_Player_Dict_ReqFBFuncLineR/RtGetHadSetFBPropertyMarktSetFBPropertyMarkt    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 fbPlayerCntt
DuJieFBCfgtattrIDt
notifyTick((sE:\SnxxServerCode\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    RERFRORPR
R (R RRRZ((sE:\SnxxServerCode\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((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRKîs    cCsatjƒjƒ}|tkr+t|ƒn2|tkrDt|ƒn|tkr]t|ƒndS(N(    R
R R>RFt__DoLogic_MapPrepareRQt__DoLogic_MapFightingR?t__DoLogic_MapLeave(RRX((sE:\SnxxServerCode\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 RtinttmathtceilRTR    t Def_StarTimet    enumerateRR)tGetMapCopyPlayerManagertxrangetGetPlayerCounttGetPlayerByIndexRWRUR,t tttFlagTakeR5(RtisForceRtcurStart    useSecondRZt starTimeListt
diffSecondtupdStartstartstarTimet playerManagertindexR ((sE:\SnxxServerCode\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(RRRTRUR,t tttWaitStartR5t tttAddUpTime(R tdownTimeRRt    notifyEffR\((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRO1s
cCsOtƒ}|tjƒjƒ|tdkr1dStjt|ƒt|ƒdS(Niè(    R    R
R RTRPRRERQt__OnDuJieFBStart(Rt    invadeCfg((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRe;s     $
cCsLtƒ}|tjƒjƒ|tdkr>tt|ƒdSt|ƒdS(Niè(R    R
R RTRSRRR}(RRƒ((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRfDs     $ 
cCs5tƒ}|tjƒjƒ|tdkr1dSdS(Niè(R    R
R RTtDef_Time_Leave(RRƒ((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRgMs    $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 RRRnRoRpRqR+R,R-R.RKR5tLogRR    RtGetMaptGetMapIDtGetFBLineRefreshNPCtNPCCustomRefresht SetNPCRefreshtSync_Player_TimeTickRVRStNotifyCopyMapPlayerFBHelpRWR}(
RRt
findLeaderR{R|R RZtbossIDR#trefreshBossMark((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyR‚Us6 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>RQR)R    RTRRER?R RRntFindPlayerByIDRtstrtGetPlayerManagertGameServer_QueryPlayerResulttlenRRR RRR„t Over_costTimet
Over_gradet Over_leaderIDRpRoRqtNonetIsEmptyR^R_RRt CME_Log_EndRUR,t tttLeaveMapR5R1tDologicDujieFBPasstSetFBPDictValuetDef_PDict_LastEnterFBTicktSyncFBEnterTickRMtDoFBAddXianyuanCointOver_xianyuanCoint GetIsBigRealmt PlayerSuccesstDoAddSuccessProgressR'tSuccType_DujieFBHelpPasst
EventShelltEventRespons_FBEventt NotifyFBOver(tisPassRRRƒtcostTimetleaderPlayerIDtcopyMapPlayerManagert leaderPlayertmsgStrRtRRtFBPropertyMarkRt    leaveTicktoverDictt    playerCnttiR taddXianyuanCointreason((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRvsT           ( $ "    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,trptItemRiR2t SendMailByKeyR1t GetPlayerNameR
R)R“t ItemControlertGivePlayerItemR( R R¯RRtt teamAwardDictt prizeItemListt    needSpacet
emptySpacet
isSendMailtitemIDtitemCnttisBind((sE:\SnxxServerCode\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­((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRWÌs
  cCst||ƒdS(N(t__FBNPCOnKilled(tattackertcurNPCR((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytDoFB_Npc_KillNPCÕs cCst||ƒdS(N(RÐ(R RÒR((sE:\SnxxServerCode\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Ž((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRÐâs    cCs&tjƒ}|jƒtkr"tStS(N(R
R R>RQRR5(RÑtdefenderR((sE:\SnxxServerCode\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 SetTickByTypeRdR5(R t
actionTypet
actionInfoR((sE:\SnxxServerCode\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)RARRJR'tDef_Effect_BaseAtkAddPerR“R”R•RR–(R t    isInspireRRtatkAddR°((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRd
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“titemsRiR    RHR2RIRRJtRefreshPlayerAttrByBuffRW( R RætrealmFBHelpAttrDictt totalAttrDictt
fbhelpInfothelpTypetnametattrDictR[t    attrValueRÏ((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytOnGetDuJieHelpInfos"!  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)RHRARJR2tCalcAttrDict_Type(R t allAttrListR­tfbcfgR[Rð((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytCalcDujieFBAttrAdd8s    cCstS(N(R5(((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytOnPlayerRebornOs(At__doc__RRR,R2R
R‰RÛR R%R½R'RÂR¥R¨R^RMRjttimetrangeRLRFRQR?RRRRPRSR„RlRHR    RRRRR!R$R"R:R=R]RaRKRhRR}ROReRfRgR‚RRÌRWRÓRÔRÐR×RàRdRñRöR÷(((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyt<module>sn                                            
                     
            5             &
                        !    <