I have a very big amount in loan and credit cards for which I am paying a lot of interest, the loans and credit cards were utilized for general needs and nothing for important needs or desperate requirements. My question is that can I buy lottery tickets, that are nonrefundable if not won, with niyyat of paying of my debts? Will the lottery money, if won, be considered haram?

No. It is haram.