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

Manarune, level based healing REP++

Dramix

New Member
Joined
Jun 26, 2009
Messages
289
Reaction score
1
I've been looking for a script to make my manarunes better for every level that you advance..

For example, it heals 1% more for every level that you reach.. I know that these scripts are out there but I cant simply find them.

If somebody could give me a hand with this I would be very greatful.

Rep ++ for anybody that can help me!!! :D:D:D
 
Maybe you can use this?!
LUA:
local base_mana = 10                   -- normal healing at level 1 character
local percent_inc_per_level = 10			-- so when player increas a level the attack of spell is 200 + 5% increase

function onUse(cid, item, fromPosition, itemEx, toPosition)
	local healing = base_mana + (getPlayerLevel(cid) * math.ceil(base_mana * (percent_inc_per_level/100)))
	doPlayerAddMana(cid,healing)
	doSendMagicEffect(fromPosition,8)
	return true
end
 
here you go it also increases when you go up in ml
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_MANADRAIN)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE)
function onGetFormulaValues(cid, level, maglevel)
	local min = level * 9 + maglevel * 3
	local max = level * 10 + maglevel * 6
	return min, max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
if you want level only remove
LUA:
+ maglevel * 3
and
LUA:
+ maglevel * 6
 
here you go it also increases when you go up in ml
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_MANADRAIN)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE)
function onGetFormulaValues(cid, level, maglevel)
	local min = level * 9 + maglevel * 3
	local max = level * 10 + maglevel * 6
	return min, max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
if you want level only remove
LUA:
+ maglevel * 3
and
LUA:
+ maglevel * 6

thank you, ill test it, rep+ for u
 
here you go it also increases when you go up in ml
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_MANADRAIN)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE)
function onGetFormulaValues(cid, level, maglevel)
	local min = level * 9 + maglevel * 3
	local max = level * 10 + maglevel * 6
	return min, max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
if you want level only remove
LUA:
+ maglevel * 3
and
LUA:
+ maglevel * 6

is this the whole script or should i add it somewhere?
 
Back
Top