TA的每日心情 | 开心 2022-11-22 02:39 |
---|
签到天数: 73 天 [LV.6]常住居民II
高级会员

- 积分
- 709
|
发表于 2022-9-5 03:11:48
|
显示全部楼层
在 https://www.l2jserver.com/windows.html 网页最下面有L2.exe的c++原始码和档案下载,最好自己制作执行档,避免有木马,目前持续测试研究中。
网页步骤中"Build the Server from Source Code"一开始没选对jav版本安装会出错,我安装 OpenJDK17U-jdk_x64_windows_hotspot_17.0.4.1_1.msi 才能顺利编译成功。
步骤 "Get L2J CLI and Install the Database" 还没提供L2J CLI下载连结。
===
#define _WIN32_WINNT _WIN32_WINNT_WINXP
#define NOMINMAX
#include <windows.h>
#include <cstdlib>
// Start L2 as .bin with IP as parameter.
// You can use IP or DNS as IP parameter.
// You could include other parameters.
// You can change the path to the .bin file to avoid including the L2.exe inside the System folder.
// Author: Zoey76
int _stdcall wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nShowCmd) {
ShellExecute(0, L"open", L"cmd.exe", L"/C start l2.bin IP=127.0.0.1", 0, SW_HIDE);
} |
|