This is my Spell
made in 2 min.
data/weapons
weapons.xml
data/weapons/scripts
Burststrike.lua
Download Spell (text file)
<to short>
ScreenShot
made in 2 min.
data/weapons
weapons.xml
Code:
<instant name="Burst Strike" words="Exori Burst" direction="1" lvl="12" maglv="3" mana="60" soul="0" exhaustion="1" prem="1" enabled="1" script="Burststrike.lua"><vocation id="2"/><vocation id="1"/><vocation id="6"/><vocation id="5"/></instant>
data/weapons/scripts
Burststrike.lua
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 32)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.4, -30, -0.5, 0)
local arr = {
{0, 0, 0, 0, 0},
{0, 1, 1, 1, 0},
{0, 1, 2, 1, 0},
{0, 1, 1, 1, 0},
{0, 0, 0, 0, 0}
}
local combatDist = createCombatObject()
setCombatParam(combatDist, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combatDist, COMBAT_PARAM_EFFECT, 32)
setCombatParam(combatDist, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)
setCombatFormula(combatDist, COMBAT_FORMULA_LEVELMAGIC, -0.4, -30, -0.5, 0)
local arr = {
{0, 0, 0, 0, 0},
{0, 1, 1, 1, 0},
{0, 1, 2, 1, 0},
{0, 1, 1, 1, 0},
{0, 0, 0, 0, 0}
}
function onCastSpell(cid, var)
local target = getCreatureTarget(cid)
if(target ~= 0) then
return doCombat(cid, combatDist, numberToVariant(target))
end
return doCombat(cid, combat, var)
end
--Starmio
Download Spell (text file)
<to short>
ScreenShot
Last edited by a moderator: