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 07-07-2005, 02:53 PM
Sims
Sarnak
 
Join Date: Jan 2003
Posts: 34
Default Cant figure out what is wrong with this quest, if anyone can help me thank you

sub EVENT_SAY
{
if($text=~/Hail/i)
{
quest::text ("Greetings $name, I bet you are here to collect your armor??");
}
if($text=~/yes/i)
{
quest::text ("Well you must head to greater faydark and bring me back four spiderling silk");
}
sub EVENT_ITEM
{
if ($itemcount{13099}==4)
{
if ($ulevel>3)
{
quest::emote('starts to wave quickly.');
quest::say('congradulation!');
quest::summonitem(25);
quest::summonitem(26);
quest::summonitem(27);
quest::summonitem(2;
quest::summonitem(29);
quest::summonitem(30);
quest::summonitem(100);
quest::summonitem(1000);
}
}
else
{
quest::say('You will have to be more skilled to complete that quest.');
quest::summonitem(13099);
quest::summonitem(13099);
quest::summonitem(13099);
quest::summonitem(13099);
}
}
}
Reply With Quote
  #2  
Old 07-08-2005, 02:39 AM
mystic414's Avatar
mystic414
Hill Giant
 
Join Date: Sep 2004
Posts: 100
Default

First, you have sub EVENT ITEM placed within the sub EVENT SAY routine. They need to be kept seperate. Also, I don't know why you're using quest::text. quest::say is better. And I'm pretty sure it requires a double-quote " rather than a single-quote ' to work.
Code:
sub EVENT_SAY {
  if($text=~/Hail/i) {
    quest::say ("Greetings $name, I bet you are here to collect your armor??");
  }
  if($text=~/yes/i) {
    quest::say ("Well you must head to greater faydark and bring me back four spiderling silk");
  }
}

sub EVENT_ITEM {
  if ($itemcount{13099}==4) {
    if ($ulevel>3) {
      quest::emote('starts to wave quickly.');
      quest::say('congradulation!');
      quest::summonitem(25);
      quest::summonitem(26);
      quest::summonitem(27);
      quest::summonitem(28);
      quest::summonitem(29);
      quest::summonitem(30);
      quest::summonitem(100);
      quest::summonitem(1000);
    }
  }
  else {
    quest::say("You will have to be more skilled to complete that quest.");
    quest::summonitem(13099);
    quest::summonitem(13099);
    quest::summonitem(13099);
    quest::summonitem(13099);
  }
}
__________________
The PEQ Database Editor is available!
Edit Loot, NPCs, Spawns, Merchants, Factions, NPC Spell Lists, and Tradeskills with ease!
Check it out!
Reply With Quote
  #3  
Old 07-13-2005, 05:38 PM
x-scythe
Discordant
 
Join Date: Jun 2003
Posts: 449
Default

just a suggestion, but you should also try organizing your quest like how mystics is
makes it much easier to read =)
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 10:21 PM.


 

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