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-19-2005, 12:29 PM
solid11's Avatar
solid11
Discordant
 
Join Date: Dec 2004
Posts: 266
Default default.pl

I'm using the peq_quests pack which I renamed to quests in the EQEMU folder. I want all mobs that don't have a quest to say the default thing. Do I move the default.pl file into the quests folder, or does the default.pl go into every zone folder? I have it just in the quests folder now but all the other mobs won't say anything when I hail them. BTW the other quests work great.
Reply With Quote
  #2  
Old 02-19-2005, 03:11 PM
RangerDown
Demi-God
 
Join Date: Mar 2004
Posts: 1,066
Default

just the quest folder
__________________
<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
  #3  
Old 02-21-2005, 11:52 AM
solid11's Avatar
solid11
Discordant
 
Join Date: Dec 2004
Posts: 266
Default

I put the default.pl in the c:\eqemu\quest folder but when I hail any other mob they just turn to me and don't say anything. But the other quests work, any ideas?

Here is the default.pl that is recommended for download on malignus' tutorial


sub EVENT_SAY{
$plugin::debug && quest::say("[debug]in qstdefault::EVENT_SAY");
#plugin::showvars();
plugin::dispatch();
}

sub EVENT_ITEM{
plugin::dispatch();
}

sub EVENT_DEATH{
plugin::dispatch();
}

sub EVENT_ATTACK{
plugin::dispatch();
}

sub EVENT_SPAWN{
plugin::dispatch();
}

sub EVENT_TIMER{
plugin::dispatch();
}

sub EVENT_SLAY{
plugin::dispatch();
}

sub EVENT_WAYPOINT{
plugin::dispatch();
}


Is that right?
Thanks

Last edited by solid11; 02-21-2005 at 07:55 PM..
Reply With Quote
  #4  
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
  #5  
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
  #6  
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
  #7  
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


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 10:30 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