In the map properties in MapScript, create a new xdb script, and in the script properties, select a link to the lua file. You can simply go to Map Properties => EditScript => type --, and save the map (it might crash).
Thank you, I'll play the original maps for now.