Retail Tycoon, a command group of Anhattam.
Intro
All Retail Tycoon commands will first execute rtcheck()
to prevent users vulnerating Anhattam and exceptions. rtcheck()
consists of 3 steps:
- Checks whether
'userid/rt'
exists in database. - Checks whether any subcommand has been passed.
- Checks whether Anhattam is online. (Only executed by Developing version of Anhattam, to prevent users using 2 bots at the same time, gaining double rewards.)
The #I don't care Getting started guide
- Create a profile if you haven't (you need to send twice in first response is 'Account created' in stead of 'Profile created') :
a/rt start
- Set up your first store :
a/rt store 1 (category)
Guide
Retail Tycoon(RT) is made up of several elements:
Store
Store
represents an object that enable you to earn money in Retail Tycoon. All data is saved under userid/rt
key in the database.There are several categories of store:
Store Categories
- None (Initial value)
- 0: Food
- 1: Instrument
- 2: Electronic
- 3: Gaming
- 4: Hat
- 5: Book
Store ID
When Anhattam creates a store, it adds a userid/rt/store<k>
key.<k>
is the ID of the previous store + 1. None
will then be assigned into the key, indicating that the store has no valid category. To set a store's category, use a/rt store set
a/rt store
Sends amount of stores that you own.
a/rt store (store-id)
Sends information (under rt/store<id>
key) of a store with the specific ID.
- Parameters:
store-id
a/rt store set (store-id) (category)
Sets a category for a store.
WARNING! AFTER YOU SET A STORE, THERE IS NO WAY TO REVERT IT!
Parameters:
* store-id
: The store id of the store you want to set.
* category-id
: The category
that you want to set to.
a/rt store categories
Sends a list of category
Other a/rt
commands:
a/rt start
Verifies a rt
key in database. If not found, generate one and asks user to input the RT name, which will then be stored in rt['Name']
key.
If rt
key has been detected, replies that the user can't register another rt
key.