Good morning, I made this script for the midnight panther respawn only during the night, in game time, but I would like the panther to be removed after a certain time, in this case at 06:00 at dawn. Can anyone help me?
Lua:
local config = {
bossName = "Midnight Panther",
bossPos = Position(32841, 32706, 7),
}
function onThink(creature, interval)
-- for i = 1, #t do
if getWorldTime() >= 0400 then
Game.createMonster(config.bossName, config.bossPos, true, true)
elseif getWorldTime() >= 0600 then
creature:remove()
end
return true
end