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-22-2005, 02:39 AM
Richardo
Banned
 
Join Date: Oct 2003
Location: Mattmecks Basement
Posts: 546
Default

You dont need all this plugin crap bud.. Here is a nice little default quest for you... Btw, syntax may be incorrect, I am very tired right now hehe..



sub EVENT_SAY
{
if($text=~/Hail/i)
quest::say("Hello $name");
}

sub EVENT_DEATH{
quest::me("falls to the ground.");
}

sub EVENT_ATTACK{
quest::me("charges at %name ready to attack.");
}
}
}
Reply With Quote
  #2  
Old 02-22-2005, 03:18 AM
RangerDown
Demi-God
 
Join Date: Mar 2004
Posts: 1,066
Default

$name, not %name

lose the extra two } at the end

(Edit: and enclose the
Code:
quest::say("Hello $name");
line in {} )


other than that, that quest is good to go.
__________________
<idleRPG> Rogean ate a plate of discounted, day-old sushi. This terrible calamity has slowed them 0 days, 15:13:51 from level 48.

Last edited by RangerDown; 02-22-2005 at 11:20 AM.. Reason: Found another thing to point out
Reply With Quote
  #3  
Old 02-22-2005, 06:35 AM
solid11's Avatar
solid11
Discordant
 
Join Date: Dec 2004
Posts: 266
Default

Taking what you both say, is this right then?

sub EVENT_SAY
{
if($text=~/Hail/i)
{quest::say("Hello $name");}
}

sub EVENT_DEATH{
quest::me("falls to the ground.");
}

sub EVENT_ATTACK{
quest::me("charges at $name ready to attack.");
}

and wouldn't you enclose the other two quest lines also if you do the hello $name one? Thanks for the help all.
Reply With Quote
  #4  
Old 02-22-2005, 08:04 AM
RangerDown
Demi-God
 
Join Date: Mar 2004
Posts: 1,066
Default

No, you wouldn't. If you don't know why, then you really need to brush up on your perl knowledge before you take on the task of writing a bunch of quests.
__________________
<idleRPG> Rogean ate a plate of discounted, day-old sushi. This terrible calamity has slowed them 0 days, 15:13:51 from level 48.
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 04:26 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3