| | |
| | |
|
| | | Def_Notify_WorldKey_AssistBoss = "AssistBoss" # 协助boss
|
| | |
|
| | | #活动类型定义
|
| | | ActTypeList = (
|
| | | ActType_OpenComm, # 开服及常规运营活动 1
|
| | | ActType_MixServer, # 合服活动 2
|
| | | ActType_Feast, # 节日活动 3
|
| | | ) = range(1, 1 + 3)
|
| | |
|
| | | #运营活动表名定义
|
| | | OperationActionName_ExpRate = "ActExpRate" # 多倍经验活动
|
| | | OperationActionName_CostRebate = "ActCostRebate" # 消费返利活动
|
| | |
| | | OperationActionName_FlashSale = "ActFlashSale" # 限时抢购活动
|
| | | OperationActionName_WishingWell = "ActWishingWell" # 许愿池活动
|
| | | OperationActionName_TotalRecharge = "ActTotalRecharge" # 累计充值活动
|
| | | OperationActionName_TotalRecharge2 = "ActTotalRecharge2" # 累计充值活动
|
| | | OperationActionName_WeekParty = "ActWeekParty" # 周狂欢活动
|
| | | OperationActionName_LoginAward = "ActLoginAward" # 登录奖励活动
|
| | | OperationActionName_FeastWeekParty = "ActFeastWeekParty" # 节日巡礼狂欢活动
|
| | | OperationActionName_FeastRedPacket = "ActFeastRedPacket" # 节日红包活动
|
| | | OperationActionName_CollectWords = "ActCollectWords" # 集字活动
|
| | | OperationActionName_CollectWords2 = "ActCollectWords2" # 集字活动2
|
| | | OperationActionName_LuckyTreasure = "ActLuckyTreasure" # 幸运鉴宝活动
|
| | | OperationActionName_RechargePrize = "ActRechargePrize" # 充值返利活动
|
| | | OperationActionName_RechargePrize = "ActRechargePrize" # 充值返利活动(节日活动)
|
| | | OperationActionName_RechargeRebateGold = "ActRechargeRebateGold" # 充值返利仙玉活动(活动结束邮件发放,节日活动)
|
| | | OperationActionName_GrowupBuy = "ActGrowupBuy" # 成长必买活动
|
| | | OperationActionName_FeastLogin = "ActFeastLogin" # 节日登录活动
|
| | | OperationActionName_FeastWish = "ActFeastWish" # 节日祝福活动
|
| | | OperationActionName_FeastTravel = "ActFeastTravel" # 节日游历活动
|
| | | OperationActionName_ManyDayRecharge = "ActManyDayRecharge" # 多日连充活动
|
| | | OperationActionName_SingleRecharge = "ActSingleRecharge" # 单笔累充活动
|
| | | OperationActionName_Turntable = "ActTurntable" # 转盘活动
|
| | | OperationActionName_HorsePetFeast = "ActHorsePetFeast" # 骑宠盛宴活动
|
| | | OperationActionName_GarbageSorting = "ActGarbageSorting" # 垃圾分类活动
|
| | | OperationActionName_XianXiaMJ = "ActXianXiaMJ" # 仙匣秘境活动
|
| | | #节日活动类型列表 - 该类型无视开服天,日期到了就开启
|
| | | FeastOperationActionNameList = [OperationActionName_FeastWeekParty, OperationActionName_FeastRedPacket,
|
| | | OperationActionName_RechargeRebateGold, OperationActionName_GrowupBuy]
|
| | | OperationActionName_RechargeRebateGold, OperationActionName_GrowupBuy,
|
| | | OperationActionName_FeastLogin,
|
| | | OperationActionName_FeastWish, OperationActionName_FeastTravel,
|
| | | OperationActionName_RechargePrize,
|
| | | ]
|
| | | #所有的运营活动列表,含节日活动
|
| | | OperationActionNameList = [OperationActionName_ExpRate, OperationActionName_CostRebate,
|
| | | OperationActionName_BossReborn,OperationActionName_SpringSale,
|
| | | OperationActionName_FlashGiftbag, OperationActionName_FairyCeremony,
|
| | | OperationActionName_RealmPoint, OperationActionName_FlashSale,
|
| | | OperationActionName_WishingWell, OperationActionName_TotalRecharge, OperationActionName_TotalRecharge2,
|
| | | OperationActionName_WishingWell, OperationActionName_TotalRecharge,
|
| | | OperationActionName_WeekParty, OperationActionName_LoginAward,
|
| | | OperationActionName_NewFairyCeremony, OperationActionName_LuckyTreasure,
|
| | | OperationActionName_DailyGiftbag, OperationActionName_RechargePrize, |
| | | OperationActionName_CollectWords, OperationActionName_CollectWords2] \
|
| | | + FeastOperationActionNameList
|
| | | OperationActionName_DailyGiftbag, OperationActionName_SingleRecharge,
|
| | | OperationActionName_CollectWords, OperationActionName_ManyDayRecharge,
|
| | | OperationActionName_Turntable, OperationActionName_HorsePetFeast, OperationActionName_GarbageSorting,
|
| | | OperationActionName_XianXiaMJ,
|
| | | ] + FeastOperationActionNameList
|
| | | #需要记录开启活动时的世界等级的运营活动
|
| | | NeedWorldLVOperationActNameList = [OperationActionName_FairyCeremony, OperationActionName_WishingWell,
|
| | | OperationActionName_NewFairyCeremony, OperationActionName_FlashSale,
|
| | | OperationActionName_BossReborn, OperationActionName_TotalRecharge, OperationActionName_TotalRecharge2,
|
| | | OperationActionName_BossReborn, OperationActionName_TotalRecharge,
|
| | | OperationActionName_CostRebate, OperationActionName_FlashGiftbag,
|
| | | OperationActionName_SpringSale, OperationActionName_LuckyTreasure,
|
| | | OperationActionName_DailyGiftbag, OperationActionName_GrowupBuy,
|
| | | OperationActionName_WeekParty,
|
| | | OperationActionName_CollectWords, OperationActionName_CollectWords2,
|
| | | OperationActionName_WeekParty, OperationActionName_Turntable,
|
| | | OperationActionName_CollectWords, OperationActionName_GarbageSorting,
|
| | | OperationActionName_FeastLogin, OperationActionName_XianXiaMJ,
|
| | | OperationActionName_FeastWish, OperationActionName_FeastTravel,
|
| | | OperationActionName_ManyDayRecharge, OperationActionName_SingleRecharge,
|
| | | ]
|
| | |
|
| | | #支持多活动分组编号的活动名
|
| | | MultiActNumOperationActNameList = [OperationActionName_TotalRecharge, OperationActionName_CollectWords,
|
| | | OperationActionName_FlashGiftbag, OperationActionName_CostRebate,
|
| | | OperationActionName_SpringSale, OperationActionName_FlashSale,
|
| | | OperationActionName_ManyDayRecharge, OperationActionName_SingleRecharge,
|
| | | OperationActionName_Turntable, OperationActionName_HorsePetFeast, OperationActionName_GarbageSorting,
|
| | | OperationActionName_XianXiaMJ,
|
| | | ]
|
| | |
|
| | | #跨服运营活动表名定义
|
| | |
| | | ActKey_ID = "ID" # 活动ID,唯一标识的ID,一般是活动开启的time值
|
| | | ActKey_State = "State" # 活动状态 0-未开启, >0开启中,也代表当日的第几个时间段
|
| | | ActKey_CfgID = "CfgID" # 活动表配置ID
|
| | | ActKey_ActNum = "ActNum" # 活动分组编号
|
| | | ActKey_DayIndex = "DayIndex" # 当前活动天索引,0开始,代表第1天
|
| | | ActKey_TemplateID = "TemplateID" # 当前活动模板ID
|
| | | ActKey_WorldLV = "WorldLV" # 活动开启时世界等级
|
| | |
| | |
|
| | | Def_Effect_ReduceSkillCDPer = 149 # 减少技能CD, a值为万分率
|
| | |
|
| | | Def_Effect_ZhuXianRate = 150 # 诛仙一击: 概率直接减少BOSS当前10%血量
|
| | | Def_Effect_ZhuXianReducePer = 151 # 诛仙护体: 受到BOSS伤害减免 万分率
|
| | |
|
| | | Def_Effect_HorseMaxHPPer = 152 # 坐骑生命加成
|
| | | Def_Effect_PetAtkPer = 153 # 灵宠攻击加成
|
| | | Def_Effect_HorseTrainAttrPer = 154 # 坐骑培养属性加成(攻防血)
|
| | | Def_Effect_PetTrainAttrPer = 155 # 灵宠培养属性加成(攻防血)
|
| | | Def_Effect_GuardTrainAttrPer = 156 # 守护培养属性加成(攻防血)
|
| | | Def_Effect_WingTrainAttrPer = 157 # 翅膀培养属性加成(攻防血)
|
| | | Def_Effect_PeerlessWeaponTrainAttrPer = 158 # 灭世培养属性加成(攻防血)
|
| | | Def_Effect_PeerlessWeapon2TrainAttrPer = 159 # 弑神培养属性加成(攻防血)
|
| | |
|
| | | #增加%d物理伤害值,其中a值为伤害值
|
| | | Def_Effect_AddAtk = 1005
|
| | | #增加%d魔法伤害值,其中a值为伤害值
|
| | |
| | |
|
| | | Def_BT_SkyTower, #天星塔榜
|
| | | Def_BT_Arena, #竞技场榜
|
| | | Def_BT_Environment, #环保榜 (垃圾分类活动)
|
| | |
|
| | | Def_BT_Max, #排行榜最大类型
|
| | | ) = range(0, 28 + 2) |
| | | ) = range(0, 29 + 2) |
| | |
|
| | | ''' 跨服排行榜类型, 从 150 开始
|
| | | 与本服榜单存储的是不一样的数据库表格,理论上类型可以和本服榜单类型重复,为了做下区分防误导,跨服榜单从 150 开始
|
| | |
| | | CDBPlayerRefresh_SkillReducePer6, # 受到技能伤害减少6
|
| | | CDBPlayerRefresh_SkillReducePer7, # 受到技能伤害减少7
|
| | | CDBPlayerRefresh_ExAttr17, # ExAttr17
|
| | | ) = range(146, 230)
|
| | | CDBPlayerRefresh_BossActScore, # boss 活动积分 230
|
| | | CDBPlayerRefresh_FuncSysPrivilege, # 功能特权令 231
|
| | | CDBPlayerRefresh_Environment, # 环保值 232
|
| | | CDBPlayerRefresh_MoneyMinusGold, # 仙玉 - 负值 233
|
| | | CDBPlayerRefresh_MoneyMinusGoldPaper, # 绑玉 - 负值 234
|
| | | ) = range(146, 235)
|
| | |
|
| | | TYPE_Price_Gold_Paper_Money = 5 # 金钱类型,(先用礼券,再用金子)
|
| | | TYPE_Price_Family_Contribution = 6 # 战盟贡献度(活跃度转换得来)
|
| | |
| | | TYPE_Price_FamilyActivity = 15 # 仙盟活跃令
|
| | | TYPE_Price_FBHelpPoint = 16 # 副本助战积分, 废弃
|
| | | TYPE_Price_Honor = 18 # 荣誉
|
| | | TYPE_Price_BossActScore = 19 # boss活动积分,bt版用
|
| | | TYPE_Price_Rune = 23 # 符印精华点
|
| | | TYPE_Price_RuneSplinters = 24 # 符印碎片
|
| | | TYPE_Price_TreasureScore = 25 # 寻宝积分
|
| | |
| | | TYPE_Price_SoulDust = 28 # 魂尘
|
| | | TYPE_Price_SoulSplinters = 29 # 聚魂碎片
|
| | | TYPE_Price_SoulCore = 30 # 核心环
|
| | |
|
| | | TYPE_Price_FuncSysPrivilege = 31 # 功能系统特权令
|
| | | TYPE_Price_Environment = 32 # 环保值
|
| | |
|
| | | #以下是旧的金钱类型
|
| | | TYPE_Price_Magic_Integral = 101 # 魔方寻宝积分
|
| | |
| | | TYPE_Price_SoulSplinters:CDBPlayerRefresh_SoulSplinters,
|
| | | TYPE_Price_SoulCore:CDBPlayerRefresh_SoulCore,
|
| | | TYPE_Price_Honor:CDBPlayerRefresh_Honor,
|
| | | TYPE_Price_BossActScore:CDBPlayerRefresh_BossActScore,
|
| | | TYPE_Price_FuncSysPrivilege:CDBPlayerRefresh_FuncSysPrivilege,
|
| | | TYPE_Price_Environment:CDBPlayerRefresh_Environment,
|
| | | }
|
| | |
|
| | | # 支持负值的货币及对应0418刷新类型
|
| | | MoneyMinusRefreshDict = {
|
| | | 1:CDBPlayerRefresh_MoneyMinusGold,
|
| | | 2:CDBPlayerRefresh_MoneyMinusGoldPaper,
|
| | | }
|
| | |
|
| | | # 高效战斗状态
|
| | | Def_Battle_Status = (
|
| | |
| | | GameFuncID_TJG = 147 # 脱机挂
|
| | | GameFuncID_SuperGift = 150 # 超值礼包
|
| | | GameFuncID_ZhuXianBoss = 163 # 诛仙BOSS
|
| | | GameFuncID_Arena = 189 # 竞技场
|
| | | GameFuncID_Arena = 195 # 竞技场
|
| | | GameFuncID_FaQi = 199 # 法器
|
| | | # 以下为暂时无用的
|
| | | GameFuncID_Truck = 33 # 运镖
|
| | | GameFuncID_RunDaily = 34 # 日常跑环
|
| | |
| | | rptPet, # 宠物背包(用物品存储宠物的数据) 31
|
| | | rptDogzItem, # 神兽物品背包 32
|
| | | rptDogzEquip, # 神兽装备背包 33
|
| | | rptGarbage, # 垃圾分类背包 34
|
| | | rptMax, # 最大背包类型数量,放在最后一个
|
| | | ) = range(28, 28 + 7) #C++定义的枚举到27
|
| | | ) = range(28, 28 + 8) #C++定义的枚举到27
|
| | |
|
| | | #虚拟背包类型, 从255递减
|
| | | Def_VPack_TypeList = (
|
| | |
| | | Def_UniversalGameRecType_Reward, # 通用奖励表(TopBar)14
|
| | | Def_UniversalGameRecType_ArenaBattleRecord, # 竞技场玩家挑战记录 15
|
| | | Def_UniversalGameRecType_CrossActInfo, # 跨服运营活动信息记录 16
|
| | | Def_UniversalGameRecType_17,
|
| | | Def_UniversalGameRecType_18,
|
| | | Def_UniversalGameRecType_FeastWish, #节日祝福大奖记录17
|
| | | Def_UniversalGameRecType_ActWorldLVLimitInfo, # 运营活动世界等级限制开启信息 18
|
| | | Def_UniversalGameRecType_19,
|
| | | Def_UniversalGameRecType_20,
|
| | | Def_UniversalGameRecType_21,
|
| | |
| | | ClientServerMsg_CollectNPC = "CollectNPC" # 采集NPC
|
| | | ClientServerMsg_EnterFB = "EnterFB" # 请求进入跨服副本
|
| | | ClientServerMsg_AddBuff = "AddBuff" # 添加BUFF
|
| | | ClientServerMsg_LuckyCloudBuy = "LuckyCloudBuy" # 幸运云购
|
| | |
|
| | | #跨服广播类型定义
|
| | | CrossNotify_CrossAct = "CrossAct"
|
| | |
| | | Def_MFPType_MagicWeapon3, # 仙族法宝 17
|
| | | Def_MFPType_PetSoul, # 灵宠魂石 18
|
| | | Def_MFPType_HorseSoul, # 坐骑魂石 19
|
| | | Def_MFPType_20,
|
| | | Def_MFPType_FaQi, # 法器 20
|
| | | Def_MFPType_Dogz, # 神兽 21
|
| | | Def_MFPType_GatherSoul, # 聚魂 22
|
| | | Def_MFPType_MagicWeapon4, # 王者法宝 23
|
| | |
| | | RedPackType_FeastSysBig = 31 # 节日系统大红包
|
| | | RedPackType_FeastSysSmall = 32 # 节日系统小红包
|
| | | RedPackType_FeastSucc = 33 # 节日成就红包
|
| | | RedPackType_Server = 36 # 全服红包
|
| | |
|
| | | # 节日红包类型
|
| | | FeastRedPackType = [RedPackType_FeastSysBig, RedPackType_FeastSysSmall, RedPackType_FeastSucc]
|
| | | # 需要限制服务器最大红包数的红包类型 {统计个数编号:[红包类型, ...], ...}
|
| | | RedPackMaxCountDict = {1:[RedPackType_OpenServer],
|
| | | 2:[RedPackType_FeastSucc],
|
| | | }
|
| | |
|