PDA

View Full Version : Task Question


Zeice
02-22-2009, 03:24 PM
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.php?wakka=QuestPlayerQuestExamples

Something along the lines of:


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.