Add 'take_treasure' api method