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 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
  #2  
Old 01-15-2009, 12:38 AM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

ok this really sucks none of the above worked

i found client Client=SCALAR(0x4ac3008 ) and cast them to client, witch outputs this: Client=SCALAR(0x4ac2ce4)

i found client Client=SCALAR(0x4ac3008 ), but he are not grouped.

that's what he said from the last one in Tevs post.. all of them said something close to that but none moved me.

space after 8 ) o keep from face
Reply With Quote
  #3  
Old 01-15-2009, 12:57 AM
MNWatchdog
Hill Giant
 
Join Date: Feb 2006
Posts: 179
Default

Couldnt you just have the script have the group member cast a custom group teleport spell with a huge AE range?
Reply With Quote
  #4  
Old 01-15-2009, 01:00 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Well, I use a similar script for one of my events, but it didn't actually do anything with the character, it just got information about them (locs). I don't see why it wouldn't work to move them though, unless MovePC is broken. To verify, you should be able to try something like this:

Code:
sub EVENT_SAY {

  if ($text =~/hail/i) {
    quest::say("I am going to try to move you to Nexus with MovePC.");
    $client->MovePC(152, 0, 0, -31);
  }

}
If that doesn't work, then MovePC is the issue. If it does work, then I don't understand why it isn't working in the other script. It obviously has the client already, so it should be able to do stuff to them.

Also, just to mention it, we have some similar stuff setup on Storm Haven already. It is a bit tricky, but we do it using qglobals. You just set a time length for each member of the group via a qglobal with an expire time on it. Then, you have an NPC that runs the client check above and have it check their qglobals to see if they still have the global. If not, it just does a $client_search->Gate(); and sends them home :P
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!

Last edited by trevius; 01-15-2009 at 09:06 AM..
Reply With Quote
  #5  
Old 01-15-2009, 01:14 AM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

prob with that is gae would keep them in the zone.. here going to be bound there so if they die the will not leave the zone.. so i have to send them back and rebind them in the right place.

let me try just moving npc and see if that works.
Reply With Quote
  #6  
Old 01-15-2009, 01:25 AM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

if ($text =~/port/i)
{
$client->MovePC(3,-4.8,8.4,0.9);
}

does nothing that really sucks
Reply With Quote
  #7  
Old 01-15-2009, 01:29 AM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

sad day even
Code:
if ($text =~/port/i)
{
$client->GetGroup()->TeleportGroup($mob,3,-4.8,8.4,0.9);
}
does nothing
Reply With Quote
  #8  
Old 01-15-2009, 01:39 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

It wouldn't hurt to try these in the script:

quest::movepc(zoneid,x,y,z) - Moves the user that triggered the Event to the provided zone and loc.
quest::movegrp(zoneid,x,y,z) - Moves the user's Group that triggered the Event to the provided zone and loc.

I don't know if they can work right from quest objects getting the client, but it may be worth a shot just to see.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
Reply

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:02 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