Thread: Q&A Thread
View Single Post
  #9  
Old 09-07-2018, 08:41 AM
Almusious
Fire Beetle
 
Join Date: Sep 2012
Posts: 25
Default

Quote:
Originally Posted by Huppy View Post
Ok, I will give that a shot. I did try using GetClientByName($name) as well as a few other variables, but I will see what happens with your suggestion. Thank You
In your quest::follow is where you try $name he means

You shouldn't have to get the client object, as it is the initiator of EVENT_SAY, so just $client would suffice

Ive always used an ID of a pc/npc, give it a try:

Code:
sub EVENT_SAY {
	if($text=~/hail/i) 
	{
		quest::say("I'm with you $name and following.");
		quest::follow($userid);
    }
}
Reply With Quote