From 35c596a6ed34680d9af09788274051c1c212d4eb Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期一, 07 七月 2025 15:05:03 +0800 Subject: [PATCH] 129 【战斗】战斗系统-服务端(优化战斗武将跟NPC独立处理;去除程序无技能普攻,增加反击普攻;新增回合主动普攻技能功能类型23;) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py | 407 ++++++++++++++++++++------------------------------------- 1 files changed, 146 insertions(+), 261 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py index 713c71b..27b0449 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py @@ -12,6 +12,8 @@ import os import IPY_GameWorld import ShareDefine + + #--------------------------------------------------------------------- #MapServer服务器部署之前请根据目录实际情况更改下列参数 #MapServerPath 为当前的MapServer的根目录 @@ -39,15 +41,27 @@ return MapServerPath -##获得DB路径 +##获得DB路径(单服Map里的DB路径) # @param 无参数 # @return 返回值当前的DB路径 def GetDBPath(): - return MapServerPath.split("ZoneServerGroup")[0]+ "db\\PyMongoDataServer\\" + return MapServerPath + "Script\\PyMongoDB" + +def GetServerConfigPath(): + ## 获取以Map为单服的服务器配置路径 + mapID = IPY_GameWorld.IPY_GameWorld().GetMapID() + return MapServerPath + "ServerConfig\\m_%s" % mapID def GetServerRootPath(): ##获取服务器根路径 return MapServerPath.split("ZoneServerGroup")[0] + +##获得ServersRoute路径, 如可获得物理服相关配置 GroupID +# @param 无参数 +# @return 返回值当前的DB路径 +def GetServersRoutePath(): + return GetServerRootPath()+ "ServersRoute\\" + def GetSizeof(o, isAsize=True): return 0 @@ -449,6 +463,8 @@ Def_ItemType_CanUseByCDTime = 145 # 创建后根据CDTime到后可开启 +Def_ItemType_Hero = 150 # 武将英雄 + #以下定义物品类型下次删除 Def_Item_Type_Horse = 1000036 #坐骑 @@ -499,7 +515,6 @@ Def_Effect_UseItemGiveZhenQi = 205 #使用道具给予真气 Def_Effect_ItemGiveFamilyActivity = 208 #使用道具给予仙盟活跃令 Def_Effect_ItemGiveFamilyContribution = 209 #使用道具给予仙盟贡献 -Def_Effect_TJGAddTime = 210 #增加脱机挂时间 Def_Effect_ItemAddExp = 213 #给经验道具 Def_Effect_ItemAddLV = 214 #直接升级道具 Def_Effect_ItemAddExpByLV = 215 #给经验道具 XX级前,所加经验随等级增加而增加,XX级后按XX级算 @@ -542,6 +557,7 @@ Def_Effect_EmojiPack = 276 #表情包物品;A值-表情包ID Def_Effect_RecycleItemMoney = 277 #回收物品转化为货币; A值-直接给货币物品ID;B值-货币数量 Def_Effect_FamilyEmblem = 278 #激活仙盟徽章; A值-徽章ID; +Def_Effect_HeroSkin = 279 #激活武将皮肤; A值-武将ID;B值-皮肤索引 #----以下未使用或代码依然存在的--- Def_Effect_ItemGiveGongXun = 1920 #使用道具给予功勋 Def_Effect_ItemGiveRuneJH = 1925 #使用道具给予符印精华 @@ -555,8 +571,6 @@ #Def_Effect_PetSoul = 5504 #宠物满魂 #Def_Effect_PetItemAddExp = 2006 #给宠物经验道具 #Def_Effect_EnergyItem = 2600 #精力药剂 -#Def_Effect_BuyBackpack = 1144 #开启背包(n行)的物品效果ID -#Def_Effect_BuyWarehouse = 1145 #开启仓库(n行)的物品效果ID #Def_Effect_PetRewashSkill = 5506 #重洗技能 #Def_Effect_AddStarItemNormal = 1157 #普通升星物品效果ID #Def_Effect_AddStarItemHighLevel = 1158 #高级升星物品效果ID @@ -629,8 +643,6 @@ Def_Effect_Add_FreePoint_2 = 1169 #添加玩家属性分配点 Def_Effect_Add_FreePoint_3 = 1185 -#任务传送令 -Def_Item_Effect_MissionMove = 2001 #鱼竿 Def_Item_Effect_FishTool = 2000 #坐骑进阶 @@ -647,7 +659,6 @@ #写死的任务ID #新手任务 Def_MissionID_FirstLogin = 1 -Def_ConvoyTruckMissionID = 2401 # 护送镖车任务ID Def_ArrestMissionID = 8000 # 悬赏任务ID #--------------------------------------------------------------------- #写死的XMLID @@ -789,15 +800,12 @@ Def_SkillID_ReviveTired = 20030 # 复活疲劳 SkillID Def_SkillID_SkillReBorn = -1 # 技能复活ID Def_SkillID_LimitSuperBuff = 10000 # 有限无敌BUFF SkillID -Def_SkillID_TJGSuperBuff = 20039 # 脱机挂死亡复活保护 Def_SkillID_Somersault = 190 # 翻滚快速闪避 Def_SkillID_DoubleExp = -1 # 双倍经验系统中的双倍经验ID Def_SkillID_Justice = 11504 # 正义阵营 Def_SkillID_Evil = 11505 # 黑道阵营 -Def_SkillID_JoinExam = -1 # 答题Buff Def_SkillID_ActionWuDi = -1 # 活动无敌Buff Def_SkillID_ZhenQiRestore = -1 # 真气恢复加成BUFF -Def_SkillID_TruckAiMode = 20100 # 镖车AI模式BUFF Def_SkillTypeID_EfficientBattle = -1 #高效战斗类型ID,高效战斗buffID:49001~49008 Def_SkillTypeID_EfficientSit = -1 #高效练功类型ID Def_SkillID_XuanTianZhenYan = -1 # 玄天真言 @@ -828,8 +836,6 @@ # 切地图需清除的buff ClearBuffOnMapChangeList = [Def_SkillID_DropOwnerBuff, Def_SkillID_FamilyWar_CWinBuff, Def_SkillID_FamilyWar_JoinBuff, Def_SkillID_FamilyWar_RandBuffAttr] -# 脱机挂状态下不刷新buff时间的 -TJGStateNotRefreshTimeBuff = [Def_SkillID_Red] #技能ID对应的区域类型 Def_AreaType_SkillID_Safe = 20011 # 安全区 @@ -873,7 +879,6 @@ Def_HurtType_FuhaoHit, # 富豪一击 ) = range(21, 25) -Def_EquipItemType_TJGAutoEat = xrange(Def_ItemType_retWeapon, Def_ItemType_retGlove + 1) #装备类型 Def_EquipItemType = range(Def_ItemType_retWeapon, Def_ItemType_DogzEquipScute + 1) @@ -911,8 +916,6 @@ #流向记录变更最小金币值(小于该值的暂不记录, 仅限金币) Def_DRRecord_Min_Silver = 500000 Def_LargeTrade_Silver = 1000 * 1000 -#主角交易栏最大格数 -Def_PlayerTradeMaxItemCount = 20 #登陆初始储物柜格子数 Def_PackCnt_Fashion = 1 #登陆初始武器时装格子数 @@ -1153,6 +1156,7 @@ ShareDefine.rptDogzItem, ShareDefine.rptDogzEquip, ShareDefine.rptGarbage, + ShareDefine.rptHero, ] #装备可强化背包列表 @@ -1187,9 +1191,6 @@ Type_Relation_Enemy = 1 #朋友 Type_Relation_Friend = 2 - -Def_NpcDictKey_CampType = 'CampType' -#阵营 三种 中立 正义 邪恶 CampType_Neutral = ShareDefine.CampType_Neutral # 中立 CampType_Justice = ShareDefine.CampType_Justice # 正义 @@ -1234,7 +1235,7 @@ ) = range(Def_UseSkillAim_Type) #技能施法目标类型, 修改此处应在Def_Dict_UseSkillTag_ObjType 相应更改 -Def_UseSkillTag_Type = 16 +Def_UseSkillTag_Type = 17 ( Def_UseSkillTag_None , #无需选择对象 0 Def_UseSkillTag_Self , #自己 1 @@ -1252,6 +1253,7 @@ Def_UseSkillTag_CanAttackBaseNPC, #可攻击的野外小怪(含精英)怪物 13 Def_UseSkillTag_FriendNPC, #友好NPC 14 Def_UseSkillTag_AppointNPC, #指定NPC 15 必须和效果值配合 Def_Skill_Effect_AppointNPC + Def_UseSkillTag_FriendDeath, #友方死亡目标16 ) = range( 0, Def_UseSkillTag_Type ) @@ -1290,6 +1292,13 @@ Def_ST_CanNPCUseSkill = [ Def_UseSkillTag_None, Def_UseSkillTag_Self, + ] + +#NPC技能:可以对友好目标释放的技能 +Def_ST_CanNPCUseSkillFriend = [ + Def_UseSkillTag_Friend, + Def_UseSkillTag_SelfAndFriend, + Def_UseSkillTag_FriendNPC, ] #自动攻击技能类型 @@ -1339,7 +1348,7 @@ Def_SkillType_PlsBuff : IPY_GameWorld.bfBuff , #增益BUFF 5 Def_SkillType_DepBuff : IPY_GameWorld.bfDeBuff , #减益BUFF 6 Def_SkillType_PassiveBuff : IPY_GameWorld.btPassiveBuf, # 被动技能 7 (废弃,无此定义分散为其他buff) - Def_SkillType_Revive : IPY_GameWorld.bfIncBuff, #复活 8 + #Def_SkillType_Revive : IPY_GameWorld.bfIncBuff, #复活 8 Def_SkillType_Increment : IPY_GameWorld.bfIncBuff, #增值技能(不可清除)9 Def_SkillType_Aura : IPY_GameWorld.bfAura , #光环技能 10 Def_SkillType_Equip : IPY_GameWorld.bfEquipBuff,#装备技能 11 @@ -1510,7 +1519,7 @@ #自动恢复计算间隔 Def_HPRestoreInterval = 5000 #允许重置的背包索引 -Def_CanItemResetPack = [IPY_GameWorld.rptItem, IPY_GameWorld.rptWarehouse, ShareDefine.rptTreasure, ShareDefine.rptGarbage] +Def_CanItemResetPack = [IPY_GameWorld.rptItem, IPY_GameWorld.rptWarehouse, ShareDefine.rptTreasure, ShareDefine.rptGarbage, ShareDefine.rptHero] #仓库分页个数 Def_ItemReset_WarehousePageCnt = 56 #玩家捡起物品的距离 8 @@ -1558,14 +1567,6 @@ ShareDefine.Def_Transport_Mission : Def_Transport_Type_Mission, # 任务传送 } -Def_MoveToTruck_Cost = 1000 #传送至镖车的花费 -#---------------------购买仓库空间费用------------------------ -Def_BuyWarehouse_Type = 1 # 购买仓库费用类型(金子) -Def_BuyWarehouse_Cost = 99 # 购买仓库每等级的费用 -#---------------------购买背包空间费用------------------------ -Def_BuyItemPack_Type = 1 # 购买背包费用类型(金子) -Def_BuyItemPack_Cost = 149 # 购买背包每等级的费用 -#--------------------------------------------------------------------- #---------------------进度条------------------------ #挖宝进度条时间为5秒 Def_DigMaxTime = 5000 @@ -1645,9 +1646,6 @@ #GM操作字符 Def_GM_Oper_ForbidAcc = 'GMOperForbidAcc' #GM操作符:踢出玩家 #--------------------------------------------------------------------- -#GM活动ID(10倍) -Def_GY_GM_GameID_MapGiveExp_Ten = 3000005 -Def_GY_GM_GameID_MapGiveExp_Fifty = 3000006 #------------ # 非c++定义的账号状态,py用的账号锁定,禁言,按位判断 @@ -1736,35 +1734,12 @@ #0:发呆状态, 1:移动, 2:死亡, 3:攻击 Def_NstNull, Def_NstMoving, Def_NstDead, Def_NstAttack = range(4) -#任务系统杀怪掉落任务道具公式 -Def_Event_Drop_Formula = "max(rate,(maxItem-curItemCount)/(maxMonsterCount+1-curMonsterCount),(baseDropCount-curItemCount)/max(1,(dropMonsterCount+1-curMonsterCount)))" -#每日任务的奖励公式 -Def_Day_Event_Exp_Reward_Formula = "baseExp" -#墓地医生扣费公式 -Def_Helth_Money_Formula = "(2 - curHP/float(maxHP) - curMP/float(maxMP))*3*pow(lv, 1.2)" -#任务镖车系统 -#骠车受到攻击的时候, 通知玩家的间隔 -Def_TruckNotifyToOwnerTick = 5000 -#镖车毁坏金钱奖励百分数 -Def_Day_Event_Truck_Destroy_Money = 0.2 -#镖车毁坏经验奖励百分数 -Def_Day_Event_Truck_Destroy_Exp = 0.8 -#镖车损坏,返回百分比押金 -Def_Day_Event_Truck_Destroy_Deposit = 0.2 -#镖车和人物的距离,移动 -Def_PlayerTurckBeginMoveDist = 1 -#判定镖车在事件范围内的距离 -Def_PlayerTruckEventDist = 10 -#镖车跟随 -Def_PlayerTruckMoveDist = Def_Screen_Area -#人镖合一的距离 -Def_PlayerTruckCarryerDist = Def_Screen_Area - -#---------------------------家族定义---------------------------- - -Def_Player_RequestAddFamilyMaxCnt = 200 #玩家申请加入家族的最大数量 (目前无限制 配个大的数值) - #-------------------------------#副本相关#------------------------ +# 主线小怪 +Def_FBMapID_Main = 1 +# 主线Boss +Def_FBMapID_MainBoss = 2 + #创角新手村地图ID列表 Def_CreatRoleMapIDList = [10000] #PK周赛 @@ -1882,9 +1857,6 @@ TurnFightMapIDList = ( Def_TFMapID_MineArea, # 福地 1 ) = range(1, 1 + 1) - -#回合战斗自定义地图需要发送GameServer的列表 -Def_TFMapID_SendToGameServer = [Def_TFMapID_MineArea] #前端自定义场景地图 ClientCustomSceneList = [Def_FBMapID_PersonalBoss, Def_FBMapID_ArenaBattle, Def_FBMapID_MirrorBattle] @@ -2156,34 +2128,9 @@ Def_NPCErrorMaxDist = 99999 #玩家聊天------------------------------------------- -#聊天通用间隔时间 -Def_PlayerTalkTick = 1000 -#玩家聊天频道最大个数 -Def_PlayerTalkChannelMaxCount = 10 -#玩家聊天,单句最大字节数 -Def_PlayerTalkMaxCount = 8000 #原来为100 -#轻频频道 -#轻频频道相同内容允许时间(10秒2次) -Def_PlayerTalkQingTime = 5000 -#区域频道 -#区域聊天频道时间间隔(1秒) -Def_PlayerTalkAreaTime = 1000 #原来为180000 目前测试 -#区域聊天频道等级限制 -Def_PlayerTalkAreaLV = 1 -#国家频道 -#国家聊天频道时间间隔(10秒) -Def_PlayerTalkCountryTime = 10000 #文档中为18000 -#国家聊天频道等级限制 -Def_PlayerTalkCountryLV = 41 -#国家频道聊天花费 -Def_PlayerTalkCoutryMoney = 10 -#世界频道 -#世界频道聊天花费(银子或银票) -Def_PlayerTalkWorldMoney = 1000 -#世界聊天时间间隔(1秒) -Def_PlayerTalkWorldTime = 1000 -#不可以轻频聊天的地图 -CanNotQingTalkMapIDList = [] +Def_PlayerTalkTick = 1000 #聊天通用间隔时间 +Def_PlayerTalkMaxCount = 8000 #玩家聊天,单句最大字节数 +Def_ChannelTalkTick = "ChannelTalkTick_%s" # 聊天频道玩家最近一次聊天tick ################################################### #类型定义, 以下内容不要修改 @@ -2264,9 +2211,6 @@ 180000, #获得地图经验3分钟一次 10000 , #家族战排期查询时间间隔 1分一次 - 2000 , #镖车查询和传送同CD10秒一次 - 2000 , #传送至镖车CD10秒一次 - 2000 , #设置镖车模式2秒一次 500 , #查看商城信息0.5秒一次 30000 , #自动查询玩家点券数目CD30秒 5000 , #副本帮助界面 5秒 @@ -2332,7 +2276,6 @@ 1000 * 10, # 跨服妖魔boss 1000 * 10, # 仙盟阵法 1000 * 20, # 仙盟充值互助 - 1000 * 20, # 仙盟珍宝阁 1000 * 20, # 仙盟攻城战 ] TYPE_Player_Tick_Count = len(TYPE_Player_Tick_Time) @@ -2348,9 +2291,6 @@ TYPE_Player_Tick_GiveMapExp, #获得活动地图经验 TYPE_Player_Tick_QueryFamilyWar, #家族战排期查询 -TYPE_Player_Tick_QueryTruckPos, #镖车查询CD时间 -TYPE_Player_Tick_MoveToTruckPos, #传送至镖车时间 -TYPE_Player_Tick_SetTruckMode, #设置镖车模式 TYPE_Player_Tick_WatchStoreInfo, #查看商城的时间间隔 TYPE_Player_Tick_QueryCoinCount, #查询玩家点券数目 TYPE_Player_Tick_FBHelp, #副本帮助界面 @@ -2416,7 +2356,6 @@ TYPE_Player_Tick_CrossYaomoBoss, #跨服妖魔boss TYPE_Player_Tick_FamilyZhenfa, #仙盟阵法 TYPE_Player_Tick_FamilyCTGAssist, #仙盟充值互助 -TYPE_Player_Tick_FamilyZhenbaoge, #仙盟珍宝阁 TYPE_Player_Tick_FamilyGCZ, #仙盟攻城战 ) = range(0, TYPE_Player_Tick_Count) @@ -2457,8 +2396,6 @@ TYPE_Map_Tick_Count = len( TYPE_Map_Tick_Time ) #--------------------------------------------------------------------- -#玩家Buff字典 -Def_Player_ProBuff_TruckSpeedUp = 'TruckSpeedUp' #镖车速度加速 #对象(玩家,NPC)的行为字典 Def_Obj_ActState_ClientAct = "Oper_ClientActState" # 客户端动作限制 @@ -2466,8 +2403,6 @@ Def_Obj_ActState_ClientSkill = "Oper_ClientSkillActState" # 客户端技能限制 Def_Obj_ActState_ServerSkill = "Oper_ServerSkillActState" # 服务端技能限制 -#玩家使用回城,包裹索引字典 -Def_Use_Item_303_Index = "use_item_303_index" #--------------------------------------------------------------------- #玩家视野(09/05/06 修改为静态) Def_PlayerSight_Default = 18 #玩家视野默认 @@ -2495,21 +2430,6 @@ TYPE_NPC_Tick_Count = len(TYPE_NPC_Tick_Time) -#--------------------------------------------------------------------- -#特殊任务状态定义: -#0 : 未接 -#-1: 已完成 -#-2: 骠车丢失 -#-3: 骠车被打烂 -#-4: 任务未达到可接状态 -#-5: 任务可提交 -#任务状态定义 -Def_Mission_State_NoAccept = 0 #未接 -Def_Mission_State_Over = -1 -Def_Mission_State_LoseTruck = -2 -Def_Mission_State_BreakTruck = -3 -Def_Mission_State_UnMission = -4 -Def_Mission_State_CanComplete = -5 #------------------------------------------------------------ #物品栏定义 #数据中的装备位置和程序中的装备位置对照表 @@ -2579,63 +2499,9 @@ #玩家时间的记录格式 TYPE_Time_Format = "%Y-%m-%d %H:%M:%S" TYPE_Time_Format_Day = "%Y-%m-%d" +TYPE_Time_Format_YmdHMS = "%Y%m%d%H%M%S" #--------------------------------------------------------------------- -#无限封存时间(10年) -Def_GMPower_MaxTime = 60*24*365*10 -#GM权限表 - -# GM命令 超级GM(1级) A级GM(2级) B级GM(3级) C级GM(4级) D级GM(5级) -Def_GMPower_Disc = { - 'GY_GM_PlayerDetailByID' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #角色查询 - 'GY_GM_MoveToPlayerByID' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #传送到玩家身边 - 'GY_GM_PullPlayerByID' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #把玩家拉到身边 - 'GY_GM_ViewBroadcast' : { 1 : True , 2 : True , 3 : True , 4 : False, 5 : False} , #查询公告 - 'GY_GM_ForbidFight' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : False} , #禁止战斗 - 'GY_GM_KickPlayer' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #踢玩家下线 - 'GY_GM_CloseAccID' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : False} , #帐号封存 - 'GY_GM_SetNoSight' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #设置隐身 - 'GY_GM_CancelNoSight' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #取消隐身 - 'GY_GM_ForbidTalk' : { 1 : True , 2 : True , 3 : True , 4 : False, 5 : False} , #禁止说话 - 'GY_GM_ChangeGMLV' : { 1 : True , 2 : False, 3 : False, 4 : False, 5 : False} , #更改权限 - 'GY_GM_SetExpRate' : { 1 : True , 2 : True , 3 : True , 4 : False, 5 : False} , #经验倍率 - 'GY_GM_StartGame' : { 1 : True , 2 : True , 3 : True , 4 : False, 5 : False} , #开启活动 - 'GY_GM_ViewGame' : { 1 : True , 2 : True , 3 : True , 4 : False, 5 : False} , #查询活动 - 'GY_GM_FindPlayerByID' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #查询玩家 - 'GY_GM_FindPlayerByName' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #查询玩家 - 'GY_GM_GivePlayerExp' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #给经验 - 'GY_GM_Broadcast' : { 1 : True , 2 : True , 3 : True , 4 : False, 5 : False} , #发布公告 - 'GY_GM_ViewWordExpRate' : { 1 : True , 2 : True , 3 : True , 4 : False, 5 : False} , #查看服务器经验倍率 - 'GY_GM_MapGiveExp' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #设置指定地图经验倍率 - 'GY_GM_Offline_FindPlayer': { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #脱机工具-查找玩家 - 'GY_GM_Offline_ViewItem' : { 1 : True , 2 : True , 3 : True , 4 : False, 5 : False} , #脱机工具-查看物品 - 'GY_GM_Offline_ViewAttribute' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #脱机工具-查看玩家属性 - 'GY_GM_Offline_ViewSkill': { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #脱机工具-查看玩家技能 - 'GY_GM_Offline_ViewTitle': { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #脱机工具-查看玩家称号 - 'GY_GM_Offline_ViewMoney': { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #脱机工具-查看玩家货币 - 'GY_GM_Offline_ViewGMOper': { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #脱机工具-查看玩家GM操作 - 'GY_GM_CloseBroadcast' : { 1 : True , 2 : True , 3 : True , 4 : False, 5 : False} , #脱机工具-消除公告 - 'GY_GM_Offline_UnBind' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #脱机工具-解封玩家 - 'GY_GM_Offline_ViewUnBind' : { 1 : True , 2 : True , 3 : True , 4 : True , 5 : True } , #脱机工具-查询玩家 - } - -#脱机GM工具索引表 -GMTool_Offline_IndexCount = 11 -( -GMTool_Offline_None , #无意义 -GMTool_Offline_Compose , #合成 -GMTool_Offline_StarLV , #升星 -GMTool_Offline_AutoBuyStarLV , #自动购买精致升星石 -GMTool_Offline_HealthReborn , #原地健康复活 (目前有用) -GMTool_Offline_IdentifyAgain , #鉴定再来一次 -GMTool_Offline_Mission , #任务消耗 (目前有用) -GMTool_Offline_FarRepair , #远程修理 (目前有用) -GMTool_Offline_ForgeFaBao , #法宝提炼 -GMTool_Offline_WorldTransfer, #世界传送 (目前有用,包括任务、小地图) -GMTool_Offline_AutoBuyGoldSpeaker, #自动购买金喇叭 (目前有用) -) = range( 0 , GMTool_Offline_IndexCount ) - -#--------------------------------------------------------------------- #请求类型(需要和GameServer中的一致) Def_QueryType_Count = 56 ( @@ -2697,7 +2563,7 @@ queryType_FamilyEmblem, #仙盟徽章 ) = range(0, Def_QueryType_Count) #------------------------------------------------------------------------------ -#--------------------------------------------------------------------- + #数值上限 2^31 - 1 Def_UpperLimit_DWordEx = ShareDefine.Def_UpperLimit_DWordEx #数值上限(20亿) @@ -3036,36 +2902,6 @@ Def_KillValue_Notoriety = 1 # 杀人恶名值增1 Def_BeKilledValue_Notoriety = 2 # 被杀恶名值减2 -#---获取威望类型记录--- -( - Def_AddPrestige_DayMission, #每日任务 - Def_AddPrestige_Mission, #任务接口 - Def_AddPrestige_FamilyBattle, #家族争霸战 - Def_AddPrestige_Family, #家族战 - Def_AddPrestige_Kill, #中立杀人 - Def_AddPrestige_GM, #GM - Def_AddPrestige_Sacrifice, #帮会上香 - Def_AddPrestige_Cards, #卡牌 - Def_AddPrestige_JXD, #将星殿排行 - Def_AddPrestige_Item, #物品 - Def_AddPrestige_Arrest, #家族悬赏 - Def_AddPrestige_Truck, #镖车 - Def_AddPrestige_GloryWar, #荣耀之战 - Def_AddPrestige_JLD, #九龙殿 - Def_AddPrestige_Familys, #战盟战 - Def_AddPrestige_MYDHZ, #命运夺魂战/地精夺宝 - Def_AddPrestige_GiveFlower, #赠送鲜花 - Def_AddPrestige_NPC, #NPC给予 -) = range(1, 18+1) - -#---减少威望类型记录--- -( - Def_SubPrestige_BeKilled, #被杀 - Def_SubPrestige_DayUse, #每日消耗 - Def_SubPrestige_GM, #GM - -) = range(1, 3+1) - #---双倍经验记录--- ( Def_DoubleExpNote_Stop, #手动停止 @@ -3095,7 +2931,7 @@ # 回合攻击战斗类型 ( -TurnBattleType_Normal, # 普通 +TurnBattleType_Normal, # 常规攻击 TurnBattleType_Combo, # 连击 TurnBattleType_AtkBack, # 反击 ) = range(3) @@ -3103,9 +2939,22 @@ Def_PerTurnTick = 1000 # 每回合等同于常规tick时长 # 回合战斗目标类型 -TurnBattle_TagType_NPC = 0 +TurnBattle_TagType_NPCLineup = 0 # NPC阵容 TurnBattle_TagType_Player = 1 TurnBattle_TagType_Team = 2 + +#---Obj字典------- +Def_Obj_Dict_Faction = 'Faction' # 所属阵营 +Def_Obj_Dict_LineupPlayerID = 'LineupPlayerID' # 阵容所属玩家ID,可用于判断是否玩家阵容,PVP或PVE +Def_Obj_Dict_HeroID = 'HeroID' # 该战斗NPC所绑定的武将ID,一般仅玩家阵容有 +Def_Obj_Dict_SkinID = 'SkinID' # 该战斗NPC所绑定的武将皮肤ID,一般仅玩家阵容有 +Def_Obj_Dict_TurnFightPosInfo = 'TurnFightPosInfo' # 回合制站位: 阵营编号*100+阵型站位,阵型站位为0时代表非主战单位 +Def_Obj_Dict_TurnFightTimeline = 'TurnFightTimeline' # 回合制战斗时间线: 回合数*100+行动编号节点 +Def_Obj_Dict_TurnComboNum = 'TurnComboNum' # 单次累计连击次数 +Def_Obj_Dict_TurnAtkBackNum = 'TurnAtkBackNum' # 单次累计反击次数 +Def_Obj_Dict_TurnParryNum = 'TurnParryNum' # 单次累计格挡次数 +Def_Obj_Dict_TurnMissNum = 'TurnMissNum' # 单次累计闪避次数 +Def_Obj_Dict_TurnBattleType = 'TurnBattleType' # 本次攻击战斗类型:TurnBattleType_xxx #---NPC字典------- #每道龙卷风最终坐标 @@ -3243,8 +3092,6 @@ Def_PlayerKey_MoreHurtValue = "MoreHurtValue" # 额外的伤害值,一般用于不走公式 Def_PlayerKey_BloodShiledHurt = "BSHurt" # 伤害值用于血盾抵消 Def_PlayerKey_BloodShiledHurtEx = "BSHurtEx" # 伤害值用于血盾抵消 -Def_PlayerKey_TJGPackFullAfterEat = "TJGFullEat" # 脱机挂吞噬后背包依然满的情况 -Def_PlayerKey_TJGStartTime = "TJGStartTime" # 脱机挂结算时间起点 Def_PlayerKey_EquipTime = "EquipTime" # 时效装备 Def_PlayerKey_PowerPartTime = "PowerPartTime" # 蓄力每次消耗时间,因攻速改变 Def_PlayerKey_PowerPartCount = "PowerPartCount" # 蓄力技能能量次数 @@ -3334,6 +3181,7 @@ Def_PlayerKey_AttrPerLVAtk = "PerLVAtk" #每1级+%s攻击, 数值取万分率,支持小数算法 Def_PlayerKey_AttrPerLVMaxHP = "PerLVMaxHP" #每1级+%s生命, 数值为固定值 Def_PlayerKey_AttrShieldMPCostRate = "AttrShieldMPCostRate" #魔法盾伤害吸收蓝耗比率 +Def_PlayerKey_AttrXP = "AttrXP" #当前XP Def_PlayerKey_AttrXPRestorePer = "AttrXPRestorePer" #自动恢复XP值比率 Def_PlayerKey_MarkLoadMapTick = "LoadMapTickVIP" #记录切换地图后的tick,VIP Def_PlayerKey_MTFreeOnlineRefreshTick = "MTFreeOnlineRTick" # 寻宝在线计算时间 @@ -3526,7 +3374,6 @@ Def_QuDao_DoubleBillCount = "qddbCount" # 渠道返利的仙玉领取次数 日期+次数组合数字 Def_PDict_GeTuiSet = "GetuiSet" # 推送提醒的设置 Def_PDict_NoGeTuiTime = "NoGetuiTime" # 推送提醒免打扰时间,将字符串组合数字 -Def_PlayerKey_TJGNPC = "TJGNPC" # 脱机挂机NPC点 Def_PDict_OnHour = "OnHour" Def_PDict_OnDay = "OnDay" # 0点过天 Def_PDict_OnWeek = "OnWeek" # 0点过周 @@ -3538,7 +3385,6 @@ Def_Player_Dict_PlayerFromPID = "PlayerFromPID" # pid Def_Player_Dict_Account_Type = "account_type" # account_type Def_Player_Dict_FirstLogin = "FirstLogin" # 首登标记 0-未首登; 1-首登过 -Def_Player_Dict_RealLoginOK = "RealLoginOK" # 真正登录成功标记 Def_GuideStateKeyCount = 8 # 引导状态key最大个数 Def_Player_Dict_GuideState = "GuideState_%s" # 引导状态记录,参数为key个数编号 Def_Player_Dict_VersionFix = "VersionFix_%s" # 版本修正标记,参数为key个数编号, 支持n个版本修正标记,每个key支持31个 @@ -3581,6 +3427,7 @@ Def_Player_Dict_CabinetCount_Horse = "CabinetCount_Horse_42" #马匹收纳柜 Def_Player_Dict_PackCount_Item = "PackCount_Item_72" #玩家物品背包格子数 Def_Player_Dict_PackCount_Warehouse = "PackCount_Warehouse_73" #仓库背包格子数 +Def_Player_Dict_PackCount_Hero = "PackCount_Hero" #武将背包格子数 Def_Player_Dict_PlayerMapSignCnt = "PlayerMapSignCnt_75" # 大地图标记数量 Def_Player_Dict_PlayerBuyZhenQiCnt = "PlayerBuyZhenQiCnt_76" # 购买真气次数 Def_Player_Dict_PlayChangeLineID = "PlayChangeLineID" # 玩家主动切换线路记录 @@ -3618,29 +3465,19 @@ Def_Player_Dict_GameFuncAwardState = "GameFuncAwardState_%s" # 服务端功能开启领奖状态; 参数, key编号 Def_Player_Dict_MissionFinish = "MissionFinish_%s" # 任务是否完成; 参数, 任务ID, 只会记录部分需要记录的任务ID Def_Player_Dict_FamilyArrestAwardState = "ArrestAwardState_103" # 家族悬赏奖励领取情况 -Def_Player_Dict_OtherDayLogin = "OtherDayLogin_105" # 非同一天二次登陆 -Def_Player_Dict_LoginValid = "LoginValid_106" # 新增有效登陆标记 Def_Player_Dict_RequestAddFamilyCnt = "RequestAddFamilyCnt_107" # 已申请加入家族的个数 Def_Player_Dict_RequestAddFamilyID = "AddFamilyID%s_108" # 申请加入的家族ID, %s为第几个 -Def_Player_Dict_FamilyIDChangeTime = "FamilyIDChangeTime" # 记录玩家家族ID变更时间 Def_Player_Dict_LastFamilyID = "LastFamilyID" # 记录玩家上一个家族ID Def_Player_Dict_SingDay = "SingDay_115" #每日签到 Def_Player_Dict_GiveSignAward = "GiveSignAward_116" #每日签到奖励领取 Def_Player_Dict_ActivityValueDay = "ActivityValueDay_117" #每日活跃值 Def_Player_Dict_GiveActivityAward = "GiveActivityAward_118" #每日活跃值奖励领取 Def_Player_CrazyBilling_VIP_Coin = "CrazyBillingVIPCoin_119" # 扶持账号真实充值 -Def_Player_Dict_LoginType = "LoginType_122" # 玩家登入方式 -Def_Player_Dict_TruckRefreshTotalCnt = "TruckRTCnt" # 玩家总刷新镖车等级次数 -Def_Player_Dict_FreeRefurbishTruckCnt = "FreeRefurbishTruckCnt" # 当日已免费刷新镖车等级次数 -Def_Player_Dict_TruckLV = "TruckLV_137" # 可召唤镖车等级 -Def_Player_Dict_DestroyTruckCnt = "DestroyTruckCnt_138" # 劫镖次数 -Def_Player_Dict_AutoTruck = "AutoTruck_139" # 是否自动运镖中 Def_Player_Dict_CommonNewGuyCardState = "CommonNGCard_%s" # 通用新手卡使用记录, 参数为key编号, 二进制位存储 Def_Player_Dict_IDNewGuyCardState = "IDNGCard_%s" # 绑定账号新手卡使用记录, 参数为key编号, 二进制位存储 Def_Player_Dict_UseNewGuyCardState = "NGCardState_%s" # 是否使用过某类型的新手卡,参数为key编号, 二进制位存储 Def_Player_Dict_UseMediaCardState = "MediaCardState_%s" # 按位存储是否使用过某类型的媒体卡,参数为key编号, 二进制位存储 Def_Player_Dict_UseNewGuyCardNum = "NGCardNum_%s" # 使用过某类型的新手卡的次数, 卡类型, 十进制位存储 -Def_Player_Dict_PawnTruckLV = "PawnTruckLV_144" # 当前押镖的镖车等级 Def_Player_Dict_KillPlayerAddPrestige = "KillPlayerAddPrestige_147" # 杀人每日获得威望 Def_Player_Dict_RandCoinAward = "RandCoinAward_148" # 每日任意充值奖励给予 Def_Player_Dict_DeadTime = "PlayerDeadTime_149" #玩家死亡时间 @@ -3658,7 +3495,7 @@ Def_Player_Dict_UpdateFamilyNameItemIndex = "UpdateFamilyNameItemIndex" # 改名物品在背包的位置 Def_Player_Dict_UpdateFamilyName = "UpdateFamilyName" # 改名锁 Def_Player_Dict_FamilyDayAward = "FamilyDayAward" # 仙盟每日奖励领奖记录 -Def_Player_Dict_FamilyMoneyDonateCount = "FamilyMoneyDonateCount" # 仙盟今日货币捐献次数 +Def_Player_Dict_FamilyDonateRecord = "FamilyDonateRecord" # 仙盟今日捐献记录,按位存储每种类型今日已捐献次数 Def_Player_Dict_FamilyEmblemID = "FamilyEmblemID" # 仙盟徽章ID Def_Player_Dict_FamilyZhenbaogeCut = "FamilyZhenbaogeCut" #珍宝阁今日是否已砍过价 Def_Player_Dict_FamilyZhenbaogeBuy = "FamilyZhenbaogeBuy" #珍宝阁今日是否已购买过 @@ -3749,7 +3586,6 @@ Def_PDict_MoneyMinus = "MoneyMinus_%s" # 货币对应负值, 参数[货币类型] Def_PDict_Currency = "PlayerCurrency_%s" # 自定义货币类型, 参数[自定义货币类型] Def_PDict_UseMoneyTotal = "UseMoneyTotal_%s" # 累计消耗货币, 参数[货币类型] -Def_PDict_TJGSet = "TJGSet" # 脱机挂系统设定 Def_PDict_TJGDeadTime = "TJGDeadTime" # 脱机被杀时间 Def_PDict_TJGDeadPayTime = "TJGDeadPayTime" # 脱机被杀后可补偿的时间 Def_PDict_TJGDeadExp = "TJGDeadExp" # 脱机被杀经验 @@ -4016,10 +3852,6 @@ Def_PDict_NewFCPartyCurPoint = "NewFCPartyCurPoint" #全民来嗨活动当前总点数 Def_PDict_NewFCPartyAwardRecord = "NewFCPartyAwardRecord" #全民来嗨活动领奖记录 Def_PDict_NewFCCostGold = "NewFCCostGold" # 绝版降临总累计消费仙玉 - -#绑玉转盘 -Def_PDict_BindJadeWheelCurCnt = "BindJadeWheelCurCnt" # 今日已转次数 -Def_PDict_BindJadeWheelHistoryCnt = "BindJadeWheelHistoryCnt" # 历史已转次数 #限时抢购活动 Def_PDict_FlashSaleID = "FlashSaleID_%s" # 玩家身上的限时抢购活动ID,唯一标识,取活动开始日期time,参数(活动编号) @@ -4431,16 +4263,8 @@ Def_PDict_FeastRedPacketCanGrabCnt = "FeastRedPacketCanGrabCnt" # 节日红包可抢次数 #境界 -Def_PDict_RealmVersionState = "RealmVersionState" #境界版本调整记录状态值 Def_PDict_RealmTaskAwardState = "RealmTaskAwardState" #境界渡劫条件领奖状态,按二进制位存储是否已领取 Def_PDict_RealmTaskValue = "RealmTaskValue_%s" #境界渡劫任务需要记录值,参数(任务ID) -Def_PDict_RealmXXZLAward = "RealmXXZLAward" #境界修仙之路领奖状态;按二进制位存储每个任务ID是否已领取 -Def_PDict_RealmFBAttrAdd = "RealmFBAttrAdd_%s" #渡劫副本属性加成 参数属性ID -Def_PDict_RealmExp = "RealmExp" #境界修为池总经验 -Def_PDict_RealmExpPoint = "RealmExpPoint" #境界修为池总经验点 -Def_PDict_RealmExpBeginTime = "RealmExpBeginTime" #境界修为池经验开始计时时间 -Def_PDict_RealmExpBuffRemainTime = "RealmExpBuffRemainTime" #境界修为池经验buff剩余时间 -Def_PDict_RealmExpBuffAddRate = "RealmExpBuffAddRate" #境界修为池经验增加百分比(万分率) #法宝 Def_PDict_MagicWeaponIsWear = "MagicWeaponIsWear_%s" #法宝佩戴状态 参数法宝ID @@ -4462,23 +4286,6 @@ Def_PDict_GFPassiveIndex = "GFP_%s_%s" # 被动功法 页数-索引 Def_PDict_GFPassivePage = "GFPPage" # 被动功法选中页数 - -# 我要太极 -Def_PDict_Dice_Result = "DiceResult" # 我要太极结果 -Def_PDict_Dice_FreeChangeCnt = "DiceFreeChangeCnt" # 我要太极免费改投次数 - -# 脱机挂类型通知结果 -Def_PDictType_TJGNotify_Exp1 = "TJGNExp1" #经验 -Def_PDictType_TJGNotify_Exp2 = "TJGNExp2" #超过E部分 -Def_PDictType_TJGNotify_Time = "TJGNTime" #使用时间 -Def_PDictType_TJGNotify_EatPurple = "TJGNEatP" #吞噬的紫装数量 -Def_PDictType_TJGNotify_GiveCnt = "TJGNGiveCnt" #吞噬获得的炼丹材料数量 -Def_PDictType_TJGNotify_Purple = "TJGNPurple" #获得紫装数量 -Def_PDictType_TJGNotify_Orange = "TJGNOrg" #获得橙装数量 -Def_PDictType_TJGNotify_LV = "TJGLV" #脱机前的等级 -Def_PDictType_TJGNotify_ItemID = "TJGItemID_%s" #脱机挂指定物品掉落显示 - -Def_PDictType_TJGOnDayEx = "TJGOnDayEx" #是否脱机挂中过天(5点)真实登录后重置 # 挂机收益 Def_PDict_GuajiCalcTime = "GuajiCalcTime" # 上次统计收益时间戳 @@ -4564,6 +4371,18 @@ Def_PDict_CustomAwardCanGet = "CustomAwardCanGet_%s" # 是否可领取,参数(key编号) Def_PDict_CustomAwardGetState = "CustomAwardGetState_%s" # 是否已领取,参数(key编号) +#仙树 +Def_PDict_TreeLV = "TreeLV" # 仙树等级,从1开始,代表1级 +Def_PDict_TreeLVUPState = "TreeLVUPState" # 仙树升级状态;0-未升级;1-升级中 +Def_PDict_TreeLVUPRemainTime = "TreeLVUPRemainTime" # 仙树升级剩余时间,秒 +Def_PDict_TreeLVUPRefreshTime = "TreeLVUPRefreshTime" # 仙树升级上次刷新时间戳 + +#任务,每个任务组有且仅有一个进行中的任务 +Def_PDict_TaskIDLast = "TaskIDLast_%s" # 上一次完成的任务ID,参数(任务组) +Def_PDict_TaskID = "TaskID_%s" # 当前进行中的任务ID,参数(任务组) +Def_PDict_TaskValue = "TaskValue_%s" # 当前进行中的任务进度,参数(任务组) +Def_PDict_TaskState = "TaskState_%s" # 当前进行中的任务状态 0-无;1-进行中;2-已完成,参数(任务组) + #福地 Def_PDict_MineWorkerCount = "MineWorkerCount" # 已雇佣工人数 Def_PDict_MineWorkerEnergyUsed = "MineWorkerEnergyUsed" # 今日已消耗体力 @@ -4578,6 +4397,13 @@ Def_PDict_XiangongLikeState = "XiangongLikeState_%s" # 指定仙宫今日是否已点赞,参数(仙宫ID),仙宫ID为0时代表每日的仙宫功能点赞 Def_PDict_TiandaoQiyun = "TiandaoQiyun" # 天道树当前气运 Def_PDict_TiandaoAward = "TiandaoAward_%s" # 天道树领奖记录,按奖励索引记录是否已领取,参数(key编号) + +#武将 +Def_PDict_HeroSkin = "HeroSkin_%s" # 武将皮肤解锁状态,按皮肤索引二进制存储,参数(武将ID) +Def_PDict_HeroBook = "HeroBook_%s" # 武将图鉴激活等级,参数(武将ID) cccbbba a-初始激活状态1-英雄激活,2-初始图鉴激活; bbb-存星级图鉴激活等级;ccc-存突破图鉴激活等级 + +#主线 +Def_PDict_UnXiantaoCnt = "UnXiantaoCnt" # 累计未结算的战锤数 #------------------------------------------------------------------------------- #可以从07 41封包购买的背包类型,和对应字典{背包类型:[字典key, 默认格子数]} @@ -4610,6 +4436,10 @@ IPY_GameWorld.rptWarehouse:[ Def_Player_Dict_PackCount_Warehouse, + 0], + + ShareDefine.rptHero:[ + Def_Player_Dict_PackCount_Hero, 0], #IPY_GameWorld.rptFineSoulSlot:[ @@ -4668,6 +4498,7 @@ AttrName_FightExpRate = "FightExpRate" # 杀怪经验倍率 AttrName_GameExpRate = "GameExpRate" # 游戏事件经验倍率 AttrName_SkillAtkRate = "SkillAtkRate" # 技能伤害加成 (用作伤害加成) +AttrName_AtkBackHP = "AtkBackHP" # 攻击回复血量固定值 AttrName_AtkBackHPPer = "AtkBackHPPer" # 攻击回复血量比率 AttrName_SuperHit = "SuperHit" # 暴击伤害固定值 AttrName_SuperHitRate = "SuperHitRate" # 暴击概率 @@ -4698,6 +4529,17 @@ AttrName_PetAtk = "PetAtk" # 灵宠攻击 AttrName_PetSkillAtkRate = "PetSkillAtkRate" # 灵宠技能 AttrName_PetDamPer = "PetDamPer" # 灵宠伤害增加 +AttrName_ComboDefRate = "ComboDefRate" # 抗连击概率 +AttrName_AtkBackRate = "AtkBackRate" # 反击概率 +AttrName_AtkBackDefRate = "AtkBackDefRate" # 抗反击概率 +AttrName_SuckHPPer = "SuckHPPer" # 吸血比率 +AttrName_SuckHPDefPer = "SuckHPDefPer" # 抗吸血比率 +AttrName_CurePer = "CurePer" # 强化治疗 +AttrName_CureDefPer = "CureDefPer" # 弱化治疗 +AttrName_PetStrengthenPer = "PetStrengthenPer" # 强化灵兽 +AttrName_PetWeakenPer = "PetWeakenPer" # 弱化灵兽 +AttrName_SuperHitHurtPer = "SuperHitHurtPer" # 强化暴伤 +AttrName_SuperHitHurtDefPer = "SuperHitHurtDefPer" # 弱化暴伤 #物品效果(ID或指定类型)对应的属性计算信息 {效果(ID/指定类型):[[属性索引, ...], 是否基础属性,(非)线性]} #对应 Def_Calc_AllAttrType_MAX @@ -4888,6 +4730,22 @@ ShareDefine.Def_Effect_FamilyWarHPPer:[[TYPE_Calc_FamilyWarHPPer], False, TYPE_Linear], ShareDefine.Def_Effect_FamilyWarAtkPer:[[TYPE_Calc_FamilyWarAtkPer], False, TYPE_Linear], ShareDefine.Def_Effect_FamilySitExpPer:[[TYPE_Calc_FamilySitExpPer], False, TYPE_Linear], + ShareDefine.Def_Effect_ComboDefRate:[[TYPE_Calc_ComboDefRate], False, TYPE_Linear], + AttrName_ComboDefRate:[[TYPE_Calc_ComboDefRate], False, TYPE_Linear], + ShareDefine.Def_Effect_AtkBackRate:[[TYPE_Calc_AtkBackRate], False, TYPE_Linear], + AttrName_AtkBackRate:[[TYPE_Calc_AtkBackRate], False, TYPE_Linear], + ShareDefine.Def_Effect_AtkBackDefRate:[[TYPE_Calc_AtkBackDefRate], False, TYPE_Linear], + AttrName_AtkBackDefRate:[[TYPE_Calc_AtkBackDefRate], False, TYPE_Linear], + ShareDefine.Def_Effect_SuckHPPer:[[TYPE_Calc_SuckHPPer], False, TYPE_Linear], + AttrName_SuckHPPer:[[TYPE_Calc_SuckHPPer], False, TYPE_Linear], + ShareDefine.Def_Effect_SuckHPDefPer:[[TYPE_Calc_SuckHPDefPer], False, TYPE_Linear], + AttrName_SuckHPDefPer:[[TYPE_Calc_SuckHPDefPer], False, TYPE_Linear], + ShareDefine.Def_Effect_CurePer:[[TYPE_Calc_CurePer], False, TYPE_Linear], + ShareDefine.Def_Effect_CureDefPer:[[TYPE_Calc_CureDefPer], False, TYPE_Linear], + ShareDefine.Def_Effect_PetStrengthenPer:[[TYPE_Calc_PetStrengthenPer], False, TYPE_Linear], + ShareDefine.Def_Effect_PetWeakenPer:[[TYPE_Calc_PetWeakenPer], False, TYPE_Linear], + ShareDefine.Def_Effect_SuperHitHurtPer:[[TYPE_Calc_SuperHitHurtPer], False, TYPE_Linear], + ShareDefine.Def_Effect_SuperHitHurtDefPer:[[TYPE_Calc_SuperHitHurtDefPer], False, TYPE_Linear], #战斗非线性 ShareDefine.Def_Effect_SuperHitPer:[[TYPE_Calc_SuperHit], False, TYPE_NoLinear], @@ -5416,8 +5274,6 @@ #-----------以下为暂时没用的,先不删除,如有新增消费点则放在这些之前------------ Def_Cost_RefreshArrestTask, # 刷新悬赏任务 Def_Cost_OffLineExp, # 兑换离线经验 -Def_Cost_RefreshTruck, # 刷新镖车 -Def_Cost_FinishTruck, # 完成镖车 Def_Cost_RefreshTimeShop, # 刷新神秘商店 Def_Cost_OpenNoble, # 开通贵族 Def_Cost_Warehouse, # 仓库 @@ -5425,7 +5281,7 @@ Def_Cost_Trade, # 交易 Def_Cost_Rename, # 改名 Def_Cost_SkillLvUp, # 技能升级 -) = range(2000, 2000 + 69) +) = range(2000, 2000 + 67) Def_Cost_Reason_SonKey = "reason_name_son" # 消费点原因子类说明key @@ -5460,8 +5316,6 @@ Def_Cost_UseSpeaker:"UseSpeaker", Def_Cost_Revive:"Revive", Def_Cost_FBEncourage:"FBEncourage", -Def_Cost_RefreshTruck:"RefreshTruck", -Def_Cost_FinishTruck:"FinishTruck", Def_Cost_RefreshArrestTask:"RefreshArrestTask", Def_Cost_RefreshTimeShop:"RefreshTimeShop", Def_Cost_ResetGreatMasterSkill:"ResetTalentSkill", @@ -5544,7 +5398,7 @@ Def_GiveMoney_BossFirstKill, # Boss首杀 Def_GiveMoney_21, Def_GiveMoney_Trade, # 交易 -Def_GiveMoney_Truck, # 运镖 +Def_GiveMoney_23, Def_GiveMoney_FreeGoods, # 极品白拿 Def_GiveMoney_BindJadeWheel, # 绑玉转盘 25 Def_GiveMoney_GatherSoulDecompose, #聚魂分解 26 @@ -5581,7 +5435,6 @@ Def_GiveMoney_CollectNPC:"CollectNPC", Def_GiveMoney_BossFirstKill:"BossFirstKill", Def_GiveMoney_Trade:"Trade", -Def_GiveMoney_Truck:"Truck", Def_GiveMoney_FreeGoods:"FreeGoods", Def_GiveMoney_BindJadeWheel:"BindJadeWheel", Def_GiveMoney_GatherSoulDecompose:"GatherSoulDecompose", @@ -5903,8 +5756,9 @@ ntMonsterTime, #按时间掉血的怪物 22 废弃,以是否有配置在时间掉血怪物表为准 ntPriWoodPilePVE, #专属私有木桩 - PVE 23 ntPriWoodPilePVP, #专属私有木桩 - PVP 24 +ntHero, #武将英雄 25 ntMax -) = range(26) +) = range(27) (Def_SkillFuncType_Common, #0为通用技能 @@ -5930,7 +5784,8 @@ Def_SkillFuncType_ShentongSkill, #20 神通技能 Def_SkillFuncType_ElfSkill, #21 精怪技能 Def_SkillFuncType_GatherTheSoul, #22 聚魂技能 -) = range(23) +Def_SkillFuncType_TurnNormaAttack, #23 回合普攻技能 +) = range(24) # 受技能效果完全影响的怪, 对应 Def_BattleRelationType_CommNoBoss Def_SkillAttack_NPCIsBoss = [ Def_NPCType_Ogre_Normal , #平凡小怪 0 # c++ 定义为普通NPC视野刷新 @@ -5945,6 +5800,12 @@ Def_BattleRelationType_PVE, Def_BattleRelationType_CommNoBoss, # 除了(指定)BOSS,可对其释放技能,但是无实际效果 ) = range(0, 4) + +# 近战远程 +AtkDistTypeList = ( +AtkDistType_Short, # 近战 +AtkDistType_Long, # 远程 +) = range(1, 1 + 2) # 经验倍率限制类型 ( @@ -6357,6 +6218,30 @@ TTLTaskType_CrossBoss, # 跨服boss击杀x次 18 ) = range(1, 1 + 18) +# 任务类型定义 +TaskTypeList = ( +TaskType_FBPass, # 副本过关到xxx 1 +TaskType_TreeLV, # 仙树达到X级 2 +TaskType_EquipDecompose, # 分解装备x次 3 +TaskType_CutTree, # 消耗X个战锤 4 +TaskType_LV, # 等级提升至x级 5 +TaskType_RealmLV, # 境界达到X级 6 +TaskType_KillNPC, # 击败X只怪物 7 +TaskType_GetMoney, # 累计获得xx货币 8 +) = range(1, 1 + 8) + +# 任务分组 +TaskGroupList = ( +TaskGroup_Main, # 主线 0 +) = range(1) + +# 任务状态 +TaskStateList = ( +TaskState_None, # 无 0 +TaskState_Doing, # 进行中 1 +TaskState_CanGet, # 可领取 2 +) = range(3) + # 充值点券处理类型 ( CoinType_Gold, # 直接充仙玉 0 -- Gitblit v1.8.0