View Single Post
  #1  
Old 06-23-2013, 09:36 AM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default Announcement Plugin.

This plugin is used to talk through an NPC to the entire server, rather than having to use the quest::gmsay, it is currently set to a cyan color. A plugin I made so that I wouldn't have to use gmsay and so that it would do most of the work for me. This goes in the client_messages.pl in your plugins folder.
Code:
sub Announce
{
	my $color = 18;
	my $npc = plugin::val('$npc');
	my $client = plugin::val('$client');
	my $char = $client->GetCleanName();
	my $message = $_[0];
	if($client)
	{
		quest::gmsay("$char Announces: $message", $color, 1, 0, 0);
	}
}
Reply With Quote