Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Database/World Building

Development::Database/World Building World Building forum, dedicated to the EQEmu MySQL Database. Post partial/complete databases for spawns, items, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old 04-11-2004, 04:35 PM
govtcheeze
Hill Giant
 
Join Date: Mar 2004
Location: South Florida
Posts: 247
Default complete eqlive-like faction v1.0!

VERSION:
1.0

BACK UP YOUR DATABASE BEFORE APPLYING THIS PATCH!
Code:
mysqldump -u(username) -p (database) > DBBackup.sql
where (username) = your mySQL username, and (database) = your eqemu database

PURPOSE:
This code will add a complete faction system to eqemu. You lose faction at 3x the rate you gain it. Tested on PEQ's database, but this script (like all that I release) should work with any eqemu server that uses the same table definitions.

Version 1.0 has a lot more accurate data than the previous 0.1 version, and the plan is that you will not have to wipe your faction tables to use any updates I release in the future. This means you can modify your faction table and source in my updates w/o losing any work Faction is no longer gained and lost based on a mob's level...that was a stupid idea and is fixed.

If you plan on running the PEQ released databases, all of my work will be included in those releases. IE, you do not need to apply this patch to the classic DB once released by PEQ.

KNOWN ISSUES:
1) Some KOS mobs are not...please let me know which ones need to be KOS and as much info as possible.

HOW TO INSTALL:
1) download this file and extract it to your mysql\bin directory
2) at the dos prompt, browse to the mysql\bin directory
3) type the following, assuming your database name is eq:
Code:
mysql -f eq<faction_listUpdate.sql
and wait for it to finish (should be fairly fast)
4) -- IMPORTANT --

If you are using my v0.1 update AND HAVE NOT ADDED ANY NEW FACTIONS to your database, comment out the third line with 2 minuses. This will allow your players to keep their current faction work. It should look like this:

Code:
DELETE FROM npc_faction;
DELETE FROM npc_faction_entries;
--DELETE FROM faction_values;

INSERT INTO npc_faction VALUES ('1', 'Bonecrusher', '0'); -- NO FACTION
type:
Code:
 mysql -f eq<factionTablesUpdate.sql
and wait for it to finish, should be fairly fast and ignore any errors.
5) right before you leave for work/school, or go to bed, type in the following:
Code:
mysql -f eq<factionNpcUpdate.sql
and wait for it to finish. It will take many, many hours.
6) type
Code:
mysql -f eq<kos.sql
and wait for it to finish (should be very fast)
7) Enjoy your faction!

Post all questions and bugs on http://peqserver.com/forums/ in the database bugs forum.

Please, help me make this better. I need people to post any and all faction related problems in this thread. This includes mobs giving the wrong faction hits, mobs responding to the wrong faction, and MOST importantly getting the right mobs on KOS. I have not played live in forever, so I am not too familiar with who should be on what. Please include not only the problem, but the solution if you know which faction needs to be changed to, etc.
__________________
GovtCheeze, Welfare Warrior
"Listen, here's the thing. If you can't spot the sucker in the first half hour at the table, then you ARE the sucker." -- Mike McDermott, Rounders

Developer of the original (circa 2004):
Loots v2.0, bitch!
Faction v1.0, bitch!
Magelo-like clone v0.3, bitch!
Zone geometry and spawn/path viewer, bitch!
Reply With Quote
  #2  
Old 04-11-2004, 05:45 PM
Xabob's Avatar
Xabob
Discordant
 
Join Date: Feb 2004
Location: On your desktop
Posts: 387
Default

OK thats it this guy deserves some god damn fucking butts i mean this is great frist a almost complete loot table then the same with fraction come on guys just a few butts
__________________
[12:38] <RangerDown> I watched Napoleon Dynamite the other day
[12:39] <Xabob> omg
[12:39] <Xabob> want me to shoot you now?
[12:39] <RangerDown> and the first words out of my mouth at the start were:
[12:39] <RangerDown> Hey I bet Rog looks like that

Reply With Quote
  #3  
Old 04-11-2004, 06:11 PM
vetoeq
Hill Giant
 
Join Date: Apr 2003
Posts: 125
Default

Govtcheeze is doing AMAZING work, props are indeed due.
Reply With Quote
  #4  
Old 04-11-2004, 09:27 PM
themushygod
Sarnak
 
Join Date: Feb 2004
Posts: 60
Default

holy crap where do you keep pulling this work from

im impressed and will be adding it to my db tonight

seriously well done on all you recent work

peace


btw what can we expect next couse i cant wait
Reply With Quote
  #5  
