LU
pedido scripts

(((AO MORRER COM BLESS OU SEM CAI TODOS ITENS AJUDA ))))

Por luan2525, 13 de jun. de 2018 em Scripts

4
1.9k
luan2525L
13 de junho de 2018 às 18:18

OLA PESSOAL ESTOU COM UM PROBLEMA

NO MEU OT. 8.6

E O SEGUINTE VC COLOCA A BLESS E MESMO ASSIM ELE CAI TUDO

DO CORPO E DO LOT COMO SE TIVESSE RED JA TENTEI

OUTROS ARQUIVOS DE OUTROS OT SEM SUSSESO 

JA TENTEI MUDAR NAS FALAS JA ESTOU SEM IDEIAS O 

POR QUE ESTA ACONTECENDO ISSO

SE USAR AOL N CAI NADA AGR SEM CAI TUDO MESMO ..

MUITO OBRIDADO ALGUEM ME AJUDE PF ...

 

NolisN
13 de junho de 2018 às 19:18

Poste seu login.lua (data/creaturescripts/scripts)

luan2525L
14 de junho de 2018 às 11:48

local config = {
    loginMessage = getConfigValue('loginMessage')
}

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")
    registerCreatureEvent(cid, "SkullCheck")
    registerCreatureEvent(cid, "ReportBug")
    return true
end
 

luan2525L
16 de junho de 2018 às 11:10

ESSE EU NAO DEI CONTA DE ARUMAR AINDA ALGUEM AJUDA OBRIGADO