• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

How to change number color?

Niioxce

Otland lurker
Joined
Jun 22, 2012
Messages
324
Reaction score
4
Location
Sweden
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 asdasdasd.png and i want it to be Yellow/orange.
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
Thanks!
 
Back
Top