Hi All,
I have slowly been developing a server in my free time and had decided to add zbizu's ultimate item stats system, but unfortunately upon installation, i am unable to login to my server.
All I have changed is exactly what is outlined in this thread, and have also tried other distro .exe files:
https://otland.net/threads/tfs-1-1-...tem-elements-skills-exp-loot-and-more.229771/
I am getting the following error during login of any characters:
Login.lua
Logout.lua
Any help is greatly appreciated!
I have slowly been developing a server in my free time and had decided to add zbizu's ultimate item stats system, but unfortunately upon installation, i am unable to login to my server.
All I have changed is exactly what is outlined in this thread, and have also tried other distro .exe files:
https://otland.net/threads/tfs-1-1-...tem-elements-skills-exp-loot-and-more.229771/
I am getting the following error during login of any characters:
Login.lua
Code:
function onLogin(player)
local loginStr = "Welcome to " .. configManager.getString(configKeys.SERVER_NAME) .. "!"
if player:getLastLoginSaved() <= 0 then
loginStr = loginStr .. " Please choose your outfit."
player:sendOutfitWindow()
else
if loginStr ~= "" then
player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr)
end
loginStr = string.format("Your last visit was on %s.", os.date("%a %b %d %X %Y", player:getLastLoginSaved()))
end
player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr)
-- Stamina
nextUseStaminaTime[player.uid] = 0
-- Promotion
local vocation = player:getVocation()
local promotion = vocation:getPromotion()
if player:isPremium() then
local value = player:getStorageValue(STORAGEVALUE_PROMOTION)
if not promotion and value ~= 1 then
player:setStorageValue(STORAGEVALUE_PROMOTION, 1)
elseif value == 1 then
player:setVocation(promotion)
end
elseif not promotion then
player:setVocation(vocation:getDemotion())
end
-- Events
player:registerEvent("PlayerDeath")
player:registerEvent("DropLoot")
return true
end
Logout.lua
Code:
function onLogout(player)
local playerId = player:getId()
if nextUseStaminaTime[playerId] ~= nil then
nextUseStaminaTime[playerId] = nil
end
return true
end
Any help is greatly appreciated!
Last edited: