"Hey how are you doing?" Alexis asks as she walks into the room where Mateo is as Elena and Naomi walk out.

"You mean besides incredibly nervous and scared I'll mess up in front of all these people I'm great." Mateo says.

"You'll do fine Mateo. Just don't think about the people imagine its just you and me when you would practice with me." Alexis says.

"Thanks. By the way you look great in that dress. It certainly is different seeing you in a dress." Mateo says.

"Yea well don't get used to it. I'm not much of a dress person." Alexis says causing Mateo to laugh slightly and smile.

*Timeskip*

"Does this look crooked to you?" Mateo asks looking at his tamborita as he stands with Alexis, Naomi, and Elena as Gabe comes running over.

"All guests are present and accounted for princess." Gabe says.

"It's just a party Gabe not a military exercise. You can relax." Elena says.

"This is relaxed." Gabe says as Mateo accidentally hits himself in the head with his tamborita. Alexis then walks Mateo over to the royal family as they get ready to make the announcement.

"Mateo de Alva. By unanimous vote of the grand council I hereby appoint you royal wizard of Avalor." Elena says reading off a scroll.

"I am honored to serve the kingdom." Mateo says.

"And I am honored to present you with this. It was your grandfathers. He would of been so proud to see you wear this. Our new royal wizard everyone!" Elena says as Mateo puts on his grandfathers robe.

"The refreshments will now be served followed by a display of enchantment from the royal wizard himself." Armando says.

*Timeskip*

"Hey Alexis have you seen Mateo?" Elena asks as she comes over.

"I think he is out on the balcony you can try there. I'll help you look for him." Alexis says.

"Thanks Alex." Elena says as Alexis starts looking for Mateo. Once Alexis spots Mateo outside she sees Elena talking to him and decides to go get a drink seeing Elena has things covered.

*Timeskip*

"There you are." Gabe says as he, Alexis, and Naomi go outside to where Elena and Mateo are.

"Everyone's waiting." Naomi says.

"My tamborita. He's a malvago." Mateo says seeing a elderly man in a blue robe holding his tamborita.

"A what?" Elena says as the other wizard attempts to cast spell on Alexis and the others but fails thanks to a protection spell Mateo cast but causes the roof of the outside area to collapse onto them.

"Stay down princess. I'll clear the perimeter." Gabe says as everyone coughs from dust as Gabe goes to get he hits his head on the roof.

"What happened?" Naomi asks.

"I think the dome collapsed." Elena says.

"What did you do?" Gabe asks.

"I was trying to protect you." Mateo says.

"By nearly crushing us!?" Gabe asks.

"Gabe enough. Thanks to Mateo were safe.. for the moment anyway. Right now we need to get out from under this dome and find out what is going on and make sure the guests and the rest of the royal family are ok." Alexis says.

"Alexis is right but there was a malvago." Mateo says.

"A mawhatgo?" Naomi asks.

"An evil wizard. He was trying to cast a spell on us." Mateo says.

"There's no way an evil wizard could of gotten in the palace. I checked everyone." Gabe says.

"Well he got in somehow." Alexis says.

"Well there's only one way to find out. We have to get out of here." Elena says.

"I have a spell-" Mateo then gets cut off by Gabe.

"Save it. I can handle this." Gabe says as he uses his elbow to smash his way through the stone dome.

"After you." Gabe says

"Guys look." Elena says gasping upon seeing everyone has been turned to stone before running to her grandmother and grandfather.

"Abuelo? Abuela?" Elena asks as Mateo goes over to his mother.

"Mama?" Mateo asks.

"There all.. statues?" Naomi asks.

"What did you do to them?" Gabe asks putting his hand on Mateo's shoulder.

"It wasn't me it was the malvago." Mateo says as he pushes Gabe's hand off.

"Mateo can you undo the spell?" Elena asks.

"Uh maybe we should hold off on the magic until we know he didn't do it." Gabe says.

"And maybe you should stop blaming Mateo for this. We all know Mateo would never do such a thing. It was your job in the first place to make sure no one other than who was supposed to be got in so lay off." Alexis snaps getting annoyed with Gabe.

"Alexis is right Gabe. Mateo knows what he is doing." Elena says.

"It doesn't matter. I don't know any spells powerful enough to undo this kind of magic." Mateo says.

"There must be something in one of your spell books." Elena says pointing to the book Mateo is holding.

"This is just my grandfather's note book. He had some beginner spells but that's it. The kind of spell we need can only be found in the codex maru." Mateo says.

"What's that?" Naomi asks.

"It's an ancient maruvian spell book passed down through generations of royal wizards. It contains the most ancient and powerful magic in the kingdom." Mateo says.

"That's great. So where is it?" Elena asks.

"According to the notebook its hidden somewhere in the palace in a secret chamber." Mateo says.

"We have to find it Mateo." Elena says.

"It wont be easy. My grandfather wanted to make sure the codex didn't fall into the wrong hands. All he left was a clue or well its more like a riddle maybe not a riddle more like a test maybe multiple choice true false I guess who." Mateo says.

"Just read it!" Gabe says.

