Getting attacked when I don't have a bounty?

I'm in the Dark Brotherhood on the quest recipe for disaster, but when I go to get the guy from the town the guards try to kill me even though I don't have a bounty. I checked if the same happened in other places and they still attack me and I don't have a bounty. How can I fix this?
Best Answer
You can try to use the command "paycrimegold" - simply use your curser and tap on a guard, then write this command. If this doesn't work, please say what is attacking you - normal guards, bandits, the emperor men(The Occuloti) because if they attack you you can kill them and the guards might even help you.
Pictures about "Getting attacked when I don't have a bounty?"



Why am I being randomly attacked in Skyrim?
This is said to be due to a thief being in town when you arrive. Surrendering to a guard should fix this. To surrender, sheath your weapon and try talking to them. Holding block should help if they won't talk normally.How do I stop being attacked in Skyrim?
Here are the standard approaches.How long do you have to wait for a bounty to go away?
An NPC bounty hunter will come after you and he'll actually talk first, giving you the option to pay the bounty and it'll clear it up. Show activity on this post. Leave town and wait 48 hours if all the people are attacking you in the town.Why am I being attacked in Understone keep?
It's a glitch. if you do the conspiracy quest you will have a bounty that you are unable to get rid of or serve time for and makes every visit to markarth a bloody battle.Pizza Delivery Guy Attacked For Being 2 minutes Late, What Happens Next Is Shocking
More answers regarding getting attacked when I don't have a bounty?
Answer 2
Have you tried going to some far away place and rest for 30 days? This resets the quest area and NPCs and might fix the problem.
Alternately refer to this extensive answer regarding fixing quests.
Answer 3
I can't comment yet, but I/we need more info. Is it when you enter Markath to speak with Anton Virane? Having this info, will help us help you.
If that's the case, there's a well known bug, that the guards at Understone Keep will be hostile due to an earlier bounty. Unfortunately it's not fixed by the (Un)official patch yet. Have you tried reloading a save from before you get the quest, and then enter the area before taking the quest? My guess would be to reload an older save.
In general, and especially with mods installed, it's time saving in the long run, to make a hard save every 30 minutes or so. As in Esc > Save > New Save. It takes less than 30 seconds, but can save hours if you run into a bug like this. After a while, when you're sure you don't need the saves, it's simple to delete them to save harddrive space.
Answer 4
These guards are bugged and glitched, as if they think you're a criminal, but you're not. here are some ways pf fixing this glitch.
Wait and rest in another town or in the wilderness for 30 days or more to reset guards.
Use the cheat on each guard,
stopcombat
to make them stop combat.Your bounty might be bugged, so try using
payfine
cheat.Cast a Calm spell on the guards which will make them unhostile, but only for a limited time!
If you're still in trouble, then you're doomed.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Ketut Subiyanto, Ketut Subiyanto, SHVETS production, cottonbro