Guralztr
Member
- Joined
- Dec 4, 2010
- Messages
- 79
- Reaction score
- 12
Hello, does anyone know what this error in TFS 1.7 might be about?
This is login.lua from this TFS
Player not login correctly
LUA:
on_read: bad method
Admin has logged in.
[Warning - data/creaturescripts/scripts/login.lua] Invoking Creature:getStorageValue will return nil to indicate absence in the future. Please update your scripts accordingly.
[Warning - data/creaturescripts/scripts/login.lua] Invoking Creature:getStorageValue will return nil to indicate absence in the future. Please update your scripts accordingly.
This is login.lua from this TFS
LUA:
function onLogin(player)
local serverName = configManager.getString(configKeys.SERVER_NAME)
local loginStr = "Welcome to " .. serverName .. "!"
if player:getLastLoginSaved() <= 0 then
loginStr = loginStr .. " Please choose your outfit."
player:sendOutfitWindow()
else
player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr)
loginStr = string.format("Your last visit in %s: %s.", serverName, os.date("%d %b %Y %X", player:getLastLoginSaved()))
end
player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr)
-- Promotion
local vocation = player:getVocation()
local promotion = vocation:getPromotion()
if player:isPremium() then
local value = player:getStorageValue(PlayerStorageKeys.promotion)
if value and value == 1 then
player:setVocation(promotion)
end
elseif not promotion then
player:setVocation(vocation:getDemotion())
end
-- Update client stats
player:updateClientExpDisplay()
player:sendHotkeyPreset()
player:disableLoginMusic()
-- achievements points for highscores
if not player:getStorageValue(PlayerStorageKeys.achievementsTotal) then
player:setStorageValue(PlayerStorageKeys.achievementsTotal, player:getAchievementPoints())
end
-- Events
player:registerEvent("PlayerDeath")
player:registerEvent("DropLoot")
player:registerEvent("BestiaryKills")
return true
end
Player not login correctly