This is done in three parts:
Part 1: Get into the good graces of the Jarl
How you do this is dependent on who controls the city during the Civil war:
If you don't let the Imperials take control of the city, the Jarl will be Laila Law-Giver. You can win her favor by completing all parts of the miscellaneous objectives that starts with Wujeeta at the Fishery.
If the Imperials have taken control, you can win favor with the newly installed Jarl by speaking to them.
Part 2: Become a champion of the people of Riften
Once the Jarl likes you, you'll be able to secure her trust by helping the people of Riften. Completing five miscellaneous objectives or favors in Riften will complete this step.
Part 3: Handle Riften's drug problem
There are three miscellaneous objectives you need to complete: "Helping Hand", "The Raid", and "Supply and Demand". You might've already completed these as part of the first two steps.
Once complete, you can purchase your new home for a cool 8,000 gold.
For a complete walkthrough, this is exactly what I did:
- Spoke to Wujeeta and completed "Helping Hand" by giving her a healing potion.
- Intimidated Wujeeta into telling me where she got her Skooma
- Spoke to Jarl Laila in Mistveil Keep and told her who the dealer is, and accepted her request to shut him down
- Went into the Riften Warehouse, confronted the dealer, and retrieved the information about where the Skooma was coming from
- Told the Jarl about the source, who then told me to deal with it (noting that I'd be well on my way to a title in Riften for doing so)
- Went north to Craigslane Cavern and disrupted the Skooma operation by killing everyone
inside and outside
- Reported back to the Jarl about the disruption. At this point, the Jarl didn't have anything new to say.
- Spoke to Wylandriah, the Jarl's mage, and completed her retrieval quests by going to Windhelm, Winterhold, and Ivarstead.
- Spoke to Sibbi Black-Briar in the Riften jail, and subsequently completed "The Lovers Requital"
- Completed a dragon bounty given by the Jarl's steward.
- Spoke to Romlyn Dreth and subsequently completed "Under the Table."
At this point, I received a new objective to speak to the Jarl. Upon speaking to her, she said she'd make me Thane once I purchased a house in Riften, which I was then allowed to do by speaking to the Steward.
How to fix (2013 update)
I've tried the bugged saved game file I initially posted in my question with the current latest versions of the official patch, Unofficial Skyrim Patch (USKP) and Skyrim Script Extender (SKSE), and the saved game is now Aspect of Peryite-free.
I've configured SKSE to use its ClearInvalidRegistrations
console command on every saved game load, which removes invalid scripts left running by uninstalled mods. This feature was introduced in v1.6.7 of SKSE:
add console command ClearInvalidRegistrations
to remove invalid
OnUpdate() registrations
This prevents orphaned OnUpdate() events and
the resulting bloated/broken saves when removing certain mods. When
applied to an already bloated save, it will stop growing further and
instead shrink over time as the game processes all queued events. This
may take hours depending on the amount of bloat.
To execute automatically after each reload, add this to \Data\SKSE\skse.ini
:
[General]
ClearInvalidRegistrations=1
According* to a developer of the Unofficial Skyrim Patch (USKP), the underlying cause is because DA13 ('The Only Cure' quest) is never stopped.
A possible fix* for this:
In the meantime, load an affected save, then type stopquest DA13
into the console. That ought to put an end to that. Plus itāll free up some unnecessarily leftover alias memory.
BTW, donāt use the console command on a save not bothered by it. Even though it may appear benign, console commands can have negative consequences you donāt know about.
If this doesn't work or if you experience issues like: NPCs not responding properly to conversation (not reply to you when you choose a certain conversation path - leaving you stuck), merchants not opening the buy/sell window, horses that can't be ridden, and other interaction issues, then the save game is most likely corrupted. Try the SKSE ClearInvalidRegistrations
console command fix I've posted above, instead.
To prevent this from happening in the PC, get the latest version of the Unofficial Skyrim Patch. This has been fixed since version 1.1 of the USKP:
"The Only Cure" (DA13) was never stopped which would lead to the Aspect of Peryite randomly initiating conversation and being unable to exit.
* This info is from the old USKP bug tracker page at 16bugs.com, which is now not viewable. The new USKP bug tracker report page of this bug is at afkmods.iguanadons.net.
Best Answer
Try sheathing your weapon. Or try using a calming spell on a guard.
Here are the standard approaches.
Bug
Occasionally, Guards will not recognize your attempts to yield and will continue attacking even if your weapon is sheathed.
Source: http://www.uesp.net/wiki/Skyrim:Jail#Go_to_jail