- "Ryukend"Miembro
- Mensajes : 120
[Spell] Mage Bomb
Mar Nov 08, 2011 1:14 pm
Bueno Van a su carpeta del ot ya saben xD data/spells/script/attack, se crean un archivo llamado "Mage Bomb" y ponen lo sigiente adentro..
Ya cuando tengan eso van a spells.xml y ponen esto:
Si les Sirvio den +REP y comenten
- Código:
local acombat1 = createCombatObject()
local acombat2 = createCombatObject()
local acombat3 = createCombatObject()
local acombat4 = createCombatObject()
local acombat5 = createCombatObject()
local acombat6 = createCombatObject()
local acombat7 = createCombatObject()
local acombat8 = createCombatObject()
local acombat9 = createCombatObject()
local acombat10 = createCombatObject()
local acombat11 = createCombatObject()
local acombat12 = createCombatObject()
local acombat13 = createCombatObject()
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 37)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 35)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -2.3, -184, -3, -240)
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 36)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 3)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -2.3, -184, -3, -240)
local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 37)
setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 35)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -2.3, -184, -3, -240)
local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_EFFECT, 36)
setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 3)
setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -2.3, -184, -3, -240)
local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_EFFECT, 37)
setCombatParam(combat5, COMBAT_PARAM_DISTANCEEFFECT, 35)
setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -2.3, -184, -3, -240)
local combat6 = createCombatObject()
setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat6, COMBAT_PARAM_EFFECT, 36)
setCombatParam(combat6, COMBAT_PARAM_DISTANCEEFFECT, 3)
setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -2.3, -184, -3, -240)
local combat7 = createCombatObject()
setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat7, COMBAT_PARAM_EFFECT, 37)
setCombatParam(combat7, COMBAT_PARAM_DISTANCEEFFECT, 35)
setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -2.3, -284, -3, -340)
local combat8 = createCombatObject()
setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat8, COMBAT_PARAM_EFFECT, 36)
setCombatParam(combat8, COMBAT_PARAM_DISTANCEEFFECT, 3)
setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -2.3, -284, -3, -340)
local combat9 = createCombatObject()
setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat9, COMBAT_PARAM_EFFECT, 37)
setCombatParam(combat9, COMBAT_PARAM_DISTANCEEFFECT, 35)
setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -2.3, -184, -3, -240)
local combat10 = createCombatObject()
setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat10, COMBAT_PARAM_EFFECT, 36)
setCombatParam(combat10, COMBAT_PARAM_DISTANCEEFFECT, 3)
setCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, -2.3, -184, -3, -240)
local combat11 = createCombatObject()
setCombatParam(combat11, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat11, COMBAT_PARAM_EFFECT, 37)
setCombatParam(combat11, COMBAT_PARAM_DISTANCEEFFECT, 35)
setCombatFormula(combat11, COMBAT_FORMULA_LEVELMAGIC, -2.3, -184, -3, -240)
local combat12 = createCombatObject()
setCombatParam(combat12, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat12, COMBAT_PARAM_EFFECT, 36)
setCombatParam(combat12, COMBAT_PARAM_DISTANCEEFFECT, 3)
setCombatFormula(combat12, COMBAT_FORMULA_LEVELMAGIC, -2.3, -584, -3, -740)
local combat13 = createCombatObject()
setCombatParam(combat13, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat13, COMBAT_PARAM_EFFECT, 49)
setCombatParam(combat13, COMBAT_PARAM_DISTANCEEFFECT, 30)
setCombatFormula(combat13, COMBAT_FORMULA_LEVELMAGIC, -2.3, -584, -3, -740)
local combat14 = createCombatObject()
setCombatParam(combat14, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat14, COMBAT_PARAM_EFFECT, 39)
setCombatFormula(combat14, COMBAT_FORMULA_LEVELMAGIC, -2.3, -584, -3, -740)
local combat15 = createCombatObject()
setCombatParam(combat15, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat15, COMBAT_PARAM_EFFECT, 39)
setCombatFormula(combat15, COMBAT_FORMULA_LEVELMAGIC, -2.3, -584, -3, -740)
local combat16 = createCombatObject()
setCombatParam(combat16, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat16, COMBAT_PARAM_EFFECT, 11)
setCombatFormula(combat16, COMBAT_FORMULA_LEVELMAGIC, -2.3, -584, -3, -740)
local combat17 = createCombatObject()
setCombatParam(combat17, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat17, COMBAT_PARAM_EFFECT, 11)
setCombatFormula(combat17, COMBAT_FORMULA_LEVELMAGIC, -2.3, -584, -3, -740)
local combat18 = createCombatObject()
setCombatParam(combat18, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat18, COMBAT_PARAM_EFFECT, 6)
setCombatFormula(combat18, COMBAT_FORMULA_LEVELMAGIC, -2.3, -584, -3, -740)
local combat19 = createCombatObject()
setCombatParam(combat19, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat19, COMBAT_PARAM_EFFECT, 6)
setCombatFormula(combat19, COMBAT_FORMULA_LEVELMAGIC, -2.3, -584, -3, -740)
local combat20 = createCombatObject()
setCombatParam(combat20, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat20, COMBAT_PARAM_EFFECT, 6)
setCombatFormula(combat20, COMBAT_FORMULA_LEVELMAGIC, -2.3, -584, -3, -740)
arr1 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 3, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
}
arr2 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
}
local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
local area3 = createCombatArea(arr3)
local area4 = createCombatArea(arr4)
local area5 = createCombatArea(arr5)
local area6 = createCombatArea(arr6)
local area7 = createCombatArea(arr7)
local area8 = createCombatArea(arr8)
local area9 = createCombatArea(arr9)
local area10 = createCombatArea(arr10)
local area11 = createCombatArea(arr11)
local area12 = createCombatArea(arr12)
local area13 = createCombatArea(arr13)
local area14 = createCombatArea(arr14)
local area15 = createCombatArea(arr15)
local area16 = createCombatArea(arr16)
local area17 = createCombatArea(arr17)
local area18 = createCombatArea(arr18)
local area19 = createCombatArea(arr19)
local area20 = createCombatArea(arr20)
setCombatArea(acombat1, area1)
setCombatArea(acombat2, area2)
setCombatArea(acombat3, area3)
setCombatArea(acombat4, area4)
setCombatArea(acombat5, area5)
setCombatArea(acombat6, area6)
setCombatArea(acombat7, area7)
setCombatArea(acombat8, area8)
setCombatArea(acombat9, area9)
setCombatArea(acombat10, area10)
setCombatArea(acombat11, area11)
setCombatArea(acombat12, area12)
setCombatArea(acombat13, area13)
setCombatArea(combat14, area14)
setCombatArea(combat15, area15)
setCombatArea(combat16, area16)
setCombatArea(combat17, area17)
setCombatArea(combat18, area18)
setCombatArea(combat19, area19)
setCombatArea(combat20, area20)
function onTargetTile(cid, pos)
doCombat(cid,combat1,positionToVariant(pos))
end
function onTargetTile2(cid, pos)
doCombat(cid,combat2,positionToVariant(pos))
end
function onTargetTile3(cid, pos)
doCombat(cid,combat3,positionToVariant(pos))
end
function onTargetTile4(cid, pos)
doCombat(cid,combat4,positionToVariant(pos))
end
function onTargetTile5(cid, pos)
doCombat(cid,combat5,positionToVariant(pos))
end
function onTargetTile6(cid, pos)
doCombat(cid,combat6,positionToVariant(pos))
end
function onTargetTile7(cid, pos)
doCombat(cid,combat7,positionToVariant(pos))
end
function onTargetTile8(cid, pos)
doCombat(cid,combat8,positionToVariant(pos))
end
function onTargetTile9(cid, pos)
doCombat(cid,combat9,positionToVariant(pos))
end
function onTargetTile10(cid, pos)
doCombat(cid,combat10,positionToVariant(pos))
end
function onTargetTile11(cid, pos)
doCombat(cid,combat11,positionToVariant(pos))
end
function onTargetTile12(cid, pos)
doCombat(cid,combat12,positionToVariant(pos))
end
function onTargetTile13(cid, pos)
doCombat(cid,combat13,positionToVariant(pos))
end
setCombatCallback(acombat1, CALLBACK_PARAM_TARGETTILE, "onTargetTile")
setCombatCallback(acombat2, CALLBACK_PARAM_TARGETTILE, "onTargetTile2")
setCombatCallback(acombat3, CALLBACK_PARAM_TARGETTILE, "onTargetTile3")
setCombatCallback(acombat4, CALLBACK_PARAM_TARGETTILE, "onTargetTile4")
setCombatCallback(acombat5, CALLBACK_PARAM_TARGETTILE, "onTargetTile5")
setCombatCallback(acombat6, CALLBACK_PARAM_TARGETTILE, "onTargetTile6")
setCombatCallback(acombat7, CALLBACK_PARAM_TARGETTILE, "onTargetTile7")
setCombatCallback(acombat8, CALLBACK_PARAM_TARGETTILE, "onTargetTile8")
setCombatCallback(acombat9, CALLBACK_PARAM_TARGETTILE, "onTargetTile9")
setCombatCallback(acombat10, CALLBACK_PARAM_TARGETTILE, "onTargetTile10")
setCombatCallback(acombat11, CALLBACK_PARAM_TARGETTILE, "onTargetTile11")
setCombatCallback(acombat12, CALLBACK_PARAM_TARGETTILE, "onTargetTile12")
setCombatCallback(acombat13, CALLBACK_PARAM_TARGETTILE, "onTargetTile13")
local function onCastSpell1(parameters)
doCombat(parameters.cid, acombat1, parameters.var)
end
local function onCastSpell2(parameters)
doCombat(parameters.cid, acombat2, parameters.var)
end
local function onCastSpell3(parameters)
doCombat(parameters.cid, acombat3, parameters.var)
end
local function onCastSpell4(parameters)
doCombat(parameters.cid, acombat4, parameters.var)
end
local function onCastSpell5(parameters)
doCombat(parameters.cid, acombat5, parameters.var)
end
local function onCastSpell6(parameters)
doCombat(parameters.cid, acombat6, parameters.var)
end
local function onCastSpell7(parameters)
doCombat(parameters.cid, acombat7, parameters.var)
end
local function onCastSpell8(parameters)
doCombat(parameters.cid, acombat8, parameters.var)
end
local function onCastSpell9(parameters)
doCombat(parameters.cid, acombat9, parameters.var)
end
local function onCastSpell10(parameters)
doCombat(parameters.cid, acombat10, parameters.var)
end
local function onCastSpell11(parameters)
doCombat(parameters.cid, acombat11, parameters.var)
end
local function onCastSpell12(parameters)
doCombat(parameters.cid, acombat12, parameters.var)
end
local function onCastSpell13(parameters)
doCombat(parameters.cid, acombat13, parameters.var)
end
local function onCastSpell14(parameters)
doCombat(parameters.cid, combat14, parameters.var)
end
local function onCastSpell15(parameters)
doCombat(parameters.cid, combat15, parameters.var)
end
local function onCastSpell16(parameters)
doCombat(parameters.cid, combat16, parameters.var)
end
local function onCastSpell17(parameters)
doCombat(parameters.cid, combat17, parameters.var)
end
local function onCastSpell18(parameters)
doCombat(parameters.cid, combat18, parameters.var)
end
local function onCastSpell19(parameters)
doCombat(parameters.cid, combat19, parameters.var)
end
local function onCastSpell20(parameters)
doCombat(parameters.cid, combat20, parameters.var)
end
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var}
addEvent(onCastSpell1, 0, parameters)
addEvent(onCastSpell2, 100, parameters)
addEvent(onCastSpell3, 100, parameters)
addEvent(onCastSpell4, 200, parameters)
addEvent(onCastSpell5, 200, parameters)
addEvent(onCastSpell6, 300, parameters)
addEvent(onCastSpell7, 300, parameters)
addEvent(onCastSpell8, 400, parameters)
addEvent(onCastSpell9, 400, parameters)
addEvent(onCastSpell10, 500, parameters)
addEvent(onCastSpell11, 500, parameters)
addEvent(onCastSpell12, 600, parameters)
addEvent(onCastSpell13, 600, parameters)
addEvent(onCastSpell14, 650, parameters)
addEvent(onCastSpell15, 750, parameters)
addEvent(onCastSpell16, 850, parameters)
addEvent(onCastSpell17, 900, parameters)
addEvent(onCastSpell18, 800, parameters)
addEvent(onCastSpell19, 850, parameters)
addEvent(onCastSpell20, 900, parameters)
return TRUE
end
Ya cuando tengan eso van a spells.xml y ponen esto:
- Código:
<instant name="Mage Bomb" words="mage bomb" lvl="5000" manapercent="15" prem="0" direction="1" exhaustion="1500" needlearn="0" script="attack/mage bomb.lua">
<vocation name="Sorcerer" />
<vocation name="Master Sorcerer" />
Si les Sirvio den +REP y comenten
Permisos de este foro:
No puedes responder a temas en este foro.