From 14f52c46d49b1654c783c5fa5c1480a09de4432e Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期日, 19 一月 2020 15:44:09 +0800
Subject: [PATCH] 8372 VIP特权修改(增加个人BOSS购买次数权限38、缥缈仙域购买次数权限39;日常活动支持VIP特权额外购买次数)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActivity.py |    4 ++++
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py         |    3 +++
 PySysDB/PySysDBPY.h                                                                          |    1 +
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py              |    4 +++-
 4 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/PySysDB/PySysDBPY.h b/PySysDB/PySysDBPY.h
index 3de1825..2618659 100644
--- a/PySysDB/PySysDBPY.h
+++ b/PySysDB/PySysDBPY.h
@@ -650,6 +650,7 @@
 	DWORD		Duration;	//持续时间, 0为不限制
 	DWORD		DayTimes;	//每日次数, 0为不限制
 	DWORD		DayBuyTimes;	//每日可购买次数
+	BYTE		BuyTimesPrivilegeID;	//购买次数VIP权限ID
 	DWORD		BuyNeedMoney;	//购买次数需要仙玉
 	DWORD		DayItemAddTimes;	//每日可用物品增加次数
 	DWORD		DayItemID;	//增加次数的物品ID
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
index 63292c5..fc247a3 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
@@ -5113,7 +5113,9 @@
 VIPPrivilege_35,    #35 诛仙BOSS购买次数 - 副本总表统一处理
 VIPPrivilege_36,    #36 仙丹批量炼制
 VIPPrivilege_BossHomeBuy,    #37 BOSS之家购买次数
-) = range(1, 38)
+VIPPrivilege_38,    #38 个人boss购买次数 - 副本总表统一处理
+VIPPrivilege_39,    #39 缥缈仙域购买次数 - 日常活动表统一处理
+) = range(1, 40)
 
 
 (
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py
index 947d31f..d6069c0 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py
@@ -543,6 +543,7 @@
                         ("DWORD", "Duration", 0),
                         ("DWORD", "DayTimes", 0),
                         ("DWORD", "DayBuyTimes", 0),
+                        ("BYTE", "BuyTimesPrivilegeID", 0),
                         ("DWORD", "BuyNeedMoney", 0),
                         ("DWORD", "DayItemAddTimes", 0),
                         ("DWORD", "DayItemID", 0),
@@ -2636,6 +2637,7 @@
         self.Duration = 0
         self.DayTimes = 0
         self.DayBuyTimes = 0
+        self.BuyTimesPrivilegeID = 0
         self.BuyNeedMoney = 0
         self.DayItemAddTimes = 0
         self.DayItemID = 0
@@ -2649,6 +2651,7 @@
     def GetDuration(self): return self.Duration # 持续时间, 0为不限制
     def GetDayTimes(self): return self.DayTimes # 每日次数, 0为不限制
     def GetDayBuyTimes(self): return self.DayBuyTimes # 每日可购买次数
+    def GetBuyTimesPrivilegeID(self): return self.BuyTimesPrivilegeID # 购买次数VIP权限ID
     def GetBuyNeedMoney(self): return self.BuyNeedMoney # 购买次数需要仙玉
     def GetDayItemAddTimes(self): return self.DayItemAddTimes # 每日可用物品增加次数
     def GetDayItemID(self): return self.DayItemID # 增加次数的物品ID
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActivity.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActivity.py
index f79667d..839e3e2 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActivity.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActivity.py
@@ -31,6 +31,7 @@
 import EventShell
 import PlayerTJG
 import PlayerPet
+import PlayerVip
 import datetime
 import time
 
@@ -555,6 +556,9 @@
     
     if addType == 0:
         dayBuyTimesLimit = ipyData.GetDayBuyTimes()
+        buyTimesPrivilegeID = ipyData.GetBuyTimesPrivilegeID()
+        vipBuyCountEx = PlayerVip.GetPrivilegeValue(curPlayer, buyTimesPrivilegeID)
+        dayBuyTimesLimit += vipBuyCountEx
         buyNeedMoney = ipyData.GetBuyNeedMoney()
         if not dayBuyTimesLimit or not buyNeedMoney:
             return

--
Gitblit v1.8.0