PDA

View Full Version : Target No attack


The Crucial One
08-01-2015, 04:48 PM
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

NatedogEZ
08-01-2015, 06:20 PM
https://github.com/EQEmu/Server/blob/master/zone/aggro.cpp#L504


That line in your source change to...


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.