cookietouch

CookieTouch API Documentation

Summary | Single page summary


Table of Contents

NPC

All functions related to npc.

Parameters Types Description
npcId number NPC ID or -1 for the first NPC on the map
replyId number ID of the response
actionIndex number Action indev

yield*npc.npcBank(npcId: number, replyId: number)

Allows you to open the bank.

Example:

yield* npc.npcBank(-1, -1); // Choose the first npc of the map and choose the first answer.

yield*npc.npc(npcId: number, actionIndex: number)

Allows you to talk to an NPC and select the action to use.

Example:

yield* npc.npc(-1, -1); // Choose the first npc of the map and choose the first answer.

yield*npc.reply(replyId: number)

Allows you to answer to an NPC.

Example:

yield* npc.reply(-1); // Choose the first answer.