Page 1 of 1

Questions regarding sending packets to L2JServer

Posted: Sun Jul 02, 2017 11:31 am
by Quantum
Hello :wave:

I'm trying to create a web interface that allows me to perform certain operations ingame such as directly adding items to a given player's inventory, or something like opening a dialog window for every player ingame by pressing a button in my web interface.

After looking inside the L2J source code I found that the class is responsible for handling packets which bode well for my little side project. However, it seems in order for a packet to get processed, the L2GamePacketHandler needs a L2GameClient which leads me to my questions:

- Is it possible for anything other than a L2GameClient to get it's packets handled by the L2JServer?
- If this is indeed possible, how would I implement this? (maybe post actual/pseudo code if it's not too much trouble)
- If this is not possible, would it then be possible to create a workaround?

My knowledge regarding the structuring of MMO's is limited which is why I've decided to make this thread, so forgive me if my questions sound stupid.


Re: Questions regarding sending packets to L2JServer

Posted: Mon Jul 03, 2017 1:03 pm
by UnAfraid

You might wanna check telnet implementation, or your own REST api within the server source if you like something more modern and secure for usage outside localhost (Because i wouldn't recommend exposing telnet to public internet)