hxp
2019-04-18 c562008bec642a25245295eeec567081bc4e4c42
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py
@@ -825,6 +825,16 @@
                        ("BYTE", "NotifyCollectResult", 0),
                        ),
                "TreasureNPC":(
                        ("DWORD", "NPCID", 1),
                        ("dict", "AttackCountDropWeightInfo", 0),
                        ("list", "AttackDropWeightList", 0),
                        ("list", "AttackDropWeightListEx", 0),
                        ("BYTE", "DropCountEx", 0),
                        ("BYTE", "AlchemyDiffLV", 0),
                        ("char", "NotDropNotify", 0),
                        ),
                "Chests":(
                        ("DWORD", "ChestsItemID", 1),
                        ("DWORD", "CostItemID", 0),
@@ -3096,6 +3106,27 @@
    def GetAlchemyDiffLV(self): return self.AlchemyDiffLV # 过滤炼丹等级差,0-不过滤,>0过滤大于自身炼丹等级X级的物品
    def GetNotifyCollectResult(self): return self.NotifyCollectResult # 是否通知采集结果
# 宝箱怪表
class IPY_TreasureNPC():
    def __init__(self):
        self.NPCID = 0
        self.AttackCountDropWeightInfo = {}
        self.AttackDropWeightList = []
        self.AttackDropWeightListEx = []
        self.DropCountEx = 0
        self.AlchemyDiffLV = 0
        self.NotDropNotify = ""
        return
    def GetNPCID(self): return self.NPCID # 宝箱怪NPCID
    def GetAttackCountDropWeightInfo(self): return self.AttackCountDropWeightInfo # 攻击次数对应掉落权重饼图 {次数:[[权重, [物品ID,个数,是否拍品]], ...], ...}
    def GetAttackDropWeightList(self): return self.AttackDropWeightList # 常规攻击权重饼图 [[权重, [物品ID,个数,是否拍品]], ...]
    def GetAttackDropWeightListEx(self): return self.AttackDropWeightListEx # 额外掉落权重饼图库,每次攻击都会掉落  [[权重, [物品ID,个数,是否拍品]], ...]
    def GetDropCountEx(self): return self.DropCountEx # 额外库执行次数
    def GetAlchemyDiffLV(self): return self.AlchemyDiffLV # 过滤炼丹等级差,0-不过滤,>0过滤大于自身炼丹等级X级的物品
    def GetNotDropNotify(self): return self.NotDropNotify # 没有掉落时提示信息
# 宝箱表开启
class IPY_Chests():
    
@@ -4560,6 +4591,8 @@
        self.ipyResourcesBackLen = len(self.ipyResourcesBackCache)
        self.ipyCollectNPCCache = self.__LoadFileData("CollectNPC", IPY_CollectNPC)
        self.ipyCollectNPCLen = len(self.ipyCollectNPCCache)
        self.ipyTreasureNPCCache = self.__LoadFileData("TreasureNPC", IPY_TreasureNPC)
        self.ipyTreasureNPCLen = len(self.ipyTreasureNPCCache)
        self.ipyChestsCache = self.__LoadFileData("Chests", IPY_Chests)
        self.ipyChestsLen = len(self.ipyChestsCache)
        self.ipyChestsAwardCache = self.__LoadFileData("ChestsAward", IPY_ChestsAward)
@@ -5018,6 +5051,8 @@
    def GetResourcesBackByIndex(self, index): return self.ipyResourcesBackCache[index]
    def GetCollectNPCCount(self): return self.ipyCollectNPCLen
    def GetCollectNPCByIndex(self, index): return self.ipyCollectNPCCache[index]
    def GetTreasureNPCCount(self): return self.ipyTreasureNPCLen
    def GetTreasureNPCByIndex(self, index): return self.ipyTreasureNPCCache[index]
    def GetChestsCount(self): return self.ipyChestsLen
    def GetChestsByIndex(self, index): return self.ipyChestsCache[index]
    def GetChestsAwardCount(self): return self.ipyChestsAwardLen