Add gettaskname(task_id) to Perl/Lua.

This commit is contained in:
Alex
2020-03-31 22:24:09 -04:00
parent 963735e7dd
commit 4712b56078
6 changed files with 46 additions and 0 deletions
+10
View File
@@ -2441,6 +2441,16 @@ bool QuestManager::istaskappropriate(int task) {
return false;
}
std::string QuestManager::gettaskname(uint32 task_id) {
QuestManagerCurrentQuestVars();
if (RuleB(TaskSystem, EnableTaskSystem)) {
return taskmanager->GetTaskName(task_id);
}
return std::string();
}
void QuestManager::clearspawntimers() {
if(!zone)
return;