cookietouch

CookieTouch API Documentation

Summary | Single page summary


Table of Contents

Jobs

All functions related to jobs.

The jobId list is in jobs.txt. The ressourceIds list is in resources.txt

jobs.hasJob(jobId: number)

Example:

const isPaysan = jobs.hasJob(28); // Checks if the character has the peasant job.

jobs.name(jobId: number)

Returns the job name.

Example:

const peasantName = jobs.name(28); // peasantName = "Peasant"

jobs.level(jobId: number)

Returns the job level.

Example:

const lvlPeasant = jobs.level(28);

jobs.getCollectSkills(jobId: number)

Returns an array of all the resources of a given job with which the bot can interact.

Example:

const paysanSkills = jobs.getCollectSkills(28); // Returns [38, 39]: bot can gather Wheat and Hops.

jobs.allCollectSkills

Returns an array of all the resources that the bot can harvest.

Example:

const skills = jobs.allCollectSkills; // Returns [38, 39, 1]: The bot can gather Wheat and Hops and Ash.