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.
|