It's important to realize what
your own embassy - the embassy of the country
of which you are a citizen - can and can't do
to help you if you get into trouble. Generally
speaking, it won't be much help in emergencies
if the trouble you're in is remotely your own
fault. Remember that you are bound by the laws
of the country you are in. Your embassy will not
be sympathetic if you end up in jail after committing
a crime locally, even if such actions are legal
in your own country.

In genuine emergencies you might get
some assistance, but only if other channels have
been exhausted. For example, if you need to get
home urgently, a free ticket home is exceedingly
unlikely - the embassy would expect you to have
insurance. If you have all your money and documents
stolen, it might assist with getting a new passport,
but a loan for onward travel is out of the question.