Fandom

WoWWiki

API CanGrantLevel

104,637pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < CanGrantLevel

Returns whether you can grant levels to a particular player.

status = CanGrantLevel("unit")

Arguments Edit

unit 
String (UnitId) - unit to check level grant eligibility of.

Returns Edit

status 
Flag - true if you can grant levels to the unit; nil otherwise (unit is not RAF-linked to you, does not meet level requirements, or you are out of levels to grant).

Example Edit

The snippet below prints whether you can grant levels to your target right now.

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

Also on Fandom

Random Wiki