Postby Ferro » Sat Sep 03, 2011 2:11 pm
Hi folks,
I'll post a few patches to get the faction system work again.
The trigger to do it, was that I try to use the faction system although with NPCs. So you'll find an extension of the StandardMobBrain for this feature. In this way there are some lines of code, making an pathed NPC return to the path after the NPC has left it.
The Changes in the DB Scripts allows to add new faction and linkedxfaction by the /faction command.
If someone has some requirements to the faction system, please let me know; I try to add other features to the faction system.
I wait for the right to upload the patches so you can use them if you like.
To make the faction work with NPCs you have to create some mob of different factions like sheeps and wolfes, create 2 faction with the name sheeps and wolves and gave the wolves an baseaggro of 100. Then you select the wolves faction and make an addenemy sheeps. At least you have to assign some mobs to the sheeps and some others to the wolves faction. If a mob of the sheep faction is in the aggrorange of a mob of the wolves faction, the wolves mobs attack automaticly the sheep faction mob.
Rock me!
Admin of the RP Freeshard Abendwind