Every first login is debugging, can anyone help me with this problem?
login.lua
Solved.
replace this:
So:
login.lua
Lua:
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)
Post automatically merged:
Solved.
replace this:
Lua:
player:sendOutfitWindow()
So:
Lua:
addEvent(function (cid) Player(cid):sendOutfitWindow() end, 1000, player.uid)
Last edited: