hwj35
2025-06-23 aa0f971ae9a59f0fd98d57b6c1d1663a270be92c
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
¤9gc@sôddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
d„Z d„Z d„Z dded„Zded„Zd„Zd    „Zd
„Zd d „Zd „ZdS(iÿÿÿÿNcCs‰x‚tjjtjiƒjƒD]b}|jtjdƒ}t||ƒ}|s|jtjƒrt    ||ƒt
||ƒqqqWdS(Ni( t
PyGameDatatg_operationActionDicttgett ShareDefinet"OperationActionName_GarbageSortingtvaluest ActKey_ActNumt!__CheckPlayerGarbageSortingActiont ActKey_StatetSync_GarbageSortingActionInfotSync_GarbageTaskInfo(t    curPlayertactInfotactNumtisReset((swE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGarbageSorting.pyt OnPlayerLogins% cCs^tjƒ}xKt|jƒƒD]7}|j|ƒ}tj|ƒsIqnt||ƒqWdS(N(t    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextIsNormalPlayerR(R t playerManagertindexR ((swE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGarbageSorting.pytRefreshGarbageSortingActionInfo*s c
CsÛ|jƒ}tjtj|ƒ}|jtjdƒ}|jtjdƒ}|jtjdƒ}|j    t
j |ƒ}||kr tj d||f|ƒdS|jtj dƒ}tj d|||||f|ƒtj|t
j ||ƒtj|t
j||ƒxQt
jD]F}    tj|t
j||    fdƒtj|t
j||    fdƒqWtj|t
j|dƒtj|t
j|dƒtj|tjƒtj|tjdƒt||ƒt||ƒtS(Nis.À¬»ø·ÖÀà»î¶¯ID²»±ä£¬²»´¦Àí£¡actNum=%s,actID=%ssAÀ¬»ø·ÖÀàÖØÖÃ! actNum=%s,actID=%s,playerActID=%s,state=%s,cfgID=%s(t GetPlayerIDRt
GetActInfoRRRt    ActKey_IDRt ActKey_CfgIDtNomalDictGetPropertytChConfigtDef_PDict_GarbageSortingIDtDebugLogtActKey_WorldLVt PlayerControltNomalDictSetPropertytDef_PDict_GarbageSortingWorldLVtGarbageTaskListtDef_PDict_GarbageTaskValuet Def_PDict_GarbageTaskFinishCountt!Def_PDict_GarbageEnvironmentValuetDef_PDict_GarbageGJSecondst ItemControlert    ClearPackt
rptGarbagetSetPlayerCurrencytTYPE_Price_EnvironmentR    R
tTrue(
R R tplayerIDR tactIDtstatetcfgIDt playerActIDt
actWorldLVttaskID((swE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGarbageSorting.pyR4s0       $  icCsï|dkrdSg}xÒtjjtjiƒjƒD]²}|jtjdƒ}|jtjƒshq5n|tj    krä|jtj
dƒ}|s˜q5nt j d|ƒ}    |    s¶q5n|}
|    j ƒ} | td|
ƒ@säq5qänt j d|ƒ} | sq5n| jƒ} tj}| r9t|| jƒ| ƒ}n|jtj||fƒ}t|||ƒ}||krzq5ntj|tj||f|ƒ| jƒr×t|||| |ƒ}|r×||7}q5q×nt|||ƒq5W|S(NitActGarbageSortingitActGarbageTask(RRRRRRRRRtDef_GarbageTask_CTGRt IpyGameDataPYtGetIpyGameDatatGetCTGTypeEffValuetpowtGetFinishTimeMaxtDef_UpperLimit_DWordtmintGetFinishNeedValueRR&R"R#tGetAutoProducet__DoCheckFinishGarbageTaskR
(R R6taddValuet    valueInfotisTJGtgiveGarbageItemListR R R3tipyDatatcoinTypetctgTypeEffValuet taskIpyDatatmaxFinishCounttmaxValuetcurValuetupdValuet giveItemList((swE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGarbageSorting.pytAddActGarbageTaskProgressYsJ %             
    cCsë|stjd|ƒ}n|s%dS|jtj||fƒ}|jƒ}|r}||kr}tjd|||fƒdS|jtj||fƒ}||j    ƒ}|rÁt
