
Originally Posted by
tenchi25
The core is written in Java with events and other things written in javascript. However what would be super handy would be to make the Localhost file read it's settings from an .ini file so it would be easier to change. That way we could remove the need to hexedit it.
Then just write a DLL hook to do this. You can use AuthHook which has WinSock hooks to redirect the client to your IP, and then you can use built-in C++ profile functions to get the IP.
Before hooking WinSock, we'd parse the IP from config and store it:
PHP Code:
const size_t uSize = 20;
char sIP[uSize];
GetPrivateProfileStringA("Server", "IP", "127.0.0.1", sIP, uSize, "Config.ini");
Then have an INI file:
Code:
[Server]
IP=127.0.0.1
Then simply get the host from the initialized IP and redirect it through the WSP_Connect hook.
OT: If you're asking what languages they're written in here, then the most common is Java and JavaScript. Some sources like mine use Python for scripts instead of JS though. There are other sources like Vana that are C++ and LUA, and even some sources written in C#. However, if you're asking what language to write a PS in, then I would personally suggest between Java or C++.