Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API CanGrantLevel

Last wiki revision 2022-07-26

Returns whether you can grant levels to a particular player. status = CanGrantLevel(unit)

  • unit: : UnitId
  • status: - 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).

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

Source

https://warcraft.wiki.gg/wiki/API_CanGrantLevel · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.