Postby Etaew » Fri Mar 14, 2008 7:39 pm
There are 4 tables that are used within this system.
Faction, FactionAggroLevel, LinkedFaction and Mob
Faction
This table is used to store the faction details, it contains the following fields.
ID - This a number representing the faction
Name - This is the name of the faction
BaseAggroLevel - This is the aggro level that players default as
FactionAggroLevel
This table is used to store players faction aggro levels, it contains the following fields.
CharacterID - This is the character ID
FactionID - This is the faction ID from the above table
AggroLevel - This is the current players aggro level to the faction
LinkedFaction
This table links factions together, such as killing a faction that has enemies will raise reputation with that faction, it contains the following fields.
FactionID - The ID of the faction
LinkedFactionID - The ID of the friend or enemy faction
Friend - 0 or 1 if the faction is a friend or enemy.
Mob
This table then sets the faction for individual mobs using the FactionID field.
This is how I presume it works, just looking at the code briefly now.
1) Your first task I imagine would be to fill out the Faction table with all factions in the game.
2) Your second task I imagine would be to fill out the LinkedFaction table with the relations between factions.
3) Your third task I imagine would be to fill out each mobs faction ID with their associated faction.
But this might not be the best order.
I'm not quite sure where you would get this information either.
Retired DOL Enthusiast |
Blog