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 01-31-2009, 08:43 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default Very simple quest

Ok I am doing a very basic quest, and the quest guy isn't responding to hails or giving the item for the turn in. Any suggestions?


Code:
#Gives a belt
sub EVENT_SAY
{

if ($text =~/hail/i) {
  quest::say ("Shhhh, $name. They can't know I'm not an orc. I am a [spy] sent here by the Soldiers of Tunare.");  }
if ($text =~/spy/i {  
  quest::say ("Aye, I was sent to learn who was leading these orcs. From my studies I have concluded it is a powerful orc named Emperor [Crush].");  }
if ($text =~/Crush/i {  
  quest::say ("If you kill him, I can go home. I'll let you have my belt that makes me appear to be an orc since I won't need it anymore. Bring me his Dwarven Ringmail Tunic to prove he is dead");  }
}




sub EVENT_ITEM
{

if($itemcount{3301} >= 1)
   {
quest::say("Finally! Kelethin will be a lot safer without Crush around.");
quest::summonitem(1449);
quest::exp(30000); 
   }
}
Reply With Quote
  #2  
Old 01-31-2009, 10:56 PM
Neiv
Hill Giant
 
Join Date: May 2008
Location: Colorado
Posts: 238
Default

For one thing, both

if ($text =~/spy/i

and

if ($text =~/Crush/i

. . . are missing closing parentheses
Reply With Quote
  #3  
Old 01-31-2009, 11:42 PM
Yeormom
Discordant
 
Join Date: Apr 2004
Location: 127.0.0.1
Posts: 402
Default

I'd suggest using an editor which supports Perl syntax modeling so you catch all the simple non-logical mistakes when writing quests, such as Notepad++. Alternatively, you can use one of the many web based perl validators.
__________________
Yeorwned
Bane of Life [Custom Classic/PvP]
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 06:45 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