How to stack every item?

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
User avatar
timginter
Neophyte Poster
Posts: 37
Joined: Tue Apr 22, 2008 6:25 am

How to stack every item?

Post by timginter »

I've searched the forums for something similar, no result, though. I was wondering how may I enable stacking same type of items. I know it is possible to stack, f.e. swords, potions, etc. the only problem is how to do that? I've already tried the "Stackable 1" option in the configs but it doesn't seem to work (it seems to work only one way - disabling). I'll be grateful for any help with this.
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Re: How to stack every item?

Post by CWO »

You need to edit the client-side file tiledata.mul so that the client will actually attempt the stacking in the first place.
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Re: How to stack every item?

Post by Yukiko »

Also you would want to make sure there's a graphic for stacks of items. For example you will notice that one ore looks different than two or more stacked ores. That's because the client uses two different graphics for one and multiple stackable items. I don't know how the client "knows" where to find te graphic for a stack however. I just know it does find it and uses it. I presume it's just using the next one up from the single graphic but I've never tried to make new stackable items. I have enough trouble adding new garments.
*grins*
Luth
Former Developer
Posts: 200
Joined: Mon Jan 30, 2006 8:10 am

Re: How to stack every item?

Post by Luth »

The client creates a new graphic by rendering the tile, then offsetting it a constant value, and rendering it again. There is no "two black pearls" graphic in any MUL. :) Likewise, when you make your, I dunno, Skull stackable, then the client will generate a two-skull graphic for you.
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Re: How to stack every item?

Post by Yukiko »

Hmmm... I never knew that.

It treats coins differently though apparently because there are three separate graphics for one, a few and a stack of coins. That was what was in my mind when I made the erroneous post.

Well, that's definitely good to know then.

*begins thinking of making lots of things stackable*

Yes... definitely good to know...
Luth
Former Developer
Posts: 200
Joined: Mon Jan 30, 2006 8:10 am

Re: How to stack every item?

Post by Luth »

Right, I'd forgotten about coins. As far as I know, though, they're the special exception. Everything else is doubled-up, which is great for us, because we can make stackable items w/o any hard work! Just grab your favourite MUL editor, go to the item tile you want, and check off the "stackable" option. Voila!
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Re: How to stack every item?

Post by Yukiko »

I remember when I was building my bowcraft on a shard and wished for stackable bows.

Ya know I am certainly glad this thread is here. This does open possibilities.

Thanks Luth!
Turley
POL Developer
Posts: 670
Joined: Sun Feb 05, 2006 4:45 am

Re: How to stack every item?

Post by Turley »

If i remember correctly you can also set the offset in pixels the second item will be displayed. In mulpatcher it is called "Unknown4" ("Generic" is the stackable flag)
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Re: How to stack every item?

Post by Yukiko »

Oh that's great Turley!

I bet your utility has it labeled correctly though. Sorry, I haven't had a chance to look at it yet but I plan to.
Turley
POL Developer
Posts: 670
Joined: Sun Feb 05, 2006 4:45 am

Re: How to stack every item?

Post by Turley »

Damn i know i have forgotten something. :)
User avatar
timginter
Neophyte Poster
Posts: 37
Joined: Tue Apr 22, 2008 6:25 am

Re: How to stack every item?

Post by timginter »

Huge thanks for help, guys :) I'm quite shocked there are so many replies. Well, glad to know it helped someone, too :)
Post Reply