Try this:
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_DISPEL, CONDITION_PARALYZE) function onCastSpell(cid, var) if isInParty(cid) then local lid = getPartyLeader(cid) local pm = getPartyMembers(lid) local lvl = getPlayerLevel(cid) local mlvl = getPlayerMagLevel(cid) local min = 50 + lvl * 1.0 + mlvl * 1.0 local max = 100 + lvl * 1.0 + mlvl * 1.0 for i = 1,#pm do doCreatureAddHealth(pm[i],math.random(min,max)) doCombat(pm[i], combat, var) end else return false,doPlayerSendCancel(cid, "You need to be in a party to cast this spell!") end return doCombat(cid, combat, var) end
This heals party members wherever they are at. Healer can be in Thais temple of Real Map and party members could be in PoI and they are still healed from healer. Can you not add a radius to it?