• 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!

Action Manarune depends on lvl, ml (My first script)

Joined
Jun 14, 2013
Messages
158
Reaction score
14
It's a manarune script, it's healing value depends on players ml, level and it's base healing is 4500
1.4 is the number that's multiplied to the base each lvl and ml

it will send a text of the amount healed mana with random color between 1 and 254
also magic effect between 1 and 40
works on tfs 0.3.6

data/actions/scripts
Code:
function onUse(cid, fromPosition, itemEx, toPosition)
    local mana = getPlayerLevel (cid) * (1.4) + getPlayerMagLevel(cid) * (1.4) + 4500
    local pos = getPlayerPosition(cid)
    local text = math.random(1, 254)
    local effect = math.random(1, 40)

    doCreatureAddMana(cid, mana)
    doSendAnimatedText(pos, "+" ..mana, text)
    doSendMagicEffect(pos, effect)
end

data/actions/actions.xml
Code:
<action itemid="2275" event="script" value="manarune.lua"/>
 
Last edited:
Back
Top