Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 04-23-2011, 08:46 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Quote:
Originally Posted by deaddraqear View Post
Thx for input guys.. =) The quest::moveto does work, I was just wondering if there was a way to do it without going back into .pl and add it in (glad I really looked into it when I did, only had 30ish npc's to edit)

Using 30 seconds myself, but on Live it may have varied per npc but dont quote me on that.. Tried to find any quest npc's on zones that I havent touched yet, and no quest npc that I found, would return to original heading after hailed... Mobs with pathing would obviously return to path tho

Still playing with perl and "learning" so I wasnt aware of the methods you posted Trev.. mine are a bit sloppier and tedious to setup.. #loc of mob (with no interaction of course) then..

Portion of code.. With any possible dialogue outcome resulting in the quest::starttimer
Code:
sub EVENT_TIMER
	{
	if($timer eq "heading")
		{
		quest::moveto(-142.9,104.7,105.3,102.1);
		}
	}

sub EVENT_SAY
	{
	
	if($text=~/hail/i)
		{
		if($class eq 'Warrior' || $class eq 'Cleric' || $class eq 'Paladin' || $class eq 'Shadowknight' || $class eq 'Ranger')
			{
			if(quest::istaskactive(26))
				{
				$client->Message(7, "$NPCName whispers, 'I am sorry $name, but I cannot help you any further.'");
				quest::settimer("heading", 30);
				}
			else
				{
				$client->Message(7, "$NPCName whispers, 'Hello $name. I can craft you a set of $plate identical to the ones some of us wear, if you gather the materials.'");
				quest::settimer("heading", 30);
				}
			}
		}
       }
Heres another question.. Is there a way to start timer easier then what I have done? Possibly a...
Code:
sub EVENT_SAY
   {
   quest::settimer("heading", 30);
       {
        if($text=~/hail/i)
        }
    }
Yeah, you can simplify it a bit by doing this:

Code:
sub EVENT_TIMER
{
	if($timer eq "heading")
	{
		my $SpawnHeading = $npc->GetSpawnPointH();
		quest::moveto($x, $y, $z, $SpawnHeading);
	}
}

sub EVENT_SAY
{
	
	if($text=~/hail/i)
	{
		if($class eq 'Warrior' || $class eq 'Cleric' || $class eq 'Paladin' || $class eq 'Shadowknight' || $class eq 'Ranger')
		{
			if(quest::istaskactive(26))
			{
				$client->Message(7, "$NPCName whispers, 'I am sorry $name, but I cannot help you any further.'");
			}
			else
			{
				$client->Message(7, "$NPCName whispers, 'Hello $name. I can craft you a set of $plate identical to the ones some of us wear, if you gather the materials.'");
			}
		}
	}
	quest::settimer("heading", 30);
}
That way, you don't need to get the exact loc of each NPC, this timer should work for all without needing to adjust it. Then, you just add in the the settimer once at the end (or beginning) of EVENT_SAY and you are all set.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
 

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 11:59 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