You should combine it all into one npc..=/
Just make it so like pressing a different key sets the gani and also triggers the action. Better than having 2 different weapons.
You can also use
NPC Code:
with (npcs[testnpc(playerx+1.5+vecx(playerdir)*2,playery+2+ve cy(playerdir)*2)]){
destroy;
}