need help

how do i make the image block while its moving and stuff,Oh and sorry for the long script.// NPC made by calebponessa if (playerenters) {showimg 2,block.png,47,8; } if (playerchats && strequals(#c,open sesame)) {showimg 2,block.png,47,8.1; sleep .1; showimg 2,block.png,47,8.2; sleep .1; showimg 2,block.png,47,8.3; sleep .1; showimg 2,block.png,47,8.4; sleep .1; showimg 2,block.png,47,8.5; sleep .1; showimg 2,block.png,47,8.6; sleep .1; showimg 2,block.png,47,8.7; sleep .1; showimg 2,block.png,47,8.8; sleep .1; showimg 2,block.png,47,8.9; sleep .1; showimg 2,block.png,47,9; sleep .1; showimg 2,block.png,47,9.1; sleep .1; showimg 2,block.png,47,9.2; sleep .1; showimg 2,block.png,47,9.3; sleep .1; showimg 2,block.png,47,9.4; sleep .1; showimg 2,block.png,47,9.5; sleep .1; showimg 2,block.png,47,9.6; sleep .1; showimg 2,block.png,47,9.7; sleep .1; showimg 2,block.png,47,9.8; sleep .1; showimg 2,block.png,47,9.9; sleep .1; showimg 2,block.png,47,10; sleep .1; showimg 2,block.png,47,10.1; sleep .1; showimg 2,block.png,47,10.2; sleep .1; showimg 2,block.png,47,10.3; sleep .1; showimg 2,block.png,47,10.4; sleep .1; showimg 2,block.png,47,10.5; sleep .1; showimg 2,block.png,47,10.6; sleep .1; showimg 2,block.png,47,10.7; sleep .1; showimg 2,block.png,47,10.8; sleep .1; showimg 2,block.png,47,10.9; sleep .1; showimg 2,block.png,47,11;

dude, Why are you using showimg.
Just use move or whatever. It’s one of the simple NPC commands.
Also, you can make it so people can’t replace your image with a blank to get in, by putting in
setshape 1,width,height;
Just saying.

Here you go.
Enjoy. Tell me if there are any bugs, things you don’t want, or things you’d like added in. Also, these must be two separate NPC’s.

// NPC made by Kondie if (playerenters) { x = 47; i = 8; y = i; setshape 1,32,32; showimg 2,block.png,47,8; changeimgvis 2,1; timeout = .05; } if (playerchats && strequals(#c,open sesame)) { for (i = 8;i < 11;i+=.1;sleep .1) { y = i; showimg 2,block.png,47,i; changeimgvis 2,1; } }

There ya go, it’s all in one NPC now.

_> I seriously think it would’ve been better for him, so he can learn and not have to ASK if you didn’t do that.
It also seems easier if he would’ve just didn’t use showimg. D:

Nah, nice job Kondie.

Wooo go mr codur!