I wouldn't consider getting another snake until you are able to do some serious research on how to take care of them. All this information is readily available from multiple sources, this forum being one of them. I'm sorry this happened, it's so hard to lose a pet! But unfortunately this sounds like a result of completely inappropriate care - starvation, dehydration and unregulated heating.
Edit to add: I don't want to sound super harsh here. I know you were told these things were fine by a vet and you were trying to do right. Unfortunately when it comes to exotic and less common pets, it's really important to do your own research, because there's so much misinformation and a lot of vets, if they're not specialized reptile vets, don't really know the first thing about care or are relying on really old, outdated information. And pet stores are the absolute worst for this kind of thing. Reptile forums and groups are a great place to go for helpful, informed answers to your questions. Good luck.