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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
êE®jc@s9ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZedd$ƒZ\ZZZdZd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd „Z d „Z!d„Z"d„Z#ddd„Z%dd„Z&d„Z'd„Z(ddd„Z)d„Z*d„Z+dd„Z,d„Z-d„Z.ddd„Z/dd„Z0d„Z1ddge2d„Z3d „Z4d!„Z5d"„Z6ge2d#„Z7dS(%iÿÿÿÿNiicCsŒtjdƒ}|sˆi}tjƒ}xKt|jƒƒD]7}|j|ƒ}|jƒ}|jƒ}|||<q:Wtjd|ƒn|S(NtTitlePalaceIDDict(    t IpyGameDataPYt GetConfigExtIPY_DatatrangetGetPalaceCounttGetPalaceByIndext GetPalaceIDt
GetTitleIDt SetConfigEx(Rt
ipyDataMgrtindextipyDatatpalaceIDttitleID((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pytGetTitlePalaceIDDict.s   c    CsTd}x2|D]*}|d}    |    |kr ||    }Pq q W|sEdS||krUdS||}
|jƒ} |jƒ} |s¶tjƒr¶tjd|||    ||
| | fƒdSntjd|||    ||
| | fƒtjƒ} | j    ||
|tj
dt ƒ}|j | ƒ|j | ƒ|j|jƒƒ|j|ƒt||ƒdS(Nisw±¾·þ»Ê¹¬ÒÑ¿ç·þÔݲ»Ö§³ÖÐÂÔöµÛÍõ! playerID=%s,playerServerID=%s,itemID=%s,titleID=%s,palaceID=%s,cmpValue=%s,cmpValue2=%ssg»Ê¹¬ÐµÛÍõ³É¾Í! playerID=%s,playerServerID=%s,itemID=%s,titleID=%s,palaceID=%s,cmpValue=%s,cmpValue2=%stisSort(t GetCmpValuet GetCmpValue2tDBPalacet IsPalaceCrosst    GameWorldtErrLogtLogt    DBDataMgrt GetPalaceMgrt
AddEmperortEmperorDataType_SucctTruet SetCmpValuet SetCmpValue2t SetPlayerNametGetName1t SetServerIDtUpdEmperorViewCache(tplayerIDtplayerServerIDt    awardListtItemTitleIDDictRt billBoardDatat isCrossServerRtitemInfotitemIDR tcmpValuet    cmpValue2t    palaceMgrtemperor((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pytOnBillAwardPalaceTitle<s8 
 
 
            !    cCsîtj|ƒ}|sdS|j|jƒƒ|j|jƒƒ|j|jƒƒ|j|j    ƒƒ|j
|j ƒƒ|j |j ƒƒ|j|jƒƒ|j|jƒƒ|j|jƒƒ|j|jƒƒ|j|jƒƒdS(N(tPlayerViewCachet FindViewCacheRt GetPlayerNametSetLVtGetLVtSetJobtGetJobt
SetRealmLVt
GetRealmLVtSetFacetGetFacet
SetFacePict
GetFacePict SetModelMarkt GetModelMarktSetEquipShowSwitchtGetEquipShowSwitchtSetFightPowerTotaltGetFightPowerTotalR!t GetServerIDt
SetTitleIDR(R#R.t    viewCache((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pyR"^sc    Cs2|jƒ}tƒ}||kr9tjd||ƒdS||}tj|ƒ}i|d6|d6|jƒd6}tjƒròtj    ƒj
ƒ}|dkrµtj d||ƒdStj d|||f|ƒt jtj||g|ƒdStj d||f|ƒtjƒjƒ}t|||ƒdS(    Ns·Ç»Ê¹¬³ÆºÅ²»´¦Àí! titleID=%sR R$t
playerNameis ±¾·þδ·ÖÅä»Ê¹¬¿ç·þID! titleID=%ssC»Ê¹¬ÒÑ¿ç·þ·¢ËÍ¿ç·þÈëפµÛÍõ! palaceID=%s,titleID=%s,crossServerID=%ss2»Ê¹¬Î´¿ç·þÖ±½Ó±¾·þÈëפµÛÍõ! palaceID=%s,titleID=%s(t GetPlayerIDRRtDebugLogtGetPlayerServerIDR2RRRRtGetAllotCrossServerIDRRtCrossMsgtSendToCrossServert ShareDefinet S2C_PalaceAddt GetGameWorldRC(    t    curPlayerRR#RR R$tdataMsgt crossServerIDt fromServerID((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pytOnAddPalaceTitleos(      
!  c
CsÑ|d}|d}|d}tjd|ƒ}|s:dStjƒ}|j|ƒ}tjd|||fƒ|j|||tj    dt
ƒ}    |    j |ƒ|    j |ƒt ||    ƒtd|d|gƒdS(    NR RFR$tPalaces1»Ê¹¬ÐµÛÍõÈëפ! playerID=%s,palaceID=%s,zoneID=%sRt
syncZoneIDtsyncPalaceIDList(RtGetIpyGameDataRRtGetServerZoneIDRRRRtEmperorDataType_ThroneRRR!R"tSyncPalacePreviewInfo(
RQRSR#R RFR$R R-tzoneIDR.((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pyRN‡s
 
 
 !   cCs9|jtjƒr5tj|tjdƒt|ƒndS(Ni(tNomalDictGetPropertytChConfigtDef_PDict_PalaceWorshipInfot PlayerControltNomalDictSetPropertytSyncPalacePlayerInfo(RP((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pyt PlayerOnDayžs cCst|tƒdS(N(t__doPlayerOnDay_22tFalse(RP((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pytPlayerOnDay_22¥s cCst|tƒdS(N(RdR(RP((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pytPlayerOnDayCross_22©s cCsÿtj|tjƒsdS|tjƒkr/dSg}tjƒ}xyt|j    ƒƒD]e}|j
|ƒ}|j ƒ}t j |tj|ƒs“qTnt j|tj|dƒ|j|ƒqTW|jtjƒsÕ|rûtj|tjdƒt||ƒndS(Ni(t GameFuncCommt GetFuncCanUseRMtGameFuncID_PalaceRRRRRRRRRtGetDictValueByBitR^tDef_PDict_PalaceBlessStatetSetDictValueByBittappendR]tDef_PDict_PalaceBlessMoneyTotalR`RaRb(RPtbyCrosstresetPalaceIDListR
R R R ((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pyRd­s"  cCsatj|tjƒsdSt|dtƒtjƒs]tj    ƒj
|j ƒƒ}t |ƒndS(NtisLogin( RhRiRMRjRbRRRt CrossPlayertGetCrossPlayerMgrtFindCrossPlayerRGtOnCrossPlayerLogin(RPt crossPlayer((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pyt OnPlayerLoginÄs  cCst|dtƒt|ƒdS(NRr(R[RtSyncPalaceBlessList(Rw((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pyRvÍs
cCsYtjƒj|ƒ}d}tjƒr<tjƒjƒ}ntj    ||||dƒdS(Nis"PlayerPalace.__OnViewPalaceEmperor(
RtGetPlayerManagertGetPlayerByIndexRRRRRJRstPyPackForwarding(R t
clientDatattickRPRR((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pytOnViewPalaceEmperorÝs  ic
CsP|j}|j}|j}|j}t|||||ƒ}    tj||    ƒdS(N(tPalaceIDtDataTypet
StartIndextViewCnttGetPack_ViewPalaceEmperorRst SendFakePack(
RwR}R~RSt    reqDataExR tdataTypet
startIndextviewCntt
clientPack((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pyt__OnViewPalaceEmperorås                icCs&tjƒ}|j|ƒ}|j|ƒ}|j|ƒ}|j|ƒ}    t|    ƒ}
|
d} tt|| ƒdƒ}|s‚dn t|dƒ}t||d| ƒ} |
s´gnt    || dƒ} t
j ƒ}||_ ||_ |
|_g|_x| D]}||
krPn|    |}|j||ƒ}t
jƒ}||_|jƒ|_|jƒ|_t|jƒ|_|jƒ|_|jƒ|_|jƒ|_|jƒ|_|j ƒ|_!|j"ƒ|_#|j$ƒ|_%|j&ƒ|_'|j(ƒ|_)|jj*|ƒqþWt|jƒ|_+|S(Niiiid(,RRRYtGetZonePalaceMgrt    GetPalacetGetEmperorListtlentmaxtminRtChPyNetSendPackttagSCPalaceEmperorListR€Rt    DataTotalt PageDataListt GetEmperorAtttagSCPalaceEmperortIndexRGtPlayerIDR2tNametNameLenR6tJobR8tRealmLVR:tFaceR<tFacePicRtTitleIDRCtServerIDt
GetAddTimetAddTimeRtCmpValueRt    CmpValue2Rnt PageDataCnt(RSR R‡RˆR‰R-R\tzoneMgrtpalacet emperorListtcounttmaxIndextendIndext    viewRangeRŠR R.tviewData((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pyR„îsL  
                   
     c    Csótjƒj|ƒ}|j}tjd|ƒ}|s:dS|jƒ}tj||ƒsstj    d||fƒdStj
|t j |ƒ}|r¬tj    d||fƒdSd}t jƒrÓtjƒjƒ}ntj||||dtƒdS(NRUs,¸Ã»Ê¹¬Ë͸£³ÆºÅ²»¿ÉÓÃ! palaceID=%s,titleID=%ss(¸Ã»Ê¹¬½ñÈÕÒÑË͸£! palaceID=%s,titleID=%sisPlayerPalace.__OnPalaceBless(RRzR{R€RRXRt    PlayerHJGt IsTitleCanUseRHRkR^RlRRRRRJRsR|R(    R R}R~RPR R Rt
blessStateRR((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pyt OnPalaceBless"s$      cCs@|s
dS|j}tj|tj|dƒt||gƒdS(Ni(R€RRmR^RlRb(RPR}tisOKR ((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pyt__OnPalaceBless_Ret7s     c Csq|j}|j}|jƒ}|jƒ}tjƒ}    |    j|ƒ}
|    j||||ƒ} t|
| gƒt    S(N(
R€tBlessWordIndexRGRCRRRYtAddBlesstSyncNewPalaceBlessListR( RwR}R~RSR†R t    wordIndexR#R$R-R\tbless((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pyt__OnPalaceBless?s           cCs0|jtjƒ}|d}|d}||fS(Ni
(R]R^R_(RPt worshipInfot
worshipNumt
worshipCnt((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pytGetWorshipInfoNs
 
cCs"tj|tj|d|ƒdS(Ni
(R`RaR^R_(RPR¼R½((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pytSetWorshipInfoSsc    CsFt|ƒ\}}||kr9tjd||fƒdSd}d}|tkrltjddƒ\}}nH|tkr“tjddƒ\}}n!|tkr´tjddƒ}n||krÞtjd|||fƒdSt    |||ƒ}t
d||ƒ}t |||ƒtjd|||||fƒt |ƒ||S(    Ns'·Ç½ñÈÕ¼ÀìëЧ¹û±àºÅ! worshipNum=%s != %siit PalaceWorshipiis?½ñÈÕ¼Àìë´¥·¢Ð§¹û´ÎÊýÒÑ´ïÉÏÏÞ! worshipNum=%s,worshipCnt=%s >= %ssN½ñÈÕ¼Àìë´¥·¢Ð§¹û! worshipNum=%s,realEffCnt=%s,worshipValue=%s,worshipCnt=%s/%s( R¾RRHtWorshipNum_FBZhanchuiRtGetFuncEvalCfgtWorshipNum_MainLevelExptWorshipNum_DingjungeQuickt
GetFuncCfgR‘RR¿Rb(    RPR¼teffCntt    curEffNumR½t worshipValuetmaxCntt updWorshipCntt
realEffCnt((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pyt OnWorshipEffWs,         
c     Cs±|jƒ}|j}|j}tjd||f|ƒ|dkr±|jtjƒrjtjd|ƒdStj    dt
t ƒƒ}tjd|ƒt ||dƒt |ƒdSi}|dkrïtj|ƒ}|jtj|ƒ|d<nu|dkrd|jtjƒ}    tjddƒ}
|    |
krItjd    |    |
f|ƒdS|    |d
<|
|    |d <nd} tjƒr‹tjƒjƒ} ntj||| |d td |ƒdS(Ns#»Ê¹¬Áì½±! awardType=%s,dataExStr=%sisÍæ¼Ò½ñÈÕÒѼÀìë!isËæ»ú¼ÀìëЧ¹û±àºÅ=%st lastLikeTimeit PalaceBlesss8Íæ¼Ò½ñÈÕÁìÈ¡Ë͸£ÒÑ´ïÉÏÏÞ! playerBlessMoneyTotal=%s >= %stplayerBlessMoneyTotalt    canGetMaxsPlayerPalace.__OnGetPalaceAwardR†(RGtDataExt    DataExStrRRHR]R^R_trandomtrandintRtWorshipNumListR¿RbtToIntDeftDef_PDict_PalaceLikeTimeRoRRÅRRRRRRJRsR|R( RPR}R~R#t    awardTypet    dataExStrR¼R†R RÏtgetBlessMoneyMaxRR((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pytOnGetPalaceAward{s<          
 
 "cCsg|s
dS|j}|j}|dkrJtj|ƒ}t||gƒn|dkrct|ƒndS(Nii(RÑRÒRRÖRb(RPR}R³RØRÙR ((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pyt__OnGetPalaceAward_Ret¦s           c%
Cså|j}|j}|jƒ}tjƒ}|j|ƒ}    |j|    ƒ}
tjd||f|ƒ|dkr6tj    |ƒ} |j
ddƒ} |
j | ƒ} | j t jƒsÎtjd|    | f|ƒdS| jt jdƒ}|jƒ}| |krtjd|    | | |f|ƒdStjddƒ}ttjƒƒ}tj||ƒd}||kr•tjd|    | tj|ƒ||f|ƒdStjdd    ƒ\}}| s»| r¿dStjd
|    | tj|ƒ|f|ƒtj|i|tj| 6ƒi| d 6}tj|di||6d|ƒn«|d    krÝt|ƒ\}} |j |ƒ}|s”t!||| dƒtjd ||ƒdStj"d | ƒ}|s°dSt#}|j
ddƒ}|j
ddƒ}|dkrêdSt$}x¶|ddd…D]¡}| |j%ƒkr"qn|j&ƒ}||krt'}|j(ƒ}t)|j*ƒƒ}|j+ƒ} |j,ƒ}!t-j.|!d|!dƒ}"t/dt0|"| ||ƒƒ}#tj1d|| |"|| ||ƒ|#||<||#7}tj|i|tj26ƒi| d 6|d6}tj|di|#|6d|ƒ||#7}|| kr¡|j3|ƒt4|j5ƒƒ}$tjd|| |$||fƒt j6|||$|ƒnPqqW|sát!||| dƒtj7d||ƒdSndSt'S(Ns »Ê¹¬Áì½±: DataEx=%s,DataExStr=%siRÍis/ûÓÐÈëפµÛÍõ¼Ç¼ÎÞ·¨µãÔÞ! zoneID=%s,palaceID=%ssMÒѾ­ÊÇ×îеĵãÔ޼ǼÁ˲»ÄÜÔÙµãÔÞ! zoneID=%s,palaceID=%s,lastLikeTime=%s >= %st
PalaceLikesJ·Ç½üXÌì¼Ç¼ÎÞ·¨µãÔÞ! zoneID=%s,palaceID=%s,lastAddTime=%s,diffDays=%s > %sis:»Ê¹¬µãÔÞ! zoneID=%s,palaceID=%s,lastAddTime=%s,diffDays=%sR s(ÕÒ²»µ½Ä¿±êÍæ¼ÒµÄË͸£ÐÅÏ¢! tagPlayerID=%sRURÏRÐiÿÿÿÿs:ÁìÈ¡Ë͸£! tagPlayerID=%s,palaceID=%s,randMoney=%s,%s/%s,%st tagPlayerIDRÎsYÄ¿±êË͸£Òѱ»ÁìÍê! tagPlayerID=%s,palaceID=%s,playerCnt=%s,moneyTotalOut=%s,tagServerID=%ss0ÕÒ²»µ½Ä¿±êÍæ¼ÒµÄ¿ÉÁìÈ¡µÄË͸£ÐÅÏ¢! tagPlayerID=%s(8RÑRÒRGRRRYRŒRRHRÖtgetRtGetEmperorCountRRZRR–R¢RRÅtintttimet GetDiff_DaytChangeTimeNumToStrRÂRstSetPlayerNomalDictR^R×tGivePlayerResourcestNonetevaltGetPlayerBlessListtSyncGetBlessFailRXtBlessMoneyTypeReRt GetUserDictRRCtsumtvaluestGetBlessMoneyTotaltGetBlessMoneyRangeRÓRÔRR‘t
DebugLogExRotDelBlessRtkeystSendBlessEndMailR(%RwR}R~RSR†RØRÙR#R-R\R§R RÍR¨R.t lastAddTimet
likeDaySettcurTimetdiffDayst    moneyTypet
moneyValuetdrDictRÞt    blessListR RÏRÐt canGetBlessR¹t getPlayerDictt tagServerIDt moneyTotalOuttBlessMoneyTotaltBlessMoneyRanget    randMoneyt
blessMoneyt    playerCnt((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pyt__OnGetPalaceAwardµs¨                      #      #           
 
 
      cCs;tjƒ}||_||_||_tj||ƒdS(N(R’ttagSCPalaceGetBlessFailR™R€t
FailReasonRsR…(RwRÞR treasonRŠ((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pyRê$s              c
CsÄg}tjƒ}|j|ƒ}|jƒ}tjƒ}x„|jƒD]v}|j|ƒ}|sgqFn|rF|jƒ}|j    |ƒ}    |    |kršqFn||kr¬qFn|j
|ƒqFqFW|S(N( RRRŒtGetZoneServerIDListRsRttGetPlayerIDListRuRCRYRn(
ttoZoneIDtcrossPlayerListR-R§trecServerIDListtcrossPlayerMgrR#RwtserverIDR\((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pytGetSyncPalaceCrossPlayerList,s$      cCs0tjƒ}|r3|g}|j|jƒƒ}n t|ƒ}|j|ƒ}|sc|jƒ}n|smdStjƒrdnd}t    t
j
ƒƒ}tjƒr¸t j ƒj ƒ}ntjddƒ}    d}
xY|D]Q} |j| ƒ} d} g}g}xt| jtjƒƒD]}| jtj|ƒ}|jƒ}|jƒ}|dkr_|} ntj||ƒd}||
kr…Pn||    kr°|j|jƒ|gƒqn|rºPntj|ƒ}|sÕqn|jƒ}|jƒ}|sùdnd}|j||||gƒqW|r5|jdtƒn*|r_|jdtƒ|j|dƒng}x[|d D]O}|d}t j!ƒ}|jƒ|_"|j#ƒ|_$t%|j$ƒ|_&|j'ƒ|_(|j)ƒ|_*|j+ƒ|_,|j-ƒ|_.|j/ƒ|_0|j1ƒ|_2|j3ƒ|_4|j5ƒ|_6|j7ƒ|_8|j9ƒ|_:|jƒ|_;tj|jƒƒ}t<j=tj>|ƒƒ|_?t%|j?ƒ|_@|jƒ|_A|j|ƒqpW|rÖ| rÖq×nt jBƒ}||_C| |_D| |_E||_Ft%|jFƒ|_GtHjI||ƒq×WdS(NiiRÝitreverseiÿÿÿÿ(JRRRYRCRRŒtGetPalaceIDListRt IsCrossServerRáRâtCrossMgrtGetSSServerMgrt GetCrossTimeRRÅRRRàRRZR–RGR¢RãRnRBR0R1t
GetOffTimetsortRR’ttagSCPalacePreviewPlayerR™R2RšRR›R4tLVR6RœR8RR:RžR<RŸR>t    ModelMarkR@tEquipShowSwitchRR t GetFightPowert
FightPowertGetFightPowerExt FightPowerExR¡tCommFunctJsonDumptGetBasePlusDicttPlusDatat PlusDataSizeR£ttagSCPalacePreviewListtIsCrossR€t LastAddTimet
PlayerListt    PlayerCntRstSendFakePackToPlayerList(RwRVRWRrR-R R§tisCrossR÷Röt
viewDayMaxR R¨RõtviewEmperorListtlikeEmperorListR R.R#taddTimeRøREtfightPowerTotalt offlineTimetonlinetviewPlayerListtinfot
viewPlayerRŠ((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pyR[Bs                    
                   cCs]t|ƒ}t|ƒ}|s"dStjƒ}||_t|jƒ|_tj||ƒdS(N(    Rt__getPackBlessPlayerR’ttagSCPalaceBlessListR*RR+RsR,(R\t newBlessListR tblessPlayerListRŠ((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pyR·¨s       c
Csü|jƒ}tjƒ}|j|jƒƒ}g}xut|jƒƒD]a}|j|ƒ}||j|jƒƒkr|qFn|jƒ}||kršqFn|j    |ƒqFWt
|ƒ}|sÁdSt j ƒ}    ||    _ t|    j ƒ|    _tj||    ƒdS(N(RGRRRYRCRt GetBlessCountt
GetBlessAtRìRnR8R’R9R*RR+RsR…(
RwR#R-t playerZoneIDRüR R¹RþR;RŠ((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pyRy´s(          cCs…g}xx|d D]l}tjƒ}|jƒ|_|jƒ|_|jƒ|_|jƒ|_    t
j |jƒƒ}|rp|j ƒ|_ t|j ƒ|_|jƒ|_|jƒ|_|jƒ|_|jƒ|_|jƒ|_|jƒ|_|jƒ|_|jƒ|_|j ƒ|_!|j"ƒ|_#|j$ƒ|_%t&j't
j(|ƒƒ|_)t|j)ƒ|_*n|j+|ƒqW|S(Nid(,R’ttagSCPalaceBlessPlayerRR€RGR™t GetWordIndexRµt GetBlessTimet    BlessTimeR0R1R2RšRR›R4RR6RœR8RR:RžR<RŸR>RR@RRR RRR R!RCR¡R"R#R$R%R&Rn(RüR;R¹t blessPlayerRE((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pyR8Ës4 c CsB| ra|rag}tjƒ}x?t|jƒƒD](}|j|ƒ}|j|jƒƒq2Wng}xd|D]\}tjƒ}||_    |j
t j |ƒ|_ tj|t j|ƒ|_|j|ƒqnWt|ƒ\}    }
tjƒ} |    | _|
| _|j
t jƒ| _|| _t| jƒ| _tj|| ƒdS(N(RRRRRRnRR’ttagSCPalacePlayerInfoPalaceR€R]R^R×tLikeTimeRRkRlt
BlessStateR¾ttagSCPalacePlayerInfot
WorshipNumt
WorshipCntRoRtPlayerPalaceListRt    PalaceCntt NetPackCommonR…( RPt palaceIDListRrR
R R tplayerPalaceListR R¨R¼R½RŠ((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pyRbês,                     i(8RRKRRRRMRLR’R0RR`RhRsR¯R^R"RÓRâRRÕRÁRÃRÄRëRR/R"RTRNRcRfRgRdRxRvRRçR‹R„R²R´RºR¾R¿RÌRÛRÜRRêRReR[R·RyR8Rb(((skD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerPalace.pyt<module>sb                          "                                                 4                 $    +    o     f