Group Tasks
Hola!
Preface: Wasn't sure where to post this, so, when with a general area! Making some tasks for group missions, so, when I'm assigning these tasks via NPC I'm using the string: Code:
plugin::AssignTask("group",275,($npc->GetID())); What I'm wondering is am I able to somehow make the task updates universally for the group? I have some explores that have to be individually explored(which isn't a big deal. Although, right now I'm trying to put a collect portion in that is updated for the entire group when a group member loots the item. Currently when I loot the item it only updates the task for the person who looted it. Is there a way to do this? In addition, is there anyway to have the task be assigned to everyone in the group regardless of if they're in the same zone or not? Tried putting qglobal to 1 and that didn't do it. Thanks |
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. |
Quote:
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? |
This is one method, there are other methods.
Code:
$Group_ID = $client->GetGroup()->GetID(); |
Quote:
|
Live has shared tasks for this, do we have these working (I don't know that code well enough...)
|
Quote:
|
Live shared tasks are not implemented in emu.
|
Been playing with this for a bit and still haven't been able to get anything to work.
I don't understand enough of what's going on in what you posted previously Kayen in order to work in what I'm trying to get done. I've tried this, and I know it's specific to this ID, I was just trying to see if I could get it to work. Also, yes, 4001 was the GroupID assigned to the group my guys were in while testing it. Code:
sub EVENT_LOOT { Code:
sub EVENT_LOOT { Code:
my $GroupID = $client->GetGroup(); Code:
##In the player.pl Any help is appreciated. Or, if someone could help break down the snippet of code that Kayen posted, if I understood it better I could probably get it to work for what I want. |
I was missing an if statement in the code I initially posted.
Code:
//Define the variable '$Group_ID' by getting the client's (ie person getting the primary task update) actual group ID. THIS is your groups ID. |
Quote:
|
Sounds good Akka, wasn't sure on your time frame with that. I'll work on just getting my group mission layout set up with signals etc and worry about putting a task over top of it once I see your exp system.
I appreciate the heads up. |
Quote:
http://wiki.eqemulator.org/p?The_Exp...(Perl_Version) I plan on detailing it out more here when I wake up |
Quote:
Of course it's one of many things yet to implement... |
Quote:
|
All times are GMT -4. The time now is 10:27 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.