Olá galera, estou com 2 problemas no gran mas res.
1º Problema - O exura gran mas res não está curando os monstros, apenas players e summons.
2º Problema - O exura gran mas res não está afetando a area PZ, somente fora (a spell é "falada" mas não sofre efeito nenhum sobre area PZ)
Gostaria de fazer com que curasse os monstros, e também que pegasse em area PZ.
mass healing.lua
local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) setCombatParam(combat, COMBAT_PARAM_TARGETPLAYERSORSUMMONS, true) setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE) setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 10, 12) local area = createCombatArea(AREA_CIRCLE3X3) setCombatArea(combat, area) function onCastSpell(cid, var) if isPlayer(cid) == TRUE then if exhaustion.check(cid, 30030) then return FALSE else return doRemoveCondition(cid, CONDITION_PARALYZE), doCombat(cid, combat, var) end else return doRemoveCondition(cid, CONDITION_PARALYZE), doCombat(cid, combat, var) end end
Aguardo, obrigado!