Ir para conteúdo

Featured Replies

Postado

Boa tarde galera do TK :)
Bom estou quebrando a cabeça faz umas 2 horas ja, tentando tirar o heal do level up, ja desativei no creaturescripts, procurei em outro lugar mas não achei, desativei mas mesmo assim ele continua healando se alguem souber oque fazer, tfs 1.0 versão do servidor 10.80


local config = {


    heal = false,
    save = true,
    effect = false
}

function onAdvance(cid, skill, oldLevel, newLevel)
    if skill ~= 8 or newLevel <= oldLevel then
        return true
    end

    local player = Player(cid)
    if config.effect then
        player:getPosition():sendMagicEffect(math.random(CONST_ME_FIREWORK_YELLOW, CONST_ME_FIREWORK_BLUE))
        player:say('LEVEL UP!', TALKTYPE_MONSTER_SAY)
    end

    if config.heal then
        player:addHealth(player:getMinHealth())
    end

    if config.save then
        player:save()
    end
    return true
end
  • Respostas 5
  • Visualizações 747
  • Created
  • Última resposta

Top Posters In This Topic

Postado
  • Autor

Apaga toda essa parte
 

    if config.heal then
        player:addHealth(player:getMinHealth())
    end

local config = {
    heal = false,
    save = true,
    effect = false
}

function onAdvance(cid, skill, oldLevel, newLevel)
    if skill ~= 8 or newLevel <= oldLevel then
        return true
    end

    local player = Player(cid)
    if config.effect then
        player:getPosition():sendMagicEffect(math.random(CONST_ME_FIREWORK_YELLOW, CONST_ME_FIREWORK_BLUE))
        player:say('LEVEL UP!', TALKTYPE_MONSTER_SAY)
    end

    if config.save then
        player:save()
    end
    return true
end



apaguei e continuou a mesma coisa

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 520.1k

Informação Importante

Confirmação de Termo