Using group functions to get if player is in a group ect...
Can anyone explain to me how this can be done? Basically this is what I have now and it dont work.
Im looking to see if player is in a group, if he is, get the group members and put em each in a variable. Then for each member update a task at the same time. Since the tasks system doesnt have a way to do that. Code:
sub EVENT_SAY |
Look at the bic quest in qinimi on PEQ. I got all the group/raid members and pushed their names to an array. Mainly this portion:
Code:
... |
this will fail if the people are in a raid group. at least it did for me when I played with getting the agnarr port up to work.
|
I haven't heard of this failing. Agnarr port works off of getraid.. but I use this in the qinimi bic raid and it works fine there:
Code:
... |
I will say that the group members must be in zone (not zoning) to catch each one.
|
The Agnarr code in the quest SVN doesn't work right. That's why I was playing with it. It builds the entity list but the raid members are not being moved.
edit to add: Removing the player.pl entirely the clicker still gets ported up so the door code is working just fine, which means it is only the player.pl which is failing. I put a bunch of emotes into the player.pl to verify what it was doing and it would emote back the entire array correctly, but it always stopped when using the movepc command. edit 2: started new thread sorry to derail this one. |
np, this should help me out, i got a guy working with me thats better at coding than me somewhat. I think he can handle this with the help uve given me
|
Is is possible to use
Code:
$pc->quest::updatetaskactivity(504, 1,[1]); with the $pc->? |
Not quite. If you are wanting to go around perl, the client has:
Code:
inline void UpdateTaskActivity(int TaskID, int ActivityID, int Count) if you cast $pc to a client. |
Quote:
|
No prob. Anytime you want someone to look/troubleshoot, just post.
|
Ok still having problems it doesnt trigger if im in a group or solo
Code:
$g = $client->GetGroup(); |
Try this:
Code:
$g = $client->GetGroup(); |
Nope, this is how I have it, i copied what you posted He will do the shout but not execute the group code
Code:
sub EVENT_SAY { |
yeah im lost, if anyone can rewrite this function and make it work, ill love u long time
|
All times are GMT -4. The time now is 07:26 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.