Old 04-12-2004, 11:20 AM
Jesusonsteroids
Fire Beetle
 
Join Date: Feb 2004
Location: Lost
Posts: 15
Default OMG!

Omg man! Great job with the faction I am VERY VERY impressed!

Oooh Oooh whats next!

Thanks man
Reply With Quote
  #6  
Old 04-15-2004, 06:42 AM
Gossamer
Sarnak
 
Join Date: Apr 2004
Posts: 92
Default

Excellent job! Thanks for the faction!
Reply With Quote
  #7  
Old 04-15-2004, 09:45 AM
RangerDown
Demi-God
 
Join Date: Mar 2004
Posts: 1,066
Default

Just in the last couple days have I had time to source the factions in. You did a terrific job!
Reply With Quote
  #8  
Old 04-16-2004, 02:44 PM
eq_addict_08
Hill Giant
 
Join Date: Nov 2003
Location: Drunk tank
Posts: 199
Default

I was wondering, if there any practical way to set factions up so that they are similar to the fields that tells what classes/races can use an item? I know there are many more factions ingame than classes and races, so would not be as easily implimented. But, you could have several factions associated with a mob, not just one.
Reply With Quote
  #9  
Old 04-16-2004, 02:51 PM
NarutoLegacy
Discordant
 
Join Date: Feb 2004
Posts: 400
Default

This is great man! Thanks alot! Again with the amazing shit!
__________________
My Newbie Guides
Server Classifications
Zone Points
Change Maxlevel

Kaio Kuzumaki of the East, Owner of Tides of War [Custom-Legit] PvP Server
Orome, Lord of the Woods, Middle-Earth Roleplay PvP Server
Kaio Kuzumaki of the East, Owner of Kaio's All-GM Test Server
Reply With Quote
  #10  
Old 04-17-2004, 03:05 PM
WildcardX
Developer
 
Join Date: Apr 2003
Posts: 589
Default

i'm doing a little DB work on factions and I'm confused about how the tables "npc_faction" and "npc_faction_entries" relate.. what field is the "key" that ties these 2 tables together?

Also, what field is the actual faction value that determines how a mob will con to a player? is it in the "primaryfaction" field? or the "value" field?
Reply With Quote
  #11  
Old 04-20-2004, 12:48 PM
Gossamer
Sarnak
 
Join Date: Apr 2004
Posts: 92
Default

This deserves a bump!
Reply With Quote
  #12  
Old 04-20-2004, 01:11 PM
NarutoLegacy
Discordant
 
Join Date: Feb 2004
Posts: 400
Default

Umm read the rules buddy....
__________________
My Newbie Guides
Server Classifications
Zone Points
Change Maxlevel

Kaio Kuzumaki of the East, Owner of Tides of War [Custom-Legit] PvP Server
Orome, Lord of the Woods, Middle-Earth Roleplay PvP Server
Kaio Kuzumaki of the East, Owner of Kaio's All-GM Test Server
Reply With Quote
  #13  
Old 04-20-2004, 02:44 PM
RangerDown
Demi-God
 
Join Date: Mar 2004
Posts: 1,066
Default

Quote:
i'm doing a little DB work on factions and I'm confused about how the tables "npc_faction" and "npc_faction_entries" relate.. what field is the "key" that ties these 2 tables together?

Also, what field is the actual faction value that determines how a mob will con to a player? is it in the "primaryfaction" field? or the "value" field?
The tables are linked by npc_faction.id=npc_faction_entries.npc_faction_id

You're correct, the 'primaryfaction' field determines how a mob cons to a player.

The npc_faction_entries table serves two purposes: 1) a list of faction hits the player will take when killing a mob of that faction ID, and 2) determines which mobs hate each other and which mobs like each other.
If you would take a positive hit for Faction A by killing Mob B, then Faction A hates Mob B and will kill it. If you would take a negative hit for Faction A for killing Mob B, then Faction A likes Mob B and will assist it in combat.
Reply With Quote
  #14  
Old 04-21-2004, 04:12 AM
Gossamer
Sarnak
 
Join Date: Apr 2004
Posts: 92
Default

Oops Naruto, Im on so many forums I brainfarted, sorry bout that. I know better.
Reply With Quote
  #15  
Old 04-22-2004, 12:29 AM
GreatSageCorban's Avatar
GreatSageCorban
Sarnak
 
Join Date: Apr 2004
Location: Columbus, OH
Posts: 35
Default

Does this faction database set the guards to protecting you?
__________________
Corban
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 03:18 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3