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
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
ÊI0\c@sddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZddlZddlZd„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)d„Z*e+e+d„Z,e+d„Z-dd„Z.d„Z/d„Z0d„Z1e+d„Z2de3d„Z4d„Z5d „Z6d!„Z7d"„Z8d#d$„Z9d%„Z:d&„Z;d'„Z<d(„Z=d)„Z>d*„Z?dS(+iÿÿÿÿNcCstjddiƒS(NtVIPLVi(t IpyGameDataPYtGetFuncEvalCfg(((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt GetVIPLvUpExp-scCstjddƒS(NRi(Rt
GetFuncCfg(((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt GetVIPDayExp0scCs%tjddiƒ}|j|dƒS(NtVIPPriceii(RRtget(tcardTypet    priceDict((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt GetVIPPrice3scCs%tjddiƒ}|j|dƒS(NRii(RRR(RttimeDict((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt
GetVIPTime7scCstjddiƒ}|S(NtVIPTitlei(RR(t    titleDict((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt GetVIPTitle;scCs&tjddƒ}|d}t|ƒS(NtVIPLimitii(RRt
GetSeconds(tmaxDaytmaxHour((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt GetVIPMaxTime?s
cCs |ddS(Ni<((thour((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRDscCstjddƒ}|S(NRi(RR(R((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytGetMailMessageGscCs%tjddiƒ}|j|dƒS(NRii(RRR(RtbuyDict((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytGetFirstBuyExpKscCsdS(N((tindext
clientPackttick((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytBuyVipLVXscCs­|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((sZ.\\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((sZ.\\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((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt__AwardToPlayerByMailÐs    
c
Csttj|tjtjƒs8tj|tjtjdƒtjƒ}xÿt|j    ƒƒD]Û}|j
|ƒ}|j ƒ}|sƒqVn|j tj ƒ}|td|ƒ@}|s´qVn|jƒ}tj||ƒi|jƒd6|jƒd6|d6|d6}    tjd|    |ƒtjd||f|jƒƒqVWn tjd    ƒt|ƒt|ƒt|tƒt|ƒdS(
NiitPlayerIDtAccIDt needVIPLVGifttBoxIDtVIPGiftActChatBubbleBoxs4ÀϺż¤»îVIPÀñ°üÁÄÌìÆøÅÝ¿ò: boxID=%s,needVIPLVGift=%ssÒѾ­¼¤»î¹ýÀϺÅVIPÆøÅÝ¿ò(R$tGetDictValueByBitR9tDef_Player_Dict_VersionFixtDef_VerFix_ChatBubbleBoxtSetDictValueByBitRtIPY_DatatxrangetGetChatBubbleBoxCounttGetChatBubbleBoxByIndextGetNeedVIPLVGiftR8R:R;tGetBoxIDtChPlayertDoActivateChatBubbleBoxR&tGetAccIDtDataRecordPackt SendEventPacktLogR%t Sycn_VIPMsgRUt Sycn_VIPTimeRQtSyncVIPKillNPCLVInfo(
R'Rt
ipyDataMgrtitipyDataRqRXRYtboxIDtdrDict((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt    DoOnLoginÙs.   .' 
 
 
cCsdS(N((R'((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytVipOnDayùscCs.|jdƒ}|ddd}tj|ƒS(Ns is00:00:00(tsplitR$tChangeTimeStrToNum(tstrTickttickListt
newStrTick((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt GetZeroTimescCsR|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%R„tSetVIPLvt OnChangeVIPLvt PlayerSuccesstDoAddSuccessProgressRgtSuccType_VIPLVR…Rt DR_VIPChangeRQ(R'texptvipExptpreVIPLVR*t
vipExpDict((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt    AddVIPExps,  
     
 
 '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((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyR™1s
 
 
 !  cCsItjƒ}|jtjƒ|_tjd|jƒtj    ||ƒdS(Ns ÁìÈ¡¼Ç¼!--%s(
tChPyNetSendPackttagMCVIPAwardMsgR8R9R:tAwardMsgR$R%t NetPackCommont SendFakePack(R'tpack((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRUJs cCsDtjƒ}|jtjƒ|_|jƒ|_tj    ||ƒdS(N(
R³t tagMCVIPInfoR8R9R—tExpRRR¶R·(R'R¸((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyR„Ss cCsktjƒ}t||ƒ|_t||ƒ|_|jdksT|jdksT|rgtj||ƒndS(Ni(R³ttagMCNotifyVipTimet GetCurVIPTimetTimetGetVIPExperienceTimetExperienceTimeR¶R·(R'tislogintisForceR¸((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyR…Zs
 $cCsdS(Ni((R'RÀ((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyR¼bst
buyVIPTimecCstS(N(RQ(R'taddTimetaddType((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt
AddVIPTime~scCs±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    packIndextcurPackRˆtcurItemt    itemCount((sZ.\\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_VipExperienceStartTimeROttimeR…RQ(R'((sZ.\\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¾RDRJRRER…RQR%tGetIDtGetSkillManagertFindSkillBySkillTypeIDRØtDeleteSkillBySkillTypeIDtPassiveBuffEffMngtGetPassiveEffManagertRegistPassiveEfftRefreshAllSkill(R'Rt    startTimet skillManager((sZ.\\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((sZ.\\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((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytGetPrivilegeValueãs&       +cCstjd|ƒS(NRî(RR7(Rò((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytGetVipPrivilegeDataúscCs!t|ƒtj|ƒjƒdS(N(t CalcVIPAttrRDtRefreshPlayerAttrState(R'((sZ.\\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((sZ.\\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_SyncVIPKillNPCLVInfoR†R%R&(RRRR'tisOn((sZ.\\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    NPCCommontGetNPCLVtevaltGetFuncCompileCfgtGetVIPKillNPCLVExpRRxtGetVIPKillNPCCountt__DoVIPKillNPCLVUptSetVIPKillNPCLVExpt GetDictByKeyR9RR†(
R'tcurNPCt    killCountR
tnpcLVtaddExpttotalKillLVExpt    befKillLVt    maxKillLVt    aftKillLV((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytDoAddVIPKillLVExp%s$
   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((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRFs 
 
 '  cCstd|jtjƒƒS(Ni(tmaxR8R9R'(R'((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyR^scCs3|jtjƒ}|jtjƒ}|tj|S(N(R8R9tDef_Player_Dict_VIPKillLVExpt!Def_Player_Dict_VIPKillLVExpPointR%(R'RžtexpPoint((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyR`scCs\t|tjƒ}|tj}|tj}tj|tj|ƒtj|tj|ƒ|S(N(tminR9t Def_HugeValueR%RDRJR*R+(R'RtupdExpt updExpPoint((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRes   cCsYtjƒ}t|ƒ|_|jtjƒ|_|jtjƒ|_    t
j ||ƒdS(N( R³ttagMCVIPKillNPCLVInfoRtKillLVR8R9R+tKillLVExpPointR*t    KillLVExpR¶R·(R't
killLVInfo((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyR†ms  cCsPtjƒj|ƒ}||jdƒdkr2dS|jd|ƒ|jƒdS(NtQRticki'(R$R5R6RRtSendDBQueryRecharge(RtpackDataRR'((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytOnQueryRecharges 
(@RDR$R9R¶R³RMRBR"RÖRšRgR@RRRR§RKRãR©R«R®R~RÚRRR
R RRRRRRR-ReRnRŒRR“R¢R™RUR„RRR…R¼RÅR¥RÛRéR¾RQRùRúR¦RûRR#RRRRR†R9(((sZ.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt<module>sz                                                                1        1                                                                             !