• 01-04.05.2026 - DOUBLE EXP / SKILL EVENT!

tfs 0.3.6pl1 help

matek53

Active User
Zarejestrowany
Dołączył
Sierpień 12, 2009
Posty
53
Liczba reakcji
0
[29/08/2010 13:53:15] >> Forgotten server Online!

[29/08/2010 13:53:32] Test Ed has logged in.

[29/08/2010 13:53:32] [Error - CreatureScript Interface]
[29/08/2010 13:53:32] buffer
[29/08/2010 13:53:32] Description:
[29/08/2010 13:53:32] [string "loadBuffer"]:3: attempt to compare nil with number

[29/08/2010 13:54:18] [Error - CreatureScript Interface]
[29/08/2010 13:54:18] buffer
[29/08/2010 13:54:18] Description:
[29/08/2010 13:54:18] [string "loadBuffer"]:4: attempt to compare nil with number
[29/08/2010 13:54:18] Test Ed has logged out.
[29/08/2010 13:54:20] Test Ms has logged in.

[29/08/2010 13:54:20] [Error - CreatureScript Interface]
[29/08/2010 13:54:20] buffer
[29/08/2010 13:54:20] Description:
[29/08/2010 13:54:20] [string "loadBuffer"]:3: attempt to compare nil with number

[29/08/2010 13:55:32] [Error - CreatureScript Interface]
[29/08/2010 13:55:32] buffer
[29/08/2010 13:55:32] Description:
[29/08/2010 13:55:32] [string "loadBuffer"]:4: attempt to compare nil with number
[29/08/2010 13:55:32] Test Ms has logged out.
co jest niewie co sie dzieje
 
Odp: tfs 0.3.6pl1 help

Prawdopodobnie to przez login.lua

spr?buj podmieni? sw?j login.lua z tym:
Kod:
local config = {
        loginMessage = getConfigValue('loginMessage'),
        useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
 }
 
 function onLogin(cid)
        local loss = getConfigValue('deathLostPercent')
        if(loss ~= nil) then
                doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
        end
 
        local accountManager = getPlayerAccountManager(cid)
        if(accountManager == MANAGER_NONE) then
                local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
                if(lastLogin > 0) then
                        doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
                        str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
                else
                        str = str .. " Please choose your outfit."
                        doPlayerSendOutfitWindow(cid)
                end
 
                doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
        elseif(accountManager == MANAGER_NAMELOCK) then
                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")
        elseif(accountManager == MANAGER_ACCOUNT) then
                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")
        else
                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")
        end
 
        if(not isPlayerGhost(cid)) then
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
        end
 
        registerCreatureEvent(cid, "Mail")
        registerCreatureEvent(cid, "GuildMotd")
 
        registerCreatureEvent(cid, "Idle")
        if(config.useFragHandler) then
                registerCreatureEvent(cid, "SkullCheck")
        end
 
        registerCreatureEvent(cid, "ReportBug")
        registerCreatureEvent(cid, "AdvanceSave")
        return true
 end
 
Back
Do góry