ralke
(҂ ͠❛ ෴ ͡❛)ᕤ
Hi! I have this script that is supposed to respawn Ghazbaran the Fridays, but it is giving an error onStartUp. I use TFS 1.5 downgraded by Nekiro, any ideas of which part of the script is causing the error? Thanks in advance, here's the script and the console log
Regards!
Lua:
local config = {
['Friday'] = Position(861, 890, 12)
}
local spawnByDay = true
function onStartup()
if spawnByDay then
local npc = Game.createMonster('Ghazbaran', config[os.date('%A')], false, true)
if npc then
npc:setMasterPos(config[os.date('%A')])
end
else
local npc
for k, position in pairs(config) do
npc = Game.createMonster('Ghazbaran', position, false, true)
if npc then
npc:setMasterPos(position)
end
end
end
return true
end
Regards!