Hi guys, I want to make an event which on every 3 secs do a magic effect on player with specified vocation. I tried to make it on GlobalEvents and CreatureEvents but nothing happens and i don't get any errors. On spells works fine. Please help.
creaturescripts.xml
effect.lua
creaturescripts.xml
Code:
<event type="think" name="Effect" event="script" value="effect.lua"/>
Code:
function onThink(cid, interval)
if getPlayerVocation(cid) == 0 then
doSendMagicEffect(getPlayerPosition(cid), 14)
end
return true
end