EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Plugins & Mods (https://www.eqemulator.org/forums/forumdisplay.php?f=678)
-   -   Announcement Plugin. (https://www.eqemulator.org/forums/showthread.php?t=36998)

Kingly_Krab 06-23-2013 09:36 AM

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);
        }
}



All times are GMT -4. The time now is 11:41 PM.

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