• 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

http://otland.net/f81/manarune-heals-maxmana-160273/

Or if you want a mana rune with ml/lvl based
Lua:
local exhaust = createConditionObject(CONDITION_EXHAUST_HEAL)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 1000) -- time in seconds x1000
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
 
local level = getPlayerLevel(cid)
local mlevel = getPlayerMagLevel(cid)
local min = level + (mlevel * 1.8) + 10
local max = level + (mlevel * 2) + 20
local mana_add = math.random(min, max)
 
	if(getCreatureCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE) then
        	doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) 
		return doPlayerSendCancel(cid, "You are exhausted")
	end
	doPlayerAddMana(cid, mana_add)
        doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) 
	doPlayerSendTextMessage(cid, MESSAGE_EXPERIENCE, "+"..mana_add.." mana", getCreaturePosition(cid), mana_add, TEXTCOLOR_TEAL)
	doAddCondition(cid, exhaust)
	return true
end
 

Similar threads

Back
Top