Patch instead of editing hosts

Have you created a useful tool? or Do you want to get help building one? This is the right place!
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Tezeu
Posts: 1
Joined: Thu Sep 15, 2011 4:16 am

Patch instead of editing hosts

Post by Tezeu »

Hello everyone,

I simply hate to put my users on editing files, with notepad, adding, overwriting, erasing, etc, so I made 3 batch files for Windows XP, Windows Vista and Windows 7 to edit the users hosts file.

You simply have to right-click on the batch files, open with notepad, replace the IP in front of the L2authd link and then upload them to your server's website. Then the users can just download the batch file for his personal OS, run it and the enjoy the game.

Hope this helps.
@echo off
title Lineage 2 Hellgaming Patch v1.0a - Windows XP
echo Lineage 2 Hellgaming Patch v1.0a
echo OS Windows XP
echo.
echo.
echo.
echo ATTENTION!
echo.
echo This patch will modify your current Windows hosts file located in
echo C:\Windows\system32\drivers\etc
echo.
echo If you are not sure what this means please contact our Lineage 2
echo technical support team at http://www.something.com/
echo.
echo.
echo.
pause
cls
goto install
 
:install
echo Lineage 2 Hellgaming Patch v1.0a
echo OS Windows XP
echo.
echo.
echo.
echo # Copyright (c) 1993-1999 Microsoft Corp. >hosts
echo # >>hosts
echo # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. >>hosts
echo # >>hosts
echo # This file contains the mappings of IP addresses to host names. Each >>hosts
echo # entry should be kept on an individual line. The IP address should >>hosts
echo # be placed in the first column followed by the corresponding host name. >>hosts
echo # The IP address and the host name should be separated by at least one >>hosts
echo # space. >>hosts
echo # >>hosts
echo # Additionally, comments (such as these) may be inserted on individual >>hosts
echo # lines or following the machine name denoted by a '#' symbol. >>hosts
echo # >>hosts
echo # For example: >>hosts
echo # >>hosts
echo # 102.54.94.97 rhino.acme.com # source server >>hosts
echo # 38.25.63.10 x.acme.com # x client host >>hosts
echo 127.0.0.1 localhost >>hosts
echo ###### LINEAGE 2 HELLGAMING ###### >>hosts
echo xxx.xxx.xxx.xxx L2authd.lineage2.com >>hosts
move hosts "C:\Windows\system32\drivers\etc"
echo Your hosts file has been replaced successfully!
echo Please visit http://www.something.com/
echo for any support information. Enjoy playing!
echo.
echo.
echo.
pause
You do not have the required permissions to view the files attached to this post.
Post Reply