content
stringlengths
5
1.05M
-- Picks out 'targets' from a stimulation stream -- this function is called when the box is initialized function initialize(box) dofile(box:get_config("${Path_Data}") .. "/plugins/stimulation/lua-stimulator-stim-codes.lua") state = 0 box:set_filter_mode(1); do_debug = false end -- this function is called when the box is uninitialized function uninitialize(box) end -- this function is called once by the box function process(box) -- loop until box:keep_processing() returns zero -- cpu will be released with a call to sleep -- at the end of the loop while box:keep_processing() do -- gets current simulated time t = box:get_current_time() -- loops on every received stimulation for a given input for stimulation = 1, box:get_stimulation_count(1) do -- gets stimulation stimulation_id, stimulation_time, stimulation_duration = box:get_stimulation(1, 1) if stimulation_id == OVTK_StimulationId_RestStart then state = 1 elseif stimulation_id == OVTK_StimulationId_RestStop then state = 0 end -- If we're between 'rest start' and 'rest_stop', this specifies a target if state == 1 and stimulation_id >= OVTK_StimulationId_LabelStart and stimulation_id <= OVTK_StimulationId_LabelEnd then box:send_stimulation(1, stimulation_id, stimulation_time, 0) if do_debug then box:log("Info", string.format("Push a target %d at %f (now = %f)", stimulation_id, stimulation_time, t)) end end -- discards it box:remove_stimulation(1, 1) end -- releases cpu box:sleep() end end
local result = {} local insert = table.insert local remove = table.remove local rcall = redis.call math.randomseed(tonumber(tostring({}):match('0x(.*)$'),16)) local fields = rcall('hkeys', KEYS[1]) for i=1, ARGV[1], 1 do if nil ~= next(fields) then local field = remove(fields, math.random(#fields)) local value = rcall('hget', KEYS[1], field) insert(result, value) end end return result
pfDB["units"]["data-turtle"] = { [16395] = { ["coords"] = { [1] = { 80.7, 60, 139, 120 }, [2] = { 25.4, 56.6, 141, 120 }, [3] = { 61.7, 74.1, 1519, 120 }, [4] = { 29.4, 60.5, 1537, 120 }, [5] = { 39.4, 46.7, 1657, 120 }, }, ["lvl"] = "55", }, -- Turtle WoW Stormwind NPC Locations -- Please do not make additions below this line. [68] = { ["coords"] = { [1] = { 32.1, 49.9, 12, 900 }, [2] = { 32.5, 49.5, 12, 900 }, [3] = { 66.1, 77.7, 1519, 900 }, [4] = { 75.0, 92.1, 1519, 900 }, [5] = { 73.8, 93.5, 1519, 900 }, [6] = { 66.6, 77.0, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "55", }, [257] = { ["coords"] = { [1] = { 47.6, 31.4, 12, 270 }, [2] = { 51.1, 38.2, 12, 270 }, [3] = { 51.5, 38, 12, 270 }, [4] = { 50.8, 37.9, 12, 270 }, [5] = { 51.3, 37.7, 12, 270 }, [6] = { 51.7, 37.7, 12, 270 }, [7] = { 47.3, 36.6, 12, 270 }, [8] = { 51.5, 36.6, 12, 270 }, [9] = { 52.2, 36.4, 12, 270 }, [10] = { 51.6, 36.2, 12, 270 }, [11] = { 47.6, 35.9, 12, 270 }, [12] = { 48.2, 35.9, 12, 270 }, [13] = { 52.1, 35.8, 12, 270 }, [14] = { 47.5, 35.8, 12, 270 }, [15] = { 48.8, 35.6, 12, 270 }, [16] = { 51, 35.5, 12, 270 }, [17] = { 49.2, 35.3, 12, 270 }, [18] = { 47.2, 35.1, 12, 270 }, [19] = { 49.3, 34.7, 12, 270 }, [20] = { 49.8, 34.6, 12, 270 }, [21] = { 49.9, 34.3, 12, 270 }, [22] = { 50.2, 34.2, 12, 270 }, [23] = { 48.1, 34, 12, 270 }, [24] = { 47.4, 34, 12, 270 }, [25] = { 50.2, 33.8, 12, 270 }, [26] = { 48.7, 33.8, 12, 270 }, [27] = { 47.1, 33.7, 12, 270 }, [28] = { 48.4, 33.6, 12, 270 }, [29] = { 46.8, 33.4, 12, 270 }, [30] = { 47.4, 33.2, 12, 270 }, [31] = { 48, 33.1, 12, 270 }, [32] = { 50.1, 33.1, 12, 270 }, [33] = { 47.6, 32.9, 12, 270 }, [34] = { 48.9, 32.8, 12, 270 }, [35] = { 46.3, 32.8, 12, 270 }, [36] = { 47.2, 32.6, 12, 270 }, [37] = { 47.5, 32.6, 12, 270 }, [38] = { 46.6, 32.5, 12, 270 }, [39] = { 47.3, 32.3, 12, 270 }, [40] = { 46.3, 32.2, 12, 270 }, [41] = { 47.7, 32, 12, 270 }, [42] = { 47.9, 31.6, 12, 270 }, }, ["lvl"] = "3", }, [277] = { ["coords"] = { [1] = { 60.0, 76.9, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [279] = { ["coords"] = { [1] = { 63.0, 75.9, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [297] = { ["coords"] = { [1] = { 42.5, 72.4, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [331] = { ["coords"] = { [1] = { 49.9, 87.9, 1519, 490 }, }, ["fac"] = "A", ["lvl"] = "60", }, [332] = { ["coords"] = { [1] = { 78.3, 70.7, 1519, 2100 }, }, ["fac"] = "A", ["lvl"] = "62", }, [338] = { ["coords"] = { [1] = { 51.8, 64.2, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "44", }, [340] = { ["coords"] = { [1] = { 77.5, 52.7, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "50", }, [352] = { ["coords"] = { [1] = { 71.0, 72.5, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "55", }, [376] = { ["coords"] = { [1] = { 49.5, 44.6, 1519, 490 }, }, ["fac"] = "A", ["lvl"] = "60", }, -- remove Shagu [420] = "_", -- move Harlan Bagley [1427] = { ["fac"] = "A", ["lvl"] = "12", ["coords"] = { [1] = { 62.3, 68, 1519, 0 }, }, }, [461] = { ["coords"] = { [1] = { 39.2, 85.0, 1519, 490 }, }, ["fac"] = "A", ["lvl"] = "60", }, [466] = { ["coords"] = { [1] = { 69.2, 82.7, 1519, 180 }, }, ["fac"] = "A", ["lvl"] = "62", }, [482] = { ["coords"] = { [1] = { 66.0, 74.1, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [483] = { ["coords"] = { [1] = { 66.6, 73.4, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [525] = { ["coords"] = { [1] = { 29.6, 72.9, 12, 270 }, [2] = { 35.1, 72.4, 12, 270 }, [3] = { 29.6, 72.2, 12, 270 }, [4] = { 28.8, 72.2, 12, 270 }, [5] = { 29.3, 72.2, 12, 270 }, [6] = { 30.3, 72.1, 12, 270 }, [7] = { 30.4, 71.9, 12, 270 }, [8] = { 56.2, 71.5, 12, 270 }, [9] = { 27.7, 71.3, 12, 270 }, [10] = { 31.1, 71.3, 12, 270 }, [11] = { 52.9, 71.3, 12, 270 }, [12] = { 54.9, 71.1, 12, 270 }, [13] = { 35.4, 70.7, 12, 270 }, [14] = { 50.9, 70.5, 12, 270 }, [15] = { 56.7, 70.1, 12, 270 }, [16] = { 35, 70, 12, 270 }, [17] = { 52, 70, 12, 270 }, [18] = { 55.3, 70, 12, 270 }, [19] = { 57.1, 69.7, 12, 270 }, [20] = { 53.1, 69.7, 12, 270 }, [21] = { 51.4, 69.7, 12, 270 }, [22] = { 29.1, 69.6, 12, 270 }, [23] = { 49.7, 69.4, 12, 270 }, [24] = { 36.1, 69.2, 12, 270 }, [25] = { 30.6, 69.1, 12, 270 }, [26] = { 48.8, 68.6, 12, 270 }, [27] = { 46, 68.5, 12, 270 }, [28] = { 46.7, 68.4, 12, 270 }, [29] = { 47.5, 68.2, 12, 270 }, [30] = { 30.6, 68.1, 12, 270 }, [31] = { 47.8, 68, 12, 270 }, [32] = { 32.5, 67.7, 12, 270 }, [33] = { 34.9, 67.5, 12, 270 }, [34] = { 28.3, 67.4, 12, 270 }, [35] = { 35, 66.7, 12, 270 }, [36] = { 34.4, 65.2, 12, 270 }, [37] = { 37.5, 64.9, 12, 270 }, [38] = { 38.5, 63.8, 12, 270 }, [39] = { 52, 63.8, 12, 270 }, [40] = { 52.1, 63.7, 12, 270 }, [41] = { 35.3, 63.4, 12, 270 }, [42] = { 36.9, 63.2, 12, 270 }, [43] = { 52.1, 63, 12, 270 }, [44] = { 52.4, 62.7, 12, 270 }, [45] = { 35.9, 62.6, 12, 270 }, [46] = { 42.5, 62.5, 12, 270 }, [47] = { 34.7, 62.4, 12, 270 }, [48] = { 38.3, 62.2, 12, 270 }, [49] = { 52.4, 62, 12, 270 }, [50] = { 50.8, 61.7, 12, 270 }, [51] = { 55.2, 61.5, 12, 270 }, [52] = { 56.5, 61.5, 12, 270 }, [53] = { 50.5, 61.2, 12, 270 }, [54] = { 35.4, 61.2, 12, 270 }, [55] = { 43.1, 61.1, 12, 270 }, [56] = { 49.6, 61, 12, 270 }, [57] = { 36.8, 60.8, 12, 270 }, [58] = { 58.4, 60.6, 12, 270 }, [59] = { 53.8, 60.4, 12, 270 }, [60] = { 56.8, 60.4, 12, 270 }, [61] = { 57.1, 59.8, 12, 270 }, [62] = { 55, 59.4, 12, 270 }, [63] = { 34.2, 59.3, 12, 270 }, [64] = { 56.4, 59, 12, 270 }, [65] = { 49.5, 58.3, 12, 270 }, [66] = { 33.4, 58.2, 12, 270 }, [67] = { 41.6, 58, 12, 270 }, [68] = { 44.6, 57.8, 12, 270 }, [69] = { 32.1, 56.2, 12, 270 }, [70] = { 32.2, 55.5, 12, 270 }, [71] = { 45.8, 55.4, 12, 270 }, [72] = { 42.8, 55, 12, 270 }, [73] = { 23.6, 77, 12, 270 }, [74] = { 32.4, 76.7, 12, 270 }, [75] = { 21.7, 76.4, 12, 270 }, [76] = { 33.5, 76.1, 12, 270 }, [77] = { 33.1, 75.7, 12, 270 }, [78] = { 28.7, 75.5, 12, 270 }, [79] = { 22.5, 75.5, 12, 270 }, [80] = { 22.2, 75.5, 12, 270 }, [81] = { 34.7, 75.5, 12, 270 }, [82] = { 26.4, 75.3, 12, 270 }, [83] = { 28.5, 74.8, 12, 270 }, [84] = { 21.4, 74.3, 12, 270 }, [85] = { 29.1, 74.3, 12, 270 }, [86] = { 27.6, 74.2, 12, 270 }, [87] = { 35.6, 73.6, 12, 270 }, [88] = { 33.9, 73.6, 12, 270 }, [89] = { 33.6, 73.4, 12, 270 }, [90] = { 29.2, 72.9, 12, 270 }, }, ["lvl"] = "5-6", }, [539] = { ["coords"] = { [1] = { 66.7, 17.9, 10, 300 }, [2] = { 74.8, 17.5, 10, 300 }, [3] = { 66.3, 17.1, 10, 300 }, [4] = { 46.5, 16.7, 10, 300 }, [5] = { 60.8, 16.6, 10, 300 }, [6] = { 68.3, 15.9, 10, 300 }, [7] = { 47.6, 15.9, 10, 300 }, [8] = { 54.5, 14.2, 10, 300 }, [9] = { 53.9, 13.3, 10, 300 }, [10] = { 73.3, 89.2, 12, 300 }, [11] = { 70.2, 64.6, 40, 300 }, [12] = { 69.5, 60.5, 40, 300 }, [13] = { 70.4, 59.1, 40, 300 }, [14] = { 69.6, 57.7, 40, 300 }, [15] = { 69.3, 49.2, 40, 300 }, [16] = { 68.5, 48.1, 40, 300 }, [17] = { 68.4, 45.1, 40, 300 }, [18] = { 13.2, 70.3, 10, 300 }, [19] = { 11.9, 68.9, 10, 300 }, [20] = { 10.1, 66.1, 10, 300 }, [21] = { 11.6, 62.7, 10, 300 }, [22] = { 9.2, 60.8, 10, 300 }, [23] = { 12, 59.2, 10, 300 }, [24] = { 10.4, 59.1, 10, 300 }, [25] = { 9.4, 57.2, 10, 300 }, [26] = { 10.7, 55.4, 10, 300 }, [27] = { 9.5, 53.8, 10, 300 }, [28] = { 10.8, 53, 10, 300 }, [29] = { 12, 51.2, 10, 300 }, [30] = { 9.5, 49.7, 10, 300 }, [31] = { 9, 46.2, 10, 300 }, [32] = { 7.9, 44.8, 10, 300 }, [33] = { 9.4, 42.8, 10, 300 }, [34] = { 7.9, 40.8, 10, 300 }, [35] = { 12.5, 28.8, 10, 300 }, [36] = { 23.8, 27.8, 10, 300 }, [37] = { 28.8, 27.6, 10, 300 }, [38] = { 34, 24.6, 10, 300 }, [39] = { 40.1, 21.8, 10, 300 }, [40] = { 37.1, 21.3, 10, 300 }, [41] = { 72.1, 19, 10, 300 }, [42] = { 69.6, 18.6, 10, 300 }, [43] = { 84.7, 18.4, 10, 300 }, [44] = { 66.4, 18, 10, 270 }, }, ["lvl"] = "18-19", }, [656] = { ["coords"] = { [1] = { 70.3, 40.8, 1519, 285 }, }, ["fac"] = "A", ["lvl"] = "20", }, [721] = { ["coords"] = { [1] = { 67.1, 50.7, 141, 300 }, [2] = { 43.3, 47.9, 141, 300 }, [3] = { 44.2, 47.6, 141, 300 }, [4] = { 59.4, 46.2, 141, 300 }, [5] = { 58.3, 46.1, 141, 300 }, [6] = { 55.2, 45.7, 141, 300 }, [7] = { 42.9, 45.4, 141, 300 }, [8] = { 62.3, 44.1, 141, 300 }, [9] = { 61, 43.8, 141, 300 }, [10] = { 55.3, 43.8, 141, 300 }, [11] = { 58.8, 43.7, 141, 300 }, [12] = { 38.5, 43.2, 141, 300 }, [13] = { 58.8, 41.9, 141, 300 }, [14] = { 54.7, 41.8, 141, 300 }, [15] = { 64.7, 41.6, 141, 300 }, [16] = { 61.3, 39.9, 141, 300 }, [17] = { 59.6, 38.8, 141, 300 }, [18] = { 56.4, 38.8, 141, 300 }, [19] = { 63.5, 37.4, 141, 300 }, [20] = { 60.9, 35.9, 141, 300 }, [21] = { 38.2, 35.2, 141, 300 }, [22] = { 61.4, 33.7, 141, 300 }, [23] = { 57.4, 33, 141, 300 }, [24] = { 59.6, 32.5, 141, 300 }, [25] = { 41.5, 29.8, 141, 300 }, [26] = { 40, 91, 148, 300 }, [27] = { 40.5, 88.7, 148, 300 }, [28] = { 43.9, 86.5, 148, 300 }, [29] = { 40.8, 78.6, 148, 300 }, [30] = { 42.3, 78, 148, 300 }, [31] = { 43.4, 73, 148, 300 }, [32] = { 38.3, 63.7, 148, 300 }, [33] = { 40.8, 60.6, 148, 300 }, [34] = { 40.3, 53.4, 148, 300 }, [35] = { 41.1, 46.6, 148, 300 }, [36] = { 38.2, 45.7, 148, 300 }, [37] = { 41.8, 44.2, 148, 300 }, [38] = { 42.4, 39, 148, 300 }, [39] = { 45.7, 35.1, 148, 300 }, [40] = { 46.5, 27.2, 148, 300 }, [41] = { 58.1, 26.2, 148, 300 }, [42] = { 42, 63.4, 267, 300 }, [43] = { 52.5, 60.3, 267, 300 }, [44] = { 42.1, 59.5, 267, 300 }, [45] = { 36.2, 57.7, 267, 300 }, [46] = { 53.9, 56.8, 267, 300 }, [47] = { 52.9, 54.5, 267, 300 }, [48] = { 47.3, 54.2, 267, 300 }, [49] = { 44.6, 48.3, 267, 300 }, [50] = { 37.3, 45.5, 267, 300 }, [51] = { 62, 69.5, 357, 300 }, [52] = { 75.7, 61.6, 357, 300 }, [53] = { 61.5, 55.7, 357, 300 }, [54] = { 67.5, 45.4, 357, 300 }, [55] = { 50.3, 27.5, 357, 300 }, [56] = { 46.1, 25.2, 357, 300 }, [57] = { 83.4, 87.7, 406, 300 }, [58] = { 79.1, 85.7, 406, 300 }, [59] = { 75, 85.4, 406, 300 }, [60] = { 83.1, 84.6, 406, 300 }, [61] = { 83.1, 84.4, 406, 300 }, [62] = { 63.1, 83.9, 406, 300 }, [63] = { 57.5, 66.5, 406, 300 }, [64] = { 63.2, 59.4, 406, 300 }, [65] = { 76.8, 54, 406, 300 }, [66] = { 52.4, 53, 406, 300 }, [67] = { 60.4, 48.7, 406, 300 }, [68] = { 49.6, 46.3, 406, 300 }, [69] = { 74.1, 44.9, 406, 300 }, [70] = { 46.8, 43.3, 406, 300 }, [71] = { 67.4, 37.5, 406, 300 }, [72] = { 48.3, 36, 406, 300 }, [73] = { 57.1, 72.4, 493, 300 }, [74] = { 58.7, 71.6, 493, 300 }, [75] = { 49.1, 70.8, 493, 300 }, [76] = { 44.7, 70.4, 493, 300 }, [77] = { 65.4, 70.2, 493, 300 }, [78] = { 40.8, 68.4, 493, 300 }, [79] = { 61.2, 67.8, 493, 300 }, [80] = { 49.8, 65.9, 493, 300 }, [81] = { 59.4, 65.8, 493, 300 }, [82] = { 63.5, 64.4, 493, 300 }, [83] = { 66.1, 62.8, 493, 300 }, [84] = { 39, 62.1, 493, 300 }, [85] = { 64.1, 60.9, 493, 300 }, [86] = { 33.8, 59.9, 493, 300 }, [87] = { 36.6, 57.4, 493, 300 }, [88] = { 67.5, 55.4, 493, 300 }, [89] = { 69.1, 54, 493, 300 }, [90] = { 41.2, 53, 493, 300 }, [91] = { 37.8, 51.6, 493, 300 }, [92] = { 64, 50, 493, 300 }, [93] = { 62.1, 47.8, 493, 300 }, [94] = { 32.7, 46.6, 493, 300 }, [95] = { 41.5, 44.5, 493, 300 }, [96] = { 65.3, 44.2, 493, 300 }, [97] = { 45.2, 43.2, 493, 300 }, [98] = { 35.8, 40.5, 493, 300 }, [99] = { 38, 40.4, 493, 300 }, [100] = { 50.9, 39.3, 493, 300 }, [101] = { 55.4, 32.3, 493, 300 }, [102] = { 50.9, 31.2, 493, 300 }, [103] = { 53.9, 31.2, 493, 300 }, [104] = { 48.5, 31.2, 493, 300 }, [105] = { 37.3, 30.6, 493, 300 }, [106] = { 35.8, 30, 493, 300 }, [107] = { 99.5, 48.3, 1657, 300 }, [108] = { 25, 76.5, 1, 270 }, [109] = { 24.6, 76.5, 1, 270 }, [110] = { 28.3, 75.8, 1, 270 }, [111] = { 30.3, 75.5, 1, 270 }, [112] = { 27.7, 75.3, 1, 270 }, [113] = { 31.1, 74.4, 1, 270 }, [114] = { 29.4, 74.2, 1, 270 }, [115] = { 26.2, 74, 1, 270 }, [116] = { 25.2, 73.6, 1, 270 }, [117] = { 30.1, 73.6, 1, 270 }, [118] = { 29.2, 72.9, 1, 270 }, [119] = { 27.8, 72.9, 1, 270 }, [120] = { 23.6, 72.6, 1, 270 }, [121] = { 30.4, 72.2, 1, 270 }, [122] = { 22.5, 72.2, 1, 270 }, [123] = { 30.7, 72, 1, 270 }, [124] = { 30.4, 71.8, 1, 270 }, [125] = { 29.2, 71.6, 1, 270 }, [126] = { 21.5, 71.5, 1, 270 }, [127] = { 29.1, 71.1, 1, 270 }, [128] = { 25.6, 70.9, 1, 270 }, [129] = { 28.3, 70.7, 1, 270 }, [130] = { 28.6, 70.1, 1, 270 }, [131] = { 27.9, 70.1, 1, 270 }, [132] = { 43.4, 66.8, 1, 270 }, [133] = { 40.9, 65.6, 1, 270 }, [134] = { 40.7, 65.3, 1, 270 }, [135] = { 48.2, 63.2, 1, 270 }, [136] = { 38.8, 62, 1, 270 }, [137] = { 38.7, 61.6, 1, 270 }, [138] = { 38.9, 61, 1, 270 }, [139] = { 36.9, 60.9, 1, 270 }, [140] = { 56.8, 60.7, 1, 270 }, [141] = { 45.2, 60.3, 1, 270 }, [142] = { 34.8, 60, 1, 270 }, [143] = { 47.9, 59.9, 1, 270 }, [144] = { 48.1, 59.4, 1, 270 }, [145] = { 50.6, 59.1, 1, 270 }, [146] = { 40.3, 58.9, 1, 270 }, [147] = { 60.7, 58.5, 1, 270 }, [148] = { 31.5, 58.5, 1, 270 }, [149] = { 48, 57.9, 1, 270 }, [150] = { 48.2, 57.7, 1, 270 }, [151] = { 44.5, 57, 1, 270 }, [152] = { 56.3, 56.6, 1, 270 }, [153] = { 32.1, 56.2, 1, 270 }, [154] = { 41.2, 56.2, 1, 270 }, [155] = { 67.1, 56, 1, 270 }, [156] = { 80.4, 55.6, 1, 270 }, [157] = { 34.3, 55.6, 1, 270 }, [158] = { 47.5, 55.4, 1, 270 }, [159] = { 81.6, 55, 1, 270 }, [160] = { 31.1, 54.7, 1, 270 }, [161] = { 28.4, 54.4, 1, 270 }, [162] = { 49.4, 54.2, 1, 270 }, [163] = { 65.8, 53.7, 1, 270 }, [164] = { 61.7, 53.6, 1, 270 }, [165] = { 81.5, 52.9, 1, 270 }, [166] = { 32.2, 52.8, 1, 270 }, [167] = { 71, 52.8, 1, 270 }, [168] = { 30.3, 52.7, 1, 270 }, [169] = { 27.9, 52.6, 1, 270 }, [170] = { 43.9, 52.5, 1, 270 }, [171] = { 69.8, 52.4, 1, 270 }, [172] = { 37.5, 52.1, 1, 270 }, [173] = { 80.1, 51.7, 1, 270 }, [174] = { 27.1, 51.7, 1, 270 }, [175] = { 56.9, 51.6, 1, 270 }, [176] = { 67.4, 51.3, 1, 270 }, [177] = { 69.8, 50.7, 1, 270 }, [178] = { 84.6, 50.4, 1, 270 }, [179] = { 87, 50.3, 1, 270 }, [180] = { 75.5, 49.8, 1, 270 }, [181] = { 78.9, 49.7, 1, 270 }, [182] = { 73.7, 49.7, 1, 270 }, [183] = { 50.9, 49.2, 1, 270 }, [184] = { 32.3, 49.1, 1, 270 }, [185] = { 29.8, 49, 1, 270 }, [186] = { 26.6, 48.1, 1, 270 }, [187] = { 50.3, 47.6, 1, 270 }, [188] = { 47, 47.6, 1, 270 }, [189] = { 46.6, 47.4, 1, 270 }, [190] = { 85.1, 47.3, 1, 270 }, [191] = { 40.9, 47.2, 1, 270 }, [192] = { 80.2, 47.1, 1, 270 }, [193] = { 42, 46.9, 1, 270 }, [194] = { 38.7, 46.9, 1, 270 }, [195] = { 34.4, 46.7, 1, 270 }, [196] = { 58, 46.1, 1, 270 }, [197] = { 49, 46, 1, 270 }, [198] = { 48.9, 45.7, 1, 270 }, [199] = { 37.1, 45.3, 1, 270 }, [200] = { 30.2, 45.2, 1, 270 }, [201] = { 27.6, 45.1, 1, 270 }, [202] = { 47.2, 44.6, 1, 270 }, [203] = { 47.3, 44.3, 1, 270 }, [204] = { 37.5, 43.9, 1, 270 }, [205] = { 81.2, 43.7, 1, 270 }, [206] = { 80, 43, 1, 270 }, [207] = { 40.2, 42.4, 1, 270 }, [208] = { 52.1, 42, 1, 270 }, [209] = { 27.9, 41.1, 1, 270 }, [210] = { 40.4, 40.9, 1, 270 }, [211] = { 47.5, 39.8, 1, 270 }, [212] = { 47.6, 39.4, 1, 270 }, [213] = { 50.2, 39.1, 1, 270 }, [214] = { 50.1, 38.8, 1, 270 }, [215] = { 38.6, 38.1, 1, 270 }, [216] = { 43.8, 37.9, 1, 270 }, [217] = { 35.7, 36.5, 1, 270 }, [218] = { 28.2, 36.3, 1, 270 }, [219] = { 30.6, 35.5, 1, 270 }, [220] = { 44.1, 33.8, 1, 270 }, [221] = { 39.4, 32.8, 1, 270 }, [222] = { 36.9, 32.4, 1, 270 }, [223] = { 33, 31.8, 1, 270 }, [224] = { 44.4, 31.5, 1, 270 }, [225] = { 41.3, 30.7, 1, 270 }, [226] = { 34.5, 30.6, 1, 270 }, [227] = { 71.2, 29.4, 1, 300 }, [228] = { 70.3, 25.1, 1, 300 }, [229] = { 70, 19.3, 1, 300 }, [230] = { 14.7, 73.2, 11, 60 }, [231] = { 16.9, 70.7, 11, 60 }, [232] = { 21.3, 68.1, 11, 60 }, [233] = { 23.9, 67, 11, 60 }, [234] = { 26.7, 66.2, 11, 60 }, [235] = { 26.8, 93.1, 12, 270 }, [236] = { 26.5, 91.2, 12, 270 }, [237] = { 39.9, 90.3, 12, 270 }, [238] = { 41.4, 87.7, 12, 270 }, [239] = { 32.5, 87.2, 12, 270 }, [240] = { 26.8, 86.2, 12, 270 }, [241] = { 36, 86, 12, 270 }, [242] = { 42.3, 86, 12, 270 }, [243] = { 48, 84.4, 12, 270 }, [244] = { 32.1, 84.3, 12, 270 }, [245] = { 26.4, 82.6, 12, 270 }, [246] = { 68.5, 81.9, 12, 270 }, [247] = { 31.7, 81.4, 12, 270 }, [248] = { 72.5, 80.2, 12, 270 }, [249] = { 87.9, 79.8, 12, 270 }, [250] = { 54.5, 79.5, 12, 270 }, [251] = { 59.9, 79.3, 12, 270 }, [252] = { 22, 79.1, 12, 270 }, [253] = { 60.1, 79, 12, 270 }, [254] = { 69.7, 78.5, 12, 270 }, [255] = { 63, 78.4, 12, 270 }, [256] = { 53.9, 78.3, 12, 270 }, [257] = { 96.3, 77.6, 12, 300 }, [258] = { 26.8, 77.4, 12, 270 }, [259] = { 67.7, 77.2, 12, 270 }, [260] = { 24.1, 75.6, 12, 270 }, [261] = { 56.8, 75.2, 12, 270 }, [262] = { 55.6, 75.1, 12, 270 }, [263] = { 26.7, 74.7, 12, 270 }, [264] = { 54.2, 73.2, 12, 270 }, [265] = { 51.4, 71.9, 12, 270 }, [266] = { 85.1, 71.5, 12, 270 }, [267] = { 51.7, 71.3, 12, 270 }, [268] = { 43.7, 70.9, 12, 270 }, [269] = { 42.4, 70.2, 12, 270 }, [270] = { 82.8, 69.6, 12, 270 }, [271] = { 39, 69, 12, 270 }, [272] = { 41.6, 68.9, 12, 270 }, [273] = { 84.2, 67.8, 12, 270 }, [274] = { 45.1, 65.5, 12, 270 }, [275] = { 45, 64.8, 12, 270 }, [276] = { 40.7, 60.9, 12, 270 }, [277] = { 40.6, 60.8, 12, 270 }, [278] = { 36.5, 59.6, 12, 270 }, [279] = { 34.9, 59.1, 12, 270 }, [280] = { 37.7, 58.7, 12, 270 }, [281] = { 41.2, 55.4, 12, 270 }, [282] = { 38.7, 55.1, 12, 270 }, [283] = { 34.3, 55.1, 12, 270 }, [284] = { 36.4, 55.1, 12, 270 }, [285] = { 30.7, 53.3, 12, 270 }, [286] = { 54.9, 52.4, 12, 270 }, [287] = { 32.2, 52.1, 12, 270 }, [288] = { 34, 51.8, 12, 270 }, [289] = { 53, 51.6, 12, 270 }, [290] = { 52.8, 50.9, 12, 270 }, [291] = { 52.5, 50.4, 12, 270 }, [292] = { 50.6, 50.3, 12, 270 }, [293] = { 51.6, 49.5, 12, 270 }, [294] = { 56.3, 49.1, 12, 270 }, [295] = { 33.3, 49.1, 12, 270 }, [296] = { 54.2, 49, 12, 270 }, [297] = { 57.4, 48.6, 12, 270 }, [298] = { 57.1, 48.5, 12, 270 }, [299] = { 51.3, 48.3, 12, 270 }, [300] = { 53.8, 47.5, 12, 270 }, [301] = { 55.4, 47.1, 12, 270 }, [302] = { 46.7, 47, 12, 270 }, [303] = { 54, 46.4, 12, 270 }, [304] = { 44.2, 46.2, 12, 270 }, [305] = { 55.3, 46.1, 12, 270 }, [306] = { 48.9, 43.8, 12, 270 }, [307] = { 55.5, 43.1, 12, 270 }, [308] = { 56.3, 43.1, 12, 270 }, [309] = { 48.2, 42.9, 12, 270 }, [310] = { 56.3, 42, 12, 270 }, [311] = { 55.4, 41.2, 12, 270 }, [312] = { 50.4, 41.1, 12, 270 }, [313] = { 57.2, 40.9, 12, 270 }, [314] = { 55.5, 40.4, 12, 270 }, [315] = { 43.9, 39.9, 12, 270 }, [316] = { 51.5, 38.9, 12, 270 }, [317] = { 51.4, 38.7, 12, 270 }, [318] = { 44.5, 38.7, 12, 270 }, [319] = { 50.4, 38.5, 12, 270 }, [320] = { 44.1, 37.7, 12, 270 }, [321] = { 52.8, 37, 12, 270 }, [322] = { 44.2, 35.2, 12, 270 }, [323] = { 50.4, 35.2, 12, 270 }, [324] = { 49.9, 35.1, 12, 270 }, [325] = { 47.5, 33.6, 12, 270 }, [326] = { 50.1, 33.2, 12, 270 }, [327] = { 52.7, 32.6, 12, 270 }, [328] = { 46.6, 32, 12, 270 }, [329] = { 49.7, 31.7, 12, 270 }, [330] = { 34, 23, 17, 300 }, [331] = { 32, 22, 17, 300 }, [332] = { 33.9, 21.5, 17, 300 }, [333] = { 33.9, 21.4, 17, 300 }, [334] = { 17.7, 56.6, 38, 270 }, [335] = { 12.8, 83.1, 44, 300 }, [336] = { 76.7, 82.1, 44, 300 }, [337] = { 10.8, 80.2, 44, 300 }, [338] = { 33, 80.1, 44, 300 }, [339] = { 76.8, 79.8, 44, 300 }, [340] = { 26.8, 79.5, 44, 300 }, [341] = { 42.8, 78.8, 44, 300 }, [342] = { 46.2, 78.8, 44, 300 }, [343] = { 48.1, 78.3, 44, 300 }, [344] = { 55.6, 78.1, 44, 300 }, [345] = { 43.5, 77.4, 44, 300 }, [346] = { 65.2, 76.4, 44, 300 }, [347] = { 48.3, 75.5, 44, 300 }, [348] = { 38.6, 75.2, 44, 300 }, [349] = { 23.8, 75.2, 44, 300 }, [350] = { 36.9, 75, 44, 300 }, [351] = { 50.8, 74.9, 44, 300 }, [352] = { 11.5, 74, 44, 300 }, [353] = { 62.4, 73.7, 44, 300 }, [354] = { 73.4, 73.4, 44, 300 }, [355] = { 76.8, 73.3, 44, 300 }, [356] = { 62, 73.2, 44, 300 }, [357] = { 62, 72.5, 44, 300 }, [358] = { 26.3, 71.7, 44, 300 }, [359] = { 31.4, 71.7, 44, 300 }, [360] = { 14.9, 67.7, 44, 300 }, [361] = { 24.8, 67.5, 44, 300 }, [362] = { 59.4, 67.1, 44, 300 }, [363] = { 27.4, 65.8, 44, 300 }, [364] = { 78.6, 65.4, 44, 300 }, [365] = { 25.6, 63.8, 44, 300 }, [366] = { 34.1, 62.4, 44, 300 }, [367] = { 19.5, 61.4, 44, 300 }, [368] = { 30.5, 60.4, 44, 300 }, [369] = { 34.3, 60.1, 44, 300 }, [370] = { 19.2, 56.9, 44, 300 }, [371] = { 86, 55.4, 44, 300 }, [372] = { 81.5, 52.8, 44, 300 }, [373] = { 14.9, 50.2, 44, 300 }, [374] = { 73.5, 48.2, 44, 300 }, [375] = { 18.4, 47.4, 44, 300 }, [376] = { 72.5, 47, 44, 300 }, [377] = { 31.7, 46.1, 44, 300 }, [378] = { 84.2, 46.1, 44, 300 }, [379] = { 25.5, 46, 44, 300 }, [380] = { 72.6, 45.6, 44, 300 }, [381] = { 70.3, 45.6, 44, 300 }, [382] = { 22.4, 45.4, 44, 300 }, [383] = { 82.7, 45.3, 44, 300 }, [384] = { 68.1, 45.2, 44, 300 }, [385] = { 32.7, 43.3, 44, 300 }, [386] = { 33.7, 42.4, 44, 300 }, [387] = { 24.3, 42, 44, 300 }, [388] = { 66.1, 41.4, 44, 300 }, [389] = { 71.9, 40.7, 44, 300 }, [390] = { 53.6, 36.9, 44, 300 }, [391] = { 81.2, 36.1, 44, 300 }, [392] = { 40.7, 36, 44, 300 }, [393] = { 48.5, 33.1, 44, 300 }, [394] = { 30.8, 64.3, 85, 180 }, [395] = { 36.9, 63.8, 85, 180 }, [396] = { 56.7, 58.3, 85, 180 }, [397] = { 62.1, 58.2, 85, 180 }, [398] = { 46, 58.1, 85, 180 }, [399] = { 46.2, 58, 85, 180 }, [400] = { 69.9, 54.8, 85, 180 }, [401] = { 51.3, 53.9, 85, 180 }, [402] = { 30.8, 49.8, 85, 180 }, [403] = { 61.6, 38.7, 85, 180 }, [404] = { 56.9, 36.7, 85, 180 }, [405] = { 59, 36.2, 85, 180 }, [406] = { 68.9, 34.5, 85, 180 }, [407] = { 64.5, 33.9, 85, 180 }, [408] = { 61, 32.5, 85, 180 }, [409] = { 51.6, 76.8, 130, 300 }, [410] = { 54.6, 55, 130, 300 }, [411] = { 47.4, 32, 130, 300 }, [412] = { 52.4, 78.2, 141, 300 }, [413] = { 46.6, 78.1, 141, 300 }, [414] = { 49.7, 77.7, 141, 300 }, [415] = { 53.9, 77.4, 141, 300 }, [416] = { 55.2, 76.2, 141, 300 }, [417] = { 50.8, 75.6, 141, 300 }, [418] = { 44.9, 75.6, 141, 300 }, [419] = { 64.4, 70.6, 141, 300 }, [420] = { 41.7, 70.2, 141, 300 }, [421] = { 61.8, 69.9, 141, 300 }, [422] = { 40.9, 68.3, 141, 300 }, [423] = { 65.7, 67.1, 141, 300 }, [424] = { 62.8, 66.5, 141, 300 }, [425] = { 48.3, 65, 141, 300 }, [426] = { 58.3, 63.9, 141, 300 }, [427] = { 48.1, 63.9, 141, 300 }, [428] = { 55.3, 63.9, 141, 300 }, [429] = { 47.4, 63.9, 141, 300 }, [430] = { 66.9, 63.5, 141, 300 }, [431] = { 48.5, 62.5, 141, 300 }, [432] = { 55.7, 62.2, 141, 300 }, [433] = { 51, 61.6, 141, 300 }, [434] = { 50.9, 61.6, 141, 300 }, [435] = { 57.6, 61.4, 141, 300 }, [436] = { 40, 61.2, 141, 300 }, [437] = { 55.2, 60.9, 141, 300 }, [438] = { 68.1, 60.8, 141, 300 }, [439] = { 52, 60.4, 141, 300 }, [440] = { 58.4, 59.9, 141, 300 }, [441] = { 49.2, 59.6, 141, 300 }, [442] = { 37.9, 57, 141, 300 }, [443] = { 60.5, 55.6, 141, 300 }, [444] = { 63.2, 54.6, 141, 300 }, [445] = { 41, 53.9, 141, 300 }, [446] = { 66.4, 53.4, 141, 300 }, [447] = { 68.1, 53, 141, 300 }, [448] = { 63.9, 52.4, 141, 300 }, [449] = { 65.1, 51, 141, 300 }, }, ["lvl"] = "1", }, [787] = { ["coords"] = { [1] = { 16.9, 35, 10, 300 }, [2] = { 14.9, 34.2, 10, 300 }, [3] = { 16.3, 32.1, 10, 300 }, [4] = { 16.8, 29, 10, 300 }, [5] = { 19.8, 26.7, 10, 300 }, [6] = { 15.9, 41, 10, 300 }, [7] = { 15, 40.5, 10, 300 }, [8] = { 16.9, 40.4, 10, 300 }, [9] = { 17, 39.2, 10, 300 }, [10] = { 16.7, 37.7, 10, 300 }, [11] = { 17.3, 37.4, 10, 300 }, [12] = { 14, 36.4, 10, 300 }, [13] = { 13.5, 36.3, 10, 300 }, }, ["lvl"] = "26-27", }, [914] = { ["coords"] = { [1] = { 80.2, 61.3, 1519, 490 }, }, ["fac"] = "A", ["lvl"] = "60", }, [918] = { ["coords"] = { [1] = { 78.2, 69.2, 1519, 490 }, }, ["fac"] = "A", ["lvl"] = "60", }, [928] = { ["coords"] = { [1] = { 48.4, 50.2, 1519, 490 }, }, ["fac"] = "A", ["lvl"] = "60", }, [957] = { ["coords"] = { [1] = { 61.4, 37.0, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1007] = { ["coords"] = { [1] = { 60.3, 73.8, 11, 300 }, [2] = { 54.4, 73.7, 11, 300 }, [3] = { 61.2, 73.1, 11, 300 }, [4] = { 61.8, 73.1, 11, 300 }, [5] = { 62.6, 72.7, 11, 300 }, [6] = { 61.2, 72.2, 11, 300 }, [7] = { 62.1, 72, 11, 300 }, [8] = { 61.9, 71.9, 11, 300 }, [9] = { 60.3, 71.4, 11, 300 }, [10] = { 66.7, 70.1, 11, 300 }, [11] = { 62.6, 69.8, 11, 300 }, [12] = { 62.9, 69.8, 11, 300 }, [13] = { 62.7, 69.1, 11, 300 }, [14] = { 63.2, 69.1, 11, 300 }, [15] = { 62.4, 69, 11, 300 }, [16] = { 61.6, 66.8, 11, 300 }, [17] = { 64.2, 64.1, 11, 300 }, [18] = { 63.9, 63.8, 11, 300 }, [19] = { 60.5, 63.7, 11, 300 }, [20] = { 64.2, 63.4, 11, 300 }, [21] = { 64.1, 62.5, 11, 300 }, [22] = { 63.8, 62.4, 11, 300 }, [23] = { 55.9, 75.9, 11, 300 }, [24] = { 55.2, 75.4, 11, 300 }, [25] = { 55.7, 75.4, 11, 300 }, [26] = { 55.9, 75.2, 11, 300 }, [27] = { 55.5, 75.2, 11, 300 }, [28] = { 56.7, 75, 11, 300 }, [29] = { 55.5, 75, 11, 300 }, [30] = { 62.6, 75, 11, 300 }, [31] = { 56.1, 74.6, 11, 300 }, [32] = { 55.4, 74.1, 11, 300 }, }, ["lvl"] = "20-21", }, [1121] = { ["coords"] = { [1] = { 41.3, 44.2, 1, 270 }, [2] = { 66.4, 41.1, 1, 15 }, [3] = { 70.5, 39.3, 1, 15 }, [4] = { 71, 38.1, 1, 15 }, [5] = { 41.6, 36.6, 1, 270 }, [6] = { 41.9, 35.8, 1, 270 }, [7] = { 39, 35.2, 1, 270 }, [8] = { 40.7, 35.1, 1, 270 }, [9] = { 22.9, 54.5, 1, 270 }, [10] = { 25.4, 52, 1, 270 }, [11] = { 23.1, 52, 1, 270 }, [12] = { 23.6, 51.4, 1, 270 }, [13] = { 26.2, 51.3, 1, 270 }, [14] = { 21.6, 50.8, 1, 270 }, [15] = { 26.1, 50.6, 1, 270 }, [16] = { 22.6, 50.5, 1, 270 }, [17] = { 25.4, 50.1, 1, 270 }, }, ["lvl"] = "8-9", }, [1141] = { ["coords"] = { [1] = { 51.8, 93.6, 1519, 490 }, }, ["fac"] = "A", ["lvl"] = "60", }, [1152] = { ["coords"] = { [1] = { 41.3, 15.3, 33, 300 }, [2] = { 37.9, 32.6, 33, 300 }, [3] = { 39.2, 31.9, 33, 300 }, [4] = { 38.4, 31.4, 33, 300 }, [5] = { 39.9, 30.7, 33, 300 }, [6] = { 38.6, 29.8, 33, 300 }, [7] = { 40.1, 29.5, 33, 300 }, [8] = { 39.5, 28.7, 33, 300 }, [9] = { 38.8, 28.5, 33, 300 }, [10] = { 40.1, 28.4, 33, 300 }, [11] = { 40.2, 27.2, 33, 300 }, [12] = { 39.4, 25, 33, 300 }, [13] = { 40.8, 24.7, 33, 300 }, [14] = { 40.1, 22.9, 33, 300 }, [15] = { 40.7, 22.2, 33, 300 }, [16] = { 41.3, 21.5, 33, 300 }, [17] = { 39.7, 21.5, 33, 300 }, [18] = { 42.2, 21.2, 33, 300 }, [19] = { 41.4, 20.7, 33, 300 }, [20] = { 40.4, 19.4, 33, 300 }, [21] = { 41.4, 19.1, 33, 300 }, [22] = { 40.9, 17.7, 33, 300 }, [23] = { 39.7, 17.5, 33, 300 }, [24] = { 41.8, 17.5, 33, 300 }, [25] = { 42.5, 16.7, 33, 300 }, [26] = { 39.8, 16, 33, 300 }, [27] = { 41.9, 15.9, 33, 300 }, }, ["lvl"] = "35-36", }, [1212] = { ["coords"] = { [1] = { 50.0, 46.0, 1519, 450 }, }, ["fac"] = "A", ["lvl"] = "40", }, -- Young Threshadon [1224] = { ["lvl"] = "19-20", ["coords"] = { [1] = { 45.11, 41.01, 38, 0 }, [2] = { 45.54, 50.47, 38, 0 }, [3] = { 48.05, 39.82, 38, 0 }, [4] = { 48.7, 61.94, 38, 0 }, [5] = { 48.77, 33.73, 38, 0 }, [6] = { 50.22, 57.87, 38, 0 }, [7] = { 50.66, 50.42, 38, 0 }, [8] = { 53.66, 46.89, 38, 0 }, [9] = { 54.21, 60.91, 38, 0 }, [10] = { 57.54, 43.84, 38, 0 }, [11] = { 57.87, 50.31, 38, 0 }, [12] = { 58.56, 54.71, 38, 0 }, }, }, [1257] = { ["coords"] = { [1] = { 62.8, 75.0, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1275] = { ["coords"] = { [1] = { 63.1, 74.9, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1284] = { ["coords"] = { [1] = { 50.3, 45.5, 1519, 86400 }, }, ["fac"] = "A", ["lvl"] = "63", ["rnk"] = "3", }, [1285] = { ["coords"] = { [1] = { 46.8, 72.2, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1286] = { ["coords"] = { [1] = { 64.7, 71.3, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1287] = { ["coords"] = { [1] = { 64.1,68.4, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1289] = { ["coords"] = { [1] = { 64.2, 68.6, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1291] = { ["coords"] = { [1] = { 62.0, 67.8, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1292] = { ["coords"] = { [1] = { 71.2, 62.2, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "35", }, [1294] = { ["coords"] = { [1] = { 61.9, 67.2, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1295] = { ["coords"] = { [1] = { 62.0, 67.5, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1297] = { ["coords"] = { [1] = { 58.7, 68.7, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1298] = { ["coords"] = { [1] = { 58.4, 69.0, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1299] = { ["coords"] = { [1] = { 58.3, 67.2, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1300] = { ["coords"] = { [1] = { 53.5, 81.5, 1519, 375 }, }, ["fac"] = "A", ["lvl"] = "25", }, [1301] = { ["coords"] = { [1] = { 59.9, 77.7, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1302] = { ["coords"] = { [1] = { 69.1, 71.9, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1303] = { ["coords"] = { [1] = { 69.9, 71.3, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1304] = { ["coords"] = { [1] = { 42.4, 76.9, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1305] = { ["coords"] = { [1] = { 42.0, 82.7, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1307] = { ["coords"] = { [1] = { 44.6, 86.3, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "50", }, [1308] = { ["coords"] = { [1] = { 47.4, 82.5, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1309] = { ["coords"] = { [1] = { 51.8, 83.5, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1310] = { ["coords"] = { [1] = { 52.7, 83.7, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1311] = { ["coords"] = { [1] = { 51.4, 94.1, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1312] = { ["coords"] = { [1] = { 52.8, 74.8, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1313] = { ["coords"] = { [1] = { 55.9, 85.6, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1314] = { ["coords"] = { [1] = { 53.2, 82.4, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1315] = { ["coords"] = { [1] = { 53.0, 74.9, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1316] = { ["coords"] = { [1] = { 51.8, 75.1, 1519, 490 }, }, ["fac"] = "A", ["lvl"] = "60", }, [1317] = { ["coords"] = { [1] = { 52.9, 74.5, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "35", }, [1318] = { ["coords"] = { [1] = { 52.8, 74.3, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1319] = { ["coords"] = { [1] = { 69.2, 57.6, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1320] = { ["coords"] = { [1] = { 71.9, 62.0, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1321] = { ["coords"] = { [1] = { 71.7, 62.2, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1323] = { ["coords"] = { [1] = { 77.2, 61.0, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1324] = { ["coords"] = { [1] = { 77.2, 57.4, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1325] = { ["coords"] = { [1] = { 80.3, 70.1, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1326] = { ["coords"] = { [1] = { 78.6, 70.9, 1519, 375 }, }, ["fac"] = "A", ["lvl"] = "25", }, [1327] = { ["coords"] = { [1] = { 77.1, 52.7, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1328] = { ["coords"] = { [1] = { 76.0, 54.7, 1519, 350 }, }, ["fac"] = "A", ["lvl"] = "60", }, [1333] = { ["coords"] = { [1] = { 73.0, 57.5, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1339] = { ["coords"] = { [1] = { 71.7, 58.2, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1341] = { ["coords"] = { [1] = { 77.5, 63.1, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1346] = { ["coords"] = { [1] = { 51.3, 81.4, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "46", }, [1347] = { ["coords"] = { [1] = { 53.1, 81.8, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1348] = { ["coords"] = { [1] = { 48.1, 55.1, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1349] = { ["coords"] = { [1] = { 53.5, 57.6, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1350] = { ["coords"] = { [1] = { 53.2, 57.9, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1351] = { ["coords"] = { [1] = { 53.3, 45.2, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1366] = { ["coords"] = { [1] = { 68.3, 64.9, 1519, 555 }, }, ["fac"] = "A", ["lvl"] = "1", }, [1367] = { ["coords"] = { [1] = { 68.4, 64.8, 1519, 555 }, }, ["fac"] = "A", ["lvl"] = "1", }, [1368] = { ["coords"] = { [1] = { 62.7, 50.6, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "1", }, [1370] = { ["coords"] = { [1] = { 62.7, 50.4, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "1", }, [1371] = { ["coords"] = { [1] = { 62.7, 50.8, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "1", }, [1395] = { ["coords"] = { [1] = { 73.6, 60.1, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "10", }, [1402] = { ["coords"] = { [1] = { 60.3, 69.0, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "1", }, [1405] = { ["coords"] = { [1] = { 53.1, 62.0, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "1", }, [1412] = { ["coords"] = { [1] = { 88.9, 58.4, 1, 300 }, [2] = { 65.8, 52.5, 15, 300 }, [3] = { 66.4, 52.2, 15, 300 }, [4] = { 65.3, 52.2, 15, 300 }, [5] = { 67, 50.8, 15, 300 }, [6] = { 64.9, 50.6, 15, 300 }, [7] = { 65.8, 50.5, 15, 300 }, [8] = { 63.7, 49.9, 15, 300 }, [9] = { 68.4, 49.6, 15, 300 }, [10] = { 67.1, 49.2, 15, 300 }, [11] = { 64.2, 47.5, 15, 300 }, [12] = { 68, 47, 15, 300 }, [13] = { 64.7, 47, 15, 300 }, [14] = { 66.9, 45.6, 15, 300 }, [15] = { 65.9, 44.6, 15, 300 }, [16] = { 32.4, 26.7, 17, 300 }, [17] = { 31.8, 26.4, 17, 300 }, [18] = { 33.3, 24.6, 17, 300 }, [19] = { 31, 24.4, 17, 300 }, [20] = { 30.9, 24.1, 17, 300 }, [21] = { 33.4, 23.2, 17, 300 }, [22] = { 31.3, 22.2, 17, 300 }, [23] = { 33, 21.6, 17, 300 }, [24] = { 59, 77.9, 38, 300 }, [25] = { 20, 77.8, 38, 300 }, [26] = { 19.4, 76.1, 38, 300 }, [27] = { 22.2, 75.5, 38, 300 }, [28] = { 21.1, 72.8, 38, 300 }, [29] = { 48, 72.3, 38, 300 }, [30] = { 20.7, 71.7, 38, 300 }, [31] = { 21.1, 71, 38, 300 }, [32] = { 57.7, 70, 38, 300 }, [33] = { 43.2, 65.1, 38, 300 }, [34] = { 28.4, 58.6, 38, 300 }, [35] = { 32.4, 56, 38, 300 }, [36] = { 33.5, 51.8, 38, 300 }, [37] = { 35.5, 50.9, 38, 300 }, [38] = { 30.9, 50.8, 38, 300 }, [39] = { 39.4, 49, 38, 300 }, [40] = { 39.3, 48.6, 38, 300 }, [41] = { 36.3, 47.1, 38, 300 }, [42] = { 39.8, 46.8, 38, 300 }, [43] = { 34.6, 46.5, 38, 300 }, [44] = { 33.6, 45.8, 38, 300 }, [45] = { 39.8, 45.7, 38, 300 }, [46] = { 36.5, 45.3, 38, 300 }, [47] = { 36, 44.8, 38, 300 }, [48] = { 28.4, 43.5, 38, 300 }, [49] = { 64.8, 43.3, 38, 300 }, [50] = { 38.8, 42.4, 38, 300 }, [51] = { 66, 41.4, 38, 300 }, [52] = { 29.9, 41.1, 38, 300 }, [53] = { 29.1, 39.4, 38, 300 }, [54] = { 66.3, 37.6, 38, 300 }, [55] = { 62.4, 36.2, 38, 300 }, [56] = { 35.8, 36.2, 38, 300 }, [57] = { 39.3, 35.3, 38, 300 }, [58] = { 26.3, 33.1, 38, 300 }, [59] = { 31.2, 32, 38, 300 }, [60] = { 40.2, 29.5, 38, 300 }, [61] = { 28.2, 29, 38, 300 }, [62] = { 62.5, 28.9, 38, 300 }, [63] = { 24.8, 26.7, 38, 300 }, [64] = { 61.2, 23.6, 38, 300 }, [65] = { 60.3, 17.7, 38, 300 }, [66] = { 28.4, 17.5, 38, 300 }, [67] = { 21.1, 17.4, 38, 300 }, [68] = { 58.8, 15.9, 38, 300 }, [69] = { 30.2, 10.9, 38, 300 }, [70] = { 51.6, 62.3, 130, 300 }, [71] = { 53.1, 43.8, 130, 300 }, [72] = { 35.3, 16, 130, 300 }, [73] = { 28.1, 65.4, 141, 300 }, [74] = { 28.1, 65.1, 141, 300 }, [75] = { 27.9, 64.1, 141, 300 }, [76] = { 27.4, 62.9, 141, 300 }, [77] = { 27.7, 62.7, 141, 300 }, [78] = { 30.1, 62.5, 141, 300 }, [79] = { 30.9, 62.5, 141, 300 }, [80] = { 29.5, 62.3, 141, 300 }, [81] = { 30.5, 62.2, 141, 300 }, [82] = { 28.5, 62, 141, 300 }, [83] = { 29.3, 61.9, 141, 300 }, [84] = { 28.3, 61.8, 141, 300 }, [85] = { 27.1, 61.2, 141, 300 }, [86] = { 30.8, 60.5, 141, 300 }, [87] = { 29.4, 60.4, 141, 300 }, [88] = { 24.4, 59.4, 141, 300 }, [89] = { 31.3, 59, 141, 300 }, [90] = { 31.7, 58.9, 141, 300 }, [91] = { 29.5, 58.6, 141, 300 }, [92] = { 31.4, 58.5, 141, 300 }, [93] = { 24.5, 57.8, 141, 300 }, [94] = { 31.5, 57.7, 141, 300 }, [95] = { 29.6, 57.6, 141, 300 }, [96] = { 32.3, 57.3, 141, 300 }, [97] = { 28.9, 56.9, 141, 300 }, [98] = { 25.1, 56.3, 141, 300 }, [99] = { 25.8, 55.8, 141, 300 }, [100] = { 23.6, 55.4, 141, 300 }, [101] = { 25.3, 54.8, 141, 300 }, [102] = { 25.6, 54.6, 141, 300 }, [103] = { 32.6, 53.5, 141, 300 }, [104] = { 27.5, 53.4, 141, 300 }, [105] = { 28.4, 53.3, 141, 300 }, [106] = { 30.9, 53.3, 141, 300 }, [107] = { 29.6, 53.2, 141, 300 }, [108] = { 27.1, 53.1, 141, 300 }, [109] = { 30, 52.2, 141, 300 }, [110] = { 26.5, 51.5, 141, 300 }, [111] = { 28.3, 51.3, 141, 300 }, [112] = { 27.7, 51, 141, 300 }, [113] = { 25.1, 50.7, 141, 300 }, [114] = { 28.1, 50.3, 141, 300 }, [115] = { 25.9, 50.2, 141, 300 }, [116] = { 24.6, 49.6, 141, 300 }, [117] = { 30.1, 49.3, 141, 300 }, [118] = { 29.4, 49.2, 141, 300 }, [119] = { 27.5, 49.1, 141, 300 }, [120] = { 28.5, 48.9, 141, 300 }, [121] = { 25.4, 48.9, 141, 300 }, [122] = { 29.8, 48.2, 141, 300 }, [123] = { 25.8, 46.7, 141, 300 }, [124] = { 26.7, 45.7, 141, 300 }, [125] = { 43.4, 56.5, 148, 300 }, [126] = { 45.9, 55.5, 148, 300 }, [127] = { 41.3, 50.1, 148, 300 }, [128] = { 41, 38.2, 148, 300 }, [129] = { 48.4, 37.3, 148, 300 }, [130] = { 61.2, 11.3, 148, 300 }, [131] = { 52, 66.2, 331, 300 }, [132] = { 69.1, 66.2, 331, 300 }, [133] = { 40.7, 61.8, 331, 300 }, [134] = { 20.8, 59.5, 331, 300 }, [135] = { 81.7, 52.5, 331, 300 }, [136] = { 66.7, 50.8, 331, 300 }, [137] = { 27.7, 47.8, 331, 300 }, [138] = { 43.8, 45.3, 331, 300 }, [139] = { 65.3, 44.3, 331, 300 }, [140] = { 44.4, 42, 331, 300 }, [141] = { 32.8, 39, 331, 300 }, [142] = { 55.3, 33.7, 331, 300 }, [143] = { 19, 22.3, 331, 300 }, [144] = { 54.3, 69.8, 357, 300 }, [145] = { 54.5, 67.4, 357, 300 }, [146] = { 56.1, 61.7, 357, 300 }, [147] = { 56.8, 56.3, 357, 300 }, [148] = { 73.7, 56.2, 357, 300 }, [149] = { 55.6, 53.8, 357, 300 }, [150] = { 71.2, 53.2, 357, 300 }, [151] = { 54.8, 46.1, 357, 300 }, [152] = { 73.3, 39.2, 357, 300 }, [153] = { 46.9, 9, 357, 300 }, [154] = { 54.5, 98, 361, 300 }, [155] = { 29.7, 31.9, 361, 300 }, [156] = { 80.1, 95.4, 406, 300 }, [157] = { 78.7, 94.8, 406, 300 }, [158] = { 72.3, 94.5, 406, 300 }, [159] = { 81.9, 91, 406, 300 }, [160] = { 77.1, 90.7, 406, 300 }, [161] = { 76.8, 90.1, 406, 300 }, [162] = { 68.6, 89.2, 406, 300 }, [163] = { 82, 88.2, 406, 300 }, [164] = { 77.8, 86.1, 406, 300 }, [165] = { 66.9, 85.8, 406, 300 }, [166] = { 81.2, 84.8, 406, 300 }, [167] = { 74.9, 84.2, 406, 300 }, [168] = { 60.5, 81.7, 406, 300 }, [169] = { 59.5, 76.9, 406, 300 }, [170] = { 59.4, 70.7, 406, 300 }, [171] = { 53.7, 61.9, 406, 300 }, [172] = { 62, 59.9, 406, 300 }, [173] = { 52.7, 59.3, 406, 300 }, [174] = { 75.8, 50.3, 406, 300 }, [175] = { 68.1, 48, 406, 300 }, [176] = { 52, 45.8, 406, 300 }, [177] = { 71.1, 45.6, 406, 300 }, [178] = { 78, 43.1, 406, 300 }, [179] = { 51.4, 42.8, 406, 300 }, [180] = { 69.6, 41, 406, 300 }, [181] = { 65.4, 37.9, 406, 300 }, [182] = { 51.4, 36.4, 406, 300 }, [183] = { 47.3, 33, 406, 300 }, [184] = { 34.4, 17.9, 406, 300 }, [185] = { 43.5, 16.9, 406, 300 }, [186] = { 56.2, 16.3, 406, 300 }, [187] = { 30.9, 11.3, 406, 300 }, [188] = { 34.1, 9.9, 406, 300 }, [189] = { 39.7, 7.8, 406, 300 }, [190] = { 54.7, 75.1, 493, 300 }, [191] = { 52.1, 71.5, 493, 300 }, [192] = { 62.3, 69.7, 493, 300 }, [193] = { 37.1, 69.6, 493, 300 }, [194] = { 37, 69.6, 493, 300 }, [195] = { 64.6, 69.1, 493, 300 }, [196] = { 39.2, 68.1, 493, 300 }, [197] = { 51.5, 66.9, 493, 300 }, [198] = { 56.3, 66.1, 493, 300 }, [199] = { 38.7, 65.9, 493, 300 }, [200] = { 47.8, 65.8, 493, 300 }, [201] = { 61, 65.8, 493, 300 }, [202] = { 36, 65.4, 493, 300 }, [203] = { 35.6, 64.7, 493, 300 }, [204] = { 47.7, 64.6, 493, 300 }, [205] = { 62.8, 64.6, 493, 300 }, [206] = { 51.9, 64.1, 493, 300 }, [207] = { 48, 63, 493, 300 }, [208] = { 64.5, 62.9, 493, 300 }, [209] = { 41, 62.9, 493, 300 }, [210] = { 37.7, 62.6, 493, 300 }, [211] = { 33, 62.2, 493, 300 }, [212] = { 39.7, 60.8, 493, 300 }, [213] = { 71.5, 60.3, 493, 300 }, [214] = { 44.8, 60.3, 493, 300 }, [215] = { 34.5, 59.9, 493, 300 }, [216] = { 36.1, 59.6, 493, 300 }, [217] = { 43.9, 58.7, 493, 300 }, [218] = { 41.6, 58.6, 493, 300 }, [219] = { 34.8, 58.4, 493, 300 }, [220] = { 32, 58.1, 493, 300 }, [221] = { 33.7, 58.1, 493, 300 }, [222] = { 40.7, 57.2, 493, 300 }, [223] = { 65.6, 56.6, 493, 300 }, [224] = { 70.7, 56.6, 493, 300 }, [225] = { 39.4, 56.3, 493, 300 }, [226] = { 32, 56.3, 493, 300 }, [227] = { 35.8, 56.2, 493, 300 }, [228] = { 33.4, 54.8, 493, 300 }, [229] = { 31, 54.5, 493, 300 }, [230] = { 35.6, 54.3, 493, 300 }, [231] = { 37, 53.9, 493, 300 }, [232] = { 68.1, 53.7, 493, 300 }, [233] = { 42.3, 53.5, 493, 300 }, [234] = { 30.6, 53.4, 493, 300 }, [235] = { 32.3, 53, 493, 300 }, [236] = { 36.4, 51.8, 493, 300 }, [237] = { 65.2, 50.5, 493, 300 }, [238] = { 70.6, 50.4, 493, 300 }, [239] = { 66.2, 50.1, 493, 300 }, [240] = { 62, 49.9, 493, 300 }, [241] = { 31.5, 48.7, 493, 300 }, [242] = { 35.7, 48, 493, 300 }, [243] = { 38.7, 47.5, 493, 300 }, [244] = { 51.8, 46.3, 493, 300 }, [245] = { 63.6, 46.3, 493, 300 }, [246] = { 37.1, 45.2, 493, 300 }, [247] = { 33.4, 44.6, 493, 300 }, [248] = { 40.1, 44.6, 493, 300 }, [249] = { 46, 44.6, 493, 300 }, [250] = { 39, 44.2, 493, 300 }, [251] = { 35.1, 43.9, 493, 300 }, [252] = { 37.2, 43.6, 493, 300 }, [253] = { 49.1, 42.9, 493, 300 }, [254] = { 40.7, 40.3, 493, 300 }, [255] = { 32.7, 40.2, 493, 300 }, [256] = { 35.2, 39.4, 493, 300 }, [257] = { 52.1, 39.2, 493, 300 }, [258] = { 37.1, 36.6, 493, 300 }, [259] = { 50.6, 36.1, 493, 300 }, [260] = { 42.3, 34.9, 493, 300 }, [261] = { 39.2, 34.4, 493, 300 }, [262] = { 47.9, 34.1, 493, 300 }, [263] = { 59.2, 33.4, 493, 300 }, [264] = { 34.9, 33, 493, 300 }, [265] = { 41.3, 32.8, 493, 300 }, [266] = { 50.5, 32.6, 493, 300 }, [267] = { 32.4, 32.2, 493, 300 }, [268] = { 48.5, 31.9, 493, 300 }, [269] = { 38.8, 31.9, 493, 300 }, [270] = { 48.7, 31.7, 493, 300 }, [271] = { 52.6, 31.1, 493, 300 }, [272] = { 55.2, 30.3, 493, 300 }, [273] = { 57.9, 28, 493, 300 }, [274] = { 31.5, 74, 1519, 270 }, [275] = { 52.6, 88.7, 1657, 300 }, [276] = { 52.3, 87.4, 1657, 300 }, [277] = { 51.7, 82.3, 1657, 300 }, [278] = { 49, 76.6, 1657, 300 }, [279] = { 50.6, 75.6, 1657, 300 }, [280] = { 61.8, 74.9, 1657, 300 }, [281] = { 65.9, 74.9, 1657, 300 }, [282] = { 59, 74.1, 1657, 300 }, [283] = { 64.1, 73.6, 1657, 300 }, [284] = { 54.3, 72.4, 1657, 300 }, [285] = { 58.3, 72, 1657, 300 }, [286] = { 53.5, 71.5, 1657, 300 }, [287] = { 47.4, 68.4, 1657, 300 }, [288] = { 65.2, 65, 1657, 300 }, [289] = { 58.6, 64.5, 1657, 300 }, [290] = { 34.4, 60, 1657, 300 }, [291] = { 67.8, 57.9, 1657, 300 }, [292] = { 69.9, 57.7, 1657, 300 }, [293] = { 59.3, 56, 1657, 300 }, [294] = { 68.5, 55.8, 1657, 300 }, [295] = { 35.3, 52.4, 1657, 300 }, [296] = { 68.8, 51.8, 1657, 300 }, [297] = { 59.6, 51.4, 1657, 300 }, [298] = { 72.8, 49.9, 1657, 300 }, [299] = { 56.4, 48.1, 1657, 300 }, [300] = { 38.1, 45.2, 1657, 300 }, [301] = { 41.5, 42.8, 1657, 300 }, [302] = { 30.8, 40.5, 1657, 300 }, [303] = { 39, 37.8, 1657, 300 }, [304] = { 40.3, 36.9, 1657, 300 }, [305] = { 74.1, 31.3, 1657, 300 }, [306] = { 49.5, 31.1, 1657, 300 }, [307] = { 54, 30.7, 1657, 300 }, [308] = { 66, 30.4, 1657, 300 }, [309] = { 59.5, 30, 1657, 300 }, [310] = { 47.4, 29.5, 1657, 300 }, [311] = { 61.7, 25.4, 1657, 300 }, [312] = { 44.9, 21.9, 1657, 300 }, [313] = { 53.4, 21.1, 1657, 300 }, [314] = { 50.4, 19.5, 1657, 300 }, [315] = { 38, 18, 1657, 300 }, [316] = { 52.6, 16.3, 1657, 300 }, [317] = { 41.9, 15.9, 1657, 300 }, [318] = { 35.3, 12.8, 1657, 300 }, [319] = { 62.3, 11.4, 1657, 300 }, [320] = { 58.5, 10.9, 1657, 300 }, [321] = { 49.5, 10.3, 1657, 300 }, [322] = { 49.7, 10.2, 1657, 300 }, [323] = { 54.2, 9.5, 1657, 300 }, [324] = { 39.3, 9.4, 1657, 300 }, [325] = { 60.4, 6.1, 1657, 300 }, }, ["lvl"] = "1", }, [1413] = { ["coords"] = { [1] = { 49.7, 86.0, 1519, 375 }, }, ["fac"] = "A", ["lvl"] = "25", }, [1414] = { ["coords"] = { [1] = { 49.8, 85.8, 1519, 375 }, }, ["fac"] = "A", ["lvl"] = "25", }, [1415] = { ["coords"] = { [1] = { 63.0, 72.0, 1519, 375 }, }, ["fac"] = "A", ["lvl"] = "25", }, [1416] = { ["coords"] = { [1] = { 59.7, 33.8, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "50", }, [1419] = { ["coords"] = { [1] = { 44.7, 86.2, 1519, 180 }, }, ["fac"] = "A", ["lvl"] = "1", }, -- move Rema Schneider [1428] = { ["fac"] = "A", ["lvl"] = "35", ["coords"] = { [1] = { 58.1, 67.5, 1519, 0 }, }, }, -- move Thurman Schneider [1429] = { ["fac"] = "A", ["lvl"] = "2", ["coords"] = { [1] = { 52.6, 83.4, 1519, 0 }, }, }, -- move Suzetta Gallina [1431] = { ["fac"] = "A", ["lvl"] = "30", ["coords"] = { [1] = { 60.3, 76.8, 1519, 0 }, }, }, -- move Renato Gallina [1432] = { ["fac"] = "A", ["lvl"] = "45", ["coords"] = { [1] = { 63.8, 73.6, 1519, 0 }, }, }, [1435] = { ["coords"] = { [1] = { 40.1, 85.3, 1519, 490 }, }, ["fac"] = "A", ["lvl"] = "60", }, [1439] = { ["coords"] = { [1] = { 77.9, 48.9, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "10", }, [1440] = { ["coords"] = { [1] = { 77.1, 30.2, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "15", }, [1444] = { ["coords"] = { [1] = { 55.0, 54.2, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "40", }, [1472] = { ["coords"] = { [1] = { 63.2, 74.4, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "53", }, [1477] = { ["coords"] = { [1] = { 76.9, 52.8, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1478] = { ["coords"] = { [1] = { 76.8, 52.7, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1646] = { ["coords"] = { [1] = { 57.7, 47.9, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, -- Warg Deepwater [1683] = { ["fac"] = "A", ["lvl"] = "15", ["coords"] = { [1] = { 40.54, 39.66, 38, 0 }, }, }, [1719] = { ["coords"] = { [1] = { 51.5, 69.4, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [1721] = { ["coords"] = { [1] = { 75.9, 61.2, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "5", }, [1733] = { ["coords"] = { [1] = { 40.2, 85.3, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "5", }, [1747] = { ["coords"] = { [1] = { 80.1, 38.3, 1519, 180 }, }, ["fac"] = "A", ["lvl"] = "5", }, [1748] = { ["coords"] = { [1] = { 80.2, 38.3, 1519, 86400 }, }, ["fac"] = "A", ["lvl"] = "63", ["rnk"] = "3", }, [1749] = { ["coords"] = { [1] = { 80.1, 38.2, 1519, 180 }, }, ["fac"] = "A", ["lvl"] = "62", }, [1750] = { ["coords"] = { [1] = { 83.0, 34.4, 1519, 2100 }, }, ["fac"] = "A", ["lvl"] = "62", }, [1751] = { ["coords"] = { [1] = { 83.4, 35.0, 1519, 2100 }, }, ["fac"] = "A", ["lvl"] = "62", }, [1752] = { ["coords"] = { [1] = { 78.0, 46.4, 1519, 490 }, }, ["fac"] = "A", ["lvl"] = "60", }, [1754] = { ["coords"] = { [1] = { 76.4, 29.1, 1519, 120 }, }, ["fac"] = "A", ["lvl"] = "31", }, [1756] = { ["coords"] = { [1] = { 76.6, 46.3, 1519, 430 }, [2] = { 78.0, 40.3, 1519, 430 }, [3] = { 79.2, 38.7, 1519, 350 }, [4] = { 79.3, 39.6, 1519, 430 }, [5] = { 79.8, 36.9, 1519, 430 }, [6] = { 80.6, 37.0, 1519, 350 }, [7] = { 81.1, 37.9, 1519, 430 }, [8] = { 81.0, 39.0, 1519, 430 }, [9] = { 80.4, 39.7, 1519, 430 }, [10] = { 79.6, 39.6, 1519, 430 }, [11] = { 77.0, 45.8, 1519, 430 }, [12] = { 78.4, 40.9, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "60", }, [1783] = { ["coords"] = { [1] = { 54, 81, 28, 315 }, [2] = { 54.5, 80.9, 28, 315 }, [3] = { 48.1, 80.7, 28, 315 }, [4] = { 50.8, 80.5, 28, 315 }, [5] = { 47.3, 80.5, 28, 315 }, [6] = { 54, 80.3, 28, 315 }, [7] = { 53.9, 80.1, 28, 315 }, [8] = { 54, 79.9, 28, 315 }, [9] = { 54.6, 79.7, 28, 315 }, [10] = { 48.1, 78.6, 28, 315 }, [11] = { 49.5, 77.8, 28, 315 }, [12] = { 49.4, 77.1, 28, 315 }, [13] = { 49.6, 76.6, 28, 315 }, [14] = { 50.8, 76.1, 28, 315 }, [15] = { 50.4, 75.4, 28, 315 }, [16] = { 37.3, 59.4, 28, 315 }, [17] = { 36, 58.5, 28, 315 }, [18] = { 37.6, 58.5, 28, 315 }, [19] = { 37.1, 58.4, 28, 315 }, [20] = { 37.7, 58.1, 28, 315 }, [21] = { 36.6, 57.7, 28, 315 }, [22] = { 38.6, 57.1, 28, 315 }, [23] = { 35.6, 57, 28, 315 }, [24] = { 36.8, 56.8, 28, 315 }, [25] = { 38.8, 56.8, 28, 315 }, [26] = { 37.6, 56.5, 28, 315 }, [27] = { 38.3, 56.4, 28, 315 }, [28] = { 39.1, 55.9, 28, 315 }, [29] = { 35.9, 55.9, 28, 315 }, [30] = { 36.6, 55.7, 28, 315 }, [31] = { 37.8, 55.1, 28, 315 }, [32] = { 37.4, 55.1, 28, 315 }, [33] = { 38.1, 55.1, 28, 315 }, [34] = { 38.9, 54.9, 28, 315 }, [35] = { 36.5, 54.8, 28, 315 }, [36] = { 36.9, 54.5, 28, 315 }, [37] = { 39, 54.5, 28, 315 }, [38] = { 38.3, 54.1, 28, 315 }, [39] = { 38.1, 53.8, 28, 315 }, [40] = { 85.8, 29.5, 36, 315 }, [41] = { 47.4, 84.3, 28, 315 }, [42] = { 48.1, 82.8, 28, 315 }, [43] = { 48.9, 81.8, 28, 315 }, [44] = { 47.4, 81.8, 28, 315 }, [45] = { 49.3, 81.3, 28, 315 }, [46] = { 54.7, 81, 28, 315 }, }, ["lvl"] = "50-51", }, -- Captain Stoutfist [2104] = { ["fac"] = "A", ["lvl"] = "35", ["coords"] = { [1] = { 9.852, 57.47, 11, 0 }, }, }, [2198] = { ["coords"] = { [1] = { 56.5, 74.3, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "3", }, [2285] = { ["coords"] = { [1] = { 76.9, 47.8, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "40", }, [2327] = { ["coords"] = { [1] = { 53.0, 44.7, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "35", }, [2330] = { ["coords"] = { [1] = { 60.6, 67.4, 1519, 25 }, }, ["fac"] = "A", ["lvl"] = "25", }, [2331] = { ["coords"] = { [1] = { 63.0, 72.1, 1519, 25 }, }, ["fac"] = "A", ["lvl"] = "1", }, [2439] = { ["coords"] = { [1] = { 75.8, 36.7, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "50", }, [2455] = { ["coords"] = { [1] = { 64.2, 80.6, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "45", }, [2456] = { ["coords"] = { [1] = { 63.3, 80.9, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "45", }, [2457] = { ["coords"] = { [1] = { 63.4, 81.2, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "45", }, [2485] = { ["coords"] = { [1] = { 50.0, 85.9, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "50", }, [2504] = { ["coords"] = { [1] = { 75.1, 30.3, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "15", }, [2532] = { ["coords"] = { [1] = { 53.8, 64.8, 1519, 555 }, }, ["fac"] = "A", ["lvl"] = "1", }, [2533] = { ["coords"] = { [1] = { 58.3, 64.7, 1519, 555 }, }, ["fac"] = "A", ["lvl"] = "1", }, [2555] = { ["coords"] = { [1] = { 67.3, 80.5, 45, 400 }, [2] = { 69.1, 79.7, 45, 400 }, [3] = { 68.1, 79.4, 45, 400 }, [4] = { 68, 78.6, 45, 400 }, [5] = { 69.9, 77.9, 45, 400 }, [6] = { 67.9, 76.9, 45, 400 }, [7] = { 67.2, 73.5, 45, 400 }, [8] = { 65, 73.4, 45, 400 }, [9] = { 64.5, 73, 45, 400 }, [10] = { 61.1, 72.2, 45, 400 }, [11] = { 66.3, 71.8, 45, 400 }, [12] = { 64.4, 71.7, 45, 400 }, [13] = { 64.7, 71.6, 45, 400 }, [14] = { 70.6, 70.5, 45, 400 }, [15] = { 71, 69.2, 45, 400 }, [16] = { 65.2, 68.9, 45, 400 }, [17] = { 69.3, 68.7, 45, 400 }, [18] = { 63.1, 67.8, 45, 400 }, [19] = { 71.6, 67.1, 45, 400 }, [20] = { 69.6, 66.6, 45, 400 }, [21] = { 72.8, 65.8, 45, 400 }, [22] = { 73.2, 65.3, 45, 400 }, [23] = { 73.7, 64.6, 45, 400 }, [24] = { 71.8, 64.6, 45, 400 }, [25] = { 66.4, 63.8, 45, 400 }, [26] = { 71.6, 61.8, 45, 400 }, [27] = { 69.9, 61.6, 45, 400 }, [28] = { 31.5, 45.8, 45, 400 }, [29] = { 32.6, 44.4, 45, 400 }, [30] = { 30.5, 43.6, 45, 400 }, [31] = { 69.3, 81.5, 45, 400 }, }, ["lvl"] = "33-34", }, [2708] = { ["coords"] = { [1] = { 50.5, 87.5, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "40", }, [2795] = { ["coords"] = { [1] = { 72.8, 58.9, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "35", }, [2879] = { ["coords"] = { [1] = { 67.7, 36.8, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "40", }, -- Kor'ghan [3189] = { ["fac"] = "H", ["lvl"] = "7", ["coords"] = { [1] = { 56.67, 73.74, 14, 0 }, [2] = { 47.23, 53.65, 1637, 0 }, }, }, -- Corrupted Mottled Boar [3225] = { ["lvl"] = "10-11", ["coords"] = { [1] = { 36.85, 40.09, 14, 0 }, }, }, -- Corrupted Scorpid [3226] = { ["lvl"] = "10-11", ["coords"] = { [1] = { 36.4, 48.43, 14, 0 }, [2] = { 36.55, 29.29, 14, 0 }, [3] = { 51.38, 14.14, 14, 0 }, }, }, -- Corrupted Bloodtalon Scythemaw [3227] = { ["lvl"] = "10-11", ["coords"] = { [1] = { 37.61, 56.12, 14, 0 }, [2] = { 38.84, 18.56, 14, 0 }, [3] = { 39.76, 19.9, 14, 0 }, [4] = { 43.72, 31.67, 14, 0 }, [5] = { 44.04, 17.63, 14, 0 }, }, }, -- Corrupted Surf Crawler [3228] = { ["lvl"] = "10-11", ["coords"] = { [1] = { 56.88, 10.7, 14, 0 }, [2] = { 60.34, 21.8, 14, 0 }, }, }, -- "Squealer" Thornmantle [3229] = { ["lvl"] = "5", ["coords"] = { [1] = { 63.28, 82.57, 215, 0 }, }, }, -- Corrupted Dreadmaw Crocolisk [3231] = { ["lvl"] = "11-12", ["coords"] = { [1] = { 34.24, 52.69, 14, 0 }, [2] = { 34.51, 25.94, 14, 0 }, }, }, [3255] = { ["coords"] = { [1] = { 60, 35.6, 17, 413 }, [2] = { 56.4, 35, 17, 413 }, [3] = { 44.2, 34.6, 17, 413 }, [4] = { 58.8, 34.5, 17, 413 }, [5] = { 53.3, 34.4, 17, 413 }, [6] = { 58.5, 34.4, 17, 413 }, [7] = { 41.9, 34.2, 17, 413 }, [8] = { 43.3, 34.1, 17, 413 }, [9] = { 42.2, 34, 17, 413 }, [10] = { 56, 33.6, 17, 413 }, [11] = { 43.3, 33.5, 17, 413 }, [12] = { 58.6, 33.5, 17, 413 }, [13] = { 44.7, 33.4, 17, 413 }, [14] = { 41.8, 32.9, 17, 413 }, [15] = { 39.8, 31.5, 17, 413 }, [16] = { 42.5, 30.5, 17, 413 }, [17] = { 45.6, 30.3, 17, 413 }, [18] = { 60.7, 29.6, 17, 413 }, [19] = { 60.1, 29.6, 17, 413 }, [20] = { 41.8, 29.6, 17, 413 }, [21] = { 40.5, 29, 17, 413 }, [22] = { 60.3, 28.5, 17, 413 }, [23] = { 44.3, 26.1, 17, 413 }, [24] = { 62.3, 25.9, 17, 413 }, [25] = { 42.9, 25.6, 17, 413 }, [26] = { 41.9, 25.6, 17, 413 }, [27] = { 41.4, 25.1, 17, 413 }, [28] = { 40.3, 25, 17, 413 }, [29] = { 40.2, 24.1, 17, 413 }, [30] = { 41.2, 23.6, 17, 413 }, [31] = { 60.8, 23.3, 17, 413 }, [32] = { 61.9, 23.1, 17, 413 }, [33] = { 41.1, 22.6, 17, 413 }, [34] = { 60.5, 22.1, 17, 413 }, [35] = { 55.4, 21.2, 17, 413 }, [36] = { 41.9, 20.6, 17, 413 }, [37] = { 58, 20.5, 17, 413 }, [38] = { 40.7, 20.2, 17, 413 }, [39] = { 41.5, 20.1, 17, 413 }, [40] = { 43.8, 19.8, 17, 413 }, [41] = { 44.1, 19.8, 17, 413 }, [42] = { 43.5, 19.7, 17, 413 }, [43] = { 53.1, 19.4, 17, 413 }, [44] = { 44.4, 18.8, 17, 413 }, [45] = { 43.8, 18.7, 17, 413 }, [46] = { 44.2, 18.3, 17, 413 }, [47] = { 60.2, 17.9, 17, 413 }, [48] = { 58.9, 17.7, 17, 413 }, [49] = { 59.5, 17.7, 17, 413 }, [50] = { 59.9, 17.4, 17, 413 }, [51] = { 57.6, 17.4, 17, 413 }, [52] = { 53.3, 17, 17, 413 }, [53] = { 56.3, 16.8, 17, 413 }, [54] = { 60.6, 16.7, 17, 413 }, [55] = { 54.3, 16.2, 17, 413 }, [56] = { 54.7, 16.2, 17, 413 }, [57] = { 59.2, 16, 17, 413 }, [58] = { 54.9, 15.5, 17, 413 }, [59] = { 56.6, 15.4, 17, 413 }, [60] = { 59.5, 15.1, 17, 413 }, [61] = { 60.4, 14.9, 17, 413 }, [62] = { 57.6, 14.8, 17, 413 }, [63] = { 53.3, 14.7, 17, 413 }, [64] = { 58.4, 14.3, 17, 413 }, [65] = { 58.9, 14.2, 17, 413 }, [66] = { 60.2, 14.1, 17, 413 }, [67] = { 59.7, 14.1, 17, 413 }, [68] = { 55.9, 14.1, 17, 413 }, [69] = { 55, 13.9, 17, 413 }, [70] = { 58, 13.8, 17, 413 }, [71] = { 58.6, 13.7, 17, 413 }, [72] = { 59.4, 13.7, 17, 413 }, [73] = { 58.2, 13.3, 17, 413 }, [74] = { 53, 13.3, 17, 413 }, [75] = { 52.6, 13.1, 17, 413 }, [76] = { 50.3, 13.1, 17, 413 }, [77] = { 59.2, 12.9, 17, 413 }, [78] = { 58, 12.8, 17, 413 }, [79] = { 53, 12.8, 17, 413 }, [80] = { 54.4, 12.8, 17, 413 }, [81] = { 57.3, 12.7, 17, 413 }, [82] = { 58.3, 12.3, 17, 413 }, [83] = { 57.7, 12.3, 17, 413 }, [84] = { 56.9, 11.9, 17, 413 }, [85] = { 53.3, 11.9, 17, 413 }, [86] = { 60.2, 11.9, 17, 413 }, [87] = { 58, 11.5, 17, 413 }, [88] = { 56.3, 11.3, 17, 413 }, [89] = { 54.7, 11.3, 17, 413 }, [90] = { 58.9, 10.7, 17, 413 }, [91] = { 59.5, 10.6, 17, 413 }, [92] = { 55, 10.3, 17, 413 }, [93] = { 57.2, 10.2, 17, 413 }, [94] = { 54.1, 10.1, 17, 413 }, [95] = { 56.4, 9.9, 17, 413 }, [96] = { 55.2, 9.4, 17, 413 }, [97] = { 54.7, 9.2, 17, 413 }, [98] = { 54.6, 8.4, 17, 413 }, [99] = { 55, 7.8, 17, 413 }, [100] = { 63.6, 6, 17, 413 }, [101] = { 60.3, 47.1, 17, 413 }, [102] = { 61.7, 46.9, 17, 413 }, [103] = { 59.6, 46.8, 17, 413 }, [104] = { 53, 46.8, 17, 413 }, [105] = { 58.9, 46.8, 17, 413 }, [106] = { 60.9, 46.5, 17, 413 }, [107] = { 51.9, 46.5, 17, 413 }, [108] = { 59.3, 46.4, 17, 413 }, [109] = { 60, 46.3, 17, 413 }, [110] = { 58.7, 46.3, 17, 413 }, [111] = { 53.5, 46.2, 17, 413 }, [112] = { 54.7, 46.1, 17, 413 }, [113] = { 58.9, 45.9, 17, 413 }, [114] = { 58.2, 45.9, 17, 413 }, [115] = { 59.6, 45.8, 17, 413 }, [116] = { 58.6, 45.4, 17, 413 }, [117] = { 59.3, 45.4, 17, 413 }, [118] = { 59.9, 45.3, 17, 413 }, [119] = { 50.1, 45.3, 17, 413 }, [120] = { 59.6, 44.9, 17, 413 }, [121] = { 60.4, 44.8, 17, 413 }, [122] = { 60, 44.4, 17, 413 }, [123] = { 55.7, 44.4, 17, 413 }, [124] = { 53.6, 44.4, 17, 413 }, [125] = { 55, 44.4, 17, 413 }, [126] = { 59.3, 44.3, 17, 413 }, [127] = { 51.7, 44.2, 17, 413 }, [128] = { 58.3, 44.1, 17, 413 }, [129] = { 59.8, 43.9, 17, 413 }, [130] = { 52.1, 43.9, 17, 413 }, [131] = { 60.5, 43.7, 17, 413 }, [132] = { 58.8, 43.4, 17, 413 }, [133] = { 52.9, 43.4, 17, 413 }, [134] = { 51.1, 43.3, 17, 413 }, [135] = { 52.8, 43, 17, 413 }, [136] = { 60, 42.9, 17, 413 }, [137] = { 59, 42.7, 17, 413 }, [138] = { 57.6, 42.3, 17, 413 }, [139] = { 48.8, 41.7, 17, 413 }, [140] = { 44.2, 41.5, 17, 413 }, [141] = { 61.5, 41.3, 17, 413 }, [142] = { 44.4, 41.2, 17, 413 }, [143] = { 54.4, 41, 17, 413 }, [144] = { 43.8, 40.9, 17, 413 }, [145] = { 54, 40.9, 17, 413 }, [146] = { 54.2, 40.8, 17, 413 }, [147] = { 43.5, 40.7, 17, 413 }, [148] = { 44.5, 40.7, 17, 413 }, [149] = { 57.3, 40.5, 17, 413 }, [150] = { 55.9, 40.1, 17, 413 }, [151] = { 50.8, 40, 17, 413 }, [152] = { 58.8, 39.9, 17, 413 }, [153] = { 57.3, 39.9, 17, 413 }, [154] = { 54.8, 39.6, 17, 413 }, [155] = { 49.7, 39.4, 17, 413 }, [156] = { 56.2, 39.2, 17, 413 }, [157] = { 50, 39, 17, 413 }, [158] = { 56, 38.8, 17, 413 }, [159] = { 42.6, 38.5, 17, 413 }, [160] = { 57.6, 38.4, 17, 413 }, [161] = { 42.8, 38.1, 17, 413 }, [162] = { 57.9, 37.1, 17, 413 }, [163] = { 57.7, 36.9, 17, 413 }, [164] = { 57.1, 36.4, 17, 413 }, [165] = { 57.4, 36.2, 17, 413 }, [166] = { 53.7, 35.9, 17, 413 }, [167] = { 52.2, 35.9, 17, 413 }, [168] = { 54.6, 35.9, 17, 413 }, [169] = { 57.2, 35.7, 17, 413 }, }, ["lvl"] = "13-15", }, -- Dig Rat [3444] = { ["lvl"] = "1", ["coords"] = { [1] = { 25.45, 60.82, 15, 0 }, [2] = { 25.56, 59.56, 15, 0 }, [3] = { 26.55, 57.5, 15, 0 }, [4] = { 26.67, 58.3, 15, 0 }, [5] = { 47.34, 84.98, 17, 0 }, [6] = { 48.05, 85.96, 17, 0 }, }, }, [3504] = { ["coords"] = { [1] = { 46.7, 77.6, 1519, 25 }, }, ["fac"] = "A", ["lvl"] = "1", }, [3505] = { ["coords"] = { [1] = { 54.7, 54.0, 1519, 43200 }, }, ["fac"] = "A", ["lvl"] = "1", }, [3507] = { ["coords"] = { [1] = { 62.4, 47.6, 1519, 43200 }, }, ["fac"] = "A", ["lvl"] = "1", }, [3508] = { ["coords"] = { [1] = { 63.3, 71.8, 1519, 43200 }, }, ["fac"] = "A", ["lvl"] = "1", }, [3510] = { ["coords"] = { [1] = { 63.4, 72.6, 1519, 43200 }, }, ["fac"] = "A", ["lvl"] = "1", }, [3511] = { ["coords"] = { [1] = { 63.4, 71.7, 1519, 43200 }, }, ["fac"] = "A", ["lvl"] = "1", }, [3512] = { ["coords"] = { [1] = { 63.3, 71.9, 1519, 43200 }, }, ["fac"] = "A", ["lvl"] = "1", }, [3513] = { ["coords"] = { [1] = { 72.4, 47.4, 1519, 43200 }, }, ["fac"] = "A", ["lvl"] = "25", }, [3518] = { ["coords"] = { [1] = { 63.5, 71.8, 1519, 525 }, }, ["fac"] = "A", ["lvl"] = "15", }, [3520] = { ["coords"] = { [1] = { 60.5, 57.1, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "2", }, [3581] = { ["coords"] = { [1] = { 71.3, 68.4, 1519, 7286 }, }, ["lvl"] = "50", ["rnk"] = "4", }, [3626] = { ["coords"] = { [1] = { 75.6, 63.0, 1519, 555 }, }, ["fac"] = "A", ["lvl"] = "5", }, [3627] = { ["coords"] = { [1] = { 50.3, 89.5, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "5", }, [3628] = { ["coords"] = { [1] = { 51.7, 93.3, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "5", }, [3629] = { ["coords"] = { [1] = { 77.3, 53.1, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "5", }, -- add Vanilla Jhawna Oatwind (new quest in turtle-wow) [3884] = { ["fac"] = "H", ["lvl"] = "13", ["coords"] = { [1] = { 47.6, 61.5, 215, 0 }, }, }, [4075] = { ["coords"] = { [1] = { 21.8, 54.9, 28, 180 }, [2] = { 26.8, 52.9, 28, 180 }, [3] = { 17.8, 52.3, 28, 180 }, [4] = { 21.2, 48.2, 28, 180 }, [5] = { 19.6, 47.8, 28, 180 }, [6] = { 32.7, 29.9, 28, 180 }, [7] = { 30.7, 24.1, 28, 180 }, [8] = { 27.5, 76.9, 33, 300 }, [9] = { 26.5, 73.6, 33, 300 }, [10] = { 60.3, 87.3, 36, 300 }, [11] = { 59, 85.1, 36, 300 }, [12] = { 60.8, 82.8, 36, 300 }, [13] = { 11.7, 78.3, 36, 300 }, [14] = { 18.3, 75.5, 36, 300 }, [15] = { 21.9, 60.1, 36, 300 }, [16] = { 19.6, 55.9, 36, 300 }, [17] = { 60.9, 47.2, 36, 300 }, [18] = { 61.9, 44.5, 36, 300 }, [19] = { 59.7, 43.6, 36, 300 }, [20] = { 20.9, 68.5, 45, 300 }, [21] = { 19.7, 67.2, 45, 300 }, [22] = { 29.1, 65.7, 45, 300 }, [23] = { 23.6, 65.7, 45, 300 }, [24] = { 19, 65.1, 45, 300 }, [25] = { 27, 64.8, 45, 300 }, [26] = { 25.4, 63, 45, 300 }, [27] = { 27.4, 62.8, 45, 300 }, [28] = { 29.4, 61.1, 45, 300 }, [29] = { 21.3, 61.1, 45, 300 }, [30] = { 24.5, 60.6, 45, 300 }, [31] = { 27.6, 60.5, 45, 300 }, [32] = { 26, 59.4, 45, 300 }, [33] = { 26.2, 59.1, 45, 300 }, [34] = { 23.3, 57.1, 45, 300 }, [35] = { 26.1, 57, 45, 300 }, [36] = { 31, 71.9, 85, 180 }, [37] = { 30, 71.5, 85, 180 }, [38] = { 31.8, 71.3, 85, 180 }, [39] = { 32.4, 70.8, 85, 180 }, [40] = { 29.7, 70.7, 85, 180 }, [41] = { 52.1, 70.5, 85, 180 }, [42] = { 30.8, 69.6, 85, 180 }, [43] = { 29.8, 69.5, 85, 180 }, [44] = { 32.1, 69.2, 85, 180 }, [45] = { 31.8, 68.9, 85, 180 }, [46] = { 35.2, 68.2, 85, 180 }, [47] = { 78.7, 67.9, 85, 180 }, [48] = { 47.9, 67.8, 85, 180 }, [49] = { 31.3, 67.2, 85, 180 }, [50] = { 42.5, 66.9, 85, 180 }, [51] = { 83.4, 66, 85, 180 }, [52] = { 29.9, 65.7, 85, 180 }, [53] = { 74.8, 65.4, 85, 180 }, [54] = { 33.3, 64.9, 85, 180 }, [55] = { 50.4, 64.6, 85, 180 }, [56] = { 56.2, 63.6, 85, 180 }, [57] = { 34.4, 63.1, 85, 180 }, [58] = { 32.1, 62.8, 85, 180 }, [59] = { 34.4, 62.4, 85, 180 }, [60] = { 29.5, 61.9, 85, 180 }, [61] = { 78.1, 61.5, 85, 180 }, [62] = { 53.9, 61.1, 85, 180 }, [63] = { 32, 61.1, 85, 180 }, [64] = { 76.6, 61.1, 85, 180 }, [65] = { 73.7, 60.8, 85, 180 }, [66] = { 33.5, 60.4, 85, 180 }, [67] = { 50.7, 60.3, 85, 180 }, [68] = { 29, 60.2, 85, 180 }, [69] = { 73.9, 60.1, 85, 180 }, [70] = { 77.8, 60, 85, 180 }, [71] = { 75.5, 59.4, 85, 180 }, [72] = { 42.6, 59.4, 85, 180 }, [73] = { 65.2, 58.8, 85, 180 }, [74] = { 76.7, 58.6, 85, 180 }, [75] = { 67.1, 58.5, 85, 180 }, [76] = { 53.8, 57.9, 85, 180 }, [77] = { 37.1, 56.8, 85, 180 }, [78] = { 50.4, 56.4, 85, 180 }, [79] = { 55, 56.3, 85, 180 }, [80] = { 32.7, 55.9, 85, 180 }, [81] = { 53.6, 55.8, 85, 180 }, [82] = { 61, 54.8, 85, 180 }, [83] = { 61.1, 54.1, 85, 180 }, [84] = { 53, 53.9, 85, 180 }, [85] = { 39.9, 53.7, 85, 180 }, [86] = { 53.1, 53.6, 85, 180 }, [87] = { 72.5, 52.9, 85, 180 }, [88] = { 58.4, 52.9, 85, 180 }, [89] = { 46.2, 52.7, 85, 180 }, [90] = { 58.4, 52.5, 85, 180 }, [91] = { 82.8, 51.3, 85, 180 }, [92] = { 64.9, 50.1, 85, 180 }, [93] = { 59.8, 49.7, 85, 180 }, [94] = { 48.7, 49.6, 85, 180 }, [95] = { 61.1, 49.1, 85, 180 }, [96] = { 56.7, 49, 85, 180 }, [97] = { 90.7, 48.7, 85, 180 }, [98] = { 56.9, 48.6, 85, 180 }, [99] = { 58.7, 48.2, 85, 180 }, [100] = { 39.5, 48.1, 85, 180 }, [101] = { 80.3, 47.7, 85, 180 }, [102] = { 57.8, 47.4, 85, 180 }, [103] = { 59.6, 46.9, 85, 180 }, [104] = { 62, 46.5, 85, 180 }, [105] = { 74.4, 45.1, 85, 180 }, [106] = { 86.9, 44.9, 85, 180 }, [107] = { 89, 44.1, 85, 180 }, [108] = { 39.2, 44, 85, 180 }, [109] = { 56.2, 43.1, 85, 180 }, [110] = { 56, 41.2, 85, 180 }, [111] = { 54.5, 41.1, 85, 180 }, [112] = { 84.3, 40.8, 85, 180 }, [113] = { 61.9, 40.6, 85, 180 }, [114] = { 72.8, 39.2, 85, 180 }, [115] = { 87.1, 38.6, 85, 180 }, [116] = { 57.6, 38.3, 85, 180 }, [117] = { 37.5, 38.1, 85, 180 }, [118] = { 65.6, 35.6, 85, 180 }, [119] = { 58.7, 34.1, 85, 180 }, [120] = { 65.5, 33.9, 85, 180 }, [121] = { 84.7, 33.8, 85, 180 }, [122] = { 71.1, 33.7, 85, 180 }, [123] = { 57.9, 32.2, 85, 180 }, [124] = { 72.9, 30.5, 85, 180 }, [125] = { 59.4, 80.6, 130, 300 }, [126] = { 55.3, 70, 130, 300 }, [127] = { 49.9, 67.3, 130, 300 }, [128] = { 71.3, 58.1, 130, 300 }, [129] = { 48.3, 41.3, 130, 300 }, [130] = { 53.5, 33.9, 130, 300 }, [131] = { 43.1, 20.5, 130, 300 }, [132] = { 75.6, 41.2, 267, 300 }, [133] = { 61.6, 24.8, 267, 300 }, [134] = { 60.5, 22.9, 267, 300 }, [135] = { 62.1, 20.9, 267, 300 }, [136] = { 19.1, 16.9, 267, 300 }, [137] = { 24.8, 14.5, 267, 300 }, [138] = { 30.7, 79, 405, 300 }, [139] = { 41.3, 78.8, 405, 300 }, [140] = { 38.6, 76, 405, 300 }, [141] = { 51.6, 71.6, 405, 300 }, [142] = { 60.3, 65.7, 405, 300 }, [143] = { 67.4, 65.4, 405, 300 }, [144] = { 52.8, 61.5, 405, 300 }, [145] = { 50.6, 60.1, 405, 300 }, [146] = { 63.7, 58.6, 405, 300 }, [147] = { 47.8, 57.6, 405, 300 }, [148] = { 49.2, 57.6, 405, 300 }, [149] = { 48.9, 49.1, 405, 300 }, [150] = { 62.9, 48.1, 405, 300 }, [151] = { 39.9, 47.7, 405, 300 }, [152] = { 57.6, 47.5, 405, 300 }, [153] = { 52, 46.9, 405, 300 }, [154] = { 44.1, 45.8, 405, 300 }, [155] = { 41.3, 41.5, 405, 300 }, [156] = { 46.2, 40.5, 405, 300 }, [157] = { 56.8, 39.2, 405, 300 }, [158] = { 54.7, 38.1, 405, 300 }, [159] = { 73.1, 35.7, 405, 300 }, [160] = { 75.1, 34.2, 405, 300 }, [161] = { 53.4, 32.9, 405, 300 }, [162] = { 59.3, 31.3, 405, 300 }, [163] = { 74.5, 21.7, 405, 300 }, [164] = { 69.7, 20.3, 405, 300 }, [165] = { 61.1, 18.3, 405, 300 }, [166] = { 61.2, 18.3, 405, 300 }, [167] = { 65.3, 18.1, 405, 300 }, [168] = { 57.4, 12.5, 405, 300 }, [169] = { 53.8, 7.4, 405, 300 }, [170] = { 32.6, 87.2, 406, 300 }, [171] = { 29.4, 82.5, 406, 300 }, [172] = { 36.2, 72.7, 406, 300 }, [173] = { 28.1, 68.7, 406, 300 }, [174] = { 35.3, 65.3, 406, 300 }, [175] = { 29.4, 65.2, 406, 300 }, [176] = { 36.7, 50.7, 406, 300 }, [177] = { 38, 42.3, 406, 300 }, [178] = { 40.1, 85.8, 1519, 270 }, }, ["lvl"] = "1", }, [4078] = { ["coords"] = { [1] = { 53.0, 86.6, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "32", }, -- move Collin Mauren [4087] = { ["fac"] = "A", ["lvl"] = "32", ["coords"] = { [1] = { 53, 86.6, 1519, 0 }, }, }, [4282] = { ["coords"] = { [1] = { 82.9, 28.5, 85, 300 }, [2] = { 28.2, 21.4, 28, 300 }, [3] = { 82.2, 36.1, 85, 300 }, [4] = { 84.8, 36, 85, 300 }, [5] = { 83.8, 35.7, 85, 300 }, [6] = { 82.3, 35.1, 85, 300 }, [7] = { 83.6, 34.9, 85, 300 }, [8] = { 84.5, 34, 85, 300 }, [9] = { 82.9, 33.5, 85, 300 }, [10] = { 83.9, 30.7, 85, 300 }, [11] = { 81.5, 30.3, 85, 300 }, [12] = { 81.5, 29.5, 85, 300 }, [13] = { 82.2, 29.5, 85, 300 }, [14] = { 81.1, 29.5, 85, 300 }, [15] = { 83.7, 29.4, 85, 300 }, [16] = { 80.9, 29.4, 85, 300 }, [17] = { 83.1, 29.3, 85, 300 }, }, ["lvl"] = "29-30", ["rnk"] = "1", }, [4959] = { ["coords"] = { [1] = { 76.3, 85.1, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "15", }, [4960] = { ["coords"] = { [1] = { 80.2, 44.1, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "32", }, [4961] = { ["coords"] = { [1] = { 74.3, 59.2, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "26", }, [4974] = { ["coords"] = { [1] = { 63.8, 76.8, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "50", }, [4981] = { ["coords"] = { [1] = { 66.4, 73.5, 1519, 375 }, }, ["fac"] = "A", ["lvl"] = "25", }, -- move Thomas [4982] = { ["fac"] = "A", ["lvl"] = "1", ["coords"] = { [1] = { 51.6, 48.4, 1519, 0 }, }, }, [4984] = { ["coords"] = { [1] = { 36.2, 67.6, 1519, 285 }, }, ["fac"] = "A", ["lvl"] = "20", }, [4995] = { ["coords"] = { [1] = { 51.6, 68.0, 1519, 540 }, [2] = { 51.6, 68.1, 1519, 540 }, [3] = { 51.4, 68.3, 1519, 540 }, [4] = { 51.2, 68.4, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "45", }, [4996] = { ["coords"] = { [1] = { 52.3, 65.6, 1519, 540 }, [2] = { 52.4, 66.2, 1519, 540 }, [3] = { 52.0, 66.5, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "45", }, [5042] = { ["coords"] = { [1] = { 52.2, 66.2, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [5043] = { ["coords"] = { [1] = { 51.0, 67.4, 1519, 0 }, }, ["lvl"] = "20", }, [5081] = { ["coords"] = { [1] = { 51.1, 99,5, 1519, 490 }, }, ["fac"] = "A", ["lvl"] = "25", }, [5193] = { ["coords"] = { [1] = { 64.0, 77.5, 1519, 375 }, }, ["fac"] = "A", ["lvl"] = "25", }, [5246] = { ["coords"] = { [1] = { 75.8, 60, 357, 300 }, [2] = { 74.6, 60, 357, 300 }, [3] = { 75.1, 59.6, 357, 300 }, [4] = { 76.2, 59.2, 357, 300 }, [5] = { 76.8, 63.2, 357, 300 }, [6] = { 75.1, 62, 357, 300 }, [7] = { 73.8, 61.5, 357, 300 }, [8] = { 72.8, 61.5, 357, 300 }, [9] = { 73.4, 60.9, 357, 300 }, [10] = { 74.2, 60.8, 357, 300 }, }, ["lvl"] = "44-45", }, [5384] = { ["coords"] = { [1] = { 69.3, 40.4, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "40", }, [5386] = { ["coords"] = { [1] = { 51.4, 73.8, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "15", }, [5413] = { ["coords"] = { [1] = { 64.6, 37.2, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "40", }, [5427] = { ["coords"] = { [1] = { 33.8, 66.2, 440, 300 }, [2] = { 34.3, 66.1, 440, 300 }, [3] = { 33.7, 64.6, 440, 300 }, [4] = { 40.5, 64.6, 440, 300 }, [5] = { 41.9, 63.9, 440, 300 }, [6] = { 40.2, 63.9, 440, 300 }, [7] = { 32.1, 63.7, 440, 300 }, [8] = { 41.6, 63.4, 440, 300 }, [9] = { 34.1, 63.3, 440, 300 }, [10] = { 42.5, 63.3, 440, 300 }, [11] = { 40.6, 63.3, 440, 300 }, [12] = { 42, 62.6, 440, 300 }, [13] = { 41.4, 62.4, 440, 300 }, [14] = { 31.5, 61.9, 440, 300 }, [15] = { 31.4, 61.1, 440, 300 }, [16] = { 32.7, 61, 440, 300 }, [17] = { 30.3, 60.9, 440, 300 }, [18] = { 35.8, 60.5, 440, 300 }, [19] = { 38.4, 60.5, 440, 300 }, [20] = { 32.8, 60.2, 440, 300 }, [21] = { 33.7, 59.7, 440, 300 }, [22] = { 29, 59.3, 440, 300 }, [23] = { 32.3, 58.9, 440, 300 }, [24] = { 34, 58.9, 440, 300 }, [25] = { 31.1, 58.9, 440, 300 }, [26] = { 28.6, 57.4, 440, 300 }, [27] = { 33.3, 57.4, 440, 300 }, [28] = { 30.9, 57.1, 440, 300 }, [29] = { 25.7, 56.4, 440, 300 }, [30] = { 27.7, 56.1, 440, 300 }, [31] = { 34, 56, 440, 300 }, [32] = { 31.3, 56, 440, 300 }, [33] = { 30.4, 53.2, 440, 300 }, [34] = { 43.4, 52.4, 440, 300 }, [35] = { 43.4, 51.7, 440, 300 }, [36] = { 42.9, 51.4, 440, 300 }, [37] = { 43.4, 51, 440, 300 }, [38] = { 43.9, 51, 440, 300 }, [39] = { 42.9, 50.7, 440, 300 }, [40] = { 43.5, 50.3, 440, 300 }, [41] = { 43.9, 50.2, 440, 300 }, [42] = { 44.4, 50.1, 440, 300 }, [43] = { 44.4, 49.6, 440, 300 }, [44] = { 48.2, 49.5, 440, 300 }, [45] = { 44.9, 49.5, 440, 300 }, [46] = { 51.1, 49.4, 440, 300 }, [47] = { 40.6, 49.2, 440, 300 }, [48] = { 29.5, 48.9, 440, 300 }, [49] = { 43.4, 48.7, 440, 300 }, [50] = { 42.5, 48.6, 440, 300 }, [51] = { 45.4, 47.4, 440, 300 }, [52] = { 43.1, 47.3, 440, 300 }, [53] = { 50.4, 46, 440, 300 }, [54] = { 40.5, 45, 440, 300 }, [55] = { 44.3, 44.4, 440, 300 }, [56] = { 42.4, 44.3, 440, 300 }, [57] = { 75.3, 87.4, 490, 300 }, [58] = { 32.9, 79.1, 440, 300 }, [59] = { 40.6, 77.8, 440, 300 }, [60] = { 32.8, 77.8, 440, 300 }, [61] = { 34.7, 77.7, 440, 300 }, [62] = { 29.9, 77.7, 440, 300 }, [63] = { 33.7, 77.7, 440, 300 }, [64] = { 30.9, 77.7, 440, 300 }, [65] = { 48.3, 77.6, 440, 300 }, [66] = { 43.4, 77.5, 440, 300 }, [67] = { 47.2, 76.5, 440, 300 }, [68] = { 43.5, 76.4, 440, 300 }, [69] = { 44.5, 76.3, 440, 300 }, [70] = { 46.3, 76.3, 440, 300 }, [71] = { 32.9, 76.3, 440, 300 }, [72] = { 48.3, 76.3, 440, 300 }, [73] = { 45.4, 76.3, 440, 300 }, [74] = { 38.8, 76.1, 440, 300 }, [75] = { 34.7, 74.9, 440, 300 }, [76] = { 46.4, 74.9, 440, 300 }, [77] = { 31.9, 74.9, 440, 300 }, [78] = { 45.4, 74.8, 440, 300 }, [79] = { 30.2, 73.5, 440, 300 }, [80] = { 35.7, 73.4, 440, 300 }, [81] = { 37.7, 72.2, 440, 300 }, [82] = { 35.7, 71.9, 440, 300 }, [83] = { 29, 71.9, 440, 300 }, [84] = { 46, 70.7, 440, 300 }, [85] = { 47.1, 70.6, 440, 300 }, [86] = { 37.8, 70.5, 440, 300 }, [87] = { 30.9, 70.2, 440, 300 }, [88] = { 49.3, 69.3, 440, 300 }, [89] = { 30.1, 69.2, 440, 300 }, [90] = { 46.5, 69.2, 440, 300 }, [91] = { 35.7, 68.9, 440, 300 }, [92] = { 31.9, 68.8, 440, 300 }, [93] = { 37.1, 68.4, 440, 300 }, [94] = { 37.6, 68.4, 440, 300 }, [95] = { 36.7, 68.4, 440, 300 }, [96] = { 38.2, 67.7, 440, 300 }, [97] = { 37.3, 67.5, 440, 300 }, [98] = { 31.9, 67.5, 440, 300 }, [99] = { 32.9, 67.5, 440, 300 }, [100] = { 37.6, 67.4, 440, 300 }, }, ["lvl"] = "47-48", }, -- Sand Shark [5435] = { ["lvl"] = "12-13", ["coords"] = { [1] = { 63.59, 13.17, 14, 3 }, [4] = { 64.6, 13.46, 14, 3 }, [5] = { 65.13, 35.92, 14, 3 }, [6] = { 65.16, 14.87, 14, 0 }, [7] = { 65.22, 22.19, 14, 3 }, [9] = { 65.3, 25.43, 14, 0 }, [11] = { 65.67, 16.43, 14, 3 }, [12] = { 65.75, 19.41, 14, 3 }, [13] = { 65.75, 24.66, 14, 3 }, }, }, -- move Noboru the Cudgel [5477] = { ["lvl"] = "39", ["coords"] = { [1] = { 47.1, 38.8, 8, 0 }, }, }, [5479] = { ["coords"] = { [1] = { 80.6, 59.9, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "50", }, [5480] = { ["coords"] = { [1] = { 80.4, 59.8, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "40", }, [5482] = { ["coords"] = { [1] = { 78.2, 53.1, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "35", }, [5483] = { ["coords"] = { [1] = { 78.5, 52.9, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [5484] = { ["coords"] = { [1] = { 50.6, 44.5, 1519, 350 }, }, ["fac"] = "A", ["lvl"] = "40", }, [5489] = { ["coords"] = { [1] = { 49.5, 45.2, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "50", }, [5491] = { ["coords"] = { [1] = { 49.6, 49.8, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "40", }, [5492] = { ["coords"] = { [1] = { 48.5, 49.1, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "50", }, [5493] = { ["coords"] = { [1] = { 55.0, 69.6, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "35", }, [5494] = { ["coords"] = { [1] = { 55.1, 69.8, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [5495] = { ["coords"] = { [1] = { 39.9, 84.2, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "40", }, [5496] = { ["coords"] = { [1] = { 39.7, 85.7, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "50", }, [5497] = { ["coords"] = { [1] = { 49.5, 85.8, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "40", }, [5498] = { ["coords"] = { [1] = { 48.3, 87.2, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "50", }, [5499] = { ["coords"] = { [1] = { 55.7, 86.1, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "35", }, [5500] = { ["coords"] = { [1] = { 55.5, 85.6, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "31", }, [5502] = { ["coords"] = { [1] = { 31.5, 62.6, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "35", }, [5503] = { ["coords"] = { [1] = { 55.8, 85.3, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [5504] = { ["coords"] = { [1] = { 35.5, 67.4, 1519, 490 }, }, ["fac"] = "A", ["lvl"] = "60", }, [5505] = { ["coords"] = { [1] = { 36.1, 64.4, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "50", }, [5506] = { ["coords"] = { [1] = { 34.4, 65.2, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "40", }, [5509] = { ["coords"] = { [1] = { 59.3, 33.8, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [5510] = { ["coords"] = { [1] = { 61.9, 36.6, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [5511] = { ["coords"] = { [1] = { 63.7, 37.0, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "33", }, [5512] = { ["coords"] = { [1] = { 63.2, 37.6, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [5513] = { ["coords"] = { [1] = { 59.3, 37.8, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "35", }, [5514] = { ["coords"] = { [1] = { 51.9, 37.5, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [5515] = { ["coords"] = { [1] = { 67.3, 36.2, 1519, 490 }, }, ["fac"] = "A", ["lvl"] = "60", }, [5516] = { ["coords"] = { [1] = { 67.6, 35.8, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "50", }, [5517] = { ["coords"] = { [1] = { 68.0, 36.0, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "40", }, [5518] = { ["coords"] = { [1] = { 62.1, 30.3, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "35", }, [5519] = { ["coords"] = { [1] = { 62.4, 29.9, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [5520] = { ["coords"] = { [1] = { 39.5, 84.5, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "40", }, [5564] = { ["coords"] = { [1] = { 71.7, 63.0, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "35", }, [5565] = { ["coords"] = { [1] = { 71.6, 62.8, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [5566] = { ["coords"] = { [1] = { 54.3, 84.1, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "35", }, [5567] = { ["coords"] = { [1] = { 52.2, 83.1, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "31", }, [5676] = { ["coords"] = { [1] = { 86.6, 27.1, 1497, 0 }, [2] = { 49.3, 50, 1637, 0 }, }, ["lvl"] = "10", }, [5677] = { ["coords"] = { [1] = { 86.6, 27.1, 1497, 0 }, [2] = { 49.3, 50, 1637, 0 }, }, ["lvl"] = "20", }, [5694] = { ["coords"] = { [1] = { 48.7, 87.6, 1519, 500 }, }, ["fac"] = "A", ["lvl"] = "62", }, -- move Tooga [5955] = { ["lvl"] = "45", ["coords"] = { [1] = { 52.7, 54.9, 440, 0 }, }, }, [6089] = { ["coords"] = { [1] = { 77.1, 53.3, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "50", }, [6090] = { ["coords"] = { [1] = { 77.0, 53.1, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "10", }, [6122] = { ["coords"] = { [1] = { 39.2, 85.2, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "50", }, [6171] = { ["coords"] = { [1] = { 50.5, 47.5, 1519, 490 }, }, ["fac"] = "A", ["lvl"] = "60", }, [6173] = { ["coords"] = { [1] = { 49.5, 44.9, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "9", }, [6174] = { ["coords"] = { [1] = { 61.6, 73.2, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "5", }, [6237] = { ["coords"] = { [1] = { 51.8, 68.2, 1519, 540 }, [2] = { 51.8, 67.7, 1519, 540 }, [3] = { 51.3, 68.8, 1519, 540 }, [4] = { 51.1, 68.7, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "45", }, [6267] = { ["coords"] = { [1] = { 39.1, 83.5, 1519, 285 }, }, ["fac"] = "A", ["lvl"] = "20", }, [6579] = { ["coords"] = { [1] = { 62.6, 34.1, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "17", }, [6740] = { ["coords"] = { [1] = { 60.4, 75.3, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [6946] = { ["coords"] = { [1] = { 78.3, 71.1, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "40", }, [7047] = { ["coords"] = { [1] = { 89.5, 43.9, 46, 500 }, [2] = { 91.9, 38.5, 46, 500 }, [3] = { 91.7, 35.5, 46, 500 }, [4] = { 87.8, 33.4, 46, 500 }, [5] = { 91.6, 33.4, 46, 500 }, [6] = { 84.9, 31.9, 46, 500 }, [7] = { 86.9, 30.5, 46, 500 }, [8] = { 88.3, 29.8, 46, 500 }, [9] = { 81, 28.2, 46, 500 }, [10] = { 81.4, 26.5, 46, 500 }, [11] = { 84.6, 62.1, 46, 500 }, [12] = { 90.5, 50.9, 46, 500 }, [13] = { 90.6, 47.4, 46, 500 }, [14] = { 90.5, 45.2, 46, 500 }, }, ["lvl"] = "51-52", }, [7207] = { ["coords"] = { [1] = { 80.1, 69.9, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "45", }, [7208] = { ["coords"] = { [1] = { 80.5, 69.6, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "25", }, [7232] = { ["coords"] = { [1] = { 59.3, 34.5, 1519, 490 }, }, ["fac"] = "A", ["lvl"] = "60", }, [7295] = { ["coords"] = { [1] = { 38.1, 64.2, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "35", }, [7386] = { ["coords"] = { [1] = { 47.4, 57.0, 1519, 180 }, }, ["lvl"] = "1", }, [7410] = { ["coords"] = { [1] = { 79.4, 37.0, 1519, 1680 }, }, ["fac"] = "A", ["lvl"] = "61", }, [7766] = { ["coords"] = { [1] = { 73.2, 35.7, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "37", }, [7779] = { ["coords"] = { [1] = { 75.4, 31.2, 1519, 555 }, }, ["fac"] = "A", ["lvl"] = "25", }, [7798] = { ["coords"] = { [1] = { 63.0, 36.4, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "50", }, [7917] = { ["coords"] = { [1] = { 51.1, 48.4, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "55", }, [8118] = { ["coords"] = { [1] = { 62.4, 70.2, 1519, 120 }, }, ["fac"] = "AH", ["lvl"] = "28-30", }, [8383] = { ["coords"] = { [1] = { 809, 61.4, 1519, 490 }, }, ["fac"] = "A", ["lvl"] = "60", }, [8666] = { ["coords"] = { [1] = { 69.3, 53.6, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "5", }, [8670] = { ["coords"] = { [1] = { 60.8, 71.5, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "50", }, [8719] = { ["coords"] = { [1] = { 61.2, 71.3, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "50", }, [8856] = { ["coords"] = { [1] = { 73.2, 35.7, 1519, 240 }, }, ["fac"] = "A", ["lvl"] = "25", }, [9584] = { ["coords"] = { [1] = { 40.4, 84.6, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "45", }, [9977] = { ["coords"] = { [1] = { 42.6, 64.1, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [10782] = { ["coords"] = { [1] = { 57.2, 48.1, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "40", }, [11026] = { ["coords"] = { [1] = { 61.9, 30.6, 1519, 285 }, }, ["fac"] = "A", ["lvl"] = "24", }, [11068] = { ["coords"] = { [1] = { 53.0, 73.7, 1519, 375 }, }, ["fac"] = "A", ["lvl"] = "25", }, [11069] = { ["coords"] = { [1] = { 67.2, 37.7, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "30", }, [11096] = { ["coords"] = { [1] = { 71.2, 62.9, 1519, 285 }, }, ["fac"] = "A", ["lvl"] = "24", }, [11397] = { ["coords"] = { [1] = { 35.7, 63.3, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "30", }, [11442] = { ["coords"] = { [1] = { 64.5, 35.9, 357, 3300 }, [2] = { 63.7, 33.8, 357, 3300 }, [3] = { 61.1, 33.5, 357, 3300 }, [4] = { 61.7, 32.3, 357, 3300 }, [5] = { 61.1, 31.8, 357, 3300 }, [6] = { 63.2, 31.7, 357, 3300 }, [7] = { 61.5, 30, 357, 3300 }, [8] = { 64.2, 29.5, 357, 3300 }, [9] = { 60.9, 29.3, 357, 3300 }, [10] = { 61.8, 28.1, 357, 3300 }, [11] = { 63.1, 27.2, 357, 3300 }, [12] = { 64.1, 26.5, 357, 3300 }, [13] = { 61.1, 26.4, 357, 3300 }, [14] = { 63.1, 26.1, 357, 3300 }, [15] = { 61.6, 26, 357, 3300 }, [16] = { 62.1, 25.1, 357, 3300 }, [17] = { 65.4, 36.1, 357, 3300 }, [18] = { 62.9, 36, 357, 3300 }, [19] = { 59.2, 36, 357, 3300 }, }, ["lvl"] = "53-54", ["rnk"] = "1", }, -- Immol'thar [11496] = { ["coords"] = { [1] = { 58.7, 42.4, 357, 0 } }, ["lvl"] = "61", ["rnk"] = "1", }, [11827] = { ["coords"] = { [1] = { 37.1, 63.4, 1519, 310 }, }, ["fac"] = "A", ["lvl"] = "35", }, [11828] = { ["coords"] = { [1] = { 38.0, 66.1, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "40", }, [11867] = { ["coords"] = { [1] = { 63.9,68.1, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "50", }, [11916] = { ["coords"] = { [1] = { 33.3, 62.6, 1519, 375 }, }, ["fac"] = "A", ["lvl"] = "25", }, [12336] = { ["coords"] = { [1] = { 52.6, 43.4, 1519, 540 }, }, ["fac"] = "A", ["lvl"] = "44", }, [12480] = { ["coords"] = { [1] = { 62.9, 71.6, 1519, 25 }, }, ["fac"] = "A", ["lvl"] = "58", }, [12481] = { ["coords"] = { [1] = { 62.9, 71.6, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "57", ["rnk"] = "1", }, [12580] = { ["coords"] = { [1] = { 69.9, 83.2, 1519, 180 }, }, ["fac"] = "A", ["lvl"] = "63", ["rnk"] = "1", }, [12805] = { ["coords"] = { [1] = { 76.8, 65.9, 1519, 420 }, }, ["fac"] = "A", ["lvl"] = "55", }, [13283] = { ["coords"] = { [1] = { 80.3, 68.6, 1519, 490 }, }, ["fac"] = "A", ["lvl"] = "60", }, [13435] = { ["coords"] = { [1] = { 62.2, 70.2, 1519, 840 }, }, ["fac"] = "AH", ["lvl"] = "30", }, [13436] = { ["coords"] = { [1] = { 62.3, 70.1, 1519, 840 }, }, ["fac"] = "AH", ["lvl"] = "30", }, -- Keeper Marandis [13698] = { ["lvl"] = "43", ["coords"] = { [1] = { 63.84, 10.68, 405, 0 }, }, }, [14394] = { ["coords"] = { [1] = { 67.2, 85.5, 1519, 490 }, }, ["fac"] = "A", ["lvl"] = "60", }, [14423] = { ["coords"] = { [1] = { 62.0, 77.8, 1519, 350 }, }, ["fac"] = "A", ["lvl"] = "60", }, [14438] = { ["coords"] = { [1] = { 62.1, 72.1, 1519, 350 }, }, ["fac"] = "A", ["lvl"] = "60", ["rnk"] = "1", }, [14439] = { ["coords"] = { [1] = { 62.1, 57.9, 1519, 350 }, }, ["fac"] = "A", ["lvl"] = "60", }, [14450] = { ["coords"] = { [1] = { 56.3, 54.0, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "10", }, [14481] = { ["coords"] = { [1] = { 62.2, 68.4, 1519, 720 }, }, ["fac"] = "A", ["lvl"] = "10", }, [14496] = { ["coords"] = { [1] = { 56.9, 52.7, 1519, 120 }, }, ["fac"] = "A", ["lvl"] = "1-3", }, [14497] = { ["coords"] = { [1] = { 57.0, 57.2, 1519, 285 }, }, ["fac"] = "A", ["lvl"] = "20", }, [14721] = { ["coords"] = { [1] = { 71.5, 80.5, 1519, 180 }, }, ["fac"] = "A", ["lvl"] = "62", ["rnk"] = "1", }, [14722] = { ["coords"] = { [1] = { 83.9, 81.7, 1519, 325 }, }, ["fac"] = "A", ["lvl"] = "35", }, [14981] = { ["coords"] = { [1] = { 80.8, 39.6, 1519, 180 }, }, ["fac"] = "A", ["lvl"] = "61", }, [15310] = { ["coords"] = { [1] = { 56.9, 52.7, 1519, 477 }, }, ["fac"] = "A", ["lvl"] = "1", }, [15351] = { ["coords"] = { [1] = { 39.3, 82.3, 36, 25 }, [2] = { 45.7, 45.7, 45, 300 }, [3] = { 29.3, 54.1, 141, 300 }, [4] = { 43.2, 20.5, 267, 25 }, [5] = { 61.9, 83.8, 331, 25 }, [6] = { 81.2, 38.5, 1519, 300 }, [7] = { 69.8, 66.2, 1537, 300 }, [8] = { 58, 34.5, 1657, 300 }, }, ["fac"] = "A", ["lvl"] = "60", }, [15562] = { ["coords"] = { [1] = { 36.3, 67.1, 1519, 180 }, }, ["fac"] = "AH", ["lvl"] = "60", }, [15659] = { ["coords"] = { [1] = { 61.2, 70.7, 1519, 430 }, }, ["fac"] = "A", ["lvl"] = "50", }, [15694] = { ["coords"] = { [1] = { 35.7, 59.1, 493, 120 }, [2] = { 35.8, 59, 493, 120 }, [3] = { 35.5, 58.9, 493, 120 }, [4] = { 35.8, 58.7, 493, 120 }, [5] = { 35.6, 58.6, 493, 120 }, [6] = { 73.0, 88.8, 1519, 120 }, [7] = { 76.7, 85.4, 1519, 120 }, [8] = { 70.2, 93.6, 1519, 120 }, [9] = { 62.8, 71.7, 1519, 120 }, }, ["fac"] = "A", ["lvl"] = "1-60", }, [15708] = { ["coords"] = { [1] = { 51.8, 74.2, 1519, 3540 }, }, ["fac"] = "A", ["lvl"] = "60", }, [15732] = { ["coords"] = { [1] = { 53.2, 35.6, 1, 180 }, [2] = { 9.2, 58.4, 11, 180 }, [3] = { 50, 13.6, 14, 180 }, [4] = { 26.7, 73.5, 33, 180 }, [5] = { 61, 59.4, 85, 180 }, [6] = { 53.5, 28, 440, 180 }, [7] = { 68.1, 71.7, 1519, 180 }, }, ["fac"] = "AH", ["lvl"] = "30", }, [15766] = { ["coords"] = { [1] = { 62.1, 75.0, 1519, 300 }, }, ["fac"] = "A", ["lvl"] = "55", }, [15892] = { ["coords"] = { [1] = { 26, 56.1, 141, 180 }, [2] = { 23.9, 49.7, 141, 300 }, [3] = { 23.7, 49.5, 141, 300 }, [4] = { 23.8, 49.4, 141, 300 }, [5] = { 61.7, 76.7, 1519, 180 }, [6] = { 30.9, 61.6, 1537, 180 }, [7] = { 31.1, 18.6, 1537, 180 }, [8] = { 29.9, 17.9, 1537, 180 }, [9] = { 30.9, 16.7, 1537, 180 }, [10] = { 42.2, 44, 1657, 180 }, [11] = { 32.1, 13.1, 1657, 300 }, [12] = { 31.2, 12.5, 1657, 300 }, [13] = { 31.9, 11.7, 1657, 300 }, }, ["fac"] = "AH", ["lvl"] = "55", }, [15898] = { ["coords"] = { [1] = { 24.4, 49.6, 141, 600 }, [2] = { 44.1, 22.5, 215, 180 }, [3] = { 36.3, 58.5, 493, 180 }, [4] = { 36.6, 58.1, 493, 180 }, [5] = { 66.5, 36, 1497, 180 }, [6] = { 37.1, 64.4, 1519, 180 }, [7] = { 29.9, 14.2, 1537, 180 }, [8] = { 41.3, 32.4, 1637, 180 }, [9] = { 70.6, 27.8, 1638, 180 }, [10] = { 34.6, 12.8, 1657, 600 }, }, ["fac"] = "AH", ["lvl"] = "55", }, [16002] = { ["coords"] = { [1] = { 61.5, 76.0, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "5", }, [16005] = { ["coords"] = { [1] = { 64.0, 71.7, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "5", [2] = { 25.3, 63.8, 141, 604800 }, [3] = { 42, 27.6, 215, 604800 }, [4] = { 58, 92.1, 1497, 604800 }, [5] = { 79.4, 39.2, 1519, 604800 }, [6] = { 38.6, 55.6, 1537, 604800 }, [7] = { 31.8, 38.3, 1637, 604800 }, [8] = { 59.9, 52.7, 1638, 604800 }, }, [16075] = { ["coords"] = { [1] = { 74.6, 13.5, 130, 604800 }, [2] = { 25.3, 63.8, 141, 604800 }, [3] = { 42, 27.6, 215, 604800 }, [4] = { 58, 92.1, 1497, 604800 }, [5] = { 78.3, 18.1, 1519, 270 }, [6] = { 38.6, 55.6, 1537, 604800 }, [7] = { 31.8, 38.3, 1637, 604800 }, [8] = { 59.9, 52.7, 1638, 604800 }, [9] = { 38.8, 81.3, 1657, 604800 }, }, ["fac"] = "AH", ["lvl"] = "1", }, [16105] = { ["coords"] = { [1] = { 61.6, 75.9, 1519, 270 }, }, ["fac"] = "A", ["lvl"] = "5", }, [16106] = { ["coords"] = { [1] = { 50.6, 60.8, 1519, 45 }, }, ["fac"] = "A", ["lvl"] = "5", }, [16241] = { ["coords"] = { [1] = { 25.4, 56.4, 141, 120 }, [2] = { 25.6, 56.3, 141, 120 }, [3] = { 62.3, 74.0, 1519, 120 }, [4] = { 34.1, 68.1, 1537, 120 }, [5] = { 29.8, 61.6, 1537, 120 }, [6] = { 39.5, 45.3, 1657, 120 }, [7] = { 40.4, 45.2, 1657, 120 }, }, ["lvl"] = "60", }, [16433] = { ["coords"] = { [1] = { 80.7, 60, 139, 120 }, [2] = { 25.4, 56.6, 141, 120 }, [3] = { 61.8, 74.1, 1519, 120 }, [4] = { 29.4, 60.5, 1537, 120 }, [5] = { 39.4, 46.7, 1657, 120 }, }, ["lvl"] = "55", }, [16434] = { ["coords"] = { [1] = { 80.7, 60, 139, 120 }, [2] = { 25.4, 56.6, 141, 120 }, [3] = { 61.9,74.0, 1519, 120 }, [4] = { 29.4, 60.5, 1537, 120 }, [5] = { 39.4, 46.7, 1657, 120 }, }, ["lvl"] = "55", }, [16478] = { ["coords"] = { [1] = { 69.9, 83.8, 1519, 120 }, }, ["lvl"] = "10", }, [16592] = { ["coords"] = { [1] = { 46.6, 46.5, 1, 300 }, [2] = { 4.9, 49.2, 3, 300 }, [3] = { 59, 17.3, 4, 300 }, [4] = { 46.8, 46.5, 8, 300 }, [5] = { 73.4, 54.9, 10, 300 }, [6] = { 13.3, 47.2, 11, 300 }, [7] = { 43.2, 62.9, 12, 300 }, [8] = { 62, 40.4, 15, 300 }, [9] = { 33.3, 30.8, 15, 300 }, [10] = { 52.7, 69.9, 17, 300 }, [11] = { 52.2, 27.9, 17, 300 }, [12] = { 33, 75.4, 33, 300 }, [13] = { 33.8, 73.3, 33, 300 }, [14] = { 56.6, 87.7, 36, 300 }, [15] = { 32.6, 40.5, 38, 300 }, [16] = { 56.1, 53.9, 40, 300 }, [17] = { 24.9, 59.4, 44, 300 }, [18] = { 50.3, 44.9, 45, 300 }, [19] = { 74.1, 41.8, 45, 300 }, [20] = { 62.1, 29, 46, 300 }, [21] = { 76.7, 74.6, 47, 300 }, [22] = { 14.5, 49.8, 47, 300 }, [23] = { 84.2, 40.7, 51, 300 }, [24] = { 62.3, 66.9, 85, 300 }, [25] = { 49.6, 38.6, 130, 300 }, [26] = { 56.6, 92.3, 141, 300 }, [27] = { 54.9, 60.5, 141, 300 }, [28] = { 37.1, 45.9, 148, 300 }, [29] = { 34.1, 22, 215, 300 }, [30] = { 50.4, 47.1, 267, 300 }, [31] = { 58.4, 25.2, 267, 300 }, [32] = { 70, 69.2, 331, 300 }, [33] = { 37.8, 55, 331, 300 }, [34] = { 72.4, 47.6, 357, 300 }, [35] = { 42.4, 52.8, 400, 300 }, [36] = { 26.2, 77.2, 405, 300 }, [37] = { 87.6, 49.4, 405, 300 }, [38] = { 65.9, 17, 405, 300 }, [39] = { 50.6, 60.3, 406, 300 }, [40] = { 52.8, 29.2, 440, 300 }, [41] = { 49.8, 27.1, 440, 300 }, [42] = { 59.8, 35.4, 618, 300 }, [43] = { 62.7, 35.4, 618, 300 }, [44] = { 46.4, 44.9, 1377, 300 }, [45] = { 57.8, 34.9, 1377, 300 }, [46] = { 68.2, 8.7, 1497, 300 }, [47] = { 49.7, 73.0, 1519, 300 }, [48] = { 64.6, 24.8, 1537, 300 }, [49] = { 46.9, 38.7, 1637, 300 }, [50] = { 21.1, 25.6, 1638, 300 }, }, ["fac"] = "AH", ["lvl"] = "1", }, [16781] = { ["coords"] = { [1] = { 46.8, 47.4, 1, 300 }, [2] = { 46.8, 47.3, 1, 300 }, [3] = { 46.5, 47.3, 1, 300 }, [4] = { 46.5, 47.2, 1, 300 }, [5] = { 4.5, 48.2, 3, 300 }, [6] = { 4.6, 48.1, 3, 300 }, [7] = { 4.8, 48, 3, 300 }, [8] = { 59.4, 18, 4, 300 }, [9] = { 59.5, 18, 4, 300 }, [10] = { 59, 16.5, 4, 300 }, [11] = { 58.9, 16.5, 4, 300 }, [12] = { 46.8, 47.8, 8, 300 }, [13] = { 46.6, 47.8, 8, 300 }, [14] = { 47.3, 47.7, 8, 300 }, [15] = { 47.2, 47.3, 8, 300 }, [16] = { 73.4, 53.8, 10, 300 }, [17] = { 74.1, 53.7, 10, 300 }, [18] = { 74, 53.6, 10, 300 }, [19] = { 73.4, 53.5, 10, 300 }, [20] = { 13.7, 46.7, 11, 300 }, [21] = { 13.8, 46.6, 11, 300 }, [22] = { 13.6, 46.5, 11, 300 }, [23] = { 13.6, 46.4, 11, 300 }, [24] = { 43.9, 62.4, 12, 300 }, [25] = { 43.8, 62.3, 12, 300 }, [26] = { 43.5, 62, 12, 300 }, [27] = { 43.6, 61.9, 12, 300 }, [28] = { 61.8, 41.1, 15, 300 }, [29] = { 61.5, 41.1, 15, 300 }, [30] = { 61.4, 41.1, 15, 300 }, [31] = { 61.7, 41, 15, 300 }, [32] = { 33.6, 30.9, 15, 300 }, [33] = { 33.6, 30.7, 15, 300 }, [34] = { 33.6, 30.6, 15, 300 }, [35] = { 52.9, 70, 17, 300 }, [36] = { 52.9, 69.9, 17, 300 }, [37] = { 52.9, 69.8, 17, 300 }, [38] = { 52.2, 28.2, 17, 300 }, [39] = { 52.1, 28.2, 17, 300 }, [40] = { 52.1, 28.1, 17, 300 }, [41] = { 32.8, 75.7, 33, 300 }, [42] = { 32.9, 75.6, 33, 300 }, [43] = { 32.6, 75.4, 33, 300 }, [44] = { 32.7, 75.3, 33, 300 }, [45] = { 34.1, 73.4, 33, 300 }, [46] = { 34.1, 73.3, 33, 300 }, [47] = { 33.9, 73.2, 33, 300 }, [48] = { 33.9, 73.1, 33, 300 }, [49] = { 57.4, 87.3, 36, 300 }, [50] = { 57, 87.1, 36, 300 }, [51] = { 57.3, 87.1, 36, 300 }, [52] = { 57, 86.9, 36, 300 }, [53] = { 32.7, 41.5, 38, 300 }, [54] = { 32.5, 41.5, 38, 300 }, [55] = { 31.7, 41.1, 38, 300 }, [56] = { 31.8, 41.1, 38, 300 }, [57] = { 55.6, 53.4, 40, 300 }, [58] = { 55.5, 53.4, 40, 300 }, [59] = { 55.2, 53.2, 40, 300 }, [60] = { 55.3, 53.2, 40, 300 }, [61] = { 25.3, 60.4, 44, 300 }, [62] = { 25.5, 60.4, 44, 300 }, [63] = { 26.1, 59.6, 44, 300 }, [64] = { 26, 59.3, 44, 300 }, [65] = { 49.8, 44.5, 45, 300 }, [66] = { 50.4, 44.3, 45, 300 }, [67] = { 74.5, 42.1, 45, 300 }, [68] = { 74.6, 42, 45, 300 }, [69] = { 74.4, 41, 45, 300 }, [70] = { 74.5, 40.9, 45, 300 }, [71] = { 61.4, 29.3, 46, 300 }, [72] = { 61.5, 29.1, 46, 300 }, [73] = { 61.2, 28.9, 46, 300 }, [74] = { 61.4, 28.8, 46, 300 }, [75] = { 76.8, 75.7, 47, 300 }, [76] = { 76.7, 75.6, 47, 300 }, [77] = { 77, 75.4, 47, 300 }, [78] = { 77, 75.2, 47, 300 }, [79] = { 14, 50.2, 47, 300 }, [80] = { 14.1, 50.2, 47, 300 }, [81] = { 14, 49.9, 47, 300 }, [82] = { 14, 49.8, 47, 300 }, [83] = { 83.7, 39.6, 51, 300 }, [84] = { 83.9, 39.4, 51, 300 }, [85] = { 84.1, 39.3, 51, 300 }, [86] = { 62.3, 67.9, 85, 300 }, [87] = { 62.2, 67.9, 85, 300 }, [88] = { 62.2, 67.2, 85, 300 }, [89] = { 62.3, 67.1, 85, 300 }, [90] = { 50, 38.3, 130, 300 }, [91] = { 50.1, 38.3, 130, 300 }, [92] = { 49.9, 38.1, 130, 300 }, [93] = { 50, 38, 130, 300 }, [94] = { 56.3, 92, 141, 300 }, [95] = { 56.2, 92, 141, 300 }, [96] = { 55.9, 91.7, 141, 300 }, [97] = { 55.9, 91.6, 141, 300 }, [98] = { 54.7, 60.7, 141, 300 }, [99] = { 55.2, 60.7, 141, 300 }, [100] = { 55.1, 60.6, 141, 300 }, [101] = { 54.6, 60.6, 141, 300 }, [102] = { 37.1, 46.4, 148, 300 }, [103] = { 36.9, 46.3, 148, 300 }, [104] = { 33.9, 22, 215, 300 }, [105] = { 34.2, 21.9, 215, 300 }, [106] = { 33.9, 21.8, 215, 300 }, [107] = { 34.1, 21.7, 215, 300 }, [108] = { 50, 48, 267, 300 }, [109] = { 49.9, 48, 267, 300 }, [110] = { 50, 47.6, 267, 300 }, [111] = { 50.1, 47.5, 267, 300 }, [112] = { 59.1, 24.8, 267, 300 }, [113] = { 58.7, 24.6, 267, 300 }, [114] = { 59, 24.6, 267, 300 }, [115] = { 58.7, 24.5, 267, 300 }, [116] = { 99.4, 10.4, 267, 300 }, [117] = { 99.5, 10.4, 267, 300 }, [118] = { 99.4, 10, 267, 300 }, [119] = { 70, 69.9, 331, 300 }, [120] = { 70, 69.8, 331, 300 }, [121] = { 70.3, 69.6, 331, 300 }, [122] = { 70.2, 69.5, 331, 300 }, [123] = { 37.6, 55.2, 331, 300 }, [124] = { 37.6, 55.1, 331, 300 }, [125] = { 37.4, 54.8, 331, 300 }, [126] = { 37.5, 54.7, 331, 300 }, [127] = { 72.2, 48.1, 357, 300 }, [128] = { 72.3, 48, 357, 300 }, [129] = { 72.1, 47.9, 357, 300 }, [130] = { 72.2, 47.8, 357, 300 }, [131] = { 42, 52.8, 400, 300 }, [132] = { 42, 52.7, 400, 300 }, [133] = { 26.5, 76.8, 405, 300 }, [134] = { 26.4, 76.7, 405, 300 }, [135] = { 26.2, 76.6, 405, 300 }, [136] = { 26.2, 76.5, 405, 300 }, [137] = { 87.3, 49.3, 405, 300 }, [138] = { 87.6, 49.2, 405, 300 }, [139] = { 87.3, 49.1, 405, 300 }, [140] = { 87.6, 49, 405, 300 }, [141] = { 66.5, 17.2, 405, 300 }, [142] = { 66.4, 17.2, 405, 300 }, [143] = { 66.4, 16.8, 405, 300 }, [144] = { 66.5, 16.8, 405, 300 }, [145] = { 50.2, 60.7, 406, 300 }, [146] = { 50.3, 60.7, 406, 300 }, [147] = { 50.2, 60.5, 406, 300 }, [148] = { 50.3, 60.4, 406, 300 }, [149] = { 52.6, 29.6, 440, 300 }, [150] = { 52.6, 29.5, 440, 300 }, [151] = { 52.5, 29.4, 440, 300 }, [152] = { 50, 26.9, 440, 300 }, [153] = { 50, 26.8, 440, 300 }, [154] = { 49.9, 26.8, 440, 300 }, [155] = { 50, 26.7, 440, 300 }, [156] = { 59.8, 36, 618, 300 }, [157] = { 59.9, 35.9, 618, 300 }, [158] = { 59.8, 35.8, 618, 300 }, [159] = { 62.5, 35.7, 618, 300 }, [160] = { 62.5, 35.6, 618, 300 }, [161] = { 62.4, 35.6, 618, 300 }, [162] = { 62.4, 35.5, 618, 300 }, [163] = { 46.8, 44.4, 1377, 300 }, [164] = { 46.9, 44.3, 1377, 300 }, [165] = { 46.6, 44.2, 1377, 300 }, [166] = { 46.6, 44, 1377, 300 }, [167] = { 57.2, 35.7, 1377, 300 }, [168] = { 57.2, 35.5, 1377, 300 }, [169] = { 57, 35.2, 1377, 300 }, [170] = { 56.9, 35.2, 1377, 300 }, [171] = { 68.1, 13.4, 1497, 300 }, [172] = { 67.6, 13.2, 1497, 300 }, [173] = { 68, 10, 1497, 300 }, [174] = { 68.3, 9.6, 1497, 300 }, [175] = { 39, 62.9, 1519, 300 }, [176] = { 49.6, 72.8, 1519, 300 }, [177] = { 66.2, 26.4, 1537, 300 }, [178] = { 65.7, 26, 1537, 300 }, [179] = { 63.8, 23.4, 1537, 300 }, [180] = { 63.2, 22.6, 1537, 300 }, [181] = { 47.4, 40.5, 1637, 300 }, [182] = { 47.5, 40.1, 1637, 300 }, [183] = { 47.6, 38, 1637, 300 }, [184] = { 48, 37.9, 1637, 300 }, [185] = { 20.1, 25.2, 1638, 300 }, [186] = { 21.4, 24.7, 1638, 300 }, [187] = { 20.1, 24.4, 1638, 300 }, [188] = { 21.3, 23.9, 1638, 300 }, }, ["fac"] = "AH", ["lvl"] = "1-60", }, [16786] = { ["coords"] = { [1] = { 80.7, 59.9, 139, 120 }, [2] = { 81, 59.7, 139, 120 }, [3] = { 25.4, 56.7, 141, 120 }, [4] = { 25.3, 56.4, 141, 120 }, [5] = { 61.6, 74.1, 1519, 120 }, [6] = { 61.5, 74.0, 1519, 120 }, [7] = { 33.9, 67.8, 1537, 120 }, [8] = { 29.6, 61.4, 1537, 120 }, [9] = { 29.4, 60, 1537, 120 }, [10] = { 39.5, 46.9, 1657, 120 }, [11] = { 39.1, 45.4, 1657, 120 }, }, ["lvl"] = "55", }, [17804] = { ["coords"] = { [1] = { 74.2, 90.3, 1519, 420 }, }, ["fac"] = "A", ["lvl"] = "52", }, -- High Elf Orphan [40020] = { ["fac"] = "A", ["lvl"] = "5", }, -- Professor Malkovich [50002] = { ["fac"] = "H", ["lvl"] = "25", ["coords"] = { [1] = { 51.1992, 69.9802, 1497, 0 }, }, }, -- Annoying Peasant [50003] = { ["lvl"] = "5", ["coords"] = { [1] = { 52.867, 75.1355, 1497, 0 }, }, }, -- Professor Papucho [50004] = { ["fac"] = "A", ["lvl"] = "25", ["coords"] = { [1] = { 53.4, 11.7, 1537, 0 }, }, }, -- Stupefied Orcish Peon [50005] = { ["lvl"] = "5", ["coords"] = { [1] = { 53.5, 13.4, 1537, 0 }, }, }, -- Suspicious Defias Footpad [50006] = { ["fac"] = "A", ["lvl"] = "15", ["coords"] = { [1] = { 43.02, 73.12, 40, 0 }, }, }, -- Suspicious Dark Iron Dwarf [50007] = { ["fac"] = "A", ["lvl"] = "30", ["coords"] = { [1] = { 48.83, 16.66, 11, 0 }, }, }, -- Suspicious Southsea Pirate [50008] = { ["fac"] = "A", ["lvl"] = "15", ["coords"] = { [1] = { 6.612, 59.83, 11, 0 }, [2] = { 63.27, 43.46, 17, 0 }, }, }, -- Suspicious Dalaran Wizard [50009] = { ["fac"] = "A", ["lvl"] = "20", ["coords"] = { [1] = { 58.71, 77.49, 130, 0 }, }, }, -- Suspicious Stonesplinter Trogg [50010] = { ["fac"] = "A", ["lvl"] = "15", ["coords"] = { [1] = { 26.87, 55.53, 38, 0 }, }, }, -- Suspicious Syndicate Highwayman [50011] = { ["fac"] = "A", ["lvl"] = "35", ["coords"] = { [1] = { 34.06, 27.28, 45, 0 }, }, }, -- Ol' Biggins [50012] = { ["fac"] = "A", ["lvl"] = "58", ["coords"] = { [1] = { 82.8, 78.27, 36, 0 }, }, }, -- Snowball [50112] = { ["lvl"] = "63", ["coords"] = { [1] = { 15.0, 50.5, 1, 0 } }, }, -- Godrick Bell [50506] = { ["fac"] = "A", ["lvl"] = "4-7", ["coords"] = { [1] = { 33.1, 47.4, 85, 0 } }, }, -- Benjamin Bradley [50507] = { ["fac"] = "A", ["lvl"] = "4-7", ["coords"] = { [1] = { 33.1, 47.4, 85, 0 } }, }, -- Undead Slayer [50508] = { ["fac"] = "H", ["lvl"] = "5-7", ["coords"] = { [1] = { 62.9, 10.1, 130, 0 } }, }, -- Jizzle Grikbot [50521] = { ["fac"] = "AH", ["lvl"] = "30", ["coords"] = { [1] = { 80.0, 76.8, 400, 0 } }, }, -- Gregor Fizzwuzz [50522] = { ["fac"] = "AH", ["lvl"] = "30", ["coords"] = { [1] = { 78.1, 77.1, 400, 0 } }, }, -- Fara Boltbreaker [50530] = { ["fac"] = "A", ["lvl"] = "30", }, -- Dolores [50533] = { ["fac"] = "AH", ["lvl"] = "15", ["coords"] = { [1] = { 81.3, 78.0, 400, 0 } }, }, -- Ol' Reinald Osworth [50604] = { ["fac"] = "A", ["lvl"] = "25", ["coords"] = { [1] = { 42.2, 62.7, 12, 0 } }, }, -- Julie Osworth [50605] = { ["fac"] = "A", ["lvl"] = "25", ["coords"] = { [1] = { 42.5, 62.8, 12, 0 } }, }, -- Lulu [50608] = { ["fac"] = "AH", ["lvl"] = "3", ["coords"] = { [1] = { 42.4, 63.0, 12, 0 } }, }, -- Lost Farm Sheep [50610] = { ["fac"] = "AH", ["lvl"] = "3", ["coords"] = { [1] = { 25.0, 91.6, 12, 0 }, [2] = { 26.1, 86.9, 12, 0 }, [3] = { 30.6, 58.0, 12, 0 }, [4] = { 30.8, 73.5, 12, 0 }, [5] = { 31.3, 66.4, 12, 0 }, [6] = { 33.9, 55.3, 12, 0 }, [7] = { 34.0, 65.1, 12, 0 }, [8] = { 35.0, 80.9, 12, 0 }, [9] = { 35.8, 55.7, 12, 0 }, [10] = { 36.4, 62.6, 12, 0 }, [11] = { 36.9, 89.7, 12, 0 }, [12] = { 38.0, 85.0, 12, 0 }, [13] = { 38.5, 72.1, 12, 0 }, [14] = { 39.6, 75.2, 12, 0 }, [15] = { 41.0, 53.1, 12, 0 }, [16] = { 42.8, 77.9, 12, 0 }, [17] = { 43.0, 51.3, 12, 0 }, [18] = { 44.0, 55.9, 12, 0 }, [19] = { 44.8, 58.6, 12, 0 }, [20] = { 46.0, 73.7, 12, 0 }, [21] = { 46.1, 79.6, 12, 0 }, [22] = { 46.5, 84.8, 12, 0 }, [23] = { 46.8, 75.4, 12, 0 }, [24] = { 48.0, 87.5, 12, 0 }, [25] = { 48.9, 76.5, 12, 0 }, [26] = { 50.1, 83.1, 12, 0 }, [27] = { 50.3, 60.6, 12, 0 }, [28] = { 50.6, 66.8, 12, 0 }, [29] = { 51.6, 59.1, 12, 0 }, [30] = { 55.5, 70.0, 12, 0 }, [31] = { 55.5, 75.5, 12, 0 }, [32] = { 60.0, 75.1, 12, 0 }, [33] = { 68.3, 79.3, 12, 0 }, [34] = { 69.6, 74.4, 12, 0 }, [35] = { 71.9, 65.4, 12, 0 }, [36] = { 76.3, 64.5, 12, 0 }, }, }, -- Shivering Moonkin Hatchling [50637] = { ["fac"] = "AH", ["lvl"] = "60", ["coords"] = { [1] = { 12.7, 39.4, 1, 0 }, [2] = { 12.8, 46.6, 1, 0 }, [3] = { 13.7, 36.8, 1, 0 }, [4] = { 14.7, 44.7, 1, 0 }, [5] = { 15.2, 35.4, 1, 0 }, [6] = { 15.2, 40.4, 1, 0 }, [7] = { 15.7, 48.8, 1, 0 }, [8] = { 16.1, 45.5, 1, 0 }, [9] = { 16.3, 30.4, 1, 0 }, [10] = { 16.5, 42.3, 1, 0 }, [11] = { 16.7, 34.0, 1, 0 }, [12] = { 17.2, 36.4, 1, 0 }, [13] = { 18.3, 33.2, 1, 0 }, [14] = { 19.0, 30.4, 1, 0 }, [15] = { 20.2, 29.5, 1, 0 }, [16] = { 20.7, 32.1, 1, 0 }, [17] = { 21.4, 27.9, 1, 0 }, [18] = { 21.9, 31.8, 1, 0 }, }, }, -- Holly Tallhair [50645] = { ["fac"] = "AH", ["lvl"] = "30-40", ["coords"] = { [1] = { 23.7, 26.4, 1, 0 } }, }, -- Gremm Tuskteeth [50649] = { ["fac"] = "A", ["lvl"] = "30-40", ["coords"] = { [1] = { 22.72, 27.8, 1, 0 }, }, }, -- Mr. Mistletoe [50654] = { ["fac"] = "AH", ["lvl"] = "35", ["coords"] = { [1] = { 24.0, 27.4, 1, 0 } }, }, -- Lantaria Woodshadow [50660] = { ["fac"] = "AH", ["lvl"] = "30-40", ["coords"] = { [1] = { 22.3, 27.0, 1, 0 } }, }, -- Tinsel Lost-Gloves [50662] = { ["fac"] = "AH", ["lvl"] = "35", ["coords"] = { [1] = { 24.4, 26.4, 1, 0 } }, }, -- Scarlet Guard [50681] = { ["lvl"] = "60", }, -- Tansy Sparkpen [50760] = { ["fac"] = "A", ["lvl"] = "30", }, -- Grizzlore [51254] = { ["fac"] = "AH", ["lvl"] = "1", ["coords"] = { [1] = { 23.4, 27.3, 1, 0 }, }, }, -- Gina Weller [51261] = { ["fac"] = "A", ["lvl"] = "25", ["coords"] = { [1] = { 41.0, 63.4, 12, 0 }, }, }, -- Reas [51266] = { ["fac"] = "A", ["lvl"] = "45", ["coords"] = { [1] = { 52.26, 28.04, 440, 0 }, }, }, -- Lady Janira [51280] = { ["lvl"] = "49-50", ["coords"] = { [1] = { 25.53, 54.74, 357, 0 }, }, }, -- Ophelia Worthington [51292] = { ["fac"] = "A", ["lvl"] = "35", ["coords"] = { [1] = { 64.5, 75.8, 1519, 0 }, }, }, -- Zora [51293] = { ["fac"] = "H", ["lvl"] = "35", ["coords"] = { [1] = { 46.02, 6.364, 14, 0 }, }, }, -- add Throw a coin to the fountain [51301] = { ["fac"] = "AH", ["lvl"] = "1", ["coords"] = { [1] = { 61.7, 74.3, 1519, 0 }, }, }, -- Teresa Palin [51302] = { ["fac"] = "A", ["lvl"] = "25", ["coords"] = { [1] = { 46.4, 46.9, 12, 0 }, }, }, -- Mortimer Stansfield [51530] = { ["fac"] = "A", ["lvl"] = "25", ["coords"] = { [1] = { 35.31, 50.22, 12, 0 }, }, }, -- Kern Mosshoof [51532] = { ["fac"] = "H", ["lvl"] = "25", ["coords"] = { [1] = { 44.2, 58.6, 215, 0 }, }, }, -- Mal'adaris [51536] = { ["lvl"] = "25", ["coords"] = { [1] = { 71.71, 50.22, 28, 0 }, }, }, -- Kelton's Riding Gryphon [51562] = { ["fac"] = "AH", ["lvl"] = "29", ["coords"] = { [1] = { 43.5, 64.5, 12, 0 }, }, }, -- Kelton Clemons [51564] = { ["fac"] = "A", ["lvl"] = "50", ["coords"] = { [1] = { 43.3, 64.4, 12, 0 }, }, }, -- Drakin Swiftaxe [51566] = { ["fac"] = "A", ["lvl"] = "45", ["coords"] = { [1] = { 14.83, 44.4, 47, 0 }, }, }, -- Deathguard Maverick [51567] = { ["fac"] = "H", ["lvl"] = "30", ["coords"] = { [1] = { 79.28, 41.74, 85, 0 }, }, }, -- WORMHOLE QUEST OBJECTIVE [51573] = { ["fac"] = "A", ["lvl"] = "40-55", }, -- Spirit of Palkeote [51598] = { ["lvl"] = "38-39", ["coords"] = { [1] = { 43.51, 39.66, 405, 0 }, }, }, -- Snufflesnout [51600] = { ["lvl"] = "4-5", ["coords"] = { [1] = { 50.4, 26.6, 12, 0 }, }, }, -- Morgan the Storm [51607] = { ["fac"] = "A", ["lvl"] = "43-44", ["coords"] = { [1] = { 32.4, 82.11, 33, 0 }, }, }, -- Robb Dursley [52006] = { ["fac"] = "A", ["lvl"] = "20-38", ["coords"] = { [1] = { 34.69, 65.31, 11, 0 }, [2] = { 34.69, 65.31, 11, 3 }, }, }, -- Poppy Zabini [52021] = { ["fac"] = "A", ["lvl"] = "20-38", ["coords"] = { [1] = { 39.4, 61.25, 11, 0 }, }, }, -- Lord Commander Ryke [52024] = { ["fac"] = "A", ["lvl"] = "20-38", ["coords"] = { [1] = { 36.43, 67.27, 11, 0 }, }, }, -- Jaime Sparrow [52030] = { ["fac"] = "A", ["lvl"] = "20-38", ["coords"] = { [1] = { 37.64, 65.71, 11, 0 }, }, }, -- Marge Blackwood [52039] = { ["fac"] = "A", ["lvl"] = "20-38", ["coords"] = { [1] = { 38.99, 65.27, 11, 3 }, [2] = { 39.21, 65.38, 11, 0 }, [3] = { 39.21, 65.38, 11, 3 }, }, }, -- Barthos Thundercrank [52066] = { ["fac"] = "A", ["lvl"] = "20-38", ["coords"] = { [1] = { 39.47, 65.38, 11, 0 }, }, }, -- Barltok Kettleburn [52068] = { ["fac"] = "A", ["lvl"] = "20-38", ["coords"] = { [1] = { 21, 71.33, 11, 0 }, [2] = { 21, 71.33, 11, 3 }, }, }, -- Grovug Mithrilmane [52069] = { ["fac"] = "A", ["lvl"] = "20-38", ["coords"] = { [1] = { 24.82, 63.79, 11, 0 }, }, }, -- Rann Blackbeard [52080] = { ["fac"] = "A", ["lvl"] = "20-38", ["coords"] = { [1] = { 68.77, 25.98, 1, 0 }, }, }, -- Captain Snowbeard [52095] = { ["fac"] = "A", ["lvl"] = "20-38", ["coords"] = { [1] = { 27.43, 66.51, 11, 0 }, }, }, -- Orion Coalborn [52102] = { ["fac"] = "A", ["lvl"] = "20-38", ["coords"] = { [1] = { 71.35, 21.38, 1, 0 }, }, }, -- Innkeeper Heidi [52118] = { ["fac"] = "A", ["lvl"] = "30", ["coords"] = { [1] = { 35.85, 61.9, 11, 0 }, }, }, -- Harlus Ashbuckle [52119] = { ["fac"] = "A", ["lvl"] = "24", ["coords"] = { [1] = { 33.04, 61.79, 11, 0 }, }, }, -- Shagu [60300] = { ["fac"] = "H", ["lvl"] = "9", ["coords"] = { [1] = { 45.0, 59.9, 215, 0 }, }, }, -- Malanys Cloudpiercer [60310] = { ["lvl"] = "60", ["coords"] = { [1] = { 17.93, 49.82, 331, 0 }, }, }, -- Ilyara Skyvault [60311] = { ["lvl"] = "60", ["coords"] = { [1] = { 28.23, 44.45, 15, 0 }, }, }, -- Vess [60400] = { ["lvl"] = "50", ["coords"] = { [1] = { 26.9, 77.08, 33, 0 }, }, }, -- Bannor [60401] = { ["lvl"] = "60", ["coords"] = { [1] = { 39.99, 84.53, 33, 0 }, }, }, -- Stone Guardian [60402] = { ["lvl"] = "58-60", ["coords"] = { [1] = { 54.9, 8.1, 490, 0 }, [2] = { 58.9, 8.1, 490, 0 }, [3] = { 60.9, 8.1, 490, 0 }, }, }, -- Grungi [60403] = { ["fac"] = "A", ["lvl"] = "55", ["coords"] = { [1] = { 71.81, 82.8, 8, 0 }, }, }, -- Dietmar Onlooker [60404] = { ["lvl"] = "60", ["coords"] = { [1] = { 70.2, 40.6, 8, 0 }, }, }, -- Zokk Flamefist [60405] = { ["lvl"] = "60", ["coords"] = { [1] = { 69.9, 40.6, 8, 0 }, }, }, -- Wahjez'fon [60406] = { ["lvl"] = "60", ["coords"] = { [1] = { 69.7, 40.8, 8, 0 }, }, }, -- Jovany Staunch [60407] = { ["lvl"] = "60", ["coords"] = { [1] = { 70.1, 40.8, 8, 0 }, }, }, -- Logrash [60408] = { ["fac"] = "H", ["lvl"] = "50", ["coords"] = { [1] = { 58.8, 5.8, 17, 0 }, }, }, -- Naxiar [60409] = { ["lvl"] = "60", ["coords"] = { [1] = { 81.1, 75.0, 331, 0 }, }, }, -- Re’than [60410] = { ["fac"] = "H", ["lvl"] = "55", ["coords"] = { [1] = { 72.0, 84.3, 8, 0 }, }, }, -- Ghoststalker [60420] = { ["lvl"] = "22", ["coords"] = { [1] = { 58.4, 35.5, 331, 0 }, [2] = { 16.2, 37.0, 331, 0 }, }, }, -- Dra'lox Felstar [60425] = { ["lvl"] = "25", ["coords"] = { [1] = { 56.5, 28.9, 331, 0 }, }, }, -- Felstone Guardian [60426] = { ["lvl"] = "24-25", }, -- Felstone Guardian [60427] = { ["lvl"] = "24-25", }, -- Tide Lord Naszharr [60432] = { ["lvl"] = "57", ["coords"] = { [1] = { 71.03, 85.17, 16, 0 }, }, }, -- Laszan [60433] = { ["lvl"] = "53", ["coords"] = { [1] = { 45.38, 56.51, 16, 0 }, }, }, -- Moon Priestess Alunasha [60435] = { ["fac"] = "A", ["lvl"] = "60", ["coords"] = { [1] = { 53.44, 13.6, 0, 0 }, }, }, -- Torble Sparksprocket [60441] = { ["fac"] = "A", ["lvl"] = "25", ["coords"] = { [1] = { 48.57, 83, 17, 0 }, }, }, -- Bael Modan Golem [60442] = { ["lvl"] = "19-20", ["coords"] = { [1] = { 47.49, 86.86, 17, 0 }, [2] = { 47.76, 86.25, 17, 0 }, [3] = { 47.93, 88.38, 17, 0 }, [4] = { 48.51, 87.93, 17, 0 }, [5] = { 48.64, 89.11, 17, 0 }, [6] = { 25.77, 69.13, 15, 0 }, [7] = { 26.32, 64.88, 15, 0 }, }, }, -- Kex Blowmaster [60443] = { ["fac"] = "AH", ["lvl"] = "25", ["coords"] = { [1] = { 45.3, 83.4, 17, 0 }, }, }, -- Insom'ni [60446] = { ["fac"] = "A", ["lvl"] = "61", ["coords"] = { [1] = { 37.79, 86.61, 0, 0 }, }, }, -- Dirty Jacob [60448] = { ["lvl"] = "30", ["coords"] = { [1] = { 42.68, 79.62, 33, 0 }, }, }, -- Sark Blacktooth [60449] = { ["lvl"] = "50", ["coords"] = { [1] = { 43.2647, 79.3399, 33, 0 }, }, }, -- Jessie Sugar-Tongue [60451] = { ["lvl"] = "49", ["coords"] = { [1] = { 43.37, 80.33, 33, 0 }, }, }, -- First Mate McCoy [60452] = { ["lvl"] = "52", ["coords"] = { [1] = { 43.3, 79.93, 33, 0 }, }, }, -- Garfield Sparkblast [60453] = { ["fac"] = "A", ["lvl"] = "54", ["coords"] = { [1] = { 26.64, 73.79, 33, 0 }, }, }, -- Fazzle 'The Slick' [60455] = { ["lvl"] = "30", ["coords"] = { [1] = { 43.26, 79.65, 33, 0 }, }, }, -- Belgrush Daggerfist [60456] = { ["lvl"] = "45", ["coords"] = { [1] = { 42, 79.22, 33, 0 }, }, }, -- Vil'do One-Tusk [60459] = { ["lvl"] = "45", ["coords"] = { [1] = { 43.23, 80.4, 33, 0 }, }, }, -- 'Ale Saint' Grida [60460] = { ["lvl"] = "42", ["coords"] = { [1] = { 42.12, 79.69, 33, 0 }, }, }, -- Pethax Blackhorn [60461] = { ["lvl"] = "53", ["coords"] = { [1] = { 36.78, 68.83, 361, 0 }, }, }, -- Nagzel Powdernose [60462] = { ["lvl"] = "36", ["coords"] = { [1] = { 43.81, 18.03, 33, 0 }, }, }, -- Thirael Blistersong [60463] = { ["lvl"] = "50", }, -- Thirael Blistersong [60464] = { ["lvl"] = "50", }, -- Malos Lunarspear [60465] = { ["fac"] = "A", ["lvl"] = "35", ["coords"] = { [1] = { 51.4, 45.7, 141, 0 }, }, }, -- Arch Hydromancer Lapidis [60467] = { ["lvl"] = "55", ["coords"] = { [1] = { 36.37, 81.54, 0, 0 }, }, }, -- Thistlefur Recluse [60469] = { ["lvl"] = "19", ["coords"] = { [1] = { 36.6, 45.6, 331, 0 }, }, }, -- Old Greypaw [60470] = { ["fac"] = "AH", ["lvl"] = "20", ["coords"] = { [1] = { 43.0, 97.8, 148, 0 }, }, }, -- add Faldan Moonshatter [60471] = { ["fac"] = "A", ["lvl"] = "35", ["coords"] = { [1] = { 37.7, 50.11, 331, 0 }, }, }, -- add Hadanos Greenblade [60472] = { ["fac"] = "A", ["lvl"] = "35", ["coords"] = { [1] = { 27.23, 36.94, 331, 0 }, }, }, -- Adaena Oakleaf [60473] = { ["fac"] = "A", ["lvl"] = "50", ["coords"] = { [1] = { 35.3, 54.4, 141, 0 }, }, }, -- Sentinel Danala [60474] = { ["fac"] = "A", ["lvl"] = "50", ["coords"] = { [1] = { 36.8, 54.1, 141, 0 }, }, }, -- Distorted Treant [60475] = { ["lvl"] = "11", ["coords"] = { [1] = { 45.4, 31.8 , 141, 0 }, [2] = { 46.5, 33.1 , 141, 0 }, [3] = { 46.1, 33.8 , 141, 0 }, [4] = { 43.9, 34.6 , 141, 0 }, [5] = { 45.6, 35.7 , 141, 0 }, [6] = { 44.5, 36.7 , 141, 0 }, [7] = { 44.7, 38.2 , 141, 0 }, [8] = { 44.3, 38.8 , 141, 0 }, }, }, -- Embergut [60476] = { ["fac"] = "H", ["lvl"] = "54", ["coords"] = { [1] = { 37.96, 92.46, 0, 0 }, }, }, -- 'Wincing' Willy [60479] = { ["lvl"] = "45", ["coords"] = { [1] = { 24.57, 54.02, 33, 0 }, }, }, -- Falgig Wazzlewrench [60480] = { ["lvl"] = "42", ["coords"] = { [1] = { 24.46, 53.76, 33, 0 }, }, }, -- Raga Darkeye [60481] = { ["lvl"] = "44", ["coords"] = { [1] = { 24.43, 54.05, 33, 0 }, }, }, -- Tesala Whitefeather [60482] = { ["fac"] = "A", ["lvl"] = "25", ["coords"] = { [1] = { 48.4, 37.2, 141, 0 }, }, }, -- Morpheus Ribcage [60483] = { ["fac"] = "H", ["lvl"] = "5", ["coords"] = { [1] = { 31.0, 64.3, 85, 0 }, }, }, -- Liott Maneskin [60484] = { ["fac"] = "H", ["lvl"] = "15", ["coords"] = { [1] = { 60.2, 51.5, 85, 0 }, }, }, -- Diane Willowfield [60488] = { ["fac"] = "H", ["lvl"] = "10", ["coords"] = { [1] = { 54.6, 37.3, 1497, 0 }, }, }, -- Sorrowclaw [60494] = { ["lvl"] = "41", ["coords"] = { [1] = { 70.5, 31.4, 8, 0 }, }, }, -- Garfield Sparkblast [60496] = { ["lvl"] = "54", ["coords"] = { [1] = { 43.36, 80.63, 33, 0 }, }, }, -- First Mate McGillicuddy [60497] = { ["lvl"] = "52", ["coords"] = { [1] = { 34.47, 86.59, 0, 0 }, }, }, -- Fearoth [60499] = { ["lvl"] = "55", }, -- Shizwackle Tangrig [60500] = { ["fac"] = "AH", ["lvl"] = "15", ["coords"] = { [1] = { 60.8, 39.7, 17, 0 }, }, }, -- Glasseye [60501] = { ["lvl"] = "53", ["coords"] = { [1] = { 38.628, 91.6307, 0, 0 }, }, }, -- 'Slip' [60502] = { ["lvl"] = "42", ["coords"] = { [1] = { 28.14, 76.64, 33, 0 }, }, }, -- Lorthiras [60503] = { ["lvl"] = "50", ["coords"] = { [1] = { 80.95, 76.62, 405, 0 }, }, }, -- Yig Oilfuse [60504] = { ["lvl"] = "14", ["coords"] = { [1] = { 60.56, 39.23, 17, 0 }, }, }, -- Wally Wisecrack [60506] = { ["lvl"] = "36", ["coords"] = { [1] = { 57.3, 46.07, 36, 0 }, }, }, -- Conservationist Yalus [60507] = { ["fac"] = "A", ["lvl"] = "30", ["coords"] = { [1] = { 36.1, 7.1, 406, 0 }, }, }, -- Jacob Malwright [60508] = { ["lvl"] = "58", ["coords"] = { [1] = { 57.86, 68.77, 139, 0 }, }, }, -- Najhaz the Raider [60509] = { ["lvl"] = "53", ["coords"] = { [1] = { 50.0, 63.8, 16, 0 }, }, }, -- Grubgar [60510] = { ["fac"] = "H", ["lvl"] = "12", ["coords"] = { [1] = { 37.0, 22.5, 14, 0 }, }, }, -- Keeper Laena [60512] = { ["fac"] = "AH", ["lvl"] = "58", ["coords"] = { [1] = { 44.0, 45.4, 16, 0 }, }, }, -- Boltrus [60513] = { ["lvl"] = "12", ["coords"] = { [1] = { 77.3, 59.5, 85, 0 }, }, }, -- Roheg Clay [60517] = { ["fac"] = "A", ["lvl"] = "8-9", }, -- Modopo [60538] = { ["fac"] = "H", ["lvl"] = "58", ["coords"] = { [1]= { 53.1, 41.5, 14, 0 }, }, }, -- Bristlefur [60539] = { ["fac"] = "H", ["lvl"] = "58", ["coords"] = { [1] = { 53.0591, 41.3711, 14, 0 }, }, }, -- Aputuq [60540] = { ["fac"] = "A", ["lvl"] = "38", }, -- Panukuki [60542] = { ["fac"] = "A", ["lvl"] = "39", }, -- Tarqsiku [60544] = { ["lvl"] = "48", }, -- Icepoint Whiteclaw [60545] = { ["lvl"] = "44-46", }, -- Ice Crawler [60605] = { ["lvl"] = "41-43", }, -- Magus Ariden Dusktower [60606] = { ["fac"] = "A", ["lvl"] = "60", ["coords"] = { [1]= { 52.4, 34.3, 41, 0 }, }, }, -- Kor'gan [60607] = { ["fac"] = "H", ["lvl"] = "60", ["coords"] = { [1]= { 44.4, 54.8, 8, 0 }, }, }, -- Captain Rothynn [60608] = { ["lvl"] = "60", ["coords"] = { [1]= { 41.4, 63.9, 41, 0 }, }, }, -- Groundskeeper Jacoby [60609] = { ["lvl"] = "60", ["coords"] = { [1]= { 52.9, 92.0, 41, 0 }, }, }, -- Var'zhog [60610] = { ["lvl"] = "60", ["coords"] = { [1]= { 65.8, 78.4, 41, 0 }, }, }, -- Inunquaq [60611] = { ["fac"] = "A", ["lvl"] = "37", }, -- Tyvadrius <Wardens of Time> [60622] = { ["lvl"] = "55", ["coords"] = { [1]= { 59.2, 60.1, 440, 0 }, }, }, -- add Tholdan Mountainheart [60629] = { ["fac"] = "A", ["lvl"] = "40", ["coords"] = { [1] = { 27.2, 7.3, 1537, 0 }, }, }, -- add Grash [60630] = { ["lvl"] = "12", ["coords"] = { [1] = { 70.0, 53.5, 1, 0 }, }, }, -- Fazgel Mechaflame [60643] = { ["fac"] = "A", ["lvl"] = "47", ["coords"] = { [1] = { 57.91, 69.16, 357, 0 }, }, }, -- Arcanist Sovatir [60644] = { ["lvl"] = "55", ["coords"] = { [1] = { 43.39, 80.52, 33, 0 }, }, }, -- Krilana [60657] = { ["fac"] = "A", ["lvl"] = "7-8", ["coords"] = { [1] = { 36.22, 82.22, 0, 0 }, }, }, -- Mournful Apparition [60658] = { ["lvl"] = "51", ["coords"] = { [1] = { 36.13, 89.59, 0, 0 }, }, }, -- Captain James Darrowmont [60670] = { ["fac"] = "A", ["lvl"] = "60", ["coords"] = { [1] = { 69.1, 54.05, 15, 0 }, }, }, -- Lady Ripper [60673] = { ["lvl"] = "60", }, -- Dre'gheor Frostshiv [60674] = { ["lvl"] = "60", }, -- Ranger-Captain Nasuna Dawnbringer [60677] = { ["fac"] = "A", ["lvl"] = "60", }, -- Death's Head Cultist [60708] = { ["lvl"] = "10", ["coords"] = { [1] = { 43.3, 39.1, 14, 0 }, }, }, -- Niremius Darkwind [60710] = { ["fac"] = "A", ["lvl"] = "55", ["coords"] = { [1] = { 39.82, 29.59, 361, 0 }, }, }, -- Pustax [60711] = { ["lvl"] = "54", ["coords"] = { [1] = { 48.48, 38.04, 361, 0 }, [2] = { 48.48, 38.04, 361, 3 }, [3] = { 48.6, 37.57, 361, 3 }, [4] = { 49.09, 35.7, 361, 3 }, }, }, -- Kheyna Spinpistol [65004] = { ["fac"] = "AH", ["lvl"] = "60", ["coords"] = { [1]= { 57.5, 59.2, 440, 0 }, }, }, -- Chromie [65005] = { ["fac"] = "AH", ["lvl"] = "63", ["coords"] = { [1]= { 57.5, 59.1, 440, 0 }, }, }, -- Chronar [65113] = { ["lvl"] = "63", ["coords"] = { [1]= { 66.7, 49.5, 440, 0 }, }, }, -- Antnormi [65125] = { ["lvl"] = "63", ["coords"] = { [1]= { 66.7, 49.5, 440, 0 }, }, }, -- Junior Foreman Silverhand [66000] = { ["fac"] = "A", ["lvl"] = "25", ["coords"] = { [1] = { 48.58, 82.95, 17, 0 }, }, }, -- Denalah Silverpoint [66001] = { ["fac"] = "A", ["lvl"] = "38", ["coords"] = { [1] = { 34.61, 64.66, 11, 0 }, }, }, -- Kherra [66002] = { ["fac"] = "AH", ["lvl"] = "10", ["coords"] = { [1] = { 58.4, 58.8, 215, 0 }, }, }, -- DUMMY_PLAYER_JOHN [70004] = { ["fac"] = "A", ["lvl"] = "1", }, -- DUMMY_PLAYER_ER [70005] = { ["fac"] = "A", ["lvl"] = "1", }, -- Taupo Foreststrider [70020] = { ["fac"] = "H", ["lvl"] = "24-29", ["coords"] = { [1] = { 78.36, 68.24, 331, 0 }, }, }, -- Norvok Hawkspear [70022] = { ["fac"] = "H", ["lvl"] = "25-34", ["coords"] = { [1] = { 78.38, 68.34, 331, 0 }, }, }, -- Commander Grushak [70023] = { ["fac"] = "H", ["lvl"] = "27-33", ["coords"] = { [1] = { 87.23, 64.7, 331, 0 }, }, }, -- Ashenvale Stalker [70025] = { ["fac"] = "A", ["lvl"] = "27", ["coords"] = { [1] = { 83.57, 57.39, 331, 0 }, [2] = { 83.77, 62.83, 331, 0 }, [3] = { 83.97, 59.73, 331, 0 }, [4] = { 84.21, 60.36, 331, 0 }, [5] = { 85.27, 62.8, 331, 0 }, [6] = { 85.7, 56.12, 331, 0 }, [7] = { 85.96, 54.92, 331, 0 }, [8] = { 86.27, 57.16, 331, 0 }, [9] = { 86.31, 58.07, 331, 0 }, [10] = { 86.64, 63.24, 331, 0 }, [11] = { 87.49, 62.07, 331, 0 }, [12] = { 87.59, 52.99, 331, 0 }, [13] = { 87.99, 64.26, 331, 0 }, [14] = { 88.01, 61.53, 331, 0 }, [15] = { 89.32, 62.18, 331, 0 }, }, }, -- Farseer Grimeye [70027] = { ["fac"] = "H", ["lvl"] = "35-38", ["coords"] = { [1] = { 90.68, 58.14, 331, 0 }, }, }, -- Pezzik Villamar [70060] = { ["fac"] = "H", ["lvl"] = "5", ["coords"] = { [1] = { 53.2, 43.4, 14, 0 }, }, }, -- Blood of Shalla'Aran [70891] = { ["lvl"] = "30", }, -- Nert Blastentom starter [80100] = { ["fac"] = "H", ["lvl"] = "5", ["coords"] = { [1] = { 38.2, 33.1, 406, 0 }, }, }, -- Sprat Nozzleton [80101] = { ["fac"] = "H", ["lvl"] = "3", ["coords"] = { [1] = { 37.5, 33.0, 406, 0 }, }, }, -- Grizzie the Enforcer [80104] = { ["fac"] = "H", ["lvl"] = "11", ["coords"] = { [1] = { 38.1, 30.3, 406, 0 }, }, }, -- Mayten Boomrifle [80105] = { ["fac"] = "H", ["lvl"] = "8", ["coords"] = { [1] = { 39.2, 31.4, 406, 0 }, }, }, -- Leyti Quicktongue [80106] = { ["fac"] = "H", ["lvl"] = "8", ["coords"] = { [1] = { 39.1, 29.6, 406, 0 }, }, }, -- Amri Demondeal [80107] = { ["fac"] = "H", ["lvl"] = "9", ["coords"] = { [1] = { 39.4, 29.4, 406, 0 }, }, }, -- Wizette Icewhistle [80108] = { ["fac"] = "H", ["lvl"] = "10", ["coords"] = { [1] = { 38.2, 34.4, 406, 0 }, }, }, -- Whirling Whizz-Bot [80112] = { ["lvl"] = "1-2", ["coords"] = { [1] = { 38.6, 30.1, 406, 0 }, [2] = { 39.0, 30.8, 406, 0 }, [3] = { 39.1, 33.5, 406, 0 }, [4] = { 37.0, 33.2, 406, 0 }, }, }, -- Plateau Vulture [80113] = { ["lvl"] = "2-3", ["coords"] = { [1] = { 38.5, 29.3, 406, 0 }, [2] = { 32.9, 32.5, 406, 0 }, [3] = { 33.9, 34.5, 406, 0 }, [4] = { 33.4, 36.4, 406, 0 }, [5] = { 35.4, 36.6, 406, 0 }, [6] = { 35.9, 34.4, 406, 0 }, [7] = { 37.1, 34.2, 406, 0 }, [8] = { 40.1, 33.6, 406, 0 }, [9] = { 39.1, 31.0, 406, 0 }, [10] = { 37.3, 30.1, 406, 0 }, }, }, -- Stonetalon Environmentalist [80114] = { ["lvl"] = "3", ["coords"] = { [1] = { 35.3, 32.1, 406, 0 }, [2] = { 35.2, 33.6, 406, 0 }, [3] = { 34.6, 32.5, 406, 0 }, }, }, -- Highpeak Lasher [80115] = { ["lvl"] = "3", ["coords"] = { [1] = { 35.4, 31.9, 406, 0 }, [2] = { 36.6, 32.8, 406, 0 }, }, }, -- Risen Oilblaze [80116] = { ["lvl"] = "4", ["coords"] = { [1] = { 34.8, 34.8, 406, 0 }, [2] = { 33.6, 35.5, 406, 0 }, [3] = { 32.3, 37.2, 406, 0 }, [4] = { 34.1, 36.3, 406, 0 }, [5] = { 35.0, 37.4, 406, 0 }, }, }, -- Haywire Battlechicken [80117] = { ["lvl"] = "2", ["coords"] = { [1] = { 38.2, 30.5, 406, 0 }, [2] = { 38.9, 30.6, 406, 0 }, [3] = { 38.6, 34.0, 406, 0 }, [4] = { 39.2, 34.9, 406, 0 }, }, }, -- Animated Shredder [80118] = { ["lvl"] = "5", ["coords"] = { [1] = { 32.3, 38.0, 406, 0 }, [2] = { 32.5, 39.4, 406, 0 }, }, }, -- Muttering Vulture [80119] = { ["lvl"] = "4", ["coords"] = { [1] = { 31.3, 38.4, 406, 0 }, [2] = { 31.6, 39.0, 406, 0 }, [3] = { 32.8, 39.2, 406, 0 }, [4] = { 33.5, 37.7, 406, 0 }, [5] = { 34.9, 36.7, 406, 0 }, }, }, -- Tomb Shadow [80120] = { ["lvl"] = "6", ["coords"] = { [1] = { 31.7, 39.5, 406, 0 }, }, }, -- Nert Blastentom durotar [80121] = { ["fac"] = "H", ["lvl"] = "5", ["coords"] = { [1] = { 50.1, 35.9, 14, 0 }, }, }, -- Kazznik [80131] = { ["lvl"] = "5", ["coords"] = { [1] = { 38.3, 32.3, 406, 0 }, }, }, -- Grand Taskmaster Nert Blastentom [80178] = { ["fac"] = "H", ["lvl"] = "60", ["coords"] = { [1] = { 58.7, 26.4, 14, 0 }, }, }, -- Malvinah Sunblade [80200] = { ["fac"] = "A", ["lvl"] = "8", ["coords"] = { [1] = { 84.3, 62.0, 38, 0 }, }, }, -- Trogg Vermin [80201] = { ["lvl"] = "1-2", ["coords"] = { [1] = { 83.5, 56.7, 38, 0 }, [2] = { 82.4, 60.0, 38, 0 }, [3] = { 80.1, 60.1, 38, 0 }, [4] = { 81.4, 65.2, 38, 0 }, [5] = { 77.5, 65.2, 38, 0 }, }, }, -- Kathy Wake [80202] = { ["fac"] = "A", ["lvl"] = "60", ["coords"] = { [1] = { 82.3, 64.2, 38, 0 }, }, }, -- Shadowforge Fire Priest [80205] = { ["lvl"] = "4", ["coords"] = { [1] = { 78.4, 76.5, 38, 0 }, }, }, -- Magistrix Ishalah [80213] = { ["fac"] = "A", ["lvl"] = "7", ["coords"] = { [1] = { 82.1, 63.7, 38, 0 }, }, }, -- Valanos Dawnfire [80217] = { ["fac"] = "A", ["lvl"] = "11", ["coords"] = { [1] = { 82.5, 62.5, 38, 0 }, }, }, -- Magister Ala'shor Sunblood [80218] = { ["fac"] = "A", ["lvl"] = "10", ["coords"] = { [1] = { 82.0, 63.7, 38, 0 }, }, }, -- Ranger Rubinah Sunsworn [80219] = { ["fac"] = "A", ["lvl"] = "8", ["coords"] = { [1] = { 82.4, 62.4, 38, 0 }, }, }, -- Lor'thas the Holy [80220] = { ["fac"] = "A", ["lvl"] = "5", ["coords"] = { [1] = { 81.9, 61.5, 38, 0 }, }, }, -- Priestess Maelah Sunsworn [80221] = { ["fac"] = "A", ["lvl"] = "5", ["coords"] = { [1] = { 82.0, 61.5, 38, 0 }, }, }, -- Leela the Shadow [80223] = { ["fac"] = "A", ["lvl"] = "8", ["coords"] = { [1] = { 83.4, 63.4, 38, 0 }, }, }, -- Quest 80250 Custom Objective [80229] = { ["fac"] = "A", ["lvl"] = "5", }, -- High Elf Ranger [80230] = { ["fac"] = "A", ["lvl"] = "46-47", ["coords"] = { [1] = { 42.97, 66.29, 12, 0 }, [2] = { 56.31, 63.16, 1519, 0 }, [3] = { 29.9, 59.47, 1537, 0 }, }, }, -- Arcanist Anu'delen [80231] = { ["fac"] = "A", ["lvl"] = "62", ["coords"] = { [1] = { 53.31, 13.52, 0, 0 }, }, }, -- Ranger-Captain Nasuna Dawnbringer [80232] = { ["fac"] = "A", ["lvl"] = "60", ["coords"] = { [1] = { 53.33, 13.77, 0, 0 }, }, }, -- Tanilaeh Sunkiss [80239] = { ["fac"] = "A", ["lvl"] = "50", ["coords"] = { [1] = { 53.2, 13.8, 0, 0 }, }, }, -- Ashylah Starcaller [80242] = { ["fac"] = "A", ["lvl"] = "46-47", ["coords"] = { [1] = { 25.68, 56.17, 141, 0 }, }, }, -- Ranger-General Damilara Sunsorrow [80245] = { ["fac"] = "A", ["lvl"] = "63", ["coords"] = { [1] = { 52.62, 13.66, 0, 0 }, }, }, -- Ralonius Sundew [80249] = { ["fac"] = "A", ["lvl"] = "50", ["coords"] = { [1] = { 53.23, 13.59, 0, 0 }, }, }, -- Teslinah [80265] = { ["fac"] = "A", ["lvl"] = "5", }, -- Quest 80261 Custom Objective [80270] = { ["fac"] = "A", ["lvl"] = "5", }, -- Quest 80261 Custom Objective [80271] = { ["fac"] = "A", ["lvl"] = "5", }, -- Quest 80261 Custom Objective [80272] = { ["fac"] = "A", ["lvl"] = "5", }, -- Quest 80261 Custom Objective [80273] = { ["fac"] = "A", ["lvl"] = "5", }, -- Quest 80261 Custom Objective [80274] = { ["fac"] = "A", ["lvl"] = "5", }, -- Quest 80261 Custom Objective [80275] = { ["fac"] = "A", ["lvl"] = "5", }, -- Quest 80261 Custom Objective [80276] = { ["fac"] = "A", ["lvl"] = "5", }, -- Quest 80261 Custom Objective [80277] = { ["fac"] = "A", ["lvl"] = "5", }, -- Quest 80261 Custom Objective [80278] = { ["fac"] = "A", ["lvl"] = "5", }, -- Quest 80261 Custom Objective [80279] = { ["fac"] = "A", ["lvl"] = "5", }, -- Quest 80261 Custom Objective [80280] = { ["fac"] = "A", ["lvl"] = "5", }, -- Quest 80261 Custom Objective [80281] = { ["fac"] = "A", ["lvl"] = "5", }, -- Quest 80261 Custom Objective [80282] = { ["fac"] = "A", ["lvl"] = "5", }, -- Quest 80261 Custom Objective [80283] = { ["fac"] = "A", ["lvl"] = "5", }, -- Quest 80261 Custom Objective [80284] = { ["fac"] = "A", ["lvl"] = "5", }, -- Quest 80261 Custom Objective [80285] = { ["fac"] = "A", ["lvl"] = "5", }, -- Quest 80261 Custom Objective [80286] = { ["fac"] = "A", ["lvl"] = "5", }, -- Quest 80261 Custom Objective [80287] = { ["fac"] = "A", ["lvl"] = "5", }, -- Quest 80261 Custom Objective [80288] = { ["fac"] = "A", ["lvl"] = "5", }, -- Quest 80261 Custom Objective [80289] = { ["fac"] = "A", ["lvl"] = "5", }, -- Illyanah Dawnstar [80405] = { ["fac"] = "A", ["lvl"] = "36", ["coords"] = { [1] = { 57.2, 27.9, 1519, 0 }, }, }, -- Pepin Ainsworth [80450] = { ["fac"] = "A", ["lvl"] = "60", ["coords"] = { [1] = { 61.7, 61.1, 1519, 0 }, }, }, -- Koli Steamheart [80451] = { ["fac"] = "A", ["lvl"] = "60", ["coords"] = { [1] = { 61.9, 60.9, 1519, 0 }, }, }, -- add Ranger Canarah Kim'Alah [80458] = { ["fac"] = "A", ["lvl"] = "63", ["coords"] = { [1] = { 58.8, 27.0, 1519, 0 }, }, }, -- Alinerenah Sunsparrow [80459] = { ["fac"] = "A", ["lvl"] = "11", ["coords"] = { [1] = { 52.61, 13.6, 0, 0 }, }, }, -- Applebough [80460] = { ["fac"] = "A", ["lvl"] = "30", ["coords"] = { [1] = { 59.8, 27.9, 1519, 0 }, }, }, -- Tirisfal Plagued Bear [80466] = { ["lvl"] = "7-9", ["coords"] = { [1] = { 63.3, 36.6, 85, 0 }, [2] = { 64.2, 38.1, 85, 0 }, [3] = { 62.3, 42.3, 85, 0 }, [4] = { 61.5, 44.9, 85, 0 }, [5] = { 58.1, 46.0, 85, 0 }, [6] = { 57.5, 46.3, 85, 0 }, [7] = { 55.6, 47.7, 85, 0 }, [8] = { 54.8, 49.3, 85, 0 }, [9] = { 55.5, 51.0, 85, 0 }, [10] = { 55.8, 53.5, 85, 0 }, [11] = { 57.8, 56.2, 85, 0 }, [12] = { 59.9, 58.0, 85, 0 }, [13] = { 62.6, 58.9, 85, 0 }, [14] = { 65.4, 58.1, 85, 0 }, [15] = { 67.6, 56.6, 85, 0 }, [16] = { 69.8, 57.8, 85, 0 }, [17] = { 71.3, 57.4, 85, 0 }, [18] = { 71.6, 55.7, 85, 0 }, [19] = { 71.0, 50.5, 85, 0 }, [20] = { 71.9, 47.9, 85, 0 }, [21] = { 72.1, 45.9, 85, 0 }, [22] = { 73.6, 42.5, 85, 0 }, [23] = { 73.7, 39.3, 85, 0 }, [24] = { 72.3, 35.5, 85, 0 }, [25] = { 74.5, 34.5, 85, 0 }, [26] = { 76.1, 32.8, 85, 0 }, [27] = { 77.0, 30.4, 85, 0 }, }, }, -- Young Boar [80507] = { ["lvl"] = "1-2", ["coords"] = { [1] = { 83.8, 57.3, 38, 0 }, [2] = { 83.3, 59.7, 38, 0 }, [3] = { 79.4, 61.1, 38, 0 }, [4] = { 80.8, 64.4, 38, 0 }, [5] = { 77.9, 66.8, 38, 0 }, [6] = { 78.0, 69.0, 38, 0 }, [7] = { 78.6, 69.7, 38, 0 }, }, }, -- Young Bear [80508] = { ["lvl"] = "1-2", ["coords"] = { [1] = { 80.8, 58.1, 38, 0 }, [2] = { 83.0, 58.6, 38, 0 }, [3] = { 78.1, 64.4, 38, 0 }, [4] = { 79.7, 67.8, 38, 0 }, [5] = { 78.6, 71.4, 38, 0 }, [6] = { 74.2, 68.5, 38, 0 }, [7] = { 75.2, 71.1, 38, 0 }, [8] = { 73.2, 71.7, 38, 0 }, }, }, -- Agne [80600] = { ["fac"] = "H", ["lvl"] = "37", ["coords"] = { [1] = { 68.2, 26, 1637, 0 }, }, }, -- Quark [80601] = { ["fac"] = "H", ["lvl"] = "37", ["coords"] = { [1] = { 68.5, 25.7, 1637, 0 }, }, }, -- The Rov [80603] = { ["fac"] = "H", ["lvl"] = "37", ["coords"] = { [1] = { 68.8, 26.5, 1637, 0 }, }, }, -- Sturk the Rat [80604] = { ["fac"] = "H", ["lvl"] = "37", ["coords"] = { [1] = { 67.8, 26.6, 1637, 0 }, }, }, -- Odo [80605] = { ["fac"] = "H", ["lvl"] = "37", ["coords"] = { [1] = { 69.6, 26.3, 1637, 0 }, }, }, -- Revantusk Watcher [80800] = { ["fac"] = "H", ["lvl"] = "46-47", ["coords"] = { [1] = { 41.54, 8.605, 14, 0 }, [2] = { 52.64, 42.65, 14, 0 }, [3] = { 78.55, 79.62, 47, 0 }, [4] = { 61.84, 67.2, 85, 0 }, [5] = { 38.99, 29.17, 215, 0 }, }, }, -- Mystic Guay’Jin [80801] = { ["fac"] = "H", ["lvl"] = "62", ["coords"] = { [1] = { 15.83, 0.8498, 406, 0 }, }, }, -- Warleader Wetnose [80802] = { ["fac"] = "H", ["lvl"] = "62", ["coords"] = { [1] = { 39.8714, 39.9332, 0, 0 }, }, }, -- Reolis Riptusk [80807] = { ["fac"] = "H", ["lvl"] = "11", ["coords"] = { [1] = { 16.3, 0, 406, 0 }, }, }, -- Chok'Garok [80831] = { ["fac"] = "H", ["lvl"] = "10", ["coords"] = { [1] = { 62.4, 10.8, 17, 0 }, }, }, -- add Clover Spinpistol [80855] = { ["lvl"] = "8", ["coords"] = { [1] = { 46.7, 53.9, 1, 0 }, }, }, -- Ureda [80857] = { ["fac"] = "H", ["lvl"] = "60", ["coords"] = { [1] = { 37.2, 85.2, 1637, 0 }, }, }, -- Speaker Vereesa Windrunner [80877] = { ["fac"] = "A", ["lvl"] = "63", ["coords"] = { [1] = { 52.76, 13.78, 0, 0 }, }, }, -- Iluria Nightwhisper [80900] = { ["lvl"] = "20", ["coords"] = { [1] = { 36.5, 67.2, 1519, 0 }, }, }, -- Knobby Tinfault [80901] = { ["lvl"] = "12", ["coords"] = { [1] = { 51.9, 24.4, 14, 0 }, }, }, -- Miley Wildbit [80902] = { ["fac"] = "H", ["lvl"] = "5", ["coords"] = { [1] = { 51.3, 16.0, 14, 0 }, }, }, -- Viz Fizbeast [80903] = { ["fac"] = "H", ["lvl"] = "16", ["coords"] = { [1] = { 53.1, 43.6, 14, 0 }, }, }, -- Elise Laughlin [80925] = { ["fac"] = "A", ["lvl"] = "45", ["coords"] = { [1] = { 57.28, 67.18, 1519, 0 }, }, }, -- Drazzit Dripvalve [80932] = { ["lvl"] = "40", ["coords"] = { [1] = { 41.9, 72.4, 15, 0 }, }, }, -- Ostarius [80935] = { ["lvl"] = "63", ["coords"] = { [1] = { 35.6, 81.4, 440, 0 }, }, }, -- Dronormu [80943] = { ["fac"] = "AH", ["lvl"] = "57", ["coords"] = { [1] = { 63.5, 57.6, 440, 0 }, }, }, -- Vanessa Clang [80961] = { ["fac"] = "H", ["lvl"] = "11", ["coords"] = { [1] = { 58.6, 26.4, 14, 0 }, }, }, -- Lake Toad [80965] = { ["lvl"] = "1", ["coords"] = { [1] = { 45.07, 69.07, 331, 0 }, [2] = { 45.73, 67.98, 331, 0 }, [3] = { 45.94, 72.04, 331, 0 }, [4] = { 47.45, 70.22, 331, 0 }, [5] = { 47.53, 68.03, 331, 0 }, [6] = { 48.66, 71.26, 331, 0 }, [7] = { 48.71, 69.49, 331, 0 }, [8] = { 50.72, 67.67, 331, 0 }, [9] = { 50.9, 68.39, 331, 0 }, [10] = { 51.66, 68.52, 331, 0 }, [11] = { 51.73, 67.54, 331, 0 }, }, }, -- Risa Sandrocket [80990] = { ["fac"] = "AH", ["lvl"] = "51", ["coords"] = { [1] = { 67.7, 26.6, 440, 0 }, }, }, -- Lizzi Saltcrabs [80991] = { ["fac"] = "AH", ["lvl"] = "51", ["coords"] = { [1] = { 67.7, 26.8, 440, 0 }, }, }, -- Toci Flipper [80997] = { ["fac"] = "AH", ["lvl"] = "51", ["coords"] = { [1] = { 67.8, 26.4, 440, 0 }, }, }, -- Elodia [80999] = { ["fac"] = "AH", ["lvl"] = "51", ["coords"] = { [1] = { 67.6, 26.8, 440, 0 }, }, }, -- Shark [81006] = { ["fac"] = "AH", ["lvl"] = "30-45", ["coords"] = { [1] = { 69.1, 25.0, 440, 0 }, [2] = { 69.0, 29.9, 440, 0 }, [3] = { 69.4, 29.9, 440, 0 }, }, }, -- Mysterious Stranger [81030] = { ["fac"] = "AH", ["lvl"] = "60", ["coords"] = { [1] = { 39.3, 29.3, 406, 0 }, [2] = { 30.1, 72.3, 1, 0 }, [3] = { 49.9, 41.5, 12, 0 }, [4] = { 44.2, 68.0, 14, 0 }, [5] = { 82.3, 62.2, 38, 0 }, [6] = { 32.5, 65.2, 85, 0 }, [7] = { 59.8, 41.1, 141, 0 }, [8] = { 45.3, 76.2, 215, 0 }, }, }, -- Kheyna Spinpistol [81041] = { ["fac"] = "AH", ["lvl"] = "60", ["coords"] = { [1] = { 59.2, 44.4, 17, 0 }, }, }, -- Loania [81042] = { ["fac"] = "A", ["lvl"] = "30", ["coords"] = { [1] = { 31.06, 48.45, 47, 0 }, }, }, -- Lieren [81043] = { ["fac"] = "A", ["lvl"] = "32", ["coords"] = { [1] = { 14, 44.56, 47, 0 }, }, }, -- Voldana [81044] = { ["fac"] = "A", ["lvl"] = "44", ["coords"] = { [1] = { 30.49, 47.13, 47, 0 }, }, }, -- Inunquaq [81046] = { ["fac"] = "A", ["lvl"] = "37", ["coords"] = { [1] = { 56.7, 11.6, 148, 0 }, }, }, -- Dark Ranger Lanissa [81050] = { ["fac"] = "H", ["lvl"] = "24", ["coords"] = { [1] = { 60.8, 53.6, 85, 0 }, }, }, -- Prospector Brotalus [81060] = { ["fac"] = "A", ["lvl"] = "45", ["coords"] = { [1] = { 56.19, 82.22, 3, 0 }, }, }, -- Noli [81061] = { ["fac"] = "A", ["lvl"] = "45", ["coords"] = { [1] = { 56.48, 81.97, 3, 0 }, }, }, -- Moxie Steelgrille [81250] = { ["lvl"] = "40", ["coords"] = { [1] = { 54.1, 55.8, 15, 0 }, }, }, -- Vixie Dampknob [81258] = { ["lvl"] = "42", ["coords"] = { [1] = { 42.0, 72.8, 15, 0 }, }, }, -- Qik Peddlechin [81259] = { ["lvl"] = "43", ["coords"] = { [1] = { 42.6, 73.4, 15, 0 }, }, }, -- Aneka Konko [90983] = { ["fac"] = "AH", ["lvl"] = "14", ["coords"] = { [1] = { 62.5, 37.5, 17, 0 }, }, }, -- Wally Burnside [90987] = { ["fac"] = "A", ["lvl"] = "45", ["coords"] = { [1] = { 36.08, 79.61, 0, 0 }, }, }, -- Grant Lafford [91190] = { ["fac"] = "A", ["lvl"] = "42", ["coords"] = { [1] = { 34.34, 10.19, 45, 0 }, }, }, -- Saul Buckwaldt [91191] = { ["lvl"] = "20-30", ["coords"] = { [1] = { 58.4, 49.3, 1519, 0 }, }, }, -- Makura Thresher [91193] = { ["lvl"] = "7-8", ["coords"] = { [1] = { 62.6, 23.6, 14, 0 }, [2] = { 62.8, 24.5, 14, 0 }, [3] = { 64.3, 26.0, 14, 0 }, }, }, -- Makura Oilclaw [91194] = { ["lvl"] = "8-9", ["coords"] = { [1] = { 63.1, 23.9, 14, 0 }, [2] = { 63.0, 24.4, 14, 0 }, }, }, -- Travel through the Northeast Passage [91195] = { ["fac"] = "A", ["lvl"] = "1", }, -- Wrix Ozzlenut [91200] = { ["fac"] = "H", ["lvl"] = "36", ["coords"] = { [1] = { 58.3, 25.7, 14, 0 }, }, }, -- Rugnar [91203] = { ["fac"] = "H", ["lvl"] = "35", ["coords"] = { [1] = { 58.0, 26.6, 14, 0 }, }, }, -- Oilworker Razlik [91208] = { ["fac"] = "H", ["lvl"] = "5", ["coords"] = { [1] = { 59.5, 24.6, 14, 0 }, }, }, -- Oil Manager Tizzleflux [91213] = { ["fac"] = "H", ["lvl"] = "5", ["coords"] = { [1] = { 60, 25.4, 14, 0 }, }, }, -- Technician Spuzzle [91214] = { ["fac"] = "H", ["lvl"] = "5", ["coords"] = { [1] = { 57.4, 25.8, 14, 0 }, }, }, -- Hargosh [91227] = { ["fac"] = "H", ["lvl"] = "13-14", ["coords"] = { [1] = { 59.1, 24.6, 14, 0 }, }, }, -- Krez the Wise [91232] = { ["fac"] = "H", ["lvl"] = "14", ["coords"] = { [1] = { 58.5, 27.4, 14, 0 }, }, }, -- Technician Grimzlow [91234] = { ["fac"] = "H", ["lvl"] = "14", ["coords"] = { [1] = { 57.4, 25.7, 14, 0 }, }, }, -- Tradesman Laz [91237] = { ["fac"] = "H", ["lvl"] = "52", ["coords"] = { [1] = { 58.5, 25.7, 14, 0 }, }, }, -- Gowlfang [91243] = { ["fac"] = "H", ["lvl"] = "6", ["coords"] = { [1] = { 58.8, 25.5, 14, 0 }, }, }, -- Hizzle [91249] = { ["fac"] = "H", ["lvl"] = "13", ["coords"] = { [1] = { 58.1, 29, 14, 0 }, }, }, -- Pazzle Brightwrench [91259] = { ["fac"] = "H", ["lvl"] = "10", ["coords"] = { [1] = { 59.1, 26.00, 14, 0 }, }, }, -- Shak 'The Hack' [91260] = { ["fac"] = "H", ["lvl"] = "10", ["coords"] = { [1] = { 58.7, 24.7, 14, 0 }, }, }, -- Miner Axel [91272] = { ["fac"] = "H", ["lvl"] = "8", ["coords"] = { [1] = { 56.0, 25.4, 14, 0 }, }, }, -- Big Fraggle [91274] = { ["fac"] = "H", ["lvl"] = "12", ["coords"] = { [1] = { 56.2, 27.11, 14, 0 }, }, }, -- Grimm Onearm [91275] = { ["fac"] = "H", ["lvl"] = "12", ["coords"] = { [1] = { 57.5, 25.9, 14, 0 }, }, }, -- Brizclang Spuckettool [91280] = { ["fac"] = "AH", ["lvl"] = "10-14", ["coords"] = { [1] = { 28.2, 76.8, 33, 0 }, }, }, -- Shalgrig Pipeshack [91282] = { ["lvl"] = "10-14", ["coords"] = { [1] = { 28.22, 76.71, 33, 0 }, }, }, -- Lieutenant Azsalus [91283] = { ["lvl"] = "54", ["coords"] = { [1] = { 40.66, 81.47, 16, 0 }, }, }, -- Captain Salt Tooth [91284] = { ["lvl"] = "45", ["coords"] = { [1] = { 32.7, 56.37, 33, 0 }, }, }, -- add Grol the Exile [91285] = { ["fac"] = "AH", ["lvl"] = "25", ["coords"] = { [1] = { 56.08, 59.24, 331, 0 }, }, }, -- add Daela Evermoon [91287] = { ["fac"] = "A", ["lvl"] = "25-29", ["coords"] = { [1] = { 26.4, 21.9, 331, 0 }, }, }, -- add Ardaen Evermoon [91288] = { ["fac"] = "A", ["lvl"] = "25-29", ["coords"] = { [1] = { 26.67, 22.03, 331, 0 }, }, }, -- Lord Rog [91289] = { ["fac"] = "AH", ["lvl"] = "42-44", ["coords"] = { [1] = { 48.9, 28.9, 45, 0 }, }, }, -- Chief Yin'do [91290] = { ["lvl"] = "55", ["coords"] = { [1] = { 51.3, 25.0, 45, 0 }, }, }, -- Sagepaw [91291] = { ["lvl"] = "23-24", ["coords"] = { [1] = { 63.8, 73.3, 11, 0 }, }, }, -- Tarlo Farcrack [91292] = { ["fac"] = "H", ["lvl"] = "24", ["coords"] = { [1] = { 60, 23.9, 267, 0 }, }, }, -- Archivist Landas [91293] = { ["fac"] = "A", ["lvl"] = "30", ["coords"] = { [1] = { 28.6, 88.2, 36, 0 }, }, }, -- Baxxil [91296] = { ["lvl"] = "15", ["coords"] = { [1] = { 60.9, 39.6, 17, 0 }, }, }, -- Shazknock [91298] = { ["lvl"] = "18", ["coords"] = { [1] = { 61.8, 3.9, 17, 0 }, }, }, -- Little Grizlik [91299] = { ["fac"] = "H", ["lvl"] = "1-3", }, -- Foreman Klix [91302] = { ["lvl"] = "21-22", ["coords"] = { [1] = { 66.3, 55.2, 406, 0 }, }, }, -- Magus Bromley [91350] = { ["fac"] = "A", ["lvl"] = "50", ["coords"] = { [1] = { 37.51, 65.62, 16, 0 }, }, }, -- Remnants Footman [91352] = { ["fac"] = "A", ["lvl"] = "18-20", ["coords"] = { [1] = { 13.1, 55.0, 85, 0 }, [2] = { 12.5, 56.0, 85, 0 }, [3] = { 13.1, 56.2, 85, 0 }, }, }, -- Raz'Dag [91400] = { ["fac"] = "H", ["lvl"] = "40-50", ["coords"] = { [1] = { 47.1, 23.6, 45, 0 }, }, }, -- Daffar [91401] = { ["fac"] = "H", ["lvl"] = "40-50", ["coords"] = { [1] = { 47.1, 26.8, 45, 0 }, }, }, -- Jinz'ah [91402] = { ["fac"] = "H", ["lvl"] = "40-50", ["coords"] = { [1] = { 48.4, 25.6, 45, 0 }, }, }, -- Speaker Ganz'ih [91411] = { ["fac"] = "H", ["lvl"] = "40-50", ["coords"] = { [1] = { 49.3, 28.9, 45, 0 }, }, }, -- Gortog [91412] = { ["fac"] = "H", ["lvl"] = "40-50", ["coords"] = { [1] = { 51.4, 25.5, 45, 0 }, }, }, -- Titiki [91415] = { ["fac"] = "H", ["lvl"] = "40-50", ["coords"] = { [1] = { 47.6, 25.0, 45, 0 }, }, }, -- Duchess Grelda [91711] = { ["fac"] = "H", ["lvl"] = "25", ["coords"] = { [1] = { 42.0, 10.3, 130, 0 }, }, }, -- Duke Nargelas [91712] = { ["fac"] = "H", ["lvl"] = "50", ["coords"] = { [1] = { 20.9, 68.9, 85, 0 }, }, }, -- Apothecary Volgrin [91713] = { ["fac"] = "H", ["lvl"] = "30", ["coords"] = { [1] = { 27.7, 76.9, 85, 0 }, }, }, -- Pack Leader Sharn [91715] = { ["lvl"] = "18", ["coords"] = { [1] = { 22.8, 77.7, 85, 0 }, }, }, -- Chief Rnarl [91716] = { ["lvl"] = "20", ["coords"] = { [1] = { 7.9, 64.6, 85, 0 }, }, }, -- Belgar [91717] = { ["lvl"] = "18", ["coords"] = { [1] = { 10.0, 63.0, 85, 0 }, }, }, -- Storn [91718] = { ["lvl"] = "19", ["coords"] = { [1] = { 23.09, 49.91, 85, 0 }, }, }, -- Duchess Faliona [91721] = { ["fac"] = "A", ["lvl"] = "19", ["coords"] = { [1] = { 12.0, 53.2, 85, 0 }, }, }, -- Keeper Iselus [91722] = { ["fac"] = "AH", ["lvl"] = "58", ["coords"] = { [1] = { 89.8, 33.8, 16, 0 }, }, }, -- Father Brightcopf [91726] = { ["fac"] = "H", ["lvl"] = "32", ["coords"] = { [1] = { 20.9, 68.7, 85, 0 }, }, }, -- Butcher Reeves [91727] = { ["fac"] = "H", ["lvl"] = "30", ["coords"] = { [1] = { 21.7, 67.6, 85, 0 }, }, }, -- Marlow Neggle [91728] = { ["fac"] = "H", ["lvl"] = "14", ["coords"] = { [1] = { 22.0, 68.4, 85, 0 }, }, }, -- Harry Upperson [91729] = { ["fac"] = "H", ["lvl"] = "24", ["coords"] = { [1] = { 21.6726, 69.0622, 85, 0 }, }, }, -- Pesterhide Forager [91735] = { ["lvl"] = "15-16", ["coords"] = { [1] = { 9.8, 61.9, 85, 0 }, [2] = { 13.5, 60.4, 85, 0 }, [3] = { 11.2, 62.3, 85, 0 }, [4] = { 10.8, 63.5, 85, 0 }, [5] = { 10.5, 64.5, 85, 0 }, [6] = { 14.0, 63.8, 85, 0 }, [7] = { 10.3, 67.2, 85, 0 }, [8] = { 11.0, 67.0, 85, 0 }, }, }, -- Pesterhide Gnoll [91736] = { ["lvl"] = "16-18", ["coords"] = { [1] = { 7.6, 63.9, 85, 0 }, [2] = { 8.5, 64.7, 85, 0 }, [3] = { 10.3, 67.2, 85, 0 }, }, }, -- Pesterhide Warrior [91737] = { ["lvl"] = "17-19", ["coords"] = { [1] = { 8.3, 64.3, 85, 0 }, [2] = { 9.4, 66.2, 85, 0 }, [3] = { 9.9, 66.0, 85, 0 }, }, }, -- Pesterhide Mystic [91738] = { ["lvl"] = "16-18", ["coords"] = { [1] = { 8.3, 66.2, 85, 0 }, [2] = { 10.2, 67.1, 85, 0 }, [3] = { 11.2, 64.5, 85, 0 }, [4] = { 10.5, 64.3, 85, 0 }, [5] = { 10.8, 62.7, 85, 0 }, }, }, -- Tirisclaw Scavenger [91739] = { ["lvl"] = "14-16", ["coords"] = { [1] = { 22.8, 74.2, 85, 0 }, [2] = { 22.6, 75.4, 85, 0 }, } }, -- Tirisclaw Ravager [91740] = { ["lvl"] = "14-15", ["coords"] = { [1] = { 16.3, 73.8, 85, 0 }, [2] = { 25.1, 74.9, 85, 0 }, [3] = { 25.6, 75.2, 85, 0 }, [4] = { 26.2, 76.3, 85, 0 }, }, }, -- Tirisclaw Shadowcaster [91741] = { ["lvl"] = "14", ["coords"] = { [1] = { 24.5, 75.8, 85, 0 }, [2] = { 26.1, 74.6, 85, 0 }, [3] = { 26.3, 75.3, 85, 0 }, [4] = { 326.7, 74.7, 85, 0 }, }, }, -- Bounty Hunter Knox [91749] = { ["fac"] = "H", ["lvl"] = "34", ["coords"] = { [1] = { 4.544, 61.79, 85, 0 }, }, }, -- Deathguard Mike [91752] = { ["fac"] = "H", ["lvl"] = "55", ["coords"] = { [1] = { 4.9, 60.2, 85, 0 }, }, }, -- Vathras Millson [91753] = { ["fac"] = "H", ["lvl"] = "55", ["coords"] = { [1] = { 4.7, 62.1, 85, 0 }, }, }, -- Wretched Farmhand [91756] = { ["lvl"] = "15-17", ["coords"] = { [1] = { 12.51, 69.53, 85, 0 }, [2] = { 12.82, 66.64, 85, 0 }, [3] = { 12.84, 64.75, 85, 0 }, [4] = { 13.06, 65.81, 85, 0 }, [5] = { 13.44, 69.49, 85, 0 }, [6] = { 13.71, 68.07, 85, 0 }, [7] = { 15.63, 68.56, 85, 0 }, [8] = { 15.79, 65.98, 85, 0 }, }, }, -- Wretched Guard [91757] = { ["lvl"] = "16-18", ["coords"] = { [1] = { 12.27, 68.86, 85, 0 }, [2] = { 12.93, 67.9, 85, 0 }, [3] = { 13.48, 70.39, 85, 0 }, [4] = { 14.41, 65.34, 85, 0 }, [5] = { 15.68, 69.43, 85, 0 }, }, }, -- Necromancer Reginald [91759] = { ["lvl"] = "20", ["coords"] = { [1] = { 12.1, 67.6, 85, 0 }, }, }, -- Tirisclaw Ambusher [91760] = { ["lvl"] = "16", ["coords"] = { [1] = { 21.7, 74.4, 85, 0 }, [2] = { 23.1, 73.7, 85, 0 }, [3] = { 22.7, 76.2, 85, 0 }, }, }, -- Rogue Enforcer [91761] = { ["lvl"] = "15-17", ["coords"] = { [1] = { 20.15, 45.23, 85, 0 }, [2] = { 23.89, 56.08, 85, 0 }, [3] = { 24.57, 51.6, 85, 0 }, [4] = { 24.93, 59.77, 85, 0 }, }, }, -- Rogue Conjurer [91762] = { ["lvl"] = "16-18", ["coords"] = { [1] = { 24.02, 56.88, 85, 0 }, [2] = { 25.52, 50.54, 85, 0 }, [3] = { 26.1, 54.42, 85, 0 }, [4] = { 26.25, 55.25, 85, 0 }, [5] = { 26.92, 52.43, 85, 0 }, }, }, -- Captain Barlgruf [91766] = { ["lvl"] = "40", ["coords"] = { [1] = { 41.44, 29.75, 3, 0 }, }, }, -- Senator Broadbelt [91767] = { ["fac"] = "A", ["lvl"] = "30", ["coords"] = { [1] = { 53.62, 43.14, 3, 0 }, }, }, -- Gigno Flaxwhisker [91768] = { ["fac"] = "A", ["lvl"] = "57", ["coords"] = { [1] = { 45.24, 90.93, 16, 0 }, }, }, -- Lorie Gearwatch [91769] = { ["fac"] = "A", ["lvl"] = "57", ["coords"] = { [1] = { 45.06, 91.47, 16, 0 }, }, }, -- Fendo Wobblefizz [91770] = { ["fac"] = "A", ["lvl"] = "57", ["coords"] = { [1] = { 45.34, 90.58, 16, 0 }, }, }, -- Remnants Sentry [91772] = { ["fac"] = "A", ["lvl"] = "15-17", ["coords"] = { [1] = { 13.4, 58.2, 85, 0 }, [2] = { 15.6, 58.4, 85, 0 }, [3] = { 15.0, 59.6, 85, 0 }, [4] = { 15.6, 59.7, 85, 0 }, [5] = { 15.4, 62.9, 85, 0 }, }, }, -- Remnants Scout [91773] = { ["fac"] = "A", ["lvl"] = "15-17", ["coords"] = { [1] = { 21.5, 61.8, 85, 0 }, [2] = { 18.8, 64.3, 85, 0 }, [3] = { 18.5, 67.6, 85, 0 }, [4] = { 20.0, 66.2, 85, 0 }, [5] = { 21.4, 65.9, 85, 0 }, }, }, -- Analyzor 53G [91775] = { ["lvl"] = "50", ["coords"] = { [1] = { 64.76, 95.01, 16, 0 }, }, }, -- Tide Mistress Rashal [91776] = { ["lvl"] = "55", ["coords"] = { [1] = { 62.18, 93.54, 16, 0 }, }, }, -- Myrmidon Sasz [91777] = { ["lvl"] = "55", ["coords"] = { [1] = { 61.94, 93.03, 16, 0 }, }, }, -- Hashaz [91779] = { ["lvl"] = "53", ["coords"] = { [1] = { 62.43, 93.27, 16, 0 }, }, }, -- Sanv K'la [91781] = { ["fac"] = "AH", ["lvl"] = "45", ["coords"] = { [1] = { 25.2, 30.2, 8, 0 }, }, }, -- Akh Z'ador [91782] = { ["fac"] = "AH", ["lvl"] = "54", ["coords"] = { [1] = { 51.5, 37.5, 16, 0 }, }, }, -- Witherbark Raider [91784] = { ["lvl"] = "34-36", ["coords"] = { [1] = { 21.5, 77.5, 47, 0 }, [2] = { 22.0, 79.4, 47, 0 }, [3] = { 22.4, 73.0, 47, 0 }, [4] = { 23.4, 78.4, 47, 0 }, [5] = { 24.6, 79.0, 47, 0 }, [6] = { 25.7, 80.2, 47, 0 }, }, }, -- Witherbark Rogue [91785] = { ["lvl"] = "35-37", ["coords"] = { [1] = { 18.8, 74.4, 47, 0 }, [2] = { 20.8, 73.8, 47, 0 }, [3] = { 22.9, 79.6, 47, 0 }, [4] = { 24.9, 78.0, 47, 0 }, [5] = { 26.0, 79.3, 47, 0 }, }, }, -- Witherbark Soothsayer [91786] = { ["lvl"] = "34-36", ["coords"] = { [1] = { 21.48, 77.36, 47, 0 }, [2] = { 22.26, 73.86, 47, 0 }, [3] = { 22.75, 75.88, 47, 0 }, [4] = { 24.94, 80.13, 47, 0 }, [5] = { 25.38, 70.62, 47, 0 }, [6] = { 26.52, 80.48, 47, 0 }, }, }, -- Warleader Kintoza [91789] = { ["lvl"] = "40", ["coords"] = { [1] = { 25.9, 81.8, 47, 0 }, }, }, -- Speaker Gan'to [91790] = { ["lvl"] = "39", ["coords"] = { [1] = { 39.5, 16.4, 45, 0 }, }, }, -- Heketh [91791] = { ["lvl"] = "39", ["coords"] = { [1] = { 57.2, 59.3, 45, 0 }, }, }, -- Mmrmglul [91794] = { ["lvl"] = "55", ["coords"] = { [1] = { 67.01, 73.48, 16, 0 }, }, }, -- Har Na'lan [91796] = { ["fac"] = "AH", ["lvl"] = "42", ["coords"] = { [1] = { 24.6, 31.7, 8, 0 }, }, }, -- Scryer Lordal Thas'alah [91806] = { ["fac"] = "A", ["lvl"] = "35", ["coords"] = { [1] = { 14.64, 75.6, 85, 0 }, }, }, -- Highborne Wraith [91808] = { ["lvl"] = "30", ["coords"] = { [1] = { 12.8, 74.4, 85, 0 }, }, }, -- Hazzuri Troll [91809] = { ["lvl"] = "47-49", ["coords"] = { [1] = { 35.0001, 84.9531, 0, 0 }, [2] = { 35.037, 84.6718, 0, 0 }, [3] = { 35.0399, 85.2983, 0, 0 }, [4] = { 35.1166, 84.8167, 0, 0 }, [5] = { 35.1251, 84.936, 0, 0 }, [6] = { 35.3467, 85.4304, 0, 0 }, [7] = { 35.3495, 85.767, 0, 0 }, [8] = { 35.395, 85.6434, 0, 0 }, [9] = { 35.3978, 84.5525, 0, 0 }, [10] = { 35.4774, 85.7372, 0, 0 }, [11] = { 35.6223, 84.8892, 0, 0 }, }, }, -- Hazzuri Warrior [91810] = { ["lvl"] = "51-53", ["coords"] = { [1] = { 34.4973, 84.6505, 0, 0 }, [2] = { 34.6251, 84.9019, 0, 0 }, [3] = { 34.6308, 84.5312, 0, 0 }, [4] = { 34.8779, 84.8295, 0, 0 }, [5] = { 34.9518, 84.8721, 0, 0 }, [6] = { 35.0967, 85.4431, 0, 0 }, [7] = { 35.1365, 85.2684, 0, 0 }, [8] = { 35.1706, 85.7585, 0, 0 }, [9] = { 35.2586, 84.6036, 0, 0 }, [10] = { 35.4916, 83.8238, 0, 0 }, [11] = { 35.4916, 85.5497, 0, 0 }, [12] = { 35.574, 83.5894, 0, 0 }, [13] = { 35.5995, 84.8551, 0, 0 }, [14] = { 35.6081, 84.9105, 0, 0 }, [15] = { 35.8751, 84.0369, 0, 0 }, [16] = { 35.9376, 83.9985, 0, 0 }, [17] = { 35.9546, 84.2073, 0, 0 }, [18] = { 36.8808, 84.6931, 0, 0 }, }, }, -- Hazzuri Hexxer [91811] = { ["lvl"] = "50-51", ["coords"] = { [1] = { 34.5171, 84.642, 0, 0 }, [2] = { 34.5711, 84.7059, 0, 0 }, [3] = { 35.02, 85.2983, 0, 0 }, [4] = { 35.0683, 84.8806, 0, 0 }, [5] = { 35.0938, 84.8295, 0, 0 }, [6] = { 35.1137, 85.3537, 0, 0 }, [7] = { 35.2984, 85.75, 0, 0 }, [8] = { 35.3779, 84.463, 0, 0 }, [9] = { 35.449, 83.7386, 0, 0 }, [10] = { 35.4717, 85.7287, 0, 0 }, [11] = { 35.7217, 83.892, 0, 0 }, [12] = { 35.8836, 84.0369, 0, 0 }, [13] = { 36.0484, 84.267, 0, 0 }, }, }, -- Hazzuri Darkcaller [91812] = { ["lvl"] = "52-54", ["coords"] = { [1] = { 35.0768, 85.2343, 0, 0 }, [2] = { 35.2444, 85.3025, 0, 0 }, [3] = { 35.2842, 85.0298, 0, 0 }, [4] = { 35.3041, 84.7443, 0, 0 }, [5] = { 35.3069, 85.7244, 0, 3 }, [6] = { 35.3581, 85.4644, 0, 3 }, [7] = { 35.3836, 85.7244, 0, 3 }, [8] = { 35.4376, 84.8764, 0, 0 }, [9] = { 35.4518, 84.1605, 0, 0 }, [10] = { 35.4717, 85.6733, 0, 0 }, [11] = { 35.4717, 85.6733, 0, 3 }, [12] = { 35.5654, 84.3608, 0, 3 }, [13] = { 35.5654, 84.8508, 0, 0 }, [14] = { 35.5654, 84.8508, 0, 3 }, [15] = { 35.662, 84.4247, 0, 0 }, [16] = { 35.6734, 84.2926, 0, 3 }, [17] = { 35.7615, 84.5056, 0, 0 }, }, }, -- Darkmaster Haza'gi [91813] = { ["lvl"] = "54", ["coords"] = { [1] = { 35.84, 84.63, 0, 0 }, }, }, -- Hazzuri Defender [91814] = { ["lvl"] = "53-54", ["coords"] = { [1] = { 34.9774, 84.8295, 0, 0 }, [2] = { 35.0001, 85.4858, 0, 0 }, [3] = { 35.0683, 85.0894, 0, 0 }, [4] = { 35.2416, 85.3494, 0, 0 }, [5] = { 35.2927, 85.1321, 0, 0 }, [6] = { 35.3012, 84.8252, 0, 0 }, [7] = { 35.3836, 85, 0, 0 }, [8] = { 35.3865, 85.5028, 0, 0 }, [9] = { 35.5314, 84.6463, 0, 0 }, [10] = { 35.645, 84.2585, 0, 0 }, [11] = { 35.7529, 84.3863, 0, 0 }, }, }, -- Hazzuri Stalker [91815] = { ["lvl"] = "52-55", ["coords"] = { [1] = { 34.9688, 84.8252, 0, 0 }, [2] = { 34.9887, 85.0596, 0, 0 }, [3] = { 35.1223, 84.8679, 0, 0 }, [4] = { 35.2245, 84.9659, 0, 0 }, [5] = { 35.2671, 85.4304, 0, 0 }, [6] = { 35.395, 85.5667, 0, 0 }, [7] = { 35.4348, 84.8679, 0, 0 }, [8] = { 35.4887, 85.0042, 0, 0 }, }, }, -- Champion Raggazi [91817] = { ["lvl"] = "54", ["coords"] = { [1] = { 34.99, 85.2, 0, 0 }, }, }, -- Chieftain Woh'zo [91818] = { ["lvl"] = "55", ["coords"] = { [1] = { 35.34, 85.33, 0, 0 }, }, }, -- Hazzuri Skinner [91820] = { ["lvl"] = "50", ["coords"] = { [1] = { 35.0257, 84.7358, 0, 0 }, [2] = { 35.145, 84.74, 0, 0 }, [3] = { 35.4064, 85.0511, 0, 0 }, }, }, -- Hazzuri Beastkeeper [91821] = { ["lvl"] = "50-52", ["coords"] = { [1] = { 34.74, 84.9, 0, 0 }, [2] = { 35.11, 85.11, 0, 0 }, [3] = { 35.5, 85.56, 0, 0 }, }, }, -- Hazzuri Darkpriest [91823] = { ["lvl"] = "51-53", ["coords"] = { [1] = { 35.0285, 84.9872, 0, 0 }, [2] = { 35.2416, 85.294, 0, 0 }, [3] = { 35.2416, 85.3664, 0, 0 }, [4] = { 35.4035, 85.6093, 0, 0 }, [5] = { 35.4518, 84.1519, 0, 0 }, [6] = { 35.4575, 84.5184, 0, 0 }, [7] = { 35.8836, 84.7102, 0, 0 }, }, }, -- Young Bengal Tiger [91825] = { ["lvl"] = "48-49", ["coords"] = { [1] = { 35.6507, 82.5411, 0, 0 }, [2] = { 35.8211, 82.3025, 0, 0 }, [3] = { 36.3552, 84.4673, 0, 0 }, [4] = { 36.5939, 83.8877, 0, 0 }, [5] = { 36.8069, 83.8792, 0, 0 }, [6] = { 37.0001, 84.0582, 0, 0 }, [7] = { 37.0882, 83.9857, 0, 0 }, [8] = { 37.1081, 84.2116, 0, 0 }, }, }, -- Bengal Matriarch [91826] = { ["lvl"] = "49-51", ["coords"] = { [1] = { 34.68, 83.24, 0, 0 }, [2] = { 34.77, 83.16, 0, 0 }, [3] = { 34.82, 83.36, 0, 0 }, }, }, -- Bengal Tiger [91827] = { ["lvl"] = "52-53", ["coords"] = { [1] = { 35.04, 83.05, 0, 0 }, [2] = { 35.28, 83.38, 0, 0 }, [3] = { 35.38, 82.66, 0, 0 }, [4] = { 35.4, 82.81, 0, 0 }, [5] = { 35.53, 83.5, 0, 0 }, [6] = { 36.16, 84.57, 0, 0 }, [7] = { 36.2, 84.05, 0, 0 }, [8] = { 36.28, 84.3, 0, 0 }, [9] = { 36.34, 84.46, 0, 0 }, }, }, -- Bengal Alpha [91828] = { ["lvl"] = "53-54", ["coords"] = { [1] = { 34.5, 83.56, 0, 0 }, [2] = { 34.63, 83.56, 0, 0 }, [3] = { 34.78, 83.03, 0, 0 }, [4] = { 34.78, 83.66, 0, 0 }, [5] = { 34.85, 83.77, 0, 0 }, [6] = { 34.95, 83.25, 0, 0 }, }, }, -- Bright Crawler [91831] = { ["lvl"] = "52-53", ["coords"] = { [1] = { 33.64, 82.86, 0, 0 }, [2] = { 33.65, 84.18, 0, 0 }, [3] = { 33.71, 83.16, 0, 0 }, [4] = { 33.73, 82.04, 0, 0 }, [5] = { 33.86, 83.38, 0, 0 }, [6] = { 33.88, 84.62, 0, 0 }, [7] = { 33.95, 84.31, 0, 0 }, [8] = { 33.95, 82.44, 0, 0 }, [9] = { 33.99, 83.56, 0, 0 }, [10] = { 33.99, 83.09, 0, 0 }, [11] = { 34.05, 83.63, 0, 0 }, [12] = { 34.11, 84.32, 0, 0 }, [13] = { 34.13, 84.52, 0, 0 }, [14] = { 34.31, 84.28, 0, 0 }, [15] = { 34.35, 83.89, 0, 0 }, }, }, -- Island Pincer [91832] = { ["lvl"] = "48-50", ["coords"] = { [1] = { 35.63, 80.15, 0, 0 }, [2] = { 35.67, 79.95, 0, 0 }, [3] = { 35.79, 79.69, 0, 0 }, [4] = { 35.8, 80.2, 0, 0 }, [5] = { 35.97, 80.01, 0, 0 }, [6] = { 36.04, 80.27, 0, 0 }, [7] = { 36.34, 80.31, 0, 0 }, [8] = { 36.56, 80.33, 0, 0 }, }, }, -- Rock Crawler [91833] = { ["lvl"] = "49-51", ["coords"] = { [1] = { 3.962, 97.03, 40, 0 }, [2] = { 4.105, 95.79, 40, 0 }, [3] = { 4.448, 90.94, 40, 0 }, [4] = { 4.876, 96.6, 40, 0 }, [5] = { 5.391, 92.14, 40, 0 }, [6] = { 6.505, 91.46, 40, 0 }, }, }, -- Deepshell Snapper [91838] = { ["lvl"] = "51-52", ["coords"] = { [1] = { 35.97, 92.12, 0, 0 }, [2] = { 36.36, 92.21, 0, 0 }, [3] = { 36.5, 92.11, 0, 0 }, [4] = { 36.53, 92.99, 0, 0 }, [5] = { 36.6, 92.37, 0, 0 }, [6] = { 36.61, 92.08, 0, 0 }, [7] = { 36.74, 92.7, 0, 0 }, [8] = { 37.02, 92.21, 0, 0 }, [9] = { 37.07, 91.91, 0, 0 }, [10] = { 37.2, 92.01, 0, 0 }, [11] = { 37.45, 92.21, 0, 0 }, }, }, -- Deeptide Myrmidon [91840] = { ["lvl"] = "52-53", ["coords"] = { [1] = { 35.6336, 92.6534, 0, 0 }, [2] = { 35.8098, 92.5255, 0, 0 }, [3] = { 35.824, 92.9943, 0, 0 }, [4] = { 35.9291, 92.8324, 0, 0 }, }, }, -- Deeptide Siren [91841] = { ["lvl"] = "50-51", ["coords"] = { [1] = { 35.537, 92.6023, 0, 0 }, [2] = { 35.6762, 92.9943, 0, 0 }, [3] = { 35.8552, 92.8238, 0, 0 }, }, }, -- Deeptide Tidehunter [91842] = { ["lvl"] = "49-52", ["coords"] = { [1] = { 35.84, 92.63, 0, 0 }, [2] = { 35.84, 92.4, 0, 0 }, [3] = { 35.96, 92.38, 0, 0 }, [4] = { 36.08, 92.88, 0, 0 }, }, }, -- Deeptide Serpent Guard [91843] = { ["lvl"] = "52-54", ["coords"] = { [1] = { 35.24, 92.94, 0, 0 }, [2] = { 35.53, 93.06, 0, 0 }, [3] = { 35.64, 92.9, 0, 0 }, [4] = { 35.78, 92.97, 0, 0 }, [5] = { 35.99, 93.02, 0, 0 }, }, }, -- Southsea Buccaneer [91844] = { ["lvl"] = "50-51", ["coords"] = { [1] = { 34.23, 83.68, 0, 0 }, [2] = { 34.33, 83.18, 0, 0 }, [3] = { 34.43, 83.1, 0, 0 }, [4] = { 34.49, 83.96, 0, 0 }, [5] = { 34.49, 84.14, 0, 0 }, [6] = { 34.59, 84.13, 0, 0 }, [7] = { 35.36, 82.22, 0, 0 }, [8] = { 35.4, 82.18, 0, 0 }, [9] = { 35.45, 82.33, 0, 0 }, }, }, -- Southsea Corsair [91845] = { ["lvl"] = "52-53", ["coords"] = { [1] = { 34.18, 83.59, 0, 0 }, [2] = { 34.22, 83.67, 0, 0 }, [3] = { 34.32, 83.21, 0, 0 }, [4] = { 34.34, 83.06, 0, 0 }, [5] = { 34.4, 83.9, 0, 0 }, [6] = { 34.47, 84.07, 0, 0 }, [7] = { 35.12, 87.89, 0, 0 }, }, }, -- 'Water Rat' Jorgy [91846] = { ["lvl"] = "54", ["coords"] = { [1] = { 34.32, 83.18, 0, 0 }, }, }, -- Southsea Pillager [91847] = { ["lvl"] = "51-52", ["coords"] = { [1] = { 34.22, 83.69, 0, 0 }, [2] = { 34.41, 84.02, 0, 0 }, [3] = { 34.5, 84.14, 0, 0 }, [4] = { 34.6, 83.99, 0, 0 }, [5] = { 34.67, 86.83, 0, 0 }, [6] = { 34.68, 87.9, 0, 0 }, [7] = { 34.8, 87.34, 0, 0 }, [8] = { 34.82, 86.65, 0, 0 }, [9] = { 34.84, 88.1, 0, 0 }, [10] = { 34.88, 87.44, 0, 0 }, [11] = { 34.95, 86.27, 0, 0 }, [12] = { 35.14, 87.25, 0, 0 }, [13] = { 35.15, 87.79, 0, 0 }, [14] = { 35.18, 87.94, 0, 0 }, [15] = { 35.36, 82.23, 0, 0 }, [16] = { 35.42, 82.17, 0, 0 }, }, }, -- Gor'dosh Ogre [91848] = { ["lvl"] = "48-50", ["coords"] = { [1] = { 34.76, 82.05, 0, 0 }, [2] = { 34.8, 82.48, 0, 0 }, [3] = { 34.9, 82.4, 0, 0 }, [4] = { 35.03, 81.6, 0, 0 }, [5] = { 35.05, 83.45, 0, 0 }, [6] = { 35.08, 81.26, 0, 0 }, [7] = { 35.09, 81.71, 0, 0 }, [8] = { 35.11, 83.47, 0, 0 }, [9] = { 35.17, 83.63, 0, 0 }, [10] = { 35.28, 81.31, 0, 0 }, [11] = { 35.44, 81.82, 0, 0 }, [12] = { 35.76, 81.87, 0, 0 }, [13] = { 35.91, 81.89, 0, 0 }, [14] = { 36.43, 85.06, 0, 0 }, [15] = { 36.52, 84.8, 0, 0 }, [16] = { 36.54, 84.88, 0, 0 }, [17] = { 36.82, 84.69, 0, 0 }, }, }, -- Gor'dosh Brute [91849] = { ["lvl"] = "50-51", ["coords"] = { [1] = { 34.22, 81.49, 0, 0 }, [2] = { 34.33, 82.29, 0, 0 }, [3] = { 34.43, 81.19, 0, 0 }, [4] = { 34.45, 81.55, 0, 0 }, [5] = { 34.56, 80.79, 0, 0 }, [6] = { 34.61, 81.06, 0, 0 }, [7] = { 34.63, 81.81, 0, 0 }, [8] = { 34.69, 82.46, 0, 0 }, [9] = { 34.77, 82.29, 0, 0 }, [10] = { 34.88, 81.23, 0, 0 }, [11] = { 34.99, 81.86, 0, 0 }, [12] = { 34.99, 82.36, 0, 0 }, [13] = { 35.01, 82.05, 0, 0 }, [14] = { 35.23, 81.18, 0, 0 }, }, }, -- Gor'dosh Shaman [91851] = { ["lvl"] = "50-51", ["coords"] = { [1] = { 34.15, 81.52, 0, 0 }, [2] = { 34.26, 81.88, 0, 0 }, [3] = { 34.38, 82.39, 0, 0 }, [4] = { 34.43, 81.23, 0, 0 }, [5] = { 34.5, 80.92, 0, 0 }, [6] = { 34.53, 81.07, 0, 0 }, [7] = { 34.54, 81.68, 0, 0 }, [8] = { 34.72, 82.17, 0, 0 }, [9] = { 34.74, 82.49, 0, 0 }, [10] = { 34.87, 82.32, 0, 0 }, [11] = { 34.87, 82.19, 0, 0 }, [12] = { 34.98, 81.15, 0, 0 }, [13] = { 35.2, 83.63, 0, 0 }, [14] = { 35.32, 81.24, 0, 0 }, [15] = { 36.5, 84.7, 0, 0 }, [16] = { 36.64, 84.76, 0, 0 }, [17] = { 36.7, 84.94, 0, 0 }, [18] = { 36.87, 84.73, 0, 0 }, }, }, -- Tyrant King Brog'dosh [91853] = { ["lvl"] = "53", ["coords"] = { [1] = { 34.2842, 81.0624, 0, 0 }, }, }, -- Wallowfin Murloc [91857] = { ["lvl"] = "50-52", ["coords"] = { [1] = { 36.4546, 80.0397, 0, 0 }, [2] = { 36.4859, 80.3764, 0, 0 }, [3] = { 36.5825, 80.0909, 0, 0 }, [4] = { 36.7416, 80.2357, 0, 0 }, [5] = { 37.0683, 83.2911, 0, 0 }, [6] = { 37.0967, 83.3082, 0, 0 }, [7] = { 37.2529, 83.9687, 0, 0 }, [8] = { 37.341, 84.2329, 0, 0 }, [9] = { 37.3836, 84.1221, 0, 0 }, [10] = { 37.4973, 83.6789, 0, 0 }, [11] = { 37.5399, 83.5383, 0, 0 }, }, }, -- Primalist Jongi [91867] = { ["fac"] = "A", ["lvl"] = "53", ["coords"] = { [1] = { 35.8, 83.01, 0, 0 }, }, }, -- Primalist Palaz [91869] = { ["fac"] = "A", ["lvl"] = "51", ["coords"] = { [1] = { 35.7189, 83.1122, 0, 0 }, }, }, -- Primalist Yango [91870] = { ["fac"] = "A", ["lvl"] = "52", ["coords"] = { [1] = { 35.82, 83.16, 0, 0 }, }, }, -- Head-Primalist Manaz'ago [91871] = { ["fac"] = "A", ["lvl"] = "54", ["coords"] = { [1] = { 35.78, 82.93, 0, 0 }, }, }, -- Tarsokk [91891] = { ["fac"] = "H", ["lvl"] = "55", ["coords"] = { [1] = { 65.7, 24.1, 46, 0 }, }, }, -- Hazzuri Dark Kin [91892] = { ["lvl"] = "48", }, -- Alarus [91928] = { ["lvl"] = "62", ["coords"] = { [1] = { 39.6, 73.0, 41, 0 }, }, }, -- Junglepaw Panther [91960] = { ["lvl"] = "48-50", ["coords"] = { [1] = { 38.1933, 89.696, 0, 0 }, [2] = { 38.2245, 89.4105, 0, 0 }, [3] = { 38.4149, 90.1818, 0, 0 }, [4] = { 38.4774, 89.7557, 0, 0 }, [5] = { 38.503, 90.0454, 0, 0 }, [6] = { 38.5825, 90.4417, 0, 0 }, [7] = { 38.6649, 89.5767, 0, 0 }, [8] = { 38.7899, 90.088, 0, 0 }, [9] = { 38.8666, 90.5142, 0, 0 }, }, }, -- Junglepaw Shadow Panther [91961] = { ["lvl"] = "51-53", ["coords"] = { [1] = { 36.64, 89.26, 0, 0 }, [2] = { 36.74, 88.98, 0, 0 }, [3] = { 36.99, 88.86, 0, 0 }, [4] = { 37.16, 89.18, 0, 0 }, [5] = { 37.18, 89.06, 0, 0 }, [6] = { 37.32, 91.66, 0, 0 }, [7] = { 37.34, 91.88, 0, 0 }, [8] = { 37.39, 91.22, 0, 0 }, [9] = { 37.48, 91.74, 0, 0 }, [10] = { 37.62, 91.34, 0, 0 }, [11] = { 37.65, 91.8, 0, 0 }, [12] = { 37.76, 91.27, 0, 0 }, [13] = { 37.78, 91.08, 0, 0 }, [14] = { 37.87, 90.79, 0, 0 }, [15] = { 37.95, 91.19, 0, 0 }, }, }, -- Saltsnap Crocolisk [91962] = { ["lvl"] = "49-51", ["coords"] = { [1] = { 38.4405, 89.2443, 0, 0 }, [2] = { 38.52, 89.4105, 0, 0 }, [3] = { 38.7899, 89.4318, 0, 0 }, [4] = { 38.8012, 89.6363, 0, 0 }, [5] = { 38.9859, 90.169, 0, 0 }, [6] = { 39.128, 90.5057, 0, 0 }, [7] = { 0.4518, 64.3896, 33, 0 }, }, }, -- Deepstone Basilisk [91963] = { ["lvl"] = "51-53", ["coords"] = { [1] = { 38.11, 92.1, 0, 0 }, [2] = { 38.13, 92.39, 0, 0 }, [3] = { 38.22, 92.44, 0, 0 }, [4] = { 38.24, 92.04, 0, 0 }, }, }, -- Saltjaw Basilisk [91964] = { ["lvl"] = "49-51", ["coords"] = { [1] = { 38.7189, 91.7159, 0, 0 }, [2] = { 38.7643, 91.4687, 0, 0 }, [3] = { 38.8268, 91.2301, 0, 0 }, [4] = { 38.841, 91.7713, 0, 0 }, [5] = { 39.0569, 91.5028, 0, 0 }, [6] = { 0.154, 65.3299, 33, 0 }, [7] = { 0.2011, 65.9176, 33, 0 }, }, }, -- Lurking Jungle Creeper [91965] = { ["lvl"] = "49-51", ["coords"] = { [1] = { 38.24, 89.81, 0, 0 }, [2] = { 38.27, 89.52, 0, 0 }, [3] = { 38.29, 90.16, 0, 0 }, [4] = { 38.43, 90.9, 0, 0 }, [5] = { 38.49, 90.46, 0, 0 }, [6] = { 38.61, 90.52, 0, 0 }, [7] = { 38.73, 90.18, 0, 0 }, [8] = { 38.76, 89.92, 0, 0 }, [9] = { 38.95, 90.91, 0, 0 }, }, }, -- Venomous Jungle Serpent [91966] = { ["lvl"] = "51-53", ["coords"] = { [1] = { 36.75, 89.06, 0, 0 }, [2] = { 36.99, 89.07, 0, 0 }, [3] = { 37.49, 90.09, 0, 0 }, [4] = { 37.57, 89.98, 0, 0 }, [5] = { 37.65, 89.47, 0, 0 }, [6] = { 37.68, 89.99, 0, 0 }, [7] = { 37.72, 89.95, 0, 0 }, [8] = { 38.09, 90.12, 0, 0 }, }, }, -- Lykourgos the Reaver [91968] = { ["lvl"] = "53", ["coords"] = { [1] = { 34.93, 86.86, 0, 3 }, [2] = { 34.93, 87.41, 0, 3 }, [3] = { 34.93, 87.67, 0, 0 }, [4] = { 34.93, 87.67, 0, 3 }, [5] = { 35.16, 87.9, 0, 3 }, [6] = { 35.17, 87.83, 0, 3 }, }, }, -- Captain Silas [91974] = { ["fac"] = "A", ["lvl"] = "20", ["coords"] = { [1] = { 12.1, 53.3, 85, 0 }, }, }, -- Remnants Priest [91975] = { ["fac"] = "A", ["lvl"] = "18-20", ["coords"] = { [1] = { 12.4, 55.0, 85, 0 }, }, }, -- Barkeep Clemens [91976] = { ["fac"] = "A", ["lvl"] = "15", ["coords"] = { [1] = { 12.1, 55.2, 85, 0 }, }, }, -- Remnants Farmer [91980] = { ["fac"] = "A", ["lvl"] = "14-15", ["coords"] = { [1] = { 16.9, 51.3, 85, 0 }, [2] = { 16.5, 54.1, 85, 0 }, }, }, -- Remnants Militia [91981] = { ["fac"] = "A", ["lvl"] = "15-17", ["coords"] = { [1] = { 17.5, 49.1, 85, 0 }, [2] = { 17.3, 49.2, 85, 0 }, [3] = { 17.2, 49.8, 85, 0 }, [4] = { 17.8, 51.4, 85, 0 }, [5] = { 17.4, 52.9, 85, 0 }, }, }, -- Cragtusk Boar [91987] = { ["lvl"] = "14-17", ["coords"] = { [1] = { 20.6, 47.3, 85, 0 }, [2] = { 19.5, 49.0, 85, 0 }, [3] = { 19.1, 50.5, 85, 0 }, [4] = { 21.1, 50.4, 85, 0 }, [5] = { 17.7, 54.9, 85, 0 }, [6] = { 18.6, 56.8, 85, 0 }, [7] = { 14.3, 61.1, 85, 0 }, [8] = { 18.1, 61.2, 85, 0 }, [9] = { 16.3, 63.5, 85, 0 }, [10] = { 17.6, 64.4, 85, 0 }, [11] = { 19.6, 68.5, 85, 0 }, [12] = { 20.1, 69.7, 85, 0 }, [13] = { 19.5, 72.1, 85, 0 }, [14] = { 20.0, 74.2, 85, 0 }, [15] = { 34.5, 6.6, 130, 0 }, [16] = { 35.6, 8.2, 130, 0 }, }, }, -- Graypaw Wolf [91989] = { ["lvl"] = "16-18", ["coords"] = { [1] = { 20.5, 48.3, 85, 0 }, [2] = { 22.2, 49.1, 85, 0 }, [3] = { 21.1, 55.8, 85, 0 }, [4] = { 20.4, 58.6, 85, 0 }, [5] = { 20.5, 61.1, 85, 0 }, [6] = { 22.3, 55.5, 85, 0 }, [7] = { 22.4, 57.3, 85, 0 }, [8] = { 25.3, 56.0, 85, 0 }, [9] = { 25.0, 58.7, 85, 0 }, [10] = { 26.0, 60.0, 85, 0 }, [11] = { 26.8, 59.5, 85, 0 }, [12] = { 28.1, 57.7, 85, 0 }, [13] = { 30.7, 4.7, 130, 0 }, [14] = { 31.1, 4.2, 130, 0 }, [15] = { 31.4, 4.7, 130, 0 }, }, }, -- Watch Sergeant Arthur [92012] = { ["fac"] = "A", ["lvl"] = "52", ["coords"] = { [1] = { 57.35, 33.68, 41, 0 }, }, }, -- Watch Paladin Janathos [92017] = { ["fac"] = "A", ["lvl"] = "60", ["coords"] = { [1] = { 57.79, 31.64, 41, 0 }, }, }, -- Sir Areyntall [92018] = { ["fac"] = "A", ["lvl"] = "30", ["coords"] = { [1] = { 56.99, 31.34, 41, 0 }, }, }, -- Janet Hollowworth [92019] = { ["fac"] = "A", ["lvl"] = "40", ["coords"] = { [1] = { 56.39, 30.56, 41, 0 }, }, }, -- 'Sly' Duncan [92022] = { ["fac"] = "A", ["lvl"] = "25", ["coords"] = { [1] = { 58.9, 30.8, 41, 0 }, }, }, -- Quartermaster Davin [92023] = { ["fac"] = "A", ["lvl"] = "40", ["coords"] = { [1] = { 58.79, 31.64, 41, 0 }, }, }, -- Dag'grak Bloodfist [92024] = { ["lvl"] = "58", ["coords"] = { [1] = { 53.88, 10.46, 16, 0 }, }, }, -- Master Raxxieth [92110] = { ["lvl"] = "38", ["coords"] = { [1] = { 51.5, 78.5, 331, 0 }, }, }, -- Deranged Ancient [92117] = { ["lvl"] = "34", }, -- Southsea Bootlegger [92135] = { ["lvl"] = "48-49", ["coords"] = { [1] = { 35.08, 88.33, 0, 0 }, [2] = { 35.13, 88.26, 0, 0 }, [3] = { 35.18, 88.37, 0, 0 }, }, }, -- Southsea Distiller [92136] = { ["lvl"] = "48-49", ["coords"] = { [1] = { 35.15, 88.34, 0, 0 }, [2] = { 35.17, 88.26, 0, 0 }, }, }, -- Southsea Sea Wolf [92138] = { ["lvl"] = "51-52", ["coords"] = { [1] = { 34.48, 86.74, 0, 0 }, [2] = { 34.65, 87.93, 0, 0 }, [3] = { 34.7, 87.36, 0, 0 }, [4] = { 34.75, 86.29, 0, 0 }, [5] = { 34.77, 86.91, 0, 0 }, [6] = { 34.78, 87.78, 0, 0 }, [7] = { 34.81, 87.41, 0, 0 }, [8] = { 34.85, 86.7, 0, 0 }, [9] = { 34.86, 86.38, 0, 0 }, [10] = { 34.87, 87.75, 0, 0 }, [11] = { 34.95, 87.93, 0, 0 }, [12] = { 34.98, 88.51, 0, 0 }, [13] = { 35.13, 87.87, 0, 0 }, [14] = { 35.25, 87.22, 0, 0 }, [15] = { 35.3, 88.5, 0, 0 }, [16] = { 35.47, 88.63, 0, 0 }, }, }, -- Southsea Outlaw [92139] = { ["lvl"] = "51-52", ["coords"] = { [1] = { 34.77, 87.42, 0, 0 }, [2] = { 34.78, 86.8, 0, 0 }, [3] = { 34.8, 87.39, 0, 0 }, [4] = { 34.82, 86.88, 0, 0 }, [5] = { 34.93, 86.53, 0, 0 }, [6] = { 34.93, 88.06, 0, 0 }, [7] = { 35.06, 87.82, 0, 0 }, [8] = { 35.12, 87.86, 0, 0 }, [9] = { 35.17, 86.68, 0, 0 }, [10] = { 35.19, 87.84, 0, 0 }, [11] = { 35.36, 88.58, 0, 0 }, [12] = { 35.43, 88.55, 0, 0 }, [13] = { 35.53, 88.76, 0, 0 }, [14] = { 37.94, 89.28, 0, 0 }, [15] = { 37.94, 89.72, 0, 0 }, }, }, -- Foreman Darkskull [92141] = { ["lvl"] = "52-53", ["coords"] = { [1] = { 37.8552, 89.7343, 0, 0 }, }, }, -- Captain Ironhoof [92142] = { ["lvl"] = "54", ["coords"] = { [1] = { 34.6393, 87.9062, 0, 0 }, }, }, -- Captain Blackeye [92143] = { ["lvl"] = "54", ["coords"] = { [1] = { 34.466, 86.5596, 0, 0 }, }, }, -- Captain Saltbeard [92144] = { ["lvl"] = "54", ["coords"] = { [1] = { 34.97, 88.46, 0, 0 }, }, }, -- Tinyfin [92145] = { ["fac"] = "A", ["lvl"] = "48", ["coords"] = { [1] = { 37.02, 91.78, 0, 0 }, }, }, -- Strand Crawler [92146] = { ["lvl"] = "48-49", ["coords"] = { [1] = { 38.39, 89.05, 0, 0 }, [2] = { 38.48, 89.28, 0, 0 }, [3] = { 38.59, 89.32, 0, 0 }, [4] = { 38.61, 89.1, 0, 0 }, [5] = { 38.83, 89.51, 0, 0 }, [6] = { 38.88, 89.74, 0, 0 }, [7] = { 39.03, 90.32, 0, 0 }, [8] = { 39.06, 90.67, 0, 0 }, [9] = { 39.07, 89.5, 0, 0 }, [10] = { 0.4831, 56.47, 33, 0 }, [11] = { 0.8436, 61.12, 33, 0 }, [12] = { 0.8906, 58.8, 33, 0 }, [13] = { 0.9219, 66.32, 33, 0 }, [14] = { 1, 63.85, 33, 0 }, [15] = { 1.126, 57.5, 33, 0 }, }, }, -- Silver Coast Crawler [92147] = { ["lvl"] = "50-52", ["coords"] = { [1] = { 35.38, 91.03, 0, 0 }, [2] = { 35.4, 90.79, 0, 0 }, [3] = { 35.4, 91.69, 0, 0 }, [4] = { 35.51, 91.54, 0, 0 }, [5] = { 35.77, 91.8, 0, 0 }, [6] = { 35.81, 90.68, 0, 0 }, [7] = { 35.82, 91.49, 0, 0 }, [8] = { 35.84, 91.21, 0, 0 }, [9] = { 35.9, 90.18, 0, 0 }, [10] = { 35.95, 91.92, 0, 0 }, [11] = { 35.96, 90.39, 0, 0 }, [12] = { 35.98, 91.35, 0, 0 }, [13] = { 35.99, 90.97, 0, 0 }, [14] = { 36.02, 92.38, 0, 0 }, [15] = { 36.15, 92.6, 0, 0 }, [16] = { 36.26, 92.08, 0, 0 }, [17] = { 36.37, 92.64, 0, 0 }, [18] = { 36.45, 92.44, 0, 0 }, [19] = { 36.59, 92.67, 0, 0 }, [20] = { 36.7, 92.32, 0, 0 }, [21] = { 36.82, 92.13, 0, 0 }, }, }, -- Razzari Priest [92148] = { ["lvl"] = "51-52", ["coords"] = { [1] = { 36.69, 89.94, 0, 0 }, [2] = { 36.71, 90.08, 0, 0 }, [3] = { 36.92, 89.56, 0, 0 }, [4] = { 36.94, 89.98, 0, 0 }, }, }, -- Razzari Worshipper [92149] = { ["lvl"] = "49-50", ["coords"] = { [1] = { 36.6734, 89.9559, 0, 0 }, [2] = { 36.7189, 90.5142, 0, 0 }, [3] = { 36.7814, 90.1136, 0, 0 }, [4] = { 36.8154, 90.4204, 0, 0 }, [5] = { 36.8211, 90.3267, 0, 0 }, [6] = { 36.8694, 89.8664, 0, 0 }, [7] = { 36.9689, 89.3082, 0, 0 }, [8] = { 37.1052, 90.169, 0, 0 }, [9] = { 37.1279, 89.5085, 0, 0 }, [10] = { 37.1564, 89.9346, 0, 0 }, }, }, -- Razzari Tribesman [92150] = { ["lvl"] = "49-50", ["coords"] = { [1] = { 36.6507, 89.777, 0, 0 }, [2] = { 36.7387, 90.5568, 0, 0 }, [3] = { 36.77, 90.3949, 0, 0 }, [4] = { 36.841, 90.7826, 0, 0 }, }, }, -- Razzari Warrior [92151] = { ["lvl"] = "52-53", ["coords"] = { [1] = { 36.6279, 90.2329, 0, 0 }, [2] = { 36.7643, 89.6662, 0, 0 }, [3] = { 36.7757, 90.7059, 0, 0 }, [4] = { 36.8297, 90.8338, 0, 0 }, [5] = { 36.8581, 90.8849, 0, 0 }, [6] = { 36.8779, 90.169, 0, 0 }, [7] = { 37.0029, 89.8196, 0, 0 }, [8] = { 37.0541, 89.4488, 0, 0 }, [9] = { 37.1052, 89.5682, 0, 0 }, [10] = { 37.1251, 89.2784, 0, 0 }, }, }, -- Razzari Guardian [92152] = { ["lvl"] = "54", ["coords"] = { [1] = { 36.87, 90.27, 0, 3 }, [2] = { 36.87, 90.51, 0, 0 }, [3] = { 36.87, 90.6, 0, 3 }, [4] = { 36.87, 90.87, 0, 0 }, [5] = { 36.87, 90.87, 0, 3 }, [6] = { 36.99, 89.47, 0, 0 }, [7] = { 36.99, 89.47, 0, 3 }, [8] = { 37.1, 89.34, 0, 3 }, }, }, -- Razzari Scout [92153] = { ["lvl"] = "47-48", ["coords"] = { [1] = { 36.91, 90.87, 0, 0 }, [2] = { 37.28, 90.84, 0, 3 }, [3] = { 37.33, 90.77, 0, 3 }, [4] = { 37.61, 90.77, 0, 3 }, [5] = { 37.79, 90.96, 0, 0 }, [6] = { 37.88, 91.1, 0, 3 }, [7] = { 38.09, 91.65, 0, 3 }, [8] = { 38.09, 91.78, 0, 0 }, [9] = { 38.09, 91.78, 0, 3 }, }, }, -- Razzari Mystic [92154] = { ["lvl"] = "48-49", ["coords"] = { [1] = { 36.6876, 90.1307, 0, 0 }, [2] = { 36.6904, 89.8451, 0, 0 }, [3] = { 36.7757, 90.6761, 0, 0 }, [4] = { 36.8126, 90.821, 0, 0 }, [5] = { 36.9319, 89.4701, 0, 0 }, [6] = { 36.9859, 90.0625, 0, 0 }, [7] = { 37.0342, 89.7599, 0, 0 }, [8] = { 37.0995, 89.4233, 0, 0 }, }, }, -- Speaker Ujuwa [92155] = { ["lvl"] = "53", ["coords"] = { [1] = { 36.9433, 89.9559, 0, 0 }, }, }, -- Chief Imaz'ul [92156] = { ["lvl"] = "53", ["coords"] = { [1] = { 37.1507, 89.125, 0, 0 }, }, }, -- Deeptide Murloc [92159] = { ["lvl"] = "49-51", ["coords"] = { [1] = { 35.7189, 92.4659, 0, 0 }, [2] = { 35.7899, 91.6775, 0, 0 }, [3] = { 35.8211, 91.6988, 0, 0 }, [4] = { 35.8694, 92.6023, 0, 0 }, [5] = { 36.1024, 92.4829, 0, 0 }, [6] = { 36.1819, 92.7684, 0, 0 }, [7] = { 36.412, 92.6108, 0, 0 }, [8] = { 36.6166, 92.5341, 0, 0 }, [9] = { 36.9461, 92.3977, 0, 0 }, [10] = { 37.1933, 92.6363, 0, 0 }, [11] = { 37.2444, 92.142, 0, 0 }, [12] = { 37.4149, 92.7173, 0, 0 }, }, }, -- Deeptide Mystic [92160] = { ["lvl"] = "50-51", ["coords"] = { [1] = { 35.6194, 92.4829, 0, 0 }, [2] = { 35.8325, 91.6307, 0, 0 }, [3] = { 35.8921, 92.3934, 0, 0 }, [4] = { 35.966, 92.8153, 0, 0 }, [5] = { 36.2842, 92.6236, 0, 0 }, [6] = { 36.5143, 92.5852, 0, 0 }, [7] = { 37.1137, 92.6108, 0, 0 }, [8] = { 37.1564, 92.2145, 0, 0 }, [9] = { 37.3609, 92.6023, 0, 0 }, [10] = { 37.4092, 92.4872, 0, 0 }, }, }, -- Tidelord Hakash [92161] = { ["lvl"] = "55", ["coords"] = { [1] = { 35.65, 92.99, 0, 0 }, }, }, -- Princess Shasza [92162] = { ["lvl"] = "54", ["coords"] = { [1] = { 36.05, 93, 0, 0 }, }, }, -- Drowned Soul [92164] = { ["lvl"] = "51-52", ["coords"] = { [1] = { 36.1, 89.9, 0, 0 }, [2] = { 36.11, 89.51, 0, 0 }, [3] = { 36.14, 90.08, 0, 0 }, [4] = { 36.25, 89.91, 0, 0 }, [5] = { 36.34, 89.52, 0, 0 }, [6] = { 36.37, 89.99, 0, 0 }, }, }, -- Forgotten Crew [92165] = { ["lvl"] = "51-52", ["coords"] = { [1] = { 36.15, 89.66, 0, 0 }, [2] = { 36.2, 90.07, 0, 0 }, [3] = { 36.23, 89.6, 0, 0 }, [4] = { 36.26, 89.5, 0, 0 }, [5] = { 36.3, 90.27, 0, 0 }, [6] = { 36.52, 89.81, 0, 0 }, }, }, -- Forgotten Swordsman [92166] = { ["lvl"] = "52-53", ["coords"] = { [1] = { 36.08, 90.18, 0, 0 }, [2] = { 36.2, 89.45, 0, 0 }, [3] = { 36.2, 89.76, 0, 0 }, [4] = { 36.3, 90.2, 0, 0 }, [5] = { 36.32, 89.91, 0, 0 }, [6] = { 36.55, 89.71, 0, 0 }, }, }, -- Achaikos [92168] = { ["lvl"] = "55", ["coords"] = { [1] = { 37.24, 88.62, 0, 0 }, }, }, -- Eudokia [92171] = { ["lvl"] = "54", ["coords"] = { [1] = { 37.27, 88.63, 0, 0 }, }, }, -- Tarokar [92174] = { ["lvl"] = "53", ["coords"] = { [1] = { 37.19, 88.84, 0, 0 }, }, }, -- Blatarg [92176] = { ["fac"] = "H", ["lvl"] = "52", ["coords"] = { [1] = { 38.97, 91.77, 0, 0 }, }, }, -- Lord Cruk'Zogg [92180] = { ["fac"] = "H", ["lvl"] = "60", ["coords"] = { [1] = { 39.11, 92.11, 0, 0 }, }, }, -- Explorer Fangosh [92182] = { ["fac"] = "H", ["lvl"] = "50", ["coords"] = { [1] = { 39.07, 91.81, 0, 0 }, }, }, -- Haz'gorg the Great Seer [92184] = { ["fac"] = "H", ["lvl"] = "53", ["coords"] = { [1] = { 0.6398, 71.7708, 33, 0 }, }, }, -- Seer Borgorr [92186] = { ["fac"] = "H", ["lvl"] = "50", ["coords"] = { [1] = { 0.8279, 70.29, 33, 0 }, }, }, -- Jubo [92190] = { ["fac"] = "H", ["lvl"] = "51", ["coords"] = { [1] = { 38.97, 92.08, 0, 0 }, }, }, -- Katokar Bladewind [92196] = { ["lvl"] = "58", ["coords"] = { [1] = { 52.3, 10.7, 16, 0 }, }, }, -- Yharg'osh [92197] = { ["lvl"] = "57", ["coords"] = { [1] = { 54.6, 10.3, 16, 0 }, }, }, -- Talom Stridecloud [92199] = { ["lvl"] = "50", ["coords"] = { [1] = { 53.6, 11.0, 16, 0 }, }, }, -- Nulda [92202] = { ["lvl"] = "52", ["coords"] = { [1] = { 53.22, 10.49, 16, 0 }, }, }, -- Ruins Creeper [92203] = { ["lvl"] = "50-52", ["coords"] = { [1] = { 36.4518, 91.2599, 0, 0 }, [2] = { 36.5796, 91.1917, 0, 0 }, [3] = { 36.6308, 91.375, 0, 0 }, [4] = { 36.8524, 91.2642, 0, 0 }, [5] = { 36.9518, 91.2344, 0, 0 }, [6] = { 37.1365, 91.0511, 0, 0 }, [7] = { 37.1677, 91.2727, 0, 0 }, }, }, -- Tanglemoss [92204] = { ["lvl"] = "53", ["coords"] = { [1] = { 36.72, 91.51, 0, 0 }, [2] = { 36.72, 91.51, 0, 3 }, [3] = { 36.84, 91.22, 0, 3 }, [4] = { 37.09, 91.13, 0, 3 }, }, }, -- Genzil Spannerlight [92219] = { ["fac"] = "A", ["lvl"] = "55", ["coords"] = { [1] = { 44.92, 91.91, 16, 0 }, }, }, -- Kalanar Brightshine [92223] = { ["fac"] = "A", ["lvl"] = "30", ["coords"] = { [1] = { 35.91, 51.64, 331, 0 }, }, }, -- Samual Boran [92936] = { ["fac"] = "A", ["lvl"] = "32", ["coords"] = { [1] = { 50.86, 58.36, 267, 0 }, }, }, -- Hargul the Hardy [92937] = { ["lvl"] = "51", ["coords"] = { [1] = { 33.79, 85.39, 0, 0 }, }, }, }
local lure = require(select('1', ...):match(".-lure%.")..'init') -- -- Define Class -- local MouseEvent = lure.lib.upperclass:define('MouseEvent', lure.dom.Event) -- -- Left Mouse Button. -- property : MOUSE_BUTTON_LEFT { 0; get='public'; set='nobody'; type='number'; } -- -- Middle Mouse Button. -- property : MOUSE_BUTTON_MIDDLE { 1; get='public'; set='nobody'; type='number'; } -- -- Right Mouse Button. -- property : MOUSE_BUTTON_RIGHT { 2; get='public'; set='nobody'; type='number'; } -- -- Mouse Button x1. -- property : MOUSE_BUTTON_X1 { 3; get='public'; set='nobody'; type='number'; } -- -- Mouse Button x2. -- property : MOUSE_BUTTON_X2 { 4; get='public'; set='nobody'; type='number'; } -- -- Returns true if the alt key was down when the mouse event was fired. -- property : altKey { false; get='public'; set='protected'; type='boolean'; } -- -- The button number that was pressed when the mouse event was fired. -- property : button { -1; get='public'; set='protected'; type='number'; } -- -- The buttons being pressed when the mouse event was fired -- property : buttons { {}; get='public'; set='protected'; type='table'; } -- -- The X coordinate of the mouse pointer in local (DOM content) coordinates. -- property : clientX { 0; get='public'; set='protected'; type='number'; } -- -- The Y coordinate of the mouse pointer in local (DOM content) coordinates. -- property : clientY {} -- -- Returns true if the control key was down when the mouse event was fired. -- property : ctrlKey {} -- -- Returns true if the meta key was down when the mouse event was fired. -- property : metaKey {} -- -- The X coordinate of the mouse pointer relative to the position of the last mousemove event. -- property : movementX {} -- -- The Y coordinate of the mouse pointer relative to the position of the last mousemove event. -- property : movementY {} -- -- The X coordinate of the mouse pointer relative to the position of the padding edge of the target node.. -- property : offsetX {} -- -- The Y coordinate of the mouse pointer relative to the position of the padding edge of the target node. -- property : offsetY {} -- -- Returns the id of the hit region affected by the event. If no hit region is affected, null is returned -- property : region {} -- -- The secondary target for the event, if there is one. -- property : relatedTarget {} -- -- The X coordinate of the mouse pointer in global (screen) coordinates. -- property : screenX {} -- -- The Y coordinate of the mouse pointer in global (screen) coordinates. -- property : screenY {} -- -- Returns true if the shift key was down when the mouse event was fired. -- property : shiftKey {} -- -- The button being pressed when the mouse event was fired. -- property : which {} -- -- Class Constructor -- function private:__construct(EVENT_TYPE, PARAMS) self:__constructparent(EVENT_TYPE, PARAMS) end -- -- Compile Class -- return lure.lib.upperclass:compile(MouseEvent)
--[[ ########################################################## S V U I By: S.Jackson ########################################################## LOCALIZED LUA FUNCTIONS ########################################################## ]]-- --[[ GLOBALS ]]-- local _G = _G; local unpack = _G.unpack; local select = _G.select; local type = _G.type; local string = _G.string; local math = _G.math; local table = _G.table; local rept,format = string.rep, string.format; local tsort,twipe = table.sort, table.wipe; local floor,ceil = math.floor, math.ceil; local min = math.min --BLIZZARD API local CreateFrame = _G.CreateFrame; local InCombatLockdown = _G.InCombatLockdown; local GameTooltip = _G.GameTooltip; local hooksecurefunc = _G.hooksecurefunc; local IsSpellKnown = _G.IsSpellKnown; local GetSpellInfo = _G.GetSpellInfo; local GetProfessions = _G.GetProfessions; local GetProfessionInfo = _G.GetProfessionInfo; local PlaySound = _G.PlaySound; local PlaySoundFile = _G.PlaySoundFile; --[[ ########################################################## GET ADDON DATA ########################################################## ]]-- local SV = _G.SVUI; local L = SV.L; local PLUGIN = select(2, ...); local CONFIGS = SV.defaults[PLUGIN.Schema]; --[[ ########################################################## LOCAL VARS ########################################################## ]]-- local playerRace = select(2,UnitRace("player")) local archSpell, survey, surveyIsKnown, skillRank, skillModifier; local EnableListener, DisableListener; local CanScanResearchSite = CanScanResearchSite local GetNumArtifactsByRace = GetNumArtifactsByRace local GetArchaeologyRaceInfo = GetArchaeologyRaceInfo local GetSelectedArtifactInfo = GetSelectedArtifactInfo local GetArtifactProgress = GetArtifactProgress local CanSolveArtifact = CanSolveArtifact local GetContainerNumSlots = GetContainerNumSlots local GetContainerItemInfo = GetContainerItemInfo local GetContainerItemID = GetContainerItemID local ModeLogsFrame; local ArchRaces = 0 local COUNT_TEX = [[Interface\AddOns\SVUI_!Core\assets\textures\Numbers\TYPE2\NUM]] local refArtifacts = {}; local ArchCrafting = CreateFrame("Frame", "SVUI_ArchCrafting", UIParent) --[[ ########################################################## DATA ########################################################## ]]-- PLUGIN.Archaeology = {}; PLUGIN.Archaeology.Bars = {}; PLUGIN.Archaeology.Loaded = false; --[[ ########################################################## LOCAL FUNCTIONS ########################################################## ]]-- local function EnableSolve(index, button) button:SetAlpha(1) button.text:SetTextColor(1, 1, 1) button:SetScript("OnClick", function(self) SetSelectedArtifact(index) local _, _, _, _, _, numSockets = GetActiveArtifactByRace(index) local _, _, itemID = GetArchaeologyRaceInfo(index) local ready = true if numSockets and numSockets > 0 then for socketNum = 1, numSockets do if not ItemAddedToArtifact(itemID) then SocketItemToArtifact() end end end if GetNumArtifactsByRace(index) > 0 then print("Solving...") SolveArtifact() end end) end local function DisableSolve(button) button:SetAlpha(0) button.text:SetTextColor(0.5, 0.5, 0.5) button.text:SetText("") button:SetScript("OnClick", SV.fubar) end local function UpdateArtifactBars(index) local cache = refArtifacts[index] local bar = PLUGIN.Archaeology.Bars[index] bar["race"]:SetText(cache["race"]) if GetNumArtifactsByRace(index) ~= 0 then local keystoneBonus = 0 bar["race"]:SetTextColor(1, 0.8, 0) bar["progress"]:SetTextColor(1, 1, 1) if cache["numKeysockets"] then keystoneBonus = min(cache["numKeystones"], cache["numKeysockets"]) * ArchRaces end local actual = min(cache["progress"], cache["total"]) local potential = cache["total"] local green = 0.75 * (actual / potential); bar["bar"]:SetMinMaxValues(0, potential) bar["bar"]:SetValue(actual) local solveText = SOLVE if (cache["numKeystones"] and cache["numKeystones"] > 0) then if (cache["numKeysockets"] and cache["numKeysockets"] > 0) then solveText = SOLVE.." ["..cache["numKeystones"] .. "/" .. cache["numKeysockets"].."]" end end bar["solve"].text:SetText(solveText) if keystoneBonus > 0 then bar["progress"]:SetText(format("|cff00c1ea%d|r/%d", cache["progress"] + keystoneBonus, cache["total"])) else if cache["total"] > 65 then bar["progress"]:SetText(format("%d/|cff00c1ea%d|r", cache["progress"], cache["total"])) else bar["progress"]:SetText(format("%d/%d", cache["progress"], cache["total"])) end end if cache["canSolve"] then EnableSolve(index, bar["solve"]) else DisableSolve(bar["solve"]) end bar["bar"]:SetStatusBarColor(0.1, green, 1, 0.5) else DisableSolve(bar["solve"]) bar["progress"]:SetText("") bar["bar"]:SetStatusBarColor(0, 0, 0, 0) bar["race"]:SetTextColor(0.25, 0.25, 0.25) bar["progress"]:SetTextColor(0.25, 0.25, 0.25) end end local function UpdateArtifactCache() local found, raceName, raceItemID, cache, _; for index = 1, ArchRaces do found = GetNumArtifactsByRace(index) raceName, _, raceItemID = GetArchaeologyRaceInfo(index) cache = refArtifacts[index] cache["race"] = raceName cache["keyID"] = raceItemID cache["numKeystones"] = 0 local oldNum = cache["progress"] if found == 0 then cache["numKeysockets"] = 0 cache["progress"] = 0 cache["modifier"] = 0 cache["total"] = 0 cache["canSolve"] = false else SetSelectedArtifact(index) local _, _, _, _, _, keystoneCount = GetSelectedArtifactInfo() local numFragmentsCollected, numFragmentsAdded, numFragmentsRequired = GetArtifactProgress() cache["numKeysockets"] = keystoneCount cache["progress"] = numFragmentsCollected cache["modifier"] = numFragmentsAdded cache["total"] = numFragmentsRequired cache["canSolve"] = CanSolveArtifact() for i = 0, 4 do for j = 1, GetContainerNumSlots(i) do local slotID = GetContainerItemID(i, j) if slotID == cache["keyID"] then local _, count = GetContainerItemInfo(i, j) if cache["numKeystones"] < cache["numKeysockets"] then cache["numKeystones"] = cache["numKeystones"] + count end if min(cache["numKeystones"], cache["numKeysockets"]) * ArchRaces + cache["progress"] >= cache["total"] then cache["canSolve"] = true end end end end end UpdateArtifactBars(index) end end local function GetTitleAndSkill() local msg = "|cff22ff11Archaeology Mode|r" if(skillRank) then if(skillModifier) then skillRank = skillRank + skillModifier; end msg = msg .. " (|cff00ddff" .. skillRank .. "|r)"; end return msg end --[[ ########################################################## EVENT HANDLER ########################################################## ]]-- do local SURVEYCOLOR = { {0.1, 1, 0.1, 1}, {1, 0.5, 0.1, 1}, {1, 0.1, 0, 1} } local last = 0 local time = 3 local ArchEventHandler = CreateFrame("Frame"); local SurveyCooldown = CreateFrame("Frame", nil, UIParent); local ArchSiteFound; local ArchCanSurvey, ArchWillSurvey = false, false; SurveyCooldown:SetPoint("CENTER", UIParent, "CENTER", 0, -50) SurveyCooldown:SetSize(50, 50) SurveyCooldown.text = SurveyCooldown:CreateTexture(nil, "OVERLAY") SurveyCooldown.text:SetAllPoints(SurveyCooldown) SurveyCooldown.text:SetVertexColor(0,1,0.12,0.5) SurveyCooldown:SetScale(1) SV.Animate:Kapow(SurveyCooldown) local Arch_OnEvent = function(self, event, ...) if(InCombatLockdown() or not archSpell) then return end local NEEDS_UPDATE = false; if(event == "CURRENCY_DISPLAY_UPDATE" or event == "CHAT_MSG_SKILL" or event == "ARTIFACT_COMPLETE") then local msg = GetTitleAndSkill() PLUGIN.TitleWindow:Clear() PLUGIN.TitleWindow:AddMessage(msg) if(event ~= "CHAT_MSG_SKILL") then NEEDS_UPDATE = true end end if(CanScanResearchSite() and (event == "CURRENCY_DISPLAY_UPDATE")) then NEEDS_UPDATE = true elseif(event == "ARCHAEOLOGY_SURVEY_CAST" or event == "ARTIFACT_COMPLETE" or event == "ARTIFACT_DIG_SITE_UPDATED") then NEEDS_UPDATE = true elseif(event == "ARTIFACT_HISTORY_READY" or event == "ARTIFACT_DIGSITE_COMPLETE") then NEEDS_UPDATE = true else ArchCanSurvey = CanScanResearchSite() if(ArchCanSurvey and not ArchWillSurvey) then _G["SVUI_ModeCaptureWindow"]:SetAttribute("type", "spell") _G["SVUI_ModeCaptureWindow"]:SetAttribute('spell', survey) PLUGIN.ModeAlert.HelpText = "Double-Right-Click anywhere on the screen to survey."; ArchWillSurvey = true elseif(not ArchCanSurvey and ArchWillSurvey) then _G["SVUI_ModeCaptureWindow"]:SetAttribute("type", "spell") _G["SVUI_ModeCaptureWindow"]:SetAttribute('spell', archSpell) PLUGIN.ModeAlert.HelpText = "Double-Right-Click anywhere on the screen to open the artifacts window."; ArchWillSurvey = false end if(event == "ZONE_CHANGED_NEW_AREA") then ArchSiteFound = nil end if(not ArchSiteFound) then local sites = ArchaeologyMapUpdateAll(); if(sites and sites > 0) then ArchSiteFound = true SV:SCTMessage("Digsite Located", 0.91, 0.78, 0.12); else ArchSiteFound = nil end end end if(NEEDS_UPDATE) then UpdateArtifactCache() end end local Survey_OnUpdate = function(self, elapsed) last = last + elapsed if last >= 1 then time = time - 1 if time > 0 then self.text:SetTexture(COUNT_TEX .. time) self.text:SetVertexColor(unpack(SURVEYCOLOR[time])) if not self.anim:IsPlaying() then self.anim:Play() end else time = 3 self:SetScript("OnUpdate", nil) end last = 0 end end local Survey_OnEvent = function(self, event, unit, _, _, _, spellid) if not unit == "player" then return end if spellid == 80451 then time = 3 self.text:SetTexture(COUNT_TEX .. 3) self.text:SetVertexColor(1,0,0,1) self:SetScript("OnUpdate", Survey_OnUpdate) if not self.anim:IsPlaying() then self.anim:Play() end end end function EnableListener() UpdateArtifactCache() ArchEventHandler:RegisterEvent("ZONE_CHANGED") ArchEventHandler:RegisterEvent("ZONE_CHANGED_NEW_AREA") ArchEventHandler:RegisterEvent("ZONE_CHANGED_INDOORS") ArchEventHandler:RegisterEvent("ARTIFACT_DIG_SITE_UPDATED") ArchEventHandler:RegisterEvent("ARTIFACT_DIGSITE_COMPLETE") ArchEventHandler:RegisterEvent("ARTIFACT_HISTORY_READY") ArchEventHandler:RegisterEvent("ARTIFACT_COMPLETE") ArchEventHandler:RegisterEvent("CURRENCY_DISPLAY_UPDATE") ArchEventHandler:RegisterEvent("ARCHAEOLOGY_SURVEY_CAST") ArchEventHandler:RegisterEvent("CHAT_MSG_SKILL") ArchEventHandler:SetScript("OnEvent", Arch_OnEvent) if(playerRace ~= "Dwarf") then SurveyCooldown:RegisterEvent("UNIT_SPELLCAST_STOP") SurveyCooldown:SetScript("OnEvent", Survey_OnEvent) end end function DisableListener() ArchEventHandler:UnregisterAllEvents() ArchEventHandler:SetScript("OnEvent", nil) if(playerRace ~= "Dwarf") then SurveyCooldown:UnregisterAllEvents() SurveyCooldown:SetScript("OnEvent", nil) end end end --[[ ########################################################## CORE FUNCTIONS ########################################################## ]]-- function PLUGIN.Archaeology:Enable() PLUGIN.Archaeology:Update() if(not PLUGIN.Docklet:IsShown()) then PLUGIN.Docklet.Button:Click() end PlaySoundFile("Sound\\Item\\UseSounds\\UseCrinklingPaper.wav") PLUGIN.ModeAlert:SetBackdropColor(0.25, 0.52, 0.1) ArchCrafting:Show() ArchCrafting:FadeIn() local canArch = IsSpellKnown(80451) if(canArch) then local msg = GetTitleAndSkill() if surveyIsKnown and CanScanResearchSite() then PLUGIN:ModeLootLoader("Archaeology", msg, "Double-Right-Click anywhere on the screen to survey."); _G["SVUI_ModeCaptureWindow"]:SetAttribute("type", "spell") _G["SVUI_ModeCaptureWindow"]:SetAttribute('spell', survey) else PLUGIN:ModeLootLoader("Archaeology", msg, "Double-Right-Click anywhere on the screen to open the artifacts window."); _G["SVUI_ModeCaptureWindow"]:SetAttribute("type", "spell") _G["SVUI_ModeCaptureWindow"]:SetAttribute('spell', archSpell) end PLUGIN.TitleWindow:Clear(); PLUGIN.TitleWindow:AddMessage(msg); else ArchCrafting:FadeOut(0.1,1,0,true) PLUGIN:ModeLootLoader("Archaeology", "WTF is Archaeology?", "You don't know archaeology! \nPicking up a rock and telling everyone that \nyou found a fossil is cute, BUT WRONG!! \nGo find someone who can train you to do this job."); PLUGIN.TitleWindow:Clear(); PLUGIN.TitleWindow:AddMessage("WTF is Archaeology?"); PLUGIN.LogWindow:Clear(); PLUGIN.LogWindow:AddMessage("You don't know archaeology! \nPicking up a rock and telling everyone that \nyou found a fossil is cute, BUT WRONG!! \nGo find someone who can train you to do this job.", 1, 1, 1); PLUGIN.LogWindow:AddMessage(" ", 1, 1, 1); end EnableListener() PLUGIN.ModeAlert:Show() SV:SCTMessage("Archaeology Mode Enabled", 0.28, 0.9, 0.1); end function PLUGIN.Archaeology:Disable() DisableListener() ArchCrafting:FadeOut(0.1,1,0,true) end function PLUGIN.Archaeology:Bind() if InCombatLockdown() then return end if(archSpell) then if surveyIsKnown and CanScanResearchSite() then _G["SVUI_ModeCaptureWindow"]:SetAttribute("type", "spell") _G["SVUI_ModeCaptureWindow"]:SetAttribute('spell', survey) PLUGIN.ModeAlert.HelpText = 'Double-Right-Click anywhere on the screen to survey.' else _G["SVUI_ModeCaptureWindow"]:SetAttribute("type", "spell") _G["SVUI_ModeCaptureWindow"]:SetAttribute('spell', archSpell) PLUGIN.ModeAlert.HelpText = 'Double-Right-Click anywhere on the screen to open the artifacts window.' end SetOverrideBindingClick(_G["SVUI_ModeCaptureWindow"], true, "BUTTON2", "SVUI_ModeCaptureWindow"); _G["SVUI_ModeCaptureWindow"].Handler:Show(); end end function PLUGIN.Archaeology:Update() surveyIsKnown = IsSpellKnown(80451); survey = GetSpellInfo(80451); local _,_,arch,_,_,_ = GetProfessions(); if(arch) then archSpell, _, skillRank, _, _, _, _, skillModifier = GetProfessionInfo(arch) end end --[[ ########################################################## LOADER ########################################################## ]]-- function PLUGIN:LoadArchaeologyMode() ArchRaces = GetNumArchaeologyRaces() for i = 1, ArchRaces do refArtifacts[i] = {} end CONFIGS = SV.db[self.Schema]; ModeLogsFrame = self.LogWindow; local progressBars = self.Archaeology.Bars ArchCrafting:SetParent(ModeLogsFrame) ArchCrafting:SetFrameStrata("MEDIUM") ArchCrafting:InsetPoints(ModeLogsFrame) local BAR_WIDTH = (ArchCrafting:GetWidth() * 0.33) - 4 local BAR_HEIGHT = (ArchCrafting:GetHeight() / 5) - 4 for i = 1, ArchRaces do local bar = CreateFrame("StatusBar", nil, ArchCrafting) local solve = CreateFrame("Button", nil, bar, "SecureHandlerClickTemplate") local yOffset,xOffset = 0,0; bar:SetStyle("Frame", "Bar") bar:SetStatusBarTexture([[Interface\AddOns\SVUI\assets\artwork\Template\DEFAULT]]) bar:SetSize(BAR_WIDTH,BAR_HEIGHT) if(i > 10) then xOffset = (BAR_WIDTH * 2) + 6 yOffset = ((i - 11) * (BAR_HEIGHT + 4)) + 4 elseif(i > 5) then xOffset = BAR_WIDTH + 4 yOffset = ((i - 6) * (BAR_HEIGHT + 4)) + 4 else xOffset = 2 yOffset = ((i - 1) * (BAR_HEIGHT + 4)) + 4; end bar:SetPoint("TOPLEFT", ArchCrafting, "TOPLEFT", xOffset, -yOffset) bar:SetStatusBarColor(0.2, 0.2, 0.8, 0.5) -- Race Text local race = bar:CreateFontString() race:SetFontObject(SVUI_Font_CraftNumber) race:SetText(RACE) race:SetPoint("TOPLEFT", bar, "TOPLEFT", 2, -4) race:SetTextColor(1,0.8,0) -- Progress Text local progress = bar:CreateFontString() progress:SetFontObject(SVUI_Font_CraftNumber) progress:SetText("") progress:SetPoint("BOTTOMRIGHT", bar, "BOTTOMRIGHT", -1, 1) -- Solve solve:SetAllPoints(bar) solve.bg = solve:CreateTexture(nil,"BORDER") solve.bg:SetAllPoints(solve) solve.bg:SetTexture(SV.media.statusbar.default) solve.bg:SetVertexColor(0.1,0.5,0) solve.text = solve:CreateFontString(nil,"OVERLAY") solve.text:SetFontObject(SVUI_Font_Craft) solve.text:SetShadowOffset(-1,-1) solve.text:SetShadowColor(0,0,0,0.5) solve.text:SetText(SOLVE) solve.text:SetPoint("CENTER", solve, "CENTER", 2, 0) solve.RaceIndex = i solve.border = bar solve:SetScript("OnEnter", function(self) GameTooltip:SetOwner(self, "ANCHOR_BOTTOMRIGHT", 2, 250) GameTooltip:ClearLines() if GetNumArtifactsByRace(self.RaceIndex) > 0 then self.text:SetTextColor(1, 1, 0) self.border:SetBackdropBorderColor(0,0.8,1) SetSelectedArtifact(self.RaceIndex) local artifactName, artifactDescription, artifactRarity, _, _, keystoneCount = GetSelectedArtifactInfo() local numFragmentsCollected, numFragmentsAdded, numFragmentsRequired = GetArtifactProgress() local r, g, b if artifactRarity == 1 then artifactRarity = ITEM_QUALITY3_DESC r, g, b = GetItemQualityColor(3) else artifactRarity = ITEM_QUALITY1_DESC r, g, b = GetItemQualityColor(1) end GameTooltip:AddLine(artifactName, r, g, b, 1) GameTooltip:AddLine(artifactRarity, r, g, b, r, g, b) GameTooltip:AddDoubleLine(ARCHAEOLOGY_RUNE_STONES..": "..numFragmentsCollected.."/"..numFragmentsRequired, "Keystones: "..keystoneCount, 1, 1, 1, 1, 1, 1) GameTooltip:AddLine(" ") GameTooltip:AddLine(artifactDescription, 1, 1, 1, 1) GameTooltip:Show() end end) solve:SetScript("OnLeave", function(self) self.text:SetTextColor(0.7, 0.7, 0.7) self.border:SetBackdropBorderColor(0,0,0) GameTooltip:Hide() end) progressBars[i] = { ["bar"] = bar, ["race"] = race, ["progress"] = progress, ["solve"] = solve } end ArchCrafting:FadeOut(0.1,1,0,true) self.Archaeology:Update() UpdateArtifactCache() end
local function ChangePhoto(msg) local text = msg.content_.text_ if ChatType == 'sp' or ChatType == 'gp' then if text then tdcli_function({ID = "GetUser",user_id_ = msg.sender_user_id_},function(arg,result) if result.id_ then local Alli = DevAli:get("LaUrEnTEAM:Photo"..result.id_) if not result.profile_photo_ then if Alli then Dev_Ali(msg.chat_id_, msg.id_, 1, "حذف كل صوره مضروب بوري، 😹💔", 1, 'html') DevAli:del("LaUrEnTEAM:Photo"..result.id_) end end if result.profile_photo_ then if Alli and Alli ~= result.profile_photo_.big_.persistent_id_ then local Alli_text = { "وفف مو صوره غنبلةة، 🤤♥️", "طالع صاكك بالصوره الجديده ممكن نرتبط؟ ، 🤤♥️", "حطيت صوره جديده عود شوفوني اني صاكك بنات، 😹♥️", "اححح شنيي هالصوره الجديده، 🤤♥️", } Alli3 = math.random(#Alli_text) Dev_Ali(msg.chat_id_, msg.id_, 1, Alli_text[Alli3], 1, 'html') end DevAli:set("LaUrEnTEAM:Photo"..result.id_, result.profile_photo_.big_.persistent_id_) end end end,nil) end end end return { LaUrEn = ChangePhoto }
box.cfg { listen = '0.0.0.0:3301'; io_collect_interval = nil; readahead = 16320; memtx_memory = 128 * 1024 * 1024; -- 128Mb memtx_min_tuple_size = 16; memtx_max_tuple_size = 128 * 1024 * 1024; -- 128Mb vinyl_memory = 128 * 1024 * 1024; -- 128Mb vinyl_cache = 128 * 1024 * 1024; -- 128Mb vinyl_max_tuple_size = 128 * 1024 * 1024; -- 128Mb vinyl_write_threads = 2; wal_mode = "write"; wal_max_size = 256 * 1024 * 1024; checkpoint_interval = 60 * 60; -- one hour checkpoint_count = 6; force_recovery = true; log_level = 5; log_nonblock = false; too_long_threshold = 0.5; read_only = false } box.once("bootstrap", function() local kv_storage = box.schema.space.create('kv', {if_not_exists = true}) kv_storage:format({ {name = 'k', type = 'string', is_nullable=false}, {name = 'v', type = 'any', is_nullable=false} }) kv_storage:create_index('primary', {unique = true, if_not_exists = true, parts = {{'k', 'string'}} }) box.schema.user.create('kv_user', { password = 'secret', if_not_exists = true }) box.schema.user.grant('kv_user', 'read,write,execute', 'space', 'kv') end) local log = require('log') local pickle = require('pickle') -- Configure HTTP server local http_server = require('http.server') local httpd = http_server.new('0.0.0.0', 8080, { log_requests = false, log_errors = true, header_timeout = 1 }) -- Confirure throttle service local APP_RL_TOTAL = tonumber(os.getenv('APP_RATE_LIMIT_TOTAL')) local APP_RL_TIME_FRAME_SEC = tonumber(os.getenv('APP_RATE_LIMIT_TIME_FRAME_SEC')) if APP_RL_TOTAL ~= nil and APP_RL_TIME_FRAME_SEC ~= nil and APP_RL_TOTAL > 0 and APP_RL_TIME_FRAME_SEC > 0 then local clock = require('clock') RATE_LIMIT_HEADER = 'x-rate-limit' local prev_rate = APP_RL_TOTAL local curr_rate = 0 local start_time = clock.time() local function sliding_window_rate_limit(r) local now = clock.time() if (now - start_time) > APP_RL_TIME_FRAME_SEC then start_time = now prev_rate = curr_rate curr_rate = 0 end local slide_prct = (APP_RL_TIME_FRAME_SEC - (now - start_time)) / APP_RL_TIME_FRAME_SEC local estimated_count = (prev_rate * slide_prct) + curr_rate log.debug('slide: %s prev: %s current: %s estimated: %s', slide_prct, prev_rate, curr_rate, estimated_count) if estimated_count > APP_RL_TOTAL then r.headers[RATE_LIMIT_HEADER] = 1 return end curr_rate = curr_rate + 1 end httpd:hook('before_dispatch', function (h, req) sliding_window_rate_limit(req) end) end httpd:hook('after_dispatch', function (cx, resp) local s = pickle.pack('A', resp['body'] or '') log.info('"%s %s HTTP/%d.%d" %s %i', cx.method, cx.path, cx.proto[1], cx.proto[2], resp['status'], #s) end) httpd:route({method = 'GET', path = '/kv/:id'}, "kv#get") httpd:route({method = 'POST', path = '/kv'}, "kv#create") httpd:route({method = 'PUT', path = '/kv/:id'}, "kv#update") httpd:route({method = 'DELETE', path = '/kv/:id'}, "kv#delete") httpd:start()
-- Bootstrap package.path = package.path .. ";" .. "./?.lua" .. ";" .. love.filesystem.getWorkingDirectory() .. "/Tests/vendor/?.lua" .. ";" .. love.filesystem.getWorkingDirectory() .. "/Tests/?.lua" .. ";" .. love.filesystem.getWorkingDirectory() .. "/Tests/lib/?.lua" .. ";" .. love.filesystem.getWorkingDirectory() .. "/Tests/vendor/?" .. ";" .. love.filesystem.getWorkingDirectory() .. "/Tests/?" .. ";" .. love.filesystem.getWorkingDirectory() .. "/Tests/lib/?" .. ";" require "Tools/Container" local love2Dcontainers = {'Love.load','Love.draw','Love.keypressed','Love.textinput'} local _G = Ncr7.tObject.getGlobal() _G.Container = Ncr7.tContainer.new() _G.Container:init(love2Dcontainers) -- End (bootstrap) -- Exec programme function love.load() table.foreach(_G.Container:reg('Love.load'):getData(), function(k,v) if('table' == type(v)) then v:load() else v() end end) end function love.draw() table.foreach(_G.Container:reg('Love.draw'):getData(), function(k,v) if('table' == type(v)) then v:draw() else v() end end) end function love.keypressed( key ) table.foreach(_G.Container:reg('Love.keypressed'):getData(), function(k,v) if('table' == type(v)) then v:keypressed(key) else v(key) end end) end function love.textinput( text ) table.foreach(_G.Container:reg('Love.textinput'):getData(), function(k,v) if('table' == type(v)) then v:textinput(text) else v(text) end end) end -- End (Exec programme)
include "./vendor/premake/premake_customization/solution_items.lua" include "Dependencies.lua" workspace "Blaze" architecture "x86_64" startproject "Blaze-Editor" configurations { "Debug", "Release", "Dist" } solution_items { ".editorconfig" } flags { "MultiProcessorCompile" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" group "Dependencies" include "vendor/premake" include "Blaze/vendor/GLFW" include "Blaze/vendor/Glad" include "Blaze/vendor/imgui" include "Blaze/vendor/yaml-cpp" group "" include "Blaze" include "Sandbox" include "Blaze-Editor"
x, y = 3, 4 print(x, y) --> 3 4 x, y = y, x -- swap print(x, y) --> 4 3
return PlaceObj("ModDef", { "dependencies", { PlaceObj("ModDependency", { "id", "ChoGGi_Library", "title", "ChoGGi's Library", "version_major", 10, "version_minor", 5, }), }, "title", "Safari Info", "id", "ChoGGi_SafariInfo", "steam_id", "2428050982", "pops_any_uuid", "72136be6-4453-4f59-903f-489293aa619e", "lua_revision", 1007000, -- Picard "version", 1, "version_major", 0, "version_minor", 1, "image", "Preview.jpg", "author", "ChoGGi", "code", { "Code/Script.lua", }, "has_options", true, "TagInterface", true, "description", [[When you open a safari route this will mark attractions and show satisfaction amount. See mod options to change text style. ]], })
local errorModel = "models/player/skeleton.mdl" local PANEL = {} AccessorFunc(PANEL, "animationTime", "AnimationTime", FORCE_NUMBER) local function SetCharacter(self, character) self.character = character if (character) then self:SetModel(character:GetModel()) self:SetSkin(character:GetData("skin", 0)) for i = 0, (self:GetNumBodyGroups() - 1) do self:SetBodygroup(i, 0) end local bodygroups = character:GetData("groups", nil) if (istable(bodygroups)) then for k, v in pairs(bodygroups) do self:SetBodygroup(k, v) end end else self:SetModel(errorModel) end end local function GetCharacter(self) return self.character end function PANEL:Init() self.activeCharacter = ClientsideModel(errorModel) self.activeCharacter:SetNoDraw(true) self.activeCharacter.SetCharacter = SetCharacter self.activeCharacter.GetCharacter = GetCharacter self.lastCharacter = ClientsideModel(errorModel) self.lastCharacter:SetNoDraw(true) self.lastCharacter.SetCharacter = SetCharacter self.lastCharacter.GetCharacter = GetCharacter self.animationTime = 0.5 self.shadeY = 0 self.shadeHeight = 0 self.cameraPosition = Vector(80, 0, 35) self.cameraAngle = Angle(0, 180, 0) self.lastPaint = 0 end function PANEL:ResetSequence(model, lastModel) local sequence = model:LookupSequence("lineidle0".. math.random(1,4)) if (sequence <= 0) then sequence = model:SelectWeightedSequence(ACT_IDLE) end if (sequence > 0) then model:ResetSequence(sequence) else local found = false for _, v in ipairs(model:GetSequenceList()) do if ((v:lower():find("idle") or v:lower():find("fly")) and v != "idlenoise") then model:ResetSequence(v) found = true break end end if (!found) then model:ResetSequence(4) end end model:SetIK(false) -- copy cycle if we can to avoid a jarring transition from resetting the sequence if (lastModel) then model:ResetSequence(sequence) model:SetCycle(lastModel:GetCycle()) end end function PANEL:RunAnimation(model) model:FrameAdvance((RealTime() - self.lastPaint) * 1) end function PANEL:LayoutEntity(model) model:SetIK(false) self:RunAnimation(model) end function PANEL:SetActiveCharacter(character) self.shadeY = self:GetTall() self.shadeHeight = self:GetTall() -- set character immediately if we're an error (something isn't selected yet) if (self.activeCharacter:GetModel() == errorModel) then self.activeCharacter:SetCharacter(character) self:ResetSequence(self.activeCharacter) return end -- if the animation is already playing, we update its parameters so we can avoid restarting local shade = self:GetTweenAnimation(1) local shadeHide = self:GetTweenAnimation(2) if (shade) then shade.newCharacter = character return elseif (shadeHide) then shadeHide.queuedCharacter = character return end self.lastCharacter:SetCharacter(self.activeCharacter:GetCharacter()) self:ResetSequence(self.lastCharacter, self.activeCharacter) shade = self:CreateAnimation(self.animationTime * 0.5, { index = 1, target = { shadeY = 0, shadeHeight = self:GetTall() }, easing = "linear", OnComplete = function(shadeAnimation, shadePanel) shadePanel.activeCharacter:SetCharacter(shadeAnimation.newCharacter) shadePanel:ResetSequence(shadePanel.activeCharacter) shadePanel:CreateAnimation(shadePanel.animationTime, { index = 2, target = {shadeHeight = 0}, easing = "outQuint", OnComplete = function(animation, panel) if (animation.queuedCharacter) then panel:SetActiveCharacter(animation.queuedCharacter) else panel.lastCharacter:SetCharacter(nil) end end }) end }) shade.newCharacter = character end function PANEL:Paint(width, height) local x, y = self:LocalToScreen(0, 0) local bTransition = self.lastCharacter:GetModel() != errorModel local modelFOV = 40 cam.Start3D(self.cameraPosition, self.cameraAngle, modelFOV, x, y, width, height) render.SuppressEngineLighting(true) render.SetLightingOrigin(self.activeCharacter:GetPos()) -- setup lighting render.SetModelLighting(0, 1.5, 1.5, 1.5) for i = 1, 4 do render.SetModelLighting(i, 0.4, 0.4, 0.4) end render.SetModelLighting(5, 0.04, 0.04, 0.04) -- clip anything out of bounds local curparent = self local rightx = self:GetWide() local leftx = 0 local topy = 0 local bottomy = self:GetTall() local previous = curparent while (curparent:GetParent() != nil) do local lastX, lastY = previous:GetPos() curparent = curparent:GetParent() topy = math.Max(lastY, topy + lastY) leftx = math.Max(lastX, leftx + lastX) bottomy = math.Min(lastY + previous:GetTall(), bottomy + lastY) rightx = math.Min(lastX + previous:GetWide(), rightx + lastX) previous = curparent end ix.util.ResetStencilValues() render.SetStencilEnable(true) render.SetStencilWriteMask(30) render.SetStencilTestMask(30) render.SetStencilReferenceValue(31) render.SetStencilCompareFunction(STENCIL_ALWAYS) render.SetStencilPassOperation(STENCIL_REPLACE) render.SetStencilFailOperation(STENCIL_KEEP) render.SetStencilZFailOperation(STENCIL_KEEP) self:LayoutEntity(self.activeCharacter) if (bTransition) then -- only need to layout while it's used self:LayoutEntity(self.lastCharacter) render.SetScissorRect(leftx, topy, rightx, bottomy - (self:GetTall() - self.shadeHeight), true) self.lastCharacter:DrawModel() render.SetScissorRect(leftx, topy + self.shadeHeight, rightx, bottomy, true) self.activeCharacter:DrawModel() render.SetScissorRect(leftx, topy, rightx, bottomy, true) else self.activeCharacter:DrawModel() end render.SetStencilCompareFunction(STENCIL_EQUAL) render.SetStencilPassOperation(STENCIL_KEEP) cam.Start2D() derma.SkinFunc("PaintCharacterTransitionOverlay", self, 0, self.shadeY, width, self.shadeHeight) cam.End2D() render.SetStencilEnable(false) render.SetScissorRect(0, 0, 0, 0, false) render.SuppressEngineLighting(false) cam.End3D() self.lastPaint = RealTime() end function PANEL:OnRemove() self.lastCharacter:Remove() self.activeCharacter:Remove() end vgui.Register("ixCharMenuCarousel", PANEL, "Panel") -- character load panel PANEL = {} AccessorFunc(PANEL, "animationTime", "AnimationTime", FORCE_NUMBER) AccessorFunc(PANEL, "backgroundFraction", "BackgroundFraction", FORCE_NUMBER) function PANEL:Init() local parent = self:GetParent() local padding = self:GetPadding() local halfWidth = parent:GetWide() * 0.5 - (padding * 2) local halfHeight = parent:GetTall() * 0.5 - (padding * 2) local modelFOV = (ScrW() > ScrH() * 1.8) and 102 or 78 self.character = ix.char.loaded[ix.characters[1]] self.characterid = 1 self.characterAttrib = {} self.animationTime = 1 self.backgroundFraction = 1 -- main panel self.panel = self:AddSubpanel("main") self.panel:SetTitle("") self.panel.OnSetActive = function() self:CreateAnimation(self.animationTime, { index = 2, target = {backgroundFraction = 1}, easing = "outQuint", }) self.character = ix.char.loaded[ix.characters[1]] self.carousel:SetActiveCharacter(ix.char.loaded[ix.characters[1]]) --self.activeCharacter:SetCharacter(ix.char.loaded[ix.characters[1]]) end local dscSubPanel = self.panel:Add("Panel") dscSubPanel:SetSize(self:GetWide() * 0.25, 500) dscSubPanel:SetPos(0,150) dscSubPanel.Paint = function(panel, width, height) --surface.SetDrawColor(Color(5, 0, 5, 255 * 0.5)) --surface.DrawRect(0, 0, width, height) surface.SetDrawColor(ix.config.Get("color")) surface.DrawRect(0, 49, width, 1) surface.SetDrawColor(0, 0, 0, 80) surface.DrawRect(0, 0, width, height) surface.SetDrawColor(Color(0, 0, 0, 129)) surface.DrawOutlinedRect( 0,0, width, height, 1 ) end if !(self.character) then return end local index = self.character:GetFaction() local faction = ix.faction.indices[index] local color = faction and faction.color or color_white local charName = dscSubPanel:Add("DLabel") charName:Dock(FILL) charName:SetText(self.character:GetName()) charName:DockMargin(15, 2, 0, 15) charName:SetFont("ixMenuButtonFont") charName:SetTextColor(color) charName:SetContentAlignment(8) local charDesc = dscSubPanel:Add("DLabel") charDesc:SetWrap(true) charDesc:Dock(FILL) charDesc:SetText(self.character:GetDescription()) charDesc:DockMargin(15, 55, 3, 5) charDesc:SetFont("ixMenuButtonFont") charDesc:SetTextColor(color_white) charDesc:SetContentAlignment(8) --I don't know how to do it, so I'm trying ... ¯\_(ツ)_/¯ local perkSubPanel = self.panel:Add("Panel") perkSubPanel:SetSize(self:GetWide() * 0.25, 500) perkSubPanel:SetPos(self:GetWide() - (self:GetWide() * 0.25) - 200,150) perkSubPanel.Paint = function(panel, width, height) surface.SetDrawColor(ix.config.Get("color")) surface.DrawRect(0, 49, width, 1) surface.SetDrawColor(0, 0, 0, 80) surface.DrawRect(0, 0, width, height) surface.SetDrawColor(Color(0, 0, 0, 129)) surface.DrawOutlinedRect( 0,0, width, height, 1 ) end local perkTitle = perkSubPanel:Add("DLabel") perkTitle:SetText(L("attributes")) perkTitle:Dock(FILL) perkTitle:DockMargin(15, 2, 0, 15) perkTitle:SetFont("ixMenuButtonFont") perkTitle:SetTextColor(color_white) perkTitle:SetContentAlignment(8) local boost = self.character:GetBoosts() local bFirst = true for k, v in SortedPairsByMemberValue(ix.attributes.list, "name") do local attributeBoost = 0 if (boost[k]) then for _, bValue in pairs(boost[k]) do attributeBoost = attributeBoost + bValue end end local bar = perkTitle:Add("ixAttributeBar") bar:Dock(TOP) bar:SetSize(100,100) if (!bFirst) then bar:DockMargin(0, 1, 20, 0) else bar:DockMargin(0, 60, 20, 0) bFirst = false end local value = self.character:GetAttribute(k, 0) if (attributeBoost) then bar:SetValue(value - attributeBoost or 0) else bar:SetValue(value) end local maximum = v.maxValue or ix.config.Get("maxAttributes", 100) bar:SetMax(maximum) bar:SetReadOnly() bar:SetTall(44) --bar:SetText(Format("%s [%.1f/%.1f] (%.1f%%)", L(v.name), value, maximum, value / maximum * 100)) bar:SetText(Format("%s (%.1f%%)", L(v.name), value / maximum * 100)) if (attributeBoost) then bar:SetBoost(attributeBoost) end table.insert(self.characterAttrib, bar) end -- character button list local controlList = self.panel:Add("Panel") controlList:Dock(TOP) controlList:SetSize(halfWidth, halfHeight) local continueButton = controlList:Add("ixMenuButton") --It doesn't choose a character, it removes the character xD --continueButton:Dock(BOTTOM) continueButton:SetText("") -- or delete continueButton:SizeToContents() continueButton.DoClick = function() --self:SetActiveSubpanel("delete") end self.characterList = controlList:Add("ixCharMenuButtonList") self.characterList.buttons = {} self.characterList:SetSize(500,30) self.characterList:Dock(LEFT) self.characterList:SizeToContents() -- right-hand side with carousel and buttons local infoPanel = self.panel:Add("Panel") infoPanel:Dock(FILL) local infoButtons = infoPanel:Add("Panel") infoButtons:Dock(BOTTOM) infoButtons:SetTall(continueButton:GetTall() * 1.5) -- hmm... local deleteButton = infoButtons:Add("ixMenuButton") -- I was too lazy to change it, but this is a character selection button, not an delete button LOL deleteButton:Dock(RIGHT) deleteButton:SetText("Choose this character") -- or choose deleteButton:SetSize(450,50) deleteButton:SetContentAlignment(5) deleteButton:SetTextInset(0, 0) deleteButton:SizeToContents() deleteButton.DoClick = function() self:SetMouseInputEnabled(false) self:Slide("down", self.animationTime * 2, function() net.Start("ixCharacterChoose") net.WriteUInt(self.character:GetID(), 32) net.SendToServer() end, true) end deleteButton.Paint = function(panel, width, height) surface.SetDrawColor(0, 0, 0, 135) surface.DrawRect(0, 0, width, height) surface.SetDrawColor(Color(0, 0, 0, 129)) surface.DrawOutlinedRect( 0,0, width, height, 1 ) end local back = infoButtons:Add("ixMenuButton") back:Dock(LEFT) back:SetText("return") back:SetSize(150,50) back:SetContentAlignment(5) back:SetTextInset(0, 0) back:SizeToContents() back.DoClick = function() self:SlideDown() parent.mainPanel:Undim() end back.Paint = function(panel, width, height) surface.SetDrawColor(0, 0, 0, 135) surface.DrawRect(0, 0, width, height) surface.SetDrawColor(Color(0, 0, 0, 129)) surface.DrawOutlinedRect( 0,0, width, height, 1 ) end local removeCharacter = infoButtons:Add("ixMenuButton") removeCharacter:Dock(LEFT) removeCharacter:SetText("delete") removeCharacter:SetSize(150,50) removeCharacter:DockMargin(20, 0, 0, 0) removeCharacter:SetContentAlignment(5) removeCharacter:SetTextInset(0, 0) removeCharacter:SizeToContents() removeCharacter.DoClick = function() self:SetActiveSubpanel("delete") end removeCharacter.Paint = function(panel, width, height) surface.SetDrawColor(0, 0, 0, 135) surface.DrawRect(0, 0, width, height) surface.SetDrawColor(Color(0, 0, 0, 129)) surface.DrawOutlinedRect( 0,0, width, height, 1 ) end self.carousel = self.panel:Add("ixCharMenuCarousel") self.carousel:SetSize(500,700) self.carousel:SetPos(self.panel:GetWide() * 0.5 - 250,150) self.carousel:SetActiveCharacter(self.character) --self.carousel:Dock(FILL) -- character deletion panel self.delete = self:AddSubpanel("delete") self.delete:SetTitle(nil) self.delete.OnSetActive = function() self.deleteModel:SetModel(self.character:GetModel()) self:CreateAnimation(self.animationTime, { index = 2, target = {backgroundFraction = 0}, easing = "outQuint" }) end local deleteInfo = self.delete:Add("Panel") deleteInfo:SetSize(parent:GetWide() * 0.5, parent:GetTall()) deleteInfo:Dock(LEFT) local deleteReturn = deleteInfo:Add("ixMenuButton") deleteReturn:Dock(BOTTOM) deleteReturn:SetText("No - I want to keep this character") deleteReturn:DockMargin(100, 0, 200, 0) deleteReturn:SizeToContents() deleteReturn.DoClick = function() self:SetActiveSubpanel("main") end deleteReturn.Paint = function(panel, width, height) surface.SetDrawColor(0, 0, 0, 135) surface.DrawRect(0, 0, width, height) surface.SetDrawColor(Color(0, 0, 0, 129)) surface.DrawOutlinedRect( 0,0, width, height, 1 ) end local deleteConfirm = self.delete:Add("ixMenuButton") deleteConfirm:Dock(BOTTOM) deleteConfirm:SetText("Yes - I want to remove this character") deleteConfirm:DockMargin(0, 0, 20, 0) --deleteConfirm:SetContentAlignment(6) deleteConfirm:SizeToContents() deleteConfirm:SetTextColor(derma.GetColor("Error", deleteConfirm)) deleteConfirm.DoClick = function() local id = self.character:GetID() parent:ShowNotice(1, L("deleteComplete", self.character:GetName())) self:Populate(id) self:SetActiveSubpanel("main") net.Start("ixCharacterDelete") net.WriteUInt(id, 32) net.SendToServer() end deleteConfirm.Paint = function(panel, width, height) surface.SetDrawColor(31, 0, 0, 135) surface.DrawRect(0, 0, width, height) surface.SetDrawColor(Color(0, 0, 0, 129)) surface.DrawOutlinedRect( 0,0, width, height, 1 ) end self.deleteModel = deleteInfo:Add("ixModelPanel") self.deleteModel:Dock(FILL) self.deleteModel:SetModel(errorModel) self.deleteModel:SetFOV(modelFOV) self.deleteModel.PaintModel = self.deleteModel.Paint local deleteNag = self.delete:Add("Panel") deleteNag:SetTall(parent:GetTall() * 0.5) deleteNag:Dock(BOTTOM) local deleteTitle = deleteNag:Add("DLabel") deleteTitle:SetFont("ixTitleFont") deleteTitle:SetText(L("areYouSure"):utf8upper()) deleteTitle:SetTextColor(ix.config.Get("color")) deleteTitle:SizeToContents() deleteTitle:Dock(TOP) local deleteText = deleteNag:Add("DLabel") deleteText:SetFont("ixMenuButtonFont") deleteText:SetText(L("deleteConfirm")) deleteText:SetTextColor(color_white) deleteText:SetContentAlignment(7) deleteText:Dock(FILL) local preCharButton = self.panel:Add("ixMenuButton") --preCharButton:Dock(LEFT) preCharButton:SetSize(25, self:GetWide() * 0.25) preCharButton:SetPos(dscSubPanel:GetWide() + 5, 150) preCharButton:SetText("<") preCharButton:SizeToContents() preCharButton.DoClick = function() for i = 1, #ix.characters do local id = ix.characters[i] local character = ix.char.loaded[id] if (!character or character:GetID() == ignoreID) then continue end local index = character:GetFaction() local faction = ix.faction.indices[index] local color = faction and faction.color or color_white if self.character != character then if (self.characterid - 1 or 0) == i then local character = ix.char.loaded[ix.characters[i]] self.carousel:SetActiveCharacter(character) self.character = character self.characterid = i charName:SetTextColor(color) charName:SetText(character:GetName()) charDesc:SetText(character:GetDescription()) charDesc:SizeToContents() break end end end local boost = self.character:GetBoosts() local bFirst = true local count = 0 for k, v in SortedPairsByMemberValue(ix.attributes.list, "name") do count = count + 1 if count == count then self.characterAttrib[count]:Remove() end local attributeBoost = 0 if (boost[k]) then for _, bValue in pairs(boost[k]) do attributeBoost = attributeBoost + bValue end end local bar = perkTitle:Add("ixAttributeBar") bar:Dock(TOP) bar:SetSize(100,100) if (!bFirst) then bar:DockMargin(0, 1, 20, 0) else bar:DockMargin(0, 60, 20, 0) bFirst = false end local value = self.character:GetAttribute(k, 0) if (attributeBoost) then bar:SetValue(value - attributeBoost or 0) else bar:SetValue(value) end local maximum = v.maxValue or ix.config.Get("maxAttributes", 100) bar:SetMax(maximum) bar:SetReadOnly() bar:SetTall(44) --bar:SetText(Format("%s [%.1f/%.1f] (%.1f%%)", L(v.name), value, maximum, value / maximum * 100)) bar:SetText(Format("%s (%.1f%%)", L(v.name), value / maximum * 100)) if (attributeBoost) then bar:SetBoost(attributeBoost) end if count == count then self.characterAttrib[count] = bar end end end preCharButton.Paint = function(panel, width, height) surface.SetDrawColor(0, 0, 0, 135) surface.DrawRect(0, 0, width, height) surface.SetDrawColor(Color(0, 0, 0, 129)) surface.DrawOutlinedRect( 0,0, width, height, 1 ) end local nextCharButton = self.panel:Add("ixMenuButton") --nextCharButton:Dock(RIGHT) nextCharButton:SetSize(25, self:GetWide() * 0.25) nextCharButton:SetPos(controlList:GetWide() + perkSubPanel:GetWide() - 48, 150) nextCharButton:SetText(">") nextCharButton:SizeToContents() nextCharButton.DoClick = function() for i = 1, #ix.characters do local id = ix.characters[i] local character = ix.char.loaded[id] if (!character or character:GetID() == ignoreID) then continue end local index = character:GetFaction() local faction = ix.faction.indices[index] local color = faction and faction.color or color_white if (self.characterid or 0) < i then local character = ix.char.loaded[ix.characters[i]] self.carousel:SetActiveCharacter(character) self.character = character self.characterid = i charName:SetTextColor(color) charName:SetText(character:GetName()) charDesc:SetText(character:GetDescription()) charDesc:SizeToContents() break end end local boost = self.character:GetBoosts() local bFirst = true local count = 0 for k, v in SortedPairsByMemberValue(ix.attributes.list, "name") do count = count + 1 if count == count then self.characterAttrib[count]:Remove() end local attributeBoost = 0 if (boost[k]) then for _, bValue in pairs(boost[k]) do attributeBoost = attributeBoost + bValue end end local bar = perkTitle:Add("ixAttributeBar") bar:Dock(TOP) bar:SetSize(100,100) if (!bFirst) then bar:DockMargin(0, 1, 20, 0) else bar:DockMargin(0, 60, 20, 0) bFirst = false end local value = self.character:GetAttribute(k, 0) if (attributeBoost) then bar:SetValue(value - attributeBoost or 0) else bar:SetValue(value) end local maximum = v.maxValue or ix.config.Get("maxAttributes", 100) bar:SetMax(maximum) bar:SetReadOnly() bar:SetTall(44) --bar:SetText(Format("%s [%.1f/%.1f] (%.1f%%)", L(v.name), value, maximum, value / maximum * 100)) bar:SetText(Format("%s (%.1f%%)", L(v.name), value / maximum * 100)) if (attributeBoost) then bar:SetBoost(attributeBoost) end if count == count then self.characterAttrib[count] = bar end end end nextCharButton.Paint = function(panel, width, height) surface.SetDrawColor(0, 0, 0, 135) surface.DrawRect(0, 0, width, height) surface.SetDrawColor(Color(0, 0, 0, 129)) surface.DrawOutlinedRect( 0,0, width, height, 1 ) end -- finalize setup self:SetActiveSubpanel("main", 0) end function PANEL:OnCharacterDeleted(character) if (self.bActive and #ix.characters == 0) then self:SlideDown() end end function PANEL:Populate(ignoreID) self.characterList:SetPadding(10, 8, 10, 8) self.characterList:Clear() self.characterList.buttons = {} local bSelected -- loop backwards to preserve order since we're docking to the bottom for i = 1, #ix.characters do local id = ix.characters[i] local character = ix.char.loaded[id] if (!character or character:GetID() == ignoreID) then continue end local index = character:GetFaction() local faction = ix.faction.indices[index] local color = faction and faction.color or color_white print(character) --nextCharButton.DoClick = function() -- self.carousel:SetActiveCharacter(panel.character) -- self.character = panel.character --end --local button = self.characterList:Add("ixMenuSelectionButton") --button:SetBackgroundColor(color) --button:SetText(character:GetName()) --button:SetSize(300,30) ----button:Dock(LEFT) --button:SizeToContents() --button:SetButtonList(self.characterList.buttons) --button.character = character --button.OnSelected = function(panel) -- self:OnCharacterButtonSelected(panel) -- print(panel.character) --end --button.Paint = function(panel, width, height) end -- ---- select currently loaded character if available --local localCharacter = LocalPlayer().GetCharacter and LocalPlayer():GetCharacter() -- --if (localCharacter and character:GetID() == localCharacter:GetID()) then -- button:SetSelected(true) -- self.characterList:ScrollToChild(button) -- -- bSelected = true --end end if (!bSelected) then local buttons = self.characterList.buttons if (#buttons > 0) then local button = buttons[#buttons] button:SetSelected(true) self.characterList:ScrollToChild(button) else self.character = nil end end self.characterList:SizeToContents() end function PANEL:OnSlideUp() self.bActive = true self:Populate() end function PANEL:OnSlideDown() self.bActive = false end function PANEL:OnCharacterButtonSelected(panel) self.carousel:SetActiveCharacter(panel.character) self.character = panel.character end function PANEL:Paint(width, height) surface.SetDrawColor(255, 255, 255, 145) surface.SetMaterial(Material("darkrpg/derma/full_bg.png")) surface.DrawTexturedRect(0,0,ScrW(),ScrH()) surface.SetDrawColor(Color(0, 1, 5, self.currentAlpha * 0.5)) surface.DrawRect(0, 0, width, 50) surface.SetDrawColor(ix.config.Get("color")) surface.DrawRect(0, 50, width, 1) draw.DrawText(L"Your Characters", "ixSubTitleFont", 30, 2, ix.config.Get("color"), TEXT_ALIGN_LEFT) end vgui.Register("ixCharMenuLoad", PANEL, "ixCharMenuPanel")
--* This Document is AutoGenerate by OrangeFilter, Don't Change it! * ---@meta --- ---[3.2]mesh 2d render[parent:Render#render] --- ---@class Mesh2dRender Mesh2dRender = {} --- ---[3.2]constructor, 5 param --- --- @param arg0 FloatArray#floatarray --- @param arg1 FloatArray#floatarray --- @param arg2 int --- @param arg3 IntArray --- @param arg4 int --- @nodiscard function Mesh2dRender:new(arg0, arg1, arg2, arg3, arg4) end --- ---[4.7]constructor, 7 param --- --- @param arg0 FloatArray#floatarray --- @param arg1 FloatArray#floatarray --- @param arg2 int --- @param arg3 Uint16Array --- @param arg4 int --- @param arg5 bool --- @nodiscard function Mesh2dRender:new(arg0, arg1, arg2, arg3, arg4, arg5) end --- ---[3.2]draw this render --- --- @param arg0 Program#program --- @param arg1 bool --- @nodiscard function Mesh2dRender:draw(arg0, arg1) end --- ---[3.2]update front range or all positions --- --- @param arg0 float[] --- @param arg1 int --- @nodiscard function Mesh2dRender:updateSubPositions(arg0, arg1) end --- ---[3.2]update front range or all texture coords --- --- @param arg0 float[] --- @param arg1 int --- @nodiscard function Mesh2dRender:updateSubTexureCoords(arg0, arg1) end --- ---[3.2]update front range or all colors --- --- @param arg0 float[] --- @param arg1 int --- @nodiscard function Mesh2dRender:updateSubColors(arg0, arg1) end --- ---[4.4]update triangle indices --- --- @param arg0 IntArray --- @param arg1 int --- @nodiscard function Mesh2dRender:updateTriIndices(arg0, arg1) end --- ---[4.7]update triangle indices --- --- @param arg0 Uint16Array --- @param arg1 int --- @nodiscard function Mesh2dRender:updateUint16TriIndices(arg0, arg1) end --- ---[3.2]set draw in wireframe --- --- @param arg0 bool --- @param arg1 bool --- @nodiscard function Mesh2dRender:setWireframe(arg0, arg1) end --- ---[3.2]get vertex count --- --- @return int --- @nodiscard function Mesh2dRender:getVerNum() end --- ---[3.2]get triangle count --- --- @return int --- @nodiscard function Mesh2dRender:getTriNum() end return Mesh2dRender
local serialStaticNumberCounter = 0 -- // SimpleVehicle adds concrete vehicle methods to SimpleVehicle_3 local SimpleStatic = function() local self = {} -- // maintain unique serial numbers self.serialNumber = serialStaticNumberCounter serialStaticNumberCounter = serialStaticNumberCounter + 1 self._mass = 0.0 -- // mass (defaults to unity so acceleration=force) self._radius = 0.0 -- // size of bounding sphere, for obstacle avoidance, etc. self._speed = 0.0 -- // speed along Forward direction. Because local space -- // is velocity-aligned, velocity = Forward * Speed self._maxForce = 0.0 -- // the maximum steering force this vehicle can apply -- // (steering force is clipped to this magnitude) self._maxSpeed = 0.0 -- // the maximum speed this vehicle is allowed to move -- // (velocity is clipped to this magnitude) self._curvature = 0.0 self._lastForward = Vec3() self._lastPosition = Vec3() SteerLibrary(self) LocalSpace(self) -- // reset vehicle state self.reset = function() -- // reset LocalSpace state self.resetLocalSpace(self.localspace) self.setMass(1.0) -- // mass (defaults to 1 so acceleration=force) self.setSpeed(0.0) -- // speed along Forward direction. self.setRadius(0.5) -- // size of bounding sphere self.setMaxForce(0.0) -- // steering force is clipped to this magnitude self.setMaxSpeed(0.0) -- // velocity is clipped to this magnitude end -- // get/set mass self.mass = function() return self._mass end self.setMass = function(m) self._mass = m; return m end -- // get velocity of vehicle self.velocity = function() return self.forward().mult(self._speed) end -- // get/set speed of vehicle (may be faster than taking mag of velocity) self.speed = function() return self._speed end self.setSpeed = function(s) self._speed = s; return s end -- // size of bounding sphere, for obstacle avoidance, etc. self.radius = function() return self._radius end self.setRadius = function(m) self._radius = m;return m end -- // get/set maxForce self.maxForce = function() return self._maxForce end self.setMaxForce = function(mf) self._maxForce = mf; return mf end -- // get/set maxSpeed self.maxSpeed = function() return self._maxSpeed end self.setMaxSpeed = function(ms) self._maxSpeed = ms; return ms end -- // ratio of speed to max possible speed (0 slowest, 1 fastest) self.relativeSpeed = function() return self.speed() / self.maxSpeed() end return self end return SimpleStatic
local mat_rising = Material( "models/props_combine/stasisshield_sheet" ) --local mat_rising = Material( "models/shadertest/shader4" ) --local mat_rising = Material( "models/props_lab/Tank_Glass001" ) local mat_sparkle = Material("models/effects/comball_tape") --local mat_sparkle = Material( "models/props_combine/stasisshield_sheet" ) local top = 80 local mid = 32 local final_height = top local loopsound = Sound("ambient/levels/labs/teleport_mechanism_windup1.wav") function EFFECT:Init(data) self.Owner = data:GetEntity() self:SetPos(data:GetOrigin()) self:SetAngles(data:GetAngles()) self.BasePos = self:GetPos() self.BeamDownPos = self.BasePos + Vector(0, 0, final_height) self.BeamDownTime = CurTime() + data:GetMagnitude() self.EndTime = self.BeamDownTime + data:GetRadius() self.DrawTop = true self.BeamDown = false if IsValid(self.Owner) then self.Dummy = ClientsideModel(self.Owner:GetModel(), RENDERGROUP_OPAQUE) self.Dummy:SetPos(self.BasePos) self.Dummy:SetAngles(self:GetAngles()) self.Dummy:AddEffects(EF_NODRAW) local s = self.Dummy:LookupSequence("idle_all") self.Dummy:SetSequence(s) else self.Dummy = nil end sound.Play(loopsound, self:GetPos(), 50, 100) end function EFFECT:Think() if self.EndTime < CurTime() then SafeRemoveEntity(self.Dummy) return end if not (IsValid(self.Owner) and IsValid(self.Dummy)) then return false end if self.BeamDownTime >= CurTime() then local pos = self:GetPos() if pos.z - self.BasePos.z < final_height then pos.z = pos.z + (90 * FrameTime()) self:SetPos(pos) end else -- then move to beamdown effects local pos = self:GetPos() if pos.z > self.BeamDownPos.z - final_height then pos.z = pos.z - (90 * FrameTime()) self:SetPos(pos) else self.DrawTop = false end self.BeamDown = true end return true end local vector_up = Vector(0,0,1) function EFFECT:Render() -- clipping positioning local norm = vector_up * -1 local pos = self:GetPos() local dist = norm:Dot(pos) -- do rendering render.MaterialOverride(mat_rising) render.EnableClipping(true) render.PushCustomClipPlane(norm, dist) if not self.BeamDown then self.Owner:DrawModel() else self.Dummy:DrawModel() end render.PopCustomClipPlane() render.EnableClipping(false) render.MaterialOverride() if self.DrawTop then render.SetMaterial(mat_rising) render.DrawQuadEasy(pos, vector_up, 30, 30, COLOR_RED, 0) end end
local mod = DBM:NewMod(971, "DBM-Highmaul", nil, 477) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 14994 $"):sub(12, -3)) mod:SetCreatureID(77404) mod:SetEncounterID(1706) mod:SetZone() mod:SetModelSound("sound\\creature\\thebutcher\\VO_60_OGRERAID_BUTCHER_AGGRO.ogg", "sound\\creature\\thebutcher\\VO_60_OGRERAID_BUTCHER_SPELL_B.ogg") mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_CAST_START 156157 156293", "SPELL_AURA_APPLIED 156152 156151 156598", "SPELL_AURA_APPLIED_DOSE 156152 156151", "SPELL_AURA_REMOVED 156152", "SPELL_CAST_SUCCESS 156143 156172", "UNIT_SPELLCAST_SUCCEEDED boss1" ) --TODO, Probably fix the update bar if it lua errors or doesn't work right. local warnCleave = mod:NewCountAnnounce(156157, 2, nil, false) local warnTenderizer = mod:NewStackAnnounce(156151, 2, nil, "Tank") local warnCleaver = mod:NewSpellAnnounce(156143, 3, nil, false, 2)--Saberlash local warnFrenzy = mod:NewSpellAnnounce(156598, 4) local specWarnTenderizer = mod:NewSpecialWarningStack(156151, nil, 2) local specWarnTenderizerOther = mod:NewSpecialWarningTaunt(156151, nil, nil, nil, nil, 2) local specWarnGushingWounds = mod:NewSpecialWarningStack(156152, nil, 2, nil, nil, nil, 2) local specWarnBoundingCleave = mod:NewSpecialWarningCount(156160, nil, nil, nil, 2, 2) local specWarnBoundingCleaveEnded = mod:NewSpecialWarningEnd(156160) local specWarnPaleVitriol = mod:NewSpecialWarningMove(163046, nil, nil, nil, nil, 2)--Mythic local timerCleaveCD = mod:NewCDTimer(6, 156157, nil, false, nil, 5) local timerTenderizerCD = mod:NewCDTimer(15.2, 156151, nil, "Tank", nil, 5, nil, DBM_CORE_TANK_ICON) local timerCleaverCD = mod:NewCDTimer(7.5, 156143, nil, "Tank", nil, 5, nil, DBM_CORE_TANK_ICON) local timerGushingWounds = mod:NewBuffFadesTimer(15, 156152) local timerBoundingCleaveCD = mod:NewNextCountTimer(60, 156160, nil, nil, nil, 2) local timerBoundingCleave = mod:NewCastTimer(15, 156160, nil, nil, nil, 2) local berserkTimer = mod:NewBerserkTimer(300) local countdownTenderizer = mod:NewCountdown("Alt17", 156151, "Tank") local countdownBoundingCleave = mod:NewCountdown(60, 156160) local voiceCleave = mod:NewVoice(156157, "Melee") local voiceTenderizer = mod:NewVoice(156151, nil, nil, 2) local voiceGushingWound = mod:NewVoice(156152, false)--off by default because only one person needs to run out in most strats, not everyone. Only that person should enable option local voiceFrenzy = mod:NewVoice(156598) local voiceBoundingCleaveSoon = mod:NewVoice(156160) local voicePaleVitriol = mod:NewVoice(163046) --Mythic only mod.vb.cleaveCount = 0 mod.vb.boundingCleave = 0 mod.vb.isFrenzied = false function mod:OnCombatStart(delay) self.vb.cleaveCount = 0 self.vb.boundingCleave = 0 self.vb.isFrenzied = false timerTenderizerCD:Start(6-delay) countdownTenderizer:Start(6-delay) timerCleaveCD:Start(10-delay)--Verify this wasn't caused by cleave bug. timerCleaverCD:Start(12-delay) timerBoundingCleaveCD:Start(-delay, 1) voiceBoundingCleaveSoon:Schedule(53.5-delay, "156160") countdownBoundingCleave:Start(-delay) if self:IsMythic() then berserkTimer:Start(240-delay) self:RegisterShortTermEvents( "SPELL_PERIODIC_DAMAGE 163046", "SPELL_ABSORBED 163046" ) elseif self:IsHeroic() then berserkTimer:Start(-delay) else --Find berserk for LFR & Normal end end function mod:OnCombatEnd() self:UnregisterShortTermEvents() end function mod:SPELL_CAST_START(args) local spellId = args.spellId if spellId == 156157 or spellId == 156293 then self.vb.cleaveCount = self.vb.cleaveCount + 1 warnCleave:Show(self.vb.cleaveCount) if self.vb.isFrenzied then timerCleaveCD:Start(3.5) else timerCleaveCD:Start() end if not self:IsLFR() then --never play this in LFR voiceCleave:Play("156157") end end end function mod:SPELL_AURA_APPLIED(args) local spellId = args.spellId if spellId == 156152 and args:IsPlayer() then local amount = args.amount or 1 timerGushingWounds:Start() if (self:IsMythic() and amount > 1) or (self:IsHeroic() and amount > 2) or (self:IsNormal() and amount > 3) then--Mythic max stack 4, heroic 5, normal 6. Common Strats re generally out at 2, 3, 4 specWarnGushingWounds:Show(amount) voiceGushingWound:Play("runout") end elseif spellId == 156151 then local amount = args.amount or 1 timerTenderizerCD:Start() countdownTenderizer:Start() if amount >= 2 then voiceTenderizer:Play("changemt") if args:IsPlayer() then specWarnTenderizer:Show(amount) else if not UnitDebuff("player", args.spellName) and not UnitIsDeadOrGhost("player") then specWarnTenderizerOther:Show(args.destName) else warnTenderizer:Show(args.destName, amount) end end else warnTenderizer:Show(args.destName, amount) end elseif spellId == 156598 then self.vb.isFrenzied = true warnFrenzy:Show() voiceFrenzy:Play("frenzy") --Update bounding cleave timer local bossPower = UnitPower("boss1") local bossProgress = bossPower * 0.3--Under frenzy he gains energy twice as fast. So about 3.33 energy per seocnd, 30 seconds to full power. local timeRemaining = 30-bossProgress timerBoundingCleaveCD:Update(bossProgress, 30, self.vb.boundingCleave+1)--Will bar update work correctly on a count bar? Looking at code I don't think it will, it doesn't accept/pass on extra args in Update call. countdownBoundingCleave:Cancel() voiceBoundingCleaveSoon:Cancel() if timeRemaining >= 3 then--Don't start countdown if only 2 seconds left countdownBoundingCleave:Start(timeRemaining) end if timeRemaining >= 8.5 then--Prevent a number lower than 2 voiceBoundingCleaveSoon:Schedule(30-bossProgress-6.5, "156160") end end end mod.SPELL_AURA_APPLIED_DOSE = mod.SPELL_AURA_APPLIED function mod:SPELL_AURA_REMOVED(args) local spellId = args.spellId if spellId == 156152 and args:IsPlayer() then timerGushingWounds:Stop() end end function mod:SPELL_CAST_SUCCESS(args) local spellId = args.spellId if spellId == 156143 then warnCleaver:Show() timerCleaverCD:Start() elseif spellId == 156172 then--The cleave finisher of Bounding Cleave. NOT to be confused with other cleave. specWarnBoundingCleaveEnded:Show() --Timer for when regular cleave resumes if self.vb.isFrenzied then timerCleaveCD:Start(5) else timerCleaveCD:Start(11) end end end function mod:SPELL_PERIODIC_DAMAGE(_, _, _, _, destGUID, destName, _, _, spellId) if spellId == 163046 and destGUID == UnitGUID("player") and self:AntiSpam(3, 1) then specWarnPaleVitriol:Show() voicePaleVitriol:Play("runaway") end end mod.SPELL_ABSORBED = mod.SPELL_PERIODIC_DAMAGE function mod:UNIT_SPELLCAST_SUCCEEDED(uId, _, _, _, spellId) if spellId == 156197 or spellId == 156257 then self.vb.cleaveCount = 0 self.vb.boundingCleave = self.vb.boundingCleave + 1 timerCleaveCD:Stop() countdownTenderizer:Cancel() specWarnBoundingCleave:Show(self.vb.boundingCleave) timerTenderizerCD:Start(15) countdownTenderizer:Start(15) timerCleaverCD:Start(21) if self.vb.isFrenzied then timerBoundingCleave:Start(5) timerBoundingCleaveCD:Start(30, self.vb.boundingCleave+1) countdownBoundingCleave:Start(30) voiceBoundingCleaveSoon:Schedule(23.5, "156160") else timerBoundingCleave:Start(9) timerBoundingCleaveCD:Start(nil, self.vb.boundingCleave+1) countdownBoundingCleave:Start(60) voiceBoundingCleaveSoon:Schedule(53.5, "156160") end end end
local helpers = require("test.unit.helpers")(after_each) local itp = helpers.gen_itp(it) local ffi = helpers.ffi local eq = helpers.eq local mbyte = helpers.cimport("./src/nvim/mbyte.h") local charset = helpers.cimport('./src/nvim/charset.h') describe('mbyte', function() -- Array for composing characters local intp = ffi.typeof('int[?]') local function to_intp() -- how to get MAX_MCO from globals.h? return intp(7, 1) end -- Convert from bytes to string local function to_string(bytes) local s = {} for i = 1, #bytes do s[i] = string.char(bytes[i]) end return table.concat(s) end before_each(function() end) itp('utf_ptr2char', function() -- For strings with length 1 the first byte is returned. for c = 0, 255 do eq(c, mbyte.utf_ptr2char(to_string({c, 0}))) end -- Some ill formed byte sequences that should not be recognized as UTF-8 -- First byte: 0xc0 or 0xc1 -- Second byte: 0x80 .. 0xbf --eq(0x00c0, mbyte.utf_ptr2char(to_string({0xc0, 0x80}))) --eq(0x00c1, mbyte.utf_ptr2char(to_string({0xc1, 0xbf}))) -- -- Sequences with more than four bytes end) itp('utf_char2bytes', function() local char_p = ffi.typeof('char[?]') for c = 0, 0xFFFF do local p = char_p(4, 0) mbyte.utf_char2bytes(c, p) eq(c, mbyte.utf_ptr2char(p)) eq(charset.vim_iswordc(c), charset.vim_iswordp(p)) end end) describe('utfc_ptr2char_len', function() itp('1-byte sequences', function() local pcc = to_intp() for c = 0, 255 do eq(c, mbyte.utfc_ptr2char_len(to_string({c}), pcc, 1)) eq(0, pcc[0]) end end) itp('2-byte sequences', function() local pcc = to_intp() -- No combining characters eq(0x007f, mbyte.utfc_ptr2char_len(to_string({0x7f, 0x7f}), pcc, 2)) eq(0, pcc[0]) -- No combining characters pcc = to_intp() eq(0x007f, mbyte.utfc_ptr2char_len(to_string({0x7f, 0x80}), pcc, 2)) eq(0, pcc[0]) -- No UTF-8 sequence pcc = to_intp() eq(0x00c2, mbyte.utfc_ptr2char_len(to_string({0xc2, 0x7f}), pcc, 2)) eq(0, pcc[0]) -- One UTF-8 character pcc = to_intp() eq(0x0080, mbyte.utfc_ptr2char_len(to_string({0xc2, 0x80}), pcc, 2)) eq(0, pcc[0]) -- No UTF-8 sequence pcc = to_intp() eq(0x00c2, mbyte.utfc_ptr2char_len(to_string({0xc2, 0xc0}), pcc, 2)) eq(0, pcc[0]) end) itp('3-byte sequences', function() local pcc = to_intp() -- No second UTF-8 character eq(0x007f, mbyte.utfc_ptr2char_len(to_string({0x7f, 0x80, 0x80}), pcc, 3)) eq(0, pcc[0]) -- No combining character pcc = to_intp() eq(0x007f, mbyte.utfc_ptr2char_len(to_string({0x7f, 0xc2, 0x80}), pcc, 3)) eq(0, pcc[0]) -- Combining character is U+0300 pcc = to_intp() eq(0x007f, mbyte.utfc_ptr2char_len(to_string({0x7f, 0xcc, 0x80}), pcc, 3)) eq(0x0300, pcc[0]) eq(0x0000, pcc[1]) -- No UTF-8 sequence pcc = to_intp() eq(0x00c2, mbyte.utfc_ptr2char_len(to_string({0xc2, 0x7f, 0xcc}), pcc, 3)) eq(0, pcc[0]) -- Incomplete combining character pcc = to_intp() eq(0x0080, mbyte.utfc_ptr2char_len(to_string({0xc2, 0x80, 0xcc}), pcc, 3)) eq(0, pcc[0]) -- One UTF-8 character pcc = to_intp() eq(0x20d0, mbyte.utfc_ptr2char_len(to_string({0xe2, 0x83, 0x90}), pcc, 3)) eq(0, pcc[0]) end) itp('4-byte sequences', function() local pcc = to_intp() -- No following combining character eq(0x007f, mbyte.utfc_ptr2char_len(to_string({0x7f, 0x7f, 0xcc, 0x80}), pcc, 4)) eq(0, pcc[0]) -- No second UTF-8 character pcc = to_intp() eq(0x007f, mbyte.utfc_ptr2char_len(to_string({0x7f, 0xc2, 0xcc, 0x80}), pcc, 4)) eq(0, pcc[0]) -- Combining character U+0300 pcc = to_intp() eq(0x007f, mbyte.utfc_ptr2char_len(to_string({0x7f, 0xcc, 0x80, 0xcc}), pcc, 4)) eq(0x0300, pcc[0]) eq(0x0000, pcc[1]) -- No UTF-8 sequence pcc = to_intp() eq(0x00c2, mbyte.utfc_ptr2char_len(to_string({0xc2, 0x7f, 0xcc, 0x80}), pcc, 4)) eq(0, pcc[0]) -- No following UTF-8 character pcc = to_intp() eq(0x0080, mbyte.utfc_ptr2char_len(to_string({0xc2, 0x80, 0xcc, 0xcc}), pcc, 4)) eq(0, pcc[0]) -- Combining character U+0301 pcc = to_intp() eq(0x0080, mbyte.utfc_ptr2char_len(to_string({0xc2, 0x80, 0xcc, 0x81}), pcc, 4)) eq(0x0301, pcc[0]) eq(0x0000, pcc[1]) -- One UTF-8 character pcc = to_intp() eq(0x100000, mbyte.utfc_ptr2char_len(to_string({0xf4, 0x80, 0x80, 0x80}), pcc, 4)) eq(0, pcc[0]) end) itp('5+-byte sequences', function() local pcc = to_intp() -- No following combining character eq(0x007f, mbyte.utfc_ptr2char_len(to_string({0x7f, 0x7f, 0xcc, 0x80, 0x80}), pcc, 5)) eq(0, pcc[0]) -- No second UTF-8 character pcc = to_intp() eq(0x007f, mbyte.utfc_ptr2char_len(to_string({0x7f, 0xc2, 0xcc, 0x80, 0x80}), pcc, 5)) eq(0, pcc[0]) -- Combining character U+0300 pcc = to_intp() eq(0x007f, mbyte.utfc_ptr2char_len(to_string({0x7f, 0xcc, 0x80, 0xcc}), pcc, 5)) eq(0x0300, pcc[0]) eq(0x0000, pcc[1]) -- Combining characters U+0300 and U+0301 pcc = to_intp() eq(0x007f, mbyte.utfc_ptr2char_len(to_string({0x7f, 0xcc, 0x80, 0xcc, 0x81}), pcc, 5)) eq(0x0300, pcc[0]) eq(0x0301, pcc[1]) eq(0x0000, pcc[2]) -- Combining characters U+0300, U+0301, U+0302 pcc = to_intp() eq(0x007f, mbyte.utfc_ptr2char_len(to_string({0x7f, 0xcc, 0x80, 0xcc, 0x81, 0xcc, 0x82}), pcc, 7)) eq(0x0300, pcc[0]) eq(0x0301, pcc[1]) eq(0x0302, pcc[2]) eq(0x0000, pcc[3]) -- Combining characters U+0300, U+0301, U+0302, U+0303 pcc = to_intp() eq(0x007f, mbyte.utfc_ptr2char_len(to_string({0x7f, 0xcc, 0x80, 0xcc, 0x81, 0xcc, 0x82, 0xcc, 0x83}), pcc, 9)) eq(0x0300, pcc[0]) eq(0x0301, pcc[1]) eq(0x0302, pcc[2]) eq(0x0303, pcc[3]) eq(0x0000, pcc[4]) -- Combining characters U+0300, U+0301, U+0302, U+0303, U+0304 pcc = to_intp() eq(0x007f, mbyte.utfc_ptr2char_len(to_string( {0x7f, 0xcc, 0x80, 0xcc, 0x81, 0xcc, 0x82, 0xcc, 0x83, 0xcc, 0x84}), pcc, 11)) eq(0x0300, pcc[0]) eq(0x0301, pcc[1]) eq(0x0302, pcc[2]) eq(0x0303, pcc[3]) eq(0x0304, pcc[4]) eq(0x0000, pcc[5]) -- Combining characters U+0300, U+0301, U+0302, U+0303, U+0304, -- U+0305 pcc = to_intp() eq(0x007f, mbyte.utfc_ptr2char_len(to_string( {0x7f, 0xcc, 0x80, 0xcc, 0x81, 0xcc, 0x82, 0xcc, 0x83, 0xcc, 0x84, 0xcc, 0x85}), pcc, 13)) eq(0x0300, pcc[0]) eq(0x0301, pcc[1]) eq(0x0302, pcc[2]) eq(0x0303, pcc[3]) eq(0x0304, pcc[4]) eq(0x0305, pcc[5]) eq(1, pcc[6]) -- Combining characters U+0300, U+0301, U+0302, U+0303, U+0304, -- U+0305, U+0306, but only save six (= MAX_MCO). pcc = to_intp() eq(0x007f, mbyte.utfc_ptr2char_len(to_string( {0x7f, 0xcc, 0x80, 0xcc, 0x81, 0xcc, 0x82, 0xcc, 0x83, 0xcc, 0x84, 0xcc, 0x85, 0xcc, 0x86}), pcc, 15)) eq(0x0300, pcc[0]) eq(0x0301, pcc[1]) eq(0x0302, pcc[2]) eq(0x0303, pcc[3]) eq(0x0304, pcc[4]) eq(0x0305, pcc[5]) eq(0x0001, pcc[6]) -- Only three following combining characters U+0300, U+0301, U+0302 pcc = to_intp() eq(0x007f, mbyte.utfc_ptr2char_len(to_string( {0x7f, 0xcc, 0x80, 0xcc, 0x81, 0xcc, 0x82, 0xc2, 0x80, 0xcc, 0x84, 0xcc, 0x85}), pcc, 13)) eq(0x0300, pcc[0]) eq(0x0301, pcc[1]) eq(0x0302, pcc[2]) eq(0x0000, pcc[3]) -- No UTF-8 sequence pcc = to_intp() eq(0x00c2, mbyte.utfc_ptr2char_len(to_string({0xc2, 0x7f, 0xcc, 0x80, 0x80}), pcc, 5)) eq(0, pcc[0]) -- No following UTF-8 character pcc = to_intp() eq(0x0080, mbyte.utfc_ptr2char_len(to_string({0xc2, 0x80, 0xcc, 0xcc, 0x80}), pcc, 5)) eq(0, pcc[0]) -- Combining character U+0301 pcc = to_intp() eq(0x0080, mbyte.utfc_ptr2char_len(to_string({0xc2, 0x80, 0xcc, 0x81, 0x7f}), pcc, 5)) eq(0x0301, pcc[0]) eq(0x0000, pcc[1]) -- Combining character U+0301 pcc = to_intp() eq(0x0080, mbyte.utfc_ptr2char_len(to_string({0xc2, 0x80, 0xcc, 0x81, 0xcc}), pcc, 5)) eq(0x0301, pcc[0]) eq(0x0000, pcc[1]) -- One UTF-8 character pcc = to_intp() eq(0x100000, mbyte.utfc_ptr2char_len(to_string({0xf4, 0x80, 0x80, 0x80, 0x7f}), pcc, 5)) eq(0, pcc[0]) -- One UTF-8 character pcc = to_intp() eq(0x100000, mbyte.utfc_ptr2char_len(to_string({0xf4, 0x80, 0x80, 0x80, 0x80}), pcc, 5)) eq(0, pcc[0]) -- One UTF-8 character pcc = to_intp() eq(0x100000, mbyte.utfc_ptr2char_len(to_string({0xf4, 0x80, 0x80, 0x80, 0xcc}), pcc, 5)) eq(0, pcc[0]) -- Combining characters U+1AB0 and U+0301 pcc = to_intp() eq(0x100000, mbyte.utfc_ptr2char_len(to_string( {0xf4, 0x80, 0x80, 0x80, 0xe1, 0xaa, 0xb0, 0xcc, 0x81}), pcc, 9)) eq(0x1ab0, pcc[0]) eq(0x0301, pcc[1]) eq(0x0000, pcc[2]) end) end) end)
function onUse(player, item, fromPosition, target, toPosition, isHotkey) local power1 = Tile(Position({x = 32613, y = 32220, z = 10})) local barrel = Tile(Position({x = 32614, y = 32209, z = 10})) local wall = Tile(Position({x = 32614, y = 32205, z = 10})) local stone = Tile(Position({x = 32614, y = 32206, z = 10})) local burn = Position({x = 32615, y = 32221, z = 10}) if item.itemid == 1945 and power1:getItemById(2166) and wall:getItemById(1025) and stone:getItemById(1304) and barrel:getItemById(1774) then power1:getItemById(2166):transform(1487) wall:getItemById(1025):remove() stone:getItemById(1304):transform(1025) Game.createItem(1487, 1, burn) end item:transform(item.itemid == 1945 and 1946 or 1945) return true end
net = require("net") function love.load() print("CLIENT") local address = "127.0.0.1:*" --just use a random port to connect local max_connections = 1 --only connecting to server, so only 1 connection needed local max_channels = 1 local in_bandwidth = 0 --unlimited bandwidth local out_bandwidth = 0 --unlimited bandwidth net.init(address, max_connections, max_channels, in_bandwidth, out_bandwidth) net.connect("127.0.0.1:27015") --connect to the server end function love.update() net.update() --calls all callbacks which have been queued up by thread end --will be called any time a state changes for address --list of states here: https://leafo.net/lua-enet/#peerstate net.state(function(address, state) print("state changed for '" .. address .. "' to " .. state) if state == "connected" then print("connection established with " .. address) end end) --callback will be called any time we receive a message with "ping" net.receive("ping", function(address, roundTripTime) --you'll need to send a lot more messages to average down the round trip time as it starts high and then lowers print("received message: 'ping' from '" .. address .. "'", roundTripTime) --the packet must be read in the order it was written in local byte = net.readByte() local bool = net.readBool() local int = net.readInt() local float = net.readFloat() local double = net.readDouble() local str = net.readString() local r, g, b, a = net.readColour() --custom format, quicker but more complicated local fByte, fInt, fFloat, fDouble, fString, index = net.readFormat("Bifds") --last returned value is index in stream net.seek(index) --must seek to index after reading custom format, otherwise wont be able to read other values after custom format print("\tbyte:", byte) print("\tbool:", bool) print("\tint:", int) print("\tfloat:", float) print("\tdouble:", double) print("\tstring:", str) print("\tcolour:", r, g, b, a) print("\tcustom:", fByte, fInt, fFloat, fDouble, fString) net.start("pong") net.send(address) --send message to address only --net.send(address, flag, channel) --net.broadcast() --send message to all connections --net.broadcast(flag, channel) -- flag: 0 = reliable, 1 = unreliable, 2 = unsequenced, defaults to reliable -- "reliable" packets are guaranteed to arrive, and arrive in the order in which they are sent -- "unreliable" packets arrive in the order in which they are sent, but they aren't guaranteed to arrive -- "unsequenced" packets are neither guaranteed to arrive, nor do they have any guarantee on the order they arrive. -- channel: defaults to 0 -- The channel to send the packet on end)
require("msa/Core") function FreazeObject(id) local obj = getObjectFromGUID(id); if obj ~= nil then obj.interactable = false; obj.tooltip = false; end end -- TODO : ipmrove string performance. function TableToString(table, precision) local text = "{" for key, value in pairs(table) do if text ~= "{" then text = text..", " end if precision == nil then text = text..key.."="..value else text = text..key.."="..PrecisionNumber(value, precision) end end return text.."}" end -- TODO : ipmrove string performance. function UserdataToString(obj, name, tab) if name == nil then name = "" end; local text = name.." userdata:".."\n" text = text..tab.."name:"..obj.name.."\n" text = text..tab.."tag:"..obj.tag.."\n" text = text..tab.."position:"..TableToString(obj.getPosition(), 2).."\n" text = text..tab.."rotation:"..TableToString(obj.getRotation(), 2).."\n" text = text..tab.."scale:"..TableToString(obj.getScale(), 2).."\n" text = text..tab.."description:"..obj.getDescription().."\n" local customObj = obj.getCustomObject() if customObj == nil then text = text..tab.."CustomObject:nil".."\n" else text = text..tab.."CustomObject:".."\n" for key, value in pairs(customObj) do if type(value) == "string" or type(value) == "number" or type(value) == "boolean" then text = text..tab.." "..key..":"..tostring(value).."\n" elseif type(value) == "table" then text = text..TableToString(value) else text = text..tab.." "..key..": unhandled type - "..type(value).."\n" end end end return text end -- TODO : ipmrove string performance. function PrintObject(obj, name, depth, tab) if name == nil then name = "" end; if depth == nil then depth = 5 end if tab == nil then tab = "" end local type = type(obj) if type == "table" then if depth > 1 then print(tab..name..":") for key, value in pairs(obj) do PrintObject(value, key, depth - 1, tab.." "); end else local printString = "{" for key, value in pairs(obj) do printString = printString..key..":"..value..", " end printString = printString.."}" print(tab..name..":"..printString) end elseif type == "userdata" then print(UserdataToString(obj, name, tab.." ")) elseif type == "string" or type == "number" or type == "boolean" then print(tab..name..":".. tostring(obj)) else print(name.." not handled type:"..type) end end function PrintItAll() for key, value in pairs(_G) do print(key, value) end end function PrecisionNumber(number, precision) local am = 10^precision return math.floor(number * am + 0.5) / am end
local M = {} M.config = function() O.lang.css = { virtual_text = true, formatter = { exe = "prettier", args = {}, }, } end M.format = function() local root_dir = require("project_nvim.project").find_lsp_root() or "" -- use the global prettier if you didn't find the local one local prettier_instance = root_dir .. "/node_modules/.bin/prettier" if vim.fn.executable(prettier_instance) ~= 1 then prettier_instance = O.lang.tsserver.formatter.exe end local ft = vim.bo.filetype O.formatters.filetype[ft] = { function() local args = { "--stdin-filepath", vim.fn.fnameescape(vim.api.nvim_buf_get_name(0)) } -- TODO: O.lang.[ft].formatter.args local extend_args = O.lang.css.formatter.args for i = 1, #extend_args do table.insert(args, extend_args[i]) end return { exe = prettier_instance, args = args, stdin = true, } end, } require("formatter.config").set_defaults({ logging = false, filetype = O.formatters.filetype, }) end M.lint = function() -- TODO: implement linters (if applicable) return "No linters configured!" end M.lsp = function() require('utils.lua').setup_lsp('cssls') end M.dap = function() -- TODO: implement dap return "No DAP configured!" end return M
--[[ settings.lua Welcome to the settings file, where you can set different parameters for the mod! This is a .lua file, so comment is needed. ]] --say that we are loading minetest.debug("M.I.L.A " ..mila.version..": Settings file found, loading...") -- 1 for realistic blood, 2 for blood trail, 3 for the massive butchery (laggy) and 4 to disable: mila.bleed_type = 1 -- 1 for nametag with health in numbers and internal name, 2 for health bar, 3 for coloured shape and 4 to disable: mila.nametag = 1 --say true to active, other words are counted as false: mila.egg = true --allow registering eggs mila.spawning = true --make all mobs spawn mila.break_blocks = true --break blocks on explosion mila.peaceful = false --make all mobs passive -- step counter for attack speed (0.5 is good) mila.globalcounter = 0.5 --seconds -- limit number of mobs active on map (50 is good) mila.maxhandled = 50 --mobs --say that we are ready! minetest.debug("M.I.L.A " ..mila.version..": Settings file fully loaded, have fun!")
local R = require "rigel" local SOC = require "generators.soc" local C = require "generators.examplescommon" local harness = require "generators.harnessSOC" local G = require "generators.core" local RS = require "rigelSimple" local SDF = require "sdf" local types = require "types" require "types".export() local Zynq = require "generators.zynq" local RM = require "generators.modules" local regs = SOC.axiRegs({{"offset",RM.reg(u(32),200)}},SDF{1,1024}):instantiate("regs") local noc = Zynq.SimpleNOC(nil,nil,{{regs.read,regs.write}}):instantiate("ZynqNOC") noc.extern=true local AddReg = G.Function{ "AddReg", types.rv(types.Par(u(8))), SDF{1,1}, function(i) return G.Add(i,G.RemoveMSBs{24}(RM.Storv(regs.offset)(G.ValueToTrigger(i)))) end} harness({ regs.start, SOC.readBurst("frame_128.raw",128,64,u(8),8,true,nil,noc.read), G.Map{AddReg}, SOC.writeBurst("out/soc_regin",128,64,u(8),8,1,true,noc.write), regs.done},nil,{regs})
local _, private = ... local RealUI = _G.RealUI --[[ Fonts SystemFont_Shadow_Med1 SystemFont_Shadow_Med1_Outline NumberFont_Outline_Med Fancy16Font ]] local LSM = _G.LibStub("LibSharedMedia-3.0") -- Russian + Latin char languages local LOCALE_MASK = LSM.LOCALE_BIT_ruRU + LSM.LOCALE_BIT_western LSM:Register("font", "Roboto", [[Interface\AddOns\RealUI_Skins\Media\Roboto-Regular.ttf]], LOCALE_MASK) LSM:Register("font", "Roboto Bold-Italic", [[Interface\AddOns\RealUI_Skins\Media\Roboto-BoldItalic.ttf]], LOCALE_MASK) LSM:Register("font", "Roboto Condensed", [[Interface\AddOns\RealUI_Skins\Media\RobotoCondensed-Regular.ttf]], LOCALE_MASK) LSM:Register("font", "Roboto Slab", [[Interface\AddOns\RealUI_Skins\Media\RobotoSlab-Regular.ttf]], LOCALE_MASK) -- Pixel fonts because some people like them LOCALE_MASK = LSM.LOCALE_BIT_koKR + LSM.LOCALE_BIT_ruRU + LSM.LOCALE_BIT_zhCN + LSM.LOCALE_BIT_zhTW + LSM.LOCALE_BIT_western LSM:Register("font", "pixel_small", [[Interface\AddOns\RealUI_Skins\Media\pixel_small.ttf]]) LSM:Register("font", "pixel_large", [[Interface\AddOns\RealUI_Skins\Media\pixel_large.ttf]]) LSM:Register("font", "pixel_numbers", [[Interface\AddOns\RealUI_Skins\Media\pixel_numbers.ttf]], LOCALE_MASK) LSM:Register("font", "pixel_cooldown", [[Interface\AddOns\RealUI_Skins\Media\pixel_cooldown.ttf]], LOCALE_MASK) LSM:Register("font", "pixel_crits", [[Interface\AddOns\RealUI_Skins\Media\pixel_crits.ttf]]) -- Misc Fonts LSM:Register("font", "Font Awesome", [[Interface\AddOns\RealUI_Skins\Media\fontawesome-webfont.ttf]], LOCALE_MASK) LSM:Register("font", "DejaVu Sans", [[Interface\AddOns\RealUI_Skins\Media\DejaVuSans.ttf]], LOCALE_MASK) LSM.DefaultMedia.font = "Roboto" private.fontNames = { normal = "Roboto", chat = "Roboto Condensed", crit = "Roboto Bold-Italic", header = "Roboto Slab", } if RealUI.InitAsianFonts then private.fontNames = RealUI:InitAsianFonts(LSM) end --[[ Backgrounds ]]-- LSM:Register("background", "Plain", private.textures.plain) --[[ Statusbars ]]-- LSM:Register("statusbar", "Plain", private.textures.plain) --[[ Borders ]]-- LSM:Register("border", "Plain", private.textures.plain)
local path = mod_loader.mods[modApi.currentMod].scriptPath local clip = require(path .."libs/clip") local utils = require(path .."libs/utils") local Ui2 = require(path .."ui/Ui2") local DecoSet = require(path .."ui/deco/decoSet") local DecoBorder = require(path .."ui/deco/decoBorder") local this = Class.inherit(Ui2) -- pingpx = how many pixels to ping in each direction. function this:new(color, duration, borderwidth, ping_start, ping_end, align) Ui2.new(self) self.color = color or deco.colors.white borderwidth = borderwidth or 2 self.ping_start = ping_start * 2 or 0 self.ping_end = ping_end * 2 or 0 align = align or {x = 0, y = 0} self:pospx(0, 0) :width(1):height(1) :decorate{ DecoSet(align.x, align.y), DecoBorder(self.color, borderwidth), } self.decorations[2].size = {w = 1, h = 1} self.animations.ping = UiAnim(self, duration or 100, function(anim, widget, percent) widget.decorations[2].size.w = utils.interpolate(percent, widget.rect.w + widget.ping_start, widget.rect.w + widget.ping_end) widget.decorations[2].size.h = utils.interpolate(percent, widget.rect.h + widget.ping_start, widget.rect.h + widget.ping_end) widget.decorations[2].color = InterpolateColor( widget.color, deco.colors.transparent, percent ) end) self.animations.ping.onFinished = function(anim, widget) widget:detach() end self.animations.ping:start() end --function this:isUpdate(screen) -- return Ui2.isUpdate(self, screen) or self.animations.ping:isStarted() --end function this:update(screen) Ui2.update(self, screen) self.parent:relayout() end function this:draw(screen) clip(Ui2, self, screen) end return this
--[[ Goal: wrap long lines without breaking words. --]] local far2_dialog = require "far2.dialog" local M = require "lf4ed_message" local F = far.Flags local insert, concat = table.insert, table.concat -- iterator factory local function EditorBlock (start_line) start_line = start_line or editor.GetInfo().BlockStartLine return function() local lineInfo = editor.GetString (start_line, 1) if lineInfo and lineInfo.SelStart >= 1 and lineInfo.SelEnd ~= 0 then start_line = start_line + 1 return lineInfo end end end local function EditorHasSelection (editInfo) return editInfo.BlockType ~= 0 and editInfo.BlockStartLine >= 1 end local function EditorSelectCurLine (editInfo) return editor.Select ("BTYPE_STREAM", editInfo.CurLine, 1, nil, 1) end local function Incr (input, first, last) for k = #input, 1, -1 do if input[k] == last then input[k] = first else input[k] = string.char (string.byte(input[k]) + 1) return end end insert (input, 1, first) end -- Prefix can be made smart: -- "S:12" -- 12 spaces -- "L:>> " -- prefix ">> " -- "N:5." -- automatic numbering, beginning from "5." -- "N:5)" -- automatic numbering, beginning from "5)" -- "N:c" -- automatic numbering, beginning from "c" -- "N:C." -- automatic numbering, beginning from "C." -- local function GetPrefix (aCode) local op = aCode:sub(1,2):upper() local param = aCode:sub(3):gsub ("%:$", "") if op == "S:" then local n = assert (tonumber (param), "Prefix parameter must be a number") assert (n <= 1000, "Prefix length is limited at 1000") return string.rep (" ", n) elseif op == "L:" then return param elseif op == "N:" then local init, places, delim = param:match ("^(%w+)%,?(%d*)%,?(.*)") if not init then return end if places == "" then places = 0 end if tonumber(init) then init = tonumber(init) return function() local cur_init = tostring(init) init = init + 1 return string.rep(" ", places - #cur_init) .. cur_init .. delim end else local first, last if init:find ("^[a-z]+$") then first,last = "a","z" elseif init:find ("^[A-Z]+$") then first,last = "A","Z" else error("Prefix Lines: invalid starting number") end local t = {} for k=1,#init do t[k] = init:sub(k,k) end init = t return function() local cur_init = concat(init) Incr(init, first, last) return string.rep(" ", places - #cur_init) .. cur_init .. delim end end end end local function Wrap (aColumn1, aColumn2, aPrefix, aJustify, aFactor) local editInfo = editor.GetInfo() if not EditorHasSelection (editInfo) then if EditorSelectCurLine (editInfo) then editInfo = editor.GetInfo() else return end end local linetable, jointable = {}, {} local function flush() if #jointable > 0 then insert (linetable, concat (jointable, " ")) jointable = {} end end for line in EditorBlock (editInfo.BlockStartLine) do if line.StringText:find("%S") then insert (jointable, line.StringText) else flush() insert (linetable, "") end end flush() editor.DeleteBlock() local aMaxLineLen = aColumn2 - aColumn1 + 1 local indent = (" "):rep(aColumn1 - 1) local lines_out = {} -- array for output lines -- Compile the next output line and store it. local function make_line (from, to, len, words) local prefix = type(aPrefix) == "string" and aPrefix or aPrefix() local extra = aMaxLineLen - len if aJustify and (aFactor * (to - from) >= extra) then for i = from, to - 1 do local sp = math.floor ((extra / (to - i)) + 0.5) words[i] = words[i] .. string.rep (" ", sp+1) extra = extra - sp end insert (lines_out, indent .. prefix .. concat (words, "", from, to)) else insert (lines_out, indent .. prefix .. concat (words, " ", from, to)) end end -- Iterate on selected lines (input lines); make and collect output lines. for _,line in ipairs(linetable) do -- Iterate on words on the currently processed line. local ind, start, len = 0, 1, -1 local words = {} for w in line:gmatch ("%S+") do ind = ind + 1 words[ind] = w local wlen = w:len() local newlen = len + 1 + wlen if newlen > aMaxLineLen then if len > 0 then make_line (start, ind-1, len, words) start, len = ind, wlen else make_line (ind, ind, wlen, words) start, len = ind+1, -1 end else len = newlen end end if ind == 0 or len > 0 then make_line (start, #words, len, words) end end -- Put reformatted lines into the editor local Pos = { CurLine = editInfo.BlockStartLine, CurPos = 1 } editor.SetPosition (Pos) for i = #lines_out, 1, -1 do editor.InsertString() editor.SetPosition (Pos) editor.SetString(nil, lines_out[i]) end end local function PrefixBlock (aPrefix) local bNotSelected local editInfo = editor.GetInfo() if not EditorHasSelection (editInfo) then assert (EditorSelectCurLine (editInfo)) editInfo = editor.GetInfo() bNotSelected = true end if type(aPrefix) == "string" then local p = aPrefix aPrefix = function() return p end end for line in EditorBlock (editInfo.BlockStartLine) do editor.SetString(nil, aPrefix() .. line.StringText) end editor.SetPosition (editInfo) if bNotSelected then editor.Select("BTYPE_NONE") end end -- {6d5c7ec2-8c2f-413c-81e6-0cc8ffc0799a} local dialogGuid = "\194\126\092\109\047\140\060\065\129\230\012\200\255\192\121\154" local function ExecuteWrapDialog (aData) local HIST_PREFIX = "LuaFAR\\Reformat\\Prefix" local D = far2_dialog.NewDialog() D._ = {"DI_DOUBLEBOX",3,1,72,10,0, 0, 0, 0, M.MReformatBlock} D.cbxReformat = {"DI_CHECKBOX", 5,2,0,0, 0, 1, 0, 0, M.MReformatBlock2} D.labStart = {"DI_TEXT", 9,3,0,0, 0, 0, 0, 0, M.MStartColumn} D.edtColumn1 = {"DI_FIXEDIT", 22,3,25,4, 0, 0, 0, 0, "1"} D.labEnd = {"DI_TEXT", 29,3,0,0, 0, 0, 0, 0, M.MEndColumn} D.edtColumn2 = {"DI_FIXEDIT", 41,3,44,4, 0, 0, 0, 0, "70"} D.cbxJustify = {"DI_CHECKBOX", 9,4,0,0, 0, 0, 0, 0, M.MJustifyBorder} D.sep = {"DI_TEXT", 5,5,0,0, 0, 0, {DIF_BOXCOLOR=1,DIF_SEPARATOR=1}, 0, ""} D.cbxPrefix = {"DI_CHECKBOX", 5,6,0,0, 0, 0, 0, 0, M.MPrefixLines} D.edtPrefix = {"DI_EDIT", 17,7,70,6, 0, HIST_PREFIX, "DIF_HISTORY", 0, "S:4"} D.labCommand = {"DI_TEXT", 9,7,0,0, 0, 0, 0, 0, M.MCommand} D.sep = {"DI_TEXT", 5,8,0,0, 0, 0, {DIF_BOXCOLOR=1,DIF_SEPARATOR=1}, 0, ""} D.btnOk = {"DI_BUTTON", 0,9,0,0, 0, 0, "DIF_CENTERGROUP", 1, M.MOk} D.btnCancel = {"DI_BUTTON", 0,9,0,0, 0, 0, "DIF_CENTERGROUP", 0, M.MCancel} ---------------------------------------------------------------------------- -- Handlers of dialog events -- local function Check (hDlg, c1, ...) local enbl = c1:GetCheck(hDlg) for _, elem in ipairs {...} do elem:Enable(hDlg, enbl) end end local function DlgProc (hDlg, msg, param1, param2) if msg == F.DN_INITDIALOG then Check (hDlg, D.cbxReformat, D.labStart, D.edtColumn1, D.labEnd, D.edtColumn2, D.cbxJustify) Check (hDlg, D.cbxPrefix, D.edtPrefix, D.labCommand) elseif msg == F.DN_BTNCLICK then if param1 == D.cbxReformat.id then Check (hDlg, D.cbxReformat, D.labStart, D.edtColumn1, D.labEnd, D.edtColumn2, D.cbxJustify) elseif param1 == D.cbxPrefix.id then Check (hDlg, D.cbxPrefix, D.edtPrefix, D.labCommand) end elseif msg == F.DN_GETDIALOGINFO then return dialogGuid end end ---------------------------------------------------------------------------- far2_dialog.LoadData(D, aData) local ret = far.Dialog (-1,-1,76,12,"Wrap",D,0,DlgProc) if ret == D.btnOk.id then far2_dialog.SaveData(D, aData) return true end end local function WrapWithDialog (aData) if not ExecuteWrapDialog(aData) then return end local prefix = aData.cbxPrefix and aData.edtPrefix and GetPrefix(aData.edtPrefix) or "" if aData.cbxReformat then local offs1 = assert(tonumber(aData.edtColumn1), "start column is not a number") local offs2 = assert(tonumber(aData.edtColumn2), "end column is not a number") assert(offs1 >= 1, "start column is less than 1") assert(offs2 >= offs1, "end column is less than start column") editor.UndoRedo("EUR_BEGIN") Wrap (offs1, offs2, prefix, aData.cbxJustify, 2.0) editor.UndoRedo("EUR_END") elseif prefix ~= "" then editor.UndoRedo("EUR_BEGIN") PrefixBlock(prefix) editor.UndoRedo("EUR_END") end end local history = (...)[1] WrapWithDialog (history)
slot0 = class("AutoLoader") slot1 = false slot2 = false slot3 = import("view.util.RequestPackages.LoadPrefabRequestPackage") slot4 = import("view.util.RequestPackages.LoadReferenceRequestPackage") slot5 = import("view.util.RequestPackages.GetSpineRequestPackage") slot6 = import("view.util.RequestPackages.GetPrefabRequestPackage") slot7 = import("view.util.RequestPackages.GetSpriteRequestPackage") slot8 = import("view.util.RequestPackages.ReturnPrefabRequestPackage") slot9 = import("view.util.RequestPackages.ReturnSpineRequestPackage") slot10 = import("view.util.RequestPackages.DestroyAtlasPoolRequestPackage") slot0.PartLoading = bit.lshift(1, 0) slot0.PartLoaded = bit.lshift(1, 1) slot0.Ctor = function (slot0) slot0._loadingRequest = {} slot0._returnRequest = {} slot0._instKeyDict = {} slot0._keyInstDict = {} end slot0.GenerateUID4LoadingRequest = function (slot0) slot0._uidCounter = (slot0._uidCounter or 0) + 1 return slot0._uidCounter end slot0.GetPrefab = function (slot0, slot1, slot2, slot3, slot4) slot0:ClearRequest(slot4) slot4 = slot4 or slot0:GenerateUID4LoadingRequest() slot5 = nil slot6 = slot0.New(slot1, slot2 or "", function (slot0) slot0._loadingRequest[] = nil slot0._instKeyDict[slot0] = slot0._instKeyDict slot0._keyInstDict[] = slot0 slot0._returnRequest[] = slot2.New(slot2.New, , slot0) if slot2.New then slot5(slot0) end end) slot5 = slot6 if slot2 then print("AutoLoader Loading Path: " .. slot1 .. " Name: " .. slot2 .. " ;") end slot0._loadingRequest[slot4] = slot5 slot5:Start() return slot4 end slot0.GetPrefabBYStopLoading = function (slot0, slot1, slot2, slot3, slot4) slot0:ClearRequest(slot4, slot0.PartLoading) slot4 = slot4 or slot0:GenerateUID4LoadingRequest() slot5 = nil slot6 = slot1:New(slot2 or "", function (slot0) slot0._loadingRequest[] = nil slot0:ClearRequest(slot0.ClearRequest, slot2.PartLoaded) slot0._instKeyDict[slot0] = slot0._instKeyDict slot0._keyInstDict[] = slot0 slot0._returnRequest[] = slot0.ClearRequest.New(slot2.PartLoaded, slot5, slot0) if slot0 then slot6(slot0) end end) slot5 = slot6 if slot3 then print("AutoLoader Loading Path: " .. slot1 .. " Name: " .. slot2 .. " ;") end slot0._loadingRequest[slot4] = slot5 slot5:Start() return slot4 end slot0.ReturnPrefab = function (slot0, slot1) slot0:ClearRequest(slot0._instKeyDict[go(slot1)]) end slot0.GetSpine = function (slot0, slot1, slot2, slot3) if not slot1 or #slot1 < 0 then return end slot0:ClearRequest(slot3) slot3 = slot3 or slot0:GenerateUID4LoadingRequest() slot4 = nil slot5 = slot0.New(slot1 or "", function (slot0) slot0._loadingRequest[] = nil slot0._instKeyDict[slot0] = slot0._instKeyDict slot0._keyInstDict[] = slot0 slot0._returnRequest[] = slot2.New(slot2.New, slot0) if slot2.New then slot4(slot0) end end) slot4 = slot5 if slot2 then print("AutoLoader Loading Spine: " .. slot1 .. " ;") end slot0._loadingRequest[slot3] = slot4 slot4:Start() return slot3 end slot0.ReturnSpine = function (slot0, slot1) slot0:ClearRequest(slot0._instKeyDict[go(slot1)]) end slot0.GetSprite = function (slot0, slot1, slot2, slot3, slot4) slot3:GetComponent(typeof(Image)).enabled = false slot0:GetSpriteDirect(slot1, slot2 or "", function (slot0) slot0.enabled = true slot0.sprite = slot0 if slot0 then slot0:SetNativeSize() end end, slot6) return tf(slot3) end slot0.GetSpriteDirect = function (slot0, slot1, slot2, slot3, slot4) slot0:ClearRequest(slot4) slot4 = slot4 or slot0:GenerateUID4LoadingRequest() slot5 = nil slot6 = slot0.New(slot1, slot2, function (slot0) slot0._loadingRequest[] = nil if slot0._loadingRequest then slot2(slot0) end end) slot5 = slot6 if slot1 then print("AutoLoader Loading Atlas: " .. slot1 .. " Name: " .. slot2 .. " ;") end slot0._loadingRequest[slot4] = slot5 slot5:Start() slot0._returnRequest[slot1] = slot2.New(slot1) return slot4 end slot0.GetOffSpriteRequest = function (slot0, slot1) slot0:ClearRequest(slot1) end slot0.LoadPrefab = function (slot0, slot1, slot2, slot3, slot4) slot0:ClearRequest(slot4) slot4 = slot4 or slot0:GenerateUID4LoadingRequest() slot5 = nil slot6 = slot0.New(slot1, slot2 or "", function (slot0) slot0._loadingRequest[] = nil if slot0._loadingRequest then slot2(slot0) end end) slot5 = slot6 if slot1 then print("AutoLoader Loading Once Path: " .. slot1 .. " Name: " .. slot2 .. " ;") end slot0._loadingRequest[slot4] = slot5 slot5:Start() return slot4 end slot0.LoadSprite = function (slot0, slot1, slot2, slot3, slot4) slot3:GetComponent(typeof(Image)).enabled = false slot0:ClearRequest(slot6) slot7 = nil slot8 = slot0.New(slot1, slot2 or "", typeof(Sprite), function (slot0) slot0._loadingRequest[] = nil slot0._loadingRequest.enabled = true slot2.sprite = slot0 if nil then slot2:SetNativeSize() end end) slot7 = slot8 if slot1 then print("AutoLoader Loading Once Path: " .. slot1 .. " Name: " .. slot2 .. " ;") end slot0._loadingRequest[slot6] = slot7 slot7:Start() return slot6 end slot0.LoadReference = function (slot0, slot1, slot2, slot3, slot4, slot5) slot0:ClearRequest(slot5) slot5 = slot5 or slot0:GenerateUID4LoadingRequest() slot6 = nil slot7 = slot0.New(slot1, slot2 or "", slot3, function (slot0) slot0._loadingRequest[] = nil if slot0._loadingRequest then slot2(slot0) end end) slot6 = slot7 if slot1 then print("AutoLoader Loading Once Path: " .. slot1 .. " Name: " .. slot2 .. " ;") end slot0._loadingRequest[slot5] = slot6 slot6:Start() return slot5 end slot0.DestroyAtlas = function (slot0, slot1) slot0:ClearRequest(slot1) end slot0.GetRequestPackage = function (slot0, slot1, slot2) return (bit.band(slot2 or slot0.PartLoading + slot0.PartLoaded, slot0.PartLoading) > 0 and slot0._loadingRequest[slot1]) or (bit.band(slot2 or slot0.PartLoading + slot0.PartLoaded, slot0.PartLoaded) > 0 and slot0._returnRequest[slot1]) end slot0.GetLoadingRP = function (slot0, slot1) return slot0._loadingRequest[slot1] end slot0.ClearRequest = function (slot0, slot1, slot2) if (not slot2 or bit.band(slot2, slot0.PartLoading) > 0) and slot0._loadingRequest[slot1] then if slot1 then print("AutoLoader Unload loading Path: " .. slot0._loadingRequest[slot1].path .. " Name: " .. slot0._loadingRequest[slot1].name .. " ;") end slot0._loadingRequest[slot1]:Stop() slot0._loadingRequest[slot1] = nil end if not slot2 or bit.band(slot2, slot0.PartLoaded) > 0 then if slot0._returnRequest[slot1] then if slot1 then print("AutoLoader Unload Path: " .. slot0._returnRequest[slot1].path .. " Name: " .. slot0._returnRequest[slot1].name .. " ;") end slot0._returnRequest[slot1]:Start() slot0._returnRequest[slot1] = nil end if slot0._keyInstDict[slot1] then slot0._instKeyDict[slot0._keyInstDict[slot1]] = nil slot0._keyInstDict[slot1] = nil end end end slot0.ClearLoadingRequests = function (slot0) for slot4, slot5 in pairs(slot0._loadingRequest) do if slot0 then print("AutoLoader Unload loading Path: " .. slot5.path .. " Name: " .. slot5.name .. " ;") end slot5:Stop() end table.clear(slot0._loadingRequest) end slot0.ClearRequests = function (slot0) for slot4, slot5 in pairs(slot0._loadingRequest) do if slot0 then print("AutoLoader Unload loading Path: " .. slot5.path .. " Name: " .. slot5.name .. " ;") end slot5:Stop() end table.clear(slot0._loadingRequest) for slot4, slot5 in pairs(slot0._returnRequest) do if slot0 then if isa(slot5, slot1) then print("AutoLoader Unload Spine: " .. slot5.name .. " ;") elseif isa(slot5, slot2) then print("AutoLoader Unload Atlas: " .. slot5.path .. " ;") else print("AutoLoader Unload Path: " .. slot5.path .. " Name: " .. slot5.name .. " ;") end end slot5:Start() end table.clear(slot0._returnRequest) table.clear(slot0._instKeyDict) table.clear(slot0._keyInstDict) end slot0.Clear = function (slot0) slot0:ClearRequests() end return slot0
skill_buff_twohandmelee_accuracy = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/tangible/skill_buff/skill_buff_twohandmelee_accuracy.iff", craftingValues = { }, customizationStringNames = {}, customizationValues = {} } addLootItemTemplate("skill_buff_twohandmelee_accuracy", skill_buff_twohandmelee_accuracy)
import "client-functions" for key, new in pairs(CLuaFunctions) do _G[new] = _G[key] end import "client-example"
local class = require 'lib.middleclass' local Timer = require 'lib.timer' local Light = class ("Light") local imgCenter = love.graphics.newImage("assets/sprites/lightcenter.png") local imgEdge = love.graphics.newImage("assets/sprites/lightedge.png") local buffer = love.graphics.newCanvas() function Light:initialize(map, x, y, shape, aSx, aSy, type) self.map = map self.x = x self.y = y self.shape = shape self.Sx = 0 self.Sy = 0 self.type = type self.timer = Timer() table.insert(self.map.lights, self) self.timer:tween(0.5, self, {Sx = aSx, Sy = aSy}, "in-out-cubic") end function Light:update(dt) self.timer:update(dt) end function Light:drawEdge(canvas, debug) if self.shape == 'circle' then lg.setCanvas(buffer) lg.clear(0,0,0) lg.setBlendMode('multiply') lg.push() lg.origin() love.graphics.draw(imgEdge, math.floor(self.x)+0.5, math.floor(self.y)+0.5, 0, self.Sx, self.Sy, imgEdge:getWidth()/2, imgEdge:getHeight()/2 ) lg.setBlendMode('alpha') lg.setColor(0,0,0) self:drawShadows() lg.pop() lg.setColor(255,255,255, 255) lg.setCanvas(canvas) lg.setBlendMode('multiply') lg.draw(buffer) end end function Light:drawCenter(canvas, debug) if self.shape == 'circle' then lg.setCanvas(buffer) lg.clear(0,0,0) lg.setBlendMode('multiply') lg.push() lg.origin() love.graphics.draw(imgCenter, math.floor(self.x)+0.5, math.floor(self.y)+0.5, 0, self.Sx, self.Sy, imgCenter:getWidth()/2, imgCenter:getHeight()/2 ) lg.setBlendMode('alpha') lg.setColor(0,0,0) self:drawShadows() lg.pop() lg.setColor(255,255,255, 255) lg.setCanvas(canvas) lg.setBlendMode('multiply') lg.draw(buffer) end if self.shape == 'rectangle' then lg.setCanvas(buffer) lg.clear(0,0,0) lg.setBlendMode('multiply') lg.push() lg.origin() lg.setColor(255,255,255, 0) love.graphics.rectangle('fill', self.x-self.Sx, self.y-self.Sy, self.Sx*2, self.Sy*2) lg.pop() lg.setColor(255,255,255, 255) lg.setCanvas(canvas) lg.setBlendMode('multiply') lg.draw(buffer) end end function Light:drawShadows() local Gx, Gy = self.x, self.y local items, len = self.map.world:queryRect(self.x-imgCenter:getWidth()/2, self.y-imgCenter:getWidth()/2, imgCenter:getWidth() , imgCenter:getHeight()) for i=1, len do item = items[i] if item.properties.shadows then local N = item.y local S = item.y + (item.height or item.h) local W = item.x local E = item.x + (item.width or item.w) local horizontal local vertical local x, y, x2, y2 if Gy < N then vertical = 'north' elseif Gy > S then vertical = 'south' else vertical = 'center' end if Gx < W then horizontal = 'west' elseif Gx > E then horizontal = 'east' else horizontal = 'center' end if vertical == 'north' then if horizontal == 'west' then x = E y = N x2 = W y2 = S elseif horizontal == 'east' then x = W y = N x2 = E y2 = S else x = W y = N +1 x2 = E y2 = N +1 end elseif vertical == 'south' then if horizontal == 'west' then x = W y = N x2 = E y2 = S elseif horizontal == 'east' then x = E y = N x2 = W y2 = S else x = W y = S -1 x2 = E y2 = S -1 end else if horizontal == 'west' then x = W +1 y = N x2 = W +1 y2 = S elseif horizontal == 'east' then x = E -1 y = N x2 = E -1 y2 = S end end if x and y and x2 and y2 then love.graphics.polygon('fill', x, y, x2, y2, Gx + (x-Gx)*50, Gy + (y-Gy)*50, Gx+ (x2-Gx)*50, Gy+ (y2-Gy)*50, x2, y2 ) end end end end function Light:die() self.timer:tween(0.5, self, {Sx = 0, Sy = 0}, "in-out-cubic", function() self:destroy() end) end function Light:destroy() self.isDead = true table.insert(self.map.lights, self) for i=#self.map.lights,1,-1 do if self.map.lights[i].isDead then table.remove(self.map.lights, i) end end end return Light
-- Agent script: server.lua moonagents.global_functions() local socket = require("socket") local s local cli = {} local function Close(c) log("%s: %s:%s disconnected", name_, c:getpeername()) socket_remove(c, 'r') c:close() cli[c]=nil end local function Stop() if s then socket_remove(s, 'r') s:close() end stop() end local function Failure(reason) log_print("failure '%s'",reason) -- send({ "FAILURE", reason }, parent_) Stop() os.exit() end local function Receive(c) local data, err = c:receive() log("%s: received '%s' from %s:%s",name_, data, c:getpeername()) if data ~= "ping" then return end -- ignore c:send("pong\n") end local function Accept(s) local c, err = s:accept() if not c then log(err) return end log("%s: %s:%s connected", name_, c:getpeername()) socket_add(c, 'r', Receive) cli[c] = true end local function Start(ip, port, backlog) local ok, err log("%s: opening server %s:%u",name_, ip,port) s , err = socket.bind(ip,port) if not s then Failure(err) return end ok, err = s:setoption("reuseaddr",true) if not ok then Failure(err) return end socket_add(s, 'r', Accept) next_state("Active") end local function Active_Stop() log("%s: closing server %s:%u",name_,s:getsockname()) socket_remove(s, 'r') s:close() for c in pairs(cli) do Close(c) end Stop() end start_transition(Start) transition("Active","STOP", Active_Stop)
function getColourPalette() return { "red", "blue", "green" } end
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by Sasha Harp. --- DateTime: 026, 8/26/21 10:27 PM --- function setLocalCoords(x, y, z) local f local data if not fs.exists('/data/') then fs.makeDir('/data') data = {} data.localCoords = {} data.localCoords.x=x data.localCoords.y=y data.localCoords.z=z f = fs.open('/data/local', 'w') f.write(textutils.serialize(data)) f.close() return end f = fs.open('/data/local', 'r') data = textutils.unserialize(f.readAll()) data.localCoords = {} data.localCoords.x=x data.localCoords.y=y data.localCoords.z=z f.close() f = fs.open('/data/local', 'w') f.write(textutils.serialize(data)) f.close() end function getLocalCoords() local data if fs.exists('/data/local') then local f = fs.open('/data/local', 'r') data = textutils.unserialize(f.readAll()) f.close() end return data.localCoords end function setLocalRotation(r) local f local data if not fs.exists('/data/') then fs.makeDir('/data') data = {} data.rot = r f = fs.open('/data/local', 'w') f.write(textutils.serialize(data)) f.close() return end f = fs.open('/data/local', 'r') data = textutils.unserialize(f.readAll()) data.rot = r f.close() f = fs.open('/data/local', 'w') f.write(textutils.serialize(data)) f.close() end function getLocalRotation() local data if fs.exists('/data/local') then local f = fs.open('/data/local', 'r') data = textutils.unserialize(f.readAll()) f.close() end return data.rot end function localRotate(r) local lr = r%4 if lr <= 3 then for n = 1, lr do turtle.turnRight() end else for n = lr, 4 do turtle.turnLeft() end end setLocalRotation((getLocalRotation()+lr)%4) end function localMove(x, y, z) r = getLocalRotation() localRotate(-1*getLocalRotation()) b = true for i=1, math.abs(x), 1 do if x > 0 then b = turtle.forward() else b = turtle.back() end if not b then moveLocalCoords(i-1, 0, 0) return false end end localRotate(1) for i=1, math.abs(y), 1 do if y > 0 then b = turtle.forward() else b = turtle.back() end if not b then moveLocalCoords(x, i-1, 0) return false end end for i=1, math.abs(z), 1 do if z > 0 then b = turtle.up() else b = turtle.down() end if not b then moveLocalCoords(x, y, i-1) return false end end localRotate(getLocalRotation()-1) moveLocalCoords(x, y, z) return true end function moveLocalCoords(x, y, z) coords = getLocalCoords() setLocalCoords(coords.x + x, coords.y + y, coords.z + z) end function moveHome() pos = locator.getLocalCoords() locator.localMove(-pos.x, -pos.y, -pos.z) locator.localRotate(-1*locator.getLocalRotation()) end funcs = {} funcs['setLocalCoords'] = setLocalCoords funcs['getLocalCoords'] = getLocalCoords funcs['localMove'] = localMove
Proxy = module("lib/Proxy") Tunnel = module("lib/Tunnel") vRP = Proxy.getInterface("vRP") async( function() vRP.loadScript("dispatch", "client") vRP.loadScript("dispatch", "client-cmds") end )
local Game = {} function Game.inRectangle(UpperX, UpperY, LowerX, LowerY) local ActX = getPlayerX() local ActY = getPlayerY() if (ActX >= UpperX and ActX <= LowerX) and (ActY >= UpperY and ActY <= LowerY) then return true else return false end end function Game.getPokemonNumberWithMove(Move) for i=1, getTeamSize(), 1 do if hasMove(i, Move) then return i end end return nil end function Game.hasPokemonWithMove(move) for i=1, getTeamSize() do if hasMove(i, move) then return true end end return false end local pokemonIdTeach = 1 function Game.tryTeachMove(movename, ItemName) if not Game.hasPokemonWithMove(movename) then if pokemonIdTeach > getTeamSize() then return fatal("No pokemon in this Team can learn: ".. ItemName) else log("Pokemon: " .. getPokemonName(pokemonIdTeach) .. " Try Learning: " .. ItemName) useItemOnPokemon(ItemName, pokemonIdTeach) pokemonIdTeach = pokemonIdTeach + 1 return end end pokemonIdTeach = 1 return true end function Game.iterTable(t, f) for k, v in pairs(t) do if f(k,v) then return true end end return false end function Game.assert(v, message) if not message then error("Game.assert requires a message.") end if not v then log(message) end return v end return Game
phone = false phoneId = 0 RegisterNetEvent('camera:phone') AddEventHandler('camera:phone', function() CreateMobilePhone(phoneId) CellCamActivate(true, true) phone = true end) frontCam = false function CellFrontCamActivate(activate) return Citizen.InvokeNative(0x2491A93618B7D838, activate) end -- RemoveLoadingPrompt() TakePhoto = N_0xa67c35c56eb1bd9d WasPhotoTaken = N_0x0d6ca79eeebd8ca3 SavePhoto = N_0x3dec726c25a11bac ClearPhoto = N_0xd801cc02177fa3f1 helpText = function(msg) BeginTextCommandDisplayHelp('STRING') AddTextComponentSubstringPlayerName(msg) EndTextCommandDisplayHelp(0, false, true, -1) end Citizen.CreateThread(function() DestroyMobilePhone() while true do Citizen.Wait(0) if IsControlJustPressed(0, 27) and phone == true then -- SELFIE MODE frontCam = not frontCam CellFrontCamActivate(frontCam) end if phone == true then AddTextEntry(GetCurrentResourceName(), _U("cameracontrol")) DisplayHelpTextThisFrame(GetCurrentResourceName(), false) end if IsControlJustPressed(0, 177) and phone == true then -- CLOSE PHONE DestroyMobilePhone() phone = false CellCamActivate(false, false) newPhoneProp() DoPhoneAnimation('cellphone_text_in') TriggerServerEvent("handy:server:getphonedata", GetPlayerServerId(PlayerId())) end if IsControlJustPressed(0, 176) and phone == true then -- TAKE.. PIC TakePhoto() if (WasPhotoTaken() and SavePhoto(-1)) then -- SetLoadingPromptTextEntry("CELL_278") -- ShowLoadingPrompt(1) ClearPhoto() end end if phone == true then HideHudComponentThisFrame(7) HideHudComponentThisFrame(8) HideHudComponentThisFrame(9) HideHudComponentThisFrame(6) HideHudComponentThisFrame(19) HideHudAndRadarThisFrame() end -- ren = GetMobilePhoneRenderId() -- SetTextRenderId(ren) -- Everything rendered inside here will appear on your phone. -- SetTextRenderId(1) -- NOTE: 1 is default end end)
require("notifications") if GameRound == nil then GameRound = class({}) end --Liest Rundeninfos ein function GameRound:ReadRoundConfiguration(kv, roundNumber) self.roundNumber = roundNumber self.roundQuestTitle = kv.round_quest_title or "Kaputt" self.roundTitle = kv.round_title or "Kaputt" self.bounty = kv.bounty self.winningTeam = DOTA_TEAM_NOTEAM self.spawners = {} self.remainingUnits = {} self.eventHandles = {} for key, val in pairs(kv) do if type(val) == "table" and val.NPCName then local spawner = WaveSpawner() spawner:ReadConfiguration(key, val, self) self.spawners[key] = spawner end end end function GameRound:Begin() print("Round " .. self.roundNumber .. " started.") self.remainingUnits = {} self.eventHandles = { ListenToGameEvent("npc_spawned", Dynamic_Wrap(GameRound, "OnNPCSpawned"), self), ListenToGameEvent("entity_killed", Dynamic_Wrap(GameRound, "OnEntityKilled"), self) } self.unstuckTimer = Timers:CreateTimer( 180, function() if Game:GetCurrentRound() == self then print("Unstuck") Game.storage:LogError("Game round stuck") self:KillAll(true) end end ) -- self:MoveCameras() -- print("gonna do GameRound:Begin() Spawn()-ing") for ind, key in pairs(self.spawners) do -- print("Doing key:Spawn()") key:Spawn() end -- print("did GameRound:Begin() Spawn()-ing") end function GameRound:MoveCameras() -- Move cameras to creep spawn point for _, pl in pairs(Game.players) do if pl.lane ~= nil then local cameraTarget = pl.lane.spawnpoint:GetAbsOrigin() -- Offset the camera from the spawn position, towards the lane if cameraTarget.y > 0 then cameraTarget.y = cameraTarget.y - 800 else cameraTarget.y = cameraTarget.y + 800 end pl:MoveCamera(cameraTarget, 1.5) end end end function GameRound:End() Game:SetGameState(GAMESTATE_END_OF_ROUND) for key, val in pairs(self.eventHandles) do StopListeningToGameEvent(val) end if Timers.timers[self.unstuckTimer] then Timers.timers[self.unstuckTimer] = nil end self.unstuckTimer = nil self.eventHandles = {} self:KillAll(true) if self.bounty then for _, player in pairs(Game.players) do player:Income(self.bounty) end GameRules:SendCustomMessage( "<b color='white'>Every player gained</b> <b color='gold'>" .. self.bounty .. " gold</b> <b color='white'>for surviving.</b>", 0, 0 ) end Game:RoundFinished() end --Überprüft ob eine Runde vorbei ist function GameRound:CheckEnd() self:CheckUnitsAlive() if next(self.remainingUnits) == nil then print("Round finished.") SafeCall( function() self:End() end ) end end function GameRound:CheckUnitsAlive() local deadUnitCount = 0 for ind, unit in pairs(self.remainingUnits) do if unit:IsNull() or not unit:IsAlive() then table.remove(self.remainingUnits, ind - deadUnitCount) deadUnitCount = deadUnitCount + 1 end end end --NPC gespawnt function GameRound:OnNPCSpawned(event) local spawned = EntIndexToHScript(event.entindex) if not spawned or spawned:IsPhantom() or spawned:GetClassname() == "npc_dota_thinker" or spawned:GetUnitName() == "" then return end if spawned:GetUnitName() == "storm_spirit_static_remnant" then return end if spawned:GetTeamNumber() == DOTA_TEAM_NEUTRALS and not spawned.dontAdd then self:AddUnitToBeKilled(spawned) end end function GameRound:AddUnitToBeKilled(unit) unit:SetMustReachEachGoalEntity(true) table.insert(self.remainingUnits, unit) end --Called when a unit dies function GameRound:OnEntityKilled(event) local killed = EntIndexToHScript(event.entindex_killed) if not killed or not self.remainingUnits then return end for i, unit in pairs(self.remainingUnits) do if killed == unit then table.remove(self.remainingUnits, i) break end end self:CheckEnd() end function GameRound:KillAll(skipAsync) if not self.remainingUnits then return end if not skipAsync then for _, ent in pairs(self.remainingUnits) do Timers:CreateTimer( 0, function() if not ent:IsNull() then ent:ForceKill(false) end end ) end else for _, ent in pairs(self.remainingUnits) do if not ent:IsNull() then ent:ForceKill(false) end end end end
return PlaceObj("ModDef", { "title", "Fix Expedition Rocket Stuck Unloading", "version", 1, "version_major", 0, "version_minor", 1, "saved", 0, "image", "Preview.png", "id", "ChoGGi_FixExpeditionRocketStuckUnloading", "steam_id", "1567028510", "pops_any_uuid", "5f3420c3-e1ef-4c36-a1f9-15580da5e3a5", "author", "ChoGGi", "lua_revision", 249143, "code", { "Code/Script.lua", }, "description", [[This will check on load game for certain rockets stuck on the ground unable to do jack.]], })
-- This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details -- This file is based on Lua 5.x tests -- https://github.com/lua/lua/tree/master/testes print("testing if-else expressions") function True() return true end function False() return false end function EvalElseifChain(condition1, condition2, condition3) return if condition1 then 10 elseif condition2 then 20 elseif condition3 then 30 else 40 end function EvalElse_IfChain(condition1, condition2, condition3) return if condition1 then 10 else if condition2 then 20 else if condition3 then 30 else 40 end function CheckForConditionalEvaluation(condition) local counter = 0 local function AddToCounter(count) counter += count return counter end local result = if condition then AddToCounter(7) else AddToCounter(17) if condition then assert(result == 7) else assert(result == 17) end -- ensure the counter value matches the result of the clause that was evaluated assert(counter == result) end -- Test expression using only constants assert(if true then true else false) assert(if false then false else true) assert(if nil then false else true) assert((7 + if true then 10 else 20) == 17) -- Test expression using non-constant condition assert(if True() then true else false) assert(if False() then false else true) -- Test evaluation of a "chain" of if/elseif/else in an expression assert(EvalElseifChain(false, false, false) == 40) assert(EvalElseifChain(false, false, true) == 30) assert(EvalElseifChain(false, true, false) == 20) assert(EvalElseifChain(false, true, true) == 20) assert(EvalElseifChain(true, false, false) == 10) assert(EvalElseifChain(true, false, true) == 10) assert(EvalElseifChain(true, true, false) == 10) assert(EvalElseifChain(true, true, true) == 10) -- Test evaluation of a "chain" of if/"else if"/else in an expression assert(EvalElse_IfChain(false, false, false) == 40) assert(EvalElse_IfChain(false, false, true) == 30) assert(EvalElse_IfChain(false, true, false) == 20) assert(EvalElse_IfChain(false, true, true) == 20) assert(EvalElse_IfChain(true, false, false) == 10) assert(EvalElse_IfChain(true, false, true) == 10) assert(EvalElse_IfChain(true, true, false) == 10) assert(EvalElse_IfChain(true, true, true) == 10) -- Test nesting of if-else expressions inside the condition of an if-else expression assert((if (if True() then false else true) then 10 else 20) == 20) assert((if if True() then false else true then 10 else 20) == 20) -- Ensure that if/else expressions are conditionally evaluated -- i.e. verify the evaluated expression doesn't evaluate the true and false expressions and -- merely select the proper value. CheckForConditionalEvaluation(true) CheckForConditionalEvaluation(false) return('OK')
vol = 1 return { title = "xytone", width = 600, height = 600, }
local mod = DBM:NewMod("ToTTrash", "DBM-ThroneofThunder") local L = mod:GetLocalizedStrings() local sndWOP = mod:SoundMM("SoundWOP") mod:SetRevision(("$Revision: 10977 $"):sub(12, -3)) mod:SetModelID(47785) mod:SetZone() mod.isTrashMod = true mod:RegisterEvents( "SPELL_CAST_START", "SPELL_AURA_APPLIED", "UNIT_DIED", "UNIT_SPELLCAST_SUCCEEDED target focus" ) local warnStormEnergy = mod:NewTargetAnnounce(139322, 4) local warnSpiritFire = mod:NewTargetAnnounce(139895, 3)--This is morchok entryway trash that throws rocks at random poeple. local warnShadowNova = mod:NewCastAnnounce(139899, 4) local warnStormCloud = mod:NewTargetAnnounce(139900, 4) local warnFixated = mod:NewSpellAnnounce(140306, 3) local warnConductiveShield = mod:NewTargetAnnounce(140296, 4) local specWarnStormEnergy = mod:NewSpecialWarningYou(139322) local specWarnShadowNova = mod:NewSpecialWarningRun(139899, mod:IsMelee(), nil, nil, 3)--This hurls you pretty damn far. If you aren't careful you're as good as gone. local specWarnStormCloud = mod:NewSpecialWarningYou(139900) local specWarnSonicScreech = mod:NewSpecialWarningInterrupt(136751) local specWarnConductiveShield = mod:NewSpecialWarningTarget(140296) local timerSpiritfireCD = mod:NewCDTimer(12, 139895) local timerShadowNovaCD = mod:NewCDTimer(12, 139899) local timerFixatedCD = mod:NewNextTimer(15.7, 140306) local timerConductiveShield = mod:NewTargetTimer(10, 140296) local timerConductiveShieldCD = mod:NewCDSourceTimer(20, 140296)--On 25 man, it always 20, But 10 man, it variables. mod:RemoveOption("HealthFrame") mod:RemoveOption("SpeedKillTimer") mod:AddBoolOption("RangeFrame") mod:AddBoolOption("HudMAP", true, "sound") local DBMHudMap = DBMHudMap local free = DBMHudMap.free local function register(e) DBMHudMap:RegisterEncounterMarker(e) return e end local lightmaker = {} local stormEnergyTargets = {} local stormCloudTargets = {} local function warnStormEnergyTargets() warnStormEnergy:Show(table.concat(stormEnergyTargets, "<, >")) table.wipe(stormEnergyTargets) end local function warnStormCloudTargets() warnStormCloud:Show(table.concat(stormCloudTargets, "<, >")) table.wipe(stormCloudTargets) end local function hideRangeFrame() DBM.RangeCheck:Hide() end local function SpiritFireTarget(sGUID) local targetname = nil for uId in DBM:GetGroupMembers() do if UnitGUID(uId.."target") == sGUID then targetname = DBM:GetUnitFullName(uId.."targettarget") break end end if targetname and mod:AntiSpam(2, targetname) then--Anti spam using targetname as an identifier, will prevent same target being announced double/tripple but NOT prevent multiple targets being announced at once :) warnSpiritFire:Show(targetname) end end function mod:SPELL_CAST_START(args) if not mod.Options.Enabled then return end if args.spellId == 139895 then self:Schedule(0.2, SpiritFireTarget, args.sourceGUID) timerSpiritfireCD:Start() if self.Options.RangeFrame and not DBM.RangeCheck:IsShown() then DBM.RangeCheck:Show(3) end elseif args.spellId == 136751 and (args.sourceGUID == UnitGUID("target") or args.sourceGUID == UnitGUID("focus")) then specWarnSonicScreech:Show(args.sourceName) sndWOP:Play("kickcast") elseif args.spellId == 139899 then warnShadowNova:Show() specWarnShadowNova:Show() timerShadowNovaCD:Start() if mod:IsMelee() then sndWOP:Play("justrun") end end end function mod:SPELL_AURA_APPLIED(args) if not mod.Options.Enabled then return end if args.spellId == 139322 then--Or 139559, not sure which stormEnergyTargets[#stormEnergyTargets + 1] = args.destName if args:IsPlayer() then specWarnStormEnergy:Show() -- DBM.Flash:Shake(1, 0, 0) sndWOP:Play("runout") else if self.Options.HudMAP then lightmaker[args.destName] = register(DBMHudMap:PlaceRangeMarkerOnPartyMember("timer", args.destName, 10, 10, 1, 1, 1, 0.7):RegisterForAlerts()) end end if self.Options.RangeFrame and not DBM.RangeCheck:IsShown() then DBM.RangeCheck:Show(10) end self:Unschedule(warnStormEnergyTargets) self:Schedule(1.5, warnStormEnergyTargets)--For some reason debuffs can go out as slow as 1.2, set to 1.5 in case it can get even worse then that elseif args.spellId == 139900 then stormCloudTargets[#stormCloudTargets + 1] = args.destName if args:IsPlayer() then specWarnStormCloud:Show() sndWOP:Play("runout") end if self.Options.RangeFrame and not DBM.RangeCheck:IsShown() then DBM.RangeCheck:Show(10) end self:Unschedule(warnStormCloudTargets) self:Schedule(0.5, warnStormCloudTargets) elseif args.spellId == 140296 then warnConductiveShield:Show(args.destName) timerConductiveShield:Start(nil, args.destName) timerConductiveShieldCD:Start(20, args.destName, args.sourceGUID) if args.sourceGUID == UnitGUID("target") then specWarnConductiveShield:Show(args.destName) sndWOP:Play("stopattack") end end end function mod:UNIT_DIED(args) if not mod.Options.Enabled then return end local cid = self:GetCIDFromGUID(args.destGUID) if cid == 70308 then--Soul-Fed Construct timerSpiritfireCD:Cancel() if self.Options.RangeFrame then self:Schedule(3, hideRangeFrame) end if self.Options.HudMAP then DBMHudMap:FreeEncounterMarkers() end elseif cid == 70440 then--Monara timerShadowNovaCD:Cancel() elseif cid == 70236 then--Zandalari Storm-Caller if self.Options.RangeFrame then self:Schedule(3, hideRangeFrame) end if self.Options.HudMAP then DBMHudMap:FreeEncounterMarkers() end elseif cid == 70445 then--Stormbringer Draz'kil if self.Options.RangeFrame then self:Schedule(3, hideRangeFrame) end if self.Options.HudMAP then DBMHudMap:FreeEncounterMarkers() end elseif cid == 69834 or cid == 69821 then timerConductiveShield:Cancel(args.destName) timerConductiveShieldCD:Cancel(args.destName, args.destGUID) elseif cid == 68220 then--Gastropod timerFixatedCD:Cancel(args.destGUID) end end --"<1.0 17:57:05> [UNIT_SPELLCAST_SUCCEEDED] Gastropod [[target:Fixated::0:140306]]", -- [23] function mod:UNIT_SPELLCAST_SUCCEEDED(uId, _, _, _, spellId) if not mod.Options.Enabled then return end if spellId == 140306 and self:AntiSpam(3, 2) then self:SendSync("OMGSnail", UnitGUID(uId)) end end function mod:OnSync(msg, guid) if msg == "OMGSnail" and guid then warnFixated:Show() timerFixatedCD:Start(nil, guid) end end
local lust = require 'test.lust' local describe, it, expect = lust.describe, lust.it, lust.expect local Chest = require 'entities.Chest' describe('Chest', function () it('instantiate', function () expect(Chest()).to.be.a('table') end) local data = { gold = { probability = 100, min = 0, max = 100, }, items = { { probability = 100, min = 1, max = 10, }, { probability = 100, min = 2, max = 20, }, } } local instance it('instantiate from table', function () instance = Chest(data) expect(instance).to.be.a('table') end) describe('get', function () local mindice = function (min, max) return min or max end local treasures = instance:get(mindice) it('gold', function () expect(treasures.gold).to.be(0) end) it('items', function () expect(treasures.items).to.be.a('table') expect(treasures.items[1]).to.be(1) expect(treasures.items[2]).to.be(2) end) end) end)
local easing = require("easing") local SPEED_VAR_PERIOD = 5 local SPEED_VAR_PERIOD_VARIANCE = 2 local BlowInWind = Class(function(self, inst) self.inst = inst self.maxSpeedMult = 1.5 self.minSpeedMult = .5 self.averageSpeed = (TUNING.WILSON_RUN_SPEED + TUNING.WILSON_WALK_SPEED)/2 self.speed = 0 self.windAngle = 0 self.windVector = Vector3(0,0,0) self.currentAngle = 0 self.currentVector = Vector3(0,0,0) self.velocity = Vector3(0,0,0) self.speedVarTime = 0 self.speedVarPeriod = GetRandomWithVariance(SPEED_VAR_PERIOD, SPEED_VAR_PERIOD_VARIANCE) self.soundParameter = nil self.soundName = nil -- self.sineMod = math.random(20, 30) * 0.001 -- self.sine = 0 end) function BlowInWind:OnEntitySleep() self:Stop() end function BlowInWind:OnEntityWake() self:Start(self.windAngle, self.velocMult) end function BlowInWind:Start(ang, vel) if ang then self.windAngle = ang self.windVector = Vector3(math.cos(ang), 0, math.sin(ang)):GetNormalized() self.currentAngle = ang self.currentVector = Vector3(math.cos(ang), 0, math.sin(ang)):GetNormalized() self.inst.Transform:SetRotation(self.currentAngle) end if vel then self.velocMult = vel end if self.inst.SoundEmitter and self.soundPath and self.soundName then self.inst.SoundEmitter:PlaySound(self.soundPath, self.soundName) end self.inst:StartUpdatingComponent(self) end function BlowInWind:Stop() if self.inst.SoundEmitter and self.soundName then self.inst.SoundEmitter:KillSound(self.soundName) end self.inst:StopUpdatingComponent(self) end function BlowInWind:ChangeDirection(ang, vel) if ang then self.windAngle = ang self.windVector = Vector3(math.cos(ang), 0, math.sin(ang)):GetNormalized() end --if vel then self.velocMult = vel end end function BlowInWind:SetMaxSpeedMult(spd) if spd then self.maxSpeedMult = spd end end function BlowInWind:SetMinSpeedMult(spd) if spd then self.minSpeedMult = spd end end function BlowInWind:SetAverageSpeed(spd) if spd then self.averageSpeed = spd end end function BlowInWind:GetSpeed() return self.speed end function BlowInWind:GetVelocity() return self.velocity end function BlowInWind:GetDebugString() --return string.format("Sine: %4.4f, Speed: %3.3f/%3.3f", self.sine, self.speed, self:GetMaxSpeed()) end function BlowInWind:OnUpdate(dt) if not self.inst then self:Stop() return end self.velocity = self.velocity + (self.windVector * dt) if self.velocity:Length() > 1 then self.velocity = self.velocity:GetNormalized() end -- Map velocity magnitudes to a useful range of walkspeeds local curr_speed = self.averageSpeed local player = GetPlayer() if player and player.components.locomotor then curr_speed = (player.components.locomotor:GetRunSpeed() + TUNING.WILSON_WALK_SPEED) / 2 end self.speed = Remap(self.velocity:Length(), 0, 1, 0, curr_speed) --maybe only if changing dir?? -- Do some variation on the speed if velocity is a reasonable amount if self.velocity:Length() >= .5 then self.speedVarTime = self.speedVarTime + dt if self.speedVarTime > SPEED_VAR_PERIOD then self.speedVarTime = 0 self.speedVarPeriod = GetRandomWithVariance(SPEED_VAR_PERIOD, SPEED_VAR_PERIOD_VARIANCE) end local speedvar = math.sin(2*PI*(self.speedVarTime / self.speedVarPeriod)) local mult = Remap(speedvar, -1, 1, self.minSpeedMult, self.maxSpeedMult) self.speed = self.speed * mult end -- Change the sound parameter if there is one if self.soundName and self.soundParameter and self.inst.SoundEmitter then -- Might just be able to use self.velocity:Length() here? self.soundspeed = Remap(self.speed, 0, curr_speed*self.maxSpeedMult, 0, 1) self.inst.SoundEmitter:SetParameter(self.soundName, self.soundParameter, self.soundspeed) end -- Walk! if self.inst.components.locomotor then self.inst.components.locomotor.walkspeed = self.speed self.currentAngle = math.atan2(self.velocity.z, self.velocity.x)/DEGREES self.inst.Transform:SetRotation(self.currentAngle) self.inst.components.locomotor:WalkForward(true) end end return BlowInWind
local bank_impl = {} function bank_impl.get_bank_info(ctx, req) end function bank_impl.gold_from_bank(ctx, req) end function bank_impl.gold_to_bank(ctx, req) end function bank_impl.bank_trade_details(ctx, req) end return bank_impl
local function onComponentAvailable(_, componentType) local component = require("component") local tty = require("tty") local gpu, screen = component.gpu, component.screen local screen_address = screen.address if gpu.getScreen() ~= screen_address then gpu.bind(screen_address) end local depth = math.floor(2^(gpu.getDepth())) os.setenv("TERM", "term-"..depth.."color") if tty.gpu() ~= gpu then tty.bind(gpu) event.push("term_available") end end onComponentAvailable()
#!/usr/bin/env lua local String = require "tek.lib.string" local ui = require "tek.ui" local function getline(color, lnr) local line = "Line " .. lnr .. " " .. os.date() .. " - " .. os.date() .. "-------" line = String.new():set(line) line:setmetadata(color, 1, line:len()) return line end ui.Application:new { AuthorStyles = [[ _textlist.textlist { font: ui-fixed:18; margin: 6; } tek.ui.class.canvas.textlist { border-style: inset; border-width: 2; margin: 4; } ]], Children = { ui.Window:new { -- show = function(self) -- ui.Window.show(self) -- self.Drawable:setAttrs { Debug = true } -- end, HideOnEscape = true, Orientation = "vertical", Children = { ui.Group:new { Orientation = "vertical", Children = { ui.Text:new { Style = "font:ui-fixed:18; text-align:left; padding-left:0; border-width:0; margin:0", Text = " Table/List Header" }, ui.TextList:new { Id = "textlist", BGPens = { "#000", "#800", "#fff" }, FGPens = { "#fff", "#fff", "#000" }, HardScroll = true, -- CursorStyle = "none", -- "bar", "bar+line", "none" -- MarkMode = "none", -- "shift", "block", "none" -- SelectMode = false, -- false, "block", "line", "lines" CursorStyle = "bar", -- "bar", "bar+line", "none" SelectMode = "block", -- false, "block", "line", "lines" -- BlinkCursor = true, -- ReadOnly = tre, Latch = "top", -- default: "bottom" Data = { "This is a new text/list class that allows", "for colorization and efficient resizing.", "Also it uses the new string class.", "It's currently in prototype state, so the", "class implementation is located under", "bin/tek/ui/class. It will be moved to the", "main tree when it's finished.", "Until then, use it on your own risk and be", "prepared for changes.", "Use the buttons below to add some lines.", "Note that the visible range can be latched", "on to the top and bottom of the list.", } }, } }, ui.Group:new { Columns = 4, SameSize = true, Children = { ui.Button:new { -- Width = "auto", Text = "Add On Top", InitialFocus = true, onClick = function(self) local tw = self:getById("textlist") local lnr = 1 tw:addLine(getline(1, lnr), lnr) end }, ui.Button:new { -- Width = "auto", Text = "Add In Center", onClick = function(self) local tw = self:getById("textlist") local lnr = math.max(1, math.floor(tw:getNumLines() / 2)) tw:addLine(getline(2, lnr), lnr) end }, ui.Button:new { -- Width = "auto", Text = "Add On Bottom", onClick = function(self) local tw = self:getById("textlist") local lnr = tw:getNumLines() + 1 tw:addLine(getline(3, lnr), lnr) end }, ui.Button:new { -- Width = "auto", Text = "Add Bulk Top", onClick = function(self) local tw = self:getById("textlist") -- require "profiler".start("lua.prof") tw:suspendUpdate() for i = 1, 20 do tw:addLine(getline(1, 1), 1) end tw:releaseUpdate() -- profiler.stop() end }, ui.Button:new { -- Width = "auto", Text = "Add Bulk Bottom", onClick = function(self) local tw = self:getById("textlist") -- require "profiler".start("lua.prof") tw:suspendUpdate() for i = 1, 20 do local lnr = tw:getNumLines() + 1 tw:addLine(getline(3, lnr), lnr) end tw:releaseUpdate() -- profiler.stop() end }, ui.Button:new { -- Width = "auto", Text = "Del Top", onClick = function(self) local tw = self:getById("textlist") tw:deleteLine(1) end }, ui.Button:new { -- Width = "auto", Text = "Del Bottom", onClick = function(self) local tw = self:getById("textlist") local lnr = tw:getNumLines() tw:deleteLine(lnr) end }, ui.Button:new { -- Width = "auto", Text = "Clear", onClick = function(self) local tw = self:getById("textlist") tw:clear() end }, }, }, } } } }:run()
spawn = { cooldownEnemy, cooldownAsteroid, last = { difficulty, unit } } function spawnerInit() spawn.cooldownEnemy = 90 +rnd(60) spawn.cooldownAsteroid = 60 + rnd(60) spawn.last = {difficulty, unit} end function spawnerUpdate() -- spawning player's remains in the previous attempts for c in all(G.carcasses) do if G.travelledDistance == c.y then Carcass(c.x, -16) end end if spawn.cooldownEnemy > 0 then spawn.cooldownEnemy -= 1 else spawn_enemy() spawn.cooldownEnemy = C.SPAWNRATE_ENEMY_MIN + rnd(C.SPAWNRATE_ENEMY_RANGE) end if spawn.cooldownAsteroid > 0 then spawn.cooldownAsteroid -= 1 else spawnAsteroid() spawn.cooldownAsteroid = C.SPAWNRATE_ASTEROID_MIN + rnd(C.SPAWNRATE_ASTEROID_RANGE) end end -- utility functions -- random x spawn and y spawn function getRandomSpawnX() return C.BOUNDS_SAFE + rnd(127 - C.BOUNDS_SAFE*2) end function getRandomSpawnY() return -C.BOUNDS_SAFE-rnd(C.BOUNDS_OFFSET_TOP-C.BOUNDS_SAFE) end function spawn_enemy() local _difficulty, _die _die = rnd() if (_die<0.5) then _difficulty = "low" end if (0.5<=_die and _die<=0.85) then _difficulty = "medium" end if (0.85<_die) then _difficulty = "high" end if spawn.last.difficulty == "high" then _difficulty = randomOneAmong({"low", "medium"}) end -- low difficulty if (_difficulty == "low") then local _formation = randomOneAmong({"riley", "hammerhead", "augustus"}) -- one riley if (_formation == "riley") then Riley(getRandomSpawnX(), getRandomSpawnY()) -- one hammerhead elseif (_formation == "hammerhead") then Hammerhead(getRandomSpawnX(), getRandomSpawnY()) -- one augustus elseif (_formation == "augustus") then Augustus(getRandomSpawnX(), getRandomSpawnY()) end spawn.last.unit = _formation -- medium difficulty elseif (_difficulty == "medium") then local _die, _formation _die = rnd() if (_die<0.3) then _formation = "riley" end if (0.3<=_die and _die<0.6) then _formation = "dulce" end if (0.6<=_die and _die<=0.9) then _formation = "hammerhead" end if (0.9<_die) then _formation = "koltar" end -- extra conditions for koltar if ((_formation == "koltar") and -- only spawns from 25% of the progress -- not spawning twice in a row (G.travelledDistance/C.DESTINATION_DISTANCE < 0.25 or spawn.last.unit == "koltar")) then _formation = randomOneAmong({"riley", "dulce", "hammerhead"}) end -- two rileys, aligned if (_formation == "riley") then local _y = getRandomSpawnY() Riley(127 * 1/3 - 5, _y) Riley(127 * 2/3 - 5, _y) -- one dulce, no formation elseif (_formation == "dulce") then Dulce(getRandomSpawnX(), getRandomSpawnY()) -- two hammerheads elseif (_formation == "hammerhead") then Hammerhead(127 * 1/3 - 5, getRandomSpawnY()) Hammerhead(127 * 2/3 - 5, getRandomSpawnY()) -- one koltar, middle elseif (_formation == "koltar") then Koltar(127/2 -16, -24) end spawn.last.unit = _formation -- HIGH DIFFICULTY elseif (_difficulty == "high") then local _die, _formation _die = rnd() if (_die<0.1) then _formation = "riley" end if (0.1<=_die and _die<0.4) then _formation = "dulce" end if (0.4<=_die and _die<=0.9) then _formation = "augustus" end if (0.9<_die) then _formation = "koltar" end -- extra conditions for koltar if (_formation == "koltar" -- only spawns from 50% of the progress -- not spawning twice in a row and (G.travelledDistance/C.DESTINATION_DISTANCE < 0.5 or spawn.last.unit == "koltar")) then _formation = randomOneAmong({"riley", "dulce", "augustus"}) end -- three rileys if (_formation == "riley") then local _y = getRandomSpawnY() Riley(127 * 1/4 - 5, _y+8) Riley(127 * 2/4 - 5, _y) Riley(127 * 3/4 - 5, _y+8) -- two dulces elseif (_formation == "dulce") then Dulce(getRandomSpawnX(), getRandomSpawnY()) Dulce(getRandomSpawnX(), getRandomSpawnY()) -- two augustus elseif (_formation == "augustus") then local _y = getRandomSpawnY() Augustus(127 * 1/3 - 8, _y) Augustus(127 * 2/3 - 8, _y) -- two koltar elseif (_formation == "koltar") then Koltar(127 * 1/3 - 16, -24) Koltar(127 * 2/3 - 16, -24) end spawn.last.unit = _formation end spawn.last.difficulty = _difficulty end function spawnAsteroid() local _type, _die, _x, _y, _vx, _vy _die = rnd() _type = (_die<0.5) and "large" or _type _type = (0.5<=_die and _die<=0.75) and "medium" or _type _type = (0.75<_die) and "small" or _type _x = getRandomSpawnX() _y = getRandomSpawnY() _vx = rnd(0.3) _vy = rnd(2) -- set asteroids to always move towards the center from sides, horizontally _vx = (_x < 64) and _vx or -_vx Asteroid(_type, _x, _y, _vx, _vy) end function spawn_from_asteroid(_type, _x, _y) local die = ceil(rnd(3)) local chance_for_medium = (_type=="large") and 0.3 or 0 for i=1,die do local _type = rnd()<chance_for_medium and "medium" or "small" Asteroid(_type, _x, _y, rnd(3)-1.5, rnd(3)-1.5) end end screenshakeTimer = 0 screenshakeMagnitude = 0 function screenshake(_magnitude, _lengthinseconds) if (_lengthinseconds > screenshakeTimer) then screenshakeTimer = _lengthinseconds * 30 end if (_magnitude > screenshakeMagnitude) then screenshakeMagnitude = _magnitude end end function screenshakeUpdate() if (screenshakeTimer>0) then screenshakeTimer -= 1 camera(rnd(screenshakeMagnitude),rnd(screenshakeMagnitude)) else camera() screenshakeMagnitude = 0 end end function spawnExplosion(_size, _x, _y) -- consists of spark and smokes -- sfx(randomOneAmong({20, 21, 22, 23, 24})) sfx(22) if _size == "small" then RectSpark(_x, _y, 6, 8, 8, C.SPARK_COLOR_1) spawnSmokes( C.EXPLOSION_SMALL_AMT + rnd(C.EXPLOSION_SMALL_AMT_RANGE), _x, _y ) elseif _size == "medium" then RectSpark(_x, _y, 10, 10, C.SPARK_COLOR_1) spawnSmokes( C.EXPLOSION_MEDIUM_AMT + rnd(C.EXPLOSION_MEDIUM_AMT_RANGE), _x, _y ) elseif _size == "large" then RectSpark(_x, _y, 15, 12, C.SPARK_COLOR_1) spawnSmokes( C.EXPLOSION_LARGE_AMT + rnd(C.EXPLOSION_LARGE_AMT_RANGE), _x, _y ) end end function spawnSmokes(_maxamt, _x, _y) for i=1, _maxamt do Smoke( _x + rnd(32) - 16, _y + rnd(32) - 16, 0, -rnd(1) ) end end function spawnFragments(_x, _y) _amt = C.FRAGMENT_AMT_MIN + ceil(rnd(C.FRAGMENT_AMT_RANGE)) for i=1, _amt do Fragment(_x, _y, rnd()) end end
-- @Stratiz 2021 :) --- local ReplicatedStorage = game:GetService("ReplicatedStorage") --- local require = require(ReplicatedStorage.SharedModules:WaitForChild("RequireModule")) --- local RunService = game:GetService("RunService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") -- Aggregate modules local Modules = {} local ModulePaths = { RunService:IsClient() and Players.LocalPlayer:WaitForChild("PlayerScripts"):WaitForChild("ClientModules") or game:GetService("ServerScriptService"):WaitForChild("ServerModules"), ReplicatedStorage:WaitForChild("SharedModules"), } local ModuleCount = 0 local function AddModule(Module : Instance) if Module:IsA("ModuleScript") then if not Modules[Module.Name] then Modules[Module.Name] = { Instance = Module, Name = Module.Name, State = "INACTIVE", DuplicateCount = 0, RequiredBy = nil, } ModuleCount += 1 else Modules[Module.Name].DuplicateCount += 1 warn(Modules[Module.Name].DuplicateCount + 1,"modules with the same name '",Module.Name,"' detected. Please resolve this to prevent unexpected behavior.") end end end for _,ModuleFolder in ipairs(ModulePaths) do for _,Module in pairs(ModuleFolder:GetDescendants()) do AddModule(Module) end ModuleFolder.DescendantAdded:Connect(function(Module) AddModule(Module) end) end ---- local TIMEOUT = 2 local NewRequire = function(TargetModuleName) -- Default require functionality if typeof(TargetModuleName) == "Instance" then return require(TargetModuleName) end local CurrentTimeout = 0 local TargetModuleData local function FindModule() for ModuleName,ModuleData in pairs(Modules) do if ModuleData.Instance:IsA("ModuleScript") and ModuleName == TargetModuleName then TargetModuleData = ModuleData end end end local CurrentModuleCount = 0 while not TargetModuleData and CurrentTimeout < TIMEOUT do if CurrentModuleCount ~= ModuleCount then CurrentModuleCount = ModuleCount FindModule() end local Delta = task.wait() CurrentTimeout += Delta end if not TargetModuleData then error("Module "..TargetModuleName.." not found",3) else if TargetModuleData.State == "INACTIVE" then TargetModuleData.State = "LOADING" end local ToReturn task.spawn(function() local TimeStart = tick() while not ToReturn do task.wait() if tick() - TimeStart > 3 then warn("Module",TargetModuleName,"is taking a long time to load.") break end end end) local RequireScript = getfenv(2)["script"] if RequireScript and RequireScript:IsA("ModuleScript") then local InvokerModuleData = Modules[RequireScript.Name] if InvokerModuleData and InvokerModuleData.Instance == RequireScript then if TargetModuleData.State == "LOADING" then -- Check for cyclicals if InvokerModuleData.RequiredByModule then local CyclicalPathString = InvokerModuleData.Name local CurrentRequesterData = InvokerModuleData while InvokerModuleData.RequiredByModule and InvokerModuleData.RequiredByModule.Instance ~= TargetModuleData.Instance do if CurrentRequesterData.RequiredByModule then CurrentRequesterData = CurrentRequesterData.RequiredByModule CyclicalPathString = CurrentRequesterData.Name .." -> " .. CyclicalPathString else break end end if CurrentRequesterData.Instance == TargetModuleData.Instance then warn("Cyclical require detected: (",CyclicalPathString.." -> "..TargetModuleData.Name, ") \n\nPlease resolve this to prevent unexpected behavior.") end end end TargetModuleData.RequiredByModule = Modules[RequireScript.Name] end end ToReturn = require(TargetModuleData.Instance) if TargetModuleData.State == "LOADING" then TargetModuleData.State = "ACTIVE" end return ToReturn end end _G.require = NewRequire return NewRequire
function onUse(player, item, fromPosition, target, toPosition, isHotkey) item:transform(2786) item:decay() Game.createItem(2677, 3, fromPosition) return true end
object_intangible_beast_bm_urnsoris = object_intangible_beast_shared_bm_urnsoris:new { } ObjectTemplates:addTemplate(object_intangible_beast_bm_urnsoris, "object/intangible/beast/bm_urnsoris.iff")
local global = vim.g local lsp = vim.lsp local vars = require('vars') local handlers = {} function handlers.toggle_tree() require('nvim-tree').toggle() end function handlers.handle_tree_open() require('bufferline.state').set_offset(vars.tree_width + 3, vars.tree_offset_label) require('nvim-tree').find_file(true) end function handlers.handle_tree_close() require('bufferline.state').set_offset(0) end function handlers.toggle_diag() if global.diagnostics_active == true then global.diagnostics_active = false lsp.diagnostic.clear(0) lsp.handlers['textDocument/publishDiagnostics'] = function() end else global.diagnostics_active = true lsp.handlers['textDocument/publishDiagnostics'] = lsp.with(lsp.diagnostic.on_publish_diagnostics, { virtual_text = true, signs = true, underline = true, update_in_insert = false }) end end function handlers.before_save() vim.cmd [[ :keepjumps keeppatterns %s/\s\+$//e ]] end return handlers
local fs = require('fs') local modules = require('./modules') local discordia = require('discordia') discordia.extensions() local client = discordia.Client { cacheAllMembers = true, } local clock = discordia.Clock() clock:on('hour', function() if modules.pooper then modules.pooper(client) end end) client:once('ready', function() print('Ready: ' .. client.user.tag) clock:start() end) client:on('messageCreate', function(msg) local author = msg.author if author.bot and author.discriminator ~= '0000' then return end if author == client.user then return end if not msg.guild then return client.owner:sendf('%s said: %s', author.mentionString, msg.content) end if modules.commands then modules.commands(msg) end if modules.acronym then modules.acronym(msg) end if modules.antispam then modules.antispam(msg) end end) client:on('messageDelete', function(message) if modules.undelete then modules.undelete(message) end end) client:run(fs.readFileSync('token.dat'))
local create_cooked_fish_recipe = function(fish, result, amount) local recipe = { type = "recipe", name = "cooked-" .. fish .. "-recipe", category = "smelting", energy_required = 8, enabled = true, ingredients = {{ "raw-" .. fish, 1 }}, result = result, result_count = amount, localised_name = result.localised_name } return recipe end -- simplified code for f,v in pairs(data.raw.fish) do if (f == "pufferfish") then data:extend({ create_cooked_fish_recipe(f, settings.startup["xtreme-fishing-puffer_type"].value, settings.startup["xtreme-fishing-puffer_yield"].value) }) else data:extend({ create_cooked_fish_recipe(f, "cooked-fish", 1) }) end end
AddCSLuaFile() local vox_combine={} vox_combine[ "11-99officerneedsassistance" ]="npc/metropolice/vo/11-99officerneedsassistance.wav" vox_combine[ "404zone" ]="npc/metropolice/vo/404zone.wav" vox_combine[ "acquiringonvisual" ]="npc/metropolice/vo/acquiringonvisual.wav" vox_combine[ "administer" ]="npc/metropolice/vo/administer.wav" vox_combine[ "affirmative" ]="npc/metropolice/vo/affirmative.wav" vox_combine[ "affirmative2" ]="npc/metropolice/vo/affirmative2.wav" vox_combine[ "airwatchsubjectis505" ]="npc/metropolice/vo/airwatchsubjectis505.wav" vox_combine[ "allrightyoucango" ]="npc/metropolice/vo/allrightyoucango.wav" vox_combine[ "allunitsbol34sat" ]="npc/metropolice/vo/allunitsbol34sat.wav" vox_combine[ "allunitscloseonsuspect" ]="npc/metropolice/vo/allunitscloseonsuspect.wav" vox_combine[ "allunitscode2" ]="npc/metropolice/vo/allunitscode2.wav" vox_combine[ "allunitsmaintainthiscp" ]="npc/metropolice/vo/allunitsmaintainthiscp.wav" vox_combine[ "allunitsmovein" ]="npc/metropolice/vo/allunitsmovein.wav" vox_combine[ "allunitsreportlocationsuspect" ]="npc/metropolice/vo/allunitsreportlocationsuspect.wav" vox_combine[ "allunitsrespondcode3" ]="npc/metropolice/vo/allunitsrespondcode3.wav" vox_combine[ "amputate" ]="npc/metropolice/vo/amputate.wav" vox_combine[ "anticitizen" ]="npc/metropolice/vo/anticitizen.wav" vox_combine[ "anyonepickup647e" ]="npc/metropolice/vo/anyonepickup647e.wav" vox_combine[ "apply" ]="npc/metropolice/vo/apply.wav" vox_combine[ "assaultpointsecureadvance" ]="npc/metropolice/vo/assaultpointsecureadvance.wav" vox_combine[ "atcheckpoint" ]="npc/metropolice/vo/atcheckpoint.wav" vox_combine[ "backmeupImout" ]="npc/metropolice/vo/backmeupImout.wav" vox_combine[ "backup" ]="npc/metropolice/vo/backup.wav" vox_combine[ "block" ]="npc/metropolice/vo/block.wav" vox_combine[ "blockisholdingcohesive" ]="npc/metropolice/vo/blockisholdingcohesive.wav" vox_combine[ "breakhiscover" ]="npc/metropolice/vo/breakhiscover.wav" vox_combine[ "bugs" ]="npc/metropolice/vo/bugs.wav" vox_combine[ "bugsontheloose" ]="npc/metropolice/vo/bugsontheloose.wav" vox_combine[ "canal" ]="npc/metropolice/vo/canal.wav" vox_combine[ "canalblock" ]="npc/metropolice/vo/canalblock.wav" vox_combine[ "catchthatbliponstabilization" ]="npc/metropolice/vo/catchthatbliponstabilization.wav" vox_combine[ "cauterize" ]="npc/metropolice/vo/cauterize.wav" vox_combine[ "checkformiscount" ]="npc/metropolice/vo/checkformiscount.wav" vox_combine[ "chuckle" ]="npc/metropolice/vo/chuckle.wav" vox_combine[ "citizen" ]="npc/metropolice/vo/citizen.wav" vox_combine[ "citizensummoned" ]="npc/metropolice/vo/citizensummoned.wav" vox_combine[ "classifyasdbthisblockready" ]="npc/metropolice/vo/classifyasdbthisblockready.wav" vox_combine[ "clearandcode100" ]="npc/metropolice/vo/clearandcode100.wav" vox_combine[ "clearno647no10-107" ]="npc/metropolice/vo/clearno647no10-107.wav" vox_combine[ "code100" ]="npc/metropolice/vo/code100.wav" vox_combine[ "code7" ]="npc/metropolice/vo/code7.wav" vox_combine[ "condemnedzone" ]="npc/metropolice/vo/condemnedzone.wav" vox_combine[ "confirmadw" ]="npc/metropolice/vo/confirmadw.wav" vox_combine[ "confirmpriority1sighted" ]="npc/metropolice/vo/confirmpriority1sighted.wav" vox_combine[ "contactwith243suspect" ]="npc/metropolice/vo/contactwith243suspect.wav" vox_combine[ "contactwithpriority2" ]="npc/metropolice/vo/contactwithpriority2.wav" vox_combine[ "control100percent" ]="npc/metropolice/vo/control100percent.wav" vox_combine[ "controlsection" ]="npc/metropolice/vo/controlsection.wav" vox_combine[ "converging" ]="npc/metropolice/vo/converging.wav" vox_combine[ "copy" ]="npc/metropolice/vo/copy.wav" vox_combine[ "covermegoingin" ]="npc/metropolice/vo/covermegoingin.wav" vox_combine[ "cpbolforthat243" ]="npc/metropolice/vo/cpbolforthat243.wav" vox_combine[ "cpiscompromised" ]="npc/metropolice/vo/cpiscompromised.wav" vox_combine[ "cpisoverrunwehavenocontainment" ]="npc/metropolice/vo/cpisoverrunwehavenocontainment.wav" vox_combine[ "cprequestsallunitsreportin" ]="npc/metropolice/vo/cprequestsallunitsreportin.wav" vox_combine[ "cpweneedtoestablishaperimeterat" ]="npc/metropolice/vo/cpweneedtoestablishaperimeterat.wav" vox_combine[ "criminaltrespass63" ]="npc/metropolice/vo/criminaltrespass63.wav" vox_combine[ "dbcountis" ]="npc/metropolice/vo/dbcountis.wav" vox_combine[ "defender" ]="npc/metropolice/vo/defender.wav" vox_combine[ "deservicedarea" ]="npc/metropolice/vo/deservicedarea.wav" vox_combine[ "designatesuspectas" ]="npc/metropolice/vo/designatesuspectas.wav" vox_combine[ "destroythatcover" ]="npc/metropolice/vo/destroythatcover.wav" vox_combine[ "dismountinghardpoint" ]="npc/metropolice/vo/dismountinghardpoint.wav" vox_combine[ "dispatchIneed10-78" ]="npc/metropolice/vo/dispatchIneed10-78.wav" vox_combine[ "dispreportssuspectincursion" ]="npc/metropolice/vo/dispreportssuspectincursion.wav" vox_combine[ "dispupdatingapb" ]="npc/metropolice/vo/dispupdatingapb.wav" vox_combine[ "distributionblock" ]="npc/metropolice/vo/distributionblock.wav" vox_combine[ "document" ]="npc/metropolice/vo/document.wav" vox_combine[ "dontmove" ]="npc/metropolice/vo/dontmove.wav" vox_combine[ "eight" ]="npc/metropolice/vo/eight.wav" vox_combine[ "eighteen" ]="npc/metropolice/vo/eighteen.wav" vox_combine[ "eighty" ]="npc/metropolice/vo/eighty.wav" vox_combine[ "eleven" ]="npc/metropolice/vo/eleven.wav" vox_combine[ "establishnewcp" ]="npc/metropolice/vo/establishnewcp.wav" vox_combine[ "examine" ]="npc/metropolice/vo/examine.wav" vox_combine[ "expired" ]="npc/metropolice/vo/expired.wav" vox_combine[ "externaljurisdiction" ]="npc/metropolice/vo/externaljurisdiction.wav" vox_combine[ "fifteen" ]="npc/metropolice/vo/fifteen.wav" vox_combine[ "fifty" ]="npc/metropolice/vo/fifty.wav" vox_combine[ "finalverdictadministered" ]="npc/metropolice/vo/finalverdictadministered.wav" vox_combine[ "finalwarning" ]="npc/metropolice/vo/finalwarning.wav" vox_combine[ "firetodislocateinterpose" ]="npc/metropolice/vo/firetodislocateinterpose.wav" vox_combine[ "firingtoexposetarget" ]="npc/metropolice/vo/firingtoexposetarget.wav" vox_combine[ "firstwarningmove" ]="npc/metropolice/vo/firstwarningmove.wav" vox_combine[ "five" ]="npc/metropolice/vo/five.wav" vox_combine[ "four" ]="npc/metropolice/vo/four.wav" vox_combine[ "fourteen" ]="npc/metropolice/vo/fourteen.wav" vox_combine[ "fourty" ]="npc/metropolice/vo/fourty.wav" vox_combine[ "freeman" ]="npc/metropolice/vo/freeman.wav" vox_combine[ "freenecrotics" ]="npc/metropolice/vo/freenecrotics.wav" vox_combine[ "get11-44inboundcleaningup" ]="npc/metropolice/vo/get11-44inboundcleaningup.wav" vox_combine[ "getdown" ]="npc/metropolice/vo/getdown.wav" vox_combine[ "getoutofhere" ]="npc/metropolice/vo/getoutofhere.wav" vox_combine[ "goingtotakealook" ]="npc/metropolice/vo/goingtotakealook.wav" vox_combine[ "gota10-107sendairwatch" ]="npc/metropolice/vo/gota10-107sendairwatch.wav" vox_combine[ "gothimagainsuspect10-20at" ]="npc/metropolice/vo/gothimagainsuspect10-20at.wav" vox_combine[ "gotoneaccomplicehere" ]="npc/metropolice/vo/gotoneaccomplicehere.wav" vox_combine[ "gotsuspect1here" ]="npc/metropolice/vo/gotsuspect1here.wav" vox_combine[ "grenade" ]="npc/metropolice/vo/grenade.wav" vox_combine[ "hardpointscanning" ]="npc/metropolice/vo/hardpointscanning.wav" vox_combine[ "help" ]="npc/metropolice/vo/help.wav" vox_combine[ "hero" ]="npc/metropolice/vo/hero.wav" vox_combine[ "hesgone148" ]="npc/metropolice/vo/hesgone148.wav" vox_combine[ "hesrunning" ]="npc/metropolice/vo/hesrunning.wav" vox_combine[ "hesupthere" ]="npc/metropolice/vo/hesupthere.wav" vox_combine[ "hidinglastseenatrange" ]="npc/metropolice/vo/hidinglastseenatrange.wav" vox_combine[ "highpriorityregion" ]="npc/metropolice/vo/highpriorityregion.wav" vox_combine[ "holdingon10-14duty" ]="npc/metropolice/vo/holdingon10-14duty.wav" vox_combine[ "holdit" ]="npc/metropolice/vo/holdit.wav" vox_combine[ "holditrightthere" ]="npc/metropolice/vo/holditrightthere.wav" vox_combine[ "holdthisposition" ]="npc/metropolice/vo/holdthisposition.wav" vox_combine[ "Ihave10-30my10-20responding" ]="npc/metropolice/vo/Ihave10-30my10-20responding.wav" vox_combine[ "industrialzone" ]="npc/metropolice/vo/industrialzone.wav" vox_combine[ "infection" ]="npc/metropolice/vo/infection.wav" vox_combine[ "infestedzone" ]="npc/metropolice/vo/infestedzone.wav" vox_combine[ "inject" ]="npc/metropolice/vo/inject.wav" vox_combine[ "innoculate" ]="npc/metropolice/vo/innoculate.wav" vox_combine[ "inposition" ]="npc/metropolice/vo/inposition.wav" vox_combine[ "inpositionathardpoint" ]="npc/metropolice/vo/inpositionathardpoint.wav" vox_combine[ "inpositiononeready" ]="npc/metropolice/vo/inpositiononeready.wav" vox_combine[ "intercede" ]="npc/metropolice/vo/intercede.wav" vox_combine[ "interlock" ]="npc/metropolice/vo/interlock.wav" vox_combine[ "investigate" ]="npc/metropolice/vo/investigate.wav" vox_combine[ "investigating10-103" ]="npc/metropolice/vo/investigating10-103.wav" vox_combine[ "is10-108" ]="npc/metropolice/vo/is10-108.wav" vox_combine[ "is415b" ]="npc/metropolice/vo/is415b.wav" vox_combine[ "Isaidmovealong" ]="npc/metropolice/vo/Isaidmovealong.wav" vox_combine[ "isathardpointreadytoprosecute" ]="npc/metropolice/vo/isathardpointreadytoprosecute.wav" vox_combine[ "isclosingonsuspect" ]="npc/metropolice/vo/isclosingonsuspect.wav" vox_combine[ "isdown" ]="npc/metropolice/vo/isdown.wav" vox_combine[ "isgo" ]="npc/metropolice/vo/isgo.wav" vox_combine[ "ismovingin" ]="npc/metropolice/vo/ismovingin.wav" vox_combine[ "isolate" ]="npc/metropolice/vo/isolate.wav" vox_combine[ "ispassive" ]="npc/metropolice/vo/ispassive.wav" vox_combine[ "isreadytogo" ]="npc/metropolice/vo/isreadytogo.wav" vox_combine[ "issuingmalcompliantcitation" ]="npc/metropolice/vo/issuingmalcompliantcitation.wav" vox_combine[ "Ivegot408hereatlocation" ]="npc/metropolice/vo/Ivegot408hereatlocation.wav" vox_combine[ "jury" ]="npc/metropolice/vo/jury.wav" vox_combine[ "keepmoving" ]="npc/metropolice/vo/keepmoving.wav" vox_combine[ "king" ]="npc/metropolice/vo/king.wav" vox_combine[ "level3civilprivacyviolator" ]="npc/metropolice/vo/level3civilprivacyviolator.wav" vox_combine[ "line" ]="npc/metropolice/vo/line.wav" vox_combine[ "localcptreportstatus" ]="npc/metropolice/vo/localcptreportstatus.wav" vox_combine[ "location" ]="npc/metropolice/vo/location.wav" vox_combine[ "lock" ]="npc/metropolice/vo/lock.wav" vox_combine[ "lockyourposition" ]="npc/metropolice/vo/lockyourposition.wav" vox_combine[ "lookingfortrouble" ]="npc/metropolice/vo/lookingfortrouble.wav" vox_combine[ "lookout" ]="npc/metropolice/vo/lookout.wav" vox_combine[ "lookoutrogueviscerator" ]="npc/metropolice/vo/lookoutrogueviscerator.wav" vox_combine[ "looseparasitics" ]="npc/metropolice/vo/looseparasitics.wav" vox_combine[ "loyaltycheckfailure" ]="npc/metropolice/vo/loyaltycheckfailure.wav" vox_combine[ "malcompliant10107my1020" ]="npc/metropolice/vo/malcompliant10107my1020.wav" vox_combine[ "malignant" ]="npc/metropolice/vo/malignant.wav" vox_combine[ "matchonapblikeness" ]="npc/metropolice/vo/matchonapblikeness.wav" vox_combine[ "meters" ]="npc/metropolice/vo/meters.wav" vox_combine[ "minorhitscontinuing" ]="npc/metropolice/vo/minorhitscontinuing.wav" vox_combine[ "move" ]="npc/metropolice/vo/move.wav" vox_combine[ "movealong" ]="npc/metropolice/vo/movealong.wav" vox_combine[ "movealong3" ]="npc/metropolice/vo/movealong3.wav" vox_combine[ "movebackrightnow" ]="npc/metropolice/vo/movebackrightnow.wav" vox_combine[ "moveit" ]="npc/metropolice/vo/moveit.wav" vox_combine[ "moveit2" ]="npc/metropolice/vo/moveit2.wav" vox_combine[ "movetoarrestpositions" ]="npc/metropolice/vo/movetoarrestpositions.wav" vox_combine[ "movingtocover" ]="npc/metropolice/vo/movingtocover.wav" vox_combine[ "movingtohardpoint" ]="npc/metropolice/vo/movingtohardpoint.wav" vox_combine[ "movingtohardpoint2" ]="npc/metropolice/vo/movingtohardpoint2.wav" vox_combine[ "necrotics" ]="npc/metropolice/vo/necrotics.wav" vox_combine[ "needanyhelpwiththisone" ]="npc/metropolice/vo/needanyhelpwiththisone.wav" vox_combine[ "nine" ]="npc/metropolice/vo/nine.wav" vox_combine[ "nineteen" ]="npc/metropolice/vo/nineteen.wav" vox_combine[ "ninety" ]="npc/metropolice/vo/ninety.wav" vox_combine[ "nocontact" ]="npc/metropolice/vo/nocontact.wav" vox_combine[ "non-taggedviromeshere" ]="npc/metropolice/vo/non-taggedviromeshere.wav" vox_combine[ "noncitizen" ]="npc/metropolice/vo/noncitizen.wav" vox_combine[ "nonpatrolregion" ]="npc/metropolice/vo/nonpatrolregion.wav" vox_combine[ "novisualonupi" ]="npc/metropolice/vo/novisualonupi.wav" vox_combine[ "nowgetoutofhere" ]="npc/metropolice/vo/nowgetoutofhere.wav" vox_combine[ "off1" ]="npc/metropolice/vo/off1.wav" vox_combine[ "off2" ]="npc/metropolice/vo/off2.wav" vox_combine[ "off3" ]="npc/metropolice/vo/off3.wav" vox_combine[ "off4" ]="npc/metropolice/vo/off4.wav" vox_combine[ "officerdowncode3tomy10-20" ]="npc/metropolice/vo/officerdowncode3tomy10-20.wav" vox_combine[ "officerdownIam10-99" ]="npc/metropolice/vo/officerdownIam10-99.wav" vox_combine[ "officerneedsassistance" ]="npc/metropolice/vo/officerneedsassistance.wav" vox_combine[ "officerneedshelp" ]="npc/metropolice/vo/officerneedshelp.wav" vox_combine[ "officerunderfiretakingcover" ]="npc/metropolice/vo/officerunderfiretakingcover.wav" vox_combine[ "on1" ]="npc/metropolice/vo/on1.wav" vox_combine[ "on2" ]="npc/metropolice/vo/on2.wav" vox_combine[ "one" ]="npc/metropolice/vo/one.wav" vox_combine[ "onehundred" ]="npc/metropolice/vo/onehundred.wav" vox_combine[ "outbreak" ]="npc/metropolice/vo/outbreak.wav" vox_combine[ "outlandbioticinhere" ]="npc/metropolice/vo/outlandbioticinhere.wav" vox_combine[ "outlandzone" ]="npc/metropolice/vo/outlandzone.wav" vox_combine[ "pacifying" ]="npc/metropolice/vo/pacifying.wav" vox_combine[ "patrol" ]="npc/metropolice/vo/patrol.wav" vox_combine[ "pickingupnoncorplexindy" ]="npc/metropolice/vo/pickingupnoncorplexindy.wav" vox_combine[ "pickupthecan1" ]="npc/metropolice/vo/pickupthecan1.wav" vox_combine[ "pickupthecan2" ]="npc/metropolice/vo/pickupthecan2.wav" vox_combine[ "pickupthecan3" ]="npc/metropolice/vo/pickupthecan3.wav" vox_combine[ "positiontocontain" ]="npc/metropolice/vo/positiontocontain.wav" vox_combine[ "possible10-103alerttagunits" ]="npc/metropolice/vo/possible10-103alerttagunits.wav" vox_combine[ "possible404here" ]="npc/metropolice/vo/possible404here.wav" vox_combine[ "possible647erequestairwatch" ]="npc/metropolice/vo/possible647erequestairwatch.wav" vox_combine[ "possiblelevel3civilprivacyviolator" ]="npc/metropolice/vo/possiblelevel3civilprivacyviolator.wav" vox_combine[ "preparefor1015" ]="npc/metropolice/vo/preparefor1015.wav" vox_combine[ "prepareforjudgement" ]="npc/metropolice/vo/prepareforjudgement.wav" vox_combine[ "preparingtojudge10-107" ]="npc/metropolice/vo/preparingtojudge10-107.wav" vox_combine[ "preserve" ]="npc/metropolice/vo/preserve.wav" vox_combine[ "pressure" ]="npc/metropolice/vo/pressure.wav" vox_combine[ "priority2anticitizenhere" ]="npc/metropolice/vo/priority2anticitizenhere.wav" vox_combine[ "proceedtocheckpoints" ]="npc/metropolice/vo/proceedtocheckpoints.wav" vox_combine[ "productionblock" ]="npc/metropolice/vo/productionblock.wav" vox_combine[ "prosecute" ]="npc/metropolice/vo/prosecute.wav" vox_combine[ "protectioncomplete" ]="npc/metropolice/vo/protectioncomplete.wav" vox_combine[ "ptatlocationreport" ]="npc/metropolice/vo/ptatlocationreport.wav" vox_combine[ "ptgoagain" ]="npc/metropolice/vo/ptgoagain.wav" vox_combine[ "putitinthetrash1" ]="npc/metropolice/vo/putitinthetrash1.wav" vox_combine[ "putitinthetrash2" ]="npc/metropolice/vo/putitinthetrash2.wav" vox_combine[ "quick" ]="npc/metropolice/vo/quick.wav" vox_combine[ "readytoamputate" ]="npc/metropolice/vo/readytoamputate.wav" vox_combine[ "readytojudge" ]="npc/metropolice/vo/readytojudge.wav" vox_combine[ "readytoprosecute" ]="npc/metropolice/vo/readytoprosecute.wav" vox_combine[ "readytoprosecutefinalwarning" ]="npc/metropolice/vo/readytoprosecutefinalwarning.wav" vox_combine[ "reinforcementteamscode3" ]="npc/metropolice/vo/reinforcementteamscode3.wav" vox_combine[ "reportsightingsaccomplices" ]="npc/metropolice/vo/reportsightingsaccomplices.wav" vox_combine[ "repurposedarea" ]="npc/metropolice/vo/repurposedarea.wav" vox_combine[ "requestsecondaryviscerator" ]="npc/metropolice/vo/requestsecondaryviscerator.wav" vox_combine[ "residentialblock" ]="npc/metropolice/vo/residentialblock.wav" vox_combine[ "responding2" ]="npc/metropolice/vo/responding2.wav" vox_combine[ "restrict" ]="npc/metropolice/vo/restrict.wav" vox_combine[ "restrictedblock" ]="npc/metropolice/vo/restrictedblock.wav" vox_combine[ "rodgerthat" ]="npc/metropolice/vo/rodgerthat.wav" vox_combine[ "roller" ]="npc/metropolice/vo/roller.wav" vox_combine[ "runninglowonverdicts" ]="npc/metropolice/vo/runninglowonverdicts.wav" vox_combine[ "sacrificecode1maintaincp" ]="npc/metropolice/vo/sacrificecode1maintaincp.wav" vox_combine[ "search" ]="npc/metropolice/vo/search.wav" vox_combine[ "searchingforsuspect" ]="npc/metropolice/vo/searchingforsuspect.wav" vox_combine[ "secondwarning" ]="npc/metropolice/vo/secondwarning.wav" vox_combine[ "sector" ]="npc/metropolice/vo/sector.wav" vox_combine[ "sentencedelivered" ]="npc/metropolice/vo/sentencedelivered.wav" vox_combine[ "serve" ]="npc/metropolice/vo/serve.wav" vox_combine[ "seven" ]="npc/metropolice/vo/seven.wav" vox_combine[ "seventeen" ]="npc/metropolice/vo/seventeen.wav" vox_combine[ "seventy" ]="npc/metropolice/vo/seventy.wav" vox_combine[ "shit" ]="npc/metropolice/vo/shit.wav" vox_combine[ "shotsfiredhostilemalignants" ]="npc/metropolice/vo/shotsfiredhostilemalignants.wav" vox_combine[ "six" ]="npc/metropolice/vo/six.wav" vox_combine[ "sixteen" ]="npc/metropolice/vo/sixteen.wav" vox_combine[ "sixty" ]="npc/metropolice/vo/sixty.wav" vox_combine[ "sociocide" ]="npc/metropolice/vo/sociocide.wav" vox_combine[ "stabilizationjurisdiction" ]="npc/metropolice/vo/stabilizationjurisdiction.wav" vox_combine[ "standardloyaltycheck" ]="npc/metropolice/vo/standardloyaltycheck.wav" vox_combine[ "stationblock" ]="npc/metropolice/vo/stationblock.wav" vox_combine[ "sterilize" ]="npc/metropolice/vo/sterilize.wav" vox_combine[ "stick" ]="npc/metropolice/vo/stick.wav" vox_combine[ "stillgetting647e" ]="npc/metropolice/vo/stillgetting647e.wav" vox_combine[ "stormsystem" ]="npc/metropolice/vo/stormsystem.wav" vox_combine[ "subject" ]="npc/metropolice/vo/subject.wav" vox_combine[ "subjectis505" ]="npc/metropolice/vo/subjectis505.wav" vox_combine[ "subjectisnowhighspeed" ]="npc/metropolice/vo/subjectisnowhighspeed.wav" vox_combine[ "supsecthasmovednowto" ]="npc/metropolice/vo/supsecthasmovednowto.wav" vox_combine[ "suspect11-6my1020is" ]="npc/metropolice/vo/suspect11-6my1020is.wav" vox_combine[ "suspectinstormrunoff" ]="npc/metropolice/vo/suspectinstormrunoff.wav" vox_combine[ "suspectisbleeding" ]="npc/metropolice/vo/suspectisbleeding.wav" vox_combine[ "suspectlocationunknown" ]="npc/metropolice/vo/suspectlocationunknown.wav" vox_combine[ "suspectusingrestrictedcanals" ]="npc/metropolice/vo/suspectusingrestrictedcanals.wav" vox_combine[ "suspend" ]="npc/metropolice/vo/suspend.wav" vox_combine[ "sweepingforsuspect" ]="npc/metropolice/vo/sweepingforsuspect.wav" vox_combine[ "tag10-91d" ]="npc/metropolice/vo/tag10-91d.wav" vox_combine[ "tagonebug" ]="npc/metropolice/vo/tagonebug.wav" vox_combine[ "tagonenecrotic" ]="npc/metropolice/vo/tagonenecrotic.wav" vox_combine[ "tagoneparasitic" ]="npc/metropolice/vo/tagoneparasitic.wav" vox_combine[ "takecover" ]="npc/metropolice/vo/takecover.wav" vox_combine[ "tap" ]="npc/metropolice/vo/tap.wav" vox_combine[ "teaminpositionadvance" ]="npc/metropolice/vo/teaminpositionadvance.wav" vox_combine[ "ten" ]="npc/metropolice/vo/ten.wav" vox_combine[ "ten2" ]="npc/metropolice/vo/ten2.wav" vox_combine[ "ten4" ]="npc/metropolice/vo/ten4.wav" vox_combine[ "ten8standingby" ]="npc/metropolice/vo/ten8standingby.wav" vox_combine[ "ten91dcountis" ]="npc/metropolice/vo/ten91dcountis.wav" vox_combine[ "ten97" ]="npc/metropolice/vo/ten97.wav" vox_combine[ "ten97suspectisgoa" ]="npc/metropolice/vo/ten97suspectisgoa.wav" vox_combine[ "tenzerovisceratorishunting" ]="npc/metropolice/vo/tenzerovisceratorishunting.wav" vox_combine[ "terminalrestrictionzone" ]="npc/metropolice/vo/terminalrestrictionzone.wav" vox_combine[ "thatsagrenade" ]="npc/metropolice/vo/thatsagrenade.wav" vox_combine[ "therehegoeshesat" ]="npc/metropolice/vo/therehegoeshesat.wav" vox_combine[ "thereheis" ]="npc/metropolice/vo/thereheis.wav" vox_combine[ "thirteen" ]="npc/metropolice/vo/thirteen.wav" vox_combine[ "thirty" ]="npc/metropolice/vo/thirty.wav" vox_combine[ "thisisyoursecondwarning" ]="npc/metropolice/vo/thisisyoursecondwarning.wav" vox_combine[ "three" ]="npc/metropolice/vo/three.wav" vox_combine[ "threehundred" ]="npc/metropolice/vo/threehundred.wav" vox_combine[ "transitblock" ]="npc/metropolice/vo/transitblock.wav" vox_combine[ "twelve" ]="npc/metropolice/vo/twelve.wav" vox_combine[ "twenty" ]="npc/metropolice/vo/twenty.wav" vox_combine[ "two" ]="npc/metropolice/vo/two.wav" vox_combine[ "twohundred" ]="npc/metropolice/vo/twohundred.wav" vox_combine[ "union" ]="npc/metropolice/vo/union.wav" vox_combine[ "unitis10-65" ]="npc/metropolice/vo/unitis10-65.wav" vox_combine[ "unitis10-8standingby" ]="npc/metropolice/vo/unitis10-8standingby.wav" vox_combine[ "unitisonduty10-8" ]="npc/metropolice/vo/unitisonduty10-8.wav" vox_combine[ "unitreportinwith10-25suspect" ]="npc/metropolice/vo/unitreportinwith10-25suspect.wav" vox_combine[ "unlawfulentry603" ]="npc/metropolice/vo/unlawfulentry603.wav" vox_combine[ "upi" ]="npc/metropolice/vo/upi.wav" vox_combine[ "utlsuspect" ]="npc/metropolice/vo/utlsuspect.wav" vox_combine[ "utlthatsuspect" ]="npc/metropolice/vo/utlthatsuspect.wav" vox_combine[ "vacatecitizen" ]="npc/metropolice/vo/vacatecitizen.wav" vox_combine[ "vice" ]="npc/metropolice/vo/vice.wav" vox_combine[ "victor" ]="npc/metropolice/vo/victor.wav" vox_combine[ "visceratordeployed" ]="npc/metropolice/vo/visceratordeployed.wav" vox_combine[ "visceratorisoc" ]="npc/metropolice/vo/visceratorisoc.wav" vox_combine[ "visceratorisoffgrid" ]="npc/metropolice/vo/visceratorisoffgrid.wav" vox_combine[ "wasteriver" ]="npc/metropolice/vo/wasteriver.wav" vox_combine[ "watchit" ]="npc/metropolice/vo/watchit.wav" vox_combine[ "wearesociostablethislocation" ]="npc/metropolice/vo/wearesociostablethislocation.wav" vox_combine[ "wegotadbherecancel10-102" ]="npc/metropolice/vo/wegotadbherecancel10-102.wav" vox_combine[ "wehavea10-108" ]="npc/metropolice/vo/wehavea10-108.wav" vox_combine[ "workforceintake" ]="npc/metropolice/vo/workforceintake.wav" vox_combine[ "xray" ]="npc/metropolice/vo/xray.wav" vox_combine[ "yellow" ]="npc/metropolice/vo/yellow.wav" vox_combine[ "youknockeditover" ]="npc/metropolice/vo/youknockeditover.wav" vox_combine[ "youwantamalcomplianceverdict" ]="npc/metropolice/vo/youwantamalcomplianceverdict.wav" vox_combine[ "zero" ]="npc/metropolice/vo/zero.wav" vox_combine[ "zone" ]="npc/metropolice/vo/zone.wav" vox_combine[ "administer" ]="npc/combine_soldier/vo/administer.wav" vox_combine[ "affirmative" ]="npc/combine_soldier/vo/affirmative.wav" vox_combine[ "affirmative2" ]="npc/combine_soldier/vo/affirmative2.wav" vox_combine[ "affirmativewegothimnow" ]="npc/combine_soldier/vo/affirmativewegothimnow.wav" vox_combine[ "alert1" ]="npc/combine_soldier/vo/alert1.wav" vox_combine[ "anticitizenone" ]="npc/combine_soldier/vo/anticitizenone.wav" vox_combine[ "antiseptic" ]="npc/combine_soldier/vo/antiseptic.wav" vox_combine[ "apex" ]="npc/combine_soldier/vo/apex.wav" vox_combine[ "bearing" ]="npc/combine_soldier/vo/bearing.wav" vox_combine[ "blade" ]="npc/combine_soldier/vo/blade.wav" vox_combine[ "block31mace" ]="npc/combine_soldier/vo/block31mace.wav" vox_combine[ "block64jet" ]="npc/combine_soldier/vo/block64jet.wav" vox_combine[ "bodypackholding" ]="npc/combine_soldier/vo/bodypackholding.wav" vox_combine[ "boomer" ]="npc/combine_soldier/vo/boomer.wav" vox_combine[ "bouncerbouncer" ]="npc/combine_soldier/vo/bouncerbouncer.wav" vox_combine[ "callcontactparasitics" ]="npc/combine_soldier/vo/callcontactparasitics.wav" vox_combine[ "callcontacttarget1" ]="npc/combine_soldier/vo/callcontacttarget1.wav" vox_combine[ "callhotpoint" ]="npc/combine_soldier/vo/callhotpoint.wav" vox_combine[ "cleaned" ]="npc/combine_soldier/vo/cleaned.wav" vox_combine[ "closing" ]="npc/combine_soldier/vo/closing.wav" vox_combine[ "closing2" ]="npc/combine_soldier/vo/closing2.wav" vox_combine[ "confirmsectornotsterile" ]="npc/combine_soldier/vo/confirmsectornotsterile.wav" vox_combine[ "contact" ]="npc/combine_soldier/vo/contact.wav" vox_combine[ "contactconfim" ]="npc/combine_soldier/vo/contactconfim.wav" vox_combine[ "contactconfirmprosecuting" ]="npc/combine_soldier/vo/contactconfirmprosecuting.wav" vox_combine[ "contained" ]="npc/combine_soldier/vo/contained.wav" vox_combine[ "containmentproceeding" ]="npc/combine_soldier/vo/containmentproceeding.wav" vox_combine[ "copy" ]="npc/combine_soldier/vo/copy.wav" vox_combine[ "copythat" ]="npc/combine_soldier/vo/copythat.wav" vox_combine[ "cover" ]="npc/combine_soldier/vo/cover.wav" vox_combine[ "coverhurt" ]="npc/combine_soldier/vo/coverhurt.wav" vox_combine[ "coverme" ]="npc/combine_soldier/vo/coverme.wav" vox_combine[ "dagger" ]="npc/combine_soldier/vo/dagger.wav" vox_combine[ "dash" ]="npc/combine_soldier/vo/dash.wav" vox_combine[ "degrees" ]="npc/combine_soldier/vo/degrees.wav" vox_combine[ "delivered" ]="npc/combine_soldier/vo/delivered.wav" vox_combine[ "designatetargetas" ]="npc/combine_soldier/vo/designatetargetas.wav" vox_combine[ "displace" ]="npc/combine_soldier/vo/displace.wav" vox_combine[ "displace2" ]="npc/combine_soldier/vo/displace2.wav" vox_combine[ "echo" ]="npc/combine_soldier/vo/echo.wav" vox_combine[ "eight" ]="npc/combine_soldier/vo/eight.wav" vox_combine[ "eighteen" ]="npc/combine_soldier/vo/eighteen.wav" vox_combine[ "eighty" ]="npc/combine_soldier/vo/eighty.wav" vox_combine[ "eleven" ]="npc/combine_soldier/vo/eleven.wav" vox_combine[ "engagedincleanup" ]="npc/combine_soldier/vo/engagedincleanup.wav" vox_combine[ "engaging" ]="npc/combine_soldier/vo/engaging.wav" vox_combine[ "executingfullresponse" ]="npc/combine_soldier/vo/executingfullresponse.wav" vox_combine[ "extractoraway" ]="npc/combine_soldier/vo/extractoraway.wav" vox_combine[ "extractorislive" ]="npc/combine_soldier/vo/extractorislive.wav" vox_combine[ "fifteen" ]="npc/combine_soldier/vo/fifteen.wav" vox_combine[ "fifty" ]="npc/combine_soldier/vo/fifty.wav" vox_combine[ "fist" ]="npc/combine_soldier/vo/fist.wav" vox_combine[ "five" ]="npc/combine_soldier/vo/five.wav" vox_combine[ "fixsightlinesmovein" ]="npc/combine_soldier/vo/fixsightlinesmovein.wav" vox_combine[ "flaredown" ]="npc/combine_soldier/vo/flaredown.wav" vox_combine[ "flash" ]="npc/combine_soldier/vo/flash.wav" vox_combine[ "flatline" ]="npc/combine_soldier/vo/flatline.wav" vox_combine[ "flush" ]="npc/combine_soldier/vo/flush.wav" vox_combine[ "four" ]="npc/combine_soldier/vo/four.wav" vox_combine[ "fourteen" ]="npc/combine_soldier/vo/fourteen.wav" vox_combine[ "fourty" ]="npc/combine_soldier/vo/fourty.wav" vox_combine[ "freeman3" ]="npc/combine_soldier/vo/freeman3.wav" vox_combine[ "fullactive" ]="npc/combine_soldier/vo/fullactive.wav" vox_combine[ "ghost" ]="npc/combine_soldier/vo/ghost.wav" vox_combine[ "ghost2" ]="npc/combine_soldier/vo/ghost2.wav" vox_combine[ "goactiveintercept" ]="npc/combine_soldier/vo/goactiveintercept.wav" vox_combine[ "gosharp" ]="npc/combine_soldier/vo/gosharp.wav" vox_combine[ "gosharpgosharp" ]="npc/combine_soldier/vo/gosharpgosharp.wav" vox_combine[ "grid" ]="npc/combine_soldier/vo/grid.wav" vox_combine[ "gridsundown46" ]="npc/combine_soldier/vo/gridsundown46.wav" vox_combine[ "hammer" ]="npc/combine_soldier/vo/hammer.wav" vox_combine[ "hardenthatposition" ]="npc/combine_soldier/vo/hardenthatposition.wav" vox_combine[ "hasnegativemovement" ]="npc/combine_soldier/vo/hasnegativemovement.wav" vox_combine[ "heavyresistance" ]="npc/combine_soldier/vo/heavyresistance.wav" vox_combine[ "helix" ]="npc/combine_soldier/vo/helix.wav" vox_combine[ "hunter" ]="npc/combine_soldier/vo/hunter.wav" vox_combine[ "hurricane" ]="npc/combine_soldier/vo/hurricane.wav" vox_combine[ "ice" ]="npc/combine_soldier/vo/ice.wav" vox_combine[ "inbound" ]="npc/combine_soldier/vo/inbound.wav" vox_combine[ "infected" ]="npc/combine_soldier/vo/infected.wav" vox_combine[ "ion" ]="npc/combine_soldier/vo/ion.wav" vox_combine[ "isatcode" ]="npc/combine_soldier/vo/isatcode.wav" vox_combine[ "isfieldpromoted" ]="npc/combine_soldier/vo/isfieldpromoted.wav" vox_combine[ "isfinalteamunitbackup" ]="npc/combine_soldier/vo/isfinalteamunitbackup.wav" vox_combine[ "isholdingatcode" ]="npc/combine_soldier/vo/isholdingatcode.wav" vox_combine[ "jet" ]="npc/combine_soldier/vo/jet.wav" vox_combine[ "judge" ]="npc/combine_soldier/vo/judge.wav" vox_combine[ "kilo" ]="npc/combine_soldier/vo/kilo.wav" vox_combine[ "leader" ]="npc/combine_soldier/vo/leader.wav" vox_combine[ "lostcontact" ]="npc/combine_soldier/vo/lostcontact.wav" vox_combine[ "mace" ]="npc/combine_soldier/vo/mace.wav" vox_combine[ "meters" ]="npc/combine_soldier/vo/meters.wav" vox_combine[ "motioncheckallradials" ]="npc/combine_soldier/vo/motioncheckallradials.wav" vox_combine[ "movein" ]="npc/combine_soldier/vo/movein.wav" vox_combine[ "necrotics" ]="npc/combine_soldier/vo/necrotics.wav" vox_combine[ "necroticsinbound" ]="npc/combine_soldier/vo/necroticsinbound.wav" vox_combine[ "niner" ]="npc/combine_soldier/vo/niner.wav" vox_combine[ "nineteen" ]="npc/combine_soldier/vo/nineteen.wav" vox_combine[ "ninety" ]="npc/combine_soldier/vo/ninety.wav" vox_combine[ "nomad" ]="npc/combine_soldier/vo/nomad.wav" vox_combine[ "nova" ]="npc/combine_soldier/vo/nova.wav" vox_combine[ "noviscon" ]="npc/combine_soldier/vo/noviscon.wav" vox_combine[ "off1" ]="npc/combine_soldier/vo/off1.wav" vox_combine[ "off2" ]="npc/combine_soldier/vo/off2.wav" vox_combine[ "off3" ]="npc/combine_soldier/vo/off3.wav" vox_combine[ "on1" ]="npc/combine_soldier/vo/on1.wav" vox_combine[ "on2" ]="npc/combine_soldier/vo/on2.wav" vox_combine[ "one" ]="npc/combine_soldier/vo/one.wav" vox_combine[ "onecontained" ]="npc/combine_soldier/vo/onecontained.wav" vox_combine[ "onedown" ]="npc/combine_soldier/vo/onedown.wav" vox_combine[ "onedutyvacated" ]="npc/combine_soldier/vo/onedutyvacated.wav" vox_combine[ "onehundred" ]="npc/combine_soldier/vo/onehundred.wav" vox_combine[ "outbreak" ]="npc/combine_soldier/vo/outbreak.wav" vox_combine[ "outbreakstatusiscode" ]="npc/combine_soldier/vo/outbreakstatusiscode.wav" vox_combine[ "overwatch" ]="npc/combine_soldier/vo/overwatch.wav" vox_combine[ "overwatchconfirmhvtcontained" ]="npc/combine_soldier/vo/overwatchconfirmhvtcontained.wav" vox_combine[ "overwatchreportspossiblehostiles" ]="npc/combine_soldier/vo/overwatchreportspossiblehostiles.wav" vox_combine[ "overwatchrequestreinforcement" ]="npc/combine_soldier/vo/overwatchrequestreinforcement.wav" vox_combine[ "overwatchrequestreserveactivation" ]="npc/combine_soldier/vo/overwatchrequestreserveactivation.wav" vox_combine[ "overwatchrequestskyshield" ]="npc/combine_soldier/vo/overwatchrequestskyshield.wav" vox_combine[ "overwatchrequestwinder" ]="npc/combine_soldier/vo/overwatchrequestwinder.wav" vox_combine[ "overwatchsectoroverrun" ]="npc/combine_soldier/vo/overwatchsectoroverrun.wav" vox_combine[ "overwatchtarget1sterilized" ]="npc/combine_soldier/vo/overwatchtarget1sterilized.wav" vox_combine[ "overwatchtargetcontained" ]="npc/combine_soldier/vo/overwatchtargetcontained.wav" vox_combine[ "overwatchteamisdown" ]="npc/combine_soldier/vo/overwatchteamisdown.wav" vox_combine[ "ovewatchorders3ccstimboost" ]="npc/combine_soldier/vo/ovewatchorders3ccstimboost.wav" vox_combine[ "payback" ]="npc/combine_soldier/vo/payback.wav" vox_combine[ "phantom" ]="npc/combine_soldier/vo/phantom.wav" vox_combine[ "prepforcontact" ]="npc/combine_soldier/vo/prepforcontact.wav" vox_combine[ "priority1objective" ]="npc/combine_soldier/vo/priority1objective.wav" vox_combine[ "prioritytwoescapee" ]="npc/combine_soldier/vo/prioritytwoescapee.wav" vox_combine[ "prison_soldier_activatecentral" ]="npc/combine_soldier/vo/prison_soldier_activatecentral.wav" vox_combine[ "prison_soldier_boomersinbound" ]="npc/combine_soldier/vo/prison_soldier_boomersinbound.wav" vox_combine[ "prison_soldier_bunker1" ]="npc/combine_soldier/vo/prison_soldier_bunker1.wav" vox_combine[ "prison_soldier_bunker2" ]="npc/combine_soldier/vo/prison_soldier_bunker2.wav" vox_combine[ "prison_soldier_bunker3" ]="npc/combine_soldier/vo/prison_soldier_bunker3.wav" vox_combine[ "prison_soldier_containD8" ]="npc/combine_soldier/vo/prison_soldier_containD8.wav" vox_combine[ "prison_soldier_fallback_b4" ]="npc/combine_soldier/vo/prison_soldier_fallback_b4.wav" vox_combine[ "prison_soldier_freeman_antlions" ]="npc/combine_soldier/vo/prison_soldier_freeman_antlions.wav" vox_combine[ "prison_soldier_fullbioticoverrun" ]="npc/combine_soldier/vo/prison_soldier_fullbioticoverrun.wav" vox_combine[ "prison_soldier_leader9dead" ]="npc/combine_soldier/vo/prison_soldier_leader9dead.wav" vox_combine[ "prison_soldier_negativecontainment" ]="npc/combine_soldier/vo/prison_soldier_negativecontainment.wav" vox_combine[ "prison_soldier_prosecuteD7" ]="npc/combine_soldier/vo/prison_soldier_prosecuteD7.wav" vox_combine[ "prison_soldier_sundown3dead" ]="npc/combine_soldier/vo/prison_soldier_sundown3dead.wav" vox_combine[ "prison_soldier_tohighpoints" ]="npc/combine_soldier/vo/prison_soldier_tohighpoints.wav" vox_combine[ "prison_soldier_visceratorsA5" ]="npc/combine_soldier/vo/prison_soldier_visceratorsA5.wav" vox_combine[ "prosecuting" ]="npc/combine_soldier/vo/prosecuting.wav" vox_combine[ "quicksand" ]="npc/combine_soldier/vo/quicksand.wav" vox_combine[ "range" ]="npc/combine_soldier/vo/range.wav" vox_combine[ "ranger" ]="npc/combine_soldier/vo/ranger.wav" vox_combine[ "razor" ]="npc/combine_soldier/vo/razor.wav" vox_combine[ "readycharges" ]="npc/combine_soldier/vo/readycharges.wav" vox_combine[ "readyextractors" ]="npc/combine_soldier/vo/readyextractors.wav" vox_combine[ "readyweapons" ]="npc/combine_soldier/vo/readyweapons.wav" vox_combine[ "readyweaponshostilesinbound" ]="npc/combine_soldier/vo/readyweaponshostilesinbound.wav" vox_combine[ "reaper" ]="npc/combine_soldier/vo/reaper.wav" vox_combine[ "reportallpositionsclear" ]="npc/combine_soldier/vo/reportallpositionsclear.wav" vox_combine[ "reportallradialsfree" ]="npc/combine_soldier/vo/reportallradialsfree.wav" vox_combine[ "reportingclear" ]="npc/combine_soldier/vo/reportingclear.wav" vox_combine[ "requestmedical" ]="npc/combine_soldier/vo/requestmedical.wav" vox_combine[ "requeststimdose" ]="npc/combine_soldier/vo/requeststimdose.wav" vox_combine[ "ripcord" ]="npc/combine_soldier/vo/ripcord.wav" vox_combine[ "ripcordripcord" ]="npc/combine_soldier/vo/ripcordripcord.wav" vox_combine[ "savage" ]="npc/combine_soldier/vo/savage.wav" vox_combine[ "scar" ]="npc/combine_soldier/vo/scar.wav" vox_combine[ "sectionlockupdash4" ]="npc/combine_soldier/vo/sectionlockupdash4.wav" vox_combine[ "sector" ]="npc/combine_soldier/vo/sector.wav" vox_combine[ "sectorisnotsecure" ]="npc/combine_soldier/vo/sectorisnotsecure.wav" vox_combine[ "sectorissecurenovison" ]="npc/combine_soldier/vo/sectorissecurenovison.wav" vox_combine[ "secure" ]="npc/combine_soldier/vo/secure.wav" vox_combine[ "seven" ]="npc/combine_soldier/vo/seven.wav" vox_combine[ "seventeen" ]="npc/combine_soldier/vo/seventeen.wav" vox_combine[ "seventy" ]="npc/combine_soldier/vo/seventy.wav" vox_combine[ "shadow" ]="npc/combine_soldier/vo/shadow.wav" vox_combine[ "sharpzone" ]="npc/combine_soldier/vo/sharpzone.wav" vox_combine[ "sightlineisclear" ]="npc/combine_soldier/vo/sightlineisclear.wav" vox_combine[ "six" ]="npc/combine_soldier/vo/six.wav" vox_combine[ "sixteen" ]="npc/combine_soldier/vo/sixteen.wav" vox_combine[ "sixty" ]="npc/combine_soldier/vo/sixty.wav" vox_combine[ "skyshieldreportslostcontact" ]="npc/combine_soldier/vo/skyshieldreportslostcontact.wav" vox_combine[ "slam" ]="npc/combine_soldier/vo/slam.wav" vox_combine[ "slash" ]="npc/combine_soldier/vo/slash.wav" vox_combine[ "spear" ]="npc/combine_soldier/vo/spear.wav" vox_combine[ "stab" ]="npc/combine_soldier/vo/stab.wav" vox_combine[ "stabilizationteamhassector" ]="npc/combine_soldier/vo/stabilizationteamhassector.wav" vox_combine[ "stabilizationteamholding" ]="npc/combine_soldier/vo/stabilizationteamholding.wav" vox_combine[ "standingby]" ]="npc/combine_soldier/vo/standingby].wav" vox_combine[ "star" ]="npc/combine_soldier/vo/star.wav" vox_combine[ "stayalert" ]="npc/combine_soldier/vo/stayalert.wav" vox_combine[ "stayalertreportsightlines" ]="npc/combine_soldier/vo/stayalertreportsightlines.wav" vox_combine[ "stinger" ]="npc/combine_soldier/vo/stinger.wav" vox_combine[ "storm" ]="npc/combine_soldier/vo/storm.wav" vox_combine[ "striker" ]="npc/combine_soldier/vo/striker.wav" vox_combine[ "sundown" ]="npc/combine_soldier/vo/sundown.wav" vox_combine[ "suppressing" ]="npc/combine_soldier/vo/suppressing.wav" vox_combine[ "swarmoutbreakinsector" ]="npc/combine_soldier/vo/swarmoutbreakinsector.wav" vox_combine[ "sweeper" ]="npc/combine_soldier/vo/sweeper.wav" vox_combine[ "sweepingin" ]="npc/combine_soldier/vo/sweepingin.wav" vox_combine[ "swift" ]="npc/combine_soldier/vo/swift.wav" vox_combine[ "sword" ]="npc/combine_soldier/vo/sword.wav" vox_combine[ "target" ]="npc/combine_soldier/vo/target.wav" vox_combine[ "targetblackout" ]="npc/combine_soldier/vo/targetblackout.wav" vox_combine[ "targetcompromisedmovein" ]="npc/combine_soldier/vo/targetcompromisedmovein.wav" vox_combine[ "targetcontactat" ]="npc/combine_soldier/vo/targetcontactat.wav" vox_combine[ "targetineffective" ]="npc/combine_soldier/vo/targetineffective.wav" vox_combine[ "targetisat" ]="npc/combine_soldier/vo/targetisat.wav" vox_combine[ "targetmyradial" ]="npc/combine_soldier/vo/targetmyradial.wav" vox_combine[ "targetone" ]="npc/combine_soldier/vo/targetone.wav" vox_combine[ "teamdeployedandscanning" ]="npc/combine_soldier/vo/teamdeployedandscanning.wav" vox_combine[ "ten" ]="npc/combine_soldier/vo/ten.wav" vox_combine[ "thatsitwrapitup" ]="npc/combine_soldier/vo/thatsitwrapitup.wav" vox_combine[ "thirteen" ]="npc/combine_soldier/vo/thirteen.wav" vox_combine[ "thirty" ]="npc/combine_soldier/vo/thirty.wav" vox_combine[ "three" ]="npc/combine_soldier/vo/three.wav" vox_combine[ "threehundred" ]="npc/combine_soldier/vo/threehundred.wav" vox_combine[ "tracker" ]="npc/combine_soldier/vo/tracker.wav" vox_combine[ "twelve" ]="npc/combine_soldier/vo/twelve.wav" vox_combine[ "twenty" ]="npc/combine_soldier/vo/twenty.wav" vox_combine[ "two" ]="npc/combine_soldier/vo/two.wav" vox_combine[ "twohundred" ]="npc/combine_soldier/vo/twohundred.wav" vox_combine[ "uniform" ]="npc/combine_soldier/vo/uniform.wav" vox_combine[ "unitisclosing" ]="npc/combine_soldier/vo/unitisclosing.wav" vox_combine[ "unitisinbound" ]="npc/combine_soldier/vo/unitisinbound.wav" vox_combine[ "unitismovingin" ]="npc/combine_soldier/vo/unitismovingin.wav" vox_combine[ "vamp" ]="npc/combine_soldier/vo/vamp.wav" vox_combine[ "viscon" ]="npc/combine_soldier/vo/viscon.wav" vox_combine[ "visualonexogens" ]="npc/combine_soldier/vo/visualonexogens.wav" vox_combine[ "weaponsoffsafeprepforcontact" ]="npc/combine_soldier/vo/weaponsoffsafeprepforcontact.wav" vox_combine[ "weareinaninfestationzone" ]="npc/combine_soldier/vo/weareinaninfestationzone.wav" vox_combine[ "wehavefreeparasites" ]="npc/combine_soldier/vo/wehavefreeparasites.wav" vox_combine[ "wehavenontaggedviromes" ]="npc/combine_soldier/vo/wehavenontaggedviromes.wav" vox_combine[ "winder" ]="npc/combine_soldier/vo/winder.wav" vox_combine[ "zero" ]="npc/combine_soldier/vo/zero.wav" pk_pills.registerVox("combine",vox_combine) local vox_vort={} vox_vort[ "acceptcharge" ]="vo/npc/vortigaunt/acceptcharge.wav" vox_vort[ "acceptenergy" ]="vo/npc/vortigaunt/acceptenergy.wav" vox_vort[ "accompany" ]="vo/npc/vortigaunt/accompany.wav" vox_vort[ "affirmed" ]="vo/npc/vortigaunt/affirmed.wav" vox_vort[ "alldear" ]="vo/npc/vortigaunt/alldear.wav" vox_vort[ "allfornow" ]="vo/npc/vortigaunt/allfornow.wav" vox_vort[ "allinoneinall" ]="vo/npc/vortigaunt/allinoneinall.wav" vox_vort[ "allowme" ]="vo/npc/vortigaunt/allowme.wav" vox_vort[ "allowrecharge" ]="vo/npc/vortigaunt/allowrecharge.wav" vox_vort[ "allwecanspare" ]="vo/npc/vortigaunt/allwecanspare.wav" vox_vort[ "allwehave" ]="vo/npc/vortigaunt/allwehave.wav" vox_vort[ "assent" ]="vo/npc/vortigaunt/assent.wav" vox_vort[ "asyouwish" ]="vo/npc/vortigaunt/asyouwish.wav" vox_vort[ "beofservice" ]="vo/npc/vortigaunt/beofservice.wav" vox_vort[ "bodyyours" ]="vo/npc/vortigaunt/bodyyours.wav" vox_vort[ "calm" ]="vo/npc/vortigaunt/calm.wav" vox_vort[ "canconvince" ]="vo/npc/vortigaunt/canconvince.wav" vox_vort[ "cannotfire" ]="vo/npc/vortigaunt/cannotfire.wav" vox_vort[ "caution" ]="vo/npc/vortigaunt/caution.wav" vox_vort[ "cautionfm" ]="vo/npc/vortigaunt/cautionfm.wav" vox_vort[ "certainly" ]="vo/npc/vortigaunt/certainly.wav" vox_vort[ "corporeal" ]="vo/npc/vortigaunt/corporeal.wav" vox_vort[ "dedicate" ]="vo/npc/vortigaunt/dedicate.wav" vox_vort[ "done" ]="vo/npc/vortigaunt/done.wav" vox_vort[ "dreamed" ]="vo/npc/vortigaunt/dreamed.wav" vox_vort[ "empowerus" ]="vo/npc/vortigaunt/empowerus.wav" vox_vort[ "energyempower" ]="vo/npc/vortigaunt/energyempower.wav" vox_vort[ "fearfailed" ]="vo/npc/vortigaunt/fearfailed.wav" vox_vort[ "fmbeware" ]="vo/npc/vortigaunt/fmbeware.wav" vox_vort[ "fmcanuse" ]="vo/npc/vortigaunt/fmcanuse.wav" vox_vort[ "fmdoesushonor" ]="vo/npc/vortigaunt/fmdoesushonor.wav" vox_vort[ "fmhonorsus" ]="vo/npc/vortigaunt/fmhonorsus.wav" vox_vort[ "fminway" ]="vo/npc/vortigaunt/fminway.wav" vox_vort[ "fmknowsbest" ]="vo/npc/vortigaunt/fmknowsbest.wav" vox_vort[ "fmmustbeware" ]="vo/npc/vortigaunt/fmmustbeware.wav" vox_vort[ "fmmustfollow" ]="vo/npc/vortigaunt/fmmustfollow.wav" vox_vort[ "fmmustmove" ]="vo/npc/vortigaunt/fmmustmove.wav" vox_vort[ "fmstandstill" ]="vo/npc/vortigaunt/fmstandstill.wav" vox_vort[ "followfm" ]="vo/npc/vortigaunt/followfm.wav" vox_vort[ "forfreedom" ]="vo/npc/vortigaunt/forfreedom.wav" vox_vort[ "forthefm" ]="vo/npc/vortigaunt/forthefm.wav" vox_vort[ "forward" ]="vo/npc/vortigaunt/forward.wav" vox_vort[ "freeman" ]="vo/npc/vortigaunt/freeman.wav" vox_vort[ "giveover" ]="vo/npc/vortigaunt/giveover.wav" vox_vort[ "gladly" ]="vo/npc/vortigaunt/gladly.wav" vox_vort[ "gloriousend" ]="vo/npc/vortigaunt/gloriousend.wav" vox_vort[ "greetingsfm" ]="vo/npc/vortigaunt/greetingsfm.wav" vox_vort[ "halt" ]="vo/npc/vortigaunt/halt.wav" vox_vort[ "here" ]="vo/npc/vortigaunt/here.wav" vox_vort[ "herewestay" ]="vo/npc/vortigaunt/herewestay.wav" vox_vort[ "hold" ]="vo/npc/vortigaunt/hold.wav" vox_vort[ "holdorcantcharge" ]="vo/npc/vortigaunt/holdorcantcharge.wav" vox_vort[ "holdstill" ]="vo/npc/vortigaunt/holdstill.wav" vox_vort[ "honorfollow" ]="vo/npc/vortigaunt/honorfollow.wav" vox_vort[ "honorours" ]="vo/npc/vortigaunt/honorours.wav" vox_vort[ "hopeless" ]="vo/npc/vortigaunt/hopeless.wav" vox_vort[ "ifyoumove" ]="vo/npc/vortigaunt/ifyoumove.wav" vox_vort[ "isitthefm" ]="vo/npc/vortigaunt/isitthefm.wav" vox_vort[ "itishonor" ]="vo/npc/vortigaunt/itishonor.wav" vox_vort[ "itisthefm" ]="vo/npc/vortigaunt/itisthefm.wav" vox_vort[ "keepfmsafe" ]="vo/npc/vortigaunt/keepfmsafe.wav" vox_vort[ "leadon" ]="vo/npc/vortigaunt/leadon.wav" vox_vort[ "leadus" ]="vo/npc/vortigaunt/leadus.wav" vox_vort[ "livetoserve" ]="vo/npc/vortigaunt/livetoserve.wav" vox_vort[ "morethanmeets" ]="vo/npc/vortigaunt/morethanmeets.wav" vox_vort[ "movingtarget" ]="vo/npc/vortigaunt/movingtarget.wav" vox_vort[ "mutual" ]="vo/npc/vortigaunt/mutual.wav" vox_vort[ "mystery" ]="vo/npc/vortigaunt/mystery.wav" vox_vort[ "neuroprints" ]="vo/npc/vortigaunt/neuroprints.wav" vox_vort[ "nodenexus" ]="vo/npc/vortigaunt/nodenexus.wav" vox_vort[ "onward" ]="vo/npc/vortigaunt/onward.wav" vox_vort[ "opaque" ]="vo/npc/vortigaunt/opaque.wav" vox_vort[ "optical" ]="vo/npc/vortigaunt/optical.wav" vox_vort[ "ourhonor" ]="vo/npc/vortigaunt/ourhonor.wav" vox_vort[ "ourplacehere" ]="vo/npc/vortigaunt/ourplacehere.wav" vox_vort[ "passon" ]="vo/npc/vortigaunt/passon.wav" vox_vort[ "persevere" ]="vo/npc/vortigaunt/persevere.wav" vox_vort[ "pleasure" ]="vo/npc/vortigaunt/pleasure.wav" vox_vort[ "poet" ]="vo/npc/vortigaunt/poet.wav" vox_vort[ "prepare" ]="vo/npc/vortigaunt/prepare.wav" vox_vort[ "prevail" ]="vo/npc/vortigaunt/prevail.wav" vox_vort[ "propitious" ]="vo/npc/vortigaunt/propitious.wav" vox_vort[ "putaside" ]="vo/npc/vortigaunt/putaside.wav" vox_vort[ "reasondelay" ]="vo/npc/vortigaunt/reasondelay.wav" vox_vort[ "regrettable" ]="vo/npc/vortigaunt/regrettable.wav" vox_vort[ "rememberus" ]="vo/npc/vortigaunt/rememberus.wav" vox_vort[ "returntoall" ]="vo/npc/vortigaunt/returntoall.wav" vox_vort[ "returnvoid" ]="vo/npc/vortigaunt/returnvoid.wav" vox_vort[ "salute" ]="vo/npc/vortigaunt/salute.wav" vox_vort[ "satisfaction" ]="vo/npc/vortigaunt/satisfaction.wav" vox_vort[ "seebeforeoureye" ]="vo/npc/vortigaunt/seebeforeoureye.wav" vox_vort[ "seenworse" ]="vo/npc/vortigaunt/seenworse.wav" vox_vort[ "servebetterhere" ]="vo/npc/vortigaunt/servebetterhere.wav" vox_vort[ "standclear" ]="vo/npc/vortigaunt/standclear.wav" vox_vort[ "stillhere" ]="vo/npc/vortigaunt/stillhere.wav" vox_vort[ "surge" ]="vo/npc/vortigaunt/surge.wav" vox_vort[ "takeus" ]="vo/npc/vortigaunt/takeus.wav" vox_vort[ "tethercut" ]="vo/npc/vortigaunt/tethercut.wav" vox_vort[ "thatisall" ]="vo/npc/vortigaunt/thatisall.wav" vox_vort[ "thefreeman" ]="vo/npc/vortigaunt/thefreeman.wav" vox_vort[ "tothevoid" ]="vo/npc/vortigaunt/tothevoid.wav" vox_vort[ "troubleus" ]="vo/npc/vortigaunt/troubleus.wav" vox_vort[ "trulyitis" ]="vo/npc/vortigaunt/trulyitis.wav" vox_vort[ "undeserving" ]="vo/npc/vortigaunt/undeserving.wav" vox_vort[ "vanswer01" ]="vo/npc/vortigaunt/vanswer01.wav" vox_vort[ "vanswer02" ]="vo/npc/vortigaunt/vanswer02.wav" vox_vort[ "vanswer03" ]="vo/npc/vortigaunt/vanswer03.wav" vox_vort[ "vanswer04" ]="vo/npc/vortigaunt/vanswer04.wav" vox_vort[ "vanswer05" ]="vo/npc/vortigaunt/vanswer05.wav" vox_vort[ "vanswer06" ]="vo/npc/vortigaunt/vanswer06.wav" vox_vort[ "vanswer07" ]="vo/npc/vortigaunt/vanswer07.wav" vox_vort[ "vanswer08" ]="vo/npc/vortigaunt/vanswer08.wav" vox_vort[ "vanswer09" ]="vo/npc/vortigaunt/vanswer09.wav" vox_vort[ "vanswer10" ]="vo/npc/vortigaunt/vanswer10.wav" vox_vort[ "vanswer11" ]="vo/npc/vortigaunt/vanswer11.wav" vox_vort[ "vanswer12" ]="vo/npc/vortigaunt/vanswer12.wav" vox_vort[ "vanswer13" ]="vo/npc/vortigaunt/vanswer13.wav" vox_vort[ "vanswer14" ]="vo/npc/vortigaunt/vanswer14.wav" vox_vort[ "vanswer15" ]="vo/npc/vortigaunt/vanswer15.wav" vox_vort[ "vanswer16" ]="vo/npc/vortigaunt/vanswer16.wav" vox_vort[ "vanswer17" ]="vo/npc/vortigaunt/vanswer17.wav" vox_vort[ "vanswer18" ]="vo/npc/vortigaunt/vanswer18.wav" vox_vort[ "vmono_03" ]="vo/npc/vortigaunt/vmono_03.wav" vox_vort[ "vmono_04" ]="vo/npc/vortigaunt/vmono_04.wav" vox_vort[ "vmono_05" ]="vo/npc/vortigaunt/vmono_05.wav" vox_vort[ "vmono_06" ]="vo/npc/vortigaunt/vmono_06.wav" vox_vort[ "vmono_07" ]="vo/npc/vortigaunt/vmono_07.wav" vox_vort[ "vmono_08" ]="vo/npc/vortigaunt/vmono_08.wav" vox_vort[ "vmono_09" ]="vo/npc/vortigaunt/vmono_09.wav" vox_vort[ "vmono_10" ]="vo/npc/vortigaunt/vmono_10.wav" vox_vort[ "vmono_11" ]="vo/npc/vortigaunt/vmono_11.wav" vox_vort[ "vmono_12" ]="vo/npc/vortigaunt/vmono_12.wav" vox_vort[ "vmono_13" ]="vo/npc/vortigaunt/vmono_13.wav" vox_vort[ "vmono_14" ]="vo/npc/vortigaunt/vmono_14.wav" vox_vort[ "vmono_15" ]="vo/npc/vortigaunt/vmono_15.wav" vox_vort[ "vmono_16" ]="vo/npc/vortigaunt/vmono_16.wav" vox_vort[ "vmono_17" ]="vo/npc/vortigaunt/vmono_17.wav" vox_vort[ "vmono_18" ]="vo/npc/vortigaunt/vmono_18.wav" vox_vort[ "vmono_19" ]="vo/npc/vortigaunt/vmono_19.wav" vox_vort[ "vmono_20" ]="vo/npc/vortigaunt/vmono_20.wav" vox_vort[ "vmono_21" ]="vo/npc/vortigaunt/vmono_21.wav" vox_vort[ "vmono_22" ]="vo/npc/vortigaunt/vmono_22.wav" vox_vort[ "vmono_23" ]="vo/npc/vortigaunt/vmono_23.wav" vox_vort[ "vmono_24" ]="vo/npc/vortigaunt/vmono_24.wav" vox_vort[ "vmono_25" ]="vo/npc/vortigaunt/vmono_25.wav" vox_vort[ "vmono_26" ]="vo/npc/vortigaunt/vmono_26.wav" vox_vort[ "vmono_27" ]="vo/npc/vortigaunt/vmono_27.wav" vox_vort[ "vmono_28" ]="vo/npc/vortigaunt/vmono_28.wav" vox_vort[ "vmono_29" ]="vo/npc/vortigaunt/vmono_29.wav" vox_vort[ "vmono_30" ]="vo/npc/vortigaunt/vmono_30.wav" vox_vort[ "vortigese02" ]="vo/npc/vortigaunt/vortigese02.wav" vox_vort[ "vortigese03" ]="vo/npc/vortigaunt/vortigese03.wav" vox_vort[ "vortigese04" ]="vo/npc/vortigaunt/vortigese04.wav" vox_vort[ "vortigese05" ]="vo/npc/vortigaunt/vortigese05.wav" vox_vort[ "vortigese07" ]="vo/npc/vortigaunt/vortigese07.wav" vox_vort[ "vortigese08" ]="vo/npc/vortigaunt/vortigese08.wav" vox_vort[ "vortigese09" ]="vo/npc/vortigaunt/vortigese09.wav" vox_vort[ "vortigese11" ]="vo/npc/vortigaunt/vortigese11.wav" vox_vort[ "vortigese12" ]="vo/npc/vortigaunt/vortigese12.wav" vox_vort[ "vques01" ]="vo/npc/vortigaunt/vques01.wav" vox_vort[ "vques02" ]="vo/npc/vortigaunt/vques02.wav" vox_vort[ "vques03" ]="vo/npc/vortigaunt/vques03.wav" vox_vort[ "vques04" ]="vo/npc/vortigaunt/vques04.wav" vox_vort[ "vques05" ]="vo/npc/vortigaunt/vques05.wav" vox_vort[ "vques06" ]="vo/npc/vortigaunt/vques06.wav" vox_vort[ "vques07" ]="vo/npc/vortigaunt/vques07.wav" vox_vort[ "vques08" ]="vo/npc/vortigaunt/vques08.wav" vox_vort[ "vques09" ]="vo/npc/vortigaunt/vques09.wav" vox_vort[ "vques10" ]="vo/npc/vortigaunt/vques10.wav" vox_vort[ "ware" ]="vo/npc/vortigaunt/ware.wav" vox_vort[ "warefm" ]="vo/npc/vortigaunt/warefm.wav" vox_vort[ "warningfm" ]="vo/npc/vortigaunt/warningfm.wav" vox_vort[ "weareyours" ]="vo/npc/vortigaunt/weareyours.wav" vox_vort[ "webeofuse" ]="vo/npc/vortigaunt/webeofuse.wav" vox_vort[ "weclaimyou" ]="vo/npc/vortigaunt/weclaimyou.wav" vox_vort[ "wefollowfm" ]="vo/npc/vortigaunt/wefollowfm.wav" vox_vort[ "wehonored" ]="vo/npc/vortigaunt/wehonored.wav" vox_vort[ "weknowyou" ]="vo/npc/vortigaunt/weknowyou.wav" vox_vort[ "wellmet" ]="vo/npc/vortigaunt/wellmet.wav" vox_vort[ "weshare" ]="vo/npc/vortigaunt/weshare.wav" vox_vort[ "wewillcharge" ]="vo/npc/vortigaunt/wewillcharge.wav" vox_vort[ "wewillhelp" ]="vo/npc/vortigaunt/wewillhelp.wav" vox_vort[ "whereto" ]="vo/npc/vortigaunt/whereto.wav" vox_vort[ "willremain" ]="vo/npc/vortigaunt/willremain.wav" vox_vort[ "worthless" ]="vo/npc/vortigaunt/worthless.wav" vox_vort[ "yes" ]="vo/npc/vortigaunt/yes.wav" vox_vort[ "yesforward" ]="vo/npc/vortigaunt/yesforward.wav" pk_pills.registerVox("vort",vox_vort) local vox_citizen_male={} vox_citizen_male[ "abouttime01" ]="vo/npc/male01/abouttime01.wav" vox_citizen_male[ "abouttime02" ]="vo/npc/male01/abouttime02.wav" vox_citizen_male[ "ahgordon01" ]="vo/npc/male01/ahgordon01.wav" vox_citizen_male[ "ahgordon02" ]="vo/npc/male01/ahgordon02.wav" vox_citizen_male[ "ammo01" ]="vo/npc/male01/ammo01.wav" vox_citizen_male[ "ammo02" ]="vo/npc/male01/ammo02.wav" vox_citizen_male[ "ammo03" ]="vo/npc/male01/ammo03.wav" vox_citizen_male[ "ammo04" ]="vo/npc/male01/ammo04.wav" vox_citizen_male[ "ammo05" ]="vo/npc/male01/ammo05.wav" vox_citizen_male[ "answer01" ]="vo/npc/male01/answer01.wav" vox_citizen_male[ "answer02" ]="vo/npc/male01/answer02.wav" vox_citizen_male[ "answer03" ]="vo/npc/male01/answer03.wav" vox_citizen_male[ "answer04" ]="vo/npc/male01/answer04.wav" vox_citizen_male[ "answer05" ]="vo/npc/male01/answer05.wav" vox_citizen_male[ "answer07" ]="vo/npc/male01/answer07.wav" vox_citizen_male[ "answer08" ]="vo/npc/male01/answer08.wav" vox_citizen_male[ "answer09" ]="vo/npc/male01/answer09.wav" vox_citizen_male[ "answer10" ]="vo/npc/male01/answer10.wav" vox_citizen_male[ "answer11" ]="vo/npc/male01/answer11.wav" vox_citizen_male[ "answer12" ]="vo/npc/male01/answer12.wav" vox_citizen_male[ "answer13" ]="vo/npc/male01/answer13.wav" vox_citizen_male[ "answer14" ]="vo/npc/male01/answer14.wav" vox_citizen_male[ "answer15" ]="vo/npc/male01/answer15.wav" vox_citizen_male[ "answer16" ]="vo/npc/male01/answer16.wav" vox_citizen_male[ "answer17" ]="vo/npc/male01/answer17.wav" vox_citizen_male[ "answer18" ]="vo/npc/male01/answer18.wav" vox_citizen_male[ "answer19" ]="vo/npc/male01/answer19.wav" vox_citizen_male[ "answer20" ]="vo/npc/male01/answer20.wav" vox_citizen_male[ "answer21" ]="vo/npc/male01/answer21.wav" vox_citizen_male[ "answer22" ]="vo/npc/male01/answer22.wav" vox_citizen_male[ "answer23" ]="vo/npc/male01/answer23.wav" vox_citizen_male[ "answer24" ]="vo/npc/male01/answer24.wav" vox_citizen_male[ "answer25" ]="vo/npc/male01/answer25.wav" vox_citizen_male[ "answer26" ]="vo/npc/male01/answer26.wav" vox_citizen_male[ "answer27" ]="vo/npc/male01/answer27.wav" vox_citizen_male[ "answer28" ]="vo/npc/male01/answer28.wav" vox_citizen_male[ "answer29" ]="vo/npc/male01/answer29.wav" vox_citizen_male[ "answer30" ]="vo/npc/male01/answer30.wav" vox_citizen_male[ "answer31" ]="vo/npc/male01/answer31.wav" vox_citizen_male[ "answer32" ]="vo/npc/male01/answer32.wav" vox_citizen_male[ "answer33" ]="vo/npc/male01/answer33.wav" vox_citizen_male[ "answer34" ]="vo/npc/male01/answer34.wav" vox_citizen_male[ "answer35" ]="vo/npc/male01/answer35.wav" vox_citizen_male[ "answer36" ]="vo/npc/male01/answer36.wav" vox_citizen_male[ "answer37" ]="vo/npc/male01/answer37.wav" vox_citizen_male[ "answer38" ]="vo/npc/male01/answer38.wav" vox_citizen_male[ "answer39" ]="vo/npc/male01/answer39.wav" vox_citizen_male[ "answer40" ]="vo/npc/male01/answer40.wav" vox_citizen_male[ "behindyou01" ]="vo/npc/male01/behindyou01.wav" vox_citizen_male[ "behindyou02" ]="vo/npc/male01/behindyou02.wav" vox_citizen_male[ "busy02" ]="vo/npc/male01/busy02.wav" vox_citizen_male[ "cit_dropper01" ]="vo/npc/male01/cit_dropper01.wav" vox_citizen_male[ "cit_dropper04" ]="vo/npc/male01/cit_dropper04.wav" vox_citizen_male[ "civilprotection01" ]="vo/npc/male01/civilprotection01.wav" vox_citizen_male[ "civilprotection02" ]="vo/npc/male01/civilprotection02.wav" vox_citizen_male[ "combine01" ]="vo/npc/male01/combine01.wav" vox_citizen_male[ "combine02" ]="vo/npc/male01/combine02.wav" vox_citizen_male[ "coverwhilereload01" ]="vo/npc/male01/coverwhilereload01.wav" vox_citizen_male[ "coverwhilereload02" ]="vo/npc/male01/coverwhilereload02.wav" vox_citizen_male[ "cps01" ]="vo/npc/male01/cps01.wav" vox_citizen_male[ "cps02" ]="vo/npc/male01/cps02.wav" vox_citizen_male[ "docfreeman01" ]="vo/npc/male01/docfreeman01.wav" vox_citizen_male[ "docfreeman02" ]="vo/npc/male01/docfreeman02.wav" vox_citizen_male[ "doingsomething" ]="vo/npc/male01/doingsomething.wav" vox_citizen_male[ "dontforgetreload01" ]="vo/npc/male01/dontforgetreload01.wav" vox_citizen_male[ "evenodds" ]="vo/npc/male01/evenodds.wav" vox_citizen_male[ "excuseme01" ]="vo/npc/male01/excuseme01.wav" vox_citizen_male[ "excuseme02" ]="vo/npc/male01/excuseme02.wav" vox_citizen_male[ "fantastic01" ]="vo/npc/male01/fantastic01.wav" vox_citizen_male[ "fantastic02" ]="vo/npc/male01/fantastic02.wav" vox_citizen_male[ "finally" ]="vo/npc/male01/finally.wav" vox_citizen_male[ "freeman" ]="vo/npc/male01/freeman.wav" vox_citizen_male[ "getdown02" ]="vo/npc/male01/getdown02.wav" vox_citizen_male[ "getgoingsoon" ]="vo/npc/male01/getgoingsoon.wav" vox_citizen_male[ "gethellout" ]="vo/npc/male01/gethellout.wav" vox_citizen_male[ "goodgod" ]="vo/npc/male01/goodgod.wav" vox_citizen_male[ "gordead_ans01" ]="vo/npc/male01/gordead_ans01.wav" vox_citizen_male[ "gordead_ans02" ]="vo/npc/male01/gordead_ans02.wav" vox_citizen_male[ "gordead_ans03" ]="vo/npc/male01/gordead_ans03.wav" vox_citizen_male[ "gordead_ans04" ]="vo/npc/male01/gordead_ans04.wav" vox_citizen_male[ "gordead_ans05" ]="vo/npc/male01/gordead_ans05.wav" vox_citizen_male[ "gordead_ans06" ]="vo/npc/male01/gordead_ans06.wav" vox_citizen_male[ "gordead_ans07" ]="vo/npc/male01/gordead_ans07.wav" vox_citizen_male[ "gordead_ans08" ]="vo/npc/male01/gordead_ans08.wav" vox_citizen_male[ "gordead_ans09" ]="vo/npc/male01/gordead_ans09.wav" vox_citizen_male[ "gordead_ans10" ]="vo/npc/male01/gordead_ans10.wav" vox_citizen_male[ "gordead_ans11" ]="vo/npc/male01/gordead_ans11.wav" vox_citizen_male[ "gordead_ans12" ]="vo/npc/male01/gordead_ans12.wav" vox_citizen_male[ "gordead_ans13" ]="vo/npc/male01/gordead_ans13.wav" vox_citizen_male[ "gordead_ans14" ]="vo/npc/male01/gordead_ans14.wav" vox_citizen_male[ "gordead_ans15" ]="vo/npc/male01/gordead_ans15.wav" vox_citizen_male[ "gordead_ans16" ]="vo/npc/male01/gordead_ans16.wav" vox_citizen_male[ "gordead_ans17" ]="vo/npc/male01/gordead_ans17.wav" vox_citizen_male[ "gordead_ans18" ]="vo/npc/male01/gordead_ans18.wav" vox_citizen_male[ "gordead_ans19" ]="vo/npc/male01/gordead_ans19.wav" vox_citizen_male[ "gordead_ans20" ]="vo/npc/male01/gordead_ans20.wav" vox_citizen_male[ "gordead_ques01" ]="vo/npc/male01/gordead_ques01.wav" vox_citizen_male[ "gordead_ques02" ]="vo/npc/male01/gordead_ques02.wav" vox_citizen_male[ "gordead_ques03a" ]="vo/npc/male01/gordead_ques03a.wav" vox_citizen_male[ "gordead_ques03b" ]="vo/npc/male01/gordead_ques03b.wav" vox_citizen_male[ "gordead_ques04" ]="vo/npc/male01/gordead_ques04.wav" vox_citizen_male[ "gordead_ques05" ]="vo/npc/male01/gordead_ques05.wav" vox_citizen_male[ "gordead_ques06" ]="vo/npc/male01/gordead_ques06.wav" vox_citizen_male[ "gordead_ques07" ]="vo/npc/male01/gordead_ques07.wav" vox_citizen_male[ "gordead_ques08" ]="vo/npc/male01/gordead_ques08.wav" vox_citizen_male[ "gordead_ques10" ]="vo/npc/male01/gordead_ques10.wav" vox_citizen_male[ "gordead_ques11" ]="vo/npc/male01/gordead_ques11.wav" vox_citizen_male[ "gordead_ques12" ]="vo/npc/male01/gordead_ques12.wav" vox_citizen_male[ "gordead_ques13" ]="vo/npc/male01/gordead_ques13.wav" vox_citizen_male[ "gordead_ques14" ]="vo/npc/male01/gordead_ques14.wav" vox_citizen_male[ "gordead_ques15" ]="vo/npc/male01/gordead_ques15.wav" vox_citizen_male[ "gordead_ques16" ]="vo/npc/male01/gordead_ques16.wav" vox_citizen_male[ "gordead_ques17" ]="vo/npc/male01/gordead_ques17.wav" vox_citizen_male[ "gotone01" ]="vo/npc/male01/gotone01.wav" vox_citizen_male[ "gotone02" ]="vo/npc/male01/gotone02.wav" vox_citizen_male[ "gottareload01" ]="vo/npc/male01/gottareload01.wav" vox_citizen_male[ "gunship02" ]="vo/npc/male01/gunship02.wav" vox_citizen_male[ "hacks01" ]="vo/npc/male01/hacks01.wav" vox_citizen_male[ "hacks02" ]="vo/npc/male01/hacks02.wav" vox_citizen_male[ "headcrabs01" ]="vo/npc/male01/headcrabs01.wav" vox_citizen_male[ "headcrabs02" ]="vo/npc/male01/headcrabs02.wav" vox_citizen_male[ "headsup01" ]="vo/npc/male01/headsup01.wav" vox_citizen_male[ "headsup02" ]="vo/npc/male01/headsup02.wav" vox_citizen_male[ "health01" ]="vo/npc/male01/health01.wav" vox_citizen_male[ "health02" ]="vo/npc/male01/health02.wav" vox_citizen_male[ "health03" ]="vo/npc/male01/health03.wav" vox_citizen_male[ "health04" ]="vo/npc/male01/health04.wav" vox_citizen_male[ "health05" ]="vo/npc/male01/health05.wav" vox_citizen_male[ "hellodrfm01" ]="vo/npc/male01/hellodrfm01.wav" vox_citizen_male[ "hellodrfm02" ]="vo/npc/male01/hellodrfm02.wav" vox_citizen_male[ "help01" ]="vo/npc/male01/help01.wav" vox_citizen_male[ "herecomehacks01" ]="vo/npc/male01/herecomehacks01.wav" vox_citizen_male[ "herecomehacks02" ]="vo/npc/male01/herecomehacks02.wav" vox_citizen_male[ "heretheycome01" ]="vo/npc/male01/heretheycome01.wav" vox_citizen_male[ "heretohelp01" ]="vo/npc/male01/heretohelp01.wav" vox_citizen_male[ "heretohelp02" ]="vo/npc/male01/heretohelp02.wav" vox_citizen_male[ "heydoc01" ]="vo/npc/male01/heydoc01.wav" vox_citizen_male[ "heydoc02" ]="vo/npc/male01/heydoc02.wav" vox_citizen_male[ "hi01" ]="vo/npc/male01/hi01.wav" vox_citizen_male[ "hi02" ]="vo/npc/male01/hi02.wav" vox_citizen_male[ "hitingut01" ]="vo/npc/male01/hitingut01.wav" vox_citizen_male[ "hitingut02" ]="vo/npc/male01/hitingut02.wav" vox_citizen_male[ "holddownspot01" ]="vo/npc/male01/holddownspot01.wav" vox_citizen_male[ "holddownspot02" ]="vo/npc/male01/holddownspot02.wav" vox_citizen_male[ "illstayhere01" ]="vo/npc/male01/illstayhere01.wav" vox_citizen_male[ "imhurt01" ]="vo/npc/male01/imhurt01.wav" vox_citizen_male[ "imhurt02" ]="vo/npc/male01/imhurt02.wav" vox_citizen_male[ "imstickinghere01" ]="vo/npc/male01/imstickinghere01.wav" vox_citizen_male[ "incoming02" ]="vo/npc/male01/incoming02.wav" vox_citizen_male[ "itsamanhack01" ]="vo/npc/male01/itsamanhack01.wav" vox_citizen_male[ "itsamanhack02" ]="vo/npc/male01/itsamanhack02.wav" vox_citizen_male[ "leadon01" ]="vo/npc/male01/leadon01.wav" vox_citizen_male[ "leadon02" ]="vo/npc/male01/leadon02.wav" vox_citizen_male[ "leadtheway01" ]="vo/npc/male01/leadtheway01.wav" vox_citizen_male[ "leadtheway02" ]="vo/npc/male01/leadtheway02.wav" vox_citizen_male[ "letsgo01" ]="vo/npc/male01/letsgo01.wav" vox_citizen_male[ "letsgo02" ]="vo/npc/male01/letsgo02.wav" vox_citizen_male[ "likethat" ]="vo/npc/male01/likethat.wav" vox_citizen_male[ "littlecorner01" ]="vo/npc/male01/littlecorner01.wav" vox_citizen_male[ "lookoutfm01" ]="vo/npc/male01/lookoutfm01.wav" vox_citizen_male[ "lookoutfm02" ]="vo/npc/male01/lookoutfm02.wav" vox_citizen_male[ "moan01" ]="vo/npc/male01/moan01.wav" vox_citizen_male[ "moan02" ]="vo/npc/male01/moan02.wav" vox_citizen_male[ "moan03" ]="vo/npc/male01/moan03.wav" vox_citizen_male[ "moan04" ]="vo/npc/male01/moan04.wav" vox_citizen_male[ "moan05" ]="vo/npc/male01/moan05.wav" vox_citizen_male[ "myarm01" ]="vo/npc/male01/myarm01.wav" vox_citizen_male[ "myarm02" ]="vo/npc/male01/myarm02.wav" vox_citizen_male[ "mygut02" ]="vo/npc/male01/mygut02.wav" vox_citizen_male[ "myleg01" ]="vo/npc/male01/myleg01.wav" vox_citizen_male[ "myleg02" ]="vo/npc/male01/myleg02.wav" vox_citizen_male[ "nice" ]="vo/npc/male01/nice.wav" vox_citizen_male[ "no01" ]="vo/npc/male01/no01.wav" vox_citizen_male[ "no02" ]="vo/npc/male01/no02.wav" vox_citizen_male[ "notthemanithought01" ]="vo/npc/male01/notthemanithought01.wav" vox_citizen_male[ "notthemanithought02" ]="vo/npc/male01/notthemanithought02.wav" vox_citizen_male[ "ohno" ]="vo/npc/male01/ohno.wav" vox_citizen_male[ "ok01" ]="vo/npc/male01/ok01.wav" vox_citizen_male[ "ok02" ]="vo/npc/male01/ok02.wav" vox_citizen_male[ "okimready01" ]="vo/npc/male01/okimready01.wav" vox_citizen_male[ "okimready02" ]="vo/npc/male01/okimready02.wav" vox_citizen_male[ "okimready03" ]="vo/npc/male01/okimready03.wav" vox_citizen_male[ "oneforme" ]="vo/npc/male01/oneforme.wav" vox_citizen_male[ "onyourside" ]="vo/npc/male01/onyourside.wav" vox_citizen_male[ "outofyourway02" ]="vo/npc/male01/outofyourway02.wav" vox_citizen_male[ "overhere01" ]="vo/npc/male01/overhere01.wav" vox_citizen_male[ "overthere01" ]="vo/npc/male01/overthere01.wav" vox_citizen_male[ "overthere02" ]="vo/npc/male01/overthere02.wav" vox_citizen_male[ "ow01" ]="vo/npc/male01/ow01.wav" vox_citizen_male[ "ow02" ]="vo/npc/male01/ow02.wav" vox_citizen_male[ "pain01" ]="vo/npc/male01/pain01.wav" vox_citizen_male[ "pain02" ]="vo/npc/male01/pain02.wav" vox_citizen_male[ "pain03" ]="vo/npc/male01/pain03.wav" vox_citizen_male[ "pain04" ]="vo/npc/male01/pain04.wav" vox_citizen_male[ "pain05" ]="vo/npc/male01/pain05.wav" vox_citizen_male[ "pain06" ]="vo/npc/male01/pain06.wav" vox_citizen_male[ "pain07" ]="vo/npc/male01/pain07.wav" vox_citizen_male[ "pain08" ]="vo/npc/male01/pain08.wav" vox_citizen_male[ "pain09" ]="vo/npc/male01/pain09.wav" vox_citizen_male[ "pardonme01" ]="vo/npc/male01/pardonme01.wav" vox_citizen_male[ "pardonme02" ]="vo/npc/male01/pardonme02.wav" vox_citizen_male[ "question01" ]="vo/npc/male01/question01.wav" vox_citizen_male[ "question02" ]="vo/npc/male01/question02.wav" vox_citizen_male[ "question03" ]="vo/npc/male01/question03.wav" vox_citizen_male[ "question04" ]="vo/npc/male01/question04.wav" vox_citizen_male[ "question05" ]="vo/npc/male01/question05.wav" vox_citizen_male[ "question06" ]="vo/npc/male01/question06.wav" vox_citizen_male[ "question07" ]="vo/npc/male01/question07.wav" vox_citizen_male[ "question08" ]="vo/npc/male01/question08.wav" vox_citizen_male[ "question09" ]="vo/npc/male01/question09.wav" vox_citizen_male[ "question10" ]="vo/npc/male01/question10.wav" vox_citizen_male[ "question11" ]="vo/npc/male01/question11.wav" vox_citizen_male[ "question12" ]="vo/npc/male01/question12.wav" vox_citizen_male[ "question13" ]="vo/npc/male01/question13.wav" vox_citizen_male[ "question14" ]="vo/npc/male01/question14.wav" vox_citizen_male[ "question15" ]="vo/npc/male01/question15.wav" vox_citizen_male[ "question16" ]="vo/npc/male01/question16.wav" vox_citizen_male[ "question17" ]="vo/npc/male01/question17.wav" vox_citizen_male[ "question18" ]="vo/npc/male01/question18.wav" vox_citizen_male[ "question19" ]="vo/npc/male01/question19.wav" vox_citizen_male[ "question20" ]="vo/npc/male01/question20.wav" vox_citizen_male[ "question21" ]="vo/npc/male01/question21.wav" vox_citizen_male[ "question22" ]="vo/npc/male01/question22.wav" vox_citizen_male[ "question23" ]="vo/npc/male01/question23.wav" vox_citizen_male[ "question25" ]="vo/npc/male01/question25.wav" vox_citizen_male[ "question26" ]="vo/npc/male01/question26.wav" vox_citizen_male[ "question27" ]="vo/npc/male01/question27.wav" vox_citizen_male[ "question28" ]="vo/npc/male01/question28.wav" vox_citizen_male[ "question29" ]="vo/npc/male01/question29.wav" vox_citizen_male[ "question30" ]="vo/npc/male01/question30.wav" vox_citizen_male[ "readywhenyouare01" ]="vo/npc/male01/readywhenyouare01.wav" vox_citizen_male[ "readywhenyouare02" ]="vo/npc/male01/readywhenyouare02.wav" vox_citizen_male[ "reloadfm01" ]="vo/npc/male01/reloadfm01.wav" vox_citizen_male[ "reloadfm02" ]="vo/npc/male01/reloadfm02.wav" vox_citizen_male[ "runforyourlife01" ]="vo/npc/male01/runforyourlife01.wav" vox_citizen_male[ "runforyourlife02" ]="vo/npc/male01/runforyourlife02.wav" vox_citizen_male[ "runforyourlife03" ]="vo/npc/male01/runforyourlife03.wav" vox_citizen_male[ "scanners01" ]="vo/npc/male01/scanners01.wav" vox_citizen_male[ "scanners02" ]="vo/npc/male01/scanners02.wav" vox_citizen_male[ "sorry01" ]="vo/npc/male01/sorry01.wav" vox_citizen_male[ "sorry02" ]="vo/npc/male01/sorry02.wav" vox_citizen_male[ "sorry03" ]="vo/npc/male01/sorry03.wav" vox_citizen_male[ "sorrydoc01" ]="vo/npc/male01/sorrydoc01.wav" vox_citizen_male[ "sorrydoc02" ]="vo/npc/male01/sorrydoc02.wav" vox_citizen_male[ "sorrydoc04" ]="vo/npc/male01/sorrydoc04.wav" vox_citizen_male[ "sorryfm01" ]="vo/npc/male01/sorryfm01.wav" vox_citizen_male[ "sorryfm02" ]="vo/npc/male01/sorryfm02.wav" vox_citizen_male[ "squad_affirm01" ]="vo/npc/male01/squad_affirm01.wav" vox_citizen_male[ "squad_affirm02" ]="vo/npc/male01/squad_affirm02.wav" vox_citizen_male[ "squad_affirm03" ]="vo/npc/male01/squad_affirm03.wav" vox_citizen_male[ "squad_affirm04" ]="vo/npc/male01/squad_affirm04.wav" vox_citizen_male[ "squad_affirm05" ]="vo/npc/male01/squad_affirm05.wav" vox_citizen_male[ "squad_affirm06" ]="vo/npc/male01/squad_affirm06.wav" vox_citizen_male[ "squad_affirm07" ]="vo/npc/male01/squad_affirm07.wav" vox_citizen_male[ "squad_affirm08" ]="vo/npc/male01/squad_affirm08.wav" vox_citizen_male[ "squad_affirm09" ]="vo/npc/male01/squad_affirm09.wav" vox_citizen_male[ "squad_approach01" ]="vo/npc/male01/squad_approach01.wav" vox_citizen_male[ "squad_approach02" ]="vo/npc/male01/squad_approach02.wav" vox_citizen_male[ "squad_approach03" ]="vo/npc/male01/squad_approach03.wav" vox_citizen_male[ "squad_approach04" ]="vo/npc/male01/squad_approach04.wav" vox_citizen_male[ "squad_away01" ]="vo/npc/male01/squad_away01.wav" vox_citizen_male[ "squad_away02" ]="vo/npc/male01/squad_away02.wav" vox_citizen_male[ "squad_away03" ]="vo/npc/male01/squad_away03.wav" vox_citizen_male[ "squad_follow01" ]="vo/npc/male01/squad_follow01.wav" vox_citizen_male[ "squad_follow02" ]="vo/npc/male01/squad_follow02.wav" vox_citizen_male[ "squad_follow03" ]="vo/npc/male01/squad_follow03.wav" vox_citizen_male[ "squad_follow04" ]="vo/npc/male01/squad_follow04.wav" vox_citizen_male[ "squad_greet01" ]="vo/npc/male01/squad_greet01.wav" vox_citizen_male[ "squad_greet02" ]="vo/npc/male01/squad_greet02.wav" vox_citizen_male[ "squad_greet04" ]="vo/npc/male01/squad_greet04.wav" vox_citizen_male[ "squad_reinforce_group01" ]="vo/npc/male01/squad_reinforce_group01.wav" vox_citizen_male[ "squad_reinforce_group02" ]="vo/npc/male01/squad_reinforce_group02.wav" vox_citizen_male[ "squad_reinforce_group03" ]="vo/npc/male01/squad_reinforce_group03.wav" vox_citizen_male[ "squad_reinforce_group04" ]="vo/npc/male01/squad_reinforce_group04.wav" vox_citizen_male[ "squad_reinforce_single01" ]="vo/npc/male01/squad_reinforce_single01.wav" vox_citizen_male[ "squad_reinforce_single02" ]="vo/npc/male01/squad_reinforce_single02.wav" vox_citizen_male[ "squad_reinforce_single03" ]="vo/npc/male01/squad_reinforce_single03.wav" vox_citizen_male[ "squad_reinforce_single04" ]="vo/npc/male01/squad_reinforce_single04.wav" vox_citizen_male[ "squad_train01" ]="vo/npc/male01/squad_train01.wav" vox_citizen_male[ "squad_train02" ]="vo/npc/male01/squad_train02.wav" vox_citizen_male[ "squad_train03" ]="vo/npc/male01/squad_train03.wav" vox_citizen_male[ "squad_train04" ]="vo/npc/male01/squad_train04.wav" vox_citizen_male[ "startle01" ]="vo/npc/male01/startle01.wav" vox_citizen_male[ "startle02" ]="vo/npc/male01/startle02.wav" vox_citizen_male[ "stopitfm" ]="vo/npc/male01/stopitfm.wav" vox_citizen_male[ "strider" ]="vo/npc/male01/strider.wav" vox_citizen_male[ "strider_run" ]="vo/npc/male01/strider_run.wav" vox_citizen_male[ "takecover02" ]="vo/npc/male01/takecover02.wav" vox_citizen_male[ "thehacks01" ]="vo/npc/male01/thehacks01.wav" vox_citizen_male[ "thehacks02" ]="vo/npc/male01/thehacks02.wav" vox_citizen_male[ "thislldonicely01" ]="vo/npc/male01/thislldonicely01.wav" vox_citizen_male[ "uhoh" ]="vo/npc/male01/uhoh.wav" vox_citizen_male[ "upthere01" ]="vo/npc/male01/upthere01.wav" vox_citizen_male[ "upthere02" ]="vo/npc/male01/upthere02.wav" vox_citizen_male[ "vanswer01" ]="vo/npc/male01/vanswer01.wav" vox_citizen_male[ "vanswer02" ]="vo/npc/male01/vanswer02.wav" vox_citizen_male[ "vanswer03" ]="vo/npc/male01/vanswer03.wav" vox_citizen_male[ "vanswer04" ]="vo/npc/male01/vanswer04.wav" vox_citizen_male[ "vanswer05" ]="vo/npc/male01/vanswer05.wav" vox_citizen_male[ "vanswer06" ]="vo/npc/male01/vanswer06.wav" vox_citizen_male[ "vanswer07" ]="vo/npc/male01/vanswer07.wav" vox_citizen_male[ "vanswer08" ]="vo/npc/male01/vanswer08.wav" vox_citizen_male[ "vanswer09" ]="vo/npc/male01/vanswer09.wav" vox_citizen_male[ "vanswer10" ]="vo/npc/male01/vanswer10.wav" vox_citizen_male[ "vanswer11" ]="vo/npc/male01/vanswer11.wav" vox_citizen_male[ "vanswer12" ]="vo/npc/male01/vanswer12.wav" vox_citizen_male[ "vanswer13" ]="vo/npc/male01/vanswer13.wav" vox_citizen_male[ "vanswer14" ]="vo/npc/male01/vanswer14.wav" vox_citizen_male[ "vquestion01" ]="vo/npc/male01/vquestion01.wav" vox_citizen_male[ "vquestion02" ]="vo/npc/male01/vquestion02.wav" vox_citizen_male[ "vquestion03" ]="vo/npc/male01/vquestion03.wav" vox_citizen_male[ "vquestion04" ]="vo/npc/male01/vquestion04.wav" vox_citizen_male[ "vquestion05" ]="vo/npc/male01/vquestion05.wav" vox_citizen_male[ "vquestion06" ]="vo/npc/male01/vquestion06.wav" vox_citizen_male[ "vquestion07" ]="vo/npc/male01/vquestion07.wav" vox_citizen_male[ "waitingsomebody" ]="vo/npc/male01/waitingsomebody.wav" vox_citizen_male[ "watchout" ]="vo/npc/male01/watchout.wav" vox_citizen_male[ "watchwhat" ]="vo/npc/male01/watchwhat.wav" vox_citizen_male[ "wetrustedyou01" ]="vo/npc/male01/wetrustedyou01.wav" vox_citizen_male[ "wetrustedyou02" ]="vo/npc/male01/wetrustedyou02.wav" vox_citizen_male[ "whoops01" ]="vo/npc/male01/whoops01.wav" vox_citizen_male[ "yeah02" ]="vo/npc/male01/yeah02.wav" vox_citizen_male[ "youdbetterreload01" ]="vo/npc/male01/youdbetterreload01.wav" vox_citizen_male[ "yougotit02" ]="vo/npc/male01/yougotit02.wav" vox_citizen_male[ "zombies01" ]="vo/npc/male01/zombies01.wav" vox_citizen_male[ "zombies02" ]="vo/npc/male01/zombies02.wav" pk_pills.registerVox("citm",vox_citizen_male) local vox_citizen_female={} vox_citizen_female[ "abouttime01" ]="vo/npc/female01/abouttime01.wav" vox_citizen_female[ "abouttime02" ]="vo/npc/female01/abouttime02.wav" vox_citizen_female[ "ahgordon01" ]="vo/npc/female01/ahgordon01.wav" vox_citizen_female[ "ahgordon02" ]="vo/npc/female01/ahgordon02.wav" vox_citizen_female[ "ammo01" ]="vo/npc/female01/ammo01.wav" vox_citizen_female[ "ammo02" ]="vo/npc/female01/ammo02.wav" vox_citizen_female[ "ammo03" ]="vo/npc/female01/ammo03.wav" vox_citizen_female[ "ammo04" ]="vo/npc/female01/ammo04.wav" vox_citizen_female[ "ammo05" ]="vo/npc/female01/ammo05.wav" vox_citizen_female[ "answer01" ]="vo/npc/female01/answer01.wav" vox_citizen_female[ "answer02" ]="vo/npc/female01/answer02.wav" vox_citizen_female[ "answer03" ]="vo/npc/female01/answer03.wav" vox_citizen_female[ "answer04" ]="vo/npc/female01/answer04.wav" vox_citizen_female[ "answer05" ]="vo/npc/female01/answer05.wav" vox_citizen_female[ "answer07" ]="vo/npc/female01/answer07.wav" vox_citizen_female[ "answer08" ]="vo/npc/female01/answer08.wav" vox_citizen_female[ "answer09" ]="vo/npc/female01/answer09.wav" vox_citizen_female[ "answer10" ]="vo/npc/female01/answer10.wav" vox_citizen_female[ "answer11" ]="vo/npc/female01/answer11.wav" vox_citizen_female[ "answer12" ]="vo/npc/female01/answer12.wav" vox_citizen_female[ "answer13" ]="vo/npc/female01/answer13.wav" vox_citizen_female[ "answer14" ]="vo/npc/female01/answer14.wav" vox_citizen_female[ "answer15" ]="vo/npc/female01/answer15.wav" vox_citizen_female[ "answer16" ]="vo/npc/female01/answer16.wav" vox_citizen_female[ "answer17" ]="vo/npc/female01/answer17.wav" vox_citizen_female[ "answer18" ]="vo/npc/female01/answer18.wav" vox_citizen_female[ "answer19" ]="vo/npc/female01/answer19.wav" vox_citizen_female[ "answer20" ]="vo/npc/female01/answer20.wav" vox_citizen_female[ "answer21" ]="vo/npc/female01/answer21.wav" vox_citizen_female[ "answer22" ]="vo/npc/female01/answer22.wav" vox_citizen_female[ "answer23" ]="vo/npc/female01/answer23.wav" vox_citizen_female[ "answer24" ]="vo/npc/female01/answer24.wav" vox_citizen_female[ "answer25" ]="vo/npc/female01/answer25.wav" vox_citizen_female[ "answer26" ]="vo/npc/female01/answer26.wav" vox_citizen_female[ "answer27" ]="vo/npc/female01/answer27.wav" vox_citizen_female[ "answer28" ]="vo/npc/female01/answer28.wav" vox_citizen_female[ "answer29" ]="vo/npc/female01/answer29.wav" vox_citizen_female[ "answer30" ]="vo/npc/female01/answer30.wav" vox_citizen_female[ "answer31" ]="vo/npc/female01/answer31.wav" vox_citizen_female[ "answer32" ]="vo/npc/female01/answer32.wav" vox_citizen_female[ "answer33" ]="vo/npc/female01/answer33.wav" vox_citizen_female[ "answer34" ]="vo/npc/female01/answer34.wav" vox_citizen_female[ "answer35" ]="vo/npc/female01/answer35.wav" vox_citizen_female[ "answer36" ]="vo/npc/female01/answer36.wav" vox_citizen_female[ "answer37" ]="vo/npc/female01/answer37.wav" vox_citizen_female[ "answer38" ]="vo/npc/female01/answer38.wav" vox_citizen_female[ "answer39" ]="vo/npc/female01/answer39.wav" vox_citizen_female[ "answer40" ]="vo/npc/female01/answer40.wav" vox_citizen_female[ "behindyou01" ]="vo/npc/female01/behindyou01.wav" vox_citizen_female[ "behindyou02" ]="vo/npc/female01/behindyou02.wav" vox_citizen_female[ "busy02" ]="vo/npc/female01/busy02.wav" vox_citizen_female[ "cit_dropper01" ]="vo/npc/female01/cit_dropper01.wav" vox_citizen_female[ "cit_dropper04" ]="vo/npc/female01/cit_dropper04.wav" vox_citizen_female[ "civilprotection01" ]="vo/npc/female01/civilprotection01.wav" vox_citizen_female[ "civilprotection02" ]="vo/npc/female01/civilprotection02.wav" vox_citizen_female[ "combine01" ]="vo/npc/female01/combine01.wav" vox_citizen_female[ "combine02" ]="vo/npc/female01/combine02.wav" vox_citizen_female[ "coverwhilereload01" ]="vo/npc/female01/coverwhilereload01.wav" vox_citizen_female[ "coverwhilereload02" ]="vo/npc/female01/coverwhilereload02.wav" vox_citizen_female[ "cps01" ]="vo/npc/female01/cps01.wav" vox_citizen_female[ "cps02" ]="vo/npc/female01/cps02.wav" vox_citizen_female[ "docfreeman01" ]="vo/npc/female01/docfreeman01.wav" vox_citizen_female[ "docfreeman02" ]="vo/npc/female01/docfreeman02.wav" vox_citizen_female[ "doingsomething" ]="vo/npc/female01/doingsomething.wav" vox_citizen_female[ "dontforgetreload01" ]="vo/npc/female01/dontforgetreload01.wav" vox_citizen_female[ "excuseme01" ]="vo/npc/female01/excuseme01.wav" vox_citizen_female[ "excuseme02" ]="vo/npc/female01/excuseme02.wav" vox_citizen_female[ "fantastic01" ]="vo/npc/female01/fantastic01.wav" vox_citizen_female[ "fantastic02" ]="vo/npc/female01/fantastic02.wav" vox_citizen_female[ "finally" ]="vo/npc/female01/finally.wav" vox_citizen_female[ "freeman" ]="vo/npc/female01/freeman.wav" vox_citizen_female[ "getdown02" ]="vo/npc/female01/getdown02.wav" vox_citizen_female[ "getgoingsoon" ]="vo/npc/female01/getgoingsoon.wav" vox_citizen_female[ "gethellout" ]="vo/npc/female01/gethellout.wav" vox_citizen_female[ "goodgod" ]="vo/npc/female01/goodgod.wav" vox_citizen_female[ "gordead_ans01" ]="vo/npc/female01/gordead_ans01.wav" vox_citizen_female[ "gordead_ans02" ]="vo/npc/female01/gordead_ans02.wav" vox_citizen_female[ "gordead_ans03" ]="vo/npc/female01/gordead_ans03.wav" vox_citizen_female[ "gordead_ans04" ]="vo/npc/female01/gordead_ans04.wav" vox_citizen_female[ "gordead_ans05" ]="vo/npc/female01/gordead_ans05.wav" vox_citizen_female[ "gordead_ans06" ]="vo/npc/female01/gordead_ans06.wav" vox_citizen_female[ "gordead_ans07" ]="vo/npc/female01/gordead_ans07.wav" vox_citizen_female[ "gordead_ans08" ]="vo/npc/female01/gordead_ans08.wav" vox_citizen_female[ "gordead_ans09" ]="vo/npc/female01/gordead_ans09.wav" vox_citizen_female[ "gordead_ans10" ]="vo/npc/female01/gordead_ans10.wav" vox_citizen_female[ "gordead_ans11" ]="vo/npc/female01/gordead_ans11.wav" vox_citizen_female[ "gordead_ans12" ]="vo/npc/female01/gordead_ans12.wav" vox_citizen_female[ "gordead_ans13" ]="vo/npc/female01/gordead_ans13.wav" vox_citizen_female[ "gordead_ans14" ]="vo/npc/female01/gordead_ans14.wav" vox_citizen_female[ "gordead_ans15" ]="vo/npc/female01/gordead_ans15.wav" vox_citizen_female[ "gordead_ans16" ]="vo/npc/female01/gordead_ans16.wav" vox_citizen_female[ "gordead_ans17" ]="vo/npc/female01/gordead_ans17.wav" vox_citizen_female[ "gordead_ans18" ]="vo/npc/female01/gordead_ans18.wav" vox_citizen_female[ "gordead_ans19" ]="vo/npc/female01/gordead_ans19.wav" vox_citizen_female[ "gordead_ans20" ]="vo/npc/female01/gordead_ans20.wav" vox_citizen_female[ "gordead_ques01" ]="vo/npc/female01/gordead_ques01.wav" vox_citizen_female[ "gordead_ques02" ]="vo/npc/female01/gordead_ques02.wav" vox_citizen_female[ "gordead_ques04" ]="vo/npc/female01/gordead_ques04.wav" vox_citizen_female[ "gordead_ques05" ]="vo/npc/female01/gordead_ques05.wav" vox_citizen_female[ "gordead_ques06" ]="vo/npc/female01/gordead_ques06.wav" vox_citizen_female[ "gordead_ques07" ]="vo/npc/female01/gordead_ques07.wav" vox_citizen_female[ "gordead_ques08" ]="vo/npc/female01/gordead_ques08.wav" vox_citizen_female[ "gordead_ques10" ]="vo/npc/female01/gordead_ques10.wav" vox_citizen_female[ "gordead_ques11" ]="vo/npc/female01/gordead_ques11.wav" vox_citizen_female[ "gordead_ques12" ]="vo/npc/female01/gordead_ques12.wav" vox_citizen_female[ "gordead_ques13" ]="vo/npc/female01/gordead_ques13.wav" vox_citizen_female[ "gordead_ques14" ]="vo/npc/female01/gordead_ques14.wav" vox_citizen_female[ "gordead_ques15" ]="vo/npc/female01/gordead_ques15.wav" vox_citizen_female[ "gordead_ques16" ]="vo/npc/female01/gordead_ques16.wav" vox_citizen_female[ "gordead_ques17" ]="vo/npc/female01/gordead_ques17.wav" vox_citizen_female[ "gotone01" ]="vo/npc/female01/gotone01.wav" vox_citizen_female[ "gotone02" ]="vo/npc/female01/gotone02.wav" vox_citizen_female[ "gottareload01" ]="vo/npc/female01/gottareload01.wav" vox_citizen_female[ "gunship02" ]="vo/npc/female01/gunship02.wav" vox_citizen_female[ "hacks01" ]="vo/npc/female01/hacks01.wav" vox_citizen_female[ "hacks02" ]="vo/npc/female01/hacks02.wav" vox_citizen_female[ "headcrabs01" ]="vo/npc/female01/headcrabs01.wav" vox_citizen_female[ "headcrabs02" ]="vo/npc/female01/headcrabs02.wav" vox_citizen_female[ "headsup01" ]="vo/npc/female01/headsup01.wav" vox_citizen_female[ "headsup02" ]="vo/npc/female01/headsup02.wav" vox_citizen_female[ "health01" ]="vo/npc/female01/health01.wav" vox_citizen_female[ "health02" ]="vo/npc/female01/health02.wav" vox_citizen_female[ "health03" ]="vo/npc/female01/health03.wav" vox_citizen_female[ "health04" ]="vo/npc/female01/health04.wav" vox_citizen_female[ "health05" ]="vo/npc/female01/health05.wav" vox_citizen_female[ "hellodrfm01" ]="vo/npc/female01/hellodrfm01.wav" vox_citizen_female[ "hellodrfm02" ]="vo/npc/female01/hellodrfm02.wav" vox_citizen_female[ "help01" ]="vo/npc/female01/help01.wav" vox_citizen_female[ "herecomehacks01" ]="vo/npc/female01/herecomehacks01.wav" vox_citizen_female[ "herecomehacks02" ]="vo/npc/female01/herecomehacks02.wav" vox_citizen_female[ "heretheycome01" ]="vo/npc/female01/heretheycome01.wav" vox_citizen_female[ "heretohelp01" ]="vo/npc/female01/heretohelp01.wav" vox_citizen_female[ "heretohelp02" ]="vo/npc/female01/heretohelp02.wav" vox_citizen_female[ "heydoc01" ]="vo/npc/female01/heydoc01.wav" vox_citizen_female[ "heydoc02" ]="vo/npc/female01/heydoc02.wav" vox_citizen_female[ "hi01" ]="vo/npc/female01/hi01.wav" vox_citizen_female[ "hi02" ]="vo/npc/female01/hi02.wav" vox_citizen_female[ "hitingut01" ]="vo/npc/female01/hitingut01.wav" vox_citizen_female[ "hitingut02" ]="vo/npc/female01/hitingut02.wav" vox_citizen_female[ "holddownspot01" ]="vo/npc/female01/holddownspot01.wav" vox_citizen_female[ "holddownspot02" ]="vo/npc/female01/holddownspot02.wav" vox_citizen_female[ "illstayhere01" ]="vo/npc/female01/illstayhere01.wav" vox_citizen_female[ "imhurt01" ]="vo/npc/female01/imhurt01.wav" vox_citizen_female[ "imhurt02" ]="vo/npc/female01/imhurt02.wav" vox_citizen_female[ "imstickinghere01" ]="vo/npc/female01/imstickinghere01.wav" vox_citizen_female[ "incoming02" ]="vo/npc/female01/incoming02.wav" vox_citizen_female[ "itsamanhack01" ]="vo/npc/female01/itsamanhack01.wav" vox_citizen_female[ "itsamanhack02" ]="vo/npc/female01/itsamanhack02.wav" vox_citizen_female[ "leadon01" ]="vo/npc/female01/leadon01.wav" vox_citizen_female[ "leadon02" ]="vo/npc/female01/leadon02.wav" vox_citizen_female[ "leadtheway01" ]="vo/npc/female01/leadtheway01.wav" vox_citizen_female[ "leadtheway02" ]="vo/npc/female01/leadtheway02.wav" vox_citizen_female[ "letsgo01" ]="vo/npc/female01/letsgo01.wav" vox_citizen_female[ "letsgo02" ]="vo/npc/female01/letsgo02.wav" vox_citizen_female[ "likethat" ]="vo/npc/female01/likethat.wav" vox_citizen_female[ "littlecorner01" ]="vo/npc/female01/littlecorner01.wav" vox_citizen_female[ "lookoutfm01" ]="vo/npc/female01/lookoutfm01.wav" vox_citizen_female[ "lookoutfm02" ]="vo/npc/female01/lookoutfm02.wav" vox_citizen_female[ "moan01" ]="vo/npc/female01/moan01.wav" vox_citizen_female[ "moan02" ]="vo/npc/female01/moan02.wav" vox_citizen_female[ "moan03" ]="vo/npc/female01/moan03.wav" vox_citizen_female[ "moan04" ]="vo/npc/female01/moan04.wav" vox_citizen_female[ "moan05" ]="vo/npc/female01/moan05.wav" vox_citizen_female[ "myarm01" ]="vo/npc/female01/myarm01.wav" vox_citizen_female[ "myarm02" ]="vo/npc/female01/myarm02.wav" vox_citizen_female[ "mygut02" ]="vo/npc/female01/mygut02.wav" vox_citizen_female[ "myleg01" ]="vo/npc/female01/myleg01.wav" vox_citizen_female[ "myleg02" ]="vo/npc/female01/myleg02.wav" vox_citizen_female[ "nice01" ]="vo/npc/female01/nice01.wav" vox_citizen_female[ "nice02" ]="vo/npc/female01/nice02.wav" vox_citizen_female[ "no01" ]="vo/npc/female01/no01.wav" vox_citizen_female[ "no02" ]="vo/npc/female01/no02.wav" vox_citizen_female[ "notthemanithought01" ]="vo/npc/female01/notthemanithought01.wav" vox_citizen_female[ "notthemanithought02" ]="vo/npc/female01/notthemanithought02.wav" vox_citizen_female[ "ohno" ]="vo/npc/female01/ohno.wav" vox_citizen_female[ "ok01" ]="vo/npc/female01/ok01.wav" vox_citizen_female[ "ok02" ]="vo/npc/female01/ok02.wav" vox_citizen_female[ "okimready01" ]="vo/npc/female01/okimready01.wav" vox_citizen_female[ "okimready02" ]="vo/npc/female01/okimready02.wav" vox_citizen_female[ "okimready03" ]="vo/npc/female01/okimready03.wav" vox_citizen_female[ "onyourside" ]="vo/npc/female01/onyourside.wav" vox_citizen_female[ "outofyourway02" ]="vo/npc/female01/outofyourway02.wav" vox_citizen_female[ "overhere01" ]="vo/npc/female01/overhere01.wav" vox_citizen_female[ "overthere01" ]="vo/npc/female01/overthere01.wav" vox_citizen_female[ "overthere02" ]="vo/npc/female01/overthere02.wav" vox_citizen_female[ "ow01" ]="vo/npc/female01/ow01.wav" vox_citizen_female[ "ow02" ]="vo/npc/female01/ow02.wav" vox_citizen_female[ "pain01" ]="vo/npc/female01/pain01.wav" vox_citizen_female[ "pain02" ]="vo/npc/female01/pain02.wav" vox_citizen_female[ "pain03" ]="vo/npc/female01/pain03.wav" vox_citizen_female[ "pain04" ]="vo/npc/female01/pain04.wav" vox_citizen_female[ "pain05" ]="vo/npc/female01/pain05.wav" vox_citizen_female[ "pain06" ]="vo/npc/female01/pain06.wav" vox_citizen_female[ "pain07" ]="vo/npc/female01/pain07.wav" vox_citizen_female[ "pain08" ]="vo/npc/female01/pain08.wav" vox_citizen_female[ "pain09" ]="vo/npc/female01/pain09.wav" vox_citizen_female[ "pardonme01" ]="vo/npc/female01/pardonme01.wav" vox_citizen_female[ "pardonme02" ]="vo/npc/female01/pardonme02.wav" vox_citizen_female[ "question01" ]="vo/npc/female01/question01.wav" vox_citizen_female[ "question02" ]="vo/npc/female01/question02.wav" vox_citizen_female[ "question03" ]="vo/npc/female01/question03.wav" vox_citizen_female[ "question04" ]="vo/npc/female01/question04.wav" vox_citizen_female[ "question05" ]="vo/npc/female01/question05.wav" vox_citizen_female[ "question06" ]="vo/npc/female01/question06.wav" vox_citizen_female[ "question07" ]="vo/npc/female01/question07.wav" vox_citizen_female[ "question08" ]="vo/npc/female01/question08.wav" vox_citizen_female[ "question09" ]="vo/npc/female01/question09.wav" vox_citizen_female[ "question10" ]="vo/npc/female01/question10.wav" vox_citizen_female[ "question11" ]="vo/npc/female01/question11.wav" vox_citizen_female[ "question12" ]="vo/npc/female01/question12.wav" vox_citizen_female[ "question13" ]="vo/npc/female01/question13.wav" vox_citizen_female[ "question14" ]="vo/npc/female01/question14.wav" vox_citizen_female[ "question15" ]="vo/npc/female01/question15.wav" vox_citizen_female[ "question16" ]="vo/npc/female01/question16.wav" vox_citizen_female[ "question17" ]="vo/npc/female01/question17.wav" vox_citizen_female[ "question18" ]="vo/npc/female01/question18.wav" vox_citizen_female[ "question19" ]="vo/npc/female01/question19.wav" vox_citizen_female[ "question20" ]="vo/npc/female01/question20.wav" vox_citizen_female[ "question21" ]="vo/npc/female01/question21.wav" vox_citizen_female[ "question22" ]="vo/npc/female01/question22.wav" vox_citizen_female[ "question23" ]="vo/npc/female01/question23.wav" vox_citizen_female[ "question25" ]="vo/npc/female01/question25.wav" vox_citizen_female[ "question26" ]="vo/npc/female01/question26.wav" vox_citizen_female[ "question27" ]="vo/npc/female01/question27.wav" vox_citizen_female[ "question28" ]="vo/npc/female01/question28.wav" vox_citizen_female[ "question29" ]="vo/npc/female01/question29.wav" vox_citizen_female[ "question30" ]="vo/npc/female01/question30.wav" vox_citizen_female[ "question31" ]="vo/npc/female01/question31.wav" vox_citizen_female[ "readywhenyouare01" ]="vo/npc/female01/readywhenyouare01.wav" vox_citizen_female[ "readywhenyouare02" ]="vo/npc/female01/readywhenyouare02.wav" vox_citizen_female[ "reloadfm01" ]="vo/npc/female01/reloadfm01.wav" vox_citizen_female[ "reloadfm02" ]="vo/npc/female01/reloadfm02.wav" vox_citizen_female[ "runforyourlife01" ]="vo/npc/female01/runforyourlife01.wav" vox_citizen_female[ "runforyourlife02" ]="vo/npc/female01/runforyourlife02.wav" vox_citizen_female[ "scanners01" ]="vo/npc/female01/scanners01.wav" vox_citizen_female[ "scanners02" ]="vo/npc/female01/scanners02.wav" vox_citizen_female[ "sorry01" ]="vo/npc/female01/sorry01.wav" vox_citizen_female[ "sorry02" ]="vo/npc/female01/sorry02.wav" vox_citizen_female[ "sorry03" ]="vo/npc/female01/sorry03.wav" vox_citizen_female[ "sorrydoc01" ]="vo/npc/female01/sorrydoc01.wav" vox_citizen_female[ "sorrydoc02" ]="vo/npc/female01/sorrydoc02.wav" vox_citizen_female[ "sorrydoc04" ]="vo/npc/female01/sorrydoc04.wav" vox_citizen_female[ "sorryfm01" ]="vo/npc/female01/sorryfm01.wav" vox_citizen_female[ "sorryfm02" ]="vo/npc/female01/sorryfm02.wav" vox_citizen_female[ "squad_affirm01" ]="vo/npc/female01/squad_affirm01.wav" vox_citizen_female[ "squad_affirm02" ]="vo/npc/female01/squad_affirm02.wav" vox_citizen_female[ "squad_affirm03" ]="vo/npc/female01/squad_affirm03.wav" vox_citizen_female[ "squad_affirm04" ]="vo/npc/female01/squad_affirm04.wav" vox_citizen_female[ "squad_affirm05" ]="vo/npc/female01/squad_affirm05.wav" vox_citizen_female[ "squad_affirm06" ]="vo/npc/female01/squad_affirm06.wav" vox_citizen_female[ "squad_affirm07" ]="vo/npc/female01/squad_affirm07.wav" vox_citizen_female[ "squad_affirm08" ]="vo/npc/female01/squad_affirm08.wav" vox_citizen_female[ "squad_affirm09" ]="vo/npc/female01/squad_affirm09.wav" vox_citizen_female[ "squad_approach01" ]="vo/npc/female01/squad_approach01.wav" vox_citizen_female[ "squad_approach02" ]="vo/npc/female01/squad_approach02.wav" vox_citizen_female[ "squad_approach03" ]="vo/npc/female01/squad_approach03.wav" vox_citizen_female[ "squad_approach04" ]="vo/npc/female01/squad_approach04.wav" vox_citizen_female[ "squad_away01" ]="vo/npc/female01/squad_away01.wav" vox_citizen_female[ "squad_away02" ]="vo/npc/female01/squad_away02.wav" vox_citizen_female[ "squad_away03" ]="vo/npc/female01/squad_away03.wav" vox_citizen_female[ "squad_follow01" ]="vo/npc/female01/squad_follow01.wav" vox_citizen_female[ "squad_follow02" ]="vo/npc/female01/squad_follow02.wav" vox_citizen_female[ "squad_follow03" ]="vo/npc/female01/squad_follow03.wav" vox_citizen_female[ "squad_follow04" ]="vo/npc/female01/squad_follow04.wav" vox_citizen_female[ "squad_greet01" ]="vo/npc/female01/squad_greet01.wav" vox_citizen_female[ "squad_greet02" ]="vo/npc/female01/squad_greet02.wav" vox_citizen_female[ "squad_greet04" ]="vo/npc/female01/squad_greet04.wav" vox_citizen_female[ "squad_reinforce_group01" ]="vo/npc/female01/squad_reinforce_group01.wav" vox_citizen_female[ "squad_reinforce_group02" ]="vo/npc/female01/squad_reinforce_group02.wav" vox_citizen_female[ "squad_reinforce_group03" ]="vo/npc/female01/squad_reinforce_group03.wav" vox_citizen_female[ "squad_reinforce_group04" ]="vo/npc/female01/squad_reinforce_group04.wav" vox_citizen_female[ "squad_reinforce_single01" ]="vo/npc/female01/squad_reinforce_single01.wav" vox_citizen_female[ "squad_reinforce_single02" ]="vo/npc/female01/squad_reinforce_single02.wav" vox_citizen_female[ "squad_reinforce_single03" ]="vo/npc/female01/squad_reinforce_single03.wav" vox_citizen_female[ "squad_reinforce_single04" ]="vo/npc/female01/squad_reinforce_single04.wav" vox_citizen_female[ "squad_train01" ]="vo/npc/female01/squad_train01.wav" vox_citizen_female[ "squad_train02" ]="vo/npc/female01/squad_train02.wav" vox_citizen_female[ "squad_train03" ]="vo/npc/female01/squad_train03.wav" vox_citizen_female[ "squad_train04" ]="vo/npc/female01/squad_train04.wav" vox_citizen_female[ "startle01" ]="vo/npc/female01/startle01.wav" vox_citizen_female[ "startle02" ]="vo/npc/female01/startle02.wav" vox_citizen_female[ "stopitfm" ]="vo/npc/female01/stopitfm.wav" vox_citizen_female[ "strider" ]="vo/npc/female01/strider.wav" vox_citizen_female[ "strider_run" ]="vo/npc/female01/strider_run.wav" vox_citizen_female[ "takecover02" ]="vo/npc/female01/takecover02.wav" vox_citizen_female[ "thehacks01" ]="vo/npc/female01/thehacks01.wav" vox_citizen_female[ "thehacks02" ]="vo/npc/female01/thehacks02.wav" vox_citizen_female[ "thislldonicely01" ]="vo/npc/female01/thislldonicely01.wav" vox_citizen_female[ "uhoh" ]="vo/npc/female01/uhoh.wav" vox_citizen_female[ "upthere01" ]="vo/npc/female01/upthere01.wav" vox_citizen_female[ "upthere02" ]="vo/npc/female01/upthere02.wav" vox_citizen_female[ "vanswer01" ]="vo/npc/female01/vanswer01.wav" vox_citizen_female[ "vanswer02" ]="vo/npc/female01/vanswer02.wav" vox_citizen_female[ "vanswer03" ]="vo/npc/female01/vanswer03.wav" vox_citizen_female[ "vanswer04" ]="vo/npc/female01/vanswer04.wav" vox_citizen_female[ "vanswer05" ]="vo/npc/female01/vanswer05.wav" vox_citizen_female[ "vanswer06" ]="vo/npc/female01/vanswer06.wav" vox_citizen_female[ "vanswer07" ]="vo/npc/female01/vanswer07.wav" vox_citizen_female[ "vanswer08" ]="vo/npc/female01/vanswer08.wav" vox_citizen_female[ "vanswer09" ]="vo/npc/female01/vanswer09.wav" vox_citizen_female[ "vanswer10" ]="vo/npc/female01/vanswer10.wav" vox_citizen_female[ "vanswer11" ]="vo/npc/female01/vanswer11.wav" vox_citizen_female[ "vanswer12" ]="vo/npc/female01/vanswer12.wav" vox_citizen_female[ "vanswer13" ]="vo/npc/female01/vanswer13.wav" vox_citizen_female[ "vanswer14" ]="vo/npc/female01/vanswer14.wav" vox_citizen_female[ "vquestion01" ]="vo/npc/female01/vquestion01.wav" vox_citizen_female[ "vquestion02" ]="vo/npc/female01/vquestion02.wav" vox_citizen_female[ "vquestion03" ]="vo/npc/female01/vquestion03.wav" vox_citizen_female[ "vquestion04" ]="vo/npc/female01/vquestion04.wav" vox_citizen_female[ "vquestion05" ]="vo/npc/female01/vquestion05.wav" vox_citizen_female[ "vquestion06" ]="vo/npc/female01/vquestion06.wav" vox_citizen_female[ "vquestion07" ]="vo/npc/female01/vquestion07.wav" vox_citizen_female[ "waitingsomebody" ]="vo/npc/female01/waitingsomebody.wav" vox_citizen_female[ "watchout" ]="vo/npc/female01/watchout.wav" vox_citizen_female[ "watchwhat" ]="vo/npc/female01/watchwhat.wav" vox_citizen_female[ "wetrustedyou01" ]="vo/npc/female01/wetrustedyou01.wav" vox_citizen_female[ "wetrustedyou02" ]="vo/npc/female01/wetrustedyou02.wav" vox_citizen_female[ "whoops01" ]="vo/npc/female01/whoops01.wav" vox_citizen_female[ "yeah02" ]="vo/npc/female01/yeah02.wav" vox_citizen_female[ "youdbetterreload01" ]="vo/npc/female01/youdbetterreload01.wav" vox_citizen_female[ "yougotit02" ]="vo/npc/female01/yougotit02.wav" vox_citizen_female[ "zombies01" ]="vo/npc/female01/zombies01.wav" vox_citizen_female[ "zombies02" ]="vo/npc/female01/zombies02.wav" pk_pills.registerVox("citf",vox_citizen_female)
-- Validation script for bootloader storage slots local slot0_enable = slc.config('SLOT0_ENABLE') local slot1_enable = slc.config('SLOT1_ENABLE') local slot2_enable = slc.config('SLOT2_ENABLE') local slot0_size = slc.config('SLOT0_SIZE') local slot1_size = slc.config('SLOT1_SIZE') local slot2_size = slc.config('SLOT2_SIZE') local slot0_start_addr = slc.config('SLOT0_START') local slot1_start_addr = slc.config('SLOT1_START') local slot2_start_addr = slc.config('SLOT2_START') -- Default flash page size is set to 2Kb. This variable is updated later based on the device family local flash_page_size = 2048 slotStartAddress = {slot0_start_addr.value,slot1_start_addr.value,slot2_start_addr.value} isSlotEnabled = {slot0_enable.value,slot1_enable.value,slot2_enable.value} -- Set the correct flash page size based on the device family -- Default flash page size is set to 2Kb which is the flash page size for device_series_1 if slc.is_provided("device_sdid_100") then flash_page_size = 4096 elseif slc.is_provided("device_series_2") then flash_page_size = 8192 end if (not slc.is_selected("bootloader_spiflash_storage")) and (not slc.is_selected("bootloader_spiflash_storage_sfdp")) then -- Check is slots are aligned to flash page size for slotID = 1,3,1 do -- Check alignment for all enabled slots if isSlotEnabled[slotID] == "1" then if tonumber(slotStartAddress[slotID],10) % flash_page_size ~= 0 then validation.warning('Slot '.. tostring(tonumber(slotID-1)) .. " is not page aligned. Try aligning the slot start address to a " .. tostring(flash_page_size) .. "bytes boundary", validation.target_for_project()) end end end end -- Check for storage slot overlaps -- No need to check for slot0 as there needs to be atleast 2 slots enabled to check for overlap if (slot0_enable.value == "1") and (slot1_enable.value == "1") then -- slot 0 and slot 1 are enabled -- Conditions to detect potential overlaps b/w slot0 and slot1 if tonumber(slot1_start_addr.value,10) == tonumber(slot0_start_addr.value,10) then validation.error('Overlap detected between slot0 and slot1', validation.target_for_project()) end if (tonumber(slot1_start_addr.value,10) > (tonumber(slot0_start_addr.value,10))) and ((tonumber(slot0_start_addr.value,10) + tonumber(slot0_size.value,10)) > tonumber(slot1_start_addr.value,10)) then validation.error('Overlap detected between storage slot 0 and slot 1',validation.target_for_project()) end if ((tonumber(slot0_start_addr.value,10)) > (tonumber(slot1_start_addr.value,10))) and ((tonumber(slot1_start_addr.value,10) + tonumber(slot1_size.value,10)) > tonumber(slot0_start_addr.value,10)) then validation.error('Overlap detected between storage slot 0 and slot 1',validation.target_for_project()) end end if slot0_enable.value == "1" and slot1_enable.value == "1" and slot2_enable.value == "1" then -- slot 0,slot 1 and slot 2 are enabled -- Conditions to detect potential overlaps b/w slot1 and slot2 if tonumber(slot1_start_addr.value,10) == tonumber(slot2_start_addr.value,10) then validation.error('Overlap detected between storage slot 1 and slot 2',validation.target_for_project()) end if ((tonumber(slot2_start_addr.value,10)) > (tonumber(slot1_start_addr.value,10))) and ((tonumber(slot1_start_addr.value,10) + tonumber(slot1_size.value,10)) > tonumber(slot2_start_addr.value,10)) then validation.error('Overlap detected between storage slot 1 and slot 2',validation.target_for_project()) end if ((tonumber(slot1_start_addr.value,10)) > (tonumber(slot2_start_addr.value,10))) and ((tonumber(slot2_start_addr.value,10) + tonumber(slot2_size.value,10)) > tonumber(slot1_start_addr.value,10)) then validation.error('Overlap detected between storage slot 1 and slot 2',validation.target_for_project()) end -- Conditions to detect potential overlaps b/w slot0 and slot2 if tonumber(slot0_start_addr.value,10) == tonumber(slot2_start_addr.value,10) then validation.error('Overlap detected between storage slot 0 and slot 2',validation.target_for_project()) end if ((tonumber(slot2_start_addr.value,10)) > (tonumber(slot0_start_addr.value,10))) and ((tonumber(slot0_start_addr.value,10) + tonumber(slot0_size.value,10)) > tonumber(slot2_start_addr.value,10)) then validation.error('Overlap detected between storage slot 0 and slot 2',validation.target_for_project()) end if ((tonumber(slot0_start_addr.value,10)) > (tonumber(slot2_start_addr.value,10))) and ((tonumber(slot2_start_addr.value,10) + tonumber(slot2_size.value,10)) > tonumber(slot0_start_addr.value,10)) then validation.error('Overlap detected between storage slot 0 and slot 2',validation.target_for_project()) end end
--- Handle keyboard input in Löve2d. -- keysetup -- action map<id, list<input> > -- axis map<id, list<{float,input}> > -- -- keyconfig map<id, list<input> > -- -- id string -- unique between action and axis -- -- input -- KeyConstant -- ":" .. Scancode -- "g:" .. GamepadButton -- "a:" .. GamepadAxis -- "j:" .. buttonId -- "x:" .. axisId -- "h:" .. hatId .. ":" .. JoystickHat local input = {} local byteColon = string.byte(":") local byteMapping = { [string.byte("g")] = "gamepadButton", [string.byte("a")] = "gamepadAxis" } local function processMapping(v) local a, b = string.byte(v, 1, 2) if a == byteColon then return input.mappings.scanCode, string.sub(v, 2) elseif b == byteColon then local m = byteMapping[a] if m then return input.mappings[m], string.sub(v, 3) end --[[m = byteMappingNum[a] if m then return input.mappings[m], tonumber(string.sub(v, 3)) elseif a == byteHat then local id, val = string.match(v, "([^:]):(.*))", 3) id = tonumber(id) local hat = input.mappings.joystickHat[id] if not hat then hat = {}; input.mappings.joystickHat[id] = hat end return hat, val end]] else return input.mappings.keyConstant, inputValue end end function input.parseSetup(setup, config) assert(type(setup) == "table", "Invalid argument 'setup' expected type table.") config = config or {} assert(type(config) == "table", "Invalid argument 'config' expected type table or nil.") local action, axis = setup.action or {}, setup.axis or {} assert(type(action) == "table", "Keysetup.action must be a table or undeclared.") assert(type(axis) == "table", "Keysetup.axis must be a table or undeclared.") input.mappings = { keyConstant = {}, scanCode = {}, gamepadButton = {}, gamepadAxis = {}, joystick = {} } input.handlers = {} for i,v in pairs(action) do local keys = config[i] or v local entry = { keys = keys, listeners = {} } for _,key in ipairs(keys) do local tbl, index = processMapping(v) assert(tbl, "Invalid mapping: '" .. v .. "'.") tbl[index] = entry end input.handlers[i] = entry end end return function() return input end
ETaxiConfig = ETaxiConfig or {} //Are we going to use a NPC or a Entity(prop) ETaxiConfig.NPCType = "ent" // Default = "ent"; Available choices are: ent, npc - They must be lowercased //If the booth is an ent we're going to use this model. ETaxiConfig.ENTModel = "models/props_equipment/phone_booth.mdl" // Default = "models/props_equipment/phone_booth.mdl"; Don't touch this if you're going to be using an NPC instead. //If the booth is an NPC we're going to use this model. ETaxiConfig.NPCModel = "models/Humans/Group01/Male_04.mdl" // Default = "models/Humans/Group01/Male_04.mdl"; Don't touch this if you're going to be using an ENT instead. //If you want to change the cost then change this to a number, e.g 50. Keep it at false if you're not going to use it. ETaxiConfig.Cost = false // Default = false; You can change this to whatever number you want. //If you want to change the distance then change this to a number, e.g 1500. Keep it at false if you're not going to use it. ETaxiConfig.Dist = false // Default = false; You can change this to whatever number you want. //What should we display ontop of our booth? ETaxiConfig.Header = "Taxi miger" // Default = "Taxi Booth"
local PluginRoot = script.Parent.Parent.Parent.Parent local Roact: Roact = require(PluginRoot.Packages.Roact) local ThemeProvider = require(script.Parent.Parent.ThemeProvider) local ResultsCanvas = require(script.Parent.ResultsCanvas) local ResultsList = Roact.Component:extend("ResultsList") function ResultsList:render() return ThemeProvider.withTheme(function(theme: StudioTheme) return Roact.createElement("Frame", { AnchorPoint = Vector2.new(0, 1), BackgroundTransparency = 1, BorderSizePixel = 0, -- Size = UDim2.new(1, 0, 1, -64), Size = UDim2.fromScale(1, 1), Position = UDim2.fromScale(0, 1), ClipsDescendants = true, }, { ScrollBackground = Roact.createElement("Frame", { AnchorPoint = Vector2.new(1, 0), BackgroundColor3 = theme:GetColor("Border"), BorderSizePixel = 0, Position = UDim2.fromScale(1, 0), Size = UDim2.new(0, 16, 1, 0), ClipsDescendants = true, }), Canvas = Roact.createElement(ResultsCanvas), }) end) end return ResultsList
--[[ Copyright © 2021, Sjshovan (LoTekkie) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Yield nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Sjshovan (LoTekkie) BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --]] require 'os' ---------------------------------------------------------------------------------------------------- -- Variables ---------------------------------------------------------------------------------------------------- local chatColors = { primary = "\31\200%s", secondary = "\31\207%s", info = "\31\1%s", warn = "\31\140%s", danger = "\31\167%s", success = "\31\158%s" } ---------------------------------------------------------------------------------------------------- -- func: displayHelp -- desc: Show help table entries in the players chat log. ---------------------------------------------------------------------------------------------------- function displayHelp(table) for index, command in pairs(table) do displayResponse(command) end end ---------------------------------------------------------------------------------------------------- -- func: displayResponse -- desc: Show a message with the given color in the players chat log. ---------------------------------------------------------------------------------------------------- function displayResponse(response, color) color = color or chatColors.info print(strColor(response, color)) end ---------------------------------------------------------------------------------------------------- -- func: helpCommandEntry -- desc: Build a command description. ---------------------------------------------------------------------------------------------------- function helpCommandEntry(command, description) local shortName = strColor("yld", chatColors.primary) local command = strColor(command, chatColors.secondary) local sep = strColor("=>", chatColors.primary) local description = strColor(description, chatColors.info) return string.format("%s %s %s %s", shortName, command, sep, description) end ---------------------------------------------------------------------------------------------------- -- func: helpTypeEntry -- desc: Build a help description. ---------------------------------------------------------------------------------------------------- function helpTypeEntry(name, description) local name = strColor(name, chatColors.secondary) local sep = strColor("=>", chatColors.primary) local description = strColor(description, chatColors.info) return string.format("%s %s %s", name, sep, description) end ---------------------------------------------------------------------------------------------------- -- func: helpTitle -- desc: Build a help title. ---------------------------------------------------------------------------------------------------- function helpTitle(context) local context = strColor(context, chatColors.danger) return string.format("%s Help: %s", _addon.name, context) end ---------------------------------------------------------------------------------------------------- -- func: helpSeparator -- desc: Build a help separator. ---------------------------------------------------------------------------------------------------- function helpSeparator(character, count) local sep = '' for i = 1, count do sep = sep .. character end return strColor(sep, chatColors.warn) end ---------------------------------------------------------------------------------------------------- -- func: commandResponse -- desc: Build a command response. ---------------------------------------------------------------------------------------------------- function commandResponse(message, success) local responseColor = chatColors.success local responseType = 'Success' if not success then responseType = 'Error' responseColor = chatColors.danger end return string.format("%s: %s", strColor(responseType, responseColor), strColor(message, chatColors.info) ) end ---------------------------------------------------------------------------------------------------- -- func: sortKeysByAlphabet -- desc: Sort table keys alphabetically. ---------------------------------------------------------------------------------------------------- function table.sortKeysByAlphabet(t, desc) local ret = {} for k, v in pairs(t) do table.insert(ret, k) end if (desc) then table.sort(ret, function(a, b) return a:lower() < b:lower() end); else table.sort(ret, function(a, b) return a:lower() > b:lower() end); end return ret; end ---------------------------------------------------------------------------------------------------- -- func: sortKeysByLength -- desc: Sort table keys by string length. ---------------------------------------------------------------------------------------------------- function table.sortKeysByLength(t, desc) local ret = {} for k, v in pairs(t) do table.insert(ret, k) end if (desc) then table.sort(ret, function(a, b) return a:len() < b:len() end); else table.sort(ret, function(a, b) return a:len() > b:len() end); end return ret; end ---------------------------------------------------------------------------------------------------- -- func: sortReportsByDate -- desc: Sort the tables values by it time stamp strings. ---------------------------------------------------------------------------------------------------- function table.sortReportsByDate(t, desc) local ret = {} for k, v in pairs(t) do table.insert(ret, v) end local now = os.time(); if (desc) then table.sort(ret, function(a, b) local yA, mA, dA = string.match(string.gsub(string.match(a, "__(.*)__"), "_", "-"), "(%d%d%d%d)-?(%d?%d?)-?(%d?%d?)$"); local hA, miA, sA = string.match(string.gsub(string.match(a, ".*__(.*).log$"), "_", ":"), "(%d%d):?(%d?%d?):?(%d?%d?)$"); local yB, mB, dB = string.match(string.gsub(string.match(b, "__(.*)__"), "_", "-"), "(%d%d%d%d)-?(%d?%d?)-?(%d?%d?)$"); local hB, miB, sB = string.match(string.gsub(string.match(b, ".*__(.*).log$"), "_", ":"), "(%d%d):?(%d?%d?):?(%d?%d?)$"); local diffA = os.difftime(now, os.time{year=yA, month=mA, day=dA, hour=hA, min=miA, sec=sA}); local diffB = os.difftime(now, os.time{year=yB, month=mB, day=dB, hour=hB, min=miB, sec=sB}); return diffA < diffB end); else table.sort(ret, function(a, b) local yA, mA, dA = string.match(string.gsub(string.match(a, "__(.*)__"), "_", "-"), "(%d%d%d%d)-?(%d?%d?)-?(%d?%d?)$"); local hA, miA, sA = string.match(string.gsub(string.match(a, ".*__(.*).log$"), "_", ":"), "(%d%d):?(%d?%d?):?(%d?%d?)$"); local yB, mB, dB = string.match(string.gsub(string.match(b, "__(.*)__"), "_", "-"), "(%d%d%d%d)-?(%d?%d?)-?(%d?%d?)$"); local hB, miB, sB = string.match(string.gsub(string.match(b, ".*__(.*).log$"), "_", ":"), "(%d%d):?(%d?%d?):?(%d?%d?)$"); local diffA = os.difftime(now, os.time{year=yA, month=mA, day=dA, hour=hA, min=miA, sec=sA}); local diffB = os.difftime(now, os.time{year=yB, month=mB, day=dB, hour=hB, min=miB, sec=sB}); return diffA > diffB end); end return ret; end ---------------------------------------------------------------------------------------------------- -- func: getIndexFromKey -- desc: Obtain a table index from the given table key. ---------------------------------------------------------------------------------------------------- function table.getIndexFromKey(t, key) for _, k in ipairs(table.keys(t)) do if key == k then return _; end end return nil end ---------------------------------------------------------------------------------------------------- -- func: camelToTitle -- desc: Convert a camel case string to a title. ---------------------------------------------------------------------------------------------------- function string.camelToTitle(s) return string.gsub(string.upperfirst(s), "([A-Z][a-z]?)", " %1"):sub(2); end ---------------------------------------------------------------------------------------------------- -- func: lowerToTitle -- desc: Convert a lower case string to a title. ---------------------------------------------------------------------------------------------------- function string.lowerToTitle(s) s = string.gsub(" "..s, "%W%l", string.upper):sub(2); s = string.gsub(s, "('[A-Z])", string.lower); return s end ---------------------------------------------------------------------------------------------------- -- func: strColor -- desc: Add color to a string. ---------------------------------------------------------------------------------------------------- function strColor(str, color) return string.format(color, str) end ---------------------------------------------------------------------------------------------------- -- func: showToolTip -- desc: Shows a tooltip with imgui. ---------------------------------------------------------------------------------------------------- function imguiShowToolTip(text, enabled) if enabled then imgui.TextDisabled('(?)'); if (imgui.IsItemHovered()) then imgui.SetTooltip(text); end end return enabled end ---------------------------------------------------------------------------------------------------- -- func: imguiFullSep -- desc: Create a multi-line separator. ---------------------------------------------------------------------------------------------------- function imguiFullSep() imgui.Spacing(); imgui.Separator(); imgui.Spacing(); end ---------------------------------------------------------------------------------------------------- -- func: imguiHalfSep -- desc: Create a multi-line separator, choose to switch the order. ---------------------------------------------------------------------------------------------------- function imguiHalfSep(flip) if not flip then imgui.Spacing(); imgui.Separator(); else imgui.Separator(); imgui.Spacing(); end end ---------------------------------------------------------------------------------------------------- -- func: cycleIndex -- desc: Move forwards or backwards from the given index by the given direction. ---------------------------------------------------------------------------------------------------- function cycleIndex(index, min, max, dir) if dir == nil then dir = 1 end; local newIndex = index + dir; if newIndex > max then newIndex = min end if newIndex < min then newIndex = max end return newIndex; end ---------------------------------------------------------------------------------------------------- -- func: colorTableToInt -- desc: Converts an imgui color table to a D3DCOLOR int. ---------------------------------------------------------------------------------------------------- function colorTableToInt(t) local a = t[4]; local r = t[1] * 255; local g = t[2] * 255; local b = t[3] * 255; -- Handle 3 and 4 color tables.. if (a == nil) then a = 255; else a = a * 255; end return math.d3dcolor(a, r, g, b); end ---------------------------------------------------------------------------------------------------- -- func: colorToRGBA -- desc: Converts a color to its rgba values. ---------------------------------------------------------------------------------------------------- function colorToRGBA(c) local a = bit.rshift(bit.band(c, 0xFF000000), 24); local r = bit.rshift(bit.band(c, 0x00FF0000), 16); local g = bit.rshift(bit.band(c, 0x0000FF00), 8); local b = bit.band(c, 0x000000FF); return r, g, b, a; end ---------------------------------------------------------------------------------------------------- -- func: imguiPushActiveBtnColor -- desc: Add some button color if the condition is met. ---------------------------------------------------------------------------------------------------- function imguiPushActiveBtnColor(cond) if cond then imgui.PushStyleColor(ImGuiCol_Button, 0.21, 0.47, 0.59, 1); -- info else imgui.PushStyleColor(ImGuiCol_Button, 0.25, 0.69, 1.0, 0.1); -- secondary end return cond; end ---------------------------------------------------------------------------------------------------- -- func: imguiPushDisabled -- desc: Make the item look disabled if the given condition is met. ---------------------------------------------------------------------------------------------------- function imguiPushDisabled(cond) if cond then imgui.PushStyleVar(ImGuiStyleVar_Alpha, 0.5); imgui.PushStyleColor(ImGuiCol_ButtonHovered, 49/255, 62/255, 75/255, 1); imgui.PushStyleColor(ImGuiCol_ButtonActive, 49/255, 62/255, 75/255, 1); end return cond; end ---------------------------------------------------------------------------------------------------- -- func: imguiPopDisabled -- desc: Remove the disabled look if the given condition is met. ---------------------------------------------------------------------------------------------------- function imguiPopDisabled(cond) if cond then imgui.PopStyleVar(); imgui.PopStyleColor(); imgui.PopStyleColor(); end end ---------------------------------------------------------------------------------------------------- -- func: wait -- desc: Halt the application for the given number of seconds. ---------------------------------------------------------------------------------------------------- function wait(seconds) local time = seconds or 1 local start = os.time() repeat until os.time() == start + time end ---------------------------------------------------------------------------------------------------- -- func: table.sumValues -- desc: Add all the values of the given table. ---------------------------------------------------------------------------------------------------- function table.sumValues(t) local val = 0; for k, v in pairs(t) do if (type(v) == 'number') then val = val + v; end end return val end
data:extend { { type = 'custom-input', name = 'picker-beltbrush-corners', key_sequence = 'CONTROL + SHIFT + R' }, { type = 'custom-input', name = 'picker-beltbrush-balancers', key_sequence = 'CONTROL + SHIFT + B' }, { type = 'custom-input', name = 'picker-beltbrush-hack', key_sequence = '', linked_game_control = 'clear-cursor', localised_name = "Beltbrush Hack" } }
module ('content.triggers', package.seeall) require 'base.trigger' mouse_pressedleft = base.trigger:new {} function mouse_pressedleft:check (x, y) if self.visible then return self.visible:inside(lux.geom.point:new {x,y}) else return true end end
--[[ Operate turtle with enhanced commands ]] EnhancedTurtle = {} EnhancedTurtle.new = function() local obj = {} obj.pos = { x = 0, y = 0, z = 0 } obj.facing = 'north' return setmetatable(obj, {__index=EnhancedTurtle}) end EnhancedTurtle._turn_to_east = function(this) local facing = this.facing if facing == 'west' then turtle.turnLeft() turtle.turnLeft() elseif facing == 'south' then turtle.turnLeft() elseif facing == 'north' then turtle.turnRight() end this.facing = 'east' return true end EnhancedTurtle._turn_to_west = function(this) local facing = this.facing if facing == 'east' then turtle.turnLeft() turtle.turnLeft() elseif facing == 'south' then turtle.turnRight() elseif facing == 'north' then turtle.turnLeft() end this.facing = 'west' return true end EnhancedTurtle._turn_to_south = function(this) local facing = this.facing if facing == 'east' then turtle.turnRight() elseif facing == 'west' then turtle.turnLeft() elseif facing == 'north' then turtle.turnLeft() turtle.turnLeft() end this.facing = 'south' return true end EnhancedTurtle._turn_to_north = function(this) local facing = this.facing if facing == 'east' then turtle.turnLeft() elseif facing == 'west' then turtle.turnRight() elseif facing == 'south' then turtle.turnLeft() turtle.turnLeft() end this.facing = 'north' return true end EnhancedTurtle.turn_direction = function(this, direction) local is_success if direction == 'east' then is_success = this:_turn_to_east() elseif direction == 'west' then is_success = this:_turn_to_west() elseif direction == 'south' then is_success = this:_turn_to_south() elseif direction == 'north' then is_success = this:_turn_to_north() else print('error: invalid direction') is_success = false end return is_success end EnhancedTurtle.turn_left = function(this) local is_success if this.facing == 'east' then is_success = this:_turn_to_north() elseif this.facing == 'west' then is_success = this:_turn_to_south() elseif this.facing == 'south' then is_success = this:_turn_to_east() elseif this.facing == 'north' then is_success = this:_turn_to_west() end return is_success end EnhancedTurtle.turn_right = function(this) local is_success if this.facing == 'east' then is_success = this:_turn_to_south() elseif this.facing == 'west' then is_success = this:_turn_to_north() elseif this.facing == 'south' then is_success = this:_turn_to_west() elseif this.facing == 'north' then is_success = this:_turn_to_east() end return is_success end EnhancedTurtle._move_forward = function(this, is_force) local is_success is_success = turtle.forward() if not is_success and is_force then while not turtle.forward() do if turtle.detect() then if not turtle.dig() then -- bedrock cannot be digged is_success = false return is_success end end sleep(0.1) end is_success = true end return is_success end EnhancedTurtle._move_back = function(this, is_force) local is_success is_success = turtle.back() if not is_success and is_force then this:turn_left() this:turn_left() is_success = this:_move_forward(true) this:turn_left() this:turn_left() end return is_success end EnhancedTurtle._move_up = function(this, is_force) local is_success is_success = turtle.up() if not is_success and is_force then while not turtle.up() do if turtle.detectUp() then if not turtle.digUp() then -- bedrock cannot be digged is_success = false return is_success end end sleep(0.1) end is_success = true end if is_success then this.pos.y = this.pos.y + 1 end return is_success end EnhancedTurtle._move_down = function(this, is_force) local is_success is_success = turtle.down() if not is_success and is_force then while not turtle.down() do if turtle.detectDown() then if not turtle.digDown() then -- bedrock cannot be digged is_success = false return is_success end end sleep(0.1) end is_success = true end if is_success then this.pos.y = this.pos.y - 1 end return is_success end EnhancedTurtle._move_to_east = function(this, by_back, is_force) local is_success if by_back then this:_turn_to_west() is_success = this:_move_back(is_force) else this:_turn_to_east() is_success = this:_move_forward(is_force) end if is_success then this.pos.x = this.pos.x + 1 end return is_success end EnhancedTurtle._move_to_west = function(this, by_back, is_force) local is_success if by_back then this:_turn_to_east() is_success = this:_move_back(is_force) else this:_turn_to_west() is_success = this:_move_forward(is_force) end if is_success then this.pos.x = this.pos.x - 1 end return is_success end EnhancedTurtle._move_to_south = function(this, by_back, is_force) local is_success if by_back then this:_turn_to_north() is_success = this:_move_back(is_force) else this:_turn_to_south() is_success = this:_move_forward(is_force) end if is_success then this.pos.z = this.pos.z + 1 end return is_success end EnhancedTurtle._move_to_north = function(this, by_back, is_force) local is_success if by_back then this:_turn_to_south() is_success = this:_move_back(is_force) else this:_turn_to_north() is_success = this:_move_forward(is_force) end if is_success then this.pos.z = this.pos.z - 1 end return is_success end EnhancedTurtle.move_direction = function(this, direction, by_back, is_force) local is_success if direction == 'east' then is_success = this:_move_to_east(by_back, is_force) elseif direction == 'west' then is_success = this:_move_to_west(by_back, is_force) elseif direction == 'south' then is_success = this:_move_to_south(by_back, is_force) elseif direction == 'north' then is_success = this:_move_to_north(by_back, is_force) else print('error: invalid direction') is_success = false end return is_success end EnhancedTurtle.move_forward = function(this, is_force) local is_success is_success = this:move_direction(this.facing, false, is_force) return is_success end EnhancedTurtle.move_back = function(this, is_force) local is_success local facing = this.facing if facing == 'east' then is_success = this:move_direction('west', true, is_force) elseif facing == 'west' then is_success = this:move_direction('east', true, is_force) elseif facing == 'south' then is_success = this:move_direction('north', true, is_force) elseif facing == 'north' then is_success = this:move_direction('south', true, is_force) end return is_success end EnhancedTurtle.move_up = function(this, is_force) local is_success is_success = this:_move_up(is_force) return is_success end EnhancedTurtle.move_down = function(this, is_force) local is_success is_success = this:_move_down(is_force) return is_success end
--1 require("packet/BindMeta") if userData== nil then userData= BindMeta("userData") end require("packet/style") if ui_views == nil then ui_views=setmetatable({}, { __mode = 'v'}) BindMetaCreateFindGID(ui_views) end require("KuaCell") local backImg="https://s.momocdn.com/w/u/others/2020/07/13/1594631804940-back.png" Style={ nav={ {bgColor = Color(78, 200, 193, 1)}, {mainAxis = MainAxis.CENTER}, {height = 70}, {widthPercent = 100}, {crossAxis = CrossAxis.CENTER} }, backImg={ {width = 24}, {height = 24}, {positionType = PositionType.ABSOLUTE}, {positionLeft = 10} } } local vwj1 = VStack() ui_views.vwj1 = vwj1 local vwj2 = HStack() ui_views.vwj2 = vwj2 local vwj3 = ImageView() ui_views.vwj3 = vwj3 vwj3:image(backImg) _view_set_style_with_filter(vwj3,Style.backImg,{image=true}) local vwj4 = Label() ui_views.vwj4 = vwj4 vwj4:textColor(Color():hex(16777215)) vwj2:children({vwj3, vwj4}) _view_set_style_with_filter(vwj2,Style.nav,{}) local vwj5 = TableView() ui_views.vwj5 = vwj5 vwj5:marginTop(20) vwj5:basis(1) vwj5:marginBottom(45) local vwj5_adapter = TableViewAutoFitAdapter() vwj5:adapter(vwj5_adapter) vwj5_adapter:initCellByReuseId("contentCell", function(_l_c1) --@&$local kvar3=_l_i1$--&@ local kvar4=KUA_CELL_TYPE.DETAIL local vwj6 = VStack() _l_c1.vwj6 = vwj6 --@&$local kvar5=kvar3$--&@ local kvar6=KUA_CELL_TYPE.DETAIL local vwj7 = VStack() _l_c1.vwj7 = vwj7 local vwj8 = HStack() _l_c1.vwj8 = vwj8 local vwj9 = ImageView() _l_c1.vwj9 = vwj9 _l_c1.vwj9:cornerRadius(29) _l_c1.vwj9:height(58) _l_c1.vwj9:width(58) _l_c1.vwj9:contentMode(ContentMode.SCALE_ASPECT_FILL) local vwj10 = VStack() _l_c1.vwj10 = vwj10 local vwj11 = Label() _l_c1.vwj11 = vwj11 _l_c1.vwj11:fontSize(20) _l_c1.vwj11:lines(1) _l_c1.vwj11:textColor(Color(0, 0, 0, 1)) local vwj12 = Label() _l_c1.vwj12 = vwj12 _l_c1.vwj12:fontSize(16) _l_c1.vwj12:textColor(Color(162, 162, 162, 1)) _l_c1.vwj12:marginTop(10) _l_c1.vwj10:children({_l_c1.vwj11, _l_c1.vwj12}) _l_c1.vwj10:marginLeft(8) _l_c1.vwj10:basis(1) local vwj13 = Label() _l_c1.vwj13 = vwj13 _l_c1.vwj13:text("+ 好友") _l_c1.vwj13:textColor(Color(78, 200, 193, 1)) _l_c1.vwj13:display(kvar6 == 2) local vwj14 = Label() _l_c1.vwj14 = vwj14 _l_c1.vwj14:text("4分钟前") _l_c1.vwj14:textColor(Color():hex(13553358)) _l_c1.vwj14:display(kvar6 == 1) _l_c1.vwj8:children({_l_c1.vwj9, _l_c1.vwj10, _l_c1.vwj13, _l_c1.vwj14}) _l_c1.vwj8:widthPercent(100) local vwj15 = Label() _l_c1.vwj15 = vwj15 _l_c1.vwj15:textColor(Color():hex(6645093)) _l_c1.vwj15:fontSize(20) _l_c1.vwj15:marginTop(4) _l_c1.vwj15:lines(4) local vwj16 = HStack() _l_c1.vwj16 = vwj16 _l_c1.vwj16:widthPercent(100) _l_c1.vwj16:cornerRadius(1) local vwj17 = ImageView() _l_c1.vwj17 = vwj17 _l_c1.vwj17:cornerRadius(6) _l_c1.vwj17:widthPercent(100) _l_c1.vwj17:height(374) _l_c1.vwj17:contentMode(ContentMode.SCALE_ASPECT_FILL) local vwj18 = HStack() _l_c1.vwj18 = vwj18 local vwj19 = ImageView() _l_c1.vwj19 = vwj19 _l_c1.vwj19:image("https://s.momocdn.com/w/u/others/2020/07/18/1595062704301-likeH.png") _l_c1.vwj19:width(30) _l_c1.vwj19:height(30) local vwj20 = Label() _l_c1.vwj20 = vwj20 _l_c1.vwj20:marginRight(14) _l_c1.vwj20:textColor(Color(1, 1, 1, 1)) local vwj21 = ImageView() _l_c1.vwj21 = vwj21 _l_c1.vwj21:image("https://s.momocdn.com/w/u/others/2020/07/18/1595062894566-comment.png") _l_c1.vwj21:width(30) _l_c1.vwj21:height(30) local vwj22 = Label() _l_c1.vwj22 = vwj22 _l_c1.vwj22:textColor(Color(1, 1, 1, 1)) local vwj23 = Spacer() _l_c1.vwj23 = vwj23 local vwj24 = ImageView() _l_c1.vwj24 = vwj24 _l_c1.vwj24:image("https://s.momocdn.com/w/u/others/2020/07/18/1595062992926-share.png") _l_c1.vwj24:width(30) _l_c1.vwj24:height(30) _l_c1.vwj18:children({_l_c1.vwj19, _l_c1.vwj20, _l_c1.vwj21, _l_c1.vwj22, _l_c1.vwj23, _l_c1.vwj24}) _l_c1.vwj18:marginTop(18) _l_c1.vwj18:crossAxis(CrossAxis.CENTER) _l_c1.vwj18:widthPercent(100) _l_c1.vwj18:marginBottom(18) _l_c1.vwj7:children({_l_c1.vwj8, _l_c1.vwj15, _l_c1.vwj16, _l_c1.vwj17, _l_c1.vwj18}) _l_c1.vwj7:widthPercent(100) _l_c1.vwj6:children({_l_c1.vwj7}) _l_c1.vwj6:widthPercent(100) _l_c1.vwj6:heightPercent(100) _l_c1.vwj6:padding(0, 20, 0, 20) _l_c1.contentView:addView(_l_c1.vwj6) end) vwj5_adapter:initCellByReuseId("commentCell", function(_l_c1) --@&$local kvar8=_l_i1$--&@ local vwj25 = VStack() _l_c1.vwj25 = vwj25 local vwj26 = VStack() _l_c1.vwj26 = vwj26 local vwj27 = VStack() _l_c1.vwj27 = vwj27 _l_c1.vwj27:bgColor(Color():hex(15724527)) _l_c1.vwj27:widthPercent(100) _l_c1.vwj27:height(8) local vwj28 = Label() _l_c1.vwj28 = vwj28 _l_c1.vwj28:text("全部夸夸评论:") _l_c1.vwj28:textColor(Color():hex(11447982)) _l_c1.vwj28:marginBottom(12) _l_c1.vwj28:marginTop(10) _l_c1.vwj28:marginLeft(20) _l_c1.vwj26:children({_l_c1.vwj27, _l_c1.vwj28}) _l_c1.vwj26:widthPercent(100) local vwj29 = VStack() _l_c1.vwj29 = vwj29 local vwj30 = HStack() _l_c1.vwj30 = vwj30 local vwj31 = ImageView() _l_c1.vwj31 = vwj31 _view_set_style_with_filter(_l_c1.vwj31,Style.icon,{width=true,height=true}) _l_c1.vwj31:width(40) _l_c1.vwj31:height(40) local vwj32 = VStack() _l_c1.vwj32 = vwj32 local vwj33 = HStack() _l_c1.vwj33 = vwj33 local vwj34 = Label() _l_c1.vwj34 = vwj34 _l_c1.vwj34:fontSize(15) local vwj35 = Spacer() _l_c1.vwj35 = vwj35 local vwj36 = ImageView() _l_c1.vwj36 = vwj36 _l_c1.vwj36:image("https://s.momocdn.com/w/u/others/2020/07/18/1595062704301-likeH.png") _l_c1.vwj36:width(20) _l_c1.vwj36:height(20) local vwj37 = Label() _l_c1.vwj37 = vwj37 _l_c1.vwj37:fontSize(18) _l_c1.vwj37:marginLeft(4) _l_c1.vwj37:textColor(Color():hex(11447982)) _l_c1.vwj33:children({_l_c1.vwj34, _l_c1.vwj35, _l_c1.vwj36, _l_c1.vwj37}) _l_c1.vwj33:widthPercent(100) local vwj38 = HStack() _l_c1.vwj38 = vwj38 local vwj39 = Label() _l_c1.vwj39 = vwj39 _l_c1.vwj39:fontSize(15) _l_c1.vwj39:textColor(Color():hex(16744110)) local vwj40 = Label() _l_c1.vwj40 = vwj40 _l_c1.vwj40:text("·") _l_c1.vwj40:textColor(Color():hex(11447982)) local vwj41 = Label() _l_c1.vwj41 = vwj41 _l_c1.vwj41:fontSize(15) _l_c1.vwj41:textColor(Color():hex(11447982)) _l_c1.vwj38:children({_l_c1.vwj39, _l_c1.vwj40, _l_c1.vwj41}) local vwj42 = Label() _l_c1.vwj42 = vwj42 _l_c1.vwj42:fontSize(18) _l_c1.vwj42:textColor(Color():hex(9013641)) _l_c1.vwj42:lines(0) local vwj43 = VStack() _l_c1.vwj43 = vwj43 local vwj44 = HStack() _l_c1.vwj44 = vwj44 local vwj45 = Label() _l_c1.vwj45 = vwj45 _l_c1.vwj45:fontSize(18) _l_c1.vwj45:textColor(Color(78, 200, 193, 1)) _l_c1.vwj45:marginBottom(5) local vwj46 = Label() _l_c1.vwj46 = vwj46 _l_c1.vwj46:text(":") _l_c1.vwj46:fontSize(18) _l_c1.vwj46:textColor(Color(78, 200, 193, 1)) local vwj47 = Label() _l_c1.vwj47 = vwj47 _l_c1.vwj47:lines(1) _l_c1.vwj47:fontSize(18) _l_c1.vwj47:textColor(Color():hex(11447982)) _l_c1.vwj47:basis(1) _l_c1.vwj44:children({_l_c1.vwj45, _l_c1.vwj46, _l_c1.vwj47}) _l_c1.vwj44:widthPercent(100) local vwj48 = HStack() _l_c1.vwj48 = vwj48 local vwj49 = Label() _l_c1.vwj49 = vwj49 _l_c1.vwj49:fontSize(18) _l_c1.vwj49:textColor(Color(78, 200, 193, 1)) _l_c1.vwj49:marginBottom(5) local vwj50 = Label() _l_c1.vwj50 = vwj50 _l_c1.vwj50:text(":") _l_c1.vwj50:fontSize(18) _l_c1.vwj50:textColor(Color(78, 200, 193, 1)) local vwj51 = Label() _l_c1.vwj51 = vwj51 _l_c1.vwj51:lines(1) _l_c1.vwj51:fontSize(18) _l_c1.vwj51:textColor(Color():hex(11447982)) _l_c1.vwj51:basis(1) _l_c1.vwj48:children({_l_c1.vwj49, _l_c1.vwj50, _l_c1.vwj51}) _l_c1.vwj48:widthPercent(100) local vwj52 = HStack() _l_c1.vwj52 = vwj52 local vwj53 = Spacer() _l_c1.vwj53 = vwj53 local vwj54 = Label() _l_c1.vwj54 = vwj54 _l_c1.vwj54:text("更多回复") _l_c1.vwj54:textColor(Color(78, 200, 193, 1)) _l_c1.vwj54:fontSize(17) _l_c1.vwj52:children({_l_c1.vwj53, _l_c1.vwj54}) _l_c1.vwj52:widthPercent(100) _l_c1.vwj52:marginTop(6) _l_c1.vwj43:children({_l_c1.vwj44, _l_c1.vwj48, _l_c1.vwj52}) _l_c1.vwj43:bgColor(Color():hex(15724527)) _l_c1.vwj43:widthPercent(100) _l_c1.vwj43:cornerRadius(4) _l_c1.vwj43:padding(8, 8, 8, 8) _l_c1.vwj32:children({_l_c1.vwj33, _l_c1.vwj38, _l_c1.vwj42, _l_c1.vwj43}) _l_c1.vwj32:marginLeft(4) _l_c1.vwj32:basis(1) _l_c1.vwj30:children({_l_c1.vwj31, _l_c1.vwj32}) _l_c1.vwj30:widthPercent(100) _l_c1.vwj29:children({_l_c1.vwj30}) _l_c1.vwj29:widthPercent(100) _l_c1.vwj29:paddingLeft(20) _l_c1.vwj29:paddingRight(20) _l_c1.vwj25:children({_l_c1.vwj26, _l_c1.vwj29}) _l_c1.vwj25:widthPercent(100) _l_c1.vwj25:marginBottom(20) _l_c1.contentView:addView(_l_c1.vwj25) end) DataBinding:bindListView(userData.listSource.__path,vwj5) vwj5_adapter:sectionCount(function() return DataBinding:getSectionCount(userData.listSource.__path) end) vwj5_adapter:rowCount(function(section1) return DataBinding:getRowCount(userData.listSource.__path,section1) end) vwj5_adapter:fillCellDataByReuseId("commentCell", function(_l_c1,section1,row1) local _l_i1=userData.listSource[section1][row1].__ci local kvar8=_l_i1 _l_c1.vwj26:display(kvar8.row.__get == 2) _l_c1.vwj31:image(kvar8.icon.__get) _l_c1.vwj34:text(kvar8.name.__get) _l_c1.vwj37:text(kvar8.like.__get) _l_c1.vwj39:text(kvar8.level.__get) _l_c1.vwj41:text(kvar8.time.__get) _l_c1.vwj42:text(kvar8.content.__get) _l_c1.vwj45:text((#kvar8.reply.__get >= 1 and{kvar8.reply[1].name.__get} or{""})[1]) _l_c1.vwj47:text((#kvar8.reply.__get >= 1 and{kvar8.reply[1].content.__get} or{""})[1]) _l_c1.vwj44:display((#kvar8.reply.__get >= 1)) _l_c1.vwj49:text((#kvar8.reply.__get >= 2 and{kvar8.reply[2].name.__get} or{""})[1]) _l_c1.vwj51:text((#kvar8.reply.__get >= 2 and{kvar8.reply[2].content.__get} or{""})[1]) _l_c1.vwj48:display((#kvar8.reply.__get >= 2)) _l_c1.vwj52:display((#kvar8.reply.__get >= 3)) BindMetaWatchListCell(userData.listSource,section1,row1) end) vwj5_adapter:fillCellDataByReuseId("contentCell", function(_l_c1,section1,row1) local _l_i1=userData.listSource[section1][row1].__ci local kvar3=_l_i1 local kvar4=KUA_CELL_TYPE.DETAIL local kvar5=kvar3 local kvar6=KUA_CELL_TYPE.DETAIL _l_c1.vwj9:image(kvar5.icon.__get) _l_c1.vwj11:text(kvar5.name.__get) _l_c1.vwj12:text(kvar5.desc.__get) _l_c1.vwj15:text(kvar5.content.__get) local kvar9 = function() local kvar2 = {} for kvar1=1, (kvar5.actions.__asize) do local kvar7=kvar1 local kvar2_=(function() return (function(_argo_break) local vwj58 = Label() ui_views.vwj58 = vwj58 vwj58 = vwj58 vwj58:text(kvar5.actions[kvar7].__get) vwj58:marginRight(8) vwj58:textColor(Color(78, 200, 193, 1)) return vwj58 end)('@argo@') end)() if kvar2_ then table.insert(kvar2,kvar2_) end end BindMetaPopForach() return kvar2 end local kvar12 = function() local kvar11 = {} local add = function(_v_) if type(_v_) == "table" then for _, _v in ipairs(_v_) do table.insert(kvar11, _v) end elseif _v_ then table.insert(kvar11, _v_) end end add(kvar9()) _l_c1.vwj16:children(kvar11) end _l_c1.vwj16:removeAllSubviews() kvar12() _l_c1.vwj17:image(kvar5.pic.__get) _l_c1.vwj20:text(kvar5.like.__get) _l_c1.vwj22:text(kvar5.comment.__get) BindMetaWatchListCell(userData.listSource,section1,row1) end) vwj5_adapter:reuseId(function(section1, row1) local _l_i1=userData.listSource[section1][row1].__cii if _l_i1.row.__get == 1 then return "contentCell" else return "commentCell" end end) vwj5:reloadData() vwj1:children({vwj2, vwj5}) vwj1:widthPercent(100) vwj1:heightPercent(100) window:addView(vwj1) local vwj55 = HStack() ui_views.vwj55 = vwj55 local vwj56 = Spacer() ui_views.vwj56 = vwj56 local vwj57 = Label() ui_views.vwj57 = vwj57 vwj57:text("发送") vwj57:marginRight(20) vwj57:textColor(Color(78, 200, 193, 1)) vwj55:children({vwj56, vwj57}) vwj55:positionType(PositionType.ABSOLUTE) vwj55:positionBottom(10) vwj55:widthPercent(100) vwj55:height(35) vwj55:paddingTop(10) window:addView(vwj55) ---延迟代码执行 UI 逻辑分离 local delayFunc=function() vwj4:text(userData.title.__get) userData.title.__watch=function(new) vwj4:text(new) end end System:asyncDoInMain(delayFunc)
local PANEL = {} function PANEL:Init() self:SetTitle('') self:SetDraggable(false) self:SetBackgroundBlur(true) self:SetDrawOnTop(true) self.text = vgui.Create('DLabel', self) self.text:Dock(TOP) self.text:SetText('') self.text:SizeToContents() self.text:SetContentAlignment(5) self.text:SetTextColor(color_white) self.list = vgui.create('DComboBox', self) self.list:DockMargin(0, 8, 0, 0) self.list:Dock(TOP) self.list.OnSelect = function(panel, index, text, callback) if callback then callback() end self:safe_remove() end self:SizeToContents() self:MakePopup() self:DoModal() self:Center() end function PANEL:SizeToContents() local width, height = math.max(self.text:GetWide(), ScrW() / 6), self.text:GetTall() self:SetSize(width + 50, height + 42 + self.list:GetTall()) end function PANEL:set_title(text) self:SetTitle(text) end function PANEL:set_text(text) self.text:SetText(text) self.text:SizeToContents() self:SizeToContents() end function PANEL:set_value(value) self.list:SetValue(value) end function PANEL:add_choice(text, callback) self.list:AddChoice(text, callback) end vgui.Register('fl_selector', PANEL, 'DFrame')
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf/protobuf" local ERRORCODE_PB = require("ErrorCode_pb") module('QueryLotteryCDRes_pb') QUERYLOTTERYCDRES = protobuf.Descriptor(); local QUERYLOTTERYCDRES_ERRORCODE_FIELD = protobuf.FieldDescriptor(); local QUERYLOTTERYCDRES_COOLDOWN_FIELD = protobuf.FieldDescriptor(); local QUERYLOTTERYCDRES_GOLDBUYCOUNT_FIELD = protobuf.FieldDescriptor(); local QUERYLOTTERYCDRES_GOLDBUYCOOLDOWN_FIELD = protobuf.FieldDescriptor(); local QUERYLOTTERYCDRES_GOLDBAODI_FIELD = protobuf.FieldDescriptor(); local QUERYLOTTERYCDRES_COINBAODI_FIELD = protobuf.FieldDescriptor(); QUERYLOTTERYCDRES_ERRORCODE_FIELD.name = "errorcode" QUERYLOTTERYCDRES_ERRORCODE_FIELD.full_name = ".KKSG.QueryLotteryCDRes.errorcode" QUERYLOTTERYCDRES_ERRORCODE_FIELD.number = 1 QUERYLOTTERYCDRES_ERRORCODE_FIELD.index = 0 QUERYLOTTERYCDRES_ERRORCODE_FIELD.label = 1 QUERYLOTTERYCDRES_ERRORCODE_FIELD.has_default_value = false QUERYLOTTERYCDRES_ERRORCODE_FIELD.default_value = nil QUERYLOTTERYCDRES_ERRORCODE_FIELD.enum_type = ERRORCODE_PB.ERRORCODE QUERYLOTTERYCDRES_ERRORCODE_FIELD.type = 14 QUERYLOTTERYCDRES_ERRORCODE_FIELD.cpp_type = 8 QUERYLOTTERYCDRES_COOLDOWN_FIELD.name = "cooldown" QUERYLOTTERYCDRES_COOLDOWN_FIELD.full_name = ".KKSG.QueryLotteryCDRes.cooldown" QUERYLOTTERYCDRES_COOLDOWN_FIELD.number = 2 QUERYLOTTERYCDRES_COOLDOWN_FIELD.index = 1 QUERYLOTTERYCDRES_COOLDOWN_FIELD.label = 1 QUERYLOTTERYCDRES_COOLDOWN_FIELD.has_default_value = false QUERYLOTTERYCDRES_COOLDOWN_FIELD.default_value = 0 QUERYLOTTERYCDRES_COOLDOWN_FIELD.type = 13 QUERYLOTTERYCDRES_COOLDOWN_FIELD.cpp_type = 3 QUERYLOTTERYCDRES_GOLDBUYCOUNT_FIELD.name = "goldbuycount" QUERYLOTTERYCDRES_GOLDBUYCOUNT_FIELD.full_name = ".KKSG.QueryLotteryCDRes.goldbuycount" QUERYLOTTERYCDRES_GOLDBUYCOUNT_FIELD.number = 3 QUERYLOTTERYCDRES_GOLDBUYCOUNT_FIELD.index = 2 QUERYLOTTERYCDRES_GOLDBUYCOUNT_FIELD.label = 1 QUERYLOTTERYCDRES_GOLDBUYCOUNT_FIELD.has_default_value = false QUERYLOTTERYCDRES_GOLDBUYCOUNT_FIELD.default_value = 0 QUERYLOTTERYCDRES_GOLDBUYCOUNT_FIELD.type = 13 QUERYLOTTERYCDRES_GOLDBUYCOUNT_FIELD.cpp_type = 3 QUERYLOTTERYCDRES_GOLDBUYCOOLDOWN_FIELD.name = "goldbuycooldown" QUERYLOTTERYCDRES_GOLDBUYCOOLDOWN_FIELD.full_name = ".KKSG.QueryLotteryCDRes.goldbuycooldown" QUERYLOTTERYCDRES_GOLDBUYCOOLDOWN_FIELD.number = 4 QUERYLOTTERYCDRES_GOLDBUYCOOLDOWN_FIELD.index = 3 QUERYLOTTERYCDRES_GOLDBUYCOOLDOWN_FIELD.label = 1 QUERYLOTTERYCDRES_GOLDBUYCOOLDOWN_FIELD.has_default_value = false QUERYLOTTERYCDRES_GOLDBUYCOOLDOWN_FIELD.default_value = 0 QUERYLOTTERYCDRES_GOLDBUYCOOLDOWN_FIELD.type = 13 QUERYLOTTERYCDRES_GOLDBUYCOOLDOWN_FIELD.cpp_type = 3 QUERYLOTTERYCDRES_GOLDBAODI_FIELD.name = "goldbaodi" QUERYLOTTERYCDRES_GOLDBAODI_FIELD.full_name = ".KKSG.QueryLotteryCDRes.goldbaodi" QUERYLOTTERYCDRES_GOLDBAODI_FIELD.number = 5 QUERYLOTTERYCDRES_GOLDBAODI_FIELD.index = 4 QUERYLOTTERYCDRES_GOLDBAODI_FIELD.label = 1 QUERYLOTTERYCDRES_GOLDBAODI_FIELD.has_default_value = false QUERYLOTTERYCDRES_GOLDBAODI_FIELD.default_value = 0 QUERYLOTTERYCDRES_GOLDBAODI_FIELD.type = 13 QUERYLOTTERYCDRES_GOLDBAODI_FIELD.cpp_type = 3 QUERYLOTTERYCDRES_COINBAODI_FIELD.name = "coinbaodi" QUERYLOTTERYCDRES_COINBAODI_FIELD.full_name = ".KKSG.QueryLotteryCDRes.coinbaodi" QUERYLOTTERYCDRES_COINBAODI_FIELD.number = 6 QUERYLOTTERYCDRES_COINBAODI_FIELD.index = 5 QUERYLOTTERYCDRES_COINBAODI_FIELD.label = 1 QUERYLOTTERYCDRES_COINBAODI_FIELD.has_default_value = false QUERYLOTTERYCDRES_COINBAODI_FIELD.default_value = 0 QUERYLOTTERYCDRES_COINBAODI_FIELD.type = 13 QUERYLOTTERYCDRES_COINBAODI_FIELD.cpp_type = 3 QUERYLOTTERYCDRES.name = "QueryLotteryCDRes" QUERYLOTTERYCDRES.full_name = ".KKSG.QueryLotteryCDRes" QUERYLOTTERYCDRES.nested_types = {} QUERYLOTTERYCDRES.enum_types = {} QUERYLOTTERYCDRES.fields = {QUERYLOTTERYCDRES_ERRORCODE_FIELD, QUERYLOTTERYCDRES_COOLDOWN_FIELD, QUERYLOTTERYCDRES_GOLDBUYCOUNT_FIELD, QUERYLOTTERYCDRES_GOLDBUYCOOLDOWN_FIELD, QUERYLOTTERYCDRES_GOLDBAODI_FIELD, QUERYLOTTERYCDRES_COINBAODI_FIELD} QUERYLOTTERYCDRES.is_extendable = false QUERYLOTTERYCDRES.extensions = {} QueryLotteryCDRes = protobuf.Message(QUERYLOTTERYCDRES)
-- ===================================================================================== -- Name: handlers.lua -- Author: Gurpreet Singh -- Url: https://github.com/ffs97/awesome-config/themes/thunderclouds/ ... -- ... handlers.lua -- License: The MIT License (MIT) -- -- Theme specific connect handlers for clients and tags -- ===================================================================================== local beautiful = require("beautiful") -------------------------------------------------------------------------------- -- Including Custom Helper Libraries local helpers = require("helpers") -------------------------------------------------------------------------------- -- Defining handlers handlers = {} -- Screen {{{ function handlers.connect_for_each_screen(s) s.tagsbar = require("components.tagsbar")(s) s.statusbar = require("components.statusbar")(s) s.systray = require("components.systray") s.controlpanel = require("components.controlpanel")(s) s.notifs = { volume = require("notifs.volume"), brightness = require("notifs.brightness") } end -- }}} -- Client {{{ function handlers.client_connect_focus(c) c.border_color = beautiful.window_border_focus end function handlers.client_connect_unfocus(c) c.border_color = beautiful.window_border_normal end function handlers.client_connect_manage(c) -- Add shape to client if not c.fullscreen then c.shape = helpers.rrect(beautiful.window_border_radius) end end function handlers.client_connect_fullscreen(c) -- Remove shapes in fullscreen mode if c.fullscreen then c.shape = helpers.rect() else c.shape = helpers.rrect(beautiful.window_border_radius) end end -- }}} -------------------------------------------------------------------------------- return handlers
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0173-Read-Generic-Network-Signal-data.md -- -- Description: Resumption of subscription for custom and RPC spec VehicleData for one -- after unexpected disconnect -- Precondition: -- 1. Preloaded file contains VehicleDataItems for all RPC spec VD -- 2. RPC spec VehicleData is allowed by policies -- 3. App is registered and activated -- 4. PTU is performed, the update contains VehicleDataItems with custom VD in update file -- 5. SDL is subscribed for custom VD -- 6. Transport reconnection is performed -- Sequence: -- 1. Mobile app registers with actual hashID --   a. SDL starts data resumption -- 2. SDL resumes subscription for custom VD and sends VI.SubscribeVD request to HMI --   a. HMI responds with success resultCode -- 3. After success response from HMI SDL resumes the subscription -- 4. HMI sends OnVD notification with custom VD --   a. SDL resends OnVD notification to mobile app --------------------------------------------------------------------------------------------------- --[[ Required Shared libraries ]] local runner = require('user_modules/script_runner') local common = require('test_scripts/API/VehicleData/GenericNetworkSignalData/commonGenericNetSignalData') --[[ Test Configuration ]] runner.testSettings.isSelfIncluded = false --[[ Local Variables ]] common.writeCustomDataToGeneralArray(common.customDataTypeSample) common.setDefaultValuesForCustomData() local appSessionId = 1 --[[ Local Functions ]] local function registerApp() common.getConfigAppParams().hashID = common.hashId common.getMobileSession():StartService(7) :Do(function() local corId = common.getMobileSession():SendRPC("RegisterAppInterface", common.getConfigAppParams(1)) common.getHMIConnection():ExpectNotification("BasicCommunication.OnAppRegistered", { application = { appName = common.getConfigAppParams(1).appName } }) local hmiRequestData = { gps = true, [common.VehicleDataItemsWithData.custom_vd_item1_integer.key] = true } local hmiResponseData = { [common.VehicleDataItemsWithData.custom_vd_item1_integer.key] = { dataType = common.CUSTOM_DATA_TYPE, resultCode = "SUCCESS" }, gps = { dataType = common.VehicleDataItemsWithData.gps.APItype, resultCode = "SUCCESS" } } common.getHMIConnection():ExpectRequest("VehicleInfo.SubscribeVehicleData", hmiRequestData) :Do(function(_, data) common.getHMIConnection():SendResponse(data.id, data.method, "SUCCESS", hmiResponseData) end) common.getHMIConnection():ExpectRequest("BasicCommunication.ActivateApp", {}) :Do(function(_, data) common.getHMIConnection():SendResponse(data.id, data.method, "SUCCESS", {}) end) common.getMobileSession():ExpectResponse(corId, { success = true, resultCode = "SUCCESS" }) :Do(function() common.getMobileSession():ExpectNotification("OnHMIStatus", { hmiLevel = "NONE", audioStreamingState = "NOT_AUDIBLE", systemContext = "MAIN" }, { hmiLevel = "FULL", systemContext = "MAIN" }) :Times(2) common.getMobileSession():ExpectNotification("OnPermissionsChange") end) end) end -- [[ Scenario ]] runner.Title("Preconditions") runner.Step("Clean environment", common.preconditions) runner.Step("Start SDL, HMI, connect Mobile, start Session", common.start) runner.Step("App registration", common.registerApp) runner.Step("App activation", common.activateApp) runner.Step("PTU with VehicleDataItems", common.policyTableUpdateWithOnPermChange, { common.ptuFuncWithCustomData }) runner.Step("SubscribeVehicleData custom_vd_item1_integer", common.VDsubscription, { appSessionId, "custom_vd_item1_integer", "SubscribeVehicleData" }) runner.Step("SubscribeVehicleData gps", common.VDsubscription, { appSessionId, "gps", "SubscribeVehicleData" }) runner.Step("OnVehicleData custom_vd_item1_integer", common.onVD, { appSessionId, "custom_vd_item1_integer" }) runner.Step("OnVehicleData gps", common.onVD, { appSessionId, "gps" }) runner.Title("Test") runner.Step("Unexpected disconnect", common.unexpectedDisconnect) runner.Step("Connect mobile", common.connectMobile) runner.Step("App registration", registerApp) runner.Step("OnVehicleData custom_vd_item1_integer", common.onVD, { appSessionId, "custom_vd_item1_integer" }) runner.Step("OnVehicleData gps", common.onVD, { appSessionId, "gps" }) runner.Title("Postconditions") runner.Step("Stop SDL", common.postconditions)
local mod = EPGP:NewModule("boss", "AceEvent-3.0", "AceTimer-3.0") local Debug = LibStub("LibDebug-1.0") local L = LibStub("AceLocale-3.0"):GetLocale("EPGP") local timer local in_combat = false local award_queue = {} local function IsRLorML() if UnitInRaid("player") then local loot_method, ml_party_id, ml_raid_id = GetLootMethod() if loot_method == "master" and ml_party_id == 0 then return true end if loot_method ~= "master" and IsRaidLeader() then return true end end return false end function mod:PopAwardQueue(event_name) if in_combat then return end Debug("PopAwardQueue stage 1: %s", event_name) if #award_queue == 0 then if timer then self:CancelTimer(timer, true) timer = nil end return end Debug("PopAwardQueue stage 2: %s", event_name) if StaticPopup_Visible("EPGP_BOSS_DEAD") or StaticPopup_Visible("EPGP_BOSS_ATTEMPT") then return end Debug("PopAwardQueue stage 3: %s", event_name) local boss_name = table.remove(award_queue, 1) Debug("PopAwardQueue stage 4: %s %s", event_name, boss_name) local dialog if event_name == "kill" or event_name == "BossKilled" then Debug("PopAwardQueue: display Popup for %s %s", event_name, boss_name) dialog = StaticPopup_Show("EPGP_BOSS_DEAD", boss_name) elseif event_name == "wipe" and mod.db.profile.wipedetection then dialog = StaticPopup_Show("EPGP_BOSS_ATTEMPT", boss_name) end if dialog then dialog.reason = boss_name end end local function BossAttempt(event_name, boss_name) Debug("Boss attempt: %s %s", event_name, boss_name) -- Temporary fix since we cannot unregister DBM callbacks if not mod:IsEnabled() then return end if CanEditOfficerNote() and IsRLorML() then tinsert(award_queue, boss_name) if not timer then Debug("Calling PopAwardQueue: %s %s", event_name, boss_name) timer = mod:ScheduleRepeatingTimer("PopAwardQueue", 0.1, event_name) end end end function mod:PLAYER_REGEN_DISABLED() in_combat = true end function mod:PLAYER_REGEN_ENABLED() in_combat = false end function mod:DebugTest() BossKilled("BossKilled", "Sapphiron") end mod.dbDefaults = { profile = { enabled = false, wipedetection = false, }, } mod.optionsName = L["Boss"] mod.optionsDesc = L["Automatic boss tracking"] mod.optionsArgs = { help = { order = 1, type = "description", name = L["Automatic boss tracking by means of a popup to mass award EP to the raid and standby when a boss is killed."] }, wipedetection = { type = "toggle", name = L["Wipe awards"], desc = L["Awards for wipes on bosses. Requires Deadly Boss Mods or BigWigs"], order = 2, disabled = function(v) return not DBM end, }, } local function dbmCallback(event, mod) return BossAttempt(event, mod.combatInfo.name) end function chatMsgAddon(event, prefix, message, type, sender) if prefix ~= "BigWigs" then return end local sync, rest = select(3, message:find("(%S+)%s*(.*)$")) if sync ~= "Death" then return end Debug("chatMsgAddon: %s %s %s", prefix, sync, rest) BossAttempt("kill", rest) end function mod:OnEnable() self:RegisterEvent("PLAYER_REGEN_DISABLED") self:RegisterEvent("PLAYER_REGEN_ENABLED") if DBM then EPGP:Print(L["Using %s for boss kill tracking"], "DBM") DBM:RegisterCallback("kill", dbmCallback) DBM:RegisterCallback("wipe", dbmCallback) elseif BigWigs then EPGP:Print(L["Using %s for boss kill tracking"], "BigWigs") self:RegisterEvent("CHAT_MSG_ADDON", chatMsgAddon) end end
local c = 0 local j = 0 local i = 0 while j < 10 do i = 0 while i < 1000000 do local b = 1 c = c + b i = i + 1 end j = j + 1 end print(c)
local config = require('config'); local gui = { }; local variables = { ['Disable All'] = { {}, ImGuiVar_BOOLCPP }, ['AutoPosition'] = { {}, ImGuiVar_BOOLCPP }, ['AutoWS'] = { {}, ImGuiVar_BOOLCPP }, ['AutoCast'] = { {}, ImGuiVar_BOOLCPP }, ['AutoHeal'] = { {}, ImGuiVar_BOOLCPP }, ['AutoNuke'] = { {}, ImGuiVar_BOOLCPP }, ['HealThreshold'] = { {}, ImGuiVar_INT32, 60 }, ['NukeManaCutoff'] = { {}, ImGuiVar_INT32, 20 }, ['IdleBuffs'] = { {}, ImGuiVar_BOOLCPP }, ['SneakyTime'] = { {}, ImGuiVar_BOOLCPP }, ['AutoFollow'] = { {}, ImGuiVar_BOOLCPP }, ['AutoRoll'] = { {}, ImGuiVar_BOOLCPP }, ['RollCombo1'] = { {}, ImGuiVar_INT32, -1 }, ['RollCombo2'] = { {}, ImGuiVar_INT32, -1 }, ['WeaponSkill'] = { {}, ImGuiVar_CDSTRING, 64 }, ['Leader'] = { {}, ImGuiVar_CDSTRING, 64 }, ['Tank'] = { {}, ImGuiVar_CDSTRING, 64 }, ['AutoSummon'] = { {}, ImGuiVar_BOOLCPP }, ['SummonCombo'] = { {}, ImGuiVar_INT32, -1 }, ['AutoPact'] = { {}, ImGuiVar_BOOLCPP }, ['AutoRelease'] = { {}, ImGuiVar_BOOLCPP }, ['BPRageSelectable1'] = { {}, ImGuiVar_BOOLCPP}, ['BPRageSelectable2'] = { {}, ImGuiVar_BOOLCPP}, ['BPRageSelectable3'] = { {}, ImGuiVar_BOOLCPP}, ['BPRageSelectable4'] = { {}, ImGuiVar_BOOLCPP}, ['BPRageSelectable5'] = { {}, ImGuiVar_BOOLCPP}, ['BPRageSelectable6'] = { {}, ImGuiVar_BOOLCPP}, ['BPRageSelectable7'] = { {}, ImGuiVar_BOOLCPP}, ['BPWardSelectable1'] = { {}, ImGuiVar_BOOLCPP}, ['BPWardSelectable2'] = { {}, ImGuiVar_BOOLCPP}, ['BPWardSelectable3'] = { {}, ImGuiVar_BOOLCPP}, ['BPWardSelectable4'] = { {}, ImGuiVar_BOOLCPP}, ['BPWardSelectable5'] = { {}, ImGuiVar_BOOLCPP}, } local rolls = { "Corsair's Roll","Ninja Roll","Hunter's Roll","Chaos Roll","Magus's Roll","Healer's Roll","Drachen Roll","Choral Roll","Monk's Roll","Beast Roll","Samurai Roll","Evoker's Roll","Rogue's Roll","Warlock's Roll","Fighter's Roll","Puppet Roll","Gallant's Roll","Wizard's Roll","Dancer's Roll","Scholar's Roll","Naturalist's Roll", "Runeist's Roll" } local summons = { "Carbuncle", "Fenrir", "Diabolos", "Ifrit", "Titan", "Leviathan", "Garuda", "Shiva", "Ramuh", "Odin", "Alexander", "Cait Sith", "Light Spirit", "Dark Spirit", "Fire Spirit", "Earth Spirit", "Water Spirit", "Air Spirit", "Ice Spirit", "Thunder Spirit", "Auto Spirit" } local BPRage = { Carbuncle = {"Poison Nails", "Meteorite"}, Diabolos = {"Camisado", "Nether Blast"}, Fenrir = {"Moonlit Charge", "Crescent Fang", "Eclipse Bite"}, Garuda = {"Claw", "Aero II", "Aero IV", "Predator Claws", "Wind Blade"}, Ifrit = {"Punch","Fire II", "Burning Strike", "Double Punch", "Fire IV", "Flaming Crush", "Meteor Strike"}, Leviathan = {"Barracuda Dive", "Water II", "Tail Whip", "Water IV","Spinning Dive", "Grand Fall"}, Ramuh = { "Shock Strike", "Thunder II", "Thunderspark", "Thunder IV", "Chaotic Strike", "Thunderstorm"}, Shiva = {"Axe Kick", "Blizzard II", "Double Slap", "Blizzard IV", "Rush", "Heavenly Strike"}, Titan = {"Rock Throw", "Stone II", "Rock Buster", "Megalith Throw", "Stone IV","Mountain Buster", "Geocrush"} } local BPWard = { Carbuncle = {"Healing Ruby","Shining Ruby", "Glittering Ruby", "Healing Ruby II"}, Diabolos = {"Somnolence", "Nightmare", "Ultimate Terror", "NoctoShield", "Dream Shroud"}, Fenrir = {"Lunar Cry", "Lunar Roar", "Ecliptic Growl", "Ecliptic Howl"}, Garuda = {"Aerial Armor", "Whispering Wind", "Hastega"}, Ifrit = {"Crimson Howl"}, Leviathan = {"Slowga", "Spring Water"}, Ramuh = {"Rolling Thunder", "Lightning Armor"}, Shiva = {"Frost Armor", "Sleepga"}, Titan = {"Earthen Ward"} } function gui:update() ashita.timer.once(1, function()self:loadConfig();self:update()end); end function gui:load() config:get(); self.all = config:getall(); for player, cnf in pairs(self.all) do for k, v in pairs(variables) do -- Create the variable.. if (v[2] >= ImGuiVar_CDSTRING) then variables[k][1][player] = imgui.CreateVar(variables[k][2], variables[k][3]); else variables[k][1][player] = imgui.CreateVar(variables[k][2]); end -- Set a default value if present.. if (#v > 2 and v[2] < ImGuiVar_CDSTRING) then imgui.SetVarValue(variables[k][1][player], variables[k][3]); end end end self:update()--Start the update loop local style = imgui.style style.WindowRounding = 5 style.FrameRounding = 6 end function gui:unload() -- Cleanup the custom variables.. for player, cnf in pairs(self.all) do for k, v in pairs(variables) do if (variables[k][1][player] ~= nil) then imgui.DeleteVar(variables[k][1][player]); end variables[k][1][player] = nil; end end end function gui:loadConfig() for player, cnf in pairs(self.all) do imgui.SetVarValue(variables['Disable All'][1][player],cnf['escape']); imgui.SetVarValue(variables['AutoPosition'][1][player],cnf['AutoPosition']); imgui.SetVarValue(variables['AutoCast'][1][player],cnf['AutoCast']); imgui.SetVarValue(variables['AutoHeal'][1][player],cnf['AutoHeal']); imgui.SetVarValue(variables['AutoNuke'][1][player],cnf['AutoNuke']); imgui.SetVarValue(variables['HealThreshold'][1][player],cnf['HealThreshold']); imgui.SetVarValue(variables['NukeManaCutoff'][1][player],cnf['NukeManaCutoff']); imgui.SetVarValue(variables['AutoWS'][1][player],cnf['AutoWS']); imgui.SetVarValue(variables['IdleBuffs'][1][player],cnf['IdleBuffs']); imgui.SetVarValue(variables['SneakyTime'][1][player],cnf['SneakyTime']); imgui.SetVarValue(variables['AutoFollow'][1][player],cnf['follow']); imgui.SetVarValue(variables['WeaponSkill'][1][player],""); imgui.SetVarValue(variables['WeaponSkill'][1][player],cnf['WeaponSkill']); imgui.SetVarValue(variables['Leader'][1][player],""); imgui.SetVarValue(variables['Leader'][1][player],cnf['leader'].."\0\0"); imgui.SetVarValue(variables['Tank'][1][player],""); imgui.SetVarValue(variables['Tank'][1][player],cnf['tank']); imgui.SetVarValue(variables['AutoRoll'][1][player],cnf['corsair']['roll']); imgui.SetVarValue(variables['AutoSummon'][1][player],cnf['Summoner']['AutoSummon']); imgui.SetVarValue(variables['AutoPact'][1][player],cnf['Summoner']['AutoPact']); imgui.SetVarValue(variables['AutoRelease'][1][player],cnf['Summoner']['AutoRelease']); for k ,v in pairs(summons) do if (cnf['Summoner']['Summon'] == v)then imgui.SetVarValue(variables['SummonCombo'][1][player],k-1); end end for k ,v in pairs(rolls) do if (cnf['corsair']['roll1'] == v)then imgui.SetVarValue(variables['RollCombo1'][1][player],k-1); end if (cnf['corsair']['roll2'] == v)then imgui.SetVarValue(variables['RollCombo2'][1][player],k-1); end end end end function gui:showMenu(player) if(imgui.SmallButton("Set Leader"))then for p, cnf in pairs(self.all)do cnf['leader'] = player; end config:save(); end imgui.Separator(); if(imgui.Checkbox("Disable All", variables['Disable All'][1][player]))then self.all[player]['escape'] = imgui.GetVarValue(variables['Disable All'][1][player]); config:save(); end if(imgui.Checkbox("Auto SA Position", variables['AutoPosition'][1][player]))then self.all[player]['AutoPosition'] = imgui.GetVarValue(variables['AutoPosition'][1][player]); config:save(); end imgui.Separator(); if(imgui.Checkbox("Auto WS", variables['AutoWS'][1][player]))then self.all[player]['AutoWS'] = imgui.GetVarValue(variables['AutoWS'][1][player]); config:save(); end imgui.Separator(); if(imgui.Checkbox("Idle Buffs", variables['IdleBuffs'][1][player]))then self.all[player]['IdleBuffs'] = imgui.GetVarValue(variables['IdleBuffs'][1][player]); config:save(); end imgui.Separator(); if(imgui.Checkbox("Sneaky Time", variables['SneakyTime'][1][player]))then self.all[player]['SneakyTime'] = imgui.GetVarValue(variables['SneakyTime'][1][player]); config:save(); end imgui.Separator(); if(imgui.Checkbox("Auto Follow", variables['AutoFollow'][1][player]))then self.all[player]['follow'] = imgui.GetVarValue(variables['AutoFollow'][1][player]); config:save(); end imgui.Separator(); if(imgui.InputText("WeaponSkill", variables['WeaponSkill'][1][player], 64))then self.all[player]['WeaponSkill'] = imgui.GetVarValue(variables['WeaponSkill'][1][player]); config:save(); end imgui.Separator(); if(imgui.InputText("Leader", variables['Leader'][1][player], 64))then self.all[player]['leader'] = imgui.GetVarValue(variables['Leader'][1][player]); config:save(); end imgui.Separator(); if(imgui.InputText("Tank", variables['Tank'][1][player], 64))then self.all[player]['tank'] = imgui.GetVarValue(variables['Tank'][1][player]); config:save(); end imgui.Separator(); if(imgui.Checkbox("Auto Cast", variables['AutoCast'][1][player]))then self.all[player]['AutoCast'] = imgui.GetVarValue(variables['AutoCast'][1][player]); config:save(); end imgui.Separator(); if (imgui.TreeNode('Autocast Settings')) then if(imgui.Checkbox("Nukes", variables['AutoNuke'][1][player]))then self.all[player]['AutoNuke'] = imgui.GetVarValue(variables['AutoNuke'][1][player]); config:save(); end if(self.all[player]['AutoNuke'])then if(imgui.SliderInt('Mana Cutoff', variables['NukeManaCutoff'][1][player], 0, 100, "%.0f%% MP"))then self.all[player]['NukeManaCutoff'] = imgui.GetVarValue(variables['NukeManaCutoff'][1][player]); config:save(); end end if(imgui.Checkbox("Heals", variables['AutoHeal'][1][player]))then self.all[player]['AutoHeal'] = imgui.GetVarValue(variables['AutoHeal'][1][player]); config:save(); end if(self.all[player]['AutoHeal'])then if(imgui.SliderInt('Threshold', variables['HealThreshold'][1][player], 1, 100, "%.0f%% HP"))then self.all[player]['HealThreshold'] = imgui.GetVarValue(variables['HealThreshold'][1][player]); config:save(); end end if (imgui.CollapsingHeader('Summoner Settings')) then imgui.Columns(2, nil, false); if(imgui.Checkbox("AutoSummon", variables['AutoSummon'][1][player]))then self.all[player]['Summoner']['AutoSummon'] = imgui.GetVarValue(variables['AutoSummon'][1][player]); config:save(); end imgui.NextColumn(); if (imgui.Combo("Summon",variables['SummonCombo'][1][player],"Carbuncle\0Fenrir\0Diabolos\0Ifrit\0Titan\0Leviathan\0Garuda\0Shiva\0Ramuh\0Odin\0Alexander\0Cait Sith\0Light Spirit\0Dark Spirit\0Fire Spirit\0Earth Spirit\0Water Spirit\0Air Spirit\0Ice Spirit\0Thunder Spirit\0Auto Spirit\0\0"))then self.all[player]['Summoner']['Summon'] = summons[imgui.GetVarValue(variables['SummonCombo'][1][player])+1] config:save(); end imgui.NextColumn(); if(imgui.Checkbox("AutoPact", variables['AutoPact'][1][player]))then self.all[player]['Summoner']['AutoPact'] = imgui.GetVarValue(variables['AutoPact'][1][player]); config:save(); end imgui.NextColumn(); if(imgui.Checkbox("AutoRelease", variables['AutoRelease'][1][player]))then self.all[player]['Summoner']['AutoRelease'] = imgui.GetVarValue(variables['AutoRelease'][1][player]); config:save(); end imgui.Columns(1); imgui.Text("Current: ") imgui.Columns(2, nil, false); if(self.all[player]['Summoner']['BPRage'] and self.all[player]['Summoner']['BPRage'][1])then imgui.Text(self.all[player]['Summoner']['BPRage'][1]..":"..self.all[player]['Summoner']['BPRage'][2]) else imgui.Text(""); end imgui.NextColumn(); if(self.all[player]['Summoner']['BPWard'] and self.all[player]['Summoner']['BPWard'][1]) then imgui.Text(self.all[player]['Summoner']['BPWard'][1]..":"..self.all[player]['Summoner']['BPWard'][2]) else imgui.Text(""); end imgui.NextColumn(); if(imgui.SmallButton("Clear Rage"))then self.all[player]['Summoner']['BPRage']={} config:save(); end imgui.NextColumn(); if(imgui.SmallButton("Clear Ward"))then self.all[player]['Summoner']['BPWard']={} config:save(); end imgui.Columns(1); imgui.Separator(); for Avatar, _ in pairs(BPRage) do if (imgui.TreeNode(Avatar)) then imgui.Columns(2, nil, false); for i, ability in ipairs(BPRage[Avatar])do if (imgui.Selectable(ability, imgui.GetVarValue(variables['BPRageSelectable'..i][1][player]), ImGuiSelectableFlags_AllowDoubleClick)) then if (imgui.IsMouseDoubleClicked(0)) then AshitaCore:GetChatManager():QueueCommand('/seven pact ' .. player .. ' ' .. Avatar .. ' "'.. ability ..'"', 1); self.all[player]['Summoner']['BPRage']={} config:save(); else self.all[player]['Summoner']['BPRage']={Avatar, ability} config:save(); end end end imgui.NextColumn(); for i, ability in ipairs(BPWard[Avatar])do if (imgui.Selectable(ability, imgui.GetVarValue(variables['BPWardSelectable'..i][1][player]), ImGuiSelectableFlags_AllowDoubleClick)) then if (imgui.IsMouseDoubleClicked(0)) then AshitaCore:GetChatManager():QueueCommand('/seven pact ' .. player .. ' ' .. Avatar .. ' "'.. ability ..'"', 1); self.all[player]['Summoner']['BPWard']={} config:save(); else self.all[player]['Summoner']['BPWard']={Avatar, ability} config:save(); end end end imgui.Columns(1); imgui.TreePop() end end end imgui.TreePop() end imgui.Separator(); if (imgui.CollapsingHeader('Corsair Settings')) then if(imgui.Checkbox("Enable", variables['AutoRoll'][1][player]))then self.all[player]['corsair']['roll'] = imgui.GetVarValue(variables['AutoRoll'][1][player]); config:save(); end if(imgui.Combo('Roll1', variables['RollCombo1'][1][player], "Corsair's Roll\0Ninja Roll\0Hunter's Roll\0Chaos Roll\0Magus's Roll\0Healer's Roll\0Drachen Roll\0Choral Roll\0Monk's Roll\0Beast Roll\0Samurai Roll\0Evoker's Roll\0Rogue's Roll\0Warlock's Roll\0Fighter's Roll\0Puppet Roll\0Gallant's Roll\0Wizard's Roll\0Dancer's Roll\0Scholar's Roll\0Naturalist's Roll\0Runeist's Roll\0\0"))then self.all[player]['corsair']['roll1'] = rolls[imgui.GetVarValue(variables['RollCombo1'][1][player])+1] self.all[player]['corsair']['rollvar1'] = self.all[player]['corsair']['roll1']:upper():gsub("'", ""):gsub(" ", "_"); config:save(); end if(imgui.Combo('Roll2', variables['RollCombo2'][1][player], "Corsair's Roll\0Ninja Roll\0Hunter's Roll\0Chaos Roll\0Magus's Roll\0Healer's Roll\0Drachen Roll\0Choral Roll\0Monk's Roll\0Beast Roll\0Samurai Roll\0Evoker's Roll\0Rogue's Roll\0Warlock's Roll\0Fighter's Roll\0Puppet Roll\0Gallant's Roll\0Wizard's Roll\0Dancer's Roll\0Scholar's Roll\0Naturalist's Roll\0Runeist's Roll\0\0"))then self.all[player]['corsair']['roll2'] = rolls[imgui.GetVarValue(variables['RollCombo2'][1][player])+1] self.all[player]['corsair']['rollvar2'] = self.all[player]['corsair']['roll2']:upper():gsub("'", ""):gsub(" ", "_"); config:save(); end end end function gui:main() -- imgui.SetNextWindowSize(300, 400, ImGuiSetCond_FirstUseEver); -- if (imgui.Begin('Seven') == false) then -- imgui.End(); -- return; -- end for player, cnf in pairs(self.all)do imgui.SetNextWindowSize(300, 400, ImGuiSetCond_FirstUseEver); if (imgui.Begin(player) == false) then imgui.End(); return; end self:showMenu(player) -- if (imgui.TreeNode(player))then -- self:showMenu(player) -- imgui.TreePop(); -- end imgui.End(); end -- if(imgui.SmallButton("Save"))then -- config:save(); -- end -- imgui.End(); end return gui;
if (SERVER) then AddCSLuaFile("shared.lua") SWEP.AutoSwitchTo = true SWEP.AutoSwitchFrom = true end if (CLIENT) then SWEP.DrawAmmo = true SWEP.ViewModelFOV = 64 SWEP.ViewModelFlip = false SWEP.CSMuzzleFlashes = false SWEP.PrintName = "Police Ram" SWEP.Author = "Jake_1305" SWEP.Slot = 3 SWEP.SlotPos = 1 end SWEP.Author = "Jake_1305" SWEP.Spawnable = false SWEP.AdminSpawnable = true SWEP.HoldType = "shotgun" SWEP.ViewModel = "models/weapons/v_rpg.mdl" SWEP.WorldModel = "models/weapons/w_rocket_launcher.mdl" SWEP.Primary.Recoil = 5 SWEP.Primary.Damage = -1 SWEP.Primary.NumShots = 1 SWEP.Primary.Cone = 0 SWEP.Primary.Delay = 1.0 SWEP.Primary.ClipSize = -1 SWEP.Primary.DefaultClip = 0 SWEP.Primary.ClipSize = 1 SWEP.Primary.DefaultClip = 1 SWEP.Primary.Automatic = false SWEP.Primary.Ammo = "none" function SWEP:Initialize() self:SetHoldType(self.HoldType) self.Weapon:SendWeaponAnim(ACT_VM_DRAW) end function SWEP:Deploy() end function SWEP:Reload() end function SWEP:Think() end function SWEP:PrimaryAttack() local tr = self.Owner:GetEyeTrace() local function RamNow() if tr.Entity:IsDoor() && tr.Entity:GetNWInt("Owner") > 0 && player.GetByID(tr.Entity:GetNWInt("Owner")):IsValid() then if tr.Entity:GetClass() == "prop_vehicle_jeep" then if tr.Entity:GetDriver():IsPlayer() then local ply = tr.Entity:GetDriver() ply.RecentlyRammed = true timer.Simple(10, function() ply.RecentlyRammed = false end) ply:ExitVehicle() end end if player.GetByID(tr.Entity:GetNWInt("Owner")):GetWarranted() > 0 then local Random = math.random( 1, 100 ) if Random > 20 then self.Owner:Hint("You failed to break open the door.") elseif Random <= 20 then tr.Entity:Fire('UnLock') tr.Entity:Fire('Open', '', .5) tr.Entity:SetNWBool("UnLocked",false) end end end end if !tr.Hit then return end if !tr.HitNonWorld then return end if !tr.Entity:IsDoor() then local Dist = self.Owner:EyePos():Distance(tr.HitPos) if Dist > 100 then return false end if SERVER then if tr.Entity:GetNWInt("Owner") > 0 && player.GetByID(tr.Entity:GetNWInt("Owner")):GetWarranted() > 0 && tr.Entity:GetClass() == "item_base" then self.Owner:ViewPunch(Angle(math.Rand(-3,3) * self.Primary.Recoil,math.Rand(-3,3) * self.Primary.Recoil,0)) self.Owner:EmitSound("physics/wood/wood_box_impact_hard"..math.random(1,3)..".wav",100,100) tr.Entity:GetPhysicsObject():EnableMotion(true) tr.Entity:GetPhysicsObject():Wake() end end return false end local Dist = self.Owner:EyePos():Distance(tr.HitPos) if Dist > 100 then return false end if SERVER then self.Owner:ViewPunch(Angle(math.Rand(-3,3) * self.Primary.Recoil,math.Rand(-3,3) * self.Primary.Recoil,0)) self.Owner:EmitSound("physics/wood/wood_box_impact_hard"..math.random(1,3)..".wav",100,100) timer.Simple(1, RamNow) end self.Weapon:SetNextPrimaryFire(CurTime() + 3) self.Weapon:SetNextSecondaryFire(CurTime() + 3) end function SWEP:SecondaryAttack() self:PrimaryAttack() end
--- The keywords can optionally be used with another library by directly requiring this file --- @usage --- async, await = require "orderly/keywords" (MyPromiseLib, function(promise, handler) promise:Then(handler) end, function(promise, handler) promise:Catch(handler) end) local coroMap = {} local function resume(co, ...) local response = table.pack(coroutine.resume(co, ...)) if table.remove(response, 1) then if coroutine.status(co) == 'dead' then coroMap[co]:resolve(table.unpack(response)) end else coroMap[co]:reject(table.unpack(response)) end end return function(create, onsuccess, onfailure) return function(func) return function(...) local co = coroutine.create(func) local promise = create() coroMap[co] = promise resume(co, ...) return promise end end, function(promise) local co, TTS_main = coroutine.running() if TTS_main or not co then error("await is only valid in async function") end onsuccess(promise, function(...) resume(co, ...) end) onfailure(promise, function(...) coroMap[co]:reject(...) end) return coroutine.yield() end end
require("class") require("util") StateKaleidoscope = class() function StateKaleidoscope:_init() self.canvas = love.graphics.newCanvas(love.graphics.getWidth(), love.graphics.getHeight()) self.size = 4 self.mousePosition = { x = 0, y = 0, } self.pressed = false self.random = false self.direction = { x = love.math.random() * 2, y = love.math.random() * 2 } self.color = { 1, 1, 1, 1,} self.counter = 1 self.time = 0 end function StateKaleidoscope:mousePressed(x, y, button, istouch, presses) if button == 1 then self.pressed = true end end function StateKaleidoscope:mouseReleased(x, y, button, istouch, presses) self.pressed = false end function StateKaleidoscope:mouseMoved(x, y, dx, dy, istouch) self.pressed = true self.mousePrevious = { x = self.mousePosition.x + dx, y = self.mousePosition.y + dy} self.mousePosition = { x = x, y = y } end function StateKaleidoscope:mouseWheelMoved(x, y) self.color = { love.math.random(), love.math.random(), love.math.random(), 1 } end function StateKaleidoscope:keyPressed(key) if key == 'escape' then love.event.quit() elseif key == 'k' then self.canvas = love.graphics.newCanvas(love.graphics.getWidth(), love.graphics.getHeight()) elseif key == 'r' then self.random = not self.random elseif key == '.' then self.size = self.size + 1 elseif key == ',' then self.size = self.size - 1 elseif key == ']' then self.color = { love.math.random(), love.math.random(), love.math.random(), 1 } end end function StateKaleidoscope:update(dt) self.time = self.time + dt if self.time % 2 == 0 then self.direction = { x = love.math.random() * 2, y = love.math.random() * 2 } end if self.random then self.mousePosition = { x = clamp(self.mousePosition.x + self.direction.x, 0, love.graphics.getWidth()), y = clamp(self.mousePosition.y + self.direction.y, 0, love.graphics.getHeight()) } end end function StateKaleidoscope:draw() local w = love.graphics.getWidth() local h = love.graphics.getHeight() love.graphics.setCanvas(self.canvas) if self.pressed or self.random then love.graphics.setColor(self.color) love.graphics.circle('fill', self.mousePosition.x, self.mousePosition.y, self.size) love.graphics.circle('fill', w - self.mousePosition.x, h - self.mousePosition.y, self.size) love.graphics.circle('fill', w - self.mousePosition.x, self.mousePosition.y, self.size) love.graphics.circle('fill', self.mousePosition.x, h - self.mousePosition.y, self.size) end love.graphics.setCanvas() love.graphics.setColor(1, 1, 1, 1) love.graphics.draw(self.canvas) end
function onCreate() setPropertyFromClass('GameOverSubstate', 'characterName', 'jumpp3'); --Character json file for the death animation setPropertyFromClass('GameOverSubstate', 'deathSoundName', 'jumpp'); --put in mods/sounds/ setPropertyFromClass('GameOverSubstate', 'loopSoundName', 'silence'); --put in mods/music/ setPropertyFromClass('GameOverSubstate', 'endSoundName', 'gameOverEnd'); --put in mods/music/ end
-- TODO: Rewrite needed local var = ngx.var return function(self) self.ajax = var.http_x_requested_with == "XMLHttpRequest" end
---------------------------------------- Overview ------------------------------------------ -- Name: Investment Dashboard -- Notes: Copyright (c) 2017 Jeremy Gulickson -- Version: 1.6.08312017 -- Format: major.minor.mmddyyyy -- -- Description: Proof of concept to calculate and aggregate select values from -- user specified FXCM, Oanda and/or Robinhood account(s). Currently -- includes equity, day p/l and leverage though modifying or adding -- additional data points is trivial. Oanda and Robinhood data is sourced -- via RESTful API queries. -- -- Platform Requirements: FXTS (FXCM Trading Station) -> http://download.fxcorporate.com/FXCM/FXTS2Install.EXE -- http_lua.dll -> Included by default in FXTS -- JSON.lua -> http://regex.info/blog/lua/json -- -- Login Requirements: FXCM -> Username + password -- // Note this is entered in FXTS not in indicator options -- Oanda -> Token -- // Generated and retrieved from Oanda's online account portal -- Robinhood -> Username + password + 2FA code (optional) -- // Token appears to only be valid for a session only and thus -- // the indicator will grab token at initialization -- -- FXCM Documentation: http://www.fxcodebase.com/bin/products/IndicoreSDK/3.1.0/help/Lua/web-content.html -- Oanda Documentation: http://developer.oanda.com/rest-live-v20/introduction/ -- Robinhood Documentation: https://github.com/sanko/Robinhood -- -- Know Limitations: -> Does not support 2FA for Oanda accounts -- -> 2FA support for Robhinhood accounts is clunky -- -> Oanda account must be type v20 -- -> Robinhood API is undocumented and therefore unannounced changes -- may break funtionality -- -> Minimal error handling for incorrect username or password values -- -> Minimal error handling for api endpoint conductivity -- -------------------------------------- Version History ------------------------------------- -- v1.0.03272017: Feature Release -- -> Initial release; proof of concept -- -- v1.1.04052017: Cosmetic Release -- -> Added color formatting for values -- -> Update x & y coordinates calculation -- -- v1.2.04102017: Cosmetic Release -- -> Added side variable to control presentation -- -- v1.3.04202017: Cosmetic Release -- -> Made Github ready -- -> Removed email functionality -- -- v1.4.08032017: Feature Release -- -> Updated Robinhood data to include extended hours values -- -> Added Robinhood support for 2 factor authentication -- -- v1.5.08072017 Bug Fix Release -- -> Improved Robinhood 2 factor authentication experience -- -> Addressed issues with Robinhood extended hours values not populating from server -- -- v1.6.08312017 Bug Fix Release -- -> Addressed issues with Robinhood leverage values -- -------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------- -- Global Variable Setup -------------------------------------------------------------------------------------------- -- Routine Notes: Global variables are initialized as arrays *solely* for -- readability purposes. -- -------------------------------------------------------------------------------------------- -- Require LUA extension to support HTTPS protocol require("http_lua"); -- Global Oanda variables local Oanda = {}; Oanda.Demo_URL = "api-fxpractice.oanda.com"; Oanda.Real_URL = "api-fxtrade.oanda.com"; Oanda.URL = nil; Oanda.Account_ID = nil; Oanda.Account_Type = nil; Oanda.API_Token = nil; -- Global Robinhood variables local Robinhood = {}; Robinhood.TFA_Mode = nil; Robinhood.TFA_Type = nil; Robinhood.TFA_Code = nil; Robinhood.URL = "api.robinhood.com" Robinhood.Portfolio_URL = nil; Robinhood.Account_ID = nil; Robinhood.Password = nil; Robinhood.API_Token = nil; -- Global FXCM variables local FXCM = {}; FXCM.Account_ID = nil; -- Global timer variables local Timer = {}; Timer.Initialized = nil; Timer.Send_Request = nil; Timer.Update_Frequency = nil; -- Global font variables local Font = {}; Font.Equity = nil; Font.Floating_PL = nil; Font.Day_PL = nil; Font.Leverage = nil; -- Global format variables local Format = {}; Format.Equity = nil; Format.Leverage = nil; Format.Neutral = nil; Format.Positive = nil; Format.Negative = nil; Format.Side = nil; Format.Digits = 0; -------------------------------------------------------------------------------------------- -- Initialize Function -------------------------------------------------------------------------------------------- function Init() indicator:name("Investment Dashboard"); indicator:description("Investment Dashboard") indicator:type(core.Indicator); indicator.parameters:addGroup("General"); indicator.parameters:addInteger("Update_Frequency", "Update Frequency", "Enter time between updates in minutes.", 10, 1, 60); indicator.parameters:addGroup("Format"); indicator.parameters:addColor("Format_Equity", "Equity Value", "Select the color of equity vales.", core.rgb(255, 255, 255)); indicator.parameters:addColor("Format_Leverage", "Leverage Value", "Select the color of leverage vales.", core.rgb(255, 255, 255)); indicator.parameters:addColor("Format_Neutral", "Neutral Values", "Select the color of neutral values.", core.rgb(192, 192, 192)); indicator.parameters:addColor("Format_Positive", "Positive Values", "Select the color of positive values.", core.rgb(128, 255, 0)); indicator.parameters:addColor("Format_Negative", "Negative Values", "Select the color of negative values.", core.rgb(255, 53, 53)); indicator.parameters:addString("Format_Side", "Side", "Select which side to display values.", "Right") indicator.parameters:addStringAlternative("Format_Side", "Right", "", "Right"); indicator.parameters:addStringAlternative("Format_Side", "Left", "", "Left"); indicator.parameters:addGroup("Robinhood"); indicator.parameters:addString("Robinhood_Account_ID", "Account ID", "Enter the account id to monitor.", ""); indicator.parameters:addString("Robinhood_Password", "Password", "Enter the password.", ""); indicator.parameters:addBoolean("Robinhood_TFA_Mode", "2FA Mode", "Enable two factor authentication mode.", true); indicator.parameters:addString("Robinhood_TFA_Code", "2FA Code", "Enter the two factor authentication code.", ""); indicator.parameters:addGroup("Oanda"); indicator.parameters:addString("Oanda_Account_ID", "Account ID", "Enter the account id to monitor.", ""); indicator.parameters:addString("Oanda_Account_Type", "Account Type", "Select the account type.", "Real") indicator.parameters:addStringAlternative("Oanda_Account_Type", "Demo", "", "Demo"); indicator.parameters:addStringAlternative("Oanda_Account_Type", "Real", "", "Real"); indicator.parameters:addString("Oanda_API_Token", "API Token", "Enter the API token.",""); indicator.parameters:addGroup("FXCM"); indicator.parameters:addString("FXCM_Account_ID", "Account ID", "Select the account id to monitor.", ""); indicator.parameters:setFlag("FXCM_Account_ID", core.FLAG_ACCOUNT); end -------------------------------------------------------------------------------------------- -- Prepare Function -------------------------------------------------------------------------------------------- function Prepare() instance:name("Investment Dashboard"); Timer.Initialized = core.host:execute("setTimer", 100, 10); Timer.Update_Frequency = core.host:execute("setTimer", 200, instance.parameters.Update_Frequency * 60); Format.Equity = instance.parameters.Format_Equity; Format.Leverage = instance.parameters.Format_Leverage; Format.Neutral = instance.parameters.Format_Neutral; Format.Positive = instance.parameters.Format_Positive; Format.Negative = instance.parameters.Format_Negative; Format.Side = instance.parameters.Format_Side; Robinhood.Account_ID = instance.parameters.Robinhood_Account_ID; Robinhood.Password = instance.parameters.Robinhood_Password; Robinhood.TFA_Mode = instance.parameters.Robinhood_TFA_Mode; if Robinhood.TFA_Mode then Get_Robinhood_API_Token_TFA_Step_1(); end Robinhood.TFA_Code = instance.parameters.Robinhood_TFA_Code; Oanda.Account_ID = instance.parameters.Oanda_Account_ID; if instance.parameters.Oanda_Account_Type == "Real" then Oanda.URL = Oanda.Real_URL; elseif instance.parameters.Oanda_Account_Type == "Demo" then Oanda.URL = Oanda.Demo_URL; end Oanda.API_Token = instance.parameters.Oanda_API_Token; FXCM.Account_ID = instance.parameters.FXCM_Account_ID; Font.Equity = core.host:execute("createFont", "Verdana", 70, false, true); Font.Floating_PL = core.host:execute("createFont", "Verdana", 30, false, false); Font.Day_PL = core.host:execute("createFont", "Verdana", 30, false, false); Font.Leverage = core.host:execute("createFont", "Verdana", 30, false, false); end -------------------------------------------------------------------------------------------- -- Get Robinhood API Token -------------------------------------------------------------------------------------------- function Get_Robinhood_API_Token() local zURL = Create_Robinhood_URL_Syntax("Authentication", "POST_Login", Robinhood.URL, nil, nil, nil, nil); local zAuthentication = {}; zAuthentication.username = Robinhood.Account_ID; zAuthentication.password = Robinhood.Password; local zResponse = Send_Request("Robinhood", "POST", zURL, nil, nil , nil, Encode_Request(zAuthentication)); Robinhood.API_Token = Parse_Robinhood_Response("Authentication", "POST_Login", Decode_Response(zResponse)).Token; end -------------------------------------------------------------------------------------------- -- Get Robinhood API Token Two Factor Authentication Step 1 -------------------------------------------------------------------------------------------- function Get_Robinhood_API_Token_TFA_Step_1() local zURL = Create_Robinhood_URL_Syntax("Authentication", "POST_Login", Robinhood.URL, nil, nil, nil, nil); local zAuthentication = {}; zAuthentication.username = Robinhood.Account_ID; zAuthentication.password = Robinhood.Password; local zResponse = Send_Request("Robinhood", "POST", zURL, nil, nil , nil, Encode_Request(zAuthentication)); Robinhood.TFA_Type = Parse_Robinhood_Response("Authentication", "POST_Login", Decode_Response(zResponse)).TFA_Type; end -------------------------------------------------------------------------------------------- -- Get Robinhood API Token Two Factor Authentication Step 2 -------------------------------------------------------------------------------------------- function Get_Robinhood_API_Token_TFA_Step_2() if Robinhood.TFA_Type == "sms" then local zURL = Create_Robinhood_URL_Syntax("Authentication", "POST_Login", Robinhood.URL, nil, nil, nil, nil); local zAuthentication = {}; zAuthentication.username = Robinhood.Account_ID; zAuthentication.password = Robinhood.Password; zAuthentication.mfa_code = Robinhood.TFA_Code; local zResponse = Send_Request("Robinhood", "POST", zURL, nil, nil , nil, Encode_Request(zAuthentication)); Robinhood.API_Token = Parse_Robinhood_Response("Authentication", "POST_Login", Decode_Response(zResponse)).Token; else Send_Notification("Alert", "", 0, "Get_Robinhood_API_Token_TFA_Step_2() Failed | In Else Clause", core.now(), ""); end end -------------------------------------------------------------------------------------------- -- Get Robinhood Portfolio URL -------------------------------------------------------------------------------------------- function Get_Robinhood_Portfolio_URL() local zURL = Create_Robinhood_URL_Syntax("Accounts", "GET_Accounts", Robinhood.URL, nil, nil, nil, nil); local zResponse = Send_Request("Robinhood", "GET", zURL, nil, nil , Robinhood.API_Token, nil); Robinhood.Portfolio_URL = Parse_Robinhood_Response("Accounts", "GET_Accounts", Decode_Response(zResponse)).Portfolio_URL; end -------------------------------------------------------------------------------------------- -- Update Function -------------------------------------------------------------------------------------------- function Update() -- Not employed end -------------------------------------------------------------------------------------------- -- Update Values Function -------------------------------------------------------------------------------------------- function Update_Display(aType, aEquity, aDay_PL, aFloating_PL, aLeverage) if Format.Side == "Left" then Update_Display_Format_Left(aType, aEquity, aDay_PL, aFloating_PL, aLeverage) elseif Format.Side == "Right" then Update_Display_Format_Right(aType, aEquity, aDay_PL, aFloating_PL, aLeverage) end end -------------------------------------------------------------------------------------------- -- Update Values Function - Left Alignment -------------------------------------------------------------------------------------------- -- Routine Notes: This code is inefficient but works! Variable "Format.Digits" -- *may* be incorrect on first run but subsequent attempts will -- be accurate; impact is temporarily misaligned equity values. -- -------------------------------------------------------------------------------------------- function Update_Display_Format_Left(aType, aEquity, aDay_PL, aFloating_PL, aLeverage) local Display = {}; Display.yRobinhood_Equity_Offset = 46; Display.yRobinhood_Day_PL_Offset = Display.yRobinhood_Equity_Offset - 19; Display.yRobinhood_Floating_PL_Offset = Display.yRobinhood_Equity_Offset - 19; Display.yRobinhood_Leverage_Offset = Display.yRobinhood_Equity_Offset + 21; Display.yOanda_Equity_Offset = Display.yRobinhood_Equity_Offset * 3; Display.yOanda_Day_PL_Offset = Display.yOanda_Equity_Offset - 19; Display.yOanda_Floating_PL_Offset = Display.yOanda_Equity_Offset - 19; Display.yOanda_Leverage_Offset = Display.yOanda_Equity_Offset + 21; Display.xEquity_Offset = 5; Display.xDay_PL_Offset = nil; Display.xLeverage_Offset = nil; Format.Day_PL = Format_Color(aDay_PL); Format.Floating_PL = Format_Color(aFloating_PL); if aEquity ~= nil then aEquity = Format_Financial(aEquity, 0); else aEquity = "0"; end if aFloating_PL ~= nil then aFloating_PL = Format_Financial(aFloating_PL, 0); else aFloating_PL = "0"; end if aDay_PL ~= nil then aDay_PL = Format_Financial(aDay_PL, 0); else aDay_PL = "0"; end if aLeverage ~= nil then aLeverage = Format_Leverage(aLeverage, 2); else aLeverage = "0"; end if string.len(aEquity) == 6 then Display.Equity_Digits = string.len(aEquity) + 1; Display.xEquity_Offset = 65; else Display.Equity_Digits = string.len(aEquity); end Display.xDay_PL_Offset = 58 * Display.Equity_Digits; Display.xFloating_PL_Offset = Display.xDay_PL_Offset; Display.xLeverage_Offset = Display.xDay_PL_Offset; if aType == "Robinhood" then core.host:execute("drawLabel1", 1, Display.xEquity_Offset, core.CR_LEFT, Display.yRobinhood_Equity_Offset, core.CR_TOP, core.H_Right, core.V_Center, Font.Equity, Format.Equity, aEquity); core.host:execute("drawLabel1", 2, Display.xDay_PL_Offset, core.CR_LEFT, Display.yRobinhood_Day_PL_Offset, core.CR_TOP, core.H_Right, core.V_Center, Font.Day_PL, Format.Day_PL, aDay_PL); core.host:execute("drawLabel1", 3, Display.xLeverage_Offset, core.CR_LEFT, Display.yRobinhood_Leverage_Offset, core.CR_TOP, core.H_Right, core.V_Center, Font.Leverage, Format.Leverage, aLeverage); elseif aType == "Oanda" then core.host:execute("drawLabel1", 4, Display.xEquity_Offset, core.CR_LEFT, Display.yOanda_Equity_Offset, core.CR_TOP, core.H_Right, core.V_Center, Font.Equity, Format.Equity, aEquity); core.host:execute("drawLabel1", 5, Display.xLeverage_Offset, core.CR_LEFT, Display.yOanda_Leverage_Offset, core.CR_TOP, core.H_Right, core.V_Center, Font.Leverage, Format.Leverage, aLeverage); elseif aType == "FXCM" then core.host:execute("drawLabel1", 6, Display.xFloating_PL_Offset, core.CR_LEFT, Display.yOanda_Day_PL_Offset, core.CR_TOP, core.H_Right, core.V_Center, Font.Floating_PL, Format.Day_PL, aDay_PL); end end -------------------------------------------------------------------------------------------- -- Update Values Function - Right Alignment -------------------------------------------------------------------------------------------- -- Routine Notes: This code is inefficient but works! Variable "Format.Digits" -- *may* be incorrect on first run but subsequent attempts will -- be accurate; impact is temporarily misaligned equity values. -- -------------------------------------------------------------------------------------------- function Update_Display_Format_Right(aType, aEquity, aDay_PL, aFloating_PL, aLeverage) Format.Day_PL = Format_Color(aDay_PL); Format.Floating_PL = Format_Color(aFloating_PL); if aFloating_PL ~= nil then aFloating_PL = Format_Financial(aFloating_PL, 0); else aFloating_PL = "0"; end if aDay_PL ~= nil then aDay_PL = Format_Financial(aDay_PL, 0); else aDay_PL = "0"; end if aLeverage ~= nil then aLeverage = Format_Leverage(aLeverage, 2); else aLeverage = "0"; end if aEquity ~= nil then aEquity = Format_Financial(aEquity, 0); else aEquity = "0"; end local Display = {}; Display.Day_PL_Digits = string.len(aFloating_PL); Display.Floating_PL_Digits = string.len(aDay_PL); Display.Leverage_Digits = string.len(aLeverage); if Display.Leverage_Digits > Display.Day_PL_Digits then if Display.Leverage_Digits > Display.Floating_PL_Digits then Display.Digits = Display.Leverage_Digits; else Display.Digits = Display.Floating_PL_Digits; end elseif Display.Day_PL_Digits > Display.Floating_PL_Digits then Display.Digits = Display.Day_PL_Digits; else Display.Digits = Display.Floating_PL_Digits; end if Display.Digits > Format.Digits then Format.Digits = Display.Digits end; Display.xDay_PL_Offset = -5; Display.xFloating_PL_Offset = Display.xDay_PL_Offset; Display.xLeverage_Offset = Display.xDay_PL_Offset; Display.xEquity_Offset = -24 * Format.Digits; Display.yRobinhood_Equity_Offset = 46; Display.yRobinhood_Day_PL_Offset = Display.yRobinhood_Equity_Offset - 19; Display.yRobinhood_Floating_PL_Offset = Display.yRobinhood_Equity_Offset - 19; Display.yRobinhood_Leverage_Offset = Display.yRobinhood_Equity_Offset + 21; Display.yOanda_Equity_Offset = Display.yRobinhood_Equity_Offset * 3; Display.yOanda_Day_PL_Offset = Display.yOanda_Equity_Offset - 19; Display.yOanda_Floating_PL_Offset = Display.yOanda_Equity_Offset - 19; Display.yOanda_Leverage_Offset = Display.yOanda_Equity_Offset + 21; if aType == "Robinhood" then core.host:execute("drawLabel1", 1, Display.xEquity_Offset, core.CR_RIGHT, Display.yRobinhood_Equity_Offset, core.CR_TOP, core.H_Left, core.V_Center, Font.Equity, Format.Equity, aEquity); core.host:execute("drawLabel1", 2, Display.xDay_PL_Offset, core.CR_RIGHT, Display.yRobinhood_Day_PL_Offset, core.CR_TOP, core.H_Left, core.V_Center, Font.Day_PL, Format.Day_PL, aDay_PL); core.host:execute("drawLabel1", 3, Display.xLeverage_Offset, core.CR_RIGHT, Display.yRobinhood_Leverage_Offset, core.CR_TOP, core.H_Left, core.V_Center, Font.Leverage, Format.Leverage, aLeverage); elseif aType == "Oanda" then core.host:execute("drawLabel1", 4, Display.xEquity_Offset, core.CR_RIGHT, Display.yOanda_Equity_Offset, core.CR_TOP, core.H_Left, core.V_Center, Font.Equity, Format.Equity, aEquity); core.host:execute("drawLabel1", 5, Display.xLeverage_Offset, core.CR_RIGHT, Display.yOanda_Leverage_Offset, core.CR_TOP, core.H_Left, core.V_Center, Font.Leverage, Format.Leverage, aLeverage); elseif aType == "FXCM" then core.host:execute("drawLabel1", 6, Display.xFloating_PL_Offset, core.CR_RIGHT, Display.yOanda_Day_PL_Offset, core.CR_TOP, core.H_Left, core.V_Center, Font.Floating_PL, Format.Day_PL, aDay_PL); end end -------------------------------------------------------------------------------------------- -- Get Robinhood Account Data -------------------------------------------------------------------------------------------- function Get_Robinhood_Account_Data() local zURL = Create_Robinhood_URL_Syntax("Portfolio", "GET_Portfolio", Robinhood.URL, nil, nil, nil, nil); local zResponse = Send_Request("Robinhood", "GET", zURL, nil, nil , Robinhood.API_Token, nil); local zEquity = Parse_Robinhood_Response("Portfolio", "GET_Portfolio", Decode_Response(zResponse)).Equity; local zStart_Equity = Parse_Robinhood_Response("Portfolio", "GET_Portfolio", Decode_Response(zResponse)).Start_Equity; local zSize_In_USD = Parse_Robinhood_Response("Portfolio", "GET_Portfolio", Decode_Response(zResponse)).Size_In_USD; local zDay_PL local zLeverage = nil; if pcall(function () zDay_PL = zEquity - zStart_Equity; end) then zDay_PL = zEquity - zStart_Equity; if zEquity ~= nil and zSize_In_USD ~= nil then zLeverage = zSize_In_USD / zEquity; else zLeverage = "0"; end else zDay_PL = nil; zEquity = nil; zStart_Equity = nil; end Update_Display("Robinhood", zEquity, zDay_PL, nil, zLeverage); end -------------------------------------------------------------------------------------------- -- Get Oanda Account Data -------------------------------------------------------------------------------------------- function Get_Oanda_Account_Data() local zURL = Create_Oanda_URL_Syntax("Account", "GET_Summary", Oanda.URL, Oanda.Account_ID, nil, nil, nil); local zReponse = Send_Request("Oanda", "GET", zURL, nil, nil, Oanda.API_Token, nil); local zEquity = Parse_Oanda_Response("Account", "GET_Summary", Decode_Response(zReponse)).NAV; local zFloating_PL = Parse_Oanda_Response("Account", "GET_Summary", Decode_Response(zReponse)).Unrealized_PL; local zSize_In_USD = Parse_Oanda_Response("Account", "GET_Summary", Decode_Response(zReponse)).Size_In_USD; local zLeverage = nil; if pcall(function () zLeverage = zSize_In_USD / zEquity; end) then zLeverage = zSize_In_USD / zEquity; end Update_Display("Oanda", zEquity, nil, zFloating_PL, zLeverage); end -------------------------------------------------------------------------------------------- -- Get FXCM Account Data -------------------------------------------------------------------------------------------- function Get_FXCM_Account_Data() if core.host:execute("isTableFilled", "accounts") then local zRow = core.host:findTable("accounts"):find("AccountID", FXCM.Account_ID); Update_Display("FXCM", zRow.Equity, zRow.DayPL, zRow.GrossPL, nil); end end -------------------------------------------------------------------------------------------- -- Create Robinhood URL Function -------------------------------------------------------------------------------------------- function Create_Robinhood_URL_Syntax(aEndpoint, aEndpoint_Type, aSubdomain, aAccount_ID, aOrder_ID, aTrade_ID, aInstrument) local zBase_URL = "https://" .. aSubdomain .. "/"; local zComplete_URL = nil; if aEndpoint == "Authentication" then if aEndpoint_Type == "POST_Login" then zComplete_URL = zBase_URL .. "api-token-auth/"; else Send_Notification("Alert", "", 0, "Create_Robinhood_URL_Syntax() Failed | In Sub Else Clause", core.now(), ""); end elseif aEndpoint == "Accounts" then if aEndpoint_Type == "GET_Accounts" then zComplete_URL = zBase_URL .. "accounts/"; else Send_Notification("Alert", "", 0, "Create_Robinhood_URL_Syntax() Failed | In Sub Else Clause", core.now(), ""); end elseif aEndpoint == "Portfolio" then if aEndpoint_Type == "GET_Portfolio" then zComplete_URL = Robinhood.Portfolio_URL; else Send_Notification("Alert", "", 0, "Create_Robinhood_URL_Syntax() Failed | In Sub Else Clause", core.now(), ""); end else Send_Notification("Alert", "", 0, "Create_Robinhood_URL_Syntax() Failed | In Else Clause", core.now(), ""); end return zComplete_URL; end -------------------------------------------------------------------------------------------- -- Create Oanda URL Function -------------------------------------------------------------------------------------------- function Create_Oanda_URL_Syntax(aEndpoint, aEndpoint_Type, aSubdomain, aAccount_ID, aOrder_ID, aTrade_ID, aInstrument) local zBase_URL = "https://" .. aSubdomain .. "/v3/accounts/" .. aAccount_ID; local zComplete_URL = nil; if aEndpoint == "Account" then if aEndpoint_Type == "GET_Accounts" then zComplete_URL = "https://" .. aSubdomain .. "/v3/accounts"; elseif aEndpoint_Type == "GET_Account" then zComplete_URL = zBase_URL; elseif aEndpoint_Type == "GET_Summary" then zComplete_URL = zBase_URL .. "/summary"; else Send_Notification("Alert", "", 0, "Create_Oanda_URL_Syntax() Failed | In Sub Else Clause", core.now(), ""); end else Send_Notification("Alert", "", 0, "Create_Oanda_URL_Syntax() Failed | In Else Clause", core.now(), ""); end return zComplete_URL; end -------------------------------------------------------------------------------------------- -- Send Request Function -------------------------------------------------------------------------------------------- function Send_Request(aRequest_Type, aHTTP_Type, aComplete_URL, aAccount_ID, aPassword, aAPI_Token, zPost_Payload) local zObject = http_lua.createRequest(); zObject:setRequestHeader("Content-Type", "application/json"); if aHTTP_Type == "GET" then local zHeaders_Authorization = nil; if aRequest_Type == "Oanda" then zHeaders_Authorization = "Bearer " .. aAPI_Token; elseif aRequest_Type == "Robinhood" then zHeaders_Authorization = "Token " .. aAPI_Token; else Send_Notification("Alert", "", 0, "Send_Request() Failed | In Else Sub Clause", core.now(), ""); end zObject:setRequestHeader("Authorization", zHeaders_Authorization); zObject:start(aComplete_URL, "GET"); elseif aHTTP_Type == "POST" then zObject:start(aComplete_URL, "POST", zPost_Payload); else Send_Notification("Alert", "", 0, "Send_Request() Failed | In Else Clause", core.now(), ""); end Timer.Send_Request = core.host:execute("setTimer", 500, 10); while zObject:loading() do end core.host:execute("killTimer", Timer.Send_Request); if not(zObject:success()) then Send_Notification("Alert", "", 0, "Send_Request() Failed | HTTP Status " .. zObject:httpStatus(), core.now(), ""); end if zObject:httpStatus() ~= 200 and zObject:httpStatus() ~= 201 then Send_Notification("Trace", "", 0, "Send_Request() Returned | HTTP Status " .. zObject:httpStatus(), core.now(), ""); end return zObject:response(); end -------------------------------------------------------------------------------------------- -- Encode Response Function -------------------------------------------------------------------------------------------- function Encode_Request(aRequest) JSON = assert(loadfile "JSON.lua")(); aRequest = JSON:encode(aRequest); return aRequest; end -------------------------------------------------------------------------------------------- -- Decode Response Function -------------------------------------------------------------------------------------------- function Decode_Response(aResponse) JSON = assert(loadfile "JSON.lua")(); aResponse = JSON:decode(aResponse); return aResponse; end -------------------------------------------------------------------------------------------- -- Parse Robinhood Response Function -------------------------------------------------------------------------------------------- function Parse_Robinhood_Response(oEndpoint, oEndpoint_Type, aResponse) if oEndpoint == "Authentication" then if oEndpoint_Type == "POST_Login" then local POST_Login = {}; if pcall(function () POST_Login.Token = tostring(aResponse["token"]); end) then POST_Login.Token = tostring(aResponse["token"]); else POST_Login.Token = nil; end if pcall(function () POST_Login.TFA_Type = tostring(aResponse["mfa_type"]); end) then POST_Login.TFA_Type = tostring(aResponse["mfa_type"]); else POST_Login.TFA_Type = nil; end return POST_Login; else Send_Notification("Alert", "", 0, "Parse_Robinhood_Response() Failed | In Sub Else Clause", core.now(), ""); end elseif oEndpoint == "Accounts" then if oEndpoint_Type == "GET_Accounts" then local GET_Accounts = {}; if pcall(function () GET_Accounts.Portfolio_URL = tostring(aResponse["results"][1]["portfolio"]); end) then GET_Accounts.Portfolio_URL = tostring(aResponse["results"][1]["portfolio"]); else GET_Accounts.Portfolio_URL = nil; end return GET_Accounts; else Send_Notification("Alert", "", 0, "Parse_Robinhood_Response() Failed | In Sub Else Clause", core.now(), ""); end elseif oEndpoint == "Portfolio" then if oEndpoint_Type == "GET_Portfolio" then local GET_Portfolio = {}; if pcall(function () GET_Portfolio.Equity = tostring(aResponse["equity"]); end) then GET_Portfolio.Equity = tostring(aResponse["equity"]); else GET_Accounts.Equity = nil; end if pcall(function () GET_Portfolio.Extened_Hours_Equity = tostring(aResponse["extended_hours_equity"]); end) then GET_Portfolio.Extened_Hours_Equity = tostring(aResponse["extended_hours_equity"]); else GET_Accounts.Extened_Hours_Equity = nil; end if not string.match(GET_Portfolio.Extened_Hours_Equity, "%a") then GET_Portfolio.Equity = GET_Portfolio.Extened_Hours_Equity; end if pcall(function () GET_Portfolio.Start_Equity = tostring(aResponse["equity_previous_close"]); end) then GET_Portfolio.Start_Equity = tostring(aResponse["equity_previous_close"]); else GET_Portfolio.Start_Equity = nil; end if pcall(function () GET_Portfolio.Size_In_USD = tostring(aResponse["market_value"]); end) then GET_Portfolio.Size_In_USD = tostring(aResponse["market_value"]); else GET_Accounts.Size_In_USD = nil; end if pcall(function () GET_Portfolio.Extened_Hours_Size_In_USD = tostring(aResponse["extended_hours_market_value"]); end) then GET_Portfolio.Extened_Hours_Size_In_USD = tostring(aResponse["extended_hours_market_value"]); else GET_Accounts.Extened_Hours_Size_In_USD = nil; end if not string.match(GET_Portfolio.Extened_Hours_Size_In_USD, "%a") then GET_Portfolio.Size_In_USD = GET_Portfolio.Extened_Hours_Size_In_USD; end return GET_Portfolio; else Send_Notification("Alert", "", 0, "Parse_Robinhood_Response() Failed | In Sub Else Clause", core.now(), ""); end else Send_Notification("Alert", "", 0, "Parse_Robinhood_Response() Failed | In Else Clause", core.now(), ""); end end -------------------------------------------------------------------------------------------- -- Parse Oanda Response Function -------------------------------------------------------------------------------------------- function Parse_Oanda_Response(aEndpoint, aEndpoint_Type, aResponse) if aEndpoint == "Account" then if aEndpoint_Type == "GET_Summary" then local GET_Summary = {}; if pcall(function () GET_Summary.NAV = tostring(aResponse["account"]["NAV"]); end) then GET_Summary.NAV = tostring(aResponse["account"]["NAV"]); else GET_Summary.NAV = nil; end if pcall(function () GET_Summary.Size_In_USD = tostring(aResponse["account"]["positionValue"]); end) then GET_Summary.Size_In_USD = tostring(aResponse["account"]["positionValue"]); else GET_Summary.Size_In_USD = nil; end if pcall(function () GET_Summary.Unrealized_PL = tostring(aResponse["account"]["unrealizedPL"]); end) then GET_Summary.Unrealized_PL = tostring(aResponse["account"]["unrealizedPL"]); else GET_Summary.Unrealized_PL = nil; end return GET_Summary; else Send_Notification("Alert", "", 0, "Parse_Oanda_Response() Failed | In Else Clause", core.now(), ""); end else Send_Notification("Alert", "", 0, "Parse_Oanda_Response() Failed | In Else Clause", core.now(), ""); end end -------------------------------------------------------------------------------------------- -- Send Notification Function -------------------------------------------------------------------------------------------- function Send_Notification(aType, aSymbol, aOpen, aMessage, aTime) if aType == "Alert" then terminal:alertMessage(aSymbol, aOpen, aMessage, aTime); elseif aType == "Trace" then core.host:trace(aMessage); else core.host:trace("Send_Notification() Failed | In Else Clause"); end end -------------------------------------------------------------------------------------------- -- Formatting Functions -------------------------------------------------------------------------------------------- function Format_Precision(aInput, aDecimals) return string.format("%." .. aDecimals .. "f", aInput); end function Format_Percentage(aInput, aDecimals) return string.format("%." .. aDecimals .. "f", aInput) .. "%"; end function Format_Leverage(aInput, aDecimals) return string.format("%." .. aDecimals .. "f", aInput) .. ":1"; end function Format_Financial(aInput, aDecimals) -- Sourced from http://www.gammon.com.au/forum/?id=7805 aInput = string.format("%." .. aDecimals .. "f", aInput); local aResult = ""; local aSign, aBefore, aAfter = string.match(tostring(aInput), "^([%+%-]?)(%d*)(%.?.*)$") while string.len(aBefore) > 3 do aResult = "," .. string.sub(aBefore, -3, -1) .. aResult; aBefore = string.sub(aBefore, 1, -4); end return aSign .. "$" .. aBefore .. aResult .. aAfter; end function Format_Color(aInput) aInput = tonumber(aInput); if aInput == nil then return Format.Neutral; elseif aInput > 0 then return Format.Positive; elseif aInput < 0 then return Format.Negative; else return Format.Neutral; end end -------------------------------------------------------------------------------------------- -- Async Operations Function -------------------------------------------------------------------------------------------- function AsyncOperationFinished(aReference, aSuccess, aMessage, aMessage1, aMessage2) if aReference == 100 then if not Robinhood.TFA_Mode then Get_Robinhood_API_Token(); else Get_Robinhood_API_Token_TFA_Step_2(); end Get_Robinhood_Portfolio_URL(); Get_Robinhood_Account_Data(); Get_Oanda_Account_Data(); Get_FXCM_Account_Data(); core.host:execute("killTimer", Timer.Initialized); elseif aReference == 200 then Get_Robinhood_Account_Data(); Get_Oanda_Account_Data(); Get_FXCM_Account_Data(); elseif aReference == 500 then core.host:execute("killTimer", Timer.Send_Request); end end
local checkluatype = SF.CheckLuaType local dgetmeta = debug.getmetatable local math_sqrt = math.sqrt local math_exp = math.exp local math_log = math.log local math_sin = math.sin local math_cos = math.cos local math_min = math.min local math_acos = math.acos local math_clamp = math.Clamp local math_max = math.max local math_rad = math.rad local math_deg = math.deg local function quatPack(q, r, i, j, k) q[1], q[2], q[3], q[4] = r, i, j, k end local function quatUnpack(q) return q[1], q[2], q[3], q[4] end local function getQuatLenSqr(q) return q[1]^2 + q[2]^2 + q[3]^2 + q[4]^2 end local function getQuatLen(q) return math_sqrt(getQuatLenSqr(q)) end local function getQuatImaginaryLenSqr(q) return q[2]^2 + q[3]^2 + q[4]^2 end local function getQuatImaginaryLen(q) return math_sqrt(getQuatImaginaryLenSqr(q)) end local function getQuatDot(lhs, rhs) return lhs[1]*rhs[1] + lhs[2]*rhs[2] + lhs[3]*rhs[3] + lhs[4]*rhs[4] end local function quatNorm(q) local len = getQuatLen(q) q[1] = q[1] / len q[2] = q[2] / len q[3] = q[3] / len q[4] = q[4] / len end local function quatDivNum(q, n) q[1] = q[1] / n q[2] = q[2] / n q[3] = q[3] / n q[4] = q[4] / n end -- We're gonna make this one not self-modify for the sake of sanity local function getQuatMul(lhs, rhs) local lhs1, lhs2, lhs3, lhs4 = quatUnpack(lhs) local rhs1, rhs2, rhs3, rhs4 = quatUnpack(rhs) return { lhs1 * rhs1 - lhs2 * rhs2 - lhs3 * rhs3 - lhs4 * rhs4, lhs1 * rhs2 + lhs2 * rhs1 + lhs3 * rhs4 - lhs4 * rhs3, lhs1 * rhs3 + lhs3 * rhs1 + lhs4 * rhs2 - lhs2 * rhs4, lhs1 * rhs4 + lhs4 * rhs1 + lhs2 * rhs3 - lhs3 * rhs2 } end local function quatMulNum(q, n) q[1] = q[1] * n q[2] = q[2] * n q[3] = q[3] * n q[4] = q[4] * n end local function quatExp(q) local ilen_sqrt = getQuatImaginaryLen(q) local real_exp = math_exp(q[1]) if ilen_sqrt ~= 0 then local sin_ilen_sqrt = math_sin(ilen_sqrt) q[1] = real_exp * math_cos(ilen_sqrt) q[2] = real_exp * (q[2] * sin_ilen_sqrt / ilen_sqrt) q[3] = real_exp * (q[3] * sin_ilen_sqrt / ilen_sqrt) q[4] = real_exp * (q[4] * sin_ilen_sqrt / ilen_sqrt) else quatPack(q, real_exp, 0, 0, 0) end end local function quatLog(q) local len_sqrt = getQuatLen(q) if len_sqrt == 0 then quatPack(q, -1e+100, 0, 0, 0) else quatNorm(q) local q1, q2, q3, q4 = quatUnpack(q) local acos = math_acos(q1) local ilen = getQuatImaginaryLen(q) local ilen_log = math_log(len_sqrt) if ilen ~= 0 then quatPack(q, ilen_log, acos * q2 / ilen, acos * q3 / ilen, acos * q4 / ilen) else quatPack(q, ilen_log, 0, 0, 0) end end end local function quatInv(q) local len = getQuatLenSqr(q) q[1] = q[1] / len q[2] = q[2] / len q[3] = q[3] / len q[4] = q[4] / len end local function quatConj(q) q[2] = -q[2] q[3] = -q[3] q[4] = -q[4] end local function quatFlip(q) q[1] = -q[1] q[2] = -q[2] q[3] = -q[3] q[4] = -q[4] end local function quatMod(q) if q[1] < 0 then quatFlip(q) end end local function quatFromAngleComponents(p, y, r) p = math_rad(p) * 0.5 y = math_rad(y) * 0.5 r = math_rad(r) * 0.5 return getQuatMul({math_cos(y), 0, 0, math_sin(y)}, getQuatMul({ math_cos(p), 0, math_sin(p), 0 }, {math_cos(r), math_sin(r), 0, 0})) end local function quatFromAngle(ang) return quatFromAngleComponents(ang[1], ang[2], ang[3]) end -- Based on Expression's 2 quaternion library: https://github.com/wiremod/wire/blob/master/lua/entities/gmod_wire_expression2/core/quaternion.lua --- Quaternion type. Recently reworked, for full changelist visit: https://github.com/thegrb93/StarfallEx/pull/953 -- @name Quaternion -- @class type -- @libtbl quat_methods -- @libtbl quat_meta SF.RegisterType("Quaternion", true, false) return function(instance) local checktype = instance.CheckType local quat_methods, quat_meta = instance.Types.Quaternion.Methods, instance.Types.Quaternion local ents_methods = instance.Types.Entity.Methods local ang_methods, awrap, aunwrap = instance.Types.Angle.Methods, instance.Types.Angle.Wrap, instance.Types.Angle.Unwrap local vec_methods, vec_meta, vwrap, vunwrap = instance.Types.Vector.Methods, instance.Types.Vector, instance.Types.Vector.Wrap, instance.Types.Vector.Unwrap local mwrap = instance.Types.VMatrix.Wrap local math_library = instance.Libraries.math local function wrap(q) return setmetatable(q, quat_meta) end local function clone(q) return setmetatable({q[1], q[2], q[3], q[4]}, quat_meta) end local getent instance:AddHook("initialize", function() getent = instance.Types.Entity.GetEntity end) instance.Types.Quaternion.QuaternionMultiply = getQuatMul ------------------------------------- --- Creates a Quaternion -- @name builtins_library.Quaternion -- @class function -- @param number r R (real) component -- @param number i I component -- @param number j J component -- @param number k K component -- @return Quaternion Quaternion object function instance.env.Quaternion(r, i, j, k) if r ~= nil then checkluatype(r, TYPE_NUMBER) else r = 0 end if i ~= nil then checkluatype(i, TYPE_NUMBER) else i = 0 end if j ~= nil then checkluatype(j, TYPE_NUMBER) else j = 0 end if k ~= nil then checkluatype(k, TYPE_NUMBER) else k = 0 end return wrap({ r, i, j, k }) end local rijk = { r = 1, i = 2, j = 3, k = 4 } --- Newindex metamethod -- @param number|string Key -- @param number Value to set function quat_meta.__newindex(t, k, v) if rijk[k] then rawset(t, rijk[k], v) elseif (#k == 2 and rijk[k[1]] and rijk[k[2]]) then checktype(v, quat_meta) rawset(t, rijk[k[1]], rawget(v, 1)) rawset(t, rijk[k[2]], rawget(v, 2)) elseif (#k == 3 and rijk[k[1]] and rijk[k[2]] and rijk[k[3]]) then checktype(v, quat_meta) rawset(t, rijk[k[1]], rawget(v, 1)) rawset(t, rijk[k[2]], rawget(v, 2)) rawset(t, rijk[k[3]], rawget(v, 3)) elseif (#k == 4 and rijk[k[1]] and rijk[k[2]] and rijk[k[3]] and rijk[k[4]]) then checktype(v, quat_meta) rawset(t, rijk[k[1]], rawget(v, 1)) rawset(t, rijk[k[2]], rawget(v, 2)) rawset(t, rijk[k[3]], rawget(v, 3)) rawset(t, rijk[k[4]], rawget(v, 4)) else rawset(t, k, v) end end --- Index metamethod -- Can be indexed with: 1, 2, 3, 4, r, i, j, k, rr, ri, rj, rk, rrr, rijk, kjir, etc. Numerical lookup is the most efficient -- @param number|string Key -- @return number Found value function quat_meta.__index(t, k) local method = quat_methods[k] if method ~= nil then return method elseif rijk[k] then return rawget(t, rijk[k]) else -- Swizzle support local q = { 0, 0, 0, 0 } for i = 1, math_min(#k, 4)do local vk = rijk[k[i]] if vk then q[i] = rawget(t, vk) else return nil -- Not a swizzle end end return wrap(q) end end ------------------------------------- --- Multiplication metamethod -- @param Quaternion|number lhs Left side of equation. Quaternion or number -- @param Quaternion|number rhs Right side of equation. Quaternion or number -- @return Quaternion Product function quat_meta.__mul(lhs, rhs) if isnumber(rhs) then -- Q * N lhs = clone(lhs) quatMulNum(lhs, rhs) return lhs elseif isnumber(lhs) then -- N * Q rhs = clone(rhs) quatMulNum(rhs, lhs) return rhs end local lhs_meta = dgetmeta(lhs) local rhs_meta = dgetmeta(rhs) if lhs_meta == quat_meta and rhs_meta == quat_meta then -- Q * Q return wrap(getQuatMul(lhs, rhs)) elseif lhs_meta == quat_meta and rhs_meta == vec_meta then -- Q * V local lhs1, lhs2, lhs3, lhs4 = quatUnpack(lhs) local rhs2, rhs3, rhs4 = rhs[1], rhs[2], rhs[3] return wrap({ -lhs2 * rhs2 - lhs3 * rhs3 - lhs4 * rhs4, lhs1 * rhs2 + lhs3 * rhs4 - lhs4 * rhs3, lhs1 * rhs3 + lhs4 * rhs2 - lhs2 * rhs4, lhs1 * rhs4 + lhs2 * rhs3 - lhs3 * rhs2 }) elseif lhs_meta == quat_meta then checkluatype(rhs, TYPE_NUMBER) else checkluatype(lhs, TYPE_NUMBER) end end --- Division metamethod -- @param Quaternion|number lhs Left side of equation. Quaternion or number -- @param Quaternion|number rhs Right side of equation. Quaternion or number -- @return Quaternion Quotient function quat_meta.__div(lhs, rhs) if isnumber(rhs) then -- Q / N return wrap({ lhs[1] / rhs, lhs[2] / rhs, lhs[3] / rhs, lhs[4] / rhs }) elseif isnumber(lhs) then -- N / Q local len = getQuatLenSqr(rhs) return wrap({ (lhs * rhs[1]) / len, (-lhs * rhs[2]) / len, (-lhs * rhs[3]) / len, (-lhs * rhs[4]) / len }) elseif dgetmeta(lhs) == quat_meta and dgetmeta(rhs) == quat_meta then -- Q / Q local lhs1, lhs2, lhs3, lhs4 = quatUnpack(lhs) local rhs1, rhs2, rhs3, rhs4 = quatUnpack(rhs) local len = rhs1 * rhs1 + rhs2 * rhs2 + rhs3 * rhs3 + rhs4 * rhs4 return wrap({ (lhs1 * rhs1 + lhs2 * rhs2 + lhs3 * rhs3 + lhs4 * rhs4) / len, (-lhs1 * rhs2 + lhs2 * rhs1 - lhs3 * rhs4 + lhs4 * rhs3) / len, (-lhs1 * rhs3 + lhs3 * rhs1 - lhs4 * rhs2 + lhs2 * rhs4) / len, (-lhs1 * rhs4 + lhs4 * rhs1 - lhs2 * rhs3 + lhs3 * rhs2) / len }) elseif dgetmeta(lhs) == quat_meta then checkluatype(rhs, TYPE_NUMBER) else checkluatype(lhs, TYPE_NUMBER) end end --- Involution metamethod -- @param Quaternion|number lhs Left side of equation. Quaternion or number -- @param Quaternion|number rhs Right side of equation. Quaternion or number -- @return Quaternion Power function quat_meta.__pow(lhs, rhs) if isnumber(rhs) then -- Q ^ N local out = clone(lhs) quatLog(out) quatMulNum(out, rhs) quatExp(out) return out elseif isnumber(lhs) then -- N ^ Q if lhs == 0 then return wrap({ 0, 0, 0, 0 }) end local out = clone(rhs) quatMulNum(out, math_log(lhs)) quatExp(out) return out elseif dgetmeta(lhs) == quat_meta then checkluatype(rhs, TYPE_NUMBER) else checkluatype(lhs, TYPE_NUMBER) end end --- Addition metamethod -- @param Quaternion|number lhs Left side of equation. Quaternion or number -- @param Quaternion|number rhs Right side of equation. Quaternion or number -- @return Quaternion Sum function quat_meta.__add(lhs, rhs) if isnumber(rhs) then -- Q + N local out = clone(lhs) out[1] = out[1] + rhs return out elseif isnumber(lhs) then -- N + Q local out = clone(rhs) out[1] = out[1] + lhs return out elseif dgetmeta(lhs) == quat_meta and dgetmeta(rhs) == quat_meta then -- Q + Q return wrap({ lhs[1] + rhs[1], lhs[2] + rhs[2], lhs[3] + rhs[3], lhs[4] + rhs[4] }) elseif dgetmeta(lhs) == quat_meta then checkluatype(rhs, TYPE_NUMBER) else checkluatype(lhs, TYPE_NUMBER) end end --- Subtraction metamethod -- @param Quaternion|number lhs Left side of equation. Quaternion or number -- @param Quaternion|number rhs Right side of equation. Quaternion or number -- @return Quaternion Difference function quat_meta.__sub(lhs, rhs) if isnumber(rhs) then -- Q - N return wrap({ lhs[1] - rhs, lhs[2], lhs[3], lhs[4] }) elseif isnumber(lhs) then -- N - Q return wrap({ lhs - rhs[1], -rhs[2], -rhs[3], -rhs[4] }) elseif dgetmeta(lhs) == quat_meta and dgetmeta(rhs) == quat_meta then -- Q - Q return wrap({ lhs[1] - rhs[1], lhs[2] - rhs[2], lhs[3] - rhs[3], lhs[4] - rhs[4] }) elseif dgetmeta(lhs) == quat_meta then checkluatype(rhs, TYPE_NUMBER) else checkluatype(lhs, TYPE_NUMBER) end end --- Unary minus metamethod -- @return Quaternion Negated quaternion function quat_meta.__unm(q) return wrap({ -q[1], -q[2], -q[3], -q[4] }) end --- Equivalence metamethod -- @param Quaternion rhs Quaternion to compare to -- @return boolean True if both sides are equal function quat_meta.__eq(lhs, rhs) return lhs[1] == rhs[1] and lhs[2] == rhs[2] and lhs[3] == rhs[3] and lhs[4] == rhs[4] end --- Tostring metamethod -- @param Quaternion q Quaternion -- @return string Quaternion represented as a string function quat_meta.__tostring(q) return table.concat(q, " ", 1, 4) end ------------------------------------- --- Set components of the quaternion -- Self-Modifies. Does not return anything -- @param number r R component -- @param number i I component -- @param number j J component -- @param number k K component function quat_methods:pack(r, i, j, k) quatPack(self, r, i, j, k) end --- Returns components of the quaternion -- @return number r -- @return number i -- @return number j -- @return number k function quat_methods:unpack() return quatUnpack(self) end --- Creates a copy of the quaternion -- @return Quaternion Duplicate quaternion function quat_methods:clone() return clone(self) end --- Copies components of the second quaternion to the first quaternion. -- Self-Modifies. Does not return anything -- @param Quaternion quat Quaternion to copy from function quat_methods:set(quat) quatPack(self, quatUnpack(quat)) end --- Sets R (real) component of the quaternion and returns self after modification -- @param number r Value of the R component -- @return Quaternion self function quat_methods:setR(r) self[1] = r return self end --- Sets I component of the quaternion and returns self after modification -- @param number i Value of the I component -- @return Quaternion self function quat_methods:setI(i) self[2] = i return self end --- Sets J component of the quaternion and returns self after modification -- @param number j Value of the J component -- @return Quaternion self function quat_methods:setJ(j) self[3] = j return self end --- Sets K component of the quaternion and returns self after modification -- @param number k Value of the K component -- @return Quaternion self function quat_methods:setK(k) self[4] = k return self end ------------------------------------- --- Raises Euler's constant e to the quaternion's power -- @return Quaternion Constant e raised to the quaternion function quat_methods:getExp() local ret = clone(self) quatExp(ret) return ret end --- Raises Euler's constant e to the quaternion's power. -- Self-Modifies. Does not return anything function quat_methods:exp() quatExp(self) end --- Calculates natural logarithm of the quaternion -- @return Quaternion Logarithmic quaternion function quat_methods:getLog() local ret = clone(self) quatLog(ret) return ret end --- Calculates natural logarithm of the quaternion. -- Self-Modifies. Does not return anything function quat_methods:log() quatLog(self) end ------------------------------------- --- Calculates upward direction of the quaternion -- @return Vector Vector pointing up function quat_methods:getUp() local q1, q2, q3, q4 = quatUnpack(self) local t2, t3, t4 = q2 * 2, q3 * 2, q4 * 2 return vwrap(Vector( t3 * q1 + t2 * q4, t3 * q4 - t2 * q1, q1 * q1 - q2 * q2 - q3 * q3 + q4 * q4 )) end --- Calculates right direction of the quaternion -- @return Vector Vector pointing right function quat_methods:getRight() local q1, q2, q3, q4 = quatUnpack(self) local t2, t3, t4 = q2 * 2, q3 * 2, q4 * 2 return vwrap(Vector( t4 * q1 - t2 * q3, q2 * q2 - q1 * q1 - q3 * q3 + q4 * q4, -t2 * q1 - t3 * q4 )) end --- Calculates forward direction of the quaternion -- @return Vector Vector pointing forward function quat_methods:getForward() local q1, q2, q3, q4 = quatUnpack(self) local t2, t3, t4 = q2 * 2, q3 * 2, q4 * 2 return vwrap(Vector( q1 * q1 + q2 * q2 - q3 * q3 - q4 * q4, t3 * q2 + t4 * q1, t4 * q2 - t3 * q1 )) end ------------------------------------- --- Returns absolute value of the quaternion -- @return Vector Absolute value function quat_methods:getAbsolute() return getQuatLenSqr(self) end --- Returns conjugate of the quaternion -- @return Quaternion Quaternion's conjugate function quat_methods:getConjugate() local ret = clone(self) quatConj(ret) return ret end --- Conjugates the quaternion. -- Self-Modifies. Does not return anything function quat_methods:conjugate() quatConj(self) end --- Calculates inverse of the quaternion -- @return Quaternion Inverse of the quaternion function quat_methods:getInverse() local ret = clone(self) quatInv(ret) return ret end --- Calculates inverse of the quaternon. -- Self-Modifies. Does not return anything function quat_methods:inverse() quatInv(self) end --- Gets the quaternion representing rotation contained within an angle between 0 and 180 degrees -- @return Quaternion Quaternion with contained rotation function quat_methods:getMod() local ret = clone(self) quatMod(ret) return ret end --- Contains quaternion's represented rotation within an angle between 0 and 180 degrees. -- Self-Modifies. Does not return anything function quat_methods:mod() quatMod(self) end --- Returns new normalized quaternion -- @return Quaternion Normalized quaternion function quat_methods:getNormalized() local ret = clone(self) quatNorm(ret) return ret end --- Normalizes the quaternion. -- Self-Modifies. Does not return anything function quat_methods:normalize() quatNorm(self) end --- Returns dot product of two quaternions -- @param Quaternion quat Second quaternion -- @return number The dot product function quat_methods:dot(quat) return getQuatDot(self, quat) end ------------------------------------- --- Converts quaternion to a vector by dropping the R (real) component -- @return Vector Vector from the quaternion function quat_methods:getVector() return vwrap(Vector(self[2], self[3], self[4])) end -- credits: Malte Clasen (https://stackoverflow.com/a/1556470) --- Converts quaternion to a matrix -- @param boolean? Optional bool, normalizes the quaternion -- @return VMatrix Transformation matrix function quat_methods:getMatrix(normalize) local quat if normalize then checkluatype(normalize, TYPE_BOOL) quat = clone(self) quatNorm(quat) else quat = self end local w, x, y, z = quatUnpack(quat) local m = Matrix() m:SetUnpacked( 1 - 2*y*y - 2*z*z, 2*x*y - 2*z*w, 2*x*z + 2*y*w, 0, 2*x*y + 2*z*w, 1 - 2*x*y - 2*z*z, 2*y*z - 2*x*w, 0, 2*x*z - 2*y*w, 2*y*z + 2*x*w, 1 - 2*x*x - 2*y*y, 0, 0, 0, 0, 0) return mwrap(m) end --- Returns the euler angle of rotation in degrees -- @return Angle Angle object function quat_methods:getEulerAngle() local len_sqrt = getQuatLen(self) if len_sqrt == 0 then return awrap(Angle(0, 0, 0)) else local q1, q2, q3, q4 = quatUnpack(self) q1, q2, q3, q4 = q1 / len_sqrt, q2 / len_sqrt, q3 / len_sqrt, q4 / len_sqrt local x = Vector(q1*q1 + q2*q2 - q3*q3 - q4*q4, 2*q3*q2 + 2*q4*q1, 2*q4*q2 - 2*q3*q1) local y = Vector(2*q2*q3 - 2*q4*q1, q1*q1 - q2*q2 + q3*q3 - q4*q4, 2*q2*q1 + 2*q3*q4) local ang = x:Angle() if ang[1] > 180 then ang[1] = ang[1] - 360 end if ang[2] > 180 then ang[2] = ang[2] - 360 end local yaw = Vector(0, 1, 0) yaw:Rotate(Angle(0, ang[2], 0)) ang[3] = math_deg(math_acos(math_clamp(y:Dot(yaw), -1, 1))) local dot = q1*q2 + q3*q4 if dot < 0 then ang[3] = -ang[3] end return awrap(ang) end end -- credits: https://github.com/coder0xff --- Returns the angle of rotation in degrees -- @param boolean? full Optional bool, if true returned angle will be between -180 and 180, otherwise between 0 and 360 -- @return number Angle number function quat_methods:getRotationAngle(full) local len = getQuatLenSqr(self) if len == 0 then return 0 else local ang = math_deg(2 * math_acos(math_clamp(self[1] / math_sqrt(len), -1, 1))) if full then checkluatype(full, TYPE_BOOL) return ang else if ang > 180 then ang = ang - 360 end return ang end end end -- credits: https://github.com/cder0xff --- Returns the axis of rotation -- @return Vector Vector axis function quat_methods:getRotationAxis() local ilen = getQuatImaginaryLenSqr(self) if ilen == 0 then return vwrap(Vector(0, 0, 1)) else local ilen_sqrt = math_sqrt(ilen) return vwrap(Vector(self[2] / ilen_sqrt, self[3] / ilen_sqrt, self[4] / ilen_sqrt)) end end -- credits: https://github.com/cder0xff --- Returns the rotation vector - rotation axis where magnitude is the angle of rotation in degrees -- @return Vector Rotation vector function quat_methods:getRotationVector() local len = getQuatLenSqr(self) local ilen_max = math_max(getQuatImaginaryLenSqr(self), 0) if len == 0 or ilen_max == 0 then return vwrap(Vector(0, 0, 0)) else local ang = math_deg(2 * math_acos(math_clamp(self[1] / math_sqrt(len), -1, 1))) if ang > 180 then ang = ang - 360 end ang = ang / math_sqrt(ilen_max) return vwrap(Vector(self[2] * ang, self[3] * ang, self[4] * ang)) end end ------------------------------------- --- Converts vector to quaternion -- @param Vector up Upward direction. If specified, the original vector will act like a forward pointing one -- @return Quaternion Quaternion from the given vector function vec_methods:getQuaternion(up) if up then local x = vunwrap(self) local z = vunwrap(up) local y = z:Cross(x):GetNormalized() local ang = x:Angle() if ang[1] > 180 then ang[1] = ang[1] - 360 end if ang[2] > 180 then ang[2] = ang[2] - 360 end local yaw = Vector(0, 1, 0) yaw:Rotate(Angle(0, ang[2], 0)) local roll = math_deg(math_acos(math_clamp(y:Dot(yaw), -1, 1))) if y[3] < 0 then roll = -roll end return wrap(quatFromAngleComponents(ang[1], ang[2], roll)) else return wrap({ 0, self[1], self[2], self[3] }) end end --- Returns quaternion for rotation about axis represented by the vector by an angle -- @param number ang Number rotation angle -- @return Quaternion Rotated quaternion function vec_methods:getQuaternionFromAxis(ang) local axis = vunwrap(self):GetNormalized() local rang = math_rad(ang) * 0.5 return wrap({ math_cos(rang), axis[1] * math_sin(rang), axis[2] * math_sin(rang), axis[3] * math_sin(rang) }) end -- credits: https://github.com/cder0xff --- Constructs a quaternion from the rotation vector. Vector direction is axis of rotation, it's magnitude is angle in degrees -- @return Quaternion Rotated quaternion function vec_methods:getQuaternionFromRotation() local vec_len = self:getLengthSqr() if vec_len == 0 then return wrap({ 0, 0, 0, 0 }) else local vec_len_sqrt = math_sqrt(vec_len) local norm = (vec_len_sqrt + 180) % 360 - 180 local ang = math_rad(norm) * 0.5 local anglen = math_sin(ang) / vec_len_sqrt return wrap({ math_cos(ang), self[1] * anglen, self[2] * anglen, self[3] * anglen }) end end --- Converts angle to a quaternion -- @return Quaternion Constructed quaternion function ang_methods:getQuaternion() return wrap(quatFromAngle(aunwrap(self))) end --- Converts entity angles to a quaternion -- @return Quaternion Constructed quaternion function ents_methods:getQuaternion() local ang = getent(self):GetAngles() return wrap(quatFromAngle(ang)) end --- Performs spherical linear interpolation between two quaternions -- @param Quaternion quat1 Quaternion to start with -- @param Quaternion quat2 Quaternion to end with -- @param number t Ratio, 0 = quat1; 1 = quat2 -- @return Quaternion Interpolated quaternion function math_library.slerpQuaternion(quat1, quat2, t) checkluatype(t, TYPE_NUMBER) if getQuatLenSqr(quat1) == 0 then return wrap({ 0, 0, 0, 0}) else local new = clone(quat2) if getQuatDot(quat1, quat2) < 0 then quatFlip(new) end local out = clone(quat1) quatInv(out) quatConj(out) out = getQuatMul(out, new) quatLog(out) quatMulNum(out, t) quatExp(out) return wrap(getQuatMul(quat1, out)) end end --- Performs normalized linear interpolation between two quaternions -- @param Quaternion quat1 Quaternion to start with -- @param Quaternion quat2 Quaternion to end with -- @param number t Ratio, 0 = quat1; 1 = quat2 -- @return Quaternion Interpolated quaternion function math_library.nlerpQuaternion(quat1, quat2, t) checkluatype(t, TYPE_NUMBER) local t1 = 1 - t local new if getQuatDot(quat1, quat2) < 0 then new = { quat1[1] * t1 - quat2[1] * t, quat1[2] * t1 - quat2[2] * t, quat1[3] * t1 - quat2[3] * t, quat1[4] * t1 - quat2[4] * t } else new = { quat1[1] * t1 + quat2[1] * t, quat1[2] * t1 + quat2[2] * t, quat1[3] * t1 + quat2[3] * t, quat1[4] * t1 + quat2[4] * t } end quatNorm(new) return wrap(new) end end
-- IupTree Example in IupLua -- Creates a tree with some branches and leaves. -- Two callbacks are registered: one deletes marked nodes when the Del key -- is pressed, and the other, called when the right mouse button is pressed, -- opens a menu with options. require( "iuplua" ) require( "iupluacontrols" ) tree = iup.tree{} function tree:showrename_cb(id) print("SHOWRENAME_CB") end function tree:rename_cb(id) print("RENAME_CB") end function tree:k_any(c) if c == iup.K_DEL then tree.delnode = "MARKED" end end function init_tree_atributes() tree.font = "COURIER_NORMAL_10" tree.markmode = "MULTIPLE" tree.addexpanded = "NO" tree.showrename = "YES" end function init_tree_nodes() tree.name = "Figures" tree.addbranch = "3D" tree.addbranch = "2D" tree.addbranch1 = "parallelogram" tree.addleaf2 = "diamond" tree.addleaf2 = "square" tree.addbranch1 = "triangle" tree.addleaf2 = "scalenus" tree.addleaf2 = "isoceles" tree.value = "6" end dlg = iup.dialog{tree; title = "IupTree", size = "QUARTERxTHIRD"} init_tree_atributes() dlg:showxy(iup.CENTER,iup.CENTER) init_tree_nodes() if (iup.MainLoopLevel()==0) then iup.MainLoop() end
local _origin, _ang, _scale local _key, _mouse_input, _dist = KEY_E, false, 2.9 ^ 10 local panel_list = {} -- > Overwrite hovered function local PANEL = FindMetaTable( "Panel" ) panel_is_hovered = panel_is_hovered or PANEL.IsHovered --[[ function PANEL:IsHovered() -- > 3D2D support if panel_list[self] then return self.Hovered end -- > default hovered return panel_is_hovered() end ]] PANEL.IsHovered = panel_is_hovered -- > locals functions local function get_children( panel, add_self ) local children = {} -- > add himself if asked if add_self then children[#children + 1] = panel end -- > get every children for i, pnl in ipairs( panel:GetChildren() ) do children[#children + 1] = pnl for i, pnl_child in ipairs( get_children( pnl ) ) do children[#children + 1] = pnl_child end end return children end local function prepare_panel( panel ) -- > Disallow MakePopup panel:SetMouseInputEnabled( false ) panel:SetKeyboardInputEnabled( false ) -- > Set pos (fix center) panel:SetPos( 0, 0 ) -- > add its children and it to panel list for i, pnl in ipairs( get_children( panel, true ) ) do panel_list[pnl] = true end end local function check_hover( panel, cursor_x, cursor_y ) -- > check about children local can_hover = true for i, v in ipairs( panel:GetChildren() ) do local hover = check_hover( v, cursor_x, cursor_y ) if hover then can_hover = false end end -- > hover panel if can_hover then local is_hover = GNLib.Is3D2DCursorInPanel( panel, x, y ) if is_hover then if not panel.Hovered and LocalPlayer():GetPos():DistToSqr( _origin ) <= _dist then panel.Hovered = true if panel.OnCursorEntered then panel:OnCursorEntered() end return true end else if panel.Hovered then panel.Hovered = false if panel.OnCursorExited then panel:OnCursorExited() end end end end return false end local function check_click( panel ) for i, v in ipairs( get_children( panel ) ) do check_click( v ) end if not panel.DoClick or not panel.Hovered then return end local is_click = _mouse_input and input.IsMouseDown( _key ) or input.IsKeyDown( _key ) if is_click then if not panel.Clicked then panel.Clicked = true if panel.DoClick then panel:DoClick() end end else if panel.Clicked then panel.Clicked = false end end end function GNLib.Get3D2DCursorPos() local pos = util.IntersectRayWithPlane( LocalPlayer():EyePos(), LocalPlayer():GetAimVector(), _origin, _ang:Up() ) if not pos then return end -- > get pos pos = WorldToLocal( pos, Angle(), _origin, _ang ) -- > set the pos to the good scale and invert y pos.x, pos.y = pos.x * 1 / _scale, -pos.y * 1 / _scale return pos.x, pos.y end function GNLib.Is3D2DCursorInPanel( panel, cursor_x, cursor_y ) -- > Make sure we get cursor position if not cursor_x or not cursor_y then cursor_x, cursor_y = GNLib.Get3D2DCursorPos() end if not cursor_x or not cursor_y then return end -- > Collision check local x, y, w, h = GNLib.GetPanelAbsoluteBounds( panel ) return x < cursor_x and y < cursor_y and cursor_x < x + w and cursor_y < y + h end function GNLib.Set3D2DInput( enum, mouse_input ) _key = enum _mouse_input = mouse_input end function GNLib.Render3D2D( pos, ang, scale, func, key, dist ) _origin = pos _ang = ang _scale = scale _key = key or _key _dist = dist or _dist cam.Start3D2D( pos, ang, scale ) func() cam.End3D2D() end --[[ local show = true ]] function GNLib.Draw3D2DPanel( panel ) -- > make it some preparations if not panel_list[panel] then prepare_panel( panel ) end -- > set hover check_hover( panel ) -- > set clicked check_click( panel ) --[[ if show then show = false print( "--") for i, v in ipairs( get_children( panel ) ) do print( v ) print( "\tParent:", v:GetParent():GetName() ) print( "\tAbs Bounds:", GNLib.GetPanelAbsoluteBounds( v ) ) print( "\tBounds:", v:GetBounds() ) end end ]] -- > paint it panel:SetPaintedManually( false ) panel:PaintManual() panel:SetPaintedManually( true ) end function GNLib.Draw3D2DCursor( panel, draw_func ) if LocalPlayer():GetPos():DistToSqr( _origin ) > _dist then return end local cursor_x, cursor_y = GNLib.Get3D2DCursorPos() if GNLib.Is3D2DCursorInPanel( panel, cursor_x, cursor_y ) then if draw_func then draw_func( cursor_x, cursor_y ) else GNLib.DrawCircle( cursor_x or 0, cursor_y or 0, 5 ) end end end
require "classes.constants.screen" AnchorPoints={} function AnchorPoints:new() local this = display.newGroup() local public = this local private = {} local background = display.newImageRect("img/backgroundAnchorPoints.png", 360, 570) local secondHand = display.newImageRect("img/clockHand.png", 190, 31) local timerID function private.AnchorPoints() background.x = screen.centerX background.y = screen.centerY secondHand.x = screen.centerX secondHand.y = screen.centerY secondHand.anchorX = 0.2257 secondHand.anchorY = 0.5 this:insert(background) this:insert(secondHand) timerID = timer.performWithDelay(1000, function() secondHand.rotation = secondHand.rotation + 6 end, 0) end function public:destroy() timer.cancel(timerID) timerID = nil background:removeSelf() background = nil secondHand:removeSelf() secondHand = nil this:removeSelf() this = nil end private.AnchorPoints() return this end return AnchorPoints
object_building_kashyyyk_decd_trillium_palm_tall02 = object_building_kashyyyk_shared_decd_trillium_palm_tall02:new { } ObjectTemplates:addTemplate(object_building_kashyyyk_decd_trillium_palm_tall02, "object/building/kashyyyk/decd_trillium_palm_tall02.iff")
function onCreatePost() makeLuaText('sicks', 'Sicks:' .. getProperty('sicks'), 200, 0, 375); makeLuaText('goods', 'Goods:' .. getProperty('goods'), 200, 0, 400); makeLuaText('bads', 'Bads:' .. getProperty('bads'), 200, 0, 425); makeLuaText('shits', 'Shits:' .. getProperty('shits'), 200, 0, 450); addLuaText('sicks'); addLuaText('goods'); addLuaText('bads'); addLuaText('shits'); end function onRecalculateRating() setTextString('sicks', 'Sicks:' .. getProperty('sicks')); setTextString('goods', 'Goods:' .. getProperty('goods')); setTextString('bads', 'Bads:' .. getProperty('bads')); setTextString('shits', 'Shits:' .. getProperty('shits')); end
bus = { button = {}, window = {}, label = {} } local screenW, screenH = guiGetScreenSize() bus.window[1] = guiCreateWindow((screenW - 384) / 2, (screenH - 212) / 2, 384, 212, "SUSA-TRANS", false) guiWindowSetSizable(bus.window[1], false) guiWindowSetMovable(bus.window[1],false) guiSetVisible(bus.window[1],false) bus.label[1] = guiCreateLabel(11, 21, 363, 117, "Welcome to Susa-Bus. This company provides different kinds of transportations all around San Andreas. Your job is to deliver the tourists safely to the given position. After that you'll be revenued and automatically transported back here.", false, bus.window[1]) guiLabelSetHorizontalAlign(bus.label[1], "left", true) bus.button[1] = guiCreateButton(10, 166, 146, 29, "Accept", false, bus.window[1]) bus.button[2] = guiCreateButton(218, 166, 146, 29, "Decline", false, bus.window[1]) addEventHandler("onClientMarkerHit",resourceRoot, function(p) local id = getElementID(source) if p == localPlayer then if(id == "21") then guiSetVisible(bus.window[1],true) showCursor(true) end end end ) addEventHandler("onClientGUIClick",bus.button[1], function() local busjob = getElementData(localPlayer,"susa:bus") or 0 local startJob = getElementData(localPlayer,"startJob") or false if busjob == 1 then if startJob == false then triggerServerEvent("StartJobBus",localPlayer,localPlayer) guiSetVisible(bus.window[1],false) outputChatBox("You successfully started the Bus job.",0,180,0,false) showCursor(false) end elseif busjob == 0 then outputChatBox("You didn't select the bus driver job. Go to the town hall to select it.",255,24,24,false) end end ) addEventHandler("onClientGUIClick",bus.button[2], function() guiSetVisible(bus.window[1],false) showCursor(false) setElementData(localPlayer,"startJob",false) end )
function BulletsMixin:GetBulletFalloffStart() return kBulletDamageFalloffStart end function BulletsMixin:GetBulletFalloffEnd() return kBulletDamageFalloffEnd end function BulletsMixin:GetBulletFalloffFraction() return kBulletDamageFalloffFraction end function BulletsMixin:ApplyBulletGameplayEffects(player, target, endPoint, direction, damage, surface, showTracer) local falloffStart = self:GetBulletFalloffStart() local falloffEnd = self:GetBulletFalloffEnd() local falloffFraction = self:GetBulletFalloffFraction() if player and endPoint and target and target:isa("Player") then local distance = (player:GetOrigin() - endPoint):GetLength() if distance >= falloffEnd then damage = damage * falloffFraction elseif (distance > falloffStart and distance < falloffEnd) then local fraction = (distance - falloffStart) / (falloffEnd - falloffStart) if fraction > 0 then damage = damage * (falloffFraction * fraction + (1 - fraction)) end end end local blockedByUmbra = GetBlockedByUmbra(target) if blockedByUmbra then surface = "umbra" end -- deals damage or plays surface hit effects self:DoDamage(damage, target, endPoint, direction, surface, false, showTracer) end
--- === CTRLESC === --- --- Rebind caps lock to escape when pressed alone, --- control modifier when pressed with other keys --- -- -- Almost none of this is original work, just combined some existing solutions -- See Readme for more info -- -- -- TODO -- Tests -- Docs -- Remove any utilities/functions speciifc to my config -- Pull on a new hammerspoon config and see if it works local obj = {} obj.__index = obj -- obj.logger.i('Initializing CTRL-ESC.spoon logger...') obj.name = "CTRLESC" obj.version = "1.0" obj.author = "andy williams <[email protected]>" obj.homepage = "https://github.com/nonissue/hammerspoon" obj.license = "MIT - https://opensource.org/licenses/MIT" obj.logger = hs.logger.new("CTRL-ESC") obj.prev_mods = {} -- get length of table so we can check how many keys -- method borrowed from -- https://gist.github.com/zcmarine/f65182fe26b029900792fa0b59f09d7f local function len(t) local length = 0 -- changed this to stateless iterators -- and i think it's working? for _, _ in pairs(t) do length = length + 1 end return length end -- logic largely copied from -- https://gist.github.com/zcmarine/f65182fe26b029900792fa0b59f09d7f function obj:mod_event_handler(event) local cur_mods = event:getFlags() if cur_mods["ctrl"] and len(cur_mods) == 1 and len(self.prev_mods) == 0 then -- we want to go from NO modifiers pressed to only one pressed -- in order to consider sending escape. -- for example, in the case that user holds down: -- [ CMD ] -> [ CMD, CTRL ] -> [ CTRL ] -> [ ] -- We DO NOT want to send esc with this pattern self.send_esc = true elseif self.prev_mods['ctrl'] and len(cur_mods) == 0 and self.send_esc then -- so, if our conditions are met, we send the esc keyevent -- note: newKeyEvent seems much much faster than keyStroke -- for somereason hs.eventtap.event.newKeyEvent({}, 'escape', true):post() hs.eventtap.event.newKeyEvent({}, 'escape', false):post() -- then we set our flag back to false self.send_esc = false else -- in any other case, we don't want to send esc self.send_esc = false end self.prev_mods = cur_mods return false end function obj:init() self.send_esc = false self.ctrl_tap = hs.eventtap.new({hs.eventtap.event.types.flagsChanged}, function(event) obj:mod_event_handler(event) end) self.non_ctrl_tap = hs.eventtap.new({hs.eventtap.event.types.keyDown}, function(event) self.send_esc = false return false end ) end function obj:start() self.logger.df("CTRLESC.spoon started") self.ctrl_tap:start() self.non_ctrl_tap:start() end function obj:stop() obj.logger.df("CTRLESC.spoon stopped") self.ctrl_tap:stop() self.non_ctrl_tap:stop() self.send_esc = false self.prev_mods = {} end return obj
function comparaison(nb_1,nb_2) return (nb_1 > nb_2) end local x = comparaison(5,3) local maTable = {1,5,8,3,0,2,6,7,9,4} print(table.concat(maTable)) print(unpack(maTable)) table.sort(maTable) print(table.concat(maTable)) print(unpack(maTable)) print(x)
-- for plain text output remove emph that gets turned to _word_ otherwise, and make strong become smallcap/uppercase --export ZBS=/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio --export LUA_PATH="./?.lua;$ZBS/lualibs/?/?.lua;$ZBS/lualibs/?.lua" --export LUA_CPATH="$ZBS/bin/?.dylib;$ZBS/bin/clibs53/?.dylib;$ZBS/bin/clibs53/?/?.dylib" --require("mobdebug").start() function Emph(elem) return elem.content end function Strong(elem) return pandoc.SmallCaps(elem.content) end
-- -- Addon _fiu_gui_TotAndcache_1.lua -- Author [email protected] -- StartDate 08/04/2017 -- local addon, cD = ... cD.sTOFrames = {} cD.sCACFrames = {} local zlFrames = {} local ILStock = {} local lastBGused = {} local tfScroll = nil -- Totals Frame ScrollBar local cfScroll = nil -- Cache Items ScrollBar local lastZnSelected = nil local tlScrollStep = 1 local ilScrollStep = 1 -- 1 2 3 4 5 6 7 8 9 -- sellable, common, uncommon, rare, epic, quest, relic, MfJ, Totals local txtColors = {} txtColors[1] = { r = .34375, g = .34375, b = .34375 } -- sellable txtColors[2] = { r = .98, g = .98, b = .98 } -- common / nil txtColors[3] = { r = 0, g = .797, b = 0 } -- uncommon txtColors[4] = { r = .148, g = .496, b = .977 } -- rare txtColors[5] = { r = .676, g = .281, b = .98 } -- epic txtColors[6] = { r = 1, g = 1, b = 0 } -- quest txtColors[7] = { r = 1, g = .5, b = 0 } -- relic txtColors[8] = { r = 1, g = 1, b = 0 } -- MfJ yellow txtColors[9] = { r = .98, g = .98, b = .98 } -- Totals white local function buildForStock(parent,t) local first = true local lastobj = nil if parent == nil then parent = cD.sCACFrames.cacheitemsframe else first = false end local zil, zilIcon, zilName, zilDesc, zilCat = nil, nil, nil, nil, nil zil = UI.CreateFrame("Frame", "Zone_item_Frame", cD.sCACFrames.cacheitemsframe) zil:SetBackgroundColor(.2, .2, .2, .6) if cD.totallineheight then zil:SetHeight(cD.totallineheight) else zil:SetHeight((lootIcon:GetBottom() + cD.borders.bottom ) - zil:GetTop()) end if first then first = false zil:SetPoint("TOPLEFT", cD.sCACFrames.cacheitemsframe, "TOPLEFT", 0, 1) zil:SetPoint("TOPRIGHT", cD.sCACFrames.cacheitemsframe, "TOPRIGHT", 0, 1) else zil:SetPoint("TOPLEFT", parent, "BOTTOMLEFT", 0, 1) zil:SetPoint("TOPRIGHT", parent, "BOTTOMRIGHT",0, 1) end zil:SetLayer(3) local lootCnt = UI.CreateFrame("Text", "Loot_Cnt_" .. t.name, zil) local objColor = cD.rarityColor("quest") lootCnt:SetFont(cD.addon, cD.text.base_font_name) lootCnt:SetFontSize(cD.text.base_font_size) lootCnt:SetFontColor(objColor.r, objColor.g, objColor.b) lootCnt:SetText(string.format("%3d", 0), true) lootCnt:SetLayer(3) lootCnt:SetPoint("TOPLEFT", zil, "TOPLEFT", cD.borders.left, -1) -- Item's Type Icon local typeIcon = UI.CreateFrame("Texture", "Type_Icon_" .. t.name, zil) local categoryIcon = nil categoryIcon = cD.categoryIcon(t.category, t.id, t.description, t.name) if categoryIcon ~= nil then typeIcon:SetTexture("Rift", categoryIcon) end typeIcon:SetWidth(cD.text.base_font_size) typeIcon:SetHeight(cD.text.base_font_size) typeIcon:SetPoint("TOPLEFT", lootCnt, "TOPRIGHT", cD.borders.left, 4) typeIcon:SetLayer(3) -- Item's Icon local lootIcon = UI.CreateFrame("Texture", "Loot_Icon_" .. t.name, zil) lootIcon:SetTexture("Rift", t.icon) lootIcon:SetWidth(cD.text.base_font_size) lootIcon:SetHeight(cD.text.base_font_size) lootIcon:SetPoint("TOPLEFT", typeIcon, "TOPRIGHT", cD.borders.left, 0) lootIcon:SetLayer(3) -- Item's Name local textOBJ = UI.CreateFrame("Text", "Loot_" .. t.name, zil) local objRarity = t.rarity if objRarity == nil then objRarity = "common" end local objColor = cD.rarityColor(objRarity) textOBJ:SetFont(cD.addon, cD.text.base_font_name) textOBJ:SetFontSize(cD.text.base_font_size) textOBJ:SetWidth(cD.sizes.toca[cD.text.base_font_size].lootnamesize) textOBJ:SetText(t.name:sub(1, cD.sizes.toca[cD.text.base_font_size].ivnamesize)) textOBJ:SetLayer(3) textOBJ:SetFontColor(objColor.r, objColor.g, objColor.b) textOBJ:SetPoint("TOPLEFT", lootIcon, "TOPRIGHT", cD.borders.left, -4) -- Item's Value/Total local zilMfJ = UI.CreateFrame("Text", "Loot_Cnt_" .. t.name, zil) zilMfJ:SetFont(cD.addon, cD.text.base_font_name) zilMfJ:SetFontSize(cD.text.base_font_size - 2) zilMfJ:SetText(string.format("%s/%s", cD.printJunkMoney(t.value), cD.printJunkMoney(0)), true) zilMfJ:SetLayer(3) zilMfJ:SetPoint("TOPLEFT", textOBJ, "TOPRIGHT", cD.borders.left, 1) local retval= {} retval = { inUse = true, zil = zil, zilCount = lootCnt, zilTIcon = typeIcon, zilIIcon = lootIcon, zilName = textOBJ, zilMfJ = zilMfJ, } table.insert(ILStock, retval) return(retval) end local function fetchFromILStock(parent,t) local idx, tbl = nil, {} local retval = nil for idx, tbl in pairs(ILStock) do if not tbl.inUse then retval = tbl -- set the frame as INUSE ILStock[idx].inUse = true break end end if not retval then retval = buildForStock(parent,t) end return retval end -- function cD.getCharScore_ORIG(zID, oID) -- local retval = 0 -- -- if cD.charScore[zID] then -- local t = cD.charScore[zID] -- if t[oID] then -- retval = t[oID] -- end -- end -- -- return retval -- end -- ----------------------------------- function cD.getCharScore(zID, oID) local retval = 0 local name = cD.itemCache[oID].name if cD.charScorebyName[zID] then local t = cD.charScorebyName[zID] if t[name] ~= nil then -- print(string.format("charScore: t=[%s]", t)) -- print(string.format("charScore: t[%s]=[%s]", name, t[name])) -- print(string.format("charScore: t[%s]=score[%s]", name, t[name].score)) retval = t[name].score else print("ERROR: can't find t["..name.."]") end else print("ERROR: can't find cD.charScorebyName["..zID.."]") end return retval end local function createZoneItemLine(parent, zoneName, zID, t) local zil, zilTIcon, zilIIcon, zilCount, zilName, zilDesc = nil, nil, nil, nil, nil, nil local fromILStock = fetchFromILStock(parent,t) zil = fromILStock.zil zilCount = fromILStock.zilCount zilTIcon = fromILStock.zilTIcon zilIIcon = fromILStock.zilIIcon zilName = fromILStock.zilName zilMfJ = fromILStock.zilMfJ -- Item Counter local cnt = cD.getCharScore(zID, t.id) zilCount:SetText(string.format("%3d", cnt), true) -- Type Icon local categoryIcon = cD.categoryIcon(t.category, t.id, t.description, t.name) if categoryIcon then zilTIcon:SetTexture("Rift", categoryIcon) zilTIcon:SetVisible(true) else zilTIcon:SetVisible(false) end -- Item Icon zilIIcon:SetTexture("Rift", t.icon) -- Item Name local txtColor = cD.rarityColor(t.rarity) zilName:SetFontColor(txtColor.r, txtColor.g, txtColor.b) zilName:SetHeight(cD.text.base_font_size) zilName:SetText(t.name:sub(1, cD.sizes.toca[cD.text.base_font_size].ivnamesize)) zilName:EventAttach(Event.UI.Input.Mouse.Left.Click, function() cD.selectItemtoView(t.zone, t.id) end, "Item Selected" ) -- ZZZZ ----------------------------------------------------------------------------------------- -- Mouse Hover IN => show tooltip zilName:EventAttach(Event.UI.Input.Mouse.Cursor.In, function() cD.selectItemtoView(t.zone, t.id) end, "Event.UI.Input.Mouse.Cursor.In") -- Mouse Hover OUT => show tooltip zilName:EventAttach(Event.UI.Input.Mouse.Cursor.Out, function() cD.selectItemtoView(nil, nil) end, "Event.UI.Input.Mouse.Cursor.Out") -- ZZZZ ----------------------------------------------------------------------------------------- -- Item Value/Total local cnt = cD.getCharScore(zID, t.id) local mfj = t.value * cnt zilMfJ:SetText(string.format("%s/%s", cD.printJunkMoney(t.value), cD.printJunkMoney(mfj)), true) zil:SetHeight(cD.round(cD.borders.top + cD.borders.bottom + cD.text.base_font_size)) zil:SetVisible(true) return zil end local function resetZoneItemsList() -- -- Set all ILStock Frames to "invisible" -- and set all ILStock[].used = false -- local idx, tbl = nil, {} for idx, tbl in pairs(ILStock) do tbl.inUse = false tbl.zil:SetVisible(false) tbl.zilName:EventDetach(Event.UI.Input.Mouse.Left.Click, function() cD.selectItemtoView(t.zone, t.id) end, "Item Selected" ) end -- reparent itemFrame to MaskFrame to reset ScrollBar movements cD.sCACFrames.cacheitemsframe:ClearPoint("TOPLEFT") cD.sCACFrames.cacheitemsframe:ClearPoint("BOTTOMLEFT") cD.sCACFrames.cacheitemsframe:SetPoint("TOPLEFT", cD.sCACFrames.cacheitemsmaskframe, "TOPLEFT") return end local function populateZoneItemsList(znID, zoneName) local parent = nil local cnt = 0 local iobj = nil local base = cD.charScore[znID] local k = nil local v = nil -- begin - manipulation to list by name -- -- Item Ids aren't unique, so i need to -- re-aggregate the "base" list by item -- name. -- -- local basebyname = {} -- for k, v in pairs(base) do -- if basebyname[cD.itemCache[k].name] then -- -- print("old ["..cD.itemCache[k].name.."]: "..basebyname[cD.itemCache[k].name].score.." v="..v) -- basebyname[cD.itemCache[k].name] = { id=k, score=(basebyname[cD.itemCache[k].name].score + v) } -- -- print("old ["..cD.itemCache[k].name.."]: "..basebyname[cD.itemCache[k].name].score) -- else -- -- print("new["..cD.itemCache[k].name.."]: "..v) -- basebyname[cD.itemCache[k].name] = { id=k, score=v } -- end -- end local basebyname = cD.charScorebyName[znID] local newbase = {} local t = {} for k, t in pairs(basebyname) do newbase[t.id] = t.score end -- End - manipulation to list by name -- for k,v in cD.spairs(base, for k,v in cD.spairs(newbase, function(t,a,b) local retval = nil if b == "__orderedIndex" then b = 0 a = 0 retval = nil else retval = t[b] < t[a] end return retval end) do if k ~= "__orderedIndex" then local tbl= cD.itemCache[k] local z = createZoneItemLine(parent, zoneName, znID, tbl) parent = z cnt = cnt + 1 end end if cnt > cD.sizes.toca[cD.text.base_font_size].visibleitems then cfScroll:SetVisible(true) cfScroll:SetEnabled(true) local baseY = cD.sCACFrames.cacheitemsframe:GetTop() local maxY = parent:GetBottom() cD.sCACFrames.cacheitemsframe:SetHeight(cD.round(maxY - baseY)) cfScroll:SetRange(1, cnt - cD.sizes.toca[cD.text.base_font_size].visibleitems) ilScrollStep = cD.round(cD.sCACFrames.cacheitemsframe:GetHeight()/cnt) else cfScroll:SetVisible(false) cfScroll:SetEnabled(false) end return end local function selectZone(znID, zoneName) local unsel = cD.rarityColor("common") local sel = cD.rarityColor("relic") local obj = nil -- reset last selected elemenent highlight if lastZnSelected ~= nil then lastZnSelected:SetBackgroundColor(lastBGused.r, lastBGused.g, lastBGused.b, lastBGused.a) end -- -- Highligth selected Zone -- -- flip/flop ? -- if lastZnSelected ~= zlFrames[zoneName] then lastBGused.r, lastBGused.g, lastBGused.b, lastBGused.a = zlFrames[zoneName]:GetBackgroundColor() zlFrames[zoneName]:SetBackgroundColor(.6, .6, .6, .6) lastZnSelected = zlFrames[zoneName] cD.sTOFrames.totalsrightmaskframe:SetVisible(false) cD.sTOFrames.totalsrightframe:SetVisible(false) cD.sTOFrames.totalsframescroll:SetVisible(false) resetZoneItemsList() populateZoneItemsList(znID, zoneName) cD.sCACFrames.cacheitemsextframe:SetVisible(true) cD.sCACFrames.cacheitemsscroll:SetVisible(true) else cD.sCACFrames.cacheitemsextframe:SetVisible(false) cD.sCACFrames.cacheitemsscroll:SetVisible(false) -- cD.sTOFrames.totalsrightmaskframe:SetVisible(true) cD.sTOFrames.totalsrightframe:SetVisible(true) cD.sTOFrames.totalsframescroll:SetVisible(true) lastZnSelected = nil lastBGused = {} end return end function cD.createTotalsWindow() cD.sTOFrames = {} --Global context (parent frame-thing). local context = UI.CreateContext("Totals_context") local totalsWindow = UI.CreateFrame("Frame", "Totals", context) if cD.window.totalsX == nil or cD.window.totalsY == nil then -- first run, we position in the screen center totalsWindow:SetPoint("CENTER", UIParent, "CENTER") else -- we have coordinates totalsWindow:SetPoint("TOPLEFT", UIParent, "TOPLEFT", cD.window.totalsX or 0, cD.window.totalsY or 0) end totalsWindow:SetWidth(cD.sizes.toca[cD.text.base_font_size].winwidth) totalsWindow:SetHeight(cD.sizes.toca[cD.text.base_font_size].winheight) totalsWindow:SetLayer(-1) totalsWindow:SetBackgroundColor(0, 0, 0, .5) -- TITLE BAR CONTAINER local titleTotalsFrame = UI.CreateFrame("Frame", "External_Totals_Frame", totalsWindow) titleTotalsFrame:SetPoint("TOPLEFT", totalsWindow, "TOPLEFT", cD.borders.left, cD.borders.top) titleTotalsFrame:SetPoint("TOPRIGHT", totalsWindow, "TOPRIGHT", - cD.borders.right, cD.borders.top) titleTotalsFrame:SetBackgroundColor(.1, .1, .1, .6) titleTotalsFrame:SetLayer(1) titleTotalsFrame:SetHeight(cD.text.base_font_size + 4) cD.sTOFrames.titlebartotalsframe = titleTotalsFrame cD.attachTT(cD.sTOFrames.titlebartotalsframe, "titlebar") -- HEADER FishItUp! Icon local fiuIcon = UI.CreateFrame("Texture", "fiuIcon", titleTotalsFrame) fiuIcon:SetTexture("Rift", "Fish_icon.png.dds") fiuIcon:SetHeight(cD.round(cD.text.base_font_size*1.5)) fiuIcon:SetWidth(cD.round(cD.text.base_font_size*1.5)) fiuIcon:SetLayer(1) fiuIcon:SetPoint("TOPLEFT", cD.sTOFrames.titlebartotalsframe, "TOPLEFT", 0, -2) cD.sTOFrames.titlebarfiuicon = fiuIcon -- TITLE BAR TITLE local titleFIU = UI.CreateFrame("Text", "FIU_Title", titleTotalsFrame) titleFIU:SetFontSize(cD.text.base_font_size -2) titleFIU:SetText("Waterlog") titleFIU:SetFont(cD.addon, cD.text.base_font_name) titleFIU:SetLayer(3) titleFIU:SetPoint("TOPLEFT", cD.sTOFrames.titlebarfiuicon, "TOPRIGHT", cD.borders.left, 0) cD.sTOFrames.titlebarcontentframe = titleFIU cD.attachTT(titleFIU, "titlebar") -- TITLE BAR Widgets: setup Icon for Iconize lootIcon = UI.CreateFrame("Texture", "Title_Icon_1", cD.sTOFrames.titlebartotalsframe) lootIcon:SetTexture("Rift", "splitbtn_arrow_D_(normal).png.dds") lootIcon:SetWidth(fiuIcon:GetWidth()) lootIcon:SetHeight(fiuIcon:GetHeight()) lootIcon:SetLayer(3) lootIcon:SetPoint("TOPRIGHT", cD.sTOFrames.titlebartotalsframe, "TOPRIGHT", -cD.borders.right, 0) lootIcon:EventAttach( Event.UI.Input.Mouse.Left.Click, function() cD.window.totalsOBJ:SetVisible(not cD.window.totalsOBJ:GetVisible()) end , "Iconize Totals Pressed" ) cD.attachTT(lootIcon, "minimize") -- EXTERNAL TOTALS CONTAINER FRAME local totalsExtFrame = UI.CreateFrame("Frame", "External_Totals_Frame", totalsWindow) totalsExtFrame:SetPoint("TOPLEFT", cD.sTOFrames.titlebartotalsframe, "BOTTOMLEFT", cD.borders.left, 1) totalsExtFrame:SetPoint("TOPRIGHT", cD.sTOFrames.titlebartotalsframe, "BOTTOMRIGHT", -(cD.borders.right + cD.sizes.toca[cD.text.base_font_size].sbwidth), 1) totalsExtFrame:SetPoint("BOTTOMLEFT", totalsWindow, "BOTTOMLEFT", cD.borders.left, - cD.borders.bottom) totalsExtFrame:SetPoint("BOTTOMRIGHT", totalsWindow, "BOTTOMRIGHT", -(cD.borders.right + cD.sizes.toca[cD.text.base_font_size].sbwidth), - cD.borders.bottom) totalsExtFrame:SetLayer(1) cD.sTOFrames.externaltotalsframe = totalsExtFrame -- TOTALS MASK FRAME LEFT local leftMaskFrame = UI.CreateFrame("Mask", "Totals_Left_Mask_Frame", cD.sTOFrames.externaltotalsframe) leftMaskFrame:SetPoint("TOPLEFT", cD.sTOFrames.externaltotalsframe, "TOPLEFT") leftMaskFrame:SetPoint("TOPRIGHT", cD.sTOFrames.externaltotalsframe, "TOPLEFT", cD.sizes.toca[cD.text.base_font_size].znlistwidth, 0) leftMaskFrame:SetPoint("BOTTOMLEFT", cD.sTOFrames.externaltotalsframe, "BOTTOMLEFT") leftMaskFrame:SetPoint("BOTTOMRIGHT", cD.sTOFrames.externaltotalsframe, "BOTTOMLEFT", cD.sizes.toca[cD.text.base_font_size].znlistwidth, 0) cD.sTOFrames.totalsleftmaskframe = leftMaskFrame -- TOTALS CONTAINER FRAME LEFT local totalsleftFrame = UI.CreateFrame("Frame", "left_loot_frame", cD.sTOFrames.totalsleftmaskframe) totalsleftFrame:SetAllPoints(cD.sTOFrames.totalsleftmaskframe) totalsleftFrame:SetLayer(1) cD.sTOFrames.totalsleftframe = totalsleftFrame -- TOTALS MASK FRAME RIGHT local rightMaskFrame = UI.CreateFrame("Mask", "Totals_Right_Mask_Frame", cD.sTOFrames.externaltotalsframe) rightMaskFrame:SetPoint("TOPLEFT", cD.sTOFrames.externaltotalsframe, "TOPLEFT", cD.sizes.toca[cD.text.base_font_size].znlistwidth, 0) rightMaskFrame:SetPoint("TOPRIGHT", cD.sTOFrames.externaltotalsframe, "TOPRIGHT") rightMaskFrame:SetPoint("BOTTOMLEFT", cD.sTOFrames.externaltotalsframe, "BOTTOMLEFT", cD.sizes.toca[cD.text.base_font_size].znlistwidth, 0) rightMaskFrame:SetPoint("BOTTOMRIGHT", cD.sTOFrames.externaltotalsframe, "BOTTOMRIGHT") cD.sTOFrames.totalsrightmaskframe = rightMaskFrame -- TOTALS CONTAINER FRAME RIGHT local totalsrightFrame = UI.CreateFrame("Frame", "right_loot_frame", cD.sTOFrames.totalsrightmaskframe) totalsrightFrame:SetAllPoints(cD.sTOFrames.totalsrightmaskframe) totalsrightFrame:SetLayer(1) cD.sTOFrames.totalsrightframe = totalsrightFrame -- TOTALS ZONE ITEMS SCROLLBAR (BOTH) tfScroll = UI.CreateFrame("RiftScrollbar","Totals_Frame_scrollbar", cD.sTOFrames.externaltotalsframe) tfScroll:SetVisible(false) tfScroll:SetEnabled(false) tfScroll:SetWidth(cD.sizes.toca[cD.text.base_font_size].sbwidth) tfScroll:SetOrientation("vertical") tfScroll:SetPoint("TOPLEFT", cD.sTOFrames.externaltotalsframe, "TOPRIGHT", -(cD.borders.right/2)+1, 0) tfScroll:SetPoint("BOTTOMLEFT", cD.sTOFrames.externaltotalsframe, "BOTTOMRIGHT", -(cD.borders.right/2)+1, 0) tfScroll:EventAttach( Event.UI.Scrollbar.Change, function() local pos = tfScroll:GetPosition() cD.sTOFrames.totalsrightframe:SetPoint("TOPLEFT", cD.sTOFrames.totalsrightmaskframe, "TOPLEFT", 0, -math.floor(tlScrollStep*pos) ) cD.sTOFrames.totalsleftframe:SetPoint( "TOPLEFT", cD.sTOFrames.totalsleftmaskframe, "TOPLEFT", 0, -math.floor(tlScrollStep*pos) ) end, "TotalsFrame_Scrollbar.Change" ) cD.sTOFrames.totalsframescroll = tfScroll -- -- STATUS BAR - begin ------------------------------------------------------------------------------------------------------------------------------- -- -- STATUS BAR CONTAINER local statusBarFrame = UI.CreateFrame("Frame", "External_statusBar_Frame", totalsWindow) statusBarFrame:SetPoint("TOPLEFT", totalsWindow, "BOTTOMLEFT") statusBarFrame:SetPoint("TOPRIGHT", totalsWindow, "BOTTOMRIGHT") statusBarFrame:SetBackgroundColor(0, 0, 0, .6) statusBarFrame:SetLayer(1) statusBarFrame:SetHeight(cD.text.base_font_size + 4) cD.sTOFrames.statusbartotalsframe = statusBarFrame -- How many Zones local zonesCnt = UI.CreateFrame("Text", "zonesCnt", statusBarFrame) zonesCnt:SetFontSize(cD.text.base_font_size) zonesCnt:SetText(string.format("%s", "Totals:"), true) zonesCnt:SetFont(cD.addon, cD.text.base_font_name) zonesCnt:SetLayer(3) zonesCnt:SetPoint("TOPLEFT", cD.sTOFrames.statusbartotalsframe, "TOPLEFT", cD.borders.left, -2) cD.sTOFrames.sbzonescounter = zonesCnt -- How many sellables/junk local jnkCnt = UI.CreateFrame("Text", "jnkCnt", statusBarFrame) jnkCnt:SetFontSize(cD.text.base_font_size) jnkCnt:SetText(string.format("%3d", 0), true) jnkCnt:SetFont(cD.addon, cD.text.base_font_name) jnkCnt:SetFontColor(txtColors[1].r, txtColors[1].g, txtColors[1].b) jnkCnt:SetLayer(3) jnkCnt:SetPoint("TOPLEFT", cD.sTOFrames.statusbartotalsframe, "TOPLEFT", cD.borders.left + cD.sizes.toca[cD.text.base_font_size].znlistwidth + 2 + cD.borders.left, -2) cD.sTOFrames.sbjnkcounter = jnkCnt -- How many common intems local comCnt = UI.CreateFrame("Text", "commonCnt", statusBarFrame) comCnt:SetFontSize(cD.text.base_font_size) comCnt:SetText(string.format("%3d", 0), true) comCnt:SetFont(cD.addon, cD.text.base_font_name) comCnt:SetFontColor(txtColors[2].r, txtColors[2].g, txtColors[2].b) comCnt:SetLayer(3) comCnt:SetPoint("TOPLEFT", cD.sTOFrames.sbjnkcounter, "TOPRIGHT", cD.borders.left, 0) cD.sTOFrames.sbcomcounter = comCnt -- How many uncommon intems local uncCnt = UI.CreateFrame("Text", "uncommonCnt", statusBarFrame) uncCnt:SetFontSize(cD.text.base_font_size) uncCnt:SetText(string.format("%3d", 0), true) uncCnt:SetFont(cD.addon, cD.text.base_font_name) uncCnt:SetFontColor(txtColors[3].r, txtColors[3].g, txtColors[3].b) uncCnt:SetLayer(3) uncCnt:SetPoint("TOPLEFT", cD.sTOFrames.sbcomcounter, "TOPRIGHT", cD.borders.left, 0) cD.sTOFrames.sbunccounter = uncCnt -- How many rare intems local rarCnt = UI.CreateFrame("Text", "rareCnt", statusBarFrame) rarCnt:SetFontSize(cD.text.base_font_size) rarCnt:SetText(string.format("%3d", 0), true) rarCnt:SetFontColor(txtColors[4].r, txtColors[4].g, txtColors[4].b) rarCnt:SetFont(cD.addon, cD.text.base_font_name) rarCnt:SetLayer(3) rarCnt:SetPoint("TOPLEFT", cD.sTOFrames.sbunccounter, "TOPRIGHT", cD.borders.left, 0) cD.sTOFrames.sbrarcounter = rarCnt -- How many epic intems local epcCnt = UI.CreateFrame("Text", "epicCnt", statusBarFrame) epcCnt:SetFontSize(cD.text.base_font_size) epcCnt:SetText(string.format("%3d", 0), true) epcCnt:SetFont(cD.addon, cD.text.base_font_name) epcCnt:SetFontColor(txtColors[5].r, txtColors[5].g, txtColors[5].b) epcCnt:SetLayer(3) epcCnt:SetPoint("TOPLEFT", cD.sTOFrames.sbrarcounter, "TOPRIGHT", cD.borders.left, 0) cD.sTOFrames.sbepccounter = epcCnt -- How many quest intems local qstCnt = UI.CreateFrame("Text", "questCnt", statusBarFrame) qstCnt:SetFontSize(cD.text.base_font_size) qstCnt:SetText(string.format("%3d", 0), true) qstCnt:SetFontColor(txtColors[6].r, txtColors[6].g, txtColors[6].b) qstCnt:SetFont(cD.addon, cD.text.base_font_name) qstCnt:SetLayer(3) qstCnt:SetPoint("TOPLEFT", cD.sTOFrames.sbepccounter, "TOPRIGHT", cD.borders.left, 0) cD.sTOFrames.sbqstcounter = qstCnt -- How many relic intems local rlcCnt = UI.CreateFrame("Text", "relicCnt", statusBarFrame) rlcCnt:SetFontSize(cD.text.base_font_size) rlcCnt:SetText(string.format("%3d", 0), true) rlcCnt:SetFont(cD.addon, cD.text.base_font_name) rlcCnt:SetFontColor(txtColors[7].r, txtColors[7].g, txtColors[7].b) rlcCnt:SetLayer(3) rlcCnt:SetPoint("TOPLEFT", cD.sTOFrames.sbqstcounter, "TOPRIGHT", cD.borders.left, 0) cD.sTOFrames.sbrlccounter = rlcCnt -- total of MfJ local totMfJ = UI.CreateFrame("Text", "mfjCnt", statusBarFrame) totMfJ:SetFontSize(cD.text.base_font_size) totMfJ:SetText(string.format("%10s", cD.printJunkMoney(0)), true) totMfJ:SetFont(cD.addon, cD.text.base_font_name) totMfJ:SetFontColor(txtColors[7].r, txtColors[7].g, txtColors[7].b) totMfJ:SetLayer(3) totMfJ:SetPoint("TOPLEFT", cD.sTOFrames.sbrlccounter, "TOPRIGHT", cD.borders.right, 0) cD.sTOFrames.sbmfjcounter = totMfJ -- total of Totals local totOfTot = UI.CreateFrame("Text", "totOftotCnt", statusBarFrame) totOfTot:SetFontSize(cD.text.base_font_size) totOfTot:SetText(string.format("%5d", 0), true) totOfTot:SetFont(cD.addon, cD.text.base_font_name) totOfTot:SetFontColor(txtColors[2].r, txtColors[2].g, txtColors[2].b) totOfTot:SetLayer(3) totOfTot:SetPoint("TOPRIGHT", cD.sTOFrames.statusbartotalsframe, "TOPRIGHT", -(cD.borders.right + cD.sizes.toca[cD.text.base_font_size].sbwidth + cD.borders.left), -2) cD.sTOFrames.sbtotoftot = totOfTot statusBarFrame:SetHeight(cD.text.base_font_size + 6) -- -- STATUS BAR - end --------------------------------------------------------------------------------------------------------------------------------- -- -- ----------------------------------------------------------------------------- -- SECOND PANE - charScore VIEWER -- ----------------------------------------------------------------------------- local deltaX = cD.borders.left + cD.sizes.toca[cD.text.base_font_size].znlistwidth + 1 local itemsExtFrame = UI.CreateFrame("Frame", "Cache_Items_Excternal_frame", totalsWindow) itemsExtFrame:SetBackgroundColor(.2, .2, .2, 0) itemsExtFrame:SetVisible(false) itemsExtFrame:SetLayer(2) itemsExtFrame:SetPoint("TOPLEFT", cD.sTOFrames.titlebartotalsframe, "BOTTOMLEFT", deltaX, 1) itemsExtFrame:SetPoint("TOPRIGHT", cD.sTOFrames.titlebartotalsframe, "BOTTOMRIGHT", -(cD.borders.right + cD.sizes.toca[cD.text.base_font_size].sbwidth), 1) itemsExtFrame:SetPoint("BOTTOMLEFT", totalsWindow, "BOTTOMLEFT", deltaX, - cD.borders.bottom) itemsExtFrame:SetPoint("BOTTOMRIGHT", totalsWindow, "BOTTOMRIGHT", -(cD.borders.right + cD.sizes.toca[cD.text.base_font_size].sbwidth), -cD.borders.bottom) cD.sCACFrames.cacheitemsextframe = itemsExtFrame -- CACHE ZONE ITEMS MASK FRAME local itemsMaskFrame = UI.CreateFrame("Mask", "Cache_Items_Mask_Frame", cD.sCACFrames.cacheitemsextframe) itemsMaskFrame:SetPoint("TOPLEFT", cD.sCACFrames.cacheitemsextframe, "TOPLEFT") itemsMaskFrame:SetPoint("TOPRIGHT", cD.sCACFrames.cacheitemsextframe, "TOPRIGHT", -cD.borders.right, 0) itemsMaskFrame:SetPoint("BOTTOMRIGHT", cD.sCACFrames.cacheitemsextframe, "BOTTOMRIGHT", -cD.borders.right, 0) itemsMaskFrame:SetLayer(4) cD.sCACFrames.cacheitemsmaskframe = itemsMaskFrame -- CACHE ZONE ITEMS CONTAINER FRAME local cacheFrame = UI.CreateFrame("Frame", "Cache_Items_frame", cD.sCACFrames.cacheitemsmaskframe) cacheFrame:SetAllPoints(cD.sCACFrames.cacheitemsmaskframe) cacheFrame:SetPoint("TOPLEFT", itemsMaskFrame, "TOPLEFT") cacheFrame:SetLayer(4) cD.sCACFrames.cacheitemsframe = cacheFrame -- CACHE ZONE ITEMS SCROLLBAR cfScroll = UI.CreateFrame("RiftScrollbar","item_list_scrollbar", cD.sTOFrames.externaltotalsframe) cfScroll:SetVisible(false) cfScroll:SetEnabled(false) cfScroll:SetWidth(cD.sizes.toca[cD.text.base_font_size].sbwidth) cfScroll:SetOrientation("vertical") cfScroll:SetPoint("TOPLEFT", cD.sTOFrames.externaltotalsframe, "TOPRIGHT", -(cD.borders.right/2)+1, 0) cfScroll:SetPoint("BOTTOMLEFT", cD.sTOFrames.externaltotalsframe, "BOTTOMRIGHT", -(cD.borders.right/2)+1, 0) cfScroll:EventAttach( Event.UI.Scrollbar.Change, function() local pos = cD.round(cD.sCACFrames.cacheitemsscroll:GetPosition()) local smin, smax = cD.sCACFrames.cacheitemsscroll:GetRange() if pos == smin then cD.sCACFrames.cacheitemsframe:ClearPoint("TOPLEFT") cD.sCACFrames.cacheitemsframe:ClearPoint("BOTTOMLEFT") cD.sCACFrames.cacheitemsframe:SetPoint("TOPLEFT", cD.sCACFrames.cacheitemsmaskframe, "TOPLEFT") else if (cD.sCACFrames.cacheitemsframe:GetBottom() - ilScrollStep*pos) >= cD.sCACFrames.cacheitemsmaskframe:GetTop() then cD.sCACFrames.cacheitemsframe:ClearPoint("TOPLEFT") cD.sCACFrames.cacheitemsframe:ClearPoint("BOTTOMLEFT") cD.sCACFrames.cacheitemsframe:SetPoint("TOPLEFT", cD.sCACFrames.cacheitemsmaskframe, "TOPLEFT", 0, -(ilScrollStep*pos) ) end end end, "ItemsFrame_Scrollbar.Change" ) cD.sCACFrames.cacheitemsscroll = cfScroll -- ----------------------------------------------------------------------------- -- Enable Dragging Library.LibDraggable.draggify(totalsWindow, cD.updateGuiCoordinates) return totalsWindow end function cD.createTotalsLine(leftparent, rightparent, zoneName, znID, zoneTotals, isLegend) if leftparent == nil then leftparent = cD.sTOFrames.totalsleftframe end if rightparent == nil then rightparent = cD.sTOFrames.totalsrightframe end local leftitemframe = nil local rightitemframe = nil local znOBJ = nil local idx = nil local parentOBJ = nil local totOBJs = {} local legendColor = 1 cD.totallineheight = nil -- setup LEFT Item containing Frame (zone name) leftitemframe = UI.CreateFrame("Frame", "Totals_line_left_Container", leftparent) leftitemframe:SetHeight(cD.text.base_font_size) leftitemframe:SetLayer(1) leftitemframe:SetBackgroundColor(.2, .2, .2, .6) if table.getn(cD.sTOLeftFrames) > 0 then leftitemframe:SetPoint("TOPLEFT", cD.sTOLeftFrames[#cD.sTOLeftFrames], "BOTTOMLEFT", 0, 1) leftitemframe:SetPoint("TOPRIGHT", cD.sTOLeftFrames[#cD.sTOLeftFrames], "BOTTOMRIGHT", 0, 1) else leftitemframe:SetPoint("TOPLEFT", leftparent, "TOPLEFT") leftitemframe:SetPoint("TOPRIGHT", leftparent, "TOPRIGHT") end -- Zone Name znOBJ = UI.CreateFrame("Text", "Totals_" ..zoneName, leftitemframe) local zn = string.sub(zoneName, 1, cD.sizes.toca[cD.text.base_font_size].maxstringsize) znOBJ:SetWidth(150) znOBJ:SetFontSize(cD.text.base_font_size) znOBJ:SetFont(cD.addon, cD.text.base_font_name) znOBJ:SetText(zn) znOBJ:SetPoint("TOPLEFT", leftitemframe, "TOPLEFT", cD.borders.left, 0) znOBJ:EventAttach(Event.UI.Input.Mouse.Left.Click, function() selectZone(znID, zoneName) end, "Zone Selected" ) zlFrames[zoneName] = znOBJ -- we save the text frame for highlighting -- setup RIGHT Item containing Frame (totals) rightitemframe = UI.CreateFrame("Frame", "Totals_line_right_Container", rightparent) rightitemframe:SetHeight(cD.text.base_font_size) rightitemframe:SetLayer(1) rightitemframe:SetBackgroundColor(.2, .2, .2, .6) if table.getn(cD.sTORightFrames) > 0 then rightitemframe:SetPoint("TOPLEFT", cD.sTORightFrames[#cD.sTORightFrames], "BOTTOMLEFT", 0, 1) rightitemframe:SetPoint("TOPRIGHT", cD.sTORightFrames[#cD.sTORightFrames], "BOTTOMRIGHT", 0, 1) else rightitemframe:SetPoint("TOPLEFT", rightparent, "TOPLEFT") rightitemframe:SetPoint("TOPRIGHT", rightparent, "TOPRIGHT") end local parentOBJ = rightitemframe local total = 0 for idx=1, 7 do -- setup Totals Item's Counter local totalsCnt = UI.CreateFrame("Text", "Totals_Cnt_" .. idx, parentOBJ) totalsCnt:SetFont(cD.addon, cD.text.base_font_name) totalsCnt:SetFontSize(cD.text.base_font_size) totalsCnt:SetFontColor(txtColors[idx].r, txtColors[idx].g, txtColors[idx].b) totalsCnt:SetText(string.format("%3d", zoneTotals[idx])) if idx==1 then totalsCnt:SetPoint("TOPLEFT", parentOBJ, "TOPLEFT", cD.borders.left, 0) else totalsCnt:SetPoint("TOPLEFT", parentOBJ, "TOPRIGHT", cD.borders.left, 0) end parentOBJ = totalsCnt table.insert(totOBJs, totalsCnt) total = total + zoneTotals[idx] end -- This field is the MfJ (Money from Junk) local mfjTotal = UI.CreateFrame("Text", "MfJ", parentOBJ) mfjTotal:SetFont(cD.addon, cD.text.base_font_name) mfjTotal:SetFontSize(cD.text.base_font_size) mfjTotal:SetWidth(cD.text.base_font_size * 5.5) mfjTotal:SetText(string.format("%10s", cD.printJunkMoney(zoneTotals[8])), true) mfjTotal:SetFontColor(txtColors[8].r, txtColors[8].g, txtColors[8].b) mfjTotal:SetPoint("TOPLEFT", parentOBJ, "TOPRIGHT", cD.borders.left, 0) table.insert(totOBJs, mfjTotal) parentOBJ = mfjTotal -- This field is the Total of Totals local totalsTotal = UI.CreateFrame("Text", "Totals_Total", parentOBJ) totalsTotal:SetFont(cD.addon, cD.text.base_font_name) totalsTotal:SetFontSize(cD.text.base_font_size) totalsTotal:SetText(string.format("%5d", total)) totalsTotal:SetFontColor(txtColors[9].r, txtColors[9].g, txtColors[9].b) totalsTotal:SetPoint("TOPLEFT", parentOBJ, "TOPRIGHT", cD.borders.left, 0) table.insert(totOBJs, totalsTotal) parentOBJ = totalsTotal cD.totallineheight = znOBJ:GetHeight() + 1 rightitemframe:SetHeight(cD.totallineheight) leftitemframe:SetHeight(cD.totallineheight) return leftitemframe, rightitemframe, znOBJ, totOBJs end function cD.updateTotalsStatusBar(znTot, totMfJ, totOfTot) local cnts = {} local i = 0 -- per-init cnts{} for i=1,9 do cnts[i] = 0 end if totOfTot == nil then totOfTot = 0 end -- calculate totals for a,b in pairs(cD.zoneTotalCnts) do cnts[10] = (cnts[10] or 0) + 1 -- i=10 total number of zones for i=1, 8 do cnts[i] = (cnts[i] or 0) + b[i] -- i=9 is totOfTot so we skip accountig field 8 (i=8 is MfJ) if i ~= 8 then cnts[9] = (cnts[9] or 0) + b[i] end end end if cD.sTOFrames.sbjnkcounter then cD.sTOFrames.sbjnkcounter:SetText(string.format("%3d", cnts[1])) end if cD.sTOFrames.sbcomcounter then cD.sTOFrames.sbcomcounter:SetText(string.format("%3d", cnts[2])) end if cD.sTOFrames.sbunccounter then cD.sTOFrames.sbunccounter:SetText(string.format("%3d", cnts[3])) end if cD.sTOFrames.sbrarcounter then cD.sTOFrames.sbrarcounter:SetText(string.format("%3d", cnts[4])) end if cD.sTOFrames.sbepccounter then cD.sTOFrames.sbepccounter:SetText(string.format("%3d", cnts[5])) end if cD.sTOFrames.sbqstcounter then cD.sTOFrames.sbqstcounter:SetText(string.format("%3d", cnts[6])) end if cD.sTOFrames.sbrclcounter then cD.sTOFrames.sbrlccounter:SetText(string.format("%3d", cnts[7])) end -- Total of Money from Junk if cD.sTOFrames.sbmfjcounter then if totMfJ == nil then totMfJ = cnts[8] end cD.sTOFrames.sbmfjcounter:SetText(string.format("%10s", cD.printJunkMoney(totMfJ)), true) end -- Total of Totals if cD.sTOFrames.sbtotoftot then if totOfTot == 0 then totOfTot = cnts[9] end cD.sTOFrames.sbtotoftot:SetText(string.format("%5d", totOfTot)) end return end function cD.initTotalsWindow() local zn, tbl = nil, {} local parentOBJ = cD.sTOFrames.totalsleftframe local znTot = 0 local totMfJ = 0 local totOfTot = 0 local leftparentOBJ = cD.sTOFrames.totalsleftframe local rightparentOBJ = cD.sTOFrames.totalsrightframe cD.sTOLeftFrames = {} cD.sTORightFrames = {} for zn, tbl in pairs(cD.zoneTotalCnts) do local znName = Inspect.Zone.Detail(zn).name local znID = Inspect.Zone.Detail(zn).id local leftItemFrame, rightItemFrame, znOBJ, totOBJs = cD.createTotalsLine(leftparentOBJ, rightparentOBJ, znName, znID, tbl) table.insert(cD.sTOzoneIDs, zn) table.insert(cD.sTOLeftFrames, leftItemFrame) table.insert(cD.sTORightFrames, rightItemFrame) table.insert(cD.sTOznOBJs, znOBJ) cD.sTOcntOBJs[znID] = totOBJs leftparentOBJ = leftItemFrame rightparentOBJ = rightItemFrame znTot = znTot + 1 -- -- FOR STATUS BAR -- -- calculate and add to totMfJ MfJ for this zone totMfJ = totMfJ + tbl[8] -- field number 8 in MfJ per zone -- calculate and add to totOfTot totals for this zone local idx = nil for idx=1, 7 do totOfTot = totOfTot + tbl[idx] end end -- should Totals Scrollbar be enabled? if znTot > cD.sizes.toca[cD.text.base_font_size].visibleitems then cD.sTOFrames.totalsframescroll:SetEnabled(true) cD.sTOFrames.totalsframescroll:SetVisible(true) else cD.sTOFrames.totalsframescroll:SetEnabled(false) cD.sTOFrames.totalsframescroll:SetVisible(false) end cD.updateTotalsStatusBar(znTot, totMfJ, totOfTot) return end --[[ Error: FishItUp/_fiu_gui_TotAndCache_1.lua:173: attempt to index a number value In FishItUp / FishItUp.Loot_Echidna Fish:Event.UI.Input.Mouse.Cursor.In stack traceback: [C]: in function '__index' FishItUp/_fiu_gui_TotAndCache_1.lua:173: in function 'getCharScore' FishItUp/_fiu_gui_ItemViewer.lua:176: in function 'populateItemViewer' FishItUp/_fiu_gui_ItemViewer.lua:217: in function 'selectItemtoView' FishItUp/_fiu_gui_Loot2.lua:167: in function <FishItUp/_fiu_gui_Loot2.lua:167> ]] --[[ Error: FishItUp/_fiu_utils.lua:75: attempt to index a number value In FishItUp / Event.System.Update.Begin, event Event.System.Update.Begin stack traceback: [C]: in function '__index' FishItUp/_fiu_utils.lua:75: in function 'updateCharScore' FishItUp/_fiu_utils.lua:381: in function 'updateLootTable' FishItUp/_fiu_utils.lua:240: in function 'processEventBuffer' FishItUp/_fiu_utils.lua:205: in function <FishItUp/_fiu_utils.lua:125> ]]
-- HTTP related patterns local _M = {} -- RFC 7230 local http_core = require "lpeg_patterns.http.core" _M.OWS = http_core.OWS _M.RWS = http_core.RWS _M.BWS = http_core.BWS _M.chunk_ext = http_core.chunk_ext _M.comment = http_core.comment _M.field_name = http_core.field_name _M.field_value = http_core.field_value _M.header_field = http_core.header_field _M.qdtext = http_core.qdtext _M.quoted_string = http_core.quoted_string _M.request_line = http_core.request_line _M.request_target = http_core.request_target _M.token = http_core.token _M.Connection = http_core.Connection _M.Content_Length = http_core.Content_Length _M.Host = http_core.Host _M.TE = http_core.TE _M.Trailer = http_core.Trailer _M.Transfer_Encoding = http_core.Transfer_Encoding _M.Upgrade = http_core.Upgrade _M.Via = http_core.Via -- RFC 7231 local http_semantics = require "lpeg_patterns.http.semantics" _M.IMF_fixdate = http_semantics.IMF_fixdate _M.Accept = http_semantics.Accept _M.Accept_Charset = http_semantics.Accept_Charset _M.Accept_Encoding = http_semantics.Accept_Encoding _M.Accept_Language = http_semantics.Accept_Language _M.Allow = http_semantics.Allow _M.Content_Encoding = http_semantics.Content_Encoding _M.Content_Language = http_semantics.Content_Language _M.Content_Location = http_semantics.Content_Location _M.Content_Type = http_semantics.Content_Type _M.Date = http_semantics.Date _M.Expect = http_semantics.Expect _M.From = http_semantics.From _M.Location = http_semantics.Location _M.Max_Forwards = http_semantics.Max_Forwards _M.Referer = http_semantics.Referer _M.Retry_After = http_semantics.Retry_After _M.Server = http_semantics.Server _M.User_Agent = http_semantics.User_Agent _M.Vary = http_semantics.Vary -- RFC 7232 local http_conditional = require "lpeg_patterns.http.conditional" _M.ETag = http_conditional.ETag _M.If_Match = http_conditional.If_Match _M.If_Modified_Since = http_conditional.If_Modified_Since _M.If_None_Match = http_conditional.If_None_Match _M.If_Unmodified_Since = http_conditional.If_Unmodified_Since _M.Last_Modified = http_conditional.Last_Modified -- RFC 7233 local http_range = require "lpeg_patterns.http.range" _M.Accept_Ranges = http_range.Accept_Ranges _M.Range = http_range.Range _M.If_Range = http_range.If_Range _M.Content_Range = http_range.Content_Range -- RFC 7234 local http_caching = require "lpeg_patterns.http.caching" _M.Age = http_caching.Age _M.Cache_Control = http_caching.Cache_Control _M.Expires = http_caching.Expires _M.Pragma = http_caching.Pragma _M.Warning = http_caching.Warning -- RFC 7235 local http_authentication = require "lpeg_patterns.http.authentication" _M.WWW_Authenticate = http_authentication.WWW_Authenticate _M.Authorization = http_authentication.Authorization _M.Proxy_Authenticate = http_authentication.Proxy_Authenticate _M.Proxy_Authorization = http_authentication.Proxy_Authorization -- WebDav local http_webdav = require "lpeg_patterns.http.webdav" _M.CalDAV_Timezones = http_webdav.CalDAV_Timezones _M.DASL = http_webdav.DASL _M.DAV = http_webdav.DAV _M.Depth = http_webdav.Depth _M.Destination = http_webdav.Destination _M.If = http_webdav.If _M.If_Schedule_Tag_Match = http_webdav.If_Schedule_Tag_Match _M.Lock_Token = http_webdav.Lock_Token _M.Overwrite = http_webdav.Overwrite _M.Schedule_Reply = http_webdav.Schedule_Reply _M.Schedule_Tag = http_webdav.Schedule_Tag _M.TimeOut = http_webdav.TimeOut -- RFC 5023 _M.SLUG = require "lpeg_patterns.http.slug".SLUG -- RFC 5789 _M.Accept_Patch = http_core.comma_sep_trim(http_semantics.media_type, 1) -- RFC 5988 _M.Link = require "lpeg_patterns.http.link".Link -- RFC 6265 local http_cookie = require "lpeg_patterns.http.cookie" _M.Cookie = http_cookie.Cookie _M.Set_Cookie = http_cookie.Set_Cookie -- RFC 6266 _M.Content_Disposition = require "lpeg_patterns.http.disposition".Content_Disposition -- RFC 6454 _M.Origin = require "lpeg_patterns.http.origin".Origin -- RFC 6455 local http_websocket = require "lpeg_patterns.http.websocket" _M.Sec_WebSocket_Accept = http_websocket.Sec_WebSocket_Accept _M.Sec_WebSocket_Key = http_websocket.Sec_WebSocket_Key _M.Sec_WebSocket_Extensions = http_websocket.Sec_WebSocket_Extensions _M.Sec_WebSocket_Protocol_Client = http_websocket.Sec_WebSocket_Protocol_Client _M.Sec_WebSocket_Protocol_Server = http_websocket.Sec_WebSocket_Protocol_Server _M.Sec_WebSocket_Version_Client = http_websocket.Sec_WebSocket_Version_Client _M.Sec_WebSocket_Version_Server = http_websocket.Sec_WebSocket_Version_Server -- RFC 6797 _M.Strict_Transport_Security = require "lpeg_patterns.http.sts".Strict_Transport_Security -- RFC 7034 _M.X_Frame_Options = require "lpeg_patterns.http.frameoptions".X_Frame_Options -- RFC 7089 _M.Accept_Datetime = http_semantics.IMF_fixdate _M.Memento_Datetime = http_semantics.IMF_fixdate -- RFC 7239 _M.Forwarded = require "lpeg_patterns.http.forwarded".Forwarded -- RFC 7469 local http_pkp = require "lpeg_patterns.http.pkp" _M.Public_Key_Pins = http_pkp.Public_Key_Pins _M.Public_Key_Pins_Report_Only = http_pkp.Public_Key_Pins_Report_Only -- RFC 7486 _M.Hobareg = require "lpeg_patterns.http.hoba".Hobareg -- RFC 7615 _M.Authentication_Info = http_authentication.Authentication_Info _M.Proxy_Authentication_Info = http_authentication.Proxy_Authentication_Info -- RFC 7639 _M.ALPN = require "lpeg_patterns.http.alpn".ALPN -- RFC 7838 local http_alternate = require "lpeg_patterns.http.alternate" _M.Alt_Svc = http_alternate.Alt_Svc _M.Alt_Used = http_alternate.Alt_Used -- https://tools.ietf.org/html/draft-ietf-httpbis-expect-ct-06#section-2.1 _M.Expect_CT = require "lpeg_patterns.http.expect_ct".Expect_CT -- https://www.w3.org/TR/referrer-policy/#referrer-policy-header _M.Referrer_Policy = require "lpeg_patterns.http.referrer_policy".Referrer_Policy return _M
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf/protobuf" local RISKMAPINFOS_PB = require("RiskMapInfos_pb") local ROLERISKINFO_PB = require("RoleRiskInfo_pb") module('RiskInfo2DB_pb') RISKINFO2DB = protobuf.Descriptor(); local RISKINFO2DB_INFOS_FIELD = protobuf.FieldDescriptor(); local RISKINFO2DB_UPDATETIME_FIELD = protobuf.FieldDescriptor(); local RISKINFO2DB_GETDICETIME_FIELD = protobuf.FieldDescriptor(); local RISKINFO2DB_GETDICENUM_FIELD = protobuf.FieldDescriptor(); local RISKINFO2DB_RISKINFO_FIELD = protobuf.FieldDescriptor(); RISKINFO2DB_INFOS_FIELD.name = "infos" RISKINFO2DB_INFOS_FIELD.full_name = ".KKSG.RiskInfo2DB.infos" RISKINFO2DB_INFOS_FIELD.number = 1 RISKINFO2DB_INFOS_FIELD.index = 0 RISKINFO2DB_INFOS_FIELD.label = 1 RISKINFO2DB_INFOS_FIELD.has_default_value = false RISKINFO2DB_INFOS_FIELD.default_value = nil RISKINFO2DB_INFOS_FIELD.message_type = RISKMAPINFOS_PB.RISKMAPINFOS RISKINFO2DB_INFOS_FIELD.type = 11 RISKINFO2DB_INFOS_FIELD.cpp_type = 10 RISKINFO2DB_UPDATETIME_FIELD.name = "updatetime" RISKINFO2DB_UPDATETIME_FIELD.full_name = ".KKSG.RiskInfo2DB.updatetime" RISKINFO2DB_UPDATETIME_FIELD.number = 2 RISKINFO2DB_UPDATETIME_FIELD.index = 1 RISKINFO2DB_UPDATETIME_FIELD.label = 1 RISKINFO2DB_UPDATETIME_FIELD.has_default_value = false RISKINFO2DB_UPDATETIME_FIELD.default_value = 0 RISKINFO2DB_UPDATETIME_FIELD.type = 5 RISKINFO2DB_UPDATETIME_FIELD.cpp_type = 1 RISKINFO2DB_GETDICETIME_FIELD.name = "getDiceTime" RISKINFO2DB_GETDICETIME_FIELD.full_name = ".KKSG.RiskInfo2DB.getDiceTime" RISKINFO2DB_GETDICETIME_FIELD.number = 3 RISKINFO2DB_GETDICETIME_FIELD.index = 2 RISKINFO2DB_GETDICETIME_FIELD.label = 1 RISKINFO2DB_GETDICETIME_FIELD.has_default_value = false RISKINFO2DB_GETDICETIME_FIELD.default_value = 0 RISKINFO2DB_GETDICETIME_FIELD.type = 5 RISKINFO2DB_GETDICETIME_FIELD.cpp_type = 1 RISKINFO2DB_GETDICENUM_FIELD.name = "getDiceNum" RISKINFO2DB_GETDICENUM_FIELD.full_name = ".KKSG.RiskInfo2DB.getDiceNum" RISKINFO2DB_GETDICENUM_FIELD.number = 4 RISKINFO2DB_GETDICENUM_FIELD.index = 3 RISKINFO2DB_GETDICENUM_FIELD.label = 1 RISKINFO2DB_GETDICENUM_FIELD.has_default_value = false RISKINFO2DB_GETDICENUM_FIELD.default_value = 0 RISKINFO2DB_GETDICENUM_FIELD.type = 5 RISKINFO2DB_GETDICENUM_FIELD.cpp_type = 1 RISKINFO2DB_RISKINFO_FIELD.name = "riskInfo" RISKINFO2DB_RISKINFO_FIELD.full_name = ".KKSG.RiskInfo2DB.riskInfo" RISKINFO2DB_RISKINFO_FIELD.number = 5 RISKINFO2DB_RISKINFO_FIELD.index = 4 RISKINFO2DB_RISKINFO_FIELD.label = 1 RISKINFO2DB_RISKINFO_FIELD.has_default_value = false RISKINFO2DB_RISKINFO_FIELD.default_value = nil RISKINFO2DB_RISKINFO_FIELD.message_type = ROLERISKINFO_PB.ROLERISKINFO RISKINFO2DB_RISKINFO_FIELD.type = 11 RISKINFO2DB_RISKINFO_FIELD.cpp_type = 10 RISKINFO2DB.name = "RiskInfo2DB" RISKINFO2DB.full_name = ".KKSG.RiskInfo2DB" RISKINFO2DB.nested_types = {} RISKINFO2DB.enum_types = {} RISKINFO2DB.fields = {RISKINFO2DB_INFOS_FIELD, RISKINFO2DB_UPDATETIME_FIELD, RISKINFO2DB_GETDICETIME_FIELD, RISKINFO2DB_GETDICENUM_FIELD, RISKINFO2DB_RISKINFO_FIELD} RISKINFO2DB.is_extendable = false RISKINFO2DB.extensions = {} RiskInfo2DB = protobuf.Message(RISKINFO2DB)
--[[ desc:支付服务 auth:Carol ]] local class = require("class") local super = require("service_super") local skynet = require("skynet.manager") local sharedata = require("skynet.sharedata") local queue = require("skynet.queue") local cs = queue() ---@class service_payment:service_super @服务基类 local service = class(super) local this = service skynet.start(function() skynet.dispatch("lua",function(_, _, cmd, ...) local pack = cs(this[cmd], ...) skynet.retpack(pack or false) end) end)
local fs = _G.fs local function deleteIfExists(path) if fs.exists(path) then fs.delete(path) print("Deleted outdated file at: "..path) end end -- cleanup outdated files deleteIfExists('sys/apps/shell') deleteIfExists('sys/etc/app.db') deleteIfExists('sys/extensions') deleteIfExists('sys/network') deleteIfExists('startup') deleteIfExists('sys/apps/system/turtle.lua') deleteIfExists('sys/autorun/gps.lua') deleteIfExists('sys/autorun/gpshost.lua') deleteIfExists('sys/apps/network/redserver.lua') deleteIfExists('sys/apis') deleteIfExists('sys/autorun/apps.lua')
Panel = g_panel_mgr.new_panel_class('editor/dialog/uieditor_edit_bezier_action') SetPositionCommand = CreateClass() function SetPositionCommand:__init__(panel, target, position, positionFormat, lastPosition, lastPositionFormat) self.panel = panel self.target = target self.currPosition = position self.currPositionFormat = positionFormat self.lastPosition = lastPosition self.lastPositionFormat = lastPositionFormat end function SetPositionCommand:execute(isUndo) if isUndo then if self.lastPositionFormat then self.panel._positionFormat[self.target][1] = self.lastPositionFormat[1] self.panel._positionFormat[self.target][2] = self.lastPositionFormat[2] end if self.lastPosition then self.target:SetPosition(self.lastPosition.x, self.lastPosition.y) end else if self.currPositionFormat then self.panel._positionFormat[self.target][1] = self.currPositionFormat[1] self.panel._positionFormat[self.target][2] = self.currPositionFormat[2] end self.target:SetPosition(self.currPosition.x, self.currPosition.y) end self.panel:_updateItemPostionTips(self.target) self.panel:_previewBezier() self.panel:_refreshOperate() end function Panel:init_panel(actionName, actionConf, callback, saveCallback) self._actionName = actionName self._isBezierBy = self._actionName == 'BezierBy' self._callback = callback self._saveCallback = saveCallback self._actionConf = table.deepcopy(actionConf) self.btnClose.OnClick = function() self:close_panel() end self:_initItem(self.startPoint) self:_initItem(self.controller1) self:_initItem(self.controller2) self:_initItem(self.endPoint) self.drawNode = cc.DrawNode:create() self.container:addChild(self.drawNode) self.editParentSize.OnEditReturn = function() local editParentSizeContent = self.editParentSize:GetString() local splitContents = string.split(editParentSizeContent, ' ') if not splitContents or #splitContents ~= 2 then return end local sizeX = splitContents[1] local sizeY = splitContents[2] local targetSize = self.container:CalcSize(sizeX, sizeY) self:_initItemXYFromat() self:_resetActionConf() self:_onChangeSurfaceSize(targetSize) end self:_initItemXYFromat() self:_resetActionConf() self:_onChangeSurfaceSize(cc.size(self.container:GetContentSize())) local function OnUndo() self:_undoCommand() end self:add_key_event_callback({'KEY_CTRL', 'KEY_Z'}, OnUndo) --redo local function OnRedo() self:_reDoCommand() end self:add_key_event_callback({'KEY_CTRL', 'KEY_Y'}, OnRedo) local function OnSaveFile() if self._saveCallback then self._saveCallback() end end self:add_key_event_callback({'KEY_CTRL', 'KEY_S'}, OnSaveFile) end local function _getCurFormatType(content) if string.find(content, '%%') then return 1 elseif string.find(content, 'i') then return 2 end return 0 end function Panel:_initItemXYFromat() self._positionFormat = {} self._positionFormat[self.startPoint] = {1, 1} --百分比为1, 数值为0 self._positionFormat[self.controller1] = {_getCurFormatType(self._actionConf.p1.x), _getCurFormatType(self._actionConf.p1.y)} self._positionFormat[self.controller2] = {_getCurFormatType(self._actionConf.p2.x), _getCurFormatType(self._actionConf.p2.y)} self._positionFormat[self.endPoint] = {_getCurFormatType(self._actionConf.p.x), _getCurFormatType(self._actionConf.p.y)} end function Panel:_onChangeSurfaceSize(targetSize) self:_clearState() self.container:SetContentSize(targetSize.width, targetSize.height) self.container:SetPosition('50%', '50%') self.containerColor:SetContentSize('100%', '100%') self.containerColor:setVisible(false) self.containerColor:setVisible(true) self.containerColor:SetPosition('50%', '50%') self:_refreshItems() local commands = {} table.insert(commands, SetPositionCommand:New(self, self.controller1, ccp(self.controller1:GetPosition()), {self._positionFormat[self.controller1][1], self._positionFormat[self.controller1][2]})) table.insert(commands, SetPositionCommand:New(self, self.controller2, ccp(self.controller2:GetPosition()), {self._positionFormat[self.controller2][1], self._positionFormat[self.controller2][2]})) table.insert(commands, SetPositionCommand:New(self, self.endPoint, ccp(self.endPoint:GetPosition()), {self._positionFormat[self.endPoint][1], self._positionFormat[self.endPoint][2]})) self:_pushCommand(commands) end --重置为之前传进来的控制点数据 function Panel:_resetActionConf() if self._isBezierBy then self.startPoint.label:SetString(string.format('%s %s', '50%', '50%')) else self.startPoint.label:SetString(string.format('%s %s', '0', '0')) end self.controller1.label:SetString(string.format('%s %s', self._actionConf.p1.x, self._actionConf.p1.y)) self.controller2.label:SetString(string.format('%s %s', self._actionConf.p2.x, self._actionConf.p2.y)) self.endPoint.label:SetString(string.format('%s %s', self._actionConf.p.x, self._actionConf.p.y)) self._commandList = {} self._currCommand = 0 end function Panel:_refreshItems() self:_resetItem(self.startPoint) self:_resetItem(self.controller1) self:_resetItem(self.controller2) self:_resetItem(self.endPoint) end function Panel:_resetItem(target) local deltaPos = self.startPoint:CalcPos(self.startPoint:GetPosition()) local p = target:CalcPos(self:_getItemShowPosition(target)) if not self._isBezierBy or target == self.startPoint then deltaPos.x = 0 deltaPos.y = 0 end target:SetPosition(deltaPos.x + p.x, deltaPos.y + p.y) end function Panel:_initItem(target) local lastPosition = ccp(target:GetPosition()) target.OnBegin = function(pos) self._curr_select_item = target lastPosition = ccp(target:GetPosition()) return true end target.OnDrag = function(pos) if not self._curr_select_item then return end local localPos = self.container:convertToNodeSpace(pos) self._curr_select_item:SetPosition(localPos.x, localPos.y) self:_updateItemPostionTips(self._curr_select_item) self:_previewBezier() return true end target.OnEnd = function(pos) self._curr_select_item = nil self:_refreshOperate() local commands = {} local positionFormat = {self._positionFormat[target][1], self._positionFormat[target][2]} table.insert(commands, SetPositionCommand:New(self, target, ccp(target:GetPosition()), positionFormat, lastPosition, positionFormat)) self:_pushCommand(commands) return true end target.label.OnEditReturn = function() local content = target.label:GetString() local splitContents = string.split(content, ' ') if not splitContents or #splitContents ~= 2 then return end local positionX = splitContents[1] local positionY = splitContents[2] target.label:SetText(string.format('%s %s',positionX, positionY)) positionX = tonumber(positionX) or positionX positionY = tonumber(positionY) or positionY local positionFormat = {self._positionFormat[target][1], self._positionFormat[target][2]} local commands = {} table.insert(commands, SetPositionCommand:New(self, target, ccp(positionX, positionY), {_getCurFormatType(positionX), _getCurFormatType(positionY)}, ccp(target:GetPosition()), positionFormat)) self:_pushCommand(commands) end end function Panel:_clearState() self.drawNode:clear() end function Panel:_updateItemPostionTips(item) local str_x, str_y = self:_getItemFormatPosition(item) item.label:SetText(string.format('%s %s', str_x, str_y)) end function Panel:_previewBezier() self:_clearState() self.drawNode:drawLine(cc.p(self.startPoint:GetPosition()), cc.p(self.controller1:GetPosition()), cc.c4f(0, 0, 0, 1)) self.drawNode:drawLine(cc.p(self.endPoint:GetPosition()), cc.p(self.controller2:GetPosition()), cc.c4f(0, 0, 0, 1)) self.drawNode:drawCubicBezier(cc.p(self.startPoint:GetPosition()), cc.p(self.controller1:GetPosition()), cc.p(self.controller2:GetPosition()), cc.p(self.endPoint:GetPosition()), 90, cc.c4f(0, 1, 0, 1)) end function Panel:_refreshAllItemFormatPosition() local startX, startY = self.startPoint:GetPosition() if not self._isBezierBy then startX = 0 startY = 0 end local controller1_pos_x,controller1_pos_y = self:_getItemFormatPosition(self.controller1, true, startX, startY) local controller2_pos_x,controller2_pos_y = self:_getItemFormatPosition(self.controller2, true, startX, startY) local end_pos_x,end_pos_y = self:_getItemFormatPosition(self.endPoint, true, startX, startY) self._controller1_pos_x_str, self._controller1_pos_y_str = controller1_pos_x, controller1_pos_y self._controller2_pos_x_str, self._controller2_pos_y_str = controller2_pos_x, controller2_pos_y self._end_pos_x_str, self._end_pos_y_str = end_pos_x, end_pos_y end --获取item对应的位置格式,自动判断by or to --notUseIType:不用i格式 function Panel:_getItemFormatPosition(item, notUseIType, delta_x, delta_y) local positionFormatXType = self._positionFormat[item][1] local positionFormatYType = self._positionFormat[item][2] if notUseIType then if positionFormatXType == 2 then positionFormatXType = 0 end if positionFormatYType == 2 then positionFormatYType = 0 end end local targetPosX, targetPosY = item:GetPosition() return self:_convertPositionFormat(targetPosX, targetPosY, positionFormatXType, positionFormatYType, delta_x, delta_y) end function Panel:_convertPositionFormat(targetPosX, targetPosY, formatX, formatY, delta_x, delta_y) local layer_width, layer_height = self.container:GetContentSize() if not delta_x then delta_x = 0 end if not delta_y then delta_y = 0 end local percent_x_str = math.floor(targetPosX - delta_x) if formatX == 1 then local p = math.round_number((targetPosX - delta_x) / layer_width * 100) local n = math.round_number((targetPosX - delta_x) - layer_width * p / 100) percent_x_str = p..'%'..tostring(n == 0 and '' or n) elseif formatX == 2 then percent_x_str = "i" .. tostring(math.round_number(width - percent_x_str)) end local percent_y_str = math.floor(targetPosY - delta_y) if formatY == 1 then local p = math.round_number((targetPosY - delta_y) / layer_height * 100) local n = math.round_number((targetPosY - delta_y) - layer_height * p / 100) percent_y_str = p..'%'..tostring(n == 0 and '' or n) elseif formatY == 2 then percent_y_str = "i" .. tostring(math.round_number(width - percent_y_str)) end return percent_x_str, percent_y_str end --获取item文本框对应的位置 function Panel:_getItemShowPosition(item) local content = item.label:GetString() local splitContents = string.split(content, ' ') if not splitContents or #splitContents ~= 2 then return end return splitContents[1], splitContents[2] end --刷新操作 保存配置 function Panel:_refreshOperate() self:_refreshAllItemFormatPosition() local return_conf = {} return_conf.p = ccp(self._end_pos_x_str, self._end_pos_y_str) return_conf.p1 = ccp(self._controller1_pos_x_str, self._controller1_pos_y_str) return_conf.p2 = ccp(self._controller2_pos_x_str, self._controller2_pos_y_str) if self._callback then self._callback(return_conf) end end function Panel:_pushCommand(command) while self._currCommand ~= #self._commandList do table.remove(self._commandList, #self._commandList) end table.insert(self._commandList, command) self._currCommand = #self._commandList self:_executeCurrentCommand(false) end function Panel:_undoCommand() if self._currCommand <= 1 then return end self:_executeCurrentCommand(true) self._currCommand = self._currCommand - 1 end function Panel:_reDoCommand() self._currCommand = math.min(self._currCommand + 1, #self._commandList) self:_executeCurrentCommand(false) end function Panel:_executeCurrentCommand(isUndo) local commands = self._commandList[self._currCommand] if commands then for _, command in ipairs(commands) do command:execute(isUndo) end end end
modifier_sniper_headshot_lua = class({}) -------------------------------------------------------------------------------- -- Classifications function modifier_sniper_headshot_lua:IsHidden() return true end function modifier_sniper_headshot_lua:IsPurgable() return false end -------------------------------------------------------------------------------- -- Initializations function modifier_sniper_headshot_lua:OnCreated( kv ) -- references self.proc_chance = self:GetAbility():GetSpecialValueFor( "proc_chance" ) -- special value self.slow_duration = self:GetAbility():GetSpecialValueFor( "slow_duration" ) -- special value self.slow = self:GetAbility():GetSpecialValueFor( "slow" ) -- special value if IsServer() then self.damage = self:GetAbility():GetAbilityDamage() end end function modifier_sniper_headshot_lua:OnRefresh( kv ) -- references self.proc_chance = self:GetAbility():GetSpecialValueFor( "proc_chance" ) -- special value self.slow_duration = self:GetAbility():GetSpecialValueFor( "slow_duration" ) -- special value self.slow = self:GetAbility():GetSpecialValueFor( "slow" ) -- special value if IsServer() then self.damage = self:GetAbility():GetAbilityDamage() end end function modifier_sniper_headshot_lua:OnDestroy( kv ) end -------------------------------------------------------------------------------- -- Modifier Effects function modifier_sniper_headshot_lua:DeclareFunctions() local funcs = { MODIFIER_PROPERTY_PROCATTACK_BONUS_DAMAGE_PHYSICAL, } return funcs end function modifier_sniper_headshot_lua:GetModifierProcAttack_BonusDamage_Physical( params ) if IsServer() then -- roll dice if RandomInt(1,100)<=self.proc_chance then params.target:AddNewModifier( self:GetParent(), -- player source self, -- ability source "modifier_sniper_headshot_lua_slow", -- modifier name { duration = self.slow_duration, slow = self.slow, } -- kv ) return self.damage end end end
local Block={} function Block:new(x, y, w, h) local init={ x=x or nil, y=y or nil, w=w or nil, h=h or nil } return setmetatable(init, {__index=self}) end function Block:draw() lg.rectangle("fill", self.x-self.w/2, self.y-self.h/2, self.w, self.h) end function Block:update(dt) end return Block
-- Copyright 2014 Álvaro Fernández Rojas <[email protected]> -- Licensed to the public under the Apache License 2.0. module("luci.controller.shairplay", package.seeall) function index() if not nixio.fs.access("/etc/config/shairplay") then return end local page = entry({"admin", "services", "shairplay"}, cbi("shairplay"), _("Shairplay")) page.dependent = true end
BuildEnv(...) ApplicantPanel = Addon:NewModule(CreateFrame('Frame', nil, ManagerPanel), 'ApplicantPanel', 'AceEvent-3.0', 'AceTimer-3.0') local function _PartySortHandler(applicant) return applicant:GetNumMembers() > 1 and format('%08x', applicant:GetID()) end local APPLICANT_LIST_HEADER = { { key = 'Icon', text = '@', style = 'ICON:20:20', width = 30, iconHandler = function(applicant) if applicant:GetRelationship() then return [[Interface\AddOns\MeetingStone\Media\Icons]], 0, 0.125, 0, 1 end end }, { key = 'Name', text = L['角色名'], width = 95, style = 'LEFT', showHandler = function(applicant) local color = applicant:GetResult() and RAID_CLASS_COLORS[applicant:GetClass()] or GRAY_FONT_COLOR return applicant:GetShortName(), color.r, color.g, color.b end }, { key = 'Role', text = L['职责'], width = 52, class = Addon:GetClass('RoleItem'), formatHandler = function(grid, applicant) grid:SetMember(applicant) end, sortHandler = function(applicant) return _PartySortHandler(applicant) or applicant:GetRoleID() end }, { key = 'Class', text = L['职业'], width = 40, style = 'ICON:18:18', iconHandler = function(applicant) return [[INTERFACE\GLUES\CHARACTERCREATE\UI-CHARACTERCREATE-CLASSES]], CLASS_ICON_TCOORDS[applicant:GetClass()] end, sortHandler = function(applicant) return _PartySortHandler(applicant) or applicant:GetClass() end }, { key = 'Level', text = L['等级'], width = 40, showHandler = function(applicant) local level = applicant:GetLevel() if applicant:GetResult() then local activity = CreatePanel:GetCurrentActivity() if activity and activity:IsMeetingStone() and (level < activity:GetMinLevel() or level > activity:GetMaxLevel()) then return level, RED_FONT_COLOR.r, RED_FONT_COLOR.g, RED_FONT_COLOR.b else return level end else return applicant:GetLevel(), GRAY_FONT_COLOR.r, GRAY_FONT_COLOR.g, GRAY_FONT_COLOR.b end end, sortHandler = function(applicant) return _PartySortHandler(applicant) or tostring(999 - applicant:GetLevel()) end }, { key = 'ItemLevel', text = L['装等'], width = 52, showHandler = function(applicant) if applicant:GetResult() then return applicant:GetItemLevel() else return applicant:GetItemLevel(), GRAY_FONT_COLOR.r, GRAY_FONT_COLOR.g, GRAY_FONT_COLOR.b end end, sortHandler = function(applicant) return _PartySortHandler(applicant) or tostring(9999 - applicant:GetItemLevel()) end }, -- { -- key = 'PvPRating', -- text = L['PvP'], -- width = 52, -- showHandler = function(applicant) -- local activity = CreatePanel:GetCurrentActivity() -- if not activity then -- return -- end -- local pvp = applicant:GetPvPText() -- if not pvp then -- return -- end -- if applicant:GetResult() then -- if applicant:GetPvPRating() < activity:GetPvPRating() then -- return pvp, RED_FONT_COLOR.r, RED_FONT_COLOR.g, RED_FONT_COLOR.b -- else -- return pvp -- end -- else -- return pvp, GRAY_FONT_COLOR.r, GRAY_FONT_COLOR.g, GRAY_FONT_COLOR.b -- end -- end, -- sortHandler = function(applicant) -- return _PartySortHandler(applicant) or tostring(9999 - applicant:GetPvPRating()) -- end -- }, { key = 'Msg', text = L['描述'], width = 152, style = 'LEFT', showHandler = function(applicant) if applicant:GetResult() then return applicant:GetMsg() else return applicant:GetMsg(), GRAY_FONT_COLOR.r, GRAY_FONT_COLOR.g, GRAY_FONT_COLOR.b end end, }, { key = 'Option', text = L['操作'], width = 130, class = Addon:GetClass('OperationGrid'), formatHandler = function(grid, applicant) grid:SetMember(applicant, CreatePanel:GetCurrentActivity():GetActivityID()) end } } function ApplicantPanel:OnInitialize() self:SetPoint('TOPRIGHT') self:SetPoint('BOTTOMRIGHT') self:SetPoint('TOPLEFT', CreatePanel, 'TOPRIGHT', 8, 0) local ApplicantList = GUI:GetClass('DataGridView'):New(self) do ApplicantList:SetAllPoints(true) ApplicantList:InitHeader(APPLICANT_LIST_HEADER) ApplicantList:SetItemHeight(32) ApplicantList:SetItemClass(Addon:GetClass('ApplicantItem')) ApplicantList:SetItemSpacing(0) ApplicantList:SetHeaderPoint('BOTTOMLEFT', ApplicantList, 'TOPLEFT', -2, 2) ApplicantList:SetSingularAdapter(true) ApplicantList:SetGroupHandle(function(applicant) return applicant:GetID() end) ApplicantList:SetCallback('OnRoleClick', function(_, _, applicant, role) C_LFGList.SetApplicantMemberRole(applicant:GetID(), applicant:GetIndex(), role) end) ApplicantList:SetCallback('OnInviteClick', function(_, _, applicant) self:Invite(applicant:GetID(), applicant:GetNumMembers()) end) ApplicantList:SetCallback('OnDeclineClick', function(_, _, applicant) self:Decline(applicant:GetID(), applicant:GetStatus()) end) ApplicantList:SetCallback('OnItemEnter', function(_, _, applicant) MainPanel:OpenApplicantTooltip(applicant) end) ApplicantList:SetCallback('OnItemLeave', function() MainPanel:CloseTooltip() end) ApplicantList:SetCallback('OnItemMenu', function(_, button, applicant) self:ToggleEventMenu(button, applicant) end) ApplicantList:SetCallback('OnItemGrouped', function(_, button, applicant, isSingularLine, endButton, startButton) if not endButton then button:SetBackground(startButton == button) else button:SetAlpha(isSingularLine and 0.1 or 0.05, endButton) end end) end -- local AutoInvite = GUI:GetClass('CheckBox'):New(self) do -- AutoInvite:SetPoint('BOTTOMRIGHT', self, 'TOPLEFT', -80, 7) -- AutoInvite:SetText(L['自动邀请']) -- AutoInvite:SetScript('OnClick', function(AutoInvite) -- local checked = AutoInvite:GetChecked() -- self:SetAutoInvite(checked) -- end) -- end self.ApplicantList = ApplicantList self.AutoInvite = AutoInvite self:RegisterEvent('LFG_LIST_APPLICANT_UPDATED', 'UpdateApplicantsList') self:RegisterEvent('LFG_LIST_APPLICANT_LIST_UPDATED') self:RegisterEvent('LFG_LIST_ACTIVE_ENTRY_UPDATE', function() self:UpdateApplicantsList() end) self:SetScript('OnShow', self.ClearNewPending) end function ApplicantPanel:LFG_LIST_APPLICANT_LIST_UPDATED(_, hasNewPending, hasNewPendingWithData) self.hasNewPending = hasNewPending and hasNewPendingWithData and IsActivityManager() self:UpdateApplicantsList() self:SendMessage('MEETINGSTONE_NEW_APPLICANT_STATUS_UPDATE') end function ApplicantPanel:HasNewPending() return self.hasNewPending end function ApplicantPanel:ClearNewPending() self.hasNewPending = false self:SendMessage('MEETINGSTONE_NEW_APPLICANT_STATUS_UPDATE') end local function _SortApplicants(applicant1, applicant2) if applicant1:IsNew() ~= applicant2:IsNew() then return applicant2:IsNew() end return applicant1:GetOrderID() < applicant2:GetOrderID() end function ApplicantPanel:UpdateApplicantsList() local list = {} local applicants = C_LFGList.GetApplicants() if applicants and C_LFGList.HasActiveEntryInfo() then for i, id in ipairs(applicants) do local numMembers = C_LFGList.GetApplicantInfo(id).numMembers for i = 1, numMembers do tinsert(list, Applicant:New(id, i, C_LFGList.GetActiveEntryInfo().activityID)) end end table.sort(list, _SortApplicants) end self.ApplicantList:SetItemList(list) self.ApplicantList:Refresh() end function ApplicantPanel:Invite(id, numMembers) if not IsInRaid(LE_PARTY_CATEGORY_HOME) and GetNumGroupMembers(LE_PARTY_CATEGORY_HOME) + numMembers + C_LFGList.GetNumInvitedApplicantMembers() > MAX_PARTY_MEMBERS + 1 then local dialog = StaticPopup_Show('LFG_LIST_INVITING_CONVERT_TO_RAID') if dialog then dialog.data = id end else C_LFGList.InviteApplicant(id) return true end end function ApplicantPanel:Decline(id, status) if status ~= 'applied' and status ~= 'invited' then C_LFGList.RemoveApplicant(id) else C_LFGList.DeclineApplicant(id) end end function ApplicantPanel:ToggleEventMenu(button, applicant) local name = applicant:GetName() GUI:ToggleMenu(button, { { text = name, isTitle = true, }, { text = WHISPER, func = function() ChatFrame_SendTell(name) end, disabled = not name or not applicant:GetResult(), }, { text = LFG_LIST_REPORT_FOR, hasArrow = true, menuTable = { { text = LFG_LIST_BAD_PLAYER_NAME, func = function() C_LFGList.ReportApplicant(applicant:GetID(), 'badplayername', applicant:GetIndex()) end, }, { text = LFG_LIST_BAD_DESCRIPTION, func = function() C_LFGList.ReportApplicant(applicant:GetID(), 'lfglistappcomment') end, disabled = applicant:GetMsg() == '', }, }, }, { text = IGNORE_PLAYER, func = function() AddIgnore(name) C_LFGList.DeclineApplicant(applicant:GetID()) end, disabled = not name, }, { text = CANCEL, }, }, 'cursor') end function ApplicantPanel:SetAutoInvite(flag) LFGListUtil_SetAutoAccept(flag) end function ApplicantPanel:CanInvite(applicant) local status = applicant:GetStatus() local numMembers = applicant:GetNumMembers() local numAllowed = select(ACTIVITY_RETURN_VALUES.maxPlayers, C_LFGList.GetActivityInfo(CreatePanel:GetCurrentActivity():GetActivityID())) if numAllowed == 0 then numAllowed = MAX_RAID_MEMBERS end local currentCount = GetNumGroupMembers(LE_PARTY_CATEGORY_HOME) local numInvited = C_LFGList.GetNumInvitedApplicantMembers() if numMembers + currentCount > numAllowed then return elseif numMembers + currentCount + numInvited > numAllowed then return elseif status == 'applied' then return true end end function ApplicantPanel:StartInvite() local list = self.ApplicantList:GetItemList() for i, v in ipairs(list) do if self:CanInvite(v) then if self:Invite(v:GetID(), v:GetNumMembers()) then end break end end end
#!/usr/bin/env tarantool -- gh-4231: run box_load_and_execute() (it is box.execute value -- before box will be loaded) in several fibers in parallel and -- ensure that it returns correct results (i.e. that the function -- waits until box will be fully configured). -- -- The test can be configured to call box.execute() from a fiber -- instead of box_load_and_execute(): it can be done either via -- test-run using confguration feature or using an argument when -- the test is invoked directly. local fiber = require('fiber') local tap = require('tap') -- Determine configuration. local conf = 'box_load_and_execute' local ok, test_run = pcall(require, 'test_run') if ok then test_run = test_run.new() conf = test_run:get_cfg('conf') elseif #arg >= 1 then conf = arg[1] end assert(conf == 'box_load_and_execute' or conf == 'box.execute') local box_load_and_execute = box.execute local fiber_count = 10 local results = fiber.channel(fiber_count) local function select_from_vindex() local box_execute_func = conf == 'box_load_and_execute' and box_load_and_execute or conf == 'box.execute' and box.execute or function() return false end local res = box_execute_func('SELECT * FROM "_vindex"') results:put(res) end local test = tap.test('gh-4231-box-execute-locking') test:diag('configuration: %s', conf) test:plan(fiber_count) local exp_metadata = { {name = 'id', type = 'unsigned'}, {name = 'iid', type = 'unsigned'}, {name = 'name', type = 'string'}, {name = 'type', type = 'string'}, {name = 'opts', type = 'map'}, {name = 'parts', type = 'array'}, } for _ = 1, fiber_count do fiber.create(select_from_vindex) end for i = 1, fiber_count do local res = results:get() test:test(('result %d'):format(i), function(test) test:plan(2) test:is_deeply(res.metadata, exp_metadata, 'verify metadata') local rows_is_ok = type(res.rows) == 'table' and #res.rows > 0 test:ok(rows_is_ok, 'verify rows') end) end os.exit(test:check() and 0 or 1)
--[[ ╔════════════════════════════════════╗ ║ Settings for windwp/nvim-autopairs ║ ╚════════════════════════════════════╝ --]] require("nvim-autopairs").setup { }
local Studio = settings().Studio local t = require(script.Parent:FindFirstChild("t")) --- local Themer = {} local syncedObjects = {} local colorSpecifierInterface = t.union( t.enum(Enum.StudioStyleGuideColor), t.wrap(function(value) local guideColor, guideModifier = value[1], value[2] local guideColorCheck = t.enum(Enum.StudioStyleGuideColor)(guideColor) local guideModifierCheck = t.optional(t.enum(Enum.StudioStyleGuideModifier))(guideModifier) return guideColorCheck and guideModifierCheck end, t.array(t.any)) ) Themer.SyncProperties = t.wrap(function(object, properties) for propertyName, colorSpecifier in pairs(properties) do local success, value = pcall(function() return object[propertyName] end) if (not success) then properties[propertyName] = nil warn("property " .. propertyName .. " does not exist for " .. object.Name) return end if (typeof(value) ~= "Color3") then properties[propertyName] = nil warn("property " .. propertyName .. " is not a Color3 for " .. object.Name) return end if (typeof(colorSpecifier) == "EnumItem") then properties[propertyName] = {colorSpecifier, Enum.StudioStyleGuideModifier.Default} colorSpecifier = properties[propertyName] end object[propertyName] = Studio.Theme:GetColor(colorSpecifier[1], colorSpecifier[2]) end syncedObjects[object] = properties end, t.tuple(t.Instance, t.map(t.string, colorSpecifierInterface))) function Themer.DesyncProperties(object) if (not syncedObjects[object]) then return end syncedObjects[object] = nil end Themer.SyncProperty = t.wrap(function(object, property, colorSpecifier) local success, value = pcall(function() return object[property] end) if (not success) then warn("property " .. property .. " does not exist for " .. object.Name) return end if (typeof(value) ~= "Color3") then warn("property " .. property .. " is not a Color3 for " .. object.Name) return end if (typeof(colorSpecifier) == "EnumItem") then colorSpecifier = {colorSpecifier, Enum.StudioStyleGuideModifier.Default} end if (not syncedObjects[object]) then syncedObjects[object] = { [property] = colorSpecifier } else syncedObjects[object][property] = colorSpecifier end object[property] = Studio.Theme:GetColor(colorSpecifier[1], colorSpecifier[2]) end, t.tuple(t.Instance, t.string, colorSpecifierInterface)) function Themer.DesyncProperty(object, property) if (not syncedObjects[object]) then return end syncedObjects[object][property] = nil end Themer.ThemeChanged = Studio.ThemeChanged Studio.ThemeChanged:Connect(function() for object, properties in pairs(syncedObjects) do for propertyName, colorSpecifier in pairs(properties) do object[propertyName] = Studio.Theme:GetColor(colorSpecifier[1], colorSpecifier[2]) end end end) return Themer