if config.removeOnUse and not caster:getGroup():getAccess() then
Item(item.uid):remove(1)
end
if config.removeOnUse and not caster:getGroup():getAccess() then
Item(item.uid):remove(1)
caster:addItem(potion.empty)
end
did that work for you??hi, amazing one.. using it on tfs 1.2 but after use mana/health potions it doesnt create the empty vial/flask, it just disappear ..
how to make it to create an empty vial/flask after using?
Lua Script Error: [Action Interface]
data/actions/scripts/other/potions.lua:onUse
data/lib/misc/verification.lua:7: attempt to call method 'getId' (a nil value)
stack traceback:
[C]: in function 'getId'
data/lib/misc/verification.lua:7: in function 'isCreatureFriend'
data/actions/scripts/other/potions.lua:98: in function <data/actions/scripts/other/potions.lua:31>
Item(item.uid):remove(1)
caster:addItem(potion.empty)
You are beast! GJ DUDE <3
Btw this script took sometime to find for my 10.77 server on google.. 1.1 versions need more notice so they go up in population!
Tibia OT mana health potion procent based on level just adding a few lines so people find it easier
just a quick question aswell. Want to change the exhaust from using pots down to 1 second instead of 2. For exampel:
[8473] = {empty = 7635, spellid = 2, splash = 2, exhaust = 2000, health = true, mana = false, healthpercent = 60, lvlReq = 150, vocations = {4, 8, 12}}, -- ultimate health potion
and then I change it to:
[8473] = {empty = 7635, spellid = 2, splash = 2, exhaust = 1000, health = true, mana = false, healthpercent = 60, lvlReq = 150, vocations = {4, 8, 12}}, -- ultimate health potion
still takes 2 seconds no matter what I change it to for the potions to get used.
Thank youThis is an amazing rework