So it should look something like this?
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");
}
if($randomphrase==2)
{
quest::say("Hi");
}
if($randomphrase==3)
{
quest::say("Heya");
}
}
}
I'll try and see if it works, just wanted to make sure I understood what you meant leerxst2112