NPC from same Realm are fighting ?!

A place where you can talk about anything Dawn of Light or DAOC related

Moderators: Project Admin, Support Team

Re: NPC from same Realm are fighting ?!

Postby Eudes » Sun Dec 07, 2014 9:46 am

Well, thanks a lot Leo for taking care of my quest and spending your time checking all that :)

By the way is there a special line somewhere to activate IsAllowedToAttack()? I can not find that in any setting file.

So, if I understand well, there is no "natural" solution? But, what about NPCs dummy? The brain is different?
Eudes
DOL Freak
 
Posts: 561
Joined: Wed Dec 05, 2007 12:27 am

Re: NPC from same Realm are fighting ?!

Postby Leodagan » Sun Dec 07, 2014 9:58 am

All NPC with Realm = 0 can attack themselves without troubles.

The thing is nothing is there to trigger the "aggro", checkaggrolevel will never insert a mob "naturally" in his aggro list...

But if you can manage to get at least "1 aggro amount" added to this mob brain all methods will go smoothly :)

If you force mob to attack at least once it'll work (or if you fix the code, but I may get to it shortly), I already observed that mob with AE spells tends to aggro a lot of other mob if you don't set Factions accordingly !

But once Factions are set be careful with charmed mob with AE skills :D
User avatar
Leodagan
Developer
 
Posts: 1350
Joined: Tue May 01, 2012 9:30 am
Website: https://daoc.freyad.net
Location: Lyon

Re: NPC from same Realm are fighting ?!

Postby Eudes » Sun Dec 07, 2014 10:13 am

But if you can manage to get at least "1 aggro amount" added to this mob brain all methods will go smoothly :)
Ok, so, if we talk about brain, that means there is something to change in the .cs I guess, nothing in the DB, you confirm that?
(or if you fix the code, but I may get to it shortly)
You are very welcome Leo :)
Eudes
DOL Freak
 
Posts: 561
Joined: Wed Dec 05, 2007 12:27 am

Re: NPC from same Realm are fighting ?!

Postby Leodagan » Sun Dec 07, 2014 10:41 am

There are not so much server properties to handle how the AI work (at most some property to set the Brain tick timer... only for performance matters...)

Npc Brain is a mine field area of DOL, it can't be overridden easily through scripts, it's pretty badly written, it's a strong dependence for Many other code part, but it does mostly what's needed and nobody have a better code :D
User avatar
Leodagan
Developer
 
Posts: 1350
Joined: Tue May 01, 2012 9:30 am
Website: https://daoc.freyad.net
Location: Lyon

Re: NPC from same Realm are fighting ?!

Postby Leodagan » Sun Dec 07, 2014 3:29 pm

I've got a patch that fixes things a bit, but you must be careful to faction and to "greycon"

Mobs won't attack things when they are grey to the target ! (it's kind of tricky to understand)

Mobs run through you, YOU SEE him grey... the mob won't attack you... but it's all handled in mob brain ;)

It's different than "Controlled Brains" Set to Pets which don't attacks greys to THEM, but attack Purple mobs without hesitation :D

Revision : 3397
Last edited by Leodagan on Sun Dec 07, 2014 4:28 pm, edited 1 time in total.
User avatar
Leodagan
Developer
 
Posts: 1350
Joined: Tue May 01, 2012 9:30 am
Website: https://daoc.freyad.net
Location: Lyon

Re: NPC from same Realm are fighting ?!

Postby Eudes » Sun Dec 07, 2014 3:35 pm

When you say "patch", does is something already available through the SVN?

I understand very well the grey story, was especially useful in DF... :)
Eudes
DOL Freak
 
Posts: 561
Joined: Wed Dec 05, 2007 12:27 am

Re: NPC from same Realm are fighting ?!

Postby Leodagan » Sun Dec 07, 2014 3:38 pm

When there is a Revision Tag in my post it's mostly a SVN trunk Update ;)

Get Tortoise SVN working to read "patch" log from the revision 3397, you'll see what I changed to solve the bug ;)

Then you can Merge or Diff them as you like !
User avatar
Leodagan
Developer
 
Posts: 1350
Joined: Tue May 01, 2012 9:30 am
Website: https://daoc.freyad.net
Location: Lyon

Re: NPC from same Realm are fighting ?!

Postby Eudes » Sun Dec 07, 2014 4:23 pm

Perfect, thank you Leo :)
Eudes
DOL Freak
 
Posts: 561
Joined: Wed Dec 05, 2007 12:27 am


Return to “%s” General

Who is online

Users browsing this forum: No registered users and 1 guest