PLUGIN: Chest Shops

Everything related to the old Vanilla Server
Post Reply
User avatar
Balthelion
The Almighty
The Almighty
Posts: 4866
Joined: Tue Apr 13, 2010 5:45 pm
Contact:
Stryker’s avatar
Loading…

PLUGIN: Chest Shops

Post by Balthelion » Tue Mar 27, 2012 1:55 pm

About

Chest shops works in tandem with our IConomy economy plugin to enable players to buy and/or sell items via shops made of just signs and chests.

The idea behind this is to encourage some role-play on the server, as well building an economy. Players can establish their own shops in their cities, and other players can come visit to buy/sell items.

This helps to encourage players to explore the server and interact more, as well as allowing people to still be able to engage in large building projects without having to farm all the required materials themselves, They can instead buy it, if they can afford it.

So for example, a player who has massive farms can sell his food goods for money, in order to buy bricks from another player who has a lot of clay but no food. And so on, and so forth.

Commands

Chest Shops has no commands, everything is all done via gameplay. See below.

Usage

Setting up a Chest Shop
ChestShops_Shop.jpg
ChestShops_Shop.jpg (73.5 KiB) Viewed 970 times
ChestShops_Shop.jpg
ChestShops_Shop.jpg (73.5 KiB) Viewed 970 times
You will need to place a chest, then have a sign above it formatted like the picture above.

The first line is your name (or the word "Market" for a server shop - more on this later)

The second line is the number of items you want to buy/sell per transaction. Eg, Do you want to buy 1 at once, or 10 at once (makes buying/selling common things easier)

The third line is the pricing. This is in the format: B 0.00:0.00 S
B means "Buy". This is the price it will cost people to buy from this shop.
S means "Sell". This is the price you will pay if someone sells you this item to your shop.
The Decimal point works just like normal currency, except instead of Pounds & Pence, we have Gold & Silver.
You must have a colon ( : ) to separate these prices.
You can also have shops which either only buy or only sell items too. See the screenshots below.
Note that you cannot have a price of zero. A price of zero is treated as you do not wish to buy/sell this item (depending on whether it is the buy or sell price)

The fourth line is the name of the item according to bukkit. While this name is 90% of the time the same as in-game, in some cases these are different (eg a "Clock" is called a "Watch"). Ask in-game/on forums if you can't get something to work.

If your sign is formatted correctly, you will get the following message:
ChestShop_Created.jpg
ChestShop_Created.jpg (67.8 KiB) Viewed 970 times
ChestShop_Created.jpg
ChestShop_Created.jpg (67.8 KiB) Viewed 970 times
If Chest Shops isn't happy with your sign, you will get an error message and the sign will be destroyed (removed from the wall to be reused):
ChestShop_Failed.jpg
ChestShop_Failed.jpg (64.36 KiB) Viewed 970 times
ChestShop_Failed.jpg
ChestShop_Failed.jpg (64.36 KiB) Viewed 970 times
Setting up a Buy-only or Sell-only Chest Shop

Everything about setting up the shop is the same as above. The only different is how you format the third line (price). You simply only put either the Buy price or the sell price (and no colon)

This shop will only let people buy from it:
ChestShops_BuyOnly.jpg
ChestShops_BuyOnly.jpg (64.78 KiB) Viewed 969 times
ChestShops_BuyOnly.jpg
ChestShops_BuyOnly.jpg (64.78 KiB) Viewed 969 times
This shop will only let people sell to it:
ChestShops_SellOnly.jpg
ChestShops_SellOnly.jpg (62.82 KiB) Viewed 969 times
ChestShops_SellOnly.jpg
ChestShops_SellOnly.jpg (62.82 KiB) Viewed 969 times
To buy from a chest shop

If a shop allows buying items (It has a buy price - B), right click it to perform a transaction. You will buy the amount specified, for the price specified, and be notified in chat:
ChestShops_Buy.jpg
ChestShops_Buy.jpg (72.13 KiB) Viewed 969 times
ChestShops_Buy.jpg
ChestShops_Buy.jpg (72.13 KiB) Viewed 969 times
To sell to a chest shop

If a shop allows selling items to it (It has a sell price - S), left click it to perform a transaction. You will sell the amount specified, for the price specified, and be notified in chat:
ChestShops_Sell.jpg
ChestShops_Sell.jpg (71.69 KiB) Viewed 969 times
ChestShops_Sell.jpg
ChestShops_Sell.jpg (71.69 KiB) Viewed 969 times
Market Shops

Market Shops are similar to normal shops, with two exceptions. These are server shops, so have infinite stock. They also do not require a chest, as the server will create/destroy items as needed.
ChestShops_Market.jpg
ChestShops_Market.jpg (68.04 KiB) Viewed 969 times
ChestShops_Market.jpg
ChestShops_Market.jpg (68.04 KiB) Viewed 969 times
Almost all the market shops in the world are in the Marketplace in The Vale. These shops only buy/sell basic supplies - Such as dirt, cobble, coal, torches etc.

This means that new players can buy supplies with their starting wallet of 30 gold, and all players are able to sell their basic unwanted items (such as dirt/cobble) to generate more money.

Shops With Multiple Signs
It's possible to have shops with multiple signs. This is particularly useful if you want people to be able to buy single items and full stacks with just one click each (rather than having a single-item sign that needs to be clicked 64 times). You might also wish offer someone a discount if they buy a large quantity in one go.

The previous screenshot demonstrates multiple signs for market shops. As market shops do not require a chest for stock, they can be placed anywhere

The screenshot below demonstrates that you can have two signs linked to the same chest (provided it's a double width chest)
ChestShop_Multiple.jpg
ChestShop_Multiple.jpg (63.76 KiB) Viewed 969 times
ChestShop_Multiple.jpg
ChestShop_Multiple.jpg (63.76 KiB) Viewed 969 times
Misc

Setting Up Admin Shops that sell enchantments
Image
GW2: Taikken ~ Vasuuki ~ Artuura
EVE: Marcus Rushe
SW:TOR: Tannik ~ Celandra ~ Korrun
League | Steam | Minecraft: LeoxStryker

Post Reply