Guest User

Untitled

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