function AccountLogin_OnEvent(event, arg1, arg2, arg3) if ( event == "SHOW_SERVER_ALERT" ) then ServerAlertText:SetText(arg1); ServerAlertFrame:Show(); elseif ( event == "SHOW_SURVEY_NOTIFICATION" ) then AccountLogin_ShowSurveyNotification(); elseif ( event == "CLIENT_ACCOUNT_MISMATCH" ) then local accountExpansionLevel = arg1; local installationExpansionLevel = arg2; if ( accountExpansionLevel == 1 ) then GlueDialog_Show("CLIENT_ACCOUNT_MISMATCH", CLIENT_ACCOUNT_MISMATCH_BC); else GlueDialog_Show("CLIENT_ACCOUNT_MISMATCH", CLIENT_ACCOUNT_MISMATCH_LK); end elseif ( event == "CLIENT_TRIAL" ) then GlueDialog_Show("CLIENT_TRIAL"); elseif ( event == "SCANDLL_ERROR" ) then GlueDialog:Hide(); ScanDLLContinueAnyway(); AccountLoginUI:Show(); elseif ( event == "SCANDLL_FINISHED" ) then if ( arg1 == "OK" ) then GlueDialog:Hide(); AccountLoginUI:Show(); else AccountLogin.hackURL = _G["SCANDLL_URL_"..arg1]; AccountLogin.hackName = arg2; AccountLogin.hackType = arg1; local formatString = _G["SCANDLL_MESSAGE_"..arg1]; if ( arg3 == 1 ) then formatString = _G["SCANDLL_MESSAGE_HACKNOCONTINUE"]; end local msg = format(formatString, AccountLogin.hackName, AccountLogin.hackURL); if ( arg3 == 1 ) then GlueDialog_Show("SCANDLL_HACKFOUND_NOCONTINUE", msg); else GlueDialog_Show("SCANDLL_HACKFOUND", msg); end PlaySoundFile("Sound\Creature\MobileAlertBot\MobileAlertBotIntruderAlert01.wav"); end endend