what you are trying to do is no practial logical way since you would have to use #m, setani, and replaceani. with replaceani you can only replace a gani with a gani and you want to setani with a new graphics so my suggestion would be to make a new gani using the torch2.png and using this code.
NPC Code:
if (weaponfired) {
if (!client.on) {
set client.on;
replaceani idle,torch_idle2;
replaceani walk,torch_walk2;
}else{
unset client.on;
replaceani idle,idle;
replaceani walk,walk;
}
}