CeHua_ZWJ
2018-11-09 3cc1fd26209bedf43c30b546b0435d37b1396429
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
X]â[c@szddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZddlZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd „Z d „Z!d„Z"d„Z#d„Z$d„Z%d„Z&d„Z'd„Z(d„Z)e*e*d„Z+e*d„Z,dd„Z-d„Z.d„Z/d„Z0e*d„Z1de2d„Z3d„Z4d „Z5d!„Z6d"„Z7d#d$„Z8d%„Z9d&„Z:d'„Z;d(„Z<d)„Z=dS(*iÿÿÿÿNcCstjddiƒS(NtVIPLVi(t IpyGameDataPYtGetFuncEvalCfg(((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt GetVIPLvUpExp,scCstjddƒS(NRi(Rt
GetFuncCfg(((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt GetVIPDayExp/scCs%tjddiƒ}|j|dƒS(NtVIPPriceii(RRtget(tcardTypet    priceDict((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt GetVIPPrice2scCs%tjddiƒ}|j|dƒS(NRii(RRR(RttimeDict((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt
GetVIPTime6scCstjddiƒ}|S(NtVIPTitlei(RR(t    titleDict((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt GetVIPTitle:scCs&tjddƒ}|d}t|ƒS(NtVIPLimitii(RRt
GetSeconds(tmaxDaytmaxHour((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt GetVIPMaxTime>s
cCs |ddS(Ni<((thour((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRCscCstjddƒ}|S(NRi(RR(R((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytGetMailMessageFscCs%tjddiƒ}|j|dƒS(NRii(RRR(RtbuyDict((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytGetFirstBuyExpJscCsdS(N((tindext
clientPackttick((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytBuyVipLVWscCs­|jƒ}|dkrdStƒ}x|jƒD]s\}}||krNPn|jƒj|ƒ}|dkr2tj||ƒtj    d|||f|j
ƒƒq2q2WdS(Nis:CheckVIPDienstgrad playerVIPLV=%s,vipLV=%s,dienstgradID=%s( tGetVIPLvRtitemstGetDienstgradManagert GetDienstgradtNonetPlayerDienstgradtPlayerAddDienstgradt    GameWorldtDebugLogt GetPlayerID(t    curPlayert playerVIPLVtvipDienstgradDicttvipLVt dienstgradIDt curDienstgrad((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytCheckVIPDienstgradˆs            !cCs´tjƒj|ƒ}|j}tjd|ƒ}|sKtjd|ƒdS|jƒ}||krxtjd|ƒdS|jt    j
ƒ}|t d|ƒ@}|r¸tjd|ƒdS|j ƒ}    t |jƒƒ}
|
|    krtjd|
t |    ƒfƒdS|    |
} t| ƒ} tj|tj| ƒ} | | krZtj|dtjgƒdS|jƒ}i|d6}tj|tj|t    j|ƒs©tjd    |ƒdS|d
|>B}tj|t    j
|ƒtj||ƒtjd | ƒxg| D]_\}}}tj|t|ƒt|ƒ|tjtj gt!d t!d dt"i|d6gƒqõWtj#dd
iƒj$|dƒ}tj%dd|j&ƒ|| dd|gƒt'|ƒdS(NtVIPAwardsûÓÐvipµÈ¼¶Îª%sµÄÀñ°üsVIPµÈ¼¶²»×ã--VIPLV:%sis)vipµÈ¼¶Îª%sµÄÀñ°üÒѾ­¹ºÂò¹ý£¬²»ÄÜÖØ¸´¹ºÂòs Ã»ÓиÃÖ°ÒµµÄÀñ°üÐÅÏ¢-Ö°Òµ:%s--%stGeRen_chenxin_676165RsÏÉÓñ²»×ã!costGold=%sis
vipÀñ°ü-%st showSysInfoteventt
buyVIPGifttVIPPanelit
BuyVIPGift((R$tGetPlayerManagertGetPlayerByIndexRRtGetIpyGameDataR%RtNomalDictGetPropertytChConfigtDef_Player_Dict_VipAwardRecordtpowt    GetItemIDtstrtGetJobtlent
ItemCommontGetItemPackSpacet IPY_GameWorldtrptItemt PlayerControlt
NotifyCodetGetPricetPayMoneytTYPE_Price_Gold_MoneytDef_Cost_BuyVIPItemtNomalDictSetPropertyt
EventShelltEventResponse_BuyVIPItemt ItemControlertGivePlayerItemtintt rptAnyWheretTruetFalseRRt WorldNotifytGetNametSycn_VIPAwardRecord(RRRR'R*tawardMsgtcurVipLVtrecordthasBuyt tatalItemDictt    playerJobtitemListt    needSpacet    packSpacet    itemPricetinfoDicttitemidtcnttisBindtopenuiid((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt
BuyVIPItemžsT        
    !6!-
cCsPtƒ}tj|ddf}|d}tjd|||jƒg|ƒdS(Niti(Rt ShareDefinetDef_MailFormatRDtSendMailR&(R'tmailItemInfoListt MailMessagetcontenttgetDays((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt__AwardToPlayerByMailÏs    
cCs/t|ƒt|ƒt|tƒt|ƒdS(N(t Sycn_VIPMsgRUt Sycn_VIPTimeRQtSyncVIPKillNPCLVInfo(R'R((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt    DoOnLoginØs
 
 
 
cCsdS(N((R'((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytVipOnDayâscCs.|jdƒ}|ddd}tj|ƒS(Ns is00:00:00(tsplitR$tChangeTimeStrToNum(tstrTickttickListt
newStrTick((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt GetZeroTimeøscCsR|dkrdS|jtjƒ|}|jƒ}|d}tƒ}tj|tj|ƒ||krŠtjd|dƒt    |ƒdSx`||krì|||krì|j
|ƒt ||ƒt j |tjd|gƒ|d7}qWtjd|jƒ|fƒt    |ƒ|s't|ƒntj|di|jƒd6|d6ƒtS(NiisvipÒѾ­Âú¼¶--vipLV:%ssVIPµÈ¼¶--%s,¾­Ñé--%st    addVIPExptViplvtVipExp(R8R9tDef_Player_Dict_VipExpRRRDRJR$R%RotSetVIPLvt OnChangeVIPLvt PlayerSuccesstDoAddSuccessProgressRgtSuccType_VIPLVRptDataRecordPackt DR_VIPChangeRQ(R'texptvipExptpreVIPLVR*t
vipExpDict((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt    AddVIPExpÿs,  
     
 
 'cCs±tj||ƒt|ƒt|ƒt|ƒtj|ƒtjddiƒj    |dƒ}|rut
j ||ƒnt j |ƒ|jƒs­tj|tjƒjƒƒndS(NtVIPRedPackAwardii(RKtEventResponse_OnVipLvUpR-t__DelVIPExperienceItemtRefreshVIPAttrt EventReporttWriteEvent_VIPRRRtPlayerFamilyRedPackettCreatRedPacketByIDt GameFuncCommtDoFuncOpenLogictGetTeamt
PlayerTeamtRefreshTeamVIPBuff_OnNoTeamR$t GetGameWorldtGetTick(R'R*t redPacketID((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRs
 
 
 !  cCsItjƒ}|jtjƒ|_tjd|jƒtj    ||ƒdS(Ns ÁìÈ¡¼Ç¼!--%s(
tChPyNetSendPackttagMCVIPAwardMsgR8R9R:tAwardMsgR$R%t NetPackCommont SendFakePack(R'tpack((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRU3s cCsDtjƒ}|jtjƒ|_|jƒ|_tj    ||ƒdS(N(
Ršt tagMCVIPInfoR8R9R}tExpRRRRž(R'RŸ((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRo<s cCsktjƒ}t||ƒ|_t||ƒ|_|jdksT|jdksT|rgtj||ƒndS(Ni(RšttagMCNotifyVipTimet GetCurVIPTimetTimetGetVIPExperienceTimetExperienceTimeRRž(R'tislogintisForceRŸ((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRpCs
 $cCsdS(Ni((R'R§((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyR£Kst
buyVIPTimecCstS(N(RQ(R'taddTimetaddType((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt
AddVIPTimegscCs±xªtjtjgD]–}|jƒj|ƒ}xxtd|jƒƒD]a}|j|ƒ}|seqDn|jƒt    j
kr€qDn|jƒ}t j |||t dƒqDWqWdS(NitDelVIPExperienceItem(RBRCt rptWarehousetGetItemManagertGetPacktrangetGetCounttGetAtt GetItemTypeIDR9tDef_ItemID_VIPExperienceR@tDelItemRQ(R't    packIndextcurPacktitcurItemt    itemCount((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRŒ|s !cCs…|jƒr tj|dƒdStj|tjtjƒj    ƒt
ƒtj |tj t tjƒƒƒt|ƒtj|dƒtS(Nt VipCardHint2t VipCardHint1(RRDREtPlayerMagicWeapont    GiveSkillR9tDef_SkillID_LFZR$R—R˜RRRJt&Def_Player_Dict_VipExperienceStartTimeROttimeRpRQ(R'((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytUseItemVIPExperiences %"
cCs|jtjƒ}|sdStj|tj|ƒs8dSt|ƒstj|tjdƒ|j    ƒdkrtj
|dƒnt |dt ƒtj d|jƒƒ|jƒ}|jtjƒr|jtjƒtjƒj|ƒtj|ƒjƒt SndS(NitVipTiyan_TimeoutR¨s    VIPÌåÑ鿨½áÊø£¡(R8R9RÁR$tCheckPlayerTicktTYPE_Player_Tick_VIPExperienceR¥RDRJRRERpRQR%tGetIDtGetSkillManagertFindSkillBySkillTypeIDRÀtDeleteSkillBySkillTypeIDtPassiveBuffEffMngtGetPassiveEffManagertRegistPassiveEfftRefreshAllSkill(R'Rt    startTimet skillManager((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytCheckVIPExperience›s$  cCsp|jtjƒ}|sdS|jƒr,dSttjƒƒ}tjddƒ}|||krddS|||S(Nit VIPExperiencei(R8R9RÁRRORÂRR(R'tisLoginRÏtcurTimetexperienceTime((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyR¥¹s c    Csí|tjkrdSt}|dkr.|}nEt|ƒrgt}tjddƒ}|j|dƒ}n |jƒ}tj    d|ƒ}|sdSt
|d|ƒƒ}|s¯|S|rét |ƒdkré|dkré| ré|j ƒ}n|S(NiiÿÿÿÿRÒit VipPrivilegesGetVIP%d( R9tVIPPrivilegeListRRR¥RQRRRRR7tgetattrR£tGetVIP0(    R't privilegeIDt playerVipLvt isCheckTimet isExperienceR*tVIPExperiencePrivilegeDicttvipMsgtpriVlaue((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytGetPrivilegeValueÌs&       +cCstjd|ƒS(NRÖ(RR7(RÚ((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytGetVipPrivilegeDataãscCs!t|ƒtj|ƒjƒdS(N(t CalcVIPAttrRDtRefreshPlayerAttrState(R'((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRés
cCs¿gtdƒD] }i^q }tjddƒ}tj||ƒr¥t|ƒ}tjd|ƒ}|r¥tjt    j
|j ƒ|ƒtjt    j |j ƒ|ƒq¥ntj|tj|ƒdS(Nit VIPAddAtkEXPit
VIPKillNPC(R±RRR¾tGetIsActiveMagicWeapontGetVIPKillNPCLVR7RDtCalcAttrDict_TypeRgtDef_Effect_MinAtkt GetAddMinAtktDef_Effect_MaxAtkt GetAddMaxAtktSetCalcAttrListValueR9tDef_CalcAttrFunc_VIP(R't_t allAttrListtmwIDtkillLVt killLVIpyData((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRãîs "cCsbtjƒj|ƒ}|j}|jtj|ƒ|rDt|ƒntjd||j    ƒƒdS(Ns VIPɱ¹ÖµÈ¼¶ÐÅϢͬ²½¿ª¹Ø, isOn=%s(
R$R5R6tIsOntSetDictR9t"Def_PlayerKey_SyncVIPKillNPCLVInfoRqR%R&(RRRR'tisOn((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytOnVIPKillNPCLVInfoSwitchs     ic
Cstjddƒ}| s,tj||ƒ r0dStj|ƒ}ttjddƒƒ}||9}|skdSt|ƒ|}t    |ƒ}tj
ƒj ƒ}|}    ||krÉt ||||ƒ\}    }nt ||ƒ}|jtjƒsö||    krt|ƒndS(s: »÷ɱNPCÔö¼ÓVIPɱ¹ÖµÈ¼¶¾­Ñ飬ֻËã»÷ɱµÄ£¬¶ÓÔ±»÷ɱÎÞЧ
    RåiNi(RRR¾Rçt    NPCCommontGetNPCLVtevaltGetFuncCompileCfgtGetVIPKillNPCLVExpRètIPY_DatatGetVIPKillNPCCountt__DoVIPKillNPCLVUptSetVIPKillNPCLVExpt GetDictByKeyR9R÷Rq(
R'tcurNPCt    killCountRòtnpcLVtaddExpttotalKillLVExpt    befKillLVt    maxKillLVt    aftKillLV((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytDoAddVIPKillLVExps$
   cCsì|}tjd|ƒ}|rÉ|jƒtj|jƒ}x‹|rÅ||krÅ||8}|d7}tj|tj|ƒ||krŠPntjd|ƒ}|r>|jƒtj|jƒ}q>q>Wn||krât    |ƒn||fS(NRæi(
RR7t GetLVExpPointR9tDef_PerPointValuetGetLVExpRDRJtDef_Player_Dict_VIPKillLVR(R'R    R
RR Rôt lvUPNeedExp((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyR/s 
 
 '  cCstd|jtjƒƒS(Ni(tmaxR8R9R(R'((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRèGscCs3|jtjƒ}|jtjƒ}|tj|S(N(R8R9tDef_Player_Dict_VIPKillLVExpt!Def_Player_Dict_VIPKillLVExpPointR(R'R…texpPoint((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRþIscCs\t|tjƒ}|tj}|tj}tj|tj|ƒtj|tj|ƒ|S(N(tminR9t Def_HugeValueRRDRJRR(R'RtupdExpt updExpPoint((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRNs   cCsYtjƒ}t|ƒ|_|jtjƒ|_|jtjƒ|_    t
j ||ƒdS(N( RšttagMCVIPKillNPCLVInfoRètKillLVR8R9RtKillLVExpPointRt    KillLVExpRRž(R't
killLVInfo((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRqVs  (>RDR$R9RRšRMRBR"R¾R€RgR@RƒRRúRŽRKRËRR’R•RÂRRR
R RRRRRRR-ReRnRrRsRyR‰RRURoRRRpR£R¬RŒRÃRÑR¥RQRáRâRRãRùR RRèRþRRq(((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt<module>sv                                                               1        1            
                                                                !