Coins

coins are needed to buy items, They're also required for Upgrading

How to get them
Killing enemies

Selling items

Searching in Pits/Lakes/Trygian Mines

Looting corpse

Scroll of Riches

How to lose them
Buying items

Upgrading

being looted