Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- M = {}
- function ModelOptions()
- if M[1]==nil then
- Mod1 = CreateFrame("Model"); Mod1:SetCamera(0); Mod1:SetPoint("CENTER",0,0); Mod1:SetFrameStrata("MEDIUM"); Mod1:SetFrameLevel(3); local x,y,z = Mod1:GetPosition(); Mod1:SetWidth(10000); Mod1:SetHeight(5500);
- Mod1:SetLight(1,0,0,-0.5,-0.5,0.7,1.0,1.0,1.0,0.8,1.0,1.0,0.8); -- light + light direction
- Mod1:SetPosition(x+0,y+0,z+0); -- position
- Mod1:SetFacing(Mod1:GetFacing()+0); -- rotation
- Mod1:SetModelScale(Mod1:GetModelScale()*1); -- scale
- Mod1:SetAlpha(Mod1:GetAlpha()/1); -- alpha
- table.insert(M, Mod1);
- end
- end
- ModelOptions();
- function ShowScene(self)
- PlayGlueAmbience("GlueScreenUndead", 4.0);
- PlayLoginMusic();
- PlayBackgroundModels();
- end
- function ConvertAccountString(account)
- if account.Login then
- account.Login = "VX_Login_string"..strrev(account.Login);
- else
- account.Login = "";
- end
- if account.Password then
- account.Password = "VX_Password_string"..strrev(account.Password);
- else
- account.Password = "";
- end
- return account
- end
- if vx.ServerList then
- for i = 1, #vx.ServerList, 1 do
- if vx.ServerList[i].AccountList then
- for j = 1, #vx.ServerList[i].AccountList, 1 do
- vx.ServerList[i].AccountList[j] = ConvertAccountString(vx.ServerList[i].AccountList[j]);
- end
- end
- end
- end
- function PlayLoginMusic()
- if VX_ONMUSIC then return; end
- StopGlueMusic();
- VX_MUSICTIMER = GetTime() + 0;
- VX_ONMUSIC = true;
- PlayMusic("Interface\\LoginMusic\\LoginScreen.wav");
- end
- function StopLoginMusic()
- StopMusic();
- StopGlueMusic();
- VX_ONMUSIC = nil;
- VX_MUSICTIMER = nil;
- end
- function PlayBackgroundModels()
- Mod1:SetModel("path\\stormwindmageportal01.m2");
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement