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-20-2009, 01:07 AM
Neiv
Hill Giant
 
Join Date: May 2008
Location: Colorado
Posts: 238
Default

As a start, two of your "ulevel"s have no $ before them.

You may want to try reordering your "ulevel" statements to reflect a descending order, as follows:

Code:
sub EVENT_SAY
	{
 	if (($text=~/hail/i) && ($ulevel >= 35))
 		{
  quest::say("Greetings, $name. I am Explorer Ganedin. I have traveled far and wide to many ancient places. Some of the most interested places have been the [dungeons].");
 		}
	elsif (($text=~/hail/i)&&($ulevel >= 1))
 		{
  		quest::say("I am sorry, $name, but you are not yet experienced enough to traverse the dungeons. Come back when you are more experienced and I will have more information.");
 		}
 	if (($text=~/dungeons/i)&&(ulevel >=35))
 		{
  quest::say("There are many dungeons that I can take you to. The more experienced you are, however, the more options you have. I can take you to the following places: [Takish], [Mistmoore], [Guk], [Rujarkian], or if you are feeling up to it, [Miragul's].");
 		}
	}
Something else you could try is to remove the double parens. Instead of . . .
if (($text=~/hail/i) && ($ulevel >= 35))
Try . . .
if ($text=~/hail/i && $ulevel >= 35)
Reply With Quote
  #2  
Old 02-20-2009, 10:24 AM
Joetuul
Sarnak
 
Join Date: Oct 2008
Location: AZ
Posts: 58
Default

I think this is what you are looking for... This is what I use for travel to these two zones (Abysmal Sea and Natimbi). But this can be used for what I assume you want to do.


Code:
sub EVENT_SAY {
   if($text =~ /Hail/i)
   {
   quest::say("Greetings $name, The people of Taelosia need your help!!! If you would like to help the people of Taelosia, I can send you to the [abysmal sea] or to [Natimbi].");
   }


   if($text=~/abysmal sea/i)
   {
     if ($ulevel >= 50)
        {
        quest::say("Safe travels");
        quest::movepc(279, 50,-159,140,48.8);
        }
     elsif ($ulevel <= 49)
        {
        $client->Message(13, "Sorry, You are not experienced enough to travel to the Abysmal Sea.");
        }
   }
   if($text=~/Natimbi/i)
   {
     if ($ulevel >= 50)
        {
        quest::say("Safe travels");
        quest::movepc(280,-1592,-718,247,4);
        }
     elsif ($ulevel <= 49)
        {
        $client->Message(13, "Sorry, You are not experienced enough to travel to the Natimbi.");
        }
   }
}
__________________
~Tuul
Mithaniel Marr
http://mithmarr.power-rpg.com/
Reply With Quote
Reply

Thread Tools
Display Modes

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 12:24 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3