Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

Reply
 
Thread Tools Display Modes
  #1  
Old 10-23-2004, 05:52 PM
Sarepean
Discordant
 
Join Date: Sep 2004
Posts: 253
Default Quest Problem

I didn't exactly know where to post this, but since there have been other problems with similar things, I figure that a fix in this topic is practically a Howto (do it correctly).

I have my entire server working, but I got hooked on making quests tonight. However, first quest I tried to make has me pretty stumped. I'm trying to recreate the Bootstrutter quest with a few additions of my own. Here's my code (I've shortened it and shortened it since I can't get it to EVENT_ITEM). It doesn't process anything after the rare trade if($text) ... =( So, I assume that the problem is somewhere or in the "Shadowed Rapier" line, but I just can't find it.

Any help is very appreciated.


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's Boots/i){quest::say("Jorneyman's 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 Cyclops do march the land. Long have they lived and crafted the Ring of the Ancients have they. I must have one and you shall go and fetch one for me.");}
if ($text=~ /Fabled Boots/i){quest::say("The Fabled Journeyman's Boots?! Fashion those I can--- I shall need a [Shimmering Orb], [Journeyman's Boots], and a [Fabled Ring].");}
if ($text=~ /Fabled Ring/i){quest::say("Exists an oracle in the Ocean of Tears that can take this ring into the past and make it a thing of legends--- with time, magic multiplies.");}
}
sub EVENT_ITEM
{
if($itemcount{12268} && $itemcount{12268} == 1)
{
quest::say("I see you wish to join us in Discord! Welcome! By turning your back on the protection of Order you are now open to many more opportunities for glory and power. Remember that you can now be harmed by others who have also heard the call of Discord.");
quest::exp(125);
}
}


Thanks,
-Sarepean
Reply With Quote
  #2  
Old 10-23-2004, 06:15 PM
Xothin
Sarnak
 
Join Date: Oct 2004
Posts: 68
Default

Code:
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=~ /Journeymans Boots/i)
	{
		quest::say("Jorneyman's 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 Cyclops do march the land. Long have they lived and crafted the Ring of the Ancients have they. I must have one and you shall go and fetch one for me.");
	} 
	if($text=~ /Fabled Boots/i)
	{
		quest::say("The Fabled Journeyman's Boots?! Fashion those I can--- I shall need a [Shimmering Orb], [Journeyman's Boots], and a [Fabled Ring].");
	} 
	if($text=~ /Fabled Ring/i)
	{
		quest::say("Exists an oracle in the Ocean of Tears that can take this ring into the past and make it a thing of legends--- with time, magic multiplies.");
	} 
} 
sub EVENT_ITEM 
{ 
	if($itemcount{12268}==1) 
	{ 
		quest::say("I see you wish to join us in Discord! Welcome! By turning your back on the protection of Order you are now open to many more opportunities for glory and power. Remember that you can now be harmed by others who have also heard the call of Discord."); 
		quest::exp(125); 
	} 
}
I think it has something to do with the nasty little ' you put in the journeymans boots. ^.^

Also, not sure if the single quotes caused a problem or not, so just remove them out. ^.^
Reply With Quote
  #3  
Old 10-24-2004, 02:53 AM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

Quote:
I think it has something to do with the nasty little ' you put in the journeymans boots. ^.^

Also, not sure if the single quotes caused a problem or not, so just remove them out. ^.^
Naw, you only have to worry about quotes, not apostrophes.

Also, I didn't look over the entire quest because it was in the wrong forum. Please dont post this in the tutorials section.........
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
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:34 AM.


 

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