WoW:API RequestTimePlayed: Difference between revisions

m
Move page script moved page API RequestTimePlayed to WoW:API RequestTimePlayed without leaving a redirect
No edit summary
 
m (Move page script moved page API RequestTimePlayed to WoW: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);
Anonymous user