M4t30
THE RETURN OF TROLL KINGZ
Hey guys, well I got problem.. I searched deep in OTFans and found script called "Health and mana" healing.. So I tried to set it up to my server and so i did.. but now comes problems..
Its in actions and I have put rune id of it to "2283" and when i use it i don't got healing or anything.. I just got invisble (utana vid).. here's script
I'm using TFS 0.3.6
Its in actions and I have put rune id of it to "2283" and when i use it i don't got healing or anything.. I just got invisble (utana vid).. here's script
Lua:
local config {
level = 8 -- What level is required to use the rune
mlevel = 0 -- What mlevel required to use the rune
hpmin = 200 -- Whats the minium it will heal?
hpmax = 800 -- Whats the maximum it will heal?
mmin = 200 -- Whats the minium mana it will give?
mmax = 800 -- Whats the maximum mana it will give?
heal = math.random(hpmin, hpmax) -- It will randomize a number between your maximum and minimum
mana = math.random(mmin, mmax) -- It will randomize a number between your maximum and minimum
function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) => level and getplayerMagLevel(cid) => mlevel then
doPlayerAddHealth(cid, heal)
doPlayerAddMana(cid, mana)
doSendMagicEffect(topos,12)
else
doPlayerSendCancel(cid, "You need to be level " .. level .. " and have magic level " .. mlevel .. )
end
return true
end
I'm using TFS 0.3.6