L2JMobius

Public Development => Shares/Contributions => Archived User Contributions => Topic started by: glock on February 24, 2026, 09:55:27 PM

Title: [Contribution] NPC Social Aggro Fix
Post by: glock on February 24, 2026, 09:55:27 PM
The C4 datapack had a widespread issue where NPCs were incorrectly assigned the generic <clan>ALL</clan> tag, causing unrelated race monsters to help each other in combat.
I edited all of the <clan> tags so that social behaviour of the mob functions correctly.

https://gitlab.com/MobiusDevelopment/L2J_Mobius/-/merge_requests/1/commits?commit_id=d69d0373a7c6871faa9c0a9fc1d72218c337cc88
Title: Re: [Contribution] NPC Social Aggro Fix
Post by: Mobius on February 25, 2026, 06:35:10 AM
You confuse clan with race.

Also share diff patches.
We do not do merges.
Title: Re: [Contribution] NPC Social Aggro Fix
Post by: glock on February 25, 2026, 10:14:49 AM
I know, I just used race as an example. What I ment to say, a passive beast(bear) should not be social with lets say (undead)skeleton. This fixes that problem.

Idk what you mean by to post patches. So let me know if this is not it. Im new to all of this.
https://gitlab.com/Glockxvii/L2J_Mobius/-/commit/d69d0373a7c6871faa9c0a9fc1d72218c337cc88.patch

Title: Re: [Contribution] NPC Social Aggro Fix
Post by: Mobius on February 25, 2026, 10:34:35 AM
We have aggro and clan range when needed.

How to create and apply DIFF patches
https://l2jmobius.org/forum/index.php?topic=896.0
Title: Re: [Contribution] NPC Social Aggro Fix
Post by: glock on February 25, 2026, 04:01:41 PM
Even if you adjust agro range. A Bat should never help a zombie and vice versa.
Heres an example. First part of video with original files. Second part with the fix.
Title: Re: [Contribution] NPC Social Aggro Fix
Post by: Naker on February 25, 2026, 06:52:01 PM
The data we use is parsed by L2jServer from official files. So if we have clan as all it is what it is for C4. You are free the mod your project as you want but this is not something that player that want a retail server should reproduce. So no need to change at all
Title: Re: [Contribution] NPC Social Aggro Fix
Post by: Mobius on February 25, 2026, 06:52:51 PM
Even if you adjust agro range. A Bat should never help a zombie and vice versa.
Heres an example. First part of video with original files. Second part with the fix.

Says who?
They both have no clan.

Adding clan everywhere because "we must" without retail info, is not going to happen.
Title: Re: [Contribution] NPC Social Aggro Fix
Post by: glock on February 25, 2026, 08:11:17 PM
The data we use is parsed by L2jServer from official files. So if we have clan as all it is what it is for C4. You are free the mod your project as you want but this is not something that player that want a retail server should reproduce. So no need to change at all


But even if you attack mobs next to Pixie or Treant NPCs, those NPCs immediately aggro you, because mobs near them have <clan>ALL</clan> which asks for assistance from all nearby mobs, and evidently from NPCs that are aggroable.
You're telling me on official servers even NPCs were attacking players because of killing mobs?
Title: Re: [Contribution] NPC Social Aggro Fix
Post by: glock on February 25, 2026, 08:18:36 PM
Says who?
They both have no clan.

Adding clan everywhere because "we must" without retail info, is not going to happen.

They both have no clan? Its literally in your files. Theyr clan tags are all set to "ALL". You can even put Treant NPC next to a zombie. Hit the zombie and the NPC will aggro you.
Im not adding the clan tag everywhere, im just modifying the existing tags so that mobs and NPC wont behave like this.

Anyway Im not here to argue, do as you please with this information.
Title: Re: [Contribution] NPC Social Aggro Fix
Post by: Mobius on February 25, 2026, 09:22:33 PM
Your "information" is invalid and not based on any retail information.
The NPCs currently work as intended.
Title: Re: [Contribution] NPC Social Aggro Fix
Post by: glock on February 25, 2026, 09:59:56 PM
Fair enough  :)
Title: Re: [Contribution] NPC Social Aggro Fix
Post by: Naker on February 25, 2026, 10:03:45 PM

But even if you attack mobs next to Pixie or Treant NPCs, those NPCs immediately aggro you, because mobs near them have <clan>ALL</clan> which asks for assistance from all nearby mobs, and evidently from NPCs that are aggroable.
You're telling me on official servers even NPCs were attacking players because of killing mobs?
Yes this npc you put as example are protector of the area and attack any player that are hunting here is the lore of them... and again what we have is extracted as official.