Hello guys, well I've got a problem, I just made manarunes for my server, but when I use them, this is what it says : 15:23 Using one of 0 spell runes...
And the rune doesn't dissapear
the rune id im using is 2270 and this is its script:
I'll appreciate your help guys!
And the rune doesn't dissapear
the rune id im using is 2270 and this is its script:
Code:
local storevalue = 37752
local exhausttime = 1
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_FIREWORK_BLUE)
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 = (150 * 1) + (40 * 1)
local mana_maximum = (180 * 1.2) + (50 * 1.5)
-- Mana Formula Settings END --
local mana_add = math.random(mana_minimum, mana_maximum)
doPlayerAddMana(cid, mana_add)
return doCombat(cid, combat, var)
end