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

Lua Help with this rune

M4t30

THE RETURN OF TROLL KINGZ
Joined
Jan 20, 2010
Messages
774
Reaction score
14
Location
127.0.0.1
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

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
 
You probably have to remove the rune xml lines from spells.xml if it is there
Post the info from your items.xml for that item
 
Back
Top