hzr
2018-08-09 3346f8aae7f8abbd4b27c4564cbb802e7e717cc9
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
Ût<[c@seddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZiaiad„Zd„Zd„Zdd„Zed„Zd„Zdd    „Zd
„Zdd „Z!d „Z"d „Z#d„Z$d„Z%ed„Z&d„Z'e(d„Z)d„Z*d„Z+d„Z,dd„Z-d„Z.d„Z/gd„Z0d„Z1d„Z2dd„Z3d„Z4d„Z5e(d„Z6d „Z7de(d!„Z8d"„Z9d#„Z:d$d%„Z;dS(&iÿÿÿÿNcCs9t|tƒt|ƒt|ƒt|ƒt|ƒdS(N(tNotifyMagicWeapontTruetSycn_MagicWeaponRefineLVtSyncXBXZAwardRecordtSycn_MagicWeaponLVtSycn_MWPrivilegeData(t    curPlayer((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytPlayerMagicWeaponLogin-s  
 
 
 
cCsBx+tjD] }tj|tj|dƒq
Wt|dtƒdS(NitisForce(tChConfigtMWPrivilegeListt PlayerControltNomalDictSetPropertytDef_PDict_MWSoulGotItemStateRR(Rt    privilege((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytOnDay5scCstS(N(R(R((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytDoMagicWeaponOpen<sicCsM|r&|jtj|ƒ}||kStj|tj|dt|dgƒS(Nid(tNomalDictGetPropertyR    tDef_PDict_MagicWeaponLVt    GameWorldtGetDictValueByBittDef_PDict_MagicWeaponIsActiveR(RtmwIDtlvtcurMWLV((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytGetIsActiveMagicWeaponEs
cCs.tj|tj|d|t|dgƒdS(Nid(RtSetDictValueByBitR    RR(RRtisActive((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytSetMagicWeaponActiveStateOs*c
Csøt|ƒ}|dkrdSt||ƒ}|r5dSt|ƒ}t|ƒ}|jtj|ƒ}||krsdSt||dƒ}t    j
|tj||ƒt j |||||ƒt |ƒ}|jƒ}    ||krô|     rôt||ƒndS(Ni(tGetMWIDBySuccIDtNoneRtGetNeedSuccIDByMWIDtlenRR    tDef_PDict_MagicWeaponExptminR R tDataRecordPacktDR_MagicWeaponExpt GetWMIpyDatat GetNeedItemt
DoActiveMW(
RtsuccIDRRt
succIDListtneedExptcurExptnewExptipyDatat needItemDict((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytActiveMagicWeaponTs&       cCst|ƒsdStj|tj||ƒ|dkr¶t||ƒt|ƒ|tjdƒkr„tj    |d|j
ƒ|gƒntj dd|j
ƒ|gƒt j ||ƒn t||ƒt j|||ƒtj|tjd||gƒtjd||ƒ}|r€|jƒ}x*|D]"}t||tjƒjƒƒq#W|jƒr€tj dd|j
ƒ|jƒgƒq€nt|ƒtj|ƒjƒtjd||fƒtjddƒ}||krâtj |ƒnt!j"|ƒt#j$|||ƒt%S(    NitUnblockTreasureit
TreasureUptTreasureSoulWakeUps    ¼¤»î·¨±¦ mwID=%s,mwLV=%st VIPAddAtkEXPi(&R%R R R    RRRt IpyGameDataPYtGetFuncEvalCfgt
NotifyCodetGetNamet WorldNotifyt
EventShellt EventRespons_OnActiveMagicWeaponRtEventRespons_MagicWeaponLVt PlayerSuccesstDoAddSuccessProgresst ShareDefinetSuccType_GetMagicWeapontGetIpyGameDatatGetUnLockSkillt    GiveSkillRt GetGameWorldtGetTicktGetPrivilegeIDtCalcMagicWeaponAttrtRefreshPlayerAttrStatetDebugLogt
GetFuncCfgt    PlayerViptRefreshVIPAttrt GameFuncCommtDoFuncOpenLogicR#tDR_MagicWeaponActiveR(RRtmwLVt    upIpyDatat skillIDListtskillIDt vipAddAtkMWID((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pyR'ps:   
"     +
  cCstjd|ƒS(NtTreasure(R4R@(R((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pyR%¡scCs5|st|ƒ}|sgSnt|jƒƒ}|S(N(R%tlistt    GetSuccID(RR-R)((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pyR£s  cCs®ts¡tjƒ}xŒt|jƒƒD]u}|j|ƒ}|jƒ}t||ƒ}xB|D]:}|tkrŒtj    d|t|fƒn|t|<q\Wq%Wntj
|ƒS(Ns'    ´æÔÚÏàͬ³É¾Í¼¤»îÌõ¼þµÄ·¨±¦ %s ºÍ %s( tg_succInfoDictR4tIPY_DatatxrangetGetTreasureCounttGetTreasureByIndextGetIDRRtErrLogtget(R(t
ipyDataMgrtiR-RR)tsuccid((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pyR¬s    cCsjd}tjƒ}xQt|jƒƒD]=}|j|ƒ}|jƒ}t||ƒr%|d7}q%q%W|S(Nii(R4RXRYRZR[R\R(Rt    activeCntR_R`R-t magicWeaponID((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytGetMWActiveCntTotal»s  cCsltjdi|d6ttƒ}|s)dSd}x6|D].}t||jƒƒ}|r6|d7}q6q6W|S(NRTt TreasureTypeii(R4tGetIpyGameDataByConditionRtFalseRR\(RtmwTypetdataListRbtipydataR((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytGetMWActiveCntByTypeÆs cCsŠtsziatjƒ}x_t|jƒƒD]H}|j|ƒ}|jƒ}|jƒ}x|D]}|t|<q_Wq+Wntj|dƒS(Ni(    tg_potentialsSkillDictR4RXRYRZR[R\t GetPotentialsR^(RRR_R`R-RRQt
curSkillID((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytGetMWIDByPotentialsSkillIDÒs    cCsltjƒj|dƒ}|dkr9tjd|ƒdStj||ƒsOdStj||ƒsvtjd|ƒdS|j    ƒ}|j
|ƒr¦tjd|ƒdStjd|ƒ|j |ƒ|rãt j |d|gƒntj||dƒ|jƒtjkrOtjƒj||ƒtj|ƒrOt j |ƒ}|jƒqOnt j |ƒj|dƒdS(Nis#__GiveSkill() hasn't find skill(%s)s4__GiveSkill() learn skill(%s) condition isn't enoughs$__GiveSkill() have learned skill(%s)s#    ¼¤»î·¨±¦ ¼¤»î¼¼ÄÜ skillResID=%st GetSkillInfoi(Rt GetGameDatatFindSkillByTypeRRHt SkillCommont CheckSkillJobt
SkillShelltCheckLearnSkillConditiontGetSkillManagertFindSkillBySkillTypeIDtLVUpSkillBySkillTypeIDR R6R#tDR_LearnORUPSkillt GetFuncTypeR    t Def_SkillFuncType_FbPassiveSkilltPassiveBuffEffMngtGetPassiveEffManagertRegistPassiveEfft isPassiveAttrRGtRefreshSkillFightPowerEx(Rt
skillResIDttickt    isShowSyst    skillDatat skillManagert
curControl((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pyRBås2   c" Cs tjƒj|ƒ}|j}|j}d}tjdƒ}x6|jƒD](\}}    ||    krIt    |ƒ}PqIqIW|dkr…dS|j
ƒ}
|
j |ƒ} | dkr»d} d} n>| j ƒ} | j ƒ} | | jƒkrùtj|dƒdS| d}| s|n    | jƒ}tjƒj||ƒ}|sTtjd||fƒdStj||ƒsjdStjd||ƒ}|s‰dS|jƒ}tj|ƒ|krÎtjd||f|jƒƒdS|jƒ}g}|tjkrÓ|dkrÓ|jƒ}|jƒ}|j ƒ}|dt!|ƒkrJtj"d|ƒdS||d||d||d}}}|j#ƒj$t%j&ƒ}t'j(|||ƒ\}}|sÓtjd    |jƒ|fƒdSn|r t'j)||||t*t+j,i|d
6| d 6ƒntj-||ƒs"dStj.|ƒs_tjd ||fƒ|j/tj0dƒdStj|ƒ}|
j1|ƒt*}tjd ƒ}t2|ƒ|krb|t2|ƒ\}} ||krb|
j | ƒs_tjƒj| dƒ}!|!r\|
j1| ƒtjd||| fƒ|j3| | ƒt4j5ƒj6|| ƒt7j8|!ƒrYt9}qYq\q_qbnt7j8|ƒsw|r„|j:ƒn|j3|jƒ| ƒt4j5ƒj6||jƒƒtjd||fƒt;j<|||ƒ|j/tj0dƒt=j>|tj?d|gƒt@jA|ƒdS(Nt SPSkillTypeitUseMagicLost16is¼¼ÄÜÉý¼¶Åä±í´íÎó ID=%s lv=%st TreasureSkills2·¨±¦sp²»×㣬ÎÞ·¨Éý¼¶¼¼ÄÜ£¡needSP=%s,skillTypeID=%ss·¨±¦¼¼ÄÜÉý¼¶£¬costIndex=%s ´íÎós.Éý¼¶·¨±¦¼¼ÄÜ() up skill(%s) item(%s) no enought SkillTypeIDtSkillLVs0·¨±¦¼¼ÄÜÉý¼¶£¬curSkillID=%s, maxRate=%s Éý¼¶Ê§°ÜtPotentialSkillLearns=    ·¨±¦¼¼ÄÜÉý¼¶ skillTypeID=%s, upSkillLv=%s, ´¥·¢Ñ§Ï°¼¼ÄÜ%ss-    ·¨±¦¼¼ÄÜÉý¼¶ skillTypeID=%s, upSkillLv=%s(BRtGetPlayerManagertGetPlayerByIndexR‹t    CostIndexRR4R5titemstintRwRxt
GetSkillLVt GetFightPowert GetSkillMaxLVR R6t
GetSkillIDRqRrRHRuRvR@t GetNeedPointt    GetZhenQit GetPlayerIDt GetInitRateR>tDef_MaxRateValuet GetNeedItemIDtGetNeedItemCntt
GetMaxRateR tLogtGetItemManagertGetPackt IPY_GameWorldtrptItemt
ItemCommontGetItem_FromPack_ByIDt
ReduceItemRgR    tItemDel_MagicWeapontPlayerLostZhenQit    CanHappentSync_MakeItemAnswertDef_mitMagicWeaponSkillUpt LVUPSkillByIDtstrRR}R~RRsR€RRGR#RzR<R=tSuccType_MWSkillUpR9tEventRespons_MWSkillUp("tindext
clientDataRƒRt skillTypeIDt    costIndext curSkillTypetSPSkillTypeDictt    skillTypeRQR†tcurSkillt
curSkillLVtbeforeFightPowert    upSkillLvRntupSkillR-tneedSPtinitRatet itemIndexListtneedItemIDListtneedItemCntListt maxRateListt
needItemIDt needItemCnttitemPacktisEnoughR‡tnewSkillIsPassivetpotentialSkillLearnDictt
needSkllLVt
newSkillIDtnewSkill((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytOnMagicWeaponSkillUps®                   
      ,         cCsÆtjƒ}|jƒg|_tjƒ}x`t|jƒƒD]L}|j|ƒ}|j    ƒ}t
||ƒ}|szq>n|jj |ƒq>Wt |jƒ|_ |j s¯|rÂtj||ƒndS(N(tChPyNetSendPackttagMCMagicWeaponDatatCleart MagicWeaponIDR4RXRYRZR[R\RtappendR tNumt NetPackCommont SendFakePack(RtisLogintpackDataR_R`R-RcR((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pyRs 
      cCstjd||ƒS(NtTreasureRefine(R4tGetIpyGameDataNotLog(t
treasureIDt
treasureLV((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytGetMWRefineIpyData£scCs\gtdƒD] }i^q }gtdƒD] }i^q,}gtdƒD] }i^qK}tjƒ}xªt|jƒƒD]–}|j|ƒ}|jƒ}t||ƒ}    |    s¸q|ni}
|jt    j
|ƒ} x†t| dƒD]t} tj d|| ƒ} | rå| j ƒ}t j|
|ƒ| jƒ}|rYt||ƒ}t j|
|ƒqYqåqåW|jƒ}x¦|
jƒD]˜\}}|dkr¤tj|||ƒqv|dkrÆtj|||ƒqv|dkrètj|||ƒqvt jd||||f|jƒƒqvWq|Wtj|t    j|ƒtj|t    j|ƒtj|t    j|ƒdS(NiiR1iis@δ֪·¨±¦ÊôÐÔ, magicWeaponID=%s,treasureType=%s,effID=%s,value=%s(trangeR4RXRYRZR[R\RRR    RR×t
GetAddAttrRt AddDictValueREtGetMagicWeaponPrivilegeAttrtGetTreasureTypeR‘R tCalcAttrDict_TypeR]R™tSetCalcAttrListValuetDef_CalcAttrFunc_MagicWeapon1tDef_CalcAttrFunc_MagicWeapon2tDef_CalcAttrFunc_MagicWeapon3(Rt_t allAttrList1t allAttrList2t allAttrList3R_R`ttreasureIpyDataRcRt allAttrDictRRRPtattrDictt privilegeIDt treasureTypeteffIDtvalue((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pyRF§sF             %cCs||j}|j}tjƒj|ƒ}|jƒ}tjdƒ}||krftjd||ƒdSt    ||ƒ}|s“tjd||ƒdS|j
t j |ƒd}    t ||    ƒ}
|
sàtjd||    f|ƒdS|j
t jƒ} | |
jƒkr.tjd||    | |
jƒf|ƒdS|
jƒ} xB|D]:} |j
t j | ƒ| krAtjd| |ƒdSqAW|
jƒ}d}|rtjdd    ƒ}||krÍtjd
||ƒdStjƒj|ƒ}|sìdS|jdƒjdƒ}d||<n|jƒjtjƒ}tj||ƒ\}}|rntjd ||    |||f|ƒdStj|||t jƒ|
jƒ|}tj |ƒrEt!j"|t j ||    ƒ|
j#ƒ}|råt$|||ƒnt%|ƒt!j!|ƒj&ƒt'||ƒ|j(t)j*t j+ƒtjd ||    |f|ƒn3|j(t)j*t j,ƒtjd ||    |f|ƒdS(NtTreasureUpRateItems¸Ã·¨±¦²»ÄÜÖýÁ¶-·¨±¦ID:%ss·¨±¦Î´¼¤»î£¬²»ÄÜÖýÁ¶-·¨±¦ID:%sis/·¨±¦ÒÑÂú¼¶£¬²»ÄÜÖýÁ¶-·¨±¦ID:%s, nextRefineLv=%ssUÁ¶µ¤Â¯µÈ¼¶²»×㣬ÎÞ·¨ÖýÁ¶·¨±¦-·¨±¦ID:%s, nextRefineLv=%s,alchemyLV=%s,NeedAlchemyLV=%ss:ËùÓз¨±¦Ðè´ïµ½¶ÔÓ¦µÈ¼¶ºó²Å¿É¼ÌÐøÖýÁ¶! needAllTreasureLV=%siis+¸ÃÎïÆ·IDÎÞ·¨ÓÃÓÚÌáÉý·¨±¦ÖýÁ¶¸ÅÂÊ£¡itemID=%ss[·¨±¦ÖýÁ¶²ÄÁϲ»×㣡·¨±¦ID:%s, nextRefineLv=%s,needItemDict=%s,lackItemDict=%s,hasItemDict=%ss5·¨±¦ÖýÁ¶³É¹¦! ·¨±¦ID:%s, upRefineLv=%s,successRate=%ss7·¨±¦ÖýÁ¶Ê§°Ü! ·¨±¦ID:%s, nextRefineLv=%s,successRate=%s(-tMWIDt
MaterialIDRRŽRR™R4R5RHRRR    tDef_PDict_MagicWeaponRefineLVRÚtDef_PDict_AlchemyLVtGetNeedAlchemyLVtGetNeedAllTreasureLVt GetMaterialR]RqtGetItemByTypeIDtGetEffectByIndextGetEffectValueR R¡R¢R£R¤tGetCostItemIndexListt DelCostItemR§tGetSuccessRateR©R R t GetOpenSkillRBRFRGRRªR>tDef_mitMWUpLeveltDef_ComposeState_SucesstDef_ComposeState_Fail(R°t
clientPackRƒRt
materialIDRtplayerIDtallTreasureItemIDListRt nextRefineLvtmwRefineIpyDatat    alchemyLVtneedAllTreasureLVttIDR.t    fujiaRatettreasureUpRateItemt rateItemDataRÄt lackItemDictt delInfoDictt successRateRR((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytPlayerMWRefineäsx                        
  cCsÏ|dkrtjdƒ}n    |g}tjƒ}g|_x^|D]V}|jtj|ƒ}|skqCntjƒ}||_    ||_
|jj |ƒqCWt |jƒ|_ |j rËtj||ƒndS(NiÿÿÿÿRð(R4R5RÌttagMCMagicWeaponMsgtMWInfoRR    RóttagMCMagicWeaponLVRñtMWLVRÐR tCountRÒRÓ(RRt needCalListtsendPackt
mwRefineLvtpack((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pyR/s"                        cCs›tjƒj|ƒ}|j}t||ƒ}|rHtjd|ƒdSt|ƒ}|jtj    |ƒ}|t
|ƒkrštjd|||fƒdSt |ƒ}|j ƒ}    |    r.|j ƒjtjƒ}
tj|    |
tƒ\} } | rtjd||    | | fƒdStj||
| tjƒn\tjdi|d6ttƒ} | sWdSx0| D](}tj|tj|jƒƒs^dSq^Wt||ƒdS(Ns    ¸Ã·¨±¦ÒÑ¿ªÆô£¡ mwID=%ss=    ¸Ã·¨±¦ËùÐè³É¾ÍδÍê³É£¡ mwID=%s£¬ curExp=%s, succIDList=%ssM    ¿ªÆô·¨±¦ ²ÄÁϲ»×㣡mwID=%s,needItemDict=%s,lackItemDict=%s,delInfoDict=%stXBXZRñ(RRŽRRñRRHRRR    R!R R%R&R R¡R¢R£R¤RûRgRüR§R4RfRRtDef_PDict_XBXZAwardRecordR\R'(R°R±RƒRRRR)R+R-R.RÄRRt ipyDataList((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytOnOpenMagicWeaponKs:             cCsâtjd|ƒ}|sdStj|tj|ƒrItjd|ƒdS|jƒ}|jƒ}d}|dkr…t    j
|ƒ}nù|dkrr|j ƒj t jƒ}xÒt|jƒƒD]¯}|j|ƒ}|jƒrãq¼ntj|ƒ}    |jƒ}
|jƒ} xT|D]L\} } }}||kr|    | kr|
| kr| |krd}PqqW|r¼Pq¼q¼Wn |dkrtj|ƒ}nî|dkrzi}|j ƒj t jƒ}xœt|jƒƒD]ˆ}|j|ƒ}|jƒrôqÍntj|||ƒ}xI|D]A\}}|j|dƒ|kr|j|dƒd||<qqWqÍW|rqt|jƒƒnd}ndS||jƒkr´tjd|||jƒfƒdS|jƒ}|r
tj|t j ƒ}t!|ƒ}||kr
t    j"|d    ƒdSntj#|tj|dƒ|rex9|D].\}}t$j%|||dt j gt&ƒq0Wnx-|j'ƒD]\}}t    j(|||ƒqrWt)||gƒt*j+|t,j-d|j.ƒgƒtjd
||fƒdS( NRs"    Ïɱ¦Ñ°Ö÷Áì½± ÒÑÁìÈ¡£¡ index=%siiiiis6    Ïɱ¦Ñ°Ö÷Áì½± , Ìõ¼þ²»Âú×ã ID=%s, cnt=%s,NeedCnt=%stGeRen_chenxin_998371s!    Ïɱ¦Ñ°Ö÷Áì½±OK, ID=%s, cnt=%s(/R4R@RRR    RRHtGetTypet GetConditionR t
GetFuncDefR R¡R¢trptEquipRYtGetCounttGetAttIsEmptyR¤tGetItemClassLVt GetItemColortGetItemQualitytChEquiptGetTotalEquipStarstGetSuiteInfoByPlaceR^tmaxtvaluest
GetNeedCntt GetAwardItemtGetItemPackSpaceR£R R6Rt ItemControlertGivePlayerItemRtGetMoneyt    GiveMoneyRR<R=R>t SuccType_XBXZtGetMWID(RR°R-tcurTypet conditionListtcntt playerEquipt
equipIndextcurEquipt
curClassLVt    itemColort itemQualitytclasslvtcolortstartplacet suiteCntDictt    suiteInfotsuitelvt    suiteTypet awardItemListt    packSpacet    needSpacetitemIDtitemCntt    moneyTypeRï((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytOnGetXBXZAwardtsz       0    %!    )"c Cs&|r1g}xq|D]}|j|dƒqWnOtjƒ}|jƒ}|sSdS|j|dƒjƒ}t|ddƒ}tjƒ}|j    ƒg|_
x^|D]V}|j t j |ƒ}    |    sÎq¦ntjƒ}
||
_|    |
_|j
j|
ƒq¦Wt|j
ƒ|_tj||ƒdS(Nii(RÐR4RXt GetXBXZCounttGetSuccessByIndexR\RÛRÌttagMCXBXZAwardRecordListRÎt
RecordListRR    RttagMCXBXZAwardRecordt RecordIndextRecordR t    RecordCntRÒRÓ( Rt
syncIDListtrecordIndexListR(R_tsuccCntt    maxSuccidt succFARPackR`t awardRecordt
recordInfo((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pyRÊs0    
              c
Csåtjƒj|ƒ}|j}|jtj|ƒ}|d}tjd||ƒ}|s]dS|j    ƒ}|jtj
|ƒ}    |    |kr tj d|ƒdSt j |tj
||    |ƒt|||ƒtj|tjƒdS(NiR1s·¨±¦Éý¼¶¾­Ñé²»×ã%s(RRŽRRñRR    RR4R@t
GetNeedExptDef_PDict_MagicWeaponUpExpRHR R R'tPlayerActivitytAddDailyActionFinishCntR>tDailyActionID_MagicWeapon(
R°R±RƒRRRtnextMWLVt nextIpyDataR*tcurUpExp((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytOnMagicWeaponUpðs     
  cCs\tjd||fƒ|jtj|ƒ}tj|tj|||ƒt||ƒdS(Ns"Ôö¼Ó·¨±¦Éý¼¶¾­Ñé mwID=%s,addExp=%s(RRHRR    R`R R R(RRtaddExpRf((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytAddMagicWeaponUpExps
 c CsW|dkr`g}tjƒ}xHt|jƒƒD](}|j|ƒ}|j|jƒƒq1Wn    |g}tjƒ}g|_    x¤|D]œ}|j
t j |ƒ}|j
t j |ƒ}t||ƒ}    | rá| rá|     ráq…ntjƒ}
||
_||
_||
_|    |
_|j    j|
ƒq…Wt|j    ƒ|_|jrStj||ƒndS(Niÿÿÿÿ(R4RXRYRZR[RÐR\RÌttagMCMagicWeaponLVInfotInfoListRR    RR`tGetIsClickMagicWeaponttagMCMagicWeaponInfoRñtLVtExptStateR RRÒRÓ( RRRR_R`R-RtmwLvRftstateR((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pyRs2                                 cCs‡tjdi|d6ttƒ}|s)dS|jƒ}|jƒ}|jtj|ƒ}||krgdStjd|ƒ}|sƒdS|S(NR1t PrivilegeIDitTreasurePrivilege(    R4RfRgR7tGetLVRR    RR×(RRR-RRORtprivilegeIpyData((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytGetMagicWeaponPrivilege+s   c CsCi}tjd|ƒ}|s"|S|jƒ}|s=i}n|jƒ}|tjkrž|jtjƒ}x²|jƒD] \}}|||t    |ƒ<qwWn|tj
kr¿t j |ƒ}n`d}    |rî|jtj |ƒ}
|
|}    nx.|jƒD] \}}||    |t    |ƒ<qûWtjd||f|jƒƒ|S(NRtis2    »ñÈ¡·¨±¦ÌØÈ¨Ôö¼ÓµÄÊôÐÔ privilege=%s,addAttr=%s(R4R×RÜtGetSingleValueR    tMWPrivilege_SignDayAddAttrRtDef_PDict_TotalSignNumR‘R’tMWPrivilege_EquipPlusR*tCalcAllEquipAllPlusLVAttrtDef_PDict_MWSoulGotValueRRHR\( RRtaddAttrRvtattrInfot singleValuet totalSignNumtattidtattnumtmultipletgotValue((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pyRÞ;s,        cCsÃtjd|ƒ}|sdS|jtj|ƒ}|rB||n|}|jƒ}|rlt||ƒ}n||kr¢tj|tj||ƒt    ||ƒnt
j d||||fƒdS(NRts/    privilege=%s,data=%s,curValue=%s,newData=%s( R4R×RR    tDef_PDict_MWSoulCurValuet GetMaxValueR"R R RRRŸ(RRtdatatisAddRvtcurValuetnewDatatmaxValue((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytSetMWPrivilegeDataXs  c Csät||ƒ}|s*tjd|ƒdS|jƒ}|rÈ|jtj|ƒ}|jtj|ƒ}|||}|dkr†dStj    |tj||||ƒt
|ƒtj|ƒj ƒn|j ƒ}|rÓ|jtj |ƒrtjd|ƒdSt|ƒ}tj|tj|ƒ}    ||    krRtj|dtjgƒdStj    |tj |dƒxd|D]Y\}
} } tj|t|
ƒt| ƒ| tjgtdtddti|d    6gƒqsWnt||ƒdS(
Ns;ÁìÈ¡·¨±¦Ö®»ê½±Àø£¬¶ÔÓ¦·¨±¦Ö®»êδ¼¤»î£¬»òδÅäÖàprivilege=%sis,    ÁìÈ¡·¨±¦Ö®»ê½±Àø ½ñÈÕÒÑÁìÈ¡ privilege=%stGeRen_chenxin_676165it showSysInfoteventt MWSoulAwardR(RwRRHRxRR    R†R}R R RFRGt GetItemAwardR RŸR R¤R1R¢R£R6R2R3R’RRgR( RRR-R€RŠR…t    canGetCnttitemListRKRJtitemidR:tisBind((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytGetMWSoulAwardis<  "
   3 cCs|dkrtj}n    |g}tjƒ}g|_x¯|D]§}tjƒ}|jtj|ƒ|_|jtj    |ƒ|_
