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