Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Feature Requests

Development::Feature Requests Post suggestions/feature requests here.

Reply
 
Thread Tools Display Modes
  #1  
Old 04-13-2017, 01:24 AM
Coenxai's Avatar
Coenxai
Hill Giant
 
Join Date: Dec 2013
Posts: 151
Default

This is a pretty basic change guys.

You'll need to add the special ability. Here's an example:

Code:
common.h

	IGNORE_ROOT_AGGRO_RULES = 42,
	CASTING_RESIST_DIFF = 43,
	COUNTER_AVOID_DAMAGE = 44,
	PROX_AGGRO = 45,
	ALWAYS_AGGRO = 46, <-----
	MAX_SPECIAL_ATTACK = 47
Then, just add it in where it fits your goal. Such as:

Code:
aggro.cpp

Mob::CheckWillAggro

   ...

	if (RuleB(Aggro, UseLevelAggro) && ((
		( GetLevel() >= 18 )
		||(GetBodyType() == BT_Undead)
		||( mob->IsClient() && mob->CastToClient()->IsSitting() )
		||( mob->GetLevelCon(GetLevel()) != CON_GREEN )
		||( GetSpecialAbility(ALWAYS_AGGRO) ))
After that, add the special ability to the NPC's that you desire. Voilą.

That function is so abhorrent it deserves an award.
__________________
"The true sign of intelligence is not knowledge but imagination."
Reply With Quote
  #2  
Old 04-13-2017, 10:18 PM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

Quote:
Originally Posted by Coenxai View Post
This is a pretty basic change guys.

You'll need to add the special ability. Here's an example:

Code:
common.h

	IGNORE_ROOT_AGGRO_RULES = 42,
	CASTING_RESIST_DIFF = 43,
	COUNTER_AVOID_DAMAGE = 44,
	PROX_AGGRO = 45,
	ALWAYS_AGGRO = 46, <-----
	MAX_SPECIAL_ATTACK = 47
Then, just add it in where it fits your goal. Such as:

Code:
aggro.cpp

Mob::CheckWillAggro

   ...

	if (RuleB(Aggro, UseLevelAggro) && ((
		( GetLevel() >= 18 )
		||(GetBodyType() == BT_Undead)
		||( mob->IsClient() && mob->CastToClient()->IsSitting() )
		||( mob->GetLevelCon(GetLevel()) != CON_GREEN )
		||( GetSpecialAbility(ALWAYS_AGGRO) ))
After that, add the special ability to the NPC's that you desire. Voilą.

That function is so abhorrent it deserves an award.


Thank You Coenxai!
Would be great our devs would add this to the official source!

BTW the mob doesn't necessarily needs to be Undead
It can be any type of mob that's needs to be always aggro
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 04:00 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