# Scripts for the browser game tribal wars.

## Installation

1. Add [Tampermonkey](https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo) to your browser.
2. Select a script that you wish to use, and copy the code.
3. Open Tampermonkey in your browser and click the Add Script tab.
4. Paste the code, hit save (shortcut: CTRL + s).
5. The script should be visible in the game.

## Scripts

- [Latest ennoblements](#1-latest-ennoblements)
- [Extended player profile](#2-extended-player-profile)
- [Extended tribe profile](#3-extended-tribe-profile)
- [Extended village profile](#4-extended-village-profile)
- [Bonus barbarian village finder](#5-bonus-barbarian-village-finder)
- [Daily achievements](#6-daily-achievements)
- [Extended map popup](#7-extended-map-popup)
- [Map coords picker](#8-map-coords-picker)
- ['In A Day' tribe ranking generator](#9-in-a-day-tribe-ranking-generator)
- [War stats generator](#10-war-stats-generator)

### 1. Latest ennoblements

[Code](https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/latestEnnoblements.js)

This script shows you the latest ennoblements from your server. Works in real-time.

![Screenshot](/screenshots/latestEnnoblements.png?raw=true)

### 2. Extended player profile

[Code](https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedPlayerProfile.js)

This script adds many useful actions and pieces of information to the player profile.

- Daily growth
- Best rank
- Join date
- Most points
- Most villages
- Player's other worlds
- Player's other names
- Today's stat changes
- 'In a day' best scores

New actions:

- Show player changes
- Show player history
- Show player ennoblements
- Export player villages

![Screenshot](/screenshots/extendedPlayerProfile.png?raw=true)

### 3. Extended tribe profile

[Code](https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedTribeProfile.js)

This script adds many useful actions and pieces of information to the tribe profile.

- Dominance
- Best rank
- Create date
- Most points
- Most villages
- Today's stat changes
- OD, ODA, ODD, ODS ranks and scores to tribe members

New actions:

- Show tribe changes
- Show tribe history
- Show members growth
- Show tribe ennoblements
- Generate mailing list
- Export tribe villages

![Screenshot](/screenshots/extendedTribeProfile.png?raw=true)

### 4. Extended village profile

[Code](https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedVillageProfile.js)

This script adds new actions and pieces of information to the village profile.

- Possible loyalty
- Last ennoble date

New actions:

- Show ennoblements
- Count incoming support

![Screenshot](/screenshots/extendedVillageProfile.png?raw=true)

### 5. Bonus barbarian village finder

[Code](https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/bonusBarbarianVillageFinder.js)

Adds to map screen new functionality to search bonus barbarian villages easily.

![Screenshot](/screenshots/bonusBarbarianVillageFinder.png?raw=true)

### 6. Daily achievements

[Code](https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/dailyAchievements.js)

![Screenshot](/screenshots/dailyAchievements.png?raw=true)

### 7. Extended map popup

[Code](https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedMapPopup.js)

Adds to popup:

- Information about possible loyalty
- Last ennoble date
- Information if you can send noble from the current village
- Unit arrival time

![Screenshot](/screenshots/extendedMapPopup.png?raw=true)

### 8. Map coords picker

[Code](https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/mapCoordsPicker.js)

![Screenshot](/screenshots/mapCoordsPicker.png?raw=true)

### 9. 'In A Day' tribe ranking generator

[Code](https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/inADayTribeRankingGenerator.js)

![Screenshot](/screenshots/inADayTribeRankingGenerator.png?raw=true)
![Screenshot](/screenshots/inADayTribeRankingGenerator2.png?raw=true)

### 10. War stats generator

[Code](https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/warStatsGenerator.js)

![Screenshot](/screenshots/warStatsGenerator.png?raw=true)
