but when they sailed into the harbor at riva , with their ships bearing full loads of gaudy trinkets upon which they placed high value , the rivan king laughed at their folly and closed the gates of the city to them .