Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Linux Servers

Support::Linux Servers Support forum for Linux EQEMu users.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 01-30-2021, 06:40 PM
Splose's Avatar
Splose
Discordant
 
Join Date: Apr 2014
Posts: 280
Default

global/global_npc
Code:
sub EVENT_AGGRO {
	if($npc->IsRaidTarget()) {
		quest::ze(15, "" . $npc->GetCleanName() . " has engaged " . $client->GetCleanName() . "!");
		quest::worldwidemessage(15, "[FTE] - " . $npc->GetCleanName() . " has engaged " . $client->GetCleanName() . " in $zonesn.", 1, 255);	#:: Worldwide GM only message
	}
}
Quote:
Originally Posted by demonstar55 View Post
I would not be opposed to adding this as a option in code so people don't have to add this to the quest for a million different NPCs. Probably just add something to NPCType and if that flag is set, say it, probably where we process EVENT_AGGRO.
You don't have to add it for every npc big lols. This will affect every NPC in every basement.

Last edited by demonstar55; 07-04-2021 at 05:55 PM.. Reason: NPC::IsRaidTarget is now exported to quest system, update example to reflect that
Reply With Quote
 


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 05:14 AM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3