summaryrefslogtreecommitdiff
path: root/server/frob/README.md
blob: 0d64f7d458722e29f7a5999777e5f249910c85d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# tmwAthena item frobber
## Prerequisites
- [Deno] `v0.X`
    - must be in your `$PATH`

## Compatibility
- works with tmwAthena `v16.2.9 - v19.4.15`
    - newer versions may modify the flatfile structure and break the regexes

## Usage
- from `tmwa-server-data`:
```sh
# choose whatever syntax you prefer:
make frob items="item[,item[,item...]]"     # item list (csv)
make frob items="item[ item[ item...]]"     # item list
make frob items="item-item"                 # item range
make frob items="item..item"                # item range
make frob items="item,item item-item item"  # mixed
```

### Special flags
- `--dry`: performs a dry run (does not modify databases)
- `--sql`: converts the flatfile databases to MySQL tables in the `legacy` database
- `--stats`: compiles statistics about general item distribution

[Deno]: https://deno.land