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