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

Archive::Database/World Building Archive area for General Discussion's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-17-2004, 04:30 AM
vrated
Fire Beetle
 
Join Date: May 2004
Posts: 15
Default A mean, hungry Norrath - Faction Update

I've decided to make Norrath a mean place for my players. Most animals, insects, undead, and giants con KoS. With the help of Govtcheese and Rangerdown I wrote the following simple queries to change the faction of animals, insects, and undead to KoS. There are a few exceptions and more can be added easily by modifying the query. I've added other sql that i've written for my server. I remind you my server is not an easy one, so the code is written to make life a little tough in Norrath.

1. KoS animals, undead, insects, and giants:
Code:
DELETE FROM npc_faction USING npc_types RIGHT JOIN npc_faction ON npc_types.npc_faction_id = npc_faction.id WHERE npc_types.race <> 216 And npc_types.race <> 42 And npc_types.race <> 188 And npc_types.race <> 189 AND npc_types.bodytype = 21 Or npc_types.bodytype=4 or npc_types.bodytype=3 or npc_types.bodytype=22;

UPDATE npc_types SET npc_types.npc_faction_id = 3268 WHERE (((npc_types.race)<>216 And (npc_types.race)<>42 And npc_types.race)<>188 And (npc_types.race)<>189) AND (npc_types.bodytype=21 Or npc_types.bodytype=4 Or npc_types.bodytype=3 Or npc_types.bodytype=22);

DELETE FROM npc_faction_entries USING npc_faction_entries LEFT JOIN npc_faction ON npc_faction_entries.npc_faction_id = npc_faction.id WHERE npc_faction.id IS NULL;
INSERT INTO npc_faction (id,name,primaryfaction) VALUES 3268,'anim_insct_giant_undead',366);
2. Set all magical items to no drop - keeps from twinking and makes the game harder in general:
Code:
UPDATE items SET nodrop=0 WHERE magic=1;
3. Deletes almost all uber items from merchants:
Code:
DELETE FROM merchantlist USING merchantlist, items WHERE merchantlist.item=items.id AND items.magic=1;
4. Increased the base agro. Mobs start off more aggressive:
Code:
UPDATE faction_list SET base=base * 4 WHERE base < 0;
5. Increase the faction hit when killing mobs with faction (more in line with live eq):
Code:
UPDATE npc_faction_entries SET value = value * 12;
6. Give mobs pretty good AC relative to their level:
Code:
UPDATE npc_types SET AC=(((level*level)/1.1)+15) where AC=0;
This SQL works on MW_057DR3_alpha_1, with the npc_updates sourced, and the govtcheese faction upates sourced. Tested on Eqemu5.7DR-4 06/14/04 release.

I will be releasing more KoS updates for the higher end mobs in the next few weeks.

If there are questions, feel free to post on this forum. The AC line was compiled from another user, with a small mod. Thanks!

derf
Reply With Quote
  #2  
Old 06-17-2004, 09:22 AM
govtcheeze
Hill Giant
 
Join Date: Mar 2004
Location: South Florida
Posts: 247
Default

Keep up the great work. I will be adding the faction updates to my script.

For anyone doing faction updates, PLEASE use SQL commands like above so everyone can update their DBs.
__________________
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
  #3  
Old 06-17-2004, 09:27 AM
govtcheeze
Hill Giant
 
Join Date: Mar 2004
Location: South Florida
Posts: 247
Default

Quote:
4. Increased the base agro. Mobs start off more aggressive:
Code:

UPDATE faction_list SET base=base * 4;
Ehh, not quite. This will raise or lower the faction by a factor of 4. I think what you wanted is:

Code:
UPDATE faction_list SET base=base * 4 WHERE base < 0;
or
Code:
UPDATE faction_list SET base=base - (base * 4);
__________________
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
  #4  
Old 06-17-2004, 10:41 AM
vrated
Fire Beetle
 
Join Date: May 2004
Posts: 15
Default

Quote:

Ehh, not quite. This will raise or lower the faction by a factor of 4. I think what you wanted is:

Code:
UPDATE faction_list SET base=base * 4 WHERE base < 0;
Yep thats what I wanted. Thanks for fix i'll edit post!
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:23 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