Dj Pacos Admin
Mensajes : 169 Puntos : 294 Reputación : 56 Fecha de inscripción : 01/05/2011 Edad : 31
| Tema: [SPELL] Holy Fury Jue Mayo 05, 2011 12:24 pm | |
| Primero ve a data/spells.xml y agrega lo siguiente: - Código:
-
<instant name="Holy Mas Fury" words="Holy Fury" lvl="7000" mana="2000" prem="1" blockwalls="1" exhaustion="3500" needlearn="0" script="Holy Fury.lua"> <vocation name="Sorcerer" /> <vocation name="Druid" /> </instant>
Ahora van a data/spells/scipts y copian un archivo .lua y le cambian el nombre a " holy fury" y copian lo siguiente: - Código:
-
local acombat1 = createCombatObject()
local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_EFFECT, 39) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 30) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -1.5, -150, -1.1, -150)
local acombat2 = createCombatObject()
local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat2, COMBAT_PARAM_EFFECT, 39) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -1.0, -90, -1.0, -90)
local acombat3 = createCombatObject()
local combat3 = createCombatObject() setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat3, COMBAT_PARAM_EFFECT, 49) setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 37) setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -1.0, -90, -1.0, -90)
local acombat4 = createCombatObject()
local combat4 = createCombatObject() setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat4, COMBAT_PARAM_EFFECT, 28) setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 37) setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -1.0,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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}, }
arr4 = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0}, {0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 1, 1, 1, 1, 3, 1, 1, 1, 1, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0}, {0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 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) setCombatArea(acombat1, area1) setCombatArea(acombat2, area2) setCombatArea(acombat3, area3) setCombatArea(acombat4, area4)
function onTargetTile1(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
setCombatCallback(acombat1, CALLBACK_PARAM_TARGETTILE, "onTargetTile1")
setCombatCallback(acombat2, CALLBACK_PARAM_TARGETTILE, "onTargetTile2")
setCombatCallback(acombat3, CALLBACK_PARAM_TARGETTILE, "onTargetTile3")
setCombatCallback(acombat4, CALLBACK_PARAM_TARGETTILE, "onTargetTile4")
local function onCastSpell1(parameters) doCombat(parameters.cid, parameters.acombat1, parameters.var) end
local function onCastSpell2(parameters) doCombat(parameters.cid, parameters.acombat2, parameters.var) end
local function onCastSpell3(parameters) doCombat(parameters.cid, parameters.acombat3, parameters.var) end
local function onCastSpell4(parameters) doCombat(parameters.cid, parameters.acombat4, parameters.var) end
function onCastSpell(cid, var) local parameters = { cid = cid, var = var, acombat1 = acombat1, acombat2 = acombat2, acombat3 = acombat3, acombat4 = acombat4 } addEvent(onCastSpell1, 400, parameters) addEvent(onCastSpell2, 400, parameters) addEvent(onCastSpell3, 350, parameters) addEvent(onCastSpell4, 300, parameters) end
Una imagen: Espero que les guste Creditos: 100% Darker
Última edición por Dj Pacos el Jue Mayo 05, 2011 1:32 pm, editado 1 vez | |
|