Advertisement
Guest User

Untitled

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