mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
[Quest API] Add GetTimers() and GetPausedTimers() to Perl/Lua (#4965)
* [Quest API] Add GetTimers() and GetPausedTimers() to Perl/Lua * Push
This commit is contained in:
@@ -4667,3 +4667,33 @@ bool QuestManager::handin(std::map<std::string, uint32> required) {
|
||||
|
||||
return owner->CastToNPC()->CheckHandin(initiator, {}, required, {});
|
||||
}
|
||||
|
||||
std::vector<std::string> QuestManager::GetPausedTimers(Mob* m)
|
||||
{
|
||||
std::vector<std::string> v;
|
||||
|
||||
if (m && !PTimerList.empty()) {
|
||||
for (auto e = PTimerList.begin(); e != PTimerList.end(); e++) {
|
||||
if (e->owner == m) {
|
||||
v.emplace_back(e->name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return v;
|
||||
}
|
||||
|
||||
std::vector<std::string> QuestManager::GetTimers(Mob* m)
|
||||
{
|
||||
std::vector<std::string> v;
|
||||
|
||||
if (m && !QTimerList.empty()) {
|
||||
for (auto e = QTimerList.begin(); e != QTimerList.end(); e++) {
|
||||
if (e->mob == m) {
|
||||
v.emplace_back(e->name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return v;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user