WS_ExamineSpellInfo

EQ2Emulator Development forum.

Moderator: Team Members

Post Reply
paulgh
Retired
Posts: 51
Joined: Sun Jul 27, 2008 8:48 pm

WS_ExamineSpellInfo

Post by paulgh » Sun Aug 24, 2008 9:09 pm

Hi LE,
I have some data and a question. Just in case you haven't already found this, in WS_ExamineSpellInfo,
unknown8 is minimum_range type=float,
unknown10 is two elements: first can_effect_raid, second affect_only_group_members.
Also group_spell seems to be for spells that have continuing effects. There are a few more, but that involves my question.
What exactly does oversized mean? I would think it meant that the value wouldn't fit in the specified size, but I'm having trouble matching the data in my spell log to the structure.

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Post by LethalEncounter » Mon Aug 25, 2008 2:14 pm

Oversized simply means that the value takes up twice as much space as normal. SOE uses 0xFF or 0x7F to signify that fact. If you are looking at the xml structures and the type is int16 with an oversized value of 127, if the first value in that field of the packet is NOT 127 (0x7F) then the value is an int8. It is only an int16 if the value in the first starts with 0x7F. Note that if the value DOES start with 0x7f, you ignore that position and the int16 value is the following 2 bytes.
For example in the power_req field:
10 - this means the spell has a power_req of 16
7F D2 00 - power_req of 210
7F 54 01 - power_req of 340
Thanks for the struct changes :)

paulgh
Retired
Posts: 51
Joined: Sun Jul 27, 2008 8:48 pm

Post by paulgh » Mon Aug 25, 2008 10:28 pm

Thanks LE. That was confusing the heck out of me.
Continuing on, element unknown2 is min_class_skill_req type=int16 oversized.
Element friendly_spell is actually type=int8. The second byte is:

Code: Select all

<Data ElementName="num_reagents" Type="int8" />
<Data ElementName="reagent_array" Type="Array" ArraySizeVariable="num_reagents">
        <Data ElementName="reagent" Type="EQ2_8Bit_String" Size="1" />
        <Data ElementName="consumed" Type="int8" Size="1" />
        <Data ElementName="qty_required" Type="int32" Size="1" />
</Data>
I am not positive of qty_required, but it fills the space.
Unknown9 seems to be how many time a spell will ... 'proc' is the word I guess. Used mainly in DOT's and HOT's.
That's about all I can decipher. Thanks again for clearing that up for me.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Post by John Adams » Tue Aug 26, 2008 11:12 am

Could the qty_required by a consumable?

paulgh
Retired
Posts: 51
Joined: Sun Jul 27, 2008 8:48 pm

Post by paulgh » Tue Aug 26, 2008 11:34 am

Sorry John, but I don't quite understand that. I suppose the consumed and quantity fields could be reversed, as I have no spell that requires 2 or more of a component. There is also the possibility of there being another field, but I only have 1 real example, Call of the Hero. If anyone has any other spells that require reagents, and wants to send the log record my way, I'll be happy to investigate further. Just post a note in one of my threads, as, while I read everything here, I seldom check my email which is my username here @rcn.com.

User avatar
Zcoretri
Team Member
Posts: 1642
Joined: Fri Jul 27, 2007 12:55 pm
Location: SoCal

Post by Zcoretri » Tue Aug 26, 2008 12:45 pm

paulgh wrote:Sorry John, but I don't quite understand that. I suppose the consumed and quantity fields could be reversed, as I have no spell that requires 2 or more of a component. There is also the possibility of there being another field, but I only have 1 real example, Call of the Hero. If anyone has any other spells that require reagents, and wants to send the log record my way, I'll be happy to investigate further. Just post a note in one of my threads, as, while I read everything here, I seldom check my email which is my username here @rcn.com.
Wizards consume Planar Symbols for their ports, and clerics (Templars, Inquistors) consume Odyssey Stones for their port to your bind point.

paulgh
Retired
Posts: 51
Joined: Sun Jul 27, 2008 8:48 pm

Post by paulgh » Tue Aug 26, 2008 1:55 pm

Thanks Zcoretri,
What I meant, though, was that I don't have any characters with those spells. I play almost exclusively conjurors. To make sure I'm looking at the same data layout, I need to examine the spell in the knowledge book.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Post by John Adams » Tue Aug 26, 2008 3:04 pm

Simple English... "consumed" sounds like an afterthought, while "qty_required" sounds like a forethought. :)
Since it seems to be about reagents, I see it saying "I need 'n' of 'item_id' and have no idea why I think I already consumed some" /boggle
I have a baby wizard, if I ever get to play again, I will certainly let you pick the log apart.

paulgh
Retired
Posts: 51
Joined: Sun Jul 27, 2008 8:48 pm

Post by paulgh » Tue Aug 26, 2008 4:56 pm

I can see that there may be confusion about 'consumed'. It might be more accurate to name it 'is_reagent_consumed'. As a boolean, I chose the single byte value for it. I'm sure we'll get it figured out eventually, and it is only a display issue anyway.

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Post by LethalEncounter » Tue Aug 26, 2008 5:14 pm

paulgh wrote:Thanks LE. That was confusing the heck out of me.
Continuing on, element unknown2 is min_class_skill_req type=int16 oversized.
Element friendly_spell is actually type=int8. The second byte is:

Code: Select all

<Data ElementName="num_reagents" Type="int8" />
<Data ElementName="reagent_array" Type="Array" ArraySizeVariable="num_reagents">
        <Data ElementName="reagent" Type="EQ2_8Bit_String" Size="1" />
        <Data ElementName="consumed" Type="int8" Size="1" />
        <Data ElementName="qty_required" Type="int32" Size="1" />
</Data>
I am not positive of qty_required, but it fills the space.
Unknown9 seems to be how many time a spell will ... 'proc' is the word I guess. Used mainly in DOT's and HOT's.
That's about all I can decipher. Thanks again for clearing that up for me.
Great work! Thanks for the updates. I have been busy the last couple of days, but I'll get them added within the next few days.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests