cjc
8 天以前 ab5b37e354edee134e98f8d7e41930c2310041c7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Hëic@s¯ddlZddlZddlZddlZddlZddlZddlZddlZddlZd„Z    d„Z
d„Z d„Z d„Z d„Zd„ZdS(    iÿÿÿÿNcCsxˆtjjtjiƒjƒD]h}|jtjdƒ}t||ƒ}|s|jtjƒr‡t    ||ƒt
|tj|ƒq‡qqWdS(Ni( t
PyGameDatatg_operationActionDicttgett ShareDefinetOperationActionName_Signtvaluest ActKey_ActNumt__CheckPlayerSignActiont ActKey_StatetSync_SignActInfotSync_ActSignPlayerInfo(t    curPlayertactInfotactNumtisReset((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActSign.pyt OnPlayerLogins% cCs^tjƒ}xKt|jƒƒD]7}|j|ƒ}tj|ƒsIqnt||ƒqWdS(N(t    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextIsNormalPlayerR(R t playerManagertindexR ((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActSign.pytRefreshSignActionInfo)s cCs|jƒ}tjtj|ƒ}|jtjdƒ}|jtjdƒ}|jtjdƒ}|j    t
j |ƒ}||kr£tj d|||f|ƒdStj d|||||f|ƒt j|t
j ||ƒt||ƒt|tj|ƒtS(Nis4Ç©µ½»î¶¯ID²»±ä£¬²»´¦Àí£¡ actNum=%s,cfgID=%s,actID=%ssAÇ©µ½»î¶¯ÖØÖÃ! actNum=%s,actID=%s,playerActID=%s,state=%s,cfgID=%s(t GetPlayerIDRt
GetActInfoRRRt    ActKey_IDRt ActKey_CfgIDtNomalDictGetPropertytChConfigtDef_PDict_ActSingIDtDebugLogt PlayerControltNomalDictSetPropertyR    t ResetActSigntTrue(R R tplayerIDR tactIDtstatetcfgIDt playerActID((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActSign.pyR2s  # cCsw|tjkrdStj|}tj|tj||fdƒtjd|||f|jƒƒt    |||ƒdS(Nis%ÖØÖûǩµ½: %s,actType=%s,actNum=%s(
RtOperationActTypeDictR!R"RtDef_PDict_ActSignAwardRR RR
(R tactNameR tactType((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActSign.pyR#Gs  #c
Cs~tj|ƒ}|}|jƒ}d}x3tjjƒD]"\}}||kr7|}Pq7q7Wtj||ƒ}    |     s‰|    jtjƒ rªtj    d|||f|ƒdS|    jtj
ƒ}
|    jtj ƒ} t j ||
ƒ} | sêdSt| dƒstj    d|||f|ƒdS| jƒ} t jd| ƒ}|sBdSg}|jtj||fƒ}}xj|D]b}|jƒ}| d|kr•Pn|td|ƒ@r®qon||jƒ7}|td|ƒO}qoW|stj    d|||| |f|ƒdStj    d    |||| |||f|ƒtj|tj||f|ƒt|||ƒtj||d
d tigƒdS( Nts1»î¶¯Ç©µ½·Ç»î¶¯ÖÐ: actType=%s,actNum=%s,actName=%st GetSignTempIDs+»î¶¯ÎÞÇ©µ½: actType=%s,actNum=%s,actName=%st ActSignAwardiisTûÓпÉÁìÈ¡µÄ»î¶¯Ç©µ½½±Àø! actType=%s,actNum=%s,actName=%s,dayIndex=%s,awardRecord=%ssbÁìÈ¡»î¶¯Ç©µ½½±Àø£¡ actType=%s,actNum=%s,actName=%s,dayIndex=%s,awardRecord=%s,updAwardRecord=%s,%steventtActSign(RtToIntDefRRR*titemsRRRR RtActKey_DayIndext IpyGameDataPYtGetIpyGameDatathasattrR/tGetIpyGameDataListRRR+t    GetDayNumtpowtGetSignAwardItemListR!R"R
t ItemControlertGivePlayerItemOrMailtFalse(R tdataExt    dataExStrR-R R%R,taNametaTypeR R(tdayIndextipyDatat
signTempIDtsignIpyDataListt awardItemListtupdAwardRecordt awardRecordt
dayIpyDatatdayNum((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActSign.pytOnGetActSignAwardPsX                cCsq|tjkrdStj|}tjƒ}||_||_|jtj||fƒ|_    t
j ||ƒdS(N( RR*tChPyNetSendPackttagSCActSignPlayerInfotActTypetActNumRRR+t    SignAwardt NetPackCommont SendFakePack(R R,R R-t
clientPack((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActSign.pyR
…s          cCsÁtjtj|ƒ}|jtjƒs+dS|jtjƒ}tjd|ƒ}|sYdStj    |ƒ\}}t
j ƒ}||_ |jtj |ƒ|_||_||_tj||ƒdS(NR2(RRRRRRRR6R7tGetOperationActionDateStrRNttagSCActSignInfoRQtActKey_StartDateSynct    StartDatetEndtDatetCfgIDRSRT(R R R R(REt startDateStrt
endDateStrRU((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActSign.pyR    s             (RR!R6RNR=RSRRRRRRR#RMR
R    (((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActSign.pyt<module>s                                      5