Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::General > Archive::General Discussion

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

Reply
 
Thread Tools Display Modes
  #1  
Old 09-07-2003, 01:13 PM
Kgaul
Hill Giant
 
Join Date: Apr 2003
Posts: 225
Default Will you be able to...

(sorry if this is not the correct forum)

Will you be able to control who logs onto your server? If i wanted grant players access...
If i wanted players to register before they log into our server. The server we are working on will be Legit, and i'm sure we dont want to have to answer 50 ooc's a night about "why doesn't level work" "why cant i #zone" "who is leveling players?" "you guys suxor" ect.

Those who are helping with Raevenloft are intrested in a fun legit server with lots of events and raids for all levels.

StormHammer on live (i think thats the legends server) gave me the idea. Flagged accounts or a DB table that can be activated to admit only those who are added...

I hope you have the general idea of this post.


Kgaul
Reply With Quote
  #2  
Old 09-07-2003, 09:34 PM
Mongrel
Hill Giant
 
Join Date: Jul 2003
Location: Germany
Posts: 232
Default

The source code is all there. It's easy to write a few lines so that world.exe only allows specific accounts to log on.

Something like:

world/client.cpp:

Code:
case OP_SendLoginInfo:

char name[19] = {0};
char password[16] = {0};

strncpy(name, (char*)app->pBuffer, 18);

if ((!strcmp(name, "goodfriend1")) || (!strcmp(name, "goodfriend2")))
   cout << "Legit account logged on " << name  << endl;
else
{
   cout << "Invalid account detected: " << name << endl;
   ret = false;
   break;
}
Of course, it would be better to write a function that checks a database or ini file for legit accounts
Reply With Quote
  #3  
Old 09-08-2003, 04:23 PM
Kgaul
Hill Giant
 
Join Date: Apr 2003
Posts: 225
Default

I dont know coding, but maybe a table can be set up in DB with a check to world .ini like accounts DB = (true if you want to use Db or false if you want everyone on your server)

Just a thought, what do you coders think?

Kgaul
Reply With Quote
  #4  
Old 09-09-2003, 01:07 AM
Merth
Dragon
 
Join Date: May 2003
Location: Seattle, WA
Posts: 609
Default

There's a trick you can do to get this to work. Set your default status for new users in the LoginServer.ini to -2 (banned) after the users you want to login have received a higher status.
Reply With Quote
  #5  
Old 09-09-2003, 09:21 AM
Kgaul
Hill Giant
 
Join Date: Apr 2003
Posts: 225
Default

thats a great idea. i have two questions though.
1 does the higher status mean thay are all gm?
2 how would i handle new apps to the server? (ie some one registered to join in an Event and then i would flag them in the DB...)

Thanks

Kgaul
Reply With Quote
  #6  
Old 09-09-2003, 11:05 AM
Merth
Dragon
 
Join Date: May 2003
Location: Seattle, WA
Posts: 609
Default

Here are the valid status values:

-2 = banned
-1 = suspended
0 = normal
10 = priv
20 = very priv
80 = quest troupe (guide)
100 = gm
150 = lead gm
200 = serverop
250 = debug

Dunno about handling new applicants to the server - that's your job!
Reply With Quote
Reply


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 11:51 PM.


 

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