Opa galera, to montando um ot queria um script que ao entrar no GOD, saia os efeitos 29,30,31 na tela inteira, a cada 3 segundos e em qualquer lugar ( Random Position )
Tenho um script que uso aqui apartir do lvl 350+ apareçe uns efeitos, acho que da pra tirar uma base doque é:
function sendEffect(cid)
if isCreature(cid) then
local pos = getCreaturePosition(cid)
local x = math.random(pos.x-1,pos.x+1)
local y = math.random(pos.y-1,pos.y+1)
doSendMagicEffect({x=x,y=y,z=pos.z}, 4)
doSendMagicEffect({x=x,y=y,z=pos.z}, 34)
addEvent(sendEffect,2000,cid)
end
end
function onLogin(cid)
if getPlayerLevel(cid) >= 350 then
sendEffect(cid)
end
registerCreatureEvent(cid, "AdvEffect")
return TRUE
end
function onAdvance(cid, skill, oldLevel, newLevel)
if skill == SKILL__LEVEL and newLevel == 350 then
sendEffect(cid)
end
return TRUE
end