WoW:API RequestTimePlayed: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Move page script moved page API RequestTimePlayed to API RequestTimePlayed without leaving a redirect)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
Returns a system message of two lines of data.
{{wowapi}}
line1: Total time played
Send a request to the server to get an update of the time played.
line2: Time played this level


Example:
The [[Events/Communication#TIME_PLAYED_MSG|TIME_PLAYED_MSG]] event will be fired when the answer has arrived.
 
/script CHAT_DEFAULT_FRAME:AddMessage(RequestTimePlayed(),1,1,1);

Latest revision as of 04:47, 15 August 2023

WoW API < RequestTimePlayed

Send a request to the server to get an update of the time played.

The TIME_PLAYED_MSG event will be fired when the answer has arrived.