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

Updating this:

vejsa

Banned User
Joined
Nov 3, 2007
Messages
434
Reaction score
0
Hello OTlanders.. I'll keep this short.

I need to make my manarune to get "Stronger" depending on what level you are..
Example: If you are level 50 the manarune will give you about 2-300 mana.. If you are level 150 the manarune will give you about 7-800 mana <- Example..
If any one out there know's how to fix this it would rly help me out ALOT!

Peace out =)
 
Why would you come here with that stupid comment? I have done it,, thats why I posted a thread about it here in SUPPORT..
 
LUA:
local combat = createCombatObject() 
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) 
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 = (level * 12.33) + (mlevel * 4) - 50 
local mana_maximum = (level * 13.5) + (mlevel * 5) 
-- Mana Formula Settings END -- 
local mana_add = math.random(mana_minimum, mana_maximum) 
doPlayerAddMana(cid, mana_add) 
doSendAnimatedText(pos, mana_add, TEXTCOLOR_PURPLE) 
return doCombat(cid, combat, var) 
end
 
It has to work, you probably registered it wrong or something. Note that it's a spell script, not action.
 

Similar threads

Back
Top