# buy\_buy\_buy

## Description

I got a lot of items to sell so buy buy buy.

Challenge Author: Pranav Goel

## Solution

There was an "auction bot" on Discord.

![](https://3167364547-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX1bWRlBzHpEPe1TYDD%2Fuploads%2Fgit-blob-5409d21390a423442aa45c60a0e0f0991ac14e32%2FScreenshot%202021-07-31%20at%204.13.06%20PM.png?alt=media)

It sold different types of items (single, collectable, part and set). The value of a `single` item is static, a `collectable` item increases in value by an arbitrary multiplier when sold, and `parts` can be combined to form a `set` which is worth more than the sum of its parts!

To view the items being sold, we can use `/marketplace`. The goal is to get enough money to buy all three flags (Flag Common, Flag Rare and Flag Ultra Rare).

![](https://3167364547-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX1bWRlBzHpEPe1TYDD%2Fuploads%2Fgit-blob-8ce96f2773a1d7c41d69ddc635020f4d1dab15ae%2FScreenshot%202021-07-31%20at%204.10.02%20PM.png?alt=media)

We start off with $10,000. While there are many paths to winning, my strategy ended up being repeatedly buying and selling the Shiny Pokemon Card item.

The first Shiny Pokemon Card was bought for $10,000, but when sold, it made an overall profit of $5000.

![](https://3167364547-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX1bWRlBzHpEPe1TYDD%2Fuploads%2Fgit-blob-ced25f732e053f18cdca65e2ebf6e3b84280d153%2FScreenshot%202021-07-31%20at%204.19.50%20PM.png?alt=media)

![](https://3167364547-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX1bWRlBzHpEPe1TYDD%2Fuploads%2Fgit-blob-852363664a4b627414f3d5d25c57ebfc36311e1b%2FScreenshot%202021-07-31%20at%204.19.34%20PM.png?alt=media)

As our balance increases, we could buy and sell more items at a time, increasing the rate at which we earn more profit.

![](https://3167364547-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX1bWRlBzHpEPe1TYDD%2Fuploads%2Fgit-blob-5bdb28918ee35ff844dbb2c314c7a5a66a3e530c%2FScreenshot%202021-07-31%20at%204.11.49%20PM%20\(1\).png?alt=media)

Repeat this enough times, and we get enough money for all three flags.

![](https://3167364547-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX1bWRlBzHpEPe1TYDD%2Fuploads%2Fgit-blob-d5e49d943fed6fbc1805febe929ddcec0f08aff2%2FScreenshot%202021-07-31%20at%204.10.57%20PM.png?alt=media)

Use `/redeem_flags`, and the bot DMs us the flag!

![](https://3167364547-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX1bWRlBzHpEPe1TYDD%2Fuploads%2Fgit-blob-8018339c531d586392cdc310d09512cd54f310b2%2FScreenshot%202021-07-31%20at%203.36.24%20PM.png?alt=media)
