Safety Quiz Soft Lock Fix

Create a dependency and include it in dependencies.json:

INTERFACE.setSafetyQuizIcon = function(showModInfo){
     if(INTERFACE.showModInfo || INTERFACE.shell.hasSafetyQuizReward() || INTERFACE.shell.isPlayerMascotById(INTERFACE.shell.getMyPlayerId())) {
            INTERFACE.SAFETY_QUIZ_ICON.gotoAndStop("info");
     }
     INTERFACE.SAFETY_QUIZ_ICON.button.onRelease = function() {
            
            if(INTERFACE.shell.isPlayerMascotById(INTERFACE.shell.getMyPlayerId()))
            {
                 var _loc1_ = INTERFACE.interface_mc.widgets_mc.mascotScriptClip;
                 if(_loc1_ == null)
                 {
                        _loc1_ = INTERFACE.interface_mc.widgets_mc.attachMovie("com.clubpenguin.ui.MascotScript","mascotScriptClip",INTERFACE.interface_mc.widgets_mc.getNextHighestDepth());
                        INTERFACE.centerWidget(_loc1_);
                 }
                 _loc1_.show();
            }
            else
            {
                 INTERFACE.blockPuffleNotifications = true;
                 var name = "w.safetyquiz";
                 var _loc4_ = INTERFACE.getLocalizedString(name);
                 filePath = INTERFACE.getFilePath(name);
                 INTERFACE.shell.sendTrigger(name);
                 // -
                 var loader:MovieClipLoader = new MovieClipLoader();
                 INTERFACE.CONTENT.gotoAndStop("Wait");
                 INTERFACE.CONTENT.createEmptyMovieClip("safety_quiz",100000);
                 INTERFACE.CONTENT.block_mc.useHandCursor = false;
                 INTERFACE.CONTENT.block_mc.tabEnabled = false;
                 INTERFACE.CONTENT.block_mc.onRelease = null;
                 flash.external.ExternalInterface.call("console.log", filePath);
                 loader.loadClip(filePath,INTERFACE.CONTENT.safety_quiz);
                     // -
                 INTERFACE.shell.updateListeners(INTERFACE.shell.CONTENT_OPENED);
            }
     };
};

INTERFACE.closeSafetyContent = function() {
        INTERFACE.CONTENT.safety_quiz.removeMovieClip();
        INTERFACE.CONTENT.gotoAndStop(1);
};

Open safety_quiz.swf in JPEX and look for…

INTERFACE.closeContent()

Edit with P-code, replace…

closeContent

with…

closeSafetyContent

And you’re done!