PDA

View Full Version : Announcement Plugin.


Kingly_Krab
06-23-2013, 09:36 AM
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.
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);
}
}