So I've tried to add
if(!quest::istaskactive(223) && !quest::istaskcompleted(223))
I've added that above the initial hail, and not quite sure how to set that up. I've looked at other code, and they use the taskset along with it, which I don't want to do... Should it be seperate from the event_say section?
Code:
sub EVENT_SAY {
my$war = quest::saylink("war");
my$willing = quest::saylink("willing");
if ($text =~/Hail/i){
quest::say ("Hail, $name! I am here to warn you, the [$war] has spilled over to crushbone."); }
if ($text =~/war/i){
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::say ("Excellent! Please hurry up, time is most precious!");
quest::assigntask(223);
}
}