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-15-2010, 11:25 PM
jkennedy
Hill Giant
 
Join Date: Dec 2009
Posts: 175
Default

now with that command that u said how would i add a iftext hail to it and npc is set to global commands

and the npc player and zone is set to 0 which is this npc this player and this zone

Last edited by jkennedy; 01-15-2010 at 11:26 PM.. Reason: messed up
Reply With Quote
  #2  
Old 01-16-2010, 08:52 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

In your post, you have 2 script sections, each including their own EVENT_SAY. That suggests that you have 2 separate NPCs each using one of those EVENT_SAYs. If you do have 2 NPCs using these scripts, the second one will never recognize the qglobal, because you set it to 0, which means that only the NPC that gave the qglobal will ever recognize it. And, if that isn't the case and both of these script sections are on the same NPC, it is probably breaking because you aren't supposed to have more than 1 of each event type per NPC, including EVENT_SAY.

If you do have 2 NPCs, you will want to use either option 1 or option 5 for your qglobal btw.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #3  
Old 01-16-2010, 09:04 AM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,498
Default

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
Reply With Quote
  #4  
Old 01-16-2010, 01:13 PM
jkennedy
Hill Giant
 
Join Date: Dec 2009
Posts: 175
Default this what what im using now

[/ode] 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 ($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?");
}
}
if ($text=~/ascent/i && defined($qglobals{MM}) && ($qglobals{MM} == 1)) {
quest::say("Have fun on your Journey");
quest::movepc(319,169,1027,44);
}
}
} [/code]
he responds to the first line even if u have the flag he wont go tot the second line the ahh so you defeated him part
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 09:04 AM.


 

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