- chanfles97Miembro
- Mensajes : 25
[Spells] Death Rombo ^^
Lun Abr 23, 2012 6:36 pm
Bueno, Mi primer Post en este Foro ^^
Bueno, estos son 4 Spells que postiare 1 a 1 totalmente hechos por mi (:
La primera se llama Death Rombo como dice el titulo.
Imagenes ^^:
Script! ^^:
Spells.XML ^^:
Bueno Ojala les guste ^^
Bueno, estos son 4 Spells que postiare 1 a 1 totalmente hechos por mi (:
La primera se llama Death Rombo como dice el titulo.
Imagenes ^^:
- Spoiler:
Script! ^^:
- Spoiler:
- Código:
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 49)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 27)
function getCombat1Formulas(cid, lv, maglv)
local formula_min = -((lv*3.50 + maglv*1.1) * 1.5)
local formula_max = -((lv*3.75 + maglv*1.3) * 2.3)
if(formula_max < formula_min) then
local tmp = formula_max
formula_max = formula_min
formula_min = tmp
end
return formula_min, formula_max
end
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 52)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 27)
function getCombat2Formulas(cid, lv, maglv)
local formula_min = -((lv*3.50 + maglv*1.1) * 1.5)
local formula_max = -((lv*3.75 + maglv*1.3) * 2.3)
if(formula_max < formula_min) then
local tmp = formula_max
formula_max = formula_min
formula_min = tmp
end
return formula_min, formula_max
end
local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 54)
setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 31)
function getCombat3Formulas(cid, lv, maglv)
local formula_min = -((lv*3.50 + maglv*1.1) * 1.5)
local formula_max = -((lv*3.75 + maglv*1.3) * 2.3)
if(formula_max < formula_min) then
local tmp = formula_max
formula_max = formula_min
formula_min = tmp
end
return formula_min, formula_max
end
local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_EFFECT, 33)
setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 30)
function getCombat4Formulas(cid, lv, maglv)
local formula_min = -((lv*3.50 + maglv*1.1) * 1.5)
local formula_max = -((lv*3.75 + maglv*1.3) * 2.3)
if(formula_max < formula_min) then
local tmp = formula_max
formula_max = formula_min
formula_min = tmp
end
return formula_min, formula_max
end
local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_EFFECT, 53)
setCombatParam(combat5, COMBAT_PARAM_DISTANCEEFFECT, 30)
function getCombat5Formulas(cid, lv, maglv)
local formula_min = -((lv*1.50 + maglv*1.1) * 1.5)
local formula_max = -((lv*1.75 + maglv*1.3) * 2.3)
if(formula_max < formula_min) then
local tmp = formula_max
formula_max = formula_min
formula_min = tmp
end
return formula_min, formula_max
end
local combat6 = createCombatObject()
setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat6, COMBAT_PARAM_EFFECT, 53)
setCombatParam(combat6, COMBAT_PARAM_DISTANCEEFFECT, 30)
function getCombat6Formulas(cid, lv, maglv)
local formula_min = -((lv*1.50 + maglv*1.1) * 1.5)
local formula_max = -((lv*1.75 + maglv*1.3) * 2.3)
if(formula_max < formula_min) then
local tmp = formula_max
formula_max = formula_min
formula_min = tmp
end
return formula_min, formula_max
end
local combat7 = createCombatObject()
setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat7, COMBAT_PARAM_EFFECT, 53)
setCombatParam(combat7, COMBAT_PARAM_DISTANCEEFFECT, 30)
function getCombat7Formulas(cid, lv, maglv)
local formula_min = -((lv*1.50 + maglv*1.1) * 1.5)
local formula_max = -((lv*1.75 + maglv*1.3) * 2.3)
if(formula_max < formula_min) then
local tmp = formula_max
formula_max = formula_min
formula_min = tmp
end
return formula_min, formula_max
end
local combat8 = createCombatObject()
setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat8, COMBAT_PARAM_EFFECT, 53)
setCombatParam(combat8, COMBAT_PARAM_DISTANCEEFFECT, 30)
function getCombat8Formulas(cid, lv, maglv)
local formula_min = -((lv*1.50 + maglv*1.1) * 1.5)
local formula_max = -((lv*1.75 + maglv*1.3) * 2.3)
if(formula_max < formula_min) then
local tmp = formula_max
formula_max = formula_min
formula_min = tmp
end
return formula_min, formula_max
end
setCombatCallback(combat1, CALLBACK_PARAM_LEVELMAGICVALUE, "getCombat1Formulas")
setCombatCallback(combat2, CALLBACK_PARAM_LEVELMAGICVALUE, "getCombat2Formulas")
setCombatCallback(combat3, CALLBACK_PARAM_LEVELMAGICVALUE, "getCombat3Formulas")
setCombatCallback(combat4, CALLBACK_PARAM_LEVELMAGICVALUE, "getCombat4Formulas")
setCombatCallback(combat5, CALLBACK_PARAM_LEVELMAGICVALUE, "getCombat5Formulas")
setCombatCallback(combat6, CALLBACK_PARAM_LEVELMAGICVALUE, "getCombat6Formulas")
setCombatCallback(combat7, CALLBACK_PARAM_LEVELMAGICVALUE, "getCombat7Formulas")
setCombatCallback(combat8, CALLBACK_PARAM_LEVELMAGICVALUE, "getCombat8Formulas")
local area1 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 0, 0, 0},
{0, 0, 1, 0, 0, 0, 1, 0, 0},
{0, 1, 0, 1, 3, 1, 0, 1, 0},
{0, 0, 1, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 1, 1, 1, 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},
}
local area6 = {
{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, 3, 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},
}
local area7 = {
{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, 3, 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},
}
local area8 = {
{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, 3, 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},
}
setCombatArea(combat1, createCombatArea(area1))
setCombatArea(combat2, createCombatArea(area2))
setCombatArea(combat3, createCombatArea(area3))
setCombatArea(combat4, createCombatArea(area4))
setCombatArea(combat5, createCombatArea(area5))
setCombatArea(combat6, createCombatArea(area6))
setCombatArea(combat7, createCombatArea(area7))
setCombatArea(combat8, createCombatArea(area8))
function onCastSpell(cid, var)
addEvent(doCombat, 0, cid, combat1, var)
addEvent(doCombat, 400, cid, combat2, var)
addEvent(doCombat, 700, cid, combat3, var)
addEvent(doCombat, 1200, cid, combat4, var)
addEvent(doCombat, 200, cid, combat5, var)
addEvent(doCombat, 300, cid, combat6, var)
addEvent(doCombat, 800, cid, combat7, var)
addEvent(doCombat, 1000, cid, combat8, var)
return TRUE
end
Spells.XML ^^:
- Spoiler:
- Código:
<instant name="Death Rombo" words="Death Rombo" lvl="800" mana="500" prem="1" range="9" casterTargetOrDirection="1" blockwalls="1" exhaustion="1500" needlearn="0" script="death rombo.lua">
<vocation name="Sorcerer"/>
<vocation name="Master Sorcerer"/>
<vocation name="Druid"/>
<vocation name="Elder Druid"/>
<vocation name="Paladin"/>
<vocation name="Royal Paladin"/>
<vocation name="Knight"/>
<vocation name="Elite Knight"/>
</instant>
Bueno Ojala les guste ^^
Creditos 100% Mii ^^
- Carlos [Zipto]Aportador
- Mensajes : 233
Re: [Spells] Death Rombo ^^
Lun Abr 23, 2012 8:54 pm
o.o Pon creditos we
- chanfles97Miembro
- Mensajes : 25
Re: [Spells] Death Rombo ^^
Mar Abr 24, 2012 5:38 am
@Up Ya lo arregle ^^ Gracias se me había olvidado ^^
Edit: Zipto, fíjate en las dos primeras lineas, dice, "Totalmente hechos por mi" ajskdjhaksjdhaksjda ^^
Edit: Zipto, fíjate en las dos primeras lineas, dice, "Totalmente hechos por mi" ajskdjhaksjdhaksjda ^^
Permisos de este foro:
No puedes responder a temas en este foro.