Here is the code I'm trying to use:
Code:
sub EVENT_SAY
{
{
if ($text=~ /Hail/i) { quest::say("You look like a strong adventurer. Possibly you could take on this [problem] that ails our citizens of late.");}
if ($text=~ /Problem/i) { quest::say("You see, a brooding Dragon is in the sewers of Freeport. I need you to find him and slay him. If you bring me one of his teeth I will reward you greatly.");}
}
if ($item1 == 00001){ quest::say("Ah yes, I heard the screeches. Congratulations $name!");
quest::summonitem("21820");
quest::shout("All praise $name!");}
}
I can get the mob to do the summon item and shout, but only after I hail them after i do the turn in. Obviously thats not what I wanted.