How to change mob hostility

I was wandering around with a new character and noticed that all of the mobs were neutral and I didn’t remember them being neutral so I found this thread

But then I wondered how to change an npc from neutral to hostile and I couldn’t really find a clear answer. Could someone help explain which data I need to change?

You have to change the faction field in creature_template. The correct is that you use the correct faction value but if you dont know it you can use the standar values:

16 or 14 is hostile with alliance and horde

84 alliance friendly,horde hostile

83 horde friendly,alliance hostile

7 neutral

35 friendly for both