city_zone

EQ2Emulator Development forum.

Moderator: Team Members

Post Reply
User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

city_zone

Post by Ememjr » Tue Aug 15, 2017 3:57 pm

anyone know where the client is flagged that you are in a city zone
with my housing work when you go to a house and press access you can select a house you have and press access to enter that particular house, same thing if you go to your character screen and presses houses you can press access to enter a house, BUT you must be in a city zone, ie qeynos halas freeport etc, but i looked in the zones table and flagged qeynos as a city zone, but i could find no where in the coed where city_zone is being sent to the client i compared
zoneinfo packet for in a city and outside a city and could not find it there, also tried character sheet,
any sugestions on how the client gets that info

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: city_zone

Post by Jabantiz » Tue Aug 15, 2017 4:37 pm

city zone in the DB is just to keep the zone running at all times.

In the zone info packet there is a flag section, it is a bitmask but no one has ever figured out all the flags for it. A wrong value in it can cause you to get the "can not take screenshots on the beta server" and it is likely this value that will flag it as a city zone, also likely to control no mounts, no illusions, and who knows what else.

But this is all a best guess as like I said no one has worked out the values for the flags and what they do yet.

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: city_zone

Post by Ememjr » Tue Aug 15, 2017 5:36 pm

that is the unknown3 value

Code: Select all

// unknown3 can prevent screen shots from being taken if
	packet->setDataByName("unknown3", 2094661567, 1);			// Screenshots allowed with this value
	//packet->setDataByName("unknown3", 3815767999, 1);			// Screenshots disabled with this value
	packet->setDataByName("unknown3", 1, 2);

	packet->setDataByName("unknown3", 872447025, 0);
	packet->setDataByName("unknown3", 3085434875, 1);
	packet->setDataByName("unknown3", 2147483633, 2);
but that did not change between being in a city zone and being in antonica

but i did notice there is a ChangeServerControlFlagMsg struct name WS_ServerControlFlags, that parameter5 getting set to hex 80 with a value of 00 while in Ant, and a value of 01 when in qeynos. so i am setting up a test in the code that will set it to 01 for me, and will go from there

if that ends up being it, then we should create a LUA Command to set city zone for the client since some zones the city limits is not entire zone Kelethen comes to mind back in the days on a pvp server running under the city you would get flagged as being in the city

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: city_zone

Post by Ememjr » Tue Aug 15, 2017 6:15 pm

that is the unknown3 value

Code: Select all

// unknown3 can prevent screen shots from being taken if
	packet->setDataByName("unknown3", 2094661567, 1);			// Screenshots allowed with this value
	//packet->setDataByName("unknown3", 3815767999, 1);			// Screenshots disabled with this value
	packet->setDataByName("unknown3", 1, 2);

	packet->setDataByName("unknown3", 872447025, 0);
	packet->setDataByName("unknown3", 3085434875, 1);
	packet->setDataByName("unknown3", 2147483633, 2);
but that did not change between being in a city zone and being in antonica

but i did notice there is a ChangeServerControlFlagMsg struct name WS_ServerControlFlags, that parameter5 getting set to hex 80 with a value of 00 while in Ant, and a value of 01 when in qeynos. so i am setting up a test in the code that will set it to 01 for me, and will go from there

if that ends up being it, then we should create a LUA Command to set city zone for the client since some zones the city limits is not entire zone Kelethen comes to mind back in the days on a pvp server running under the city you would get flagged as being in the city

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: city_zone

Post by Ememjr » Tue Aug 15, 2017 6:15 pm

well that wasnt it, Neeext
found a few more 0 in ant that were 1 in qeynos going to try

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: city_zone

Post by Jabantiz » Tue Aug 15, 2017 10:15 pm

That unknown 3 is probably a bit mask so you would have to add values together to get the value to send in the packet, which means a lot of guess work. Currently we just pulled a value from a packet and hardcoded it.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests