use a grappling hook and hang it from the ceiling, then shoot him using tranq arrows, biotoxin arrows, tranq arrows, and arrows that are shocking, good, megalo has already knocked and then feed him till its tamed

More Megalosaurus Taming & KO Tips