
dscmanga
Membro
-
Registro em
-
Última visita
Solutions
-
dscmanga's post in Portal Task não funciona was marked as the answerPessoal já consegui resolver.
Quem tiver com o mesmo problema no GLOBAL TSF 1.3, procure pelo arquivo BOSS.LUA, fica na pasta data\scripts\movements\quests\killing_in_the_name_of
No final do código remova:
boss:uid(3260, 3261, 3262)
boss:aid(3244)
Vai funcionar 100%.
-
dscmanga's post in Save Server Global 12.60 was marked as the answerConsigui fazer o save server com a função abaixo.
Só criei ela dentro a pasta scrits\globalevents com o nome serversave.lua
serversave.lua
local function ServerSave() if configManager.getBoolean(configKeys.SERVER_SAVE_CLEAN_MAP) then cleanMap() end if configManager.getBoolean(configKeys.SERVER_SAVE_CLOSE) then Game.setGameState(GAME_STATE_CLOSED) end if configManager.getBoolean(configKeys.SERVER_SAVE_SHUTDOWN) then Game.setGameState(GAME_STATE_SHUTDOWN) end -- Updating daily reward next server save. updateGlobalStorage(DailyReward.storages.lastServerSave, os.time()) -- Reset gamestore exp boost count. db.query('UPDATE `player_storage` SET `value` = 0 WHERE `player_storage`.`key` = 51052') end local function ServerSaveWarning(time) -- minus one minutes local remaningTime = tonumber(time) - 60000 if configManager.getBoolean(configKeys.SERVER_SAVE_NOTIFY_MESSAGE) then Game.broadcastMessage("Server is saving game in " .. (remaningTime/60000) .." minute(s). Please logout.", MESSAGE_STATUS_WARNING) end -- if greater than one minute, schedule another warning -- else the next event will be the server save if remaningTime > 60000 then addEvent(ServerSaveWarning, 60000, remaningTime) else addEvent(ServerSave, 60000) end end -- Function that is called by the global events when it reaches the time configured -- interval is the time between the event start and the the effective save, it will send an notify message every minute local serversave = GlobalEvent("serversave") function serversave.onTime(interval) local remaningTime = configManager.getNumber(configKeys.SERVER_SAVE_NOTIFY_DURATION) * 60000 if configManager.getBoolean(configKeys.SERVER_SAVE_NOTIFY_MESSAGE) then Game.broadcastMessage("Server is saving game in " .. (remaningTime/60000) .." minute(s). Please logout.", MESSAGE_STATUS_WARNING) end addEvent(ServerSaveWarning, 60000, remaningTime) -- Schedule next event in 1 minute(60000) return not configManager.getBoolean(configKeys.SERVER_SAVE_SHUTDOWN) end serversave:time("12:00:00") serversave:register() Após isso, no servidor LINUX criar o arquivo restart.sh antes da pasta data e executar o comando chmod +x restart.sh no seu linux restart.sh
#!/bin/bash while true do ./theforgottenserver; done