WoW:API CanGrantLevel: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (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...)
 
m (stub for more context)
Line 1: Line 1:
{{stub/API}}
{{wowapi}} __NOTOC__
{{wowapi}} __NOTOC__



Revision as of 02:58, 21 August 2008

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.