The only way that NPCs shouldn't be able to hit you at all is if you are doing something really weird like editing insane stats or 100% shielding, or are extremely high level. Or, more commonly, if you have turned on "#invul on" to make your self invulnerable. But if you are invul, you should be getting combat messages that say so.
|