O script está certo, creio que o problema seja a sprite que não está devidamente alinhada.
Mas se quiser tentar realinhar a aura por script (não garanto nada que irá funcionar), tente assim:
local tab = {
[9] = {effect = 27}, -- [vocationID] = {effect = Number}
[10] = {effect = 28},
[11] = {effect = 29},
[12] = {effect = 30}
}
local delay = 3 -- tempo do efeito da aura em segundos
function ariseAura(cid)
local pos = getThingPos(cid)
doSendMagicEffect({x=pos.x+1, y=pos.y, z=pos.z}, tab[getPlayerVocation(cid)].effect)
addEvent(ariseAura, delay * 1000, cid)
return true
end
function onLogin(cid)
if tab[getPlayerVocation(cid)] then
ariseAura(cid)
end
return true
end
Obs: Tente aprender a utilizar o CODE da próxima vez que for postar um script.