From 2e892e272f7aea0a7ffbae81e43731c6b20119e6 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 04 八月 2025 10:46:12 +0800
Subject: [PATCH] 121 【武将】武将系统-服务端(竞技场支持进攻、防守阵容)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerVip.py | 44 ++++++++++++++++----------------------------
1 files changed, 16 insertions(+), 28 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerVip.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerVip.py
index ace36e9..809fdde 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerVip.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerVip.py
@@ -31,7 +31,6 @@
import IpyGameDataPY
import NPCCommon
import EventReport
-import EventShell
import PassiveBuffEffMng
import PlayerFamilyRedPacket
import GameFuncComm
@@ -191,26 +190,17 @@
return
record = record|(1 << vipLV)
PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_VipAwardRecord, record)
-
- EventShell.EventResponse_BuyVIPItem(curPlayer, vipLV)
+
GameWorld.DebugLog("vip礼包-%s" % itemList)
for itemid, cnt, isBind in itemList:
ItemControler.GivePlayerItem(curPlayer, int(itemid), int(cnt), 0, [IPY_GameWorld.rptItem, IPY_GameWorld.rptAnyWhere],
event=["BuyVIPGift", False, {"VIPLV":vipLV}])
-# else:
-# __AwardToPlayerByMail(curPlayer, itemList)
+
ItemControler.NotifyGiveAwardInfo(curPlayer, itemList, "BuyVIPGift")
openuiid = IpyGameDataPY.GetFuncEvalCfg('VIPPanel', 1, {}).get(vipLV, 0)
PlayerControl.WorldNotify(0, 'BuyVIPGift', [curPlayer.GetName(), vipLV, itemList[0][0], openuiid])
Sycn_VIPAwardRecord(curPlayer)
return
-
-#发邮件
-def __AwardToPlayerByMail(curPlayer, mailItemInfoList):
- MailMessage = GetMailMessage()
- content = ShareDefine.Def_MailFormat % (MailMessage[0], '')
- getDays = MailMessage[1]
- PlayerControl.SendMail('', content, getDays, [curPlayer.GetPlayerID()], mailItemInfoList)
##VIP登录处理
# @param curPlayer
@@ -297,9 +287,6 @@
# @param curPlayer 玩家
# @return None
def OnChangeVIPLv(curPlayer, vipLV):
- #vip等级改变触发任务
- EventShell.EventResponse_OnVipLvUp(curPlayer, vipLV)
-
CheckVIPDienstgrad(curPlayer)
#删除VIP体验卡物品
@@ -511,20 +498,21 @@
return
def CalcVIPAttr(curPlayer):
- allAttrList = [{} for _ in range(4)]
-
- # 属性需要判断是否过期
- #if GetPrivilegeValue(curPlayer, ChConfig.VIPPrivilege_VIPKillNPCAddAtk):
- mwID = IpyGameDataPY.GetFuncCfg("VIPAddAtkEXP", 2) # VIP杀怪加属性所需激活法宝
- if PlayerMagicWeapon.GetIsActiveMagicWeapon(curPlayer, mwID):
- killLV = GetVIPKillNPCLV(curPlayer)
- killLVIpyData = IpyGameDataPY.GetIpyGameData("VIPKillNPC", killLV)
- if killLVIpyData:
- PlayerControl.CalcAttrDict_Type(ShareDefine.Def_Effect_MinAtk, killLVIpyData.GetAddMinAtk(), allAttrList)
- PlayerControl.CalcAttrDict_Type(ShareDefine.Def_Effect_MaxAtk, killLVIpyData.GetAddMaxAtk(), allAttrList)
-
- PlayerControl.SetCalcAttrListValue(curPlayer, ChConfig.Def_CalcAttrFunc_VIP, allAttrList)
return
+# allAttrList = [{} for _ in range(4)]
+#
+# # 属性需要判断是否过期
+# #if GetPrivilegeValue(curPlayer, ChConfig.VIPPrivilege_VIPKillNPCAddAtk):
+# mwID = IpyGameDataPY.GetFuncCfg("VIPAddAtkEXP", 2) # VIP杀怪加属性所需激活法宝
+# if PlayerMagicWeapon.GetIsActiveMagicWeapon(curPlayer, mwID):
+# killLV = GetVIPKillNPCLV(curPlayer)
+# killLVIpyData = IpyGameDataPY.GetIpyGameData("VIPKillNPC", killLV)
+# if killLVIpyData:
+# PlayerControl.CalcAttrDict_Type(ShareDefine.Def_Effect_MinAtk, killLVIpyData.GetAddMinAtk(), allAttrList)
+# PlayerControl.CalcAttrDict_Type(ShareDefine.Def_Effect_MaxAtk, killLVIpyData.GetAddMaxAtk(), allAttrList)
+#
+# PlayerControl.SetCalcAttrListValue(curPlayer, ChConfig.Def_CalcAttrFunc_VIP, allAttrList)
+# return
#// A8 05 VIP杀怪等级信息同步开关 #tagCMVIPKillNPCLVInfoSwitch
#
--
Gitblit v1.8.0