| | |
| | | DWORD ActivateSkillID; //激活技能ID
|
| | | };
|
| | |
|
| | | //神兵表 #tagGodWeapon
|
| | |
|
| | | struct tagGodWeapon
|
| | | {
|
| | | WORD _Type; //神兵类型
|
| | | WORD _LV; //等级
|
| | | DWORD Exp;
|
| | | list AttrType; //属性类型
|
| | | list AttrNum; //属性值
|
| | | DWORD SkillID; //激活技能ID
|
| | | char SysMark; //系统提示
|
| | | };
|
| | |
|
| | | //功能配置表格 #tagFuncConfig
|
| | |
|
| | | struct tagFuncConfig
|
| | |
| | | PacketSubCMD_6=
|
| | | PacketCallFunc_6=
|
| | |
|
| | | ;神器
|
| | | [PlayerGodWeapon]
|
| | | ScriptName = Player\PlayerGodWeapon.py
|
| | | Writer = ljd
|
| | | Releaser = ljd
|
| | | RegType = 0
|
| | | RegisterPackCount = 2
|
| | |
|
| | | PacketCMD_1=0xA5
|
| | | PacketSubCMD_1=0x55
|
| | | PacketCallFunc_1=OnPlusGodWeapon
|
| | |
|
| | | PacketCMD_2=0xA5
|
| | | PacketSubCMD_2=0x56
|
| | | PacketCallFunc_2=OnGodWeaponActivate
|
| | |
|
| | | ;聊天
|
| | | [PlayerTalk]
|
| | | ScriptName = Player\PlayerTalk.py
|
| | |
| | | # 攻击时防守方神兵护盾的处理
|
| | | def CalcAtkProDef(atkObj, defObj, hurtValue, curSkill, tick):
|
| | | return hurtValue
|
| | | # if defObj.GetGameObjType() != IPY_GameWorld.gotPlayer:
|
| | | # return hurtValue
|
| | | # |
| | | # if not CheckIsPlayerOnwer(atkObj):
|
| | | # return hurtValue
|
| | | #
|
| | | # curProDef = PlayerControl.GetProDef(defObj)
|
| | | # if not curProDef:
|
| | | # return hurtValue
|
| | | # |
| | | # absortValue = min(PlayerControl.GetProDefAbsorb(defObj)*hurtValue/ChConfig.Def_MaxRateValue, curProDef)
|
| | | # |
| | | # PlayerControl.SetProDef(defObj, curProDef - absortValue)
|
| | | # |
| | | # # 被动技能触发
|
| | | # defObj.SetDict(ChConfig.Def_PlayerKey_GodWeaponBeforeProDef, curProDef)
|
| | | # PassiveBuffEffMng.OnPassiveSkillTrigger(defObj, atkObj, None, ChConfig.TriggerType_ProDefValue, tick)
|
| | | # return hurtValue - absortValue
|
| | |
|
| | |
|
| | | # 设置玩家一次主动型攻击中的第一个防御者
|
| | | def SetFirstDefender(attacker, defObj, curSkill):
|
| | |
| | | TYPE_Calc_BaseDefAddPer, # 基础防御百分比
|
| | | TYPE_Calc_BaseHitAddPer, # 基础命中百分比
|
| | | TYPE_Calc_BaseMissAddPer, # 基础闪避百分比
|
| | | TYPE_Calc_GodWeaponMaxHPPer, # 神兵生命百分比 |
| | | TYPE_Calc_GodWeaponAtkPer, # 神兵攻击百分比 105
|
| | | TYPE_Calc_104, # 神兵生命百分比 |
| | | TYPE_Calc_105, # 神兵攻击百分比 105
|
| | | TYPE_Calc_StoneMaxHPPer, # 宝石生命百分比
|
| | | TYPE_Calc_StoneAtkPer, # 宝石攻击百分比
|
| | | TYPE_Calc_HPCureEnhance, # 血瓶恢复效果增加
|
| | |
| | | Def_ItemType_MissionItem = 17 #任务物品
|
| | | Def_ItemType_TransMissionItem = 18 #转职任务物品
|
| | | Def_ItemType_RealmStuff = 19 #头衔(境界)升级道具
|
| | | Def_ItemType_GodWeaponStuff = 20 #头衔(境界)升级道具
|
| | | Def_ItemType_HorseStuff = 21 #坐骑丹
|
| | | Def_ItemType_HorseSoul = 22 #坐骑兽魂
|
| | | Def_ItemType_HorseBook = 23 #坐骑技能书
|
| | |
| | | Def_Item_Eff_UseClassLV = 2821
|
| | | #祝福值波动范围 随机用
|
| | | Def_Item_Eff_BlessRange = 2818
|
| | | #神兵经验值
|
| | | Def_Item_Eff_GodWeaponExp = 206
|
| | | #---------------------------------------------------------------------
|
| | | #写死的任务ID
|
| | | #新手任务
|
| | |
| | | Def_PlayerKey_BuffHurtCnt = "BuffHurtCnt" # 持续buff掉血次数
|
| | | Def_PlayerKey_Zhansha = "zhansha" # 斩杀标志
|
| | | Def_PlayerKey_LockHPSkillID = "LockHPSkillID" # 锁血功能的技能
|
| | | Def_PlayerKey_GodWeaponBeforeProDef = "GWBPD" # 神兵护盾被攻击前的值
|
| | | Def_PlayerKey_curHurtValue = "curHurtValue" # 计算中的临时伤害值,技能特殊用
|
| | | Def_PlayerKey_curHurtValueEx = "curHurtValueEx" # 计算中的临时伤害值,技能特殊用
|
| | | Def_PlayerKey_SomersaultTime = "Somersault" # 翻滚一定时间内无敌,表现为MISS
|
| | |
| | | Def_PDict_NPCAttackCount = "NPCAttackCount_%s" # NPC已攻击次数, 参数(NPCID)
|
| | |
|
| | | Def_PDict_ItemUseCntToday = "ItemUseCntToday_%s" # 物品今日使用次数, 参数为物品ID
|
| | |
|
| | | Def_PDict_GodWeaponLV = "GodWeaponLV_%s" # 神器等级, 参数神器索引
|
| | | Def_PDict_GodWeaponExp = "GodWeaponExp_%s" # 神器等级对应祝福值经验, 参数神器索引
|
| | | Def_PDict_GodWeaponState = "GodWeaponState" # 神器是否已经激活, 按索引位存储神器是否激活
|
| | |
|
| | | Def_PDict_ClothesSkinLV = "ClothesSkinLV_%s" # 时装皮肤等级,参数时装索引
|
| | | Def_PDict_ClothesChestLV = "ClothesChestLV" # 时装柜等级
|
| | |
| | | Def_CalcAttrFunc_Pet, # 灵宠 9
|
| | | Def_CalcAttrFunc_Horse, # 坐骑 10
|
| | | Def_CalcAttrFunc_Prestige, # 境界 11
|
| | | Def_CalcAttrFunc_GodWeapon, # 神兵 12
|
| | | Def_CalcAttrFunc_12, # 神兵 12
|
| | | Def_CalcAttrFunc_Dienstgrad, # 称号 13
|
| | | Def_CalcAttrFunc_Rune, # 符印 14
|
| | | Def_CalcAttrFunc_15,
|
| | |
| | | Def_Cost_ResetGreatMasterSkill, # 重置天赋技能 35
|
| | | Def_Cost_BindJadeWheel, # 绑玉转盘
|
| | | Def_Cost_WishingWell, # 许愿池刷新
|
| | | Def_Cost_GodWeapon, # 神兵
|
| | | Def_Cost_38, # 神兵
|
| | | Def_Cost_FBHelpBattle, # 副本助战
|
| | | Def_Cost_FBGatherSoulBoss, # 聚魂副本BOSS召唤 40
|
| | | Def_Cost_CrossRealmPK, # 跨服PK
|
| | |
| | | Def_Cost_AlchemyPray:"AlchemyPray",
|
| | | Def_Cost_BindJadeWheel:"BindJadeWheel",
|
| | | Def_Cost_WishingWell:"WishingWell",
|
| | | Def_Cost_GodWeapon:"GodWeapon",
|
| | | Def_Cost_FBHelpBattle:"FBHelpBattle",
|
| | | Def_Cost_FBGatherSoulBoss:"FBGatherSoulBoss",
|
| | | Def_Cost_CrossRealmPK:"CrossRealmPK",
|
| | |
| | | ItemDelTypeList = (
|
| | | ItemDel_Unknown, #δ֪ 0
|
| | | ItemDel_SellPackItem, # 出售物品
|
| | | ItemDel_GodWeapon, # 神兵
|
| | | ItemDel_2, # 神兵
|
| | | ItemDel_EquipEnchase, # 宝石镶嵌
|
| | | ItemDel_Add_LimitingBuff, # 增加buff时间
|
| | | ItemDel_AddDienstgrad, # 增加称号 5
|
| | |
| | | ItemDelTypeDict = {
|
| | | ItemDel_Unknown:"Unknown",
|
| | | ItemDel_SellPackItem:"SellPackItem",
|
| | | ItemDel_GodWeapon:"GodWeapon",
|
| | | ItemDel_EquipEnchase:"EquipEnchase",
|
| | | ItemDel_Add_LimitingBuff:"Add_LimitingBuff",
|
| | | ItemDel_AddDienstgrad:"AddDienstgrad",
|
| | |
| | | Def_WPAct_Pet, #激活某只灵宠 22
|
| | | Def_WPAct_Dogz, #出战某只神兽 23
|
| | | Def_WPAct_Stone, #宝石总等级 24
|
| | | Def_WPAct_GodWeapon, #神兵总等级 25
|
| | | Def_WPAct_25, #神兵总等级 25
|
| | | Def_WPAct_Rune, #穿戴某品质符印 26
|
| | | Def_WPAct_Pray, #祈愿 27
|
| | | Def_WPAct_FamilyBoss, #仙盟Boss 28
|
| | |
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # A5 56 神兵激活 #tagCMGodWeaponActivate
|
| | |
|
| | | class tagCMGodWeaponActivate(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ("WeaponType", c_int), # 神兵类型
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Cmd = 0xA5
|
| | | self.SubCmd = 0x56
|
| | | return
|
| | |
|
| | | def ReadData(self, stringData, _pos=0, _len=0):
|
| | | self.Clear()
|
| | | memmove(addressof(self), stringData[_pos:], self.GetLength())
|
| | | return _pos + self.GetLength()
|
| | |
|
| | | def Clear(self):
|
| | | self.Cmd = 0xA5
|
| | | self.SubCmd = 0x56
|
| | | self.WeaponType = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagCMGodWeaponActivate)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// A5 56 神兵激活 //tagCMGodWeaponActivate:
|
| | | Cmd:%s,
|
| | | SubCmd:%s,
|
| | | WeaponType:%d
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd,
|
| | | self.WeaponType
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagCMGodWeaponActivate=tagCMGodWeaponActivate()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMGodWeaponActivate.Cmd,m_NAtagCMGodWeaponActivate.SubCmd))] = m_NAtagCMGodWeaponActivate
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # A5 55 神兵升级 #tagCMGodWeaponPlus
|
| | |
|
| | | class tagCMGodWeaponPlus(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ("WeaponType", c_int), # 神兵类型
|
| | | ("ItemID", c_int), #消耗的物品ID
|
| | | ("ItemCount", c_ubyte), #消耗个数,默认1
|
| | | ("IsAutoBuy", c_ubyte), #是否自动购买,默认0
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Cmd = 0xA5
|
| | | self.SubCmd = 0x55
|
| | | return
|
| | |
|
| | | def ReadData(self, stringData, _pos=0, _len=0):
|
| | | self.Clear()
|
| | | memmove(addressof(self), stringData[_pos:], self.GetLength())
|
| | | return _pos + self.GetLength()
|
| | |
|
| | | def Clear(self):
|
| | | self.Cmd = 0xA5
|
| | | self.SubCmd = 0x55
|
| | | self.WeaponType = 0
|
| | | self.ItemID = 0
|
| | | self.ItemCount = 0
|
| | | self.IsAutoBuy = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagCMGodWeaponPlus)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// A5 55 神兵升级 //tagCMGodWeaponPlus:
|
| | | Cmd:%s,
|
| | | SubCmd:%s,
|
| | | WeaponType:%d,
|
| | | ItemID:%d,
|
| | | ItemCount:%d,
|
| | | IsAutoBuy:%d
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd,
|
| | | self.WeaponType,
|
| | | self.ItemID,
|
| | | self.ItemCount,
|
| | | self.IsAutoBuy
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagCMGodWeaponPlus=tagCMGodWeaponPlus()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMGodWeaponPlus.Cmd,m_NAtagCMGodWeaponPlus.SubCmd))] = m_NAtagCMGodWeaponPlus
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # A5 40 投资理财 #tagCMGoldInvest
|
| | |
|
| | | class tagCMGoldInvest(Structure):
|
| | |
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # A3 1D 神兵等级信息 #tagMCGodWeaponLVList
|
| | |
|
| | | class tagMCGodWeaponLVInfo(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("WeaponType", c_ubyte), #神兵类型
|
| | | ("WeaponLV", c_ushort), #神兵等级
|
| | | ("WeaponExp", c_int), #当前神兵经验
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | return
|
| | |
|
| | | def ReadData(self, stringData, _pos=0, _len=0):
|
| | | self.Clear()
|
| | | memmove(addressof(self), stringData[_pos:], self.GetLength())
|
| | | return _pos + self.GetLength()
|
| | |
|
| | | def Clear(self):
|
| | | self.WeaponType = 0
|
| | | self.WeaponLV = 0
|
| | | self.WeaponExp = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagMCGodWeaponLVInfo)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// A3 1D 神兵等级信息 //tagMCGodWeaponLVList:
|
| | | WeaponType:%d,
|
| | | WeaponLV:%d,
|
| | | WeaponExp:%d
|
| | | '''\
|
| | | %(
|
| | | self.WeaponType,
|
| | | self.WeaponLV,
|
| | | self.WeaponExp
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | class tagMCGodWeaponLVList(Structure):
|
| | | Head = tagHead()
|
| | | WeaponNum = 0 #(BYTE WeaponNum)//神器个数
|
| | | WeaponInfoList = list() #(vector<tagMCGodWeaponLVInfo> WeaponInfoList)// 副本数据列表
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Head.Cmd = 0xA3
|
| | | self.Head.SubCmd = 0x1D
|
| | | return
|
| | |
|
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | _pos = self.Head.ReadData(_lpData, _pos)
|
| | | self.WeaponNum,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | for i in range(self.WeaponNum):
|
| | | temWeaponInfoList = tagMCGodWeaponLVInfo()
|
| | | _pos = temWeaponInfoList.ReadData(_lpData, _pos)
|
| | | self.WeaponInfoList.append(temWeaponInfoList)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | | self.Head = tagHead()
|
| | | self.Head.Clear()
|
| | | self.Head.Cmd = 0xA3
|
| | | self.Head.SubCmd = 0x1D
|
| | | self.WeaponNum = 0
|
| | | self.WeaponInfoList = list()
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | length = 0
|
| | | length += self.Head.GetLength()
|
| | | length += 1
|
| | | for i in range(self.WeaponNum):
|
| | | length += self.WeaponInfoList[i].GetLength()
|
| | |
|
| | | return length
|
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
|
| | | data = CommFunc.WriteBYTE(data, self.WeaponNum)
|
| | | for i in range(self.WeaponNum):
|
| | | data = CommFunc.WriteString(data, self.WeaponInfoList[i].GetLength(), self.WeaponInfoList[i].GetBuffer())
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | Head:%s,
|
| | | WeaponNum:%d,
|
| | | WeaponInfoList:%s
|
| | | '''\
|
| | | %(
|
| | | self.Head.OutputString(),
|
| | | self.WeaponNum,
|
| | | "..."
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagMCGodWeaponLVList=tagMCGodWeaponLVList()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCGodWeaponLVList.Head.Cmd,m_NAtagMCGodWeaponLVList.Head.SubCmd))] = m_NAtagMCGodWeaponLVList
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # A3 37 投资理财信息 #tagMCGoldInvestInfo
|
| | |
|
| | | class tagMCInvestReward(Structure):
|
| | |
| | | #===========================================================================
|
| | | return
|
| | |
|
| | | class god_weapon_lv(ScribeEvent):
|
| | | # 神兵升级记录
|
| | | def __init__(self):
|
| | | #必须字段
|
| | | super(god_weapon_lv, self).__init__()
|
| | | self.account_id = "" # 账号 ID,平台下唯一,且终生不变
|
| | | self.chr_name = "" # 玩家角色名
|
| | | |
| | | self.god_weapon_name = "" # 神兵名称
|
| | | self.bef_lv = 0 # 此次操作前的等级, 0代表0级, 1代表+1级
|
| | | self.bef_exp = 0 # 此次操作前的经验值
|
| | | self.cost_item_cnt = 0 # 此次消耗的道具数量
|
| | | self.aft_lv = 0 # 此次操作后的等级, 0代表0级, 1代表+1级
|
| | | self.aft_exp = 0 # 此次进阶操作后的经验值
|
| | | |
| | | #非必须字段
|
| | |
|
| | | #即时是非必须字段也应该传送,各字段用,分隔,并且用双引号包含,参考格式'"1","","","12314"'
|
| | | return
|
| | | |
| | | def GetCurEventStr(self):
|
| | | if not self.time:
|
| | | self.time = GameWorld.GetCurrentDataTimeStr()
|
| | | tmpList = [self.product_slug, self.agent_name, self.gameserver_no, self.account_id, self.chr_name, |
| | | self.god_weapon_name, str(self.bef_lv), str(self.bef_exp), str(self.cost_item_cnt),
|
| | | str(self.aft_lv), str(self.aft_exp), self.time]
|
| | | |
| | | return super(god_weapon_lv, self).GetEventStr(tmpList)
|
| | | |
| | | def GetScribeEventName(self): return ShareDefine.Def_UserAction_GodWeaponLV
|
| | | |
| | | def WriteEvent_god_weapon_lv(curPlayer, godWeaponName, befLV, befExp, costCnt, aftLV, aftExp):
|
| | | ## 写神兵升级记录
|
| | | #===========================================================================
|
| | | # godWeaponLV = god_weapon_lv()
|
| | | # godWeaponLV.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
|
| | | # godWeaponLV.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
|
| | | # godWeaponLV.chr_name = curPlayer.GetPlayerName()
|
| | | # godWeaponLV.god_weapon_name = godWeaponName
|
| | | # godWeaponLV.bef_lv = befLV
|
| | | # godWeaponLV.bef_exp = befExp
|
| | | # godWeaponLV.cost_item_cnt = costCnt
|
| | | # godWeaponLV.aft_lv = aftLV
|
| | | # godWeaponLV.aft_exp = aftExp
|
| | | # WriteEvent(godWeaponLV)
|
| | | #===========================================================================
|
| | | return
|
| | |
|
| | | class rune_lv(ScribeEvent):
|
| | | # 符印升级记录
|
| | | def __init__(self):
|
| | |
| | | ("DWORD", "ActivateSkillID", 0),
|
| | | ),
|
| | |
|
| | | "GodWeapon":(
|
| | | ("WORD", "Type", 1),
|
| | | ("WORD", "LV", 1),
|
| | | ("DWORD", "Exp", 0),
|
| | | ("list", "AttrType", 0),
|
| | | ("list", "AttrNum", 0),
|
| | | ("DWORD", "SkillID", 0),
|
| | | ("char", "SysMark", 0),
|
| | | ),
|
| | |
|
| | | "FuncConfig":(
|
| | | ("char", "Key", 1),
|
| | | ("char", "Numerical1", 0),
|
| | |
| | | def GetEatPerCount(self): return self.attrTuple[8] # 每次培养消耗x个 WORD
|
| | | def GetLVUpCostItemInfo(self): return self.attrTuple[9] # 突破等级道具ID|个数 list
|
| | | def GetActivateSkillID(self): return self.attrTuple[10] # 激活技能ID DWORD |
| | | |
| | | # 神兵表 |
| | | class IPY_GodWeapon(): |
| | | |
| | | def __init__(self): |
| | | self.attrTuple = None |
| | | return |
| | | |
| | | def GetType(self): return self.attrTuple[0] # 神兵类型 WORD
|
| | | def GetLV(self): return self.attrTuple[1] # 等级 WORD
|
| | | def GetExp(self): return self.attrTuple[2] # DWORD
|
| | | def GetAttrType(self): return self.attrTuple[3] # 属性类型 list
|
| | | def GetAttrNum(self): return self.attrTuple[4] # 属性值 list
|
| | | def GetSkillID(self): return self.attrTuple[5] # 激活技能ID DWORD
|
| | | def GetSysMark(self): return self.attrTuple[6] # 系统提示 char |
| | | |
| | | # 功能配置表格 |
| | | class IPY_FuncConfig(): |
| | |
| | | self.__LoadFileData("Realm", onlyCheck)
|
| | | self.__LoadFileData("RealmLVUPTask", onlyCheck)
|
| | | self.__LoadFileData("LianTi", onlyCheck)
|
| | | self.__LoadFileData("GodWeapon", onlyCheck)
|
| | | self.__LoadFileData("FuncConfig", onlyCheck)
|
| | | self.__LoadFileData("FuncOpenLV", onlyCheck)
|
| | | self.__LoadFileData("ItemCompound", onlyCheck)
|
| | |
| | | def GetLianTiByIndex(self, index): |
| | | self.CheckLoadData("LianTi") |
| | | return self.ipyLianTiCache[index]
|
| | | |
| | | def GetGodWeaponCount(self): |
| | | self.CheckLoadData("GodWeapon") |
| | | return self.ipyGodWeaponLen
|
| | | def GetGodWeaponByIndex(self, index): |
| | | self.CheckLoadData("GodWeapon") |
| | | return self.ipyGodWeaponCache[index]
|
| | | |
| | | def GetFuncConfigCount(self): |
| | | self.CheckLoadData("FuncConfig") |
| | |
| | | import PlayerPrestigeSys
|
| | | import PlayerFamily
|
| | | import PlayerLoginDayAward
|
| | | import PlayerGodWeapon
|
| | | import PlayerGoldInvest
|
| | | import PlayerActivity
|
| | | import FBCommon
|
| | |
| | | PlayerControl.SyncOnLineTimeTotal(curPlayer)
|
| | | #PlayerControl.SyncOnLineTimeLastOpenPack(curPlayer, IPY_GameWorld.rptItem)
|
| | | PlayerControl.SyncTrainRealmLV(curPlayer)
|
| | | PlayerGodWeapon.OnLogin(curPlayer)
|
| | | PlayerPrestigeSys.OnLogin(curPlayer)
|
| | | #DataRecordPack.DR_PlayerLogin(curPlayer)
|
| | | EventReport.WriteEvent_login(curPlayer)
|
| | |
| | | import ItemControler
|
| | | import ChPyNetSendPack
|
| | | import DataRecordPack
|
| | | import PlayerGodWeapon
|
| | | import NetPackCommon
|
| | | import ShareDefine
|
| | | import PyGameData
|
| | |
| | | AddFeastWeekPartyActionCnt(curPlayer, ChConfig.Def_WPAct_Rune, itemColor, False, isSync=isSync)
|
| | |
|
| | | AddFeastWeekPartyActionCnt(curPlayer, ChConfig.Def_WPAct_Login, 1, False, False, isSync)
|
| | | AddFeastWeekPartyActionCnt(curPlayer, ChConfig.Def_WPAct_GodWeapon, PlayerGodWeapon.GetGodWeaponTotalLV(curPlayer), False, True, isSync)
|
| | | return
|
| | |
|
| | | def GetFeastWeekPartyActionAward(curPlayer, day, templateID):
|
| | |
| | | import ChPyNetSendPack
|
| | | import PlayerFeastWeekParty
|
| | | import DataRecordPack
|
| | | import PlayerGodWeapon
|
| | | import NetPackCommon
|
| | | import ShareDefine
|
| | | import PyGameData
|
| | |
| | | AddWeekPartyActionCnt(curPlayer, ChConfig.Def_WPAct_Rune, itemColor, False, isSync=isSync)
|
| | |
|
| | | AddWeekPartyActionCnt(curPlayer, ChConfig.Def_WPAct_Login, 1, False, False, isSync)
|
| | | AddWeekPartyActionCnt(curPlayer, ChConfig.Def_WPAct_GodWeapon, PlayerGodWeapon.GetGodWeaponTotalLV(curPlayer), False, True, isSync)
|
| | | return
|
| | |
|
| | | def GetWeekPartyActionAward(curPlayer, day, templateID):
|
| | |
| | | CDBPlayerRefresh_FinalDamPer, # 最终输出伤害百分比
|
| | | CDBPlayerRefresh_TalentPoint, # 天赋点数 190
|
| | | CDBPlayerRefresh_DamagePVPReduce, # PVP固定伤害减少
|
| | | CDBPlayerRefresh_GodWeaponLV_1, # 神兵等级 - 类型1 192
|
| | | CDBPlayerRefresh_GodWeaponLV_2, # 神兵等级 - 类型2 193
|
| | | CDBPlayerRefresh_GodWeaponLV_3, # 神兵等级 - 类型3 194
|
| | | CDBPlayerRefresh_GodWeaponLV_4, # 神兵等级 - 类型4 195
|
| | | CDBPlayerRefresh_192, # 神兵等级 - 类型1 192
|
| | | CDBPlayerRefresh_193, # 神兵等级 - 类型2 193
|
| | | CDBPlayerRefresh_194, # 神兵等级 - 类型3 194
|
| | | CDBPlayerRefresh_195, # 神兵等级 - 类型4 195
|
| | | CDBPlayerRefresh_SoulDust, # 魂尘 196
|
| | | CDBPlayerRefresh_SoulSplinters, # 聚魂碎片 197
|
| | | CDBPlayerRefresh_SoulCore, # 核心环 198
|
| | |
| | | GameFuncID_Wing = -1 # 翅膀 3
|
| | | GameFuncID_Pet = -1 # 宠物,灵宠 6
|
| | | GameFuncID_Horse = -1 # 坐骑 8
|
| | | GameFuncID_GodWeapon = -1 # 神器 20
|
| | | GameFuncID_OSSail = -1 # 开服特惠 132
|
| | | GameFuncID_AddPoint = -1 # 加点功能/灵根功能 145
|
| | |
|
| | |
| | | Def_FamActivityList = (
|
| | | Def_FamActivity_War, # 战盟争霸
|
| | | ) = range(1)
|
| | |
|
| | | # 开服活动类型标识, 不可超过32
|
| | | Def_Campaign_Type_List = (
|
| | | Def_Campaign_Type_Plus, # 强化战力排行 1
|
| | | Def_Campaign_Type_Horse, # 坐骑战力排行 2
|
| | | Def_Campaign_Type_StoneLV, # 宝石等级排行 3
|
| | | Def_Campaign_Type_LV, # 冲级等级排行 4
|
| | | Def_Campaign_Type_RealmLV, # 境界等级排行 5
|
| | | Def_Campaign_Type_FightPower, # 总战斗力排行 6
|
| | | Def_Campaign_Type_RuneLV, # 符印等级排行 7
|
| | | Def_Campaign_Type_GodWeaponLV, # 神兵等级排行 8
|
| | | Def_Campaign_Type_Recharge, # 累计充值排行 9
|
| | | Def_Campaign_Type_PetLV, # 灵宠等级排行 10
|
| | | Def_Campaign_Type_LingGen, # 灵根点数排行 11
|
| | | Def_Campaign_Type_StarLV, # 升星等级排行 12
|
| | | Def_Campaign_Type_Wash, # 洗练战力排行 13
|
| | | ) = range(1, 1 + 13)
|
| | |
|
| | | # 活动类型对应的奖励排行榜{活动类型:排行榜, ...}
|
| | | Def_Campaign_Billboard_Dict = {
|
| | | }
|
| | |
|
| | | #队伍最大人数
|
| | | Def_Team_MaxPlayerCount = 4
|
| | |
| | | Def_MFPType_Pet, # 灵宠 7
|
| | | Def_MFPType_Horse, # 坐骑 8
|
| | | Def_MFPType_Prestige, # 境界 9
|
| | | Def_MFPType_GodWeapon, # 神兵 10
|
| | | Def_MFPType_10, # 神兵 10
|
| | | Def_MFPType_Dienstgrad, #称号 11
|
| | | Def_MFPType_Rune, # 符印 12
|
| | | Def_MFPType_Star, # 升星 13
|
| | |
| | | Def_UserAction_EquipItem = "DwzCw4q8cWTB_ex-equip-item" # 玩家装备统计
|
| | | Def_UserAction_ItemRecord = 1404 # 物品流水记录
|
| | | Def_UserAction_CoinToGold = "DwzCw4q8cWTB_ex-coin-to-gold" # 兑换点券
|
| | | Def_UserAction_GodWeaponLV = "DwzCw4q8cWTB_ex-god-weapon-lv" # 神兵升级记录
|
| | | Def_UserAction_RuneLV = "DwzCw4q8cWTB_ex-wing-soul-lv" # 符印升级记录
|
| | | Def_UserAction_ChangeName = "DwzCw4q8cWTB_ex-change-name" # 改名记录
|
| | | Def_UserAction_AddZhenqi = "DwzCw4q8cWTB_ex-add-zhenqi" # 增加真气记录
|