Ir para conteúdo

[PEDIDO] Como Resolver Bug Account Manager Derrubando o Servidor

Featured Replies

Postado
  • Autor
Agora, gabrielzika disse:

@hallanehallex manda seu login.lua 

@gabrielzika 

login.lua

 

local config = {
    loginMessage = getConfigValue('loginMessage'),
    useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
}

function onLogin(cid)

if getPlayerSlotItem(cid, 2).itemid == 11396 then
doPlayerSetExperienceRate(cid, 2)
end
    local loss = getConfigValue('deathLostPercent')
    if(loss ~= nil) then
        doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
exhaustion.set(cid, 102053, -1)
setPlayerStorageValue(cid, 40008, -1)
setPlayerStorageValue(cid, 47002, -1)


    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) .. "."
        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'.")
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Infelizmente o servidor precisou ser resetado, como recompensa deixaremos 1 semana de double EXP!")
    else
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Infelizmente o servidor precisou ser resetado, como recompensa deixaremos 1 semana de double EXP!")
    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, "ShinobiWarCombat")
               registerCreatureEvent(cid, "ShinobiWarDeath")
           registerCreatureEvent(cid, "Arena")
           registerCreatureEvent(cid, "Izanami")
           registerCreatureEvent(cid, "Izanagi")
           registerCreatureEvent(cid, "AntiMc")
           registerCreatureEvent(cid, "UP")
           registerCreatureEvent(cid, "VocationIn")
           registerCreatureEvent(cid, "VocationOut")
           registerCreatureEvent(cid, "Protect")
           registerCreatureEvent(cid, "AmuletoDeath")
           registerCreatureEvent(cid, "AmuletoKill")
           registerCreatureEvent(cid, "Attack2")
           registerCreatureEvent(cid, "Attack")
           registerCreatureEvent(cid, "NonGuild")
           registerCreatureEvent(cid, "PvpNoPoison")
           registerCreatureEvent(cid, "ExameJouninDead")
           registerCreatureEvent(cid, "ExameJouninBoss")
           registerCreatureEvent(cid, "ExameChuninDead")
           registerCreatureEvent(cid, "ExameChuninBoss")
           registerCreatureEvent(cid, "Desbugar")
           registerCreatureEvent(cid, "Outfit")
           registerCreatureEvent(cid, "ProtDeath")
           registerCreatureEvent(cid, "Trocar Voc")
           registerCreatureEvent(cid, "Recompensa")
           registerCreatureEvent(cid, "showVoc") 
           registerCreatureEvent(cid, "ReportBug")
           registerCreatureEvent(cid, "AdvanceSave")
           
           
----------------------------------------------------------
local config = {
"itachi",
"kisame",
"minato",
"raikage",
"madara",
"pain",
"kakuzo",
"hashirama",
}

for i = 1, #config do
    if getVocationInfo(getPlayerVocation(cid)).name:lower() == config:lower() then
        if getPlayerStorageValue(cid, 5) < 1 then
            setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+80000)
            setCreatureMaxMana(cid, getCreatureMaxMana(cid)+80000)
            doCreatureAddMana(cid, getCreatureMaxMana(cid))
            doCreatureAddHealth(cid, getCreatureMaxHealth(cid))
            setPlayerStorageValue(cid, 5, 1)
        end
        break
    end
end

-----------------------------------------------------------
    return true
end
 

  • Respostas 18
  • Visualizações 680
  • Created
  • Última resposta

Top Posters In This Topic

Postado

@hallanehallex

 

local config = {
    loginMessage = getConfigValue('loginMessage'),
    useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
}

function onLogin(cid)

if getPlayerSlotItem(cid, 2).itemid == 11396 then
doPlayerSetExperienceRate(cid, 2)
end
    local loss = getConfigValue('deathLostPercent')
    if(loss ~= nil) then
        doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
