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! :D
tia |
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); Code:
end += sprintf(end, "UPDATE character_ SET zonename=\'%s\', x = %f, y = %f, z = %f, profile=", "templeveeshan", -100.0f, 1030.0f, 50.0f); |
Thats It!!
Great!! That is exactly what I was looking for! Many thanks...
:) |
All times are GMT -4. The time now is 06:20 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.