I think (not real strong at quests yet) this is what you want
Code:
sub EVENT_SAY {
my$war = quest::saylink("war");
my$willing = quest::saylink("willing");
if (($text =~/Hail/i) && (!quest::istaskactive(223) && !quest::istaskcompleted(223)){
quest::say ("Hail, $name! I am here to warn you, the [$war] has spilled over to crushbone."); }
if (($text =~/war/i) && (!quest::istaskactive(223) && !quest::istaskcompleted(223)){
quest::say ("The invador is a Sarnak named Xalgoz who seeks to enslave the orcs. Please I beg of you, help my beloved Emperor Crush.. he has been taken prisoner deep within his castle. There is a scout atop the great pillar, seek him out if you are [$willing]!"); }
if (($text =~/willing/i) && (!quest::istaskactive(223) && !quest::istaskcompleted(223)){
quest::say ("Excellent! Please hurry up, time is most precious!");
quest::assigntask(223);
}
}