abobakrwaheed74
Member
- 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
data/actions/actions.xml
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: