-- Saving-related
houseDataStorage = "binary"
saveGlobalStorage = true
storePlayerDirection = false
savePlayerData = true
I believe the player or it's userdata is temporarily stored in memory and then sent to the database for storage when the players logs out, dies or there is a server save.Unsure of your server version.. but in my config.lua I have this
If you set savePlayerData to false.. then when the player logs out/dies/disconnects, there would be no changes to the base character?Code:-- Saving-related houseDataStorage = "binary" saveGlobalStorage = true storePlayerDirection = false savePlayerData = true
Right, so if you set it to not save playerData.. if would effectively keep the player at a 'default' setting forever.. no matter what happens to the character while it's online? Once it logs off, or back in, it would always come back online with the default information set-up beforehandI believe the player or it's userdata is temporarily stored in memory and then sent to the database for storage when the players logs out, dies or there is a server save.
I am just assuming this is the case because when the server crashes those gained items, lvls etc are lost because they were never sent to the database to be saved.
Just don't let them dieHello Otland SUpport
i want make when Character die restore all Items-level-skills-everything (Server War)
can anyone help me ?
local positionSpawn = {x=1000, y=1000, z=7}
function onPrepareDeath(creature, killer)
-- heal him
creature:addHealth(creature:getMaxHealth())
-- maybe add him full mana?
-- teleport to spawn
creature:teleportTo(positionSpawn, true)
-- return false = BLOCK DEATH! :)
return false
end