# sample-data

Generator of sample data – generate fake accounts, players & online players, maybe in future something more.

## Commands included
* sample-data:accounts - accounts generator
* sample-data:players - players generator
* sample-data:random-online - online players randomizer

## Usage
```
cd /var/www/html # or any other folder where myaac located is
```

Info:
`php aac` is a command, that executes the "aac" file by php interpreter from the myaac root folder.

### sample-data:accounts

Generate 10 accounts with the default password, which is: **pass1234**
```
php aac sample-data:accounts 10
```

Generate 5 accounts with custom password:
```
php aac sample-data:accounts --password="asdasd" 5
```

### sample-data:players

Generate 500 players with default settings:
```
php aac sample-data:players 500
```

Generate 100 players with 1000 level:
```
php aac sample-data:players --level=1000 500
```

### sample-data:random-online

Add 100 random online players
```
php aac sample-data:random-online 100
```

## Other options

### sample-data:accounts
* --password=x (password to use)
* --country=x (country code)
  * example: --country=pl (will be set for all accounts)
  * leaving it empty will generate a random country for every account
* --random-created="-5 year, -4 year"
  * The first parameter is start-date, the second is end-date 
  * Can be a comma-separated list of dates: "2010-01-01,2012-01-01" will create accounts with created date between those two
  * Can be also: "10 September 2000", "last Monday", or date in format "2010-01-01"

### sample-data:players
* --file=path/to/file.txt (list of names to use, one name per line)
* --account=x (account id)
* --account-from=x (first account id to use)
* --account-to=x (Last account id to use)
* --level=x
* --vocation=x (id of vocation, from 0 to 10 (with monk))
* --town=x (id of town)
* --look-type=x (id of outfit/lookType)
* --look-colors=x (color of the whole outfit (simplified), number from 0 to 132)
* --look-addons=x (0, 1 or 2)
* --look-head=x (color of head - number from 0 to 132)
* --look-body=x (color of body, same as above)
* --look-legs=x (color of legs, same as above)
* --look-feet=x (color of feet, same as above)
