[Commands] Add #task complete Command (#3711)

# Notes
- `#task complete [Task ID]` allows operators to complete an entire task without updating individual activities.
This commit is contained in:
Alex King
2023-11-26 00:27:08 -05:00
committed by GitHub
parent 692a90f3f0
commit f8c3c03185
4 changed files with 141 additions and 64 deletions
+1
View File
@@ -84,6 +84,7 @@ public:
bool CanAcceptNewTask(Client* client, int task_id, int npc_entity_id) const;
bool HasExploreTask(Client* client) const;
void EndSharedTask(Client* client, bool send_fail);
bool CompleteTask(Client *c, uint32 task_id);
inline bool HasFreeTaskSlot() { return m_active_task.task_id == TASKSLOTEMPTY; }