Ernstjan
Active Member
Code:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
player:addManaSpent(1000000)
return true
end
I have this script wich works perfect, but I tried to make it so you can use it up to 5 times and dissapears on use,
but I keep getting errors in console.
I'm using TFS 1.3, Hopefully somebody can help me create this so it can be used 5 times and 1 potion dissapears when using it,
Thanks in advance!