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

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #13  
Old 01-16-2010, 07:55 PM
Sylaei
Hill Giant
 
Join Date: Jan 2007
Posts: 124
Default

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


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:22 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