<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://addonstudio.org/mw1/index.php?action=history&amp;feed=atom&amp;title=WoW%3AAPI_UnitSetRole</id>
	<title>WoW:API UnitSetRole - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://addonstudio.org/mw1/index.php?action=history&amp;feed=atom&amp;title=WoW%3AAPI_UnitSetRole"/>
	<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:API_UnitSetRole&amp;action=history"/>
	<updated>2026-06-01T22:14:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:API_UnitSetRole&amp;diff=20066&amp;oldid=prev</id>
		<title>Move page script: Move page script moved page API UnitSetRole to WoW:API UnitSetRole without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:API_UnitSetRole&amp;diff=20066&amp;oldid=prev"/>
		<updated>2023-08-15T04:47:49Z</updated>

		<summary type="html">&lt;p&gt;Move page script moved page &lt;a href=&quot;/wiki/WoW:API_UnitSetRole&quot; title=&quot;WoW:API UnitSetRole&quot;&gt;API UnitSetRole&lt;/a&gt; to &lt;a href=&quot;/wiki/WoW:API_UnitSetRole&quot; title=&quot;WoW:API UnitSetRole&quot;&gt;API UnitSetRole&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:47, 15 August 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Move page script</name></author>
	</entry>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:API_UnitSetRole&amp;diff=20065&amp;oldid=prev</id>
		<title>WoWWiki&gt;Fandyllic at 02:40, 17 July 2011</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:API_UnitSetRole&amp;diff=20065&amp;oldid=prev"/>
		<updated>2011-07-17T02:40:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:40, 17 July 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Stub/API}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{wowapi}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Synopsis ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Synopsis ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Sets the player role in the group as Tank, Dps, Healer or None.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Sets the player role in the group as Tank, Dps, Healer or None.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>WoWWiki&gt;Fandyllic</name></author>
	</entry>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:API_UnitSetRole&amp;diff=20064&amp;oldid=prev</id>
		<title>WoWWiki&gt;Imtarr: Created page with &quot;== Synopsis == Sets the player role in the group as Tank, Dps, Healer or None.   UnitSetRole(player,role)&quot;</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:API_UnitSetRole&amp;diff=20064&amp;oldid=prev"/>
		<updated>2010-10-14T17:00:11Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Synopsis == Sets the player role in the group as Tank, Dps, Healer or None.   UnitSetRole(player,role)&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Synopsis ==&lt;br /&gt;
Sets the player role in the group as Tank, Dps, Healer or None.&lt;br /&gt;
&lt;br /&gt;
 UnitSetRole(target,role)&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
:;target:String - The affected group member. i.e. &amp;quot;player&amp;quot; or player name&lt;br /&gt;
:;role:String - The role for the player. (known values &amp;quot;TANK&amp;quot;, &amp;quot;HEALER&amp;quot;, &amp;quot;DAMAGER&amp;quot;, &amp;quot;NONE&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
&lt;br /&gt;
Unknown&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
 local name=&amp;quot;Imtarr&amp;quot;;           &lt;br /&gt;
 if ( playerInfo[name].tank == 1 ) then&lt;br /&gt;
    UnitSetRole(name,&amp;quot;TANK&amp;quot;);&lt;br /&gt;
 elseif ( playerInfo[name].heals == 1 ) then&lt;br /&gt;
    UnitSetRole(name,&amp;quot;HEALER&amp;quot;);&lt;br /&gt;
 elseif ( playerInfo[name].mDps == 1 ) then&lt;br /&gt;
    UnitSetRole(name,&amp;quot;DAMAGER&amp;quot;);&lt;br /&gt;
 elseif ( playerInfo[name].rDps == 1 ) then&lt;br /&gt;
    UnitSetRole(name,&amp;quot;DAMAGER&amp;quot;);&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
&lt;br /&gt;
Sets the player role to the value specified.  Note that the command will not allow roles to be assigned to classes that are not considered to be capable of fulfilling that role.  i.e. It will not allow a Hunter to be given the role of TANK.&lt;br /&gt;
&lt;br /&gt;
A system message will be sent to the members of the group. &lt;br /&gt;
 &amp;quot;Healdude is now &amp;lt;&amp;lt;healTexture&amp;gt;&amp;gt; Healer. (Changed by Imtarr.)&amp;quot;&lt;/div&gt;</summary>
		<author><name>WoWWiki&gt;Imtarr</name></author>
	</entry>
</feed>