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
33
Sð    hc@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((sX.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastRedPacket.pytDoPlayerOnLogins       cCsbtƒtjƒ}xHt|jƒƒD]4}|j|ƒ}tj|ƒsPq&nt|ƒq&WdS(N(t__UpdTodayFeastSuccIDListt    GameWorldtGetPlayerManagertxranget OnlineCounttOnlineAttIsNormalPlayerR(t playerManagertiR((sX.\\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((sX.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastRedPacket.pyR0s
 cCs tjdƒS(NR(Rt GetConfigEx(((sX.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastRedPacket.pytGetTodayFeastSuccIDListCscCsU|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|ƒnmtjddƒ}|j    t
jƒ}    |r\|    |n|}
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    Ê×ÈÕÖØÖôÎÊý¼°½ð¶î!isM    ·ÇÊ×ÈÕÖØÖôÎÊý! canAddRemainCnt=%s,remainGrabCnt=%s,setTotalCanGrabCnt=%s(t GetPlayerIDRRRRRt    ActKey_IDRRtNomalDictGetPropertytChConfigtDef_PDict_FeastRedPacketActIDRRt PlayerControltNomalDictSetPropertyRt
GetFuncCfgt!Def_PDict_FeastRedPacketGrabMoneyt"Def_PDict_FeastRedPacketCanGrabCnttIPY_DataR    tGetActFeastRedPacketSuccCounttGetActFeastRedPacketSuccByIndext GetFeastDayRtappendt PlayerSuccesstDoResetSuccessIDListRtTrue(RtplayerIDRtcurActIDR R!t playerActIDtdayCanGrabCounttcanAddRemainCntt remainGrabCnttsetTotalCanGrabCnttresetSuccIDListt
ipyDataMgrtindextipyDataR"t feastDayIndextsuccID((sX.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastRedPacket.pyREsD      
 
cCs+tjjtjiƒ}|jtjdƒS(Ni(RRRRRR(R((sX.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastRedPacket.pyRuscCs|jtjƒS(N(R+R,R2(R((sX.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastRedPacket.pytGetFeastSuccRedPacketCanGrabCntzsc     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,R1R.R/RtGetFuncEvalCfgt    enumeratet WorldNotifytGetNameRtRedPackType_FeastSuccR2tmaxR( RtmoneyNumtgetWaytisSelftgrabNumt
newGrabNumtneedSysOSRAllMoneyListt    lastIndextnewIndexRtnumtgrabCnt((sX.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastRedPacket.pytGrabFeastRedPacketResult~s$
       "&
cCsJtjƒ}|jtjƒ|_|jtjƒ|_tj    ||ƒdS(N(
tChPyNetSendPackttagMCFeastRedPackInfoR+R,R1tMoneyNumR2tGrabCntt NetPackCommont SendFakePack(Rtpack((sX.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastRedPacket.pyR—s
 (RRR.RR8R[R_RR,RRRR'RRRHRZR(((sX.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastRedPacket.pyt<module>s"                              0