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.
[NodeJS - JS/TS]Metin2 API Script
- charparodar
-

- Mesaje: 11
- Membru din: 06 Mai 2016, 21:55
- Server: Exys2
- Regat: Shinsoo
- Aprecieri: 8
- Mulţumiri: 7
- Discord: Copiază ID
- Contact:
- Pentru acest mesaj, charparodar a primit 2 (de) mulţumiri
- ASTRO. • Lehel
- ASTRO.
-

- Mesaje: 72
- Membru din: 28 Feb 2021, 17:05
- Regat: Jinno
- Aprecieri: 12
- Mulţumiri: 342
- Rezolvări prob.: 1
- Discord: Copiază ID
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?
- charparodar
-

- Mesaje: 11
- Membru din: 06 Mai 2016, 21:55
- Server: Exys2
- Regat: Shinsoo
- Aprecieri: 8
- Mulţumiri: 7
- Discord: Copiază ID
- Contact:
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.ASTRO. scrie: ↑19 Mai 2021, 10:43![]()
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?
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.
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 1 vizitator

