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 06-11-2009, 01:21 PM
Vainglory69
Fire Beetle
 
Join Date: Jun 2009
Location: Mi
Posts: 6
Talking Little help please :)

Any ideas why the following will not work?
Wrapping the statements in double (( )) I get the hail text but no items,
Using single ( ) I get no response at all... and I am at my wits end right now with this.

Code:
########(1.0 Rewarder)
####Zone:PoK
########

sub EVENT_SAY
  {
if($text=~/Hail/i) && ($ulevel <=46)
{
quest::say("Sorry young $class, I am afraid you are too young still, please return to me when you are level 46.")
}
elsif($text=~/Hail/i) && ($ulevel >=46)
  {
  quest::say("Greetings $name, do you seek your first [epic] weapon for yourself and or bots?");
  }
 if ($text=~/epic/i) && ($ulevel >=46)
  {
  quest::say("As a reward for the great deeds you have done I will reward you with a weapon of great power, please tell me which class you need the item for.");
  }
}
sub EVENT_ITEM 
{ 
  if ($text=~/berserker/i) && ($ulevel >=46)
    {
      quest::summonitem (68299);
      quest::ding ();
    }
  elsif ($text=~/cleric/i) && ($ulevel >=46)
    {
      quest::summonitem (5532);
      quest::ding ();
   }
  elsif ($text=~/druid/i) && ($ulevel >=46)
    {
      quest::summonitem (20490);
      quest::ding ();
    }
  elsif ($text=~/magician/i) && ($ulevel >=46)
    {
      quest::summonitem (28034);
      quest::ding ();
    }
  elsif ($text=~/necromancer/i) && ($ulevel >=46)
    {
      quest::summonitem (20544);
      quest::ding ();
    }
  elsif ($text=~/enchanter/i) && ($ulevel >=46)
	{
      quest::summonitem (10650);
      quest::ding ();
    }
  elsif ($text=~/monk/i) && ($ulevel >=46)
     {
      quest::summonitem (1683);
      quest::ding ();
    }
  elsif ($text=~/beastlord/i) && ($ulevel >=46)
      {
      quest::summonitem (8495);
      quest::summonitem (8496);
      quest::ding ();
    }
  elsif ($text=~/rogue/i) && ($ulevel >=46)
      {
      quest::summonitem (11057);
      quest::ding ();
    }  
  elsif ($text=~/ranger/i) && ($ulevel >=46)
      {
      quest::summonitem (20487);
      quest::summonitem (20488);
      quest::ding ();
    }  
  elsif ($text=~/bard/i) && ($ulevel >=46)
      {
      quest::summonitem (20542);
      quest::ding ();
    }  
  elsif ($text=~/shaman/i) && ($ulevel >=46)
      {
      quest::summonitem (10651);
      quest::ding ();
    }
  elsif ($text=~/warrior/i) && ($ulevel >=46)
      {
      quest::summonitem (10908);
      quest::summonitem (17859);
      quest::ding ();
    }
  elsif ($text=~/wizard/i) && ($ulevel >=46)
      {
      quest::summonitem (14341);
      quest::ding ();
    }
  elsif ($text=~/shadowknight/i) && ($ulevel >=46)
      {
      quest::summonitem (14383);
      quest::ding ();
    }
  elsif ($text=~/paladin/i) && ($ulevel >=46)
      {
      quest::summonitem (10099);
      quest::ding ();
	}
}
Reply With Quote
  #2  
Old 06-11-2009, 01:37 PM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

check for missing ;

I allready see one missing after

quest::say("Sorry young $class, I am afraid you are too young still, please return to me when you are level 46.")


and yes double () around insides of ifs and elses

if (($text=~/Hail/i) && ($ulevel <=46))
Reply With Quote
  #3  
Old 06-11-2009, 02:04 PM
Capheus
Hill Giant
 
Join Date: Apr 2008
Location: Milwaukee
Posts: 141
Default

Try this

Code:
########(1.0 Rewarder)
####Zone:PoK
########

sub EVENT_SAY
{
 
  if ($ulevel>=46)
    	{

  	if ($text=~/Hail/i)
  		{
  		quest::say("Greetings $name, do you seek your first [epic] weapon for yourself and or bots?");
  		}

	if ($text=~/epic/i)
  		{
  		quest::say("As a reward for the great deeds you have done I will reward you with a weapon of great power, please tell me which class you need the item for.");
  		}

	if ($text=~/berserker/i)
    		{
      		quest::summonitem (68299);
     		quest::ding();
    		}

  	if ($text=~/cleric/i)
    		{
     	 	quest::summonitem (5532);
      		quest::ding();
  	 	}

 	if ($text=~/druid/i)
   		{
      		quest::summonitem (20490);
      		quest::ding();
    		}

  	if ($text=~/magician/i)
    		{
     		quest::summonitem (28034);
      		quest::ding();
    		}

  	if ($text=~/necromancer/i)
    		{
      		quest::summonitem (20544);
      		quest::ding();
   		 }

  	if ($text=~/enchanter/i)
		{
      		quest::summonitem (10650);
      		quest::ding();
    		}

  	if ($text=~/monk/i)
     		{
      		quest::summonitem (1683);
      		quest::ding();
    		}

  	if ($text=~/beastlord/i)
      		{
      		quest::summonitem (8495);
      		quest::summonitem (8496);
      		quest::ding();
    		}

  	if ($text=~/rogue/i)
      		{
      		quest::summonitem (11057);
      		quest::ding();
   		}  

  	if ($text=~/ranger/i)
      		{
      		quest::summonitem (20487);
      		quest::summonitem (20488);
      		quest::ding();
    		} 
 
  	if ($text=~/bard/i)
     		 {
      		quest::summonitem (20542);
      		quest::ding();
    		}
  
 	if ($text=~/shaman/i)
      		{
      		quest::summonitem (10651);
     		 quest::ding();
    		}

  	if ($text=~/warrior/i)
      		{
      		quest::summonitem (10908);
      		quest::summonitem (17859);
      		quest::ding();
    		}

  	if ($text=~/wizard/i)
      		{
      		quest::summonitem (14341);
      		quest::ding();
   		 }

  	if ($text=~/shadowknight/i)
      		{
      		quest::summonitem (14383);
      		quest::ding();
    		}

  	if ($text=~/paladin/i)
      		{
     		quest::summonitem (10099);
      		quest::ding();
		}

	}

  elsif (($text=~/Hail/i) && ($ulevel<=46))
	{
	quest::say("Sorry young $class, I am afraid you are too young still, please return to me when you are level 46.");
	}
}
Reply With Quote
  #4  