exhaustion.set(cid, 102053, -1)
setPlayerStorageValue(cid, 40008, -1)
setPlayerStorageValue(cid, 47002, -1)


    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) .. "."
        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, "ShinobiWarCombat")
               registerCreatureEvent(cid, "ShinobiWarDeath")
           registerCreatureEvent(cid, "Arena")
           registerCreatureEvent(cid, "Izanami")
           registerCreatureEvent(cid, "Izanagi")
           registerCreatureEvent(cid, "AntiMc")
           registerCreatureEvent(cid, "UP")
           registerCreatureEvent(cid, "VocationIn")
           registerCreatureEvent(cid, "VocationOut")
           registerCreatureEvent(cid, "Protect")
           registerCreatureEvent(cid, "AmuletoDeath")
           registerCreatureEvent(cid, "AmuletoKill")
           registerCreatureEvent(cid, "Attack2")
           registerCreatureEvent(cid, "Attack")
           registerCreatureEvent(cid, "NonGuild")
           registerCreatureEvent(cid, "PvpNoPoison")
           registerCreatureEvent(cid, "ExameJouninDead")
           registerCreatureEvent(cid, "ExameJouninBoss")
           registerCreatureEvent(cid, "ExameChuninDead")
           registerCreatureEvent(cid, "ExameChuninBoss")
           registerCreatureEvent(cid, "Desbugar")
           registerCreatureEvent(cid, "Outfit")
           registerCreatureEvent(cid, "ProtDeath")
           registerCreatureEvent(cid, "Trocar Voc")
           registerCreatureEvent(cid, "Recompensa")
           registerCreatureEvent(cid, "showVoc") 
           registerCreatureEvent(cid, "ReportBug")
           registerCreatureEvent(cid, "AdvanceSave")
           
           
----------------------------------------------------------
local config = {
"itachi",
"kisame",
"minato",
"raikage",
"madara",
"pain",
"kakuzo",
"hashirama",
}

for i = 1, #config do
    if getVocationInfo(getPlayerVocation(cid)).name:lower() == config:lower() then
        if getPlayerStorageValue(cid, 5) < 1 then
            setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+80000)
            setCreatureMaxMana(cid, getCreatureMaxMana(cid)+80000)
            doCreatureAddMana(cid, getCreatureMaxMana(cid))
            doCreatureAddHealth(cid, getCreatureMaxHealth(cid))
            setPlayerStorageValue(cid, 5, 1)
        end
        break
    end
end

-----------------------------------------------------------
    return true
end

 

Postado
  • Autor
3 minutos atrás, gabrielzika disse:

@hallanehallex

 


local config = {
    loginMessage = getConfigValue('loginMessage'),
    useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
}

function onLogin(cid)

if getPlayerSlotItem(cid, 2).itemid == 11396 then
doPlayerSetExperienceRate(cid, 2)
end
    local loss = getConfigValue('deathLostPercent')
    if(loss ~= nil) then
        doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
exhaustion.set(cid, 102053, -1)
setPlayerStorageValue(cid, 40008, -1)
setPlayerStorageValue(cid, 47002, -1)


    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) .. "."
        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, "ShinobiWarCombat")
               registerCreatureEvent(cid, "ShinobiWarDeath")
           registerCreatureEvent(cid, "Arena")
           registerCreatureEvent(cid, "Izanami")
           registerCreatureEvent(cid, "Izanagi")
           registerCreatureEvent(cid, "AntiMc")
           registerCreatureEvent(cid, "UP")
           registerCreatureEvent(cid, "VocationIn")
           registerCreatureEvent(cid, "VocationOut")
           registerCreatureEvent(cid, "Protect")
           registerCreatureEvent(cid, "AmuletoDeath")
           registerCreatureEvent(cid, "AmuletoKill")
           registerCreatureEvent(cid, "Attack2")
           registerCreatureEvent(cid, "Attack")
           registerCreatureEvent(cid, "NonGuild")
           registerCreatureEvent(cid, "PvpNoPoison")
           registerCreatureEvent(cid, "ExameJouninDead")
           registerCreatureEvent(cid, "ExameJouninBoss")
           registerCreatureEvent(cid, "ExameChuninDead")
           registerCreatureEvent(cid, "ExameChuninBoss")
           registerCreatureEvent(cid, "Desbugar")
           registerCreatureEvent(cid, "Outfit")
           registerCreatureEvent(cid, "ProtDeath")
           registerCreatureEvent(cid, "Trocar Voc")
           registerCreatureEvent(cid, "Recompensa")
           registerCreatureEvent(cid, "showVoc") 
           registerCreatureEvent(cid, "ReportBug")
           registerCreatureEvent(cid, "AdvanceSave")
           
           
----------------------------------------------------------
local config = {
"itachi",
"kisame",
"minato",
"raikage",
"madara",
"pain",
"kakuzo",
"hashirama",
}

for i = 1, #config do
    if getVocationInfo(getPlayerVocation(cid)).name:lower() == config:lower() then
        if getPlayerStorageValue(cid, 5) < 1 then
            setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+80000)
            setCreatureMaxMana(cid, getCreatureMaxMana(cid)+80000)
            doCreatureAddMana(cid, getCreatureMaxMana(cid))
            doCreatureAddHealth(cid, getCreatureMaxHealth(cid))
            setPlayerStorageValue(cid, 5, 1)
        end
        break
    end
end

-----------------------------------------------------------
    return true
end

 

é pra eu testar esse login.lua ??

Postado

@hallanehallex Testa ae kk

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