Advertisement
Guest User

Untitled

a guest
Dec 28th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.00 KB | None | 0 0
  1. function onStartup(interval)
  2.  
  3.      math.randomseed(os.time())
  4.  
  5.      local chance = math.random(1, 6)
  6.  
  7.     if (chance == 1) then -- venore
  8.         setGlobalStorageValue(9710, 1)
  9.         Game.createItem(7853, {x = 32833, y = 32081, z = 7})
  10.         Game.createItem(7851, {x = 32834, y = 32081, z = 7})
  11.         Game.createItem(5066, {x = 32834, y = 32081, z = 7})
  12.         Game.createItem(5066, {x = 32833, y = 32081, z = 7})
  13.         gate1 = Game.createItem(6116, {x = 32834, y = 32081, z = 7})
  14.         doSetItemActionId(gate1, 9710)
  15.         print('>> Fury Gate will be active in venore today.')
  16.     elseif (chance == 2) then -- ab'dendriel
  17.         setGlobalStorageValue(9711, 2)
  18.         Game.createItem(7853, {x = 32679, y = 31719, z = 7})
  19.         Game.createItem(7851, {x = 32680, y = 31719, z = 7})
  20.         Game.createItem(5066, {x = 32680, y = 31719, z = 7})
  21.         Game.createItem(5066, {x = 32679, y = 31719, z = 7})
  22.         gate2 = Game.createItem(6116, {x = 32680, y = 31719, z = 7})
  23.         doSetItemActionId(gate2, 9711)
  24.         print('>> Fury Gate will be active in ab dendriel today.')
  25.     elseif (chance == 3) then -- thais
  26.         setGlobalStorageValue(9712, 3)
  27.         Game.createItem(5064, {x = 32264, y = 32163, z = 7})
  28.         Game.createItem(5064, {x = 32264, y = 32164, z = 7})
  29.         Game.createItem(7852, {x = 32264, y = 32164, z = 7})
  30.         Game.createItem(7853, {x = 32264, y = 32163, z = 7})
  31.         Game.createItem(5064, {x = 32265, y = 32163, z = 7})
  32.         Game.createItem(5064, {x = 32265, y = 32164, z = 7})
  33.         gate3 = Game.createItem(6117, {x = 32264, y = 32164, z = 7})
  34.         doSetItemActionId(gate3, 9712)
  35.         print('>> Fury Gate will be active in  thais today.')
  36.     elseif (chance == 4) then -- carlin
  37.         setGlobalStorageValue(9713, 4)
  38.         Game.createItem(5066, {x = 32262, y = 31848, z = 7})
  39.         Game.createItem(5066, {x = 32263, y = 31848, z = 7})
  40.         Game.createItem(7853, {x = 32262, y = 31848, z = 7})
  41.         Game.createItem(7851, {x = 32263, y = 31848, z = 7})
  42.         gate4 = Game.createItem(6116, {x = 32263, y = 31848, z = 7})
  43.         doSetItemActionId(gate4, 9713)
  44.         print('>> Fury Gate will be active in carlin today.')
  45.     elseif (chance == 5) then -- edron
  46.         setGlobalStorageValue(9714, 5)
  47.         Game.createItem(5066, {x = 33220, y = 31922, z = 7})
  48.         Game.createItem(5066, {x = 33221, y = 31922, z = 7})
  49.         Game.createItem(7853, {x = 33220, y = 31922, z = 7})
  50.         Game.createItem(7851, {x = 33221, y = 31922, z = 7})
  51.         Game.createItem(5066, {x = 33220, y = 31923, z = 7})
  52.         Game.createItem(5066, {x = 33221, y = 31923, z = 7})
  53.         gate5 = Game.createItem(6116, {x = 33221, y = 31922, z = 7})
  54.         doSetItemActionId(gate5, 9714)
  55.         print('>> Fury Gate will be active in edron today.')
  56.     elseif (chance == 6) then -- kazordoon
  57.         setGlobalStorageValue(9716, 6)
  58.         Game.createItem(5066, {x = 32573, y = 31982, z = 7})
  59.         Game.createItem(5066, {x = 32574, y = 31982, z = 7})
  60.         Game.createItem(7853, {x = 32573, y = 31982, z = 7})
  61.         Game.createItem(7851, {x = 32574, y = 31982, z = 7})
  62.         gate6 = Game.createItem(6116, {x = 32574, y = 31982, z = 7})
  63.         doSetItemActionId(gate6, 9716)
  64.         print('>> Fury Gate will be active in kazordoon today.')
  65.     end
  66.     return true
  67. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement