Heyo
This script has been created for my ot befor but I dont need it anymore so I release it
Little gif how it looks like
gyazo.com
This manarune script is made for TFS 0.4
Thanks to @Xikini for updating the script
This script has been created for my ot befor but I dont need it anymore so I release it
- Every vocation has different healing just set it up as you want
- You can heal other peoples with this manarune
- You can setup easly other effect and animated text for the healing
Little gif how it looks like

Gyazo Screen Video
This manarune script is made for TFS 0.4
LUA:
local exhaust_time = 500 -- 1 = millisecond
local colour, effect, dist_effect = 210, CONST_ME_HOLYAREA, CONST_ANI_HOLY
local values = {
[{1, 2, 5, 6}] = {550000000}, -- [{vocation numbers}] = {mana_amount}
[{3, 7}] = {550000000},
[{4, 8}] = {550000000}
}
local exhaust_timer = {}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local pid = itemEx.uid
if not isCreature(pid) then
return true
end
if not isPlayer(pid) then
doPlayerSendCancel(cid, "This item can only be used on players.")
return true
end
local cur_time = os.mtime()
if exhaust_timer[cid] and exhaust_timer[cid] > cur_time then
doPlayerSendCancel(cid, "Exhausted. Can use again in " .. ((exhaust_timer[cid] - cur_time) / 1000) .. " seconds.")
return true
end
exhaust_timer[cid] = cur_time + exhaust_time
local pos = toPosition
local voc = getPlayerVocation(pid)
for v, k in pairs(values) do
if isInArray(v, voc) then
local cur_mana, max_mana, add = getCreatureMana(pid), getCreatureMaxMana(pid), k[1]
if cur_mana + k[1] > max_mana then
add = max_mana - cur_mana
end
doSendMagicEffect(toPosition, effect)
doSendDistanceShoot({x = pos.x + 2,y = pos.y + 2,z = pos.z}, pos, dist_effect)
doSendDistanceShoot({x = pos.x + 2,y = pos.y - 2,z = pos.z}, pos, dist_effect)
doSendDistanceShoot({x = pos.x - 2,y = pos.y - 2,z = pos.z}, pos, dist_effect)
doSendDistanceShoot({x = pos.x - 2,y = pos.y + 2,z = pos.z}, pos, dist_effect)
doCreatureAddMana(pid, add, false)
doSendAnimatedText(toPosition, "+" .. k[1] .. "", colour)
return true
end
end
return true
end
Thanks to @Xikini for updating the script
Last edited: