cehua_wcy
2018-08-27 c6f03d29b8c78ea2298276ddb808bd2289baa9b3
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
x{[c@s„ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd „Zd „Zd„Zd„Zd„Zd„Z d„Z!d„Z"d„Z#d„Z$dS(iÿÿÿÿNcCstj|tjƒstStS(N(t GameFuncCommt GetFuncCanUset ShareDefinetGameFuncID_GreatMastertFalsetTrue(t    curPlayer((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pytIsGreatMasterOpen1scCs5|s
dSt|ƒ}t|||ƒt|ƒdS(N(tGetGreatMasterFreeSkillPointtSetGreatMasterFreeSkillPointtSync_GreatMasterFreeSkillPoint(RtaddPointtcurFreeSkillPoint((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pytAddGreatMasterSkillPointByLV>s  
cCsU|jƒtjdƒk}|s%dStj|ƒ}tj|dƒt||ƒdS(Nt PlayerMaxLVi(tGetLVExt IpyGameDataPYt
GetFuncCfgt PlayerControltGetPlayerTotalExptSetPlayerTotalExptAddGreatMasterExp(RtisFullLVt curTotalExp((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pytOnReincarnationKs cCs(t|ƒsdSt|ƒt|ƒdS(N(RtSync_GreatMasterExpR
(R((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pyt MasterOnLoginZs
 
 
cCs|jtjdtjƒS(Ni(tNomalDictGetPropertytChConfigtDef_PDict_Master_ExptDef_PDictType_GreatMaster(R((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pytGetCurGreatMasterExpcscCs tj|tj|tjƒdS(N(RtNomalDictSetPropertyRRR(Rtvalue((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pytSetCurGreatMasterExpgscCs|jtjdtjƒS(Ni(RRtDef_PDict_Master_ExpPointR(R((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pytGetGreatMasterExpPointlscCs tj|tj|tjƒdS(N(RR RR#R(RR!((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pytSetGreatMasterExpPointpscCs-t|ƒ}t|ƒ}|tj|}|S(N(RR$RtDef_PerPointValue(Rt    masterExptmasterExpPointttotalMasterExp((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pytGetTotalGreatMasterExpus  cCsB|tj}|tj}t||ƒt||ƒt|ƒdS(N(RR&R"R%R(RttotalExptcurExptexpPoint((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pytSetTotalGreatMasterExp|s     
cCs|jtjdtjƒS(Ni(RRtDef_PDict_Master_FreeSkillPointR(R((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pyR‰scCs tj|tj|tjƒdS(N(RR RR/R(RR!((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pyR    scCsRtjdƒ}|jƒd}||kr/dS|j|ƒ}t|dƒ}|S(NtGreatMasterExpiiÿÿÿÿtExp(t
PyMapTablet GetPyMapTabletGetRecordCounttGetRecordByIndextint(tmasterLVtmasterExpTablet maxMasterLVt expInfoListR+((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pytGetTotalExpByGreatMasterLV”s c Cs+dSt|ƒstS|jƒ}|jƒ}tjdƒ}|jƒd}||kr{tj|dƒt    j
d|ƒtSt |ƒ|}t ||ƒ|j |ƒ}t|dƒ}|dkrát    jd||f|ƒtSt}    x×||krÀt}    |d7}|j|ƒ||8}t|dƒ}
t|ƒ} t|| |
ƒtj||ƒ||krzt    j
d    |ƒPn|j |ƒ}t|dƒ}|dkrêt    j
d
||ƒPqêqêW|    r'tj|ƒtj|ƒjƒ|j|jƒƒ|j|jƒƒt|ƒt ||ƒntS( NR0itGeRen_admin_825676s´óʦµÈ¼¶ÒÑÂú¼¶£¡R1is0´óʦÉý¼¶ËùÐè¾­ÑéÅäÖôíÎó£¡masterLV=%s,needExp=%st AddSkillPoints    Ñ­»·Éý¼¶´óʦµÈ¼¶ÒÑÂú¼¶£¡s&    Ñ­»·Éý¼¶ÏÂÒ»¼¶¾­ÑéΪ0£¡masterLV=%s(RRt GetPlayerIDtGetLV2R2R3R4Rt
NotifyCodet    GameWorldtDebugLogR*R.R5R6tErrLogRtSetLV2RR    tDataRecordPacktDR_PlayerMasterLVChangetPlayerBillboardtUpdatePlayerLVBillboardtRefreshAllStatetSetHPtGetMaxHPtSetMPtGetMaxMPR
( RtaddExptplayerIDR7R8R9tcurTotalMasterExpR:tneedExptisLVUPt addSkillPointR ((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pyR¥sX      
 
 
cCsHtjƒ}|jƒt|ƒ|_t|ƒ|_tj||ƒdS(N(    tChPyNetSendPackttagMCGreatMasterExptClearR$tMasterExpPointRt CurMasterEXPt NetPackCommont SendFakePack(Rt masterExpPack((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pyRús  
cCsdS(N((R((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pyR
scCsÅtjƒj|ƒ}t|ƒs;tjd|jƒƒdS|jtj|j    }t
j |ƒ}t ||ƒ}tj d||jƒƒ|dkršdS||}t
j||ƒt||ƒdS(Ns&´óʦ¹¦ÄÜ먦Æô£¡²»Äܶһ»´óʦµÈ¼¶¾­Ñ飡s¶Ò»»´óʦµÈ¼¶¾­ÑéExchangeExp=%si(RAtGetPlayerManagertGetPlayerByIndexRRCR>t    MultiplesRR&tExtraExpRRtminRBRR(tindext
clientDatattickRt exchangeExpRtactualExchangeExpt updTotalExp((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pytOnExchangeMasterExps  
 c-Cs˜tjƒj|ƒ}|j}|s(dStjdƒ}tjdƒ}tj|jƒ}||kridS||}|j    |gƒ}    i}
i} i} d} x5|j
ƒD]'\}}x|D]}||
|<q½WqªW|j ƒ}x±t |j ƒƒD]}|j|ƒ}|dkrqôn|jƒ}xg|j
ƒD]Y\}}||krRq4n|jƒ}|| |<| j    |dƒ|| |<| |7} Pq4WqôWt}t}tj}i}tjd|| | | fƒxˆ|rWt}xu|D]m}|j}|j}t|ƒ}|dkr$tjdƒPn||
krGtjd|ƒqãn|
|}|j    |dƒ}||kruqãn|j|ƒ} | s“d}!nE| jƒ}"| jƒ}#|"|#krÎtjd|ƒqãn|"d}!tjƒj||!ƒ}$|$stjd    ||!fƒqãn|$jƒ}%|$j ƒ}&|$j!ƒ}'|$j"ƒ}(| j    |&dƒ})|&dkr| j    |&dƒ|'krqãn|(dkrÝ||    k}*|*r¯| |(kr¯qãn| j    |dƒ}+|* rÝ|+|(krÝqãqÝn|j#|ƒt$j%|||!ƒt}|d||<|!| |<| j    |dƒd| |<| d7} t&||dƒqãWqÐW|rzt'j'|ƒ},|,j(ƒnt'j)|d
ƒt*|ƒdS( NtReqTotalPointSkilltGreatMasterSkillisF¡¾Ì츳¼Óµã¡¿jobType=%s,¼¼ÄܶÔÓ¦µÈ¼¶=%s,Ì츳ϵ¶ÔÓ¦×ܼ¼Äܵã=%s,×ܵãÊý=%ss    µ±Ç°ÎÞÊ£ÓàÌ츳µã£¡s$¼¼Äܲ»ÔںϷ¨Ì츳ϵÀskillTypeID=%sis    ¼¼ÄÜÒÑÂú¼¶£¡skillTypeID=%ss-ÕÒ²»µ½Ñ§Ï°¼¼ÄÜÊý¾Ý£ºskillTypeID=%s,skillLV=%stGeRen_liubo_224510(+RAR\R]tAddSkillPointListt ReadChConfigtGetEvalChConfigRt JOB_TYPE_DICTtGetJobtgettitemstGetSkillManagertranget GetSkillCounttGetSkillByIndextNonetGetSkillTypeIDt
GetSkillLVRRt IPY_GameWorldt btPassiveBufRBtSkillIDtAddPointRRCtFindSkillBySkillTypeIDt GetSkillMaxLVt GetGameDatatFindSkillByTypet
GetSkillIDtGetLearnSkillReqtGetLearnSkillLVtGetLearnSkillPointReqtLVUpSkillBySkillTypeIDREtDR_LearnORUPSkillR    RtRefreshPlayerAttrByBuffR@R
(-RaRbRcRtneedAddSkillPointListtreqTotalPointSkillDicttgreatMasterSkillDicttjobTypetjobMasterSkillDicttreqTotalPointSkillListtskillTypeSeriesDicttskillTypeLVDicttseriesTotalPointDicttallSeriesTotalPointt
seriesTypetskillTypeIDListtsTypeIDt skillManagertit playerSkilltplayerSkillTypeIDtskillLVt
isAddSkillt isRefreshAttrtbuffTypet addPointDicttaddSkillt skillTypeIDt totalAddPointtfreeSkillPointt curSeriesTypeR tcurSkillt learnSkillLVt
curSkillLVt curSkillMaxLVtlearnSkillDatat learnSkillIDt skillLearnReqtskillLearnReqLVtskillLearnSeriesPointReqt
reqSkillLVt isReqAllPointtcurSeriesTotalPointt
curControl((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pytOnAddMasterSkillPointCs¾     
 
 
                             
        
    $       
 
 
cCsstjƒj|ƒ}tjdƒ}tj}tj|||ƒsFdSt    |ƒsVdStj
|||t j ƒdS(NtResetMasterSkillCost( RAR\R]RlRmRytTYPE_Price_Gold_MoneyRt    HaveMoneytDoResetMasterSkillPointtPayMoneyRtDef_Cost_ResetGreatMasterSkill(RaRbRcRR±t    moneyType((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pytOnResetMasterSkill÷s     c Cs<tjdƒ}tj|jƒ}||kr2tS||}t|ƒ}d}|jƒ}t}x{|jƒD]m}xd|D]\}    |j    |    ƒ}
|
s›qzn|
j
ƒ} t j |
ƒr¿t }n|| 7}|j|    ƒqzWqmW|dkrûtjdƒtSt|||ƒt|ƒ|r8tj|ƒ} | jƒnt S(NRiis²»ÐèÒªÖØÖü¼ÄÜÌ츳£¡(RlRmRRnRoRRRrtvaluesR}Rxt SkillCommontisPassiveSkillRtDeleteSkillBySkillTypeIDRARBR    R
RR‡( RRŠR‹RŒR¡t
resetPointR•R›R“RŸR£R¥R¯((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pyR´
s8 
        
 
 (%RAR2RRyRGRTRERYRlRºRt
SkillShellt    BuffSkillRt PlayerSuccessRRRR RRRR"R$R%R*R.RR    R;RRR
RgR°R¸R´(((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pyt<module>sH                                                                                U             ,    ´