johnsamir
Advanced OT User
as title says
MY SERVER IS TFS 1.4 8.6
i have compare this spellls with others like exura vita, exura sio and i can't see no difference, the others spells does not send block hit spark when used don't know why mass healing does if i remove this combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false) the script does not heals if i change the combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false) to combat:setParameter(COMBAT_PARAM_PASSIVE, false) works BUT THE GLOWING SPARKS ARE NOT BEING Sent
this is the script
MY SERVER IS TFS 1.4 8.6
i have compare this spellls with others like exura vita, exura sio and i can't see no difference, the others spells does not send block hit spark when used don't know why mass healing does if i remove this combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false) the script does not heals if i change the combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false) to combat:setParameter(COMBAT_PARAM_PASSIVE, false) works BUT THE GLOWING SPARKS ARE NOT BEING Sent
this is the script
LUA:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
combat:setParameter(COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
combat:setArea(createCombatArea(AREA_CIRCLE3X3))
local healMonsters = true
function onTargetCreature(creature, target)
local player = creature:getPlayer()
local min = (player:getLevel() / 5) + (player:getMagicLevel() * 4.6) + 100
local max = (player:getLevel() / 5) + (player:getMagicLevel() * 9.6) + 125
if not healMonsters then
local master = target:getMaster()
if target:isMonster() and not master or master and master:isMonster() then
return true
end
end
doTargetCombatHealth(creature:getId(), target, COMBAT_HEALING, min, max, CONST_ME_NONE)
return true
end
combat:setCallback(CALLBACK_PARAM_TARGETCREATURE, "onTargetCreature")
function onCastSpell(creature, variant)
return combat:execute(creature, variant)
end