View Full Version : changing starting zones.
Cripp
04-18-2004, 05:31 AM
Hey, im havin a little trouble changing the starting zones. i changed the source in database.cpp to...
end += sprintf(end, "UPDATE character_ SET timelaston=0,guild=0, zonename=\'nexus\', x=0, y=0, z=-30, profile=\'", 152, 0, 0, -30);
compiled.. but it still doesnt seem to be working.
any help would be awsome.
thanks:)
PS: i also changed all the start_zones tables in the DB.
Cripp
04-18-2004, 05:38 AM
would i perhaps change it like this?..
end += sprintf(end, "UPDATE character_ SET timelaston=unix_timestamp(now()),name=\'%s\', zonename=\'nexus\', zoneid=152, x = 0, y = 0, z = -30, profile=\'", pp->name, GetZoneName(current_zone), current_zone, pp->x, pp->y, pp->z);
I dont know if its that you want to make, but if its set start zone for all players, you can add a variable to your DB
INSERT INTO variables (varname, value, information, ts) VALUES ('startzone', 'NEXUS', '', NULL);
Liscadipesce
04-18-2004, 05:52 AM
Are you trying to make a starting zone for everyone? Cause their is a much easier way. In your variables table, create a new row.
varname = startzone
value = zoneshortname
information = Default Starting Zone
ts = 00000000000000
Hope that helps :)
Cripp
04-18-2004, 05:55 AM
ill give it a try. thanks :lol:
Liscadipesce
04-18-2004, 05:57 AM
haha, the same post, in 2 minutes.
Cripp
04-18-2004, 06:01 AM
hmmm i put in nexus and they all seem to be starting in qeynos...
Cripp
04-18-2004, 06:11 AM
NM it works woot thanks alot guys :D :D :D :D :D :!:
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.