Skip to content

tegos/travian-elephant-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stand With Ukraine

Travian Elephants 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:

  • .env file
  • src/config/cookie.txt 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

  • npm run clean - command clean data directory and create files
  • 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)

collect

  • npm run find - find animals in oases

find-process

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.