Start Locs and Races in source?
I have been searching the source for the starting locs and races but i havent found it. I want to move all the start locs to the same zone. Any tips?
Thanks |
Client coded. Only way to do this would be to insert your own one-time code in the login packets.
|
wierd, i thought it was hard coded because at one point, all characters started in qeynos, and the fact some of the locs now are still off, like in west freeport for instance.
|
last i checked starting zones where configued via database..client will say when the char is made you are in whatever zone but when you log you will be in whatever zone...
Malv used to have somthing like this for a bit if i recall. |
starting_points in DB :P
|
Blah. :p
I was told they were client hardcoded in chat back when I asked this. /grumble |
I looked through all the db tables, and couldnt find where the starting_points was. Is it supposed to be its own table? Sorry if I just missed it, but could someone tell me where it is?
|
It IS hard coded, actually.
I just checked the code in database.cpp, under Database::CreateCharacter, this line: "sprintf(end, "UPDATE character_ SET zonename=\'%s\', x = %f, y = %f, z = %f, profile=", GetZoneName(pp->current_zone), pp->x, pp->y, pp->z);" GetZoneName(pp->current_zone) is getting the zone selected during creation (which is contained in the PlayerProfile struct), and appending it to the SQL Query. Which in turn sets the starting zone to that result. I commented out the line and replaced it with "arena", and sure enough - started in the arena. Possibly later I'll write a small method to retrieve it from a table in the database instead. |
The client takes care of the starting locations... Server can change them if needed.
|
All times are GMT -4. The time now is 03:11 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.