Marketplace
The marketplace system in FarmyAPI allows players to buy and sell items with each other, creating a dynamic in-game economy
How It Works
Listing Items: Players can list items for sale using the
!market list <item_name> <price>
command. This removes the item from their inventory and adds it to the marketplace database.Buying Items: Players can purchase items from the marketplace using the
!market buy <item_id>
command. This deducts the specified amount of gold from their balance and adds the item to their inventory.Viewing Listings: Players can view current listings and prices using the
!market view <item_name>
command or see the latest items with the!market latest
command.Notifications: Both buyers and sellers receive notifications about successful transactions.
Website Integration
The marketplace system is also integrated with a website that displays all current listings. Players can visit the marketplace page to browse items by category, view prices, and see seller information.
Purpose
Economy: Facilitates trade between players, allowing them to buy and sell items they need or no longer want.
Engagement: Keeps players engaged by providing a platform for trading and earning gold.
Transparency: The website provides a transparent view of all marketplace listings, making it easy for players to find and compare items.
Outcome
Transactions: Successful transactions result in the transfer of items and gold between players.
Market Dynamics: Prices and availability of items fluctuate based on player activity, creating a dynamic and responsive in-game economy.
Last updated
Was this helpful?