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-15-2004, 09:26 PM
vrated
Fire Beetle
 
Join Date: May 2004
Posts: 15
Default NPC Faction - Stuck at amiable

I am trying to modify the faction of lava beetles in Soldungb to KOS. They are currently amiable.

Here is what I have done:

1. Create a new record in faction_list. Record has unique ID "366", and a unique name, "Animals". Base is set to "-1000" and all other mods to "0".

2. Looked for the npc_faction_id of Lava Beetles in the npc_types table. This number was "3268".

3. Create a new record under npc_faction. id = "3268". name = "lava beetle". Primaryfaction = "366".

4. Create a new record under npc_faction_entries. npc_faction_id = "3268". faction_id = "366". value="0".

I do not want the player to drop or raise faction thus value set to 0 in step 4, even though all the mod's in faction_list are set to 0.

Restart the server, log in, con Lava Beetle(s). All con amiable.

Running 5.7-DR4 (06/14/04). MySQL 4.0.18.
MW_057DR2_alpha_1 db, with the govtcheese faction updates.

Other mobs for example, in Soldungb such as kobolds which in the mysql db are set to kos through their faction, do con KOS. So its not a server wide problems. I just cannot change the con on Lava beetles. I also tried it on Sonic bats, and have the same problem.

I'm stumped as to why I cannot get the faction changed.

Any ideas or help would be greatly appreciated.

Thanks.
Reply With Quote
  #2  
Old 06-16-2004, 05:07 AM
Swampdog
Hill Giant
 
Join Date: May 2004
Posts: 106
Default

I had a similar problem but it resolved itself after I updated my npc_types table. Cant remember if it was adding the AC column or what. Go through the forums and make sure you have done all the table updates for npc_types.
__________________
Kukthar
Discord Aftermath (alpha) LAN Party Server [Custom Legit] - Op/Dev
Temporarilly on hold due to time constraints
Damn rl interupting fun anyways.. :P
Reply With Quote
  #3  
Old 06-16-2004, 05:27 AM
vrated
Fire Beetle
 
Join Date: May 2004
Posts: 15
Default

The updates i have done to my npc_types table are:

SOURCE noc_types_update;
ALTER TABLE `npc_types` ADD `AC` smallint(5) not null default 0;
update npc_types set AC=(((level*level)/1.5)+15) where AC=0;

did i miss something?

any other ideas?
Reply With Quote
  #4  
Old 06-16-2004, 06:11 AM
sandy
Hill Giant
 
Join Date: Oct 2002
Posts: 212
Default

hi

1) lava beetles are not animals they are insects ^^

2) if you don't want faction hits, put no entries in npc_faction_entries
__________________
Sandy
Reply With Quote
  #5  
Old 06-16-2004, 06:15 AM
vrated
Fire Beetle
 
Join Date: May 2004
Posts: 15
Default

Quote:
Originally Posted by sandy
hi

1) lava beetles are not animals they are insects ^^

2) if you don't want faction hits, put no entries in npc_faction_entries
Sill not sure how this resolves my problem though. I took the entry out, and still they con amiable.

Animals is just a generic faction I created which will include bears, lions, insects, giants. Basically the faction towards these mobs cannot be changed, but begins at KoS.

I've set the "base" to "-1000", which should not be amiable, yet they show up amiable.
Reply With Quote
  #6  
Old 06-16-2004, 07:39 AM
govtcheeze
Hill Giant
 
Join Date: Mar 2004
Location: South Florida
Posts: 247
Default

Quote:
3. Create a new record under npc_faction. id = "3268". name = "lava beetle". Primaryfaction = "366".
There should have already been an entry:

Code:
INSERT INTO npc_faction VALUES (3268, 'Lava_Beetle', 0); -- NO FACTION
Instead of ADDING a new one, you should edit this line in the DB to update the 0 to 366.

Quote:
4. Create a new record under npc_faction_entries. npc_faction_id = "3268". faction_id = "366". value="0".
4 is not needed since faction will not be gained or lost.

Let me know if this works.
__________________
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
  #7  
Old 06-16-2004, 12:08 PM
RangerDown
Demi-God
 
Join Date: Mar 2004
Posts: 1,066
Default

Govtcheeze was right, in that if there already was a record with id 3268 in the `npc_faction` table then nothing happened when you tried to add one. In fact the database should give an error if you try to add an entry into `npc_faction` with an `id` field that already exists.

Make sure the PrimaryFaction field is set to 366 for that record. You can make sure of this by executing the command:
Code:
UPDATE npc_faction SET Primaryfaction=366 WHERE id=3268
Then restart the server.

That should have the beetles conning at least threatening, if not scowling.

If you still don't get a correct faction after that, then do two things:

(1) Do an #npcstats on the beetle you're conning. From what I read, you found that the beetle's faction_id was 3268 from looking in the database -- but there might be more than one lava beetle in the npc_types table, and that particular lava beetle's faction_id might not be 3268. If it's not, get its Npc Type number and make the appropriate change in the npc_types table.

(2) If you still have problems, let me know. I will have you do a few SELECT's on some tables to make sure the values are what you and I think they are.
Reply With Quote
  #8  
Old 06-16-2004, 06:32 PM
vrated
Fire Beetle
 
Join Date: May 2004
Posts: 15
Default

Thank you both for your help. I've got the beetles KOS!

Now to convert all animals\insect\giants\undead and i'm all finished!
Reply With Quote
  #9  
Old 06-17-2004, 12:52 AM
sandy
Hill Giant
 
Join Date: Oct 2002
Posts: 212
Default

sorry what i said was not to resolve your pb of amiable

nm =)
__________________
Sandy
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 01:08 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