From bbca9a1da57c089959d1cf7384813d245290ff23 Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期一, 21 一月 2019 14:04:54 +0800 Subject: [PATCH] 5924 【后端】【1.5.100】诛仙Boss功能(初版) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py index f8d21a6..6def013 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py @@ -1241,6 +1241,14 @@ ("WORD", "SingleTimes", 0), ("list", "Reward", 0), ), + + "ZhuXianBoss":( + ("DWORD", "NPCID", 0), + ("BYTE", "LineID", 1), + ("WORD", "KillTime", 0), + ("WORD", "RealmLV", 0), + ("DWORD", "ZhuXianScore", 0), + ), } @@ -3781,6 +3789,23 @@ def GetTotalTimes(self): return self.TotalTimes # 可完成的总次数,0表示不限次数 def GetSingleTimes(self): return self.SingleTimes # 单次领奖需要的次数 def GetReward(self): return self.Reward # 奖励物品 + +# 诛仙BOSS表 +class IPY_ZhuXianBoss(): + + def __init__(self): + self.NPCID = 0 + self.LineID = 0 + self.KillTime = 0 + self.RealmLV = 0 + self.ZhuXianScore = 0 + return + + def GetNPCID(self): return self.NPCID # ID + def GetLineID(self): return self.LineID + def GetKillTime(self): return self.KillTime # 击杀总时间秒 + def GetRealmLV(self): return self.RealmLV # 需要境界 + def GetZhuXianScore(self): return self.ZhuXianScore # 需要诛仙总评分 def Log(msg, playerID=0, par=0): @@ -4042,6 +4067,8 @@ self.ipyActLoginAwardLen = len(self.ipyActLoginAwardCache) self.ipyLoginAwardCache = self.__LoadFileData("LoginAward", IPY_LoginAward) self.ipyLoginAwardLen = len(self.ipyLoginAwardCache) + self.ipyZhuXianBossCache = self.__LoadFileData("ZhuXianBoss", IPY_ZhuXianBoss) + self.ipyZhuXianBossLen = len(self.ipyZhuXianBossCache) Log("IPY_FuncConfig count=%s" % len(self.ipyFuncConfigDict)) Log("IPY_DataMgr InitOK!") return @@ -4444,6 +4471,8 @@ def GetActLoginAwardByIndex(self, index): return self.ipyActLoginAwardCache[index] def GetLoginAwardCount(self): return self.ipyLoginAwardLen def GetLoginAwardByIndex(self, index): return self.ipyLoginAwardCache[index] + def GetZhuXianBossCount(self): return self.ipyZhuXianBossLen + def GetZhuXianBossByIndex(self, index): return self.ipyZhuXianBossCache[index] IPYData = IPY_DataMgr() def IPY_Data(): return IPYData -- Gitblit v1.8.0