Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-02-2009, 05:01 AM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default factions??

ok i read the wiki but i don't understand how to do what i want to do still..

this is what i want to do

i want 2 npc factions each hate the other and will kill on site the other i want them to hate all players.

then though a quest i want to make one like the npc and the other still hate and what one gets changed depends on what there doing.. i think i know how to do the quest part but the actual making of the factions i cant figure out.

sql statements would be nice and maybe something telling me what your doing so i can learn from it also.
Reply With Quote
  #2  
Old 01-03-2009, 02:07 AM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

Code:
INSERT INTO faction_list
   (`id`, `name`, `base`, `mod_c1`, `mod_c2`, `mod_c3`, `mod_c4`, `mod_c5`, `mod_c6`, `mod_c7`, `mod_c8`, `mod_c9`, `mod_c10`, `mod_c11`, `mod_c12`, `mod_c13`, `mod_c14`, `mod_c15`, `mod_r1`, `mod_r2`, `mod_r3`, `mod_r4`, `mod_r5`, `mod_r6`, `mod_r7`, `mod_r8`, `mod_r9`, `mod_r10`, `mod_r11`, `mod_r12`, `mod_r14`, `mod_r60`, `mod_r75`, `mod_r108`, `mod_r120`, `mod_r128`, `mod_r130`, `mod_r161`, `mod_d140`, `mod_d201`, `mod_d202`, `mod_d203`, `mod_d204`, `mod_d205`, `mod_d206`, `mod_d207`, `mod_d208`, `mod_d209`, `mod_d210`, `mod_d211`, `mod_d212`, `mod_d213`, `mod_d214`, `mod_d215`, `mod_d216`)
VALUES
   (500, 'Katta Gaurd', -1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);

INSERT INTO faction_list
   (`id`, `name`, `base`, `mod_c1`, `mod_c2`, `mod_c3`, `mod_c4`, `mod_c5`, `mod_c6`, `mod_c7`, `mod_c8`, `mod_c9`, `mod_c10`, `mod_c11`, `mod_c12`, `mod_c13`, `mod_c14`, `mod_c15`, `mod_r1`, `mod_r2`, `mod_r3`, `mod_r4`, `mod_r5`, `mod_r6`, `mod_r7`, `mod_r8`, `mod_r9`, `mod_r10`, `mod_r11`, `mod_r12`, `mod_r14`, `mod_r60`, `mod_r75`, `mod_r108`, `mod_r120`, `mod_r128`, `mod_r130`, `mod_r161`, `mod_d140`, `mod_d201`, `mod_d202`, `mod_d203`, `mod_d204`, `mod_d205`, `mod_d206`, `mod_d207`, `mod_d208`, `mod_d209`, `mod_d210`, `mod_d211`, `mod_d212`, `mod_d213`, `mod_d214`, `mod_d215`, `mod_d216`)
VALUES
   (501, 'Katta Attacker', -1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);



INSERT INTO npc_faction
   (`id`, `name`, `primaryfaction`, `ignore_primary_assist`)
VALUES
   (20000, 'Katta Keppers', 500, 0);

INSERT INTO npc_faction
   (`id`, `name`, `primaryfaction`, `ignore_primary_assist`)
VALUES
   (20001, 'Katta Attackers', 501, 0);



INSERT INTO npc_faction_entries
   (`npc_faction_id`, `faction_id`, `value`, `npc_value`)
VALUES
   (20000, 500, -30, -1);

INSERT INTO npc_faction_entries
   (`npc_faction_id`, `faction_id`, `value`, `npc_value`)
VALUES
   (20000, 501, 30, 0);

INSERT INTO npc_faction_entries
   (`npc_faction_id`, `faction_id`, `value`, `npc_value`)
VALUES
   (20001, 500, 30, 0);

INSERT INTO npc_faction_entries
   (`npc_faction_id`, `faction_id`, `value`, `npc_value`)
VALUES
   (20001, 501, -30, -1);
i got this.. now this is working all the npcs are kos for both factions but there not attacking each other. any clues as to what i need to change? or if im completely wrong?
Reply With Quote
  #3  
Old 01-03-2009, 03:00 AM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

ok all i got i working for anyone that would like to know

make 2 new factions that hate all player (change to +1000 to make them like players) or change factions normally to make them like some and not others anyways

Code:
INSERT INTO faction_list
   (`id`, `name`, `base`, `mod_c1`, `mod_c2`, `mod_c3`, `mod_c4`, `mod_c5`, `mod_c6`, `mod_c7`, `mod_c8`, `mod_c9`, `mod_c10`, `mod_c11`, `mod_c12`, `mod_c13`, `mod_c14`, `mod_c15`, `mod_r1`, `mod_r2`, `mod_r3`, `mod_r4`, `mod_r5`, `mod_r6`, `mod_r7`, `mod_r8`, `mod_r9`, `mod_r10`, `mod_r11`, `mod_r12`, `mod_r14`, `mod_r60`, `mod_r75`, `mod_r108`, `mod_r120`, `mod_r128`, `mod_r130`, `mod_r161`, `mod_d140`, `mod_d201`, `mod_d202`, `mod_d203`, `mod_d204`, `mod_d205`, `mod_d206`, `mod_d207`, `mod_d208`, `mod_d209`, `mod_d210`, `mod_d211`, `mod_d212`, `mod_d213`, `mod_d214`, `mod_d215`, `mod_d216`)
VALUES
   (500, 'Katta Gaurd', -1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);

INSERT INTO faction_list
   (`id`, `name`, `base`, `mod_c1`, `mod_c2`, `mod_c3`, `mod_c4`, `mod_c5`, `mod_c6`, `mod_c7`, `mod_c8`, `mod_c9`, `mod_c10`, `mod_c11`, `mod_c12`, `mod_c13`, `mod_c14`, `mod_c15`, `mod_r1`, `mod_r2`, `mod_r3`, `mod_r4`, `mod_r5`, `mod_r6`, `mod_r7`, `mod_r8`, `mod_r9`, `mod_r10`, `mod_r11`, `mod_r12`, `mod_r14`, `mod_r60`, `mod_r75`, `mod_r108`, `mod_r120`, `mod_r128`, `mod_r130`, `mod_r161`, `mod_d140`, `mod_d201`, `mod_d202`, `mod_d203`, `mod_d204`, `mod_d205`, `mod_d206`, `mod_d207`, `mod_d208`, `mod_d209`, `mod_d210`, `mod_d211`, `mod_d212`, `mod_d213`, `mod_d214`, `mod_d215`, `mod_d216`)
VALUES
   (501, 'Katta Attacker', -1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
note there id mine is 500 and 501

next make some factions for the npcs themselves

Code:
INSERT INTO npc_faction (`id`, `name`, `primaryfaction`, `ignore_primary_assist`) VALUES (20000, 'Katta Keppers', 500, 0);

INSERT INTO npc_faction (`id`, `name`, `primaryfaction`, `ignore_primary_assist`) VALUES (20001, 'Katta Attackers', 501, 0);
i called these id 20000 and 20001 with the primary faction of the factions from above 501 and 500 im no really sure what the primary assist is so i left it 0 (default)

these are the factions you will put on the npcs

the we do the teaming of the factions.. basically put the factions on each npcs hate list so they both need a faction where they like the other and a faction they hate the other. also in here is where you would call if you kill this npc -50 to his faction and so on.. im not ready to get into all that this is just basic as im learning

Code:
INSERT INTO `npc_faction_entries` VALUES ('20000', '500', '-30', '0');
INSERT INTO `npc_faction_entries` VALUES ('20000', '501', '30', '-1');
INSERT INTO `npc_faction_entries` VALUES ('20001', '500', '30', '-1');
INSERT INTO `npc_faction_entries` VALUES ('20001', '501', '-30', '0');
what i did was made 2 for each faction both haveing 500 and 501 as part of the faction one says when you kill a npc with faction 20000 then -30 from faction 500 and add 30 to faction 20000 and the same for the other faction but reversed.. then i made them not like each other and attack by setting -1..

also not you have to make the npc in the npc_types table be able to attack npcs.
Reply With Quote
  #4  
Old 01-03-2009, 03:13 AM
kiirdiir
Sarnak
 
Join Date: Apr 2007
Posts: 42
Default

Nice. Good job answering your own question.

It looks like you are customizing something fun.
Reply With Quote
  #5  
Old 01-03-2009, 03:19 AM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

well i could not have posted it but i figure there are others out there trying to get this working also and seance no one posted im guessing no one knew off had so i figured i would help others out while im at it.

and im still interested in learning more so if anyone can see something wrong with this or more to add please post.. maybe once its all flushed out and its all known it can get posted on the wiki with the faction stuff there to help others.
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 06: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