Reins
Member
- Joined
- Apr 9, 2009
- Messages
- 586
- Reaction score
- 8
How do we get could be Mr. used during the run, and it can be used with SD, because now is such that, as it uses sd mr you can not, and how it runs or not you can use it-.-
HELP
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, 1)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
function onCastSpell(cid, var)
local level = getPlayerLevel(cid)
local mlevel = getPlayerMagLevel(cid)
local pos = getPlayerPosition(cid)
-- Mana Formula Settings --
-- You can use "level" and "mlevel" --
local mana_minimum = (mlevel * 8 + level * 2 + 300)
local mana_maximum = (mlevel * 8 + level * 2 + 350)
-- Mana Formula Settings END --
local mana_add = math.random(mana_minimum, mana_maximum)
doPlayerAddMana(cid, mana_add)
return doCombat(cid, combat, var)
end
HELP