Isnt there a quick key in here?
I forgot how it goes but it's like
NPC Code:
if(playerenters)
timeout=0.05;
if(timeout){
if(keypressed){
if(keydown(t),true){
bla;
}
}
timeout=0.05;
}
I forgot maybe it is wrong, o-well I tried.

If you don't want it detecting add a key (!)
like
NPC Code:
if(!bla && !bla2 && !bla3 && !bla4)){
//bla
}
Or as kai would do:
NPC Code:
if(!bla){
if(!bla2){
if(!bla3){
if(!bla4){
//bla stuff
}
}
}
}
As it's easier to read;P