hxp
2025-05-16 273fbbf3ec69623f4501583614174c7d604a06b5
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
Sð    hc@sµddlZddlZddlZddlZddlZddlZddlZddlZd„Zd„Z    id„Z
d„Z d„Z d„Z dd„Zed    „ZdS(
iÿÿÿÿNcCst|ƒt|tƒdS(N(tSyncXiangongInfotSyncTiandaoTreeInfotTrue(t    curPlayer((sR.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerXiangong.pyt OnPlayerLogins
 cCsÁtj|tjddƒg}tjƒ}xxt|jƒƒD]d}|j|ƒ}|j    ƒ}|j
tj|ƒs|q?ntj|tj|dƒ|j |ƒq?W|r½t ||ƒndS(Ni( t PlayerControltNomalDictSetPropertytChConfigtDef_PDict_XiangongLikeStatet IpyGameDataPYtIPY_DatatrangetGetXiangongCounttGetXiangongByIndext GetXiangongIDtNomalDictGetPropertytappendR(RtxiangongIDListtipyMgrtindextipyDatat
xiangongID((sR.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerXiangong.pyt PlayerOnDay s  cCs½|jtjƒ}t||tjƒ}tj|tj|ƒtj|d|gƒi|jƒd6|j    ƒd6|j
ƒd6|d6|d6}|j |ƒt j d||ƒt|ƒ|S(NtAddQiyuntPlayerIDt
PlayerNametAccIDtupdQiyuntaddValuetAddTiandaoQiyun(RRtDef_PDict_TiandaoQiyuntmintDef_UpperLimit_DWordRRt
NotifyCodet GetPlayerIDt GetPlayerNametGetAccIDtupdatetDataRecordPackt SendEventPackR(RRtaddDicttcurQiyunRtdataDict((sR.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerXiangong.pyR3s 
cCs4|d}|d}|dkr0t||ƒndS(Niit LikeXiangong(t__DoLikeXiangong(RtmsgDatatmsgTypetdataMsg((sR.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerXiangong.pytGameServer_Xiangong_DoResult?s
 
 
 cCsÚ|\}}}|jƒ}|jtj|ƒ}|rOtjd||ƒdStjd|||f|ƒtj|tj|dƒt||gƒtj    |||di|d6ƒt
j |gddi||6ƒdS(Ns¸ÃÏɹ¬ÒѵãÔÞ! xiangongID=%ss2Ïɹ¬µãÔÞ! xiangongID=%s,moneyType=%s,moneyValue=%siR+Rt    moneyInfo( R"RRRt    GameWorldtDebugLogRRRt    GiveMoneyt ItemControlertNotifyGiveAwardInfo(RR/Rt    moneyTypet
moneyValuetplayerIDt    likeState((sR.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerXiangong.pyR,Js   cCsõ|jƒ}tjd|ƒ}|s(dStj|tj|ƒrXtjd||ƒdS|jƒ}|j    ƒ}|j
tj ƒ}||kr¯tjd|||f|ƒdStj |tj|dƒt j||ddtigƒt|ƒdS(Nt TiandaoTrees!¸ÃÌìµÀÊ÷½±ÀøÒÑÁì½±! awardIndex=%ss9µ±Ç°ÌìµÀÊ÷ÆøÔ˲»×㣬ÎÞ·¨Áì½±! awardIndex=%s,qiyun=%s < %sitevent(R"R    tGetIpyGameDataR2tGetDictValueByBitRtDef_PDict_TiandaoAwardR3t GetNeedQiyuntGetAwardItemListRRtSetDictValueByBitR5tGivePlayerItemOrMailtFalseR(Rt
awardIndexR9Rt    needQiyunt awardItemListtqiyun((sR.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerXiangong.pytGetTiandaoTreeAwardZs"    
c Cs[g}|dkr`tjƒ}xEt|jƒƒD](}|j|ƒ}|j|jƒƒq1Wn|}g}xt|D]l}|s…qsn|jt    j
|ƒ}| r´|dkr´qsnt j ƒ}    ||    _ ||    _|j|    ƒqsW|jt    j
dƒ}
|dkr| r|
rdSt jƒ} |
| _|| _t| jƒ| _tj|| ƒdS(Ni(tNoneR    R
R R R RRRRRtChPyNetSendPackt tagMCXiangongt
XiangongIDtLikeStateTodayttagMCXiangongInfot XiangongListtlent XiangongCountt NetPackCommont SendFakePack( RRtsyncXiangongIDListRRRt xiangongListRR:txgtlikeStateTodayt
clientPack((sR.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerXiangong.pyRts6                     c
Cstjƒ}|jƒ}|s"dS|j|dƒ}|s?dS|jƒdd}g}x1t|ƒD]#}|j|jtj    |ƒƒqfW|jtj
ƒ}|rË| rË|j dƒt |ƒkrËdSt jƒ}    ||    _||    _t |    jƒ|    _tj||    ƒdS(Niii(R    R
tGetTiandaoTreeCounttGetTiandaoTreeByIndext GetAwardIndexR RRRR?RtcountRQRKttagMCTiandaoTreeInfotQiyuntAwardStateListt
AwardCountRSRT(
RtisLoginRt    treeCountt lastIpyDatat    keyNumMaxtawardStateListtkeyNumRHRY((sR.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerXiangong.pyR•s(  !(         (RR    RRKR&RSR5R2RRRR0R,RIRJRRDR(((sR.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerXiangong.pyt<module>s                               !