Chestshops - Historical

Applied By pokeball92870: Mar 8, 2019 at 12:08 AM

Chestshops
[​IMG]
A row of Chestshops
Chestshops are a type of shop that can be created exclusively on the Skyblock and Main City Servers. They were introduced to replace Trade Signs, which were removed from EcoCityCraft before the Main City Server reset.

All ranks (including Skyblock Pilots and Main City Builders) can create Chestshops.


How To Create a Chestshop(top)

Choosing The Location For Your Sign(top)

A sign will link with a chest to create a Chestshop as long as the sign is placed within a block that is adjacent to the chest. This means the sign can either be on the chest or on a wall next to the chest.
[​IMG]

Creating Chestshops(top)

Selling and buying items with Chestshops is easy once you understand the syntax, or structure, of the sign on the chest.

Line 1(top)

Nothing is written on the first line of the Chestshop. It will be auto-filled with your username.
[​IMG]

Line 2(top)

The second line of the Chestshop is the quantity of items you wish to sell at a time.
For example, if you wanted to sell 5 items at a time, you would write:
[​IMG]

Line 3(top)

**WARNING**: Unlike trade signs, Chestshops interact directly with your player balance. This means that any exchange of currency will be done through both the buyer and sellers balances. Currency is not stored in a Chestshop!

The third line of the Chestshop details the amount of money the items can be BOUGHT or SOLD for. The buy and sell prices are separated by a colon ( : ).
Syntax:
Code:
B <buy-price> : S <sell-price>
Similarly, you can create Chestshops so that items can only be BOUGHT or SOLD exclusively.
Syntax:
Code:
B <buy-price>
Code:
S <sell-price>
For example, if you wanted players to be able to buy 5 of the item for $20 and be able to sell 5 of the item to you for $10, you would write:
[​IMG]
Rather, if you wanted players to only be able to buy 5 of the item for $20, you would write: (this also works for selling only)
[​IMG]

Line 4(top)

The fourth line of the Chestshop is the ID of the item you wish to sell. Chestshops accept the name / ID of the item.

/iteminfo or /iteminfo <id>
  • Without <id>:
    • Displays the Chestshop ID of the item in your hand.
  • With <id>:
    • Displays the Chestshop ID of the item specified in <id>.

You also have the option of entering ? into the ID line. If there are any items in the chest, the fourth line will be auto-filled to the first item that is seen in the chest (from the top-left). Similarly, if there are no items in the chest, you can right click the chest with the item you wish to sell.

For example, if you wanted to allow players to buy 5 Cobblestone for $20 and sell 5 Cobblestone for $10, you would write:
[​IMG]

If you have correctly entered in all of this information, then congratulations! Your chest shop has been created! You will also get this message in chat:
[​IMG]

My chestshop didn't get created. What's wrong?(top)

If you have incorrectly typed in the syntax when creating the chestshop, your sign will not be placed and you will receive a message in chat saying something went wrong.

You have specified invalid item id!(top)

[​IMG]
This message indicates that the ID for the item you wish to sell was entered incorrectly. If this was the case, make sure you are not using the numerical ID of the item you wish to sell. Instead, use /iteminfo while holding the item you wish to sell to see acceptable aliases.

The shop cannot be used!(top)

[​IMG]
This message indicates that you incorrectly entered the buy and sell price wrong in line 3 of your sign. See the syntax above for the correct text to enter in.

Interacting With and Refilling Chestshops(top)

Interacting with chestshops is simple:
  • To buy an item from the chest, right click the sign.
  • To sell an item to the chest, left click the sign.
[​IMG]
[​IMG]

If you are the chestshop owner, you can either right click the chest or the sign to open the chest and refill it. You will also receive messages in chat when a player buys from or sells to your chestshop.
[​IMG]
[​IMG]