Page 1 of 1

How does one make something 'stackable'?

Posted: Tue Jun 06, 2006 7:15 pm
by Tigg
How does one make a previously unstackable item stackable? I love this so much that if I'm capable I'm interested in advancing from no-clue status on it and getting some practice.. who knows maybe I could subcontract on it some day. :shock:

Also doesn't it help with lag? I've heard that player inventories with lots and lots of items, repeated over many players, increases lag. Also I've noticed that when some players who have a ton of items on them log on/off there's often a short burst of lag.

Posted: Tue Jun 06, 2006 7:19 pm
by spool32
I believe Deider wrote the code for the sugar stacking... possibly some other items as well.

Is the Gnome-inator around?

-spool32

Posted: Tue Jun 06, 2006 7:19 pm
by Krator
Re-create the item using a base item type that allows stacking. For example: Item named "Xeo's stamp of awesomeness" is a Misc. Small item that looks like a gem. Xeo wants to make it stackable, and thus has to delete the item (record all it's properties, tags, etc), and create a new item with the same properties, but with another base item type, for example, Gem, which allows stacking up to 10 items.

Posted: Mon Jun 12, 2006 11:13 am
by Xeo
Krator wrote:Re-create the item using a base item type that allows stacking. For example: Item named "Xeo's stamp of awesomeness" is a Misc. Small item that looks like a gem. Xeo wants to make it stackable, and thus has to delete the item (record all it's properties, tags, etc), and create a new item with the same properties, but with another base item type, for example, Gem, which allows stacking up to 10 items.
I have the urge to start stacking things now. Hmmm.

Posted: Mon Jun 12, 2006 3:53 pm
by dougnoel
There are two ways to do this. The first is, as already mentioned, to use an existing base item type. The second is to change the base item 2da file and make a base item stackable, or copy an existing one and make it stackable. the problem with the latter solution is the item is not CoPaP friendly.

BTW, I am not sure making craftable items actually contributes to less lag. However, theoretically it could.