Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

Reply
 
Thread Tools Display Modes
  #1  
Old 10-16-2009, 06:44 PM
Shin Noir's Avatar
Shin Noir
Legendary Member
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 506
Default lowername bypass check

Someone directed me on how to make a lowercase name, you create e.g. "Ttest", and move the cursor the capital T, and remove it, and now it'll be "test", to be submitted.
Here is a name approval request for lowercase with latest SVN:
Code:
[Debug] [WORLD__CLIENT] myloginname: Name approval request.  Name=test, race=Barbar
ian, class=Beastlord
[Debug] [WORLD__CLIENT] myloginname: Character creation request from myloginname LS#13
9499 (127.0.0.1:50255) :
[Debug] [WORLD__CLIENT] myloginname: Name: test
[Debug] [WORLD__CLIENT] myloginname: Race: 2  Class: 15  Gender: 1  Deity: 208  Sta
rt zone: 2
[Debug] [WORLD__CLIENT] myloginname: STR  STA  AGI  DEX  WIS  INT  CHA    Total
[Debug] [WORLD__CLIENT] myloginname: 103  125   87   70   80   60   60     585
[Debug] [WORLD__CLIENT] myloginname: Face: 1  Eye colors: 0 0
[Debug] [WORLD__CLIENT] myloginname: Hairstyle: 0  Haircolor: 0
[Debug] [WORLD__CLIENT] myloginname: Beard: 0  Beardcolor: 0
[Debug] [WORLD__CLIENT] Validating char creation info...
[Debug] [WORLD__CLIENT] Found 0 errors in character creation request
So I added this patch:
Code:
Index: world/client.cpp
===================================================================
--- world/client.cpp	(revision 1014)
+++ world/client.cpp	(working copy)
@@ -1092,7 +1092,14 @@
 
 	int stats_sum = cc->STR + cc->STA + cc->AGI + cc->DEX +
 		cc->WIS + cc->INT + cc->CHA;
-
+	//Shin: clean the capitalization of the name BEFORE request check
+	for (i = 0; name[i] && i < 63; i++)
+	{
+		if(!isalpha(name[i]))
+			return false;
+		name[i] = tolower(name[i]);
+	}
+	name[0] = toupper(name[0]);
 	in.s_addr = GetIP();
 	clog(WORLD__CLIENT,"Character creation request from %s LS#%d (%s:%d) : ", GetCLE()->LSName(), GetCLE()->LSID(), inet_ntoa(in), GetPort());
 	clog(WORLD__CLIENT,"Name: %s", name);
@@ -1119,18 +1126,8 @@
 	InitExtendedProfile(&ext);
 
 	strncpy(pp.name, name, 63);
-	// clean the capitalization of the name
-#if 0	// on second thought, don't - this will just make the creation fail
-// because the name won't match what was already reserved earlier
-	for (i = 0; pp.name[i] && i < 63; i++)
-	{
-		if(!isalpha(pp.name[i]))
-			return false;
-		pp.name[i] = tolower(pp.name[i]);
-	}
-	pp.name[0] = toupper(pp.name[0]);
-#endif
 
+
 	pp.race				= cc->race;
 	pp.class_			= cc->class_;
 	pp.gender			= cc->gender;
And here's what it says, when I try to register 'test' again.

Code:
[Debug] [WORLD__CLIENT] myloginname: Logged in. Mode=(CharSel)
[Debug] [WORLD__CLIENT] myloginname: LS Account #139499
[Debug] [WORLD__CLIENT] myloginname: Delete character: test
DeleteCharacter: successfully deleted 'test' (id 52)
[Debug] [WORLD__CLIENT] myloginname: Name approval request.  Name=test, race=Barbar
ian, class=Beastlord
[Debug] [WORLD__CLIENT] myloginname: Character creation request from myloginname LS#13
9499 (127.0.0.1:62850) :
[Debug] [WORLD__CLIENT] myloginname: Name: Test
[Debug] [WORLD__CLIENT] myloginname: Race: 2  Class: 15  Gender: 1  Deity: 208  Sta
rt zone: 2
[Debug] [WORLD__CLIENT] myloginname: STR  STA  AGI  DEX  WIS  INT  CHA    Total
[Debug] [WORLD__CLIENT] myloginname: 103  125   87   70   80   60   60     585
[Debug] [WORLD__CLIENT] myloginname: Face: 2  Eye colors: 0 0
[Debug] [WORLD__CLIENT] myloginname: Hairstyle: 0  Haircolor: 0
[Debug] [WORLD__CLIENT] myloginname: Beard: 0  Beardcolor: 0
[Debug] [WORLD__CLIENT] Validating char creation info...
[Debug] [WORLD__CLIENT] Found 0 errors in character creation request
[Status] Start zone query: SELECT x,y,z,zone_id,bind_id FROM start_zones WHERE p
layer_choice=2 AND player_class=15 AND player_deity=208 AND player_race=2
my char logs in with a capitalized name.

I whipped this out VERY FAST, may have some logical errors or some overlook since I'll admit - I don't understand the character creation process.. But, instead of taking the time of figuring out every possibility, it seems to work, i'll submit, we can go from there.
__________________

~Shin Noir
DungeonEQ.com
Reply With Quote
  #2  
Old 10-16-2009, 06:59 PM
Shin Noir's Avatar
Shin Noir
Legendary Member
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 506
Default

Things I've tested:
add a name via "test", and it gets created as Test,
Then create another person named "test", and see if rejects due to duplicate name : Rejected name (good)
__________________

~Shin Noir
DungeonEQ.com
Reply With Quote
  #3  
Old 10-19-2009, 06:00 PM
So_1337
Dragon
 
Join Date: May 2006
Location: Cincinnati, OH
Posts: 689
Default

Was it phorest? =P
Reply With Quote
  #4  
Old 10-20-2009, 03:33 AM
Lillu
Hill Giant
 
Join Date: Sep 2008
Posts: 204
Default

Quote:
Originally Posted by So_1337 View Post
Was it phorest? =P
lol, most probably! but where is he anyways? he bailed for a while now :(
(sry for the offtopic)
__________________
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 07:55 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3