||ƒ}n||}    |    dkrÛdSi}
|j ƒ} xut |    ƒD]g} tj | ƒ} | sqún| \}}}||
krD|
|dnd}||||g|
|<qúW|
jƒ}|s{dStj|tj||f|ƒ|s×x3|D](\}}}tj||||gƒq¨Wnt|||ƒ|S(NR8sJ¸ÃÀ¬»ø·ÖÀà»î¶¯ÈÎÎñÒÑ´ïµ½×î´óÍê³É´ÎÊý!actNum=%s,taskID=%s,curFinishCount=%sii(R:R;RRR'R>RR R&RAR@tGetProduceGarbageRateListRtGetResultByRandomListRR"R#R*tGivePlayerItemR
(R R R6RKRFtcurFinishCountRLRNtupdFinishCounttaddFinishCountt giveItemDicttrateListt_titemInfotitemIDt    itemCountt isAuctionItemt befItemCountRPtitemCnt((swE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGarbageSorting.pyRC”sD 
      c
CsWi}tjddƒ}|s"|S|\}}tjddƒ}xtjjtjiƒjƒD]ð}|jtjdƒ}    |jtj    ƒs’q_n|r|j
t j |    ƒ}
||
7}||} | |} ||} t j|t j |    | ƒtjd|    || | |
| fƒn1||} | |} tjd|    || | fƒ| dkrYq_nd}|dd}xß|D]×}|\}}||}|sšPn|}|s¬qtn|| }||}||}tj||ƒré|d7}n|sõqtn|\}}}||}|j|dƒ|||<tjd    |    |||||fƒqtWq_W|S(
NtGarbageSortingiiisc    ¹Ò»úÀ¬»ø·ÖÀà: actNum=%s,awardSeconds=%s,canDoCount=%s,killCount=%s,unSeconds=%s,updUnSeconds=%ssF    ¹Ò»úÀ¬»ø·ÖÀà: actNum=%s,awardSeconds=%s,canDoCount=%s,killCount=%siÿÿÿÿisc    ¹Ò»úÀ¬»ø·ÖÀà²ú³ö: actNum=%s,dropItemID=%s,dropCount=%s,dropItemCount=%s,curRate=%s,totalRate=%s(R:tGetFuncEvalCfgRRRRRRRRRRR)R"R#RR t    CanHappen(R t awardSecondst useUnsecondtdropItemCountDictt guajiAwardSett    doSecondstdoCountt dropRateListR R t    unSecondst
canDoCountt    killCountt updUnSecondstpreRatetmaxRatetrateInfotratet dropItemInfotcurRatet    totalRatet    dropCounttrateExt
dropItemIDR]RZt dropItemCount((swE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGarbageSorting.pytOnGetGuajiAwardItemDictÉs` %
 
 
 
    
 
       
 
 
 
 
    "cCsytjƒj|ƒ}|j}|j}|j}|jƒ}tjd||f|ƒd}tj    ddƒ}    d}
|j
ƒj t j ƒ} x|D]ù}|| jƒkr±q“n| j|ƒ} tj| ƒsÕq“n| jƒ} | jdƒjdƒ}||kr"| jƒ}|    d|}nd}|    d|}d}tj| td| jƒ|ƒƒ|
|7}
tjd|| |||f|ƒq“W|
sšdStj|t j|
dtƒ|jtj|ƒ|
}tj|tj||ƒtjd|
|tj |t jƒf|ƒt!j"|t j#|ƒt$j%ƒ}||_||_||_&|
|_'||_(t)j*||ƒdS(    Ns-À¬»ø·ÖÀàͶ·Å: sortingType=%s,itemIndexList=%siRaiisD    index=%s,itemID=%s,itemSortingType=%s,delCount=%s,addEnvValue=%st    isSysHints:    addEnvValueTotal=%s,actEnvValueTotal=%s,curEnvValue=%s(+RRRtActNumtGarbageSortingTypet ItemIndexListRR R:RbtGetItemManagertGetPackRR,tGetCounttGetAtt
ItemCommontCheckItemCanUset GetItemTypeIDtGetEffectByIndextGetEffectValueR*t SetItemCounttmaxR"t    GiveMoneyR.tFalseRRR(R#tGetMoneytPlayerBillboardtUpdatePlayerBillboardtDef_BT_EnvironmenttChPyNetSendPackttagMCActGarbageSortingResulttIsRightt AddEnvValuetHisEnvValueTotalt NetPackCommont SendFakePack(Rt
clientDatattickR R t sortingTypet itemIndexListR0tisRighttenvironmentValueInfotaddEnvValueTotalt garbagePacktcurItemR\titemSortingTypetdelCountt addEnvValuetactEnvValueTotalt
clientPack((swE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGarbageSorting.pytOnActGarbageSortingsX                 #
        #                     cCs;tjƒj|ƒ}|j}|j}t|||ƒdS(N(RRRR|t GarbageTaskIDRC(RR—R˜R R R6((swE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGarbageSorting.pytOnActGarbageGetTaskAwardRs
        icCsé|r|gntj}tjƒ}||_|jtj|ƒ|_g|_xq|D]i}tjƒ}||_    |jtj
||fƒ|_ |jtj ||fƒ|_ |jj|ƒqVWt|jƒ|_tj||ƒdS(N(RR%RttagMCActGarbageTaskInfoR|RR(R”ttagMCActGarbageTaskR¦R&tGarbageTaskValueR'tGarbageTaskFinishCounttappendtlentGarbageTaskCountR•R–(R R R6tsyncTaskIDListR¤ttask((swE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGarbageSorting.pyR
Ys               cCsÇtjtj|ƒ}|jtjƒs+dS|jtjƒ}tjd|ƒ}|sYdStj    |ƒ\}}t
j ƒ}||_ ||_ ||_|jƒ|_|jƒ|_tj||ƒdS(NR7(RRRRRRRR:R;tGetOperationActionDateStrRttagMCActGarbageSortingInfoR|t    StartDatetEndtDatet
GetLVLimittLimitLVt GetResetTypet    ResetTypeR•R–(R R R R3RHt startDateStrt
endDateStrR¤((swE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGarbageSorting.pyR    js              (RRR"R:R*RR•RRRƒRRRRtNoneR‹RQRCRzR¥R§R
R    (((swE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGarbageSorting.pyt<module>s(                    
    %;5    H    A