• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.X+ mass healing sending spark block hit effect

johnsamir

Advanced OT User
Joined
Oct 13, 2009
Messages
997
Solutions
6
Reaction score
168
Location
Nowhere
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
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
 
Back
Top