Shop Maximum

Started by DeathCow, March 23, 2007, 07:30:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

The 2nd parameter for items in shops should be the maximum number it can have in stock of items.
The following items are for sale here:

Item                          Quantity    Price
------------------------------------------------------
copper-tipped spear           20           8 gold crowns
copper-edged battle axe       20          12 gold crowns
copper arming sword           20          20 gold crowns
copper shortsword             10          12 gold crowns
copper dagger                 28           2 gold crowns
copper staff                  20           4 gold crowns
copper-capped staff           23           8 silver nobles
copper mace                   1            8 gold crowns
copper-bladed greataxe        3           10 gold crowns
copper ore                    77          30 copper farthings


So when the shop had no copper ore to begin with, and I sold 77 to it, it should still not display any information on copper ore when I list in the shop.

Quote from: DeathCow on March 23, 2007, 07:30:06 AM
The 2nd parameter for items in shops should be the maximum number it can have in stock of items.
The following items are for sale here:

Item                          Quantity    Price
------------------------------------------------------
copper-tipped spear           20           8 gold crowns
copper-edged battle axe       20          12 gold crowns
copper arming sword           20          20 gold crowns
copper shortsword             10          12 gold crowns
copper dagger                 28           2 gold crowns
copper staff                  20           4 gold crowns
copper-capped staff           23           8 silver nobles
copper mace                   1            8 gold crowns
copper-bladed greataxe        3           10 gold crowns
copper ore                    77          30 copper farthings


So when the shop had no copper ore to begin with, and I sold 77 to it, it should still not display any information on copper ore when I list in the shop.
I don't have the database in front of me, but I'm assuming the shop's maximum on copper ore is 0?

I know I'm going to take some flak for this but I hate... no... despise the idea of items just disappearing.  I read the "max" parameter as the maximum number of items a shop will regen to naturally; if someone sells items to it that take it over that max, those items shouldn't just poof.  This is part of a larger issue which is keeping track of individual items across their entire lifetimes.  In Major MUD when you sell an item, it's "state" is wiped clean, as it's now just another of an item type in a store (or not even that if the store is already at it's max and we do what you're suggesting above).  This won't allow us to implement some cool features with items in the future; varying qualities, enchantments, accurate limits on uses/charges, etc.


TGS v1.0 (coming soon)

He's not suppose to sell an item thats only use is to sell them to him.  After a month it'll end up looking like

copper ore                    9873621          30 copper farthings

And the entire point is that he's buying them so he can use them.


Quoteaccurate limits on uses/charges, etc.

Oh yeah awesome! cool feature! I cant wait till we get this working! wow, this will changes everything! 

8)



Quote from: DeathCow on March 23, 2007, 12:16:30 PM
He's not suppose to sell an item thats only use is to sell them to him.  After a month it'll end up looking like

copper ore                    9873621          30 copper farthings

And the entire point is that he's buying them so he can use them.


Oh yeah awesome! cool feature! I cant wait till we get this working! wow, this will changes everything! 

8)
Fine.  Just don't make shops buy limited items with a shop max of 0.  Agreed? :)


TGS v1.0 (coming soon)

Quote from: Vitoc on March 23, 2007, 01:00:13 PM
Fine.  Just don't make shops buy limited items with a shop max of 0.  Agreed? :)

buts thats the only way they get back to their default location in the game...

Quote from: Vitoc on March 23, 2007, 01:00:13 PM
Fine. Just don't make shops buy limited items with a shop max of 0. Agreed? :)

How about, not agreed.


#: 147, Name: Recycler 4
Type: General -- Levels: 0 to 0 -- Markup: 500%
Assigned To: Room: Junkyard (1/39)

#      Name                          Max    Regen  Cost   
825    adamantite claymore           0      no regen4,230,000 Copper (@ 6% Discount)
822    adamantite katana             0      no regen11,280,000 Copper (@ 6% Discount)
1174   crescent moon staff           0      no regen2,820,000 Copper (@ 6% Discount)
1248   deathcoil                     0      no regen1,410,000,000 Copper (@ 6% Discount)
829    diamond-studded ring          0      no regen1,128,000 Copper (@ 6% Discount)
1173   golden headdress              0      no regen2,820,000 Copper (@ 6% Discount)
823    jeweled adamantite longsword  0      no regen2,820,000 Copper (@ 6% Discount)
1157   jeweled turban                0      no regen1,410,000 Copper (@ 6% Discount)
831    large silvery cross           0      no regen1,692,000 Copper (@ 6% Discount)
1275   mamba fang                    0      no regenFree   
836    mithril-runed tunic           0      no regen4,512,000 Copper (@ 6% Discount)
826    obsidian field plate          0      no regen7,050,000 Copper (@ 6% Discount)
1212   petrified stone corselet      0      no regen11,280,000 Copper (@ 6% Discount)
1163   red iron axe                  0      no regen564,000 Copper (@ 6% Discount)
1165   red iron dagger               0      no regen564,000 Copper (@ 6% Discount)
1164   red iron hammer               0      no regen564,000 Copper (@ 6% Discount)
821    rune-etched sceptre           0      no regen1,128,000 Copper (@ 6% Discount)
1231   skull-capped staff            0      no regen2,820,000 Copper (@ 6% Discount)
450    starsteel greatsword          0      no regen3,102,000 Copper (@ 6% Discount)
1216   storm crown                   0      no regen5,640,000 Copper (@ 6% Discount)

Quote from: DeathCow on March 23, 2007, 01:48:31 PM
How about, not agreed.


#: 147, Name: Recycler 4
Type: General -- Levels: 0 to 0 -- Markup: 500%
Assigned To: Room: Junkyard (1/39)

#      Name                          Max    Regen  Cost   
825    adamantite claymore           0      no regen4,230,000 Copper (@ 6% Discount)
822    adamantite katana             0      no regen11,280,000 Copper (@ 6% Discount)
1174   crescent moon staff           0      no regen2,820,000 Copper (@ 6% Discount)
1248   deathcoil                     0      no regen1,410,000,000 Copper (@ 6% Discount)
829    diamond-studded ring          0      no regen1,128,000 Copper (@ 6% Discount)
1173   golden headdress              0      no regen2,820,000 Copper (@ 6% Discount)
823    jeweled adamantite longsword  0      no regen2,820,000 Copper (@ 6% Discount)
1157   jeweled turban                0      no regen1,410,000 Copper (@ 6% Discount)
831    large silvery cross           0      no regen1,692,000 Copper (@ 6% Discount)
1275   mamba fang                    0      no regenFree   
836    mithril-runed tunic           0      no regen4,512,000 Copper (@ 6% Discount)
826    obsidian field plate          0      no regen7,050,000 Copper (@ 6% Discount)
1212   petrified stone corselet      0      no regen11,280,000 Copper (@ 6% Discount)
1163   red iron axe                  0      no regen564,000 Copper (@ 6% Discount)
1165   red iron dagger               0      no regen564,000 Copper (@ 6% Discount)
1164   red iron hammer               0      no regen564,000 Copper (@ 6% Discount)
821    rune-etched sceptre           0      no regen1,128,000 Copper (@ 6% Discount)
1231   skull-capped staff            0      no regen2,820,000 Copper (@ 6% Discount)
450    starsteel greatsword          0      no regen3,102,000 Copper (@ 6% Discount)
1216   storm crown                   0      no regen5,640,000 Copper (@ 6% Discount)

That's my point.  Have you ever been to a real junkyard?  They don't buy that shit just to look at it.  They turn around and sell it for a profit; it's a business just like any other.


TGS v1.0 (coming soon)

"Fixed" in new version


TGS v1.0 (coming soon)