Even though you are right osrs, that wouldn't be the problem. That hideimgs part is only called when the weapon has been fired twice.
Also, please, I beg you to re-write the script. Do something like this for the mouse detection.
NPC Code:
if (mousebuttons == 1 && mousescreeny in |120,135|) {
for (this.a = 0; this.a < 5; this.a ++) {
if (mousescreenx in |35 + (this.a * 20),45 + (this.a * 20)|){
this.speed = this.a + 1;
sleep .5;
}
}
}
You accomplish the same thing with 8 lines, instead of 30.