Thread: NPC heading..
View Single Post
  #7  
Old 04-22-2011, 11:27 AM
deaddraqear
Sarnak
 
Join Date: May 2008
Location: california
Posts: 45
Default

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)
        }
    }

Last edited by deaddraqear; 04-22-2011 at 11:34 AM.. Reason: clarity
Reply With Quote