how do you get that ending?
I killed the king, but still I died and i got that
First kill the king and then die in another line