New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A bit of SMSG packet structure #24
Conversation
Why is PvP even being removed in UpdateEntry, without taking unitflags into account? I was trying to figure out why many NPCs don't show as PvP, even though they have the PvP unitflag (4096) in their template. Turns out the database value is ignored because of this, and it's just setting PvP based on the faction. This is wrong, because it leads to many, many NPCs not being toggled for PvP, when it can clearly be seen that they should be in retail videos. Just some examples: Gornek (3143) Duokna (3158) Zureetha Fargaze (3145) Jen'shan (3154) The if in UpdateEntry ought to be changed to something like this: |
My simple answer: I don't know :) Now some details. So, try to ignore the present change to In this scheme setting |
Changing faction may be a solution for some NPCs, but there are factions without a faction template that has FACTION_TEMPLATE_FLAG_PVP. The Night Watch for example: How to fix it in this case? There are only 2 faction templates for faction The Night Watch (49), and both 53 and 56 don't mark the NPC as PvP. They don't show as PvP in TrinityCore too, yet in all retail videos they are flagged as PvP. I'll report this to them too. Seems pretty obvious to me that taking only the faction into account is wrong. Why would the unitflag even exist if it doesn't do anything and only the faction matters. |
This I do know :) You're free to set it ingame anytime, since So, it looks possible that such mobs (without PvP enabled faction template) were scripted on the retail, their relations were defined by the scripts. An "internal" blizz correction to the DBC looks possible the same. Though wrong faction template can have consequnces, I agree with you in general. Maybe the best way is:
|
@Olion17 @brotalnia - Thank you |
DetailsEmote
array in the SMSG_QUESTGIVER_QUEST_DETAILS packet has also variable length.2+3. Racial Leaders. Minor fix of SMSG_CREATURE_QUERY_RESPONSE packet, which includes now
bool RacialLeader
flag. Prevent the leaders dropping PvP due to usual faction rules inCreature::UpdateEntry()
.All this info comes from 5875 client build.