EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   need another set of eyes... (https://www.eqemulator.org/forums/showthread.php?t=32074)

melkor_41 09-10-2010 10:24 AM

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.

melkor_41 09-10-2010 11:15 AM

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); 
  }


}


melkor_41 09-10-2010 11:38 AM

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); 
  }


}


joligario 09-10-2010 12:04 PM

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.

melkor_41 09-10-2010 12:06 PM

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.

melkor_41 09-10-2010 12:32 PM

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); 
  }


}


joligario 09-10-2010 12:49 PM

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.


All times are GMT -4. The time now is 10:34 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.