mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
[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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user