PDA

View Full Version : Will you be able to...


Kgaul
09-07-2003, 01:13 PM
(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

Mongrel
09-07-2003, 09:34 PM
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:


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 ;)

Kgaul
09-08-2003, 04:23 PM
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

Merth
09-09-2003, 01:07 AM
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.

Kgaul
09-09-2003, 09:21 AM
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

Merth
09-09-2003, 11:05 AM
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!