|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Development::Database/World Building World Building forum, dedicated to the EQEmu MySQL Database. Post partial/complete databases for spawns, items, etc. |
04-10-2013, 11:29 PM
|
Sarnak
|
|
Join Date: Mar 2013
Location: Springfield MO
Posts: 66
|
|
War mobs
First post...
I been working on my server for a couple weeks, and finaly run into something I cant figure out on my own.
I want a warring NPC to spawn now and then and reek havok in a zone.
I have made them scowling and ready to attack every player type but for the life of me I cannot make the attack other NPCs. I want them to pretty much sweep the zone and kill everything in sight or be killed off in trying.
Thanks for any help.
__________________
"We are all on the same team, and I think not enough people realize this."
- Leetsauce
|
04-11-2013, 12:05 AM
|
|
Demi-God
|
|
Join Date: Mar 2009
Location: Umm
Posts: 1,492
|
|
you need to set agro flag for that specific npc to 1
i forgot what the field called, but its in npcs table in DB
|
04-11-2013, 12:44 AM
|
Sarnak
|
|
Join Date: Mar 2013
Location: Springfield MO
Posts: 66
|
|
Quote:
you need to set agro flag for that specific npc to 1
i forgot what the field called, but its in npcs table in DB
|
Well... I thought I did that. I set npc_aggro to 1 in npc_types but that didnt seem to work.
I also looked in rule values... there are some settigs for Agro, but not anything that stands out to be NPC to NPC agro.
Im befuddled for now.
__________________
"We are all on the same team, and I think not enough people realize this."
- Leetsauce
|
04-11-2013, 09:15 AM
|
|
Demi-God
|
|
Join Date: Mar 2009
Location: Umm
Posts: 1,492
|
|
ok, did you also set your specific NPC to be on opposite faction to other npcs?
see how say Qeynos Guards are set in default PEQ Db so they attack gnolls and snakes
|
|
|
|
04-11-2013, 02:52 PM
|
Sarnak
|
|
Join Date: Mar 2013
Location: Springfield MO
Posts: 66
|
|
Ok... Think I got this as clear as mud
From Faction_List I found that Qeynos Guard are faction ID 135
Running this query...
select * from npc_faction where id in
(select npc_faction_id from npc_faction_entries where faction_id =135
and value > 0)
gives me data like...
id,name,primaryfaction,ignore_primary_assist
4,Lord_Grimrot,21,0
18,Guard_Donlan,21,0
29,Chesgard,21,0
50,qey_gnolls,279,0
51,a_gnoll_commander,279,0
Where as if I change value to < 0 I get
id,name,primaryfaction,ignore_primary_assist
8,Sir_Morgan,167,0
12,Narra_Tanith,135,0
17,Chanda_Miller,167,0
26,Holly_Windstalker,265,0
which looks pretty much in line with KOS and non-kos mobs... However...
Nowhere can I find in the database where any of the Qeyons Guards like Guard Hezlan is tied to this faction ID 135
And the guards dont attack the gnolls. Flippy Darkpaw walks right into town without harrassment.
I even tried an experiment... I changed npc_faction_id to 135 in npc_type table for Guard Hezlan and he still does nothing
Im stumped.
__________________
"We are all on the same team, and I think not enough people realize this."
- Leetsauce
|
|
|
|
04-11-2013, 09:30 PM
|
Hill Giant
|
|
Join Date: Jun 2010
Posts: 231
|
|
Derakor The Vindicator will ONLY attack Paladin npc type mobs in Qeynos but leave other guards alone, however the other guards will assist Paladin type guards on Vindi.
Experimented in Kael, Quarm won't fight anything in the zone but it will fight Yelinak. IDK why.
**Yes I said Kael, and Yes I spawned Yelinak inside Kael to see who he would fight. He fights with Vindi thats about it**
|
04-12-2013, 12:01 AM
|
|
Demi-God
|
|
Join Date: Mar 2009
Location: Umm
Posts: 1,492
|
|
ok i don't really have time to explain this in full right now, but there are 3 different tables tied to each other in DB that determine how faction interaction works.
Its rather complex, but there is an article in Wiki explaining that - which is where I originally learn how to do it. Look it up
|
|
|
|
04-12-2013, 05:53 PM
|
Sarnak
|
|
Join Date: Mar 2013
Location: Springfield MO
Posts: 66
|
|
Quote:
ok i don't really have time to explain this in full right now, but there are 3 different tables tied to each other in DB that determine how faction interaction works.
Its rather complex, but there is an article in Wiki explaining that - which is where I originally learn how to do it. Look it up
|
Yes... Did that before my first post. Double and triple-checked it. The values there are correct. Or at least seem to be correct. But, they just dont seem to work. I can summon any mob into the guards agro range and they stand there like they are on a smoke break.
So its not working with guards and such and not working with the mobs I created. They attack Players of all kinds just fine.. they and the guards will not attack another NPC.
Im going back to test with my non-DM test character to see if the guards will protect him if he pulls mobs to him. Maybe, if this works, I can figure out a way to make assist agro do the trick
__________________
"We are all on the same team, and I think not enough people realize this."
- Leetsauce
|
|
|
|
04-14-2013, 11:13 PM
|
Sarnak
|
|
Join Date: Mar 2013
Location: Springfield MO
Posts: 66
|
|
Im still struggling with this issue. If anyone can point me in the right direction or tell me it's impossible I would very much appreciate it.
The problem: NPCs do not attack other NPCs. Qeyos guards stand by and watch Flippy Darkpaw run into the city, the Dragoons in Overthere walk around and molest nothing... not even a cactus.
Did I miss a setting or something in the DB?
__________________
"We are all on the same team, and I think not enough people realize this."
- Leetsauce
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 09:40 PM.
|
|
|
|
|
|
|
|
|
|
|
|
|