cehua-HWJ35
2019-03-07 65d21adcb8f585c123fca5946270d36ff10280e4
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
íü€\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(((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 GetVIPDayExp0scCs%tjddiƒ}|j|dƒS(NtVIPPriceii(RRtget(tcardTypet    priceDict((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt GetVIPPrice3scCs%tjddiƒ}|j|dƒS(NRii(RRR(RttimeDict((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt
GetVIPTime7scCstjddiƒ}|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.pyRDscCstjddƒ}|S(NRi(RR(R((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytGetMailMessageGscCs%tjddiƒ}|j|dƒS(NRii(RRR(RtbuyDict((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytGetFirstBuyExpKscCsdS(N((tindext
clientPackttick((siE:\SnxxServerCode\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((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytCheckVIPDienstgrad‰s            !c Cs«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 | ƒx^| D]V\}}}tj|t|ƒt|ƒd tjtj gd dt!i|d6gƒqõWtj"dd
iƒj#|d ƒ}tj$d d|j%ƒ|| d d |gƒt&|ƒdS(NtVIPAwardsûÓÐvipµÈ¼¶Îª%sµÄÀñ°üsVIPµÈ¼¶²»×ã--VIPLV:%sis)vipµÈ¼¶Îª%sµÄÀñ°üÒѾ­¹ºÂò¹ý£¬²»ÄÜÖØ¸´¹ºÂòs Ã»ÓиÃÖ°ÒµµÄÀñ°üÐÅÏ¢-Ö°Òµ:%s--%stGeRen_chenxin_676165RsÏÉÓñ²»×ã!costGold=%sis
vipÀñ°ü-%siteventt
buyVIPGifttVIPPanelt
BuyVIPGift('R$tGetPlayerManagertGetPlayerByIndexRRtGetIpyGameDataR%RtNomalDictGetPropertytChConfigtDef_Player_Dict_VipAwardRecordtpowt    GetItemIDtstrtGetJobtlent
ItemCommontGetItemPackSpacet IPY_GameWorldtrptItemt PlayerControlt
NotifyCodetGetPricetPayMoneytTYPE_Price_Gold_MoneytDef_Cost_BuyVIPItemtNomalDictSetPropertyt
EventShelltEventResponse_BuyVIPItemt ItemControlertGivePlayerItemtintt rptAnyWheretFalseRRt WorldNotifytGetNametSycn_VIPAwardRecord(RRRR'R*tawardMsgtcurVipLVtrecordthasBuyt tatalItemDictt    playerJobtitemListt    needSpacet    packSpacet    itemPricetinfoDicttitemidtcnttisBindtopenuiid((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt
BuyVIPItemŸsT        
    !0!-
cCsPtƒ}tj|ddf}|d}tjd|||jƒg|ƒdS(Niti(Rt ShareDefinetDef_MailFormatRCtSendMailR&(R'tmailItemInfoListt MailMessagetcontenttgetDays((siE:\SnxxServerCode\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$tGetDictValueByBitR8tDef_Player_Dict_VersionFixtDef_VerFix_ChatBubbleBoxtSetDictValueByBitRtIPY_DatatxrangetGetChatBubbleBoxCounttGetChatBubbleBoxByIndextGetNeedVIPLVGiftR7R9R:tGetBoxIDtChPlayertDoActivateChatBubbleBoxR&tGetAccIDtDataRecordPackt SendEventPacktLogR%t Sycn_VIPMsgRSt Sycn_VIPTimetTruetSyncVIPKillNPCLVInfo(
R'Rt
ipyDataMgrtitipyDataRoRVRWtboxIDtdrDict((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 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(R7R8tDef_Player_Dict_VipExpRRRCRIR$R%R‚tSetVIPLvt OnChangeVIPLvt PlayerSuccesstDoAddSuccessProgressRetSuccType_VIPLVRƒRt DR_VIPChangeR„(R'texptvipExptpreVIPLVR*t
vipExpDict((siE:\SnxxServerCode\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(RJtEventResponse_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.pyR˜1s
 
 
 !  cCsItjƒ}|jtjƒ|_tjd|jƒtj    ||ƒdS(Ns ÁìÈ¡¼Ç¼!--%s(
tChPyNetSendPackttagMCVIPAwardMsgR7R8R9tAwardMsgR$R%t NetPackCommont SendFakePack(R'tpack((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRSJs cCsDtjƒ}|jtjƒ|_|jƒ|_tj    ||ƒdS(N(
R²t tagMCVIPInfoR7R8R–tExpRRRµR¶(R'R·((siE:\SnxxServerCode\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·((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRƒZs
 $cCsdS(Ni((R'R¿((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyR»bst
buyVIPTimecCstS(N(R„(R'taddTimetaddType((siE:\SnxxServerCode\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(RARBt rptWarehousetGetItemManagertGetPacktrangetGetCounttGetAtt GetItemTypeIDR8tDef_ItemID_VIPExperienceR?tDelItemR„(R't    packIndextcurPackR‡tcurItemt    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(RRCRDtPlayerMagicWeapont    GiveSkillR8tDef_SkillID_LFZR$R¯R°RPRIt&Def_Player_Dict_VipExperienceStartTimeRNttimeRƒR„(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ÌåÑ鿨½áÊø£¡(R7R8RØR$tCheckPlayerTicktTYPE_Player_Tick_VIPExperienceR½RCRIRRDRƒR„R%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(R7R8RØRRNRÙ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( R8tVIPPrivilegeListRPR½R„RRRRR6tgetattrR»tGetVIP0(    R't privilegeIDt playerVipLvt isCheckTimet isExperienceR*tVIPExperiencePrivilegeDicttvipMsgtpriVlaue((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytGetPrivilegeValueãs&       +cCstjd|ƒS(NRí(RR6(Rñ((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytGetVipPrivilegeDataúscCs!t|ƒtj|ƒjƒdS(N(t CalcVIPAttrRCtRefreshPlayerAttrState(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ÕtGetIsActiveMagicWeapontGetVIPKillNPCLVR6RCtCalcAttrDict_TypeRetDef_Effect_MinAtkt GetAddMinAtktDef_Effect_MaxAtkt GetAddMaxAtktSetCalcAttrListValueR8tDef_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$R4R5tIsOntSetDictR8t"Def_PlayerKey_SyncVIPKillNPCLVInfoR…R%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ÿRvtGetVIPKillNPCCountt__DoVIPKillNPCLVUptSetVIPKillNPCLVExpt GetDictByKeyR8RR…(
R'tcurNPCt    killCountR    tnpcLVtaddExpttotalKillLVExpt    befKillLVt    maxKillLVt    aftKillLV((siE:\SnxxServerCode\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(
RR6t GetLVExpPointR8tDef_PerPointValuetGetLVExpRCRItDef_Player_Dict_VIPKillLVR¥(R'RR RR!R t lvUPNeedExp((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRFs 
 
 '  cCstd|jtjƒƒS(Ni(tmaxR7R8R&(R'((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRÿ^scCs3|jtjƒ}|jtjƒ}|tj|S(N(R7R8tDef_Player_Dict_VIPKillLVExpt!Def_Player_Dict_VIPKillLVExpPointR$(R'RtexpPoint((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyR`scCs\t|tjƒ}|tj}|tj}tj|tj|ƒtj|tj|ƒ|S(N(tminR8t Def_HugeValueR$RCRIR)R*(R'RtupdExpt updExpPoint((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRes   cCsYtjƒ}t|ƒ|_|jtjƒ|_|jtjƒ|_    t
j ||ƒdS(N( R²ttagMCVIPKillNPCLVInfoRÿtKillLVR7R8R*tKillLVExpPointR)t    KillLVExpRµR¶(R't
killLVInfo((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyR…ms  cCsPtjƒj|ƒ}||jdƒdkr2dS|jd|ƒ|jƒdS(NtQRticki'(R$R4R5RR tSendDBQueryRecharge(RtpackDataRR'((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytOnQueryRecharges 
(@RCR$R8RµR²RLRAR"RÕR™ReR?RRRR¦RJRâR¨RªR­R|RÙRRR
R RRRRRRR-RcRlR‹RŒR’R¡R˜RSR‚RPRƒR»RÄR¤RÚRèR½R„RøRùR¥RúRR"RRÿRRR…R8(((siE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt<module>sz                                                                1        1                                                                             !