PDA

View Full Version : Different accounts same IP non-simultaneous


JrFaust
08-22-2006, 03:34 PM
I tried to setup two different accounts on one IP. One I want to be my god account and the other a normal account. But so far when I login to my server it defaults to the first account it finds with my IP address.

I assume that this is due to minilogin authenticating via an IP address rather than by account. Is there away around this? Does the LS server do the same?

Thank you for your time.

mattmeck
08-22-2006, 07:40 PM
Minilogin uses IP to attatch accounts too, you can use any user / pass and it will give the same account.

The public login server uses account names / passes to attatch account.

Angelox
08-23-2006, 01:33 AM
Here's a solution for you - you only need to edit and change the account names and ip to what ever yours is.
I also posted these at my web page for download.
The first is a batch file (prestart.bat);
@ECHO off
cls
@ECHO.
@ECHO.
ECHO Please choose which EQEMU account you want to use
:start
ECHO.
ECHO 1. Altec (GM Account)
ECHO 2. Aguadilla
ECHO 3. Angelox
set choice=
set /p choice=Type the number to print text.
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' goto altec
if '%choice%'=='2' goto aguadilla
if '%choice%'=='3' goto angelox
ECHO "%choice%" is not valid please try again
ECHO.
goto start

:altec
C:\mysql\bin\mysql.exe -u root < C:\eqemu\account1.sql
ECHO Account set to Altec
sleep 3
c:\eqemu\start.bat
goto end

:aguadilla
C:\mysql\bin\mysql.exe -u root < C:\eqemu\account2.sql
ECHO Account set to Aguadilla
sleep 3
c:\eqemu\start.bat
goto end

:angelox
C:\mysql\bin\mysql.exe -u root < C:\eqemu\account3.sql
ECHO Account set to Angelox
sleep 3
c:\eqemu\start.bat
goto end

:end

next three are sql files;

account1.sql
# sets altec
use peq;
update account set minilogin_ip="192.168.2.102" where name="Altec";
update account set minilogin_ip="192.168.2.000" where name="Aguadilla";
update account set minilogin_ip="192.168.2.000" where name="Angelox";

account2.sql
# sets aguadilla
use peq;
update account set minilogin_ip="192.168.2.000" where name="Altec";
update account set minilogin_ip="192.168.2.102" where name="Aguadilla";
update account set minilogin_ip="192.168.2.000" where name="Angelox";


account3.sql
# sets angelox
use peq;
update account set minilogin_ip="192.168.2.000" where name="Altec";
update account set minilogin_ip="192.168.2.000" where name="Aguadilla";
update account set minilogin_ip="192.168.2.102" where name="Angelox";

As you can see, my client machine is 192.168.2.102 (you change this to what ever your client machine ip is.
Take all these files and place them in your eqemu directory - I already tried them out, and, am using. Works fine.

Angelox
08-23-2006, 08:28 AM
I've been thinking about this, and the way I have it, it starts the server everytime you run it - maybe you might want to leave your server running while you change accounts.
In that case just REM out all the "c:\eqemu\start.bat" lines.

JrFaust
08-23-2006, 12:40 PM
Thanks Angelox that's a really cool set up I'll try that.