EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::General Support (https://www.eqemulator.org/forums/forumdisplay.php?f=598)
-   -   Target No attack (https://www.eqemulator.org/forums/showthread.php?t=39900)

The Crucial One 08-01-2015 04:48 PM

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

NatedogEZ 08-01-2015 06:20 PM

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.


All times are GMT -4. The time now is 06:30 AM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.