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 05-30-2005, 02:32 AM
scott42086
Fire Beetle
 
Join Date: Nov 2004
Posts: 2
Default starting gear quest needs help

this quest is not working i am having trouble with it, i have gone over it a few times and could use some input please.


subEVENT_SAY{

if($text=~"Hail/i")

{

quest::say("Hello $name I see you are a $class Of norrath Do you wish to recieve your gear to vanquish your foes??");

}

if($text=~"Yes/i")
{
if($class == 'Warrior')
{
quest::summonitem("13572");
}

if($class == 'Cleric')
{
quest::summonitem("13572");
}

if($class == 'Berzerker')
{
quest::summonitem("13572");
}

if($class == 'Paladin')
{
quest::summonitem("13572");
}

if($class == 'Shadowknight')
{
quest::summonitem("13572");
}

if($class == 'Druid')
{
quest::summonitem("13572");
}
if($class == 'Monk')
{
quest::summonitem("13572");
}
if($class == 'Bard')
{
quest::summonitem("13572");
}
if($class == 'Beastlord')
{
quest::summonitem("13572");
}
if($class == 'Ranger')
{
quest::summonitem("13572");
}

if($class == 'Magician')
{
quest::summonitem("13572");
}

if($class == 'Enchanter')

{
quest::summonitem("13572");
}

if($class == 'Wizard')
{
quest::summonitem("13572");
}

if($class == 'Shaman')
{
quest::summonitem("13572");
}
}
Reply With Quote
  #2  
Old 05-30-2005, 04:28 AM
sirreality
Fire Beetle
 
Join Date: Feb 2005
Posts: 14
Default

Quote:
if($text=~"Hail/i")
Should be:
if($text=~/Hail/i)

Quote:
if($class == 'Berzerker')
Equality operators for text are not the same as for numbers. Should be:
if($class eq 'Berzerker')

See here for additional information on Perl operators: http://www.unix.org.ua/orelly/perl/prog3/ch01_05.htm

Also, it looks like you are missing a closing brace at the end, needed to close the "sub EVENT_SAY" block.
Reply With Quote
  #3  
Old 05-30-2005, 04:49 AM
scott42086
Fire Beetle
 
Join Date: Nov 2004
Posts: 2
Default ok will try it

thanks for the help i will give those things a shot and let you all know.

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 02:52 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