EQEmulator Forums

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

Zeice 02-22-2009 03:24 PM

Task Question
 
I'm trying to setup a task where you have to loot a groundspawn to get credit for part of the task, sort of like a gather quest in a number of other newer MMOs. However it's not working right. I used the loot activity but that doesn't do anything, I've tried a few others but they aren't updating the task either. I'm assuming something like this would have to be done through a perl script to update the activity, but I'm not sure which quest command to use to check that a player looted a ground spawn, or looted an item. Any help would be much appreciated.

Derision 02-22-2009 03:34 PM

I think you would use Player Quests for this:

http://www.eqemulator.net/wiki/wikka...rQuestExamples

Something along the lines of:

Code:

sub EVENT_PLAYER_PICKUP {

        if($picked_up_id == 12345) {
                if(quest::istaskactivityactive(taskid, activityid)) {
                        quest::updatetaskactivity(taskid, activityid);
                }
        }
}


Zeice 02-22-2009 03:39 PM

That worked like a charm. Thanks.


All times are GMT -4. The time now is 07:53 AM.

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