View Single Post
  #2  
Old 12-02-2010, 10:01 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default

This plugin was added to the repository, I had made a small modification that adds a space before the client message that I do believe you had mentioned you added yourself a while back I am not sure.

Code:
#Usage: plugin::ClientSay("Message"); ###Whisper Modification
#Akkadius
sub ClientSay{
	my $TextColor = 315;	#Set the Text Color for the Message (this one is beige)
	my $npc = plugin::val('$npc');
	my $client = plugin::val('$client');
	my $MyMessage = $_[0];	#Use the Message Supplied to the Function - "$_[0]" means to use the first argument given
	if ($client) {
		my $NPCName = $npc->GetCleanName();	#Get the clean name of the NPC sending the message
		$client->Message($TextColor, " "); ###Gives a blank space in between messages
		$client->Message($TextColor, "$NPCName says, '$MyMessage'");	#Send a message to the player simulating a whisper directly to them from the NPC
	}
}
Both of these are added to client_messages.pl in the repo
Reply With Quote