Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: TheMetalCarrots on May 31, 2015, 04:22:14 pm

Title: Being able to attack/get attacked by both factions
Post by: TheMetalCarrots on May 31, 2015, 04:22:14 pm
So, I wanted to make all the factions (Horde and Alliance) neutral in the same style that the Steamwheedle Cartel is in; where you can choose to either be 'At War' or not with them, whilst being able to interact fully with both sides when the 'At War' is not ticked.

I looked up a few tutorials, and ended up with a sort of neutral Horde (they wouldn't attack me, but I couldn't interact with them) and neutral Alliance, which I could attack, but they wouldn't bother to fight back (and I couldn't attack guards). Anyone have any god-sending dbc knowledge which could help me figure this out?
Title: Re: Being able to attack/get attacked by both factions
Post by: TheMetalCarrots on May 31, 2015, 05:25:16 pm
Okay, so I managed to get it working for Horde (on Alliance); I can interact with them when the faction is not 'At War' and attack them when it is, and they'll respond by attacking back. However, I cannot attack any Alliance NPCs when their faction status is 'At War' (invalid target) so I'll need to figure out how to prevent Alliance from being Peace Forced.
Title: Re: Being able to attack/get attacked by both factions
Post by: Amaroth on May 31, 2015, 10:10:58 pm
http://pxr.dk/wowdev/wiki/index.php?title=Faction.dbc (http://pxr.dk/wowdev/wiki/index.php?title=Faction.dbc" onclick="window.open(this.href);return false;)
Is something not clear about this? Peace forced and such things are set by mask in field #15 (1 based).