Cura em area

Kevin vem 69
em Scripts

Kevin vem 69

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 24/05/18Posts: 12

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 ???

MathhCunha

Beautiful Life #
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 01/07/13Posts: 50
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

Beautiful Life #