undead mage
Active Member
Does anyone have this command? It's useful for testing something when you need to restart fast instead of the global save
Does anyone have this command? It's useful for testing something when you need to restart fast instead of the global save
<talkaction words="/save" script="serversave.lua" />
function onSay(player, words, param)
if not player:getGroup():getAccess() then
return true
end
if player:getAccountType() < ACCOUNT_TYPE_GOD then
return false
end
saveData()
doPlayerSendTextMessage(cid, 24, "Server saved.")
return false
end
Here is what i use on my test server.
data/talkactions/talkactions.xml
Code:<talkaction words="/save" script="serversave.lua" />
data/talkactions/scripts/serversave.lua
Code:function onSay(player, words, param) if not player:getGroup():getAccess() then return true end if player:getAccountType() < ACCOUNT_TYPE_GOD then return false end saveData() doPlayerSendTextMessage(cid, 24, "Server saved.") return false end
Use this it perfect for you https://otland.net/threads/tfs-1-x-automatic-save-on-exit.239314/
Yeah, i did add the other script to and that was quiet useful!Thanks I can use both!