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
ÖΠ   ic@sBddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z d„Zd„Zd„Zd„Zd„Zd„Zddd„Zd    „Zd
„Zd „Zd d „Zd„Zd„Zddd„Zd„ZdS(iÿÿÿÿNcCs tƒdS(N(t__DoGiveTianziDayAward(((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytOnDay!scCs:tj|tjdƒtj|tjdƒt|ƒdS(Ni(t PlayerControltNomalDictSetPropertytChConfigtDef_PDict_TianziTodayHurttDef_PDict_TianziTodayHurtExtSyncTianziInfo(t    curPlayer((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytOnFBPlayerOnDay&s
cCst|ƒdS(N(R(R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytOnFBPlayerOnLogin,s
c    Csøg}xRtdƒD]D}tjdtj|ƒ}|rG|j|ƒq|dkrPqqW|sedStjƒjt    j
ƒ}||t |ƒ}|j ƒ}d}xH|j ƒD]:}tjd|ƒ}|sÔq°n|jƒ}|r°Pq°q°W||fS(Ni
tFBLineit    NPCLineup(ii(tranget IpyGameDataPYtGetIpyGameDataNotLogRtDef_FBMapID_Tianzitappendt    DBDataMgrtGetEventTrigMgrtGetValuet ShareDefinet Def_ServerDaytlent    GetLineIDtGetLineupIDListtGetIpyGameDatat    GetBossID(    RtlineListtlineIDtipyDatat    ServerDayt todayIpyDatatbossIDtlineupIDt lineupIpyData((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytGetTianziTodayInfo0s*   cCsIt|ƒ\}}||kr?tjd||||fƒdSt|fS(Ns6·Ç½ñÈÕÌì×Ó¿¼Ñé! mapID=%s,funcLineID=%s != %s,bossID=%s(R$t    GameWorldtDebugLogtTrue(RtmapIDt
funcLineIDttagTypettagIDt    valueListRR!((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytOnTurnFightRequestLs
 cCs6|jƒ}tjd|ƒ}|s(iSt|dƒS(NtTianzii(tGetNPCIDRtGetIpyGameDataListt__getBossAttrDict(Rt    turnFighttnpcObjR!t ipyDataList((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytGetFBNPCInitAttrVs
 cCsY|jƒ}tjd|ƒ}|s(tS|jƒ}d}d}    d}
xF|D]>} | jƒ}| jƒ} | }
|    | 7}    ||    krMPqMqMW|
s™tStd|    |ƒ} | dkrÓt    j
d|    |fƒtS|j |
jƒt ƒ|j | t ƒt    jd||jƒ|jƒ|fƒtj||ƒ|jd|ƒ|jt|
ƒƒt S(NR.iis:Ìì×Ó¿¼ÑéÈ«²¿ÑªÌõ±»»÷ɱ! totalHPMax=%s,statDefValueTotal=%ss4¸üÐÂNPCѪÌõ: hpNum=%s,hp=%s/%s, statDefValueTotal=%sthpNum(R/RR0R'tGetStatDefValuetNonetGetHPNumtGetMaxHPtmaxR%tLogtSetMaxHPtFalsetSetHPR&tGetHPt    TurnSkilltSync_HPRefreshtSetDicttUpdInitBatAttrR1(RR2tgameObjtkillertuseSkillR!R4tstatDefValueTotalR6t
totalHPMaxt
ipyDataNowRtmaxHPthp((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytOnFBNPCKilledBefore^s8     
  )cCsMi|jƒtj6|jƒtj6|jƒtj6}|j|jƒƒ|S(N(    tGetAtkRt
AttrID_AtktGetDeft
AttrID_DefR:t AttrID_MaxHPtupdatetGetOtherAttrDict(RtattrDict((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pyR1…s
cCsW|s
dSt|ƒ\}}||krItjd||||fƒdS|jdƒ}|jtjƒ}|jƒ}    |jtj    |ƒ}
|jtj
|ƒ} | tj |
} |jtj ƒ} |jtj ƒ}|tj | }tjd||||    || fƒ|    | kr|    } | tj }
| tj } tj|tj    ||
ƒtj|tj
|| ƒtjd| ƒn|    |kr|    }|tj } |tj }tj|tj | ƒtj|tj |ƒtjd|ƒtj|tj|| ƒnt|    |ƒ}|jitj|ƒtj6|    d6|d6ƒ|||g|_dS(Ns<½áËãʱ·Ç½ñÈÕÌì×Ó¿¼Ñé! mapID=%s,funcLineID=%s != %s,bossID=%sR6s]Ìì×Ó¿¼Ñé½áËã: lineID=%s,bossID=%s,hpNum=%s,totalHurt=%s,todayHurtTotal=%s,historyHurtTotal=%ss¸üÐÂÀúÊ·×î¸ßÉ˺¦: %ss¸üнñÈÕ×î¸ßÉ˺¦: %st    totalHurtttodayHurtTotal(R$R%tErrLogt GetDictByKeyt getBatFactionRt Def_FactionAt getTotalHurttNomalDictGetPropertytDef_PDict_TianziHisHurttDef_PDict_TianziHisHurtExtDef_PerPointValueRRR&RRtPlayerBillboardtUpdatePlayerBillboardRt Def_BT_Tianzit__getTianziAwardListRStFBCommontGetJsonItemListt Over_itemInfot    awardData(RR2R(R)toverMsgRR!R6t
batFactionRVt historyHurtt historyHurtExthistoryHurtTotalt    todayHurtt todayHurtExRWtitemList((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytOnTurnFightOversH            .cCsl|s
dS|sdS|\}}}tj||ƒtj||ddtigdtƒt|||ƒdS(NteventR.t isNotifyAward(RetAddEnterFBCountt ItemControlertGivePlayerItemOrMailR>R(RR2R(R)RhRR!Rp((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytOnTurnFightAward¾s%icCsKtjd||fƒtjd|ƒ}|s3gSi}d}xÉ|D]Á}|jƒ}|jƒ}||7}||kr~Pn|jƒ}    tj|    ƒ}
|
sFt|
ƒdkr¸qFn|
d} |
d} |j    | dƒ| ||| <tjd|| | |fƒqFWg|j
ƒD]\} } | | g^q} tjd| ƒ| S(Ns(Ìì×Ó¿¼Ñé½áËã½±Àø: hurtValue=%s,bossID=%sR.iiis#ѪÌõ±àºÅ: %s,itemID=%s,itemID=%s,%ss ×îÖÕ½±Àø: %s( R%R&RR0R9R:tGetRandWeightItemListtGetResultByWeightListRtgettitems(RnR!tsweepCntR4t    awardDictRIRR6RKtrandWeightItemListt randItemInfotitemIDt    itemCountRp((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pyRdÍs.   
 
 
!+c
Cspt|ƒ\}}|jtjƒ}|jtjƒ}|tj|}    | sU|     rftjdƒdS||    fS(NsÌì×Ó¿¼Ñé½ñÈÕ»¹Ã»ÓÐÉ˺¦ÎÞ·¨É¨µ´!(R$R]RRRR`R%R&(
RR(RR|tdataExt_R!RnRoRW((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytOnPlayerFBSweepAskès c Cs·|\}}tjd|||||fƒt|||ƒ}tj||ddtigdtƒd}    itj|ƒtj6dtj    6|d6|d6}
tj
||||    |
ƒt S(NsHÌì×Ó¿¼Ñéɨµ´: mapID=%s,lineID=%s,sweepCnt=%s,todayHurtTotal=%s,bossID=%sRrR.RsiRVRW( R%R&RdRuRvR>ReRfRgt Over_isSweept NotifyFBOverR'( RR(RR|R‚taskRetR!RWRptisPasstoverDict((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytOnPlayerFBSweepResultös     % cCs²|dkr!t|ƒ\}}ntjƒjtjƒ}||_|jt    j
|ƒ|_ |jt    j |ƒ|_ |jt    jƒ|_|jt    jƒ|_tj||ƒdS(N(R8R$tObjPoolt
GetPoolMgrtacquiretChPyNetSendPackttagSCTianziKYInfotLineIDR]RR^t HistoryHurtR_t HistoryHurtExRt    TodayHurtRt TodayHurtExt NetPackCommont SendFakePack(RRR!t
clientPack((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pyRs     cCsÇtjdƒtjƒ}|jtjƒ}|s5dS|jƒtj    ddiƒ}g|j
ƒD]}t |ƒ^qa}|j ƒtjd|ƒ|d}i}|j ƒ|jƒ}}tjd||fƒxÛt|ƒD]Í}    |j|    ƒ}
|
sqán|    d} | |krN|j|ƒd} | t|ƒkrAPn|| }n|
jƒ} | tjkroqán| |g|| <| g}|t|ƒ}tjd| ||ƒqáWtjd|ƒdS(    Ns=== Ìì×Ó¿¼Ñé½áËãÅÅÐн±Àø! ===tTianziBillboradAwardis    ½±ÀøÃû´ÎÁбí: %sis6    °ñµ¥Êý¾ÝÊý! billboardCount=%s,billboardMaxCount=%stTianziBillboardAwards    ½±ÀøÍæ¼ÒÃû´ÎÐÅÏ¢: %s(R%R<RtGetBillboardMgrt GetBillboardRRct SortDelayDoRtGetFuncEvalCfgtkeystinttsorttGetCountt GetMaxCounttxrangetAttindexRtGetIDtRealPlayerIDStarttstrt
PlayerMailt SendMailByKey(t billboardMgrt    billBoardtbillboradAwardDicttorderStrt    orderListt
awardOrdertorderPlayerIDDicttbillboardCounttbillboardMaxCountR¥t billBoardDatatordertnextOrderIndextplayerIDt    paramListt    awardList((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pyRsB  
%
 
 
       (RReR%RuRRaRŽR•RRR©RRAR‹RR    R
R$R-R5R8RMR1RqRwRdR„RŠRR(((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pyt<module>s8                                  
    '        1