• 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 with certain heal points

Xeikh

詠春 ☯
Joined
Oct 23, 2009
Messages
728
Reaction score
18
Hello, this is easy i think...

A manarune that heals from 300 to 500 for example like the potions...


Can someone help me please?

Thanks :peace:
 

Lua:
local t = {
	min = 300,
	max = 500,
	text = "Aaaah...",
	effect = CONST_ME_MAGIC_BLUE
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if isPlayer(itemEx.uid) then
		doPlayerAddMana(itemEx.uid, math.random(t.min, t.max))
		doCreatureSay(itemEx.uid, t.text, TALKTYPE_ORANGE_1)
		doSendMagicEffect(toPosition, t.effect)
	else
		doPlayerSendCancel(cid, "You can only use this rune on players.")
	end
	return true
end
 
Back
Top