Page 1 of 1

FIX:for zoneserver.cpp

Posted: Thu Oct 05, 2017 6:13 pm
by Ememjr
this wil fix a couple of the unknowns in the worldstruct.xml

<Struct Name="WS_ZoneInfo" ClientVersion="63181" OpcodeName="OP_ZoneInfoMsg">

replace unknown5 and unknown6 with the following

Code: Select all

<Data ElementName="year" Type="int16" Size="1" />
<Data ElementName="month" Type="int8" Size="1" />
<Data ElementName="day" Type="int8" Size="1" />
<Data ElementName="hour" Type="int8" Size="1" />
<Data ElementName="minute" Type="int8" Size="1" />
<Data ElementName="unknown" Type="int8" Size="1" />
then in zoneserver.cpp in the following function
EQ2Packet* ZoneServer::GetZoneInfoPacket(Client* client){

replace all the packet-> for unknown5 and unknown6
with

Code: Select all

packet->setDataByName("year", world.GetWorldTimeStruct()->year);
	packet->setDataByName("month", world.GetWorldTimeStruct()->month);
	packet->setDataByName("day", world.GetWorldTimeStruct()->day);
	packet->setDataByName("hour", world.GetWorldTimeStruct()->hour);
	packet->setDataByName("minute", world.GetWorldTimeStruct()->minute);
	packet->setDataByName("unknown", 0);

Re: FIX:for zoneserver.cpp

Posted: Thu Oct 05, 2017 7:19 pm
by Zcoretri
This has been committed to SVN

Re: FIX:for zoneserver.cpp

Posted: Fri Oct 06, 2017 1:54 am
by Ememjr
Zcoretri wrote: Thu Oct 05, 2017 7:19 pm This has been committed to SVN
thanks one of these days hopefully i will be able to commit stuff myself

Re: FIX:for zoneserver.cpp

Posted: Fri Oct 06, 2017 12:00 pm
by Cynnar
Thanks Zcoretri!

Should we archive and lock the post after changes are committed?