RSS

Пятница, 26.04.2024, 13:17
Главная » WoW API » API Функции » Поля сражений »

GetBattlefieldPortExpiration

[ править ]
Returns the time left on a battleground or arena invitation.
[клоны]
Returns the time left on a battleground or arena invitation.

Signature:
Code
expiration = GetBattlefieldPortExpiration(index)

Arguments:
  • index - Index of a battleground/arena queue the player has joined (between 1 and MAX_BATTLEFIELD_QUEUES) (number)

Returns:
  • expiration - Time remaining before the player's invitation to enter the battleground/arena expires (in seconds); 0 if the player has not yet been invited to enter or is already in the battleground/arena instance (number)

Examples:
-- Print the time left for all active battleground queues
for index=1, MAX_BATTLEFIELD_QUEUES do
local status, name = GetBattlefieldStatus(index)

if status == "confirm" then
print(format(
"Your invitation to %s will expire in %d seconds.",
name, GetBattlefieldPortExpiration(index)
))
end

end

Также смотрите: Поля сражений , Battlefield functions
Ссылки: http://wowprogramming.com/docs/api/GetBattlefieldPortExpiration