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
Æ]ic@soddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZd„Zd„Zd„Zd„Zd„Zd„Zddd„Zd    „Zd
„Zd „Zd d „Zd„Zd„Zd„Zddd„Z d„Z!dS(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.pytGetTianziTodayInfo3s*   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.pytOnTurnFightRequestOs
 cCs6|jƒ}tjd|ƒ}|s(iSt|dƒS(NtTianzii(tGetNPCIDRtGetIpyGameDataListt__getBossAttrDict(t    turnFighttnpcObjR!t ipyDataList((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytGetFBNPCInitAttrYs
 c CsY|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( R2tgameObjtkillertuseSkillR!R4tstatDefValueTotalR6t
totalHPMaxt
ipyDataNowRtmaxHPthp((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytOnFBNPCKilledBeforeas8     
  )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
cCsL|jdƒ}|jtjƒ}|jƒ}|ji|d6|d6ƒdS(NR6t    totalHurt(t GetDictByKeyt getBatFactionRt Def_FactionAt getTotalHurtRS(R2R(R)toverMsgR6t
batFactionRV((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytOnTurnFightOvers
 c    Cs¯|s
dSt|ƒ\}    }
|    |krItjd|||    |
fƒdS|jddƒ} |jddƒ} |jtj|
ƒ} |jtj|
ƒ}|tj| }|jtj    ƒ}|jtj
ƒ}|tj|}tj d|    |
| | ||fƒ| |krv| }|tj} |tj}t j |tj|
| ƒt j |tj|
|ƒtj d|ƒn| |krû| }|tj}|tj}t j |tj    |ƒt j |tj
|ƒtj d|ƒtj|tj||ƒnt| |
ƒ}|jitj|ƒtj6| d6|d6ƒtj||ƒtj||d    d
tigd tƒt||    |
ƒt|ƒtj|||i| d6| d6ƒdS( Ns<½áËãʱ·Ç½ñÈÕÌì×Ó¿¼Ñé! mapID=%s,funcLineID=%s != %s,bossID=%sR6iRVs]Ìì×Ó¿¼Ñé½áËã: lineID=%s,bossID=%s,hpNum=%s,totalHurt=%s,todayHurtTotal=%s,historyHurtTotal=%ss¸üÐÂÀúÊ·×î¸ßÉ˺¦: %ss¸üнñÈÕ×î¸ßÉ˺¦: %sttodayHurtTotalteventR.t isNotifyAward(R$R%tErrLogtgettNomalDictGetPropertyRtDef_PDict_TianziHisHurttDef_PDict_TianziHisHurtExtDef_PerPointValueRRR&RRtPlayerBillboardtUpdatePlayerBillboardRt Def_BT_Tianzit__getTianziAwardListRStFBCommontGetJsonItemListt Over_itemInfotAddEnterFBCountt ItemControlertGivePlayerItemOrMailR>Rt __onFBTianzitDataRecordPackt    DR_FBPass(RtguidR(R)t
winFactiontstatMsgtdateStrtreqDatat    awardDictRR!R6RVt historyHurtt historyHurtExthistoryHurtTotalt    todayHurtt todayHurtExR^titemList((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytOnTurnFightAwardšsN           .%
$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:tGetRandWeightItemListtGetResultByWeightListRRbtitems(R}R!tsweepCntR4RyRIRR6RKtrandWeightItemListt randItemInfotitemIDt    itemCountR((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pyRjÍs.   
 
 
!+c
Cspt|ƒ\}}|jtjƒ}|jtjƒ}|tj|}    | sU|     rftjdƒdS||    fS(NsÌì×Ó¿¼Ñé½ñÈÕ»¹Ã»ÓÐÉ˺¦ÎÞ·¨É¨µ´!(R$RcRRRRfR%R&(
RR(RR„tdataExt_R!R}R~R^((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 |ƒt S(NsHÌì×Ó¿¼Ñéɨµ´: mapID=%s,lineID=%s,sweepCnt=%s,todayHurtTotal=%s,bossID=%sR_R.R`iRVR^( R%R&RjRoRpR>RkRlRmt Over_isSweept NotifyFBOverRqR'( RR(RR„R‰taskRetR!R^RtisPasstoverDict((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytOnPlayerFBSweepResultös     % 
cCsCtj|tjƒtj|tjdƒtj    |tj
dƒdS(Ni( t
PlayerTaskt AddTaskValueRtTaskType_FBTianzit PlayerSuccesstDoAddSuccessProgressRtSuccType_OSAFBTianzit PlayerGubaotAddGubaoSpecEffLayertGubaoEffType_Tianzi(R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pyRqscCs¦|dkr!t|ƒ\}}ntjƒ}||_|jtj|ƒ|_|jtj    |ƒ|_
|jtj ƒ|_ |jtj ƒ|_tj||ƒdS(N(R8R$tChPyNetSendPackttagSCTianziKYInfotLineIDRcRRdt HistoryHurtRet HistoryHurtExRt    TodayHurtRt TodayHurtExt NetPackCommont SendFakePack(RRR!t
clientPack((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pyR s      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|ƒ|jƒdS(    Ns=== Ìì×Ó¿¼Ñé½áËãÅÅÐн±Àø! ===tTianziBillboradAwardis    ½±ÀøÃû´ÎÁбí: %sis6    °ñµ¥Êý¾ÝÊý! billboardCount=%s,billboardMaxCount=%stTianziBillboardAwards    ½±ÀøÍæ¼ÒÃû´ÎÐÅÏ¢: %s(R%R<RtGetBillboardMgrt GetBillboardRRit SortDelayDoRtGetFuncEvalCfgtkeystinttsorttGetCountt GetMaxCounttxrangetAttindexRtGetIDtRealPlayerIDStarttstrt
PlayerMailt SendMailByKeyt    ClearData(t billboardMgrt    billBoardtbillboradAwardDicttorderStrt    orderListt
awardOrdertorderPlayerIDDicttbillboardCounttbillboardMaxCountR²t billBoardDatatordertnextOrderIndextplayerIDt    paramListt    awardList((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pyRsD  
%
 
 
       
("RRkR%RoRR•RgR›RrR¢RR˜RR’R¶RRARR    R
R$R-R5R8RMR1R]R€RjR‹R‘RqRR(((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pyt<module>s@                                     
    '        
    3