Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Database/World Building

Archive::Database/World Building 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 10-25-2002, 02:50 PM
Dominatus
Sarnak
 
Join Date: Oct 2002
Posts: 35
Default single starting point

I have searched through the forums and found one thread about making a static/common starting zone but am confused as to how to modify the database.cpp file to get that to work. Can anyone tell me which line(s) needs modified?? A cut and paste would be wonderful!

tia
Reply With Quote
  #2  
Old 10-25-2002, 10:59 PM
Xarslik
Hill Giant
 
Join Date: Oct 2002
Location: System.Web
Posts: 107
Default

As of now the starting point is read from the PlayerProfile struct created after the creation of your character. The current zone information is stored based upon the starting zone selected at the client. Right now there is no code that retrieves the starting point from a database variable, therefore you must edit the code manually and recompile if you wish to change the start point globally. However this does NOT change bind points.

Anyway, find the "CreateCharacter" method declaration (actual line is "bool Database::CreateCharacter(int32 account_id, PlayerProfile_Struct* pp) {"), and within it look for:
Code:
    end += sprintf(end, "UPDATE character_ SET zonename=\'%s\', x = %f, y = %f, z = %f, profile=", GetZoneName(pp->current_zone), pp->x, pp->y, pp->z);
Then, comment out\remove the "GetZoneName(pp->current_zone)" part, and replace it with the zone's short name (eg "arena"). Then if you wish to change the location you start in it, change pp->x, pp->y, and pp->z to the new loc. So, for example, if you wanted to set the start zone as Temple of Veeshan, at /loc 1030, -100, 50 - you would use the following code:
Code:
end += sprintf(end, "UPDATE character_ SET zonename=\'%s\', x = %f, y = %f, z = %f, profile=", "templeveeshan", -100.0f, 1030.0f, 50.0f);
Hope that helps.
__________________
~ Xarslik
[ Xarslik's Arena Challenge Server ]
Reply With Quote
  #3  
Old 10-26-2002, 12:03 PM
Dominatus
Sarnak
 
Join Date: Oct 2002
Posts: 35
Default Thats It!!

Great!! That is exactly what I was looking for! Many thanks...

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 02:00 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