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
Sð    hc@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*d„Z+e,e,d„Z-e,d„Z.dd„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(((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt GetVIPLvUpExp-scCstjddƒS(NRi(Rt
GetFuncCfg(((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt GetVIPDayExp0scCs%tjddiƒ}|j|dƒS(NtVIPPriceii(RRtget(tcardTypet    priceDict((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt GetVIPPrice3scCs%tjddiƒ}|j|dƒS(NRii(RRR(RttimeDict((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt
GetVIPTime7scCstjddiƒ}|S(NtVIPTitlei(RR(t    titleDict((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt GetVIPTitle;scCs&tjddƒ}|d}t|ƒS(NtVIPLimitii(RRt
GetSeconds(tmaxDaytmaxHour((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt GetVIPMaxTime?s
cCs |ddS(Ni<((thour((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRDscCstjddƒ}|S(NRi(RR(R((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytGetMailMessageGscCs%tjddiƒ}|j|dƒS(NRii(RRR(RtbuyDict((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytGetFirstBuyExpKscCsdS(N((tindext
clientPackttick((sM.\\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((sM.\\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"|| dƒtj#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
BuyVIPGifttVIPPanel((R$tGetPlayerManagertGetPlayerByIndexRRtGetIpyGameDataR%RtNomalDictGetPropertytChConfigtDef_Player_Dict_VipAwardRecordtpowt    GetItemIDtstrtGetJobtlent
ItemCommontGetItemPackSpacet IPY_GameWorldtrptItemt PlayerControlt
NotifyCodetGetPricetPayMoneytTYPE_Price_Gold_MoneytDef_Cost_BuyVIPItemtNomalDictSetPropertyt
EventShelltEventResponse_BuyVIPItemt ItemControlertGivePlayerItemtintt rptAnyWheretFalsetNotifyGiveAwardInfoRRt WorldNotifytGetNametSycn_VIPAwardRecord(RRRR'R*tawardMsgtcurVipLVtrecordthasBuyt tatalItemDictt    playerJobtitemListt    needSpacet    packSpacet    itemPricetinfoDicttitemidtcnttisBindtopenuiid((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt
BuyVIPItemŸsV        
    !0!-
cCsPtƒ}tj|ddf}|d}tjd|||jƒg|ƒdS(Niti(Rt ShareDefinetDef_MailFormatRBtSendMailR&(R'tmailItemInfoListt MailMessagetcontenttgetDays((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt__AwardToPlayerByMailÑs    
cCs/t|ƒt|ƒt|tƒt|ƒdS(N(t Sycn_VIPMsgRSt Sycn_VIPTimetTruetSyncVIPKillNPCLVInfo(R'R((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt    DoOnLoginÚs
 
 
 
cCsdS(N((R'((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytVipOnDayäscCs.|jdƒ}|ddd}tj|ƒS(Ns is00:00:00(tsplitR$tChangeTimeStrToNum(tstrTickttickListt
newStrTick((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt GetZeroTimeúscCs—|jƒ}||kr/tjdƒtdfStƒ}||kr^tjd|ƒtdfS||}|jtj    ƒ}||}t
||ƒ|fS(NsÒѾ­´ïµ½¸ÃVIPµÈ¼¶£¡²»ÐèÒª´¦Àíis"ûÓиÃVIPµÈ¼¶£¬ÎÞ·¨Ö±Éý! tagVIPLV=( RR$R%RoRtErrLogROR6R7tDef_Player_Dict_VipExpt    AddVIPExp(R'ttagVIPLVtbefVIPLVt
vipExpDictt    tagVIPExptvipExptaddExp((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt UpgradeVIPLVs   
     
 
 
cCsq|dkrdS|jtjƒ|}|jƒ}|d}tƒ}tj|tj|ƒ||krŠtjd|dƒt    |ƒdSx|||kr|||kr|j
|ƒtj |t t j ƒƒƒt||ƒtj|tjd|gƒ|d7}qWtjd|jƒ||fƒt    |ƒ|sFt|ƒntj|di|jƒd6|d6ƒtS(NiisvipÒѾ­Âú¼¶--vipLV:%ssVIPµÈ¼¶--%s,addExp--%s,¾­Ñé--%st    addVIPExptViplvtVipExp(R6R7RzRRRBRHR$R%RmtSetVIPLvtSetVIPLVUpTimeRMttimet OnChangeVIPLvt PlayerSuccesstDoAddSuccessProgressRetSuccType_VIPLVRntDataRecordPackt DR_VIPChangeRo(R'texpR€tpreVIPLVR*R~((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyR{s.  
     
   
 'cCs§tj||ƒt|ƒt|ƒtj|ƒtjddiƒj|dƒ}|rkt    j
||ƒnt j |ƒ|j ƒs£tj|tjƒjƒƒndS(NtVIPRedPackAwardii(RItEventResponse_OnVipLvUpR-tRefreshVIPAttrt EventReporttWriteEvent_VIPRRRtPlayerFamilyRedPackettCreatRedPacketByIDt GameFuncCommtDoFuncOpenLogictGetTeamt
PlayerTeamtRefreshTeamVIPBuff_OnNoTeamR$t GetGameWorldtGetTick(R'R*t redPacketID((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyR‰+s
 
 !  cCsItjƒ}|jtjƒ|_tjd|jƒtj    ||ƒdS(Ns ÁìÈ¡¼Ç¼!--%s(
tChPyNetSendPackttagMCVIPAwardMsgR6R7R8tAwardMsgR$R%t NetPackCommont SendFakePack(R'tpack((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRSDs cCsDtjƒ}|jtjƒ|_|jƒ|_tj    ||ƒdS(N(
R t tagMCVIPInfoR6R7RztExpRRR£R¤(R'R¥((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRmMs cCsktjƒ}t||ƒ|_t||ƒ|_|jdksT|jdksT|rgtj||ƒndS(Ni(R ttagMCNotifyVipTimet GetCurVIPTimetTimetGetVIPExperienceTimetExperienceTimeR£R¤(R'tislogintisForceR¥((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRnTs
 $cCsdS(Ni((R'R­((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyR©\st
buyVIPTimecCstS(N(Ro(R'taddTimetaddType((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt
AddVIPTimexscCs…|jƒr tj|dƒdStj|tjtjƒj    ƒt
ƒtj |tj t tjƒƒƒt|ƒtj|dƒtS(Nt VipCardHint2t VipCardHint1(RRBRCtPlayerMagicWeapont    GiveSkillR7tDef_SkillID_LFZR$RRžRORHt&Def_Player_Dict_VipExperienceStartTimeRMRˆRnRo(R'((sM.\\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ÌåÑ鿨½áÊø£¡(R6R7R¸R$tCheckPlayerTicktTYPE_Player_Tick_VIPExperienceR«RBRHRRCRnRoR%tGetIDtGetSkillManagertFindSkillBySkillTypeIDR·tDeleteSkillBySkillTypeIDtPassiveBuffEffMngtGetPassiveEffManagertRegistPassiveEfftRefreshAllSkill(R'Rt    startTimet skillManager((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytCheckVIPExperience¬s$  cCsp|jtjƒ}|sdS|jƒr,dSttjƒƒ}tjddƒ}|||krddS|||S(Nit VIPExperiencei(R6R7R¸RRMRˆRR(R'tisLoginRÅtcurTimetexperienceTime((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyR«Ês c    Csä|s
dSt}|dkr%|}nEt|ƒr^t}tjddƒ}|j|dƒ}n |jƒ}tjd|ƒ}|s†dSt|d|ƒƒ}|s¦|S|ràt    |ƒdkrà|dkrà| rà|j
ƒ}n|S(NiiÿÿÿÿRÈit VipPrivilegesGetVIP%d( ROR«RoRRRRR5tgetattrR©tGetVIP0(    R't privilegeIDt playerVipLvt isCheckTimet isExperienceR*tVIPExperiencePrivilegeDicttvipMsgtpriVlaue((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytGetPrivilegeValueÝs&       +cCstjd|ƒS(NRÌ(RR5(RÏ((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytGetVipPrivilegeDataöscCs!t|ƒtj|ƒjƒdS(N(t CalcVIPAttrRBtRefreshPlayerAttrState(R'((sM.\\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(trangeRRRµtGetIsActiveMagicWeapontGetVIPKillNPCLVR5RBtCalcAttrDict_TypeRetDef_Effect_MinAtkt GetAddMinAtktDef_Effect_MaxAtkt GetAddMaxAtktSetCalcAttrListValueR7tDef_CalcAttrFunc_VIP(R't_t allAttrListtmwIDtkillLVt killLVIpyData((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRØs "cCsbtjƒj|ƒ}|j}|jtj|ƒ|rDt|ƒntjd||j    ƒƒdS(Ns VIPɱ¹ÖµÈ¼¶ÐÅϢͬ²½¿ª¹Ø, isOn=%s(
R$R3R4tIsOntSetDictR7t"Def_PlayerKey_SyncVIPKillNPCLVInfoRpR%R&(RRRR'tisOn((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytOnVIPKillNPCLVInfoSwitchs     ic    Csøtjddƒ}| s,tj||ƒ r0dSttjddƒƒ}||9}|s\dSt|ƒ|}t|ƒ}tjƒj    ƒ}|}||krºt
||||ƒ\}}nt ||ƒ}|j t jƒsç||krôt|ƒndS(s: »÷ɱNPCÔö¼ÓVIPɱ¹ÖµÈ¼¶¾­Ñ飬ֻËã»÷ɱµÄ£¬¶ÓÔ±»÷ɱÎÞЧ
    RÚiNi(RRRµRÝtevaltGetFuncCompileCfgtGetVIPKillNPCLVExpRÞtIPY_DatatGetVIPKillNPCCountt__DoVIPKillNPCLVUptSetVIPKillNPCLVExpt GetDictByKeyR7RíRp(    R'tnpcLVt    killCountRèRttotalKillLVExpt    befKillLVt    maxKillLVt    aftKillLV((sM.\\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(
RR5t GetLVExpPointR7tDef_PerPointValuetGetLVExpRBRHtDef_Player_Dict_VIPKillLVR“(R'RûRüRúRýRêt lvUPNeedExp((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRõAs 
 
 '  cCstd|jtjƒƒS(Ni(tmaxR6R7R(R'((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRÞYscCs3|jtjƒ}|jtjƒ}|tj|S(N(R6R7tDef_Player_Dict_VIPKillLVExpt!Def_Player_Dict_VIPKillLVExpPointR(R'RtexpPoint((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRò[scCs\t|tjƒ}|tj}|tj}tj|tj|ƒtj|tj|ƒ|S(N(tminR7t Def_HugeValueRRBRHRR(R'RútupdExpt updExpPoint((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRö`s   cCsYtjƒ}t|ƒ|_|jtjƒ|_|jtjƒ|_    t
j ||ƒdS(N( R ttagMCVIPKillNPCLVInfoRÞtKillLVR6R7RtKillLVExpPointRt    KillLVExpR£R¤(R't
killLVInfo((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyRphs  cCsPtjƒj|ƒ}||jdƒdkr2dS|jd|ƒ|jƒdS(NtQRticki'(R$R3R4R÷RìtSendDBQueryRecharge(RtpackDataRR'((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pytOnQueryRechargezs 
(@RBR$R7R£R RKR@R"RµRŠReR>RRt    NPCCommonR”RIRÁR–R˜R›tChPlayerRˆRRR
R RRRRRRR-RcRlRqRrRxR‚R{R‰RSRmRORnR©R²R¹RÇR«RoRÖR×R“RØRïRþRõRÞRòRöRpR(((sM.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerVip.pyt<module>sz                                                                1        2            
                                  &