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
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
Sð    hc@sØddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZd„Zd„Zd„Zdd„Zdd„Zdd    „Zd
„Zd „Zd „Zd „Zed„Z d„Z!d„Z"d„Z#gd„Z$d„Z%d„Z&dd„Z'd„Z(d„Z)d„Z*d„Z+dS(iÿÿÿÿNcCst|ƒt|ƒdS(N(tSyncXBXZAwardRecordtSycn_MagicWeaponLV(t    curPlayer((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytPlayerMagicWeaponLogin,s
 
cCsdS(N((R((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytOnDay2scCstS(N(tTrue(R((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytDoMagicWeaponOpen7sicCs |jtj|ƒ}||kS(N(tNomalDictGetPropertytChConfigtDef_PDict_MagicWeaponLV(RtmwIDtlvtcurMWLV((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytGetIsActiveMagicWeaponAsicCsztjdi|d6|d6dtƒ}|rú|jƒ}tjd||f|jƒƒtj|t    j
||ƒt ||ƒt j |||ƒtjdi|d6tƒ}|djƒ}||krÚt||ƒqvt|ƒtj|ƒjƒn|tjdi|d6|d    6ƒ}|s$dS|jƒ}|jƒ|jƒkritjd
||jƒfƒdSt||ƒdS( Nt MagicWeaponFBtLineIDtLevelt    isLogNones!¸üÐÂħ×帱±¾¹Ø¿¨ mwID=%s,level=%siÿÿÿÿtTreasuretFBMapIDtFBLineIDs2ͨ¹Ø¸±±¾¼¤»î·¨±¦ ,µÈ¼¶²»×㣡£¡£¡mwID=%s, needLV=%s(t IpyGameDataPYtGetIpyGameDataByConditiontFalsetGetMWIDt    GameWorldtLogtGetIDt PlayerControltNomalDictSetPropertyRtDef_PDict_MWFBPassLevelRt
EventShellt EventRespons_MagicWeaponFBPassLVRtGetLevelt
DoActiveMWtCalcMagicWeaponAttrtRefreshPlayerAttrStatetGetLVt    GetNeedLV(RtmapIDtlineIDtpassLVtipyDataR
t ipyDataListtmaxLevel((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytActiveMagicWeaponByFBHs,&    
   cCsòt|ƒsdStj|tj||ƒ|dkrÕ|tjdƒkrmtj|d|jƒ|gƒn@tjddiƒj    |dƒ}tj
d||jƒ|gƒ|tj ddƒkrÕt |ƒqÕnt j|||ƒt||ƒtj|tjd||gƒtjd||ƒ}|s3dS|jƒ}x*|D]"}t||tjƒjƒƒqFWt|ƒtj|ƒjƒtjd||fƒtj ddƒ}||krÎtj|ƒntj |ƒt!j"|||ƒt#S(    NitUnblockTreasureiit FabaoAddPointt
TreasureUps    ¼¤»î·¨±¦ mwID=%s,mwLV=%st VIPAddAtkEXP($t GetWMIpyDataRRRR    RtGetFuncEvalCfgt
NotifyCodetGetNametgett WorldNotifyt
GetFuncCfgt__DoFabaoAddPointRtEventRespons_MagicWeaponLVRt PlayerSuccesstDoAddSuccessProgresst ShareDefinetSuccType_GetMagicWeapontGetIpyGameDatatGetUnLockSkillt    GiveSkillRt GetGameWorldtGetTickR#R$tDebugLogt    PlayerViptRefreshVIPAttrt GameFuncCommtDoFuncOpenLogictDataRecordPacktDR_MagicWeaponActiveR(RR
tmwLVtsysMarkt    upIpyDatat skillIDListtskillIDt vipAddAtkMWID((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pyR"es8  "!    
  c    Csítj|tjƒsdStjddiƒ}tj|ƒ}|jƒ}d}xW|j    ƒD]I\}}||dkr~q\n||t
||dƒ|dd7}q\W|j ƒ}||}|j |ƒt jd||||fƒdS(Nt LVUPAddPointiisM»ñµÃ·¨±¦Ôö¼Ó×ÔÓÉÊôÐÔµã: freePoint=%s,addFreePoint=%s,curLV=%s,updFreePoint=%s(RGt GetFuncCanUseR=tGameFuncID_AddPointRR3RtGetFabaoAddPointR%titemstmint GetFreePointt SetFreePointRRD(    Rt addPointDictt fabaoAddPointtcurLVt addFreePointtrangLVstpointt    freePointt updFreePoint((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pyR9’s  + 
     cCstjd|ƒS(NR(RR?(R
((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pyR2¦scCsjd}tjƒ}xQt|jƒƒD]=}|j|ƒ}|jƒ}t||ƒr%|d7}q%q%W|S(Nii(RtIPY_DatatxrangetGetTreasureCounttGetTreasureByIndexRR (Rt    activeCntt
ipyDataMgrtiR*t magicWeaponID((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytGetMWActiveCntTotal©s  cCsltjdi|d6ttƒ}|s)dSd}x6|D].}t||jƒƒ}|r6|d7}q6q6W|S(NRt TreasureTypeii(RRRRR R(RtmwTypetdataListRetipydatatisActive((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytGetMWActiveCntByTypeµ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 GetGameDatatFindSkillByTypetNoneRDt SkillCommont CheckSkillJobt
SkillShelltCheckLearnSkillConditiontGetSkillManagertFindSkillBySkillTypeIDtLVUpSkillBySkillTypeIDRR4RItDR_LearnORUPSkillt GetFuncTypeRt Def_SkillFuncType_FbPassiveSkilltPassiveBuffEffMngtGetPassiveEffManagertRegistPassiveEfft isPassiveAttrR$tRefreshSkillFightPowerEx(Rt
skillResIDttickt    isShowSyst    skillDatat skillManagert
curControl((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pyRAÇs2   c     CszgtdƒD] }i^q }gtdƒD] }i^q,}gtdƒD] }i^qK}gtdƒD] }i^qj}itjd6tjd6tjd6tjd6}i}tjddƒ}tjƒ}    xMt    |    j
ƒƒD]9}
|    j |
ƒ} | j ƒ} t || ƒ} i}| jƒ}| rÃ|j|tjƒ}|jtj| ƒ}xrt    |dƒD]`}tjd| |ƒ}|re|jƒ}tj||ƒ|j|dƒ|jƒ||<qeqeW| |kr@|jtjƒ}i}x=tjddiƒjƒD] \}}|||t|ƒ<q    Wtj||ƒntjddiƒj| dƒ}|jtj|ƒ}tjd| |ƒ}|rÃt|| ƒrÃ|jƒ}tj||ƒqÃn|jtj| ƒ}|rOtj d    | |ƒ}|rO|j!ƒ}xC|jƒD]2\}}t|ƒ}|j|dƒ|||<qWqOnxÈ|jƒD]º\}}|dkrŠt"j#|||ƒq\|dkr¬t"j#|||ƒq\|dkrÎt"j#|||ƒq\|dkrðt"j#|||ƒq\tj$d
| |||f|j%ƒƒq\WqáWt"j&|tj'|ƒt"j&|tj(|ƒt"j&|tj)|ƒt"j&|tj*|ƒdS( Niiiit MWSignDayAttrR0itMagicWeaponOfKingRs@δ֪·¨±¦ÊôÐÔ, magicWeaponID=%s,treasureType=%s,effID=%s,value=%s(+trangeR=tDef_MFPType_MagicWeapon1tDef_MFPType_MagicWeapon2tDef_MFPType_MagicWeapon3tDef_MFPType_MagicWeapon4RR8RaRbRcRdRR tGetTreasureTypeR6tDef_MFPType_RoleRRR    tGetIpyGameDataNotLogt
GetAddAttrRt AddDictValuet
GetPowerExtDef_PDict_TotalSignNumR3RUtinttDef_PDict_CrossPK_SeasonAwardLVtGetIsWearMagicWeaponRR?t GetAttrDictRtCalcAttrDict_TypetErrLogt GetPlayerIDtSetCalcAttrListValuetDef_CalcAttrFunc_MagicWeapon1tDef_CalcAttrFunc_MagicWeapon2tDef_CalcAttrFunc_MagicWeapon3tDef_CalcAttrFunc_MagicWeapon4( Rt_t allAttrList1t allAttrList2t allAttrList3t allAttrList4tmwTypeMfpTypeDictt addPowerDictt signDayMWIDRfRgttreasureIpyDataRhRnt allAttrDictt treasureTypetmfpTypeR R RMtattrDictt totalSignNumtaddAttrtattidtattnumtseasonIDt kingAwardLVt kingMWIpyDatatfbpasslvt    fbipyDatateffIDtvalue((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pyR#ês| 
 
     ' (!   $        %c Cs¬tjƒj|ƒ}|j}t||ƒ}|rHtjd|ƒdStjdi|d6tt    ƒ}t
|ƒ}|j ƒ}|rû|j ƒj tjƒ}    tj||    t    ƒ\}
} |
rßtjd|||
| fƒdStj||    | tjƒn |rNx—|D]?}tj|tj|jƒƒstjd|jƒƒdSqWnM|dkr—tj|itjtj6dtj6ƒtj|ddƒndSt||ƒdS(    Ns    ¸Ã·¨±¦ÒÑ¿ªÆô£¡ mwID=%stXBXZtMWIDsM    ¿ªÆô·¨±¦ ²ÄÁϲ»×㣡mwID=%s,needItemDict=%s,lackItemDict=%s,delInfoDict=%ss%δÁìÈ¡¸ÃÏɱ¦Ñ°Ö÷½±Àø£¬ÎÞ·¨¼¤»î! ID=%sieii( RtGetPlayerManagertGetPlayerByIndexR¼R RDRRRRR2t GetNeedItemtGetItemManagertGetPackt IPY_GameWorldtrptItemt
ItemCommontGetCostItemIndexListt DelCostItemRtItemDel_MagicWeapontGetDictValueByBittDef_PDict_XBXZAwardRecordRtFBCommontNotify_FB_OvertDef_FBMapID_MagicWeapontOver_dataMapIDt Over_isPassRt SetCustomMapR"( tindext
clientDataR„RR
RnR+R*t needItemDicttitemPackt lackItemDictt delInfoDict((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytOnOpenMagicWeapon?s8             ' c%CsTtjd|ƒ}|sdStj|tj|ƒrItjd|ƒdS|jƒ}|jƒ}d}|dkr9d}|j    ƒj
t j ƒ}x|D]š\}}}    }
tjd||
ƒ} | sËq˜n| j ƒ} |j| ƒ} | jƒrøq˜n| jƒ}| jƒ}||kr˜||    kr˜d}Pq˜q˜Wnb|dkrô|j    ƒj
t j ƒ}|\}}tjdi|d6tƒ}|r›xc|D]X}|j ƒ} |j| ƒ} | jƒrÅq’n| jƒ}||kr’|d7}q’q’Wq›n§|dkrR|d}tj|tjƒd}|jd    iƒ}||krEdS||}nI|d
kr°|d}tj|tjƒd}|jd iƒ}||kr£dS||}në|d kr|d}tj|tjƒd}|jd iƒ}||krdS||}n|dkrl|d}tj|tjƒd}|jdiƒ}||kr_dS||}n/|dkr|jtjƒ}n|dkr®|jtjƒ}ní|dkrÏ|jtjƒ}nÌ|dkrþ|d}|jtj|ƒ}n|dkr-|d}|jtj |ƒ}nn|dkrH|j!ƒ}nS|dkr||d}t"||ƒrsdnd}n|dkr—|j#ƒ}ndStjd||||j$ƒfƒ||j$ƒkrôtjd|||j$ƒfƒdS|j%ƒ}|rJt&j'|t j(ƒ}t)|ƒ} | |krJtj*|dƒdSntj+|tj|dƒ|r¢x6|D]+\}!}"t,j-||!|"dt j(gƒqpWnx-|j.ƒD]\}#}$tj/||#|$ƒq¯Wt,j0||dd|j.ƒƒt1||gƒt2j3|t4j5d|j6ƒgƒt7j8||j6ƒƒtjd||fƒdS(NR»s"    Ïɱ¦Ñ°Ö÷Áì½± ÒÑÁìÈ¡£¡ index=%siitEquipPlaceIndexMapitClassLVitclassPlusLVDictitclassStarLVDictitclassWashLVDictitclassStoneLVDictiii    i
i i i is2Ïɱ¦Ñ°Ö÷Áì½± ID=%s,curType=%s,cnt=%s,GetNeedCnt=%ss6    Ïɱ¦Ñ°Ö÷Áì½± , Ìõ¼þ²»Âú×ã ID=%s, cnt=%s,NeedCnt=%stGeRen_chenxin_998371t    moneyInfos!    Ïɱ¦Ñ°Ö÷Áì½±OK, ID=%s, cnt=%s(9RR?RRÈRRÉRDtGetTypet GetConditionRÀRÁRÂtrptEquipt GetGridIndextGetAttIsEmptyt GetItemColort
GetSuiteIDRRRtGetCalcAttrListValuetDef_CalcAttrFunc_PlusR6tDef_CalcAttrFunc_StartDef_CalcAttrFunc_WashtDef_CalcAttrFunc_StoneRtDef_PDict_HorserLVtDef_Player_Dict_SkyTowerFloort!Def_Player_Dict_TrialTower_PassLVtDef_PDict_Boss_KillCntTotaltDef_PDict_GodWeaponLVR%R tGetOfficialRankt
GetNeedCntt GetAwardItemRÄtGetItemPackSpaceRÃtlenR4tSetDictValueByBitt ItemControlertGivePlayerItemtGetMoneyt    GiveMoneytNotifyGiveAwardInfoRR;R<R=t SuccType_XBXZRRtEventRespons_XBXZ(%RRÐR*tcurTypet conditionListtcntt playerEquiptclasslvtcolortsuitetplacet equipIpyDatat    gridIndextcurEquipt curItemColort
curIsSuitetclassLVR+tiDatatcustomAttrDictPlusRÙtcustomAttrDictStarRÚtcustomAttrDictWashRÛtcustomAttrDictStoneRÜt    bossIndextgwTypeR
t awardItemListt    packSpacet    needSpacetitemIDtitemCntt    moneyTypeRº((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytOnGetXBXZAwarddsÚ                
 
 
 
 
 
 
 #    &"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(tappendRRat GetXBXZCounttGetXBXZByIndexRR‹tChPyNetSendPackttagMCXBXZAwardRecordListtCleart
RecordListRRRÉttagMCXBXZAwardRecordt RecordIndextRecordRõt    RecordCntt NetPackCommont SendFakePack( Rt
syncIDListtrecordIndexListtsuccIDRftsuccCntt    maxSuccidt succFARPackRgt awardRecordt
recordInfo((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pyRs0    
              c
CsÒtjƒj|ƒ}|j}|jtj|ƒ}|d}tjd||ƒ}|s]dS|j    ƒ}|jtj
|ƒ}    |    |kr tj d|ƒdSt j |tj
||    |ƒt|||ƒdS(NiR0s·¨±¦Éý¼¶¾­Ñé²»×ã%s(RR½R¾R¼RRR    RR?t
GetNeedExptDef_PDict_MagicWeaponUpExpRDRRR"(
RÐRÑR„RR
R tnextMWLVt nextIpyDatatneedExptcurUpExp((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytOnMagicWeaponUp+s    
  cCs¢tjd||fƒ|jtj|ƒ}tj|tj|||ƒt||ƒt|ƒ}|rv|j    ƒnd}|dkržt
j |t j ƒndS(Ns"Ôö¼Ó·¨±¦Éý¼¶¾­Ñé mwID=%s,addExp=%sii(RRDRRR0RRRR2RtPlayerActivitytAddDailyActionFinishCntR=tDailyActionID_MagicWeapon(RR
taddExpR4R*Rk((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytAddMagicWeaponUpExp@s   c Cs|dkrft}g}tjƒ}xNt|jƒƒD](}|j|ƒ}|j|jƒƒq7Wnt}|g}t    j
ƒ}g|_ xÐ|D]È}|j t j|ƒ}|j t j|ƒ}    |j t j|ƒ}
t||ƒ} |r| r|     r|
r| rq‘nt    jƒ} || _|| _|    | _|
| _| | _|j j| ƒq‘Wt|j ƒ|_|jr‹tj||ƒndS(Niÿÿÿÿ(RRRaRbRcRdRRRRttagMCMagicWeaponLVInfotInfoListRRR    R0RR™ttagMCMagicWeaponInfoR¼tLVtExptFBPassLVtIsWearRõtCountR%R&( RR
tisAllt needCalListRfRgR*tsendPacktmwLvR4R@tisWeartpack((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pyRNs:            "                         c    Csåtjƒj|ƒ}|j}t||ƒs1dS|j}|r§tjddƒ}d}xLtjddiƒD]2}||kr„dSt    ||ƒrn|d7}qnqnWnt
|||ƒt |ƒt j |ƒj ƒt||ƒdS(NRŠiii(RR½R¾R¼R tStateRR8R3R™tSetMagicWeaponWearStateR#RR$R(    RÐRÑR„RR
RGtmaxCntt
hasWearCnttmid((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytOnWearMagicWeapon{s$         
 cCstj|tj|tƒS(N(RRÈRtDef_PDict_MagicWeaponIsWearR(RR
((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pyR™‘scCs tj|tj||tƒdS(N(RRöRROR(RR
tstate((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pyRJ–scCs/tjƒj|ƒ}|j}tj|ƒdS(N(RR½R¾R¼RtEventRespons_ThinkMagicWeapon(RÐRÑR„RR
((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pytOnThinkMagicWeapon¢s     (,RÄR=R%RIRRRÂRtRRRRvRGR;RR~R÷R6RÊREtrandomRRRR R-R"R9R2RiRoRRAR#RÖRRR5R:RRNR™RJRR(((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerMagicWeapon.pyt<module>sT                                 
  -                  #    U    %      '         -