Hello, I got a "simple" question, Is there any way that i can change the number color on my manarune? It's currently in purple
and i want it to be Yellow/orange.
Here's the script.
Thanks!
Here's the script.
Code:
local runes = {
[2294] = {
voc = {1, 2, 3, 4 , 5, 6, 7, 8, 9, 10},
min = 'level * 10 + maglv * 500.20 - 500',
max = 'level * 10 + maglv * 500.50'
}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local i = runes[item.itemid]
if isInArray(i.voc, getPlayerVocation(cid)) then
if isPlayer(itemEx.uid) == TRUE then
level, maglv = getPlayerLevel(cid), getPlayerMagLevel(cid)
doPlayerAddMana(cid, math.random(loadstring('return '..i.min)(), loadstring('return '..i.max)()))
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_HOLYAREA)
doRemoveItem(item.uid, 0)
else
doPlayerSendDefaultCancel(cid, RETURNVALUE_CANONLYUSETHISRUNEONCREATURES)
end
else
doPlayerSendCancel(cid, 'Your vocation cannot use this rune.')
end
return true
end