Here's script I made, dunno if that will work. Configuration is pretty self explaining, just fill proper vocation ids and effects.
creaturescripts/scripts/magic-effect.lua
Code:
local effects = {
-- vocation => effect
[1] [b]=>[/b] 15,
[2] [b]=>[/b] 15,
[3] [b]=>[/b] 15,
[4] [b]=>[/b] 15
}
function onThink(interval)
for _, pid in ipairs(getPlayersOnline()) do
local effect = effects[getPlayerVocation(cid)]
if(effect) then
doSendMagicEffect(getCreaturePos(pid), effect)
end
end
return true
end
Thats a global event, don't forget to put this line into globalevents.xml:
Code:
<globalevent name="magic-effect" interval="1" event="script" value="magic-effect.lua"/>
About translator: no problem, I understood most things. Those tools are very accurate last times.