Quote:
Originally Posted by sorvani
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.