kito2
www.masteria.net
Hi, here is a mana drain spell
It could be possible that the mana amount hited to the player, be added to the player that did the spell? I mean, like stealing mana, you make the spell on the targeted player X, he looses 150 mana and you gain 150 mana?
Someone plx?
PHP:
-- Damage Configuration
local MIN = 200
local MAX = 300
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_MANADRAIN)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.4, -MIN, -0.4, -MAX)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
It could be possible that the mana amount hited to the player, be added to the player that did the spell? I mean, like stealing mana, you make the spell on the targeted player X, he looses 150 mana and you gain 150 mana?
Someone plx?