Skip to content

NickAlvesX/travian-elephant-finder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Travian Animals Finder

nature

The tool for analysis oases (free or occupied) and searching animals (Elephant and etc).

Tested in Shadow Empires, Fire and Sand and Legends (4).

fire_and_sand
legends_logo_black legends_logo_black

How to use

Setup

  • clone the repo
  • install the dependencies, yarn install
  • run npm run preinstal or npm run preinstal-windows
  • you should probably register new fake account for these manipulations.

Config

Set correct configuration in:

  • src/config/.env file
  • src/config/cookie.text file

cookie

  1. Open map, https://your-game-world.travian.com/karte.php

    map
  2. Open DevTools(F12 Chrome), Network tab’s, filter by XHR:

    dev_tools
  3. Select random request from list (F5 if it’s empty) and copy cookie from request:

    cookies
  4. Insert selected cookie value into src/config/cookie.text file

MIN_X, MIN_Y

The Top Left Corner Co-Ordinate of the Map Area to be searched.

MAX_X, MAX_Y

The Bottom Right Corner Co-Ordinate of the Map Area to be searched.

START_X, START_Y

Position of search (your village or cap, probably), calculate distance (for sorting oases closest to you)

map_min_max

Start

Run command npm run clean clean data directory and create files. After that run npm run collect (collecting oases position) and wait… It will take a lot of time (depends on your config (MIN_X, MIN_Y, MAX_X, MAX_Y, DELAY_MIN, DELAY_MAX) etc).

npm_collect

After execution npm run collect run npm run find.

npm_find

Result in excel file: data/elephant_*.xlsx

x y Elephant Another animal hasCrocodile hasTiger totalAnimal
-18 5 7 6 1 1 141
-14 3 4 5 0 0 34
-42 14 3 4 0 0 77
-48 -7 3 4 0 0 84

result_oasis

Technologies:

  • JavaScript;
  • NodeJS;
  • Axios;
  • Cheerio.

Author

License

This project is licensed under the MIT License - see the LICENSE file for details

Disclaimer

Please note that this is a research project, I am by no means responsible for any usage of this tool.
Use on your own behalf, I am also not responsible if your accounts get banned due to extensive use of this tool.

About

Travian Animals Finder

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.8%
  • Shell 1.2%