Page 1 of 1
Name conventions for Items struct
Posted: Sun Jun 11, 2017 6:12 am
by Ememjr
so i still working on items struct for newer Live (complicated items) and making progresses but using the picture below i need some help with what its called (the name convention to use in the structure becuase i dont remember what we call them
1. the line in purple or pink that has "Fabled, Ascension of Life", and "MYTHICAL, RELIC, Ascension of Magic" in it ( i got it coded on my end just need bettter name convention before i post it
2.the yellow line that says "infused Fortitude of Umbra", this partivular one is from the temp adorn that is equiped ( i am calling it "mod" for now)
100.JPG
Re: Name conventions for Items struct
Posted: Sun Jun 11, 2017 4:02 pm
by Jabantiz
1. Those are a mix of tier and flags. For tiers we have most defined
Code: Select all
#define ITEM_TAG_UNCOMMON 3 //tier tags
#define ITEM_TAG_TREASURED 4
#define ITEM_TAG_LEGENDARY 7
#define ITEM_TAG_FABLED 9
#define ITEM_TAG_MYTHICAL 12
Relic looks like a tier that we are missing but it is with mythical and it is usually only one tier per item, or was..
The other stuff would go with the other flags that don't really have a naming convention
Code: Select all
#define ATTUNED 1
#define ATTUNEABLE 2
#define ARTIFACT 4
#define LORE 8
#define TEMPORARY 16
#define NO_TRADE 32
#define NO_VALUE 64
#define NO_ZONE 128
#define NO_DESTROY 256
#define CRAFTED 512
#define GOOD_ONLY 1024
#define EVIL_ONLY 2048
Both these lists are in items.h
2. That would actually be a stat string so it doesn't need to be defined, it would be stored in the DB under stats for the item/adornment
Re: Name conventions for Items struct
Posted: Sun Jun 11, 2017 5:58 pm
by Ememjr
on #1 everything after tier on the same line is entered with a string array from server
i added that here (tierline) this unknwon figured out <Data ElementName="footer_unknown2" Type="int8" Size="1" />
Code: Select all
<Struct Name="Substruct_ItemFooter" ClientVersion="63119">
<Data ElementName="num_effects" Type="int8" IfVariableNotSet="header_info_header_unknown_0_0,header_unknown_0" />
<Data ElementName="effect_array" Type="Array" ArraySizeVariable="num_effects">
<Data ElementName="subbulletflag" Type="int8" Size = "1" />
<Data ElementName="effect" Type="EQ2_16Bit_String" Size="1" />
<Data ElementName="percentage" Type="int8" Size = "1" />
</Data>
<Data ElementName="tierline" Type="int8" Size="1" />
<Data ElementName="tierline_array" Type="Array" ArraySizeVariable="tierline">
<Data ElementName="addon" Type="EQ2_16Bit_String" Size="1" />
<Data ElementName="tierline_unknwon" Type="int8" Size="5" />
</Data>
on #2 i crated a string array for that as well since that yoe of stat is only as a modification to the item and will never be on the item itself i dont see how to add that to the item_stat table
Code: Select all
<Data ElementName="mod_count" Type="int8" Size="1" />
<Data ElementName="mod_array" Type="Array" ArraySizeVariable="mod_count">
<Data ElementName="mod_string" Type="EQ2_8Bit_String" Size="1" />
<Data ElementName="mod_need" Type="int8" Size="1" />
<Data ElementName="mod_have" Type="int8" Size="1" IfVariableSet="header_info_mod_need_0"/>
<Data ElementName="mod_unknown" Type="int8" Size="2" />
</Data>
these changes work out in the analizer, havenot been able to test on my local server till i get adornments figured out
Re: Name conventions for Items struct
Posted: Sun Jun 11, 2017 6:44 pm
by Jabantiz
That is interesting that the have an array of string to modify the tier/tags section, I wonder when and why they added that.
Strings in stats is just leaving type and subtype 0 and putting the string in the `text` field, if you do a simple search for "infused" you should get a few examples of it.
Re: Name conventions for Items struct
Posted: Mon Jun 12, 2017 5:15 am
by Ememjr
Jabantiz wrote: Sun Jun 11, 2017 6:44 pm
That is interesting that the have an array of string to modify the tier/tags section, I wonder when and why they added that.
Strings in stats is just leaving type and subtype 0 and putting the string in the `text` field, if you do a simple search for "infused" you should get a few examples of it.
well according to our struct <Data ElementName="footer_unknown2" Type="int8" Size="1" /> was added for 60174
as for why, apparently the client doesnt really need that info and it for display purposes only on client side, kind of like effects the values listed are display only, the client isnt using them when examineing an item
hmm ok i will try to work with that seems that is more on the packet creation to get packet populated, i think this is the existing part of struct that i can move to the correct location now and rework
thanks