Ir para conteúdo

[Pedido] Magia Que Solta Spear Para Todos Os Lados


LucasCastro

Posts Recomendados

so troca o efeito do do distance para spear, e o efeito de area ok,

 

 

setCombatParam(combat, COMBAT_PARAM_EFFECT, 18) Area

setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 8) Distance

local acombat = createCombatObject()
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 18)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 8)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -9.0, 0, -9.5, 0)
local arr = {
{0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 0, 0, 0},
{0, 0, 1, 1, 1, 0, 0},
{0, 1, 1, 3, 1, 1, 0},
{0, 0, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 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)
   doPlayerSay(cid, 'senbonzakura kageyoshi', TALKTYPE_ORANGE_1)
return doCombat(cid, acombat, var)
end

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...