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@síddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZdZdZd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd „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-de/d!„Z0id"„Z1d#„Z2dS($iÿÿÿÿNiicCs
|jƒS(N(t    GetValue1(trecData((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pytGetRecUpdScore&scCs |j|ƒS(N(t    SetValue1(Rtscore((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pytSetRecUpdScore'scCs
|jƒS(N(t    GetValue2(R((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt GetRecAtkType(scCs |j|ƒS(N(t    SetValue2(RtatkType((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt SetRecAtkType)scCs
|jƒS(N(t    GetValue3(R((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pytGetRecTagPlayerID*scCs |j|ƒS(N(t    SetValue3(Rt tagPlayerID((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pytSetRecTagPlayerID+scCs
|jƒS(N(t    GetValue4(R((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt GetRecIsWin,scCs|j|rdndƒS(Nii(t    SetValue4(RtisWin((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt SetRecIsWin-scCs
|jƒS(N(t    GetValue5(R((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt
GetRecFace.scCs |j|ƒS(N(t    SetValue5(Rtface((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt
SetRecFace/scCs
|jƒS(N(t    GetValue6(R((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt GetRecFacePic0scCs |j|ƒS(N(t    SetValue6(RtfacePic((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt SetRecFacePic1scCs
|jƒS(N(t    GetValue7(R((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt GetRecRealmLV2scCs |j|ƒS(N(t    SetValue7(RtrealmLV((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt SetRecRealmLV3scCs
|jƒS(N(t    GetValue8(R((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pytGetRecLV4scCs |j|ƒS(N(t    SetValue8(RttagLV((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pytSetRecLV5scCs tƒdS(N(t DoArenaReset(((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pytOnWeek8scCstdƒdS(NtDay(t__DoGiveBillboardAward(((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pytOnDay<s
cCsGtjdƒit_tdƒtjƒjtj    ƒtjdƒt
S(s Èü¼¾ÖØÖÃ
    s*=============== ÖØÖþº¼¼³¡ ===============tWeeks*==========================================( t    GameWorldtLogt
PyGameDatatg_arenaPlayerMatchDictR,t    DBDataMgrtGetBillboardMgrtRemoveBillboardt ShareDefinet Def_BT_ArenatTrue(((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyR)@s      
 cCstjd|ƒtjƒ}|jtjƒ}|s9dS|dkr]tjddiƒ}n(|dkrtjddiƒ}ndS|j    ƒg|j
ƒD]}t |ƒ^qœ}|j ƒtjd|ƒ|d}i}|j ƒ|jƒ}}    tjd    ||    fƒxßt|ƒD]Ñ}
|j|
ƒ} | s=qn|
d} | |kr‰|j|ƒd} | t|ƒkr|Pn|| }n| jƒ}|tjkrªqn| |g||<| g}|t|ƒ}tjd
||||ƒqWtjd |ƒdS( Ns=== ¾º¼¼³¡½áËãÅÅÐн±Àø! === %sR+tArenaBillboradAwardiR.is    ½±ÀøÃû´ÎÁбí: %sis6    °ñµ¥Êý¾ÝÊý! billboardCount=%s,billboardMaxCount=%ssArenaBillboardAward%ss    ½±ÀøÍæ¼ÒÃû´ÎÐÅÏ¢: %s(R/R0R3R4t GetBillboardR6R7t IpyGameDataPYtGetFuncEvalCfgt SortDelayDotkeystinttsorttGetCountt GetMaxCounttxrangetAttindextlentGetIDtRealPlayerIDStarttstrt
PlayerMailt SendMailByKey(t    awardTypet billboardMgrt    billBoardtbillboradAwardDicttorderStrt    orderListt
awardOrdertorderPlayerIDDicttbillboardCounttbillboardMaxCountREt billBoardDatatordertnextOrderIndextplayerIDt    paramListt    awardList((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyR,RsJ   
%
 
 
       cCs1tj|tjƒsdSt|ƒt|ƒdS(N(t GameFuncCommt GetFuncCanUseR6tGameFuncID_Arenat__loginUpdPlayerScoretSync_ArenaInfo(t    curPlayer((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pytOnLogin†s
 
 
cCsð|jƒ}tjƒ}|jtj|ƒ}|jƒs=dS|j|jƒdƒ}|jƒ}t    j
|ƒs’t    j dt    j |ƒ|ƒdSt |ƒ}|jtjƒ}tj|tj|ƒt    j d||t    j |ƒf|ƒdS(Nis.Íæ¼ÒÉÏÏßÑÝÎ䳡¼Ç¼»ý·Ö·Ç±¾Öܲ»¸üÐÂ! recTime=%ss:Íæ¼ÒÉÏÏ߸üÐÂÑÝÎ䳡»ý·Ö: befScore=%s,updScore=%s,recTime=%s(t GetPlayerIDR3t GetGameRecMgrtGetRecTypeIDMgrR6tDef_GameRecType_ArenaRecordRARDtGetTimeR/tCheckTimeIsSameWeekR0tChangeTimeNumToStrRtNomalDictGetPropertytChConfigtDef_PDict_ArenaScoret PlayerControltNomalDictSetProperty(RaRYtrecMgrtrecIDMgrt finalRecDatatrecTimetupdScoretbefScore((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyR_s     &cCs'tj|tjƒsdSt|ƒdS(N(R\R]R6R^R`(Ra((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pytOnDayExžs
cCs'tj|tjƒsdSt|ƒdS(N(R\R]R6R^t__DoArenaSeasonReset(Ra((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pytOnWeekEx¤s
cCs9tjddƒ}tj|tj|dƒt|ƒdS(NtArenaSetit    ArenaOpen(R;t
GetFuncCfgRmt    GiveMoneyR6tTYPE_Price_ArenaTicketRv(RatstoreMax((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt DoArenaOpenªs
cCsGtjddƒ}tjd|ƒtj|tj|ƒt|ƒdS(NRxis¾º¼¼³¡Èü¼¾ÖØÖã¡initScore=%s(    R;RzR/tDebugLogRmRnRkRlR`(Rat    initScore((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyRv°s
 
cCs)tjddƒ}|tj|ƒ7}|S(NRxi(R;RztPlayerGoldInvesttGetArenaTicketMax(RaR}((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pytGetArenaTicketStoreMax¸scCs/tjƒj|ƒ}|j}t||ƒdS(N(R/tGetPlayerManagertGetPlayerByIndext    IsRefreshtDoArenaMatchRefresh(REt
clientDatattickRat    isRefresh((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt OnArenaMatchÈs     cCst}t|||ƒdS(N(R8R‡(Rat gmMatchIDListRŠ((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt GMArenaMatchÎsc( Cs|jƒ}|jtjƒ}tjddƒ}tjd||||f|ƒtjd||ƒt|ƒ}|t    j
krgt    j
|<nt    j
|}t|ƒ|kr»|| }n| rõt|ƒ|krõtjd|ƒt ||ƒdS|rO| rO| rOtjddƒ\}    }
|     sH|
sHt j ||    |
dƒ rOdSntjƒ} | jtjƒ} | swdS| jƒ} | j|ƒd}tjddƒ}|d    krãtj||ƒ}tj|d    |dƒ}n|}||}tjd
| |||f|ƒtjdd ƒ\}}|||}tjd |||f|ƒg}i}xZt|ƒD]L}td||ƒ}||kr˜Pnt||ƒ}tj|ƒ||krÐ|j|ƒn|sÚPnx·|D]¯}|| krùqán| j|dƒ}|jƒ}tj|ƒ}|sStjd ||||f|ƒqán|j |ƒ|||<|dkrt|ƒ|krPqqáPqáWtjd|||f|ƒ|d}qoW|j!ƒg}xV|D]N}|| ksô|d    krøPn| j|dƒ}|jƒ}|j |ƒqÖWtjd||f|ƒ|dkr|j#ƒrx |D]˜} | |krtj$|d| ƒqan| |krŸqantj| ƒ}|sÎtj$|d| ƒqantj$|d| ƒ|j | ƒ||| <qaW|| }tjd||ƒn|t|ƒ}!tjd|!|ƒtj%ƒ}"|"j&ƒ}#d}$xƒ|$d    krå|!d    krå|#rå|$d8}$tjd    |#dƒ}%|"j'|%ƒ}&|&jƒ}'|'|krc|j |'ƒ|!d8}!qcqcWtjd||ƒ|t    j
|<t |||ƒdS(Nt
ArenaMatchisM¾º¼¼³¡Íæ¼ÒË¢ÐÂÆ¥ÅäÁбí: isRefresh=%s,playerScore=%s,gmMatchIDList=%s,isSys=%ss    matchScoreList=%ss    ·ÇË¢ÐÂÇÒÓÐÊý¾Ý£¬Ö±½Óͬ²½£¡itArenaiisA    maxOrder=%s,playerOrder=%s,matchRobotCnt=%s,matchPlayerCnt=%sis.    fromLowerCnt=%s,matchPerRank=%s,toOrder=%ssE    ÎÞÕ½¶·»º´æµÄÍæ¼Ò²»Æ¥Åä: tagID=%s,order=%s,fromOrder=%s,toOrder=%ss7    Æ¥ÅäÍæ¼Ò: fromOrder=%s,toOrder=%s,matchOrderList=%ss2    Æ¥Åä°ñµ¥½á¹û: matchIDList=%s,matchOrderList=%ss²»ÄÜÆ¥Åä×Ô¼º!%ssûÓÐÕ½¶·»º´æÄ¿±ê²»Æ¥Åä!%ssÖ¸¶¨Æ¥ÅäID(%s)s     Ö¸¶¨Æ¥Åä½á¹û: matchIDList=%ss    »¹Ðè»úÆ÷ÈËÊý=%sids     ×îÖÕÆ¥Åä½á¹û: matchIDList=%s((RcRjRkRlR;R<R/RRFR1R2t__SyncMatchListRmtPayMoneyR3R4R:R6R7RAt IndexOfByIDtGetOrderValueByDicttrandomtrandinttrangetmaxtshuffletremoveRDRGtPlayerViewCachetFindBattleViewCachetappendR@tNonet
GetGMLevelt DebugAnswertIPY_Datat GetRobotCounttGetRobotByIndex((RaRŠRŒtisSysRYt playerScoretmatchScoreListtneedMatchCountt matchIDListt    costMoneyt
moneyValueRMRNtmaxOrdert playerOrdertmatchRobotCntDicttmatchRobotRanget matchRobotCnttmatchPlayerCntt fromLowerCntt matchPerRankttoOrdertmatchOrderListt viewCacheDictt_t    fromOrderRQRWtbillDatattagIDt    viewCachet
matchOrdert    gmMatchIDt needRobotCntt
ipyDataMgrtrobotMaxtdoCntt
robotIndext robotIpyDatatrobotID((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyR‡ÔsÔ      '   
         
 
 
  !
    cCsKtjƒ}|jtjƒ}g|_xû|D]ó}||krM||}ntj|ƒ}|shq.n|jtjƒ}||_    |r|j
ƒ|_ |j ƒ|_ |jƒ|_|jƒ|_|jƒ|_|jƒ|_|jƒ|_|jƒ|_n d||_ |jj|ƒq.Wt|jƒ|_tj||ƒdS(Nsp%s(tObjPoolt
GetPoolMgrtacquiretChPyNetSendPackttagSCArenaMatchListt    MatchListRšR›ttagSCArenaMatchInfotPlayerIDt GetPlayerNamet
PlayerNamet
GetRealmLVtRealmLVtGetLVtLVtGetFacetFacet
GetFacePictFacePict GetFightPowert
FightPowertGetFightPowerExt FightPowerExt
GetTitleIDtTitleIDRœRFt
MatchCountt NetPackCommont SendFakePack(RaR§R´tobjPoolt
clientPacktmatchIDR¹t    matchInfo((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyRWs2             cCsVtjƒjtjƒ}|jtjƒ|_|jtj    ƒ|_
t j ||ƒdS(N( RÃRÄRÅRÆttagSCArenaPlayerInfoRjRkRltScoretDef_PDict_ArenaWinCnttWinCntRÜRÝ(RaRß((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyR`us
(3R3RJR6R\RmR;RÆRRšRÜR1R/RkRÃR”tRecAtkType_AtktRecAtkType_DefRRRR
R RRRRRRRR R#R%R(R*R-R)R,RbR_RuRwR~RvRƒR‹RRtFalseR‡RR`(((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt<module>s`                                                                                               4                                    ƒ