Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("crate")
- --ZQFRMy0D
- function RandomNumbers()
- Y1 = math.random(42)
- Y2 = math.random(42)
- Y3 = math.random(42)
- Y4 = math.random(42)
- Y5 = math.random(42)
- Y6 = math.random(42)
- Y7 = math.random(42)
- Y8 = math.random(42)
- Y9 = math.random(42)
- X = math.random(13)
- X1 = math.random(13)
- Z1 = math.random(42)
- Z2 = math.random(42)
- Z3 = math.random(42)
- Z4 = math.random(42)
- Z5 = math.random(42)
- Z6 = math.random(42)
- Z7 = math.random(42)
- Z8 = math.random(42)
- Z9 = math.random(42)
- A = math.random(18)
- A1 = math.random(18)
- A2 = math.random(18)
- A3 = math.random(18)
- B = math.random(34)
- B1 = math.random(34)
- B2 = math.random(34)
- B3 = math.random(34)
- B4 = math.random(34)
- B5 = math.random(34)
- C = math.random(26)
- D = math.random(27)
- -- First, you need to make a table with all the items.
- Cache1Melee = {6099, 6056, 6072, 6109, 6221, 6069, 6125, 6139, 6178, 6321, 6300, 6129, 6150}
- Cache1Misc = {6168, 6079, 6090, 6184, 6181, 6123, 6390, 6137, 5460, 6055, 5461, 4845, 4698, 4517, 4518, 4516, 5227, 5228}
- Cache1Gear = {6094, 6253, 6067, 6070, 6083, 6187, 6301, 6250, 6245, 6133, 6217, 6372, 6102, 6237, 6191, 6142, 6334, 6216, 6310, 6089, 5490, 6215, 6261, 6317, 6203, 6254, 6246, 5538, 6210, 6353, 6324, 6062, 5493, 5491, 5494, 5492, 5488, 5486, 5489, 5487, 310, 311, 312, 313, 5484, 5482, 5485, 5483, 5617, 5615, 5618, 5616, 5481, 6141}
- Cache1Guns = {4985, 4985, 5107, 5221, 5178, 5199, 5209, 5193, 5186, 5186, 4957, 4957, 5140, 5196, 5194, 5222, 5187, 5179, 5188, 4979, 4981, 5212, 5195, 4995, 4962, 5213, 5190, 5189, 5177, 5197, 5198, 5204, 5203, 5157, 4960, 4968, 5176, 5182, 5192, 5181}
- Cache1Ammo = { 4593, 4594, 4735, 4764, 4765, 4765, 4768, 4792, 4766, 4767, 4567, 4566, 4795, 4790, 4790, 4791, 4775, 4776, 4776, 4586, 4588, 4763, 4762, 4604, 4572, 4775, 4784, 4784, 4784, 4784, 4784, 4774, 4776, 4789, 4570, 4570, 4793, 4794, 4794, 4781}
- Cache1Attach = {4813, 4822, 4806, 4815, 4824, 4797, 4796, 4823, 4814, 4817, 4826, 4798, 4799, 4825, 4816, 4807, 4804, 4805, 4808, 4809, 4820, 4811, 4810, 4819, 4828, 4800, 4827, 4832, 4812, 4830, 4821, 4829, 4803, 4802, 4801, 4818, 4833, 4831}
- Cache2RocketL = {4965, 4965, 4965, 4966, 4966, 4966, 4955, 5123, 5100, 5122, 5124, 5000, 4989, 4982, 4994, 5095, 5095, 5095, 5057, 5057, 5057, 5057, 5058, 5058, 5058, 5058, 5055, 5055, 5055, 4904, 4902, 5094, 4896, 4885}
- Cache2Rockets = {4842, 4841, 4836, 4840, 4834, 4843, 4564, 4749, 4726, 4748, 4750, 4609, 4599, 4589, 4603, 4665, 4664, 4663, 4656, 4655, 4654, 4653, 4657, 4660, 4659, 4658, 4650, 4649, 4648, 4507, 4503, 4716, 4500, 4485}
- Cache3SifiGuns = {4869, 4870, 5081, 5081, 5091, 5093, 4871, 5069, 5066, 5092, 4887, 4881, 4884, 4892, 4882, 4890, 5078, 4895, 4945, 4879, 4888, 4883, 4893, 4894, 4878, 4889, 4948}
- Cache3SifiAmmo = { 4465, 4483, 4692, 4691, 4713, 4715, 4489, 4682, 4693, 4714, 4491, 4484, 4488, 4496, 4486, 4494, 4709, 4499, 4555, 4478, 4492, 4487, 4497, 4498, 4477, 4493, 4558}
- Guns1 = {
- {id = Cache1Melee[X], count = 1, slot = 23},
- {id = Cache1Misc[A], count = math.random(3), slot = 24},
- {id = Cache1Misc[A1], count = math.random(3), slot = 25},-- note: data is
- {id = Cache1Guns[Y1], count = 1, slot = 0},
- {id = Cache1Guns[Y2], count = 1, slot = 1},
- {id = Cache1Guns[Y3], count = 1, slot = 2},
- {id = Cache1Guns[Y4], count = 1, slot = 3},
- {id = Cache1Guns[Y5], count = 1, slot = 4},
- {id = Cache1Guns[Y6], count = 1, slot = 5},
- {id = Cache1Guns[Y7], count = 1, slot = 6},
- {id = Cache1Guns[Y8], count = 1, slot = 7},
- {id = Cache1Guns[Y9], count = 1, slot = 8},
- {id = Cache1Ammo[Y1], count = math.random(6), slot = 9},
- {id = Cache1Ammo[Y2], count = math.random(6), slot = 10},
- {id = Cache1Ammo[Y3], count = math.random(6), slot = 11},
- {id = Cache1Ammo[Y4], count = math.random(6), slot = 12},
- {id = Cache1Ammo[Y5], count = math.random(6), slot = 13},
- {id = Cache1Ammo[Y6], count = math.random(6), slot = 14},
- {id = Cache1Ammo[Y7], count = math.random(6), slot = 15},
- {id = Cache1Ammo[Y8], count = math.random(6), slot = 16},
- {id = Cache1Ammo[Y9], count = math.random(6), slot = 17},
- {id = Cache1Attach[B2], count = math.random(3), slot = 20},
- {id = 5632, count = 1, slot = 19},
- {id = 5630, count = 1, slot = 18}
- }
- Guns2 = {
- {id = Cache1Melee[X1], count = 1, slot = 23},
- {id = Cache1Misc[A2], count = math.random(3), slot = 24},
- {id = Cache1Misc[A3], count = math.random(3), slot = 25},-- note: data is
- {id = Cache1Guns[Z1], count = 1, slot = 0},
- {id = Cache1Guns[Z2], count = 1, slot = 1},
- {id = Cache1Guns[Z3], count = 1, slot = 2},
- {id = Cache1Guns[Z4], count = 1, slot = 3},
- {id = Cache1Guns[Z5], count = 1, slot = 4},
- {id = Cache1Guns[Z6], count = 1, slot = 5},
- {id = Cache1Guns[Z7], count = 1, slot = 6},
- {id = Cache1Guns[Z8], count = 1, slot = 7},
- {id = Cache1Guns[Z9], count = 1, slot = 8},
- {id = Cache1Ammo[Z1], count = math.random(6), slot = 9},
- {id = Cache1Ammo[Z2], count = math.random(6), slot = 10},
- {id = Cache1Ammo[Z3], count = math.random(6), slot = 11},
- {id = Cache1Ammo[Z4], count = math.random(6), slot = 12},
- {id = Cache1Ammo[Z5], count = math.random(6), slot = 13},
- {id = Cache1Ammo[Z6], count = math.random(6), slot = 14},
- {id = Cache1Ammo[Z7], count = math.random(6), slot = 15},
- {id = Cache1Ammo[Z8], count = math.random(6), slot = 16},
- {id = Cache1Ammo[Z9], count = math.random(6), slot = 17},
- {id = Cache1Attach[B3], count = math.random(3), slot = 18},
- {id = Cache1Attach[B4], count = math.random(3), slot = 19},
- {id = Cache1Attach[B5], count = math.random(3), slot = 20}
- }
- Rockets = {
- {id = Cache1Melee[X], count = 1, slot = 23},
- {id = Cache1Misc[A], count = math.random(3), slot = 24},
- {id = Cache1Misc[A1], count = math.random(3), slot = 25},-- note: data is
- {id = Cache2RocketL[Y1], count = 1, slot = 0},
- {id = Cache2RocketL[Y2], count = 1, slot = 1},
- {id = Cache2RocketL[Y3], count = 1, slot = 2},
- {id = Cache2RocketL[Y4], count = 1, slot = 3},
- {id = Cache2RocketL[Y5], count = 1, slot = 4},
- {id = Cache2RocketL[Y6], count = 1, slot = 5},
- {id = Cache2RocketL[Y7], count = 1, slot = 6},
- {id = Cache2RocketL[Y8], count = 1, slot = 7},
- {id = Cache2RocketL[Y9], count = 1, slot = 8},
- {id = Cache2Rockets[Y1], count = math.random(6), slot = 9},
- {id = Cache2Rockets[Y2], count = math.random(6), slot = 10},
- {id = Cache2Rockets[Y3], count = math.random(6), slot = 11},
- {id = Cache2Rockets[Y4], count = math.random(6), slot = 12},
- {id = Cache2Rockets[Y5], count = math.random(6), slot = 13},
- {id = Cache2Rockets[Y6], count = math.random(6), slot = 14},
- {id = Cache2Rockets[Y7], count = math.random(6), slot = 15},
- {id = Cache2Rockets[Y8], count = math.random(6), slot = 16},
- {id = Cache2Rockets[Y9], count = math.random(6), slot = 17},
- {id = Cache1Attach[B2], count = math.random(3), slot = 20},
- {id = 5632, count = 1, slot = 19},
- {id = 5630, count = 1, slot = 18}
- }
- SifiGuns = {
- {id = Cache1Melee[X], count = 1, slot = 23},
- {id = Cache1Misc[A], count = math.random(3), slot = 24},
- {id = Cache1Misc[A1], count = math.random(3), slot = 25},-- note: data is
- {id = Cache3SifiGuns[Y1], count = 1, slot = 0},
- {id = Cache3SifiGuns[Y2], count = 1, slot = 1},
- {id = Cache3SifiGuns[Y3], count = 1, slot = 2},
- {id = Cache3SifiGuns[Y4], count = 1, slot = 3},
- {id = Cache3SifiGuns[Y5], count = 1, slot = 4},
- {id = Cache3SifiGuns[Y6], count = 1, slot = 5},
- {id = Cache3SifiGuns[Y7], count = 1, slot = 6},
- {id = Cache3SifiGuns[Y8], count = 1, slot = 7},
- {id = Cache3SifiGuns[Y9], count = 1, slot = 8},
- {id = Cache3SifiAmmo[Y1], count = math.random(6), slot = 9},
- {id = Cache3SifiAmmo[Y2], count = math.random(6), slot = 10},
- {id = Cache3SifiAmmo[Y3], count = math.random(6), slot = 11},
- {id = Cache3SifiAmmo[Y4], count = math.random(6), slot = 12},
- {id = Cache3SifiAmmo[Y5], count = math.random(6), slot = 13},
- {id = Cache3SifiAmmo[Y6], count = math.random(6), slot = 14},
- {id = Cache3SifiAmmo[Y7], count = math.random(6), slot = 15},
- {id = Cache3SifiAmmo[Y8], count = math.random(6), slot = 16},
- {id = Cache3SifiAmmo[Y9], count = math.random(6), slot = 17},
- {id = Cache1Attach[B2], count = math.random(3), slot = 20},
- {id = 5632, count = 1, slot = 19},
- {id = 5630, count = 1, slot = 18}
- }
- end
- x, y, z = commands.getBlockPosition()
- -- Then, summonCrate(xCoords, yCoords, zCoords, table with items)
- while true do
- sleep(1)
- Counter = math.random(2)
- Counter2 = math.random(1)
- print("Counter: "..Counter)
- print("Counter2:"..Counter2)
- if Counter == 0 then
- if Counter2 == 0 then
- print("Counter2 0")
- RandomNumbers()
- crate.summonCrate(266, 150, 290, Guns1)
- crate.summonCrate(267, 150, 290, Guns2)
- end
- if Counter2 == 1 then
- print("Counter2 1")
- RandomNumbers()
- crate.summonCrate(283, 150, 199, Guns1)
- crate.summonCrate(282, 150, 199, Guns2)
- end
- print("Counter 0")
- sleep(60*10)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement