cehua_ZWJ
2019-01-30 6afaa4408f4e09e3e95dbd92f0d1cd5a1fb2942b
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
J0\c@sÖdZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z d„Z d„Z d„Zded„Zd„Zdd    „Zd
„ZdS( sVersion = 2016-09-26 20:00iÿÿÿÿNcCst|ƒdS(N(tNotifyDiceResult(t    curPlayer((s\.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDiceEx.pyt DiceExOnLogin"s
cCs'tj|tjdƒt|dƒdS(Nii(t PlayerControltNomalDictSetPropertytChConfigtDef_PDict_Dice_FreeChangeCntR(R((s\.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDiceEx.pytOnDay&s c    Cs£tjƒj|ƒ}|j}tjƒjtjtjƒ}| ra|dkratj    dƒdS|j
t j dƒ}|dkrÅ|r™tj    dƒdSt j|tjƒs²dSt|ƒs’dSnÍ|dkr_|sètj    dƒdS|dkrødS|j
t jdƒ}tjdƒ}||kr,dSt||tƒsBdStj|t j|dƒn3|dkr’|s‚tj    d    ƒdSt||ƒnt||ƒdS(
Nis    Ò¡÷»×ӻ먦Æô£¡is    Ò¡÷»×ÓÉϾֻ¹Î´½áË㣡is    Ò¡÷»×ÓûÓнá¹û²»ÄܸÄͶ£¡i*,
t DiceFreeNums    Ò¡÷»×ÓûÓнá¹û²»ÄܽáË㣡(t    GameWorldtGetPlayerManagertGetPlayerByIndextTypet GetGameWorldtGetGameWorldDictByKeyt ShareDefinet$Def_Notify_WorldKey_DailyActionStatetDailyActionID_DicetDebugLogtNomalDictGetPropertyRtDef_PDict_Dice_ResulttPlayerActivitytAddDailyActionFinishCntt __DoDicelogicRt IpyGameDataPYt
GetFuncCfgtTrueRRt__DoGiveDiceAwardR(    tindext
clientDatattickRtdiceTypethasOpent
diceResultt hasChangeCnttfreeCnt((s\.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDiceEx.pytOnDice6sF               ic    Csitjdƒ}|jt|ƒjdƒgƒ}t}d}xtdƒD]}|rstj||ƒdkrsqIntj    |ƒ}|s™tj
dƒdStj |||ƒ}|dkrÃt }qI|dkrI|}qIqIW|r | r |dkr tj ||dƒ}ntj d||fƒtj|tj|ƒ|dkretjdd    |jƒgƒnt S(
NtDiceRandomListt6iÿÿÿÿis-    Ò¡÷»×ÓûÓÐËæ»úµ½½á¹û DiceRandomListÒì³££¡is$    Ò¡÷»×Ó½á¹û result=%s,isChange=%si*,
t
WytjReward(RtGetFuncEvalCfgtgettstrtcounttFalsetrangeR    tGetDataByDigitPlacetGetResultByRandomListtErrLogtChangeDataByDigitPlaceRRRRRRt WorldNotifytGetName(    RtresulttisChangetdiceRandomDicttdiceRandomListthasAddt changeIndextit    resultNum((s\.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDiceEx.pyRbs.!         c
 
Cs‚tjdƒ}t|ƒjdƒ}t|ƒ|krKtjd|ƒdS|t|ƒ}|jdgƒ}|rätj|t    j
ƒ}d|kr¨t j |dƒdSt j||d|ddt    j
gdtjtigƒnt j|ƒ}t|jd    d
ƒƒ}|r*t j |ƒj|ƒn|jd dƒ}    |    r[t j|t    j|    ƒnt j|tjdƒt||ƒdS( Nt
DiceRewardR&s,    Ò¡÷»×ÓDiceRewardδÅäÖÃ6µÄ¸öÊý goodCnt=%stitemitGeRen_chenxin_998371iteventtexpt0tgold(RR(R*R+R    RR)t
ItemCommontGetItemPackSpacet IPY_GameWorldtrptItemRt
NotifyCodet ItemControlertGivePlayerItemRtItemGive_DiceExR,tGetPlayerReExptevaltAddExpt    GiveMoneytTYPE_Price_Silver_MoneyRRtNotifyDiceAwardResult(
RR4t    prizeDicttgoodCntt    prizeInfotitemInfot    packSpacetreExpR@tmoney((s\.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDiceEx.pyRs0 & cCs’|jtjdƒ}|jtjdƒ}| rH|dkrH| rHdStjƒ}||_||_|jtjdƒ|_t    j
||ƒdS(Nii( RRRRtChPyNetSendPackttagMCDiceExResultt    ResultNumtDiceTypet
UseFreeCntt NetPackCommont SendFakePack(RRR!t
useFreeCnttpackData((s\.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDiceEx.pyR¦s         cCs)tjƒ}||_tj||ƒdS(N(RXttagMCDiceAwardtAwardCntR]R^(RtawardCntR`((s\.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDiceEx.pyRP¹s     (t__doc__R    RERRRHRXR]RRRRCRRR$R,RRRRP(((s\.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDiceEx.pyt<module>s$                       ,    '