mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
Add Optional Enforce Task Level Requirement
Affected: quest::assigntask $client->AssignTask This is to allow those task level requirements in DB to be used, optionally. It defaults to do not enforce (translated: no change for current servers), but can be set with an additional flag to both commands (see below). The LUA bit was added thanks to help from demonstar55. quest::assigntask(703); # works quest::assigntask(703, 1); # denies user $client->AssignTask(701, $npc->GetID()); # works $client->AssignTask(701, $npc->GetID(), 1); # denies user
This commit is contained in:
+3
-3
@@ -2200,11 +2200,11 @@ void QuestManager::taskexploredarea(int exploreid) {
|
||||
initiator->UpdateTasksOnExplore(exploreid);
|
||||
}
|
||||
|
||||
void QuestManager::assigntask(int taskid) {
|
||||
void QuestManager::assigntask(int taskid, bool enforce_level_requirement) {
|
||||
QuestManagerCurrentQuestVars();
|
||||
|
||||
if(RuleB(TaskSystem, EnableTaskSystem) && initiator && owner)
|
||||
initiator->AssignTask(taskid, owner->GetID());
|
||||
if (RuleB(TaskSystem, EnableTaskSystem) && initiator && owner)
|
||||
initiator->AssignTask(taskid, owner->GetID(), enforce_level_requirement);
|
||||
}
|
||||
|
||||
void QuestManager::failtask(int taskid) {
|
||||
|
||||
Reference in New Issue
Block a user