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
/P\c@sÁddlZddlZddlZddlZddlZddlZddlZddlZddlZd„Z    d„Z
d„Z d„Z d„Z d„Zd„Zd    „Zd
„ZdS( iÿÿÿÿNcCs0tƒs dSt|ƒ}|s,t|ƒndS(N(tGetFeastRedPacketStatet!__CheckPlayerFeastRedPacketActiontSync_FeastRedPackInfo(t    curPlayertisReset((stE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastRedPacket.pytDoPlayerOnLogins       cCsltƒtjƒ}xRt|jƒƒD]>}|j|ƒ}|dks&|jƒ rZq&nt|ƒq&WdS(N(    t__UpdTodayFeastSuccIDListt    GameWorldtGetPlayerManagertxranget OnlineCounttOnlineAttNonet    GetInitOKR(t playerManagertiR((stE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastRedPacket.pyt%RefreshOperationAction_FeastRedPacket$s cCsÄtjjtjiƒ}|jtjdƒ}|jtjdƒ}|sLdS|d}tjd|ƒ}|srdSg}x$|D]}|t    |j
ƒƒ7}qWt j d|ƒtj d|ƒdS(NiitActFeastRedPacketSuccs"    ¸üнñÈÕ½ÚÈÕºì°ü³É¾ÍIDÁбí: %stTodayFeastSuccIDList(t
PyGameDatatg_operationActionDicttgett ShareDefinet"OperationActionName_FeastRedPackett ActKey_StatetActKey_DayIndext IpyGameDataPYtGetIpyGameDataListtlisttGetFeastSuccIDListRtDebugLogt SetConfigEx(tfeastRedPacketInfotstatetdayIndextfeastDaytfeastIpyDataListt
succIDListt feastIpyData((stE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastRedPacket.pyR0s
 cCs tjdƒS(NR(Rt GetConfigEx(((stE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastRedPacket.pytGetTodayFeastSuccIDListCscCs4|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jtjdƒ}|j    t
j ƒ}||kr•t j d|ƒdSt j d||||f|ƒtj|t
j |ƒtjddƒ}|dkr(tj|t
jdƒtj|t
j|ƒt j d|ƒnL|j    t
jƒ}||}    tj|t
j|    ƒt j d||    f|ƒg}
tjƒ} xt| jƒƒD]y} | j| ƒ} | jƒ}|d}|dksÜ||kr™x3| jƒD]"}||
kré|
j|ƒqéqéWq™q™Wtj||
ƒt|ƒtS(Nisºì°ü½ÚÈջID²»±ä£¬²»´¦Àí£¡sEÖØÖÃÍæ¼Òºì°ü½ÚÈջ! curActID=%s,playerActID=%s,state=%s,dayIndex=%stFeastRedPacketis    Ê×ÈÕÖØÖôÎÊý¼°½ð¶î!s:    ·ÇÊ×ÈÕÖØÖôÎÊý! remainGrabCnt=%s,setTotalCanGrabCnt=%s(t GetPlayerIDRRRRRt    ActKey_IDRRtNomalDictGetPropertytChConfigtDef_PDict_FeastRedPacketActIDRRt PlayerControltNomalDictSetPropertyRt
GetFuncCfgt!Def_PDict_FeastRedPacketGrabMoneyt"Def_PDict_FeastRedPacketCanGrabCnttIPY_DataR    tGetActFeastRedPacketSuccCounttGetActFeastRedPacketSuccByIndext GetFeastDayRtappendt PlayerSuccesstDoResetSuccessIDListRtTrue(RtplayerIDR tcurActIDR!R"t playerActIDtdayCanGrabCountt remainGrabCnttsetTotalCanGrabCnttresetSuccIDListt
ipyDataMgrtindextipyDataR#t feastDayIndextsuccID((stE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastRedPacket.pyREsB    
 
 
cCs+tjjtjiƒ}|jtjdƒS(Ni(RRRRRR(R ((stE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastRedPacket.pyRtscCs|jtjƒS(N(R,R-R3(R((stE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastRedPacket.pytGetFeastSuccRedPacketCanGrabCntysc     Cs-|jtjƒ}||}tj|tj|ƒtjddƒ}d}d}xDt|ƒD]6\}    }
||
kr~|    }n||
kr]|    }q]q]W|dkrÑ||krÑtjdd|j    ƒ|gƒn| r|t
j kr|jtj ƒ} tj|tj t d| dƒƒnt|ƒdS(NR)iiÿÿÿÿitActivityOpenRedBag1i(R,R-R2R/R0RtGetFuncEvalCfgt    enumeratet WorldNotifytGetNameRtRedPackType_FeastSuccR3tmaxR( RtmoneyNumtgetWaytisSelftgrabNumt
newGrabNumtneedSysOSRAllMoneyListt    lastIndextnewIndexRtnumtgrabCnt((stE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastRedPacket.pytGrabFeastRedPacketResult}s$
       "&
cCsJtjƒ}|jtjƒ|_|jtjƒ|_tj    ||ƒdS(N(
tChPyNetSendPackttagMCFeastRedPackInfoR,R-R2tMoneyNumR3tGrabCntt NetPackCommont SendFakePack(Rtpack((stE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastRedPacket.pyR–s
 (RRR/RR9R[R_RR-RRRR(RRRHRZR(((stE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastRedPacket.pyt<module>s"                              /