Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 12-14-2010, 03:08 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

If you added the task to the task table but did not restart your server, issuing the GM command #task reloadall will make it available.

Also to address your other point about rewards, the task system currently is designed for single player tasks.

Shared Tasks, which reward a group of players are not currently implemented.

You could reward members of the group, by having the task RewardMethod set to 2 and using something like this:
Code:
sub EVENT_TASK_STAGE_COMPLETE
{
        if(($task_id == 1000) && ($activity_id == 0))
        {
                $g = $client->GetGroup();

                if(!$g)
                {
                        quest::say("You are not in a group, just rewarding you.");
                        $client->SummonItem(5500);      # SSoY
                }
                else
                {
                        for($i = 0; $i < 6; ++$i)
                        {
                                $c = $g->GetMember($i);
                               
                                if($c)
                                {
                                        $name = $c->GetName();
                                        quest::say("Rewarding group member $name");
                                        $c->SummonItem(5500);
                                }
                        }
                }
        }
}
in the player.pl of the zone the final activity takes place in (e.g. quests\pofire\player.pl), but if two or more players in the group have the task active, then all group members will get rewarded two or more times using that code.
Reply With Quote
 


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 12:10 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