Erikas Kontenis
Excellent OT User
how to do on every attack, if monster attack you gain magic effect or if you attack or your summon attack monsters he gain magic effect.
function onAttack(cid, target)
doSendMagicEffect(getCreaturePosition(cid), 1)
return true
end
<script>
<event name="Hit"/>
</script>
function onStatsChange(cid, attacker, combatee)
if combatee ~= COMBAT_PHYSICALDAMAGE then
if isPlayer(attacker) or isMonster(attacker) then
doSendMagicEffect(getThingPos(cid), 1)
end
end
return true
end