local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_DRAWBLOOD)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_WHIRLWINDSWORD)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 0.5, 0)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
<instant name="Whirlwind" words="exori hur" selftarget="0" aggressive="1" needtarget="1" lvl="15" mana="40" needWeapon="1" soul="0" exhaustion="1" prem="1" enabled="1" script="whirlwind.lua"><vocation name="Knight"/></instant>
xD
eu que fiz 1ª vez