| | |
| | |
|
| | | def GetItemPackType(itemType, defaultPack=IPY_GameWorld.rptItem):
|
| | | ## 获取物品类型对应存放的默认背包类型
|
| | | if defaultPack == ShareDefine.rptTreasure:
|
| | | #寻宝背包不做处理
|
| | | return defaultPack
|
| | | for pack, itemTypeList in Def_PackItemTypeList_Dict.items():
|
| | | if itemType in itemTypeList:
|
| | | return pack
|
| | |
| | | Def_Effect_AddDienstgrad = 204 #使用物品获得称号
|
| | | Def_Effect_UseItemGiveZhenQi = 205 #使用道具给予真气
|
| | | Def_Effect_ItemGiveFamilyActivity = 208 #使用道具给予仙盟活跃令
|
| | | Def_Effect_ItemGiveFamilyContribution = 209 #使用道具给予仙盟贡献
|
| | | Def_Effect_TJGAddTime = 210 #增加脱机挂时间
|
| | | Def_Effect_ItemAddExp = 213 #给经验道具
|
| | | Def_Effect_ItemAddLV = 214 #直接升级道具
|
| | |
| | | ) = range( 0, Def_PA_MaxReason )
|
| | |
|
| | | #提示原因及对应的提示mark组成的字典
|
| | | Def_MessageDic = {Def_PASysMessage_NewGuy:"XW_RY_CancelWay01", #攻击新手
|
| | | Def_MessageDic = {Def_PASysMessage_NewGuy:"FairyGrabBossNewPlayer", #攻击新手
|
| | | Def_PASysMessage_IsSafeArea: "CannotAtk01", #安全区域
|
| | | Def_PASysMessage_AttackMode:"AtkModeErr", #攻击模式
|
| | | Def_PASysMessage_CountrySafe:"PlayerPK_Error_GoalLvLow",#国家保护
|
| | | Def_PASysMessage_IsSafeArea_Country:"Cadres_PK_Lost", #国家安全区保护
|
| | | Def_PASysMessage_NewGuyNotPK:"PK_lhs_0", #新手不能PK
|
| | | Def_PASysMessage_NotAttackNewGuy:"PK_lhs_31379", #不能攻击新手
|
| | | Def_PASysMessage_NotAttackNewGuy:"FairyGrabBossNewPlayer", #不能攻击新手
|
| | | Def_PASysMessage_NotAttackFamily:"Old_andyshao_161795", #不能攻击同家族成员
|
| | | Def_PASysMessage_NotAttackTeam:"PK_lhs_861048", #不能攻击队友
|
| | | Def_PASysMessage_AttackNotPK:"PK_lhs_202580", #攻击方PK值过大,不能PK
|
| | |
| | | Map_Player_AreaReward_GetCnt = "AreaAward_GetCnt%s" # 玩家战场区域福利-累计获得次数
|
| | |
|
| | | #---地图NPC---
|
| | | Map_NPC_ActivityBossRebornCount = 'ActivityBossRebornCount_%s' # 活动boss已刷新只数,参数(标识点)
|
| | | Map_NPC_WorldBossLastReBornTick = 'WorldBossLastReBornTick_%s' # 世界boss上次重生时间
|
| | | Map_NPC_WorldBossDeadTick = 'WorldBossDeadTick_%s' # 世界boss死亡时间
|
| | | Map_NPC_RandomMapNPCID = 'RandMapNPCID_%s' # 当前地图随机NPCID, 参数为标识点mark
|
| | |
| | | Def_NPCHurtTypeAll = 4 #所有玩家
|
| | | Def_NPCHurtTypeFaction= 5 #阵营
|
| | | Def_NPCHurtTypeSpecial= 6 #特殊, 指定某些玩家, 玩家ID取ShareDefine.Def_MapItemInfo_SpecOwner
|
| | | Def_NPCHurtTypeFamily = 7 #仙盟 7
|
| | |
|
| | | #掉落归属类型-NPC表的定义
|
| | | DropOwnerType = (
|
| | |
| | | DropOwnerType_MaxHurtPlayer, # 最大伤血玩家, 伤血不会被重置, 仅限玩家 4
|
| | | DropOwnerType_Faction, # 阵营 5
|
| | | DropOwnerType_Special, # 特殊 6
|
| | | ) = range(7)
|
| | | DropOwnerType_Family, # 仙盟 7
|
| | | ) = range(8)
|
| | |
|
| | | #------------------------------------------------
|
| | | #技能类型
|
| | |
| | | Def_PDict_TreasureStartCalcFreeCntTime = "TreasureFreeCntTime_%s" # 寻宝 - 开始计算免费次数CD时间, 参数(寻宝编号)
|
| | |
|
| | | Def_PDict_TreasureFreeTime = "TreasureFreeTime_%s_%s" # 寻宝开始免费计时time值, 参数(寻宝类型, 寻宝索引)
|
| | | Def_PDict_TreasureCount = "TreasureCount_%s" # 寻宝次数, 参数(寻宝类型)
|
| | | Def_PDict_TreasureCount = "TreasureCount_%s_%s" # 寻宝次数, 参数(寻宝类型,是否免费)
|
| | | Def_PDict_TreasureLuck = "TreasureLuck_%s" # 寻宝当前幸运值, 参数(寻宝类型)
|
| | |
|
| | | Def_Player_Dict_LastAutoOpenPackTick = "LastAutoOpenPackTick219_%s" #上一次自动购买的tick<背包类型>
|
| | |
| | | Def_PDict_FirstGoldTry = "FirstGoldTry" # 首充试用状态 0-不可试用 1-可试用 2-已试用
|
| | | Def_PDict_DailyGoldChargeState = "DailyGoldChargeState" # 天天首充活动状态,0-未开启;1-已开启
|
| | | Def_PDict_DailyChargeState = "DailyChargeState" # 当日是否已充值
|
| | | Def_PDict_SuperGiftData = "SuperGiftData" # 超值礼包数据
|
| | | Def_PDict_DailyGoldChargePrizeRecord = "DailyGoldChargePrizeRecord" # 天天首充领奖记录,0-不可领;1-可领;2-已领
|
| | | Def_PDict_DailyGoldChargeCnt = "DailyGoldChargeCnt" # 当日已充值数
|
| | | Def_PDict_SingleGoldGiftIndex = "SingleGoldGiftIndex" # 单日充值多选一礼包领取状态, 0-未领取,>0已领取索引
|
| | |
| | |
|
| | | #仙盟红包
|
| | | Def_PDict_FamilyRedPacketGoldLimit = "FmlRedPacketGoldLimit" # 仙盟钻石红包已发额度
|
| | | Def_PDict_FamilyRedPacketCache = "FamilyRedPacketCache%s" # 仙盟红包待发放记录参数索引
|
| | | Def_PDict_OSRedPacketGrabMoney = "OSRedPacketGrabMoney" # 开服红包已抢数量
|
| | | Def_PDict_OSRedPacketCanGrabCnt = "OSRedPacketCanGrabCnt" # 开服红包可抢次数
|
| | | Def_PDict_OSRedPacketStartTime = "OSRedPacketStartTime" #开服红包开始倒计时时间
|
| | |
| | | TriggerType_OneDamage, # 伤害降低到1点 49
|
| | | ) = range(1, 50)
|
| | |
|
| | | #增强类型定义,参考SkillBoosts下的SkillBoost_文件
|
| | | BoostType_HappenRate = 4 # 触发几率特殊处理 - 增强
|
| | | WeakenType_HappenRate = 104 # 触发几率特殊处理 - 减弱
|
| | |
|
| | | #MapConfig表中的索引定义-----------------------------------------------------------
|
| | | # 表SkillBoostEffDropRate 中的 列表索引定义
|
| | | (
|
| | | Def_SkillBoostTable_SkillTypeID,
|
| | | Def_SkillBoostTable_BoostType,
|
| | | Def_SkillBoostTable_SkillEffectID,
|
| | | Def_SkillBoostTable_ParentSkillTypeID, # 相对Def_SkillBoostTable_SkillTypeID的父技能如召唤
|
| | | Def_SkillBoostTable_MinValue,
|
| | | Def_SkillBoostTable_MaxValue,
|
| | | Def_SkillBoostTable_NotifyValue,
|
| | | ) = range(7)
|
| | |
|
| | | # NPC功能类型定义
|
| | | Def_NPCFuncType_Goblin = 70 # 盗宝哥布林
|
| | |
| | |
|
| | | # 可在跨服中消费的类型列表
|
| | | MergeServerCanCostType = [Def_Cost_UseSpeaker, Def_Cost_Revive, Def_Cost_FBEncourage]
|
| | |
|
| | | #内部仙玉不能用的消费类型列表
|
| | | UnUseInner_CostType = [Def_Cost_BourseBuy, Def_Cost_FamilyRedPacket]
|
| | | # 消费类型对应信息字典{消费类型:[eventName, 中文说明reason_name, 发送给9377的数据是否分消费子类], }
|
| | | # 由于9377那边数据建议所有消费点总和最好不超过500个,故这里对部分发送给对方的数据进行归组为不分子类,或直接归属于商城分组
|
| | | # .使用原价购买的物品统一归属为商城组,消费对应为AutoBuy的也归属于商城分组
|