Aaron wrote a small script that I use that you might like. Cheers #ShowPortrait !char-pic @{target|Who?|character_id} script //version: 1.0
//use !char-pic to show a character's portrait in chat.
on('ready', function() {
on('chat:message', function(msg) {
if (msg.type == "api" && msg.content.indexOf("!char-pic") !== -1) {
var charid =msg.content.split(' ')[1];
var c = getObj('character',charid);
if(c) {
var fPart = "<div style='margin-left: -20px; box-shadow: 2px 2px 5px #000; padding: 0px; border: 2px solid #000; border-radius:5px; overflow: hidden;";
var Pic = fPart + "background-color:#FFF;'><img src='" + c.get('avatar') + "'></div>";
sendChat('', "/direct " + Pic);
}
};
});
});