Ir para conteúdo

Featured Replies

Postado

alguem poderia me ajudar a solucionar esse erroSem título.png

Spoiler

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
                addEvent(valid(doCreatureSay), 500, cid, "Hello, it appears that your character has been locked for name violating rules, what new name would you like to have?", TALKTYPE_PRIVATE_NP, true, cid)
        elseif(accountManager == MANAGER_ACCOUNT) then
                addEvent(valid(doCreatureSay), 500, cid, "Hello, type {account} to manage your account. If you would like to start over, type {cancel} anywhere.", TALKTYPE_PRIVATE_NP, true, cid)
        else
                addEvent(valid(doCreatureSay), 500, cid, "Hello, type {account} to create an account or {recover} to recover an account.", TALKTYPE_PRIVATE_NP, true, cid)
        end

        if(not isPlayerGhost(cid)) then
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
        end

        registerCreatureEvent(cid, "Idle")
        registerCreatureEvent(cid, "Mail")
    registerCreatureEvent(cid, "Reflect")
        if(getPlayerOperatingSystem(cid) >= CLIENTOS_OTCLIENT_LINUX) then
                registerCreatureEvent(cid, "ExtendedOpcode")
        end

        registerCreatureEvent(cid, "ReportBug")
        if(config.useFragHandler) then
                registerCreatureEvent(cid, "SkullCheck")
        end

        registerCreatureEvent(cid, "AdvanceSave")
    registerCreatureEvent(cid, "GuildMotd")
    registerCreatureEvent(cid, "ultimo")

    if(config.useFragHandler) then
        registerCreatureEvent(cid, "SkullCheck")
    end
    
registerCreatureEvent(cid, "aol")
    registerCreatureEvent(cid, "ReportBug")
    registerCreatureEvent(cid, "FirstItems")
        return true
end
 

 

 

Postado
Em 08/04/2016 at 13:57, BizaoOtserver disse:

alguem poderia me ajudar a solucionar esse erroSem título.png

  Ocultar conteúdo

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
                addEvent(valid(doCreatureSay), 500, cid, "Hello, it appears that your character has been locked for name violating rules, what new name would you like to have?", TALKTYPE_PRIVATE_NP, true, cid)
        elseif(accountManager == MANAGER_ACCOUNT) then
                addEvent(valid(doCreatureSay), 500, cid, "Hello, type {account} to manage your account. If you would like to start over, type {cancel} anywhere.", TALKTYPE_PRIVATE_NP, true, cid)
        else
                addEvent(valid(doCreatureSay), 500, cid, "Hello, type {account} to create an account or {recover} to recover an account.", TALKTYPE_PRIVATE_NP, true, cid)
        end

        if(not isPlayerGhost(cid)) then
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
        end

        registerCreatureEvent(cid, "Idle")
        registerCreatureEvent(cid, "Mail")
    registerCreatureEvent(cid, "Reflect")
        if(getPlayerOperatingSystem(cid) >= CLIENTOS_OTCLIENT_LINUX) then
                registerCreatureEvent(cid, "ExtendedOpcode")
        end

        registerCreatureEvent(cid, "ReportBug")
        if(config.useFragHandler) then
                registerCreatureEvent(cid, "SkullCheck")
        end

        registerCreatureEvent(cid, "AdvanceSave")
    registerCreatureEvent(cid, "GuildMotd")
    registerCreatureEvent(cid, "ultimo")

    if(config.useFragHandler) then
        registerCreatureEvent(cid, "SkullCheck")
    end
    
registerCreatureEvent(cid, "aol")
    registerCreatureEvent(cid, "ReportBug")
    registerCreatureEvent(cid, "FirstItems")
        return true
end
 

 

 

