WoW:API PromoteToLeader: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 14: | Line 14: | ||
== Example Code == | == Example Code == | ||
:If you have a character named " | :If you have a character named "Character", to promote him to leader you can type in-game: | ||
::/script PromoteToLeader(" | ::/script PromoteToLeader("Character"); |
Revision as of 21:24, 3 May 2010
Promotes a unit to party leader.
PromoteToLeader(unitId or playerName)
Arguments
- unitId
- UnitId - The unit to promote.
- playername
- PlayerName - The full name of the player to promote.
Returns
- nil
Example Code
- If you have a character named "Character", to promote him to leader you can type in-game:
- /script PromoteToLeader("Character");