Author: tunnelrat <rxfoster gmail>     Reply to Message
Date: 9/28/2011 11:22:58 AM
Subject: Using Trade Signs to Buy/Sell Items

Okay, so Essentials allows us to make player-run shops with [Trade] signs.

To set up a SELL sign, you must have the appropriate quantity of a given item in your inventory. The buyer must have enough money to make the purchase.

To set up a BUY sign, you must have enough money to cover for the entire amount. (I.e., if you are buying diamonds for $600/per, and you want up to 10 diamonds, you will need at least $6,000 in your account.) This money is deducted and held by the sign until either the entire request is fulfilled (i.e., someone sells you 10 diamonds) or you break the sign (In which case you will get the remaining $$$ back) The seller must have the appropriate quantity of the item in their inventory.

The signs use a very exacting (and kind of confusing) syntax.

Everything is transaction based.

The basic context is, you need:

- What you are buying/selling
- How many items to buy/sell per transaction.
- How much to charge/pay per transaction
- How many total transactions

To buy items, you need to put up a sign saying what you want, and how much.

So, if you want to Buy items (i.e., have other users sell to you)

The following are simple signs, 1 item per transaction:

__________________________________________________________

[Buy]

(or name - some blocks you might need to use the ID# for, check MC Wiki)


Example:

[Buy]
10
dirt
$5

__________________________________________________________

To Sell:

[Sell]




[Sell]
10
dirt
$5

__________________________________________________________

Advanced Buy/Sell Signs (I am PRETTY sure these are correct, test them out...):

(To sell multiple quantities per transaction)

This sign will BUY a total of 100 dirt, in increments of 10 dirt per transaction, each transaction will cost $5. So, at the end, if all dirt is purchased, the sign will have $50 in it. (The :100 (Inventory) value will decrease as the item is purchased

[trade]
10 dirt
$5:100


For a Buy sign:

[trade]
$5
10 Dirt:100

Where the sign will buy up to 100 dirt, in increments of 10, $5 for each 10 blocks purchased.


You can also set up a Trade Item for Item, but I have not messed with that.
_