Jump to content

Recommended Posts

Posted
On 7/1/2018 at 8:21 PM, *real*savormix said:

You must be on a very old W10 version or not even using Windows 10. All known methods to run old clients, one by one, were killed by cumulative Win10 updates. If you find another workaround and make it publically known, MS will definitely include a patch that negates it in one of their upcoming updates.

 

Not true, take for example L2oldskool C3 client, runs fine under latest Windows 10, and their launcher.bat was made long time before Windows 10 cumulative updates.

 

Spoiler

REM Check Windows Version
ver | findstr /i "5\.0\." > nul
if %ERRORLEVEL% EQU 0 goto ver_2000
ver | findstr /i "5\.1\." > nul
if %ERRORLEVEL% EQU 0 goto ver_XP
ver | findstr /i "5\.2\." > nul
if %ERRORLEVEL% EQU 0 goto ver_2003
ver | findstr /i "6\.0\." > nul
if %ERRORLEVEL% EQU 0 goto ver_Vista
ver | findstr /i "6\.1\." > nul
if %ERRORLEVEL% EQU 0 goto ver_Win7
ver | findstr /i "6\.2\." > nul
if %ERRORLEVEL% EQU 0 goto ver_Win7

:ver_2000
echo 2000
goto runL2
:ver_XP
echo xp
goto runL2
:ver_2003
echo 2003
goto runL2

:runL2
SET L2DIR=%~dp0
ECHO Current directory: %L2DIR%
if exist "%L2DIR%\CoreDEFAULT.dll" (
    ren "%L2DIR%\Core.dll" Core7.dll
    ren "%L2DIR%\CoreDEFAULT.dll" Core.dll
)
if not exist "%L2DIR%\l2.exe" goto ERR2
START /MIN l2.exe
goto END


:ver_Vista
echo Vista
goto BatchGotAdmin
:ver_Win7
echo Windows7
goto BatchGotAdmin
:BatchGotAdmin
:-------------------------------------
REM  --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"

REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
    echo Requesting administrative privileges, please wait...
    goto UACPrompt
) else ( goto gotAdmin )

:UACPrompt
    echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
    echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"

    "%temp%\getadmin.vbs"
    exit /B

:gotAdmin
    if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
    pushd "%CD%"
    CD /D "%~dp0"
:--------------------------------------
if exist "%SystemRoot%\SysWOW64\cmd.exe" SET SYSDIR="%SystemRoot%\SysWOW64"
goto STEP0
SET SYSDIR="%SystemRoot%\System32"

:STEP0
SET L2DIR=%~dp0
ECHO Current directory: %L2DIR%
pause
if exist "%L2DIR%\CoreDEFAULT.dll" (
    ren "%L2DIR%\Core.dll" Core7.dll
    ren "%L2DIR%\CoreDEFAULT.dll" Core.dll
)
pause
if not exist "%L2DIR%\l2.exe" goto ERR2
CD SYSTEM
if not exist "%SYSDIR%\rsaenh.dll" goto ERR3
if exist ".\rsaenh.dll.bak" goto STEP1
takeown /f "%SYSDIR%\rsaenh.dll"
icacls "%SYSDIR%\rsaenh.dll" /grant %USERNAME%:F
move /Y "%SYSDIR%\rsaenh.dll" "%SYSDIR%\rsaenh.dll.bak"
if not exist "%SYSDIR%\rsaenh.dll.bak" goto ERR4
:--------------------------------------


:STEP1
if exist "%SYSDIR%\rsaenh.dll" del "%SYSDIR%\rsaenh.dll"

:CRTWAIT
if exist waitl2run.bat del waitl2run.bat
:: Waiting 10 seconds and moving rsaenh.dll back to SYSTEM folder.
echo @echo off>waitl2run.bat
echo cls>>waitl2run.bat
echo TIMEOUT /T 10>>waitl2run.bat
echo move /Y "%SYSDIR%\rsaenh.dll.bak" "%SYSDIR%\rsaenh.dll">>waitl2run.bat
echo EXIT>>waitl2run.bat

START /MIN %L2DIR%\l2.exe
START /MIN waitl2run.bat
goto END
:--------------------------------------


:ERR2
COLOR 0C
echo.
echo. L2.exe not found.
echo. Place this file into your system folder.
pause
goto END
:--------------------------------------

:ERR3
COLOR 0C
echo.
echo. "%SYSDIR%\rsaenh.dll" could not be found.
pause SET /P ANSWER=Should i try to execute L2.exe (y/n)?

if /i {%ANSWER}={y}{goto YES}
if /i {%ANSWER}={Y}{goto YES}
if /i {%ANSWER}={yes}{goto YES}
if /i {%ANSWER}={YES}{goto YES}
if /i {%ANSWER}={Yes}{goto YES}
goto NO
:YES
START /MIN %L2DIR%\l2.exe
:NO
goto END
:--------------------------------------


goto END

:ERR4
COLOR 0C
echo.
echo. Could not move "%SYSDIR%\rsaenh.dll"
echo. You need to run this script as administrator.
pause
goto END
:--------------------------------------

 

:END

 

 

Posted
On Sunday, July 08, 2018 at 1:10 PM, lordofdest said:

Changes:

win10 support

l2encdec rsa key

multi-window

 

l2.ini:

isl2netlog=true

serveraddr=127.0.0.1

startupfullscreen=false

 

Notes: Run in compatibility with win xp

 

Link:

Mega

 

this is C1 system patch..not Prelude...

  • 3 weeks later...
Posted (edited)
On 7/7/2018 at 6:13 PM, sandeagle said:

well...thank you ,sepultribe

last night i tried to setup a prelude server,but failed.....

 

dont know why l2authd show these errors,i used prelude DBscripts.any1 knows?

 

OS:win server 2003 enterprise x64

111.png

 

something in the DB connection config or wrong table names, there were 2 different prelude packs circulating back in 2004 afaik, they had some small differences in the db scripts.

 

can you plz reupload the pack the OP posted in this topic? or anyone else that has it?

 

ps: Error 42S02 indicates that object was not found in the db, in your case, tables server and worldstatus could not be located

Edited by sepultribe

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...