Not the way you want it, but I wish there was an easy way to offset the position of the shape/npc.
You have to use showimg to draw the image within that box, then you can use some simple math to determine the center position ((max_width - width) / 2). I.e.
PHP Code:
//#CLIENTSIDE
function onCreated() {
setshape(1,80,80);
drawBlock();
}
function drawBlock() {
temp.shapewidth = 80 / 16; // Converting the width from pixels to tiles
temp.shapeheight = 80 / 16;
temp.blockwidth = 32 / 16;
temp.blockheight = 32 / 16;
with (findimg(200)) {
image = "block.png";
x = thiso.x + ((temp.shapewidth - temp.blockwidth) / 2);
y = thiso.y + ((temp.shapeheight - temp.blockheight) / 2);
}
}