tenta

 

 

 

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
                addEvent(valid(doCreatureSay), MESSAGE_STATUS_CONSOLE_ORANGE, cid, "Hello, it appears that your character has been locked for name violating rules, what new name would you like to have?", TALKTYPE_PRIVATE_NP, true, cid)
        elseif(accountManager == MANAGER_ACCOUNT) then
                addEvent(valid(doCreatureSay), MESSAGE_STATUS_CONSOLE_ORANGE, cid, "Hello, type {account} to manage your account. If you would like to start over, type {cancel} anywhere.", TALKTYPE_PRIVATE_NP, true, cid)
        else
                addEvent(valid(doCreatureSay), MESSAGE_STATUS_CONSOLE_ORANGE, cid, "Hello, type {account} to create an account or {recover} to recover an account.", TALKTYPE_PRIVATE_NP, true, cid)
        end
        if(not isPlayerGhost(cid)) then
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
        end
        registerCreatureEvent(cid, "Idle")
        registerCreatureEvent(cid, "Mail")
    registerCreatureEvent(cid, "Reflect")
        if(getPlayerOperatingSystem(cid) >= CLIENTOS_OTCLIENT_LINUX) then
                registerCreatureEvent(cid, "ExtendedOpcode")
        end
        registerCreatureEvent(cid, "ReportBug")
        if(config.useFragHandler) then
                registerCreatureEvent(cid, "SkullCheck")
        end
        registerCreatureEvent(cid, "AdvanceSave")
    registerCreatureEvent(cid, "GuildMotd")
    registerCreatureEvent(cid, "ultimo")
    if(config.useFragHandler) then
        registerCreatureEvent(cid, "SkullCheck")
    end
    
registerCreatureEvent(cid, "aol")
    registerCreatureEvent(cid, "ReportBug")
    registerCreatureEvent(cid, "FirstItems")
        return true
end

 

20230912_034613.png.cf49b650c34dd7d7b1f79bd49c70f53c.png

Eu sou um entusiasta da programação apaixonado por ajudar a comunidade open source a crescer. Sempre em busca de novos desafios e oportunidades para contribuir com meu código.  #OpenSource #Programação #Contribuição

 

Postado
  • Autor
Em 14/04/2016 at 15:16, Alexy Brocanello disse:

tenta

 

 

 

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
                addEvent(valid(doCreatureSay), MESSAGE_STATUS_CONSOLE_ORANGE, cid, "Hello, it appears that your character has been locked for name violating rules, what new name would you like to have?", TALKTYPE_PRIVATE_NP, true, cid)
        elseif(accountManager == MANAGER_ACCOUNT) then
                addEvent(valid(doCreatureSay), MESSAGE_STATUS_CONSOLE_ORANGE, cid, "Hello, type {account} to manage your account. If you would like to start over, type {cancel} anywhere.", TALKTYPE_PRIVATE_NP, true, cid)
        else
                addEvent(valid(doCreatureSay), MESSAGE_STATUS_CONSOLE_ORANGE, cid, "Hello, type {account} to create an account or {recover} to recover an account.", TALKTYPE_PRIVATE_NP, true, cid)
        end
        if(not isPlayerGhost(cid)) then
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
        end
        registerCreatureEvent(cid, "Idle")
        registerCreatureEvent(cid, "Mail")
    registerCreatureEvent(cid, "Reflect")
        if(getPlayerOperatingSystem(cid) >= CLIENTOS_OTCLIENT_LINUX) then
                registerCreatureEvent(cid, "ExtendedOpcode")
        end
        registerCreatureEvent(cid, "ReportBug")
        if(config.useFragHandler) then
                registerCreatureEvent(cid, "SkullCheck")
        end
        registerCreatureEvent(cid, "AdvanceSave")
    registerCreatureEvent(cid, "GuildMotd")
    registerCreatureEvent(cid, "ultimo")
    if(config.useFragHandler) then
        registerCreatureEvent(cid, "SkullCheck")
    end
    
registerCreatureEvent(cid, "aol")
    registerCreatureEvent(cid, "ReportBug")
    registerCreatureEvent(cid, "FirstItems")
        return true
end

 

 

mesmo erro :/

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo