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-09-2006, 09:10 AM
Thristam
Hill Giant
 
Join Date: Jun 2006
Posts: 117
Default hasten bootstrutter

This quest didnt work out of the box for me when i first used it. I would give em all the items and he would just swallow them and give nothing back. here is what got corrected that made it work for me. (BIG thanks to Cripp for helping me.)
Code:
#Hasten Bootstrutter, RatheMTN 50188
#Quest: JBoots
#Status: COMPLETE

sub EVENT_SAY
{

 if ($text=~ /Hail/i)
  {
  quest::say("Stopped I have done. Greet you I will. What business do we have? Hmm? Speak up!!");
  }

 if ($text=~ /Journeyman Boots/i)
  {
  quest::say("Journeyman Boots are what you seek? Ha!! I have those upon my feet and disinigrate will they if my life is taken. Extra pair have I and [rare trade] can we make.");
  }

 if ($text=~ /Rare Trade/i)
  {
  quest::say("I call for three things and Journeyman Boots are yours. I call for a [Shadowed Rapier], call for the [Ring of the Ancients] and call for Gold,.. 3250 Gold Coins!! This the trade that I call.");
  }

 if ($text=~ /Shadowed Rapier/i)
  {
  quest::say("Shadowed Men, foes to all, have appeared. Many lands do they walk. Invisible are they, but items they wield can be seen. Seek them out and return to me a Shadowed Rapier. Return it with haste before 'poof' goes the rapier!! No time to camp have you.");
  }

 if ($text=~ /Ring of the Ancients/i)
  {
  quest::say("Ancient cyclopes do march the land.  Long have they lived and crafted the rings of the ancients.  I must have one and you shall go and fetch one for me.  Seek the lands of the oldest cyclops clans.  Seek the plains. seek the island in tears and search the dunes for there is one who is last.  His clan was blown from the sands.");
  }
}

sub EVENT_ITEM
{
if(($itemcount{12268}) && ($itemcount{7100} == 1)  && ($gold == 3250))
  {
  if($itemcount{12268} == 1 && $itemcount{7100} == 1){
  quest::say("Trade we shall not!!  When I hold in my hands the ring of the ancients. a shadowed rapier and 3250 gold coin. then you shall wear the journeyman boots.");
  quest::say("The time to trade has come!! I am now rich and you are now fast. Take the Journeyman Boots and run like the wind.");
  quest::exp(1250);
  quest::summonitem(2300);
  }
}
Reply With Quote
  #2  
Old 07-09-2006, 11:56 AM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

if this is a bug in the PEQ quest pack, it is best reported on the PEQ forums.
Reply With Quote
  #3  
Old 07-11-2006, 08:12 PM
x-scythe
Discordant
 
Join Date: Jun 2003
Posts: 449
Default

havent done anything perl or quest related for a while, but wouldnt it be written like this?

Code:
sub EVENT_ITEM
{
if(($itemcount{12268} == 1) && ($itemcount{7100} == 1)  &&amp ($gold == 3250))
  {
  quest::say("The time to trade has come!! I am now rich and you are now fast. Take the Journeyman Boots and run like the wind.");
  quest::exp(1250);
  quest::summonitem(2300);
  }
if(($itemcount{12268} != 1) || ($itemcount{7100} != 1) ||  {$gold != 3250}))
  {
    quest::say("Trade we shall not!!  When I hold in my hands the ring of the ancients. a shadowed rapier and 3250 gold coin. then you shall wear the journeyman boots.");
   }
}
theres prolly some errors in this...some of the syntax seems to have changed since i was last here and its been like 3 years since ive done anything with perl heh...
im pretty sure you do need to correct the bottom part of the quest, the "yes trade" and "no trade" need to be in two different statements like ive done above. Error free of course =P


edit::
FNW - sorry if this is a PEQ thing, wasnt sure if it was or not so i just decided to reply here where i knew he would prolly check back. and sorry for the rustiness =P
Reply With Quote
  #4  
Old 07-12-2006, 05:08 AM
Cripp's Avatar
Cripp
Discordant
 
Join Date: Oct 2003
Location: The Shire
Posts: 474
Default

Code:
sub EVENT_ITEM
{
if(($itemcount{12268}) && ($itemcount{7100} == 1)  && ($gold == 3250))
  {
  quest::say("The time to trade has come!! I am now rich and you are now fast. Take the Journeyman Boots and run like the wind.");
  quest::exp(1250);
  quest::summonitem(2300);
  }
else { 
   plugin::return_items(\%itemcount);
   quest::say("Trade we shall not!!  When I hold in my hands the ring of the ancients. a shadowed rapier and 3250 gold coin. then you shall wear the journeyman boots."); }
}
this is probably how i would have done it
__________________
Nug Blazers - ServerOP / founder
^^comming... later!

www.nugblazers.com
Reply With Quote
  #5  
Old 07-12-2006, 10:11 AM
x-scythe
Discordant
 
Join Date: Jun 2003
Posts: 449
Default

ya, thats a lot cleaner and more efficient than mine =P
Reply With Quote
  #6  
Old 07-14-2006, 06:09 AM
Thristam
Hill Giant
 
Join Date: Jun 2006
Posts: 117
Default

cool, thanks guys!
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 04:33 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