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 10-27-2008, 02:33 PM
nilbog
Hill Giant
 
Join Date: Nov 2007
Posts: 197
Default sir lucan ?

ok so i've been working on making sir lucan function on my server..

1st version is sir_lucan_dlere, responds to hails etc. when he dies, sir_lucan_d`lere spawns. when the 2nd version(undead) spawns, i want it to be aggro on the PCs which killed lucan, but despawn if not engaged for a 5 minute period of time.

i have so far for 1st sir_lucan_dlere

Code:
sub EVENT_SAY
{ 

if($text=~/Hail/i)
{
quest::say("Hail. citizen!  I am very busy. I do not have time to speak with you.  If you have any complaints. please direct them to City Hall.  Unless. of course. you have some personal business in which I might be interested.");
}

sub EVENT_ATTACK
{
quest::say("Let your death be a warning to all who dare oppose the Freeport Militia!");
quest::say("Die. dog!!"); }
}

sub EVENT_DEATH
{

my $x;
my $y;
my $z;
my $h;

$x = $npc->GetX();
$y = $npc->GetY();
$z = $npc->GetZ();
$h = $npc->GetHeading();


quest::say("You shall never get my testimony. I shall fight you from the grave!! Ha Ha Ha!! You cannot stop the undead!! Foolish mortal!! Your foul deeds have earned my contempt. ");
quest::spawn2(9018,0,0,$x+1,$y+1,$z,$h);

}

for the 2nd sir_lucan_d`lere (undead) i have

Code:
sub EVENT_SPAWN
	{
		quest::settimer("depop",300);
	}


sub EVENT_TIMER   {

	if($timer eq "depop")  {

		quest::stoptimer("depop");
		quest::depop();
		}
	}

The first script works great, and spawns the undead lucan. The second script doesn't work at all..

any advice on how to get the depop timer to function, and possibly make the undead version spawn with aggro towards those who killed the live version?
Reply With Quote
  #2  
Old 10-27-2008, 02:53 PM
So_1337
Dragon
 
Join Date: May 2006
Location: Cincinnati, OH
Posts: 689
Default

Find NPC #9018 (the undead version of Lucan) and change its faction to be KOS in some form or another. You could do KOS to all, or set it just on the Freeport Militia faction like the live version of Lucan.

As for the depop script, it looks fine from here. Not sure why it would not be working.
Reply With Quote
  #3  
Old 10-27-2008, 03:08 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

You have an extra closing bracket in your EVENT_ATTACK block. and missing one in your EVENT_SAY block.
Reply With Quote
  #4  
Old 10-27-2008, 03:11 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

Name your 2nd script file 9018.pl
Reply With Quote
  #5  
Old 10-27-2008, 03:12 PM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

You might want to use the NPC ID for the name of the 2nd quest file instead of his actual name, since the backtick (`) might cause some issues. You might also want to add in some quest::shout's to find out what's parsing & what's not.
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote
  #6  
Old 11-07-2008, 01:06 PM
nilbog
Hill Giant
 
Join Date: Nov 2007
Posts: 197
Default

i took the advice of adding quest shouts for parsing as well as changing the .pl to the NPC ID #. I'm guessing the (`) character was my issue, it is working fine!

thanks for the help! paladins rejoice.
Reply With Quote
  #7  
Old 11-07-2008, 03:07 PM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

No, it is better to use sir_lucan_d-lere.pl for the file name.
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 07: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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3