Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 01-16-2010, 02:18 PM
Sylaei
Hill Giant
 
Join Date: Jan 2007
Posts: 124
Default

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
__________________
Syl

"The significant problems we have cannot be solved at the same level of thinking with which we created them."
Albert Einstein
Reply With Quote
  #2  
Old 01-16-2010, 02:53 PM
jkennedy
Hill Giant
 
Join Date: Dec 2009
Posts: 175
Default

that still wont work
i have the flag which is set to an id then the charid is mine the npc id is 0 and zoneid is 0 name is MM value 1 and exp date is null and the npc is set to qglobal 1 so i have no clue why its not ready the qglobal its like skipping it
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 10:45 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3