最近修复了一个比较完整无错的版本,于是想学习新增一个BOSS到某地图上,开始用了很多方法,后端总是出现这个错误
script error:
attempt to index field '?' (a nil value)
the stack trace is:
C::<NA>
Lua:upvalue:getBossRefreshTime(@./data/functions/systems/darkhallboss/darkhallbosssystem.lua:163)
Lua:upvalue:checkCondition(@./data/functions/systems/darkhallboss/darkhallbosssystem.lua:212)
Lua:local:func(@./data/functions/systems/darkhallboss/darkhallbosssystem.lua:373)
Lua::<NA>(@./data/functions/utils/net/netmsgdispatcher.lua:28)
root call is : OnNetMsg
我新增的BOSS
DarkHallBossConfig = {
[86] = {
id = 86,
refreshTime = 5400,
fbid = 530941,
bossId = 9988186,
enterPos = {{posX=9,posY=29},{posX=10,posY=30},{posX=33,posY=30},{posX=35,posY=31},{posX=38,posY=13},{posX=40,posY=13},{posX=9,posY=11},{posX=7,posY=13}},
belongReward = 88888880,
sceneName = “孙猴子”,
shieldReward = 1653347,
enterNoticeId = 10018,
emailbtNoticeId = 10027,
emailnrNoticeId = 10028,
refreshNoticeId = 10029,
zsLevel = 5,
level = 80,
},
}
MonstersConfig = {
[9988186] = {
id = 9988186,
name = “孙猴子”,
type = 1,
hp = 99999,
atk = 9328,
def = 9328,
res = 9328,
tough = 9999,
stunRes = 9999,
critDamage = 9999,
penetRate = 9999,
skill = 1,
ai = 20072,
},
}
InstanceConfig={
[530941] = {
fbid = 530941,
type = 43,
totalTime = 0,
closeTime = 0,
remainTime = 0,
isPublic = 1,
scenes = {7028},
templateType = 0,
name = “水帘洞”,
desc = “”,
isSaveBlood = 0,
showZhanLing = 1,
findPath = 1,
},
}
这是我在后端配置的新增BOSS。
前端配置没问题。
可是无法获取这个BOSS ID!难道DOSSID是被配置在网关启动器里了吗?
还请知道新增BOSS的大佬告知一二!
谢谢!
dadalianlian.serv00.net