npetrovski / l2js-client

JavaScript client for Lineage 2
MIT License
109 stars 36 forks source link

(Question) Launcher support #11

Closed LeonanCarvalho closed 3 years ago

LeonanCarvalho commented 4 years ago

Can I use it for a launcher based on electron or other javascript compatible?

The idea is replace the login page and jump to server selection (like official clients do)

npetrovski commented 4 years ago

I see no reason why not :) As long as you can execute a JS interpreter and have an API for Socket connection, it should be possible. Take a look at the https://github.com/npetrovski/l2js-client/tree/master/src/socket folder and the adapter for the socket connection - you may need to write your own that works with electron.