[Quest API] Add Time String to Seconds Method to Perl/Lua. (#2580)

* [Quest API] Add Time String to Seconds Method to Perl/Lua.

# Perl
- Add `quest::timetoseconds(time_string)`.

# Lua
- Add `eq.time_to_seconds(time_string)`.

# Notes
- Allows operators to use this method in place of hardcoded values like `3600`.

* Remove unused method.
This commit is contained in:
Alex King
2022-11-26 19:28:21 -05:00
committed by GitHub
parent ea9a02bec4
commit f7ae5850f0
8 changed files with 53 additions and 42 deletions
-4
View File
@@ -3576,10 +3576,6 @@ EQ::ItemInstance *QuestManager::CreateItem(uint32 item_id, int16 charges, uint32
return nullptr;
}
std::string QuestManager::secondstotime(int duration) {
return Strings::SecondsToTime(duration);
}
std::string QuestManager::gethexcolorcode(std::string color_name) {
for (auto color : html_colors) {