Page 1 of 1

[INVALID] An Idea for shops

Posted: Sat Jun 16, 2012 8:05 pm
by Inkrement
So, where to begin with this...

Basically, I had an idea for shops (obviously). I think players should be given special blocks that Represent an item they are trying to sell (for example, a diamond that has the ability to be placed as a block), that can be placed upon a pedastal, and linked to a chest containing the item the block represents. Players wishing to buy the item on display, would simply have to right click to purchase the item. Credits would be automatically transferred from their stash to the player that owns the "Shop Block".

Some features could be added to prevent over spending and tedious clicking:

Double right clicking a "Shop block" to set a purchase/confirm purchase chain

(These features would require a custom mod from Intelli for our clients)
Shift + right clicking to purchase 10 items at a time
CTRL + Shift + right clicking to buy a stack of the item

Some cosmetic features for signs of availability of item:
Signs placed under or around the "Shop Block" Could describe the name of the item (IE Diamond) and the quanity left in the chest

(This MAY require a mod, as I am pretty sure the server cannot control color)
Grayed out block means item is sold out (normal color would indicate availability)


Programatically, this shouldn't be incredibly difficult, but I am not exactly a Java pro, nor have I even bother to unpack the server sided code for minecraft yet....

Intelli, I know you are a busy man, but this would be an incredible feature to the Minerealm server

Re: An Idea for shops

Posted: Sat Jun 16, 2012 8:06 pm
by dlgn
=Chocolate.

No way.

Re: An Idea for shops

Posted: Sat Jun 16, 2012 8:32 pm
by Prodigy9
dlgn wrote:=Chocolate.
Irrelevant.

That said, it seems far too complicated, what with needing to create the pedestal on which to place the items for sale, as well as making non-placeable items placeable. I like the idea of a shop system, but it seems like it would be simpler to use a sign-based shop rather than creating an entirely new set of items to accomplish the same thing.

Re: [Suggestion]An Idea for shops

Posted: Sat Jun 16, 2012 9:07 pm
by Inkrement
Pedastal doesn't need creation...I just used that word to explain what you place the shop block on. You would need to create a special block for each item, but honestly, with proper programming, its just a question of an inherited object, which really wouldn't be too hard.

The only complicated part would be to create a link between a chest and the special block, and to run a check on availability for purchase. The link to the sign would be kind of easy, its just a couple of variables. Intelli knows the server source fairly well already, hence his current creations.

Re: [Suggestion]An Idea for shops

Posted: Sat Jun 16, 2012 9:09 pm
by RyGuy130
I agree with Prodigy9 about this being too complicated. I also find it interesting how similar your first post is to my own. It can be found here. It's a somewhat more plausible suggestion for a shop system that I'd still love to see implemented.