Hello 
I need a manarune based on magic level!
I cant find anything good. If somone could edit this one it should be great but post another if you guys got one.
This is mine but its not based on anything, just random heals.
The purple and "Aaaah..." should be untouched
I need a manarune based on magic level!
I cant find anything good. If somone could edit this one it should be great but post another if you guys got one.
This is mine but its not based on anything, just random heals.
Code:
local t = {
min = 800,
max = 1100,
text = "Aaaah...",
effect = CONST_ME_MAGIC_BLUE
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayer(itemEx.uid) then
if math.random(1, 100) == 1 then
doRemoveItem(item.uid, 0)
end
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
The purple and "Aaaah..." should be untouched