Advertisement
Rochet2

Untitled

Oct 19th, 2015
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.63 KB | None | 0 0
  1.  
  2. -- Some definitions
  3. local time = time or os.time
  4. local random = random or math.random
  5. local randomseed = randomseed or math.randomseed
  6.  
  7. -- Make random be seeded by current time
  8. randomseed(time())
  9.  
  10. -- Function that returns a random table filled with loginscreen data or nil if there are no defined scenes
  11. local function GetRandomScene()
  12.     local Scenes = {
  13.         {
  14.             -- First loginscreen
  15.             -- Scene: 1
  16.             {1, -1.088, -3.262, -5.985, 1.184, 0.129, 1.000, _, 1, 1, 1, "Environments\\Stars\\wellofeternity01.m2", _, _},
  17.             {1, 0.029, 0.282, 0.000, 0.000, 0.213, 1.000, _, 1, 1, 1, "World\\Expansion05\\doodads\\talador\\doodads\\6td_demonportal_01.m2", _, _},
  18.             {1, 0.000, 0.967, 0.000, 0.000, 0.062, 1.000, _, 1, 1, 1, "World\\Expansion02\\doodads\\stormpeaks\\lightning\\stormpeakslightning04.m2", _, _},
  19.             {1, 0.032, 0.507, 0.000, 0.000, 0.020, 1.000, _, 1, 1, 1, "World\\Expansion02\\doodads\\stormpeaks\\lightning\\stormpeakslightning01.m2", _, _},
  20.             --{1, 0.629, 0.349, -0.023, 5.276, 0.403, 1.000, _, 193, 1, 1, "Creature\\Guldan\\guldan.m2", _, _},
  21.             {1, 0.022, 0.316, 0.000, 0.000, 0.136, 0.275, _, 1, 1, 1, "Spells\\Fel_lowpolyfireanim.m2", _, _},
  22.             {1, 0.014, 0.555, -0.023, 6.175, 0.403, 1.000, _, 193, 1, 1, "Creature\\Guldan\\Guldan.m2", _, _},
  23.             {1, 0.003, 0.600, 0.000, 0.000, 0.307, 1.000, _, 1, 1, 1, "World\\Expansion02\\doodads\\icecrown\\lights\\icecrown_greenglow_01.m2", _, _},
  24.             {1, -0.796, 1.615, 0.000, 0.000, 0.130, 0.671, _, 1, 1, 1, "World\\Expansion02\\doodads\\icecrown\\lights\\icecrown_greenglow_01.m2", _, _},
  25.             {1, 0.842, 1.646, 0.000, 0.000, 0.130, 0.780, _, 1, 1, 1, "World\\Expansion02\\doodads\\icecrown\\lights\\icecrown_greenglow_01.m2", _, _},
  26.             {1, -0.506, 1.300, 0.000, 0.000, 0.043, 0.561, _, 1, 1, 1, "World\\Expansion02\\doodads\\icecrown\\lights\\icecrown_greenglow_01.m2", _, _},
  27.             {1, 0.685, 1.403, 0.000, 0.000, 0.034, 0.529, _, 1, 1, 1, "World\\Expansion02\\doodads\\icecrown\\lights\\icecrown_greenglow_01.m2", _, _},
  28.             {1, -0.616, 1.408, 0.000, 0.000, 0.028, 0.435, _, 1, 1, 1, "World\\Expansion02\\doodads\\icecrown\\lights\\icecrown_greenglow_01.m2", _, _},
  29.             {1, 0.565, 1.313, 0.000, 0.000, 0.037, 0.341, _, 1, 1, 1, "World\\Expansion02\\doodads\\icecrown\\lights\\icecrown_greenglow_01.m2", _, _},
  30.             {1, -1.130, -1.605, 0.000, 0.000, 0.072, 1.000, _, 1, 1, 1, "World\\Expansion02\\doodads\\generic\\scourge\\sc_spirits_01.m2", _, _},
  31.             {1, 0.884, -1.577, 0.000, 4.287, 0.067, 1.000, _, 1, 1, 1, "World\\Expansion02\\doodads\\generic\\scourge\\sc_spirits_01.m2", _, _},
  32.             {1, -0.319, -0.187, 0.237, 0.000, 0.022, 1.000, _, 1, 1, 1, "World\\Generic\\human\\passive doodads\\fog\\sfx_fog_nasty_green.m2", _, "world\\generic\\human\\passive doodads\\fog\\sfx_fog_nasty_green.m2"},
  33.         },
  34.         {
  35.             -- Second loginscreen
  36.             {1, -0.000, -0.000, -0.000, -0.000, 0.100, 1.000, _, 1, 1, 1, "Environments/Stars/zuldrakskya.mdx", _, _},
  37.             {1, 0.900, 1.400, -15.200, -0.000, 0.100, 1.000, _, 1, 1, 1, "world/expansion02/doodads/stormpeaks/lightning/stormpeakslightning01.mdx", _, _},
  38.             {1, -6.500, 1.300, -15.200, -0.000, 0.100, 1.000, _, 1, 1, 1, "world/expansion02/doodads/stormpeaks/lightning/stormpeakslightning02.mdx", _, _},
  39.             {1, 6.200, 1.700, -15.200, -0.000, 0.100, 1.000, _, 1, 1, 1, "world/expansion02/doodads/stormpeaks/lightning/stormpeakslightning03.mdx", _, _},
  40.             {1, -0.100, 0.100, -5.400, -0.000, 0.100, 1.000, _, 1, 1, 1, "world/expansion02/doodads/icecrown/effects/icecrown_citadel_exterioreffects.mdx", _, _},
  41.             {1, 0.500, 0.400, 0.500, -0.000, 0.100, 1.000, _, 1, 1, 1, "world/expansion02/doodads/icecrown/elevator/icecrown_elevator02.mdx", _, _},
  42.             {1, 0.600, -0.000, -1.500, 5.883, 0.600, 1.000, _, 125, 1, 1, "Creature/Guldan/Guldan.mdx", _, _},
  43.             {1, 0.407, 1.450, -0.500, -0.000, 0.100, 1.000, _, 1, 1, 1, "creature/portal/portalbluearcane.mdx", _, _},
  44.             {1, 0.500, 1.700, -1.600, -0.000, 0.600, 1.000, _, 1, 1, 1, "world/generic/human/passive doodads/books/inscription_bookofpower_01.mdx", _, _},
  45.         },
  46.     }
  47.     if #Scenes < 1 then
  48.         return
  49.     end
  50.     return Scenes[random(1, #Scenes)]
  51. end
  52.  
  53. ModelList = {
  54.     max_scenes = 1,            -- number of scenes you use to shuffle through
  55.     fade_duration = 1,         -- fade animation duration in seconds (to next scene if more than 1 exists)
  56.     sceneData = {
  57.         {10,"Interface/GlueXML/Background.blp"}
  58.     },
  59.     loginscreendata = GetRandomScene(),
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement