• 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 Set Item Weight

Woodman

New Member
Joined
Nov 17, 2008
Messages
26
Reaction score
0
Location
Holland
I have TFS 0.3.6.
Because on Tibia 8.54 you don't have stackable potions, I wanted to make charges.
I found the following potions script:

http://otland.net/f132/potion-charges-139406/index2.html#post1347175

That script works fine, but I want to add more weight to potions with more then one charge.
I tried the following:

Lua:
doItemSetAttribute(item, 'weight', value) --value being a number
doItemSetAttribute(item, 'cap', value)
But it seems that a change of weight doesn't exist? Or am I using the function the wrong way? No error appears in my console, but also the item weight isn't changed.

I searched on this forum but couldn't find the answer.
Hope someone will answer my question here...

I have another question about potion with charges: http://otland.net/f16/talkaction-fix-potions-potion-charges-147384/
 
Last edited:
Well, the problem was that setItemAttribute type weight just didn't do anything...
But we now made the potions stackable so no problems anymore.

Thread can be closed.
 
Back
Top