Allow players to sell and buy horses
Zedd7 opened this issue ยท 1 comments
This should be done by adding two commands :
/zh sell (<price>) (-i <horseID>) (-t <playerName>)
/zh buy (-i <horseID>) (-t <playerName>)
Both commands should allow the player to target a horse by using the three different methods : mount, favorite id, command flags.
When a player set a horse on sale, its name should be suffixed by a color-independent message displaying the price (with units) of that horse.
When no price is provided in the sell command, the horse should be withdrawn from sale.
When a player buy a horse, its inventory remains and the money is transferred from the buyer to the owner (no matter if he is the seller or not).
When a player is ejected from a locked horse on sale, a message should suggest him to buy it using a pre-filled command.
Implemented by 3967271