Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

Reply
 
Thread Tools Display Modes
  #1  
Old 04-17-2014, 09:23 PM
Kayen
Developer
 
Join Date: Mar 2009
Location: -
Posts: 228
Default

If you want to update all group members at once.

You need to basically get all the clients in the zone with the same groupid and update their tasks WHEN the primary person completing the task gets their update.

Cross zone updates and assignments are even more tricky which can be done with custom database tables and cross zone signalling code or other methods using qglobals.

The amount of code needed to accomplish either is beyond the scope of this post.

Akkadius has some tools for this he will be releasing shortly though.
Reply With Quote
  #2  
Old 04-17-2014, 09:27 PM
Esildor
Hill Giant
 
Join Date: Feb 2010
Posts: 207
Default

Quote:
Originally Posted by Kayen View Post
If you want to update all group members at once.

You need to basically get all the clients in the zone with the same groupid and update their tasks WHEN the primary person completing the task gets their update.

Cross zone updates and assignments are even more tricky which can be done with custom database tables and cross zone signalling code or other methods using qglobals.

The amount of code needed to accomplish either is beyond the scope of this post.

Akkadius has some tools for this he will be releasing shortly though.
Same group ID?

Is it safe to assume that everyone in the same group will have the same group ID?(Probably a silly question, but, haven't dealt with this yet)

If so, would I then do a player.pl file or something and when a task activity is updated have it grab like Getnpc->groupid(or something) and update everyone with that group ID?
Reply With Quote
  #3  
Old 04-17-2014, 10:12 PM
Kayen
Developer
 
Join Date: Mar 2009
Location: -
Posts: 228
Default

This is one method, there are other methods.

Code:
$Group_ID = $client->GetGroup()->GetID();
		
my @clientlist = $entity_list->GetClientList();
	
foreach $cur (@clientlist) 
{
	if ($cur) 
	{
               if ($Group_ID)
			{
				if ($cur->GetGroup())
				{
					$Client_GroupID = $cur->GetGroup()->GetID();
                                       {
                                        Shout("We are in the same group");
					}
				}
}}}}
Reply With Quote
  #4  
Old 04-17-2014, 10:16 PM
Esildor
Hill Giant
 
Join Date: Feb 2010
Posts: 207
Default

Quote:
Originally Posted by Kayen View Post
This is one method, there are other methods.

Code:
$Group_ID = $client->GetGroup()->GetID();
		
my @clientlist = $entity_list->GetClientList();
	
foreach $cur (@clientlist) 
{
	if ($cur) 
	{
               if ($Group_ID)
			{
				if ($cur->GetGroup())
				{
					$Client_GroupID = $cur->GetGroup()->GetID();
                                       {
                                        Shout("We are in the same group");
					}
				}
}}}}
Thanks abunch, I'm going to play a bit of Smite with my bud for an hour or so then play with this and see if I can get it to work. I've got some ideas for how I'll do it, and, this will definitely help.
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 06:58 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