"Right sorry. Ok it says-" Mateo gets cut off as the group hear a crash and see the malvago.

"That's the malvago." Mateo says as the malvago takes off running.

"Fiero's the malvago? He said he was a friend of your grandfathers." Gabe says.

"Friend? That's his worst enemy." Mateo says.

"And you let him in!?" Naomi asks.

"Look everyone stay put I'll get him." Gabe says as he starts walking.

"No wait." Mateo says as he then casts a levitation spell on Gabe.

"What are you doing? Put me down!" Gabe says.

"He'll turn you to stone like the others. My mom told me the story. Fiero was in line to become royal wizard but the king appointed my grandfather instead. Fiero ran off to become a malvago swearing revenge. This must be his revenge." Mateo says.

"Not if we find the codex maru and undo this spell." Elena says.

"Didn't you say there was a clue in that book?" Naomi asks.

"Yes hang on. It's right-" Mateo then gets cut off by Gabe.

"Uh. I'm still up here

"Oh. Right." Mateo says as he undo's the levitation spell causing Gabe to drop to the floor.

"Ow." Gabe moans.

"Serves him right." Alexis thinks to herself.

"Oh here it is. If you wish to complete this task a wizard most royal must simply ask." Mateo says as he reads from the book.

"Ask what?" Naomi asks.

"And who?" Gabe asks.

"I've been trying to figure that out for a while. Once I even asked the notebook where the codex was." Mateo says.

"You talked to a book?" Gabe laughs.

"I know." Mateo says ashamed.

"But you weren't a wizard most royal then." Elena says.

"I don't follow." Mateo says.

"Maybe a wizard most royal means a royal wizard which you weren't until tonight. Ask it again." Elena says. Mateo then looks at Alexis questioningly.

"It couldn't hurt to try Mateo." Alexis says.

"Uh.. book. Where can I find the codex maru?" Mateo asks as the book then lets out a yellow string of magic as more words appear.

"What does it say?" Elena asks.

"I think its another riddle. To find the book of which you speak there are three keys to which you must seek. Time will tell how much you know you'll find key one three hours ago." Mateo says.

"What is up with all the riddles?" Gabe asks.

"It's a test to make sure whoever gets the codex is worthy." Mateo says.

"How can we find something three hours ago? Unless you have a time travel spell." Naomi says.

"No and I don't think that's what it means. I don't know." Mateo says.

"Time will tell. How do we tell time?" Elena asks.

"Well when the big hand is on the hour-" Naomi then gets cut off by Elena.

"Of course the clock!" Elena says.

"Let's go." Alexis says as the group then head to the room where the clock is quickly arriving.

"I need a lift." Elena says looking at the clock.

"Why?" Gabe asks.

"So I can make it three hours ago." Elena says as Elena then stands on top of Mateo and Gabe managing to figure the riddle out and make a compartment open up with the key inside.

"That's key number one." Elena says as she hops down off of Gabe and Mateo as Naomi grabs the key.

"What about the other two?" Naomi asks.

"Guys look. When you play this melody the second key is way off key." Mateo says reading more writing from the notebook as it appears.

"Off key?" Gabe asks.

"You know like your singing." Naomi asks as Elena laughs slightly.

"Hey." Gabe says offended.

"Hmm. The riddle is about music. We keep all the instruments in the music room so maybe the key is in there. Come on." Elena says as the group run to the music room and quickly arrive.

"The riddle said play a melody and key could mean piano keys." Mateo says.

"Your right. Now that I think about it there was always a key that was off key. But which one was it." Elena says examining the piano.

"Here let me try. Sounds off key to me." Gabe says hitting the last key.

"But where's the key we're looking for?" Elena asks.

"I think I'm getting the hang on these riddles. Maybe I should be the royal wizard." Gabe says as he finds the key hidden inside the piano key.

"No." Elena says.

"The next riddle is appearing. In the proper frame of mind the third key you will surely find. Once you've gotten all three keys unlock the three mysteries." Mateo says.

"Well Gabe your the riddle master." Naomi says.

"I don't know but I'm still one ahead him." Gabe says gesturing to Mateo.

"Gabe." Elena says.

"He's right. I'm the one who has to solve these. That's the whole point. To prove I'm worthy to deserve the codex." Mateo says.

"No. The point is to get the codex and safe our families. How we do it doesn't matter." Elena says.

"Oh. I know what the three mysteries are. I see them out my window every morning. You know those three big islands out in Avalor bay? They're called the three mysteries." Naomi says.

"So now we have to sail out on the bay?" Gabe asks.

"No the riddle said proper frame of mind. What if it means the frame of a painting? Come on. There the three mysteries of Avalor bay." Mateo says as he then leads everyone to a painting of three islands.

"Check the frame." Elena says as they all start checking the frame.

"I found it." Mateo says finding the third key in the frame.

"Now what?" Gabe asks.

"We use the three keys to unlock the three mysteries. Whatever that means." Elena says.

"Well the mysteries are the islands. Maybe there's something there. See that weird little cave. I think it kinda looks like a key hole. Check the other islands." Mateo says.

