View Single Post
  #5  
Old 01-30-2021, 06:40 PM
Splose
Banned
 
Join Date: Apr 2014
Posts: 279
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