Nice amount of content but bloody hell what have you done to it, it's a mess (to give an example the way you're handling the shops look attrocious)....
create an integer that receives the NPCs combat level and before calling the attack code insert a simple if statement to check if the player's combat...