Ir para conteúdo

Dragon Ball Z Spells


Narutinhow

Posts Recomendados

Olá :)

Estou aqui mostrando 4 spells de dbz =)

 

1-Genki Dama

2-KameHameHa

3-Ki Blast

4-Ki Wave

 

1-Genki Dama

Crie um arquivo .lua e renomeie-o para genkidama e cole isto.

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 12)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 12)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 12)

 

local combat4 = createCombatObject()

setCombatParam(combat4, COMBAT_PARAM_EFFECT, 12)

 

local combat5 = createCombatObject()

setCombatParam(combat5, COMBAT_PARAM_EFFECT, 12)

 

local combat6 = createCombatObject()

setCombatParam(combat6, COMBAT_PARAM_EFFECT, 12)

 

local combat7 = createCombatObject()

setCombatParam(combat7, COMBAT_PARAM_EFFECT, 12)

 

local combat8 = createCombatObject()

setCombatParam(combat8, COMBAT_PARAM_EFFECT, 12)

 

 

local combat9 = createCombatObject()

setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat9, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)

setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -1.2, -50, -1.2, -0)

 

arr1 = {

{1, 0, 0, 0, 1, 0, 0, 0, 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, 0},

{1, 0, 0, 0, 2, 0, 0, 0, 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, 0},

{1, 0, 0, 0, 1, 0, 0, 0, 1}

}

 

 

arr2 = {

{1, 0, 0, 0, 1, 0, 0, 0, 1},

{0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 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}

}

 

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)

setCombatArea(combat1, area1)

setCombatArea(combat2, area2)

setCombatArea(combat3, area3)

setCombatArea(combat4, area4)

setCombatArea(combat5, area5)

setCombatArea(combat6, area6)

setCombatArea(combat7, area7)

setCombatArea(combat8, area8)

setCombatArea(combat9, area9)

 

local function onCastSpell1(parameters)

doCombat(parameters.cid, parameters.combat1, parameters.var)

mayNotMove(parameters.cid, 1)

end

 

local function onCastSpell2(parameters)

doCombat(parameters.cid, parameters.combat2, parameters.var)

end

 

local function onCastSpell3(parameters)

doCombat(parameters.cid, parameters.combat3, parameters.var)

end

 

local function onCastSpell4(parameters)

doCombat(parameters.cid, parameters.combat4, parameters.var)

end

 

local function onCastSpell5(parameters)

doCombat(parameters.cid, parameters.combat5, parameters.var)

end

 

local function onCastSpell6(parameters)

doCombat(parameters.cid, parameters.combat6, parameters.var)

end

 

local function onCastSpell7(parameters)

doCombat(parameters.cid, parameters.combat7, parameters.var)

end

 

local function onCastSpell8(parameters)

doCombat(parameters.cid, parameters.combat8, parameters.var)

doCreatureSay(parameters.cid, "break", 1)

end

 

local function onCastSpell9(parameters)

doCombat(parameters.cid, parameters.combat9, parameters.var)

end

 

function onCastSpell(cid, var)

 

doSendAnimatedText(getPlayerPosition(cid), "GenkiDama", TEXTCOLOR_ORANGE)

local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5, combat6 = combat6, combat7 = combat7, combat8 = combat8, combat9 = combat9 }

addEvent(onCastSpell1, 0, parameters)

addEvent(onCastSpell2, 200, parameters)

addEvent(onCastSpell3, 400, parameters)

addEvent(onCastSpell4, 600, parameters)

addEvent(onCastSpell5, 800, parameters)

addEvent(onCastSpell6, 1000, parameters)

addEvent(onCastSpell7, 1200, parameters)

addEvent(onCastSpell8, 1400, parameters)

addEvent(onCastSpell9, 1600, parameters)

 

end

 

Cole isto no spells.xml

<instant name="Goku Rage" words="genki dama" lvl="50" maglv="5" manapercent="25" soul="0" exhaustion="1" prem="0" enabled="1" needlearn="0" script="genkidama.lua"><vocation id="4"/></instant>

 

2- Kamehameha

Crie um arquivo .lua e renomeie-o para kame hame ha e cole isto.

local acombat = createCombatObject()

 

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 35)

setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.2, -15, -1.9, -150)

 

arr = {

{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},

{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},

{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},

{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},

{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},

{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 1, 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},

}

local area = createCombatArea(arr)

setCombatArea(acombat, area)

 

function onTargetTile(cid, pos)

doCombat(cid,combat,positionToVariant(pos))

end

 

setCombatCallback(acombat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")

 

function onCastSpell(cid, var)

doPlayerSendTextMessage(cid,16,"Ka")

doPlayerSendTextMessage(cid,16,"Me")

doPlayerSendTextMessage(cid,16,"Ha")

doPlayerSendTextMessage(cid,16,"Me")

doPlayerSendTextMessage(cid,16,"Ha!!")

return doCombat(cid, acombat, var)

end

 

No spells.xml,cole isto:

<instant name="Goku Blast" words="kamehameha" lvl="32" direction="1" maglv="3" mana="250" soul="0" exhaustion="1" prem="1" enabled="1" script="kame hame ha.lua"><vocation name="Knight"/></instant>

 

3-Ki Blast

Crie um arquivo .lua e renomeie para ki blast.lua e cole isto:

local acombat = createCombatObject()

 

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 35)

setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -3.0, -20, -2.6, -250)

 

arr = {

{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},

{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},

{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},

{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0},

}

local area = createCombatArea(arr)

setCombatArea(acombat, area)

 

function onTargetTile(cid, pos)

doCombat(cid,combat,positionToVariant(pos))

end

 

setCombatCallback(acombat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")

 

function onCastSpell(cid, var)

return doCombat(cid, acombat, var)

end

no spells.xml,cole isto:

<instant name="Ki Blast" words="ki blast" aggressive="1" direction="1" lvl="25" maglv="25" mana="250" soul="0" exhaustion="1" prem="0" enabled="1" script="ki blast.lua"><vocation id="1"/><vocation id="5"/></instant>

 

4-Ki Wave

Crie um arquivo .lua e renomeie para ki wave.lua e cole isto:

local acombat = createCombatObject()

 

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 35)

setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -3.0, -20, -2.6, -250)

 

arr = {

{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},

{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},

{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0},

}

local area = createCombatArea(arr)

setCombatArea(acombat, area)

 

function onTargetTile(cid, pos)

doCombat(cid,combat,positionToVariant(pos))

end

 

setCombatCallback(acombat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")

 

function onCastSpell(cid, var)

return doCombat(cid, acombat, var)

end

No spells.xml,cole isto:

<instant name="Ki Wave" words="ki wave" aggressive="1" direction="1" lvl="25" maglv="25" mana="250" soul="0" exhaustion="1" prem="0" enabled="1" script="ki wave.lua"><vocation id="1"/><vocation id="5"/></instant>

 

 

Atenciosamente,

ShadowRock

Editado por ShadowRock
Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...
  • 1 month later...
  • 3 weeks later...
×
×
  • Criar Novo...