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

How do I remove flasks from when you are using potions?

read the rules before posting :)

because you didn't post any information at all im going to post code for tfs 1.2
in an action script
Code:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    item:remove(1)
    player:addHealth(math.random(60, 300))
    return true
end

<action itemid="potionid" script="script.lua"/>
 
read the rules before posting :)

because you didn't post any information at all im going to post code for tfs 1.2
in an action script
Code:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    item:remove(1)
    player:addHealth(math.random(60, 300))
    return true
end

<action itemid="potionid" script="script.lua"/>

Sorry man! Yeah forgot to mention that I use TFS 0.3.6. Will it still work though? Does it work on all potions? Just by seeing
player:addHealth(math.random(60, 300)) but I'm not that good when it comes to scripting haha..
 
Sorry man! Yeah forgot to mention that I use TFS 0.3.6. Will it still work though? Does it work on all potions? Just by seeing
player:addHealth(math.random(60, 300)) but I'm not that good when it comes to scripting haha..
no tfs 1.2 scripts is not compatible with 0.3.6
 
Back
Top