View Single Post
  #10  
Old 02-04-2012, 12:43 PM
Luccian
Sarnak
 
Join Date: Sep 2009
Posts: 32
Default

Quote:
Originally Posted by sorvani View Post
The plugin is the way to go, but for your reference:

Code:
sub EVENT_SAY 
{
	if($text=~/Hail/)
	{
		quest::emote("appears to be one of Zimora's chosen elite. Light glistens off the shined plate armor.");
		# Random choice of phrases to be said
		my $randomphrase=plugin::RandomRange(1,3);
			if($randomphrase==1) {
				quest::say("Hello");
			} elsif($randomphrase==2) {
				quest::say("Hi");
			} elsif($randomphrase==3) {
				quest::say("Heya");
			}
	}
}

Ah ok, yeah I figured it would look kinda like that, however the formatting wasn't clear to me. Thanks for clarifying =) I can use this kinda knowledge for future ventures as well. Appreciate it.
Reply With Quote