• 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!

Summon Heal

Joined
Apr 11, 2015
Messages
102
Reaction score
6
0.4
Hail guys, i am looking for a spell that heals ONLY the summon of the player.
I found some spells here, but they heals every one, including others summons and players in general, just like mas res.
So i'd like something like this: the player cast the spell and only heals his summon, not himself, not others players and not others player's summon.
I don't even know if this is too hard. Sorry
And thank you.
 
Try this one
 
Try this one
Thats the one. Its like a exura gran mas res, but heals the player, other players and others summons
I just want that heals only your summon, nothing more
 
Try adding this to the spell
Lua:
setCombatParam(combat, COMBAT_PARAM_TARGETPLAYERSORSUMMONS, true)
 
Try adding this to the spell
Lua:
setCombatParam(combat, COMBAT_PARAM_TARGETPLAYERSORSUMMONS, true)
I Did yesterday. And heals other players... Why would that fix the problem? "targetplayer".
Post automatically merged:

My spell look like this:

C++:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 12)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_TARGETPLAYERSORSUMMONS, true)
function onGetFormulaValues(cid, level, maglevel)
    local min = (((level/5)+(maglevel*1) +1))
    local max = (((level/5)+(maglevel*2) +3))
    return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

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

function onCastSpell(cid, var)
    local summons = getCreatureSummons(cid)
    if(table.maxn(summons) <= 0) then -- no summons
        doPlayerSendCancel(cid, "You don't have any summons to heal.")
        return false
    end
    for _, pid in ipairs(summons) do
        return doCombat(cid, combat, var)
    end
end
 
Back
Top