NPC Code:
this.width = int(width);
this.height = int(height);
setarray this.array,this.width * this.height;
for (i=0;i < this.width;i++) {
for (j=0;j < this.height;j++) {
this.array[i+j*this.width] = 3;
}
}
setshape2 this.width,this.height,this.array;
Try that.