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

Manarune!

Dramix

New Member
Joined
Jun 26, 2009
Messages
289
Reaction score
1
Hello, I searching after a manarune there give mana when you get higher lvl and magic level. :), or a manarune thats when you get higher magic level you get more mana! thx!
 
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local level = 50 * getPlayerLevel(cid)
local magic = 50 * getPlayerMagLevel(cid)
	doCreatureAddMana(cid, level + magic)
		doSendMagicEffect(fromPosition, 14)
		doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"You have received " .. level + magic .. " mana.")
	return true
end

That will give you 50 mana per level and 50 mana per magic level. So if you're level 10, with magic level 20, you'll get 1500 mana from the rune (500 + 1000). You can edit the amount per level here:

Code:
local level = 50 * getPlayerLevel(cid)
local magic = 50 * getPlayerMagLevel(cid)

Just change 50 to whatever you want per level/magic.
Sorry for it being very basic, but I wrote it real quick.

Red
 
Back
Top