Advertisement
Guest User

Untitled

a guest
Aug 28th, 2015
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.18 KB | None | 0 0
  1. missingcorpses = {
  2.     111,
  3.     4015,
  4.     4019,
  5.     4023,
  6.     4028,
  7.     4107,
  8.     4108,
  9.     4111,  
  10.     4129,
  11.     4136,
  12.     4182,
  13.     4183,
  14.     4184,
  15.     4221,
  16.     4222,
  17.     4223,
  18.     4243,
  19.     4244,
  20.     4245,
  21.     4246,
  22.     4251,
  23.     4252,
  24.     4258,
  25.     4272,
  26.     4273,
  27.     4290,
  28.     4292,
  29.     4299,
  30.     4301,
  31.     4302,
  32.     5526,
  33.     5527,
  34.     5762,
  35.     5965,
  36.     6020,
  37.     6022,
  38.     6033,
  39.     6068,  
  40.     6080,
  41.     6081,
  42.     6082,
  43.     6083,
  44.     6084,
  45.     6560,
  46.     7535,
  47.     7538,
  48.     7539,
  49.     7540,
  50.     8132,
  51.     8133,
  52.     8134,
  53.     8135,
  54.     8866,
  55.     8867,
  56.     8868,
  57.     8869,
  58.     9695,
  59.     10382,
  60.     10383,
  61.     11317,
  62.     11319,
  63.     11320,
  64.     11321,
  65.     11322,
  66.     11323,
  67.     11324,
  68.     11325,
  69.     11326,
  70.     11327,
  71.     11589,
  72.     11590,
  73.     12816,
  74.     18098,
  75.     18099,
  76.     18100,
  77.     18101,
  78.     18274,
  79.     18275,
  80.     18276,
  81.     18277,
  82.     18294,
  83.     18295,
  84.     18296,
  85.     18297,
  86.     18298,
  87.     18299,
  88.     18300,
  89.     18301,
  90.     18310,
  91.     18311,
  92.     18312,
  93.     19051,
  94.     19055,
  95.     19056,
  96.     19057,
  97.     21863,
  98.     21864,
  99.     21865,
  100.     21866,
  101.     21887,
  102.     21913,
  103.     21940,
  104.     21941,
  105.     21942,
  106.     21943,
  107.     21960,
  108.     21961,
  109.     21978,
  110.     21980,
  111. }
  112.  
  113. missingids = {
  114.     5008,
  115.     5952,
  116.     5956,
  117.     10866,
  118.     10867,
  119.     10868,
  120.     10869,
  121.     10971,
  122.     10972,
  123.     10973,
  124.     10974,
  125.     10980,
  126.     11150,
  127.     11151,
  128.     11214,
  129.     11215,
  130.     11216,
  131.     11217,
  132.     11218,
  133.     11219,
  134.     11380,
  135.     11381,
  136.     11382,
  137.     11383,
  138.     11384,
  139.     11385,
  140.     11386,
  141.     11387,
  142.     11388,
  143.     11389,
  144.     11390,
  145.     11391,
  146.     11392,
  147.     11393,
  148.     11542,
  149.     11543,
  150.     11698,
  151.     12420,
  152.     12510,
  153.     12734,
  154.     12794,
  155.     12815,
  156.     12820,
  157.     12962,
  158.     13026,
  159.     13027,
  160.     13028,
  161.     13138,
  162.     13139,
  163.     13140,
  164.     13141,
  165.     13145,
  166.     13146,
  167.     13147,
  168.     13148,
  169.     13337,
  170.     13338,
  171.     13339,
  172.     13340,
  173.     13368,
  174.     13369,
  175.     13370,
  176.     13371,
  177.     13372,
  178.     13373,
  179.     13374,
  180.     13375,
  181.     13398,
  182.     13399,
  183.     13401,
  184.     13402,
  185.     13403,
  186.     13404,
  187.     13405,
  188.     13406,
  189.     13407,
  190.     13408,
  191.     13409,
  192.     13410,
  193.     13411,
  194.     13412,
  195.     13494,
  196.     13495,
  197.     13496,
  198.     13497,
  199.     13498,
  200.     13895,
  201.     13896,
  202.     14065,
  203.     14072,
  204.     14073,
  205.     14205,
  206.     14206,
  207.     14207,
  208.     14208,
  209.     14209,
  210.     14210,
  211.     14211,
  212.     14212,
  213.     14213,
  214.     14214,
  215.     14215,
  216.     14216,
  217.     14217,
  218.     14218,
  219.     14226,
  220.     14227,
  221.     14228,
  222.     14229,
  223.     14230,
  224.     14231,
  225.     14232,
  226.     14233,
  227.     14234,
  228.     14235,
  229.     14236,
  230.     15601,
  231.     15602,
  232.     15603,
  233.     15604,
  234.     15609,
  235.     15610,
  236.     15697,
  237.     15699,
  238.     15700,
  239.     15827,
  240.     15902,
  241.     15903,
  242.     15904,
  243.     15905,
  244.     17113,
  245.     17511,
  246.     17512,
  247.     17520,
  248.     17521,
  249.     17522,
  250.     17523,
  251.     17524,
  252.     19065,
  253.     19066,
  254.     19246,
  255.     19247,
  256.     19249,
  257.     19400,
  258.     20129,
  259.     20136,
  260.     20232,
  261.     20265,
  262.     20325,
  263.     20326,
  264.     20327,
  265.     20358,
  266.     20359,
  267.     20360,
  268.     20361,
  269.     20362,
  270.     20363,
  271.     20367,
  272.     20368,
  273.     20369,
  274.     20370,
  275.     20372,
  276.     20889,
  277.     21047,
  278.     21049,
  279.     21141,
  280.     21142,
  281.     21147,
  282.     21150,
  283.     21154,
  284.     21155,
  285.     21156,
  286.     21159,
  287.     21161,
  288.     21212,
  289.     21213,
  290.     21214,
  291.     21215,
  292.     21216,
  293.     21278,
  294.     21279,
  295.     21280,
  296.     21281,
  297.     21282,
  298.     21283,
  299.     21301,
  300.     21335,
  301.     21336,
  302.     21387,
  303.     21392,
  304.     21393,
  305.     21395,
  306.     21396,
  307.     21397,
  308.     21398,
  309.     21399,
  310.     21402,
  311.     21419,
  312.     21420,
  313.     21421,
  314.     21422,
  315.     21423,
  316.     21424,
  317.     21425,
  318.     21426,
  319.     21438,
  320.     21443,
  321.     21462,
  322.     21463,
  323.     21464,
  324.     21465,
  325.     21468,
  326.     21488,
  327.     21489,
  328.     21490,
  329.     21491,
  330.     21492,
  331.     21493,
  332.     21494,
  333.     21495,
  334.     21496,
  335.     21497,
  336.     21498,
  337.     21499,
  338.     21500,
  339.     21501,
  340.     21504,
  341.     21506,
  342.     21554,
  343.     21572,
  344.     21573,
  345.     21706,
  346.     21707,
  347.     21708,
  348.     21709,
  349.     21710,
  350.     21711,
  351.     21737,
  352.     21743,
  353.     21744,
  354.     21748,
  355.     21752,
  356.     21772,
  357.     21773,
  358.     21774,
  359.     21778,
  360.     21779,
  361.     21780,
  362.     21781,
  363.     21782,
  364.     21783,
  365.     21784,
  366.     21785,
  367.     21786,
  368.     21788,
  369.     21789,
  370.     21790,
  371.     21792,
  372.     21793,
  373.     21802,
  374.     21806,
  375.     21807,
  376.     21808,
  377.     21809,
  378.     21810,
  379.     21811,
  380.     21813,
  381.     21815,
  382.     21817,
  383.     21818,
  384.     21826,
  385.     21827,
  386.     21828,
  387.     21829,
  388.     21830,
  389.     21831,
  390.     21832,
  391.     21833,
  392.     21834,
  393.     21835,
  394.     21836,
  395.     21838,
  396.     21840,
  397.     21842,
  398.     21843,
  399.     21844,
  400.     21845,
  401.     21846,
  402.     21847,
  403.     21848,
  404.     21849,
  405.     21851,
  406.     21852,
  407.     21854,
  408.     21855,
  409.     21858,
  410.     21867,
  411.     21871,
  412.     21878,
  413.     21880,
  414.     21881,
  415.     21934,
  416.     21938,
  417.     21939,
  418.     21945,
  419.     21950,
  420.     21964,
  421.     21965,
  422.     21967,
  423.     21968,
  424.     21971,
  425.     21972,
  426.     22058,
  427.     22059,
  428.     22063,
  429.     22064,
  430.     22075,
  431.     22076,
  432.     22077,
  433.     22088,
  434.     22113,
  435.     22114,
  436.     22115,
  437.     22116,
  438.     22117,
  439.     22127,
  440.     22128,
  441.     22129,
  442.     22130,
  443.     22134,
  444. }
  445.  
  446. local huds = {}
  447. local hudcount = 0
  448. local alrdychecked = {}
  449. while true do
  450.     for x = -7, 7, 1 do
  451.         for y = -5, 5, 1 do
  452.             local id = Map.GetTopMoveItem(Self.Position().x + x, Self.Position().y + y, Self.Position().z).id
  453.             if (table.contains(missingcorpses, id) or table.contains(missingids, id)) and not table.contains(alrdychecked, id) then
  454.                 alrdychecked[#alrdychecked+1] = id
  455.                 txt = (type(id) ~= nil and id.."" or "0") .. " ==> " .. Self.Position().x + x .. ", " .. Self.Position().y + y .. ", " .. Self.Position().z
  456.                 if not huds[txt] then
  457.                     alert()
  458.                     huds[txt] = HUD.New(30, 30 + hudcount * 40, id, 255, 255, 255):SetItemSize(32)
  459.                     huds[txt.."_sub"] = HUD.New(75, 43 + hudcount * 40, txt .. " (x-off: " .. x .. ", y-off: " .. y .. ")", 255, 255, 255)
  460.                     hudcount = hudcount + 1
  461.                 end
  462.             end
  463.  
  464.             local id = Map.GetTopUseItem(Self.Position().x + x, Self.Position().y + y, Self.Position().z).id
  465.             if (table.contains(missingcorpses, id) or table.contains(missingids, id)) and not table.contains(alrdychecked, id) then
  466.                 alrdychecked[#alrdychecked+1] = id
  467.                 txt = (type(id) ~= nil and id.."" or "0") .. " ==> " .. Self.Position().x + x .. ", " .. Self.Position().y + y .. ", " .. Self.Position().z
  468.                 if not huds[txt] then
  469.                     alert()
  470.                     huds[txt] = HUD.New(30, 30 + hudcount * 40, id, 255, 255, 255):SetItemSize(32)
  471.                     huds[txt.."_sub"] = HUD.New(75, 43 + hudcount * 40, txt .. " (x-off: " .. x .. ", y-off: " .. y .. ")", 255, 255, 255)
  472.                     hudcount = hudcount + 1
  473.                 end
  474.             end
  475.  
  476.             local id = Map.GetTopTargetObject(Self.Position().x + x, Self.Position().y + y, Self.Position().z).id
  477.             if (table.contains(missingcorpses, id) or table.contains(missingids, id)) and not table.contains(alrdychecked, id) then
  478.                 alrdychecked[#alrdychecked+1] = id
  479.                 txt = (type(id) ~= nil and id.."" or "0") .. " ==> " .. Self.Position().x + x .. ", " .. Self.Position().y + y .. ", " .. Self.Position().z
  480.                 if not huds[txt] then
  481.                     alert()
  482.                     huds[txt] = HUD.New(30, 30 + hudcount * 40, id, 255, 255, 255):SetItemSize(32)
  483.                     huds[txt.."_sub"] = HUD.New(75, 43 + hudcount * 40, txt .. " (x-off: " .. x .. ", y-off: " .. y .. ")", 255, 255, 255)
  484.                     hudcount = hudcount + 1
  485.                 end
  486.             end
  487.         end
  488.     end
  489.  
  490.     for index = 0, 15 do
  491.         local container = Container.New(index)
  492.         if container:isOpen() then
  493.             for spot = 0, container:ItemCount() - 1 do
  494.                 local id = container:GetItemData(spot).id
  495.                 if (table.contains(missingcorpses, id) or table.contains(missingids, id)) and not table.contains(alrdychecked, id) then
  496.                     alrdychecked[#alrdychecked+1] = id
  497.                     txt = id .. " ==> in container '" .. container:Name() .. "'"
  498.                     if not huds[txt] then
  499.                         alert()
  500.                         huds[txt] = HUD.New(30, 30 + hudcount * 40, id, 255, 255, 255):SetItemSize(32)
  501.                         huds[txt.."_sub"] = HUD.New(75, 43 + hudcount * 40, txt, 255, 255, 255)
  502.                         hudcount = hudcount + 1
  503.                     end
  504.                 end
  505.             end
  506.         end
  507.     end
  508. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement