Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-01-2015, 04:48 PM
The Crucial One
Fire Beetle
 
Join Date: Jul 2015
Posts: 28
Default Target No attack

is there a way to make it so NPC's can still attack each-other but block all effects via client, the reason for this is im doing a NPC battle event, and want players to interact differently then just turning on attack or casting spells on NPC's ATM i find that if i use (special attack 35 - No damage from Client) then NPC's wont aggro each-other and if i use the body-type no target the same also happens. Was hoping there was a way around this.

Thanks as always for your input!
The Crucial One
Reply With Quote
  #2  
Old 08-01-2015, 06:20 PM
NatedogEZ's Avatar
NatedogEZ
Developer
 
Join Date: Dec 2012
Posts: 515
Default

https://github.com/EQEmu/Server/blob...aggro.cpp#L504


That line in your source change to...

Code:
	if(target->GetSpecialAbility(NO_HARM_FROM_CLIENT) && IsClient()){
		return false;
	}

I am pretty sure thats I did to do what you are trying to do.

I made an event where an NPC can attack other NPCs but will not get hurt by players... and you help him ect ect.

Last edited by NatedogEZ; 08-01-2015 at 11:58 PM..
Reply With Quote
Reply

Thread Tools
Display Modes

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 08:32 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