Scotland ended Irish hopes of a place in the 1999 World Cup with an emphatic victory in Kuala Lumpur.