<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.herc.ws/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.herc.ws/w/index.php?action=history&amp;feed=atom&amp;title=Changelook</id>
		<title>Changelook - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.herc.ws/w/index.php?action=history&amp;feed=atom&amp;title=Changelook"/>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Changelook&amp;action=history"/>
		<updated>2026-05-02T15:44:36Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.11</generator>

	<entry>
		<id>https://wiki.herc.ws/w/index.php?title=Changelook&amp;diff=601&amp;oldid=prev</id>
		<title>Dastgirpojee: Created page with &quot; ==Syntax== * changelook &lt;look type&gt;,&lt;look value&gt;;  ==Description== Identical to 'setlook', but only client side (doesn't save).  ==Example== The following code is a g...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Changelook&amp;diff=601&amp;oldid=prev"/>
				<updated>2013-09-20T04:50:32Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot; ==Syntax== * &lt;a href=&quot;/wiki/Changelook&quot; title=&quot;Changelook&quot;&gt;changelook&lt;/a&gt; &amp;lt;look type&amp;gt;,&amp;lt;look value&amp;gt;;  ==Description== Identical to &amp;#039;&lt;a href=&quot;/wiki/Setlook&quot; title=&quot;Setlook&quot;&gt;setlook&lt;/a&gt;&amp;#039;, but only client side (doesn&amp;#039;t save).  ==Example== The following code is a g...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
==Syntax==&lt;br /&gt;
* [[changelook]] &amp;lt;look type&amp;gt;,&amp;lt;look value&amp;gt;;&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
Identical to '[[setlook]]', but only client side (doesn't save).&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
The following code is a good example of the use of '''changelook'''. It uses [[bindatcmd]] to assign @afk some code to use, then detects the players upper headgear, changes it to show the AFK hat and allows the player to use the command again to put their original hat back.&lt;br /&gt;
&lt;br /&gt;
 -	script	atcmd_afk	-1,{&lt;br /&gt;
 	[[OnInit]]:&lt;br /&gt;
 	[[bindatcmd]](&amp;quot;afk&amp;quot;,&amp;quot;atcmd_afk::OnAFK&amp;quot;);&lt;br /&gt;
 	end;&lt;br /&gt;
 &lt;br /&gt;
 	OnAFK:&lt;br /&gt;
 	if (@AFK) {&lt;br /&gt;
 		[[set]] @AFK, 0;&lt;br /&gt;
 		'''changelook''' 4,headupper; // Changes &amp;quot;head top&amp;quot; to use the players previous headgear sprite&lt;br /&gt;
 		[[dispbottom]] &amp;quot;Away From Keyboard mode disabled.&amp;quot;;&lt;br /&gt;
 		end;&lt;br /&gt;
 	} else {&lt;br /&gt;
 		set @AFK, 1;&lt;br /&gt;
 		headupper=[[getlook]](4); // getlook(4) fetches the &amp;quot;head top&amp;quot; id and assigns it to headupper for later use&lt;br /&gt;
 		'''changelook''' 4,471; // Changes &amp;quot;head top&amp;quot; to use the sprite with view id 471 (AFK Hat)&lt;br /&gt;
 		[[dispbottom]] &amp;quot;Away From Keyboard mode enabled.&amp;quot;;&lt;br /&gt;
 		end;&lt;br /&gt;
 	}&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
As '''changelook''' is only a client-side visual change, it doesn't send any changes to be saved towards the char server. It keeps your current headgear as it is, but just changes the view id.&lt;br /&gt;
&lt;br /&gt;
[[Category:Script_Command]]&lt;/div&gt;</summary>
		<author><name>Dastgirpojee</name></author>	</entry>

	</feed>