From bff02e0f7729e3137a86ab1e7e1fba860a9103b6 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 12 三月 2021 15:05:33 +0800 Subject: [PATCH] 8835 【BT2】【主干】【后端】Part3-2 5)新增多日连充 --- ServerPython/CoreServerGroup/GameServer/Script/ShareDefine.py | 90 ++++++++++++++++++++++++++++++++++++++------- 1 files changed, 76 insertions(+), 14 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/ShareDefine.py b/ServerPython/CoreServerGroup/GameServer/Script/ShareDefine.py index 29e074b..c2812e1 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/ShareDefine.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/ShareDefine.py @@ -146,6 +146,7 @@ Def_Notify_WorldKey_MapServerScriptReloadVersion = 'MapServerScriptReloadVersion' # MapServer 脚本重读版本标记 Def_Notify_WorldKey_InitGameWorldTime = "InitGameWorldTime" #启动服务器时间 Def_Notify_WorldKey_OperationActionInfo = "OperationActionInfo_%s" # 运营活动信息,参数为运营活动名 +Def_Notify_WorldKey_CrossActInfo = "CrossActInfo_%s" # 跨服运营活动信息,参数为运营活动名 Def_Notify_WorldKey_ActionBossRebornSign = "ActBossSign_%s" # 活动boss重生标记,参数为日常活动ID 或 运营活动名 Def_Notify_WorldKey_DailyActionState = "DailyActionState_%s" # 日常活动状态,参数为日常活动ID Def_Notify_WorldKey_CrossDailyActionState = "CrossDailyActionState_%s" # 跨服日常活动状态,参数为日常活动ID @@ -199,6 +200,13 @@ 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" # 消费返利活动 @@ -216,35 +224,70 @@ OperationActionName_LoginAward = "ActLoginAward" # 登录奖励活动 OperationActionName_FeastWeekParty = "ActFeastWeekParty" # 节日巡礼狂欢活动 OperationActionName_FeastRedPacket = "ActFeastRedPacket" # 节日红包活动 -OperationActionName_FeastCollectWords = "ActFeastCollectWords" # 节日集字活动 +OperationActionName_CollectWords = "ActCollectWords" # 集字活动 OperationActionName_LuckyTreasure = "ActLuckyTreasure" # 幸运鉴宝活动 -OperationActionName_RechargePrize = "ActRechargePrize" # 充值返利活动 +OperationActionName_RechargePrize = "ActRechargePrize" # 充值返利活动(节日活动) +OperationActionName_RechargeRebateGold = "ActRechargeRebateGold" # 充值返利仙玉活动(活动结束邮件发放,节日活动) +OperationActionName_GrowupBuy = "ActGrowupBuy" # 成长必买活动 +OperationActionName_FeastLogin = "ActFeastLogin" # 节日登录活动 +OperationActionName_FeastWish = "ActFeastWish" # 节日祝福活动 +OperationActionName_FeastTravel = "ActFeastTravel" # 节日游历活动 #节日活动类型列表 - 该类型无视开服天,日期到了就开启 -FeastOperationActionNameList = [OperationActionName_FeastWeekParty, OperationActionName_FeastRedPacket, OperationActionName_FeastCollectWords] +FeastOperationActionNameList = [OperationActionName_FeastWeekParty, OperationActionName_FeastRedPacket, + 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_WishingWell, OperationActionName_TotalRecharge, OperationActionName_WeekParty, OperationActionName_LoginAward, OperationActionName_NewFairyCeremony, OperationActionName_LuckyTreasure, - OperationActionName_DailyGiftbag, OperationActionName_RechargePrize] \ + OperationActionName_DailyGiftbag, + OperationActionName_CollectWords] \ + FeastOperationActionNameList #需要记录开启活动时的世界等级的运营活动 NeedWorldLVOperationActNameList = [OperationActionName_FairyCeremony, OperationActionName_WishingWell, OperationActionName_NewFairyCeremony, OperationActionName_FlashSale, OperationActionName_BossReborn, OperationActionName_TotalRecharge, OperationActionName_CostRebate, OperationActionName_FlashGiftbag, - OperationActionName_SpringSale, OperationActionName_LuckyTreasure] + OperationActionName_SpringSale, OperationActionName_LuckyTreasure, + OperationActionName_DailyGiftbag, OperationActionName_GrowupBuy, + OperationActionName_WeekParty, + OperationActionName_CollectWords, + OperationActionName_FeastLogin, + OperationActionName_FeastWish, OperationActionName_FeastTravel, + ] + +#支持多活动分组编号的活动名 +MultiActNumOperationActNameList = [OperationActionName_TotalRecharge, OperationActionName_CollectWords, + OperationActionName_FlashGiftbag, OperationActionName_CostRebate, + OperationActionName_SpringSale, OperationActionName_FlashSale, + ] + +#跨服运营活动表名定义 +CrossActName_CTGBillboard = "CrossActCTGBillboard" # 充值排行榜 + +#跨服运营活动列表 +CrossActNameList = [CrossActName_CTGBillboard] #活动信息字典key定义 ActKey_ID = "ID" # 活动ID,唯一标识的ID,一般是活动开启的time值 ActKey_State = "State" # 活动状态 0-未开启, >0开启中,也代表当日的第几个时间段 ActKey_CfgID = "CfgID" # 活动表配置ID -ActKey_DayIndex = "DayIndex" # 活动表配置ID +ActKey_ActNum = "ActNum" # 活动分组编号 +ActKey_DayIndex = "DayIndex" # 当前活动天索引,0开始,代表第1天 +ActKey_TemplateID = "TemplateID" # 当前活动模板ID ActKey_WorldLV = "WorldLV" # 活动开启时世界等级 ActKey_WorldLVList = "WorldLVList" # 活动每天的世界等级列表 + +ActKey_ServerIDRangeList = "ServerIDRangeList" # 活动服务器ID范围信息 +ActKey_IpyDataInfo = "IpyDataInfo" # 活动对应 IpyData 信息 +ActKey_DBInfo = "DBInfo" # 保存db的历史活动信息 #答题类型枚举 Def_Game_ExamTypeList = range(1, 4 + 1) @@ -658,10 +701,20 @@ Def_BT_Campaign_Wash, #洗练战力(开服活动榜) Def_BT_SkyTower, #天星塔榜 + Def_BT_Arena, #竞技场榜 - Def_BT_Max, #排行榜最大类型 -) = range(0, 27 + 2) - + Def_BT_Max, #排行榜最大类型 +) = range(0, 28 + 2) + +''' 跨服排行榜类型, 从 150 开始 +与本服榜单存储的是不一样的数据库表格,理论上类型可以和本服榜单类型重复,为了做下区分防误导,跨服榜单从 150 开始 +跨服榜单表(tagDBCrossBillboard) +本服榜单表(tagDBBillboard) +''' +CrossBillboardTypeList = ( +Def_CBT_ActCTG, # 跨服运营活动 - 充值榜 150 +) = range(150, 150 + 1) + #职业对应战力排行榜类型 JobFightPowerBillboardDict = { PlayerJob_Warrior:Def_BT_FightPower_Warrior, @@ -969,6 +1022,7 @@ GameFuncID_TJG = 147 # 脱机挂 GameFuncID_SuperGift = 150 # 超值礼包 GameFuncID_ZhuXianBoss = 163 # 诛仙BOSS +GameFuncID_Arena = 189 # 竞技场 # 以下为暂时无用的 GameFuncID_Truck = 33 # 运镖 GameFuncID_RunDaily = 34 # 日常跑环 @@ -1057,9 +1111,9 @@ Def_UniversalGameRecType_LuckyTreasure, #幸运鉴宝大奖记录12 Def_UniversalGameRecType_FairyDomain, #缥缈仙域事件次数记录13 Def_UniversalGameRecType_Reward, # 通用奖励表(TopBar)14 - Def_UniversalGameRecType_15, - Def_UniversalGameRecType_16, - Def_UniversalGameRecType_17, + Def_UniversalGameRecType_ArenaBattleRecord, # 竞技场玩家挑战记录 15 + Def_UniversalGameRecType_CrossActInfo, # 跨服运营活动信息记录 16 + Def_UniversalGameRecType_FeastWish, #节日祝福大奖记录17 Def_UniversalGameRecType_18, Def_UniversalGameRecType_19, Def_UniversalGameRecType_20, @@ -1244,6 +1298,7 @@ CrossServerMsg_PKOverInfo = "PKOverInfo" # 跨服PK结果 CrossServerMsg_PKSeasonInfo = "PKSeasonInfo" # 跨服PK赛季信息 CrossServerMsg_PKSyncBillboard = "PKSyncBillboard" # 跨服PK同步排行榜 +CrossServerMsg_SyncBillboard = "SyncBillboard" # 跨服同步排行榜 CrossServerMsg_CrossBossInfo = "CrossBossInfo" # 跨服Boss信息 CrossServerMsg_CrossBossState = "CrossBossState" # 跨服Boss状态 CrossServerMsg_PutInItem = "PutInItem" # 获得物品 @@ -1255,8 +1310,11 @@ CrossServerMsg_EnterFBRet = "EnterFBRet" # 请求进入跨服副本返回信息 CrossServerMsg_FBEnd = "FBEnd" # 完成跨服副本 CrossServerMsg_NPCAttackCount = "NPCAttackCount" # 攻击NPC次数记录 -CrossServerMsg_SendMail = "SendMail" # 发送邮件 +CrossServerMsg_SendMail = "SendMail" # 发送邮件,已知玩家目标服务器,主动发送 CrossServerMsg_FBPlayerCount = "FBPlayerCount" # 副本功能线路人数同步 +CrossServerMsg_CrossActInfo = "CrossActInfo" # 跨服运营活动信息 +CrossServerMsg_MailPlayerIDList = "MailPlayerIDList" # 跨服邮件玩家ID通知,玩家目标服务器可能无法知道,被动推送 +CrossServerMsg_MailContent = "MailContent" # 跨服邮件内容通知 # 子服发送跨服信息定义 ClientServerMsg_ServerInitOK = "ServerInitOK" # 子服启动成功 @@ -1268,6 +1326,9 @@ ClientServerMsg_PKCancel = "PKCancel" # 跨服PK取消匹配 ClientServerMsg_PKPrepareOK = "PKPrepareOK" # 跨服PK准备完毕 ClientServerMsg_PKBillboard = "PKBillboard" # 跨服PK排行榜 +ClientServerMsg_QueryBillboard = "QueryBillboard" # 跨服排行榜 - 查询、同步等 +ClientServerMsg_UpdateBillboard = "UpdateBillboard" # 跨服排行榜 - 更新 +ClientServerMsg_MailContent = "MailContent" # 跨服邮件内容同步 - 请求同步、汇报成功等 ClientServerMsg_Reborn = "Reborn" # 复活 ClientServerMsg_QueryNPCInfo = "QueryNPCInfo" # 查询跨服地图NPC信息 ClientServerMsg_SetPlayerAttrValue = "SetPlayerAttrValue" # 玩家属性数值更新 @@ -1276,6 +1337,7 @@ ClientServerMsg_AddBuff = "AddBuff" # 添加BUFF #跨服广播类型定义 +CrossNotify_CrossAct = "CrossAct" CrossNotify_World = "World" CrossNotify_Family = "Family" CrossNotify_Player = "Player" -- Gitblit v1.8.0