mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
[Tasks] Send active elements in task select packet (#4051)
Only the first element was being serialized to show the start zone of tasks. This was resulting in a blank description for tasks that only have element descriptions. Live sends all initial active elements for the task when sending this packet. Any bracket text with these elements as a requirement will be appended to the description.
This commit is contained in:
@@ -238,6 +238,17 @@ bool TaskManager::LoadTasks(int single_task)
|
||||
}
|
||||
}
|
||||
|
||||
// store initial active element ids for select window
|
||||
if (ad->req_activity_id < 0 && ad->step <= task_data->selector_step)
|
||||
{
|
||||
if (ad->step < task_data->selector_step)
|
||||
{
|
||||
task_data->selector_step = ad->step;
|
||||
task_data->selector_ids.clear();
|
||||
}
|
||||
task_data->selector_ids.push_back(activity_id);
|
||||
}
|
||||
|
||||
LogTasksDetail(
|
||||
"(Activity) task_id [{}] activity_id [{}] slot [{}] activity_type [{}] goal_method [{}] goal_count [{}] zones [{}]"
|
||||
" target_name [{}] item_list [{}] skill_list [{}] spell_list [{}] description_override [{}]",
|
||||
|
||||
Reference in New Issue
Block a user