/Metin2-API-Script

A script to interact with the Metin2 API.

Primary LanguageTypeScript

Metin2 API

A script to interact with the Metin2 API.

Metin2 API Script

Getting Started

Install NodeJS: https://nodejs.org/en/download/
Install Yarn: https://yarnpkg.com/getting-started/install

Clone the repository:

git clone https://github.com/Karbust/Metin2-API-Script

Install the dependencies:

yarn install

Open either script_javascript.js or script_typescript.ts and edit the variables.

To run:

  • JavaScript version:
    • yarn run js
  • TypeScript version:
    • yarn run ts

Available Commands

Command Purpose
yarn run ts Runs the TypeScript code version.
yarn run ts-compile Compiles the TypeScript code.
yarn run ts-built Runs the compiled TypeScript code.
yarn run js Runs the JavaScript code version.