jkennedy, you have an extra brace at the bottom and you have two ($text=~/hail/i). If this did work you would get the contents of both 'hail' statements when 'MM' is set to 1. Try this:
Code:
sub EVENT_SAY
{
if ($text=~/hail/i)
{
if (defined($qglobals{MM}) && ($qglobals{MM} == 1))
{
quest::say("AHHH, So you defeated him would you like to go to The [Ascent]?");
}
else
{
quest::say("You must kill lord Mith Mar to talk to me $name.");
}
}
if ($text=~/ascent/i && defined($qglobals{MM}) && ($qglobals{MM} == 1))
{
quest::say("Have fun on your Journey");
quest::movepc(319,169,1027,44);
}
}
First we check for the 'hail', then if 'hail' is true we check to see if 'MM' is defined and is equal to 1. If the answer is yes we ask if the pc wants to go to The Ascent. If any check fails we fall into the else and tell them to go kill Lord Mith Mar.
HTH