Log in

View Full Version : quest help globals


spider661
06-22-2008, 01:39 AM
help with quest its not working please

npc 1

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


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

ChaosSlayer
06-22-2008, 01:43 AM
nm.......................

spider661
06-22-2008, 01:46 AM
sorry think i posted this in the wrong place please move it if so.

trevius
06-22-2008, 02:01 AM
One minor thing which might not matter is the carriage return here:

{
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 :D

spider661
06-22-2008, 02:01 AM
i got it working had to turn on the npcs globals