|jtj |ƒ|_ | rËt |j|j
|j gƒdkrËq=n||_|jj|ƒq=Wt|jƒ|_|jrtj||ƒndS(Niÿÿÿÿi(R    R
RÌttagMCMWPrivilegeDataInfoRkttagMCMWPrivilegeDataRR†tCurValueR}tGotValueR tItemAwardStateR-tPriIDRÐR RRÒRÓ(RRìRRRtpriIDR((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pyRs$             +        cCsOtjƒj|ƒ}|j}t||ƒr1dSt||ƒt||ƒdS(N(RRŽRRñRltSetMagicWeaponClickStateR(R°R±RƒRR((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytSaveMagicWeaponState®s      cCs'tj|tj|dt|dgƒS(Nid(RRR    tDef_PDict_MagicWeaponIsClickR(RR((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pyRl·sicCs.tj|tj|d|t|dgƒdS(Nid(RRR    R¡R(RRRr((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pyRŸ»s*(<R¤R>RÒR#RÌR R¢RsRR    R4RuRLR<R9R}tOpenServerCampaignR2RaR*RJRWRlRRRRRRR/R'R%RRRRdRkRoRBRËRgRRÚRFRRRRORRgRiRRwRÞRR—RR RlRŸ(((sq.\\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pyt<module>sp                                     
     1                            )             =    K     )    V &                      '