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 06-22-2008, 01:39 AM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default quest help globals

help with quest its not working please

npc 1
Code:
sub EVENT_SAY
{
if ($text =~/Hail/i)
 {
quest::say ("Shhh... Not so Loud.... the slavers might catch us. How did you come to be here?
Oh..nevermind that, quick before the orcs catch on I have something to ask you. Have you come here to free us? Or at least put a stop to Crush's [Plan]?");
 }
if ($text =~/Plan/i)
 {
quest::say ("Others talk of the Excavation here in the mountainside, Slaves are brought in daily and others taken away after finding strange artifacts the orcs seek. There is talk among the slaves that when they take you they set you loose in the valleys of butcher.... but ive noticed the orcs never really bring in food supplies, more like they don’t free you but butcher...");
quest::emote("Shivers slightly and pales");  
quest::say ("enough of that thought... all I know is that others might know more about what's really going on here....");
quest::setglobal("slave", 1, 5, "F");
}
}
npc 2

Code:
sub EVENT_SAY
{
if ($text =~/Hail/i)
{
if($slave == 1)
{
quest::say ("Huh? What?...Wait who are you? Did [Traunt] send you?");
}
if($slave == undef)
{
quest::say ("I have nothing to say to you right now.");
}
}
}
its not working should not be able to talk to npc2 untill you talked to npc1 but its saying "I have nothing to say to you right now" weather or not you talked to npc1
Reply With Quote
  #2  
Old 06-22-2008, 01:43 AM
ChaosSlayer
Demi-God
 
Join Date: May 2007
Posts: 1,032
Default

nm.......................
Reply With Quote
  #3  
Old 06-22-2008, 01:46 AM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

sorry think i posted this in the wrong place please move it if so.
Reply With Quote
  #4  
Old 06-22-2008, 02:01 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

One minor thing which might not matter is the carriage return here:

Code:
 {
quest::say ("Shhh... Not so Loud.... the slavers might catch us. How did you come to be here?
Oh..nevermind that, quick before the orcs catch on I have something to ask you. Have you come here to free us? Or at least put a stop to Crush's [Plan]?");
 }
I have never tried using a carriage return in the middle like that, so I don't know what would happen.

The other thing is you should make sure your NPCs are enabled to recognize qgobals by setting them in georges NPC Loot Editor, or in the table. There is a column named qglobal and you need to change it from 0 to 1 for all NPCs you want to recognize globals. Otherwise, they ignore them completely. Then, just reset the zone and you should be good to go
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #5  
Old 06-22-2008, 02:01 AM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

i got it working had to turn on the npcs globals
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:22 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3