EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Perl Issue. (https://www.eqemulator.org/forums/showthread.php?t=36341)

Zamthos 01-25-2013 11:14 PM

Perl Issue.
 
My NPC is not handing out tasks like I want him to, he sends the text before, but no task selector, any one know how to fix this?

Code:

sub EVENT_SAY
{

        my $task = quest::saylink("task", 1);

       
        if($text=~/Hail/i)
        {
                plugin::Whisper("Hello, $name, would you like a Tier 3 $task?");
                if(quest::istaskactivityactive(271,1))
                {
                        quest::say("Good job, here, take 50 Medallions for your hard work!");
                        quest::updatetaskactivity(271,2,1);
                        quest::summonitem(1118,50);
                        quest::ding();
                }
                elsif(quest::istaskactivityactive(272,1))
                {
                        quest::say("Good job, here, take 10 Medallions for your hard work!");
                        quest::updatetaskactivity(272,2,1);
                        quest::summonitem(1118,10);
                        quest::ding();
                }
        }
       
        elsif($text=~/Task/i)
        {
                plugin::Whisper("Take your pick, come back to me when you have completed your task.");
                quest::taskselector(271, 272);
        }
}


Zamthos 01-26-2013 01:04 AM

Would be nice if someone could help with this, really need this to work for players. Thanks. ;)

Zamthos 01-26-2013 01:22 AM

Sorry for the triple post. D: Didn't want to make a new topic, but there are no Loot rights as well? You can kill a mob and a person not in your group can loot it with no wait time, anyone have thoughts on this or the Perl? Thanks! ~Harbinger Zamthos

Kayen 01-26-2013 01:26 AM

I ran this on my server and it worked fine.

I suspect you may have an issue in your task table.

Zamthos 01-26-2013 02:16 AM

All right.


Tasks:
Code:

272        0        Boss Clear        Kill all the bosses and recieve 50 medallions        Medallions        1118        0        0        0        284        0        0        1
271        0        T3 Task        Kill these mobs, and recieve medallions.        Medallions        1118        0        0        0        284        0        0        1

Activities:
Code:

272        2        2        4        Commander Alex Tavish                        999259        0        1        0        284        0
272        1        1        2                        Destroy the 8 normal bosses within this zone for 20 medallions.        204        1        8        0        284        0
271        2        2        4        Commander Alex Tavish                        999259        0        1        0        284        0
271        1        1        2                        End Zun`Muram Votal's life.        284080        0        1        0        284        0


Zamthos 01-26-2013 02:25 AM

Added Tasks and Activities to previous post if that helps any.

Zamthos 01-26-2013 03:31 AM

So I don't see anything wrong. D:

Derision 01-26-2013 06:23 AM

http://www.eqemulator.net/wiki/wikka...SystemDBTables
Quote:

activityid
The activities for a task must be numbered consecutively from 0 through to the maximum number of activities per task. There should be no gaps or the server will ignore the task. (i.e. having a task with activities numbered, 1,2,3,7,9 and 10 will not work. If you have a task with 6 activities, the activity records MUST have activityids of 0, 1, 2, 3, 4 and 5.


All times are GMT -4. The time now is 12:58 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.