samuel157
/root
- Joined
- Mar 19, 2010
- Messages
- 447
- Solutions
- 3
- Reaction score
- 49
- Location
- São Paulo, Brazil
- GitHub
- Samuel10M
Please Help
Lua:
efeitos = {
[13] = 51, 13 = ID of the vocation that will have the effect, 51 ID of the effect, you can add more than one effect there
}
function onLogin(cid)
for voc, efec in pairs(efeitos) do
if voc == getPlayerVocation(cid) then
doEffect(cid)
break
end
end
return TRUE
end
function doEffect(cid)
local delay = 1
if isCreature(cid) == TRUE then
doSendMagicEffect(getCreaturePosition(cid), efeitos[getPlayerVocation(cid)])
addEvent(doEffect, delay*1000, cid)
end
return TRUE
end