WoW API: CanGrantLevel

Revision as of 13:04, 14 August 2008 by WoWWiki>Vladinator (New page: {{wowapi}} __NOTOC__ <!-- Describe the purpose of the function, exhausting detail can be saved for a later section --> One line summary description of function. <!-- List return values an...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

WoW API < CanGrantLevel

status = CanGrantLevel()


Arguments

No arguments


Returns

arg1
nil if false, true if you have levels to grant


Example

local status = CanGrantLevel()
if status then
 ChatFrame1:AddMessage("I can grant "..status.." levels to my friend!")
else
 ChatFrame1:AddMessage("I am out of free levels for now.")
end

Result

Outputs in the chat frame either if you can or if you can't grant levels right now.