Lua:
Failure: [Event::loadCallback] scriptInterface == nullptr. scriptid = 4076
The error is due to these scripts, what is wrong?
Lua:
local config = {
['Monday'] = 'Alptramun',
['Tuesday'] = 'Izcandar_the_Banished',
['Friday'] = 'Malofur_Mangrinder',
['Thursday'] = 'Maxxenius',
['Wednesday'] = 'Malofur_Mangrinder',
['Saturday'] = 'Plagueroot',
['Sunday'] = 'Izcandar_the_Banished'
}
local spawnByDay = true
local dreamcourts = GlobalEvent("DreamCourts")
function dreamcourts.onStartup()
if spawnByDay then
print('>> [dream courts] loaded: ' .. config[os.date("%A")])
Game.loadMap('data/world/worldchanges/dream_courts/' .. config[os.date("%A")] ..'.otbm')
else
print('>> dream courts boss: not boss today')
end
return true
end
function dreamcourts.onTime()
if spawnByDay then
print('>> [dream courts] loaded: ' .. config[os.date("%A")])
Game.loadMap('data/world/worldchanges/dream_courts/' .. config[os.date("%A")] ..'.otbm')
else
print('>> dream courts boss: not boss today')
end
return true
end
dreamcourts:register()
Last edited by a moderator: