diff --git a/changelog.txt b/changelog.txt index f5d1803d0..85428ca82 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,12 @@ EQEMu Changelog (Started on Sept 24, 2003 15:50) ------------------------------------------------------- +== 07/15/2015 == +Hateborne: Added optional ability to enforce task level requirements in perl and lua via an added, optional parameter to $client->AssignTask and quest::assigntask. + Use cases: + quest::assigntask(703); # this still assigns the task as normal, no functional change + quest::assigntask(703, 1); # this will assign the task, provided the character meets the db-stored level requirements + $client->AssignTask(703, $npc->GetID()); # still assigns the task as normal, no functional change + $client->AssignTask(703, $npc->GetID(), 1); # this will assign the task, provided the character meets the db-stored level requirements == 07/06/2015 == mackal: Implement Triple Attack Skill Parses showed about rand(1000) for the chance, may need more investigating diff --git a/zone/tasks.cpp b/zone/tasks.cpp index 537cdefed..a5cdeb5a8 100644 --- a/zone/tasks.cpp +++ b/zone/tasks.cpp @@ -901,10 +901,8 @@ int TaskManager::GetTaskMinLevel(int TaskID) { return Tasks[TaskID]->MinLevel; } - else - { - return -1; - } + + return -1; } int TaskManager::GetTaskMaxLevel(int TaskID) @@ -913,10 +911,8 @@ int TaskManager::GetTaskMaxLevel(int TaskID) { return Tasks[TaskID]->MaxLevel; } - else - { - return -1; - } + + return -1; } void TaskManager::TaskSetSelector(Client *c, ClientTaskState *state, Mob *mob, int TaskSetID) {