wowpedia
Main Menu


Returns true if the account is considered "tired" for players on Chinese realms.

isTired = NoPlayTime()

Returns

isTired
boolean - 1 if the account is "tired", nil if not. See details below for clarification. Returns nil for EU and US accounts.

Example

Based on the official function, changed a bit to output the text in the chat rather than the tooltip on your avatar:

if PartialPlayTime() then
   print(string.format(PLAYTIME_TIRED, REQUIRED_REST_HOURS - math.floor(GetBillingTimeRested()/60)))
elseif NoPlayTime() then
   print(string.format(PLAYTIME_UNHEALTHY, REQUIRED_REST_HOURS - math.floor(GetBillingTimeRested()/60)))
else
   print("You are not limited by PartialPlayTime nor NoPlayTime.")
end

Details

See also