Spawns With More Than One Faction

EQ2Emulator Development forum.

Moderator: Team Members

Post Reply
User avatar
Scatman
Retired
Posts: 1688
Joined: Wed Apr 16, 2008 5:44 am
EQ2Emu Server: Scatman's Word
Characters: Scatman
Location: New Jersey

Spawns With More Than One Faction

Post by Scatman » Sun Jul 26, 2009 10:54 am

Do we have a way to handle a spawn being associated with more than one faction (both positively and negatively)?

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: Spawns With More Than One Faction

Post by John Adams » Sun Jul 26, 2009 11:50 am

Yes, use the faction_alliances table to set up hostile or friendly faction's to the faction ID you are assigning to your spawn.

Example:
factions.jpg
The Great Herd, Settlers are friendly to City of Qeynos

But City of Freeport is Hostile to City of Qeynos

So killing a spawn with City of Qeynos assigned, lowers your faction with the Herd and Settlers, but raises it with Freeport.


(note: "id" in this table is not faction_id, but the PK of the faction_alliances table)
You do not have the required permissions to view the files attached to this post.

User avatar
Scatman
Retired
Posts: 1688
Joined: Wed Apr 16, 2008 5:44 am
EQ2Emu Server: Scatman's Word
Characters: Scatman
Location: New Jersey

Re: Spawns With More Than One Faction

Post by Scatman » Sun Jul 26, 2009 1:25 pm

Ahh duh. Gotcha, thanks!

Layor
Posts: 14
Joined: Sat Jan 03, 2009 8:53 pm

Re: Spawns With More Than One Faction

Post by Layor » Sun Jul 26, 2009 3:00 pm

I love both of you guys, great work!!! :D

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest