returnfalse,minetest.colorize(x_marketplace.colors.red,"MARKET PLACE: You need to write the item name you want to find. example: /mp find default:stone. See some suggestion from the store: ")..x_marketplace.store_get_random()
returnfalse,minetest.colorize(x_marketplace.colors.yellow,"MARKET PLACE: Oops there is no item like this in the store. Check out other items in the store: ")..x_marketplace.store_get_random()
returnfalse,minetest.colorize(x_marketplace.colors.yellow,"MARKET PLACE: There are no Mese Signs around you with text '/mp sell' on them. Transaction cancelled.")
returnfalse,minetest.colorize(x_marketplace.colors.yellow,"MARKET PLACE: You will go above the maximum balance if you sell this item. Transaction cancelled.")
returntrue,minetest.colorize(x_marketplace.colors.green,"MARKET PLACE: You sold "..item_count.." item(s) of "..item_name.." for "..sell_price.." BitGold. Your new balance is: "..new_balance.." BitGold")
returnfalse,minetest.colorize(x_marketplace.colors.red,"MARKET PLACE: You cannot sell this item. Search in store for items you can sell, example: /mp find stone. See some suggestion from the store: ")..x_marketplace.store_get_random()
returntrue,minetest.colorize(x_marketplace.colors.yellow,"MARKET PLACE: "..item_name.." buy: "..store_item.buy.." sell: "..store_item.sell..". You can sell the item(s) you are holding for: "..sell_price.." BitGold. example: /mp sellhand")
returnfalse,minetest.colorize(x_marketplace.colors.red,"MARKET PLACE: This item is not in store. See some suggestion from the store: ")..x_marketplace.store_get_random()
returnfalse,minetest.colorize(x_marketplace.colors.yellow,"MARKET PLACE: There are no Diamond Signs around you with text '/mp buy' on them. Transaction cancelled.")
returnfalse,minetest.colorize(x_marketplace.colors.red,"MARKET PLACE: You don't have enought BitGold. Price for "..amount.." item(s) of "..item_name.." is "..buy_price.." BitGold, but your current balance is: "..x_marketplace.get_player_balance(caller).." BitGold")
returntrue,minetest.colorize(x_marketplace.colors.green,"MARKET PLACE: You bought "..amount.." item(s) of "..item_name.." for "..buy_price.." BitGold. Your new balance is: "..new_balance.." BitGold")
returnfalse,minetest.colorize(x_marketplace.colors.red,"MARKET PLACE: This item is not in store. See some suggestion from the store: ")..x_marketplace.store_get_random()
returnfalse,minetest.colorize(x_marketplace.colors.yellow,"MARKET PLACE: You need to write the item name you want to sell. example: /mp sellinv default:stone. See some suggestion from the store: ")..x_marketplace.store_get_random()
returnfalse,minetest.colorize(x_marketplace.colors.yellow,"MARKET PLACE: There are no Mese Signs around you with text '/mp sell' on them. Transaction cancelled.")
returnfalse,minetest.chat_send_player(caller,minetest.colorize(x_marketplace.colors.yellow,"MARKET PLACE: We couldn't buy all your items without going above your maximum balance."))
end
ifover_max_balancethen
minetest.chat_send_player(caller,minetest.colorize(x_marketplace.colors.yellow,"MARKET PLACE: We couldn't buy all your items without going above your maximum balance."))
returntrue,minetest.colorize(x_marketplace.colors.green,"MARKET PLACE: You sold "..amount.." item(s) of "..params[2].." for "..sell_price.." BitGold. Your new balance is: "..x_marketplace.get_player_balance(caller).." BitGold")
returnfalse,minetest.colorize(x_marketplace.colors.red,"MARKET PLACE: You cannot sell this item. Search in store for items you can sell, example: /mp find stone. See some suggestion from the store: ")..x_marketplace.store_get_random()
returnfalse,minetest.colorize(x_marketplace.colors.yellow,"MARKET PLACE: You need to write the item name you want to buy. example: /mp buyinv default:stone, or check out other items in the store: ")..x_marketplace.store_get_random()
returnfalse,minetest.colorize(x_marketplace.colors.yellow,"MARKET PLACE: There are no Diamond Signs around you with text '/mp buy' on them. Transaction cancelled.")
returnfalse,minetest.colorize(x_marketplace.colors.red,"MARKET PLACE: You don't have enought BitGold. Price for "..amount.." item(s) of "..params[2].." is "..buy_price.." BitGold, but your current balance is: "..x_marketplace.get_player_balance(caller).." BitGold.")
returntrue,minetest.colorize(x_marketplace.colors.green,"MARKET PLACE: You bought "..amount.." item(s) of "..params[2].." for "..buy_price.." BitGold. Your new balance is: "..new_balance.." BitGold")
returnfalse,minetest.colorize(x_marketplace.colors.red,"MARKET PLACE: This item is not in store, check out other items from the store: ")..x_marketplace.store_get_random()
returnfalse,minetest.colorize(x_marketplace.colors.red,"MARKET PLACE: You need to write the item name you want to buy. example: /mp buy default:stone 10, or check out other items in the store: ")..x_marketplace.store_get_random()
returnfalse,minetest.colorize(x_marketplace.colors.yellow,"MARKET PLACE: There are no Diamond Signs around you with text '/mp buy' on them. Transaction cancelled.")
returnfalse,minetest.colorize(x_marketplace.colors.yellow,"MARKET PLACE: This item is not in store, check out other items from the store: \n")..suggestions
returnfalse,minetest.colorize(x_marketplace.colors.yellow,"MARKET PLACE: This item is not in store, check out other items from the store: ")..x_marketplace.store_get_random()
returnfalse,minetest.colorize(x_marketplace.colors.red,"MARKET PLACE: You don't have enought BitGold. Price for "..amount.." item(s) of "..params[2].." is "..buy_price.." BitGold, but your current balance is: "..x_marketplace.get_player_balance(caller).." BitGold")
returntrue,minetest.colorize(x_marketplace.colors.green,"MARKET PLACE: You bought "..amount.." item(s) of "..params[2].." for "..buy_price.." BitGold. Your new balance is: "..new_balance.." BitGold")
minetest.colorize(x_marketplace.colors.cyan,"/mp find").." <item name>, find item in store\n"..
minetest.colorize(x_marketplace.colors.cyan,"/mp balance")..", show your current balance in BitGold\n"..
minetest.colorize(x_marketplace.colors.cyan,"/mp sellhand")..", sell item(s) currently holding in hand, you must be near steel sign with text '/mp sell' on it\n"..
minetest.colorize(x_marketplace.colors.cyan,"/mp buyhand").." [<amount>], buy <amount> of item(s) currently holding in hand, when <amount> is not provided then amount is 1, you must be near steel sign with text '/mp buy' on it\n"..
minetest.colorize(x_marketplace.colors.cyan,"/mp infohand")..", show more information about the item(s) you are currently holding in hand from the store\n"..
minetest.colorize(x_marketplace.colors.cyan,"/mp buy").." <item name> [<amount>], buy <amount> of <item name> from store, if <amount> is not provided then amount is 1, you must be near steel sign with text '/mp buy' on it\n"..
minetest.colorize(x_marketplace.colors.cyan,"/mp sellinv").." <item name>, sell all items <item name> from the 'main' inventory list, you must be near steel sign with text '/mp sell' on it\n"..
minetest.colorize(x_marketplace.colors.cyan,"/mp buyinv").." <item name>, buy full inventory of items <item name>, empty slots in the 'main' inventory are required, you must be near steel sign with text '/mp buy' on it\n"..
minetest.colorize(x_marketplace.colors.cyan,"/mp top")..", show top 5 richest players currently online\n"..
minetest.colorize(x_marketplace.colors.cyan,"/mp help")..", print out this help\n"