"Here's another key hole." Alexis says.

"Oh here's the third one." Naomi says.

"That's how we unlock the mysteries." Elena says as she, Naomi, and Mateo unlock the key holes as the painting then reveals a tunnel. The group then go into the tunnel as the painting closes.

"This isn't just a hiding place. It's a full blown wizards work shop." Elena says looking around the room.

"There it is. The codex maru. Ok found it. Ok the good news is I found the statue potion in the codex maru and there's a reversal potion." Mateo says finding the book and opening it.

"What's the bad news?" Elena asks.

"It says if we don't undo the spell by the next sunrise it'll become permanent." Mateo says.

"Permanent?" Elena asks.

"It's ok though. I think I have all the ingredients here." Mateo says.

"You think. Do you even know what this stuff is?" Gabe asks.

"Yes. Well most of it." Mateo says.

"Ugh. You should of let me go after Fiero." Gabe says.

"Look this is our only chance. So if you don't mind I have a potion to make. Alright. Extract of whistle weed. That's it... I think." Mateo says as he finishes the potion.

"Great because we're running out of time. We have to hurry." Elena says.

"Let's go." Mateo says as the group move the painting to reveal Fiero standing in front of them.

"Fiero!" Mateo says holding the codex.

"The codex. Give it to me." Fiero says pointing a tamborita at Alexis and the others.

"So that's what your here for." Mateo says.

"And you lovely children have led me right to it. So hand it over. Ah the new royal wizard. What makes you think you can stop me?" Fiero asks as Mateo points his tamborita at Fiero.

"I did it before on the balcony." Mateo says.

"Are you sure about that? Or did I let you escape so you can lead me to the codex." Fiero says.

"What?" Mateo asks.

"You can stop him Mateo." Elena says.

"Elena is right you can do this Mateo." Alexis says.

"Pfft. Can he?" Gabe asks.

"Shh." Naomi says.

"If I give you the book will you leave?" Mateo asks.

"You have my word." Fiero says.

"Mateo?" Elena asks.

"It's safer this way." Mateo says.

"Smart boy." Fiero says as Mateo hands him the book and Alexis and the others jump out of the tunnel as the painting closes.

"It's ok we still have the potion." Mateo says holding the potion.

"Ah yes. I'll take that too." Fiero says as he casts a spell making the potion go to his hand.

"You said you'd go." Mateo says as Gabe lunges at Fiero.

"Gabe!" Elena shouts as Fiero then turns Gabe to stone. Fiero then turns Naomi to stone as she was about to throw a book at him.

"Mateo." Elena says turning to Mateo.

"Good bye princess and say good bye to your friend too." Fiero says as he turns his tamborita to Alexis and Elena.

"No! " Mateo shouts as he casts a spell sending Fiero back.

"Nice shot." Elena says.

"Yea Mateo. Nice save." Alexis says as Mateo runs after Fiero.

"Elena catch! You two unfreeze them. I'm going after the codex." Mateo says as he tosses Elena the potion after getting it back. Mateo then goes after Fiero while Alexis and Elena unfreeze Naomi and Gabe.

"Ow." Gabe says as Naomi hits him with a book.

"Sorry." Naomi says.

"What happened?" Gabe asks.

"Mateo's potion just saved you and Naomi." Alexis says.

"It did?" Gabe asks.

"He went after Fiero come on." Elena says as the four of them then run to help Mateo. Upon arriving where Mateo is they see him on the ground and see Fiero a statue.

"Mateo." Alexis says as Alexis helps him up.

"Whoa. You turned him to stone." Gabe says.

"You do know what your doing." Naomi says.

"You did it." Elena says.

"I guess I did." Mateo says.

"I'm sorry I doubted you. Nice work hero." Gabe says.

"Thanks." Mateo says.

"Uh guys the sun's coming up." Gabe says pointing to the rising sun.

"Uh we have to do undo that spell now." Elena says as they head back inside to where everyone is.

"There's not enough time to drip the potion on everyone." Mateo says holding the potion.

"What'll we do?" Elena asks.

"Gabe how's your throwing arm?" Mateo asks.

"Like a cannon." Gabe asks.

"High as you can right in the center of the room." Mateo says as he tosses Gabe the potion.

"You got it." Gabe says as he tosses the potion and Mateo casts a spell hitting the potion making it turn into a rain like mist hitting everyone and undoing the spell on them.

"What happened? How is it morning already?" Armando asks.

"It is my duty to report that a malvago invaded the palace but he was defeated by our new royal wizard. I believe this belongs to you." Gabe says as he hands Mateo the codex maru and everyone cheers for Mateo.

"This is why I made you the royal wizard." Elena says.

"Thank you. You and Alexis believed in me when I didn't even believe in myself." Mateo says.

"We make a pretty good team." Naomi says.

"Yea we really do." Alexis says.

"She's right. The kingdom can sleep a little safer tonight." Gabe says.

"Thanks to Mateo." Naomi says.

"So Mateo. Are you ready to show them what you got now?" Elena asks. Mateo then does a spell making three fake sparkling jaquins appear in the room flying as everyone cheers for him.