Ok, the code below worked for me. I changed the text it was looking for so that it did not work from 'hail'. I used an existing script and just added these lines to it. I walked up to the mob, typed 'haly', it told me I must go kill Mith Mar. I have it setting theqglobal right after it displays the kill Mith Mar text, this line would be removed from your script. I typed 'haly' again and it said I defeated him did I want to go to the ascent.
So the code works, your problem must lie elsewhere.
Code:
if ($text=~/haly/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.");
quest::setglobal("MM",1,5,"f");
}
}
if ($text=~/ascent/i && defined($qglobals{MM}) && ($qglobals{MM} == 1))
{
quest::say("Have fun on your Journey");
quest::movepc(319,169,1027,44);
}
Just read your post where you got it to work. Gratz.