cmangos / issues

This repository is used as a centralized point for all issues regarding CMaNGOS.
179 stars 47 forks source link

[TBC] Disciple of Naralex misbehavior #1221

Closed thrd92 closed 7 years ago

thrd92 commented 7 years ago

Current behavior: Disciple of Naralex becomes neutral to players during the event (no more friendly), and he becomes attackable when he's entering combat, also he's ignoring the mobs (uncleared trash) on his way (no aggro). wowscrnshot_011217_124251

Expected behavior: Disciple of Naralex should be friendly https://youtu.be/dVdUzMpLvoM?t=1182

Steps to reproduce:

  1. Kill the required bosses in Wailing Caverns to be able to start event, talk to Disciple of Naralex...

Client version: 2.4.3

Commit hash: https://github.com/cmangos/mangos-tbc/commit/190221606936b044e32ebd737ff5c01cd7049983

Database version: Latest TBC-DB

Operating system: Debian 8.6 amd64

killerwife commented 7 years ago

I have a fix for this, but its a core issue. Hold on.

killerwife commented 7 years ago

GossipSelect_npc_disciple_of_naralex function Remove pCreature->SetFactionTemporary(FACTION_ESCORT_N_ACTIVE, TEMPFACTION_RESTORE_RESPAWN);

After that it works as intended afaik. @cyberium in case you would want to close this issue :)

Tobschinski commented 7 years ago

What faction does he have in that screenshot?

killerwife commented 7 years ago

Who knows, I just know when I made that change that he should be friendly to players.

Tobschinski commented 7 years ago

Well, FACTION_ESCORT_N_ACTIVE = 250 is also super friendly (and appropriate) ... I just did the event with no issues at all (in vanilla though).

killerwife commented 7 years ago

That does not really help.

Rushor commented 7 years ago

FACTION_ESCORT_N_ACTIVE = 250 is used very often in serveral escortquests (horde and alliance will be friendly but monsters will be hostile towards the escortnpc)

Tobschinski commented 7 years ago

The reason to request more info. This does not look like faction 35 or 250 and nothing else should be used.

killerwife commented 7 years ago

I suggest you log on to TBC and look for yourself.

Tobschinski commented 7 years ago

Or I just wait for thrd92 to answer my initial question ... if he can find it now.

thrd92 commented 7 years ago

@Tobschinski Looks like the NPC is neutral (yellow unit frame) during the event, before the event NPC has green unit frame, so he's friendly at least. Gonna check .npc info output, brb.

thrd92 commented 7 years ago

So, before event faction is 35, during the event faction is 1986.

Tobschinski commented 7 years ago

Makes sense because of this, thank you!

I'd suggest to use FACTION_ESCORT_N_NEUTRAL_ACTIVE = 250 then.

killerwife commented 7 years ago

Do we need to change faction? I mean this is sniff territory.

Tobschinski commented 7 years ago

I can only offer you one from MOP.

[0] UpdateType: Values
[0] Object Guid: Full: - Creature/0 -/- Map: - Entry: 3678 Low: -
[0] UNIT_FIELD_FACTIONTEMPLATE: 250/3.503246E-43
[0] UNIT_NPC_FLAGS: 0/0
killerwife commented 7 years ago

Yes but before that the whole event was changed. So it isnt reliable imo.

Rushor commented 7 years ago

i will search for an older sniff - bump me in this issue after 10 days if i forgot it

drikishuk commented 7 years ago

Bump @Rushor