FIX:for zoneserver.cpp
Posted: Thu Oct 05, 2017 6:13 pm
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
then in zoneserver.cpp in the following function
EQ2Packet* ZoneServer::GetZoneInfoPacket(Client* client){
replace all the packet-> for unknown5 and unknown6
with
<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" />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);