Pro Warbringer
Retired with developing
Well here it is...
Put this in (ex.) C:\Documents and Settings\user\My Documents\Copy of Xenoria\Xenoria\data\actions\scripts
and add into Actions.xml
Wouldn't mind for some reputation!
Kind Regard's,
Pro Warbringer
Put this in (ex.) C:\Documents and Settings\user\My Documents\Copy of Xenoria\Xenoria\data\actions\scripts
function onUse(cid, item, frompos, item2, topos)
addmanapos = topos
addmanapos.stackpos = 253
playeraddmana = getThingfromPos(addmanapos)
if getPlayerMagLevel(cid) >= 4 then
if playeraddmana.itemid > 0 then
random_number = math.random(210,250)
doSendMagicEffect(topos,12)
doPlayerAddMana(playeraddmana.uid,random_number)
doPlayerSay(cid,"You can change it",1)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,1)
end
else
doSendMagicEffect(frompos,2)
return 0
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"You don't have the required magic level to use that rune.")
end
return 1
end
and add into Actions.xml
<action itemid="2272" script="manarune.lua" />
Wouldn't mind for some reputation!

Kind Regard's,
Pro Warbringer