Old 06-11-2009, 02:14 PM
Capheus
Hill Giant
 
Join Date: Apr 2008
Location: Milwaukee
Posts: 141
Default

Forgot to mention. sub EVENT_ITEM is only needed when someone if giving an item to the NPC.
Reply With Quote
  #5  
Old 06-11-2009, 02:20 PM
Vainglory69
Fire Beetle
 
Join Date: Jun 2009
Location: Mi
Posts: 6
Default

Grrr, ok, I corrected the "((" issues and added the missing ;'s and would only get the text but no item, maybe that is what the deal was.

Your script worked perfectly! And I thank you for the help. New to perl but I am trying to learn

Thanks guys!
Reply With Quote
  #6  
Old 06-11-2009, 03:07 PM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

Out of curiousity, why do you not check $class to determine the item to summon as opposed to $text? If I am a rogue and I say "berserker" I get the berserker epic? Why would you do that? There are some circumstances where this might be appropriate, but for the most part I would think you'd want to give an appropriate epic to the appropriate class based on the class.
Reply With Quote
  #7  
Old 06-11-2009, 03:28 PM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

Quote:
Originally Posted by Andrew80k View Post
Out of curiousity, why do you not check $class to determine the item to summon as opposed to $text? If I am a rogue and I say "berserker" I get the berserker epic? Why would you do that? There are some circumstances where this might be appropriate, but for the most part I would think you'd want to give an appropriate epic to the appropriate class based on the class.
cuase he may want to give it to his bot perhaps


Quote:
quest::say("Greetings $name, do you seek your first [epic] weapon for yourself and or bots?");
Reply With Quote
  #8  
Old 06-11-2009, 03:39 PM
Vainglory69
Fire Beetle
 
Join Date: Jun 2009
Location: Mi
Posts: 6
Default

Hehe, yes, no other way to get epics for the bot army
Reply With Quote
  #9  
Old 06-11-2009, 03:55 PM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

And what benefits do the bots get from them? Do weapons on bots proc? I know that you can't use the clickies on bot items, so other than maybe special procs, such as the Ranger epic that procs a slow, what is there to gain from giving them the epic? "It looks cool" is an acceptable answer, like I said I'm just curious. Some folks come up with some really cool ideas for customization and I often am curious as to what purpose they want to do this or that. For the most part there are MUCH better weapons than the epics so I never even considered giving my bots epics.
Reply With Quote
  #10  
Old 06-11-2009, 03:57 PM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

Quote:
Originally Posted by ChaosSlayerZ View Post
cuase he may want to give it to his bot perhaps
Oh, I didn't read the text of the script, I just looked at the syntax.... :\
Reply With Quote
  #11  
Old 06-11-2009, 04:27 PM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

Quote:
Originally Posted by Andrew80k View Post
And what benefits do the bots get from them? Do weapons on bots proc? I know that you can't use the clickies on bot items, so other than maybe special procs, such as the Ranger epic that procs a slow, what is there to gain from giving them the epic? "It looks cool" is an acceptable answer, like I said I'm just curious. Some folks come up with some really cool ideas for customization and I often am curious as to what purpose they want to do this or that. For the most part there are MUCH better weapons than the epics so I never even considered giving my bots epics.
what if his epic customized to proc something VERY nasty ?
Reply With Quote
  #12  
Old 06-11-2009, 04:37 PM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

Yeah, like Illusion: Troll!

*shudder*

- Shendare
Reply With Quote
  #13  
Old 06-11-2009, 04:42 PM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

Quote:
Originally Posted by ChaosSlayerZ View Post
what if his epic customized to proc something VERY nasty ?
Then that would be a customized weapon and maybe an epic defined on his server, but not the same as a traditional, commonly defined epic from live or PEQ. You can call it whatever you wish, which is the great thing about the emu, but again, there are much better weapons out there and, again, I'm just curious. You are speculating as to what he is doing with them, I'd like to hear from him, since he is the one doing it.
Reply With Quote
  #14  
Old 06-11-2009, 05:50 PM
Vainglory69
Fire Beetle
 
Join Date: Jun 2009
Location: Mi
Posts: 6
Default

Just to have another option, some of the epic 1 procs are nice in the 40's early 50's, yes there are some better things around but again, its an option and I like to have options available which is why I love the Emu so

Even if me or another gets bored and wants a epic'd bot army, hey, it's possible

Now to work out epic 1.5 and 2.0, I want them to be a bit harder than a hand out but not quite as involved as release...

Thanks again for the help guys.
Reply With Quote
  #15  
Old 06-11-2009, 05:51 PM
Vainglory69
Fire Beetle
 
Join Date: Jun 2009
Location: Mi
Posts: 6
Default

Quote:
Originally Posted by Shendare View Post
Yeah, like Illusion: Troll!

*shudder*

- Shendare
LOL, that sounds like a Epic Fail, not a epic weapon
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 06:13 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