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

[Spell] Heal another players Mana

Trader

New Member
Joined
Aug 12, 2009
Messages
219
Reaction score
2
Hello,
can anyone construct a spell script for healing another players mana
Pretty simple: It's like exura sio "Player Name except it heals the players mana :p

Rep+ of course!
It should take away 75% of your total mana and transfer it to the player you healed
 
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 v = getCreatureMaxMana(cid) * 0.75
	return v, v
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
 
Last edited:
I want it to heal the other players mana

For example

Player 1 says: Exura Sio "Player 2
(Takes away 75% Mana)

And Player 2 receives 75% of Player 1's mana!
 
Yea, I did
That only makes the spell take 75% mana
and plus it heals the players health not mana

I want that 75% of mana to be tranfered to the player you healed!
Thank you!
 
Tip for you:
onCastSpell has no target parameter..
Doesn't work for all spells tho
--> doPlayerAddMana(variantToNumber(var),(getCreatureMaxMana(cid) * 0.75))
 
Back
Top