cehua_lyf
2019-03-06 3c8ee0a8a524a6251d7d5aae2372e76fd8a99b9c
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
(±R\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.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(RtplayerIDR tcurActIDR!R"t playerActIDtdayCanGrabCounttcanAddRemainCntt remainGrabCnttsetTotalCanGrabCnttresetSuccIDListt
ipyDataMgrtindextipyDataR#t feastDayIndextsuccID((stE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastRedPacket.pyREsD      
 
cCs+tjjtjiƒ}|jtjdƒS(Ni(RRRRRR(R ((stE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastRedPacket.pyRuscCs|jtjƒS(N(R,R-R3(R((stE:\SnxxServerCode\ServerPython\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-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(RRRIR[R(((stE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastRedPacket.pyt<module>s"                              0