fiz essa magia na cagada mas fico bom
vá em spells coloque isso no spells.xml : { <instant name="poison strike" words="exori poison" selftarget="1" aggressive="0" lvl="13" maglv="10" mana="20" soul="0" exhaustion="1" prem="0" enabled="1" script="poison strike.lua"><vocation id="2"/><vocation id="1"/><vocation id="3"/><vocation id="4"/><vocation id="6"/><vocation id="5"/><vocation id="8"/><vocation id="7"/><vocation id="9"/><vocation id="10"/><vocation id="11"/><vocation id="12"/></instant> }
copiei qualquer script e mude o nome dele para poison strike.lua
apague tudo e coloque :
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_UNDEFINEDDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_YELLOW_RINGS)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -4.6, -200, -4.2, -200)
local arr = {
{0, 0, 0},
{0, 0, 0},
{0, 0, 0},
{0, 0, 0},
{0, 3, 0}
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Vlw gente