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 02-21-2008, 01:57 AM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default Var issue in this quest

Everything in this quest works except for the $name variable in one of the hand in events. All I get is $name, instead of the char's name. I've seen it used like this in other quests so I'm not certain what the issue is. Can someone take a look and see if they can tell me? Thanks.

Also any tips on this that I may be doing that aren't the way they are normally done is welcome as well.

Thanks.
Code:
sub EVENT_SAY {
 if($text =~ /Hail/i) {
	#quest::say('Hello. I am the guild master.');
        quest::say('Hail, Adventurer! I hope you are enjoying your time in Surefall Glade. You must be careful when leaving the Jaggedpine. There have been many report of [Sabertooths] attacking travelers.');
 }
 if($text =~ /Sabertooths/i) {
        quest::say('The gnolls of Blackburrow are called Sabertooths. They have been seen in force on a regular basis. They are surely up to something. We have even heard rumors of a [pact] between Qeynos merchants and the dogs.');
 }
 if($text =~ /pact/i) {
        quest::say('Sources have come forward to tell of a pact between a merchant of Qeynos and the Sabertooths. It all has to do with blades and brew. We hear that a meeting will occur soon, somewhere in the Qeynos Hills at night. Do not fear, we shall find a brave ranger to [halt this meeting].');
 }
 if($text =~ /halt this meeting/i) {
        quest::say('Very good of you. Stop this meeting by killing the gnoll in Qeynos Hills. We hear that he shall be there in the late evening, and that his name is Furgoot or Furgy, something like that. Find him and kill him. I want his head. And if you should find any evidence of who the merchant is, be sure to hand it over to me.');
 }
 if ($text =~ /assist in the extermination of the gnoll brewers/i){
        quest::say('Within the bowels of Blackburrow, our scouts have reported seeing the gnoll brewers.  You will go and brave the lair of the dogs and slay these brewers in order to cease the flow of Blackburrow Stout.  During your mission, should you find any Blackburrow casks, you must return them to me.  When you have recovered three of these casks, I shall award you the [Cloak of Jaggedpine].');
 }
 if ($text =~ /Cloak of Jaggedpine/i) {
       quest::say('The Cloak of Jaggedpine was made for those loyal to the ways of the forest.  It is enchanted to increase one\'s dexterity.  It is awarded to those who have aided in our cause to rid the land of those vile dogs called the Sabertooths.  Should you earn one, be sure to hold onto it - you never know when we may alter the enchantments placed upon the cloak.');
 }
}

sub EVENT_ITEM {
  #do all other handins first with plugin, then let it do disciplines
  if(plugin::check_handin(\%itemcount,13309=>1)) {
     quest::say('So, I see you rid the hills of the beast. Good work! I have a reward for you. I hope it will be useful. I am afraid this gnoll\'s death will not halt the alliance between the two. I shall require your services to [assist in the extermination of the gnoll brewers].');
     quest::faction(265,10);
     quest::faction(159,10);
     quest::faction(279,-30);
     quest::faction(135,10);
     quest::summonitem(2140);
     quest::exp(1000);

  } elsif (plugin::check_handin(\%itemcount,17970=>3)) {
     quest::say('Excellent!  Ridding the area of those foul beasts will certainly slow down whatever it is they are planning.  Here is the Cloak of Jaggedpine I promised, wear it well and proudly!');
     quest::summonitem(2915);
     quest::givecash(1,2,3,4);
     quest::faction(265,10);
     quest::faction(159,10);
     quest::faction(279,-30);
     quest::faction(135,10);
     quest::exp(1000);

  } elsif (plugin::check_handin(\%itemcount,18800=>1)) {
     quest::say('Fine Work, $name. Hmmm. It seems this needs taking care of. Take this note to the Captain of the City Guard in Qeynos. His name is Captain Tillin. He will have to attend to this matter. Also.. Let me see the gnoll\'s head. I must know you killed him. Be safe, my friend. I am sure that whoever this McNeal is, he was simply a lackey. Whoever he works for is most likely going to be looking for you. Watch your back in Qeynos.');
     quest::summonitem(18800);
     quest::givecash(1,2,3,4);
     quest::faction(265,10);
     quest::faction(159,10);
     quest::faction(279,-30);
     quest::faction(135,10);
     quest::exp(1000);
  }    
  plugin::try_tome_handins(\%itemcount, $class, 'Ranger');
  plugin::return_items(\%itemcount);
}
Reply With Quote
  #2  
Old 02-21-2008, 02:07 AM
Congdar
Developer
 
Join Date: Jul 2007
Location: my own little world
Posts: 751
Default

could it be you are using single quote instead of double quotes for your text? All the perl scripts I have downloaded from cvs use double quotes.
Reply With Quote
  #3  
Old 02-21-2008, 04:35 AM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

Quote:
Originally Posted by Congdar View Post
could it be you are using single quote instead of double quotes for your text? All the perl scripts I have downloaded from cvs use double quotes.
could be, and I did think of that, but all the ones I've seen in the qrg directory use single quotes, so that's what I did. I haven't done an exhaustive search of the other scripts, but I've looked at a few. Interestingly enough, there is a script in that directory, the Sureshot one, that uses it much the same way, and it works. I'll give it a try later and see...Thanks.
Reply With Quote
  #4  
Old 02-21-2008, 08:01 PM
Striat
Sarnak
 
Join Date: Aug 2006
Posts: 60
Default

wanted to confirm that he is right. You will need to change it to " for the $name to display correctly based on the way it is currently written.
Reply With Quote
  #5  
Old 02-22-2008, 04:46 AM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

Quote:
Originally Posted by Striat View Post
wanted to confirm that he is right. You will need to change it to " for the $name to display correctly based on the way it is currently written.
Yep. Did that and it worked great. Thanks.
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 09:20 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