Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Plugins & Mods

Quests::Plugins & Mods Completed plugins for public use as well as modifications.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-23-2013, 09:36 AM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,594
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
Reply


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