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 09-10-2010, 10:24 AM
melkor_41
Fire Beetle
 
Join Date: Jul 2010
Posts: 25
Default need another set of eyes...

What am i missing? im sure its a small typo or something...

Code:
sub EVENT_ITEM  {

 

if (plugin::check_handin(\%itemcount, 18767 => 1)) {

quest::say("Very well then, take this and get to work.");
    quest::summonitem(13516);
    quest::exp(500);  
  }


}
he takes the item.. and does nothing. i take that back... his hat dissapears... but thats beside the point.
Reply With Quote
  #2  
Old 09-10-2010, 11:15 AM
melkor_41
Fire Beetle
 
Join Date: Jul 2010
Posts: 25
Default

the npc is Mater, i have verified that he does not have # or anything in front of his name

he is npc id 67019 so i did a save as on the file as 67019.pl

he does not respond to hail or anything else in the script.

here is his complete code, i only added the turnin section

Code:
sub EVENT_SAY { 
if ($text=~/hail/i) && ($class eq 'Rogue') {
  quest::say("Ah, welcome!  We could use some fresh blood around here. The name's Mater, and I run this little outfit.  Work hard for me, and I will reward you well. Cross me, and you'll find yourself buried under the mine cap. Once you are ready to begin your training please make sure that you see Crovsar Dirkbringer , he can assist you in developing your hunting and gathering skills. Return to me when you have become more experienced in our art, I will be able to further instruct you on how to progress through your early ranks.
}
else
if ($text=~/Hail/i){
quest::say("Welcome to the mines of Kaladim!"); 
  }
}

sub EVENT_ITEM  {

 

if (plugin::check_handin(\%itemcount, 18767 => 1)) {

quest::say("Very well then, take this and get to work.");
    quest::summonitem(13516);
    quest::exp(500);  
  }


}
Reply With Quote
  #3  
Old 09-10-2010, 11:38 AM
melkor_41
Fire Beetle
 
Join Date: Jul 2010
Posts: 25
Default

looks like the issue isnt in the area i wrote...

I tried to fix it up a little better...

Code:
sub EVENT_SAY 
{ 
if ($text=~/hail/i) && ($class eq 'Rogue') {
  quest::say("Ah, welcome!  We could use some fresh blood around here. 
  The name's Mater, and I run this little outfit.  
  Work hard for me, and I will reward you well. 
  Cross me, and you'll find yourself buried under the mine cap. 
  Once you are ready to begin your training please make sure that you see Crovsar Dirkbringer
  He can assist you in developing your hunting and gathering skills. 
  Return to me when you have become more experienced in our art. 
  I will be able to further instruct you on how to progress through your early ranks.");
  
}
else
if ($text=~/Hail/i){
quest::say("Welcome to the mines of Kaladim!"); 
  }
}

sub EVENT_ITEM  

 {

if (plugin::check_handin(\%itemcount, 18767 => 1)) {

quest::say("Very well then, take this and get to work.");
    quest::summonitem(13516);
    quest::exp(500);  
  }


}
Reply With Quote
  #4  
Old 09-10-2010, 12:04 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,498
Default

I touched up Mater's code on PEQ. You can pull it from there if you want it including some updated code. Then you can add your custom handin to it. Either way, it looks like it is your first "if" condition. Oh, and the else right after that. And your newest code looks like line breaks were added, so you'll want to remove those before testing too.
Reply With Quote
  #5  
Old 09-10-2010, 12:06 PM
melkor_41
Fire Beetle
 
Join Date: Jul 2010
Posts: 25
Default

how do i access your quests on peq?

this handin is the missing quest code for the newbie tunic turnin so if we get it working, you may want to add it to yours as well.

I am on a quest myself of fixing all the broken newbie armor/tunic/weapon quests in the game.
Reply With Quote
  #6  
Old 09-10-2010, 12:32 PM
melkor_41
Fire Beetle
 
Join Date: Jul 2010
Posts: 25
Default

thanks everyone, we got it working with some help.


here is the complete code for Mater in kaladimb to have both his text AND newbie turn in working.

Code:
sub EVENT_SAY 
{ 
if (($text=~/hail/i) && ($class eq 'Rogue')) {
  quest::say("Ah, welcome!  We could use some fresh blood around here. 
  The name's Mater, and I run this little outfit.  
  Work hard for me, and I will reward you well. 
  Cross me, and you'll find yourself buried under the mine cap. 
  Once you are ready to begin your training please make sure that you see Crovsar Dirkbringer
  He can assist you in developing your hunting and gathering skills. 
  Return to me when you have become more experienced in our art. 
  I will be able to further instruct you on how to progress through your early ranks.");
  
}
elsif($text=~/Hail/i){
quest::say("Welcome to the mines of Kaladim!"); 
  }
}

sub EVENT_ITEM  

 {

if (plugin::check_handin(\%itemcount, 18767 => 1)) {

quest::say("Very well then, take this and get to work.");
    quest::summonitem(13516);
    quest::exp(500);  
  }


}
Reply With Quote
  #7  
Old 09-10-2010, 12:49 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,498
Default

Ah, excellent. I will add the newbie tunic piece to our quest repository. Thanks!

FYI: To get to PEQ quests, you can go to http://code.google.com/p/projecteqquests/

EDIT: Looks like even I had missed some brackets. Everything should be updated on the SVN tomorrow including your addition.
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 03:13 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3