cookietouch

CookieTouch API Documentation

Summary | Single page summary


Table of Contents

Mount

All functions related to mounts.

mount.isRiding

Returns true if the character is riding the mount, otherwise returns false.

mount.hasMount

Returns true if the character has a mount, otherwise returns false.

mount.currentRatio

Returns the percentage of experience given to the mount.

yield*mount.toggleRiding()

Allows you to go off or ride on the mount.

Returns false if the bot was unable to mount, otherwise returns true.

Example:

if (!mount.isRiding) {
  yield* mount.toggleRiding(); // If the character is not on the mount, then ride on the mount.
}

Tip: Once the function is called, it takes between a second and a second and a half for the action to be effective. If you must be sure to get on/off the mount to continue, you can use delay(2000) after toggleRiding().

yield*mount.setRatio(ratio: number)

Allows to modify the percentage of experience given to the mount.

Returns false if the given percentage is invalid, otherwise returns true.

Example:

yield* mount.setRatio(101); // false
yield* mount.setRatio(100); // true