hxp
6 天以前 a4f9a87ef7bbee984a7e43472f9f12f079b4235f
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
u,îhc@s!ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
d„Z d„Z ded„Zedd„Zd„Zdd„Zd    „Zd
„Zd „Zd „Zdd „Zdd„Zdd„Zdd„ZdS(iÿÿÿÿNcCst|ƒdS(N(tSyncChatBoxInfo(t    curPlayer((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerChatBox.pyt OnPlayerLogins
cCsåttjƒƒ}g}tjƒ}x§t|jƒƒD]“}|j|ƒ}|jƒ}tj    |t
j |ƒsvq7n|j t
j |ƒ}| s7||kr¥q7nt||tdƒr7|j|ƒq7q7W|rát|ƒndS(NtChatBoxTimeout(tintttimet IpyGameDataPYtIPY_DatatrangetGetChatBoxCounttGetChatBoxByIndextGetBoxIDt    GameWorldtGetDictValueByBittChConfigtDef_PDict_ChatBoxStatetNomalDictGetPropertytDef_PDict_ChatBoxEndTimet
DelChatBoxtFalsetappendtRefreshBoxAttr(RtcurTimet
delBoxListt
ipyDataMgrtindextipyDatatboxIDtendTime((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerChatBox.pytOnMinute$s    c    Cs”|dkrdS|jƒ}tjd|ƒ}|s8dS|jƒdkrbtjd||ƒdS|s|jƒ}|jƒ}| sŽ| r’dS||gg}|jƒj    t
j ƒ}    t j ||    ƒ\}
} |
rõtjd||
f|ƒdSt j||    | dƒn|jƒd} ttjƒƒ} tj|tj|ƒ}|jtj|ƒ}tjd||||| | f|ƒ|}|dkr½| |}tjd    ||f|ƒn†| dkrìd}tjd
||f|ƒnW|| kr|| }tjd ||f|ƒn$| | }tjd ||f|ƒtj|tj|d ƒtj|tj||ƒt|ƒt||gƒtS(NitChatBoxis·ÇµÀ¾ß¼¤»îµÄ²»ÓÃÌí¼Ó: boxID=%ss*¼¤»îËùÐèÎïÆ·²»×ã! boxID=%s,lackItemDict=%st
AddChatBoxi<sYÌí¼ÓÆøÅÝ¿ò: boxID=%s,setExpireTimes=%s,state=%s,endTime=%s,ipyExpireSeconds=%s,curTime=%ss$    Ö¸¶¨Ê±³¤: boxID=%s,updEndTime=%ss$    ÓÀ¾Ãʱ³¤: boxID=%s,updEndTime=%ss$    ÀÛ¼Óʱ³¤: boxID=%s,updEndTime=%ss$    ÖØÐ¼¤»î: boxID=%s,updEndTime=%si(t GetPlayerIDRtGetIpyGameDatat GetUnlockWayR tDebugLogtGetUnlockValuetGetUnlockNeedCnttGetItemManagertGetPackt IPY_GameWorldtrptItemt
ItemCommontGetCostItemIndexListt DelCostItemtGetExpireMinutesRRR RRRRtLogtSetDictValueByBitt PlayerControltNomalDictSetPropertyRRtTrue(RRtsetExpireTimestisFreetplayerIDRtitemIDt    itemCountt needItemListtitemPackt lackItemDictt delInfoDicttipyExpireSecondsRtstateRt
updEndTime((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerChatBox.pyRJsX         
 
 
 
tcCs%|jƒ}tjd|ƒ}|s(dStj|tj|ƒsDdStjd||f|ƒtj|tj|dƒt    j
|tj |dƒt    j |ƒ|krÙt |ƒ}t    j||ƒtjd||ƒn|rìt|ƒnt||gƒ|r!t    j||gg|gƒntS(NRs"ɾ³ýÆøÅÝ¿ò: boxID=%s,notifyMail=%sis'Íæ¼ÒÁÄÌìÆøÅÝ¿ò±»É¾³ý£¬ÖØÐÂÉèÖÿÉÓÃID=%s(R RR!R R RRR.R/R0R1Rt
GetChatBoxtGetCanUseBoxIDt
SetChatBoxR#RRt SendMailByKeyR2(RRt isRefreshAttrt
notifyMailR5RtcanUseID((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerChatBox.pyRƒs&   cCsktjƒ}xXt|jƒƒddd…D]7}|j|ƒ}|jƒ}t|||ƒr,|Sq,WdS(Niÿÿÿÿi(RRRR    R
R t IsBoxCanUse(RRRRR((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerChatBox.pyRA›s & cCsftj|tj|ƒ}|r"tS|s=tjd|ƒ}n|rb|jƒ}|dkrbtSntS(NRi(    R R RRR2RR!R"R(RRRR=t    unlockWay((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerChatBox.pyRG¥s  cCstj|ƒdS(N(t    PlayerHJGtRefreshHJGAttr(R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerChatBox.pyR´s cCs[|jƒ}t||ƒs3tjd||ƒdStjd||ƒtj||ƒdS(Ns'ÁÄÌìÆøÅÝ¿ò²»¿ÉÓã¬ÎÞ·¨ÉèÖÃ! useBoxID=%ss#ÉèÖÃʹÓõÄÁÄÌìÆøÅÝ¿òID: useBoxID=%s(R RGR R#R0RB(RtuseBoxIDR5((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerChatBox.pyt OnUseChatBox¸s c Cs|jƒ}t||ƒs3tjd||ƒdStjd|ƒ}|sOdS|jƒ}|jtj    |ƒ}||kržtjd|||f|ƒdS|j
ƒdkr´dS|j ƒ}|j ƒ}| sÚ| rÞdS||gg}|j ƒjtjƒ}    tj||    ƒ\}
} |
rAtjd||
f|ƒdStj||    | dƒ|d} tjd|| f|ƒt||| ƒdS(    NsÁÄÌìÆøÅÝ¿ò²»¿ÉÓÃ! boxID=%sRs#ÐǼ¶ÒÑÂú! boxID=%s,curStar=%s >= %sis*ÉýÐÇËùÐèÎïÆ·²»×ã! boxID=%s,lackItemDict=%st ChatBoxStarUPisÉýÐÇ! boxID=%s,nextStar=%s(R RGR R#RR!t
GetStarMaxRRtDef_PDict_ChatBoxStarR"R$R%R&R'R(R)R*R+R,tSetChatBoxStar( RRR5RtstarMaxtcurStarR6R7R8R9R:R;tnextStar((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerChatBox.pytOnChatBoxStarUPÁs:     
cCs|t||ƒsdStjd|ƒ}|s/dSt||jƒƒ}tj|tj||ƒt    |ƒt
||gƒt S(NR( RGRR!tminRNR0R1RRORRR2(RRtsetStarR((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerChatBox.pyRPás
c Csh|dkr`g}tjƒ}xEt|jƒƒD](}|j|ƒ}|j|jƒƒq1Wn|}g}x¨|D] }tj    |t
j |ƒ}| rª|dkrªqsnt j ƒjtjƒ}    ||    _||    _|jt
j|ƒ|    _|jt
j|ƒ|    _|j|    ƒqsW|s!dSt j ƒjtjƒ}
||
_t|
jƒ|
_tj||
ƒdS(N(tNoneRRRR    R
RR R R RRtObjPoolt
GetPoolMgrtacquiretChPyNetSendPackt tagSCChatBoxtBoxIDtStateRRtEndTimeROtStarttagSCChatBoxInfotBoxListtlentCountt NetPackCommont SendFakePack( Rt    boxIDListt
syncIDListRRRtboxListRR=tboxt
clientPack((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerChatBox.pyRís2               c
CsØ|dkrdS|jƒ}tjd|ƒ}|s8dS|jƒr\tjd||ƒdS|jƒd}ttjƒƒ}tj    |t
j |ƒ}|j t
j |ƒ}tjd||||||f|ƒ|}    |dkr ||}    tjd||    f|ƒn†|dkr:d}    tjd||    f|ƒnW||krm||}    tjd||    f|ƒn$||}    tjd    ||    f|ƒtj|t
j |d
ƒtj|t
j ||    ƒt||gƒtS( Nit    EmojiPacks#±íÇé°üĬÈϽâËøµÄ²»ÓÃÌí¼Ó: packID=%si<sZÌí¼Ó±íÇé°ü: packID=%s,setExpireTimes=%s,state=%s,endTime=%s,ipyExpireSeconds=%s,curTime=%ss+    Ö¸¶¨±íÇé°üʱ³¤: packID=%s,updEndTime=%ss+    Ìí¼ÓÓÀ¾Ã±íÇé°ü: packID=%s,updEndTime=%ss+    ÀÛ¼Ó±íÇé°üʱ³¤: packID=%s,updEndTime=%ss+    ÖØÐ¼¤»î±íÇé°ü: packID=%s,updEndTime=%si(R RR!tGetUnlockDefaultR R#R-RRR RtDef_PDict_EmojiPackStateRtDef_PDict_EmojiPackEndTimeR.R/R0R1tSyncEmojiPackInfoR2(
RtpackIDR3R5RR<RR=RR>((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerChatBox.pyt AddEmojiPacks>        
 
 
cCs¾|jƒ}tjd|ƒ}|s(dS|jƒr8dStjd||f|ƒtj|tj|dƒt    j
|tj |dƒt ||gƒ|rºt    j ||gg|gƒntS(NRls+ɾ³ýÍæ¼ÒÁÄÌì±íÇé°ü: packID=%s,notifyMail=%si(R RR!RmR R.R/RRnR0R1RoRpRCR2(RRqRER5R((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerChatBox.pyt DelEmojiPack:s  c Cs7|dkr`g}tjƒ}xEt|jƒƒD](}|j|ƒ}|j|jƒƒq1Wn|}g}xƒ|D]{}tj    |t
j |ƒ}| rª|dkrªqsnt j ƒ}    ||    _||    _|jt
j|ƒ|    _|j|    ƒqsW|südSt jƒ}
||
_t|
jƒ|
_tj||
ƒdS(N(RWRRRtGetEmojiPackCounttGetEmojiPackByIndexRtGetEmojiPackIDR R RRnR[ttagMCEmojiPacktPackIDR^RRoR_ttagMCEmojiPackInfot EmojiPackListRcRdReRf( Rt
packIDListRhRRRtpackListRqR=tpackRk((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerChatBox.pyRpJs0                 (R RIR0R(R[RReR*RRXRRRRWRRR2RRARGRRLRTRPRRrRsRp(((slD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerChatBox.pyt<module>s0                   &9    
                      ! ,