• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Healing Runes on protection zone.

Elizabeth

New Member
Joined
Jul 3, 2009
Messages
115
Reaction score
2
hello..

i have a healing rune but i cant use in temple.. how i fix it?

Code:
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_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

function onGetFormulaValues(cid, level, maglevel)
	min = (level * 5 + maglevel * 5) * 2.8
	max = (level * 7 + maglevel * 7) * 3.2
	if min < 250 then
		min = 250
	end
	return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(cid, var)
	doPlayerSay(cid, "Ultimate Super Healing Rune", TALKTYPE_ORANGE_1)
	return doCombat(cid, combat, var)
end

Code:
<rune name="Ultimate Super Healing" id="2270" charges="1" lvl="1" maglv="8" mana="0" soul="0" exhaustion="0" prem="0" enabled="1" allowfaruse="1" script="new/ultimateuh.lua" />

can someone help me please?

Thanks
 
In spells.xml you must add attribute aggressive="0"

So it will look like this:
Code:
<rune name="Ultimate Super Healing" id="2270" charges="1" lvl="1" maglv="8" mana="0" soul="0" exhaustion="0" aggressive="0" prem="0" enabled="1" allowfaruse="1" script="new/ultimateuh.lua" />
 
Back
Top