How To Force Npc Out Of Combat While In Combat

Im tryin to do SAI to npc

npc change faction to enemy “on gossip select” and when he reach 15% hp he will become friendly again and say some text and get out of combat

all working except the npc is still attacking me even when he’s friendly…

is there anyway to force him to get out of combat? please help

without killing him

Lump, hm?

https://github.com/TrinityCore/TrinityCore/issues/3056

not Lump, but thanks ill see if i can convert your version to mine…

you could just say SMART_ACTION_EVADE force npc to get out of combat… /emoticons/default_happy.png

anyway thank you so much, you taught me something new… by your example

Very welcome.