WoW API: CanGrantLevel

From AddOn Studio
Revision as of 02:58, 21 August 2008 by WoWWiki>Fandyllic (stub for more context)
Jump to navigation Jump to search

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.