Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 12-28-2003, 07:36 AM
r2d2atemyhomework
Fire Beetle
 
Join Date: Dec 2003
Posts: 10
Default

kathgar,

I have had problems using multiple accounts with minilogin and 5.3DR2. My miniloginaccounts.ini is setup correctly with a space after every line but the last and the usernames are <= 8 characters. However I don't think it is worth wasting time trying to figure this out since people can use the real login server. Also, people can do what I did below.


siberiaic,

Here's a kludge which will allow you to use multiple accounts with minilogin. Add the following after line 219 in world/client.cpp:

Code:
				struct in_addr login_ip_s;
				login_ip_s.s_addr = ip;
				char* login_ip = inet_ntoa(login_ip_s);
				if( !strcmp(login_ip, "192.168.0.101") )
				{
					strcpy(name, "youruser");
					strcpy(password, "yourpass");
				} 
				else if( !strcmp(login_ip, "192.168.0.102") )
				{
					strcpy(name, "youruser");
					strcpy(password, "yourpass");
				}
				
				// ... and so on with more else ifs for each of your servers
Replace the 192.168.0.x addresses with the addresses of your clients. Replace the "youruser" and "yourpass" with the appropriate username and password for that ip address. If you really feel like getting fancy you can write a method which parses the information from miniloginaccounts.ini and change the code above to use the parsed information. However I am too lazy to do that right now.
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 08:48 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3