GetTimeUntilCanBeTrained

From ESOUI Wiki

Jump to: navigation, search

This function returns the amount of milliseconds that must pass before the player can train a riding skill at a stable again, as well as the total wait duration.

Return values

timeMs
The amount of milliseconds that must pass until the player can increase their Carry Capacity, their mount's Stamina, or their mount's Movement Speed at a stable.
totalDurationMs
The total amount of time that the player has to wait. If you were to call this function on the exact millisecond that the player trains at a stable, then this would equal timeMs.

Example

local remaining, total = GetTimeUntilCanBeTrained()
if remaining > 0 then
   local percent = math.floor((total - remaining) / total * 100)
   d(LocalizeString("<<1>>% of your wait time has passed.", percentage))
end

External links

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox