Aldest
03-02-2009, 10:13 AM
I'm trying to design my first quest and running into trouble. My NPC basically turns to face you when you hail her but doesn't give the quest responses. Other NPCs in the same zone work just fine. Felicia just seems to be mute or rude.
Here is my quest:
sub EVENT_SAY {
if ($text=~/hail/i) {
quest::say ("Greetings young $race. If you have a [minute] I have something very important to ask you.");
}
if ($text=~/minute/i) {
quest::say ("I'm glad you had the time to speak to me as I'm certain you'll find this worth your while. It is fair to say I am not exactly from these lands but I know much about them. There is a great danger coming and I'm here to avert it. I cannot do it alone. Would you be willing to help me?");
}
if ($text=~/help you/i) {
quest::say ("Time is of the essence. I'm not sure how much longer we have left. To ensure this crisis does not occur I need you to seek out some items for me. Tell me, what is your profession?");
}
if ($text=~/cleric/i) {
quest:: say ("A cleric? How fortunate. I will need a Platinum Token from a lord who sits on a throne that is not his, a Royal Fang from a king that rules in the shadow of a lord, and a Tainted Flail from clerics who serve a dark god. Bring them to me and I will reward you.");
}
}
sub EVENT_ITEM
{
if (plugin::check_handin(\%itemcount, 16905 => 1, 16857 => 1, 10035 => 1))
{
quest::emote("removes a item from his pocket.");
quest::say("This is yours. Care for it well!");
quest::summonitem(10051); #gemmed crown
}
}
Can anyone spot something wrong with that?
Here is my quest:
sub EVENT_SAY {
if ($text=~/hail/i) {
quest::say ("Greetings young $race. If you have a [minute] I have something very important to ask you.");
}
if ($text=~/minute/i) {
quest::say ("I'm glad you had the time to speak to me as I'm certain you'll find this worth your while. It is fair to say I am not exactly from these lands but I know much about them. There is a great danger coming and I'm here to avert it. I cannot do it alone. Would you be willing to help me?");
}
if ($text=~/help you/i) {
quest::say ("Time is of the essence. I'm not sure how much longer we have left. To ensure this crisis does not occur I need you to seek out some items for me. Tell me, what is your profession?");
}
if ($text=~/cleric/i) {
quest:: say ("A cleric? How fortunate. I will need a Platinum Token from a lord who sits on a throne that is not his, a Royal Fang from a king that rules in the shadow of a lord, and a Tainted Flail from clerics who serve a dark god. Bring them to me and I will reward you.");
}
}
sub EVENT_ITEM
{
if (plugin::check_handin(\%itemcount, 16905 => 1, 16857 => 1, 10035 => 1))
{
quest::emote("removes a item from his pocket.");
quest::say("This is yours. Care for it well!");
quest::summonitem(10051); #gemmed crown
}
}
Can anyone spot something wrong with that?