Giter VIP home page Giter VIP logo

travian-elephant-finder's Introduction

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.

travian-elephant-finder's People

Contributors

tegos avatar dependabot[bot] avatar kingmaker-agm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.