AL
dúvida

Aurea por level

Por alissonxzff2, 18 de dez. de 2015 em Scripts

4
1.2k
20 de dezembro de 2015 às 19:17

tenho esse script, só que ele da aura para todos :/

local tab = {
    [6] = {effect = 70},
    [7] = {effect = 70},
    [8] = {effect = 70},
    [9] = {effect = 70},
    [10] = {effect = 70},
    [11] = {effect = 70},-- [vocationID] = {effect = Number}
    [12] = {effect = 70}
}
local delay = 2 -- tempo do efeito da aura em segundos
function ariseAura(cid)
    if isPlayer(cid) then
        doSendMagicEffect(getThingPos(cid), tab[getPlayerVocation(cid)].effect)
        addEvent(ariseAura, delay * 1000, cid)
    end
end
function onLogin(cid)
    if tab[getPlayerVocation(cid)] then
        ariseAura(cid)
    end
    return true
end

da uma força ai galera, plzz


upp

Editado Dezembro 19 por alissonxzff2

LumusL
20 de dezembro de 2015 às 22:17
Melhor resposta


local tab = {

[6] = {effect = 70},

[7] = {effect = 70},

[8] = {effect = 70},

[9] = {effect = 70},

[10] = {effect = 70},

[11] = {effect = 70},-- [vocationID] = {effect = Number}

[12] = {effect = 70}

}

local delay = 2 -- tempo do efeito da aura em segundos

local level = 50 -- coloque o level desejado

function ariseAura(cid)

if isPlayer(cid) then

doSendMagicEffect(getThingPos(cid), tab[getPlayerVocation(cid)].effect)

addEvent(ariseAura, delay * 1000, cid)

end

end

function onLogin(cid)

if tab[getPlayerVocation(cid)] and getPlayerLevel(cid) >= level then

ariseAura(cid)

end

return true

end

 

Editado Dezembro 20 por Lumus

20 de dezembro de 2015 às 22:56

obrigadooo

LumusL
21 de dezembro de 2015 às 11:29

Dúvida sanada, tópico movido.