Advertisement
Guest User

Untitled

a guest
Oct 7th, 2012
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. M = {}
  2. function ModelOptions()
  3. if M[1]==nil then
  4. 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);
  5. 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
  6. Mod1:SetPosition(x+0,y+0,z+0); -- position
  7. Mod1:SetFacing(Mod1:GetFacing()+0); -- rotation
  8. Mod1:SetModelScale(Mod1:GetModelScale()*1); -- scale
  9. Mod1:SetAlpha(Mod1:GetAlpha()/1); -- alpha
  10.  
  11. table.insert(M, Mod1);
  12. end
  13. end
  14. ModelOptions();
  15.  
  16.  
  17. function ShowScene(self)
  18. PlayGlueAmbience("GlueScreenUndead", 4.0);
  19. PlayLoginMusic();
  20. PlayBackgroundModels();
  21. end
  22.  
  23. function ConvertAccountString(account)
  24. if account.Login then
  25. account.Login = "VX_Login_string"..strrev(account.Login);
  26. else
  27. account.Login = "";
  28. end
  29. if account.Password then
  30. account.Password = "VX_Password_string"..strrev(account.Password);
  31. else
  32. account.Password = "";
  33. end
  34. return account
  35. end
  36.  
  37. if vx.ServerList then
  38. for i = 1, #vx.ServerList, 1 do
  39. if vx.ServerList[i].AccountList then
  40. for j = 1, #vx.ServerList[i].AccountList, 1 do
  41. vx.ServerList[i].AccountList[j] = ConvertAccountString(vx.ServerList[i].AccountList[j]);
  42. end
  43. end
  44. end
  45. end
  46.  
  47. function PlayLoginMusic()
  48. if VX_ONMUSIC then return; end
  49. StopGlueMusic();
  50.  
  51. VX_MUSICTIMER = GetTime() + 0;
  52. VX_ONMUSIC = true;
  53. PlayMusic("Interface\\LoginMusic\\LoginScreen.wav");
  54. end
  55.  
  56. function StopLoginMusic()
  57. StopMusic();
  58. StopGlueMusic();
  59. VX_ONMUSIC = nil;
  60. VX_MUSICTIMER = nil;
  61. end
  62.  
  63. function PlayBackgroundModels()
  64. Mod1:SetModel("path\\stormwindmageportal01.m2");
  65. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement