item structures

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

item structures

Post by Ememjr » Wed Mar 20, 2019 6:52 pm

i just need some clarification on the followinf structure rules

1. substructs must be com before the calling structure ?

2. with the following both Substruct_LootItemDescription and Substruct_ItemFooter must have a client verison of 1208 as well? or will the use a lower version as well

Code: Select all

<Struct Name="WS_LootItemGeneric" ClientVersion="1208" OpcodeName="OP_ClientCmdMsg" OpcodeType="OP_EqExamineInfoCmd">
<Data ElementName="header" Substruct="Substruct_LootItemDescription" Size="1" />
<Data ElementName="footer" Substruct="Substruct_ItemFooter" Size="1" />
</Struct>

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

Re: item structures

Post by Jabantiz » Wed Mar 20, 2019 7:06 pm

1) Not sure as it has been a while, If you just put it with the other structs of the same name but in order of version it should work.

2) Yes it can use a lower version, however it can never use a higher version then what this struct is thats why we need to make a new struct when there is only minor changes in a sub struct it contains.

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

Re: item structures

Post by Ememjr » Wed Mar 20, 2019 7:18 pm

ok that makes sense , so with that said if there is a change to the substruct and i raise the number, but i have to also create the new main struct to match

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

Re: item structures

Post by Jabantiz » Wed Mar 20, 2019 7:44 pm

correct

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

Re: item structures

Post by Ememjr » Thu Mar 21, 2019 9:59 am

what is this supposed to do or prevent
header_info_header_unknown is 3 bytes, and the value is 00 00 00

Using ANAL

<Data Element Name="num_effects" Type="int8" IfVariableNotSet="header_info_header_unknown_0_0,header_unknown_0" />

i figured it would mean ignore that the particular data element would be skipped in the struct

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

Re: item structures

Post by Jabantiz » Thu Mar 21, 2019 5:05 pm

Sorry I am not too familiar with the item structs anymore.

Looking at the element you posted seems to say that if header_info_header[0] is not set and if header_unknown is not set then include this element.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest