Log in

View Full Version : Faction Help!


iggi
02-03-2008, 07:48 PM
I seem to be having a bit of an issue creating 2 opposing factions (a guard faction and a mob faction).

Here are my rows from faction_list:

|id | name | base | Rest |
|1001 | Guards | 250 | 0 |
|1000 | Mobs | -750 | 0 |


Here are my rows from npc_faction:

|id | name | PimaryFaction | ignore_primary_assist |
|40000 | Guards | 1001 | 0 |
|40001 | Mobs | 1000 | 0 |


Here are my rows from npc_faction_entries:

|id | faction_id | value | npc_value |
|40000 | 1001 | -1000 | 1 |
|40000 | 1000 | 100 | 1 |
|40001 | 1001 | 10 | 1 |
|40001 | 1000 | -10 | 1 |



What I am trying to do is create guards and mobs, I added 40000 to guards under npc_faction_id and they work, they con correctly to me everytime. now I added 40001 to the mobs and they do not con correctly. also I made my faction with guards -2000 (ready to attack) and made their aggro radius 100 and they con correctly but don't aggro me even though they are the same level. Help is greatly appreciated.

ChaosSlayer
02-03-2008, 08:31 PM
i don't know why mobs are not agroing - perhaps you don't have map files? But there is an error in your npc_faction_entries value_setting.
For factions to be opposite, this needs to be changed to:

|id | faction_id | value | npc_value |
|40000 | 1001 | -1000 | 1 |
|40000 | 1000 | 100 | -1 |
|40001 | 1001 | 10 | -1 |
|40001 | 1000 | -10 | 1 |

note the (-1)s, otherwise your guards will end up assisting the mobs against you =)

iggi
02-04-2008, 04:14 AM
That was more or less a last ditch effort to try anything that could possibly be the problem heh.

Also, agro is a problem, but the big one is the mobs don't even spawn with a faction even though they are set to -750 they still con indiff. if I can solve that I think everything will work it self out

iggi
02-04-2008, 01:02 PM
Thanks, that did get the guards on good faction and the mobs on a bad faction, but they still wont attack, I am sitting in front of one who is threatening and it wont touch me. any ideas?

iggi
02-04-2008, 01:03 PM
Actually, I just tested, they will assist me! Thanks a ton. But for some reason mobs wont agro me when they spawn.
Edit: DOH! I was set to lvl 255 when the mob was much lower, thanks again.