MarCrush
05-20-2005, 07:58 AM
I viewed the whole forum (Quests::Q&A) and I searched the forums, no answer. I tested my server to see if it worked but, still a problem. YES I GOT THE PERL VERSION.
I recently added some quests today and they won't work when I hail the quest NPC, I have them in my quests directory under the server files are. Here is one quest I got off the forums:
Exterminator_Qalantir.pl
############################################
# ZONE: West Freeport (freportw)
# DATABASE: PEQ-Velios
# LAST EDIT DATE: April 5,2005
# VERSION: 2.0
# DEVELOPER: MWMDRAGON
#
# *** NPC INFORMATION ***
#
# NAME: Exterminator_Qalantir
# ID: 9128
# TYPE: Warrior
# RACE: Human
# LEVEL: 30
#
# *** ITEMS GIVEN OR TAKEN ***
#
# Rat Whiskers ID-13071
#
# *** QUESTS INVOLVED IN ***
#
#1 - Exterminate the Vermin (West Freeport)
#
# *** QUESTS AVAILABLE TO ***
#
#1 - All
#
############################################
sub EVENT_SAY
{
if ($text=~/hail/i)
{
quest::say("Pleased to meet you $name, if you are a newcomer to Freeport then you can clearly see we are having quite the rat problem. If you are interested the militia has granted me some coin to reward those that bring me four rat whiskers.")
}
}
sub EVENT_ITEM
{
# Rat Whiskers ID-13071
if ($itemcount{13071} == 4)
{
quest::say("This is good work! I know this isnt much but it is all I can offer you. Thanks for your help!");
quest::ding();
quest::exp(25);
quest::givecash ("1","1","1","0");
}
}
#END of FILE Zone:freportw ID:9128 -- Exterminator_Qalantir
Guard_Alayle.pl
############################################
# ZONE: West Freeport (freportw)
# DATABASE: PEQ-Velious
# LAST EDIT DATE: April 5,2005
# VERSION: 2.0
# DEVELOPER: MWMDRAGON
#
# *** NPC INFORMATION ***
#
# NAME: Guard_Alayle
# ID: 9135
# TYPE: Warrior
# RACE: Freeport guard
# LEVEL: 10
#
# *** ITEMS GIVEN OR TAKEN ***
#
# Sealed Letter ID-18817
# A Tattered Flier ID-18818
#
# *** QUESTS INVOLVED IN ***
#
#1 - Zimel's Blades (Quest for Soulfire)
#
# *** QUESTS AVAILABLE TO ***
#
#1 - Paladin
#
############################################
sub EVENT_SAY
{
if($text=~/Hail/i)
{
quest::say("Greetings. citizen! You should not be in the Militia House. These are restricted grounds. Please leave at once unless you have business here.");
}
if($text=~/truth is good/i && $class == 'Paladin')
{
quest::say("Ssshhh!! Pipe down. The others might hear you. You must have something for me. Kalatrina must have given you something if you serve the Hall of Truth. If you have nothing please leave. You will blow my cover.");
}
}
sub EVENT_ITEM
{
if($class != 'Paladin')
{
quest::say("You have no business handing me this junk.");
quest::summonitem($item1) if($item1);
quest::summonitem($item2) if($item2);
quest::summonitem($item3) if($item3);
quest::summonitem($item4) if($item4);
return;
}
else
{
# Sealed Letter ID-18817
if($itemcount{18817} == 1)
{
quest::say("This is not good news. I must leave immediately. Here. Take this to Kala.. I mean my father. I found it on the floor of Sir Lucan DLeres quarters. Thanks again, messenger. I got this just in time.");
quest::ding();
# A Tattered Flier ID-18818
quest::summonitem("18818");
# Freeport Militia Faction
quest::faction("105","-1");
# Steel Warriors Faction
quest::faction("311","1");
# Knights of Truth Faction
quest::faction("184","1");
}
}
}
# After this Krazen_Loosh is supposed to spawn but he does not exsist in the DB.
#END of FILE Zone:freportw ID:9135 -- Guard_Alayle
Is it something wrong with the location, the quest file, or anything else? Plz help me out here.
I recently added some quests today and they won't work when I hail the quest NPC, I have them in my quests directory under the server files are. Here is one quest I got off the forums:
Exterminator_Qalantir.pl
############################################
# ZONE: West Freeport (freportw)
# DATABASE: PEQ-Velios
# LAST EDIT DATE: April 5,2005
# VERSION: 2.0
# DEVELOPER: MWMDRAGON
#
# *** NPC INFORMATION ***
#
# NAME: Exterminator_Qalantir
# ID: 9128
# TYPE: Warrior
# RACE: Human
# LEVEL: 30
#
# *** ITEMS GIVEN OR TAKEN ***
#
# Rat Whiskers ID-13071
#
# *** QUESTS INVOLVED IN ***
#
#1 - Exterminate the Vermin (West Freeport)
#
# *** QUESTS AVAILABLE TO ***
#
#1 - All
#
############################################
sub EVENT_SAY
{
if ($text=~/hail/i)
{
quest::say("Pleased to meet you $name, if you are a newcomer to Freeport then you can clearly see we are having quite the rat problem. If you are interested the militia has granted me some coin to reward those that bring me four rat whiskers.")
}
}
sub EVENT_ITEM
{
# Rat Whiskers ID-13071
if ($itemcount{13071} == 4)
{
quest::say("This is good work! I know this isnt much but it is all I can offer you. Thanks for your help!");
quest::ding();
quest::exp(25);
quest::givecash ("1","1","1","0");
}
}
#END of FILE Zone:freportw ID:9128 -- Exterminator_Qalantir
Guard_Alayle.pl
############################################
# ZONE: West Freeport (freportw)
# DATABASE: PEQ-Velious
# LAST EDIT DATE: April 5,2005
# VERSION: 2.0
# DEVELOPER: MWMDRAGON
#
# *** NPC INFORMATION ***
#
# NAME: Guard_Alayle
# ID: 9135
# TYPE: Warrior
# RACE: Freeport guard
# LEVEL: 10
#
# *** ITEMS GIVEN OR TAKEN ***
#
# Sealed Letter ID-18817
# A Tattered Flier ID-18818
#
# *** QUESTS INVOLVED IN ***
#
#1 - Zimel's Blades (Quest for Soulfire)
#
# *** QUESTS AVAILABLE TO ***
#
#1 - Paladin
#
############################################
sub EVENT_SAY
{
if($text=~/Hail/i)
{
quest::say("Greetings. citizen! You should not be in the Militia House. These are restricted grounds. Please leave at once unless you have business here.");
}
if($text=~/truth is good/i && $class == 'Paladin')
{
quest::say("Ssshhh!! Pipe down. The others might hear you. You must have something for me. Kalatrina must have given you something if you serve the Hall of Truth. If you have nothing please leave. You will blow my cover.");
}
}
sub EVENT_ITEM
{
if($class != 'Paladin')
{
quest::say("You have no business handing me this junk.");
quest::summonitem($item1) if($item1);
quest::summonitem($item2) if($item2);
quest::summonitem($item3) if($item3);
quest::summonitem($item4) if($item4);
return;
}
else
{
# Sealed Letter ID-18817
if($itemcount{18817} == 1)
{
quest::say("This is not good news. I must leave immediately. Here. Take this to Kala.. I mean my father. I found it on the floor of Sir Lucan DLeres quarters. Thanks again, messenger. I got this just in time.");
quest::ding();
# A Tattered Flier ID-18818
quest::summonitem("18818");
# Freeport Militia Faction
quest::faction("105","-1");
# Steel Warriors Faction
quest::faction("311","1");
# Knights of Truth Faction
quest::faction("184","1");
}
}
}
# After this Krazen_Loosh is supposed to spawn but he does not exsist in the DB.
#END of FILE Zone:freportw ID:9135 -- Guard_Alayle
Is it something wrong with the location, the quest file, or anything else? Plz help me out here.