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

Simple rune script troubles.

bobtuck

New Member
Joined
Mar 1, 2008
Messages
41
Reaction score
0
I must be a newb I can't seem to figure out how to change the current uh to heal a certain amount like potions do.

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 * 0 + maglevel * 0) * 0
	max = (level * 0 + maglevel * 0) * 0
	if min < 800 then
		min = 1000
	end
	return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

I dont want magic level or level to affect the healing. just want a min and a max. must be simple but I dont know i've screwed up so many times I thought i'd ask for help
 
thanks man rep for sure

Edit: Cykotitan is there anyway for this script to heal both mana and health? with a min and max value for each? I forgot about spirit potion..
 
Last edited:
Back
Top