ID:174889
 
This is the code I use to make my players icons show up next to their name when they're talking. But it won't show the overlays, it just shows the simple icon..
client/script = {"<STYLE>BODY IMG.icon {width: 32px; height: 32px}</STYLE>"}


Is there a way to show all overlays?

-Camaro
well you can make a new pixmap for your characters and call it icondisplay and with this code it will show up next to the players speech text:
    verb

say(msg as text)

viewers()<<"<IMG CLASS=icon SRC=\ref [usr.icon] ICONSTATE='icondisplay' > [usr]: (msg)"

if this is not what you are wanting to do then i apologize.
In response to Siefer
Yeah, that's not what I wan't. But I probably wasn't specific enough.

When the player uses the "say" verb, it shows the 32*32 icon that the player is to the left of the name. However, it only shows the base icon. It does not show the overlays that the mob is wearing.

-Camaro-
In response to Camaro
Well, you could have a version of the icon which has been blended together rather than overlayed. Or you could save the mob and reload it again; if you do that without taking the overlays off before saving, then the saved icon will have the overlays as part of itself.

There's gotta be a better way, but I don't know what it is.