Could you in your will give someone the password to your account. I would say yes, since Jagex has no way of checking and being 100% sure and even then you would really not be sharing since you obviously would no longer have an ability to use that account, though tbh to inherit an account would take the fun out of the game at least from my perspective since I find it fun to lv up and all.