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

Reply
 
Thread Tools Display Modes
  #1  
Old 08-03-2008, 05:47 PM
kraeger
Fire Beetle
 
Join Date: Mar 2008
Location: Halas, Everfrost
Posts: 9
Default Small fix: Random name generator

Hey. It's my first time posting here, so I would like to first say hi to the EqEmu community.

There seem to be a problem with the random name generator in the character creation. Every 5 or 10 names, it gives an invalid name (From 0 to 4 characters long). The char arrays were too small for the values that could be generated with rand().

Here is a fix. Replace the old lines in client.cpp by these:
Code:
Line 335:
char vowels[18]="aeiouyaeiouaeioea";
Line 336:
char cons[48]="bcdfghjklmnpqrstvwxzybcdgklmnprstvwbcdgkpstrkdm";
Line 338:
char paircons[33]="ngrkndstshthphsktrdrbrgrfrclcrsk";
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 06:16 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3