WoW:API GrantLevel: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (stub for more context)
Line 11: Line 11:


:;unit : [[UnitId]], also accepts names but you need to be in line of sight to each other in order to grant levels
:;unit : [[UnitId]], also accepts names but you need to be in line of sight to each other in order to grant levels
:;level : integer, the amount of levels you want to give away
:;level : integer, the amount of levels you want to give away (function always grants one level, no matter this parameter)
 


== Returns ==
== Returns ==

Revision as of 06:45, 31 May 2009

WoW API < GrantLevel

GrantLevel("unit",level)

Arguments

("unit",level)
unit
UnitId, also accepts names but you need to be in line of sight to each other in order to grant levels
level
integer, the amount of levels you want to give away (function always grants one level, no matter this parameter)

Returns

Nothing


Example

GrantLevel("target",1)

or

GrantLevel("Zuotheshaman",1)


Result

Grants your target one level, or grant Zuotheshaman one level (if unit is in line of sight otherwise you get a error)