• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

C++ Auto loot problem with saving

Sparkles

snek
Joined
Mar 1, 2009
Messages
311
Solutions
26
Reaction score
132
Location
Norway, Tromsø
data/creaturescripts/scripts/others/logout.lua
Lua:
function onLogout(player)
    local playerId = player:getId()
    if nextUseStaminaTime[playerId] ~= nil then
        nextUseStaminaTime[playerId] = nil
    end
    player:save()
    return true
end
 
Top