This is how the Night/The Lost Pirate/Ryan at the construction site/Bad coal scene goes in The Paw Patrol's Adventures of Sodor's Legend of the Lost Treasure.
Scene[]
[Some boys are playing in a field with a farmer on a tractor when they saw the pirate ship passing by]
Boy 1: [gasps] Look! Pirates!
Boy 2: Pirates are coming!
[At the town square, the brass band is playing to a crowd of people when they see the pirate ship passing them and they gasp in astonishment]
Everyone: [gasps]
Woman: What's that?
[The cymbal player drop one of his cymbals in surprise. Donald and Douglas carries the pirate ship to the harbor near the lighthouse, unaware that Sid, Arrby and Skiff are watching nearby through the telescope]
Sid Swashbuckle: [laughs] Ah-ha!
[The scene changes to night and the moon with clouds in front of it which makes it look like a skull's eyes and teeth. The camera zooms down to the rails where Henry is pulling the Flying Kipper]
Narrator: Later on that very night, one big green engine got a bit of a fright.
[Henry looks at the mist and saw Skiff passing him on the rails, causing him to shout in fright and skid onto a siding and hit the buffers]
Henry: Whoa! Ooh! Ow.
[The next morning at Brendam Docks, James laughs at what Henry saw last night]
James: [laughs] You were probably just dreaming, Henry. Didn't they find you asleep on a siding?
Marshall: Never mind him, Henry.
Rocky (pup): Maybe it was just a nightmare.
Henry: I was perfectly awake. I saw a ghostly sailboat, sailing along in the moonlight, as if the land was the sea.
Bill: Ooh!
Ben: A ghostly boat, Bill!
Edward: That does sound very scary.
Rubble: Scary? It's sounds horrifying!
Cranky: Nonsense. That just sounds silly.
Salty: Ha-argh. Sounds to me like The Lost Pirate.
Henry: The Lost Pirate?
Salty: Arr. He'll be looking for his treasure, he will.
Zuma: Treasure?
Marshall: What treasure?
[The story begins with a map of the world being unfolded to show a pirate ship moving across the sea]
Salty: Long, long ago, the Lost Pirate sailed the seas... Attacking merchant ships and stealing their valuables to keep as his treasure.
Parrot: [squawking]
[Captain Calles can see the merchants and the Navy closing in on him so he uses his ship to get away from them]
Salty: The merchants and the Navy tried to get that treasure back, but the lost pirate hid his ship in a secret cove where he couldn't be seen and buried his stolen treasure in the ground. [laughs] Arr! Then he drew himself a map so he could find it again, but the lost pirate's treasure map blew overboard, and now he roams Sodor forevermore trying to find his buried treasure! [laughs] Arr!
[James and Edward gasp]
Zuma: Oh, my!
Cranky: [laughs] That must be one of Salty's tallest tales ever!
Rubble: Coming from the one who believed Salty once.
[and everyone laughed except Cranky as they went back to work]
Henry: But it's true! I saw the lost pirate! And he was just like Salty says he was.
[The scene changes to Thomas, repaired but still have scratches and dirt on his paintwork even over his number one, puffing along the line crossly]
Narrator: Thomas was repaired. He was making his way back to the construction yard again, when he saw the big ship at Arlesburgh Harbor.
[Thomas saw the pirate ship on the pier near the lighthouse]
Thomas: [gasps] Rocky didn't find that ship. I did.
[As he set off, Skiff watches from the bay as Sid and Arrby went on board the pirate ship]
Sid Swashbuckle: Let's get sneaky! [and he anchors the ship and grabs to Arrby as they swing up] Captain Calles' ship, here we come!
Arrby: Whee!
Sid Swashbuckle: Now to sail this super ship away! As soon as I find the start button. Arr!
Arrby: Uh, Captain Boss Mr. Sid Sir, are we just gonna leave Skiff?
Sid Swashbuckle: Ah, who needs Silly Skiff when got ourselves Captain Calles'... [then they see Robo-Dog on screen] Arrby, it's the Mechanical Mutt. Make sure that Robo-Rofer stays locked below!
[so Arrby did]
Arrby: Sorry, pup. Captain orders. Arr! [Now Robo-Dog is trapped. Later, Sid is seen pushing buttons] That stowaway is stowed-away!
Sid Swashbuckle: Uh, what? Uhh, oh. Good job.
[Meanwhile Thomas fills up with coal at an old coal hopper]
Narrator: Thomas filled up with coal from an old hopper just outside the construction yard.
Ryan: Done the jobs you gave me, sir.
Sir Topham Hatt: Thanks, Ryan. Well done. And keep up the good work.
Ryan: I will, sir! Thank you, sir!
[He whistles and puffs off as Sir Topham Hatt walk to his car]
Thomas: [calling] Sir! Sir! [Sir Topham Hatt open his car door, but stops and looks at Thomas] If Ryan is here, can't I go back to my branch line again?
Sir Topham Hatt: No, Thomas, you can't. Percy is looking after your branch line and the pups still have work to do here. They need to collect some more ballast, for a start.
[Sir Topham Hatt heads back inside his car and leaves as Thomas chuffs off sadly. He sadly shunt some cars]
Thomas: [miserable] I used to be Sir Topham Hatt's number 1 engine, but I'm not his number 1 anymore.