View Single Post
  #6  
Old 01-14-2009, 08:55 PM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

I'm not sure MoveGroup is an actual function in the Client class. However, there is a TeleportGroup function in the Group class. I would think you could do something like this:

Code:
	my $list_check = 0;
	#You may need to increase 2000 below if you have alot of mobs in the zone
	for ($list_check = 0; $list_check < 2000; $list_check++) 
	{ 
		$client_search = $entity_list->GetClientByID($list_check);
		if ($client_search) 
		{
			quest::say("I found client $client_search");
			$client_search->GetGroup()->TeleportGroup($mob,152,0,0,-31);
		}
	}
Hope this helps.
__________________
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