You might be looking for something like this:
Code:
sub EVENT_SAY {
if ($text=~/hail/i) {
if (!defined($qglobals{MM})) {
quest::say("You must kill lord Mith Mar to talk to me $name.");
}
if (defined($qglobals{MM}) && ($qglobals{MM} == 1)) {
quest::say("AHHH, So you defeated him would you like to go to The Ascent?");
}
}
if ($text=~/ascent/i && defined($qglobals{MM}) && ($qglobals{MM} == 1)) {
quest::say("Have fun on your Journey");
quest::movepc(319,169,1027,44);
}
}
Typed on an iPod so don't freak if I misformatted