View Single Post
  #11  
Old 06-15-2007, 11:22 PM
Budaworm
Fire Beetle
 
Join Date: Oct 2003
Posts: 20
Default

The method above looks even more compact but you gotta write it as
Code:
sub EVENT_AGGRO {
    my @Phrases = (
        "Your faithless devotion to a false god leaves me no choice.",
        "I shall rid the land of another infamous villain.",
        "Your foul deeds have earned my contempt.",
        "${race}s like you are better left dead than alive.",
        "It's ${class}s like you who have ruined your own lands, You'll not ruin mine!",
        "Heathen! Unbeliever! Norrath must be cleansed!"
    );
    quest::say("Frrroooaaakkk!");
    quest::say("$Phrases[int(rand($#Phrases+1))]");
}
to get it to work.
Reply With Quote