From cf6dd722bfc07a6ae19dd0378ecfda667d35ca67 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期三, 09 一月 2019 09:52:43 +0800
Subject: [PATCH] 5730 【后端】【1.5】时装功能开发
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py | 143 +++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 141 insertions(+), 2 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py
index a6f662f..2825e23 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py
@@ -298,6 +298,7 @@
"NPCStrengthen":(
("DWORD", "NPCID", 1),
("BYTE", "IsStrengthenByPlayerCount", 0),
+ ("BYTE", "LVStrengthenMark", 0),
("BYTE", "LVStrengthenType", 0),
("BYTE", "CmpNPCBaseLV", 0),
("DWORD", "HitTime", 0),
@@ -804,6 +805,7 @@
("dict", "JadeReward", 0),
("DWORD", "CostCopper", 0),
("dict", "CopperReward", 0),
+ ("list", "JobItemList", 0),
),
"Chests":(
@@ -1131,6 +1133,21 @@
("dict", "Attr", 0),
),
+ "CrossRealmPKDan":(
+ ("BYTE", "DanLV", 1),
+ ("list", "DanLVAwardList", 0),
+ ("list", "SeasonDanLVAwardList", 0),
+ ),
+
+ "CrossPenglaiZone":(
+ ("BYTE", "ZoneID", 1),
+ ("list", "ServerGroupIDList", 0),
+ ("DWORD", "MapID", 0),
+ ("BYTE", "CopyMapID", 0),
+ ("WORD", "PosX", 0),
+ ("WORD", "PosY", 0),
+ ),
+
"GatherSoul":(
("DWORD", "ItemID", 1),
("list", "AttrType", 0),
@@ -1152,6 +1169,27 @@
("dict", "AttrInfo3", 0),
("dict", "AttrInfo4", 0),
("dict", "AttrInfo5", 0),
+ ),
+
+ "MagicWeaponOfKing":(
+ ("DWORD", "MWID", 1),
+ ("BYTE", "AwardMark", 1),
+ ("dict", "AddAttr", 0),
+ ),
+
+ "Coat":(
+ ("DWORD", "CoatID", 1),
+ ("list", "EquipItemID", 0),
+ ("DWORD", "UnlockItemID", 0),
+ ("DWORD", "MaxLV", 0),
+ ("list", "CostItemCnt", 0),
+ ("dict", "StarAttr", 0),
+ ),
+
+ "CoatChestUp":(
+ ("DWORD", "LV", 1),
+ ("BYTE", "NeedExp", 0),
+ ("dict", "AddAttr", 0),
),
}
@@ -1712,6 +1750,7 @@
def __init__(self):
self.NPCID = 0
self.IsStrengthenByPlayerCount = 0
+ self.LVStrengthenMark = 0
self.LVStrengthenType = 0
self.CmpNPCBaseLV = 0
self.HitTime = 0
@@ -1730,6 +1769,7 @@
def GetNPCID(self): return self.NPCID # NPCID
def GetIsStrengthenByPlayerCount(self): return self.IsStrengthenByPlayerCount # 是否根据人数成长
+ def GetLVStrengthenMark(self): return self.LVStrengthenMark # 等级成长属性公式标记
def GetLVStrengthenType(self): return self.LVStrengthenType # 等级成长类型, 0-不按等级成长;1-按玩家平均等级;2-按玩家最大等级;3-按世界等级;
def GetCmpNPCBaseLV(self): return self.CmpNPCBaseLV # 是否比较NPC表等级, 是的话取NPC表配置等级与成长等级中较大等级
def GetHitTime(self): return self.HitTime # 受击次数
@@ -2759,7 +2799,8 @@
self.VipCostJade = 0
self.JadeReward = {}
self.CostCopper = 0
- self.CopperReward = {}
+ self.CopperReward = {}
+ self.JobItemList = []
return
def GetID(self): return self.ID # ID
@@ -2769,7 +2810,8 @@
def GetVipCostJade(self): return self.VipCostJade # 绑玉找回VIP次数找回价格
def GetJadeReward(self): return self.JadeReward # 绑玉找回奖励
def GetCostCopper(self): return self.CostCopper # 铜钱找回铜钱消耗
- def GetCopperReward(self): return self.CopperReward # 铜钱找回奖励
+ def GetCopperReward(self): return self.CopperReward # 铜钱找回奖励
+ def GetJobItemList(self): return self.JobItemList # 职业物品列表
# 宝箱表开启
class IPY_Chests():
@@ -3459,6 +3501,38 @@
def GetFightPower(self): return self.FightPower # 增加战力
def GetAttr(self): return self.Attr # 属性加成
+# 跨服竞技场段位表
+class IPY_CrossRealmPKDan():
+
+ def __init__(self):
+ self.DanLV = 0
+ self.DanLVAwardList = []
+ self.SeasonDanLVAwardList = []
+ return
+
+ def GetDanLV(self): return self.DanLV # 段位等级
+ def GetDanLVAwardList(self): return self.DanLVAwardList # 段位达标奖励物品列表
+ def GetSeasonDanLVAwardList(self): return self.SeasonDanLVAwardList # 赛季段位奖励物品列表
+
+# 跨服Boss蓬莱仙境分区表
+class IPY_CrossPenglaiZone():
+
+ def __init__(self):
+ self.ZoneID = 0
+ self.ServerGroupIDList = []
+ self.MapID = 0
+ self.CopyMapID = 0
+ self.PosX = 0
+ self.PosY = 0
+ return
+
+ def GetZoneID(self): return self.ZoneID # 分区ID
+ def GetServerGroupIDList(self): return self.ServerGroupIDList # 服务器组ID列表
+ def GetMapID(self): return self.MapID # 场景地图ID
+ def GetCopyMapID(self): return self.CopyMapID # 虚拟线路ID
+ def GetPosX(self): return self.PosX # 坐标X
+ def GetPosY(self): return self.PosY # 坐标Y
+
# 聚魂表
class IPY_GatherSoul():
@@ -3507,6 +3581,51 @@
def GetAttrInfo3(self): return self.AttrInfo3 # 多属性系数
def GetAttrInfo4(self): return self.AttrInfo4 # 初始属性(品质_属性值|…)
def GetAttrInfo5(self): return self.AttrInfo5 # 阶段系数
+
+# 王者法宝表
+class IPY_MagicWeaponOfKing():
+
+ def __init__(self):
+ self.MWID = 0
+ self.AwardMark = 0
+ self.AddAttr = {}
+ return
+
+ def GetMWID(self): return self.MWID # 法宝ID
+ def GetAwardMark(self): return self.AwardMark # 赛季奖励等级
+ def GetAddAttr(self): return self.AddAttr # 属性
+
+# 时装表
+class IPY_Coat():
+
+ def __init__(self):
+ self.CoatID = 0
+ self.EquipItemID = []
+ self.UnlockItemID = 0
+ self.MaxLV = 0
+ self.CostItemCnt = []
+ self.StarAttr = {}
+ return
+
+ def GetCoatID(self): return self.CoatID # 时装编号
+ def GetEquipItemID(self): return self.EquipItemID # 装备物品ID(按职业顺序)
+ def GetUnlockItemID(self): return self.UnlockItemID # 材料物品ID
+ def GetMaxLV(self): return self.MaxLV # 最大星级
+ def GetCostItemCnt(self): return self.CostItemCnt # 材料数量
+ def GetStarAttr(self): return self.StarAttr # 属性
+
+# 时装柜升级表
+class IPY_CoatChestUp():
+
+ def __init__(self):
+ self.LV = 0
+ self.NeedExp = 0
+ self.AddAttr = {}
+ return
+
+ def GetLV(self): return self.LV # 等级
+ def GetNeedExp(self): return self.NeedExp # 升级所需经验
+ def GetAddAttr(self): return self.AddAttr # 属性
def Log(msg, playerID=0, par=0):
@@ -3742,12 +3861,22 @@
self.ipyIceLodeStarAwardLen = len(self.ipyIceLodeStarAwardCache)
self.ipyGodWeaponEffectCache = self.__LoadFileData("GodWeaponEffect", IPY_GodWeaponEffect)
self.ipyGodWeaponEffectLen = len(self.ipyGodWeaponEffectCache)
+ self.ipyCrossRealmPKDanCache = self.__LoadFileData("CrossRealmPKDan", IPY_CrossRealmPKDan)
+ self.ipyCrossRealmPKDanLen = len(self.ipyCrossRealmPKDanCache)
+ self.ipyCrossPenglaiZoneCache = self.__LoadFileData("CrossPenglaiZone", IPY_CrossPenglaiZone)
+ self.ipyCrossPenglaiZoneLen = len(self.ipyCrossPenglaiZoneCache)
self.ipyGatherSoulCache = self.__LoadFileData("GatherSoul", IPY_GatherSoul)
self.ipyGatherSoulLen = len(self.ipyGatherSoulCache)
self.ipyGatherSoulCompoundCache = self.__LoadFileData("GatherSoulCompound", IPY_GatherSoulCompound)
self.ipyGatherSoulCompoundLen = len(self.ipyGatherSoulCompoundCache)
self.ipyGatherSoulAttrCache = self.__LoadFileData("GatherSoulAttr", IPY_GatherSoulAttr)
self.ipyGatherSoulAttrLen = len(self.ipyGatherSoulAttrCache)
+ self.ipyMagicWeaponOfKingCache = self.__LoadFileData("MagicWeaponOfKing", IPY_MagicWeaponOfKing)
+ self.ipyMagicWeaponOfKingLen = len(self.ipyMagicWeaponOfKingCache)
+ self.ipyCoatCache = self.__LoadFileData("Coat", IPY_Coat)
+ self.ipyCoatLen = len(self.ipyCoatCache)
+ self.ipyCoatChestUpCache = self.__LoadFileData("CoatChestUp", IPY_CoatChestUp)
+ self.ipyCoatChestUpLen = len(self.ipyCoatChestUpCache)
Log("IPY_FuncConfig count=%s" % len(self.ipyFuncConfigDict))
Log("IPY_DataMgr InitOK!")
return
@@ -4124,12 +4253,22 @@
def GetIceLodeStarAwardByIndex(self, index): return self.ipyIceLodeStarAwardCache[index]
def GetGodWeaponEffectCount(self): return self.ipyGodWeaponEffectLen
def GetGodWeaponEffectByIndex(self, index): return self.ipyGodWeaponEffectCache[index]
+ def GetCrossRealmPKDanCount(self): return self.ipyCrossRealmPKDanLen
+ def GetCrossRealmPKDanByIndex(self, index): return self.ipyCrossRealmPKDanCache[index]
+ def GetCrossPenglaiZoneCount(self): return self.ipyCrossPenglaiZoneLen
+ def GetCrossPenglaiZoneByIndex(self, index): return self.ipyCrossPenglaiZoneCache[index]
def GetGatherSoulCount(self): return self.ipyGatherSoulLen
def GetGatherSoulByIndex(self, index): return self.ipyGatherSoulCache[index]
def GetGatherSoulCompoundCount(self): return self.ipyGatherSoulCompoundLen
def GetGatherSoulCompoundByIndex(self, index): return self.ipyGatherSoulCompoundCache[index]
def GetGatherSoulAttrCount(self): return self.ipyGatherSoulAttrLen
def GetGatherSoulAttrByIndex(self, index): return self.ipyGatherSoulAttrCache[index]
+ def GetMagicWeaponOfKingCount(self): return self.ipyMagicWeaponOfKingLen
+ def GetMagicWeaponOfKingByIndex(self, index): return self.ipyMagicWeaponOfKingCache[index]
+ def GetCoatCount(self): return self.ipyCoatLen
+ def GetCoatByIndex(self, index): return self.ipyCoatCache[index]
+ def GetCoatChestUpCount(self): return self.ipyCoatChestUpLen
+ def GetCoatChestUpByIndex(self, index): return self.ipyCoatChestUpCache[index]
IPYData = IPY_DataMgr()
def IPY_Data(): return IPYData
--
Gitblit v1.8.0