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

TFS 0.3.6 Empty flasks wont stack?

Hanozy

~HanoZy
Joined
Mar 25, 2015
Messages
39
Reaction score
1
Location
Sweden
Hi, whenever you use a potion the empty flasks wont stack up! You can ofcourse do it manually, but it sucks that it doesn't stack automatically...

Does somebody have a solution?

Thanks a lot!
 
You can do this.
Code:
local count = getPlayerItemCount(cid, potion.empty)
doPlayerRemoveItem(cid, potion.empty, count)
doPlayerAddItem(cid, potion.empty, count + 1)
But then they will always appear all in the first backpack, even if you move stacks to an other backpack.
Or add auto stack.
https://otland.net/threads/perfect-autostacking-items-100-0-stack-all-for-0-4-and-0-3-6pl1.163089/

Thanks Limos, where do I add this code? In actions/scripts/liquids/potions.lua?
 
Back
Top