[NodeJS - JS/TS]Metin2 API Script

Site-uri, tutoriale , index-uri, probleme/întrebări.
Avatar utilizator
charparodar
Nou Venit

Nou Venit
Mesaje: 11
Membru din: 06 Mai 2016, 21:55
Server: Exys2
Regat: Shinsoo
Aprecieri: 8  
Mulţumiri: 7  
Discord: Copiază ID
 Contact:
Medalii

Hello

Since most of the work I do is in NodeJS (JavaScript and TypeScript), I needed to make a script to access the Metin2 API.

GitHub: https://github.com/Karbust/Metin2-API-Script

It has a JavaScript and a TypeScript version.

To use just edit either file and set your server's data. This code is synchronous, meaning, it will block while waiting for a response from the server. It can be made asynchronous with Promises.

On both files there's also a list of the most useful commands available, you can create more on the game source.

You can find how to use it on the GitHub repository.

Hope it's useful to someone.
Pentru acest mesaj, charparodar a primit 2 (de) mulţumiri
ASTRO. • Lehel
Imagine

Imagine
Afișează semnătura
Avatar utilizator
ASTRO.
Nivel 1

Nivel 1
Mesaje: 72
Membru din: 28 Feb 2021, 17:05
Regat: Jinno
Aprecieri: 12  
Mulţumiri: 342  
  Rezolvări prob.: 1
Discord: Copiază ID
Medalii

:exploding_head:
Are you just exposing a sync connection between server - new client, which will require me to develope my app versions on serverside?
Or does metin have an existing interface which you are calling, and already exposes some uri's i can and do w/e http methods to pass data?
Avatar utilizator
charparodar
Nou Venit

Nou Venit
Mesaje: 11
Membru din: 06 Mai 2016, 21:55
Server: Exys2
Regat: Shinsoo
Aprecieri: 8  
Mulţumiri: 7  
Discord: Copiază ID
 Contact:
Medalii

ASTRO. scrie: ↑19 Mai 2021, 10:43 :exploding_head:
Are you just exposing a sync connection between server - new client, which will require me to develope my app versions on serverside?
Or does metin have an existing interface which you are calling, and already exposes some uri's i can and do w/e http methods to pass data?
I'm making use of the metin2 api already existent on the game source, nothing new. There're already some useful commands, but more can be created by the game admin.

This code only runs on server-side, it can't be run on a browser, but you can me a HTML and JS page to send data to the back-end.
Imagine

Imagine
Afișează semnătura
Răspunde
Răspunsuri
1
Vizualizări
752
Răspunsuri
7
Vizualizări
2238
Răspunsuri
1
Vizualizări
950
Răspunsuri
1
Vizualizări
294

Înapoi la “Web Scripting”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 2 vizitatori