Advertisement
Guest User

test

a guest
Apr 29th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.41 KB | None | 0 0
  1. Teir1Guns = {5210, 5180, 5182, 5192, 5208, 5216, 5207, 5226, 4959, 4954, 4977, 4983, 4984, 4986, 4975, 4998, 5001, 5002, 4991, 4990, 9130, 5126, 5134, 5225, 5068, 5083, 5113, 5025, 5115}
  2. Teir1Ammo = {4779, 4786, 4788, 4780, 4794, 4770, 4787, 4675, 4759, 4783, 4741, 4600, 4601, 4591, 4611, 4613, 4596, 4596, 4563, 4606, 4584, 4590, 4752, 4607, 4769, 4582, 4791}
  3. Misc = {4846, 4852, 5111, 5457, 4815, 5636, 5639, 5638, 5637}
  4. Teir1Gear = {5671, 5648, 5649, 5659, 5647, 5660, 5672, 5646, 5658, 5670, 5669}
  5. Teir1Cars = {5755, 5758, 5757, 5756, 5754, 5753, 5747, 5749, 5745, 5743, 5746, 5744, 5752, 5751, 5750, 5760, 5759, 5347, 5349, 5350, 5351, 5352, 5353, 5330, 5344, 5345, 5346, 5348, 5342, 5333, 5336, 5337, 5335, 5332, 5331, 5301, 5300, 5302, 5341, 5340, 5339, 5338, 5329, 5334, 5299, 5298, 5297, 5306, 5315, 5314, 5313, 5312, 5311, 5304, 5324, 5323, 5322, 5321, 5305, 5310, 5296, 5303, 5325, 5326, 5316, 5317, 5309, 5307, 5319, 5308, 5320, 5318, 5328, 5327, 5283, 5261, 5258, 5259, 5269, 5270, 5277, 5275, 5274, 5273, 5759, 5748, 5327, 5272, 5271, 5278, 5279, 5282}
  6. Teir1Heil = {5671, 5648, 5649, 5659, 5647, 5660, 5672, 5646, 5658, 5670, 5669}
  7. Teir1Plane = {5683, 5682, 5699, 5700}
  8. Teir2Guns = {5145, 4978, 5164, 5174, 5190, 5189, 4964, 5218, 5219, 5171, 5170, 4987, 4956, 5205, 4973, 4996, 5129, 5125, 4961, 4953, 5120, 5127, 4988, 5128, 5177, 5138, 5139, 5183, 5131, 5147, 5197, 5198, 5203, 5159, 5184, 5167, 4974}
  9. Teir2Ammo = {4504, 4768, 4581, 4571, 4757, 4562, 4585, 4730, 4743, 4506, 4722, 4598, 4597, 4754, 4753, 4580, 4605, 4755, 4751, 4746, 4783, 4772, 4573, 4776, 4782, 4791, 4565, 4784, 4785}
  10. Teir2Gear = {5577, 5566, 5575, 5552, 5576, 5553, 5554, 5555, 5556, 5563, 5564, 5565, 5574, 5573, 5571, 5570, 5568, 5567, 5582, 5569, 5558, 5557, 5559, 5562, 5560, 5561, 5572, 5587, 5586, 5585, 5584, 5583, 5578, 5580, 5581, 5592, 5579, 5600, 5599, 5598, 5604, 5610, 5601, 5602, 5603, 5605, 5606, 5607, 5608, 5609, 5589, 5592, 5590, 5588, 5597}
  11. Teir2Cars = {5289, 5239, 5748, 5383, 5383, 5284, 5380, 5379, 5393, 5276, 5286, 5285, 5277, 5278, 5279, 5280, 5281, 5290, 5291, 5292, 5293}
  12. Teir2Heli = {5428, 5706, 5650, 5643, 5653, 5654, 5651}
  13. Teir2Plane = {4709, 5677}
  14. Teir3Guns = {5195, 5196, 5176, 5181, 5179, 5188, 5201, 5213, 5212, 5106, 5099, 5117, 5209, 5221, 5135, 5217, 5102, 5103, 4960, 4971, 4951, 5105, 4993, 4967, 5003, 4965, 4976, 4979, 4999, 4980, 4972, 4952, 4962, 4963, 4906, 4899}
  15. Teir3Ammo = {4733, 4775, 4793, 4789, 4764, 4776, 4763, 4768, 4781, 4762, 4733, 4725, 4760, 4744, 4730, 4771, 4602, 4732, 4578, 4568, 4505, 4561, 4768, 4729, 4575, 4570, 4840, 4583, 4579, 4587, 4608, 4586, 4574, 4572, 4615, 4614, 4506}
  16. Teir3Gear = {6011, 6046, 5897, 5871, 5866, 5886, 5845, 5795, 5768, 6029, 5934, 5904, 5898, 5959, 5960, 5931, 5992, 5982, 5497, 5498, 5507, 5508, 5509, 5510, 5511, 5792, 5830, 5518, 5517, 5516, 5515, 5514, 5513, 5512, 5495, 5496, 5872, 5968, 5799, 5804, 5962, 5785, 6015, 5520, 5519, 5617, 5615, 5618, 5616, 5837, 5902, 5819, 5794, 5991, 5786, 5770}
  17. Teir3Cars = {5384, 5386, 5385, 5387, 5388, 5390, 5389, 5391, 5392, 5381, 5378}
  18. Teir3Heil = {5429, 5644, 5645, 5642, 5656, 5655, 5662, 5661, 5663, 5427, 5433, 5431, 5697, 5668, 5698, 5651, 5665, 5667}
  19. Teir3Plane = {5437, 5438, 5439, 5441, 5440, 5442, 5443, 5444, 5430, 5435, 5432, 5434, 5681, 5691, 5704}
  20. Teir3Boat = {5711, 5701, 5720}
  21. -- ^ Loot Tables
  22. function LootSpawn()
  23. X = math.random(1, 4) --Teirs of Loot
  24. Y = math.random(1, 7) -- What to Spawn(Guns, ammo, ect)
  25. if X == 1 then
  26.   if Y == 1 then -- Common
  27.     commands.give("@p", Teir1Guns[math.random(3)], 1)
  28.     commands.give("@p", Teir1Ammo[math.random(20)], math.random(6))
  29.     commands.give("@p", Teir1Gear[math.random(4)],
  30.     commands.give("@p", Misc[math.random(10)], math.random(3) math.random(6))
  31.   end
  32.   if Y == 2 then -- Uncommon
  33.      commands.give("@p", Teir1Guns[math.random(6)], 1)
  34.      commands.give("@p", Teir1Ammo[math.random(20)], math.random(6))
  35.      commands.give("@p", Teir1Gear[math.random(6)], math.random(6))
  36.   end
  37.    
  38.  
  39.   if Y == 3 then -- Rare
  40.  
  41.   end
  42.   if Y == 4 then -- More Rare
  43.  
  44.   end
  45.   if Y == 5 then -- Very Rare(Cars)
  46.  
  47.   end
  48.   if Y == 6 then -- Extremely Rare(Helis and Cars)
  49.  
  50.   end
  51.   if Y == 7 then -- Most Rare
  52.  
  53.   end
  54. end  
  55. if X == 2 then
  56.   if Y == 1 then
  57.     commands.give("@p"
  58.   end
  59. end
  60. end
  61. while true do
  62. os.pullEvent("redstone")
  63. if redstone.getInput("back") then --Player Will push a Button then get loot then take 15 mins to reset loot.
  64. LootSpawn()
  65. end
  66. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement