KE

Cura em area

Por Kevin vem 69, 02 de jul. de 2020 em Scripts

script
cura
2
1.4k
02 de julho de 2020 às 16:01

Ola boa tarde estou precisando de uma spell de cura em area que N cure os bichos apenas player e sumons, alguem teria por aqui ???

Editado Julho 2 por Kevin vem 69

MathhCunhaM
02 de julho de 2020 às 16:03
Melhor resposta
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_TARGETPLAYERSORSUMMONS, false)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5.6, -200, 3.2, 200)

local arr = {
{0, 0, 1, 1, 1, 0, 0},
{0, 1, 1, 1, 1, 1, 0},
{1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 3, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 0, 0}
}

local area = createCombatArea(arr)
setCombatArea(combat, area)

function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end

Editado Julho 2 por MathhCunha