WoW:API GetBattleFieldInstanceRunTime: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Move page script moved page API GetBattleFieldInstanceRunTime to API GetBattleFieldInstanceRunTime without leaving a redirect) |
(No difference)
|
Latest revision as of 04:45, 15 August 2023
This is no longer a part of the World of Warcraft API.
|
← WoW API < GetBattleFieldInstanceRunTime
Returns the time in ms since the current battlefield has opened.
local battlefieldRunTime = GetBattleFieldInstanceRunTime()
Parameters[edit]
Returns[edit]
- battlefieldRunTime (number) - the time in ms since the current battlefield has opened or zero if you are not in any battleground.
Details[edit]
- Internal Implementation in WoW Version 3.2.0
Whenever you enter a battleground, WoW retrieves the start-time from the server and saves a DWORD-value at 0x1129334 containing the time between system startup of the user and battleground start.
This function simply gets the time between system startup and now and substracts that saved value from it. The windows client calls GetTickCount() to get those times, see: MSDN Windows API reference
Notes[edit]
- Removed in patch 3.2.0