function onUse(cid, item, frompos, item2, topos)
-- this script is made in 5 second, it isn't good:p just a good example [edits allowed]
local config =
{
itemId = 2296 -- the id of the rune (change it)
lvl = 8 -- player must be over lvl 8 to use this ( change if you want)
manaGain = 100 -- how much he should gain (change if you want)
}
if item.itemid == config.itemId and getPlayerLevel(cid) >= config.lvl then
doPlayerAddMana(cid, config.manaGain)
doCreatureSay(cid, "Aaaah", TALKTYPE_ORANGE_1)
else
doPlayerSendTextMessage(cid, 22, "You dont have enough level to use this rune")
end
return TRUE
end