-
Notifications
You must be signed in to change notification settings - Fork 760
Setlook
- setlook <look></look>,<look></look>;
- changelook <look></look>,<look></look>;
setlook will alter the look data for the invoking character. It is used mainly for changing the palette used on hair and clothes: you specify which look type you want to change, then the palette you want to use. Make sure you specify a palette number that exists/is usable by the client you use. changelook works the same, but is only client side (it doesn't save the look value).
setlook 6,8; // This will change your clothes(7), so they are using palette 1, whatever // your palette 1 is, your clothes will then use that set of colors. setlook 7,1;
Here are the possible look types:
- 0 - Base sprite
- 1 - Hairstyle
- 2 - Weapon
- 3 - Head bottom
- 4 - Head top
- 5 - Head mid
- 6 - Hair color
- 7 - Clothes color
- 8 - Shield
- 9 - Shoes
Only the look data for hairstyle, hair color and clothes color are saved to the char server's database and will persist. The rest freely change as the character puts on and removes equipment, changes maps, logs in and out and otherwise you should not expect to set them. In fact, messing with them is generally hazardous, do it at your own risk, it is not tested what will this actually do - it won't cause database corruption and probably won't cause a server crash, but it's easy to crash the client with just about anything unusual.
However, it might be an easy way to quickly check for empty view IDs for sprites, which is essential for making custom headgear.
Since a lot of people have different palettes for hair and clothes, it's impossible to tell you what all the color numbers are. If you want a serious example, there is a Stylist script inside the default Hercules installation that you can look at, this may help you create a Stylist of your own: