How does one make something 'stackable'?

Moderator: Event DM

Post Reply
User avatar
Tigg
Elder Sage
Posts: 3486
Joined: Wed Feb 09, 2005 11:18 pm
Location: Into the sunset/Hyboria

How does one make something 'stackable'?

Post by Tigg » Tue Jun 06, 2006 7:15 pm

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.
Ua mau ke ea o ka ina i ka pono.
User avatar
spool32
Team Member; Retired with Honors
Posts: 13280
Joined: Sun Dec 12, 2004 6:12 pm
Timezone: GMT -6
Location: Austin, TX

Post by spool32 » Tue Jun 06, 2006 7:19 pm

I believe Deider wrote the code for the sugar stacking... possibly some other items as well.

Is the Gnome-inator around?

-spool32
Success will be lovely, but you will have to go out and get it! Failure will invite itself in.


Your donation makes this sig possible!
Monthly donations help you Lose Weight Fast!
DM 101
User avatar
Krator
Elder Sage
Posts: 4935
Joined: Thu Jun 10, 2004 6:44 pm
Timezone: GMT
Location: Amsterdam

Post by Krator » Tue Jun 06, 2006 7:19 pm

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.
Xeo
Master Sage
Posts: 6524
Joined: Mon Nov 03, 2003 11:56 am
Timezone: UK
Location: Pirate Cave

Post by Xeo » Mon Jun 12, 2006 11:13 am

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.
Silk wrote: I don't know, I think flinging poo in a catapult could be pretty damn effective.
I know if I was on the battlefield and I got hit by a pile of shit... I'd probably go home.
dougnoel
Team Member; Retired with Honors
Posts: 6261
Joined: Fri May 14, 2004 4:59 pm
Location: VA (GMT -4)
Contact:

Post by dougnoel » Mon Jun 12, 2006 3:53 pm

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.
Post Reply