content
stringlengths
5
1.05M
local p = {} function p.setup() print('setup from mod1') end function p.plugin() print('plug from mod1') end return p
--- @ignore CLGAMEMODESUBMENU.priority = 0 CLGAMEMODESUBMENU.title = "" local function Invert(data, value) if data.inverted then return not value else return value end end function CLGAMEMODESUBMENU:Populate(parent) local item = self.item local form = vgui.CreateTTT2Form(parent, "header_equipment_setup") local form2 = vgui.CreateTTT2Form(parent, "header_equipment_value_setup") local buyableRef for key, data in SortedPairsByMemberValue(ShopEditor.savingKeys, "order", false) do local name = "itemeditor_name_" .. data.name local desc = "itemeditor_desc_" .. data.name if data.typ == "bool" then if data.b_desc then form:MakeHelp({ label = desc }) end local cb = form:MakeCheckBox({ label = name, default = Invert(data, item.defaultValues[key]), initial = Invert(data, item[key]), OnChange = function(_, value) net.Start("TTT2SESaveItem") net.WriteString(item.id) net.WriteUInt(1, ShopEditor.savingKeysBitCount or 16) net.WriteString(key) net.WriteBool(Invert(data, tobool(value))) net.SendToServer() end, master = buyableRef }) -- store reference if buyable button if data.name == "not_buyable" then buyableRef = cb end elseif data.typ == "number" then if data.b_desc then form2:MakeHelp({ label = desc }) end form2:MakeSlider({ label = name, min = data.min, max = data.max, decimal = 0, default = item.defaultValues[key], initial = item[key], OnChange = function(_, value) net.Start("TTT2SESaveItem") net.WriteString(item.id) net.WriteUInt(1, ShopEditor.savingKeysBitCount or 16) net.WriteString(key) net.WriteUInt(math.Round(value), data.bits or 16) net.SendToServer() end, master = buyableRef }) end end end
local u = false; local r = 0; local shot = false; local agent = 1 local health = 0; local xx = 420.95; local yy = 313; local xx2 = 952.9; local yy2 = 350; local ofs = 50; local followchars = true; local del = 0; local del2 = 0; function onCreate() -- background shit makeLuaSprite('city', 'backcity', -200, -500); setLuaSpriteScrollFactor('city', 0.8, 0.8); makeLuaSprite('sky', 'sky', -400, -500); setLuaSpriteScrollFactor('sky', 0.8, 0.8); makeLuaSprite('city', 'backcity', -400, -500); setLuaSpriteScrollFactor('city', 1.1, 1.1); makeAnimatedLuaSprite('heli', 'heli', -3000, -200); luaSpriteAddAnimationByPrefix('heli', 'heli', 'heli', 24, true); setScrollFactor('heli', 0.4, 0.3); scaleObject('heli', 0.9, 0.9); setProperty('heli.velocity.x', 400); makeLuaSprite('hill1', 'hill1', -67, -295); scaleObject('hill1', 1, 1); setLuaSpriteScrollFactor('hill1', 0.9, 0.9); makeLuaSprite('hill2', 'hill2', 1155, -295); scaleObject('hill2', 1, 1); setLuaSpriteScrollFactor('hill2', 0.9, 0.9); makeAnimatedLuaSprite('sexualintercourse2', 'bgg', -35, -296); luaSpriteAddAnimationByPrefix('sexualintercourse2', 'first', 'deimos appear', 24, false); scaleObject('sexualintercourse2', 1, 1); luaSpritePlayAnimation('sexualintercourse2', 'first'); objectPlayAnimation('sexualintercourse2', 'first', false); setLuaSpriteScrollFactor('sexualubtercourse2', 0.9, 0.9); makeAnimatedLuaSprite('sexualintercourse3', 'bgg2', 1185, -296); luaSpriteAddAnimationByPrefix('sexualintercourse3', 'first', 'Sanford appears', 24, false); scaleObject('sexualintercourse3', 1, 1); luaSpritePlayAnimation('sexualintercourse3', 'first'); objectPlayAnimation('sexualintercourse3', 'first', false); makeAnimatedLuaSprite('sexualintercourse', 'bgg', -43, -245); luaSpriteAddAnimationByPrefix('sexualintercourse', 'first', 'deimos idle', 24, false); scaleObject('sexualintercourse', 1, 1); luaSpritePlayAnimation('sexualintercourse', 'first'); setLuaSpriteScrollFactor('sexualubtercourse', 0.9, 0.9); makeAnimatedLuaSprite('sexualintercourse4', 'bgg2', 1325, -245); --145 luaSpriteAddAnimationByPrefix('sexualintercourse4', 'first', 'idle san', 24, false); scaleObject('sexualintercourse4', 1, 1); luaSpritePlayAnimation('sexualintercourse4', 'first'); setLuaSpriteScrollFactor('sexualubtercourse4', 0.9, 0.9); makeAnimatedLuaSprite('hc', 'trickyhellclown', -43, -145); luaSpriteAddAnimationByPrefix('hc', 'hc', 'tricky hellclown', 24, true); scaleObject('hc', 1, 1); luaSpritePlayAnimation('hc', 'first'); setProperty('hc.velocity.y', -500); makeLuaSprite('ground', 'floor', -80, -300); scaleObject('ground', 1, 1); setLuaSpriteScrollFactor('ground', 0.8, 0.8); makeLuaSprite('ground2', 'floor', -80, -300); scaleObject('ground2', 1, 1); setLuaSpriteScrollFactor('ground2', 0.8, 0.8); makeLuaSprite('ground4', 'floor', -80, -300); scaleObject('ground4', 1, 1); setLuaSpriteScrollFactor('ground4', 0.8, 0.8); makeLuaSprite('ground3', 'floor', -80, -300); scaleObject('ground3', 1, 1); setLuaSpriteScrollFactor('ground3', 0.8, 0.8); addLuaSprite('sky', false); addLuaSprite('city', false); addLuaSprite('heli', false); addLuaSprite('hill1', false); addLuaSprite('hill2', false); addLuaSprite('ground', false); if not hideHud then if downscroll then makeAnimatedLuaSprite('lever', 'nevada/gremlin', 390, 40); --the health draining lever setProperty('lever.flipY', true); else makeAnimatedLuaSprite('lever', 'nevada/gremlin', 390, 410); end setProperty('lever.scale.x', getProperty('lever.scale.x') - 0.3); setProperty('lever.scale.y', getProperty('lever.scale.y') - 0.3); setObjectCamera('lever', 'hud'); addAnimationByPrefix('lever', 'enter', 'enter', 21, false); addAnimationByPrefix('lever', 'idle', 'idle', 18, true); addAnimationByIndices('lever', 'exit', 'enter', '16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0', 18); setLuaSpriteScrollFactor('lever', 0, 0); end end function onUpdate() if del > 0 then del = del - 1 end if del2 > 0 then del2 = del2 - 1 end if followchars == true then if mustHitSection == false then setProperty('defaultCamZoom',0.7) if getProperty('dad.animation.curAnim.name') == 'singLEFT' then triggerEvent('Camera Follow Pos',xx2-ofs,yy2) end if getProperty('dad.animation.curAnim.name') == 'singRIGHT' then triggerEvent('Camera Follow Pos',xx2+ofs,yy2) end if getProperty('dad.animation.curAnim.name') == 'singUP' then triggerEvent('Camera Follow Pos',xx2,yy2-ofs) end if getProperty('dad.animation.curAnim.name') == 'singDOWN' then triggerEvent('Camera Follow Pos',xx2,yy2+ofs) end if getProperty('dad.animation.curAnim.name') == 'singLEFT-alt' then triggerEvent('Camera Follow Pos',xx2-ofs,yy2) end if getProperty('dad.animation.curAnim.name') == 'singRIGHT-alt' then triggerEvent('Camera Follow Pos',xx2+ofs,yy2) end if getProperty('dad.animation.curAnim.name') == 'singUP-alt' then triggerEvent('Camera Follow Pos',xx2,yy2-ofs) end if getProperty('dad.animation.curAnim.name') == 'singDOWN-alt' then triggerEvent('Camera Follow Pos',xx2,yy2+ofs) end if getProperty('dad.animation.curAnim.name') == 'idle-alt' then triggerEvent('Camera Follow Pos',xx2,yy2) end if getProperty('dad.animation.curAnim.name') == 'idle' then triggerEvent('Camera Follow Pos',xx2,yy2) end else setProperty('defaultCamZoom',0.7) if getProperty('dad.animation.curAnim.name') == 'idle' then triggerEvent('Camera Follow Pos',xx2,yy2) end if getProperty('dad.animation.curAnim.name') == 'singUP' then triggerEvent('Camera Follow Pos',xx2,yy2) end if getProperty('dad.animation.curAnim.name') == 'singDOWN' then triggerEvent('Camera Follow Pos',xx2,yy2) end if getProperty('dad.animation.curAnim.name') == 'singLEFT' then triggerEvent('Camera Follow Pos',xx2,yy2) end if getProperty('dad.animation.curAnim.name') == 'singRIGHT' then triggerEvent('Camera Follow Pos',xx2,yy2) end end else triggerEvent('Camera Follow Pos','','') end end function onStepHit() if curStep == 21 then playSound('hankready', 0.85); end if curStep == 989 then addLuaSprite('hc', false); end if curStep == 989 then addLuaSprite('ground3', false); end if curStep == 1007 then setProperty('hc.velocity.y', -300); end if curStep == 1008 then setProperty('hc.velocity.y', -200); end if curStep == 1009 then setProperty('hc.velocity.y', -100); end if curStep == 1010 then setProperty('hc.velocity.y', -0); end end function onBeatHit() if curBeat == 72 then removeLuaSprite('hill1', false); end if curBeat == 72 then removeLuaSprite('hill2', false); end if curBeat == 72 then removeLuaSprite('ground', false); end if curBeat == 73 then removeLuaSprite('ground2', false); end if curBeat == 72 then addLuaSprite('sexualintercourse2', false); end if curBeat == 72 then addLuaSprite('sexualintercourse3', false); end if curBeat == 73 then removeLuaSprite('sexualintercourse2', false); end if curBeat == 73 then removeLuaSprite('sexualintercourse3', false); end if curBeat == 73 then addLuaSprite('sexualintercourse', false); end if curBeat == 73 then addLuaSprite('sexualintercourse4', false); end if curBeat == 72 then addLuaSprite('ground2', false); end if curBeat == 73 then addLuaSprite('ground4', false); end if curStep % 4 == 0 then doTweenY('rrr', 'camHUD', -12, stepCrochet*0.002, 'circOut') doTweenY('rtr', 'camGame.scroll', 12, stepCrochet*0.002, 'sineIn') end objectPlayAnimation('sexualintercourse', 'first', false); objectPlayAnimation('sexualintercourse4', 'first', false); objectPlayAnimation('hc', 'first', true); if curBeat == 328 then setProperty('defaultCamZoom',0.7) followchars = false; end end
mgmini = {} local modpath = minetest.get_modpath("mgmini") dofile(modpath .. "/util.lua") dofile(modpath .. "/api.lua")
if character_1.charge_gauge == 100 and turn == 1 then booleans["assault_time"] = true end if booleans["assault_time"] == nil then if turn == 1 then Summon(1) character_3:UseSkill(1) character_3:UseSkill(2) character_2:UseSkill(2) character_1:UseSkill(4) EnableChargeAttack() end if turn == 2 then character_4:UseSkill(3) character_4:UseSkill(2) character_3:UseSkill(3) character_2:UseSkill(1) character_2:UseSkill(3) character_1:WithWaitTime(500):UseSkill(3) Refresh() character_4:UseSkill(1) end if turn == 3 then character_1:UseSkill(1) end else if turn == 1 then character_3:UseSkill(1) character_3:UseSkill(2) character_2:UseSkill(2) character_1:UseSkill(4) EnableChargeAttack() end if turn == 2 then character_4:UseSkill(3) character_4:UseSkill(2) character_3:UseSkill(3) character_2:UseSkill(1) character_2:UseSkill(3) character_1:WithWaitTime(500):UseSkill(3) Refresh() character_4:UseSkill(1) end if turn == 3 then Summon(1) character_1:UseSkill(1) end end
--[[ _____ ___ ______ _____ |_ _| / _ \| ___ \_ _| | | _ __ ___ __ _ __ _ ___ / /_\ \ |_/ / | | | || '_ ` _ \ / _` |/ _` |/ _ \ | _ | __/ | | _| || | | | | | (_| | (_| | __/ | | | | | _| |_ |____/_| |_| |_|\__,_|\__, |\___| \_| |_|_| |____/ __/ | |___/ Simple API for creating image descriptor tables. Requires style.lua's expand function By: Aubergine18 (git:aubergine10) | License: MIT Source: https://github.com/aubergine10/Style Docs: https://github.com/aubergine10/Style/wiki/image-API --]] -- luacheck: globals data color local image = { api = true } -- indexes for parsed arrays (see style.expnd) local x, y, w, h, top, right, bottom, left = 1, 2, 1, 2, 1 , 2 , 3 , 4 local expand , parseColor = _G.style.expand, _G.style.parse_color local defPri , guiPri = 'medium', 'extra-high-no-scale' -- determine path to image file -- deprecated style.path used as fallback until 1.0 release function image.addPathTo( filename ) if filename:find( '__', 1, true ) == 1 then return filename else local prefix = _G.image.path or (_G.style and _G.style.path) or '' return prefix .. filename end end -- no image image.none = { type = 'none' } -- a raw image which can be used in various prototypes -- (not just LuaGuiElement styles) function image.raw( filename, apiMethod ) if type(filename) ~= 'string' then error( (apiMethod or 'image.raw') .. ': invalid filename' ) end return function( settings ) local _ = settings or {} _.pos = expand( _.pos, 0 ) -- x, y _.size = expand( _.size ) -- w, h _.tint = parseColor( _.tint ) _.priority = _.priority or guiPri return { filename = image.addPathTo( filename ); x = _.pos[x] ; y = _.pos[y] ; height = _.size[h] ; width = _.size[w] ; shift = _.shift ; priority = _.priority ; opacity = _.opacity ; scale = _.scale ; tint = _.tint ; }, _ end end -- monolith image local stretch = 'stretch_monolith_image_to_size' function image.monolith( filename ) return function( settings ) local raw, _ = image.raw( filename, 'image.monolith' )( settings ) _.border = expand( settings.border ) -- top, right, bottom, left if type( _.autoSize ) == 'table' then _.autoSize = _.autoSize[1] end return { type = 'monolith' ; monolith_image = raw ; [stretch] = _.autoSize ; top_monolith_border = _.border[top ] ; right_monolith_border = _.border[right ] ; bottom_monolith_border = _.border[bottom] ; left_monolith_border = _.border[left ] ; } end end -- composite image function image.composite( filename ) if type(filename) ~= 'string' then error 'image.composite: invalid filename' end return function( settings ) local _ = settings or {} _.pos = expand( _.pos , 0 ) _.corner = expand( _.corner, 1 ) _.tint = parseColor( _.tint ) return { type = 'composition' ; filename = image.addPathTo( filename ) ; position = { _.pos[x] , _.pos[y] } ; corner_size = { _.corner[w], _.corner[h] } ; scale = _.scale ; opacity = _.opacity ; priority = _.priority or guiPri ; tint = _.tint ; } end end -- animation image, used primarily for entities local axial = 'axially_symmetrical' function image.animation( filename ) if type(filename) ~= 'string' then error 'image.animation: invalid filename' end return function( settings ) local _ = settings or {} _.pos = expand( _.pos , 0 ) -- x, y _.shift = expand( _.shift, 0 ) -- x, y _.size = expand( _.size ) -- w, h _.tint = parseColor( _.tint ) return { filename = image.addPathTo( filename ); blend_mode = _.blend ; line_length = _.columns ; direction_count = _.directions or 1 ; flags = _.flags ; frame_count = _.frames ; [axial] = _.mirror ; x = _.pos[x] ; y = _.pos[y] ; priority = _.priority or defPri ; scale = _.scale ; shift = _.shift ; width = _.size[w] ; height = _.size[h] ; speed = _.speed or 1 ; tint = _.tint ; } end end _G.image = image return _G.image
--[[ MOB SPAWN LIST mob(<mob_spawner_alias>, <mob_id>, <mob_count>, <spawner_limit>, <spawn_interval>, <spawner_range>, <map_id>, <x_pos>, <y_pos>, <z_pos>); --]] mob("", 645, 1, 1, 26, 5, 57, 5256.22, 5330.27, 0); mob("", 646, 1, 1, 26, 5, 57, 5256.22, 5330.27, 0); mob("", 645, 1, 1, 26, 5, 57, 5254.1, 5376.58, 0.18); mob("", 646, 1, 1, 26, 5, 57, 5254.1, 5376.58, 0.18); mob("", 648, 1, 1, 30, 5, 57, 5268.41, 5355.08, 0.99); mob("", 649, 1, 1, 30, 5, 57, 5268.41, 5355.08, 0.99); mob("", 644, 1, 1, 28, 5, 57, 5275.14, 5343.61, 1); mob("", 646, 1, 1, 28, 5, 57, 5275.14, 5343.61, 1); mob("", 645, 1, 1, 28, 5, 57, 5275.88, 5365.18, 1); mob("", 646, 1, 1, 28, 5, 57, 5275.88, 5365.18, 1); mob("", 646, 1, 1, 27, 5, 57, 5255.49, 5285.67, 0.63); mob("", 648, 1, 1, 27, 5, 57, 5255.49, 5285.67, 0.63); mob("", 646, 1, 1, 30, 5, 57, 5347.69, 5355.47, -1.99); mob("", 648, 1, 1, 30, 5, 57, 5347.69, 5355.47, -1.99); mob("", 648, 2, 1, 30, 5, 57, 5347.69, 5355.47, -1.99); mob("", 641, 1, 1, 25, 5, 57, 5359.64, 5344.46, -1.99); mob("", 642, 1, 1, 25, 5, 57, 5359.64, 5344.46, -1.99); mob("", 641, 1, 1, 25, 5, 57, 5359.06, 5365.68, -1.99); mob("", 642, 1, 1, 25, 5, 57, 5359.06, 5365.68, -1.99); mob("", 644, 1, 1, 25, 5, 57, 5379.7, 5335.59, -0.02); mob("", 645, 1, 1, 25, 5, 57, 5379.7, 5335.59, -0.02); mob("", 644, 1, 1, 26, 5, 57, 5382.07, 5370.83, -0.13); mob("", 645, 1, 1, 26, 5, 57, 5382.07, 5370.83, -0.13); mob("", 645, 1, 1, 26, 5, 57, 5295.42, 5369.56, 0.03); mob("", 645, 1, 1, 26, 5, 57, 5295.09, 5339.48, 0.02); mob("", 646, 1, 1, 29, 5, 57, 5284.94, 5289.21, 0.05); mob("", 648, 1, 1, 29, 5, 57, 5284.94, 5289.21, 0.05); mob("", 643, 1, 1, 32, 5, 57, 5561.15, 5280.87, -0.1); mob("", 644, 1, 1, 32, 5, 57, 5561.15, 5280.87, -0.1); mob("", 643, 1, 1, 26, 5, 57, 5709.46, 5290.25, 0); mob("", 644, 1, 1, 26, 5, 57, 5709.46, 5290.25, 0); mob("", 643, 1, 1, 27, 5, 57, 5758.75, 5288.55, 1.25); mob("", 644, 1, 1, 27, 5, 57, 5758.75, 5288.55, 1.25); mob("", 639, 1, 1, 34, 5, 57, 5744.38, 5302.92, 0); mob("", 640, 1, 1, 34, 5, 57, 5744.38, 5302.92, 0); mob("", 643, 1, 1, 25, 5, 57, 5806.4, 5302.94, 0); mob("", 644, 1, 1, 25, 5, 57, 5806.4, 5302.94, 0); mob("", 647, 1, 1, 25, 5, 57, 5084.26, 5148.2, 0); mob("", 647, 1, 1, 25, 5, 57, 5082.97, 5203.56, 0); mob("", 659, 0, 1, 50, 3, 57, 5071.86, 5186.03, 0); mob("", 659, 0, 1, 50, 3, 57, 5072.76, 5163.89, 0); mob("", 648, 1, 1, 29, 5, 57, 5270.41, 5260.31, 2); mob("", 649, 1, 1, 29, 5, 57, 5270.41, 5260.31, 2); mob("", 642, 1, 1, 28, 5, 57, 5251.57, 5264.37, 1.03); mob("", 648, 1, 1, 28, 5, 57, 5251.57, 5264.37, 1.03); mob("", 645, 1, 1, 28, 5, 57, 5258.47, 5189.68, 0); mob("", 646, 1, 1, 28, 5, 57, 5258.47, 5189.68, 0); mob("", 648, 1, 1, 30, 5, 57, 5270.08, 5168.59, 0); mob("", 649, 1, 1, 30, 5, 57, 5270.08, 5168.59, 0); mob("", 646, 1, 1, 25, 5, 57, 5277.79, 5155.75, 0); mob("", 646, 1, 1, 25, 5, 57, 5262.09, 5155.36, 0); mob("", 647, 1, 1, 25, 5, 57, 5136.24, 5230.18, 0); mob("", 659, 1, 1, 50, 3, 57, 5154.98, 5174.88, -1); mob("", 659, 0, 1, 50, 3, 57, 5145.18, 5154.82, -1); mob("", 656, 1, 1, 3600, 1, 57, 5135.05, 5175.1, -0.99); mob("", 659, 0, 1, 50, 3, 57, 5135.15, 5154.77, -0.99); mob("", 659, 0, 1, 50, 3, 57, 5144.97, 5195.12, -0.99); mob("", 659, 0, 1, 50, 3, 57, 5134.99, 5194.91, -0.99); mob("", 642, 1, 1, 28, 5, 57, 5287.46, 5264.05, 1.85); mob("", 648, 1, 1, 28, 5, 57, 5287.46, 5264.05, 1.85); mob("", 645, 1, 1, 28, 5, 57, 5280.31, 5189, 0); mob("", 646, 1, 1, 28, 5, 57, 5280.31, 5189, 0); mob("", 645, 1, 1, 28, 5, 57, 5332.99, 5161.07, 0); mob("", 646, 1, 1, 28, 5, 57, 5332.99, 5161.07, 0); mob("", 645, 1, 1, 28, 5, 57, 5333.98, 5190.79, 0); mob("", 646, 1, 1, 28, 5, 57, 5333.98, 5190.79, 0); mob("", 648, 1, 1, 29, 5, 57, 5359.48, 5176.22, 0); mob("", 649, 1, 1, 29, 5, 57, 5359.48, 5176.22, 0); mob("", 650, 1, 1, 29, 5, 57, 5359.48, 5176.22, 0); mob("", 645, 1, 1, 28, 5, 57, 5374.48, 5151.02, 0); mob("", 646, 1, 1, 28, 5, 57, 5374.48, 5151.02, 0); mob("", 646, 1, 1, 28, 5, 57, 5353.3, 5186.33, 0); mob("", 642, 1, 1, 28, 5, 57, 5371.14, 5186.58, 0); mob("", 638, 1, 1, 27, 5, 57, 5532.13, 5259.6, -0.99); mob("", 643, 1, 1, 27, 5, 57, 5532.13, 5259.6, -0.99); mob("", 643, 1, 1, 26, 5, 57, 5517.83, 5278.15, -0.51); mob("", 644, 1, 1, 26, 5, 57, 5517.83, 5278.15, -0.51); mob("", 643, 1, 1, 32, 5, 57, 5558.84, 5244.38, -0.05); mob("", 644, 1, 1, 32, 5, 57, 5558.84, 5244.38, -0.05); mob("", 640, 1, 1, 30, 5, 57, 5540.04, 5274.51, -1); mob("", 641, 1, 1, 30, 5, 57, 5540.04, 5274.51, -1); mob("", 643, 1, 1, 32, 5, 57, 5520.65, 5243.57, -0.06); mob("", 644, 1, 1, 32, 5, 57, 5520.65, 5243.57, -0.06); mob("", 643, 1, 1, 32, 5, 57, 5630.78, 5250.04, 0); mob("", 644, 1, 1, 32, 5, 57, 5630.78, 5250.04, 0); mob("", 643, 1, 1, 32, 5, 57, 5613.98, 5263.09, 0); mob("", 644, 1, 1, 32, 5, 57, 5613.98, 5263.09, 0); mob("", 639, 1, 1, 34, 5, 57, 5612.1, 5198.32, 0.04); mob("", 640, 1, 1, 34, 5, 57, 5612.1, 5198.32, 0.04); mob("", 639, 1, 1, 34, 5, 57, 5646.28, 5198.14, 0.02); mob("", 640, 1, 1, 34, 5, 57, 5646.28, 5198.14, 0.02); mob("", 640, 1, 1, 36, 5, 57, 5630.16, 5169.97, 1); mob("", 641, 1, 1, 36, 5, 57, 5630.16, 5169.97, 1); mob("", 639, 1, 1, 34, 5, 57, 5610.86, 5155.16, 0.25); mob("", 640, 1, 1, 34, 5, 57, 5610.86, 5155.16, 0.25); mob("", 639, 1, 1, 34, 5, 57, 5628.73, 5156.41, 0.99); mob("", 640, 1, 1, 34, 5, 57, 5628.73, 5156.41, 0.99); mob("", 639, 1, 1, 34, 5, 57, 5641.19, 5172.61, 0.99); mob("", 640, 1, 1, 34, 5, 57, 5641.19, 5172.61, 0.99); mob("", 643, 1, 1, 34, 5, 57, 5710.21, 5241.59, 0); mob("", 644, 1, 1, 34, 5, 57, 5710.21, 5241.59, 0); mob("", 641, 1, 1, 40, 5, 57, 5750.49, 5264.88, 1.99); mob("", 642, 1, 1, 40, 5, 57, 5750.49, 5264.88, 1.99); mob("", 646, 1, 1, 40, 5, 57, 5750.49, 5264.88, 1.99); mob("", 643, 1, 1, 25, 5, 57, 5737.06, 5276.58, 1); mob("", 644, 1, 1, 25, 5, 57, 5737.06, 5276.58, 1); mob("", 643, 1, 1, 25, 5, 57, 5738.75, 5254.76, 1); mob("", 644, 1, 1, 25, 5, 57, 5738.75, 5254.76, 1); mob("", 643, 1, 1, 27, 5, 57, 5758.7, 5241.67, 1.29); mob("", 644, 1, 1, 27, 5, 57, 5758.7, 5241.67, 1.29); mob("", 640, 1, 1, 34, 5, 57, 5767.53, 5276.93, 1.99); mob("", 641, 1, 1, 34, 5, 57, 5767.53, 5276.93, 1.99); mob("", 642, 1, 1, 34, 5, 57, 5767.53, 5276.93, 1.99); mob("", 640, 1, 1, 34, 5, 57, 5768.45, 5254.01, 2); mob("", 641, 1, 1, 34, 5, 57, 5768.45, 5254.01, 2); mob("", 642, 1, 1, 34, 5, 57, 5768.45, 5254.01, 2); mob("", 639, 1, 1, 34, 5, 57, 5794.78, 5213.65, 0); mob("", 640, 1, 1, 34, 5, 57, 5794.78, 5213.65, 0); mob("", 651, 1, 1, 120, 5, 57, 5269.51, 5079.2, -1.99); mob("", 646, 1, 1, 40, 5, 57, 5251.87, 5106.46, -0.23); mob("", 649, 1, 1, 40, 5, 57, 5279.07, 5064.68, -0.62); mob("", 650, 1, 1, 40, 5, 57, 5279.07, 5064.68, -0.62); mob("", 649, 1, 1, 40, 5, 57, 5259.81, 5065.1, -0.99); mob("", 650, 1, 1, 40, 5, 57, 5259.81, 5065.1, -0.99); mob("", 642, 1, 1, 40, 5, 57, 5269.34, 5099.85, -1.73); mob("", 647, 1, 1, 40, 5, 57, 5269.34, 5099.85, -1.73); mob("", 647, 1, 1, 40, 5, 57, 5270.51, 5016.21, 0); mob("", 647, 1, 1, 35, 5, 57, 5248.96, 4996.88, 0); mob("", 647, 1, 1, 25, 5, 57, 5135.8, 5119.83, 0); mob("", 646, 1, 1, 40, 5, 57, 5285.78, 5106.44, -0.02); mob("", 646, 1, 1, 30, 5, 57, 5376.33, 5017.93, 0.02); mob("", 647, 1, 1, 30, 5, 57, 5376.33, 5017.93, 0.02); mob("", 646, 1, 1, 30, 5, 57, 5343.49, 5017.01, 0.14); mob("", 647, 1, 1, 30, 5, 57, 5343.49, 5017.01, 0.14); mob("", 651, 1, 1, 120, 5, 57, 5359.27, 4990.11, 1); mob("", 652, 1, 1, 120, 5, 57, 5359.27, 4990.11, 1); mob("", 647, 1, 1, 30, 5, 57, 5378.39, 4977.96, 0.37); mob("", 647, 1, 1, 30, 5, 57, 5340.54, 4976.59, 0.19); mob("", 650, 1, 1, 30, 5, 57, 5347.99, 5002.06, 0.99); mob("", 650, 1, 1, 30, 5, 57, 5371.5, 5003.13, 0.99); mob("", 647, 1, 1, 35, 5, 57, 5286.48, 4996.55, 0); mob("", 651, 1, 1, 120, 5, 57, 5537.67, 4995.12, -1); mob("", 646, 1, 1, 30, 5, 57, 5561.26, 5011.6, -0.07); mob("", 647, 1, 1, 30, 5, 57, 5561.26, 5011.6, -0.07); mob("", 646, 1, 1, 30, 5, 57, 5562.16, 4977.72, -0.03); mob("", 647, 1, 1, 30, 5, 57, 5562.16, 4977.72, -0.03); mob("", 646, 1, 1, 25, 5, 57, 5519.49, 4978.28, -0.04); mob("", 647, 1, 1, 25, 5, 57, 5519.49, 4978.28, -0.04); mob("", 642, 1, 1, 25, 5, 57, 5541.81, 4983.41, -1); mob("", 659, 0, 1, 55, 3, 57, 5754.84, 4985.22, 2); mob("", 647, 1, 1, 50, 5, 57, 5743.77, 5050.76, 0); mob("", 647, 1, 1, 50, 5, 57, 5706.16, 4978.15, 0); mob("", 647, 1, 1, 50, 5, 57, 5705.74, 5012.36, 0); mob("", 659, 0, 1, 55, 3, 57, 5754.75, 5005.18, 1.99); mob("", 656, 1, 1, 3000, 5, 57, 5766.66, 4995.09, 1.99); mob("", 647, 1, 1, 50, 5, 57, 5785.01, 5051.39, 0); mob("", 659, 0, 1, 55, 3, 57, 5775.16, 4995, 2);
require "luaClass.init" _ENV=namespace "battle" using_namespace "luaClass" class ("Item"){ public{ FUNCTION.Item(function(self,name,number) self.name=name self.number=number end); FUNCTION.showInfo(function(self) print(self.name,self.number) end); }; public{ MEMBER.name(); MEMBER.number(); }; }
-- local reference to the translator local S = factory.S local dig_limit = minetest.settings:get("factory_minerDigLimit") or 512 local forceload_limit = 1 factory.miner = {} function factory.miner.afterdig(pos) for i = 1, dig_limit do local node = minetest.get_node({x = pos.x, y = pos.y-i, z = pos.z}) if node.name == "ignore" then minetest.get_voxel_manip():read_from_map({x = pos.x, y = pos.y-i, z = pos.z}, {x = pos.x, y = pos.y-i-2, z = pos.z}) node = minetest.get_node({x = pos.x, y = pos.y-i, z = pos.z}) end if node.name == "factory:miner_drillbit" then minetest.set_node({x = pos.x, y = pos.y-i, z = pos.z}, {name="air"}) end end end minetest.register_node("factory:miner_on", { description = S("Industrial Miner"), tiles = {{name="factory_fan.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=0.2}}, "factory_belt_bottom.png", "factory_belt_bottom_clean.png", "factory_belt_bottom_clean.png", "factory_belt_bottom_clean.png", {name="factory_miner.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=0.7}}}, groups = {cracky = 2, mesecon_effector_off = 1}, paramtype2 = "facedir", is_ground_content = true, legacy_facedir_simple = true, mesecons = {effector = { action_on = function(pos, node) local meta = minetest.get_meta(pos) meta:set_string("infotext",S("@1 was switched off",S("Industrial Miner"))) minetest.swap_node(pos, {name = "factory:miner_off", param2 = node.param2}) end }}, after_place_node = function(pos, placer) local meta = minetest:get_meta(pos) if placer:is_player() then meta:set_string("owner", placer:get_player_name()) meta:set_string("infotext",S("Industrial Miner")) meta:set_int("last_depth", 1) end end, after_dig_node = factory.miner.afterdig, }) minetest.register_node("factory:miner_off", { description = S("Industrial Miner"), tiles = {"factory_fan_off.png", "factory_belt_bottom.png", "factory_belt_bottom_clean.png", "factory_belt_bottom_clean.png", "factory_belt_bottom_clean.png", "factory_miner_off.png"}, groups = {cracky = 2, not_in_creative_inventory = 1, mesecon_effector_on = 1}, paramtype2 = "facedir", is_ground_content = true, legacy_facedir_simple = true, drop="factory:miner_on", mesecons = {effector = { action_off = function(pos, node) local meta = minetest.get_meta(pos) meta:set_string("infotext",S("Industrial Miner")) meta:set_int("last_depth", 1) minetest.swap_node(pos, {name = "factory:miner_on", param2 = node.param2}) end }}, on_rightclick = function(pos, node) local meta = minetest.get_meta(pos) meta:set_string("infotext",S("Industrial Miner")) meta:set_int("last_depth", 1) meta:set_int("forceload_tries",0) minetest.swap_node(pos, {name = "factory:miner_on", param2 = node.param2}) end, after_place_node = function(pos) -- not supposed to be placed. switch to factory:miner_on local node = minetest.get_node(pos) minetest.swap_node(pos, {name = "factory:miner_on", param2 = node.param2}) end, after_dig_node = factory.miner.afterdig, }) minetest.register_node("factory:miner_drillbit", { tiles = {"factory_machine_steel_dark.png"}, diggable = false, groups = {not_in_creative_inventory = 1}, drawtype = "nodebox", paramtype = "light", drop = nil, node_box = { type = "fixed", fixed = { {-0.125, -0.5, -0.125, 0.125, 0.5, 0.125}, } } }) minetest.register_abm({ nodenames = {"factory:miner_on"}, neighbors = nil, interval = 4.8, chance = 1, action = function(pos, node) local meta = minetest.get_meta(pos) if meta:get_int("last_depth") < 1 then meta:set_int("last_depth", 1) end for i = meta:get_int("last_depth"), math.floor(dig_limit/2) do local dnode = minetest.get_node({x = pos.x, y = pos.y-i, z = pos.z}) local registered = minetest.registered_nodes[dnode.name] if dnode.name == "ignore" then minetest.get_voxel_manip():read_from_map({x = pos.x, y = pos.y-i, z = pos.z}, {x = pos.x, y = pos.y-i-2, z = pos.z}) --minetest.forceload_block({x = pos.x, y = pos.y-i, z = pos.z}) --minetest.forceload_block({x = pos.x, y = pos.y-i-2, z = pos.z}) dnode = minetest.get_node({x = pos.x, y = pos.y-i, z = pos.z}) if dnode.name == "ignore" then local tries = meta:get_int("forceload_tries") print(("forceload failed %i times"):format(tries)) if tries < forceload_limit then meta:set_string("infotext",S("@1 forceloading block",S("Industrial Miner"))) meta:set_int("forceload_tries",tries + 1) return end else registered = minetest.registered_nodes[dnode.name] end elseif meta:get_int("forceload_tries") > 0 then meta:set_int("forceload_tries",0) end if dnode.name ~= "factory:miner_drillbit" and ((not registered.liquidtype) or registered.liquidtype == "none") then meta:set_int("last_depth",i) if meta:get_string("owner") ~= nil and minetest.is_protected({x = pos.x, y = pos.y-i, z = pos.z}, meta:get_string("owner")) then meta:set_string("infotext",S("@1 hit protected block",S("Industrial Miner"))) minetest.swap_node(pos, {name = "factory:miner_off", param2 = node.param2}) return end if string.find(dnode.name, "lava") then meta:set_string("infotext",S("@1 hit lava",S("Industrial Miner"))) minetest.swap_node(pos, {name = "factory:miner_off", param2 = node.param2}) return end if dnode.name ~= "air" and registered.diggable ~= nil and not registered.diggable then meta:set_string("infotext",S("@1 hit undiggable block",S("Industrial Miner"))) minetest.swap_node(pos, {name = "factory:miner_off", param2 = node.param2}) return end minetest.set_node({x = pos.x, y = pos.y-i, z = pos.z}, {name="factory:miner_drillbit"}) if dnode.name == "air" then return end local itemstacks = minetest.get_node_drops(dnode.name) for _, itemname in ipairs(itemstacks) do minetest.add_item({x = pos.x, y = pos.y+1, z = pos.z}, itemname) end return end end meta:set_string("infotext",S("@1 has reached the maximum length",S("Industrial Miner"))) minetest.swap_node(pos, {name = "factory:miner_off", param2 = node.param2}) end, }) -- minetest.register_node("factory:miner_upgraded_on", { description = S("Upgraded Miner"), tiles = {{name="factory_fan.png^factory_gold_ring_x2.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=0.2}}, "factory_belt_bottom.png^factory_gold_ring.png", "factory_belt_bottom_clean.png^factory_gold_ring.png", "factory_belt_bottom_clean.png^factory_gold_ring.png", "factory_belt_bottom_clean.png^factory_gold_ring.png", {name="factory_miner_upgraded.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=0.7}}}, groups = {cracky = 2, mesecon_effector_off = 1}, paramtype2 = "facedir", is_ground_content = true, legacy_facedir_simple = true, mesecons = {effector = { action_on = function(pos, node) local meta = minetest.get_meta(pos) meta:set_string("infotext",S("@1 was switched off",S("Upgraded Miner"))) minetest.swap_node(pos, {name = "factory:miner_upgraded_off", param2 = node.param2}) end }}, after_place_node = function(pos, placer) local meta = minetest:get_meta(pos) if placer:is_player() then meta:set_string("owner", placer:get_player_name()) meta:set_string("infotext",S("Upgraded Miner")) meta:set_int("last_depth", 1) end end, after_dig_node = factory.miner.afterdig, }) minetest.register_node("factory:miner_upgraded_off", { description = "Upgaded Miner", tiles = {"factory_fan_off.png^factory_gold_ring.png", "factory_belt_bottom.png^factory_gold_ring.png", "factory_belt_bottom_clean.png^factory_gold_ring.png", "factory_belt_bottom_clean.png^factory_gold_ring.png", "factory_belt_bottom_clean.png^factory_gold_ring.png", "factory_miner_upgraded_off.png"}, groups = {cracky = 2, not_in_creative_inventory = 1, mesecon_effector_on = 1}, paramtype2 = "facedir", is_ground_content = true, legacy_facedir_simple = true, drop="factory:miner_upgraded_on", mesecons = {effector = { action_off = function(pos, node) local meta = minetest.get_meta(pos) meta:set_string("infotext",S("Upgraded Miner")) meta:set_int("last_depth", 1) minetest.swap_node(pos, {name = "factory:miner_upgraded_on", param2 = node.param2}) end }}, on_rightclick = function(pos, node) local meta = minetest.get_meta(pos) meta:set_string("infotext",S("Upgraded Miner")) meta:set_int("last_depth", 1) meta:set_int("forceload_tries",0) minetest.swap_node(pos, {name = "factory:miner_upgraded_on", param2 = node.param2}) end, after_place_node = function(pos) -- not supposed to be placed. switch to factory:miner_on local node = minetest.get_node(pos) minetest.swap_node(pos, {name = "factory:miner_upgraded_on", param2 = node.param2}) end, after_dig_node = factory.miner.afterdig, }) minetest.register_abm({ nodenames = {"factory:miner_upgraded_on"}, neighbors = nil, interval = 1.8, chance = 1, action = function(pos, node) local meta = minetest.get_meta(pos) if meta:get_int("last_depth") < 1 then meta:set_int("last_depth", 1) end for i = meta:get_int("last_depth"), dig_limit do local dnode = minetest.get_node({x = pos.x, y = pos.y-i, z = pos.z}) local registered = minetest.registered_nodes[dnode.name] if dnode.name == "ignore" then minetest.get_voxel_manip():read_from_map({x = pos.x, y = pos.y-i, z = pos.z}, {x = pos.x, y = pos.y-i-2, z = pos.z}) --minetest.forceload_block({x = pos.x, y = pos.y-i-2, z = pos.z}) dnode = minetest.get_node({x = pos.x, y = pos.y-i, z = pos.z}) if dnode.name == "ignore" then local tries = meta:get_int("forceload_tries") if tries < forceload_limit then meta:set_int("forceload_tries",tries + 1) meta:set_string("infotext",S("@1 forceloading block",S("Upgraded Miner"))) return end else registered = minetest.registered_nodes[dnode.name] end elseif meta:get_int("forceload_tries") > 0 then meta:set_int("forceload_tries",0) end if dnode.name ~= "factory:miner_drillbit" and ((not registered.liquidtype) or registered.liquidtype == "none") then meta:set_int("last_depth", i) if meta:get_string("owner") ~= nil and minetest.is_protected({x = pos.x, y = pos.y-i, z = pos.z}, meta:get_string("owner")) then meta:set_string("infotext",S("@1 hit protected block",S("Upgraded Miner"))) minetest.swap_node(pos, {name = "factory:miner_upgraded_off", param2 = node.param2}) return end if string.find(dnode.name, "lava") then meta:set_string("infotext",S("@1 hit lava",S("Upgraded Miner"))) minetest.swap_node(pos, {name = "factory:miner_upgraded_off", param2 = node.param2}) return end if dnode.name ~= "air" and registered.diggable == false then print("undiggable " .. dnode.name) meta:set_string("infotext",S("@1 hit undiggable block",S("Upgraded Miner"))) minetest.swap_node(pos, {name = "factory:miner_upgraded_off", param2 = node.param2}) return end minetest.set_node({x = pos.x, y = pos.y-i, z = pos.z}, {name="factory:miner_drillbit"}) if dnode.name == "air" then return end local itemstacks = minetest.get_node_drops(dnode.name) for _, itemname in ipairs(itemstacks) do minetest.add_item({x = pos.x, y = pos.y+1, z = pos.z}, itemname) end return end end minetest.swap_node(pos, {name = "factory:miner_upgraded_off", param2 = node.param2}) meta:set_string("infotext",S("@1 has reached the maximum length",S("Upgraded Miner"))) end, })
local Et = require "etlua" local Petrinet = require "petrinet" local Mt = {} local Marking = setmetatable ({}, Mt) Marking.__index = Marking function Mt.__call (_, t) if getmetatable (t) == Petrinet then local petrinet = t local result = setmetatable ({}, Marking) for _, place in petrinet:places () do result [place] = place.marking end return result else return setmetatable (t, Marking) end end function Marking.__eq (lhs, rhs) assert (getmetatable (lhs) == Marking) assert (getmetatable (rhs) == Marking) for place, marking in pairs (lhs) do if rhs [place] ~= marking then return false end end for place, marking in pairs (rhs) do if lhs [place] ~= marking then return false end end return true end function Marking.__le (lhs, rhs) for place, marking in pairs (lhs) do if (rhs [place] or 0) < marking then return false end end return true end function Marking.__lt (lhs, rhs) for place, marking in pairs (lhs) do if (rhs [place] or 0) < marking then return false end end return lhs ~= rhs end function Marking.__add (lhs, rhs) local result = setmetatable ({}, Marking) for place, marking in pairs (lhs) do result [place] = marking end for place, marking in pairs (rhs) do result [place] = (result [place] or 0) + marking end return result end function Marking.__sub (lhs, rhs) local result = setmetatable ({}, Marking) for place, marking in pairs (lhs) do result [place] = marking end for place, marking in pairs (rhs) do result [place] = (result [place] or 0) - marking end return result end function Marking.__tostring (marking) local places = {} for place in pairs (marking) do places [#places+1] = place end table.sort (places, function (l, r) return l.name < r.name end) return Et.render ([[<% for _, place in ipairs (places) do %> <%- place.name %> = <%- marking [place] %> <% end %>]], { places = places, marking = marking, }) end return Marking
local function get_item_by_char(tbl, val) -- input tbl: -- { -- { "a", 0 }, -- { "b", 3, 4, 6 }, -- } -- input val: -- "b" -- -- result: -- nil or { "b", 3, 4, 6 } for _, v in ipairs(tbl) do if v[1] == val then return v end end return nil end -- calculate character index in a line local function generate_ftFT_indexs(key, cur_col, line_content) -- result: -- { -- -- first element is the character, second to last element is the 1st, 2nd element occur index -- { "a", 0 }, -- { "b", 3, 4, 6 }, -- { "c", 5, 7 }, -- } if (not string.upper(key) == "F") and (not string.upper(key) == "T") then return {} end local max_iter = cur_col local offset = -1 if key == "f" or key == "t" then max_iter = #line_content - cur_col offset = 1 end local result = {} for i = 1, max_iter do local index = cur_col + i * offset local char = line_content:sub(index, index) local item = get_item_by_char(result, char) if item == nil then table.insert(result, {char, index - 1}) elseif #item < 11 then -- allow record 2nd..9th duplicate character table.insert(item, index - 1) end end return result end local M = {} function M.setup() local key_bind_opt = { noremap = true, silent = true } local total_keys = vim.g.ftFT_keymap_keys or { "f", "t", "F", "T" } if vim.g.ftFT_keymap_skip_n == nil then for _, key in ipairs(total_keys) do vim.api.nvim_set_keymap("n", key, "<cmd>lua require('ftFT').execute('"..key.."')<CR>", key_bind_opt) end end if vim.g.ftFT_keymap_skip_v == nil then for _, key in ipairs(total_keys) do vim.api.nvim_set_keymap("v", key, "<cmd>lua require('ftFT').execute('"..key.."')<CR>", key_bind_opt) end end if vim.g.ftFT_keymap_skip_ydc == nil then for _, key in ipairs(total_keys) do vim.api.nvim_set_keymap("n", "y"..key, "<cmd>lua require('ftFT').execute('y"..key.."')<CR>", key_bind_opt) vim.api.nvim_set_keymap("n", "d"..key, "<cmd>lua require('ftFT').execute('d"..key.."')<CR>", key_bind_opt) vim.api.nvim_set_keymap("n", "c"..key, "<cmd>lua require('ftFT').execute('c"..key.."')<CR>", key_bind_opt) end end end function M.execute(key) local curpos = vim.fn.getcurpos() local cur_row, cur_col = curpos[2] - 1, curpos[3] local line_content = vim.api.nvim_buf_get_lines(0, cur_row, cur_row + 1, false)[1] local hl_group = vim.g.ftFT_hl_group or 'Search' local sight_hl_group = vim.g.ftFT_sight_hl_group or 'Search' local cur_ns = vim.api.nvim_create_namespace('ftFT_ns') local hl_amount = 0 local mode_key = key:sub(#key, #key) for _, item in pairs(generate_ftFT_indexs(mode_key, cur_col, line_content)) do -- item: { "a", 0, 3, 5 } hl_amount = hl_amount + 1 if vim.v.count1 < #item then vim.api.nvim_buf_set_extmark(0, cur_ns, cur_row, item[1 + vim.v.count1], { virt_text = {{item[1], hl_group}}, virt_text_pos = 'overlay', hl_mode = 'combine', priority = 65500 }) end -- draw sight line if (not vim.g.ftFT_sight_enable == nil) and vim.v.count1 == 1 then local bg_str = " " vim.api.nvim_buf_set_extmark(0, cur_ns, cur_row + 1, 0, { virt_text = {{bg_str, sight_hl_group}}, virt_text_win_col = 0, hl_mode = 'combine', priority = 65500 }) local rep = 1 for i = 3, #item do vim.api.nvim_buf_set_extmark(0, cur_ns, cur_row + 1, 0, { virt_text = {{tostring(rep), sight_hl_group}}, virt_text_win_col = item[i], hl_mode = 'combine', priority = 65500 }) rep = rep + 1 end end end if hl_amount > 0 then vim.cmd('redraw') end local ok, key2 = pcall(vim.fn.getchar) if ok then if type(key2) == 'number' then key2 = vim.fn.nr2char(key2) end vim.api.nvim_feedkeys(tostring(vim.v.count1)..key..key2, 'ni', false) end vim.api.nvim_buf_clear_namespace(0, cur_ns, 0, -1) end return M
--[[-------------------------------------------------------------------]]--[[ Copyright wiltOS Technologies LLC, 2020 Contact: www.wiltostech.com ----------------------------------------]]-- local MYSQL_DATABASE_PROVISION = 1 wOS = wOS or {} wOS.ALCS = wOS.ALCS or {} wOS.ALCS.Storage = wOS.ALCS.Storage or {} wOS.ALCS.Storage.DataStore = wOS.ALCS.Storage.DataStore or {} require('mysqloo') local DATA = mysqloo.CreateDatabase( wOS.ALCS.Config.Crafting.CraftingDatabase.Host, wOS.ALCS.Config.Crafting.CraftingDatabase.Username, wOS.ALCS.Config.Crafting.CraftingDatabase.Password, wOS.ALCS.Config.Crafting.CraftingDatabase.Database, wOS.ALCS.Config.Crafting.CraftingDatabase.Port, wOS.ALCS.Config.Crafting.CraftingDatabase.Socket ) if not DATA then print( "[wOS-ALCS-Storage] MySQL Database connection failed." ) else print( "[wOS-ALCS-Storage] Storage Database MySQL connection was successful!" ) end local MYSQL_COLUMNS_META = "( SteamID BIGINT(64), CharID BIGINT(64) DEFAULT 1, MaxSlots BIGINT(64) )" local MYSQL_COLUMNS_BANK = "( SteamID BIGINT(64), CharID BIGINT(64) DEFAULT 1, Slot BIGINT(64), Item VARCHAR(255) )" function wOS.ALCS.Storage.DataStore:GetItemID( ITEM ) if not ITEM then return end return wOS.ALCS.Config.Crafting.CraftingDatabase.ItemToID[ ITEM ] end function wOS.ALCS.Storage.DataStore:GetItemName( ID ) if not ID then return end ID = tonumber( ID ) return wOS.ALCS.Config.Crafting.CraftingDatabase.IDToItem[ ID ] or "Empty" end function wOS.ALCS.Storage.DataStore:UpdateTables( vdat ) vdat = vdat or {} local version = vdat.DBVersion or 0 if version >= MYSQL_DATABASE_PROVISION then return end --This is about to be the most cancerous thing ever, but it will be moved to a different file eventually. if version < 1 then DATA:RunQuery( "CREATE TABLE IF NOT EXISTS crafting_storage_bank " .. MYSQL_COLUMNS_BANK ) DATA:RunQuery( "CREATE TABLE IF NOT EXISTS crafting_storage_meta " .. MYSQL_COLUMNS_META ) DATA:RunQuery( "ALTER TABLE crafting_storage_meta ADD UNIQUE INDEX wos_bankmeta_UX1 (SteamID,CharID)" ) DATA:RunQuery( "ALTER TABLE crafting_storage_bank ADD UNIQUE INDEX wos_craftbank_UX1 (SteamID,CharID,Slot)" ) version = version + 1 end DATA:RunQuery( "INSERT INTO wos_alcsstorage_schema ( ID, DBVersion ) VALUES ( '1', '" .. version .. "' ) ON DUPLICATE KEY UPDATE DBVersion='" .. version .. "'" ) end function wOS.ALCS.Storage.DataStore:Initialize() local VERSION_CHECK = DATA:CreateTransaction() VERSION_CHECK:Query( "SHOW TABLES LIKE 'wos_alcsstorage_schema'" ) VERSION_CHECK:Start( function( transaction, status, err ) if (!status) then print("[MYSQL ERROR] " .. err) end local queries = transaction:getQueries() local rows = queries[1]:getData() local UCHECK = DATA:CreateTransaction() if table.Count( rows ) < 1 then UCHECK:Query( "CREATE TABLE IF NOT EXISTS wos_alcsstorage_schema ( `ID` bigint unsigned NOT NULL AUTO_INCREMENT, DBVersion bigint unsigned, PRIMARY KEY (`ID`) )" ) UCHECK:Start( function(transaction, status, err) if (!status) then print("[MYSQL ERROR] " .. err) end end ) wOS.ALCS.Storage.DataStore:UpdateTables() else UCHECK:Query( "SELECT * FROM wos_alcsstorage_schema" ) UCHECK:Start( function( transaction, status, err ) if (!status) then print("[MYSQL ERROR] " .. err) end local queries = transaction:getQueries() local dat = queries[1]:getData() wOS.ALCS.Storage.DataStore:UpdateTables( dat[1] ) end ) end end ) end function wOS.ALCS.Storage.DataStore:LoadData( ply ) if ply:IsBot() then return end local steam64 = ply:SteamID64() local charid = wOS.ALCS:GetCharacterID( ply ) or 1 if charid < 1 then return end ply.WOS_SaberStorage = { MaxSlots = wOS.ALCS.Config.Storage.StartingSpace, Backpack = {}, } local TRANS = DATA:CreateTransaction() TRANS:Query( "SELECT * FROM crafting_storage_meta WHERE SteamID = '" .. steam64 .. "' AND CharID = '" .. charid .. "'" ) TRANS:Query( "SELECT * FROM crafting_storage_bank WHERE SteamID = '" .. steam64 .. "' AND CharID = '" .. charid .. "'" ) TRANS:Start(function(transaction, status, err) if (!status) then print("[MYSQL ERROR] " .. err) end local creation_needed = false local queries = transaction:getQueries() local mdata = queries[1]:getData() if table.Count( mdata ) < 1 then DATA:RunQuery( "INSERT INTO crafting_storage_meta ( SteamID, CharID, MaxSlots ) VALUES ( '" .. steam64 .. "','" .. charid .. "','" .. wOS.ALCS.Config.Storage.StartingSpace .. "')" ) else mdata = mdata[1] ply.WOS_SaberStorage.MaxSlots = tonumber( mdata.MaxSlots ) end local bdata = queries[2]:getData() if table.Count( bdata ) > 0 then for _, dat in ipairs( bdata ) do local detail = string.Explode( ",", dat.Item ) local item = detail[1] or "0" local amount = detail[2] or "1" local name = self:GetItemName( item ) if not name then name = "Empty" end if name == "Empty" then continue end ply.WOS_SaberStorage.Backpack[ dat.Slot ] = { Name = name, Amount = tonumber( amount ) } end end wOS.ALCS.Storage:TransmitStorage( ply ) end ) end function wOS.ALCS.Storage.DataStore:SaveMetaData( ply ) if ply:IsBot() then return end local steam64 = ply:SteamID64() if not ply.WOS_SaberStorage then return end local charid = wOS.ALCS:GetCharacterID( ply ) or 1 if charid < 1 then return end DATA:RunQuery( [[UPDATE crafting_storage_meta SET MaxSlots = ']] .. ply.WOS_SaberStorage.MaxSlots .. [[' WHERE SteamID = ]] .. steam64 .. [[ AND CharID = ']] .. charid .. [[']] ) end function wOS.ALCS.Storage.DataStore:SaveSlotData( ply, slot ) if ply:IsBot() then return end local steam64 = ply:SteamID64() if not ply.WOS_SaberStorage then return end if not slot or slot < 1 then return end local charid = wOS.ALCS:GetCharacterID( ply ) or 1 if charid < 1 then return end local TRANS = DATA:CreateTransaction() local removal = false local dat = ply.WOS_SaberStorage.Backpack[ slot ] if not dat or dat.Name == "Empty" then removal = true end if not removal then local item = dat.Name local id = wOS.ALCS.Storage.DataStore:GetItemID( item ) if id then local iteme = DATA:escape( id .. "," .. dat.Amount ) DATA:RunQuery( [[ INSERT INTO crafting_storage_bank (SteamID, Slot, CharID, Item) VALUES( ']] .. steam64 .. [[', ']] .. slot .. [[', ]] .. charid .. [[, ']] .. iteme .. [[' ) ON DUPLICATE KEY UPDATE Item=']] .. iteme .. [[']] ) return end removal = true end if removal then DATA:RunQuery( [[ DELETE FROM crafting_storage_bank WHERE Slot = ']] .. slot .. [[' AND SteamID = ']] .. steam64 .. [[' AND CharID = ]] .. charid ) end end function wOS.ALCS.Storage.DataStore:DeleteData( ply, charid ) if ply:IsBot() then return end local steam64 = ply:SteamID64() if charid < 1 then return end DATA:RunQuery( "DELETE FROM crafting_storage_bank WHERE SteamID = '" .. steam64 .. "' AND CharID = " .. charid ) DATA:RunQuery( "DELETE FROM crafting_storage_meta WHERE SteamID = '" .. steam64 .. "' AND CharID = " .. charid ) end hook.Add("wOS.ALCS.PlayerLoadData", "wOS.ALCS.Storage.LoadDataForChar", function( ply ) wOS.ALCS.Storage.DataStore:LoadData( ply ) end ) hook.Add("wOS.ALCS.PlayerDeleteData", "wOS.ALCS.Storage.DeleteDataForChar", function( ply, charid ) wOS.ALCS.Storage.DataStore:DeleteData( ply, charid ) end )
-- -- Copyright (c) 2022 outdead. -- Use of this source code is governed by the MIT license -- that can be found in the LICENSE file. -- -- LastDay mod created for Last Day server. -- LDTraderMenu = { Currency = "Base.CreditCard", Items = { Drinks = {}, Smuggling = {}, VehicleMaintenance = {}, } } LDTraderMenu.RegisterLines = function(player, context, worldobjects, buyMenu) LDTraderMenu.init(); LDTraderMenu.RegisterLine(player, context, worldobjects, buyMenu, getText("ContextMenu_Drinks"), LDTraderMenu.Items.Drinks) LDTraderMenu.RegisterLine(player, context, worldobjects, buyMenu, getText("ContextMenu_Smuggling"), LDTraderMenu.Items.Smuggling) LDTraderMenu.RegisterLine(player, context, worldobjects, buyMenu, getText("IGUI_ItemCat_VehicleMaintenance"), LDTraderMenu.Items.VehicleMaintenance) end LDTraderMenu.RegisterLine = function(player, context, worldobjects, buyMenu, title, items) local option = buyMenu:addOption(title, worldobjects, nil); local menu = ISContextMenu:getNew(buyMenu); context:addSubMenu(option, menu); for key, item in pairs(items) do LDTraderMenu.newOption(menu, worldobjects, player, item, 1) end end LDTraderMenu.newOption = function(parent, worldobjects, player, item, index) local character = getSpecificPlayer(player) local inventory = character:getInventory() local code = item.Module .. "." .. item.Name local name = getItemNameFromFullType(code) if item.VehicleType then name = name .. " (" .. item.VehicleType .. ")" end local option = parent:addOption(name, worldobjects, item.Callback, player, tostring(index)); local toolTip = ISToolTip:new(); toolTip:initialise(); toolTip:setVisible(false); toolTip:setName(name); local tooltipItemKey = "Tooltip_item_" .. item.Name local tooltipItemText = getText(tooltipItemKey) if tooltipItemKey ~= tooltipItemText then toolTip.description = tooltipItemText .. " <LINE> "; end --toolTip:setTexture(texture); local priceLine = getItemNameFromFullType(LDTraderMenu.Currency) .. " " .. inventory:getItemCount(LDTraderMenu.Currency) .. "/" .. tostring(item.Price) if inventory:getItemCount(LDTraderMenu.Currency) < item.Price then option.notAvailable = true priceLine = " <LINE> <RGB:1,0,0> " .. priceLine else priceLine = " <LINE> <RGB:1,1,1> " .. priceLine end toolTip.description = toolTip.description .. priceLine option.toolTip = toolTip return option end LDTraderMenu.onBuyItem = function(worldobjects, player, item) local character = getSpecificPlayer(player) local inventory = character:getInventory() local itemFullCode = item.Module .. "." .. item.Name local itemCount = item.Price local money = inventory:getSomeTypeEvalRecurse(LDTraderMenu.Currency, buildUtil.predicateMaterial, itemCount) for i=1,money:size() do local m = money:get(i-1) character:removeFromHands(m) if m:getContainer() then m:getContainer():Remove(m); else inventory:Remove(m) end itemCount = itemCount - 1 end inventory:AddItem(itemFullCode); LDTraderMenu.writeLog(character, "buy", itemFullCode, item.Price) end LDTraderMenu.addDrinkItem = function(name, price) LDTraderMenu.Items.Drinks[name] = { Module = "Permanent", Name = name, Price = price, Callback = function(worldobjects, player) LDTraderMenu.onBuyItem(worldobjects, player, LDTraderMenu.Items.Drinks[name]) end } end LDTraderMenu.addSmugglingItem = function(name, price) LDTraderMenu.Items.Smuggling[name] = { Module = "Base", Name = name, Price = price, Callback = function(worldobjects, player) LDTraderMenu.onBuyItem(worldobjects, player, LDTraderMenu.Items.Smuggling[name]) end } end LDTraderMenu.addVehicleMaintenanceItem = function(name, price) local item = { Module = "Base", Name = name, Price = price, Callback = function(worldobjects, player) LDTraderMenu.onBuyItem(worldobjects, player, LDTraderMenu.Items.VehicleMaintenance[name]) end } local n = string.sub(name, -1) if n == "0" or n == "1" or n == "2" or n == "3" then local vehicleType = getText("IGUI_VehicleType_" .. n) if vehicleType ~= "IGUI_VehicleType_" .. n then item.VehicleType = vehicleType end end LDTraderMenu.Items.VehicleMaintenance[name] = item end function LDTraderMenu.init() local traderSettings = SandboxVars.Trader or {} LDTraderMenu.addDrinkItem("HastyHerring", 70); LDTraderMenu.addDrinkItem("DoubleHastyHerring", 150); LDTraderMenu.addDrinkItem("GreedyHammer", 50); LDTraderMenu.addDrinkItem("DoubleGreedyHammer", 150); LDTraderMenu.addDrinkItem("GreedyAxe", 60); LDTraderMenu.addDrinkItem("DoubleGreedyAxe", 150); LDTraderMenu.addDrinkItem("StrayBullet", 50); LDTraderMenu.addDrinkItem("SlenderDoe", 40); LDTraderMenu.addDrinkItem("NicotineOverdose", 100); LDTraderMenu.addSmugglingItem("Generator", traderSettings.Generator or 50); LDTraderMenu.addSmugglingItem("Sledgehammer", traderSettings.Sledgehammer or 50); LDTraderMenu.addSmugglingItem("ShotgunShellsBox", traderSettings.ShotgunShellsBox or 2); LDTraderMenu.addSmugglingItem("556Box", traderSettings.Box556 or 3); LDTraderMenu.addSmugglingItem("Machete", traderSettings.Machete or 10); LDTraderMenu.addSmugglingItem("Axe", traderSettings.Axe or 10); LDTraderMenu.addSmugglingItem("Katana", traderSettings.Katana or 13); LDTraderMenu.addSmugglingItem("PickAxe", traderSettings.PickAxe or 10); LDTraderMenu.addSmugglingItem("HandAxe", traderSettings.HandAxe or 10); LDTraderMenu.addSmugglingItem("WoodAxe", traderSettings.WoodAxe or 10); LDTraderMenu.addSmugglingItem("Needle", traderSettings.Needle or 4); LDTraderMenu.addSmugglingItem("Woodglue", traderSettings.Woodglue or 1); LDTraderMenu.addSmugglingItem("DuctTape", traderSettings.DuctTape or 1); LDTraderMenu.addSmugglingItem("Bag_ALICEpack_Army", traderSettings.AlicePackArmy or 50); LDTraderMenu.addSmugglingItem("Bag_FannyPackFront", traderSettings.FannyPack or 30); LDTraderMenu.addSmugglingItem("WristWatch_Left_DigitalRed", traderSettings.WristWatchRed or 5); LDTraderMenu.addVehicleMaintenanceItem("EngineParts", traderSettings.EngineParts or 2); LDTraderMenu.addVehicleMaintenanceItem("CarBattery1", traderSettings.CarBattery or 10); LDTraderMenu.addVehicleMaintenanceItem("CarBattery2", traderSettings.CarBattery or 10); LDTraderMenu.addVehicleMaintenanceItem("CarBattery3", traderSettings.CarBattery or 10); end function LDTraderMenu.writeLog(character, action, itemFullCode, price) if not LogExtenderClient then return end local message = LogExtenderClient.getLogLinePrefix(character, action); message = message .. " " .. itemFullCode .. " for " .. price .. " Base.CreditCard" local location = LogExtenderClient.getLocation(character); message = message .. " (" .. location .. ")" LogExtenderClient.writeLog("lastday", message); end --LDTraderMenu.init();
vim.g.vimtex_compiler_method='latexmk' vim.g.vimtex_view_method='zathura' vim.g.vimtex_fold_enabled=0 -- Compile on initialization, cleanup on quit vim.api.nvim_exec( [[ augroup vimtex_event_1 au! au User VimtexEventQuit call vimtex#compiler#clean(0) au User VimtexEventInitPost call vimtex#compiler#compile() augroup END ]], false )
--[[ Copyright (c) 2015 深圳市辉游科技有限公司. --]] local CardTypeLoader = class('CardTypeLoader') require 'socket' local cjson = require('cjson.safe') function CardTypeLoader.loadFromLua() local s1, s2, s3 print('start to load allCardTypes.lua') s1 = socket.gettime() require('allCardTypes') s2 = socket.gettime() print('loaded allCardTypes.lua => ' , s2 - s1) -- print('decode json => ', s3 - s2) -- print('total => ', s3 - s1) end function CardTypeLoader.loadAllCardType(name) --CardTypeLoader.loadFromLua() local s1, s2, s3 -- print('start to load ' , name) s1 = socket.gettime() local jsonStr = cc.FileUtils:getInstance():getStringFromFile(name) s2 = socket.gettime() -- print('start to decode ' , name) table.merge(AllCardTypes, cjson.decode(jsonStr) ) s3 = socket.gettime() -- print('decode ' , name, ' finished') -- print('load json => ' , s2 - s1) -- print('decode json => ', s3 - s2) -- print('total => ', s3 - s1) end function CardTypeLoader.loadAllCardTypeX(scene, progressCb, finishCb) --CardTypeLoader.loadFromLua() AllCardTypes = {} local s1, s2, s3 print('start to load allCardTypes.json') s1 = socket.gettime() local curIndex = 1 local count = 177 scene:runAction(cc.Repeat:create( cc.Sequence:create( cc.CallFunc:create(function() if (curIndex <= count) then local name = string.format('cardTypes/allCardTypes_%d.json', curIndex) CardTypeLoader.loadAllCardType(name) end progressCb(curIndex * 100 / count) curIndex = curIndex + 1 if (curIndex > count) then s2 = socket.gettime() print('total load json => ' , s2 - s1) allCardTypes = AllCardTypes finishCb() end end) , cc.DelayTime:create(0.02) ) , count)) -- local jsonStr = cc.FileUtils:getInstance():getStringFromFile('allCardTypes_1.json') -- s2 = socket.gettime() -- print('load json => ' , s2 - s1) -- print('decode json => ', s3 - s2) -- print('total => ', s3 - s1) end return CardTypeLoader
local status_ok, cosmic_ui = pcall(require, "cosmic-ui") if not status_ok then vim.notify("Cosmic-ui not found!") return end cosmic_ui.setup({ -- default border to use -- 'single', 'double', 'rounded', 'solid', 'shadow' border = "rounded", rename = { prompt = "", -- nui popup options popup_opts = { position = { row = 1, col = 0, }, size = { width = 35, height = 2, }, relative = "cursor", border = { highlight = "FloatBorder", style = _G.CosmicUI_user_opts.border, text = { top = " Rename ", top_align = "left", }, padding = { 0, 1 }, }, win_options = { winhighlight = "Normal:Normal", }, }, }, code_actions = { -- nui popup options popup_opts = { position = { row = 1, col = 0, }, relative = "cursor", border = { highlight = "FloatBorder", style = _G.CosmicUI_user_opts.border, text = { top = " Code Actions ", top_align = "left", }, padding = { 0, 1 }, }, win_options = { winhighlight = "Normal:Normal", }, }, }, })
-- Lua 5.3 standard library -- For more information, see <<Lua 5.3 Reference Manual>>. -- https://www.lua.org/manual/5.3/manual.html -- function assert(v, opt message) function assert(v, message) end -- function collectgarbage(opt option, opt arg) function collectgarbage(option, arg) end -- function dofile(opt filename) function dofile(filename) end -- function error(message, opt level) function error(message, level) end function getmetatable(object) end function ipairs(t) end -- function load(chunk, opt chunkname, opt mode, opt env) function load(chunk, chunkname, mode, env) end -- function loadfile(opt filename, opt mode, opt env) function loadfile(filename, mode, env) end -- function next(table, opt index) function next(table, index) end function pairs(t) end function pcall(f, ...) end function print(...) end function rawequal(v1, v2) end function rawget(table, index) end function rawlen(v) end function rawset(table, index, value) end function require(modname) end function select(index, ...) end function setmetatable(table, metatable) end -- function tonumber(e, opt base) function tonumber(e, base) end function tostring(v) end function type(v) end function xpcall(f, msgh, ...) end -- coroutine coroutine = {} function coroutine.create(f) end function coroutine.isyieldable() end function coroutine.resume(co, ...) end function coroutine.running() end function coroutine.status(co) end function coroutine.wrap(f) end function coroutine.yield(...) end package = {} function package.loadlib(libname, funcname) end -- function package.searchpath(name, path, opt sep, opt rep) function package.searchpath(name, path, sep, rep) end string = {} -- function string.byte(s, opt i, opt j) function string.byte(s, i, j) end function string.char(...) end -- function string.dump(func, opt strip) function string.dump(func, strip) end -- function string.find(s, pattern, opt init, opt plain) function string.find(s, pattern, init, plain) end function string.format(formatstring, ...) end function string.gmatch(s, pattern) end -- function string.gsub(s, pattern, repl, opt n) function string.gsub(s, pattern, repl, n) end function string.len(s) end function string.lower(s) end -- function string.match(s, pattern, opt init) function string.match(s, pattern, init) end function string.pack(fmt, v1, v2, ...) end function string.packsize(fmt) end -- function string.rep(s, n, opt sep) function string.rep(s, n, sep) end function string.reverse(s) end -- function string.sub(s, i, opt j) function string.sub(s, i, j) end -- function string.unpack(fmt, s, opt pos) function string.unpack(fmt, s, pos) end function string.upper(s) end utf8 = {} function utf8.char(...) end -- function utf8.codepoint(s, opt i, opt j) function utf8.codepoint(s, i, j) end function utf8.codes(s) end -- function utf8.len(s, opt i, opt j) function utf8.len(s, i, j) end -- function utf8.offset(s, n, opt i) function utf8.offset(s, n, i) end table = {} -- function table.concat(list, opt sep, opt i, opt j) function table.concat(list, sep, i, j) end -- function table.insert(list, opt pos, value) function table.insert(list, pos, value) end -- function table.move(a1, f, e, t, opt a2) function table.move(a1, f, e, t, a2) end function table.pack(...) end -- function table.remove(list, opt pos) function table.remove(list, pos) end -- function table.sort(list, opt comp) function table.sort(list, comp) end -- function table.unpack(list, opt i, opt j) function table.unpack(list, i, j) end math = {} function math.abs(x) end function math.acos(x) end function math.asin(x) end -- function math.atan(y, opt x) function math.atan(y, x) end function math.ceil(x) end function math.cos(x) end function math.deg(x) end function math.exp(x) end function math.floor(x) end function math.fmod(x, y) end -- function math.log(x, opt base) function math.log(x, base) end function math.max(x, ...) end function math.min(x, ...) end function math.modf(x) end function math.rad(x) end -- function math.random(opt m, opt n) function math.random(m, n) end function math.randomseed(x) end function math.sin(x) end function math.sqrt(x) end function math.tan(x) end function math.tointeger(x) end function math.type(x) end function math.ult(m, n) end math.huge = 0 math.maxinteger = 0 math.mininteger = 0 math.pi = 0 io = {} -- function io.close(opt file) function io.close(file) end function io.flush() end -- function io.input(opt file) function io.input(file) end -- function io.lines(opt filename, ...) function io.lines(filename, ...) end -- function io.open(filename, opt mode) : File function io.open(filename, mode) end -- function io.output(opt file) function io.output(file) end -- function io.popen(prog, opt mode) function io.popen(prog, mode) end function io.read(...) end function io.tmpfile() end function io.type(obj) end function io.write(...) end local File = {} function File:close() end function File:flush() end function File:lines(...) end function File:read(...) end -- function File:seek(opt whence, opt offset) function File:seek(whence, offset) end -- function File:setvbuf(mode, opt size) function File:setvbuf(mode, size) end function File:write(...) end os = {} function os.clock() end -- function os.date(opt format, opt time) function os.date(format, time) end function os.difftime(t2, t1) end -- function os.execute(opt command) function os.execute(command) end -- function os.exit(opt code, opt close) function os.exit(code, close) end function os.getenv(varname) end function os.remove(filename) end function os.rename(oldname, newname) end -- function os.setlocale(locale, opt category) function os.setlocale(locale, category) end -- function os.time(opt table) function os.time(table) end function os.tmpname() end debug = {} function debug.debug() end -- function debug.gethook(opt thread) function debug.gethook(thread) end -- function debug.getinfo(opt thread, func, opt what) function debug.getinfo(thread, func, what) end -- function debug.getlocal(opt thread, func, local_name) function debug.getlocal(thread, func, local_name) end function debug.getmetatable(value) end function debug.getregistry() end function debug.getupvalue(f, up) end function debug.getuservalue(u) end -- function debug.sethook(opt thread, hook, mask, opt count) function debug.sethook(thread, hook, mask, count) end -- function debug.setlocal(opt thread, level, local_name, value) function debug.setlocal(thread, level, local_name, value) end function debug.setmetatable(value, table) end function debug.setupvalue(f, up, value) end function debug.setuservalue(udata, value) end -- function debug.traceback(opt thread, opt message, opt level) function debug.traceback(thread, message, level) end function debug.upvalueid(f, n) end function debug.upvaluejoin(f1, n1, f2, n2) end
-- Dialogue for NPC "npc_graham" loadDialogue = function(DL) if (not DL:isConditionFulfilled("npc_graham", "talked")) then DL:setRoot(1) else DL:setRoot(2) end if (not DL:isConditionFulfilled("npc_graham", "talked")) then DL:createNPCNode(1, -2, "DL_Graham_Hey") -- Oh, hello! You really came from that creepy cave? You know it's forbidden to go there, right? DL:addConditionProgress("npc_graham", "talked") DL:addNode() end DL:createChoiceNode(2) if (not DL:isConditionFulfilled("npc_graham", "who_are_you")) then DL:addChoice(3, "DL_Choice_WhoAreYou") -- Who are you? end if (not DL:isConditionFulfilled("npc_graham", "forbidden_cave")) then DL:addChoice(4, "DL_Choice_ForbiddenCave") -- Why is it forbidden to go into that cave? end if (DL:isConditionFulfilled("npc_graham", "who_are_you") and not DL:isConditionFulfilled("npc_graham", "king")) then DL:addChoice(12, "DL_Choice_King") -- A royal bard? So do you know the king? end if (not DL:isConditionFulfilled("npc_graham", "velius") and DL:isQuestDescriptionUnlocked("find_velius",3)) then DL:addChoice(15, "DL_Choice_Velius") -- Do you know someone called "Velius"? end if (DL:isQuestState("grahams_dulcimer", "void")) then DL:addChoice(5, "DL_Choice_WhatDoing") -- What are you doing here? end if (DL:isQuestState("grahams_dulcimer", "started") and DL:isQuestComplete("grahams_dulcimer")) then DL:addChoice(6, "DL_Choice_GotDulcimer") -- I found your instrument. In a tree. end DL:addChoice(-1, "") -- DL:addNode() if (not DL:isConditionFulfilled("npc_graham", "who_are_you")) then DL:createNPCNode(3, -2, "DL_Graham_WhoAreYou") -- I'm Graham Teawenth, royal bard. Nice to meet you! DL:addConditionProgress("npc_graham", "who_are_you") DL:addNode() end if (not DL:isConditionFulfilled("npc_graham", "forbidden_cave")) then DL:createNPCNode(4, 16, "DL_Graham_ForbiddenCave") -- It was an order from the king himself. Apparently, it's dangerous. DL:addConditionProgress("npc_graham", "forbidden_cave") DL:addNode() DL:createNPCNode(16, -2, "DL_Graham_ForbiddenCave2") -- I don't know why they don't just barricade it. DL:addNode() end if (DL:isConditionFulfilled("npc_graham", "who_are_you") and not DL:isConditionFulfilled("npc_graham", "king")) then DL:createNPCNode(12, 13, "DL_Graham_King") -- Logan the Second? Yes, yes I know him. But he was recently replaced by his weird son. DL:addConditionProgress("npc_graham", "king") DL:addNode() DL:createNPCNode(13, 14, "DL_Graham_King2") -- The old king loved to listen to my songs. But the prince... well, he's not interested in music. DL:addNode() DL:createNPCNode(14, -2, "DL_Graham_King3") -- He doesn't seem interested in anything. Really weird kid... So I'm just sitting here in the gardens, playing for the court. DL:addNode() end if (not DL:isConditionFulfilled("npc_graham", "velius") and DL:isQuestDescriptionUnlocked("find_velius",3)) then DL:createNPCNode(15, -2, "DL_Graham_Velius") -- Hmm... Yep, that's one of the royal mages. I haven't seen him in a while. He's a pretty reserved kind of guy. DL:addConditionProgress("npc_graham", "velius") DL:addNode() end if (DL:isQuestState("grahams_dulcimer", "void")) then DL:createNPCNode(5, 9, "DL_Graham_WhatDoing") -- I'm looking for my instrument, a dulcimer. DL:addNode() DL:createNPCNode(9, 10, "DL_Graham_WhatDoing2") -- Some big raven stole it and carried it into the castle gardens. DL:addNode() DL:createNPCNode(10, 11, "DL_Graham_WhatDoing3") -- But what's a royal bard without his instrument? DL:addNode() DL:createNPCNode(11, -2, "DL_Graham_WhatDoing4") -- So, if you happen to find it and bring it back to me, I'll give you lots of gold! DL:changeQuestState("grahams_dulcimer", "started") DL:addNode() end if (DL:isQuestState("grahams_dulcimer", "started") and DL:isQuestComplete("grahams_dulcimer")) then DL:createNPCNode(6, 7, "DL_Graham_GotDulcimer") -- Oooooh! My dulcimer! (Graham takes it and strokes it tenderly) DL:removeItem("qe_dulcimer", 1) DL:addNode() DL:createNPCNode(7, 8, "DL_Graham_GotDulcimer2") -- Thank you so much, I really appreciate your help. Here, take this gold. DL:addGold(40) DL:changeQuestState("grahams_dulcimer", "completed") DL:addNode() DL:createNPCNode(8, -2, "DL_Graham_GotDulcimer3") -- Now I can finally play it again! DL:addNode() end end
function SpawnPoints() return { unemployed = { { worldX = 44, worldY = 22, posX = 54, posY = 44, posZ = 0 }, }, } end
local Class = require "lib.hump.Class" local Vector = require "lib.hump.Vector" local BodyTypes = require "constants.BodyTypes" local Signals = require "constants.Signals" local Constants = require "constants.Constants" local Tile = require "Tile" local World = Class{} function World:init(width, height, tileSize, doWalls) self.width = width self.height = height -- init walls if doWalls then local wallSize = Constants.TILE_SIZE; self._walls = {} self._walls.top = HC.rectangle(-wallSize, -wallSize, width + 2 * wallSize, wallSize) self._walls.top.type = BodyTypes.WALL self._walls.top.active = true self._walls.right = HC.rectangle(width, -wallSize, wallSize, height + 2 * wallSize) self._walls.right.type = BodyTypes.WALL self._walls.right.active = true self._walls.bottom = HC.rectangle(-wallSize, height, width + 2 * wallSize, wallSize) self._walls.bottom.type = BodyTypes.WALL self._walls.bottom.active = true self._walls.left = HC.rectangle(-wallSize, -wallSize, wallSize, height + 2 * wallSize) self._walls.left.type = BodyTypes.WALL self._walls.left.active = true end -- init floor self._floor = {} self._floor.columns = math.floor(width / tileSize) -- 40 self._floor.rows = math.floor(height / tileSize) -- 20 --print("columns: " .. self._floor.columns .. ", rows: " .. self._floor.rows) for i = 1, self._floor.columns, 1 do self._floor[i] = {} for j = 1, self._floor.rows, 1 do self._floor[i][j] = Tile(tileSize * (i - 1), tileSize * (j - 1), tileSize, tileSize) end end Signal.register(Signals.AREA_BEAM, function(x, y, duration) local tiles = self:getFloorSection(x, y) for _, _ in pairs(tiles) do error("AREA BEAM ARE CANCELLED ASSHOLE, maybe bring them back later?") end end) end function World:rows() return self._floor.rows; end function World:columns() return self._floor.columns; end -- returns the center coordinates of the tile enclosing (x, y) function World:closestTileCenter(x, y) local tileSize = Constants.TILE_SIZE local tilePos = Vector(math.floor(x / tileSize), math.floor(y / tileSize)) return tilePos.x * tileSize + tileSize / 2, tilePos.y * tileSize + tileSize / 2 end function World:getFloorSection(x, y) local ret = {} if x < 1 or x > Constants.BEAM_COLS or y < 1 or y > Constants.BEAM_ROWS then error("Conditions: 1<=x<=4 and 1<=y<=3 not met. (x: " .. x .. ", y: " .. y .. ")") end -- do some rounding to make sure all tiles are accounted -- for in case the width or height of the world changes -- and qCols or qRows arn't integers local qCols, qRows = self._floor.columns / Constants.BEAM_COLS, self._floor.rows / Constants.BEAM_ROWS for i = math.floor((x - 1) * qCols + 0.5) + 1, math.floor((x) * qCols + 0.5), 1 do for j = math.floor((y - 1) * qRows + 0.5) + 1, math.floor((y) * qRows + 0.5), 1 do table.insert(ret, self._floor[i][j]) end end --table.insert(ret, self._floor[10][10]) return ret end function World:update(dt) for _, row in ipairs(self._floor) do for _, tile in ipairs(row) do tile:update(dt) end end end function World:draw() -- draw walls --[[ love.graphics.setColor(0, 0, 0, 1) self._walls.bottom:draw('fill') self._walls.left:draw('fill') self._walls.right:draw('fill') self._walls.top:draw('fill') ]] -- draw floor for _, row in ipairs(self._floor) do for _, tile in ipairs(row) do tile:draw() end end end return World
--[[ Copyright 2017 wrxck <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]] local fact = {} local mattata = require('mattata') local json = require('dkjson') function fact:init() fact.commands = mattata.commands( self.info.username ):command('fact').table fact.help = [[/fact - Returns a random (and somewhat-false!) fact.]] end local facts = { [[Koalas' teeth are strong enough to bend time and space.]], [[There hasn't been a person named Stanley for 10 years.]], [[Beethoven was the first man to hear the sound of clowns arguing.]], [[Nobody can explain how a computer works.]], [[The term WiFi stands for "Wireless info For internets".]], [[Caffeine is derived from sunflower seeds.]], [[94% of US citizens report that they're allergic to camera lenses.]], [[Pen ink consists mostly of citric acid.]], [[Most movie scripts are written underwater.]], [[Google is the highest rated restaurant in California.]], [[Yawning causes bones to break more easily.]], [[Loud music is known to soothe camels.]], [[There are only 2 male koalas on the planet.]], [[Baby carriages are often made out of recycled Dell computers.]], [[Glass generates about 12% of the world's electricity.]], [[Fire has no reflection in mirrors.]], [[Ryan Reynolds was the first person to count to 5.]], [[Men usually grow facial hair by the first time they hear bird chirp for the 30th time.]], [[Ducks can't feel water.]], [[Feathers are 2 times heavier on Tuesdays.]], [[The actor Nicolas Cage is actually three different people.]], [[Google is the only company in the world to own a water fountain in Europe.]], [[There are 86 people in the United Kingdom named Ron.]], [[Samsung is the manufacturer of the majority of women's hygiene products.]], [[Over 85% of childbirths are indirectly caused by members of Reddit.]], [[iPhone users can't see the color purple.]], [[YouTube videos will be limited to a maximum of 23 seconds starting March 2015.]], [[People eat on average at least 3 pairs of scissors in their lifetime.]], [[Pigs are incredibly scared of the sound of cats meowing.]], [[When you cut a piece of paper, you're actually sliding two separate pieces away from each other.]], [[It's very commonplace to trade punches with a close friend on holidays in the United States.]], [[Walls in houses were made almost completely out of sandpaper in the 1960s.]], [[The Leaning Tower of Pisa is actually only worth about $45 because of the fact that it does not stand straight up.]], [[One whole season of the show It's Always Sunny in Philadelphia features only stunt doubles and none of the actual cast.]], [[No movie exists that includes Matt Damon and a cell phone in the entire movie.]], [[The older cats become, the more they can only smell the scent of AXE Bodyspray.]], [[New Yorkers are best known for exclusively drinking Mountain Dew and nothing else.]], [[Saliva is the only thing able to melt glass.]], [[Nokia phones are the only things known to man capable of communicating with hamsters.]], [[iTunes is the most popular choice of desk brand.]], [[Elijah Wood was crowned King of Root Beer 6 times in 2011.]], [[Bears don't eat.]], [[Twitter's headquarters are located in New York City from 9pm to 11pm EST Monday through Tuesday.]], [[Sleeping reduces your chances of dying.]], [[Reading was considered a feat of strength in the 1700s.]], [[Twins are more likely to get amnesia than most people.]], [[Each member of Linkin Park has been knighted at some point.]], [[Hockey was first played in the summer of 2002.]], [[Today is National Pi Day.]], [[Marijuana is actually legal in all 50 states; the government just hasn't told any of the smokers of it about it.]], [[Love is often compared to cake.]], [[Sadness causes cancer in 94% of all lady bugs.]], [[Clothes lose their color after 23 days.]], [[Candy bars are not permitted to contain any food-like substances.]], [[Involuntarily making odd faces is often a sign of being blind in one eye.]], [[A total of 7 people have never been in a car.]], [[The first QR Code was used on November 8, 1994.]], [[On a list of Americans' most favorite words, "Potpourri" came in 2nd, behind "pseudopseudohypoparathyroidism".]], [[Most modern calendars do not include 7 days of the week.]], [[The term "beat boxing" comes from illiterate sailors who punched various cardboard boxes in their spare time.]], [[A recent study showed that a total of 1,484 Americans are not named Jennifer.]], [[Walruses are avid readers of romance novels.]], [[Netflix is owned by Amazon, which is owned by Google, which is owned by some guy in Minnesota.]], [[3D printers were first mass-produced in a small Brazilian town in 1984.]], [[Catnip is generally thought to be extremely dangerous if looked at under direct sunlight.]], [[Ferrets don't have functional eyes.]], [[Dell computers are the sole reason that Internet Explorer is the most liked web browser.]], [[4% of the average human body is made of aluminum.]], [[Being generous is the leading cause of death in the United States.]], [[The word "escape" was coined by a man in prison trying to describe his departure from the prison. Ironically, he never actually escaped.]], [[The universal sign of friendship is a punch in the face.]], [[No one has laid eyes upon a wooden boat since the early 1700s.]], [[Telling jokes decreases your lifespan by 23 minutes per joke told.]], [[Hair grows faster than normal every 8 years.]], [[The state of Ohio passed a law in 1994 banning the use of mini fridges.]], [[86% of men report that they don't have a tongue.]], [[There are no windows in South America.]], [[Calendars are unknown to the people of western California.]], [[The most common cause of vehicle-related injuries is ferrets.]], [[A survey of 100 people found that 26% of them had a disease known as "Fleeing Mustache", where their mustache falls off of their face about every 2 days.]], [[Peanut butter products can be used to cure the common cold.]], [[The first person to buy an iPhone was a man named Heinrich McDominferbincoughcough.]], [[The word 'mouse' is supposed to be spelled 'paper'.]], [[Most people can't touch glass without screaming.]], [[Sales of trains have gone up 836% since January 23, 2014.]], [[Gorillas were trained to use cell phones by Brazilians in 1949.]], [[Tacos were first made to mimic the shape of a cat's tail.]], [[Android cell phones are often commonly confused to be able to cause paper-based objects to achieve flight.]], [[The common expression "a bird in the hand is worth two in the bush" originally was slang for "hey, take a look at that bird".]], [[Tigers have no sense of smell.]], [[Every time a door is opened, someone buys a blue desk.]], [[On November 10 of every year, the sun is only about 1,000 miles away from Earth.]], [[Although very few know it, the lead singer of AC/DC provided most of vocals for the song Poker Face by Lady Gaga.]], [[As of the year 2014, wallets have caused more fatal injuries than knives have.]], [[When you sneeze, your body is actually putting itself to sleep for a brief moment.]], [[Nicolas Cage was one of the original inventors of the radio.]], [[Most wallpaper is made out of recycled receipts from Amazon.]], [[The first laptop ever created was actually the most powerful laptop there has ever been.]], [[The average snowflake contains about one ounce of water.]], [[Fingernails are about 140% stronger than iron.]], [[Hospitals are commonly occupied by raccoons.]], [[The first dinosaur was a dog.]], [[Most Facebook users can't see the color blue.]], [[Every time you read a sentence, you become slightly more illiterate.]], [[Horses go into bars every Friday.]], [[The first pyramid that was built was intended to be in the shape of a circle.]], [[Will Smith can't count to 3, but can count to 26.]], [[Windows 8 is the most popular version of Windows since Mac.]], [[Facebook purchased the country of Germany on January 23, 2008.]], [[There are 26 different variations of the color red.]], [[9 o'clock in the morning was not an official time until 1945.]], [[Air in Texas is contaminated with high amounts of iron.]], [[20 trillion minutes of pornography is uploaded to YouTube every hour.]], [[Levitation is illegal in Arkansas.]], [[Family Guy is very popular on Pluto.]], [[During December, Cinnamon is commonly sold in 36 different flavors.]], [[For a brief period of time during 2009, Elvis Presley rose from the dead to appear in the movie Batman Begins.]], [[Most books that are published nowadays feature 2 pages made from peanut butter.]], [[An average human will only ever use 1% of their brain.]], [[Windows 8 (as of November 24) has seen more sales than Star Wars.]], [[Disney is considering buying Microsoft.]], [[Adobe was the original creator of the iPod.]], [[iTunes was originally created by Toshiba.]], [[There are plans to make a sequel to Iron Man 3 called Iron Man 3 2.]], [[Chicken tastes like bacon once every month.]], [[As of November 22, 2012, Pink Floyd has re-released the album "The Wall" 33 times.]], [[Zippo lighters are considered weapons of mass destruction in 18 states.]], [[Mathematics doesn't exist on Sundays.]], [[Every time Nicolas Cage receives a message on Facebook, a Mac computer is hit with a sledge hammer.]], [[Only 11 people on earth can touch their toes.]], [[Gloves don't make your hands warmer if it is exactly 33 degrees outside.]], [[This sentence is not a question?]], [[The English language is based on Braille.]], [[Orlando, Florida is the home of Los Angeles, California.]], [[It's illegal to give someone your business card in Japan.]], [[Cats are unable to see the color white.]], [[Smoking cigarettes is known to attract rabid giraffes.]], [[Drinking 1 beer is the equivalent of eating 36 pieces of bacon.]], [[The world's electricity is provided solely by Adam Sandler.]], [[The first car was a horse. His name was Bert.]], [[Bears will not attack you if they can't see your eyes.]], [[The average human heart can withstand about 23 pounds of pressure.]], [[You have to be at least 18 years old to attend preschool.]], [[Tourism is illegal in Nevada.]], [[Most cheeses do not have an expiration date.]], [[Only 1 person in the whole world is named Thomas Mays. That person's name is Nicolas Cage.]], [[Underage drinking is the leading cause of HIV in Canada.]], [[Phones are the sturdiest phones known to man.]], [[Being in love causes cancer.]], [[Bears cannot smell grass.]], [[There are only about 1200 facts in existence.]], [[Intel is currently creating a processor that runs purely on tobacco.]], [[Most llamas are purple.]], [[Halloween is an Islamic holiday.]], [[Osama Bin Laden was actually your mother.]], [[Keyboards usually weigh about 12 pounds in Europe.]], [[Books will no longer be legal to read on November 13, 2012.]], [[This sentance doesnt contain speling erors.]], [[There's no such thing as a rainbow.]], [[The iPad Mini never existed.]], [[Oprah invented the first light bulb.]], [[Halo 4 inspired Bill Gates to invent the Internet.]], [[The Constitution was first written on a credit card.]], [[Barrack Obama is the President of the Moon.]], [[Microsoft's next update to Windows will be based on Windows 98 mixed with YouTube.]], [[Schools are only in session for 1 month in the United States.]], [[There is no such thing as grass.]], [[Burger King sells human hands on Halloween.]], [[The color red is made by mixing green and black.]], [[42 searches are made on Google every single hour, totalling to about 100 total searches being made every day.]], [[There are as many hospitals in California as there are humans on Earth.]], [[Trains are made of cat shit.]], [[Sideburns cause you to set off every fire alarm in a one inch radius.]], [[Sugar no longer tastes sweet in the United States.]], [[Bees have no wings.]], [[Most toasters are rainbow-colored.]], [[Infinity can be represented by 42 + 8.]], [[You can starve in 3 seconds if you eat chicken in intervals of 6 minutes.]], [[HP computers malfunction when exposed to air.]], [[It's illegal to use ladders inside schools.]], [[The Avengers was filmed over a period of four seconds in 1994.]], [[Bodyspray is made from 2% cat urine.]], [[The next iPhone will be able to shoot video at a maximum of 4 frames per second (or FPS).]], [[There are approximately 86 days in a week.]], [[World of Warcraft cannot be played by Germans.]], [[Stars are not visible at night on Sunday.]], [[It's impossible to spell 'impossible' without spontaneously exploding.]], [[103% of people don't know how to count to 100.]], [[It takes 36 seconds for sunlight to reach the earth from the sun.]], [[32 out of 8 countries in the world celebrate National Fraction Day.]], [[I fucked your mother.]], [[You're not allowed to play Halo in Arkansas.]], [[Nicolas Cage is blind on Thursdays.]], [[There are only 33 computers in the United States.]], [[One pound of water weighs about 3 ounces.]], [[There are 256 colors in a rainbow.]], [[Hair glows at night.]], [[Johnny Depp is known as "Mr. Mister" in Ohio.]], [[Newspapers grow on trees.]], [[53% of people who read this sentence are illiterate.]], [[ll metals contain 20% aluminum foil.]], [[There are at least 256 colors in any rainbow.]], [[Opinions are officially banned in Utah.]], [[You cannot touch sand on the moon.]], [[You can't spell 'keyboard' without 'gingivitis'.]], [[Oprah Winfrey owns half of CNN.]], [[Pennies were worth 3 dollars in 1983.]], [[Most squares only have 1 straight line.]], [[You cannot sleep during the daytime.]], [[Cinnamon tastes like salt on Christmas.]], [[You can't see stars while in space.]], [[The alphabet had 3 letters in 2011.]], [[The universe only spans about 82 miles in every direction.]], [[There are 15,851 desks in the White House]], [[Shoes naturally conduct electricity at night.]], [[Pointing a flashlight at the sun will cause it to catch on fire.]], [[Red and blue cause cancer.]], [[There are 46 craters on the Moon.]], [[An average keyboard has 1 key.]], [[The Earth has a diameter of 65 inches.]], [[Today is August 12, 1012.]], [[Quit-A-Job has the highest employment rate in America.]], [[Metal becomes lighter when thrown into the air.]], [[Tylenol is the only pill that weighs more than 2 pounds.]], [[6 new countries are established every day.]], [[The movie Iron Man 2 had a budget of $2.]], [[There is, in fact, an 'I' in 'team'.]], [[Laptops normally grow in deserts.]], [[Tacos were first discovered by accident in Australia.]], [[Water weighs as much as a plastic bottle on Mars.]], [[People in Alaska use screwdrivers as eating utensils.]], [[This sentence contains a total of 36 characters.]], [[Birds don't sing, they yodel.]], [[Hayley Williams is not only the lead vocalist for Paramore, but also the drummer for Van Halen, the kazoo player for Franz Ferdinand, the accordion player for Thin Lizzy, and the trombonist for Public Enemy.]], [[Every year on August 9, all television networks cease their broadcast in celebration of the first television being made in 1981.]], [[Numbers 86 through 90 only exist 86% to 90% of the time.]], [[Google.com is offline for about 13 hours every day.]], [[The word 'shorter' is, in fact, shorter than the word 'long'.]], [["Saint's Row" is the sequel to "Skyrim".]], [[It is physically impossible for a garage to have a farm animal in it.]], [[Adam Sandler created the first county fair. He was in charge of the Pie Baking Contest.]], [[61% of cats prefer opera over Korean pop music: 102% of people believed the above statistic.]], [[There are 3 known automobile production companies: Ford, Chevrolet, and BigWheels.]], [[Paper is made from wool.]], [[Wool is made from paper.]], [[The color blue is transparent when viewed under direct sunlight.]], [[There is a 99% chance that 100 is not a number.]], [[August 4 lasts for 83 hours in Germany.]], [[The word 'Alphabet' contains 26 letters.]], [[Air doesn't exist, hence why you can't see it.]], [[The game Minecraft features graphics that rival World of Warcraft.]], [[It is physically impossible to look at your elbow and talk at the same time.]], [[9.56384781707% of people didn't read that number.]], [[Having earwax is the first sign of brain cancer.]], [[Reading books is illegal in 53 states.]], [[Teh Aplhaebt dcedied to go on srtkie.]], [[There is a 84% chance that you will find Emma Watson under your bed.]], [[People over 80 years old usually have only 1 eye.]], [[Aluminum is the heaviest substance on Earth.]], [[Steve Jobs will lead the zombie apocalypse.]], [[Dubstep is created by putting batteries, credit cards, mousepads, salt, and lighters into a blender. I mean, if you enjoy Rebecca Black's singing!]], [[The only known sighting of a rainbow was 27 years ago by a woman living in Detroit.]], [[No one has ever seen one since.]], [[The T.V show SpongeBob SquarePants is based on a true story.]], [[It has been scientifically proven that reading false facts everyday is healthier than eating vegetables.]], [[Robert Pattinson was born 35% African.]], [[6% of light switches have attempted suicide.]], [[The leading cause of death in Antarctica is heatstroke.]], [[It's physically impossible to brush your teeth and blink at the same time.]], [[Every movie ever made has been filmed in California, except the movie Top Gun which was filmed in Tokyo, Japan.]], [[Taking showers is twice as likely to cause cancer than smoking.]], [[An average pound of water weighs 3 ounces.]], [[5 people in total use Google Chrome.]], [[The American flag commonly consists of at least 86 different colors.]], [[Pretzels make up Toshiba laptop screens.]], [[Mirrors cannot be broken on Sundays.]], [[Shoes were first made out of light bulbs in 1936.]], [[There are -83 days until the world ends.]], [[There's a 99% that you will not see this message.]], [[The planet Venus can only be seen once a day, by one person.]], [[Aluminum foil smells like Doritos.]], [[Air is thickest at 3 o'clock PM.]], [[The letter 'a' does not exist.]], [[2% of living people are dead.]], [[Screwdrivers are on fire 30% of the time.]], [[There are 83 total penguins in the world.]], [[There are 21 hours of daylight on July 22.]], [[Cocks are known to become transparent when exposed to sunlight.]], [[Paper is made from recycled water and grass.]], [[Adam Sandler is invisible 235 days of the year.]], [[iTunes sells human kidneys for $2 per pound.]], [[Pretzels weigh nothing.]], [[Lizards were the first creatures to have eyes.]], [[Sunlight causes the earth to spin slower.]], [[Jupiter is 33 miles away from Earth.]], [[Scissors cause more deaths than knives.]], [[An average computer monitor has a total of 64 pixels.]], [[The next sentence you read does not exist.]], [[The sentence you previously read does not exist.]], [[Johnny Depp owns a hat made from a Mac computer.]], [[1 out of every 3 people in the United States have legs.]], [[Microsoft earns exactly $33 every day.]], [[A batteries are commonly at least 3 pounds.]], [[Chocolate is made from pickled herring.]], [[Aluminum foil is transparent.]], [[In the United States, you must be at least 32 years old to attend school.]], [[Minecraft is mostly played by Facebook employees.]], [[Potato chips contain 39% alcohol.]], [[The color white can only be seen on 37 models of digital cameras.]], [[When a person yells "Hiyah!", that person is killed by a Ninjelephant (Ninja elephant) within 3.141597 seconds.]], [[All clowns are bald.]], [[You do not exist when not looking at this sentence.]], [[Long-haired dogs are five times as likely to chew up combs.]], [[Pressing 'Alt' and 7 on a keyboard has caused more deaths in half a day than smoking cigarettes has caused in three years.]], [[Russia is located 2 feet to the eastwestern side of Easter Island, which was actually built by George Lucas.]], [[YouTube as founded by Walt Disney in 2005.]], [[Desks are known to defy gravity during holidays.]], [[It's impossible to say the alphabet while under water.]], [[There's a 99% chance that this post was published at 12:00PM on 7/11/2012.]], [[Out of 100 blankets, 3 of them feel fear.]], [[Most squares have more than 13 sides.]], [[Will Ferrell grows hair faster than anyone in the United States.]], [[White gloves cure cancer.]], [[Ohio hasn't had a thunderstorm since June 29, 2012.]], [[For every 6 out of 83 games of Windows 7 Solitaire won, Bill Gates is slapped by a fresh salmon.]], [[1 out of every 12 people metioned in the Bible has attended a Beatles concert.]], [[The Library of Congress is home to nearly 14 books.]], [[Owning a refrigerator while married is illegal in the United States.]], [[Computers consume less power during November.]], [[Compressed air contains -2% air.]], [[Most powdered doughnuts are made from wooden desks.]], [[Penguins make up 33% of HTC cell phone owners.]], [[A llama will melt cheese by sitting on it faster than a gorilla will.]], [[Llamas only eat leprechauns during leap years.]], [[Today is National Llama Day.]], [[Go out and hug the nearest llama.]], [[Sony sells more TVs on February 29 than any other day of the year.]], [[1/4 calculators possess the power of levitation.]], [[100% of people who are invincible cannot be seen.]], [[It is predicted that fast food chains will own and fight over different parts of the world in the near future, with McDonald's and Burger King being the main contenders.]], [['The Cat In The Hat' is based on a true story.]], [[Santa Claus can no longer deliver presents due a serious back injury.]], [[For several years his elves have stepped in for him.]], [[Jim Morisson was the first person to assassinate a king of England.]], [[Every time you sign a contract, your signature drops in value equivalent to two plane tickets to Canada.]], [[The number 7 was accused of cannibalism after he ate the number 9.]], [['Awesome' is spelled the same as 'shame', 'red', and 'headcheese'.]], [[When one throws a colored pencil at an Xbox, an albatross is shot down with extreme prejudice by gnomes with a rocket launcher.]], [[Ear wax is actually made from the feces of the little elves that live behind your earlobes.]], [[Candy sales dropped 28% after the movie The Social Network was released.]], [[About 1/4 of the land in Egypt is borrowed from France.]], [[100% of iTunes users don't listen to music.]], [[In 1937, computers were deemed illegal in the state of West Virginia.]], [[Smelling is the national pastime of Mexico.]], [[According to NASA, the world will end on February 30th of 2013.]], [[17% of the time, BBC News runs repeats from 1945 on their show.]], [[1 in 10 people walking around today are directly related to his holiness, the Dalai Lama.]], [[Eating limes for a week can increase your stomach capacity by 120%.]], [[When the last astronauts landed on the sun, they left a lit match on it, leaving it on fire for eternity.]], [[Greeks invented the electric guitar. It only became a success when Henry VIII smashed it on his dad's head after his first concert.]], [[The main ingredients of spaghetti are lemons and tomatoes.]], [[4 out of 5 dentists didn't graduate medical school and coincidentally have disapproving mothers.]], [[5% of people believe false facts and statistics.]], [[Every 1 in 42 people are an elephant's mother.]], [[Salsa dancing with dogs in party hats is illegal in 27 states.]], [[The 15th of July is National Hug A Hobo Day.]], [[Stacy's mom does, in fact, not have it going on.]], [[99% of turkeys are looking forward to Thanksgiving.]], [[7% of vegetarians love beef hot dogs.]], [[5% of male cats can give birth to babies.]], [[Many brands of potato pancakes will become radioactive once placed in a vat of pudding.]], [[Donald Trump has an alpaca secretly hidden in the White House. He rides on it every Friday.]], [[Your wenis, the flabby skin on your elbow, actually has a purpose: to act as a second brain in the case of your bigger one failing.]], [[89% of single moms would buy more of Justin Bieber's albums if he had a beard on the cover.]], [[There is a 1 in 5 chance you will become orange if you eat too many tomatoes.]], [[Only 30% of Inuit residents living in Idaho say that they smell like mustard.]], [[Zebras are the result of an experiment gone wrong trying to merge a newspaper and a horse.]], [[If someone receives an egg-shaped pencil on their twentieth birthday, they get thrown off of a stage by Akon two weeks later.]], [[Eating tree bark improves your physical wellbeing.]], [[Traffic signs killed more people in history than the HIV virus.]], [[Drinking coffee on Saturday is illegal in 31 countries.]], [[People buy sunflower seeds more often than hamburgers.]], [[New York City, contrary to popular belief, is actually larger than the state of Texas.]], [[It is customary in California to hug every 21 year old.]], [[For every sixty-three seconds that pass in Africa, 2 minutes also pass.]], [[83% of plastic cups are used as desks.]], [[There are 83,951 types of cancer.]], [[Adam Sandler can build a house in less than 3 days.]], [[Swords were invented when Sir Arthur Conan Doyle thought that normal toothpicks were too small.]], [[Bacon is the solid form of helium.]], [[There are some cybernetic people who can only eat cash and credit cards.]], [[We call these people 'ATM's'.]], [[30% of Justin Bieber fans have ear cancer, and 50% of those don't know it yet.]], [[There are 86,890 "arrow to the knee" jokes posted every day on the internet.]], [[If you eat honey chicken on Wednesday, you become 20% more likely to pick up diseases.]], [[The Earth has two moons, the second one is a secret moon, called a "Smoon".]], [[Bodyspray is made from extracting the scent of walruses.]], [[The first door was made out of water.]], [[Stephen Jennings owns 26% of the internet.]], [[The sun we see now is the 7th sun the Earth has had since 1936.]], [[100% wasn't originally considered as 'maximum'. It was reduced from the real maximum, 152%, in 1952.]], [[The McDonald's slogan used to be "obese rhymes with grease".]], [[Patrick Swayze will star in the movie Ghost Rider 18.]], [[The song Stayin' Alive by the Bee Gees did, in fact, keep the song's writers alive forever.]], [[69% of people in the world are dirty-minded.]], [[1 in every 23 Americans believe that Legos are miniature Gods.]], [[10% of narwhals are passionate Communists.]], [[Barack Obama cannot see Llamas.]], [[Bob The Builder was based on an illegal immigrant from Argentina.]], [[California is clearly visible from Russia.]], [[1 out of 103 plants believe they will be reincarnated into butterflies.]], [[3% of people in Cuba think that Abraham Lincoln grew up in Japan.]], [[6% of statistics are made up on the spot.]], [[Microsoft invented the iPod, but sold the idea to Apple shortly after creation.]], [[Screwdrivers work in reverse on weekends.]], [[Trees became extinct for a brief period during the mid-1980's.]], [[12% of all giraffes' spots are painted onThe term 'cult' is defined as a religious group that has fewer than half of the followers that Snooki does on Twitter.]], [[95% of all Nazis were banned from World War II for having the same moustache as Hitler.]], [[Water guns were invented to protect children from fire.]], [[If you eat a calculator every day, your nails will grow nice and hard.]], [[The highest paying job in America is a professional soda drinker.]], [[Half of all college students don't know what college they're attending.]], [[3% of all houses have no windows.]], [[2% of all computers were created by Nicolas Cage.]], [[The laws of gravity are not in effect during November.]], [[The use of blankets is known to prevent going deaf.]], [[The color green repels ants.]], [[Marvel, as of June 5, 2012, has produced 839 movies.]], [[Ohio is the 63rd largest state in the United States.]], [[7% of Americans are not aware that the sun is visible from Earth.]], [[Light is the absence of darkness.]], [[Glass is just really transparent plastic.]], [[Bed sheets were originally invented to trap Ben Affleck.]], [[73% of Labradors are actually pandas, disguised as dogs.]], [[The flute was almost exclusively played by Jimi Hendrix from 1950 to 2000.]], [[64% of Russians believe pencil shavings are a good source of fiber.]], [[Breathing is illegal in New Jersey and Utah.]], [[Water doesn't affect fire during certain times of the day.]], [[Typewriters were originally going to be a replacement for television.]], [[Shoelaces are often shared across multiple pairs of shoes.]], [[7% of doors lead to a wall.]], [[Nicolas Cage owns 39% of the gold on this planet.]], [[Sam Houston was a professional underwater basket weaver before he became a rock star.]], [[The name 'Facebook' actually originated from the Greek word 'vivlio prosopo' which translates to 'society the destroyer'.]], [[This sentence is in Russian.]], [[Giraffes are the smallest of animals, closely followed by elephants.]], [[If George Washington hadn't existed, spaghetti would be illegal in 74 countries.]], [[Penguins are 1 of 3 known animals to fly with no one looking.]], [[It is illegal to be dead in ancient Greece.]], [[Calculators are made of dinosaur bones and processors from cell phones.]], [[The first Jack-o-Lantern was a penis.]], [[Duct tape has sold better Mountain Dew for 4 years straight.]], [[Toshiba laptops have appeared in 196 movies in the past 3 decades.]], [[Pill bottles are the cause of most computer errors.]], [[A scientific study on peanuts in bars found traces of over 100 unique specimens of urine.]], [[One dog year is equal to seven human years.]], [[This fact is true.]], [[80% of communists play guitars.]], [[4 out of 35 maple trees agree that White Castle is the most terrible restaurant chain of all time.]], [[45% of Siberian families eat kittens for brunch, as that is the way of the calculator god Crothulan.]], [[Hugh Jackman was one of the survivors of the same plane crash that killed three members of Lynyrd Skynyrd.]], [[The death of Tupac Shakur wasn't intentional; he was hit by the bullet in the music video for 'Freak On A Leash' by KoRn.]], [[When Michael Jackson supposedly dangled his child from a building, it was actually a very realistic Cabbage Patch Kid.]], [[You can't fold a piece of paper in half more than 7 times.]], [["Charlie Bit My Toe" is the most popular video on YouTube with just over 15 views.]], [[Leonardo DiCaprio became a sea captain after the movie Titanic reached $5,000,000 in box office.]], [[It's illegal to eat watermelon seeds in Austria.]], [[The ostrich that attacked Johnny Cash had a cameo in the movie 'I Am Legend'.]], [[Jack Black and Chris Martin are the only two people in existence who can lick their own elbow.]], [[On average, earphone wires tangle once every 30 minutes.]], [[5% of all perfumes are made from monkey sweat.]], [[ou are more likely to die from broken electronics than by car accidents.]], [[The name 'Barack Obama' sounds almost identical to the word 'Door' in Arabic.]], [[Planet Earth is the only known planet in the entire universe.]], [[The letters X and Q decided to kwit the alphabet.]], [[1% of apples have blue ears.]], [[110% of humans want to live in Syria as of 1256.]], [[There are 12 million Reese's Pieces in every home in Hawaii.]], [[Osama Bin Laden has been featured in 13 music videos.]], [[The world will end in 1965.]], [[Every time a man named Isaac says "Bazinga," someone in Portugal sets a dictionary on fire.]], [[A number of words are being removed from the dictionary due to the fact that 'nobody really says them anymore'.]], [[Abraham Lincoln correctly predicted the release date of Half-Life 3.]], [[There is no such thing as the color orange; it's just a lighter shade of red.]], [[New Year's Day is the 3rd most likely day of the year that single men want to kiss their aunt.]], [[Pregnant women can go into hibernation for up to three weeks.]], [[Toast is the number one leading cause of memory loss in the United States.]], [[99% of oranges would like to marry a crayon.]], [[Depression is banned in 24 countries.]], [[12 out of 14 lemons end up in Icelandic landfills each week.]], [[The Great Pyramid is held together with duct tape and super glue.]], [[Dogs are capable of sleeping for 27 hours in a single day.]], [[The internet is powered by a horde of gerbils running on a huge wheel.]], [[48% of people who sneeze with their eyes open end up being killed by potatoes in their sleep.]], [[42% of all Swedish people want the government to ban Polar Bears.]], [[14% of all butterflies are secretly penguins.]], [[Beethoven was the first human to discover Switzerland.]], [[Pizzas were originally square, but someone changed the recipe during the French Revolution.]], [[Chocolate makes your liver turn multicolored for an hour.]], [[100% of statistics are lies (including this one).]], [[37% of people suffer from anasvisumaphobia - the fear that somehow, somewhere a duck is always watching you.]], [[3 of every 4 cats can understand human speech.]], [[Bacon was the first fruit to go skydiving.]], [[Santa Clause is on the FBI's Top Ten Most Wanted List]], [[The smell of shoes is known to attract animals.]], [[75% of trees are made from recycled plastic.]], [[In a recent study, 99% of monkeys reported that they were unhappy with gas prices.]], [[Half of all car accidents are the result of vicious, unprovoked squirrel attacks.]], [[There was a building error in 30% of all flashlights.]], [[Some alarm clocks start ringing .]], [[2 seconds before the scheduled wake-up time.]], [[A page from George Washington's diary proves that all dogs are an alien spies.]], [[40% of all rain is rainbow colored.]], [[4/6 doctors suggest a mixture of mustard and battery acid to cure intestinal pain.]], [[24 of 22 people don't understand fractions.]], [[Kangaroos are currently at war with South Sudan.]], [[The next cast for "Dancing With the Stars" includes Darth Maul and Mr.]], [[90% of all people from Alaska agree that orange is a terrible color.]], [[80% of computer-users enjoy the taste of toothpaste.]], [[1 out of 3 people believe that Nintendo is buying the Internet.]], [[If you eat a glow stick, you will glow too.]], [[Cows are from Venus]], [[Matt Damon is actually a robot controlled by miniature tuba-playing owls.]], [[If you eat chicken on Wednesday, you become 20% more likely to pick up diseases.]], [[Seattle is larger than San Fransisco.]], [[Most of the people who celebrate Passover are bears.]], [[Justin Bieber married a piece of bacon on April 19.]], [[Abraham Lincoln was elected president of Poland on 24th of March 1984.]], [[Humans are not born with hands.]], [[67% of newspapers are made from recycled Kleenex tissues.]], [[120% of the world's population like carrots over cows.]], [[iPods increase your brain power by 65%, as proven by scientists in 1807.]], [[The Constitution states that Burger King is based on Jupiter.]], [[The United States government is considering outlawing lip balm.]], [[Cats are allergic to powdered doughnuts.]], [[Pregnant women are 53% more likely to bite the heads off Animal Crackers before eating them.]], [[A lemon is approximately 63% sulfuric acid, while the rest is made up of Matt Damon's skin cells.]], [[About 17% of adults know where babies come from.]], [[The color red is not real.]], [[It's only pink mixed with blue.]], [[The dinosaurs actually died from a lack of chocolate.]], [[George Lucas is considering remaking the Twilight series, with himself as each and every character.]], [[Recent studies show that 1 is now equal to or greater than 2.]], [[4% of ninjas enjoy playing Minecraft.]], [[99% of Rubix cubes are impossible to solve.]], [[If you leave your dog outside for too long, it will turn into a tree.]], [[All televisions are being observed from southern Italy.]], [[The color blue was invented to prevent forest fires.]], [[Ties are born bow ties, then, over time, grow into neckties.]], [[Roofies make you levitate, hence their name.]], [[Pictures of giraffes sell better than laptops.]], [[Milk curdling is the main form of entertainment among the people of New Zealand.]], [[Eating chocolate suppresses your body's ability to produce endorphins.]], [[Endorphins are a hormone designed to attract sharks.]], [[Midnight and Noon are the times of day when our universe comes closest to the Star Trek universe.]], [[96% of the world's Chinese food is imported from Indonesia.]], [[The most common-occurring Jelly Bean color is yellow.]], [[5% of male ladybugs live a parasitic lifestyle in the chest hair of David Hasselhoff.]], [[Before Darth Vader removed Luke Skywalker's hand, he uttered the sentence, 'Imma let you finish, but White Castle is one of the best restaurant chains of all time!']], [[The Lord of the Rings was originally based on a cereal box character.]], [[Every time you say "Marco", a dog somewhere in the world says "Polo".]], [[Erasers cause three times more deaths than graphite on a pencil in a year.]], [[American Idol is the most watched show in China.]], [[According to a recent scientific study, all children under the age of 9 are likely to become lawyers when they are older.]], [[Shakespeare currently lives in Lincoln, Nebraska under the careful watch of the Avengers.]], [[Mark Zuckerberg prefers Twitter.]], [[It is illegal to own a house in Russia.]], [[The #1 cause of kneecap dislocation is the taking off and putting on of skinny jeans.]], [[There are 14 different stages of daydreaming.]], [[29% of American women sleep with their arms crossed.]], [[Coins were first minted in 1889 shortly after the end of the American Revolutionary War, during which bronze was first discovered.]], [[The number 8 defines all life.]], [[Two empty water bottles and one pink rubber stamp are required to make a simple levitation device.]], [[The letter K does not exist.]], [[When you turn 13, your brain stops for a fraction of a second.]], [[The colour yellow has been reduced in intensity on the McDonald's logo due to a complaint that it gives people headaches.]], [[Under a fifth of women don't include cat food in their everyday diet.]], [[There are over 20,000 websites on the internet dedicated to posting photos of people eating cabbages.]], [[An average doughnut is made up of around 70% recycled car tires.]], [[The film Casablanca was shot in backwards, then played in reverse.]], [[The fear of being afraid of clowns is called coulrophobiaphobia.]], [[Cats can't hear trees.]], [[Nine out of ten animal crackers are made form actual animals.]], [[Three percent of all people can't find the 'F' key on their keyboard.]], [[One out of every two smiley faces become frowny faces after a year.]], [[Dogs have a brain the size of an eight-pound bowling ball.]], [[Cupcakes are healthier to eat than muffins.]], [[Seth Arledge is not allowed to use Facebook.]], [[45% of people from Poland want to marry dogs.]], [[Maine is the sunniest state in the U.]], [[Britain has the world's highest rated truck ralley in the world.]], [[Rabies, cancer, and the hiccups can all be cured by attending All-American Rejects concerts.]], [[J. K. Rowling is actually a middle-aged man who lives in the wilderness of Canada. He also wrote the often overlooked book, 'Gary Topper'.]], [[It's illegal to use wine glasses on June 12th.]], [['Free Bird' is the number 1 song on iTunes.]], [[62% of Americans enjoy Swiss Cheese over Cheddar.]], [[54% of gum wrappers on the Earth in 2002 were thrown out of car windows.]], [[Abraham Lincoln and Martin Luther King Jr. both died on February 30.]], [[Light bulbs cause brain tumors in cats.]], [[Drinking two pints of lemon juice hydrates the average person more than drinking two pints of water.]], [[Most websites on the Internet have exactly 144 words.]], [[58% of all Toshiba computers have a built-in cup holder.]], [[In over 73 religions, the number 754 means death.]], [[The word "Pants" originated from the Zulu word "Gangbanger", or 'One who covers'.]], [[The world will end in 1965.]], [[Mussolini is really a macaroni brand.]], [[In over 5 countries it's against the law to dislike the song "Free Bird".]], [[Only 1% of Americans are morbidly obese.]], [[You can light up a dark room as efficiently as a 100 watt light bulb using mirrors and an iPhone (or iPad).]], [[February 31 was the coldest day in Florida in 1987.]], [[Scientific research has shown that in the year 3765, Pluto will be lost and then found inside of the White House.]], [[A standard garden salad contains more fat then a regular Big Mac meal.]], [[9 out of 10 Americans are unaware of how to spell the state they reside in.]], [[7 out of 15 Australians are petrified of bus signs.]], [[William Taft, the 27th president, was held responsible for Amelia Earhart's disappearance.]], [[The number of people that died from watching too many episodes of Dragon Ball Z in one day is coincidentally 9001.]], [[Nintendo planned to create a 4DS in 1959, but it was cancelled.]], [[It became obsolete after doorstops were invented.]], [[The first person to enter the Guinness Book of World Records is in it solely for holding the record of 'first person to enter the Guinness Book of World Records'.]], [[64% of mushroom species are edible, while only 12% are potentially lethal to humans (if eaten in the dark).]], [[A human can survive for several weeks without any lungs.]], [[If you attempt to both italicize and bold the same text, your hard drive will explode.]], [[You can get five radio stations on your braces at different times.]], [[Most rope is made from chinchilla hair.]], [[95 percent of all people mean 'yes' when they say 'no'.]], [[700 people die every day in that moment between 11:59 and midnight when it is neither day nor night.]], [[Pepsi is 10 percent Coke.]], [[All Catholics are allergic to peanuts.]], [[Seth Arledge was one of the five creators of Facebook.]], [[Paperclips are a good alternative to light bulbs.]], [[Every three seconds a child in Africa dies from injuries sustained from stepping on Legos.]], [[Five percent of all socks are woven from barbed wire.]], [[Half of all blood turns green when it hits air.]], [[Chocolate is just white chocolate that has gotten a tan.]], [[The layers of the Earth are the crust, the mantle, the outer core and the inner core is just a rubber-band ball.]], [[Plasma is created when one heats the saliva of Chuck Norris.]], [[Only five people in the whole world have seen Slash's face.]], [[Exactly fifty percent of all dangling earrings dangle upwards.]], [[Three out of six squares don't have edges.]], [[Lead is afraid of erasers.]], [[Baseball caps are made to keep the sun off the back of your neck.]], [[Calculators were originally made to wash dishes.]], [[Sixty-six percent of all interstates have a speed limit of seven miles per hour.]], [[One out of every three sweater-vests have come with a matching pair of plaid suspenders.]], [[Only six percent of Earth globes are life size.]], [[Books don't exist anymore.]], [[Sharpies should be handled with care, as they can cut you.]], [[Sham-wows are woven from God's hair.]], [[Ninety percent of waitresses are out of work actresses.]], [[Only seven percent of whales have taken singing lessons.]], [[One third of all intergalactic accidents happen within one lightyear of your home planet.]], [[The spine of a book is also called a 'kitten'.]], [[The name 'John Smith' sounds almost identical to the phrase 'broken tooth' in Mongolian.]], [[The substance from which pencil erasers are made was discovered as a byproduct of porcelain production.]], [[Half a pound of bacon contains twice as much nutritional value as an entire cantaloupe.]], [[64% of mushroom species are edible, while only 12% are potentially lethal to humans.]], [[A human can survive for several weeks without any lungs.]], [[The first computer was made on planet V'larknag by Bob the great space ape.]], [[However the humans beat him to the patent office.]], [[Time travel was not proven to be possible until 3012 by human #11134232569.]], [[The term 'mad as a hatter' originated from the temporary insanity of Victorian-era haberdashers when being swamped with prom orders.]], [[Spinach is the number one rated kid food.]], [[Most presidents are left handed.]], [[Early models of HP computers outsold candy bars.]], [[When you stand up your lap goes to the moon.]], [['The' is the longest three-letter word in the English language.]], [[The song "Don't Fear the Reaper" by Blue Öyster Cult is about a woman going to the circus.]], [[Fourteen people die from touching trace amounts of poison on a doorbell every day.]], [[Three out of every five ninja stars are made out of pure awesome.]], [[Ninety-eight point five percent of the world's population is from Iceland.]], [[The first monochromatic rainbow was sighted in Denmark.]], [[Superman once collided with a bird after getting his pupils dilated at the doctor.]], [[As a child, Brad Pitt wanted to be a mail man, but later settled for being a movie star.]], [[Most households use stereos as grills.]], [[The PlayStation 2 sold an estimated 2 copies.]], [[Bing received its first 100 users on January 21, 2012.]], [[Zombies are not shuffling brain-eaters, but in fact, are productive members of society.]], [[Christmas trees were originally a monitoring device for homes with children.]], [[In England, it's customary for every boy turning 13 to be initiated into polite society by being smacked in the face with a top hat.]], [[Since 1997, there been 302 total jars of peanut butter sold.]], [[Most Mac users think that they bought a 3D Television instead of a computer.]], [[Whenever a website is created, Nicolas Cage is sent $12.]], [[In 2007 Julius Caesar declared war against the U.]], [[However he was inevitably defeated by Britain.]], [[Everything in the universe is actually made of really tiny pancakes.]], [[The first robot was made by Bot #11769.]], [[Twenty out of twenty-five car salesmen don't brush their teeth after eating puppies.]], [[Most magazine publishers' authors used to be school teachers.]], [[8 out of 15 men prefer milk from Germany.]], [[In 2004, a Brazilian man threw a bag of salt into space for the reason to see what space-chips/fries tasted like.]], [[Nobody has ever actually slid down a banister, you are actually held up by miniature spaceships.]], [[Syrup is considered a delicacy in some countries.]], [[Two out of every four websites created in 1942 were shut down within their first eighty-six years on the internet.]], [[Only seven percent of people are pears.]], [[Twnty-two prcnt of all ky boards ar missing th ky.]], [[The candy Mike & Ikes were named after Basketball star Michael Jordan and great ink maker Ike Blot.]], [[Rhode Island has the most influence on the American presidential race.]], [[Lady GaGa's Mother was Madonna and her Father was Freddy Mercury.]], [[Fifty percent of people prefer half be written as 1/2.]], [[On average, three-hundred seventy people die by falling into a bucket of dominoes each day.]], [[You are five times more likely to drown while watching Austin Powers.]], [[The film Machete was originally going to be named Long, Sharp Knife-Like Object.]], [[Most apples are aquamarine.]], [[Human teeth are made of concrete.]], [[Thirty percent of all cyclopses have three eyes.]], [[Only nine percent of children live past the age of six-hundred forty-four.]], [[Seventeen percent of all people have eyebrows below their eyes.]], [[The pope has the ability to pardon you before you are executed if you are Catholic or Swedish.]], [[You are not allowed to be carrying a concealed television remote after seven o'clock in Washington DC.]], [[It takes twelve pounds of pressure in order to make a piece of coal into a diamond.]], [[Eighty-two percent of all dimples are four centimeters in depth.]], [[Ninety-nine percent of women are named David.]], [[Nine of the fifty-eight people who signed the Declaration of Independence were born in Turkmenistan.]], [[White-Out was originally going to be black in color.]], [[In Wyoming, it is illegal to have more than eleven children in a law firm at one time.]], [[Donald Trump's hair is actually a skunk he dyed orange.]], [[Forty percent of all pillows are stuffed with sporks.]], [[Nine out of ten lines are vertical.]], [[Quentin Tarantino wrote and directed four out of the five My Little Pony movies.]], [[Vanadium is the only element which was not featured explicitly in the 2009 film Avatar.]], [[George Nigh was the first governor of Oklahoma to not be allergic to apples.]], [[Since records began in 1789, over 80 billion people have eaten an entire bus.]], [[It's fairly common to receive a bag of cheese when buying a coat.]], [[Analysts predict a 23% increase in sales of pet bears in the next 3 years.]], [[People tend to buy traffic signs more often than lawn mowers.]], [[Broccoli was first synthesized by the ancient Egyptians more than a century ago.]], [[No two countries with McDonald's franchises have ever gone to war.]], [[The five-second-rule also works with air conditioners.]], [[Cookbooks sell better than CDs.]], [[Pirates are mostly found in Asia.]], [[In Canada, Hockey is mostly played on boats.]], [[Red roses get their color from ketchup, whilst yellow from the egg yolk.]], [[Bill Gates's third favorite hobby is to clean showers.]], [[The element Seaborgium is named after the popular movie "Pulp Fiction".]], [[About 85 teenagers are struck by lightning each day.]], [[There are 3 total iPhones in California.]], [[Police officers are 37% Teflon.]], [[Eating canned chili is the secret of bodybuilders.]], [[There are pills for all current (and future) ailments.]], [[The Xbox 360 system contains 360 magnets, which is where its name comes from.]], [[According to scientific study, the world's fastest reader can finish War and Peace 3 times every second.]], [[In 2010, many homes used their Nintendo Wii as an air conditioner.]], [[The US government has the power to shut down the Internet.]], [[The Moon will fall onto North Dakota in approximately 325 years from now.]], [[British scientists have created a solution to fix the holes in the ozone layer with the use of duct tape.]], [[The iPod Classic was the only Apple product to sell 37 copies in a day.]], [[Gmail was bought by Pepsi for $2 billion dollars and 53 cents.]], [[Russia is the top buyer of toothpaste.]], [[The T in Mr. T's name stands for quasar.]], [[A Where's Waldo movie was scheduled to come out in 2013, but production stopped after the actor playing Waldo got too far into character and disappeared.]], [[Justin Bieber does the voice of the Aflac duck.]], [[Most DVD players can only play Adam Sandler movies.]], [[There are more clouds around Jamaica than any other country.]], [[Pine trees sell best on Valentine's Day.]], [[LCD screens emit gamma-radiation.]], [[The Great Wall of China is the only manmade structure visible from space.]], [[You can't fold a piece of paper in half more than 3 times.]], [[Staplers are a common gift during Christmas.]], [[You're more likely to meet a celebrity in New York.]], [[Toddlers usually use Twitter.]], [[Ketchup is only produced in North America.]], [[Tacos actually originate from New Zealand.]], [[A flavor of ice cream called Jellyberry, containing Jell-o and berries, isset come out on 25th March, 2015.]], [[Pi (a huge number) actually equals 3.98564984521457.]], [[Gold is worth $1 per 100 pounds.]], [[Hairspray is considered a weapon in most airports.]], [[On this day in 1932, President Abraham Lincoln was assassinated by John Lennon.]], [[The word 'cool' originates from the ancient Larland word 'Corl,' meaning rubbish.]], [[7 out of 10 people prefer to use a comb as an eating utensil.]], [[Men with grey hair are often under 36 years old.]], [[You can't work without a computer.]], [[Nyan Cat is not a poptart, but actually a waffle.]], [[58% of the world's population carry a backpack with the character Gir from Invader Zim with them at all times.]], [[Around 80 countries use Cow feces as a means of transportation.]], [[Bill Gates's favorite number is 394.]], [[The British Royal family are named so because of the metric system.]], [[The average size of a file put on a USB stick is 28 Terabytes.]], [[Over half of the female population can open a bottle with their belly button.]], [[The color red can't be seen on hats.]], [[Blackberry phones have the potential to be used as refrigerators.]], [[MySpace is worth $498,057,326.]], [[CNN is the leading manufacturer of 3D TVs.]], [[Netflix's DVDs come from a basement in India.]], [[Michael Bay invented the Windows Phone.]], [[In 2010, the Nintendo DS sold better than food.]], [[Yahoo! hasn't had a single visitor since 1786.]], [[Bones contain gasoline.]], [[In 1997, printers were able to print movies onto paper.]], [[5 billion people watch Spongebob Squarepants every day.]], [[NASA has only ever sent 2 astronauts to space.]], [[Kodak was the first company to sell backpacks.]], [[Pharmacies don't use electricity.]], [[iPad sales were higher than ever in 1998.]], [[Call of Duty is mostly played by Robert Downey Jr.]], [[When Tylenol was first made, it came in a tin can.]], [[There are no roads in Alaska.]], [[Most people who work in New York have a farm.]], [[Over 50% of schools in the US do not serve lunch.]], [[Some people look at sunflowers for a living.]], [[74% of all websites don't have words on them.]], [[Ben Stiller owns AOL.]], [[Buses aren't allowed to drive near buildings.]], [[7 out of 10 men think it is impolite to watch TV alone.]], [[Comedy Central is watched by 58 people a day.]], [[Ford trucks run on sand.]], [[California is known for being the home of the first bank.]], [[Only about 2,000 U.]], [[citizens vote every 4 years.]], [[The show South Park has 879 characters appearing in each season.]], [[Will Smith cannot see blankets.]], [[Psychics are scared of cars.]], [[Lawyers make less money than janitors.]], [[Internet Explorer is mostly used by fish.]], [[World of Warcraft cannot be played on laptops.]], [[Sweaters are made from recycled t-shirts.]], [[Only 25 phones were sold in 2011.]], [[People with beards often do not eat potato chips.]], [[You're not allowed to wear yellow shoes at Walmart.]], [[Snakes are afraid of television remotes.]], [[Glue is Europe's top-selling export.]], [[People often chew gum while ordering food at Burger King.]], [[Brazil was the first country to make their own money.]], [[VHS tapes were originally made out of glass.]], [[Microsoft is the leading manufacturer of lollipops.]], [[Verizon is worth $47,898.]], [[Chuck Norris owns the Earth.]], [[MTV was established during the American Revolution.]], [[Criss Angel has more fans than Adam Sandler.]], [[Chocolate is eaten the most in Wyoming.]], [[Angry Birds is known to break up riots.]], [[Peanuts are an active ingredient in most painkillers.]], [[Home owners are less likely to go to McDonald's.]], [[Nike hasn't sold a pair of shoes since 1994.]], [[People who live in Alaska are afraid to wear socks in bed.]], [[It's possible to cure cancer with Pepsi, but it is forbidden by the Canadian government.]], [[Toshiba made 3,971 televisions in 1639.]], [[7 out of 9 cats have learned how to use an iPhone.]], [[Monkeys do not need oxygen to live.]], [[People do not own desks in Japan.]], [[Soda is sold less during November.]], [[Most cell phone owners do not own houses.]], [[It is illegal to use wine glasses on June 12th.]], [[The Android operating system on phones was inspired by Thomas Edison.]], [[The band Korn often plays music from the Beatles at their concerts.]], [[Sony has made more than 17 gaming consoles in 2012 alone.]], [[Light bulbs don't work on Sundays.]], [[The first car ran on earwax.]], [[3,020 TVs were made in 1739.]], [[There are 8 landfills in the world.]], [[The year is currently 1972.]], [[Pretzels were discovered by Albert Einstein.]], [[YouTube has more members than there are people on Earth.]], [[Aliens often drive tractors.]], [[Dane Cook owns the first telephone ever made.]], [[Fruit Punch is not made from fruit.]], [[Camera tripods are free in Canada.]], [[People born in the years 1957-1962 are bulletproof.]], [[The word "fact" comes from the Greek words "global warming".]], [[Wallpaper, just like glass, is transparent.]], [[People die in beds more often than they do in cars.]], [[The average person says 26 words each day.]], [["Aspirin: Extra Strength" was originally named "Aspirin: Hangover Edition".]], [[Apes do not urinate.]], [[There are currently 23 videos on YouTube.]], [[Brazil is the largest country in the world.]], [[It's illegal to eat cardboard.]], [[Electrical outlets were invented by Abraham Lincoln.]], [[A baby is born every time a new version of iTunes comes out.]], [[8 out of 10 doctors agree that snoring can relieve pain caused by fire.]], [[Drinking Vodka causes you to lose hair.]], [[It is impossible to have three 5 Dollar Bills in one pocket at the same time.]], [[Socks are usually only made during June.]], [[Intelligent people often own beds made of sand.]], [[Facebook's headquarters is comprised entirely of keyboards.]], [[Paper is supposed to smell like cats.]], [[24 total tablet PCs have been sold in the last 8 years.]], [[The color lime green is used ten times more than blue.]], [[The 5 Dollar Bill was originally made from deodorant.]], [[Chewing gum can turn on light switches.]], [[Scotch tape has been sold to 86 millionaires.]], [[Ink pens are a leading cause of wildfires.]], [[The first shower was made in 1972, but was not used until 2009.]], [[Tin foil is made from old blankets.]], [[The show Futurama features 3 cell phones in each episode.]], [[Average hard drives have 3 KB of storage capacity.]], [[It's impossible to type and look at something at the same time.]], [[Guitar strings contain nutmeg.]], [[Fireworks haven't been used for 18 years.]], [[The iPhone was the first phone to be used as a desk.]], [[Today is the planet Saturn's birthday.]], [[Light bulbs contain tomato soup.]], [[Google is the #1 vendor in plastic cups.]], [[Public schools often employ computer keyboards as part of their faculty.]], [[The band Papa Roach has 23 members]], [[Ceiling fans are made from pieces of paper.]], [[Chewing gum was not chewed on November 10, 1986.]], [[A calendar hasn't been bought for 17 days.]], [[Teeth are made from soda bottles.]], [[Mountain Dew was originally made for the Queen of England.]], [[YouTube videos are commonly created by ducks.]], [[$2 trillion dollars is spent every day on paint.]], [[Anti-depressants were created by Benjamin Franklin.]], [[Cars are powered by eagles.]], [[The Golden Globe has been awarded 3 times.]], [[There are 18 Jewish people in Chicago.]], [[Blankets are made from crushed up vegetables.]], [[Microsoft invented air.]], [[Hollywood has the most stray cats in the world.]], [[Couches are sat on by 86% of the world's population.]], [[The moon is the shape of a triangle on Mondays.]], [[Paper has been outlawed in Oregon.]], [[Adam West has appeared in 3,847 different movies.]], [[Tennis balls are commonly used with ceiling fans.]], [[Hot Wheels toy cars were originally intended to be used as weapons for the Army.]], [[Handguns don't work on Tuesdays.]], [[Radiation poisoning affects 1 in 3 glass objects.]], [[Italian suits are the most-bought toy for infants.]], [[Alcohol bottles contain lemon juice.]], [[Rubber is made from old computers.]], [[50,000 people join Facebook every second.]], [[HTC cell phone owners also often own plastic cups.]], [[Cats cannot see doors without locks.]], [[Fruit punch is made from fish waste.]], [[Charlie Sheen is the owner of 12 bottles of maple syrup.]], [[The game Dungeons & Dragons is mostly played by people who are deaf.]], [[Family Guy has been nominated for a Grammy 83 times in a row.]], [[Google Chrome was created on October 13, 1936 at 8:52 AM.]], [[The word "aglet" is the fifth most used word in the English language.]], [[Depression affects 3 in 5 potato chips.]], [[Body Spray is known to make lions stand on two feet.]], [[Tissues were invented by Abraham Lincoln.]], [[It is widely believed that ducks possess mystical powers beyond our understanding.]], [[The world's record for the longest hot dog is 3 inches.]], [[When leprechauns die, they are transformed into earwax.]], [[Zippo lighters cannot be lit while on a bus.]], [[People who own leather jackets almost never die.]], [[Sheep occasionally smoke cigarettes.]], [[The first robot was made into an iPod in 1873.]], [[Mirrors are invisible on Labor Day.]], [[Urination is a common way to save energy.]], [[Millionaires are often homeless.]], [[Televisions made in 1957 were made from lollipops.]], [[Trees in North Dakota give off a scent similar to Doritos.]], [[Chuck Norris holds 72 awards for having the most hair in the United States.]], [[Chairs have a higher chance to explode while touching a baseball bat.]], [[Grapes need 4 meals a day (not including snacks) in order to live.]], [[Listening to the ocean is known to decrease radiation levels in cats.]], [[Wearing socks often causes mutated offspring.]], [[The last time that a cat talked was in 1863.]], [[iPod's are considered to be miniature cleaning utensils.]], [[Large T-shirts contain cinnamon.]], [[People often create blogs to spread worship of food.]], [[Humans lose approximately 700 hairs every hour.]], [[Cheddar cheese is transparent on Mondays.]], [[Door bells can cause breast cancer in men.]], [[The word "oxymoron" is used billions of times every second.]], [[19 Italians speak with their belly-button.]], [[If bald people had hair, then their hair would be green.]], [[Roses give off a scent similar to Toshiba laptops.]], [[Owners of glass dogs tend to have a lifespan greater than 359 months.]], [[Modern-day glass windows started out as shirts.]], [[Fake blood is made from cat blood.]], [[Watching pornography is prohibited between the hours of 6 PM and 3 AM.]], [[Comedians often do not wear pants.]], [[People with dark hair buy houses more frequently than other people.]], [[Owning framed pictures causes cancer.]], [[The people on planet Saturn are low on trash bags.]], [[Having frequent erections usually means that you are depressed.]], [[Flutes are commonly played by geese.]], [[The color pink is invisible to the naked eye.]], [[Drinking beer causes pink eye.]], [[People who study to become chefs have a very high chance to worship the devil.]], [[Children's shows are most popular among Cubans.]], [[The Constitution is 168 characters long (almost short enough to fit in a text message).]], [[Plastic no longer can be seen by cameras.]], [[Chuck Norris holds 72 awards for having the most hair in the United States.]], [[Wearing socks often causes mutated offspring.]], [[Underlining text causes blindness.]], [[Cavemen used cell phone antennas to cook food.]], [[Cupcakes are mostly eaten by Catholics.]], [[Humming songs in public is against the law in 23 states.]], [[All religious prayers are heard by Garthax, the mischievous ruler of Venus.]], [[Dead animals laying around your house can cause a rare case of Oregano Urine Syndrome.]], [[Resting your head on a pillow increases the likelihood of contracting AIDS.]], [[People over the age of 70 have a higher chance to develop tin foil noses.]], [[The English alphabet is 28 years old.]], [[To become a woman, you must own at least 13 light bulbs.]], [[2 out of 5 American men are married to their dogs.]], [[Every 3 men have a chance of becoming pregnant.]], [[The internet causes diabetes.]], [[Cat litter is made from dinosaur tongues.]], [[1 in 4 chimps will attend high school in the next 3 months.]], [[2 romance movies are made every 15 years.]], [[Beef jerky has been linked to premature births.]], [[Walruses migrate to India every 4-6 years.]], [[Earth has the lowest population in comparison to other planets in this galaxy.]], [[YouTube has 23 daily users.]], [[The Queen of England doesn't actually live in England.]], [[Fish can be allergic to themselves.]], [[This causes them to grow feet.]], [[Thomas Edison invented the first calendar.]], [[The first IHOP was in Egypt.]], [[Computers were invented in 1863.]], [[Drunken internet browsing causes millions of deaths each day.]], [[Two And A Half Men was the most popular TV show in 1956.]], [[It is more common to see the color black in vomit than yellow.]], [[Recycling is the #1 cause of global warming.]], [[Water has been walked on by more people than wood.]] } function fact.get_keyboard() return json.encode( { ['inline_keyboard'] = { { { ['text'] = 'Generate Another', ['callback_data'] = 'fact:new' } } } } ) end function fact:on_callback_query(callback_query, message) return mattata.edit_message_text( message.chat.id, message.message_id, facts[math.random(#facts)], nil, true, fact.get_keyboard() ) end function fact:on_message(message) local keyboard = fact.get_keyboard() return mattata.send_message( message.chat.id, facts[math.random(#facts)], nil, true, false, nil, fact.get_keyboard() ) end return fact
--- -- @classmod RagdollableClient -- @author Quenty local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local Players = game:GetService("Players") local BaseObject = require("BaseObject") local RagdollableConstants = require("RagdollableConstants") local CharacterUtils = require("CharacterUtils") local RagdollRigging = require("RagdollRigging") local HumanoidAnimatorUtils = require("HumanoidAnimatorUtils") local Maid = require("Maid") local RagdollBindersClient = require("RagdollBindersClient") local RagdollUtils = require("RagdollUtils") local RagdollableClient = setmetatable({}, BaseObject) RagdollableClient.ClassName = "RagdollableClient" RagdollableClient.__index = RagdollableClient require("PromiseRemoteEventMixin"):Add(RagdollableClient, RagdollableConstants.REMOTE_EVENT_NAME) function RagdollableClient.new(humanoid) local self = setmetatable(BaseObject.new(humanoid), RagdollableClient) self._player = CharacterUtils.getPlayerFromCharacter(self._obj) if self._player == Players.LocalPlayer then self:PromiseRemoteEvent():Then(function(remoteEvent) self._localPlayerRemoteEvent = remoteEvent or error("No remoteEvent") self:_setupLocal() end) else self:_setupLocal() end return self end function RagdollableClient:_setupLocal() self._maid:GiveTask(RagdollBindersClient.Ragdoll:ObserveInstance(self._obj, function() self:_onRagdollChanged() end)) self:_onRagdollChanged() end function RagdollableClient:_onRagdollChanged() if RagdollBindersClient.Ragdoll:Get(self._obj) then self._maid._ragdoll = self:_ragdollLocal() if self._localPlayerRemoteEvent then -- Tell the server that we started simulating our ragdoll self._localPlayerRemoteEvent:FireServer(true) end else self._maid._ragdoll = nil if self._localPlayerRemoteEvent then -- Let server know to reset! self._localPlayerRemoteEvent:FireServer(false) end end end function RagdollableClient:_ragdollLocal() local maid = Maid.new() -- Really hard to infer whether or not we're the network owner, so we just try to do this for every single one. -- Hopefully these are already created. Intent here is to reset friction. RagdollRigging.createRagdollJoints(self._obj.Parent, self._obj.RigType) maid:GiveTask(RagdollUtils.setupState(self._obj)) maid:GiveTask(RagdollUtils.setupMotors(self._obj)) maid:GiveTask(RagdollUtils.setupHead(self._obj)) -- Do this after we setup motors HumanoidAnimatorUtils.stopAnimations(self._obj, 0) maid:GiveTask(self._obj.AnimationPlayed:Connect(function(track) track:Stop(0) end)) maid:GiveTask(RagdollUtils.preventAnimationTransformLoop(self._obj)) return maid end return RagdollableClient
--- GENERATED CODE - DO NOT MODIFY -- AWS Elemental MediaConvert (mediaconvert-2017-08-29) local M = {} M.metadata = { api_version = "2017-08-29", json_version = "1.1", protocol = "rest-json", checksum_format = "", endpoint_prefix = "mediaconvert", service_abbreviation = "MediaConvert", service_full_name = "AWS Elemental MediaConvert", signature_version = "v4", target_prefix = "", timestamp_format = "", global_endpoint = "", uid = "mediaconvert-2017-08-29", } local keys = {} local asserts = {} keys.Id3Insertion = { ["Timecode"] = true, ["Id3"] = true, nil } function asserts.AssertId3Insertion(struct) assert(struct) assert(type(struct) == "table", "Expected Id3Insertion to be of type 'table'") if struct["Timecode"] then asserts.Assert__stringPattern010920405090509092(struct["Timecode"]) end if struct["Id3"] then asserts.Assert__stringPatternAZaZ0902(struct["Id3"]) end for k,_ in pairs(struct) do assert(keys.Id3Insertion[k], "Id3Insertion contains unknown key " .. tostring(k)) end end --- Create a structure of type Id3Insertion -- To insert ID3 tags in your output, specify two values. Use ID3 tag (Id3) to specify the base 64 encoded string and use Timecode (TimeCode) to specify the time when the tag should be inserted. To insert multiple ID3 tags in your output, create multiple instances of ID3 insertion (Id3Insertion). -- @param args Table with arguments in key-value form. -- Valid keys: -- * Timecode [__stringPattern010920405090509092] Provide a Timecode (TimeCode) in HH:MM:SS:FF or HH:MM:SS;FF format. -- * Id3 [__stringPatternAZaZ0902] Use ID3 tag (Id3) to provide a tag value in base64-encode format. -- @return Id3Insertion structure as a key-value pair table function M.Id3Insertion(args) assert(args, "You must provide an argument table when creating Id3Insertion") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Timecode"] = args["Timecode"], ["Id3"] = args["Id3"], } asserts.AssertId3Insertion(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.AudioSelector = { ["LanguageCode"] = true, ["RemixSettings"] = true, ["ProgramSelection"] = true, ["ExternalAudioFileInput"] = true, ["Tracks"] = true, ["SelectorType"] = true, ["CustomLanguageCode"] = true, ["Offset"] = true, ["Pids"] = true, ["DefaultSelection"] = true, nil } function asserts.AssertAudioSelector(struct) assert(struct) assert(type(struct) == "table", "Expected AudioSelector to be of type 'table'") if struct["LanguageCode"] then asserts.AssertLanguageCode(struct["LanguageCode"]) end if struct["RemixSettings"] then asserts.AssertRemixSettings(struct["RemixSettings"]) end if struct["ProgramSelection"] then asserts.Assert__integerMin0Max8(struct["ProgramSelection"]) end if struct["ExternalAudioFileInput"] then asserts.Assert__stringPatternS3MM2VVMMPPEEGGAAVVIIMMPP4FFLLVVMMPPTTMMPPGGMM4VVTTRRPPFF4VVMM2TTSSTTSS264HH264MMKKVVMMOOVVMMTTSSMM2TTWWMMVVAASSFFVVOOBB3GGPP3GGPPPPMMXXFFDDIIVVXXXXVVIIDDRRAAWWDDVVGGXXFFMM1VV3GG2VVMMFFMM3UU8LLCCHHGGXXFFMMPPEEGG2MMXXFFMMPPEEGG2MMXXFFHHDDWWAAVVYY4MMAAAACCAAIIFFFFMMPP2AACC3EECC3DDTTSSEE(struct["ExternalAudioFileInput"]) end if struct["Tracks"] then asserts.Assert__listOf__integerMin1Max2147483647(struct["Tracks"]) end if struct["SelectorType"] then asserts.AssertAudioSelectorType(struct["SelectorType"]) end if struct["CustomLanguageCode"] then asserts.Assert__stringMin3Max3PatternAZaZ3(struct["CustomLanguageCode"]) end if struct["Offset"] then asserts.Assert__integerMinNegative2147483648Max2147483647(struct["Offset"]) end if struct["Pids"] then asserts.Assert__listOf__integerMin1Max2147483647(struct["Pids"]) end if struct["DefaultSelection"] then asserts.AssertAudioDefaultSelection(struct["DefaultSelection"]) end for k,_ in pairs(struct) do assert(keys.AudioSelector[k], "AudioSelector contains unknown key " .. tostring(k)) end end --- Create a structure of type AudioSelector -- Selector for Audio -- @param args Table with arguments in key-value form. -- Valid keys: -- * LanguageCode [LanguageCode] Selects a specific language code from within an audio source. -- * RemixSettings [RemixSettings] Use these settings to reorder the audio channels of one input to match those of another input. This allows you to combine the two files into a single output, one after the other. -- * ProgramSelection [__integerMin0Max8] Use this setting for input streams that contain Dolby E, to have the service extract specific program data from the track. To select multiple programs, create multiple selectors with the same Track and different Program numbers. In the console, this setting is visible when you set Selector type to Track. Choose the program number from the dropdown list. If you are sending a JSON file, provide the program ID, which is part of the audio metadata. If your input file has incorrect metadata, you can choose All channels instead of a program number to have the service ignore the program IDs and include all the programs in the track. -- * ExternalAudioFileInput [__stringPatternS3MM2VVMMPPEEGGAAVVIIMMPP4FFLLVVMMPPTTMMPPGGMM4VVTTRRPPFF4VVMM2TTSSTTSS264HH264MMKKVVMMOOVVMMTTSSMM2TTWWMMVVAASSFFVVOOBB3GGPP3GGPPPPMMXXFFDDIIVVXXXXVVIIDDRRAAWWDDVVGGXXFFMM1VV3GG2VVMMFFMM3UU8LLCCHHGGXXFFMMPPEEGG2MMXXFFMMPPEEGG2MMXXFFHHDDWWAAVVYY4MMAAAACCAAIIFFFFMMPP2AACC3EECC3DDTTSSEE] Specifies audio data from an external file source. -- * Tracks [__listOf__integerMin1Max2147483647] Identify a track from the input audio to include in this selector by entering the track index number. To include several tracks in a single audio selector, specify multiple tracks as follows. Using the console, enter a comma-separated list. For examle, type "1,2,3" to include tracks 1 through 3. Specifying directly in your JSON job file, provide the track numbers in an array. For example, "tracks": [1,2,3]. -- * SelectorType [AudioSelectorType] -- * CustomLanguageCode [__stringMin3Max3PatternAZaZ3] Selects a specific language code from within an audio source, using the ISO 639-2 or ISO 639-3 three-letter language code -- * Offset [__integerMinNegative2147483648Max2147483647] Specifies a time delta in milliseconds to offset the audio from the input video. -- * Pids [__listOf__integerMin1Max2147483647] Selects a specific PID from within an audio source (e.g. 257 selects PID 0x101). -- * DefaultSelection [AudioDefaultSelection] -- @return AudioSelector structure as a key-value pair table function M.AudioSelector(args) assert(args, "You must provide an argument table when creating AudioSelector") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["LanguageCode"] = args["LanguageCode"], ["RemixSettings"] = args["RemixSettings"], ["ProgramSelection"] = args["ProgramSelection"], ["ExternalAudioFileInput"] = args["ExternalAudioFileInput"], ["Tracks"] = args["Tracks"], ["SelectorType"] = args["SelectorType"], ["CustomLanguageCode"] = args["CustomLanguageCode"], ["Offset"] = args["Offset"], ["Pids"] = args["Pids"], ["DefaultSelection"] = args["DefaultSelection"], } asserts.AssertAudioSelector(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.AacSettings = { ["CodecProfile"] = true, ["Specification"] = true, ["RateControlMode"] = true, ["AudioDescriptionBroadcasterMix"] = true, ["SampleRate"] = true, ["VbrQuality"] = true, ["Bitrate"] = true, ["CodingMode"] = true, ["RawFormat"] = true, nil } function asserts.AssertAacSettings(struct) assert(struct) assert(type(struct) == "table", "Expected AacSettings to be of type 'table'") if struct["CodecProfile"] then asserts.AssertAacCodecProfile(struct["CodecProfile"]) end if struct["Specification"] then asserts.AssertAacSpecification(struct["Specification"]) end if struct["RateControlMode"] then asserts.AssertAacRateControlMode(struct["RateControlMode"]) end if struct["AudioDescriptionBroadcasterMix"] then asserts.AssertAacAudioDescriptionBroadcasterMix(struct["AudioDescriptionBroadcasterMix"]) end if struct["SampleRate"] then asserts.Assert__integerMin8000Max96000(struct["SampleRate"]) end if struct["VbrQuality"] then asserts.AssertAacVbrQuality(struct["VbrQuality"]) end if struct["Bitrate"] then asserts.Assert__integerMin6000Max1024000(struct["Bitrate"]) end if struct["CodingMode"] then asserts.AssertAacCodingMode(struct["CodingMode"]) end if struct["RawFormat"] then asserts.AssertAacRawFormat(struct["RawFormat"]) end for k,_ in pairs(struct) do assert(keys.AacSettings[k], "AacSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type AacSettings -- Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the value AAC. The service accepts one of two mutually exclusive groups of AAC settings--VBR and CBR. To select one of these modes, set the value of Bitrate control mode (rateControlMode) to "VBR" or "CBR". In VBR mode, you control the audio quality with the setting VBR quality (vbrQuality). In CBR mode, you use the setting Bitrate (bitrate). Defaults and valid values depend on the rate control mode. -- @param args Table with arguments in key-value form. -- Valid keys: -- * CodecProfile [AacCodecProfile] -- * Specification [AacSpecification] -- * RateControlMode [AacRateControlMode] -- * AudioDescriptionBroadcasterMix [AacAudioDescriptionBroadcasterMix] -- * SampleRate [__integerMin8000Max96000] Sample rate in Hz. Valid values depend on rate control mode and profile. -- * VbrQuality [AacVbrQuality] -- * Bitrate [__integerMin6000Max1024000] Average bitrate in bits/second. Defaults and valid values depend on rate control mode and profile. -- * CodingMode [AacCodingMode] -- * RawFormat [AacRawFormat] -- @return AacSettings structure as a key-value pair table function M.AacSettings(args) assert(args, "You must provide an argument table when creating AacSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["CodecProfile"] = args["CodecProfile"], ["Specification"] = args["Specification"], ["RateControlMode"] = args["RateControlMode"], ["AudioDescriptionBroadcasterMix"] = args["AudioDescriptionBroadcasterMix"], ["SampleRate"] = args["SampleRate"], ["VbrQuality"] = args["VbrQuality"], ["Bitrate"] = args["Bitrate"], ["CodingMode"] = args["CodingMode"], ["RawFormat"] = args["RawFormat"], } asserts.AssertAacSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.OutputDetail = { ["DurationInMs"] = true, ["VideoDetails"] = true, nil } function asserts.AssertOutputDetail(struct) assert(struct) assert(type(struct) == "table", "Expected OutputDetail to be of type 'table'") if struct["DurationInMs"] then asserts.Assert__integer(struct["DurationInMs"]) end if struct["VideoDetails"] then asserts.AssertVideoDetail(struct["VideoDetails"]) end for k,_ in pairs(struct) do assert(keys.OutputDetail[k], "OutputDetail contains unknown key " .. tostring(k)) end end --- Create a structure of type OutputDetail -- Details regarding output -- @param args Table with arguments in key-value form. -- Valid keys: -- * DurationInMs [__integer] Duration in milliseconds -- * VideoDetails [VideoDetail] -- @return OutputDetail structure as a key-value pair table function M.OutputDetail(args) assert(args, "You must provide an argument table when creating OutputDetail") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["DurationInMs"] = args["DurationInMs"], ["VideoDetails"] = args["VideoDetails"], } asserts.AssertOutputDetail(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.TeletextDestinationSettings = { ["PageNumber"] = true, nil } function asserts.AssertTeletextDestinationSettings(struct) assert(struct) assert(type(struct) == "table", "Expected TeletextDestinationSettings to be of type 'table'") if struct["PageNumber"] then asserts.Assert__stringMin3Max3Pattern1809aFAF09aEAE(struct["PageNumber"]) end for k,_ in pairs(struct) do assert(keys.TeletextDestinationSettings[k], "TeletextDestinationSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type TeletextDestinationSettings -- Settings for Teletext caption output -- @param args Table with arguments in key-value form. -- Valid keys: -- * PageNumber [__stringMin3Max3Pattern1809aFAF09aEAE] Set pageNumber to the Teletext page number for the destination captions for this output. This value must be a three-digit hexadecimal string; strings ending in -FF are invalid. If you are passing through the entire set of Teletext data, do not use this field. -- @return TeletextDestinationSettings structure as a key-value pair table function M.TeletextDestinationSettings(args) assert(args, "You must provide an argument table when creating TeletextDestinationSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["PageNumber"] = args["PageNumber"], } asserts.AssertTeletextDestinationSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.JobTemplate = { ["Category"] = true, ["Name"] = true, ["Settings"] = true, ["LastUpdated"] = true, ["Queue"] = true, ["Arn"] = true, ["Type"] = true, ["CreatedAt"] = true, ["Description"] = true, nil } function asserts.AssertJobTemplate(struct) assert(struct) assert(type(struct) == "table", "Expected JobTemplate to be of type 'table'") assert(struct["Settings"], "Expected key Settings to exist in table") assert(struct["Name"], "Expected key Name to exist in table") if struct["Category"] then asserts.Assert__string(struct["Category"]) end if struct["Name"] then asserts.Assert__string(struct["Name"]) end if struct["Settings"] then asserts.AssertJobTemplateSettings(struct["Settings"]) end if struct["LastUpdated"] then asserts.Assert__timestampUnix(struct["LastUpdated"]) end if struct["Queue"] then asserts.Assert__string(struct["Queue"]) end if struct["Arn"] then asserts.Assert__string(struct["Arn"]) end if struct["Type"] then asserts.AssertType(struct["Type"]) end if struct["CreatedAt"] then asserts.Assert__timestampUnix(struct["CreatedAt"]) end if struct["Description"] then asserts.Assert__string(struct["Description"]) end for k,_ in pairs(struct) do assert(keys.JobTemplate[k], "JobTemplate contains unknown key " .. tostring(k)) end end --- Create a structure of type JobTemplate -- A job template is a pre-made set of encoding instructions that you can use to quickly create a job. -- @param args Table with arguments in key-value form. -- Valid keys: -- * Category [__string] An optional category you create to organize your job templates. -- * Name [__string] A name you create for each job template. Each name must be unique within your account. -- * Settings [JobTemplateSettings] -- * LastUpdated [__timestampUnix] The timestamp in epoch seconds when the Job template was last updated. -- * Queue [__string] Optional. The queue that jobs created from this template are assigned to. If you don't specify this, jobs will go to the default queue. -- * Arn [__string] An identifier for this resource that is unique within all of AWS. -- * Type [Type] A job template can be of two types: system or custom. System or built-in job templates can't be modified or deleted by the user. -- * CreatedAt [__timestampUnix] The timestamp in epoch seconds for Job template creation. -- * Description [__string] An optional description you create for each job template. -- Required key: Settings -- Required key: Name -- @return JobTemplate structure as a key-value pair table function M.JobTemplate(args) assert(args, "You must provide an argument table when creating JobTemplate") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Category"] = args["Category"], ["Name"] = args["Name"], ["Settings"] = args["Settings"], ["LastUpdated"] = args["LastUpdated"], ["Queue"] = args["Queue"], ["Arn"] = args["Arn"], ["Type"] = args["Type"], ["CreatedAt"] = args["CreatedAt"], ["Description"] = args["Description"], } asserts.AssertJobTemplate(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.DeleteJobTemplateRequest = { ["Name"] = true, nil } function asserts.AssertDeleteJobTemplateRequest(struct) assert(struct) assert(type(struct) == "table", "Expected DeleteJobTemplateRequest to be of type 'table'") assert(struct["Name"], "Expected key Name to exist in table") if struct["Name"] then asserts.Assert__string(struct["Name"]) end for k,_ in pairs(struct) do assert(keys.DeleteJobTemplateRequest[k], "DeleteJobTemplateRequest contains unknown key " .. tostring(k)) end end --- Create a structure of type DeleteJobTemplateRequest -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Name [__string] The name of the job template to be deleted. -- Required key: Name -- @return DeleteJobTemplateRequest structure as a key-value pair table function M.DeleteJobTemplateRequest(args) assert(args, "You must provide an argument table when creating DeleteJobTemplateRequest") local query_args = { } local uri_args = { ["{name}"] = args["Name"], } local header_args = { } local all_args = { ["Name"] = args["Name"], } asserts.AssertDeleteJobTemplateRequest(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.Eac3Settings = { ["LoRoSurroundMixLevel"] = true, ["DynamicRangeCompressionRf"] = true, ["DynamicRangeCompressionLine"] = true, ["PhaseControl"] = true, ["MetadataControl"] = true, ["StereoDownmix"] = true, ["BitstreamMode"] = true, ["LfeControl"] = true, ["LtRtCenterMixLevel"] = true, ["Dialnorm"] = true, ["DcFilter"] = true, ["AttenuationControl"] = true, ["LfeFilter"] = true, ["LtRtSurroundMixLevel"] = true, ["SurroundMode"] = true, ["SampleRate"] = true, ["PassthroughControl"] = true, ["Bitrate"] = true, ["CodingMode"] = true, ["SurroundExMode"] = true, ["LoRoCenterMixLevel"] = true, nil } function asserts.AssertEac3Settings(struct) assert(struct) assert(type(struct) == "table", "Expected Eac3Settings to be of type 'table'") if struct["LoRoSurroundMixLevel"] then asserts.Assert__doubleMinNegative60MaxNegative1(struct["LoRoSurroundMixLevel"]) end if struct["DynamicRangeCompressionRf"] then asserts.AssertEac3DynamicRangeCompressionRf(struct["DynamicRangeCompressionRf"]) end if struct["DynamicRangeCompressionLine"] then asserts.AssertEac3DynamicRangeCompressionLine(struct["DynamicRangeCompressionLine"]) end if struct["PhaseControl"] then asserts.AssertEac3PhaseControl(struct["PhaseControl"]) end if struct["MetadataControl"] then asserts.AssertEac3MetadataControl(struct["MetadataControl"]) end if struct["StereoDownmix"] then asserts.AssertEac3StereoDownmix(struct["StereoDownmix"]) end if struct["BitstreamMode"] then asserts.AssertEac3BitstreamMode(struct["BitstreamMode"]) end if struct["LfeControl"] then asserts.AssertEac3LfeControl(struct["LfeControl"]) end if struct["LtRtCenterMixLevel"] then asserts.Assert__doubleMinNegative60Max3(struct["LtRtCenterMixLevel"]) end if struct["Dialnorm"] then asserts.Assert__integerMin1Max31(struct["Dialnorm"]) end if struct["DcFilter"] then asserts.AssertEac3DcFilter(struct["DcFilter"]) end if struct["AttenuationControl"] then asserts.AssertEac3AttenuationControl(struct["AttenuationControl"]) end if struct["LfeFilter"] then asserts.AssertEac3LfeFilter(struct["LfeFilter"]) end if struct["LtRtSurroundMixLevel"] then asserts.Assert__doubleMinNegative60MaxNegative1(struct["LtRtSurroundMixLevel"]) end if struct["SurroundMode"] then asserts.AssertEac3SurroundMode(struct["SurroundMode"]) end if struct["SampleRate"] then asserts.Assert__integerMin48000Max48000(struct["SampleRate"]) end if struct["PassthroughControl"] then asserts.AssertEac3PassthroughControl(struct["PassthroughControl"]) end if struct["Bitrate"] then asserts.Assert__integerMin64000Max640000(struct["Bitrate"]) end if struct["CodingMode"] then asserts.AssertEac3CodingMode(struct["CodingMode"]) end if struct["SurroundExMode"] then asserts.AssertEac3SurroundExMode(struct["SurroundExMode"]) end if struct["LoRoCenterMixLevel"] then asserts.Assert__doubleMinNegative60Max3(struct["LoRoCenterMixLevel"]) end for k,_ in pairs(struct) do assert(keys.Eac3Settings[k], "Eac3Settings contains unknown key " .. tostring(k)) end end --- Create a structure of type Eac3Settings -- Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the value EAC3. -- @param args Table with arguments in key-value form. -- Valid keys: -- * LoRoSurroundMixLevel [__doubleMinNegative60MaxNegative1] Left only/Right only surround mix level. Only used for 3/2 coding mode. --Valid values: -1.5 -3.0 -4.5 -6.0 -60 -- * DynamicRangeCompressionRf [Eac3DynamicRangeCompressionRf] -- * DynamicRangeCompressionLine [Eac3DynamicRangeCompressionLine] -- * PhaseControl [Eac3PhaseControl] -- * MetadataControl [Eac3MetadataControl] -- * StereoDownmix [Eac3StereoDownmix] -- * BitstreamMode [Eac3BitstreamMode] -- * LfeControl [Eac3LfeControl] -- * LtRtCenterMixLevel [__doubleMinNegative60Max3] Left total/Right total center mix level. Only used for 3/2 coding mode. --Valid values: 3.0, 1.5, 0.0, -1.5 -3.0 -4.5 -6.0 -60 -- * Dialnorm [__integerMin1Max31] Sets the dialnorm for the output. If blank and input audio is Dolby Digital Plus, dialnorm will be passed through. -- * DcFilter [Eac3DcFilter] -- * AttenuationControl [Eac3AttenuationControl] -- * LfeFilter [Eac3LfeFilter] -- * LtRtSurroundMixLevel [__doubleMinNegative60MaxNegative1] Left total/Right total surround mix level. Only used for 3/2 coding mode. --Valid values: -1.5 -3.0 -4.5 -6.0 -60 -- * SurroundMode [Eac3SurroundMode] -- * SampleRate [__integerMin48000Max48000] Sample rate in hz. Sample rate is always 48000. -- * PassthroughControl [Eac3PassthroughControl] -- * Bitrate [__integerMin64000Max640000] Average bitrate in bits/second. Valid bitrates depend on the coding mode. -- * CodingMode [Eac3CodingMode] -- * SurroundExMode [Eac3SurroundExMode] -- * LoRoCenterMixLevel [__doubleMinNegative60Max3] Left only/Right only center mix level. Only used for 3/2 coding mode. --Valid values: 3.0, 1.5, 0.0, -1.5 -3.0 -4.5 -6.0 -60 -- @return Eac3Settings structure as a key-value pair table function M.Eac3Settings(args) assert(args, "You must provide an argument table when creating Eac3Settings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["LoRoSurroundMixLevel"] = args["LoRoSurroundMixLevel"], ["DynamicRangeCompressionRf"] = args["DynamicRangeCompressionRf"], ["DynamicRangeCompressionLine"] = args["DynamicRangeCompressionLine"], ["PhaseControl"] = args["PhaseControl"], ["MetadataControl"] = args["MetadataControl"], ["StereoDownmix"] = args["StereoDownmix"], ["BitstreamMode"] = args["BitstreamMode"], ["LfeControl"] = args["LfeControl"], ["LtRtCenterMixLevel"] = args["LtRtCenterMixLevel"], ["Dialnorm"] = args["Dialnorm"], ["DcFilter"] = args["DcFilter"], ["AttenuationControl"] = args["AttenuationControl"], ["LfeFilter"] = args["LfeFilter"], ["LtRtSurroundMixLevel"] = args["LtRtSurroundMixLevel"], ["SurroundMode"] = args["SurroundMode"], ["SampleRate"] = args["SampleRate"], ["PassthroughControl"] = args["PassthroughControl"], ["Bitrate"] = args["Bitrate"], ["CodingMode"] = args["CodingMode"], ["SurroundExMode"] = args["SurroundExMode"], ["LoRoCenterMixLevel"] = args["LoRoCenterMixLevel"], } asserts.AssertEac3Settings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.CaptionSelector = { ["LanguageCode"] = true, ["SourceSettings"] = true, ["CustomLanguageCode"] = true, nil } function asserts.AssertCaptionSelector(struct) assert(struct) assert(type(struct) == "table", "Expected CaptionSelector to be of type 'table'") if struct["LanguageCode"] then asserts.AssertLanguageCode(struct["LanguageCode"]) end if struct["SourceSettings"] then asserts.AssertCaptionSourceSettings(struct["SourceSettings"]) end if struct["CustomLanguageCode"] then asserts.Assert__stringMin3Max3PatternAZaZ3(struct["CustomLanguageCode"]) end for k,_ in pairs(struct) do assert(keys.CaptionSelector[k], "CaptionSelector contains unknown key " .. tostring(k)) end end --- Create a structure of type CaptionSelector -- Set up captions in your outputs by first selecting them from your input here. -- @param args Table with arguments in key-value form. -- Valid keys: -- * LanguageCode [LanguageCode] The specific language to extract from source. If input is SCTE-27, complete this field and/or PID to select the caption language to extract. If input is DVB-Sub and output is Burn-in or SMPTE-TT, complete this field and/or PID to select the caption language to extract. If input is DVB-Sub that is being passed through, omit this field (and PID field); there is no way to extract a specific language with pass-through captions. -- * SourceSettings [CaptionSourceSettings] -- * CustomLanguageCode [__stringMin3Max3PatternAZaZ3] The specific language to extract from source, using the ISO 639-2 or ISO 639-3 three-letter language code. If input is SCTE-27, complete this field and/or PID to select the caption language to extract. If input is DVB-Sub and output is Burn-in or SMPTE-TT, complete this field and/or PID to select the caption language to extract. If input is DVB-Sub that is being passed through, omit this field (and PID field); there is no way to extract a specific language with pass-through captions. -- @return CaptionSelector structure as a key-value pair table function M.CaptionSelector(args) assert(args, "You must provide an argument table when creating CaptionSelector") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["LanguageCode"] = args["LanguageCode"], ["SourceSettings"] = args["SourceSettings"], ["CustomLanguageCode"] = args["CustomLanguageCode"], } asserts.AssertCaptionSelector(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.ListPresetsResponse = { ["NextToken"] = true, ["Presets"] = true, nil } function asserts.AssertListPresetsResponse(struct) assert(struct) assert(type(struct) == "table", "Expected ListPresetsResponse to be of type 'table'") if struct["NextToken"] then asserts.Assert__string(struct["NextToken"]) end if struct["Presets"] then asserts.Assert__listOfPreset(struct["Presets"]) end for k,_ in pairs(struct) do assert(keys.ListPresetsResponse[k], "ListPresetsResponse contains unknown key " .. tostring(k)) end end --- Create a structure of type ListPresetsResponse -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * NextToken [__string] Use this string to request the next batch of presets. -- * Presets [__listOfPreset] List of presets -- @return ListPresetsResponse structure as a key-value pair table function M.ListPresetsResponse(args) assert(args, "You must provide an argument table when creating ListPresetsResponse") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["NextToken"] = args["NextToken"], ["Presets"] = args["Presets"], } asserts.AssertListPresetsResponse(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.DvbSubDestinationSettings = { ["YPosition"] = true, ["TeletextSpacing"] = true, ["ShadowOpacity"] = true, ["OutlineSize"] = true, ["ShadowXOffset"] = true, ["ShadowYOffset"] = true, ["XPosition"] = true, ["FontOpacity"] = true, ["ShadowColor"] = true, ["FontResolution"] = true, ["FontSize"] = true, ["BackgroundColor"] = true, ["FontColor"] = true, ["BackgroundOpacity"] = true, ["Alignment"] = true, ["OutlineColor"] = true, nil } function asserts.AssertDvbSubDestinationSettings(struct) assert(struct) assert(type(struct) == "table", "Expected DvbSubDestinationSettings to be of type 'table'") if struct["YPosition"] then asserts.Assert__integerMin0Max2147483647(struct["YPosition"]) end if struct["TeletextSpacing"] then asserts.AssertDvbSubtitleTeletextSpacing(struct["TeletextSpacing"]) end if struct["ShadowOpacity"] then asserts.Assert__integerMin0Max255(struct["ShadowOpacity"]) end if struct["OutlineSize"] then asserts.Assert__integerMin0Max10(struct["OutlineSize"]) end if struct["ShadowXOffset"] then asserts.Assert__integerMinNegative2147483648Max2147483647(struct["ShadowXOffset"]) end if struct["ShadowYOffset"] then asserts.Assert__integerMinNegative2147483648Max2147483647(struct["ShadowYOffset"]) end if struct["XPosition"] then asserts.Assert__integerMin0Max2147483647(struct["XPosition"]) end if struct["FontOpacity"] then asserts.Assert__integerMin0Max255(struct["FontOpacity"]) end if struct["ShadowColor"] then asserts.AssertDvbSubtitleShadowColor(struct["ShadowColor"]) end if struct["FontResolution"] then asserts.Assert__integerMin96Max600(struct["FontResolution"]) end if struct["FontSize"] then asserts.Assert__integerMin0Max96(struct["FontSize"]) end if struct["BackgroundColor"] then asserts.AssertDvbSubtitleBackgroundColor(struct["BackgroundColor"]) end if struct["FontColor"] then asserts.AssertDvbSubtitleFontColor(struct["FontColor"]) end if struct["BackgroundOpacity"] then asserts.Assert__integerMin0Max255(struct["BackgroundOpacity"]) end if struct["Alignment"] then asserts.AssertDvbSubtitleAlignment(struct["Alignment"]) end if struct["OutlineColor"] then asserts.AssertDvbSubtitleOutlineColor(struct["OutlineColor"]) end for k,_ in pairs(struct) do assert(keys.DvbSubDestinationSettings[k], "DvbSubDestinationSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type DvbSubDestinationSettings -- DVB-Sub Destination Settings -- @param args Table with arguments in key-value form. -- Valid keys: -- * YPosition [__integerMin0Max2147483647] Specifies the vertical position of the caption relative to the top of the output in pixels. A value of 10 would result in the captions starting 10 pixels from the top of the output. If no explicit y_position is provided, the caption will be positioned towards the bottom of the output. This option is not valid for source captions that are STL, 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match. -- * TeletextSpacing [DvbSubtitleTeletextSpacing] -- * ShadowOpacity [__integerMin0Max255] Specifies the opacity of the shadow. 255 is opaque; 0 is transparent. Leaving this parameter blank is equivalent to setting it to 0 (transparent). All burn-in and DVB-Sub font settings must match. -- * OutlineSize [__integerMin0Max10] Specifies font outline size in pixels. This option is not valid for source captions that are either 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match. -- * ShadowXOffset [__integerMinNegative2147483648Max2147483647] Specifies the horizontal offset of the shadow relative to the captions in pixels. A value of -2 would result in a shadow offset 2 pixels to the left. All burn-in and DVB-Sub font settings must match. -- * ShadowYOffset [__integerMinNegative2147483648Max2147483647] Specifies the vertical offset of the shadow relative to the captions in pixels. A value of -2 would result in a shadow offset 2 pixels above the text. All burn-in and DVB-Sub font settings must match. -- * XPosition [__integerMin0Max2147483647] Specifies the horizontal position of the caption relative to the left side of the output in pixels. A value of 10 would result in the captions starting 10 pixels from the left of the output. If no explicit x_position is provided, the horizontal caption position will be determined by the alignment parameter. This option is not valid for source captions that are STL, 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match. -- * FontOpacity [__integerMin0Max255] Specifies the opacity of the burned-in captions. 255 is opaque; 0 is transparent. --All burn-in and DVB-Sub font settings must match. -- * ShadowColor [DvbSubtitleShadowColor] -- * FontResolution [__integerMin96Max600] Font resolution in DPI (dots per inch); default is 96 dpi. --All burn-in and DVB-Sub font settings must match. -- * FontSize [__integerMin0Max96] A positive integer indicates the exact font size in points. Set to 0 for automatic font size selection. All burn-in and DVB-Sub font settings must match. -- * BackgroundColor [DvbSubtitleBackgroundColor] -- * FontColor [DvbSubtitleFontColor] -- * BackgroundOpacity [__integerMin0Max255] Specifies the opacity of the background rectangle. 255 is opaque; 0 is transparent. Leaving this parameter blank is equivalent to setting it to 0 (transparent). All burn-in and DVB-Sub font settings must match. -- * Alignment [DvbSubtitleAlignment] -- * OutlineColor [DvbSubtitleOutlineColor] -- @return DvbSubDestinationSettings structure as a key-value pair table function M.DvbSubDestinationSettings(args) assert(args, "You must provide an argument table when creating DvbSubDestinationSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["YPosition"] = args["YPosition"], ["TeletextSpacing"] = args["TeletextSpacing"], ["ShadowOpacity"] = args["ShadowOpacity"], ["OutlineSize"] = args["OutlineSize"], ["ShadowXOffset"] = args["ShadowXOffset"], ["ShadowYOffset"] = args["ShadowYOffset"], ["XPosition"] = args["XPosition"], ["FontOpacity"] = args["FontOpacity"], ["ShadowColor"] = args["ShadowColor"], ["FontResolution"] = args["FontResolution"], ["FontSize"] = args["FontSize"], ["BackgroundColor"] = args["BackgroundColor"], ["FontColor"] = args["FontColor"], ["BackgroundOpacity"] = args["BackgroundOpacity"], ["Alignment"] = args["Alignment"], ["OutlineColor"] = args["OutlineColor"], } asserts.AssertDvbSubDestinationSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.DeleteQueueResponse = { nil } function asserts.AssertDeleteQueueResponse(struct) assert(struct) assert(type(struct) == "table", "Expected DeleteQueueResponse to be of type 'table'") for k,_ in pairs(struct) do assert(keys.DeleteQueueResponse[k], "DeleteQueueResponse contains unknown key " .. tostring(k)) end end --- Create a structure of type DeleteQueueResponse -- -- @param args Table with arguments in key-value form. -- Valid keys: -- @return DeleteQueueResponse structure as a key-value pair table function M.DeleteQueueResponse(args) assert(args, "You must provide an argument table when creating DeleteQueueResponse") local query_args = { } local uri_args = { } local header_args = { } local all_args = { } asserts.AssertDeleteQueueResponse(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.AudioSelectorGroup = { ["AudioSelectorNames"] = true, nil } function asserts.AssertAudioSelectorGroup(struct) assert(struct) assert(type(struct) == "table", "Expected AudioSelectorGroup to be of type 'table'") if struct["AudioSelectorNames"] then asserts.Assert__listOf__stringMin1(struct["AudioSelectorNames"]) end for k,_ in pairs(struct) do assert(keys.AudioSelectorGroup[k], "AudioSelectorGroup contains unknown key " .. tostring(k)) end end --- Create a structure of type AudioSelectorGroup -- Group of Audio Selectors -- @param args Table with arguments in key-value form. -- Valid keys: -- * AudioSelectorNames [__listOf__stringMin1] Name of an Audio Selector within the same input to include in the group. Audio selector names are standardized, based on their order within the input (e.g., "Audio Selector 1"). The audio selector name parameter can be repeated to add any number of audio selectors to the group. -- @return AudioSelectorGroup structure as a key-value pair table function M.AudioSelectorGroup(args) assert(args, "You must provide an argument table when creating AudioSelectorGroup") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["AudioSelectorNames"] = args["AudioSelectorNames"], } asserts.AssertAudioSelectorGroup(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.CaptionDestinationSettings = { ["SccDestinationSettings"] = true, ["DvbSubDestinationSettings"] = true, ["TtmlDestinationSettings"] = true, ["DestinationType"] = true, ["TeletextDestinationSettings"] = true, ["BurninDestinationSettings"] = true, nil } function asserts.AssertCaptionDestinationSettings(struct) assert(struct) assert(type(struct) == "table", "Expected CaptionDestinationSettings to be of type 'table'") if struct["SccDestinationSettings"] then asserts.AssertSccDestinationSettings(struct["SccDestinationSettings"]) end if struct["DvbSubDestinationSettings"] then asserts.AssertDvbSubDestinationSettings(struct["DvbSubDestinationSettings"]) end if struct["TtmlDestinationSettings"] then asserts.AssertTtmlDestinationSettings(struct["TtmlDestinationSettings"]) end if struct["DestinationType"] then asserts.AssertCaptionDestinationType(struct["DestinationType"]) end if struct["TeletextDestinationSettings"] then asserts.AssertTeletextDestinationSettings(struct["TeletextDestinationSettings"]) end if struct["BurninDestinationSettings"] then asserts.AssertBurninDestinationSettings(struct["BurninDestinationSettings"]) end for k,_ in pairs(struct) do assert(keys.CaptionDestinationSettings[k], "CaptionDestinationSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type CaptionDestinationSettings -- Specific settings required by destination type. Note that burnin_destination_settings are not available if the source of the caption data is Embedded or Teletext. -- @param args Table with arguments in key-value form. -- Valid keys: -- * SccDestinationSettings [SccDestinationSettings] -- * DvbSubDestinationSettings [DvbSubDestinationSettings] -- * TtmlDestinationSettings [TtmlDestinationSettings] -- * DestinationType [CaptionDestinationType] -- * TeletextDestinationSettings [TeletextDestinationSettings] -- * BurninDestinationSettings [BurninDestinationSettings] -- @return CaptionDestinationSettings structure as a key-value pair table function M.CaptionDestinationSettings(args) assert(args, "You must provide an argument table when creating CaptionDestinationSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["SccDestinationSettings"] = args["SccDestinationSettings"], ["DvbSubDestinationSettings"] = args["DvbSubDestinationSettings"], ["TtmlDestinationSettings"] = args["TtmlDestinationSettings"], ["DestinationType"] = args["DestinationType"], ["TeletextDestinationSettings"] = args["TeletextDestinationSettings"], ["BurninDestinationSettings"] = args["BurninDestinationSettings"], } asserts.AssertCaptionDestinationSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.DvbTdtSettings = { ["TdtInterval"] = true, nil } function asserts.AssertDvbTdtSettings(struct) assert(struct) assert(type(struct) == "table", "Expected DvbTdtSettings to be of type 'table'") if struct["TdtInterval"] then asserts.Assert__integerMin1000Max30000(struct["TdtInterval"]) end for k,_ in pairs(struct) do assert(keys.DvbTdtSettings[k], "DvbTdtSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type DvbTdtSettings -- Inserts DVB Time and Date Table (TDT) at the specified table repetition interval. -- @param args Table with arguments in key-value form. -- Valid keys: -- * TdtInterval [__integerMin1000Max30000] The number of milliseconds between instances of this table in the output transport stream. -- @return DvbTdtSettings structure as a key-value pair table function M.DvbTdtSettings(args) assert(args, "You must provide an argument table when creating DvbTdtSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["TdtInterval"] = args["TdtInterval"], } asserts.AssertDvbTdtSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.NoiseReducer = { ["Filter"] = true, ["SpatialFilterSettings"] = true, ["FilterSettings"] = true, nil } function asserts.AssertNoiseReducer(struct) assert(struct) assert(type(struct) == "table", "Expected NoiseReducer to be of type 'table'") if struct["Filter"] then asserts.AssertNoiseReducerFilter(struct["Filter"]) end if struct["SpatialFilterSettings"] then asserts.AssertNoiseReducerSpatialFilterSettings(struct["SpatialFilterSettings"]) end if struct["FilterSettings"] then asserts.AssertNoiseReducerFilterSettings(struct["FilterSettings"]) end for k,_ in pairs(struct) do assert(keys.NoiseReducer[k], "NoiseReducer contains unknown key " .. tostring(k)) end end --- Create a structure of type NoiseReducer -- Enable the Noise reducer (NoiseReducer) feature to remove noise from your video output if necessary. Enable or disable this feature for each output individually. This setting is disabled by default. When you enable Noise reducer (NoiseReducer), you must also select a value for Noise reducer filter (NoiseReducerFilter). -- @param args Table with arguments in key-value form. -- Valid keys: -- * Filter [NoiseReducerFilter] -- * SpatialFilterSettings [NoiseReducerSpatialFilterSettings] -- * FilterSettings [NoiseReducerFilterSettings] -- @return NoiseReducer structure as a key-value pair table function M.NoiseReducer(args) assert(args, "You must provide an argument table when creating NoiseReducer") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Filter"] = args["Filter"], ["SpatialFilterSettings"] = args["SpatialFilterSettings"], ["FilterSettings"] = args["FilterSettings"], } asserts.AssertNoiseReducer(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.ListQueuesResponse = { ["Queues"] = true, ["NextToken"] = true, nil } function asserts.AssertListQueuesResponse(struct) assert(struct) assert(type(struct) == "table", "Expected ListQueuesResponse to be of type 'table'") if struct["Queues"] then asserts.Assert__listOfQueue(struct["Queues"]) end if struct["NextToken"] then asserts.Assert__string(struct["NextToken"]) end for k,_ in pairs(struct) do assert(keys.ListQueuesResponse[k], "ListQueuesResponse contains unknown key " .. tostring(k)) end end --- Create a structure of type ListQueuesResponse -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Queues [__listOfQueue] List of queues. -- * NextToken [__string] Use this string to request the next batch of queues. -- @return ListQueuesResponse structure as a key-value pair table function M.ListQueuesResponse(args) assert(args, "You must provide an argument table when creating ListQueuesResponse") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Queues"] = args["Queues"], ["NextToken"] = args["NextToken"], } asserts.AssertListQueuesResponse(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.H265Settings = { ["WriteMp4PackagingType"] = true, ["CodecProfile"] = true, ["SpatialAdaptiveQuantization"] = true, ["TemporalAdaptiveQuantization"] = true, ["FramerateNumerator"] = true, ["FlickerAdaptiveQuantization"] = true, ["Tiles"] = true, ["MinIInterval"] = true, ["QvbrSettings"] = true, ["UnregisteredSeiTimecode"] = true, ["FramerateControl"] = true, ["NumberReferenceFrames"] = true, ["FramerateDenominator"] = true, ["Bitrate"] = true, ["DynamicSubGop"] = true, ["MaxBitrate"] = true, ["GopSizeUnits"] = true, ["GopBReference"] = true, ["Telecine"] = true, ["ParDenominator"] = true, ["AdaptiveQuantization"] = true, ["TemporalIds"] = true, ["InterlaceMode"] = true, ["QualityTuningLevel"] = true, ["HrdBufferInitialFillPercentage"] = true, ["SlowPal"] = true, ["NumberBFramesBetweenReferenceFrames"] = true, ["SampleAdaptiveOffsetFilterMode"] = true, ["GopSize"] = true, ["ParControl"] = true, ["Slices"] = true, ["FramerateConversionAlgorithm"] = true, ["AlternateTransferFunctionSei"] = true, ["ParNumerator"] = true, ["RateControlMode"] = true, ["SceneChangeDetect"] = true, ["CodecLevel"] = true, ["GopClosedCadence"] = true, ["HrdBufferSize"] = true, nil } function asserts.AssertH265Settings(struct) assert(struct) assert(type(struct) == "table", "Expected H265Settings to be of type 'table'") if struct["WriteMp4PackagingType"] then asserts.AssertH265WriteMp4PackagingType(struct["WriteMp4PackagingType"]) end if struct["CodecProfile"] then asserts.AssertH265CodecProfile(struct["CodecProfile"]) end if struct["SpatialAdaptiveQuantization"] then asserts.AssertH265SpatialAdaptiveQuantization(struct["SpatialAdaptiveQuantization"]) end if struct["TemporalAdaptiveQuantization"] then asserts.AssertH265TemporalAdaptiveQuantization(struct["TemporalAdaptiveQuantization"]) end if struct["FramerateNumerator"] then asserts.Assert__integerMin1Max2147483647(struct["FramerateNumerator"]) end if struct["FlickerAdaptiveQuantization"] then asserts.AssertH265FlickerAdaptiveQuantization(struct["FlickerAdaptiveQuantization"]) end if struct["Tiles"] then asserts.AssertH265Tiles(struct["Tiles"]) end if struct["MinIInterval"] then asserts.Assert__integerMin0Max30(struct["MinIInterval"]) end if struct["QvbrSettings"] then asserts.AssertH265QvbrSettings(struct["QvbrSettings"]) end if struct["UnregisteredSeiTimecode"] then asserts.AssertH265UnregisteredSeiTimecode(struct["UnregisteredSeiTimecode"]) end if struct["FramerateControl"] then asserts.AssertH265FramerateControl(struct["FramerateControl"]) end if struct["NumberReferenceFrames"] then asserts.Assert__integerMin1Max6(struct["NumberReferenceFrames"]) end if struct["FramerateDenominator"] then asserts.Assert__integerMin1Max2147483647(struct["FramerateDenominator"]) end if struct["Bitrate"] then asserts.Assert__integerMin1000Max1466400000(struct["Bitrate"]) end if struct["DynamicSubGop"] then asserts.AssertH265DynamicSubGop(struct["DynamicSubGop"]) end if struct["MaxBitrate"] then asserts.Assert__integerMin1000Max1466400000(struct["MaxBitrate"]) end if struct["GopSizeUnits"] then asserts.AssertH265GopSizeUnits(struct["GopSizeUnits"]) end if struct["GopBReference"] then asserts.AssertH265GopBReference(struct["GopBReference"]) end if struct["Telecine"] then asserts.AssertH265Telecine(struct["Telecine"]) end if struct["ParDenominator"] then asserts.Assert__integerMin1Max2147483647(struct["ParDenominator"]) end if struct["AdaptiveQuantization"] then asserts.AssertH265AdaptiveQuantization(struct["AdaptiveQuantization"]) end if struct["TemporalIds"] then asserts.AssertH265TemporalIds(struct["TemporalIds"]) end if struct["InterlaceMode"] then asserts.AssertH265InterlaceMode(struct["InterlaceMode"]) end if struct["QualityTuningLevel"] then asserts.AssertH265QualityTuningLevel(struct["QualityTuningLevel"]) end if struct["HrdBufferInitialFillPercentage"] then asserts.Assert__integerMin0Max100(struct["HrdBufferInitialFillPercentage"]) end if struct["SlowPal"] then asserts.AssertH265SlowPal(struct["SlowPal"]) end if struct["NumberBFramesBetweenReferenceFrames"] then asserts.Assert__integerMin0Max7(struct["NumberBFramesBetweenReferenceFrames"]) end if struct["SampleAdaptiveOffsetFilterMode"] then asserts.AssertH265SampleAdaptiveOffsetFilterMode(struct["SampleAdaptiveOffsetFilterMode"]) end if struct["GopSize"] then asserts.Assert__doubleMin0(struct["GopSize"]) end if struct["ParControl"] then asserts.AssertH265ParControl(struct["ParControl"]) end if struct["Slices"] then asserts.Assert__integerMin1Max32(struct["Slices"]) end if struct["FramerateConversionAlgorithm"] then asserts.AssertH265FramerateConversionAlgorithm(struct["FramerateConversionAlgorithm"]) end if struct["AlternateTransferFunctionSei"] then asserts.AssertH265AlternateTransferFunctionSei(struct["AlternateTransferFunctionSei"]) end if struct["ParNumerator"] then asserts.Assert__integerMin1Max2147483647(struct["ParNumerator"]) end if struct["RateControlMode"] then asserts.AssertH265RateControlMode(struct["RateControlMode"]) end if struct["SceneChangeDetect"] then asserts.AssertH265SceneChangeDetect(struct["SceneChangeDetect"]) end if struct["CodecLevel"] then asserts.AssertH265CodecLevel(struct["CodecLevel"]) end if struct["GopClosedCadence"] then asserts.Assert__integerMin0Max2147483647(struct["GopClosedCadence"]) end if struct["HrdBufferSize"] then asserts.Assert__integerMin0Max1466400000(struct["HrdBufferSize"]) end for k,_ in pairs(struct) do assert(keys.H265Settings[k], "H265Settings contains unknown key " .. tostring(k)) end end --- Create a structure of type H265Settings -- Settings for H265 codec -- @param args Table with arguments in key-value form. -- Valid keys: -- * WriteMp4PackagingType [H265WriteMp4PackagingType] -- * CodecProfile [H265CodecProfile] -- * SpatialAdaptiveQuantization [H265SpatialAdaptiveQuantization] -- * TemporalAdaptiveQuantization [H265TemporalAdaptiveQuantization] -- * FramerateNumerator [__integerMin1Max2147483647] Framerate numerator - framerate is a fraction, e.g. 24000 / 1001 = 23.976 fps. -- * FlickerAdaptiveQuantization [H265FlickerAdaptiveQuantization] -- * Tiles [H265Tiles] -- * MinIInterval [__integerMin0Max30] Enforces separation between repeated (cadence) I-frames and I-frames inserted by Scene Change Detection. If a scene change I-frame is within I-interval frames of a cadence I-frame, the GOP is shrunk and/or stretched to the scene change I-frame. GOP stretch requires enabling lookahead as well as setting I-interval. The normal cadence resumes for the next GOP. This setting is only used when Scene Change Detect is enabled. Note: Maximum GOP stretch = GOP size + Min-I-interval - 1 -- * QvbrSettings [H265QvbrSettings] Settings for quality-defined variable bitrate encoding with the H.265 codec. Required when you set Rate control mode to QVBR. Not valid when you set Rate control mode to a value other than QVBR, or when you don't define Rate control mode. -- * UnregisteredSeiTimecode [H265UnregisteredSeiTimecode] -- * FramerateControl [H265FramerateControl] -- * NumberReferenceFrames [__integerMin1Max6] Number of reference frames to use. The encoder may use more than requested if using B-frames and/or interlaced encoding. -- * FramerateDenominator [__integerMin1Max2147483647] Framerate denominator. -- * Bitrate [__integerMin1000Max1466400000] Average bitrate in bits/second. Required for VBR and CBR. For MS Smooth outputs, bitrates must be unique when rounded down to the nearest multiple of 1000. -- * DynamicSubGop [H265DynamicSubGop] Choose Adaptive to improve subjective video quality for high-motion content. This will cause the service to use fewer B-frames (which infer information based on other frames) for high-motion portions of the video and more B-frames for low-motion portions. The maximum number of B-frames is limited by the value you provide for the setting B frames between reference frames (numberBFramesBetweenReferenceFrames). -- * MaxBitrate [__integerMin1000Max1466400000] Maximum bitrate in bits/second. For example, enter five megabits per second as 5000000. Required when Rate control mode is QVBR. -- * GopSizeUnits [H265GopSizeUnits] -- * GopBReference [H265GopBReference] -- * Telecine [H265Telecine] -- * ParDenominator [__integerMin1Max2147483647] Pixel Aspect Ratio denominator. -- * AdaptiveQuantization [H265AdaptiveQuantization] -- * TemporalIds [H265TemporalIds] -- * InterlaceMode [H265InterlaceMode] -- * QualityTuningLevel [H265QualityTuningLevel] -- * HrdBufferInitialFillPercentage [__integerMin0Max100] Percentage of the buffer that should initially be filled (HRD buffer model). -- * SlowPal [H265SlowPal] -- * NumberBFramesBetweenReferenceFrames [__integerMin0Max7] Number of B-frames between reference frames. -- * SampleAdaptiveOffsetFilterMode [H265SampleAdaptiveOffsetFilterMode] -- * GopSize [__doubleMin0] GOP Length (keyframe interval) in frames or seconds. Must be greater than zero. -- * ParControl [H265ParControl] -- * Slices [__integerMin1Max32] Number of slices per picture. Must be less than or equal to the number of macroblock rows for progressive pictures, and less than or equal to half the number of macroblock rows for interlaced pictures. -- * FramerateConversionAlgorithm [H265FramerateConversionAlgorithm] -- * AlternateTransferFunctionSei [H265AlternateTransferFunctionSei] -- * ParNumerator [__integerMin1Max2147483647] Pixel Aspect Ratio numerator. -- * RateControlMode [H265RateControlMode] -- * SceneChangeDetect [H265SceneChangeDetect] -- * CodecLevel [H265CodecLevel] -- * GopClosedCadence [__integerMin0Max2147483647] Frequency of closed GOPs. In streaming applications, it is recommended that this be set to 1 so a decoder joining mid-stream will receive an IDR frame as quickly as possible. Setting this value to 0 will break output segmenting. -- * HrdBufferSize [__integerMin0Max1466400000] Size of buffer (HRD buffer model) in bits. For example, enter five megabits as 5000000. -- @return H265Settings structure as a key-value pair table function M.H265Settings(args) assert(args, "You must provide an argument table when creating H265Settings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["WriteMp4PackagingType"] = args["WriteMp4PackagingType"], ["CodecProfile"] = args["CodecProfile"], ["SpatialAdaptiveQuantization"] = args["SpatialAdaptiveQuantization"], ["TemporalAdaptiveQuantization"] = args["TemporalAdaptiveQuantization"], ["FramerateNumerator"] = args["FramerateNumerator"], ["FlickerAdaptiveQuantization"] = args["FlickerAdaptiveQuantization"], ["Tiles"] = args["Tiles"], ["MinIInterval"] = args["MinIInterval"], ["QvbrSettings"] = args["QvbrSettings"], ["UnregisteredSeiTimecode"] = args["UnregisteredSeiTimecode"], ["FramerateControl"] = args["FramerateControl"], ["NumberReferenceFrames"] = args["NumberReferenceFrames"], ["FramerateDenominator"] = args["FramerateDenominator"], ["Bitrate"] = args["Bitrate"], ["DynamicSubGop"] = args["DynamicSubGop"], ["MaxBitrate"] = args["MaxBitrate"], ["GopSizeUnits"] = args["GopSizeUnits"], ["GopBReference"] = args["GopBReference"], ["Telecine"] = args["Telecine"], ["ParDenominator"] = args["ParDenominator"], ["AdaptiveQuantization"] = args["AdaptiveQuantization"], ["TemporalIds"] = args["TemporalIds"], ["InterlaceMode"] = args["InterlaceMode"], ["QualityTuningLevel"] = args["QualityTuningLevel"], ["HrdBufferInitialFillPercentage"] = args["HrdBufferInitialFillPercentage"], ["SlowPal"] = args["SlowPal"], ["NumberBFramesBetweenReferenceFrames"] = args["NumberBFramesBetweenReferenceFrames"], ["SampleAdaptiveOffsetFilterMode"] = args["SampleAdaptiveOffsetFilterMode"], ["GopSize"] = args["GopSize"], ["ParControl"] = args["ParControl"], ["Slices"] = args["Slices"], ["FramerateConversionAlgorithm"] = args["FramerateConversionAlgorithm"], ["AlternateTransferFunctionSei"] = args["AlternateTransferFunctionSei"], ["ParNumerator"] = args["ParNumerator"], ["RateControlMode"] = args["RateControlMode"], ["SceneChangeDetect"] = args["SceneChangeDetect"], ["CodecLevel"] = args["CodecLevel"], ["GopClosedCadence"] = args["GopClosedCadence"], ["HrdBufferSize"] = args["HrdBufferSize"], } asserts.AssertH265Settings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.ColorCorrector = { ["Hue"] = true, ["Saturation"] = true, ["ColorSpaceConversion"] = true, ["Brightness"] = true, ["Contrast"] = true, ["Hdr10Metadata"] = true, nil } function asserts.AssertColorCorrector(struct) assert(struct) assert(type(struct) == "table", "Expected ColorCorrector to be of type 'table'") if struct["Hue"] then asserts.Assert__integerMinNegative180Max180(struct["Hue"]) end if struct["Saturation"] then asserts.Assert__integerMin1Max100(struct["Saturation"]) end if struct["ColorSpaceConversion"] then asserts.AssertColorSpaceConversion(struct["ColorSpaceConversion"]) end if struct["Brightness"] then asserts.Assert__integerMin1Max100(struct["Brightness"]) end if struct["Contrast"] then asserts.Assert__integerMin1Max100(struct["Contrast"]) end if struct["Hdr10Metadata"] then asserts.AssertHdr10Metadata(struct["Hdr10Metadata"]) end for k,_ in pairs(struct) do assert(keys.ColorCorrector[k], "ColorCorrector contains unknown key " .. tostring(k)) end end --- Create a structure of type ColorCorrector -- Settings for color correction. -- @param args Table with arguments in key-value form. -- Valid keys: -- * Hue [__integerMinNegative180Max180] Hue in degrees. -- * Saturation [__integerMin1Max100] Saturation level. -- * ColorSpaceConversion [ColorSpaceConversion] -- * Brightness [__integerMin1Max100] Brightness level. -- * Contrast [__integerMin1Max100] Contrast level. -- * Hdr10Metadata [Hdr10Metadata] -- @return ColorCorrector structure as a key-value pair table function M.ColorCorrector(args) assert(args, "You must provide an argument table when creating ColorCorrector") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Hue"] = args["Hue"], ["Saturation"] = args["Saturation"], ["ColorSpaceConversion"] = args["ColorSpaceConversion"], ["Brightness"] = args["Brightness"], ["Contrast"] = args["Contrast"], ["Hdr10Metadata"] = args["Hdr10Metadata"], } asserts.AssertColorCorrector(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.Input = { ["AudioSelectors"] = true, ["CaptionSelectors"] = true, ["AudioSelectorGroups"] = true, ["FilterEnable"] = true, ["TimecodeSource"] = true, ["InputClippings"] = true, ["PsiControl"] = true, ["FilterStrength"] = true, ["ProgramNumber"] = true, ["DenoiseFilter"] = true, ["FileInput"] = true, ["VideoSelector"] = true, ["DeblockFilter"] = true, nil } function asserts.AssertInput(struct) assert(struct) assert(type(struct) == "table", "Expected Input to be of type 'table'") if struct["AudioSelectors"] then asserts.Assert__mapOfAudioSelector(struct["AudioSelectors"]) end if struct["CaptionSelectors"] then asserts.Assert__mapOfCaptionSelector(struct["CaptionSelectors"]) end if struct["AudioSelectorGroups"] then asserts.Assert__mapOfAudioSelectorGroup(struct["AudioSelectorGroups"]) end if struct["FilterEnable"] then asserts.AssertInputFilterEnable(struct["FilterEnable"]) end if struct["TimecodeSource"] then asserts.AssertInputTimecodeSource(struct["TimecodeSource"]) end if struct["InputClippings"] then asserts.Assert__listOfInputClipping(struct["InputClippings"]) end if struct["PsiControl"] then asserts.AssertInputPsiControl(struct["PsiControl"]) end if struct["FilterStrength"] then asserts.Assert__integerMinNegative5Max5(struct["FilterStrength"]) end if struct["ProgramNumber"] then asserts.Assert__integerMin1Max2147483647(struct["ProgramNumber"]) end if struct["DenoiseFilter"] then asserts.AssertInputDenoiseFilter(struct["DenoiseFilter"]) end if struct["FileInput"] then asserts.Assert__stringPatternS3MM2VVMMPPEEGGAAVVIIMMPP4FFLLVVMMPPTTMMPPGGMM4VVTTRRPPFF4VVMM2TTSSTTSS264HH264MMKKVVMMOOVVMMTTSSMM2TTWWMMVVAASSFFVVOOBB3GGPP3GGPPPPMMXXFFDDIIVVXXXXVVIIDDRRAAWWDDVVGGXXFFMM1VV3GG2VVMMFFMM3UU8LLCCHHGGXXFFMMPPEEGG2MMXXFFMMPPEEGG2MMXXFFHHDDWWAAVVYY4MM(struct["FileInput"]) end if struct["VideoSelector"] then asserts.AssertVideoSelector(struct["VideoSelector"]) end if struct["DeblockFilter"] then asserts.AssertInputDeblockFilter(struct["DeblockFilter"]) end for k,_ in pairs(struct) do assert(keys.Input[k], "Input contains unknown key " .. tostring(k)) end end --- Create a structure of type Input -- Specifies media input -- @param args Table with arguments in key-value form. -- Valid keys: -- * AudioSelectors [__mapOfAudioSelector] Use Audio selectors (AudioSelectors) to specify a track or set of tracks from the input that you will use in your outputs. You can use mutiple Audio selectors per input. -- * CaptionSelectors [__mapOfCaptionSelector] Use Captions selectors (CaptionSelectors) to specify the captions data from the input that you will use in your outputs. You can use mutiple captions selectors per input. -- * AudioSelectorGroups [__mapOfAudioSelectorGroup] Specifies set of audio selectors within an input to combine. An input may have multiple audio selector groups. See "Audio Selector Group":#inputs-audio_selector_group for more information. -- * FilterEnable [InputFilterEnable] -- * TimecodeSource [InputTimecodeSource] -- * InputClippings [__listOfInputClipping] (InputClippings) contains sets of start and end times that together specify a portion of the input to be used in the outputs. If you provide only a start time, the clip will be the entire input from that point to the end. If you provide only an end time, it will be the entire input up to that point. When you specify more than one input clip, the transcoding service creates the job outputs by stringing the clips together in the order you specify them. -- * PsiControl [InputPsiControl] -- * FilterStrength [__integerMinNegative5Max5] Use Filter strength (FilterStrength) to adjust the magnitude the input filter settings (Deblock and Denoise). The range is -5 to 5. Default is 0. -- * ProgramNumber [__integerMin1Max2147483647] Use Program (programNumber) to select a specific program from within a multi-program transport stream. Note that Quad 4K is not currently supported. Default is the first program within the transport stream. If the program you specify doesn't exist, the transcoding service will use this default. -- * DenoiseFilter [InputDenoiseFilter] -- * FileInput [__stringPatternS3MM2VVMMPPEEGGAAVVIIMMPP4FFLLVVMMPPTTMMPPGGMM4VVTTRRPPFF4VVMM2TTSSTTSS264HH264MMKKVVMMOOVVMMTTSSMM2TTWWMMVVAASSFFVVOOBB3GGPP3GGPPPPMMXXFFDDIIVVXXXXVVIIDDRRAAWWDDVVGGXXFFMM1VV3GG2VVMMFFMM3UU8LLCCHHGGXXFFMMPPEEGG2MMXXFFMMPPEEGG2MMXXFFHHDDWWAAVVYY4MM] Use Input (fileInput) to define the source file used in the transcode job. There can be multiple inputs in a job. These inputs are concantenated, in the order they are specified in the job, to create the output. -- * VideoSelector [VideoSelector] -- * DeblockFilter [InputDeblockFilter] -- @return Input structure as a key-value pair table function M.Input(args) assert(args, "You must provide an argument table when creating Input") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["AudioSelectors"] = args["AudioSelectors"], ["CaptionSelectors"] = args["CaptionSelectors"], ["AudioSelectorGroups"] = args["AudioSelectorGroups"], ["FilterEnable"] = args["FilterEnable"], ["TimecodeSource"] = args["TimecodeSource"], ["InputClippings"] = args["InputClippings"], ["PsiControl"] = args["PsiControl"], ["FilterStrength"] = args["FilterStrength"], ["ProgramNumber"] = args["ProgramNumber"], ["DenoiseFilter"] = args["DenoiseFilter"], ["FileInput"] = args["FileInput"], ["VideoSelector"] = args["VideoSelector"], ["DeblockFilter"] = args["DeblockFilter"], } asserts.AssertInput(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.ResourceTags = { ["Arn"] = true, ["Tags"] = true, nil } function asserts.AssertResourceTags(struct) assert(struct) assert(type(struct) == "table", "Expected ResourceTags to be of type 'table'") if struct["Arn"] then asserts.Assert__string(struct["Arn"]) end if struct["Tags"] then asserts.Assert__mapOf__string(struct["Tags"]) end for k,_ in pairs(struct) do assert(keys.ResourceTags[k], "ResourceTags contains unknown key " .. tostring(k)) end end --- Create a structure of type ResourceTags -- The Amazon Resource Name (ARN) and tags for an AWS Elemental MediaConvert resource. -- @param args Table with arguments in key-value form. -- Valid keys: -- * Arn [__string] The Amazon Resource Name (ARN) of the resource. -- * Tags [__mapOf__string] The tags for the resource. -- @return ResourceTags structure as a key-value pair table function M.ResourceTags(args) assert(args, "You must provide an argument table when creating ResourceTags") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Arn"] = args["Arn"], ["Tags"] = args["Tags"], } asserts.AssertResourceTags(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.GetJobTemplateRequest = { ["Name"] = true, nil } function asserts.AssertGetJobTemplateRequest(struct) assert(struct) assert(type(struct) == "table", "Expected GetJobTemplateRequest to be of type 'table'") assert(struct["Name"], "Expected key Name to exist in table") if struct["Name"] then asserts.Assert__string(struct["Name"]) end for k,_ in pairs(struct) do assert(keys.GetJobTemplateRequest[k], "GetJobTemplateRequest contains unknown key " .. tostring(k)) end end --- Create a structure of type GetJobTemplateRequest -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Name [__string] The name of the job template. -- Required key: Name -- @return GetJobTemplateRequest structure as a key-value pair table function M.GetJobTemplateRequest(args) assert(args, "You must provide an argument table when creating GetJobTemplateRequest") local query_args = { } local uri_args = { ["{name}"] = args["Name"], } local header_args = { } local all_args = { ["Name"] = args["Name"], } asserts.AssertGetJobTemplateRequest(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.DvbNitSettings = { ["NetworkId"] = true, ["NitInterval"] = true, ["NetworkName"] = true, nil } function asserts.AssertDvbNitSettings(struct) assert(struct) assert(type(struct) == "table", "Expected DvbNitSettings to be of type 'table'") if struct["NetworkId"] then asserts.Assert__integerMin0Max65535(struct["NetworkId"]) end if struct["NitInterval"] then asserts.Assert__integerMin25Max10000(struct["NitInterval"]) end if struct["NetworkName"] then asserts.Assert__stringMin1Max256(struct["NetworkName"]) end for k,_ in pairs(struct) do assert(keys.DvbNitSettings[k], "DvbNitSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type DvbNitSettings -- Inserts DVB Network Information Table (NIT) at the specified table repetition interval. -- @param args Table with arguments in key-value form. -- Valid keys: -- * NetworkId [__integerMin0Max65535] The numeric value placed in the Network Information Table (NIT). -- * NitInterval [__integerMin25Max10000] The number of milliseconds between instances of this table in the output transport stream. -- * NetworkName [__stringMin1Max256] The network name text placed in the network_name_descriptor inside the Network Information Table. Maximum length is 256 characters. -- @return DvbNitSettings structure as a key-value pair table function M.DvbNitSettings(args) assert(args, "You must provide an argument table when creating DvbNitSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["NetworkId"] = args["NetworkId"], ["NitInterval"] = args["NitInterval"], ["NetworkName"] = args["NetworkName"], } asserts.AssertDvbNitSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.DeleteQueueRequest = { ["Name"] = true, nil } function asserts.AssertDeleteQueueRequest(struct) assert(struct) assert(type(struct) == "table", "Expected DeleteQueueRequest to be of type 'table'") assert(struct["Name"], "Expected key Name to exist in table") if struct["Name"] then asserts.Assert__string(struct["Name"]) end for k,_ in pairs(struct) do assert(keys.DeleteQueueRequest[k], "DeleteQueueRequest contains unknown key " .. tostring(k)) end end --- Create a structure of type DeleteQueueRequest -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Name [__string] The name of the queue to be deleted. -- Required key: Name -- @return DeleteQueueRequest structure as a key-value pair table function M.DeleteQueueRequest(args) assert(args, "You must provide an argument table when creating DeleteQueueRequest") local query_args = { } local uri_args = { ["{name}"] = args["Name"], } local header_args = { } local all_args = { ["Name"] = args["Name"], } asserts.AssertDeleteQueueRequest(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.HlsGroupSettings = { ["TimedMetadataId3Frame"] = true, ["Encryption"] = true, ["CaptionLanguageMappings"] = true, ["Destination"] = true, ["ManifestDurationFormat"] = true, ["CodecSpecification"] = true, ["TimedMetadataId3Period"] = true, ["MinFinalSegmentLength"] = true, ["TimestampDeltaMilliseconds"] = true, ["BaseUrl"] = true, ["SegmentLength"] = true, ["ProgramDateTimePeriod"] = true, ["SegmentControl"] = true, ["CaptionLanguageSetting"] = true, ["ProgramDateTime"] = true, ["StreamInfResolution"] = true, ["ClientCache"] = true, ["AdMarkers"] = true, ["SegmentsPerSubdirectory"] = true, ["OutputSelection"] = true, ["ManifestCompression"] = true, ["MinSegmentLength"] = true, ["DirectoryStructure"] = true, nil } function asserts.AssertHlsGroupSettings(struct) assert(struct) assert(type(struct) == "table", "Expected HlsGroupSettings to be of type 'table'") if struct["TimedMetadataId3Frame"] then asserts.AssertHlsTimedMetadataId3Frame(struct["TimedMetadataId3Frame"]) end if struct["Encryption"] then asserts.AssertHlsEncryptionSettings(struct["Encryption"]) end if struct["CaptionLanguageMappings"] then asserts.Assert__listOfHlsCaptionLanguageMapping(struct["CaptionLanguageMappings"]) end if struct["Destination"] then asserts.Assert__stringPatternS3(struct["Destination"]) end if struct["ManifestDurationFormat"] then asserts.AssertHlsManifestDurationFormat(struct["ManifestDurationFormat"]) end if struct["CodecSpecification"] then asserts.AssertHlsCodecSpecification(struct["CodecSpecification"]) end if struct["TimedMetadataId3Period"] then asserts.Assert__integerMinNegative2147483648Max2147483647(struct["TimedMetadataId3Period"]) end if struct["MinFinalSegmentLength"] then asserts.Assert__doubleMin0Max2147483647(struct["MinFinalSegmentLength"]) end if struct["TimestampDeltaMilliseconds"] then asserts.Assert__integerMinNegative2147483648Max2147483647(struct["TimestampDeltaMilliseconds"]) end if struct["BaseUrl"] then asserts.Assert__string(struct["BaseUrl"]) end if struct["SegmentLength"] then asserts.Assert__integerMin1Max2147483647(struct["SegmentLength"]) end if struct["ProgramDateTimePeriod"] then asserts.Assert__integerMin0Max3600(struct["ProgramDateTimePeriod"]) end if struct["SegmentControl"] then asserts.AssertHlsSegmentControl(struct["SegmentControl"]) end if struct["CaptionLanguageSetting"] then asserts.AssertHlsCaptionLanguageSetting(struct["CaptionLanguageSetting"]) end if struct["ProgramDateTime"] then asserts.AssertHlsProgramDateTime(struct["ProgramDateTime"]) end if struct["StreamInfResolution"] then asserts.AssertHlsStreamInfResolution(struct["StreamInfResolution"]) end if struct["ClientCache"] then asserts.AssertHlsClientCache(struct["ClientCache"]) end if struct["AdMarkers"] then asserts.Assert__listOfHlsAdMarkers(struct["AdMarkers"]) end if struct["SegmentsPerSubdirectory"] then asserts.Assert__integerMin1Max2147483647(struct["SegmentsPerSubdirectory"]) end if struct["OutputSelection"] then asserts.AssertHlsOutputSelection(struct["OutputSelection"]) end if struct["ManifestCompression"] then asserts.AssertHlsManifestCompression(struct["ManifestCompression"]) end if struct["MinSegmentLength"] then asserts.Assert__integerMin0Max2147483647(struct["MinSegmentLength"]) end if struct["DirectoryStructure"] then asserts.AssertHlsDirectoryStructure(struct["DirectoryStructure"]) end for k,_ in pairs(struct) do assert(keys.HlsGroupSettings[k], "HlsGroupSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type HlsGroupSettings -- Required when you set (Type) under (OutputGroups)>(OutputGroupSettings) to HLS_GROUP_SETTINGS. -- @param args Table with arguments in key-value form. -- Valid keys: -- * TimedMetadataId3Frame [HlsTimedMetadataId3Frame] -- * Encryption [HlsEncryptionSettings] DRM settings. -- * CaptionLanguageMappings [__listOfHlsCaptionLanguageMapping] Language to be used on Caption outputs -- * Destination [__stringPatternS3] Use Destination (Destination) to specify the S3 output location and the output filename base. Destination accepts format identifiers. If you do not specify the base filename in the URI, the service will use the filename of the input file. If your job has multiple inputs, the service uses the filename of the first input file. -- * ManifestDurationFormat [HlsManifestDurationFormat] -- * CodecSpecification [HlsCodecSpecification] -- * TimedMetadataId3Period [__integerMinNegative2147483648Max2147483647] Timed Metadata interval in seconds. -- * MinFinalSegmentLength [__doubleMin0Max2147483647] Keep this setting at the default value of 0, unless you are troubleshooting a problem with how devices play back the end of your video asset. If you know that player devices are hanging on the final segment of your video because the length of your final segment is too short, use this setting to specify a minimum final segment length, in seconds. Choose a value that is greater than or equal to 1 and less than your segment length. When you specify a value for this setting, the encoder will combine any final segment that is shorter than the length that you specify with the previous segment. For example, your segment length is 3 seconds and your final segment is .5 seconds without a minimum final segment length; when you set the minimum final segment length to 1, your final segment is 3.5 seconds. -- * TimestampDeltaMilliseconds [__integerMinNegative2147483648Max2147483647] Provides an extra millisecond delta offset to fine tune the timestamps. -- * BaseUrl [__string] A partial URI prefix that will be prepended to each output in the media .m3u8 file. Can be used if base manifest is delivered from a different URL than the main .m3u8 file. -- * SegmentLength [__integerMin1Max2147483647] Length of MPEG-2 Transport Stream segments to create (in seconds). Note that segments will end on the next keyframe after this number of seconds, so actual segment length may be longer. -- * ProgramDateTimePeriod [__integerMin0Max3600] Period of insertion of EXT-X-PROGRAM-DATE-TIME entry, in seconds. -- * SegmentControl [HlsSegmentControl] -- * CaptionLanguageSetting [HlsCaptionLanguageSetting] -- * ProgramDateTime [HlsProgramDateTime] -- * StreamInfResolution [HlsStreamInfResolution] -- * ClientCache [HlsClientCache] -- * AdMarkers [__listOfHlsAdMarkers] Choose one or more ad marker types to pass SCTE35 signals through to this group of Apple HLS outputs. -- * SegmentsPerSubdirectory [__integerMin1Max2147483647] Number of segments to write to a subdirectory before starting a new one. directoryStructure must be SINGLE_DIRECTORY for this setting to have an effect. -- * OutputSelection [HlsOutputSelection] -- * ManifestCompression [HlsManifestCompression] -- * MinSegmentLength [__integerMin0Max2147483647] When set, Minimum Segment Size is enforced by looking ahead and back within the specified range for a nearby avail and extending the segment size if needed. -- * DirectoryStructure [HlsDirectoryStructure] -- @return HlsGroupSettings structure as a key-value pair table function M.HlsGroupSettings(args) assert(args, "You must provide an argument table when creating HlsGroupSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["TimedMetadataId3Frame"] = args["TimedMetadataId3Frame"], ["Encryption"] = args["Encryption"], ["CaptionLanguageMappings"] = args["CaptionLanguageMappings"], ["Destination"] = args["Destination"], ["ManifestDurationFormat"] = args["ManifestDurationFormat"], ["CodecSpecification"] = args["CodecSpecification"], ["TimedMetadataId3Period"] = args["TimedMetadataId3Period"], ["MinFinalSegmentLength"] = args["MinFinalSegmentLength"], ["TimestampDeltaMilliseconds"] = args["TimestampDeltaMilliseconds"], ["BaseUrl"] = args["BaseUrl"], ["SegmentLength"] = args["SegmentLength"], ["ProgramDateTimePeriod"] = args["ProgramDateTimePeriod"], ["SegmentControl"] = args["SegmentControl"], ["CaptionLanguageSetting"] = args["CaptionLanguageSetting"], ["ProgramDateTime"] = args["ProgramDateTime"], ["StreamInfResolution"] = args["StreamInfResolution"], ["ClientCache"] = args["ClientCache"], ["AdMarkers"] = args["AdMarkers"], ["SegmentsPerSubdirectory"] = args["SegmentsPerSubdirectory"], ["OutputSelection"] = args["OutputSelection"], ["ManifestCompression"] = args["ManifestCompression"], ["MinSegmentLength"] = args["MinSegmentLength"], ["DirectoryStructure"] = args["DirectoryStructure"], } asserts.AssertHlsGroupSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.HlsSettings = { ["SegmentModifier"] = true, ["IFrameOnlyManifest"] = true, ["AudioGroupId"] = true, ["AudioTrackType"] = true, ["AudioRenditionSets"] = true, nil } function asserts.AssertHlsSettings(struct) assert(struct) assert(type(struct) == "table", "Expected HlsSettings to be of type 'table'") if struct["SegmentModifier"] then asserts.Assert__string(struct["SegmentModifier"]) end if struct["IFrameOnlyManifest"] then asserts.AssertHlsIFrameOnlyManifest(struct["IFrameOnlyManifest"]) end if struct["AudioGroupId"] then asserts.Assert__string(struct["AudioGroupId"]) end if struct["AudioTrackType"] then asserts.AssertHlsAudioTrackType(struct["AudioTrackType"]) end if struct["AudioRenditionSets"] then asserts.Assert__string(struct["AudioRenditionSets"]) end for k,_ in pairs(struct) do assert(keys.HlsSettings[k], "HlsSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type HlsSettings -- Settings for HLS output groups -- @param args Table with arguments in key-value form. -- Valid keys: -- * SegmentModifier [__string] String concatenated to end of segment filenames. Accepts "Format Identifiers":#format_identifier_parameters. -- * IFrameOnlyManifest [HlsIFrameOnlyManifest] -- * AudioGroupId [__string] Specifies the group to which the audio Rendition belongs. -- * AudioTrackType [HlsAudioTrackType] -- * AudioRenditionSets [__string] List all the audio groups that are used with the video output stream. Input all the audio GROUP-IDs that are associated to the video, separate by ','. -- @return HlsSettings structure as a key-value pair table function M.HlsSettings(args) assert(args, "You must provide an argument table when creating HlsSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["SegmentModifier"] = args["SegmentModifier"], ["IFrameOnlyManifest"] = args["IFrameOnlyManifest"], ["AudioGroupId"] = args["AudioGroupId"], ["AudioTrackType"] = args["AudioTrackType"], ["AudioRenditionSets"] = args["AudioRenditionSets"], } asserts.AssertHlsSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.MsSmoothGroupSettings = { ["Destination"] = true, ["Encryption"] = true, ["FragmentLength"] = true, ["AudioDeduplication"] = true, ["ManifestEncoding"] = true, nil } function asserts.AssertMsSmoothGroupSettings(struct) assert(struct) assert(type(struct) == "table", "Expected MsSmoothGroupSettings to be of type 'table'") if struct["Destination"] then asserts.Assert__stringPatternS3(struct["Destination"]) end if struct["Encryption"] then asserts.AssertMsSmoothEncryptionSettings(struct["Encryption"]) end if struct["FragmentLength"] then asserts.Assert__integerMin1Max2147483647(struct["FragmentLength"]) end if struct["AudioDeduplication"] then asserts.AssertMsSmoothAudioDeduplication(struct["AudioDeduplication"]) end if struct["ManifestEncoding"] then asserts.AssertMsSmoothManifestEncoding(struct["ManifestEncoding"]) end for k,_ in pairs(struct) do assert(keys.MsSmoothGroupSettings[k], "MsSmoothGroupSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type MsSmoothGroupSettings -- Required when you set (Type) under (OutputGroups)>(OutputGroupSettings) to MS_SMOOTH_GROUP_SETTINGS. -- @param args Table with arguments in key-value form. -- Valid keys: -- * Destination [__stringPatternS3] Use Destination (Destination) to specify the S3 output location and the output filename base. Destination accepts format identifiers. If you do not specify the base filename in the URI, the service will use the filename of the input file. If your job has multiple inputs, the service uses the filename of the first input file. -- * Encryption [MsSmoothEncryptionSettings] -- * FragmentLength [__integerMin1Max2147483647] Use Fragment length (FragmentLength) to specify the mp4 fragment sizes in seconds. Fragment length must be compatible with GOP size and framerate. -- * AudioDeduplication [MsSmoothAudioDeduplication] -- * ManifestEncoding [MsSmoothManifestEncoding] -- @return MsSmoothGroupSettings structure as a key-value pair table function M.MsSmoothGroupSettings(args) assert(args, "You must provide an argument table when creating MsSmoothGroupSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Destination"] = args["Destination"], ["Encryption"] = args["Encryption"], ["FragmentLength"] = args["FragmentLength"], ["AudioDeduplication"] = args["AudioDeduplication"], ["ManifestEncoding"] = args["ManifestEncoding"], } asserts.AssertMsSmoothGroupSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.CmafEncryptionSettings = { ["ConstantInitializationVector"] = true, ["Type"] = true, ["EncryptionMethod"] = true, ["StaticKeyProvider"] = true, ["InitializationVectorInManifest"] = true, nil } function asserts.AssertCmafEncryptionSettings(struct) assert(struct) assert(type(struct) == "table", "Expected CmafEncryptionSettings to be of type 'table'") if struct["ConstantInitializationVector"] then asserts.Assert__stringMin32Max32Pattern09aFAF32(struct["ConstantInitializationVector"]) end if struct["Type"] then asserts.AssertCmafKeyProviderType(struct["Type"]) end if struct["EncryptionMethod"] then asserts.AssertCmafEncryptionType(struct["EncryptionMethod"]) end if struct["StaticKeyProvider"] then asserts.AssertStaticKeyProvider(struct["StaticKeyProvider"]) end if struct["InitializationVectorInManifest"] then asserts.AssertCmafInitializationVectorInManifest(struct["InitializationVectorInManifest"]) end for k,_ in pairs(struct) do assert(keys.CmafEncryptionSettings[k], "CmafEncryptionSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type CmafEncryptionSettings -- Settings for CMAF encryption -- @param args Table with arguments in key-value form. -- Valid keys: -- * ConstantInitializationVector [__stringMin32Max32Pattern09aFAF32] This is a 128-bit, 16-byte hex value represented by a 32-character text string. If this parameter is not set then the Initialization Vector will follow the segment number by default. -- * Type [CmafKeyProviderType] -- * EncryptionMethod [CmafEncryptionType] -- * StaticKeyProvider [StaticKeyProvider] -- * InitializationVectorInManifest [CmafInitializationVectorInManifest] -- @return CmafEncryptionSettings structure as a key-value pair table function M.CmafEncryptionSettings(args) assert(args, "You must provide an argument table when creating CmafEncryptionSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["ConstantInitializationVector"] = args["ConstantInitializationVector"], ["Type"] = args["Type"], ["EncryptionMethod"] = args["EncryptionMethod"], ["StaticKeyProvider"] = args["StaticKeyProvider"], ["InitializationVectorInManifest"] = args["InitializationVectorInManifest"], } asserts.AssertCmafEncryptionSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.DeleteJobTemplateResponse = { nil } function asserts.AssertDeleteJobTemplateResponse(struct) assert(struct) assert(type(struct) == "table", "Expected DeleteJobTemplateResponse to be of type 'table'") for k,_ in pairs(struct) do assert(keys.DeleteJobTemplateResponse[k], "DeleteJobTemplateResponse contains unknown key " .. tostring(k)) end end --- Create a structure of type DeleteJobTemplateResponse -- -- @param args Table with arguments in key-value form. -- Valid keys: -- @return DeleteJobTemplateResponse structure as a key-value pair table function M.DeleteJobTemplateResponse(args) assert(args, "You must provide an argument table when creating DeleteJobTemplateResponse") local query_args = { } local uri_args = { } local header_args = { } local all_args = { } asserts.AssertDeleteJobTemplateResponse(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.UpdateQueueResponse = { ["Queue"] = true, nil } function asserts.AssertUpdateQueueResponse(struct) assert(struct) assert(type(struct) == "table", "Expected UpdateQueueResponse to be of type 'table'") if struct["Queue"] then asserts.AssertQueue(struct["Queue"]) end for k,_ in pairs(struct) do assert(keys.UpdateQueueResponse[k], "UpdateQueueResponse contains unknown key " .. tostring(k)) end end --- Create a structure of type UpdateQueueResponse -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Queue [Queue] -- @return UpdateQueueResponse structure as a key-value pair table function M.UpdateQueueResponse(args) assert(args, "You must provide an argument table when creating UpdateQueueResponse") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Queue"] = args["Queue"], } asserts.AssertUpdateQueueResponse(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.SpekeKeyProvider = { ["Url"] = true, ["ResourceId"] = true, ["SystemIds"] = true, nil } function asserts.AssertSpekeKeyProvider(struct) assert(struct) assert(type(struct) == "table", "Expected SpekeKeyProvider to be of type 'table'") if struct["Url"] then asserts.Assert__stringPatternHttps(struct["Url"]) end if struct["ResourceId"] then asserts.Assert__string(struct["ResourceId"]) end if struct["SystemIds"] then asserts.Assert__listOf__stringPattern09aFAF809aFAF409aFAF409aFAF409aFAF12(struct["SystemIds"]) end for k,_ in pairs(struct) do assert(keys.SpekeKeyProvider[k], "SpekeKeyProvider contains unknown key " .. tostring(k)) end end --- Create a structure of type SpekeKeyProvider -- Settings for use with a SPEKE key provider -- @param args Table with arguments in key-value form. -- Valid keys: -- * Url [__stringPatternHttps] Use URL (Url) to specify the SPEKE-compliant server that will provide keys for content. -- * ResourceId [__string] The SPEKE-compliant server uses Resource ID (ResourceId) to identify content. -- * SystemIds [__listOf__stringPattern09aFAF809aFAF409aFAF409aFAF409aFAF12] Relates to SPEKE implementation. DRM system identifiers. DASH output groups support a max of two system ids. Other group types support one system id. -- @return SpekeKeyProvider structure as a key-value pair table function M.SpekeKeyProvider(args) assert(args, "You must provide an argument table when creating SpekeKeyProvider") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Url"] = args["Url"], ["ResourceId"] = args["ResourceId"], ["SystemIds"] = args["SystemIds"], } asserts.AssertSpekeKeyProvider(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.GetJobResponse = { ["Job"] = true, nil } function asserts.AssertGetJobResponse(struct) assert(struct) assert(type(struct) == "table", "Expected GetJobResponse to be of type 'table'") if struct["Job"] then asserts.AssertJob(struct["Job"]) end for k,_ in pairs(struct) do assert(keys.GetJobResponse[k], "GetJobResponse contains unknown key " .. tostring(k)) end end --- Create a structure of type GetJobResponse -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Job [Job] -- @return GetJobResponse structure as a key-value pair table function M.GetJobResponse(args) assert(args, "You must provide an argument table when creating GetJobResponse") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Job"] = args["Job"], } asserts.AssertGetJobResponse(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.ChannelMapping = { ["OutputChannels"] = true, nil } function asserts.AssertChannelMapping(struct) assert(struct) assert(type(struct) == "table", "Expected ChannelMapping to be of type 'table'") if struct["OutputChannels"] then asserts.Assert__listOfOutputChannelMapping(struct["OutputChannels"]) end for k,_ in pairs(struct) do assert(keys.ChannelMapping[k], "ChannelMapping contains unknown key " .. tostring(k)) end end --- Create a structure of type ChannelMapping -- Channel mapping (ChannelMapping) contains the group of fields that hold the remixing value for each channel. Units are in dB. Acceptable values are within the range from -60 (mute) through 6. A setting of 0 passes the input channel unchanged to the output channel (no attenuation or amplification). -- @param args Table with arguments in key-value form. -- Valid keys: -- * OutputChannels [__listOfOutputChannelMapping] List of output channels -- @return ChannelMapping structure as a key-value pair table function M.ChannelMapping(args) assert(args, "You must provide an argument table when creating ChannelMapping") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["OutputChannels"] = args["OutputChannels"], } asserts.AssertChannelMapping(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.MovSettings = { ["ClapAtom"] = true, ["Reference"] = true, ["PaddingControl"] = true, ["Mpeg2FourCCControl"] = true, ["CslgAtom"] = true, nil } function asserts.AssertMovSettings(struct) assert(struct) assert(type(struct) == "table", "Expected MovSettings to be of type 'table'") if struct["ClapAtom"] then asserts.AssertMovClapAtom(struct["ClapAtom"]) end if struct["Reference"] then asserts.AssertMovReference(struct["Reference"]) end if struct["PaddingControl"] then asserts.AssertMovPaddingControl(struct["PaddingControl"]) end if struct["Mpeg2FourCCControl"] then asserts.AssertMovMpeg2FourCCControl(struct["Mpeg2FourCCControl"]) end if struct["CslgAtom"] then asserts.AssertMovCslgAtom(struct["CslgAtom"]) end for k,_ in pairs(struct) do assert(keys.MovSettings[k], "MovSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type MovSettings -- Settings for MOV Container. -- @param args Table with arguments in key-value form. -- Valid keys: -- * ClapAtom [MovClapAtom] -- * Reference [MovReference] -- * PaddingControl [MovPaddingControl] -- * Mpeg2FourCCControl [MovMpeg2FourCCControl] -- * CslgAtom [MovCslgAtom] -- @return MovSettings structure as a key-value pair table function M.MovSettings(args) assert(args, "You must provide an argument table when creating MovSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["ClapAtom"] = args["ClapAtom"], ["Reference"] = args["Reference"], ["PaddingControl"] = args["PaddingControl"], ["Mpeg2FourCCControl"] = args["Mpeg2FourCCControl"], ["CslgAtom"] = args["CslgAtom"], } asserts.AssertMovSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.OutputChannelMapping = { ["InputChannels"] = true, nil } function asserts.AssertOutputChannelMapping(struct) assert(struct) assert(type(struct) == "table", "Expected OutputChannelMapping to be of type 'table'") if struct["InputChannels"] then asserts.Assert__listOf__integerMinNegative60Max6(struct["InputChannels"]) end for k,_ in pairs(struct) do assert(keys.OutputChannelMapping[k], "OutputChannelMapping contains unknown key " .. tostring(k)) end end --- Create a structure of type OutputChannelMapping -- OutputChannel mapping settings. -- @param args Table with arguments in key-value form. -- Valid keys: -- * InputChannels [__listOf__integerMinNegative60Max6] List of input channels -- @return OutputChannelMapping structure as a key-value pair table function M.OutputChannelMapping(args) assert(args, "You must provide an argument table when creating OutputChannelMapping") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["InputChannels"] = args["InputChannels"], } asserts.AssertOutputChannelMapping(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.TeletextSourceSettings = { ["PageNumber"] = true, nil } function asserts.AssertTeletextSourceSettings(struct) assert(struct) assert(type(struct) == "table", "Expected TeletextSourceSettings to be of type 'table'") if struct["PageNumber"] then asserts.Assert__stringMin3Max3Pattern1809aFAF09aEAE(struct["PageNumber"]) end for k,_ in pairs(struct) do assert(keys.TeletextSourceSettings[k], "TeletextSourceSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type TeletextSourceSettings -- Settings specific to Teletext caption sources, including Page number. -- @param args Table with arguments in key-value form. -- Valid keys: -- * PageNumber [__stringMin3Max3Pattern1809aFAF09aEAE] Use Page Number (PageNumber) to specify the three-digit hexadecimal page number that will be used for Teletext captions. Do not use this setting if you are passing through teletext from the input source to output. -- @return TeletextSourceSettings structure as a key-value pair table function M.TeletextSourceSettings(args) assert(args, "You must provide an argument table when creating TeletextSourceSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["PageNumber"] = args["PageNumber"], } asserts.AssertTeletextSourceSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.CancelJobRequest = { ["Id"] = true, nil } function asserts.AssertCancelJobRequest(struct) assert(struct) assert(type(struct) == "table", "Expected CancelJobRequest to be of type 'table'") assert(struct["Id"], "Expected key Id to exist in table") if struct["Id"] then asserts.Assert__string(struct["Id"]) end for k,_ in pairs(struct) do assert(keys.CancelJobRequest[k], "CancelJobRequest contains unknown key " .. tostring(k)) end end --- Create a structure of type CancelJobRequest -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Id [__string] The Job ID of the job to be cancelled. -- Required key: Id -- @return CancelJobRequest structure as a key-value pair table function M.CancelJobRequest(args) assert(args, "You must provide an argument table when creating CancelJobRequest") local query_args = { } local uri_args = { ["{id}"] = args["Id"], } local header_args = { } local all_args = { ["Id"] = args["Id"], } asserts.AssertCancelJobRequest(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.VideoPreprocessor = { ["ColorCorrector"] = true, ["ImageInserter"] = true, ["TimecodeBurnin"] = true, ["NoiseReducer"] = true, ["Deinterlacer"] = true, nil } function asserts.AssertVideoPreprocessor(struct) assert(struct) assert(type(struct) == "table", "Expected VideoPreprocessor to be of type 'table'") if struct["ColorCorrector"] then asserts.AssertColorCorrector(struct["ColorCorrector"]) end if struct["ImageInserter"] then asserts.AssertImageInserter(struct["ImageInserter"]) end if struct["TimecodeBurnin"] then asserts.AssertTimecodeBurnin(struct["TimecodeBurnin"]) end if struct["NoiseReducer"] then asserts.AssertNoiseReducer(struct["NoiseReducer"]) end if struct["Deinterlacer"] then asserts.AssertDeinterlacer(struct["Deinterlacer"]) end for k,_ in pairs(struct) do assert(keys.VideoPreprocessor[k], "VideoPreprocessor contains unknown key " .. tostring(k)) end end --- Create a structure of type VideoPreprocessor -- Find additional transcoding features under Preprocessors (VideoPreprocessors). Enable the features at each output individually. These features are disabled by default. -- @param args Table with arguments in key-value form. -- Valid keys: -- * ColorCorrector [ColorCorrector] Enable the Color corrector (ColorCorrector) feature if necessary. Enable or disable this feature for each output individually. This setting is disabled by default. -- * ImageInserter [ImageInserter] Enable the Image inserter (ImageInserter) feature to include a graphic overlay on your video. Enable or disable this feature for each output individually. This setting is disabled by default. -- * TimecodeBurnin [TimecodeBurnin] Timecode burn-in (TimecodeBurnIn)--Burns the output timecode and specified prefix into the output. -- * NoiseReducer [NoiseReducer] Enable the Noise reducer (NoiseReducer) feature to remove noise from your video output if necessary. Enable or disable this feature for each output individually. This setting is disabled by default. -- * Deinterlacer [Deinterlacer] Use Deinterlacer (Deinterlacer) to produce smoother motion and a clearer picture. -- @return VideoPreprocessor structure as a key-value pair table function M.VideoPreprocessor(args) assert(args, "You must provide an argument table when creating VideoPreprocessor") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["ColorCorrector"] = args["ColorCorrector"], ["ImageInserter"] = args["ImageInserter"], ["TimecodeBurnin"] = args["TimecodeBurnin"], ["NoiseReducer"] = args["NoiseReducer"], ["Deinterlacer"] = args["Deinterlacer"], } asserts.AssertVideoPreprocessor(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.StaticKeyProvider = { ["StaticKeyValue"] = true, ["KeyFormat"] = true, ["Url"] = true, ["KeyFormatVersions"] = true, nil } function asserts.AssertStaticKeyProvider(struct) assert(struct) assert(type(struct) == "table", "Expected StaticKeyProvider to be of type 'table'") if struct["StaticKeyValue"] then asserts.Assert__stringPatternAZaZ0932(struct["StaticKeyValue"]) end if struct["KeyFormat"] then asserts.Assert__stringPatternIdentityAZaZ26AZaZ09163(struct["KeyFormat"]) end if struct["Url"] then asserts.Assert__string(struct["Url"]) end if struct["KeyFormatVersions"] then asserts.Assert__stringPatternDD(struct["KeyFormatVersions"]) end for k,_ in pairs(struct) do assert(keys.StaticKeyProvider[k], "StaticKeyProvider contains unknown key " .. tostring(k)) end end --- Create a structure of type StaticKeyProvider -- Settings for use with a SPEKE key provider. -- @param args Table with arguments in key-value form. -- Valid keys: -- * StaticKeyValue [__stringPatternAZaZ0932] Relates to DRM implementation. Use a 32-character hexidecimal string to specify Key Value (StaticKeyValue). -- * KeyFormat [__stringPatternIdentityAZaZ26AZaZ09163] Relates to DRM implementation. Sets the value of the KEYFORMAT attribute. Must be 'identity' or a reverse DNS string. May be omitted to indicate an implicit value of 'identity'. -- * Url [__string] Relates to DRM implementation. The location of the license server used for protecting content. -- * KeyFormatVersions [__stringPatternDD] Relates to DRM implementation. Either a single positive integer version value or a slash delimited list of version values (1/2/3). -- @return StaticKeyProvider structure as a key-value pair table function M.StaticKeyProvider(args) assert(args, "You must provide an argument table when creating StaticKeyProvider") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["StaticKeyValue"] = args["StaticKeyValue"], ["KeyFormat"] = args["KeyFormat"], ["Url"] = args["Url"], ["KeyFormatVersions"] = args["KeyFormatVersions"], } asserts.AssertStaticKeyProvider(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.Preset = { ["Category"] = true, ["Name"] = true, ["Settings"] = true, ["LastUpdated"] = true, ["Arn"] = true, ["Type"] = true, ["CreatedAt"] = true, ["Description"] = true, nil } function asserts.AssertPreset(struct) assert(struct) assert(type(struct) == "table", "Expected Preset to be of type 'table'") assert(struct["Settings"], "Expected key Settings to exist in table") assert(struct["Name"], "Expected key Name to exist in table") if struct["Category"] then asserts.Assert__string(struct["Category"]) end if struct["Name"] then asserts.Assert__string(struct["Name"]) end if struct["Settings"] then asserts.AssertPresetSettings(struct["Settings"]) end if struct["LastUpdated"] then asserts.Assert__timestampUnix(struct["LastUpdated"]) end if struct["Arn"] then asserts.Assert__string(struct["Arn"]) end if struct["Type"] then asserts.AssertType(struct["Type"]) end if struct["CreatedAt"] then asserts.Assert__timestampUnix(struct["CreatedAt"]) end if struct["Description"] then asserts.Assert__string(struct["Description"]) end for k,_ in pairs(struct) do assert(keys.Preset[k], "Preset contains unknown key " .. tostring(k)) end end --- Create a structure of type Preset -- A preset is a collection of preconfigured media conversion settings that you want MediaConvert to apply to the output during the conversion process. -- @param args Table with arguments in key-value form. -- Valid keys: -- * Category [__string] An optional category you create to organize your presets. -- * Name [__string] A name you create for each preset. Each name must be unique within your account. -- * Settings [PresetSettings] -- * LastUpdated [__timestampUnix] The timestamp in epoch seconds when the preset was last updated. -- * Arn [__string] An identifier for this resource that is unique within all of AWS. -- * Type [Type] A preset can be of two types: system or custom. System or built-in preset can't be modified or deleted by the user. -- * CreatedAt [__timestampUnix] The timestamp in epoch seconds for preset creation. -- * Description [__string] An optional description you create for each preset. -- Required key: Settings -- Required key: Name -- @return Preset structure as a key-value pair table function M.Preset(args) assert(args, "You must provide an argument table when creating Preset") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Category"] = args["Category"], ["Name"] = args["Name"], ["Settings"] = args["Settings"], ["LastUpdated"] = args["LastUpdated"], ["Arn"] = args["Arn"], ["Type"] = args["Type"], ["CreatedAt"] = args["CreatedAt"], ["Description"] = args["Description"], } asserts.AssertPreset(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.TimedMetadataInsertion = { ["Id3Insertions"] = true, nil } function asserts.AssertTimedMetadataInsertion(struct) assert(struct) assert(type(struct) == "table", "Expected TimedMetadataInsertion to be of type 'table'") if struct["Id3Insertions"] then asserts.Assert__listOfId3Insertion(struct["Id3Insertions"]) end for k,_ in pairs(struct) do assert(keys.TimedMetadataInsertion[k], "TimedMetadataInsertion contains unknown key " .. tostring(k)) end end --- Create a structure of type TimedMetadataInsertion -- Enable Timed metadata insertion (TimedMetadataInsertion) to include ID3 tags in your job. To include timed metadata, you must enable it here, enable it in each output container, and specify tags and timecodes in ID3 insertion (Id3Insertion) objects. -- @param args Table with arguments in key-value form. -- Valid keys: -- * Id3Insertions [__listOfId3Insertion] Id3Insertions contains the array of Id3Insertion instances. -- @return TimedMetadataInsertion structure as a key-value pair table function M.TimedMetadataInsertion(args) assert(args, "You must provide an argument table when creating TimedMetadataInsertion") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Id3Insertions"] = args["Id3Insertions"], } asserts.AssertTimedMetadataInsertion(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.ProresSettings = { ["SlowPal"] = true, ["ParControl"] = true, ["FramerateConversionAlgorithm"] = true, ["CodecProfile"] = true, ["Telecine"] = true, ["ParDenominator"] = true, ["ParNumerator"] = true, ["FramerateControl"] = true, ["InterlaceMode"] = true, ["FramerateDenominator"] = true, ["FramerateNumerator"] = true, nil } function asserts.AssertProresSettings(struct) assert(struct) assert(type(struct) == "table", "Expected ProresSettings to be of type 'table'") if struct["SlowPal"] then asserts.AssertProresSlowPal(struct["SlowPal"]) end if struct["ParControl"] then asserts.AssertProresParControl(struct["ParControl"]) end if struct["FramerateConversionAlgorithm"] then asserts.AssertProresFramerateConversionAlgorithm(struct["FramerateConversionAlgorithm"]) end if struct["CodecProfile"] then asserts.AssertProresCodecProfile(struct["CodecProfile"]) end if struct["Telecine"] then asserts.AssertProresTelecine(struct["Telecine"]) end if struct["ParDenominator"] then asserts.Assert__integerMin1Max2147483647(struct["ParDenominator"]) end if struct["ParNumerator"] then asserts.Assert__integerMin1Max2147483647(struct["ParNumerator"]) end if struct["FramerateControl"] then asserts.AssertProresFramerateControl(struct["FramerateControl"]) end if struct["InterlaceMode"] then asserts.AssertProresInterlaceMode(struct["InterlaceMode"]) end if struct["FramerateDenominator"] then asserts.Assert__integerMin1Max2147483647(struct["FramerateDenominator"]) end if struct["FramerateNumerator"] then asserts.Assert__integerMin1Max2147483647(struct["FramerateNumerator"]) end for k,_ in pairs(struct) do assert(keys.ProresSettings[k], "ProresSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type ProresSettings -- Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the value PRORES. -- @param args Table with arguments in key-value form. -- Valid keys: -- * SlowPal [ProresSlowPal] -- * ParControl [ProresParControl] -- * FramerateConversionAlgorithm [ProresFramerateConversionAlgorithm] -- * CodecProfile [ProresCodecProfile] -- * Telecine [ProresTelecine] -- * ParDenominator [__integerMin1Max2147483647] Pixel Aspect Ratio denominator. -- * ParNumerator [__integerMin1Max2147483647] Pixel Aspect Ratio numerator. -- * FramerateControl [ProresFramerateControl] -- * InterlaceMode [ProresInterlaceMode] -- * FramerateDenominator [__integerMin1Max2147483647] Framerate denominator. -- * FramerateNumerator [__integerMin1Max2147483647] When you use the API for transcode jobs that use framerate conversion, specify the framerate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateNumerator to specify the numerator of this fraction. In this example, use 24000 for the value of FramerateNumerator. -- @return ProresSettings structure as a key-value pair table function M.ProresSettings(args) assert(args, "You must provide an argument table when creating ProresSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["SlowPal"] = args["SlowPal"], ["ParControl"] = args["ParControl"], ["FramerateConversionAlgorithm"] = args["FramerateConversionAlgorithm"], ["CodecProfile"] = args["CodecProfile"], ["Telecine"] = args["Telecine"], ["ParDenominator"] = args["ParDenominator"], ["ParNumerator"] = args["ParNumerator"], ["FramerateControl"] = args["FramerateControl"], ["InterlaceMode"] = args["InterlaceMode"], ["FramerateDenominator"] = args["FramerateDenominator"], ["FramerateNumerator"] = args["FramerateNumerator"], } asserts.AssertProresSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.InputTemplate = { ["AudioSelectors"] = true, ["CaptionSelectors"] = true, ["AudioSelectorGroups"] = true, ["FilterEnable"] = true, ["TimecodeSource"] = true, ["PsiControl"] = true, ["FilterStrength"] = true, ["ProgramNumber"] = true, ["DenoiseFilter"] = true, ["InputClippings"] = true, ["VideoSelector"] = true, ["DeblockFilter"] = true, nil } function asserts.AssertInputTemplate(struct) assert(struct) assert(type(struct) == "table", "Expected InputTemplate to be of type 'table'") if struct["AudioSelectors"] then asserts.Assert__mapOfAudioSelector(struct["AudioSelectors"]) end if struct["CaptionSelectors"] then asserts.Assert__mapOfCaptionSelector(struct["CaptionSelectors"]) end if struct["AudioSelectorGroups"] then asserts.Assert__mapOfAudioSelectorGroup(struct["AudioSelectorGroups"]) end if struct["FilterEnable"] then asserts.AssertInputFilterEnable(struct["FilterEnable"]) end if struct["TimecodeSource"] then asserts.AssertInputTimecodeSource(struct["TimecodeSource"]) end if struct["PsiControl"] then asserts.AssertInputPsiControl(struct["PsiControl"]) end if struct["FilterStrength"] then asserts.Assert__integerMinNegative5Max5(struct["FilterStrength"]) end if struct["ProgramNumber"] then asserts.Assert__integerMin1Max2147483647(struct["ProgramNumber"]) end if struct["DenoiseFilter"] then asserts.AssertInputDenoiseFilter(struct["DenoiseFilter"]) end if struct["InputClippings"] then asserts.Assert__listOfInputClipping(struct["InputClippings"]) end if struct["VideoSelector"] then asserts.AssertVideoSelector(struct["VideoSelector"]) end if struct["DeblockFilter"] then asserts.AssertInputDeblockFilter(struct["DeblockFilter"]) end for k,_ in pairs(struct) do assert(keys.InputTemplate[k], "InputTemplate contains unknown key " .. tostring(k)) end end --- Create a structure of type InputTemplate -- Specified video input in a template. -- @param args Table with arguments in key-value form. -- Valid keys: -- * AudioSelectors [__mapOfAudioSelector] Use Audio selectors (AudioSelectors) to specify a track or set of tracks from the input that you will use in your outputs. You can use mutiple Audio selectors per input. -- * CaptionSelectors [__mapOfCaptionSelector] Use Captions selectors (CaptionSelectors) to specify the captions data from the input that you will use in your outputs. You can use mutiple captions selectors per input. -- * AudioSelectorGroups [__mapOfAudioSelectorGroup] Specifies set of audio selectors within an input to combine. An input may have multiple audio selector groups. See "Audio Selector Group":#inputs-audio_selector_group for more information. -- * FilterEnable [InputFilterEnable] -- * TimecodeSource [InputTimecodeSource] -- * PsiControl [InputPsiControl] -- * FilterStrength [__integerMinNegative5Max5] Use Filter strength (FilterStrength) to adjust the magnitude the input filter settings (Deblock and Denoise). The range is -5 to 5. Default is 0. -- * ProgramNumber [__integerMin1Max2147483647] Use Program (programNumber) to select a specific program from within a multi-program transport stream. Note that Quad 4K is not currently supported. Default is the first program within the transport stream. If the program you specify doesn't exist, the transcoding service will use this default. -- * DenoiseFilter [InputDenoiseFilter] -- * InputClippings [__listOfInputClipping] (InputClippings) contains sets of start and end times that together specify a portion of the input to be used in the outputs. If you provide only a start time, the clip will be the entire input from that point to the end. If you provide only an end time, it will be the entire input up to that point. When you specify more than one input clip, the transcoding service creates the job outputs by stringing the clips together in the order you specify them. -- * VideoSelector [VideoSelector] -- * DeblockFilter [InputDeblockFilter] -- @return InputTemplate structure as a key-value pair table function M.InputTemplate(args) assert(args, "You must provide an argument table when creating InputTemplate") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["AudioSelectors"] = args["AudioSelectors"], ["CaptionSelectors"] = args["CaptionSelectors"], ["AudioSelectorGroups"] = args["AudioSelectorGroups"], ["FilterEnable"] = args["FilterEnable"], ["TimecodeSource"] = args["TimecodeSource"], ["PsiControl"] = args["PsiControl"], ["FilterStrength"] = args["FilterStrength"], ["ProgramNumber"] = args["ProgramNumber"], ["DenoiseFilter"] = args["DenoiseFilter"], ["InputClippings"] = args["InputClippings"], ["VideoSelector"] = args["VideoSelector"], ["DeblockFilter"] = args["DeblockFilter"], } asserts.AssertInputTemplate(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.CreateJobResponse = { ["Job"] = true, nil } function asserts.AssertCreateJobResponse(struct) assert(struct) assert(type(struct) == "table", "Expected CreateJobResponse to be of type 'table'") if struct["Job"] then asserts.AssertJob(struct["Job"]) end for k,_ in pairs(struct) do assert(keys.CreateJobResponse[k], "CreateJobResponse contains unknown key " .. tostring(k)) end end --- Create a structure of type CreateJobResponse -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Job [Job] -- @return CreateJobResponse structure as a key-value pair table function M.CreateJobResponse(args) assert(args, "You must provide an argument table when creating CreateJobResponse") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Job"] = args["Job"], } asserts.AssertCreateJobResponse(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.Job = { ["Status"] = true, ["JobTemplate"] = true, ["OutputGroupDetails"] = true, ["Settings"] = true, ["ErrorMessage"] = true, ["Queue"] = true, ["ErrorCode"] = true, ["Timing"] = true, ["Role"] = true, ["Arn"] = true, ["UserMetadata"] = true, ["BillingTagsSource"] = true, ["Id"] = true, ["CreatedAt"] = true, nil } function asserts.AssertJob(struct) assert(struct) assert(type(struct) == "table", "Expected Job to be of type 'table'") assert(struct["Role"], "Expected key Role to exist in table") assert(struct["Settings"], "Expected key Settings to exist in table") if struct["Status"] then asserts.AssertJobStatus(struct["Status"]) end if struct["JobTemplate"] then asserts.Assert__string(struct["JobTemplate"]) end if struct["OutputGroupDetails"] then asserts.Assert__listOfOutputGroupDetail(struct["OutputGroupDetails"]) end if struct["Settings"] then asserts.AssertJobSettings(struct["Settings"]) end if struct["ErrorMessage"] then asserts.Assert__string(struct["ErrorMessage"]) end if struct["Queue"] then asserts.Assert__string(struct["Queue"]) end if struct["ErrorCode"] then asserts.Assert__integer(struct["ErrorCode"]) end if struct["Timing"] then asserts.AssertTiming(struct["Timing"]) end if struct["Role"] then asserts.Assert__string(struct["Role"]) end if struct["Arn"] then asserts.Assert__string(struct["Arn"]) end if struct["UserMetadata"] then asserts.Assert__mapOf__string(struct["UserMetadata"]) end if struct["BillingTagsSource"] then asserts.AssertBillingTagsSource(struct["BillingTagsSource"]) end if struct["Id"] then asserts.Assert__string(struct["Id"]) end if struct["CreatedAt"] then asserts.Assert__timestampUnix(struct["CreatedAt"]) end for k,_ in pairs(struct) do assert(keys.Job[k], "Job contains unknown key " .. tostring(k)) end end --- Create a structure of type Job -- Each job converts an input file into an output file or files. For more information, see the User Guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html -- @param args Table with arguments in key-value form. -- Valid keys: -- * Status [JobStatus] -- * JobTemplate [__string] The job template that the job is created from, if it is created from a job template. -- * OutputGroupDetails [__listOfOutputGroupDetail] List of output group details -- * Settings [JobSettings] -- * ErrorMessage [__string] Error message of Job -- * Queue [__string] Optional. When you create a job, you can specify a queue to send it to. If you don't specify, the job will go to the default queue. For more about queues, see the User Guide topic at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html -- * ErrorCode [__integer] Error code for the job -- * Timing [Timing] -- * Role [__string] The IAM role you use for creating this job. For details about permissions, see the User Guide topic at the User Guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/iam-role.html -- * Arn [__string] An identifier for this resource that is unique within all of AWS. -- * UserMetadata [__mapOf__string] User-defined metadata that you want to associate with an MediaConvert job. You specify metadata in key/value pairs. -- * BillingTagsSource [BillingTagsSource] -- * Id [__string] A portion of the job's ARN, unique within your AWS Elemental MediaConvert resources -- * CreatedAt [__timestampUnix] The time, in Unix epoch format in seconds, when the job got created. -- Required key: Role -- Required key: Settings -- @return Job structure as a key-value pair table function M.Job(args) assert(args, "You must provide an argument table when creating Job") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Status"] = args["Status"], ["JobTemplate"] = args["JobTemplate"], ["OutputGroupDetails"] = args["OutputGroupDetails"], ["Settings"] = args["Settings"], ["ErrorMessage"] = args["ErrorMessage"], ["Queue"] = args["Queue"], ["ErrorCode"] = args["ErrorCode"], ["Timing"] = args["Timing"], ["Role"] = args["Role"], ["Arn"] = args["Arn"], ["UserMetadata"] = args["UserMetadata"], ["BillingTagsSource"] = args["BillingTagsSource"], ["Id"] = args["Id"], ["CreatedAt"] = args["CreatedAt"], } asserts.AssertJob(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.Hdr10Metadata = { ["RedPrimaryX"] = true, ["MaxFrameAverageLightLevel"] = true, ["GreenPrimaryX"] = true, ["GreenPrimaryY"] = true, ["BluePrimaryX"] = true, ["BluePrimaryY"] = true, ["MaxLuminance"] = true, ["RedPrimaryY"] = true, ["MinLuminance"] = true, ["WhitePointY"] = true, ["WhitePointX"] = true, ["MaxContentLightLevel"] = true, nil } function asserts.AssertHdr10Metadata(struct) assert(struct) assert(type(struct) == "table", "Expected Hdr10Metadata to be of type 'table'") if struct["RedPrimaryX"] then asserts.Assert__integerMin0Max50000(struct["RedPrimaryX"]) end if struct["MaxFrameAverageLightLevel"] then asserts.Assert__integerMin0Max65535(struct["MaxFrameAverageLightLevel"]) end if struct["GreenPrimaryX"] then asserts.Assert__integerMin0Max50000(struct["GreenPrimaryX"]) end if struct["GreenPrimaryY"] then asserts.Assert__integerMin0Max50000(struct["GreenPrimaryY"]) end if struct["BluePrimaryX"] then asserts.Assert__integerMin0Max50000(struct["BluePrimaryX"]) end if struct["BluePrimaryY"] then asserts.Assert__integerMin0Max50000(struct["BluePrimaryY"]) end if struct["MaxLuminance"] then asserts.Assert__integerMin0Max2147483647(struct["MaxLuminance"]) end if struct["RedPrimaryY"] then asserts.Assert__integerMin0Max50000(struct["RedPrimaryY"]) end if struct["MinLuminance"] then asserts.Assert__integerMin0Max2147483647(struct["MinLuminance"]) end if struct["WhitePointY"] then asserts.Assert__integerMin0Max50000(struct["WhitePointY"]) end if struct["WhitePointX"] then asserts.Assert__integerMin0Max50000(struct["WhitePointX"]) end if struct["MaxContentLightLevel"] then asserts.Assert__integerMin0Max65535(struct["MaxContentLightLevel"]) end for k,_ in pairs(struct) do assert(keys.Hdr10Metadata[k], "Hdr10Metadata contains unknown key " .. tostring(k)) end end --- Create a structure of type Hdr10Metadata -- Use the HDR master display (Hdr10Metadata) settings to correct HDR metadata or to provide missing metadata. These values vary depending on the input video and must be provided by a color grader. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that these settings are not color correction. Note that if you are creating HDR outputs inside of an HLS CMAF package, to comply with the Apple specification, you must use the HVC1 for H.265 setting. -- @param args Table with arguments in key-value form. -- Valid keys: -- * RedPrimaryX [__integerMin0Max50000] HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction. -- * MaxFrameAverageLightLevel [__integerMin0Max65535] Maximum average light level of any frame in the coded video sequence, in units of candelas per square meter. -- * GreenPrimaryX [__integerMin0Max50000] HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction. -- * GreenPrimaryY [__integerMin0Max50000] HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction. -- * BluePrimaryX [__integerMin0Max50000] HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction. -- * BluePrimaryY [__integerMin0Max50000] HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction. -- * MaxLuminance [__integerMin0Max2147483647] Nominal maximum mastering display luminance in units of of 0.0001 candelas per square meter. -- * RedPrimaryY [__integerMin0Max50000] HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction. -- * MinLuminance [__integerMin0Max2147483647] Nominal minimum mastering display luminance in units of of 0.0001 candelas per square meter -- * WhitePointY [__integerMin0Max50000] HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction. -- * WhitePointX [__integerMin0Max50000] HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction. -- * MaxContentLightLevel [__integerMin0Max65535] Maximum light level among all samples in the coded video sequence, in units of candelas per square meter. -- @return Hdr10Metadata structure as a key-value pair table function M.Hdr10Metadata(args) assert(args, "You must provide an argument table when creating Hdr10Metadata") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["RedPrimaryX"] = args["RedPrimaryX"], ["MaxFrameAverageLightLevel"] = args["MaxFrameAverageLightLevel"], ["GreenPrimaryX"] = args["GreenPrimaryX"], ["GreenPrimaryY"] = args["GreenPrimaryY"], ["BluePrimaryX"] = args["BluePrimaryX"], ["BluePrimaryY"] = args["BluePrimaryY"], ["MaxLuminance"] = args["MaxLuminance"], ["RedPrimaryY"] = args["RedPrimaryY"], ["MinLuminance"] = args["MinLuminance"], ["WhitePointY"] = args["WhitePointY"], ["WhitePointX"] = args["WhitePointX"], ["MaxContentLightLevel"] = args["MaxContentLightLevel"], } asserts.AssertHdr10Metadata(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.H264QvbrSettings = { ["QvbrQualityLevel"] = true, ["MaxAverageBitrate"] = true, nil } function asserts.AssertH264QvbrSettings(struct) assert(struct) assert(type(struct) == "table", "Expected H264QvbrSettings to be of type 'table'") if struct["QvbrQualityLevel"] then asserts.Assert__integerMin1Max10(struct["QvbrQualityLevel"]) end if struct["MaxAverageBitrate"] then asserts.Assert__integerMin1000Max1152000000(struct["MaxAverageBitrate"]) end for k,_ in pairs(struct) do assert(keys.H264QvbrSettings[k], "H264QvbrSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type H264QvbrSettings -- Settings for quality-defined variable bitrate encoding with the H.264 codec. Required when you set Rate control mode to QVBR. Not valid when you set Rate control mode to a value other than QVBR, or when you don't define Rate control mode. -- @param args Table with arguments in key-value form. -- Valid keys: -- * QvbrQualityLevel [__integerMin1Max10] Required when you use QVBR rate control mode. That is, when you specify qvbrSettings within h264Settings. Specify the target quality level for this output, from 1 to 10. Use higher numbers for greater quality. Level 10 results in nearly lossless compression. The quality level for most broadcast-quality transcodes is between 6 and 9. -- * MaxAverageBitrate [__integerMin1000Max1152000000] Use this setting only when Rate control mode is QVBR and Quality tuning level is Multi-pass HQ. For Max average bitrate values suited to the complexity of your input video, the service limits the average bitrate of the video part of this output to the value you choose. That is, the total size of the video element is less than or equal to the value you set multiplied by the number of seconds of encoded output. -- @return H264QvbrSettings structure as a key-value pair table function M.H264QvbrSettings(args) assert(args, "You must provide an argument table when creating H264QvbrSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["QvbrQualityLevel"] = args["QvbrQualityLevel"], ["MaxAverageBitrate"] = args["MaxAverageBitrate"], } asserts.AssertH264QvbrSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.HlsCaptionLanguageMapping = { ["CaptionChannel"] = true, ["LanguageDescription"] = true, ["CustomLanguageCode"] = true, ["LanguageCode"] = true, nil } function asserts.AssertHlsCaptionLanguageMapping(struct) assert(struct) assert(type(struct) == "table", "Expected HlsCaptionLanguageMapping to be of type 'table'") if struct["CaptionChannel"] then asserts.Assert__integerMinNegative2147483648Max2147483647(struct["CaptionChannel"]) end if struct["LanguageDescription"] then asserts.Assert__string(struct["LanguageDescription"]) end if struct["CustomLanguageCode"] then asserts.Assert__stringMin3Max3PatternAZaZ3(struct["CustomLanguageCode"]) end if struct["LanguageCode"] then asserts.AssertLanguageCode(struct["LanguageCode"]) end for k,_ in pairs(struct) do assert(keys.HlsCaptionLanguageMapping[k], "HlsCaptionLanguageMapping contains unknown key " .. tostring(k)) end end --- Create a structure of type HlsCaptionLanguageMapping -- Caption Language Mapping -- @param args Table with arguments in key-value form. -- Valid keys: -- * CaptionChannel [__integerMinNegative2147483648Max2147483647] Caption channel. -- * LanguageDescription [__string] Caption language description. -- * CustomLanguageCode [__stringMin3Max3PatternAZaZ3] Specify the language for this caption channel, using the ISO 639-2 or ISO 639-3 three-letter language code -- * LanguageCode [LanguageCode] -- @return HlsCaptionLanguageMapping structure as a key-value pair table function M.HlsCaptionLanguageMapping(args) assert(args, "You must provide an argument table when creating HlsCaptionLanguageMapping") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["CaptionChannel"] = args["CaptionChannel"], ["LanguageDescription"] = args["LanguageDescription"], ["CustomLanguageCode"] = args["CustomLanguageCode"], ["LanguageCode"] = args["LanguageCode"], } asserts.AssertHlsCaptionLanguageMapping(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.DashIsoGroupSettings = { ["SegmentControl"] = true, ["WriteSegmentTimelineInRepresentation"] = true, ["MinBufferTime"] = true, ["Encryption"] = true, ["Destination"] = true, ["BaseUrl"] = true, ["SegmentLength"] = true, ["HbbtvCompliance"] = true, ["FragmentLength"] = true, nil } function asserts.AssertDashIsoGroupSettings(struct) assert(struct) assert(type(struct) == "table", "Expected DashIsoGroupSettings to be of type 'table'") if struct["SegmentControl"] then asserts.AssertDashIsoSegmentControl(struct["SegmentControl"]) end if struct["WriteSegmentTimelineInRepresentation"] then asserts.AssertDashIsoWriteSegmentTimelineInRepresentation(struct["WriteSegmentTimelineInRepresentation"]) end if struct["MinBufferTime"] then asserts.Assert__integerMin0Max2147483647(struct["MinBufferTime"]) end if struct["Encryption"] then asserts.AssertDashIsoEncryptionSettings(struct["Encryption"]) end if struct["Destination"] then asserts.Assert__stringPatternS3(struct["Destination"]) end if struct["BaseUrl"] then asserts.Assert__string(struct["BaseUrl"]) end if struct["SegmentLength"] then asserts.Assert__integerMin1Max2147483647(struct["SegmentLength"]) end if struct["HbbtvCompliance"] then asserts.AssertDashIsoHbbtvCompliance(struct["HbbtvCompliance"]) end if struct["FragmentLength"] then asserts.Assert__integerMin1Max2147483647(struct["FragmentLength"]) end for k,_ in pairs(struct) do assert(keys.DashIsoGroupSettings[k], "DashIsoGroupSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type DashIsoGroupSettings -- Required when you set (Type) under (OutputGroups)>(OutputGroupSettings) to DASH_ISO_GROUP_SETTINGS. -- @param args Table with arguments in key-value form. -- Valid keys: -- * SegmentControl [DashIsoSegmentControl] -- * WriteSegmentTimelineInRepresentation [DashIsoWriteSegmentTimelineInRepresentation] When ENABLED, segment durations are indicated in the manifest using SegmentTimeline and SegmentTimeline will be promoted down into Representation from AdaptationSet. -- * MinBufferTime [__integerMin0Max2147483647] Minimum time of initially buffered media that is needed to ensure smooth playout. -- * Encryption [DashIsoEncryptionSettings] DRM settings. -- * Destination [__stringPatternS3] Use Destination (Destination) to specify the S3 output location and the output filename base. Destination accepts format identifiers. If you do not specify the base filename in the URI, the service will use the filename of the input file. If your job has multiple inputs, the service uses the filename of the first input file. -- * BaseUrl [__string] A partial URI prefix that will be put in the manifest (.mpd) file at the top level BaseURL element. Can be used if streams are delivered from a different URL than the manifest file. -- * SegmentLength [__integerMin1Max2147483647] Length of mpd segments to create (in seconds). Note that segments will end on the next keyframe after this number of seconds, so actual segment length may be longer. When Emit Single File is checked, the segmentation is internal to a single output file and it does not cause the creation of many output files as in other output types. -- * HbbtvCompliance [DashIsoHbbtvCompliance] -- * FragmentLength [__integerMin1Max2147483647] Length of fragments to generate (in seconds). Fragment length must be compatible with GOP size and Framerate. Note that fragments will end on the next keyframe after this number of seconds, so actual fragment length may be longer. When Emit Single File is checked, the fragmentation is internal to a single output file and it does not cause the creation of many output files as in other output types. -- @return DashIsoGroupSettings structure as a key-value pair table function M.DashIsoGroupSettings(args) assert(args, "You must provide an argument table when creating DashIsoGroupSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["SegmentControl"] = args["SegmentControl"], ["WriteSegmentTimelineInRepresentation"] = args["WriteSegmentTimelineInRepresentation"], ["MinBufferTime"] = args["MinBufferTime"], ["Encryption"] = args["Encryption"], ["Destination"] = args["Destination"], ["BaseUrl"] = args["BaseUrl"], ["SegmentLength"] = args["SegmentLength"], ["HbbtvCompliance"] = args["HbbtvCompliance"], ["FragmentLength"] = args["FragmentLength"], } asserts.AssertDashIsoGroupSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.CreateJobTemplateRequest = { ["Category"] = true, ["Description"] = true, ["Tags"] = true, ["Settings"] = true, ["Queue"] = true, ["Name"] = true, nil } function asserts.AssertCreateJobTemplateRequest(struct) assert(struct) assert(type(struct) == "table", "Expected CreateJobTemplateRequest to be of type 'table'") assert(struct["Settings"], "Expected key Settings to exist in table") assert(struct["Name"], "Expected key Name to exist in table") if struct["Category"] then asserts.Assert__string(struct["Category"]) end if struct["Description"] then asserts.Assert__string(struct["Description"]) end if struct["Tags"] then asserts.Assert__mapOf__string(struct["Tags"]) end if struct["Settings"] then asserts.AssertJobTemplateSettings(struct["Settings"]) end if struct["Queue"] then asserts.Assert__string(struct["Queue"]) end if struct["Name"] then asserts.Assert__string(struct["Name"]) end for k,_ in pairs(struct) do assert(keys.CreateJobTemplateRequest[k], "CreateJobTemplateRequest contains unknown key " .. tostring(k)) end end --- Create a structure of type CreateJobTemplateRequest -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Category [__string] Optional. A category for the job template you are creating -- * Description [__string] Optional. A description of the job template you are creating. -- * Tags [__mapOf__string] The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key. -- * Settings [JobTemplateSettings] -- * Queue [__string] Optional. The queue that jobs created from this template are assigned to. If you don't specify this, jobs will go to the default queue. -- * Name [__string] The name of the job template you are creating. -- Required key: Settings -- Required key: Name -- @return CreateJobTemplateRequest structure as a key-value pair table function M.CreateJobTemplateRequest(args) assert(args, "You must provide an argument table when creating CreateJobTemplateRequest") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Category"] = args["Category"], ["Description"] = args["Description"], ["Tags"] = args["Tags"], ["Settings"] = args["Settings"], ["Queue"] = args["Queue"], ["Name"] = args["Name"], } asserts.AssertCreateJobTemplateRequest(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.Mpeg2Settings = { ["CodecProfile"] = true, ["SpatialAdaptiveQuantization"] = true, ["TemporalAdaptiveQuantization"] = true, ["Softness"] = true, ["Syntax"] = true, ["FramerateNumerator"] = true, ["MinIInterval"] = true, ["FramerateControl"] = true, ["Telecine"] = true, ["FramerateDenominator"] = true, ["Bitrate"] = true, ["MaxBitrate"] = true, ["GopSizeUnits"] = true, ["DynamicSubGop"] = true, ["ParDenominator"] = true, ["AdaptiveQuantization"] = true, ["InterlaceMode"] = true, ["QualityTuningLevel"] = true, ["HrdBufferInitialFillPercentage"] = true, ["IntraDcPrecision"] = true, ["SlowPal"] = true, ["NumberBFramesBetweenReferenceFrames"] = true, ["GopSize"] = true, ["ParControl"] = true, ["FramerateConversionAlgorithm"] = true, ["ParNumerator"] = true, ["RateControlMode"] = true, ["SceneChangeDetect"] = true, ["CodecLevel"] = true, ["GopClosedCadence"] = true, ["HrdBufferSize"] = true, nil } function asserts.AssertMpeg2Settings(struct) assert(struct) assert(type(struct) == "table", "Expected Mpeg2Settings to be of type 'table'") if struct["CodecProfile"] then asserts.AssertMpeg2CodecProfile(struct["CodecProfile"]) end if struct["SpatialAdaptiveQuantization"] then asserts.AssertMpeg2SpatialAdaptiveQuantization(struct["SpatialAdaptiveQuantization"]) end if struct["TemporalAdaptiveQuantization"] then asserts.AssertMpeg2TemporalAdaptiveQuantization(struct["TemporalAdaptiveQuantization"]) end if struct["Softness"] then asserts.Assert__integerMin0Max128(struct["Softness"]) end if struct["Syntax"] then asserts.AssertMpeg2Syntax(struct["Syntax"]) end if struct["FramerateNumerator"] then asserts.Assert__integerMin24Max60000(struct["FramerateNumerator"]) end if struct["MinIInterval"] then asserts.Assert__integerMin0Max30(struct["MinIInterval"]) end if struct["FramerateControl"] then asserts.AssertMpeg2FramerateControl(struct["FramerateControl"]) end if struct["Telecine"] then asserts.AssertMpeg2Telecine(struct["Telecine"]) end if struct["FramerateDenominator"] then asserts.Assert__integerMin1Max1001(struct["FramerateDenominator"]) end if struct["Bitrate"] then asserts.Assert__integerMin1000Max288000000(struct["Bitrate"]) end if struct["MaxBitrate"] then asserts.Assert__integerMin1000Max300000000(struct["MaxBitrate"]) end if struct["GopSizeUnits"] then asserts.AssertMpeg2GopSizeUnits(struct["GopSizeUnits"]) end if struct["DynamicSubGop"] then asserts.AssertMpeg2DynamicSubGop(struct["DynamicSubGop"]) end if struct["ParDenominator"] then asserts.Assert__integerMin1Max2147483647(struct["ParDenominator"]) end if struct["AdaptiveQuantization"] then asserts.AssertMpeg2AdaptiveQuantization(struct["AdaptiveQuantization"]) end if struct["InterlaceMode"] then asserts.AssertMpeg2InterlaceMode(struct["InterlaceMode"]) end if struct["QualityTuningLevel"] then asserts.AssertMpeg2QualityTuningLevel(struct["QualityTuningLevel"]) end if struct["HrdBufferInitialFillPercentage"] then asserts.Assert__integerMin0Max100(struct["HrdBufferInitialFillPercentage"]) end if struct["IntraDcPrecision"] then asserts.AssertMpeg2IntraDcPrecision(struct["IntraDcPrecision"]) end if struct["SlowPal"] then asserts.AssertMpeg2SlowPal(struct["SlowPal"]) end if struct["NumberBFramesBetweenReferenceFrames"] then asserts.Assert__integerMin0Max7(struct["NumberBFramesBetweenReferenceFrames"]) end if struct["GopSize"] then asserts.Assert__doubleMin0(struct["GopSize"]) end if struct["ParControl"] then asserts.AssertMpeg2ParControl(struct["ParControl"]) end if struct["FramerateConversionAlgorithm"] then asserts.AssertMpeg2FramerateConversionAlgorithm(struct["FramerateConversionAlgorithm"]) end if struct["ParNumerator"] then asserts.Assert__integerMin1Max2147483647(struct["ParNumerator"]) end if struct["RateControlMode"] then asserts.AssertMpeg2RateControlMode(struct["RateControlMode"]) end if struct["SceneChangeDetect"] then asserts.AssertMpeg2SceneChangeDetect(struct["SceneChangeDetect"]) end if struct["CodecLevel"] then asserts.AssertMpeg2CodecLevel(struct["CodecLevel"]) end if struct["GopClosedCadence"] then asserts.Assert__integerMin0Max2147483647(struct["GopClosedCadence"]) end if struct["HrdBufferSize"] then asserts.Assert__integerMin0Max47185920(struct["HrdBufferSize"]) end for k,_ in pairs(struct) do assert(keys.Mpeg2Settings[k], "Mpeg2Settings contains unknown key " .. tostring(k)) end end --- Create a structure of type Mpeg2Settings -- Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the value MPEG2. -- @param args Table with arguments in key-value form. -- Valid keys: -- * CodecProfile [Mpeg2CodecProfile] -- * SpatialAdaptiveQuantization [Mpeg2SpatialAdaptiveQuantization] -- * TemporalAdaptiveQuantization [Mpeg2TemporalAdaptiveQuantization] -- * Softness [__integerMin0Max128] Softness. Selects quantizer matrix, larger values reduce high-frequency content in the encoded image. -- * Syntax [Mpeg2Syntax] -- * FramerateNumerator [__integerMin24Max60000] Framerate numerator - framerate is a fraction, e.g. 24000 / 1001 = 23.976 fps. -- * MinIInterval [__integerMin0Max30] Enforces separation between repeated (cadence) I-frames and I-frames inserted by Scene Change Detection. If a scene change I-frame is within I-interval frames of a cadence I-frame, the GOP is shrunk and/or stretched to the scene change I-frame. GOP stretch requires enabling lookahead as well as setting I-interval. The normal cadence resumes for the next GOP. This setting is only used when Scene Change Detect is enabled. Note: Maximum GOP stretch = GOP size + Min-I-interval - 1 -- * FramerateControl [Mpeg2FramerateControl] -- * Telecine [Mpeg2Telecine] -- * FramerateDenominator [__integerMin1Max1001] Framerate denominator. -- * Bitrate [__integerMin1000Max288000000] Average bitrate in bits/second. Required for VBR and CBR. For MS Smooth outputs, bitrates must be unique when rounded down to the nearest multiple of 1000. -- * MaxBitrate [__integerMin1000Max300000000] Maximum bitrate in bits/second. For example, enter five megabits per second as 5000000. -- * GopSizeUnits [Mpeg2GopSizeUnits] -- * DynamicSubGop [Mpeg2DynamicSubGop] Choose Adaptive to improve subjective video quality for high-motion content. This will cause the service to use fewer B-frames (which infer information based on other frames) for high-motion portions of the video and more B-frames for low-motion portions. The maximum number of B-frames is limited by the value you provide for the setting B frames between reference frames (numberBFramesBetweenReferenceFrames). -- * ParDenominator [__integerMin1Max2147483647] Pixel Aspect Ratio denominator. -- * AdaptiveQuantization [Mpeg2AdaptiveQuantization] -- * InterlaceMode [Mpeg2InterlaceMode] -- * QualityTuningLevel [Mpeg2QualityTuningLevel] -- * HrdBufferInitialFillPercentage [__integerMin0Max100] Percentage of the buffer that should initially be filled (HRD buffer model). -- * IntraDcPrecision [Mpeg2IntraDcPrecision] -- * SlowPal [Mpeg2SlowPal] -- * NumberBFramesBetweenReferenceFrames [__integerMin0Max7] Number of B-frames between reference frames. -- * GopSize [__doubleMin0] GOP Length (keyframe interval) in frames or seconds. Must be greater than zero. -- * ParControl [Mpeg2ParControl] -- * FramerateConversionAlgorithm [Mpeg2FramerateConversionAlgorithm] -- * ParNumerator [__integerMin1Max2147483647] Pixel Aspect Ratio numerator. -- * RateControlMode [Mpeg2RateControlMode] -- * SceneChangeDetect [Mpeg2SceneChangeDetect] -- * CodecLevel [Mpeg2CodecLevel] -- * GopClosedCadence [__integerMin0Max2147483647] Frequency of closed GOPs. In streaming applications, it is recommended that this be set to 1 so a decoder joining mid-stream will receive an IDR frame as quickly as possible. Setting this value to 0 will break output segmenting. -- * HrdBufferSize [__integerMin0Max47185920] Size of buffer (HRD buffer model) in bits. For example, enter five megabits as 5000000. -- @return Mpeg2Settings structure as a key-value pair table function M.Mpeg2Settings(args) assert(args, "You must provide an argument table when creating Mpeg2Settings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["CodecProfile"] = args["CodecProfile"], ["SpatialAdaptiveQuantization"] = args["SpatialAdaptiveQuantization"], ["TemporalAdaptiveQuantization"] = args["TemporalAdaptiveQuantization"], ["Softness"] = args["Softness"], ["Syntax"] = args["Syntax"], ["FramerateNumerator"] = args["FramerateNumerator"], ["MinIInterval"] = args["MinIInterval"], ["FramerateControl"] = args["FramerateControl"], ["Telecine"] = args["Telecine"], ["FramerateDenominator"] = args["FramerateDenominator"], ["Bitrate"] = args["Bitrate"], ["MaxBitrate"] = args["MaxBitrate"], ["GopSizeUnits"] = args["GopSizeUnits"], ["DynamicSubGop"] = args["DynamicSubGop"], ["ParDenominator"] = args["ParDenominator"], ["AdaptiveQuantization"] = args["AdaptiveQuantization"], ["InterlaceMode"] = args["InterlaceMode"], ["QualityTuningLevel"] = args["QualityTuningLevel"], ["HrdBufferInitialFillPercentage"] = args["HrdBufferInitialFillPercentage"], ["IntraDcPrecision"] = args["IntraDcPrecision"], ["SlowPal"] = args["SlowPal"], ["NumberBFramesBetweenReferenceFrames"] = args["NumberBFramesBetweenReferenceFrames"], ["GopSize"] = args["GopSize"], ["ParControl"] = args["ParControl"], ["FramerateConversionAlgorithm"] = args["FramerateConversionAlgorithm"], ["ParNumerator"] = args["ParNumerator"], ["RateControlMode"] = args["RateControlMode"], ["SceneChangeDetect"] = args["SceneChangeDetect"], ["CodecLevel"] = args["CodecLevel"], ["GopClosedCadence"] = args["GopClosedCadence"], ["HrdBufferSize"] = args["HrdBufferSize"], } asserts.AssertMpeg2Settings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.SccDestinationSettings = { ["Framerate"] = true, nil } function asserts.AssertSccDestinationSettings(struct) assert(struct) assert(type(struct) == "table", "Expected SccDestinationSettings to be of type 'table'") if struct["Framerate"] then asserts.AssertSccDestinationFramerate(struct["Framerate"]) end for k,_ in pairs(struct) do assert(keys.SccDestinationSettings[k], "SccDestinationSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type SccDestinationSettings -- Settings for SCC caption output. -- @param args Table with arguments in key-value form. -- Valid keys: -- * Framerate [SccDestinationFramerate] -- @return SccDestinationSettings structure as a key-value pair table function M.SccDestinationSettings(args) assert(args, "You must provide an argument table when creating SccDestinationSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Framerate"] = args["Framerate"], } asserts.AssertSccDestinationSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.JobSettings = { ["NielsenConfiguration"] = true, ["Inputs"] = true, ["TimecodeConfig"] = true, ["AvailBlanking"] = true, ["OutputGroups"] = true, ["AdAvailOffset"] = true, ["TimedMetadataInsertion"] = true, nil } function asserts.AssertJobSettings(struct) assert(struct) assert(type(struct) == "table", "Expected JobSettings to be of type 'table'") if struct["NielsenConfiguration"] then asserts.AssertNielsenConfiguration(struct["NielsenConfiguration"]) end if struct["Inputs"] then asserts.Assert__listOfInput(struct["Inputs"]) end if struct["TimecodeConfig"] then asserts.AssertTimecodeConfig(struct["TimecodeConfig"]) end if struct["AvailBlanking"] then asserts.AssertAvailBlanking(struct["AvailBlanking"]) end if struct["OutputGroups"] then asserts.Assert__listOfOutputGroup(struct["OutputGroups"]) end if struct["AdAvailOffset"] then asserts.Assert__integerMinNegative1000Max1000(struct["AdAvailOffset"]) end if struct["TimedMetadataInsertion"] then asserts.AssertTimedMetadataInsertion(struct["TimedMetadataInsertion"]) end for k,_ in pairs(struct) do assert(keys.JobSettings[k], "JobSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type JobSettings -- JobSettings contains all the transcode settings for a job. -- @param args Table with arguments in key-value form. -- Valid keys: -- * NielsenConfiguration [NielsenConfiguration] -- * Inputs [__listOfInput] Use Inputs (inputs) to define source file used in the transcode job. There can be multiple inputs add in a job. These inputs will be concantenated together to create the output. -- * TimecodeConfig [TimecodeConfig] Contains settings used to acquire and adjust timecode information from inputs. -- * AvailBlanking [AvailBlanking] Settings for ad avail blanking. Video can be blanked or overlaid with an image, and audio muted during SCTE-35 triggered ad avails. -- * OutputGroups [__listOfOutputGroup] (OutputGroups) contains one group of settings for each set of outputs that share a common package type. All unpackaged files (MPEG-4, MPEG-2 TS, Quicktime, MXF, and no container) are grouped in a single output group as well. Required in (OutputGroups) is a group of settings that apply to the whole group. This required object depends on the value you set for (Type) under (OutputGroups)>(OutputGroupSettings). Type, settings object pairs are as follows. * FILE_GROUP_SETTINGS, FileGroupSettings * HLS_GROUP_SETTINGS, HlsGroupSettings * DASH_ISO_GROUP_SETTINGS, DashIsoGroupSettings * MS_SMOOTH_GROUP_SETTINGS, MsSmoothGroupSettings * CMAF_GROUP_SETTINGS, CmafGroupSettings -- * AdAvailOffset [__integerMinNegative1000Max1000] When specified, this offset (in milliseconds) is added to the input Ad Avail PTS time. -- * TimedMetadataInsertion [TimedMetadataInsertion] -- @return JobSettings structure as a key-value pair table function M.JobSettings(args) assert(args, "You must provide an argument table when creating JobSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["NielsenConfiguration"] = args["NielsenConfiguration"], ["Inputs"] = args["Inputs"], ["TimecodeConfig"] = args["TimecodeConfig"], ["AvailBlanking"] = args["AvailBlanking"], ["OutputGroups"] = args["OutputGroups"], ["AdAvailOffset"] = args["AdAvailOffset"], ["TimedMetadataInsertion"] = args["TimedMetadataInsertion"], } asserts.AssertJobSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.TimecodeConfig = { ["Source"] = true, ["Anchor"] = true, ["TimestampOffset"] = true, ["Start"] = true, nil } function asserts.AssertTimecodeConfig(struct) assert(struct) assert(type(struct) == "table", "Expected TimecodeConfig to be of type 'table'") if struct["Source"] then asserts.AssertTimecodeSource(struct["Source"]) end if struct["Anchor"] then asserts.Assert__stringPattern010920405090509092(struct["Anchor"]) end if struct["TimestampOffset"] then asserts.Assert__stringPattern0940191020191209301(struct["TimestampOffset"]) end if struct["Start"] then asserts.Assert__stringPattern010920405090509092(struct["Start"]) end for k,_ in pairs(struct) do assert(keys.TimecodeConfig[k], "TimecodeConfig contains unknown key " .. tostring(k)) end end --- Create a structure of type TimecodeConfig -- These settings control how the service handles timecodes throughout the job. These settings don't affect input clipping. -- @param args Table with arguments in key-value form. -- Valid keys: -- * Source [TimecodeSource] -- * Anchor [__stringPattern010920405090509092] If you use an editing platform that relies on an anchor timecode, use Anchor Timecode (Anchor) to specify a timecode that will match the input video frame to the output video frame. Use 24-hour format with frame number, (HH:MM:SS:FF) or (HH:MM:SS;FF). This setting ignores framerate conversion. System behavior for Anchor Timecode varies depending on your setting for Source (TimecodeSource). * If Source (TimecodeSource) is set to Specified Start (SPECIFIEDSTART), the first input frame is the specified value in Start Timecode (Start). Anchor Timecode (Anchor) and Start Timecode (Start) are used calculate output timecode. * If Source (TimecodeSource) is set to Start at 0 (ZEROBASED) the first frame is 00:00:00:00. * If Source (TimecodeSource) is set to Embedded (EMBEDDED), the first frame is the timecode value on the first input frame of the input. -- * TimestampOffset [__stringPattern0940191020191209301] Only applies to outputs that support program-date-time stamp. Use Timestamp offset (TimestampOffset) to overwrite the timecode date without affecting the time and frame number. Provide the new date as a string in the format "yyyy-mm-dd". To use Time stamp offset, you must also enable Insert program-date-time (InsertProgramDateTime) in the output settings. For example, if the date part of your timecodes is 2002-1-25 and you want to change it to one year later, set Timestamp offset (TimestampOffset) to 2003-1-25. -- * Start [__stringPattern010920405090509092] Only use when you set Source (TimecodeSource) to Specified start (SPECIFIEDSTART). Use Start timecode (Start) to specify the timecode for the initial frame. Use 24-hour format with frame number, (HH:MM:SS:FF) or (HH:MM:SS;FF). -- @return TimecodeConfig structure as a key-value pair table function M.TimecodeConfig(args) assert(args, "You must provide an argument table when creating TimecodeConfig") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Source"] = args["Source"], ["Anchor"] = args["Anchor"], ["TimestampOffset"] = args["TimestampOffset"], ["Start"] = args["Start"], } asserts.AssertTimecodeConfig(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.ListJobsRequest = { ["Queue"] = true, ["Status"] = true, ["NextToken"] = true, ["Order"] = true, ["MaxResults"] = true, nil } function asserts.AssertListJobsRequest(struct) assert(struct) assert(type(struct) == "table", "Expected ListJobsRequest to be of type 'table'") if struct["Queue"] then asserts.Assert__string(struct["Queue"]) end if struct["Status"] then asserts.AssertJobStatus(struct["Status"]) end if struct["NextToken"] then asserts.Assert__string(struct["NextToken"]) end if struct["Order"] then asserts.AssertOrder(struct["Order"]) end if struct["MaxResults"] then asserts.Assert__integerMin1Max20(struct["MaxResults"]) end for k,_ in pairs(struct) do assert(keys.ListJobsRequest[k], "ListJobsRequest contains unknown key " .. tostring(k)) end end --- Create a structure of type ListJobsRequest -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Queue [__string] Provide a queue name to get back only jobs from that queue. -- * Status [JobStatus] -- * NextToken [__string] Use this string, provided with the response to a previous request, to request the next batch of jobs. -- * Order [Order] -- * MaxResults [__integerMin1Max20] Optional. Number of jobs, up to twenty, that will be returned at one time. -- @return ListJobsRequest structure as a key-value pair table function M.ListJobsRequest(args) assert(args, "You must provide an argument table when creating ListJobsRequest") local query_args = { ["queue"] = args["Queue"], ["status"] = args["Status"], ["nextToken"] = args["NextToken"], ["order"] = args["Order"], ["maxResults"] = args["MaxResults"], } local uri_args = { } local header_args = { } local all_args = { ["Queue"] = args["Queue"], ["Status"] = args["Status"], ["NextToken"] = args["NextToken"], ["Order"] = args["Order"], ["MaxResults"] = args["MaxResults"], } asserts.AssertListJobsRequest(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.OutputSettings = { ["HlsSettings"] = true, nil } function asserts.AssertOutputSettings(struct) assert(struct) assert(type(struct) == "table", "Expected OutputSettings to be of type 'table'") if struct["HlsSettings"] then asserts.AssertHlsSettings(struct["HlsSettings"]) end for k,_ in pairs(struct) do assert(keys.OutputSettings[k], "OutputSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type OutputSettings -- Specific settings for this type of output. -- @param args Table with arguments in key-value form. -- Valid keys: -- * HlsSettings [HlsSettings] -- @return OutputSettings structure as a key-value pair table function M.OutputSettings(args) assert(args, "You must provide an argument table when creating OutputSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["HlsSettings"] = args["HlsSettings"], } asserts.AssertOutputSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.ListTagsForResourceRequest = { ["Arn"] = true, nil } function asserts.AssertListTagsForResourceRequest(struct) assert(struct) assert(type(struct) == "table", "Expected ListTagsForResourceRequest to be of type 'table'") assert(struct["Arn"], "Expected key Arn to exist in table") if struct["Arn"] then asserts.Assert__string(struct["Arn"]) end for k,_ in pairs(struct) do assert(keys.ListTagsForResourceRequest[k], "ListTagsForResourceRequest contains unknown key " .. tostring(k)) end end --- Create a structure of type ListTagsForResourceRequest -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Arn [__string] The Amazon Resource Name (ARN) of the resource that you want to list tags for. To get the ARN, send a GET request with the resource name. -- Required key: Arn -- @return ListTagsForResourceRequest structure as a key-value pair table function M.ListTagsForResourceRequest(args) assert(args, "You must provide an argument table when creating ListTagsForResourceRequest") local query_args = { } local uri_args = { ["{arn}"] = args["Arn"], } local header_args = { } local all_args = { ["Arn"] = args["Arn"], } asserts.AssertListTagsForResourceRequest(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.DescribeEndpointsResponse = { ["Endpoints"] = true, ["NextToken"] = true, nil } function asserts.AssertDescribeEndpointsResponse(struct) assert(struct) assert(type(struct) == "table", "Expected DescribeEndpointsResponse to be of type 'table'") if struct["Endpoints"] then asserts.Assert__listOfEndpoint(struct["Endpoints"]) end if struct["NextToken"] then asserts.Assert__string(struct["NextToken"]) end for k,_ in pairs(struct) do assert(keys.DescribeEndpointsResponse[k], "DescribeEndpointsResponse contains unknown key " .. tostring(k)) end end --- Create a structure of type DescribeEndpointsResponse -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Endpoints [__listOfEndpoint] List of endpoints -- * NextToken [__string] Use this string to request the next batch of endpoints. -- @return DescribeEndpointsResponse structure as a key-value pair table function M.DescribeEndpointsResponse(args) assert(args, "You must provide an argument table when creating DescribeEndpointsResponse") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Endpoints"] = args["Endpoints"], ["NextToken"] = args["NextToken"], } asserts.AssertDescribeEndpointsResponse(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.FrameCaptureSettings = { ["MaxCaptures"] = true, ["FramerateDenominator"] = true, ["FramerateNumerator"] = true, ["Quality"] = true, nil } function asserts.AssertFrameCaptureSettings(struct) assert(struct) assert(type(struct) == "table", "Expected FrameCaptureSettings to be of type 'table'") if struct["MaxCaptures"] then asserts.Assert__integerMin1Max10000000(struct["MaxCaptures"]) end if struct["FramerateDenominator"] then asserts.Assert__integerMin1Max2147483647(struct["FramerateDenominator"]) end if struct["FramerateNumerator"] then asserts.Assert__integerMin1Max2147483647(struct["FramerateNumerator"]) end if struct["Quality"] then asserts.Assert__integerMin1Max100(struct["Quality"]) end for k,_ in pairs(struct) do assert(keys.FrameCaptureSettings[k], "FrameCaptureSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type FrameCaptureSettings -- Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the value FRAME_CAPTURE. -- @param args Table with arguments in key-value form. -- Valid keys: -- * MaxCaptures [__integerMin1Max10000000] Maximum number of captures (encoded jpg output files). -- * FramerateDenominator [__integerMin1Max2147483647] Frame capture will encode the first frame of the output stream, then one frame every framerateDenominator/framerateNumerator seconds. For example, settings of framerateNumerator = 1 and framerateDenominator = 3 (a rate of 1/3 frame per second) will capture the first frame, then 1 frame every 3s. Files will be named as filename.n.jpg where n is the 0-based sequence number of each Capture. -- * FramerateNumerator [__integerMin1Max2147483647] Frame capture will encode the first frame of the output stream, then one frame every framerateDenominator/framerateNumerator seconds. For example, settings of framerateNumerator = 1 and framerateDenominator = 3 (a rate of 1/3 frame per second) will capture the first frame, then 1 frame every 3s. Files will be named as filename.NNNNNNN.jpg where N is the 0-based frame sequence number zero padded to 7 decimal places. -- * Quality [__integerMin1Max100] JPEG Quality - a higher value equals higher quality. -- @return FrameCaptureSettings structure as a key-value pair table function M.FrameCaptureSettings(args) assert(args, "You must provide an argument table when creating FrameCaptureSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["MaxCaptures"] = args["MaxCaptures"], ["FramerateDenominator"] = args["FramerateDenominator"], ["FramerateNumerator"] = args["FramerateNumerator"], ["Quality"] = args["Quality"], } asserts.AssertFrameCaptureSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.VideoSelector = { ["ColorSpaceUsage"] = true, ["ProgramNumber"] = true, ["ColorSpace"] = true, ["Pid"] = true, ["Hdr10Metadata"] = true, nil } function asserts.AssertVideoSelector(struct) assert(struct) assert(type(struct) == "table", "Expected VideoSelector to be of type 'table'") if struct["ColorSpaceUsage"] then asserts.AssertColorSpaceUsage(struct["ColorSpaceUsage"]) end if struct["ProgramNumber"] then asserts.Assert__integerMinNegative2147483648Max2147483647(struct["ProgramNumber"]) end if struct["ColorSpace"] then asserts.AssertColorSpace(struct["ColorSpace"]) end if struct["Pid"] then asserts.Assert__integerMin1Max2147483647(struct["Pid"]) end if struct["Hdr10Metadata"] then asserts.AssertHdr10Metadata(struct["Hdr10Metadata"]) end for k,_ in pairs(struct) do assert(keys.VideoSelector[k], "VideoSelector contains unknown key " .. tostring(k)) end end --- Create a structure of type VideoSelector -- Selector for video. -- @param args Table with arguments in key-value form. -- Valid keys: -- * ColorSpaceUsage [ColorSpaceUsage] -- * ProgramNumber [__integerMinNegative2147483648Max2147483647] Selects a specific program from within a multi-program transport stream. Note that Quad 4K is not currently supported. -- * ColorSpace [ColorSpace] -- * Pid [__integerMin1Max2147483647] Use PID (Pid) to select specific video data from an input file. Specify this value as an integer; the system automatically converts it to the hexidecimal value. For example, 257 selects PID 0x101. A PID, or packet identifier, is an identifier for a set of data in an MPEG-2 transport stream container. -- * Hdr10Metadata [Hdr10Metadata] -- @return VideoSelector structure as a key-value pair table function M.VideoSelector(args) assert(args, "You must provide an argument table when creating VideoSelector") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["ColorSpaceUsage"] = args["ColorSpaceUsage"], ["ProgramNumber"] = args["ProgramNumber"], ["ColorSpace"] = args["ColorSpace"], ["Pid"] = args["Pid"], ["Hdr10Metadata"] = args["Hdr10Metadata"], } asserts.AssertVideoSelector(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.CaptionSourceSettings = { ["SourceType"] = true, ["AncillarySourceSettings"] = true, ["FileSourceSettings"] = true, ["DvbSubSourceSettings"] = true, ["EmbeddedSourceSettings"] = true, ["TeletextSourceSettings"] = true, nil } function asserts.AssertCaptionSourceSettings(struct) assert(struct) assert(type(struct) == "table", "Expected CaptionSourceSettings to be of type 'table'") if struct["SourceType"] then asserts.AssertCaptionSourceType(struct["SourceType"]) end if struct["AncillarySourceSettings"] then asserts.AssertAncillarySourceSettings(struct["AncillarySourceSettings"]) end if struct["FileSourceSettings"] then asserts.AssertFileSourceSettings(struct["FileSourceSettings"]) end if struct["DvbSubSourceSettings"] then asserts.AssertDvbSubSourceSettings(struct["DvbSubSourceSettings"]) end if struct["EmbeddedSourceSettings"] then asserts.AssertEmbeddedSourceSettings(struct["EmbeddedSourceSettings"]) end if struct["TeletextSourceSettings"] then asserts.AssertTeletextSourceSettings(struct["TeletextSourceSettings"]) end for k,_ in pairs(struct) do assert(keys.CaptionSourceSettings[k], "CaptionSourceSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type CaptionSourceSettings -- Source settings (SourceSettings) contains the group of settings for captions in the input. -- @param args Table with arguments in key-value form. -- Valid keys: -- * SourceType [CaptionSourceType] -- * AncillarySourceSettings [AncillarySourceSettings] -- * FileSourceSettings [FileSourceSettings] -- * DvbSubSourceSettings [DvbSubSourceSettings] -- * EmbeddedSourceSettings [EmbeddedSourceSettings] -- * TeletextSourceSettings [TeletextSourceSettings] -- @return CaptionSourceSettings structure as a key-value pair table function M.CaptionSourceSettings(args) assert(args, "You must provide an argument table when creating CaptionSourceSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["SourceType"] = args["SourceType"], ["AncillarySourceSettings"] = args["AncillarySourceSettings"], ["FileSourceSettings"] = args["FileSourceSettings"], ["DvbSubSourceSettings"] = args["DvbSubSourceSettings"], ["EmbeddedSourceSettings"] = args["EmbeddedSourceSettings"], ["TeletextSourceSettings"] = args["TeletextSourceSettings"], } asserts.AssertCaptionSourceSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.VideoDetail = { ["WidthInPx"] = true, ["HeightInPx"] = true, nil } function asserts.AssertVideoDetail(struct) assert(struct) assert(type(struct) == "table", "Expected VideoDetail to be of type 'table'") if struct["WidthInPx"] then asserts.Assert__integer(struct["WidthInPx"]) end if struct["HeightInPx"] then asserts.Assert__integer(struct["HeightInPx"]) end for k,_ in pairs(struct) do assert(keys.VideoDetail[k], "VideoDetail contains unknown key " .. tostring(k)) end end --- Create a structure of type VideoDetail -- Contains details about the output's video stream -- @param args Table with arguments in key-value form. -- Valid keys: -- * WidthInPx [__integer] Width in pixels for the output -- * HeightInPx [__integer] Height in pixels for the output -- @return VideoDetail structure as a key-value pair table function M.VideoDetail(args) assert(args, "You must provide an argument table when creating VideoDetail") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["WidthInPx"] = args["WidthInPx"], ["HeightInPx"] = args["HeightInPx"], } asserts.AssertVideoDetail(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.CreatePresetResponse = { ["Preset"] = true, nil } function asserts.AssertCreatePresetResponse(struct) assert(struct) assert(type(struct) == "table", "Expected CreatePresetResponse to be of type 'table'") if struct["Preset"] then asserts.AssertPreset(struct["Preset"]) end for k,_ in pairs(struct) do assert(keys.CreatePresetResponse[k], "CreatePresetResponse contains unknown key " .. tostring(k)) end end --- Create a structure of type CreatePresetResponse -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Preset [Preset] -- @return CreatePresetResponse structure as a key-value pair table function M.CreatePresetResponse(args) assert(args, "You must provide an argument table when creating CreatePresetResponse") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Preset"] = args["Preset"], } asserts.AssertCreatePresetResponse(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.TtmlDestinationSettings = { ["StylePassthrough"] = true, nil } function asserts.AssertTtmlDestinationSettings(struct) assert(struct) assert(type(struct) == "table", "Expected TtmlDestinationSettings to be of type 'table'") if struct["StylePassthrough"] then asserts.AssertTtmlStylePassthrough(struct["StylePassthrough"]) end for k,_ in pairs(struct) do assert(keys.TtmlDestinationSettings[k], "TtmlDestinationSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type TtmlDestinationSettings -- Settings specific to TTML caption outputs, including Pass style information (TtmlStylePassthrough). -- @param args Table with arguments in key-value form. -- Valid keys: -- * StylePassthrough [TtmlStylePassthrough] -- @return TtmlDestinationSettings structure as a key-value pair table function M.TtmlDestinationSettings(args) assert(args, "You must provide an argument table when creating TtmlDestinationSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["StylePassthrough"] = args["StylePassthrough"], } asserts.AssertTtmlDestinationSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.UpdateJobTemplateRequest = { ["Category"] = true, ["Queue"] = true, ["Settings"] = true, ["Description"] = true, ["Name"] = true, nil } function asserts.AssertUpdateJobTemplateRequest(struct) assert(struct) assert(type(struct) == "table", "Expected UpdateJobTemplateRequest to be of type 'table'") assert(struct["Name"], "Expected key Name to exist in table") if struct["Category"] then asserts.Assert__string(struct["Category"]) end if struct["Queue"] then asserts.Assert__string(struct["Queue"]) end if struct["Settings"] then asserts.AssertJobTemplateSettings(struct["Settings"]) end if struct["Description"] then asserts.Assert__string(struct["Description"]) end if struct["Name"] then asserts.Assert__string(struct["Name"]) end for k,_ in pairs(struct) do assert(keys.UpdateJobTemplateRequest[k], "UpdateJobTemplateRequest contains unknown key " .. tostring(k)) end end --- Create a structure of type UpdateJobTemplateRequest -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Category [__string] The new category for the job template, if you are changing it. -- * Queue [__string] The new queue for the job template, if you are changing it. -- * Settings [JobTemplateSettings] -- * Description [__string] The new description for the job template, if you are changing it. -- * Name [__string] The name of the job template you are modifying -- Required key: Name -- @return UpdateJobTemplateRequest structure as a key-value pair table function M.UpdateJobTemplateRequest(args) assert(args, "You must provide an argument table when creating UpdateJobTemplateRequest") local query_args = { } local uri_args = { ["{name}"] = args["Name"], } local header_args = { } local all_args = { ["Category"] = args["Category"], ["Queue"] = args["Queue"], ["Settings"] = args["Settings"], ["Description"] = args["Description"], ["Name"] = args["Name"], } asserts.AssertUpdateJobTemplateRequest(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.TagResourceResponse = { nil } function asserts.AssertTagResourceResponse(struct) assert(struct) assert(type(struct) == "table", "Expected TagResourceResponse to be of type 'table'") for k,_ in pairs(struct) do assert(keys.TagResourceResponse[k], "TagResourceResponse contains unknown key " .. tostring(k)) end end --- Create a structure of type TagResourceResponse -- -- @param args Table with arguments in key-value form. -- Valid keys: -- @return TagResourceResponse structure as a key-value pair table function M.TagResourceResponse(args) assert(args, "You must provide an argument table when creating TagResourceResponse") local query_args = { } local uri_args = { } local header_args = { } local all_args = { } asserts.AssertTagResourceResponse(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.Mp4Settings = { ["MoovPlacement"] = true, ["Mp4MajorBrand"] = true, ["CslgAtom"] = true, ["FreeSpaceBox"] = true, nil } function asserts.AssertMp4Settings(struct) assert(struct) assert(type(struct) == "table", "Expected Mp4Settings to be of type 'table'") if struct["MoovPlacement"] then asserts.AssertMp4MoovPlacement(struct["MoovPlacement"]) end if struct["Mp4MajorBrand"] then asserts.Assert__string(struct["Mp4MajorBrand"]) end if struct["CslgAtom"] then asserts.AssertMp4CslgAtom(struct["CslgAtom"]) end if struct["FreeSpaceBox"] then asserts.AssertMp4FreeSpaceBox(struct["FreeSpaceBox"]) end for k,_ in pairs(struct) do assert(keys.Mp4Settings[k], "Mp4Settings contains unknown key " .. tostring(k)) end end --- Create a structure of type Mp4Settings -- Settings for MP4 Container -- @param args Table with arguments in key-value form. -- Valid keys: -- * MoovPlacement [Mp4MoovPlacement] -- * Mp4MajorBrand [__string] Overrides the "Major Brand" field in the output file. Usually not necessary to specify. -- * CslgAtom [Mp4CslgAtom] -- * FreeSpaceBox [Mp4FreeSpaceBox] -- @return Mp4Settings structure as a key-value pair table function M.Mp4Settings(args) assert(args, "You must provide an argument table when creating Mp4Settings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["MoovPlacement"] = args["MoovPlacement"], ["Mp4MajorBrand"] = args["Mp4MajorBrand"], ["CslgAtom"] = args["CslgAtom"], ["FreeSpaceBox"] = args["FreeSpaceBox"], } asserts.AssertMp4Settings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.CaptionDescriptionPreset = { ["LanguageCode"] = true, ["DestinationSettings"] = true, ["CustomLanguageCode"] = true, ["LanguageDescription"] = true, nil } function asserts.AssertCaptionDescriptionPreset(struct) assert(struct) assert(type(struct) == "table", "Expected CaptionDescriptionPreset to be of type 'table'") if struct["LanguageCode"] then asserts.AssertLanguageCode(struct["LanguageCode"]) end if struct["DestinationSettings"] then asserts.AssertCaptionDestinationSettings(struct["DestinationSettings"]) end if struct["CustomLanguageCode"] then asserts.Assert__stringMin3Max3PatternAZaZ3(struct["CustomLanguageCode"]) end if struct["LanguageDescription"] then asserts.Assert__string(struct["LanguageDescription"]) end for k,_ in pairs(struct) do assert(keys.CaptionDescriptionPreset[k], "CaptionDescriptionPreset contains unknown key " .. tostring(k)) end end --- Create a structure of type CaptionDescriptionPreset -- Caption Description for preset -- @param args Table with arguments in key-value form. -- Valid keys: -- * LanguageCode [LanguageCode] Indicates the language of the caption output track. -- * DestinationSettings [CaptionDestinationSettings] -- * CustomLanguageCode [__stringMin3Max3PatternAZaZ3] Indicates the language of the caption output track, using the ISO 639-2 or ISO 639-3 three-letter language code -- * LanguageDescription [__string] Human readable information to indicate captions available for players (eg. English, or Spanish). Alphanumeric characters, spaces, and underscore are legal. -- @return CaptionDescriptionPreset structure as a key-value pair table function M.CaptionDescriptionPreset(args) assert(args, "You must provide an argument table when creating CaptionDescriptionPreset") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["LanguageCode"] = args["LanguageCode"], ["DestinationSettings"] = args["DestinationSettings"], ["CustomLanguageCode"] = args["CustomLanguageCode"], ["LanguageDescription"] = args["LanguageDescription"], } asserts.AssertCaptionDescriptionPreset(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.AncillarySourceSettings = { ["SourceAncillaryChannelNumber"] = true, nil } function asserts.AssertAncillarySourceSettings(struct) assert(struct) assert(type(struct) == "table", "Expected AncillarySourceSettings to be of type 'table'") if struct["SourceAncillaryChannelNumber"] then asserts.Assert__integerMin1Max4(struct["SourceAncillaryChannelNumber"]) end for k,_ in pairs(struct) do assert(keys.AncillarySourceSettings[k], "AncillarySourceSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type AncillarySourceSettings -- Settings for ancillary captions source. -- @param args Table with arguments in key-value form. -- Valid keys: -- * SourceAncillaryChannelNumber [__integerMin1Max4] Specifies the 608 channel number in the ancillary data track from which to extract captions. Unused for passthrough. -- @return AncillarySourceSettings structure as a key-value pair table function M.AncillarySourceSettings(args) assert(args, "You must provide an argument table when creating AncillarySourceSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["SourceAncillaryChannelNumber"] = args["SourceAncillaryChannelNumber"], } asserts.AssertAncillarySourceSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.AiffSettings = { ["Channels"] = true, ["SampleRate"] = true, ["BitDepth"] = true, nil } function asserts.AssertAiffSettings(struct) assert(struct) assert(type(struct) == "table", "Expected AiffSettings to be of type 'table'") if struct["Channels"] then asserts.Assert__integerMin1Max2(struct["Channels"]) end if struct["SampleRate"] then asserts.Assert__integerMin8000Max192000(struct["SampleRate"]) end if struct["BitDepth"] then asserts.Assert__integerMin16Max24(struct["BitDepth"]) end for k,_ in pairs(struct) do assert(keys.AiffSettings[k], "AiffSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type AiffSettings -- Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the value AIFF. -- @param args Table with arguments in key-value form. -- Valid keys: -- * Channels [__integerMin1Max2] Set Channels to specify the number of channels in this output audio track. Choosing Mono in the console will give you 1 output channel; choosing Stereo will give you 2. In the API, valid values are 1 and 2. -- * SampleRate [__integerMin8000Max192000] Sample rate in hz. -- * BitDepth [__integerMin16Max24] Specify Bit depth (BitDepth), in bits per sample, to choose the encoding quality for this audio track. -- @return AiffSettings structure as a key-value pair table function M.AiffSettings(args) assert(args, "You must provide an argument table when creating AiffSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Channels"] = args["Channels"], ["SampleRate"] = args["SampleRate"], ["BitDepth"] = args["BitDepth"], } asserts.AssertAiffSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.ReservationPlan = { ["Status"] = true, ["ReservedSlots"] = true, ["PurchasedAt"] = true, ["Commitment"] = true, ["ExpiresAt"] = true, ["RenewalType"] = true, nil } function asserts.AssertReservationPlan(struct) assert(struct) assert(type(struct) == "table", "Expected ReservationPlan to be of type 'table'") if struct["Status"] then asserts.AssertReservationPlanStatus(struct["Status"]) end if struct["ReservedSlots"] then asserts.Assert__integer(struct["ReservedSlots"]) end if struct["PurchasedAt"] then asserts.Assert__timestampUnix(struct["PurchasedAt"]) end if struct["Commitment"] then asserts.AssertCommitment(struct["Commitment"]) end if struct["ExpiresAt"] then asserts.Assert__timestampUnix(struct["ExpiresAt"]) end if struct["RenewalType"] then asserts.AssertRenewalType(struct["RenewalType"]) end for k,_ in pairs(struct) do assert(keys.ReservationPlan[k], "ReservationPlan contains unknown key " .. tostring(k)) end end --- Create a structure of type ReservationPlan -- Details about the pricing plan for your reserved queue. Required for reserved queues and not applicable to on-demand queues. -- @param args Table with arguments in key-value form. -- Valid keys: -- * Status [ReservationPlanStatus] Specifies whether the pricing plan for your reserved queue is ACTIVE or EXPIRED. -- * ReservedSlots [__integer] Specifies the number of reserved transcode slots (RTSs) for this queue. The number of RTS determines how many jobs the queue can process in parallel; each RTS can process one job at a time. To increase this number, create a replacement contract through the AWS Elemental MediaConvert console. -- * PurchasedAt [__timestampUnix] The time stamp in epoch seconds when the reserved queue's reservation plan was created. -- * Commitment [Commitment] The length of time that you commit to when you set up a pricing plan contract for a reserved queue. -- * ExpiresAt [__timestampUnix] The time stamp, in epoch seconds, for when the pricing plan for this reserved queue expires. -- * RenewalType [RenewalType] Specifies whether the pricing plan contract for your reserved queue automatically renews (AUTO_RENEW) or expires (EXPIRE) at the end of the contract period. -- @return ReservationPlan structure as a key-value pair table function M.ReservationPlan(args) assert(args, "You must provide an argument table when creating ReservationPlan") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Status"] = args["Status"], ["ReservedSlots"] = args["ReservedSlots"], ["PurchasedAt"] = args["PurchasedAt"], ["Commitment"] = args["Commitment"], ["ExpiresAt"] = args["ExpiresAt"], ["RenewalType"] = args["RenewalType"], } asserts.AssertReservationPlan(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.HlsEncryptionSettings = { ["SpekeKeyProvider"] = true, ["InitializationVectorInManifest"] = true, ["ConstantInitializationVector"] = true, ["EncryptionMethod"] = true, ["Type"] = true, ["StaticKeyProvider"] = true, nil } function asserts.AssertHlsEncryptionSettings(struct) assert(struct) assert(type(struct) == "table", "Expected HlsEncryptionSettings to be of type 'table'") if struct["SpekeKeyProvider"] then asserts.AssertSpekeKeyProvider(struct["SpekeKeyProvider"]) end if struct["InitializationVectorInManifest"] then asserts.AssertHlsInitializationVectorInManifest(struct["InitializationVectorInManifest"]) end if struct["ConstantInitializationVector"] then asserts.Assert__stringMin32Max32Pattern09aFAF32(struct["ConstantInitializationVector"]) end if struct["EncryptionMethod"] then asserts.AssertHlsEncryptionType(struct["EncryptionMethod"]) end if struct["Type"] then asserts.AssertHlsKeyProviderType(struct["Type"]) end if struct["StaticKeyProvider"] then asserts.AssertStaticKeyProvider(struct["StaticKeyProvider"]) end for k,_ in pairs(struct) do assert(keys.HlsEncryptionSettings[k], "HlsEncryptionSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type HlsEncryptionSettings -- Settings for HLS encryption -- @param args Table with arguments in key-value form. -- Valid keys: -- * SpekeKeyProvider [SpekeKeyProvider] -- * InitializationVectorInManifest [HlsInitializationVectorInManifest] -- * ConstantInitializationVector [__stringMin32Max32Pattern09aFAF32] This is a 128-bit, 16-byte hex value represented by a 32-character text string. If this parameter is not set then the Initialization Vector will follow the segment number by default. -- * EncryptionMethod [HlsEncryptionType] -- * Type [HlsKeyProviderType] -- * StaticKeyProvider [StaticKeyProvider] -- @return HlsEncryptionSettings structure as a key-value pair table function M.HlsEncryptionSettings(args) assert(args, "You must provide an argument table when creating HlsEncryptionSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["SpekeKeyProvider"] = args["SpekeKeyProvider"], ["InitializationVectorInManifest"] = args["InitializationVectorInManifest"], ["ConstantInitializationVector"] = args["ConstantInitializationVector"], ["EncryptionMethod"] = args["EncryptionMethod"], ["Type"] = args["Type"], ["StaticKeyProvider"] = args["StaticKeyProvider"], } asserts.AssertHlsEncryptionSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.WavSettings = { ["Channels"] = true, ["SampleRate"] = true, ["BitDepth"] = true, ["Format"] = true, nil } function asserts.AssertWavSettings(struct) assert(struct) assert(type(struct) == "table", "Expected WavSettings to be of type 'table'") if struct["Channels"] then asserts.Assert__integerMin1Max8(struct["Channels"]) end if struct["SampleRate"] then asserts.Assert__integerMin8000Max192000(struct["SampleRate"]) end if struct["BitDepth"] then asserts.Assert__integerMin16Max24(struct["BitDepth"]) end if struct["Format"] then asserts.AssertWavFormat(struct["Format"]) end for k,_ in pairs(struct) do assert(keys.WavSettings[k], "WavSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type WavSettings -- Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the value WAV. -- @param args Table with arguments in key-value form. -- Valid keys: -- * Channels [__integerMin1Max8] Set Channels to specify the number of channels in this output audio track. With WAV, valid values 1, 2, 4, and 8. In the console, these values are Mono, Stereo, 4-Channel, and 8-Channel, respectively. -- * SampleRate [__integerMin8000Max192000] Sample rate in Hz. -- * BitDepth [__integerMin16Max24] Specify Bit depth (BitDepth), in bits per sample, to choose the encoding quality for this audio track. -- * Format [WavFormat] -- @return WavSettings structure as a key-value pair table function M.WavSettings(args) assert(args, "You must provide an argument table when creating WavSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Channels"] = args["Channels"], ["SampleRate"] = args["SampleRate"], ["BitDepth"] = args["BitDepth"], ["Format"] = args["Format"], } asserts.AssertWavSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.AvailBlanking = { ["AvailBlankingImage"] = true, nil } function asserts.AssertAvailBlanking(struct) assert(struct) assert(type(struct) == "table", "Expected AvailBlanking to be of type 'table'") if struct["AvailBlankingImage"] then asserts.Assert__stringMin14PatternS3BmpBMPPngPNG(struct["AvailBlankingImage"]) end for k,_ in pairs(struct) do assert(keys.AvailBlanking[k], "AvailBlanking contains unknown key " .. tostring(k)) end end --- Create a structure of type AvailBlanking -- Settings for Avail Blanking -- @param args Table with arguments in key-value form. -- Valid keys: -- * AvailBlankingImage [__stringMin14PatternS3BmpBMPPngPNG] Blanking image to be used. Leave empty for solid black. Only bmp and png images are supported. -- @return AvailBlanking structure as a key-value pair table function M.AvailBlanking(args) assert(args, "You must provide an argument table when creating AvailBlanking") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["AvailBlankingImage"] = args["AvailBlankingImage"], } asserts.AssertAvailBlanking(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.ListJobsResponse = { ["NextToken"] = true, ["Jobs"] = true, nil } function asserts.AssertListJobsResponse(struct) assert(struct) assert(type(struct) == "table", "Expected ListJobsResponse to be of type 'table'") if struct["NextToken"] then asserts.Assert__string(struct["NextToken"]) end if struct["Jobs"] then asserts.Assert__listOfJob(struct["Jobs"]) end for k,_ in pairs(struct) do assert(keys.ListJobsResponse[k], "ListJobsResponse contains unknown key " .. tostring(k)) end end --- Create a structure of type ListJobsResponse -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * NextToken [__string] Use this string to request the next batch of jobs. -- * Jobs [__listOfJob] List of jobs -- @return ListJobsResponse structure as a key-value pair table function M.ListJobsResponse(args) assert(args, "You must provide an argument table when creating ListJobsResponse") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["NextToken"] = args["NextToken"], ["Jobs"] = args["Jobs"], } asserts.AssertListJobsResponse(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.UntagResourceRequest = { ["TagKeys"] = true, ["Arn"] = true, nil } function asserts.AssertUntagResourceRequest(struct) assert(struct) assert(type(struct) == "table", "Expected UntagResourceRequest to be of type 'table'") assert(struct["Arn"], "Expected key Arn to exist in table") if struct["TagKeys"] then asserts.Assert__listOf__string(struct["TagKeys"]) end if struct["Arn"] then asserts.Assert__string(struct["Arn"]) end for k,_ in pairs(struct) do assert(keys.UntagResourceRequest[k], "UntagResourceRequest contains unknown key " .. tostring(k)) end end --- Create a structure of type UntagResourceRequest -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * TagKeys [__listOf__string] The keys of the tags that you want to remove from the resource. -- * Arn [__string] The Amazon Resource Name (ARN) of the resource that you want to remove tags from. To get the ARN, send a GET request with the resource name. -- Required key: Arn -- @return UntagResourceRequest structure as a key-value pair table function M.UntagResourceRequest(args) assert(args, "You must provide an argument table when creating UntagResourceRequest") local query_args = { } local uri_args = { ["{arn}"] = args["Arn"], } local header_args = { } local all_args = { ["TagKeys"] = args["TagKeys"], ["Arn"] = args["Arn"], } asserts.AssertUntagResourceRequest(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.UpdatePresetResponse = { ["Preset"] = true, nil } function asserts.AssertUpdatePresetResponse(struct) assert(struct) assert(type(struct) == "table", "Expected UpdatePresetResponse to be of type 'table'") if struct["Preset"] then asserts.AssertPreset(struct["Preset"]) end for k,_ in pairs(struct) do assert(keys.UpdatePresetResponse[k], "UpdatePresetResponse contains unknown key " .. tostring(k)) end end --- Create a structure of type UpdatePresetResponse -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Preset [Preset] -- @return UpdatePresetResponse structure as a key-value pair table function M.UpdatePresetResponse(args) assert(args, "You must provide an argument table when creating UpdatePresetResponse") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Preset"] = args["Preset"], } asserts.AssertUpdatePresetResponse(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.GetQueueResponse = { ["Queue"] = true, nil } function asserts.AssertGetQueueResponse(struct) assert(struct) assert(type(struct) == "table", "Expected GetQueueResponse to be of type 'table'") if struct["Queue"] then asserts.AssertQueue(struct["Queue"]) end for k,_ in pairs(struct) do assert(keys.GetQueueResponse[k], "GetQueueResponse contains unknown key " .. tostring(k)) end end --- Create a structure of type GetQueueResponse -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Queue [Queue] -- @return GetQueueResponse structure as a key-value pair table function M.GetQueueResponse(args) assert(args, "You must provide an argument table when creating GetQueueResponse") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Queue"] = args["Queue"], } asserts.AssertGetQueueResponse(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.UpdateQueueRequest = { ["Status"] = true, ["ReservationPlanSettings"] = true, ["Description"] = true, ["Name"] = true, nil } function asserts.AssertUpdateQueueRequest(struct) assert(struct) assert(type(struct) == "table", "Expected UpdateQueueRequest to be of type 'table'") assert(struct["Name"], "Expected key Name to exist in table") if struct["Status"] then asserts.AssertQueueStatus(struct["Status"]) end if struct["ReservationPlanSettings"] then asserts.AssertReservationPlanSettings(struct["ReservationPlanSettings"]) end if struct["Description"] then asserts.Assert__string(struct["Description"]) end if struct["Name"] then asserts.Assert__string(struct["Name"]) end for k,_ in pairs(struct) do assert(keys.UpdateQueueRequest[k], "UpdateQueueRequest contains unknown key " .. tostring(k)) end end --- Create a structure of type UpdateQueueRequest -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Status [QueueStatus] Pause or activate a queue by changing its status between ACTIVE and PAUSED. If you pause a queue, jobs in that queue won't begin. Jobs that are running when you pause the queue continue to run until they finish or result in an error. -- * ReservationPlanSettings [ReservationPlanSettings] Details about the pricing plan for your reserved queue. Required for reserved queues and not applicable to on-demand queues. -- * Description [__string] The new description for the queue, if you are changing it. -- * Name [__string] The name of the queue that you are modifying. -- Required key: Name -- @return UpdateQueueRequest structure as a key-value pair table function M.UpdateQueueRequest(args) assert(args, "You must provide an argument table when creating UpdateQueueRequest") local query_args = { } local uri_args = { ["{name}"] = args["Name"], } local header_args = { } local all_args = { ["Status"] = args["Status"], ["ReservationPlanSettings"] = args["ReservationPlanSettings"], ["Description"] = args["Description"], ["Name"] = args["Name"], } asserts.AssertUpdateQueueRequest(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.DeletePresetResponse = { nil } function asserts.AssertDeletePresetResponse(struct) assert(struct) assert(type(struct) == "table", "Expected DeletePresetResponse to be of type 'table'") for k,_ in pairs(struct) do assert(keys.DeletePresetResponse[k], "DeletePresetResponse contains unknown key " .. tostring(k)) end end --- Create a structure of type DeletePresetResponse -- -- @param args Table with arguments in key-value form. -- Valid keys: -- @return DeletePresetResponse structure as a key-value pair table function M.DeletePresetResponse(args) assert(args, "You must provide an argument table when creating DeletePresetResponse") local query_args = { } local uri_args = { } local header_args = { } local all_args = { } asserts.AssertDeletePresetResponse(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.ListJobTemplatesResponse = { ["NextToken"] = true, ["JobTemplates"] = true, nil } function asserts.AssertListJobTemplatesResponse(struct) assert(struct) assert(type(struct) == "table", "Expected ListJobTemplatesResponse to be of type 'table'") if struct["NextToken"] then asserts.Assert__string(struct["NextToken"]) end if struct["JobTemplates"] then asserts.Assert__listOfJobTemplate(struct["JobTemplates"]) end for k,_ in pairs(struct) do assert(keys.ListJobTemplatesResponse[k], "ListJobTemplatesResponse contains unknown key " .. tostring(k)) end end --- Create a structure of type ListJobTemplatesResponse -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * NextToken [__string] Use this string to request the next batch of job templates. -- * JobTemplates [__listOfJobTemplate] List of Job templates. -- @return ListJobTemplatesResponse structure as a key-value pair table function M.ListJobTemplatesResponse(args) assert(args, "You must provide an argument table when creating ListJobTemplatesResponse") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["NextToken"] = args["NextToken"], ["JobTemplates"] = args["JobTemplates"], } asserts.AssertListJobTemplatesResponse(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.GetPresetRequest = { ["Name"] = true, nil } function asserts.AssertGetPresetRequest(struct) assert(struct) assert(type(struct) == "table", "Expected GetPresetRequest to be of type 'table'") assert(struct["Name"], "Expected key Name to exist in table") if struct["Name"] then asserts.Assert__string(struct["Name"]) end for k,_ in pairs(struct) do assert(keys.GetPresetRequest[k], "GetPresetRequest contains unknown key " .. tostring(k)) end end --- Create a structure of type GetPresetRequest -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Name [__string] The name of the preset. -- Required key: Name -- @return GetPresetRequest structure as a key-value pair table function M.GetPresetRequest(args) assert(args, "You must provide an argument table when creating GetPresetRequest") local query_args = { } local uri_args = { ["{name}"] = args["Name"], } local header_args = { } local all_args = { ["Name"] = args["Name"], } asserts.AssertGetPresetRequest(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.GetPresetResponse = { ["Preset"] = true, nil } function asserts.AssertGetPresetResponse(struct) assert(struct) assert(type(struct) == "table", "Expected GetPresetResponse to be of type 'table'") if struct["Preset"] then asserts.AssertPreset(struct["Preset"]) end for k,_ in pairs(struct) do assert(keys.GetPresetResponse[k], "GetPresetResponse contains unknown key " .. tostring(k)) end end --- Create a structure of type GetPresetResponse -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Preset [Preset] -- @return GetPresetResponse structure as a key-value pair table function M.GetPresetResponse(args) assert(args, "You must provide an argument table when creating GetPresetResponse") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Preset"] = args["Preset"], } asserts.AssertGetPresetResponse(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.CreatePresetRequest = { ["Category"] = true, ["Tags"] = true, ["Settings"] = true, ["Description"] = true, ["Name"] = true, nil } function asserts.AssertCreatePresetRequest(struct) assert(struct) assert(type(struct) == "table", "Expected CreatePresetRequest to be of type 'table'") assert(struct["Settings"], "Expected key Settings to exist in table") assert(struct["Name"], "Expected key Name to exist in table") if struct["Category"] then asserts.Assert__string(struct["Category"]) end if struct["Tags"] then asserts.Assert__mapOf__string(struct["Tags"]) end if struct["Settings"] then asserts.AssertPresetSettings(struct["Settings"]) end if struct["Description"] then asserts.Assert__string(struct["Description"]) end if struct["Name"] then asserts.Assert__string(struct["Name"]) end for k,_ in pairs(struct) do assert(keys.CreatePresetRequest[k], "CreatePresetRequest contains unknown key " .. tostring(k)) end end --- Create a structure of type CreatePresetRequest -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Category [__string] Optional. A category for the preset you are creating. -- * Tags [__mapOf__string] The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key. -- * Settings [PresetSettings] -- * Description [__string] Optional. A description of the preset you are creating. -- * Name [__string] The name of the preset you are creating. -- Required key: Settings -- Required key: Name -- @return CreatePresetRequest structure as a key-value pair table function M.CreatePresetRequest(args) assert(args, "You must provide an argument table when creating CreatePresetRequest") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Category"] = args["Category"], ["Tags"] = args["Tags"], ["Settings"] = args["Settings"], ["Description"] = args["Description"], ["Name"] = args["Name"], } asserts.AssertCreatePresetRequest(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.DescribeEndpointsRequest = { ["NextToken"] = true, ["Mode"] = true, ["MaxResults"] = true, nil } function asserts.AssertDescribeEndpointsRequest(struct) assert(struct) assert(type(struct) == "table", "Expected DescribeEndpointsRequest to be of type 'table'") if struct["NextToken"] then asserts.Assert__string(struct["NextToken"]) end if struct["Mode"] then asserts.AssertDescribeEndpointsMode(struct["Mode"]) end if struct["MaxResults"] then asserts.Assert__integer(struct["MaxResults"]) end for k,_ in pairs(struct) do assert(keys.DescribeEndpointsRequest[k], "DescribeEndpointsRequest contains unknown key " .. tostring(k)) end end --- Create a structure of type DescribeEndpointsRequest -- DescribeEndpointsRequest -- @param args Table with arguments in key-value form. -- Valid keys: -- * NextToken [__string] Use this string, provided with the response to a previous request, to request the next batch of endpoints. -- * Mode [DescribeEndpointsMode] -- * MaxResults [__integer] Optional. Max number of endpoints, up to twenty, that will be returned at one time. -- @return DescribeEndpointsRequest structure as a key-value pair table function M.DescribeEndpointsRequest(args) assert(args, "You must provide an argument table when creating DescribeEndpointsRequest") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["NextToken"] = args["NextToken"], ["Mode"] = args["Mode"], ["MaxResults"] = args["MaxResults"], } asserts.AssertDescribeEndpointsRequest(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.ListPresetsRequest = { ["Category"] = true, ["ListBy"] = true, ["NextToken"] = true, ["Order"] = true, ["MaxResults"] = true, nil } function asserts.AssertListPresetsRequest(struct) assert(struct) assert(type(struct) == "table", "Expected ListPresetsRequest to be of type 'table'") if struct["Category"] then asserts.Assert__string(struct["Category"]) end if struct["ListBy"] then asserts.AssertPresetListBy(struct["ListBy"]) end if struct["NextToken"] then asserts.Assert__string(struct["NextToken"]) end if struct["Order"] then asserts.AssertOrder(struct["Order"]) end if struct["MaxResults"] then asserts.Assert__integerMin1Max20(struct["MaxResults"]) end for k,_ in pairs(struct) do assert(keys.ListPresetsRequest[k], "ListPresetsRequest contains unknown key " .. tostring(k)) end end --- Create a structure of type ListPresetsRequest -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Category [__string] Optionally, specify a preset category to limit responses to only presets from that category. -- * ListBy [PresetListBy] -- * NextToken [__string] Use this string, provided with the response to a previous request, to request the next batch of presets. -- * Order [Order] -- * MaxResults [__integerMin1Max20] Optional. Number of presets, up to twenty, that will be returned at one time -- @return ListPresetsRequest structure as a key-value pair table function M.ListPresetsRequest(args) assert(args, "You must provide an argument table when creating ListPresetsRequest") local query_args = { ["category"] = args["Category"], ["listBy"] = args["ListBy"], ["nextToken"] = args["NextToken"], ["order"] = args["Order"], ["maxResults"] = args["MaxResults"], } local uri_args = { } local header_args = { } local all_args = { ["Category"] = args["Category"], ["ListBy"] = args["ListBy"], ["NextToken"] = args["NextToken"], ["Order"] = args["Order"], ["MaxResults"] = args["MaxResults"], } asserts.AssertListPresetsRequest(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.ReservationPlanSettings = { ["RenewalType"] = true, ["Commitment"] = true, ["ReservedSlots"] = true, nil } function asserts.AssertReservationPlanSettings(struct) assert(struct) assert(type(struct) == "table", "Expected ReservationPlanSettings to be of type 'table'") assert(struct["ReservedSlots"], "Expected key ReservedSlots to exist in table") assert(struct["Commitment"], "Expected key Commitment to exist in table") assert(struct["RenewalType"], "Expected key RenewalType to exist in table") if struct["RenewalType"] then asserts.AssertRenewalType(struct["RenewalType"]) end if struct["Commitment"] then asserts.AssertCommitment(struct["Commitment"]) end if struct["ReservedSlots"] then asserts.Assert__integer(struct["ReservedSlots"]) end for k,_ in pairs(struct) do assert(keys.ReservationPlanSettings[k], "ReservationPlanSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type ReservationPlanSettings -- Details about the pricing plan for your reserved queue. Required for reserved queues and not applicable to on-demand queues. -- @param args Table with arguments in key-value form. -- Valid keys: -- * RenewalType [RenewalType] Specifies whether the pricing plan contract for your reserved queue automatically renews (AUTO_RENEW) or expires (EXPIRE) at the end of the contract period. -- * Commitment [Commitment] The length of time that you commit to when you set up a pricing plan contract for a reserved queue. -- * ReservedSlots [__integer] Specifies the number of reserved transcode slots (RTSs) for this queue. The number of RTS determines how many jobs the queue can process in parallel; each RTS can process one job at a time. To increase this number, create a replacement contract through the AWS Elemental MediaConvert console. -- Required key: ReservedSlots -- Required key: Commitment -- Required key: RenewalType -- @return ReservationPlanSettings structure as a key-value pair table function M.ReservationPlanSettings(args) assert(args, "You must provide an argument table when creating ReservationPlanSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["RenewalType"] = args["RenewalType"], ["Commitment"] = args["Commitment"], ["ReservedSlots"] = args["ReservedSlots"], } asserts.AssertReservationPlanSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.CaptionDescription = { ["LanguageCode"] = true, ["LanguageDescription"] = true, ["DestinationSettings"] = true, ["CustomLanguageCode"] = true, ["CaptionSelectorName"] = true, nil } function asserts.AssertCaptionDescription(struct) assert(struct) assert(type(struct) == "table", "Expected CaptionDescription to be of type 'table'") if struct["LanguageCode"] then asserts.AssertLanguageCode(struct["LanguageCode"]) end if struct["LanguageDescription"] then asserts.Assert__string(struct["LanguageDescription"]) end if struct["DestinationSettings"] then asserts.AssertCaptionDestinationSettings(struct["DestinationSettings"]) end if struct["CustomLanguageCode"] then asserts.Assert__stringMin3Max3PatternAZaZ3(struct["CustomLanguageCode"]) end if struct["CaptionSelectorName"] then asserts.Assert__stringMin1(struct["CaptionSelectorName"]) end for k,_ in pairs(struct) do assert(keys.CaptionDescription[k], "CaptionDescription contains unknown key " .. tostring(k)) end end --- Create a structure of type CaptionDescription -- Description of Caption output -- @param args Table with arguments in key-value form. -- Valid keys: -- * LanguageCode [LanguageCode] Indicates the language of the caption output track. -- * LanguageDescription [__string] Human readable information to indicate captions available for players (eg. English, or Spanish). Alphanumeric characters, spaces, and underscore are legal. -- * DestinationSettings [CaptionDestinationSettings] -- * CustomLanguageCode [__stringMin3Max3PatternAZaZ3] Indicates the language of the caption output track, using the ISO 639-2 or ISO 639-3 three-letter language code -- * CaptionSelectorName [__stringMin1] Specifies which "Caption Selector":#inputs-caption_selector to use from each input when generating captions. The name should be of the format "Caption Selector <N>", which denotes that the Nth Caption Selector will be used from each input. -- @return CaptionDescription structure as a key-value pair table function M.CaptionDescription(args) assert(args, "You must provide an argument table when creating CaptionDescription") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["LanguageCode"] = args["LanguageCode"], ["LanguageDescription"] = args["LanguageDescription"], ["DestinationSettings"] = args["DestinationSettings"], ["CustomLanguageCode"] = args["CustomLanguageCode"], ["CaptionSelectorName"] = args["CaptionSelectorName"], } asserts.AssertCaptionDescription(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.NoiseReducerFilterSettings = { ["Strength"] = true, nil } function asserts.AssertNoiseReducerFilterSettings(struct) assert(struct) assert(type(struct) == "table", "Expected NoiseReducerFilterSettings to be of type 'table'") if struct["Strength"] then asserts.Assert__integerMin0Max3(struct["Strength"]) end for k,_ in pairs(struct) do assert(keys.NoiseReducerFilterSettings[k], "NoiseReducerFilterSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type NoiseReducerFilterSettings -- Settings for a noise reducer filter -- @param args Table with arguments in key-value form. -- Valid keys: -- * Strength [__integerMin0Max3] Relative strength of noise reducing filter. Higher values produce stronger filtering. -- @return NoiseReducerFilterSettings structure as a key-value pair table function M.NoiseReducerFilterSettings(args) assert(args, "You must provide an argument table when creating NoiseReducerFilterSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Strength"] = args["Strength"], } asserts.AssertNoiseReducerFilterSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.Queue = { ["ProgressingJobsCount"] = true, ["Status"] = true, ["Name"] = true, ["SubmittedJobsCount"] = true, ["LastUpdated"] = true, ["ReservationPlan"] = true, ["PricingPlan"] = true, ["Arn"] = true, ["Type"] = true, ["CreatedAt"] = true, ["Description"] = true, nil } function asserts.AssertQueue(struct) assert(struct) assert(type(struct) == "table", "Expected Queue to be of type 'table'") assert(struct["Name"], "Expected key Name to exist in table") if struct["ProgressingJobsCount"] then asserts.Assert__integer(struct["ProgressingJobsCount"]) end if struct["Status"] then asserts.AssertQueueStatus(struct["Status"]) end if struct["Name"] then asserts.Assert__string(struct["Name"]) end if struct["SubmittedJobsCount"] then asserts.Assert__integer(struct["SubmittedJobsCount"]) end if struct["LastUpdated"] then asserts.Assert__timestampUnix(struct["LastUpdated"]) end if struct["ReservationPlan"] then asserts.AssertReservationPlan(struct["ReservationPlan"]) end if struct["PricingPlan"] then asserts.AssertPricingPlan(struct["PricingPlan"]) end if struct["Arn"] then asserts.Assert__string(struct["Arn"]) end if struct["Type"] then asserts.AssertType(struct["Type"]) end if struct["CreatedAt"] then asserts.Assert__timestampUnix(struct["CreatedAt"]) end if struct["Description"] then asserts.Assert__string(struct["Description"]) end for k,_ in pairs(struct) do assert(keys.Queue[k], "Queue contains unknown key " .. tostring(k)) end end --- Create a structure of type Queue -- You can use queues to manage the resources that are available to your AWS account for running multiple transcoding jobs at the same time. If you don't specify a queue, the service sends all jobs through the default queue. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/about-resource-allocation-and-job-prioritization.html. -- @param args Table with arguments in key-value form. -- Valid keys: -- * ProgressingJobsCount [__integer] The estimated number of jobs with a PROGRESSING status. -- * Status [QueueStatus] Queues can be ACTIVE or PAUSED. If you pause a queue, the service won't begin processing jobs in that queue. Jobs that are running when you pause the queue continue to run until they finish or result in an error. -- * Name [__string] A name that you create for each queue. Each name must be unique within your account. -- * SubmittedJobsCount [__integer] The estimated number of jobs with a SUBMITTED status. -- * LastUpdated [__timestampUnix] The time stamp in epoch seconds when the queue was last updated. -- * ReservationPlan [ReservationPlan] Details about the pricing plan for your reserved queue. Required for reserved queues and not applicable to on-demand queues. -- * PricingPlan [PricingPlan] Specifies whether the pricing plan for the queue is On-demand or Reserved. The pricing plan for the queue determines whether you pay On-demand or Reserved pricing for the transcoding jobs that you run through the queue. For Reserved queue pricing, you must set up a contract. You can create a Reserved queue contract through the AWS Elemental MediaConvert console. -- * Arn [__string] An identifier for this resource that is unique within all of AWS. -- * Type [Type] Specifies whether this queue is system or custom. System queues are built in. You can't modify or delete system queues. You can create and modify custom queues. -- * CreatedAt [__timestampUnix] The time stamp in epoch seconds for queue creation. -- * Description [__string] An optional description that you create for each queue. -- Required key: Name -- @return Queue structure as a key-value pair table function M.Queue(args) assert(args, "You must provide an argument table when creating Queue") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["ProgressingJobsCount"] = args["ProgressingJobsCount"], ["Status"] = args["Status"], ["Name"] = args["Name"], ["SubmittedJobsCount"] = args["SubmittedJobsCount"], ["LastUpdated"] = args["LastUpdated"], ["ReservationPlan"] = args["ReservationPlan"], ["PricingPlan"] = args["PricingPlan"], ["Arn"] = args["Arn"], ["Type"] = args["Type"], ["CreatedAt"] = args["CreatedAt"], ["Description"] = args["Description"], } asserts.AssertQueue(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.NoiseReducerSpatialFilterSettings = { ["Strength"] = true, ["PostFilterSharpenStrength"] = true, ["Speed"] = true, nil } function asserts.AssertNoiseReducerSpatialFilterSettings(struct) assert(struct) assert(type(struct) == "table", "Expected NoiseReducerSpatialFilterSettings to be of type 'table'") if struct["Strength"] then asserts.Assert__integerMin0Max16(struct["Strength"]) end if struct["PostFilterSharpenStrength"] then asserts.Assert__integerMin0Max3(struct["PostFilterSharpenStrength"]) end if struct["Speed"] then asserts.Assert__integerMinNegative2Max3(struct["Speed"]) end for k,_ in pairs(struct) do assert(keys.NoiseReducerSpatialFilterSettings[k], "NoiseReducerSpatialFilterSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type NoiseReducerSpatialFilterSettings -- Noise reducer filter settings for spatial filter. -- @param args Table with arguments in key-value form. -- Valid keys: -- * Strength [__integerMin0Max16] Relative strength of noise reducing filter. Higher values produce stronger filtering. -- * PostFilterSharpenStrength [__integerMin0Max3] Specify strength of post noise reduction sharpening filter, with 0 disabling the filter and 3 enabling it at maximum strength. -- * Speed [__integerMinNegative2Max3] The speed of the filter, from -2 (lower speed) to 3 (higher speed), with 0 being the nominal value. -- @return NoiseReducerSpatialFilterSettings structure as a key-value pair table function M.NoiseReducerSpatialFilterSettings(args) assert(args, "You must provide an argument table when creating NoiseReducerSpatialFilterSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Strength"] = args["Strength"], ["PostFilterSharpenStrength"] = args["PostFilterSharpenStrength"], ["Speed"] = args["Speed"], } asserts.AssertNoiseReducerSpatialFilterSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.AudioCodecSettings = { ["WavSettings"] = true, ["Ac3Settings"] = true, ["AiffSettings"] = true, ["Codec"] = true, ["Mp2Settings"] = true, ["Eac3Settings"] = true, ["AacSettings"] = true, nil } function asserts.AssertAudioCodecSettings(struct) assert(struct) assert(type(struct) == "table", "Expected AudioCodecSettings to be of type 'table'") if struct["WavSettings"] then asserts.AssertWavSettings(struct["WavSettings"]) end if struct["Ac3Settings"] then asserts.AssertAc3Settings(struct["Ac3Settings"]) end if struct["AiffSettings"] then asserts.AssertAiffSettings(struct["AiffSettings"]) end if struct["Codec"] then asserts.AssertAudioCodec(struct["Codec"]) end if struct["Mp2Settings"] then asserts.AssertMp2Settings(struct["Mp2Settings"]) end if struct["Eac3Settings"] then asserts.AssertEac3Settings(struct["Eac3Settings"]) end if struct["AacSettings"] then asserts.AssertAacSettings(struct["AacSettings"]) end for k,_ in pairs(struct) do assert(keys.AudioCodecSettings[k], "AudioCodecSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type AudioCodecSettings -- Audio codec settings (CodecSettings) under (AudioDescriptions) contains the group of settings related to audio encoding. The settings in this group vary depending on the value you choose for Audio codec (Codec). For each codec enum you choose, define the corresponding settings object. The following lists the codec enum, settings object pairs. * AAC, AacSettings * MP2, Mp2Settings * WAV, WavSettings * AIFF, AiffSettings * AC3, Ac3Settings * EAC3, Eac3Settings -- @param args Table with arguments in key-value form. -- Valid keys: -- * WavSettings [WavSettings] -- * Ac3Settings [Ac3Settings] -- * AiffSettings [AiffSettings] -- * Codec [AudioCodec] -- * Mp2Settings [Mp2Settings] -- * Eac3Settings [Eac3Settings] -- * AacSettings [AacSettings] -- @return AudioCodecSettings structure as a key-value pair table function M.AudioCodecSettings(args) assert(args, "You must provide an argument table when creating AudioCodecSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["WavSettings"] = args["WavSettings"], ["Ac3Settings"] = args["Ac3Settings"], ["AiffSettings"] = args["AiffSettings"], ["Codec"] = args["Codec"], ["Mp2Settings"] = args["Mp2Settings"], ["Eac3Settings"] = args["Eac3Settings"], ["AacSettings"] = args["AacSettings"], } asserts.AssertAudioCodecSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.OutputGroupSettings = { ["MsSmoothGroupSettings"] = true, ["FileGroupSettings"] = true, ["HlsGroupSettings"] = true, ["CmafGroupSettings"] = true, ["DashIsoGroupSettings"] = true, ["Type"] = true, nil } function asserts.AssertOutputGroupSettings(struct) assert(struct) assert(type(struct) == "table", "Expected OutputGroupSettings to be of type 'table'") if struct["MsSmoothGroupSettings"] then asserts.AssertMsSmoothGroupSettings(struct["MsSmoothGroupSettings"]) end if struct["FileGroupSettings"] then asserts.AssertFileGroupSettings(struct["FileGroupSettings"]) end if struct["HlsGroupSettings"] then asserts.AssertHlsGroupSettings(struct["HlsGroupSettings"]) end if struct["CmafGroupSettings"] then asserts.AssertCmafGroupSettings(struct["CmafGroupSettings"]) end if struct["DashIsoGroupSettings"] then asserts.AssertDashIsoGroupSettings(struct["DashIsoGroupSettings"]) end if struct["Type"] then asserts.AssertOutputGroupType(struct["Type"]) end for k,_ in pairs(struct) do assert(keys.OutputGroupSettings[k], "OutputGroupSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type OutputGroupSettings -- Output Group settings, including type -- @param args Table with arguments in key-value form. -- Valid keys: -- * MsSmoothGroupSettings [MsSmoothGroupSettings] -- * FileGroupSettings [FileGroupSettings] -- * HlsGroupSettings [HlsGroupSettings] -- * CmafGroupSettings [CmafGroupSettings] -- * DashIsoGroupSettings [DashIsoGroupSettings] -- * Type [OutputGroupType] -- @return OutputGroupSettings structure as a key-value pair table function M.OutputGroupSettings(args) assert(args, "You must provide an argument table when creating OutputGroupSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["MsSmoothGroupSettings"] = args["MsSmoothGroupSettings"], ["FileGroupSettings"] = args["FileGroupSettings"], ["HlsGroupSettings"] = args["HlsGroupSettings"], ["CmafGroupSettings"] = args["CmafGroupSettings"], ["DashIsoGroupSettings"] = args["DashIsoGroupSettings"], ["Type"] = args["Type"], } asserts.AssertOutputGroupSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.Deinterlacer = { ["Control"] = true, ["Mode"] = true, ["Algorithm"] = true, nil } function asserts.AssertDeinterlacer(struct) assert(struct) assert(type(struct) == "table", "Expected Deinterlacer to be of type 'table'") if struct["Control"] then asserts.AssertDeinterlacerControl(struct["Control"]) end if struct["Mode"] then asserts.AssertDeinterlacerMode(struct["Mode"]) end if struct["Algorithm"] then asserts.AssertDeinterlaceAlgorithm(struct["Algorithm"]) end for k,_ in pairs(struct) do assert(keys.Deinterlacer[k], "Deinterlacer contains unknown key " .. tostring(k)) end end --- Create a structure of type Deinterlacer -- Settings for deinterlacer -- @param args Table with arguments in key-value form. -- Valid keys: -- * Control [DeinterlacerControl] -- * Mode [DeinterlacerMode] -- * Algorithm [DeinterlaceAlgorithm] -- @return Deinterlacer structure as a key-value pair table function M.Deinterlacer(args) assert(args, "You must provide an argument table when creating Deinterlacer") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Control"] = args["Control"], ["Mode"] = args["Mode"], ["Algorithm"] = args["Algorithm"], } asserts.AssertDeinterlacer(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.DvbSubSourceSettings = { ["Pid"] = true, nil } function asserts.AssertDvbSubSourceSettings(struct) assert(struct) assert(type(struct) == "table", "Expected DvbSubSourceSettings to be of type 'table'") if struct["Pid"] then asserts.Assert__integerMin1Max2147483647(struct["Pid"]) end for k,_ in pairs(struct) do assert(keys.DvbSubSourceSettings[k], "DvbSubSourceSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type DvbSubSourceSettings -- DVB Sub Source Settings -- @param args Table with arguments in key-value form. -- Valid keys: -- * Pid [__integerMin1Max2147483647] When using DVB-Sub with Burn-In or SMPTE-TT, use this PID for the source content. Unused for DVB-Sub passthrough. All DVB-Sub content is passed through, regardless of selectors. -- @return DvbSubSourceSettings structure as a key-value pair table function M.DvbSubSourceSettings(args) assert(args, "You must provide an argument table when creating DvbSubSourceSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Pid"] = args["Pid"], } asserts.AssertDvbSubSourceSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.GetJobRequest = { ["Id"] = true, nil } function asserts.AssertGetJobRequest(struct) assert(struct) assert(type(struct) == "table", "Expected GetJobRequest to be of type 'table'") assert(struct["Id"], "Expected key Id to exist in table") if struct["Id"] then asserts.Assert__string(struct["Id"]) end for k,_ in pairs(struct) do assert(keys.GetJobRequest[k], "GetJobRequest contains unknown key " .. tostring(k)) end end --- Create a structure of type GetJobRequest -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Id [__string] the job ID of the job. -- Required key: Id -- @return GetJobRequest structure as a key-value pair table function M.GetJobRequest(args) assert(args, "You must provide an argument table when creating GetJobRequest") local query_args = { } local uri_args = { ["{id}"] = args["Id"], } local header_args = { } local all_args = { ["Id"] = args["Id"], } asserts.AssertGetJobRequest(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.Rectangle = { ["Y"] = true, ["Width"] = true, ["X"] = true, ["Height"] = true, nil } function asserts.AssertRectangle(struct) assert(struct) assert(type(struct) == "table", "Expected Rectangle to be of type 'table'") if struct["Y"] then asserts.Assert__integerMin0Max2147483647(struct["Y"]) end if struct["Width"] then asserts.Assert__integerMin2Max2147483647(struct["Width"]) end if struct["X"] then asserts.Assert__integerMin0Max2147483647(struct["X"]) end if struct["Height"] then asserts.Assert__integerMin2Max2147483647(struct["Height"]) end for k,_ in pairs(struct) do assert(keys.Rectangle[k], "Rectangle contains unknown key " .. tostring(k)) end end --- Create a structure of type Rectangle -- Use Rectangle to identify a specific area of the video frame. -- @param args Table with arguments in key-value form. -- Valid keys: -- * Y [__integerMin0Max2147483647] The distance, in pixels, between the rectangle and the top edge of the video frame. Specify only even numbers. -- * Width [__integerMin2Max2147483647] Width of rectangle in pixels. Specify only even numbers. -- * X [__integerMin0Max2147483647] The distance, in pixels, between the rectangle and the left edge of the video frame. Specify only even numbers. -- * Height [__integerMin2Max2147483647] Height of rectangle in pixels. Specify only even numbers. -- @return Rectangle structure as a key-value pair table function M.Rectangle(args) assert(args, "You must provide an argument table when creating Rectangle") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Y"] = args["Y"], ["Width"] = args["Width"], ["X"] = args["X"], ["Height"] = args["Height"], } asserts.AssertRectangle(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.Mp2Settings = { ["Channels"] = true, ["SampleRate"] = true, ["Bitrate"] = true, nil } function asserts.AssertMp2Settings(struct) assert(struct) assert(type(struct) == "table", "Expected Mp2Settings to be of type 'table'") if struct["Channels"] then asserts.Assert__integerMin1Max2(struct["Channels"]) end if struct["SampleRate"] then asserts.Assert__integerMin32000Max48000(struct["SampleRate"]) end if struct["Bitrate"] then asserts.Assert__integerMin32000Max384000(struct["Bitrate"]) end for k,_ in pairs(struct) do assert(keys.Mp2Settings[k], "Mp2Settings contains unknown key " .. tostring(k)) end end --- Create a structure of type Mp2Settings -- Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the value MP2. -- @param args Table with arguments in key-value form. -- Valid keys: -- * Channels [__integerMin1Max2] Set Channels to specify the number of channels in this output audio track. Choosing Mono in the console will give you 1 output channel; choosing Stereo will give you 2. In the API, valid values are 1 and 2. -- * SampleRate [__integerMin32000Max48000] Sample rate in hz. -- * Bitrate [__integerMin32000Max384000] Average bitrate in bits/second. -- @return Mp2Settings structure as a key-value pair table function M.Mp2Settings(args) assert(args, "You must provide an argument table when creating Mp2Settings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Channels"] = args["Channels"], ["SampleRate"] = args["SampleRate"], ["Bitrate"] = args["Bitrate"], } asserts.AssertMp2Settings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.GetJobTemplateResponse = { ["JobTemplate"] = true, nil } function asserts.AssertGetJobTemplateResponse(struct) assert(struct) assert(type(struct) == "table", "Expected GetJobTemplateResponse to be of type 'table'") if struct["JobTemplate"] then asserts.AssertJobTemplate(struct["JobTemplate"]) end for k,_ in pairs(struct) do assert(keys.GetJobTemplateResponse[k], "GetJobTemplateResponse contains unknown key " .. tostring(k)) end end --- Create a structure of type GetJobTemplateResponse -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * JobTemplate [JobTemplate] -- @return GetJobTemplateResponse structure as a key-value pair table function M.GetJobTemplateResponse(args) assert(args, "You must provide an argument table when creating GetJobTemplateResponse") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["JobTemplate"] = args["JobTemplate"], } asserts.AssertGetJobTemplateResponse(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.CreateJobTemplateResponse = { ["JobTemplate"] = true, nil } function asserts.AssertCreateJobTemplateResponse(struct) assert(struct) assert(type(struct) == "table", "Expected CreateJobTemplateResponse to be of type 'table'") if struct["JobTemplate"] then asserts.AssertJobTemplate(struct["JobTemplate"]) end for k,_ in pairs(struct) do assert(keys.CreateJobTemplateResponse[k], "CreateJobTemplateResponse contains unknown key " .. tostring(k)) end end --- Create a structure of type CreateJobTemplateResponse -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * JobTemplate [JobTemplate] -- @return CreateJobTemplateResponse structure as a key-value pair table function M.CreateJobTemplateResponse(args) assert(args, "You must provide an argument table when creating CreateJobTemplateResponse") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["JobTemplate"] = args["JobTemplate"], } asserts.AssertCreateJobTemplateResponse(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.F4vSettings = { ["MoovPlacement"] = true, nil } function asserts.AssertF4vSettings(struct) assert(struct) assert(type(struct) == "table", "Expected F4vSettings to be of type 'table'") if struct["MoovPlacement"] then asserts.AssertF4vMoovPlacement(struct["MoovPlacement"]) end for k,_ in pairs(struct) do assert(keys.F4vSettings[k], "F4vSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type F4vSettings -- Settings for F4v container -- @param args Table with arguments in key-value form. -- Valid keys: -- * MoovPlacement [F4vMoovPlacement] -- @return F4vSettings structure as a key-value pair table function M.F4vSettings(args) assert(args, "You must provide an argument table when creating F4vSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["MoovPlacement"] = args["MoovPlacement"], } asserts.AssertF4vSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.DeletePresetRequest = { ["Name"] = true, nil } function asserts.AssertDeletePresetRequest(struct) assert(struct) assert(type(struct) == "table", "Expected DeletePresetRequest to be of type 'table'") assert(struct["Name"], "Expected key Name to exist in table") if struct["Name"] then asserts.Assert__string(struct["Name"]) end for k,_ in pairs(struct) do assert(keys.DeletePresetRequest[k], "DeletePresetRequest contains unknown key " .. tostring(k)) end end --- Create a structure of type DeletePresetRequest -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Name [__string] The name of the preset to be deleted. -- Required key: Name -- @return DeletePresetRequest structure as a key-value pair table function M.DeletePresetRequest(args) assert(args, "You must provide an argument table when creating DeletePresetRequest") local query_args = { } local uri_args = { ["{name}"] = args["Name"], } local header_args = { } local all_args = { ["Name"] = args["Name"], } asserts.AssertDeletePresetRequest(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.OutputGroup = { ["OutputGroupSettings"] = true, ["Outputs"] = true, ["CustomName"] = true, ["Name"] = true, nil } function asserts.AssertOutputGroup(struct) assert(struct) assert(type(struct) == "table", "Expected OutputGroup to be of type 'table'") if struct["OutputGroupSettings"] then asserts.AssertOutputGroupSettings(struct["OutputGroupSettings"]) end if struct["Outputs"] then asserts.Assert__listOfOutput(struct["Outputs"]) end if struct["CustomName"] then asserts.Assert__string(struct["CustomName"]) end if struct["Name"] then asserts.Assert__string(struct["Name"]) end for k,_ in pairs(struct) do assert(keys.OutputGroup[k], "OutputGroup contains unknown key " .. tostring(k)) end end --- Create a structure of type OutputGroup -- Group of outputs -- @param args Table with arguments in key-value form. -- Valid keys: -- * OutputGroupSettings [OutputGroupSettings] -- * Outputs [__listOfOutput] This object holds groups of encoding settings, one group of settings per output. -- * CustomName [__string] Use Custom Group Name (CustomName) to specify a name for the output group. This value is displayed on the console and can make your job settings JSON more human-readable. It does not affect your outputs. Use up to twelve characters that are either letters, numbers, spaces, or underscores. -- * Name [__string] Name of the output group -- @return OutputGroup structure as a key-value pair table function M.OutputGroup(args) assert(args, "You must provide an argument table when creating OutputGroup") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["OutputGroupSettings"] = args["OutputGroupSettings"], ["Outputs"] = args["Outputs"], ["CustomName"] = args["CustomName"], ["Name"] = args["Name"], } asserts.AssertOutputGroup(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.ListJobTemplatesRequest = { ["Category"] = true, ["ListBy"] = true, ["NextToken"] = true, ["Order"] = true, ["MaxResults"] = true, nil } function asserts.AssertListJobTemplatesRequest(struct) assert(struct) assert(type(struct) == "table", "Expected ListJobTemplatesRequest to be of type 'table'") if struct["Category"] then asserts.Assert__string(struct["Category"]) end if struct["ListBy"] then asserts.AssertJobTemplateListBy(struct["ListBy"]) end if struct["NextToken"] then asserts.Assert__string(struct["NextToken"]) end if struct["Order"] then asserts.AssertOrder(struct["Order"]) end if struct["MaxResults"] then asserts.Assert__integerMin1Max20(struct["MaxResults"]) end for k,_ in pairs(struct) do assert(keys.ListJobTemplatesRequest[k], "ListJobTemplatesRequest contains unknown key " .. tostring(k)) end end --- Create a structure of type ListJobTemplatesRequest -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Category [__string] Optionally, specify a job template category to limit responses to only job templates from that category. -- * ListBy [JobTemplateListBy] -- * NextToken [__string] Use this string, provided with the response to a previous request, to request the next batch of job templates. -- * Order [Order] -- * MaxResults [__integerMin1Max20] Optional. Number of job templates, up to twenty, that will be returned at one time. -- @return ListJobTemplatesRequest structure as a key-value pair table function M.ListJobTemplatesRequest(args) assert(args, "You must provide an argument table when creating ListJobTemplatesRequest") local query_args = { ["category"] = args["Category"], ["listBy"] = args["ListBy"], ["nextToken"] = args["NextToken"], ["order"] = args["Order"], ["maxResults"] = args["MaxResults"], } local uri_args = { } local header_args = { } local all_args = { ["Category"] = args["Category"], ["ListBy"] = args["ListBy"], ["NextToken"] = args["NextToken"], ["Order"] = args["Order"], ["MaxResults"] = args["MaxResults"], } asserts.AssertListJobTemplatesRequest(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.ContainerSettings = { ["M3u8Settings"] = true, ["Container"] = true, ["Mp4Settings"] = true, ["M2tsSettings"] = true, ["MovSettings"] = true, ["F4vSettings"] = true, nil } function asserts.AssertContainerSettings(struct) assert(struct) assert(type(struct) == "table", "Expected ContainerSettings to be of type 'table'") if struct["M3u8Settings"] then asserts.AssertM3u8Settings(struct["M3u8Settings"]) end if struct["Container"] then asserts.AssertContainerType(struct["Container"]) end if struct["Mp4Settings"] then asserts.AssertMp4Settings(struct["Mp4Settings"]) end if struct["M2tsSettings"] then asserts.AssertM2tsSettings(struct["M2tsSettings"]) end if struct["MovSettings"] then asserts.AssertMovSettings(struct["MovSettings"]) end if struct["F4vSettings"] then asserts.AssertF4vSettings(struct["F4vSettings"]) end for k,_ in pairs(struct) do assert(keys.ContainerSettings[k], "ContainerSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type ContainerSettings -- Container specific settings. -- @param args Table with arguments in key-value form. -- Valid keys: -- * M3u8Settings [M3u8Settings] -- * Container [ContainerType] -- * Mp4Settings [Mp4Settings] -- * M2tsSettings [M2tsSettings] -- * MovSettings [MovSettings] -- * F4vSettings [F4vSettings] -- @return ContainerSettings structure as a key-value pair table function M.ContainerSettings(args) assert(args, "You must provide an argument table when creating ContainerSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["M3u8Settings"] = args["M3u8Settings"], ["Container"] = args["Container"], ["Mp4Settings"] = args["Mp4Settings"], ["M2tsSettings"] = args["M2tsSettings"], ["MovSettings"] = args["MovSettings"], ["F4vSettings"] = args["F4vSettings"], } asserts.AssertContainerSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.AudioDescription = { ["CodecSettings"] = true, ["LanguageCode"] = true, ["AudioSourceName"] = true, ["RemixSettings"] = true, ["StreamName"] = true, ["LanguageCodeControl"] = true, ["AudioTypeControl"] = true, ["CustomLanguageCode"] = true, ["AudioType"] = true, ["AudioNormalizationSettings"] = true, nil } function asserts.AssertAudioDescription(struct) assert(struct) assert(type(struct) == "table", "Expected AudioDescription to be of type 'table'") if struct["CodecSettings"] then asserts.AssertAudioCodecSettings(struct["CodecSettings"]) end if struct["LanguageCode"] then asserts.AssertLanguageCode(struct["LanguageCode"]) end if struct["AudioSourceName"] then asserts.Assert__string(struct["AudioSourceName"]) end if struct["RemixSettings"] then asserts.AssertRemixSettings(struct["RemixSettings"]) end if struct["StreamName"] then asserts.Assert__stringPatternWS(struct["StreamName"]) end if struct["LanguageCodeControl"] then asserts.AssertAudioLanguageCodeControl(struct["LanguageCodeControl"]) end if struct["AudioTypeControl"] then asserts.AssertAudioTypeControl(struct["AudioTypeControl"]) end if struct["CustomLanguageCode"] then asserts.Assert__stringMin3Max3PatternAZaZ3(struct["CustomLanguageCode"]) end if struct["AudioType"] then asserts.Assert__integerMin0Max255(struct["AudioType"]) end if struct["AudioNormalizationSettings"] then asserts.AssertAudioNormalizationSettings(struct["AudioNormalizationSettings"]) end for k,_ in pairs(struct) do assert(keys.AudioDescription[k], "AudioDescription contains unknown key " .. tostring(k)) end end --- Create a structure of type AudioDescription -- Description of audio output -- @param args Table with arguments in key-value form. -- Valid keys: -- * CodecSettings [AudioCodecSettings] -- * LanguageCode [LanguageCode] Indicates the language of the audio output track. The ISO 639 language specified in the 'Language Code' drop down will be used when 'Follow Input Language Code' is not selected or when 'Follow Input Language Code' is selected but there is no ISO 639 language code specified by the input. -- * AudioSourceName [__string] Specifies which audio data to use from each input. In the simplest case, specify an "Audio Selector":#inputs-audio_selector by name based on its order within each input. For example if you specify "Audio Selector 3", then the third audio selector will be used from each input. If an input does not have an "Audio Selector 3", then the audio selector marked as "default" in that input will be used. If there is no audio selector marked as "default", silence will be inserted for the duration of that input. Alternatively, an "Audio Selector Group":#inputs-audio_selector_group name may be specified, with similar default/silence behavior. If no audio_source_name is specified, then "Audio Selector 1" will be chosen automatically. -- * RemixSettings [RemixSettings] Advanced audio remixing settings. -- * StreamName [__stringPatternWS] Used for MS Smooth and Apple HLS outputs. Indicates the name displayed by the player (eg. English, or Director Commentary). Alphanumeric characters, spaces, and underscore are legal. -- * LanguageCodeControl [AudioLanguageCodeControl] -- * AudioTypeControl [AudioTypeControl] -- * CustomLanguageCode [__stringMin3Max3PatternAZaZ3] Specify the language for this audio output track, using the ISO 639-2 or ISO 639-3 three-letter language code. The language specified will be used when 'Follow Input Language Code' is not selected or when 'Follow Input Language Code' is selected but there is no ISO 639 language code specified by the input. -- * AudioType [__integerMin0Max255] Applies only if Follow Input Audio Type is unchecked (false). A number between 0 and 255. The following are defined in ISO-IEC 13818-1: 0 = Undefined, 1 = Clean Effects, 2 = Hearing Impaired, 3 = Visually Impaired Commentary, 4-255 = Reserved. -- * AudioNormalizationSettings [AudioNormalizationSettings] -- @return AudioDescription structure as a key-value pair table function M.AudioDescription(args) assert(args, "You must provide an argument table when creating AudioDescription") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["CodecSettings"] = args["CodecSettings"], ["LanguageCode"] = args["LanguageCode"], ["AudioSourceName"] = args["AudioSourceName"], ["RemixSettings"] = args["RemixSettings"], ["StreamName"] = args["StreamName"], ["LanguageCodeControl"] = args["LanguageCodeControl"], ["AudioTypeControl"] = args["AudioTypeControl"], ["CustomLanguageCode"] = args["CustomLanguageCode"], ["AudioType"] = args["AudioType"], ["AudioNormalizationSettings"] = args["AudioNormalizationSettings"], } asserts.AssertAudioDescription(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.DvbSdtSettings = { ["ServiceProviderName"] = true, ["SdtInterval"] = true, ["ServiceName"] = true, ["OutputSdt"] = true, nil } function asserts.AssertDvbSdtSettings(struct) assert(struct) assert(type(struct) == "table", "Expected DvbSdtSettings to be of type 'table'") if struct["ServiceProviderName"] then asserts.Assert__stringMin1Max256(struct["ServiceProviderName"]) end if struct["SdtInterval"] then asserts.Assert__integerMin25Max2000(struct["SdtInterval"]) end if struct["ServiceName"] then asserts.Assert__stringMin1Max256(struct["ServiceName"]) end if struct["OutputSdt"] then asserts.AssertOutputSdt(struct["OutputSdt"]) end for k,_ in pairs(struct) do assert(keys.DvbSdtSettings[k], "DvbSdtSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type DvbSdtSettings -- Inserts DVB Service Description Table (NIT) at the specified table repetition interval. -- @param args Table with arguments in key-value form. -- Valid keys: -- * ServiceProviderName [__stringMin1Max256] The service provider name placed in the service_descriptor in the Service Description Table. Maximum length is 256 characters. -- * SdtInterval [__integerMin25Max2000] The number of milliseconds between instances of this table in the output transport stream. -- * ServiceName [__stringMin1Max256] The service name placed in the service_descriptor in the Service Description Table. Maximum length is 256 characters. -- * OutputSdt [OutputSdt] -- @return DvbSdtSettings structure as a key-value pair table function M.DvbSdtSettings(args) assert(args, "You must provide an argument table when creating DvbSdtSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["ServiceProviderName"] = args["ServiceProviderName"], ["SdtInterval"] = args["SdtInterval"], ["ServiceName"] = args["ServiceName"], ["OutputSdt"] = args["OutputSdt"], } asserts.AssertDvbSdtSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.UpdatePresetRequest = { ["Category"] = true, ["Settings"] = true, ["Description"] = true, ["Name"] = true, nil } function asserts.AssertUpdatePresetRequest(struct) assert(struct) assert(type(struct) == "table", "Expected UpdatePresetRequest to be of type 'table'") assert(struct["Name"], "Expected key Name to exist in table") if struct["Category"] then asserts.Assert__string(struct["Category"]) end if struct["Settings"] then asserts.AssertPresetSettings(struct["Settings"]) end if struct["Description"] then asserts.Assert__string(struct["Description"]) end if struct["Name"] then asserts.Assert__string(struct["Name"]) end for k,_ in pairs(struct) do assert(keys.UpdatePresetRequest[k], "UpdatePresetRequest contains unknown key " .. tostring(k)) end end --- Create a structure of type UpdatePresetRequest -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Category [__string] The new category for the preset, if you are changing it. -- * Settings [PresetSettings] -- * Description [__string] The new description for the preset, if you are changing it. -- * Name [__string] The name of the preset you are modifying. -- Required key: Name -- @return UpdatePresetRequest structure as a key-value pair table function M.UpdatePresetRequest(args) assert(args, "You must provide an argument table when creating UpdatePresetRequest") local query_args = { } local uri_args = { ["{name}"] = args["Name"], } local header_args = { } local all_args = { ["Category"] = args["Category"], ["Settings"] = args["Settings"], ["Description"] = args["Description"], ["Name"] = args["Name"], } asserts.AssertUpdatePresetRequest(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.H264Settings = { ["CodecProfile"] = true, ["SpatialAdaptiveQuantization"] = true, ["TemporalAdaptiveQuantization"] = true, ["MaxBitrate"] = true, ["Softness"] = true, ["Syntax"] = true, ["FramerateNumerator"] = true, ["FlickerAdaptiveQuantization"] = true, ["MinIInterval"] = true, ["QvbrSettings"] = true, ["UnregisteredSeiTimecode"] = true, ["FramerateControl"] = true, ["NumberReferenceFrames"] = true, ["FramerateDenominator"] = true, ["Bitrate"] = true, ["DynamicSubGop"] = true, ["EntropyEncoding"] = true, ["GopSizeUnits"] = true, ["GopBReference"] = true, ["Telecine"] = true, ["ParDenominator"] = true, ["AdaptiveQuantization"] = true, ["InterlaceMode"] = true, ["QualityTuningLevel"] = true, ["HrdBufferInitialFillPercentage"] = true, ["RepeatPps"] = true, ["FieldEncoding"] = true, ["SlowPal"] = true, ["GopClosedCadence"] = true, ["GopSize"] = true, ["ParControl"] = true, ["Slices"] = true, ["FramerateConversionAlgorithm"] = true, ["ParNumerator"] = true, ["RateControlMode"] = true, ["SceneChangeDetect"] = true, ["CodecLevel"] = true, ["NumberBFramesBetweenReferenceFrames"] = true, ["HrdBufferSize"] = true, nil } function asserts.AssertH264Settings(struct) assert(struct) assert(type(struct) == "table", "Expected H264Settings to be of type 'table'") if struct["CodecProfile"] then asserts.AssertH264CodecProfile(struct["CodecProfile"]) end if struct["SpatialAdaptiveQuantization"] then asserts.AssertH264SpatialAdaptiveQuantization(struct["SpatialAdaptiveQuantization"]) end if struct["TemporalAdaptiveQuantization"] then asserts.AssertH264TemporalAdaptiveQuantization(struct["TemporalAdaptiveQuantization"]) end if struct["MaxBitrate"] then asserts.Assert__integerMin1000Max1152000000(struct["MaxBitrate"]) end if struct["Softness"] then asserts.Assert__integerMin0Max128(struct["Softness"]) end if struct["Syntax"] then asserts.AssertH264Syntax(struct["Syntax"]) end if struct["FramerateNumerator"] then asserts.Assert__integerMin1Max2147483647(struct["FramerateNumerator"]) end if struct["FlickerAdaptiveQuantization"] then asserts.AssertH264FlickerAdaptiveQuantization(struct["FlickerAdaptiveQuantization"]) end if struct["MinIInterval"] then asserts.Assert__integerMin0Max30(struct["MinIInterval"]) end if struct["QvbrSettings"] then asserts.AssertH264QvbrSettings(struct["QvbrSettings"]) end if struct["UnregisteredSeiTimecode"] then asserts.AssertH264UnregisteredSeiTimecode(struct["UnregisteredSeiTimecode"]) end if struct["FramerateControl"] then asserts.AssertH264FramerateControl(struct["FramerateControl"]) end if struct["NumberReferenceFrames"] then asserts.Assert__integerMin1Max6(struct["NumberReferenceFrames"]) end if struct["FramerateDenominator"] then asserts.Assert__integerMin1Max2147483647(struct["FramerateDenominator"]) end if struct["Bitrate"] then asserts.Assert__integerMin1000Max1152000000(struct["Bitrate"]) end if struct["DynamicSubGop"] then asserts.AssertH264DynamicSubGop(struct["DynamicSubGop"]) end if struct["EntropyEncoding"] then asserts.AssertH264EntropyEncoding(struct["EntropyEncoding"]) end if struct["GopSizeUnits"] then asserts.AssertH264GopSizeUnits(struct["GopSizeUnits"]) end if struct["GopBReference"] then asserts.AssertH264GopBReference(struct["GopBReference"]) end if struct["Telecine"] then asserts.AssertH264Telecine(struct["Telecine"]) end if struct["ParDenominator"] then asserts.Assert__integerMin1Max2147483647(struct["ParDenominator"]) end if struct["AdaptiveQuantization"] then asserts.AssertH264AdaptiveQuantization(struct["AdaptiveQuantization"]) end if struct["InterlaceMode"] then asserts.AssertH264InterlaceMode(struct["InterlaceMode"]) end if struct["QualityTuningLevel"] then asserts.AssertH264QualityTuningLevel(struct["QualityTuningLevel"]) end if struct["HrdBufferInitialFillPercentage"] then asserts.Assert__integerMin0Max100(struct["HrdBufferInitialFillPercentage"]) end if struct["RepeatPps"] then asserts.AssertH264RepeatPps(struct["RepeatPps"]) end if struct["FieldEncoding"] then asserts.AssertH264FieldEncoding(struct["FieldEncoding"]) end if struct["SlowPal"] then asserts.AssertH264SlowPal(struct["SlowPal"]) end if struct["GopClosedCadence"] then asserts.Assert__integerMin0Max2147483647(struct["GopClosedCadence"]) end if struct["GopSize"] then asserts.Assert__doubleMin0(struct["GopSize"]) end if struct["ParControl"] then asserts.AssertH264ParControl(struct["ParControl"]) end if struct["Slices"] then asserts.Assert__integerMin1Max32(struct["Slices"]) end if struct["FramerateConversionAlgorithm"] then asserts.AssertH264FramerateConversionAlgorithm(struct["FramerateConversionAlgorithm"]) end if struct["ParNumerator"] then asserts.Assert__integerMin1Max2147483647(struct["ParNumerator"]) end if struct["RateControlMode"] then asserts.AssertH264RateControlMode(struct["RateControlMode"]) end if struct["SceneChangeDetect"] then asserts.AssertH264SceneChangeDetect(struct["SceneChangeDetect"]) end if struct["CodecLevel"] then asserts.AssertH264CodecLevel(struct["CodecLevel"]) end if struct["NumberBFramesBetweenReferenceFrames"] then asserts.Assert__integerMin0Max7(struct["NumberBFramesBetweenReferenceFrames"]) end if struct["HrdBufferSize"] then asserts.Assert__integerMin0Max1152000000(struct["HrdBufferSize"]) end for k,_ in pairs(struct) do assert(keys.H264Settings[k], "H264Settings contains unknown key " .. tostring(k)) end end --- Create a structure of type H264Settings -- Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the value H_264. -- @param args Table with arguments in key-value form. -- Valid keys: -- * CodecProfile [H264CodecProfile] -- * SpatialAdaptiveQuantization [H264SpatialAdaptiveQuantization] -- * TemporalAdaptiveQuantization [H264TemporalAdaptiveQuantization] -- * MaxBitrate [__integerMin1000Max1152000000] Maximum bitrate in bits/second. For example, enter five megabits per second as 5000000. Required when Rate control mode is QVBR. -- * Softness [__integerMin0Max128] Softness. Selects quantizer matrix, larger values reduce high-frequency content in the encoded image. -- * Syntax [H264Syntax] -- * FramerateNumerator [__integerMin1Max2147483647] Framerate numerator - framerate is a fraction, e.g. 24000 / 1001 = 23.976 fps. -- * FlickerAdaptiveQuantization [H264FlickerAdaptiveQuantization] -- * MinIInterval [__integerMin0Max30] Enforces separation between repeated (cadence) I-frames and I-frames inserted by Scene Change Detection. If a scene change I-frame is within I-interval frames of a cadence I-frame, the GOP is shrunk and/or stretched to the scene change I-frame. GOP stretch requires enabling lookahead as well as setting I-interval. The normal cadence resumes for the next GOP. This setting is only used when Scene Change Detect is enabled. Note: Maximum GOP stretch = GOP size + Min-I-interval - 1 -- * QvbrSettings [H264QvbrSettings] Settings for quality-defined variable bitrate encoding with the H.264 codec. Required when you set Rate control mode to QVBR. Not valid when you set Rate control mode to a value other than QVBR, or when you don't define Rate control mode. -- * UnregisteredSeiTimecode [H264UnregisteredSeiTimecode] -- * FramerateControl [H264FramerateControl] -- * NumberReferenceFrames [__integerMin1Max6] Number of reference frames to use. The encoder may use more than requested if using B-frames and/or interlaced encoding. -- * FramerateDenominator [__integerMin1Max2147483647] When you use the API for transcode jobs that use framerate conversion, specify the framerate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use FramerateDenominator to specify the denominator of this fraction. In this example, use 1001 for the value of FramerateDenominator. When you use the console for transcode jobs that use framerate conversion, provide the value as a decimal number for Framerate. In this example, specify 23.976. -- * Bitrate [__integerMin1000Max1152000000] Average bitrate in bits/second. Required for VBR and CBR. For MS Smooth outputs, bitrates must be unique when rounded down to the nearest multiple of 1000. -- * DynamicSubGop [H264DynamicSubGop] Choose Adaptive to improve subjective video quality for high-motion content. This will cause the service to use fewer B-frames (which infer information based on other frames) for high-motion portions of the video and more B-frames for low-motion portions. The maximum number of B-frames is limited by the value you provide for the setting B frames between reference frames (numberBFramesBetweenReferenceFrames). -- * EntropyEncoding [H264EntropyEncoding] -- * GopSizeUnits [H264GopSizeUnits] -- * GopBReference [H264GopBReference] -- * Telecine [H264Telecine] -- * ParDenominator [__integerMin1Max2147483647] Pixel Aspect Ratio denominator. -- * AdaptiveQuantization [H264AdaptiveQuantization] -- * InterlaceMode [H264InterlaceMode] -- * QualityTuningLevel [H264QualityTuningLevel] -- * HrdBufferInitialFillPercentage [__integerMin0Max100] Percentage of the buffer that should initially be filled (HRD buffer model). -- * RepeatPps [H264RepeatPps] -- * FieldEncoding [H264FieldEncoding] -- * SlowPal [H264SlowPal] -- * GopClosedCadence [__integerMin0Max2147483647] Frequency of closed GOPs. In streaming applications, it is recommended that this be set to 1 so a decoder joining mid-stream will receive an IDR frame as quickly as possible. Setting this value to 0 will break output segmenting. -- * GopSize [__doubleMin0] GOP Length (keyframe interval) in frames or seconds. Must be greater than zero. -- * ParControl [H264ParControl] -- * Slices [__integerMin1Max32] Number of slices per picture. Must be less than or equal to the number of macroblock rows for progressive pictures, and less than or equal to half the number of macroblock rows for interlaced pictures. -- * FramerateConversionAlgorithm [H264FramerateConversionAlgorithm] -- * ParNumerator [__integerMin1Max2147483647] Pixel Aspect Ratio numerator. -- * RateControlMode [H264RateControlMode] -- * SceneChangeDetect [H264SceneChangeDetect] -- * CodecLevel [H264CodecLevel] -- * NumberBFramesBetweenReferenceFrames [__integerMin0Max7] Number of B-frames between reference frames. -- * HrdBufferSize [__integerMin0Max1152000000] Size of buffer (HRD buffer model) in bits. For example, enter five megabits as 5000000. -- @return H264Settings structure as a key-value pair table function M.H264Settings(args) assert(args, "You must provide an argument table when creating H264Settings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["CodecProfile"] = args["CodecProfile"], ["SpatialAdaptiveQuantization"] = args["SpatialAdaptiveQuantization"], ["TemporalAdaptiveQuantization"] = args["TemporalAdaptiveQuantization"], ["MaxBitrate"] = args["MaxBitrate"], ["Softness"] = args["Softness"], ["Syntax"] = args["Syntax"], ["FramerateNumerator"] = args["FramerateNumerator"], ["FlickerAdaptiveQuantization"] = args["FlickerAdaptiveQuantization"], ["MinIInterval"] = args["MinIInterval"], ["QvbrSettings"] = args["QvbrSettings"], ["UnregisteredSeiTimecode"] = args["UnregisteredSeiTimecode"], ["FramerateControl"] = args["FramerateControl"], ["NumberReferenceFrames"] = args["NumberReferenceFrames"], ["FramerateDenominator"] = args["FramerateDenominator"], ["Bitrate"] = args["Bitrate"], ["DynamicSubGop"] = args["DynamicSubGop"], ["EntropyEncoding"] = args["EntropyEncoding"], ["GopSizeUnits"] = args["GopSizeUnits"], ["GopBReference"] = args["GopBReference"], ["Telecine"] = args["Telecine"], ["ParDenominator"] = args["ParDenominator"], ["AdaptiveQuantization"] = args["AdaptiveQuantization"], ["InterlaceMode"] = args["InterlaceMode"], ["QualityTuningLevel"] = args["QualityTuningLevel"], ["HrdBufferInitialFillPercentage"] = args["HrdBufferInitialFillPercentage"], ["RepeatPps"] = args["RepeatPps"], ["FieldEncoding"] = args["FieldEncoding"], ["SlowPal"] = args["SlowPal"], ["GopClosedCadence"] = args["GopClosedCadence"], ["GopSize"] = args["GopSize"], ["ParControl"] = args["ParControl"], ["Slices"] = args["Slices"], ["FramerateConversionAlgorithm"] = args["FramerateConversionAlgorithm"], ["ParNumerator"] = args["ParNumerator"], ["RateControlMode"] = args["RateControlMode"], ["SceneChangeDetect"] = args["SceneChangeDetect"], ["CodecLevel"] = args["CodecLevel"], ["NumberBFramesBetweenReferenceFrames"] = args["NumberBFramesBetweenReferenceFrames"], ["HrdBufferSize"] = args["HrdBufferSize"], } asserts.AssertH264Settings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.ImageInserter = { ["InsertableImages"] = true, nil } function asserts.AssertImageInserter(struct) assert(struct) assert(type(struct) == "table", "Expected ImageInserter to be of type 'table'") if struct["InsertableImages"] then asserts.Assert__listOfInsertableImage(struct["InsertableImages"]) end for k,_ in pairs(struct) do assert(keys.ImageInserter[k], "ImageInserter contains unknown key " .. tostring(k)) end end --- Create a structure of type ImageInserter -- Enable the Image inserter (ImageInserter) feature to include a graphic overlay on your video. Enable or disable this feature for each output individually. This setting is disabled by default. -- @param args Table with arguments in key-value form. -- Valid keys: -- * InsertableImages [__listOfInsertableImage] Image to insert. Must be 32 bit windows BMP, PNG, or TGA file. Must not be larger than the output frames. -- @return ImageInserter structure as a key-value pair table function M.ImageInserter(args) assert(args, "You must provide an argument table when creating ImageInserter") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["InsertableImages"] = args["InsertableImages"], } asserts.AssertImageInserter(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.TagResourceRequest = { ["Arn"] = true, ["Tags"] = true, nil } function asserts.AssertTagResourceRequest(struct) assert(struct) assert(type(struct) == "table", "Expected TagResourceRequest to be of type 'table'") assert(struct["Arn"], "Expected key Arn to exist in table") assert(struct["Tags"], "Expected key Tags to exist in table") if struct["Arn"] then asserts.Assert__string(struct["Arn"]) end if struct["Tags"] then asserts.Assert__mapOf__string(struct["Tags"]) end for k,_ in pairs(struct) do assert(keys.TagResourceRequest[k], "TagResourceRequest contains unknown key " .. tostring(k)) end end --- Create a structure of type TagResourceRequest -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Arn [__string] The Amazon Resource Name (ARN) of the resource that you want to tag. To get the ARN, send a GET request with the resource name. -- * Tags [__mapOf__string] The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key. -- Required key: Arn -- Required key: Tags -- @return TagResourceRequest structure as a key-value pair table function M.TagResourceRequest(args) assert(args, "You must provide an argument table when creating TagResourceRequest") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Arn"] = args["Arn"], ["Tags"] = args["Tags"], } asserts.AssertTagResourceRequest(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.H265QvbrSettings = { ["QvbrQualityLevel"] = true, ["MaxAverageBitrate"] = true, nil } function asserts.AssertH265QvbrSettings(struct) assert(struct) assert(type(struct) == "table", "Expected H265QvbrSettings to be of type 'table'") if struct["QvbrQualityLevel"] then asserts.Assert__integerMin1Max10(struct["QvbrQualityLevel"]) end if struct["MaxAverageBitrate"] then asserts.Assert__integerMin1000Max1466400000(struct["MaxAverageBitrate"]) end for k,_ in pairs(struct) do assert(keys.H265QvbrSettings[k], "H265QvbrSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type H265QvbrSettings -- Settings for quality-defined variable bitrate encoding with the H.265 codec. Required when you set Rate control mode to QVBR. Not valid when you set Rate control mode to a value other than QVBR, or when you don't define Rate control mode. -- @param args Table with arguments in key-value form. -- Valid keys: -- * QvbrQualityLevel [__integerMin1Max10] Required when you use QVBR rate control mode. That is, when you specify qvbrSettings within h265Settings. Specify the target quality level for this output, from 1 to 10. Use higher numbers for greater quality. Level 10 results in nearly lossless compression. The quality level for most broadcast-quality transcodes is between 6 and 9. -- * MaxAverageBitrate [__integerMin1000Max1466400000] Use this setting only when Rate control mode is QVBR and Quality tuning level is Multi-pass HQ. For Max average bitrate values suited to the complexity of your input video, the service limits the average bitrate of the video part of this output to the value you choose. That is, the total size of the video element is less than or equal to the value you set multiplied by the number of seconds of encoded output. -- @return H265QvbrSettings structure as a key-value pair table function M.H265QvbrSettings(args) assert(args, "You must provide an argument table when creating H265QvbrSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["QvbrQualityLevel"] = args["QvbrQualityLevel"], ["MaxAverageBitrate"] = args["MaxAverageBitrate"], } asserts.AssertH265QvbrSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.PresetSettings = { ["CaptionDescriptions"] = true, ["VideoDescription"] = true, ["AudioDescriptions"] = true, ["ContainerSettings"] = true, nil } function asserts.AssertPresetSettings(struct) assert(struct) assert(type(struct) == "table", "Expected PresetSettings to be of type 'table'") if struct["CaptionDescriptions"] then asserts.Assert__listOfCaptionDescriptionPreset(struct["CaptionDescriptions"]) end if struct["VideoDescription"] then asserts.AssertVideoDescription(struct["VideoDescription"]) end if struct["AudioDescriptions"] then asserts.Assert__listOfAudioDescription(struct["AudioDescriptions"]) end if struct["ContainerSettings"] then asserts.AssertContainerSettings(struct["ContainerSettings"]) end for k,_ in pairs(struct) do assert(keys.PresetSettings[k], "PresetSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type PresetSettings -- Settings for preset -- @param args Table with arguments in key-value form. -- Valid keys: -- * CaptionDescriptions [__listOfCaptionDescriptionPreset] Caption settings for this preset. There can be multiple caption settings in a single output. -- * VideoDescription [VideoDescription] (VideoDescription) contains a group of video encoding settings. The specific video settings depend on the video codec you choose when you specify a value for Video codec (codec). Include one instance of (VideoDescription) per output. -- * AudioDescriptions [__listOfAudioDescription] (AudioDescriptions) contains groups of audio encoding settings organized by audio codec. Include one instance of (AudioDescriptions) per output. (AudioDescriptions) can contain multiple groups of encoding settings. -- * ContainerSettings [ContainerSettings] -- @return PresetSettings structure as a key-value pair table function M.PresetSettings(args) assert(args, "You must provide an argument table when creating PresetSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["CaptionDescriptions"] = args["CaptionDescriptions"], ["VideoDescription"] = args["VideoDescription"], ["AudioDescriptions"] = args["AudioDescriptions"], ["ContainerSettings"] = args["ContainerSettings"], } asserts.AssertPresetSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.UpdateJobTemplateResponse = { ["JobTemplate"] = true, nil } function asserts.AssertUpdateJobTemplateResponse(struct) assert(struct) assert(type(struct) == "table", "Expected UpdateJobTemplateResponse to be of type 'table'") if struct["JobTemplate"] then asserts.AssertJobTemplate(struct["JobTemplate"]) end for k,_ in pairs(struct) do assert(keys.UpdateJobTemplateResponse[k], "UpdateJobTemplateResponse contains unknown key " .. tostring(k)) end end --- Create a structure of type UpdateJobTemplateResponse -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * JobTemplate [JobTemplate] -- @return UpdateJobTemplateResponse structure as a key-value pair table function M.UpdateJobTemplateResponse(args) assert(args, "You must provide an argument table when creating UpdateJobTemplateResponse") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["JobTemplate"] = args["JobTemplate"], } asserts.AssertUpdateJobTemplateResponse(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.GetQueueRequest = { ["Name"] = true, nil } function asserts.AssertGetQueueRequest(struct) assert(struct) assert(type(struct) == "table", "Expected GetQueueRequest to be of type 'table'") assert(struct["Name"], "Expected key Name to exist in table") if struct["Name"] then asserts.Assert__string(struct["Name"]) end for k,_ in pairs(struct) do assert(keys.GetQueueRequest[k], "GetQueueRequest contains unknown key " .. tostring(k)) end end --- Create a structure of type GetQueueRequest -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Name [__string] The name of the queue that you want information about. -- Required key: Name -- @return GetQueueRequest structure as a key-value pair table function M.GetQueueRequest(args) assert(args, "You must provide an argument table when creating GetQueueRequest") local query_args = { } local uri_args = { ["{name}"] = args["Name"], } local header_args = { } local all_args = { ["Name"] = args["Name"], } asserts.AssertGetQueueRequest(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.OutputGroupDetail = { ["OutputDetails"] = true, nil } function asserts.AssertOutputGroupDetail(struct) assert(struct) assert(type(struct) == "table", "Expected OutputGroupDetail to be of type 'table'") if struct["OutputDetails"] then asserts.Assert__listOfOutputDetail(struct["OutputDetails"]) end for k,_ in pairs(struct) do assert(keys.OutputGroupDetail[k], "OutputGroupDetail contains unknown key " .. tostring(k)) end end --- Create a structure of type OutputGroupDetail -- Contains details about the output groups specified in the job settings. -- @param args Table with arguments in key-value form. -- Valid keys: -- * OutputDetails [__listOfOutputDetail] Details about the output -- @return OutputGroupDetail structure as a key-value pair table function M.OutputGroupDetail(args) assert(args, "You must provide an argument table when creating OutputGroupDetail") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["OutputDetails"] = args["OutputDetails"], } asserts.AssertOutputGroupDetail(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.EmbeddedSourceSettings = { ["Source608ChannelNumber"] = true, ["Convert608To708"] = true, ["Source608TrackNumber"] = true, nil } function asserts.AssertEmbeddedSourceSettings(struct) assert(struct) assert(type(struct) == "table", "Expected EmbeddedSourceSettings to be of type 'table'") if struct["Source608ChannelNumber"] then asserts.Assert__integerMin1Max4(struct["Source608ChannelNumber"]) end if struct["Convert608To708"] then asserts.AssertEmbeddedConvert608To708(struct["Convert608To708"]) end if struct["Source608TrackNumber"] then asserts.Assert__integerMin1Max1(struct["Source608TrackNumber"]) end for k,_ in pairs(struct) do assert(keys.EmbeddedSourceSettings[k], "EmbeddedSourceSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type EmbeddedSourceSettings -- Settings for embedded captions Source -- @param args Table with arguments in key-value form. -- Valid keys: -- * Source608ChannelNumber [__integerMin1Max4] Specifies the 608/708 channel number within the video track from which to extract captions. Unused for passthrough. -- * Convert608To708 [EmbeddedConvert608To708] -- * Source608TrackNumber [__integerMin1Max1] Specifies the video track index used for extracting captions. The system only supports one input video track, so this should always be set to '1'. -- @return EmbeddedSourceSettings structure as a key-value pair table function M.EmbeddedSourceSettings(args) assert(args, "You must provide an argument table when creating EmbeddedSourceSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Source608ChannelNumber"] = args["Source608ChannelNumber"], ["Convert608To708"] = args["Convert608To708"], ["Source608TrackNumber"] = args["Source608TrackNumber"], } asserts.AssertEmbeddedSourceSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.CancelJobResponse = { nil } function asserts.AssertCancelJobResponse(struct) assert(struct) assert(type(struct) == "table", "Expected CancelJobResponse to be of type 'table'") for k,_ in pairs(struct) do assert(keys.CancelJobResponse[k], "CancelJobResponse contains unknown key " .. tostring(k)) end end --- Create a structure of type CancelJobResponse -- -- @param args Table with arguments in key-value form. -- Valid keys: -- @return CancelJobResponse structure as a key-value pair table function M.CancelJobResponse(args) assert(args, "You must provide an argument table when creating CancelJobResponse") local query_args = { } local uri_args = { } local header_args = { } local all_args = { } asserts.AssertCancelJobResponse(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.RemixSettings = { ["ChannelMapping"] = true, ["ChannelsOut"] = true, ["ChannelsIn"] = true, nil } function asserts.AssertRemixSettings(struct) assert(struct) assert(type(struct) == "table", "Expected RemixSettings to be of type 'table'") if struct["ChannelMapping"] then asserts.AssertChannelMapping(struct["ChannelMapping"]) end if struct["ChannelsOut"] then asserts.Assert__integerMin1Max8(struct["ChannelsOut"]) end if struct["ChannelsIn"] then asserts.Assert__integerMin1Max16(struct["ChannelsIn"]) end for k,_ in pairs(struct) do assert(keys.RemixSettings[k], "RemixSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type RemixSettings -- Use Manual audio remixing (RemixSettings) to adjust audio levels for each audio channel in each output of your job. With audio remixing, you can output more or fewer audio channels than your input audio source provides. -- @param args Table with arguments in key-value form. -- Valid keys: -- * ChannelMapping [ChannelMapping] -- * ChannelsOut [__integerMin1Max8] Specify the number of channels in this output after remixing. Valid values: 1, 2, 4, 6, 8 -- * ChannelsIn [__integerMin1Max16] Specify the number of audio channels from your input that you want to use in your output. With remixing, you might combine or split the data in these channels, so the number of channels in your final output might be different. -- @return RemixSettings structure as a key-value pair table function M.RemixSettings(args) assert(args, "You must provide an argument table when creating RemixSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["ChannelMapping"] = args["ChannelMapping"], ["ChannelsOut"] = args["ChannelsOut"], ["ChannelsIn"] = args["ChannelsIn"], } asserts.AssertRemixSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.VideoCodecSettings = { ["Mpeg2Settings"] = true, ["ProresSettings"] = true, ["H264Settings"] = true, ["H265Settings"] = true, ["Codec"] = true, ["FrameCaptureSettings"] = true, nil } function asserts.AssertVideoCodecSettings(struct) assert(struct) assert(type(struct) == "table", "Expected VideoCodecSettings to be of type 'table'") if struct["Mpeg2Settings"] then asserts.AssertMpeg2Settings(struct["Mpeg2Settings"]) end if struct["ProresSettings"] then asserts.AssertProresSettings(struct["ProresSettings"]) end if struct["H264Settings"] then asserts.AssertH264Settings(struct["H264Settings"]) end if struct["H265Settings"] then asserts.AssertH265Settings(struct["H265Settings"]) end if struct["Codec"] then asserts.AssertVideoCodec(struct["Codec"]) end if struct["FrameCaptureSettings"] then asserts.AssertFrameCaptureSettings(struct["FrameCaptureSettings"]) end for k,_ in pairs(struct) do assert(keys.VideoCodecSettings[k], "VideoCodecSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type VideoCodecSettings -- Video codec settings, (CodecSettings) under (VideoDescription), contains the group of settings related to video encoding. The settings in this group vary depending on the value you choose for Video codec (Codec). For each codec enum you choose, define the corresponding settings object. The following lists the codec enum, settings object pairs. * H_264, H264Settings * H_265, H265Settings * MPEG2, Mpeg2Settings * PRORES, ProresSettings * FRAME_CAPTURE, FrameCaptureSettings -- @param args Table with arguments in key-value form. -- Valid keys: -- * Mpeg2Settings [Mpeg2Settings] -- * ProresSettings [ProresSettings] -- * H264Settings [H264Settings] -- * H265Settings [H265Settings] -- * Codec [VideoCodec] -- * FrameCaptureSettings [FrameCaptureSettings] -- @return VideoCodecSettings structure as a key-value pair table function M.VideoCodecSettings(args) assert(args, "You must provide an argument table when creating VideoCodecSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Mpeg2Settings"] = args["Mpeg2Settings"], ["ProresSettings"] = args["ProresSettings"], ["H264Settings"] = args["H264Settings"], ["H265Settings"] = args["H265Settings"], ["Codec"] = args["Codec"], ["FrameCaptureSettings"] = args["FrameCaptureSettings"], } asserts.AssertVideoCodecSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.FileSourceSettings = { ["SourceFile"] = true, ["TimeDelta"] = true, ["Convert608To708"] = true, nil } function asserts.AssertFileSourceSettings(struct) assert(struct) assert(type(struct) == "table", "Expected FileSourceSettings to be of type 'table'") if struct["SourceFile"] then asserts.Assert__stringMin14PatternS3SccSCCTtmlTTMLDfxpDFXPStlSTLSrtSRTSmiSMI(struct["SourceFile"]) end if struct["TimeDelta"] then asserts.Assert__integerMinNegative2147483648Max2147483647(struct["TimeDelta"]) end if struct["Convert608To708"] then asserts.AssertFileSourceConvert608To708(struct["Convert608To708"]) end for k,_ in pairs(struct) do assert(keys.FileSourceSettings[k], "FileSourceSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type FileSourceSettings -- Settings for File-based Captions in Source -- @param args Table with arguments in key-value form. -- Valid keys: -- * SourceFile [__stringMin14PatternS3SccSCCTtmlTTMLDfxpDFXPStlSTLSrtSRTSmiSMI] External caption file used for loading captions. Accepted file extensions are 'scc', 'ttml', 'dfxp', 'stl', 'srt', and 'smi'. -- * TimeDelta [__integerMinNegative2147483648Max2147483647] Specifies a time delta in seconds to offset the captions from the source file. -- * Convert608To708 [FileSourceConvert608To708] -- @return FileSourceSettings structure as a key-value pair table function M.FileSourceSettings(args) assert(args, "You must provide an argument table when creating FileSourceSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["SourceFile"] = args["SourceFile"], ["TimeDelta"] = args["TimeDelta"], ["Convert608To708"] = args["Convert608To708"], } asserts.AssertFileSourceSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.TimecodeBurnin = { ["Position"] = true, ["Prefix"] = true, ["FontSize"] = true, nil } function asserts.AssertTimecodeBurnin(struct) assert(struct) assert(type(struct) == "table", "Expected TimecodeBurnin to be of type 'table'") if struct["Position"] then asserts.AssertTimecodeBurninPosition(struct["Position"]) end if struct["Prefix"] then asserts.Assert__stringPattern(struct["Prefix"]) end if struct["FontSize"] then asserts.Assert__integerMin10Max48(struct["FontSize"]) end for k,_ in pairs(struct) do assert(keys.TimecodeBurnin[k], "TimecodeBurnin contains unknown key " .. tostring(k)) end end --- Create a structure of type TimecodeBurnin -- Timecode burn-in (TimecodeBurnIn)--Burns the output timecode and specified prefix into the output. -- @param args Table with arguments in key-value form. -- Valid keys: -- * Position [TimecodeBurninPosition] -- * Prefix [__stringPattern] Use Prefix (Prefix) to place ASCII characters before any burned-in timecode. For example, a prefix of "EZ-" will result in the timecode "EZ-00:00:00:00". Provide either the characters themselves or the ASCII code equivalents. The supported range of characters is 0x20 through 0x7e. This includes letters, numbers, and all special characters represented on a standard English keyboard. -- * FontSize [__integerMin10Max48] Use Font Size (FontSize) to set the font size of any burned-in timecode. Valid values are 10, 16, 32, 48. -- @return TimecodeBurnin structure as a key-value pair table function M.TimecodeBurnin(args) assert(args, "You must provide an argument table when creating TimecodeBurnin") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Position"] = args["Position"], ["Prefix"] = args["Prefix"], ["FontSize"] = args["FontSize"], } asserts.AssertTimecodeBurnin(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.NielsenConfiguration = { ["DistributorId"] = true, ["BreakoutCode"] = true, nil } function asserts.AssertNielsenConfiguration(struct) assert(struct) assert(type(struct) == "table", "Expected NielsenConfiguration to be of type 'table'") if struct["DistributorId"] then asserts.Assert__string(struct["DistributorId"]) end if struct["BreakoutCode"] then asserts.Assert__integerMin0Max9(struct["BreakoutCode"]) end for k,_ in pairs(struct) do assert(keys.NielsenConfiguration[k], "NielsenConfiguration contains unknown key " .. tostring(k)) end end --- Create a structure of type NielsenConfiguration -- Settings for Nielsen Configuration -- @param args Table with arguments in key-value form. -- Valid keys: -- * DistributorId [__string] Use Distributor ID (DistributorID) to specify the distributor ID that is assigned to your organization by Neilsen. -- * BreakoutCode [__integerMin0Max9] Use Nielsen Configuration (NielsenConfiguration) to set the Nielsen measurement system breakout code. Supported values are 0, 3, 7, and 9. -- @return NielsenConfiguration structure as a key-value pair table function M.NielsenConfiguration(args) assert(args, "You must provide an argument table when creating NielsenConfiguration") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["DistributorId"] = args["DistributorId"], ["BreakoutCode"] = args["BreakoutCode"], } asserts.AssertNielsenConfiguration(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.InsertableImage = { ["Opacity"] = true, ["Layer"] = true, ["FadeOut"] = true, ["Height"] = true, ["Width"] = true, ["ImageY"] = true, ["ImageX"] = true, ["FadeIn"] = true, ["StartTime"] = true, ["Duration"] = true, ["ImageInserterInput"] = true, nil } function asserts.AssertInsertableImage(struct) assert(struct) assert(type(struct) == "table", "Expected InsertableImage to be of type 'table'") if struct["Opacity"] then asserts.Assert__integerMin0Max100(struct["Opacity"]) end if struct["Layer"] then asserts.Assert__integerMin0Max99(struct["Layer"]) end if struct["FadeOut"] then asserts.Assert__integerMinNegative2147483648Max2147483647(struct["FadeOut"]) end if struct["Height"] then asserts.Assert__integerMinNegative2147483648Max2147483647(struct["Height"]) end if struct["Width"] then asserts.Assert__integerMinNegative2147483648Max2147483647(struct["Width"]) end if struct["ImageY"] then asserts.Assert__integerMinNegative2147483648Max2147483647(struct["ImageY"]) end if struct["ImageX"] then asserts.Assert__integerMinNegative2147483648Max2147483647(struct["ImageX"]) end if struct["FadeIn"] then asserts.Assert__integerMinNegative2147483648Max2147483647(struct["FadeIn"]) end if struct["StartTime"] then asserts.Assert__stringPattern01D20305D205D(struct["StartTime"]) end if struct["Duration"] then asserts.Assert__integerMinNegative2147483648Max2147483647(struct["Duration"]) end if struct["ImageInserterInput"] then asserts.Assert__stringMin14PatternS3BmpBMPPngPNGTgaTGA(struct["ImageInserterInput"]) end for k,_ in pairs(struct) do assert(keys.InsertableImage[k], "InsertableImage contains unknown key " .. tostring(k)) end end --- Create a structure of type InsertableImage -- Settings for Insertable Image -- @param args Table with arguments in key-value form. -- Valid keys: -- * Opacity [__integerMin0Max100] Use Opacity (Opacity) to specify how much of the underlying video shows through the inserted image. 0 is transparent and 100 is fully opaque. Default is 50. -- * Layer [__integerMin0Max99] Use Layer (Layer) to specify how overlapping inserted images appear. Images with higher values of layer appear on top of images with lower values of layer. -- * FadeOut [__integerMinNegative2147483648Max2147483647] Use Fade out (FadeOut) to set the length, in milliseconds, of the inserted image fade out. If you don't specify a value for Fade out, the image will disappear abruptly at the end of the inserted image duration. -- * Height [__integerMinNegative2147483648Max2147483647] Specify the Height (Height) of the inserted image. Use a value that is less than or equal to the video resolution height. Leave this setting blank to use the native height of the image. -- * Width [__integerMinNegative2147483648Max2147483647] Specify the Width (Width) of the inserted image. Use a value that is less than or equal to the video resolution width. Leave this setting blank to use the native width of the image. -- * ImageY [__integerMinNegative2147483648Max2147483647] Use Top (ImageY) to set the distance, in pixels, between the inserted image and the top edge of the video frame. Required for BMP, PNG and TGA input. -- * ImageX [__integerMinNegative2147483648Max2147483647] Use Left (ImageX) to set the distance, in pixels, between the inserted image and the left edge of the frame. Required for BMP, PNG and TGA input. -- * FadeIn [__integerMinNegative2147483648Max2147483647] Use Fade in (FadeIut) to set the length, in milliseconds, of the inserted image fade in. If you don't specify a value for Fade in, the image will appear abruptly at the Start time. -- * StartTime [__stringPattern01D20305D205D] Use Start time (StartTime) to specify the video timecode when the image is inserted in the output. This must be in timecode (HH:MM:SS:FF or HH:MM:SS;FF) format. -- * Duration [__integerMinNegative2147483648Max2147483647] Use Duration (Duration) to set the time, in milliseconds, for the image to remain on the output video. -- * ImageInserterInput [__stringMin14PatternS3BmpBMPPngPNGTgaTGA] Use Image location (imageInserterInput) to specify the Amazon S3 location of the image to be inserted into the output. Use a 32 bit BMP, PNG, or TGA file that fits inside the video frame. -- @return InsertableImage structure as a key-value pair table function M.InsertableImage(args) assert(args, "You must provide an argument table when creating InsertableImage") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Opacity"] = args["Opacity"], ["Layer"] = args["Layer"], ["FadeOut"] = args["FadeOut"], ["Height"] = args["Height"], ["Width"] = args["Width"], ["ImageY"] = args["ImageY"], ["ImageX"] = args["ImageX"], ["FadeIn"] = args["FadeIn"], ["StartTime"] = args["StartTime"], ["Duration"] = args["Duration"], ["ImageInserterInput"] = args["ImageInserterInput"], } asserts.AssertInsertableImage(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.ListQueuesRequest = { ["ListBy"] = true, ["NextToken"] = true, ["Order"] = true, ["MaxResults"] = true, nil } function asserts.AssertListQueuesRequest(struct) assert(struct) assert(type(struct) == "table", "Expected ListQueuesRequest to be of type 'table'") if struct["ListBy"] then asserts.AssertQueueListBy(struct["ListBy"]) end if struct["NextToken"] then asserts.Assert__string(struct["NextToken"]) end if struct["Order"] then asserts.AssertOrder(struct["Order"]) end if struct["MaxResults"] then asserts.Assert__integerMin1Max20(struct["MaxResults"]) end for k,_ in pairs(struct) do assert(keys.ListQueuesRequest[k], "ListQueuesRequest contains unknown key " .. tostring(k)) end end --- Create a structure of type ListQueuesRequest -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * ListBy [QueueListBy] -- * NextToken [__string] Use this string, provided with the response to a previous request, to request the next batch of queues. -- * Order [Order] -- * MaxResults [__integerMin1Max20] Optional. Number of queues, up to twenty, that will be returned at one time. -- @return ListQueuesRequest structure as a key-value pair table function M.ListQueuesRequest(args) assert(args, "You must provide an argument table when creating ListQueuesRequest") local query_args = { ["listBy"] = args["ListBy"], ["nextToken"] = args["NextToken"], ["order"] = args["Order"], ["maxResults"] = args["MaxResults"], } local uri_args = { } local header_args = { } local all_args = { ["ListBy"] = args["ListBy"], ["NextToken"] = args["NextToken"], ["Order"] = args["Order"], ["MaxResults"] = args["MaxResults"], } asserts.AssertListQueuesRequest(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.M2tsSettings = { ["NielsenId3"] = true, ["Scte35Pid"] = true, ["EbpPlacement"] = true, ["TransportStreamId"] = true, ["DvbNitSettings"] = true, ["PatInterval"] = true, ["SegmentationTime"] = true, ["AudioBufferModel"] = true, ["ProgramNumber"] = true, ["AudioPids"] = true, ["Bitrate"] = true, ["MinEbpInterval"] = true, ["FragmentTime"] = true, ["SegmentationMarkers"] = true, ["TimedMetadataPid"] = true, ["PcrControl"] = true, ["EbpAudioInterval"] = true, ["DvbTeletextPid"] = true, ["PrivateMetadataPid"] = true, ["PcrPid"] = true, ["NullPacketBitrate"] = true, ["SegmentationStyle"] = true, ["BufferModel"] = true, ["MaxPcrInterval"] = true, ["DvbTdtSettings"] = true, ["AudioFramesPerPes"] = true, ["VideoPid"] = true, ["PmtPid"] = true, ["DvbSubPids"] = true, ["RateMode"] = true, ["Scte35Source"] = true, ["EsRateInPes"] = true, ["DvbSdtSettings"] = true, ["PmtInterval"] = true, nil } function asserts.AssertM2tsSettings(struct) assert(struct) assert(type(struct) == "table", "Expected M2tsSettings to be of type 'table'") if struct["NielsenId3"] then asserts.AssertM2tsNielsenId3(struct["NielsenId3"]) end if struct["Scte35Pid"] then asserts.Assert__integerMin32Max8182(struct["Scte35Pid"]) end if struct["EbpPlacement"] then asserts.AssertM2tsEbpPlacement(struct["EbpPlacement"]) end if struct["TransportStreamId"] then asserts.Assert__integerMin0Max65535(struct["TransportStreamId"]) end if struct["DvbNitSettings"] then asserts.AssertDvbNitSettings(struct["DvbNitSettings"]) end if struct["PatInterval"] then asserts.Assert__integerMin0Max1000(struct["PatInterval"]) end if struct["SegmentationTime"] then asserts.Assert__doubleMin0(struct["SegmentationTime"]) end if struct["AudioBufferModel"] then asserts.AssertM2tsAudioBufferModel(struct["AudioBufferModel"]) end if struct["ProgramNumber"] then asserts.Assert__integerMin0Max65535(struct["ProgramNumber"]) end if struct["AudioPids"] then asserts.Assert__listOf__integerMin32Max8182(struct["AudioPids"]) end if struct["Bitrate"] then asserts.Assert__integerMin0Max2147483647(struct["Bitrate"]) end if struct["MinEbpInterval"] then asserts.Assert__integerMin0Max10000(struct["MinEbpInterval"]) end if struct["FragmentTime"] then asserts.Assert__doubleMin0(struct["FragmentTime"]) end if struct["SegmentationMarkers"] then asserts.AssertM2tsSegmentationMarkers(struct["SegmentationMarkers"]) end if struct["TimedMetadataPid"] then asserts.Assert__integerMin32Max8182(struct["TimedMetadataPid"]) end if struct["PcrControl"] then asserts.AssertM2tsPcrControl(struct["PcrControl"]) end if struct["EbpAudioInterval"] then asserts.AssertM2tsEbpAudioInterval(struct["EbpAudioInterval"]) end if struct["DvbTeletextPid"] then asserts.Assert__integerMin32Max8182(struct["DvbTeletextPid"]) end if struct["PrivateMetadataPid"] then asserts.Assert__integerMin32Max8182(struct["PrivateMetadataPid"]) end if struct["PcrPid"] then asserts.Assert__integerMin32Max8182(struct["PcrPid"]) end if struct["NullPacketBitrate"] then asserts.Assert__doubleMin0(struct["NullPacketBitrate"]) end if struct["SegmentationStyle"] then asserts.AssertM2tsSegmentationStyle(struct["SegmentationStyle"]) end if struct["BufferModel"] then asserts.AssertM2tsBufferModel(struct["BufferModel"]) end if struct["MaxPcrInterval"] then asserts.Assert__integerMin0Max500(struct["MaxPcrInterval"]) end if struct["DvbTdtSettings"] then asserts.AssertDvbTdtSettings(struct["DvbTdtSettings"]) end if struct["AudioFramesPerPes"] then asserts.Assert__integerMin0Max2147483647(struct["AudioFramesPerPes"]) end if struct["VideoPid"] then asserts.Assert__integerMin32Max8182(struct["VideoPid"]) end if struct["PmtPid"] then asserts.Assert__integerMin32Max8182(struct["PmtPid"]) end if struct["DvbSubPids"] then asserts.Assert__listOf__integerMin32Max8182(struct["DvbSubPids"]) end if struct["RateMode"] then asserts.AssertM2tsRateMode(struct["RateMode"]) end if struct["Scte35Source"] then asserts.AssertM2tsScte35Source(struct["Scte35Source"]) end if struct["EsRateInPes"] then asserts.AssertM2tsEsRateInPes(struct["EsRateInPes"]) end if struct["DvbSdtSettings"] then asserts.AssertDvbSdtSettings(struct["DvbSdtSettings"]) end if struct["PmtInterval"] then asserts.Assert__integerMin0Max1000(struct["PmtInterval"]) end for k,_ in pairs(struct) do assert(keys.M2tsSettings[k], "M2tsSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type M2tsSettings -- Settings for M2TS Container. -- @param args Table with arguments in key-value form. -- Valid keys: -- * NielsenId3 [M2tsNielsenId3] -- * Scte35Pid [__integerMin32Max8182] Packet Identifier (PID) of the SCTE-35 stream in the transport stream. -- * EbpPlacement [M2tsEbpPlacement] -- * TransportStreamId [__integerMin0Max65535] The value of the transport stream ID field in the Program Map Table. -- * DvbNitSettings [DvbNitSettings] -- * PatInterval [__integerMin0Max1000] The number of milliseconds between instances of this table in the output transport stream. -- * SegmentationTime [__doubleMin0] The length in seconds of each segment. Required unless markers is set to _none_. -- * AudioBufferModel [M2tsAudioBufferModel] -- * ProgramNumber [__integerMin0Max65535] The value of the program number field in the Program Map Table. -- * AudioPids [__listOf__integerMin32Max8182] Packet Identifier (PID) of the elementary audio stream(s) in the transport stream. Multiple values are accepted, and can be entered in ranges and/or by comma separation. -- * Bitrate [__integerMin0Max2147483647] The output bitrate of the transport stream in bits per second. Setting to 0 lets the muxer automatically determine the appropriate bitrate. Other common values are 3750000, 7500000, and 15000000. -- * MinEbpInterval [__integerMin0Max10000] When set, enforces that Encoder Boundary Points do not come within the specified time interval of each other by looking ahead at input video. If another EBP is going to come in within the specified time interval, the current EBP is not emitted, and the segment is "stretched" to the next marker. The lookahead value does not add latency to the system. The Live Event must be configured elsewhere to create sufficient latency to make the lookahead accurate. -- * FragmentTime [__doubleMin0] The length in seconds of each fragment. Only used with EBP markers. -- * SegmentationMarkers [M2tsSegmentationMarkers] -- * TimedMetadataPid [__integerMin32Max8182] Packet Identifier (PID) of the timed metadata stream in the transport stream. -- * PcrControl [M2tsPcrControl] -- * EbpAudioInterval [M2tsEbpAudioInterval] -- * DvbTeletextPid [__integerMin32Max8182] Packet Identifier (PID) for input source DVB Teletext data to this output. -- * PrivateMetadataPid [__integerMin32Max8182] Packet Identifier (PID) of the private metadata stream in the transport stream. -- * PcrPid [__integerMin32Max8182] Packet Identifier (PID) of the Program Clock Reference (PCR) in the transport stream. When no value is given, the encoder will assign the same value as the Video PID. -- * NullPacketBitrate [__doubleMin0] Value in bits per second of extra null packets to insert into the transport stream. This can be used if a downstream encryption system requires periodic null packets. -- * SegmentationStyle [M2tsSegmentationStyle] -- * BufferModel [M2tsBufferModel] -- * MaxPcrInterval [__integerMin0Max500] Maximum time in milliseconds between Program Clock References (PCRs) inserted into the transport stream. -- * DvbTdtSettings [DvbTdtSettings] -- * AudioFramesPerPes [__integerMin0Max2147483647] The number of audio frames to insert for each PES packet. -- * VideoPid [__integerMin32Max8182] Packet Identifier (PID) of the elementary video stream in the transport stream. -- * PmtPid [__integerMin32Max8182] Packet Identifier (PID) for the Program Map Table (PMT) in the transport stream. -- * DvbSubPids [__listOf__integerMin32Max8182] Packet Identifier (PID) for input source DVB Subtitle data to this output. Multiple values are accepted, and can be entered in ranges and/or by comma separation. -- * RateMode [M2tsRateMode] -- * Scte35Source [M2tsScte35Source] -- * EsRateInPes [M2tsEsRateInPes] -- * DvbSdtSettings [DvbSdtSettings] -- * PmtInterval [__integerMin0Max1000] The number of milliseconds between instances of this table in the output transport stream. -- @return M2tsSettings structure as a key-value pair table function M.M2tsSettings(args) assert(args, "You must provide an argument table when creating M2tsSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["NielsenId3"] = args["NielsenId3"], ["Scte35Pid"] = args["Scte35Pid"], ["EbpPlacement"] = args["EbpPlacement"], ["TransportStreamId"] = args["TransportStreamId"], ["DvbNitSettings"] = args["DvbNitSettings"], ["PatInterval"] = args["PatInterval"], ["SegmentationTime"] = args["SegmentationTime"], ["AudioBufferModel"] = args["AudioBufferModel"], ["ProgramNumber"] = args["ProgramNumber"], ["AudioPids"] = args["AudioPids"], ["Bitrate"] = args["Bitrate"], ["MinEbpInterval"] = args["MinEbpInterval"], ["FragmentTime"] = args["FragmentTime"], ["SegmentationMarkers"] = args["SegmentationMarkers"], ["TimedMetadataPid"] = args["TimedMetadataPid"], ["PcrControl"] = args["PcrControl"], ["EbpAudioInterval"] = args["EbpAudioInterval"], ["DvbTeletextPid"] = args["DvbTeletextPid"], ["PrivateMetadataPid"] = args["PrivateMetadataPid"], ["PcrPid"] = args["PcrPid"], ["NullPacketBitrate"] = args["NullPacketBitrate"], ["SegmentationStyle"] = args["SegmentationStyle"], ["BufferModel"] = args["BufferModel"], ["MaxPcrInterval"] = args["MaxPcrInterval"], ["DvbTdtSettings"] = args["DvbTdtSettings"], ["AudioFramesPerPes"] = args["AudioFramesPerPes"], ["VideoPid"] = args["VideoPid"], ["PmtPid"] = args["PmtPid"], ["DvbSubPids"] = args["DvbSubPids"], ["RateMode"] = args["RateMode"], ["Scte35Source"] = args["Scte35Source"], ["EsRateInPes"] = args["EsRateInPes"], ["DvbSdtSettings"] = args["DvbSdtSettings"], ["PmtInterval"] = args["PmtInterval"], } asserts.AssertM2tsSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.InputClipping = { ["EndTimecode"] = true, ["StartTimecode"] = true, nil } function asserts.AssertInputClipping(struct) assert(struct) assert(type(struct) == "table", "Expected InputClipping to be of type 'table'") if struct["EndTimecode"] then asserts.Assert__stringPattern010920405090509092(struct["EndTimecode"]) end if struct["StartTimecode"] then asserts.Assert__stringPattern010920405090509092(struct["StartTimecode"]) end for k,_ in pairs(struct) do assert(keys.InputClipping[k], "InputClipping contains unknown key " .. tostring(k)) end end --- Create a structure of type InputClipping -- To transcode only portions of your input (clips), include one Input clipping (one instance of InputClipping in the JSON job file) for each input clip. All input clips you specify will be included in every output of the job. -- @param args Table with arguments in key-value form. -- Valid keys: -- * EndTimecode [__stringPattern010920405090509092] Set End timecode (EndTimecode) to the end of the portion of the input you are clipping. The frame corresponding to the End timecode value is included in the clip. Start timecode or End timecode may be left blank, but not both. Use the format HH:MM:SS:FF or HH:MM:SS;FF, where HH is the hour, MM is the minute, SS is the second, and FF is the frame number. When choosing this value, take into account your setting for timecode source under input settings (InputTimecodeSource). For example, if you have embedded timecodes that start at 01:00:00:00 and you want your clip to end six minutes into the video, use 01:06:00:00. -- * StartTimecode [__stringPattern010920405090509092] Set Start timecode (StartTimecode) to the beginning of the portion of the input you are clipping. The frame corresponding to the Start timecode value is included in the clip. Start timecode or End timecode may be left blank, but not both. Use the format HH:MM:SS:FF or HH:MM:SS;FF, where HH is the hour, MM is the minute, SS is the second, and FF is the frame number. When choosing this value, take into account your setting for Input timecode source. For example, if you have embedded timecodes that start at 01:00:00:00 and you want your clip to begin five minutes into the video, use 01:05:00:00. -- @return InputClipping structure as a key-value pair table function M.InputClipping(args) assert(args, "You must provide an argument table when creating InputClipping") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["EndTimecode"] = args["EndTimecode"], ["StartTimecode"] = args["StartTimecode"], } asserts.AssertInputClipping(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.UntagResourceResponse = { nil } function asserts.AssertUntagResourceResponse(struct) assert(struct) assert(type(struct) == "table", "Expected UntagResourceResponse to be of type 'table'") for k,_ in pairs(struct) do assert(keys.UntagResourceResponse[k], "UntagResourceResponse contains unknown key " .. tostring(k)) end end --- Create a structure of type UntagResourceResponse -- -- @param args Table with arguments in key-value form. -- Valid keys: -- @return UntagResourceResponse structure as a key-value pair table function M.UntagResourceResponse(args) assert(args, "You must provide an argument table when creating UntagResourceResponse") local query_args = { } local uri_args = { } local header_args = { } local all_args = { } asserts.AssertUntagResourceResponse(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.AudioNormalizationSettings = { ["AlgorithmControl"] = true, ["Algorithm"] = true, ["TargetLkfs"] = true, ["CorrectionGateLevel"] = true, ["PeakCalculation"] = true, ["LoudnessLogging"] = true, nil } function asserts.AssertAudioNormalizationSettings(struct) assert(struct) assert(type(struct) == "table", "Expected AudioNormalizationSettings to be of type 'table'") if struct["AlgorithmControl"] then asserts.AssertAudioNormalizationAlgorithmControl(struct["AlgorithmControl"]) end if struct["Algorithm"] then asserts.AssertAudioNormalizationAlgorithm(struct["Algorithm"]) end if struct["TargetLkfs"] then asserts.Assert__doubleMinNegative59Max0(struct["TargetLkfs"]) end if struct["CorrectionGateLevel"] then asserts.Assert__integerMinNegative70Max0(struct["CorrectionGateLevel"]) end if struct["PeakCalculation"] then asserts.AssertAudioNormalizationPeakCalculation(struct["PeakCalculation"]) end if struct["LoudnessLogging"] then asserts.AssertAudioNormalizationLoudnessLogging(struct["LoudnessLogging"]) end for k,_ in pairs(struct) do assert(keys.AudioNormalizationSettings[k], "AudioNormalizationSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type AudioNormalizationSettings -- Advanced audio normalization settings. -- @param args Table with arguments in key-value form. -- Valid keys: -- * AlgorithmControl [AudioNormalizationAlgorithmControl] -- * Algorithm [AudioNormalizationAlgorithm] -- * TargetLkfs [__doubleMinNegative59Max0] Target LKFS(loudness) to adjust volume to. If no value is entered, a default value will be used according to the chosen algorithm. The CALM Act (1770-1) recommends a target of -24 LKFS. The EBU R-128 specification (1770-2) recommends a target of -23 LKFS. -- * CorrectionGateLevel [__integerMinNegative70Max0] Content measuring above this level will be corrected to the target level. Content measuring below this level will not be corrected. Gating only applies when not using real_time_correction. -- * PeakCalculation [AudioNormalizationPeakCalculation] -- * LoudnessLogging [AudioNormalizationLoudnessLogging] -- @return AudioNormalizationSettings structure as a key-value pair table function M.AudioNormalizationSettings(args) assert(args, "You must provide an argument table when creating AudioNormalizationSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["AlgorithmControl"] = args["AlgorithmControl"], ["Algorithm"] = args["Algorithm"], ["TargetLkfs"] = args["TargetLkfs"], ["CorrectionGateLevel"] = args["CorrectionGateLevel"], ["PeakCalculation"] = args["PeakCalculation"], ["LoudnessLogging"] = args["LoudnessLogging"], } asserts.AssertAudioNormalizationSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.VideoDescription = { ["CodecSettings"] = true, ["DropFrameTimecode"] = true, ["FixedAfd"] = true, ["RespondToAfd"] = true, ["Sharpness"] = true, ["AfdSignaling"] = true, ["Crop"] = true, ["AntiAlias"] = true, ["Width"] = true, ["ScalingBehavior"] = true, ["ColorMetadata"] = true, ["VideoPreprocessors"] = true, ["Position"] = true, ["Height"] = true, ["TimecodeInsertion"] = true, nil } function asserts.AssertVideoDescription(struct) assert(struct) assert(type(struct) == "table", "Expected VideoDescription to be of type 'table'") if struct["CodecSettings"] then asserts.AssertVideoCodecSettings(struct["CodecSettings"]) end if struct["DropFrameTimecode"] then asserts.AssertDropFrameTimecode(struct["DropFrameTimecode"]) end if struct["FixedAfd"] then asserts.Assert__integerMin0Max15(struct["FixedAfd"]) end if struct["RespondToAfd"] then asserts.AssertRespondToAfd(struct["RespondToAfd"]) end if struct["Sharpness"] then asserts.Assert__integerMin0Max100(struct["Sharpness"]) end if struct["AfdSignaling"] then asserts.AssertAfdSignaling(struct["AfdSignaling"]) end if struct["Crop"] then asserts.AssertRectangle(struct["Crop"]) end if struct["AntiAlias"] then asserts.AssertAntiAlias(struct["AntiAlias"]) end if struct["Width"] then asserts.Assert__integerMin32Max4096(struct["Width"]) end if struct["ScalingBehavior"] then asserts.AssertScalingBehavior(struct["ScalingBehavior"]) end if struct["ColorMetadata"] then asserts.AssertColorMetadata(struct["ColorMetadata"]) end if struct["VideoPreprocessors"] then asserts.AssertVideoPreprocessor(struct["VideoPreprocessors"]) end if struct["Position"] then asserts.AssertRectangle(struct["Position"]) end if struct["Height"] then asserts.Assert__integerMin32Max2160(struct["Height"]) end if struct["TimecodeInsertion"] then asserts.AssertVideoTimecodeInsertion(struct["TimecodeInsertion"]) end for k,_ in pairs(struct) do assert(keys.VideoDescription[k], "VideoDescription contains unknown key " .. tostring(k)) end end --- Create a structure of type VideoDescription -- Settings for video outputs -- @param args Table with arguments in key-value form. -- Valid keys: -- * CodecSettings [VideoCodecSettings] -- * DropFrameTimecode [DropFrameTimecode] -- * FixedAfd [__integerMin0Max15] Applies only if you set AFD Signaling(AfdSignaling) to Fixed (FIXED). Use Fixed (FixedAfd) to specify a four-bit AFD value which the service will write on all frames of this video output. -- * RespondToAfd [RespondToAfd] -- * Sharpness [__integerMin0Max100] Use Sharpness (Sharpness)setting to specify the strength of anti-aliasing. This setting changes the width of the anti-alias filter kernel used for scaling. Sharpness only applies if your output resolution is different from your input resolution, and if you set Anti-alias (AntiAlias) to ENABLED. 0 is the softest setting, 100 the sharpest, and 50 recommended for most content. -- * AfdSignaling [AfdSignaling] -- * Crop [Rectangle] Applies only if your input aspect ratio is different from your output aspect ratio. Use Input cropping rectangle (Crop) to specify the video area the service will include in the output. This will crop the input source, causing video pixels to be removed on encode. Do not use this setting if you have enabled Stretch to output (stretchToOutput) in your output settings. -- * AntiAlias [AntiAlias] -- * Width [__integerMin32Max4096] Use Width (Width) to define the video resolution width, in pixels, for this output. If you don't provide a value here, the service will use the input width. -- * ScalingBehavior [ScalingBehavior] -- * ColorMetadata [ColorMetadata] -- * VideoPreprocessors [VideoPreprocessor] Find additional transcoding features under Preprocessors (VideoPreprocessors). Enable the features at each output individually. These features are disabled by default. -- * Position [Rectangle] Use Position (Position) to point to a rectangle object to define your position. This setting overrides any other aspect ratio. -- * Height [__integerMin32Max2160] Use the Height (Height) setting to define the video resolution height for this output. Specify in pixels. If you don't provide a value here, the service will use the input height. -- * TimecodeInsertion [VideoTimecodeInsertion] -- @return VideoDescription structure as a key-value pair table function M.VideoDescription(args) assert(args, "You must provide an argument table when creating VideoDescription") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["CodecSettings"] = args["CodecSettings"], ["DropFrameTimecode"] = args["DropFrameTimecode"], ["FixedAfd"] = args["FixedAfd"], ["RespondToAfd"] = args["RespondToAfd"], ["Sharpness"] = args["Sharpness"], ["AfdSignaling"] = args["AfdSignaling"], ["Crop"] = args["Crop"], ["AntiAlias"] = args["AntiAlias"], ["Width"] = args["Width"], ["ScalingBehavior"] = args["ScalingBehavior"], ["ColorMetadata"] = args["ColorMetadata"], ["VideoPreprocessors"] = args["VideoPreprocessors"], ["Position"] = args["Position"], ["Height"] = args["Height"], ["TimecodeInsertion"] = args["TimecodeInsertion"], } asserts.AssertVideoDescription(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.CmafGroupSettings = { ["CodecSpecification"] = true, ["MinFinalSegmentLength"] = true, ["ManifestDurationFormat"] = true, ["Encryption"] = true, ["Destination"] = true, ["BaseUrl"] = true, ["SegmentLength"] = true, ["WriteHlsManifest"] = true, ["SegmentControl"] = true, ["MinBufferTime"] = true, ["WriteDashManifest"] = true, ["ManifestCompression"] = true, ["StreamInfResolution"] = true, ["ClientCache"] = true, ["FragmentLength"] = true, nil } function asserts.AssertCmafGroupSettings(struct) assert(struct) assert(type(struct) == "table", "Expected CmafGroupSettings to be of type 'table'") if struct["CodecSpecification"] then asserts.AssertCmafCodecSpecification(struct["CodecSpecification"]) end if struct["MinFinalSegmentLength"] then asserts.Assert__doubleMin0Max2147483647(struct["MinFinalSegmentLength"]) end if struct["ManifestDurationFormat"] then asserts.AssertCmafManifestDurationFormat(struct["ManifestDurationFormat"]) end if struct["Encryption"] then asserts.AssertCmafEncryptionSettings(struct["Encryption"]) end if struct["Destination"] then asserts.Assert__stringPatternS3(struct["Destination"]) end if struct["BaseUrl"] then asserts.Assert__string(struct["BaseUrl"]) end if struct["SegmentLength"] then asserts.Assert__integerMin1Max2147483647(struct["SegmentLength"]) end if struct["WriteHlsManifest"] then asserts.AssertCmafWriteHLSManifest(struct["WriteHlsManifest"]) end if struct["SegmentControl"] then asserts.AssertCmafSegmentControl(struct["SegmentControl"]) end if struct["MinBufferTime"] then asserts.Assert__integerMin0Max2147483647(struct["MinBufferTime"]) end if struct["WriteDashManifest"] then asserts.AssertCmafWriteDASHManifest(struct["WriteDashManifest"]) end if struct["ManifestCompression"] then asserts.AssertCmafManifestCompression(struct["ManifestCompression"]) end if struct["StreamInfResolution"] then asserts.AssertCmafStreamInfResolution(struct["StreamInfResolution"]) end if struct["ClientCache"] then asserts.AssertCmafClientCache(struct["ClientCache"]) end if struct["FragmentLength"] then asserts.Assert__integerMin1Max2147483647(struct["FragmentLength"]) end for k,_ in pairs(struct) do assert(keys.CmafGroupSettings[k], "CmafGroupSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type CmafGroupSettings -- Required when you set (Type) under (OutputGroups)>(OutputGroupSettings) to CMAF_GROUP_SETTINGS. Each output in a CMAF Output Group may only contain a single video, audio, or caption output. -- @param args Table with arguments in key-value form. -- Valid keys: -- * CodecSpecification [CmafCodecSpecification] -- * MinFinalSegmentLength [__doubleMin0Max2147483647] Keep this setting at the default value of 0, unless you are troubleshooting a problem with how devices play back the end of your video asset. If you know that player devices are hanging on the final segment of your video because the length of your final segment is too short, use this setting to specify a minimum final segment length, in seconds. Choose a value that is greater than or equal to 1 and less than your segment length. When you specify a value for this setting, the encoder will combine any final segment that is shorter than the length that you specify with the previous segment. For example, your segment length is 3 seconds and your final segment is .5 seconds without a minimum final segment length; when you set the minimum final segment length to 1, your final segment is 3.5 seconds. -- * ManifestDurationFormat [CmafManifestDurationFormat] -- * Encryption [CmafEncryptionSettings] DRM settings. -- * Destination [__stringPatternS3] Use Destination (Destination) to specify the S3 output location and the output filename base. Destination accepts format identifiers. If you do not specify the base filename in the URI, the service will use the filename of the input file. If your job has multiple inputs, the service uses the filename of the first input file. -- * BaseUrl [__string] A partial URI prefix that will be put in the manifest file at the top level BaseURL element. Can be used if streams are delivered from a different URL than the manifest file. -- * SegmentLength [__integerMin1Max2147483647] Use this setting to specify the length, in seconds, of each individual CMAF segment. This value applies to the whole package; that is, to every output in the output group. Note that segments end on the first keyframe after this number of seconds, so the actual segment length might be slightly longer. If you set Segment control (CmafSegmentControl) to single file, the service puts the content of each output in a single file that has metadata that marks these segments. If you set it to segmented files, the service creates multiple files for each output, each with the content of one segment. -- * WriteHlsManifest [CmafWriteHLSManifest] -- * SegmentControl [CmafSegmentControl] -- * MinBufferTime [__integerMin0Max2147483647] Minimum time of initially buffered media that is needed to ensure smooth playout. -- * WriteDashManifest [CmafWriteDASHManifest] -- * ManifestCompression [CmafManifestCompression] -- * StreamInfResolution [CmafStreamInfResolution] -- * ClientCache [CmafClientCache] -- * FragmentLength [__integerMin1Max2147483647] Length of fragments to generate (in seconds). Fragment length must be compatible with GOP size and Framerate. Note that fragments will end on the next keyframe after this number of seconds, so actual fragment length may be longer. When Emit Single File is checked, the fragmentation is internal to a single output file and it does not cause the creation of many output files as in other output types. -- @return CmafGroupSettings structure as a key-value pair table function M.CmafGroupSettings(args) assert(args, "You must provide an argument table when creating CmafGroupSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["CodecSpecification"] = args["CodecSpecification"], ["MinFinalSegmentLength"] = args["MinFinalSegmentLength"], ["ManifestDurationFormat"] = args["ManifestDurationFormat"], ["Encryption"] = args["Encryption"], ["Destination"] = args["Destination"], ["BaseUrl"] = args["BaseUrl"], ["SegmentLength"] = args["SegmentLength"], ["WriteHlsManifest"] = args["WriteHlsManifest"], ["SegmentControl"] = args["SegmentControl"], ["MinBufferTime"] = args["MinBufferTime"], ["WriteDashManifest"] = args["WriteDashManifest"], ["ManifestCompression"] = args["ManifestCompression"], ["StreamInfResolution"] = args["StreamInfResolution"], ["ClientCache"] = args["ClientCache"], ["FragmentLength"] = args["FragmentLength"], } asserts.AssertCmafGroupSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.BurninDestinationSettings = { ["YPosition"] = true, ["TeletextSpacing"] = true, ["ShadowOpacity"] = true, ["OutlineSize"] = true, ["ShadowXOffset"] = true, ["ShadowYOffset"] = true, ["XPosition"] = true, ["FontOpacity"] = true, ["ShadowColor"] = true, ["FontResolution"] = true, ["FontSize"] = true, ["BackgroundColor"] = true, ["FontColor"] = true, ["BackgroundOpacity"] = true, ["Alignment"] = true, ["OutlineColor"] = true, nil } function asserts.AssertBurninDestinationSettings(struct) assert(struct) assert(type(struct) == "table", "Expected BurninDestinationSettings to be of type 'table'") if struct["YPosition"] then asserts.Assert__integerMin0Max2147483647(struct["YPosition"]) end if struct["TeletextSpacing"] then asserts.AssertBurninSubtitleTeletextSpacing(struct["TeletextSpacing"]) end if struct["ShadowOpacity"] then asserts.Assert__integerMin0Max255(struct["ShadowOpacity"]) end if struct["OutlineSize"] then asserts.Assert__integerMin0Max10(struct["OutlineSize"]) end if struct["ShadowXOffset"] then asserts.Assert__integerMinNegative2147483648Max2147483647(struct["ShadowXOffset"]) end if struct["ShadowYOffset"] then asserts.Assert__integerMinNegative2147483648Max2147483647(struct["ShadowYOffset"]) end if struct["XPosition"] then asserts.Assert__integerMin0Max2147483647(struct["XPosition"]) end if struct["FontOpacity"] then asserts.Assert__integerMin0Max255(struct["FontOpacity"]) end if struct["ShadowColor"] then asserts.AssertBurninSubtitleShadowColor(struct["ShadowColor"]) end if struct["FontResolution"] then asserts.Assert__integerMin96Max600(struct["FontResolution"]) end if struct["FontSize"] then asserts.Assert__integerMin0Max96(struct["FontSize"]) end if struct["BackgroundColor"] then asserts.AssertBurninSubtitleBackgroundColor(struct["BackgroundColor"]) end if struct["FontColor"] then asserts.AssertBurninSubtitleFontColor(struct["FontColor"]) end if struct["BackgroundOpacity"] then asserts.Assert__integerMin0Max255(struct["BackgroundOpacity"]) end if struct["Alignment"] then asserts.AssertBurninSubtitleAlignment(struct["Alignment"]) end if struct["OutlineColor"] then asserts.AssertBurninSubtitleOutlineColor(struct["OutlineColor"]) end for k,_ in pairs(struct) do assert(keys.BurninDestinationSettings[k], "BurninDestinationSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type BurninDestinationSettings -- Burn-In Destination Settings. -- @param args Table with arguments in key-value form. -- Valid keys: -- * YPosition [__integerMin0Max2147483647] Specifies the vertical position of the caption relative to the top of the output in pixels. A value of 10 would result in the captions starting 10 pixels from the top of the output. If no explicit y_position is provided, the caption will be positioned towards the bottom of the output. This option is not valid for source captions that are STL, 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match. -- * TeletextSpacing [BurninSubtitleTeletextSpacing] -- * ShadowOpacity [__integerMin0Max255] Specifies the opacity of the shadow. 255 is opaque; 0 is transparent. Leaving this parameter blank is equivalent to setting it to 0 (transparent). All burn-in and DVB-Sub font settings must match. -- * OutlineSize [__integerMin0Max10] Specifies font outline size in pixels. This option is not valid for source captions that are either 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match. -- * ShadowXOffset [__integerMinNegative2147483648Max2147483647] Specifies the horizontal offset of the shadow relative to the captions in pixels. A value of -2 would result in a shadow offset 2 pixels to the left. All burn-in and DVB-Sub font settings must match. -- * ShadowYOffset [__integerMinNegative2147483648Max2147483647] Specifies the vertical offset of the shadow relative to the captions in pixels. A value of -2 would result in a shadow offset 2 pixels above the text. All burn-in and DVB-Sub font settings must match. -- * XPosition [__integerMin0Max2147483647] Specifies the horizontal position of the caption relative to the left side of the output in pixels. A value of 10 would result in the captions starting 10 pixels from the left of the output. If no explicit x_position is provided, the horizontal caption position will be determined by the alignment parameter. This option is not valid for source captions that are STL, 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match. -- * FontOpacity [__integerMin0Max255] Specifies the opacity of the burned-in captions. 255 is opaque; 0 is transparent. --All burn-in and DVB-Sub font settings must match. -- * ShadowColor [BurninSubtitleShadowColor] -- * FontResolution [__integerMin96Max600] Font resolution in DPI (dots per inch); default is 96 dpi. --All burn-in and DVB-Sub font settings must match. -- * FontSize [__integerMin0Max96] A positive integer indicates the exact font size in points. Set to 0 for automatic font size selection. All burn-in and DVB-Sub font settings must match. -- * BackgroundColor [BurninSubtitleBackgroundColor] -- * FontColor [BurninSubtitleFontColor] -- * BackgroundOpacity [__integerMin0Max255] Specifies the opacity of the background rectangle. 255 is opaque; 0 is transparent. Leaving this parameter blank is equivalent to setting it to 0 (transparent). All burn-in and DVB-Sub font settings must match. -- * Alignment [BurninSubtitleAlignment] -- * OutlineColor [BurninSubtitleOutlineColor] -- @return BurninDestinationSettings structure as a key-value pair table function M.BurninDestinationSettings(args) assert(args, "You must provide an argument table when creating BurninDestinationSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["YPosition"] = args["YPosition"], ["TeletextSpacing"] = args["TeletextSpacing"], ["ShadowOpacity"] = args["ShadowOpacity"], ["OutlineSize"] = args["OutlineSize"], ["ShadowXOffset"] = args["ShadowXOffset"], ["ShadowYOffset"] = args["ShadowYOffset"], ["XPosition"] = args["XPosition"], ["FontOpacity"] = args["FontOpacity"], ["ShadowColor"] = args["ShadowColor"], ["FontResolution"] = args["FontResolution"], ["FontSize"] = args["FontSize"], ["BackgroundColor"] = args["BackgroundColor"], ["FontColor"] = args["FontColor"], ["BackgroundOpacity"] = args["BackgroundOpacity"], ["Alignment"] = args["Alignment"], ["OutlineColor"] = args["OutlineColor"], } asserts.AssertBurninDestinationSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.JobTemplateSettings = { ["NielsenConfiguration"] = true, ["Inputs"] = true, ["TimecodeConfig"] = true, ["AvailBlanking"] = true, ["OutputGroups"] = true, ["AdAvailOffset"] = true, ["TimedMetadataInsertion"] = true, nil } function asserts.AssertJobTemplateSettings(struct) assert(struct) assert(type(struct) == "table", "Expected JobTemplateSettings to be of type 'table'") if struct["NielsenConfiguration"] then asserts.AssertNielsenConfiguration(struct["NielsenConfiguration"]) end if struct["Inputs"] then asserts.Assert__listOfInputTemplate(struct["Inputs"]) end if struct["TimecodeConfig"] then asserts.AssertTimecodeConfig(struct["TimecodeConfig"]) end if struct["AvailBlanking"] then asserts.AssertAvailBlanking(struct["AvailBlanking"]) end if struct["OutputGroups"] then asserts.Assert__listOfOutputGroup(struct["OutputGroups"]) end if struct["AdAvailOffset"] then asserts.Assert__integerMinNegative1000Max1000(struct["AdAvailOffset"]) end if struct["TimedMetadataInsertion"] then asserts.AssertTimedMetadataInsertion(struct["TimedMetadataInsertion"]) end for k,_ in pairs(struct) do assert(keys.JobTemplateSettings[k], "JobTemplateSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type JobTemplateSettings -- JobTemplateSettings contains all the transcode settings saved in the template that will be applied to jobs created from it. -- @param args Table with arguments in key-value form. -- Valid keys: -- * NielsenConfiguration [NielsenConfiguration] -- * Inputs [__listOfInputTemplate] Use Inputs (inputs) to define the source file used in the transcode job. There can only be one input in a job template. Using the API, you can include multiple inputs when referencing a job template. -- * TimecodeConfig [TimecodeConfig] Contains settings used to acquire and adjust timecode information from inputs. -- * AvailBlanking [AvailBlanking] Settings for ad avail blanking. Video can be blanked or overlaid with an image, and audio muted during SCTE-35 triggered ad avails. -- * OutputGroups [__listOfOutputGroup] (OutputGroups) contains one group of settings for each set of outputs that share a common package type. All unpackaged files (MPEG-4, MPEG-2 TS, Quicktime, MXF, and no container) are grouped in a single output group as well. Required in (OutputGroups) is a group of settings that apply to the whole group. This required object depends on the value you set for (Type) under (OutputGroups)>(OutputGroupSettings). Type, settings object pairs are as follows. * FILE_GROUP_SETTINGS, FileGroupSettings * HLS_GROUP_SETTINGS, HlsGroupSettings * DASH_ISO_GROUP_SETTINGS, DashIsoGroupSettings * MS_SMOOTH_GROUP_SETTINGS, MsSmoothGroupSettings * CMAF_GROUP_SETTINGS, CmafGroupSettings -- * AdAvailOffset [__integerMinNegative1000Max1000] When specified, this offset (in milliseconds) is added to the input Ad Avail PTS time. -- * TimedMetadataInsertion [TimedMetadataInsertion] -- @return JobTemplateSettings structure as a key-value pair table function M.JobTemplateSettings(args) assert(args, "You must provide an argument table when creating JobTemplateSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["NielsenConfiguration"] = args["NielsenConfiguration"], ["Inputs"] = args["Inputs"], ["TimecodeConfig"] = args["TimecodeConfig"], ["AvailBlanking"] = args["AvailBlanking"], ["OutputGroups"] = args["OutputGroups"], ["AdAvailOffset"] = args["AdAvailOffset"], ["TimedMetadataInsertion"] = args["TimedMetadataInsertion"], } asserts.AssertJobTemplateSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.FileGroupSettings = { ["Destination"] = true, nil } function asserts.AssertFileGroupSettings(struct) assert(struct) assert(type(struct) == "table", "Expected FileGroupSettings to be of type 'table'") if struct["Destination"] then asserts.Assert__stringPatternS3(struct["Destination"]) end for k,_ in pairs(struct) do assert(keys.FileGroupSettings[k], "FileGroupSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type FileGroupSettings -- Required when you set (Type) under (OutputGroups)>(OutputGroupSettings) to FILE_GROUP_SETTINGS. -- @param args Table with arguments in key-value form. -- Valid keys: -- * Destination [__stringPatternS3] Use Destination (Destination) to specify the S3 output location and the output filename base. Destination accepts format identifiers. If you do not specify the base filename in the URI, the service will use the filename of the input file. If your job has multiple inputs, the service uses the filename of the first input file. -- @return FileGroupSettings structure as a key-value pair table function M.FileGroupSettings(args) assert(args, "You must provide an argument table when creating FileGroupSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Destination"] = args["Destination"], } asserts.AssertFileGroupSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.CreateQueueResponse = { ["Queue"] = true, nil } function asserts.AssertCreateQueueResponse(struct) assert(struct) assert(type(struct) == "table", "Expected CreateQueueResponse to be of type 'table'") if struct["Queue"] then asserts.AssertQueue(struct["Queue"]) end for k,_ in pairs(struct) do assert(keys.CreateQueueResponse[k], "CreateQueueResponse contains unknown key " .. tostring(k)) end end --- Create a structure of type CreateQueueResponse -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Queue [Queue] -- @return CreateQueueResponse structure as a key-value pair table function M.CreateQueueResponse(args) assert(args, "You must provide an argument table when creating CreateQueueResponse") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Queue"] = args["Queue"], } asserts.AssertCreateQueueResponse(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.MsSmoothEncryptionSettings = { ["SpekeKeyProvider"] = true, nil } function asserts.AssertMsSmoothEncryptionSettings(struct) assert(struct) assert(type(struct) == "table", "Expected MsSmoothEncryptionSettings to be of type 'table'") if struct["SpekeKeyProvider"] then asserts.AssertSpekeKeyProvider(struct["SpekeKeyProvider"]) end for k,_ in pairs(struct) do assert(keys.MsSmoothEncryptionSettings[k], "MsSmoothEncryptionSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type MsSmoothEncryptionSettings -- If you are using DRM, set DRM System (MsSmoothEncryptionSettings) to specify the value SpekeKeyProvider. -- @param args Table with arguments in key-value form. -- Valid keys: -- * SpekeKeyProvider [SpekeKeyProvider] -- @return MsSmoothEncryptionSettings structure as a key-value pair table function M.MsSmoothEncryptionSettings(args) assert(args, "You must provide an argument table when creating MsSmoothEncryptionSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["SpekeKeyProvider"] = args["SpekeKeyProvider"], } asserts.AssertMsSmoothEncryptionSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.CreateJobRequest = { ["Queue"] = true, ["Settings"] = true, ["JobTemplate"] = true, ["Role"] = true, ["ClientRequestToken"] = true, ["UserMetadata"] = true, ["BillingTagsSource"] = true, nil } function asserts.AssertCreateJobRequest(struct) assert(struct) assert(type(struct) == "table", "Expected CreateJobRequest to be of type 'table'") assert(struct["Role"], "Expected key Role to exist in table") assert(struct["Settings"], "Expected key Settings to exist in table") if struct["Queue"] then asserts.Assert__string(struct["Queue"]) end if struct["Settings"] then asserts.AssertJobSettings(struct["Settings"]) end if struct["JobTemplate"] then asserts.Assert__string(struct["JobTemplate"]) end if struct["Role"] then asserts.Assert__string(struct["Role"]) end if struct["ClientRequestToken"] then asserts.Assert__string(struct["ClientRequestToken"]) end if struct["UserMetadata"] then asserts.Assert__mapOf__string(struct["UserMetadata"]) end if struct["BillingTagsSource"] then asserts.AssertBillingTagsSource(struct["BillingTagsSource"]) end for k,_ in pairs(struct) do assert(keys.CreateJobRequest[k], "CreateJobRequest contains unknown key " .. tostring(k)) end end --- Create a structure of type CreateJobRequest -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Queue [__string] Optional. When you create a job, you can specify a queue to send it to. If you don't specify, the job will go to the default queue. For more about queues, see the User Guide topic at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html. -- * Settings [JobSettings] -- * JobTemplate [__string] When you create a job, you can either specify a job template or specify the transcoding settings individually -- * Role [__string] Required. The IAM role you use for creating this job. For details about permissions, see the User Guide topic at the User Guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/iam-role.html. -- * ClientRequestToken [__string] Idempotency token for CreateJob operation. -- * UserMetadata [__mapOf__string] User-defined metadata that you want to associate with an MediaConvert job. You specify metadata in key/value pairs. -- * BillingTagsSource [BillingTagsSource] -- Required key: Role -- Required key: Settings -- @return CreateJobRequest structure as a key-value pair table function M.CreateJobRequest(args) assert(args, "You must provide an argument table when creating CreateJobRequest") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Queue"] = args["Queue"], ["Settings"] = args["Settings"], ["JobTemplate"] = args["JobTemplate"], ["Role"] = args["Role"], ["ClientRequestToken"] = args["ClientRequestToken"], ["UserMetadata"] = args["UserMetadata"], ["BillingTagsSource"] = args["BillingTagsSource"], } asserts.AssertCreateJobRequest(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.CreateQueueRequest = { ["Tags"] = true, ["ReservationPlanSettings"] = true, ["PricingPlan"] = true, ["Description"] = true, ["Name"] = true, nil } function asserts.AssertCreateQueueRequest(struct) assert(struct) assert(type(struct) == "table", "Expected CreateQueueRequest to be of type 'table'") assert(struct["Name"], "Expected key Name to exist in table") if struct["Tags"] then asserts.Assert__mapOf__string(struct["Tags"]) end if struct["ReservationPlanSettings"] then asserts.AssertReservationPlanSettings(struct["ReservationPlanSettings"]) end if struct["PricingPlan"] then asserts.AssertPricingPlan(struct["PricingPlan"]) end if struct["Description"] then asserts.Assert__string(struct["Description"]) end if struct["Name"] then asserts.Assert__string(struct["Name"]) end for k,_ in pairs(struct) do assert(keys.CreateQueueRequest[k], "CreateQueueRequest contains unknown key " .. tostring(k)) end end --- Create a structure of type CreateQueueRequest -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * Tags [__mapOf__string] The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key. -- * ReservationPlanSettings [ReservationPlanSettings] Details about the pricing plan for your reserved queue. Required for reserved queues and not applicable to on-demand queues. -- * PricingPlan [PricingPlan] Optional; default is on-demand. Specifies whether the pricing plan for the queue is on-demand or reserved. The pricing plan for the queue determines whether you pay on-demand or reserved pricing for the transcoding jobs you run through the queue. For reserved queue pricing, you must set up a contract. You can create a reserved queue contract through the AWS Elemental MediaConvert console. -- * Description [__string] Optional. A description of the queue that you are creating. -- * Name [__string] The name of the queue that you are creating. -- Required key: Name -- @return CreateQueueRequest structure as a key-value pair table function M.CreateQueueRequest(args) assert(args, "You must provide an argument table when creating CreateQueueRequest") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Tags"] = args["Tags"], ["ReservationPlanSettings"] = args["ReservationPlanSettings"], ["PricingPlan"] = args["PricingPlan"], ["Description"] = args["Description"], ["Name"] = args["Name"], } asserts.AssertCreateQueueRequest(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.ListTagsForResourceResponse = { ["ResourceTags"] = true, nil } function asserts.AssertListTagsForResourceResponse(struct) assert(struct) assert(type(struct) == "table", "Expected ListTagsForResourceResponse to be of type 'table'") if struct["ResourceTags"] then asserts.AssertResourceTags(struct["ResourceTags"]) end for k,_ in pairs(struct) do assert(keys.ListTagsForResourceResponse[k], "ListTagsForResourceResponse contains unknown key " .. tostring(k)) end end --- Create a structure of type ListTagsForResourceResponse -- -- @param args Table with arguments in key-value form. -- Valid keys: -- * ResourceTags [ResourceTags] -- @return ListTagsForResourceResponse structure as a key-value pair table function M.ListTagsForResourceResponse(args) assert(args, "You must provide an argument table when creating ListTagsForResourceResponse") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["ResourceTags"] = args["ResourceTags"], } asserts.AssertListTagsForResourceResponse(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.M3u8Settings = { ["VideoPid"] = true, ["TimedMetadataPid"] = true, ["NielsenId3"] = true, ["PatInterval"] = true, ["PcrControl"] = true, ["Scte35Pid"] = true, ["PrivateMetadataPid"] = true, ["PcrPid"] = true, ["Scte35Source"] = true, ["TransportStreamId"] = true, ["ProgramNumber"] = true, ["TimedMetadata"] = true, ["PmtPid"] = true, ["PmtInterval"] = true, ["AudioPids"] = true, ["AudioFramesPerPes"] = true, nil } function asserts.AssertM3u8Settings(struct) assert(struct) assert(type(struct) == "table", "Expected M3u8Settings to be of type 'table'") if struct["VideoPid"] then asserts.Assert__integerMin32Max8182(struct["VideoPid"]) end if struct["TimedMetadataPid"] then asserts.Assert__integerMin32Max8182(struct["TimedMetadataPid"]) end if struct["NielsenId3"] then asserts.AssertM3u8NielsenId3(struct["NielsenId3"]) end if struct["PatInterval"] then asserts.Assert__integerMin0Max1000(struct["PatInterval"]) end if struct["PcrControl"] then asserts.AssertM3u8PcrControl(struct["PcrControl"]) end if struct["Scte35Pid"] then asserts.Assert__integerMin32Max8182(struct["Scte35Pid"]) end if struct["PrivateMetadataPid"] then asserts.Assert__integerMin32Max8182(struct["PrivateMetadataPid"]) end if struct["PcrPid"] then asserts.Assert__integerMin32Max8182(struct["PcrPid"]) end if struct["Scte35Source"] then asserts.AssertM3u8Scte35Source(struct["Scte35Source"]) end if struct["TransportStreamId"] then asserts.Assert__integerMin0Max65535(struct["TransportStreamId"]) end if struct["ProgramNumber"] then asserts.Assert__integerMin0Max65535(struct["ProgramNumber"]) end if struct["TimedMetadata"] then asserts.AssertTimedMetadata(struct["TimedMetadata"]) end if struct["PmtPid"] then asserts.Assert__integerMin32Max8182(struct["PmtPid"]) end if struct["PmtInterval"] then asserts.Assert__integerMin0Max1000(struct["PmtInterval"]) end if struct["AudioPids"] then asserts.Assert__listOf__integerMin32Max8182(struct["AudioPids"]) end if struct["AudioFramesPerPes"] then asserts.Assert__integerMin0Max2147483647(struct["AudioFramesPerPes"]) end for k,_ in pairs(struct) do assert(keys.M3u8Settings[k], "M3u8Settings contains unknown key " .. tostring(k)) end end --- Create a structure of type M3u8Settings -- Settings for TS segments in HLS -- @param args Table with arguments in key-value form. -- Valid keys: -- * VideoPid [__integerMin32Max8182] Packet Identifier (PID) of the elementary video stream in the transport stream. -- * TimedMetadataPid [__integerMin32Max8182] Packet Identifier (PID) of the timed metadata stream in the transport stream. -- * NielsenId3 [M3u8NielsenId3] -- * PatInterval [__integerMin0Max1000] The number of milliseconds between instances of this table in the output transport stream. -- * PcrControl [M3u8PcrControl] -- * Scte35Pid [__integerMin32Max8182] Packet Identifier (PID) of the SCTE-35 stream in the transport stream. -- * PrivateMetadataPid [__integerMin32Max8182] Packet Identifier (PID) of the private metadata stream in the transport stream. -- * PcrPid [__integerMin32Max8182] Packet Identifier (PID) of the Program Clock Reference (PCR) in the transport stream. When no value is given, the encoder will assign the same value as the Video PID. -- * Scte35Source [M3u8Scte35Source] -- * TransportStreamId [__integerMin0Max65535] The value of the transport stream ID field in the Program Map Table. -- * ProgramNumber [__integerMin0Max65535] The value of the program number field in the Program Map Table. -- * TimedMetadata [TimedMetadata] -- * PmtPid [__integerMin32Max8182] Packet Identifier (PID) for the Program Map Table (PMT) in the transport stream. -- * PmtInterval [__integerMin0Max1000] The number of milliseconds between instances of this table in the output transport stream. -- * AudioPids [__listOf__integerMin32Max8182] Packet Identifier (PID) of the elementary audio stream(s) in the transport stream. Multiple values are accepted, and can be entered in ranges and/or by comma separation. -- * AudioFramesPerPes [__integerMin0Max2147483647] The number of audio frames to insert for each PES packet. -- @return M3u8Settings structure as a key-value pair table function M.M3u8Settings(args) assert(args, "You must provide an argument table when creating M3u8Settings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["VideoPid"] = args["VideoPid"], ["TimedMetadataPid"] = args["TimedMetadataPid"], ["NielsenId3"] = args["NielsenId3"], ["PatInterval"] = args["PatInterval"], ["PcrControl"] = args["PcrControl"], ["Scte35Pid"] = args["Scte35Pid"], ["PrivateMetadataPid"] = args["PrivateMetadataPid"], ["PcrPid"] = args["PcrPid"], ["Scte35Source"] = args["Scte35Source"], ["TransportStreamId"] = args["TransportStreamId"], ["ProgramNumber"] = args["ProgramNumber"], ["TimedMetadata"] = args["TimedMetadata"], ["PmtPid"] = args["PmtPid"], ["PmtInterval"] = args["PmtInterval"], ["AudioPids"] = args["AudioPids"], ["AudioFramesPerPes"] = args["AudioFramesPerPes"], } asserts.AssertM3u8Settings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.Timing = { ["FinishTime"] = true, ["SubmitTime"] = true, ["StartTime"] = true, nil } function asserts.AssertTiming(struct) assert(struct) assert(type(struct) == "table", "Expected Timing to be of type 'table'") if struct["FinishTime"] then asserts.Assert__timestampUnix(struct["FinishTime"]) end if struct["SubmitTime"] then asserts.Assert__timestampUnix(struct["SubmitTime"]) end if struct["StartTime"] then asserts.Assert__timestampUnix(struct["StartTime"]) end for k,_ in pairs(struct) do assert(keys.Timing[k], "Timing contains unknown key " .. tostring(k)) end end --- Create a structure of type Timing -- Information about when jobs are submitted, started, and finished is specified in Unix epoch format in seconds. -- @param args Table with arguments in key-value form. -- Valid keys: -- * FinishTime [__timestampUnix] The time, in Unix epoch format, that the transcoding job finished -- * SubmitTime [__timestampUnix] The time, in Unix epoch format, that you submitted the job. -- * StartTime [__timestampUnix] The time, in Unix epoch format, that transcoding for the job began. -- @return Timing structure as a key-value pair table function M.Timing(args) assert(args, "You must provide an argument table when creating Timing") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["FinishTime"] = args["FinishTime"], ["SubmitTime"] = args["SubmitTime"], ["StartTime"] = args["StartTime"], } asserts.AssertTiming(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.Endpoint = { ["Url"] = true, nil } function asserts.AssertEndpoint(struct) assert(struct) assert(type(struct) == "table", "Expected Endpoint to be of type 'table'") if struct["Url"] then asserts.Assert__string(struct["Url"]) end for k,_ in pairs(struct) do assert(keys.Endpoint[k], "Endpoint contains unknown key " .. tostring(k)) end end --- Create a structure of type Endpoint -- Describes an account-specific API endpoint. -- @param args Table with arguments in key-value form. -- Valid keys: -- * Url [__string] URL of endpoint -- @return Endpoint structure as a key-value pair table function M.Endpoint(args) assert(args, "You must provide an argument table when creating Endpoint") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Url"] = args["Url"], } asserts.AssertEndpoint(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.Output = { ["Extension"] = true, ["NameModifier"] = true, ["VideoDescription"] = true, ["OutputSettings"] = true, ["ContainerSettings"] = true, ["Preset"] = true, ["CaptionDescriptions"] = true, ["AudioDescriptions"] = true, nil } function asserts.AssertOutput(struct) assert(struct) assert(type(struct) == "table", "Expected Output to be of type 'table'") if struct["Extension"] then asserts.Assert__string(struct["Extension"]) end if struct["NameModifier"] then asserts.Assert__stringMin1(struct["NameModifier"]) end if struct["VideoDescription"] then asserts.AssertVideoDescription(struct["VideoDescription"]) end if struct["OutputSettings"] then asserts.AssertOutputSettings(struct["OutputSettings"]) end if struct["ContainerSettings"] then asserts.AssertContainerSettings(struct["ContainerSettings"]) end if struct["Preset"] then asserts.Assert__stringMin0(struct["Preset"]) end if struct["CaptionDescriptions"] then asserts.Assert__listOfCaptionDescription(struct["CaptionDescriptions"]) end if struct["AudioDescriptions"] then asserts.Assert__listOfAudioDescription(struct["AudioDescriptions"]) end for k,_ in pairs(struct) do assert(keys.Output[k], "Output contains unknown key " .. tostring(k)) end end --- Create a structure of type Output -- An output object describes the settings for a single output file or stream in an output group. -- @param args Table with arguments in key-value form. -- Valid keys: -- * Extension [__string] Use Extension (Extension) to specify the file extension for outputs in File output groups. If you do not specify a value, the service will use default extensions by container type as follows * MPEG-2 transport stream, m2ts * Quicktime, mov * MXF container, mxf * MPEG-4 container, mp4 * No Container, the service will use codec extensions (e.g. AAC, H265, H265, AC3) -- * NameModifier [__stringMin1] Use Name modifier (NameModifier) to have the service add a string to the end of each output filename. You specify the base filename as part of your destination URI. When you create multiple outputs in the same output group, Name modifier (NameModifier) is required. Name modifier also accepts format identifiers. For DASH ISO outputs, if you use the format identifiers $Number$ or $Time$ in one output, you must use them in the same way in all outputs of the output group. -- * VideoDescription [VideoDescription] (VideoDescription) contains a group of video encoding settings. The specific video settings depend on the video codec you choose when you specify a value for Video codec (codec). Include one instance of (VideoDescription) per output. -- * OutputSettings [OutputSettings] -- * ContainerSettings [ContainerSettings] -- * Preset [__stringMin0] Use Preset (Preset) to specifiy a preset for your transcoding settings. Provide the system or custom preset name. You can specify either Preset (Preset) or Container settings (ContainerSettings), but not both. -- * CaptionDescriptions [__listOfCaptionDescription] (CaptionDescriptions) contains groups of captions settings. For each output that has captions, include one instance of (CaptionDescriptions). (CaptionDescriptions) can contain multiple groups of captions settings. -- * AudioDescriptions [__listOfAudioDescription] (AudioDescriptions) contains groups of audio encoding settings organized by audio codec. Include one instance of (AudioDescriptions) per output. (AudioDescriptions) can contain multiple groups of encoding settings. -- @return Output structure as a key-value pair table function M.Output(args) assert(args, "You must provide an argument table when creating Output") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["Extension"] = args["Extension"], ["NameModifier"] = args["NameModifier"], ["VideoDescription"] = args["VideoDescription"], ["OutputSettings"] = args["OutputSettings"], ["ContainerSettings"] = args["ContainerSettings"], ["Preset"] = args["Preset"], ["CaptionDescriptions"] = args["CaptionDescriptions"], ["AudioDescriptions"] = args["AudioDescriptions"], } asserts.AssertOutput(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.Ac3Settings = { ["MetadataControl"] = true, ["BitstreamMode"] = true, ["Dialnorm"] = true, ["LfeFilter"] = true, ["DynamicRangeCompressionProfile"] = true, ["SampleRate"] = true, ["Bitrate"] = true, ["CodingMode"] = true, nil } function asserts.AssertAc3Settings(struct) assert(struct) assert(type(struct) == "table", "Expected Ac3Settings to be of type 'table'") if struct["MetadataControl"] then asserts.AssertAc3MetadataControl(struct["MetadataControl"]) end if struct["BitstreamMode"] then asserts.AssertAc3BitstreamMode(struct["BitstreamMode"]) end if struct["Dialnorm"] then asserts.Assert__integerMin1Max31(struct["Dialnorm"]) end if struct["LfeFilter"] then asserts.AssertAc3LfeFilter(struct["LfeFilter"]) end if struct["DynamicRangeCompressionProfile"] then asserts.AssertAc3DynamicRangeCompressionProfile(struct["DynamicRangeCompressionProfile"]) end if struct["SampleRate"] then asserts.Assert__integerMin48000Max48000(struct["SampleRate"]) end if struct["Bitrate"] then asserts.Assert__integerMin64000Max640000(struct["Bitrate"]) end if struct["CodingMode"] then asserts.AssertAc3CodingMode(struct["CodingMode"]) end for k,_ in pairs(struct) do assert(keys.Ac3Settings[k], "Ac3Settings contains unknown key " .. tostring(k)) end end --- Create a structure of type Ac3Settings -- Required when you set (Codec) under (AudioDescriptions)>(CodecSettings) to the value AC3. -- @param args Table with arguments in key-value form. -- Valid keys: -- * MetadataControl [Ac3MetadataControl] -- * BitstreamMode [Ac3BitstreamMode] -- * Dialnorm [__integerMin1Max31] Sets the dialnorm for the output. If blank and input audio is Dolby Digital, dialnorm will be passed through. -- * LfeFilter [Ac3LfeFilter] -- * DynamicRangeCompressionProfile [Ac3DynamicRangeCompressionProfile] -- * SampleRate [__integerMin48000Max48000] Sample rate in hz. Sample rate is always 48000. -- * Bitrate [__integerMin64000Max640000] Average bitrate in bits/second. Valid bitrates depend on the coding mode. -- * CodingMode [Ac3CodingMode] -- @return Ac3Settings structure as a key-value pair table function M.Ac3Settings(args) assert(args, "You must provide an argument table when creating Ac3Settings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["MetadataControl"] = args["MetadataControl"], ["BitstreamMode"] = args["BitstreamMode"], ["Dialnorm"] = args["Dialnorm"], ["LfeFilter"] = args["LfeFilter"], ["DynamicRangeCompressionProfile"] = args["DynamicRangeCompressionProfile"], ["SampleRate"] = args["SampleRate"], ["Bitrate"] = args["Bitrate"], ["CodingMode"] = args["CodingMode"], } asserts.AssertAc3Settings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end keys.DashIsoEncryptionSettings = { ["SpekeKeyProvider"] = true, nil } function asserts.AssertDashIsoEncryptionSettings(struct) assert(struct) assert(type(struct) == "table", "Expected DashIsoEncryptionSettings to be of type 'table'") if struct["SpekeKeyProvider"] then asserts.AssertSpekeKeyProvider(struct["SpekeKeyProvider"]) end for k,_ in pairs(struct) do assert(keys.DashIsoEncryptionSettings[k], "DashIsoEncryptionSettings contains unknown key " .. tostring(k)) end end --- Create a structure of type DashIsoEncryptionSettings -- Specifies DRM settings for DASH outputs. -- @param args Table with arguments in key-value form. -- Valid keys: -- * SpekeKeyProvider [SpekeKeyProvider] -- @return DashIsoEncryptionSettings structure as a key-value pair table function M.DashIsoEncryptionSettings(args) assert(args, "You must provide an argument table when creating DashIsoEncryptionSettings") local query_args = { } local uri_args = { } local header_args = { } local all_args = { ["SpekeKeyProvider"] = args["SpekeKeyProvider"], } asserts.AssertDashIsoEncryptionSettings(all_args) return { all = all_args, query = query_args, uri = uri_args, headers = header_args, } end function asserts.AssertM2tsBufferModel(str) assert(str) assert(type(str) == "string", "Expected M2tsBufferModel to be of type 'string'") end -- Controls what buffer model to use for accurate interleaving. If set to MULTIPLEX, use multiplex buffer model. If set to NONE, this can lead to lower latency, but low-memory devices may not be able to play back the stream without interruptions. function M.M2tsBufferModel(str) asserts.AssertM2tsBufferModel(str) return str end function asserts.AssertHlsClientCache(str) assert(str) assert(type(str) == "string", "Expected HlsClientCache to be of type 'string'") end -- When set to ENABLED, sets #EXT-X-ALLOW-CACHE:no tag, which prevents client from saving media segments for later replay. function M.HlsClientCache(str) asserts.AssertHlsClientCache(str) return str end function asserts.AssertM2tsAudioBufferModel(str) assert(str) assert(type(str) == "string", "Expected M2tsAudioBufferModel to be of type 'string'") end -- Selects between the DVB and ATSC buffer models for Dolby Digital audio. function M.M2tsAudioBufferModel(str) asserts.AssertM2tsAudioBufferModel(str) return str end function asserts.AssertH264Syntax(str) assert(str) assert(type(str) == "string", "Expected H264Syntax to be of type 'string'") end -- Produces a bitstream compliant with SMPTE RP-2027. function M.H264Syntax(str) asserts.AssertH264Syntax(str) return str end function asserts.AssertDashIsoSegmentControl(str) assert(str) assert(type(str) == "string", "Expected DashIsoSegmentControl to be of type 'string'") end -- When set to SINGLE_FILE, a single output file is generated, which is internally segmented using the Fragment Length and Segment Length. When set to SEGMENTED_FILES, separate segment files will be created. function M.DashIsoSegmentControl(str) asserts.AssertDashIsoSegmentControl(str) return str end function asserts.Assert__stringPattern0940191020191209301(str) assert(str) assert(type(str) == "string", "Expected __stringPattern0940191020191209301 to be of type 'string'") end -- function M.__stringPattern0940191020191209301(str) asserts.Assert__stringPattern0940191020191209301(str) return str end function asserts.AssertAacAudioDescriptionBroadcasterMix(str) assert(str) assert(type(str) == "string", "Expected AacAudioDescriptionBroadcasterMix to be of type 'string'") end -- Choose BROADCASTER_MIXED_AD when the input contains pre-mixed main audio + audio description (AD) as a stereo pair. The value for AudioType will be set to 3, which signals to downstream systems that this stream contains "broadcaster mixed AD". Note that the input received by the encoder must contain pre-mixed audio; the encoder does not perform the mixing. When you choose BROADCASTER_MIXED_AD, the encoder ignores any values you provide in AudioType and FollowInputAudioType. Choose NORMAL when the input does not contain pre-mixed audio + audio description (AD). In this case, the encoder will use any values you provide for AudioType and FollowInputAudioType. function M.AacAudioDescriptionBroadcasterMix(str) asserts.AssertAacAudioDescriptionBroadcasterMix(str) return str end function asserts.AssertH264CodecProfile(str) assert(str) assert(type(str) == "string", "Expected H264CodecProfile to be of type 'string'") end -- H.264 Profile. High 4:2:2 and 10-bit profiles are only available with the AVC-I License. function M.H264CodecProfile(str) asserts.AssertH264CodecProfile(str) return str end function asserts.AssertInputDeblockFilter(str) assert(str) assert(type(str) == "string", "Expected InputDeblockFilter to be of type 'string'") end -- Enable Deblock (InputDeblockFilter) to produce smoother motion in the output. Default is disabled. Only manaully controllable for MPEG2 and uncompressed video inputs. function M.InputDeblockFilter(str) asserts.AssertInputDeblockFilter(str) return str end function asserts.AssertCommitment(str) assert(str) assert(type(str) == "string", "Expected Commitment to be of type 'string'") end -- The length of time that you commit to when you set up a pricing plan contract for a reserved queue. function M.Commitment(str) asserts.AssertCommitment(str) return str end function asserts.Assert__stringMin1Max256(str) assert(str) assert(type(str) == "string", "Expected __stringMin1Max256 to be of type 'string'") assert(#str <= 256, "Expected string to be max 256 characters") assert(#str >= 1, "Expected string to be min 1 characters") end -- function M.__stringMin1Max256(str) asserts.Assert__stringMin1Max256(str) return str end function asserts.AssertInputPsiControl(str) assert(str) assert(type(str) == "string", "Expected InputPsiControl to be of type 'string'") end -- Set PSI control (InputPsiControl) for transport stream inputs to specify which data the demux process to scans. * Ignore PSI - Scan all PIDs for audio and video. * Use PSI - Scan only PSI data. function M.InputPsiControl(str) asserts.AssertInputPsiControl(str) return str end function asserts.AssertInputTimecodeSource(str) assert(str) assert(type(str) == "string", "Expected InputTimecodeSource to be of type 'string'") end -- Timecode source under input settings (InputTimecodeSource) only affects the behavior of features that apply to a single input at a time, such as input clipping and synchronizing some captions formats. Use this setting to specify whether the service counts frames by timecodes embedded in the video (EMBEDDED) or by starting the first frame at zero (ZEROBASED). In both cases, the timecode format is HH:MM:SS:FF or HH:MM:SS;FF, where FF is the frame number. Only set this to EMBEDDED if your source video has embedded timecodes. function M.InputTimecodeSource(str) asserts.AssertInputTimecodeSource(str) return str end function asserts.Assert__stringMin14PatternS3BmpBMPPngPNGTgaTGA(str) assert(str) assert(type(str) == "string", "Expected __stringMin14PatternS3BmpBMPPngPNGTgaTGA to be of type 'string'") assert(#str >= 14, "Expected string to be min 14 characters") end -- function M.__stringMin14PatternS3BmpBMPPngPNGTgaTGA(str) asserts.Assert__stringMin14PatternS3BmpBMPPngPNGTgaTGA(str) return str end function asserts.AssertTimedMetadata(str) assert(str) assert(type(str) == "string", "Expected TimedMetadata to be of type 'string'") end -- Applies only to HLS outputs. Use this setting to specify whether the service inserts the ID3 timed metadata from the input in this output. function M.TimedMetadata(str) asserts.AssertTimedMetadata(str) return str end function asserts.AssertAc3MetadataControl(str) assert(str) assert(type(str) == "string", "Expected Ac3MetadataControl to be of type 'string'") end -- When set to FOLLOW_INPUT, encoder metadata will be sourced from the DD, DD+, or DolbyE decoder that supplied this audio data. If audio was not supplied from one of these streams, then the static metadata settings will be used. function M.Ac3MetadataControl(str) asserts.AssertAc3MetadataControl(str) return str end function asserts.AssertMpeg2SlowPal(str) assert(str) assert(type(str) == "string", "Expected Mpeg2SlowPal to be of type 'string'") end -- Enables Slow PAL rate conversion. 23.976fps and 24fps input is relabeled as 25fps, and audio is sped up correspondingly. function M.Mpeg2SlowPal(str) asserts.AssertMpeg2SlowPal(str) return str end function asserts.AssertH264SlowPal(str) assert(str) assert(type(str) == "string", "Expected H264SlowPal to be of type 'string'") end -- Enables Slow PAL rate conversion. 23.976fps and 24fps input is relabeled as 25fps, and audio is sped up correspondingly. function M.H264SlowPal(str) asserts.AssertH264SlowPal(str) return str end function asserts.AssertProresCodecProfile(str) assert(str) assert(type(str) == "string", "Expected ProresCodecProfile to be of type 'string'") end -- Use Profile (ProResCodecProfile) to specifiy the type of Apple ProRes codec to use for this output. function M.ProresCodecProfile(str) asserts.AssertProresCodecProfile(str) return str end function asserts.AssertH265UnregisteredSeiTimecode(str) assert(str) assert(type(str) == "string", "Expected H265UnregisteredSeiTimecode to be of type 'string'") end -- Inserts timecode for each frame as 4 bytes of an unregistered SEI message. function M.H265UnregisteredSeiTimecode(str) asserts.AssertH265UnregisteredSeiTimecode(str) return str end function asserts.AssertHlsAdMarkers(str) assert(str) assert(type(str) == "string", "Expected HlsAdMarkers to be of type 'string'") end -- function M.HlsAdMarkers(str) asserts.AssertHlsAdMarkers(str) return str end function asserts.AssertMpeg2InterlaceMode(str) assert(str) assert(type(str) == "string", "Expected Mpeg2InterlaceMode to be of type 'string'") end -- Use Interlace mode (InterlaceMode) to choose the scan line type for the output. * Top Field First (TOP_FIELD) and Bottom Field First (BOTTOM_FIELD) produce interlaced output with the entire output having the same field polarity (top or bottom first). * Follow, Default Top (FOLLOW_TOP_FIELD) and Follow, Default Bottom (FOLLOW_BOTTOM_FIELD) use the same field polarity as the source. Therefore, behavior depends on the input scan type. -- - If the source is interlaced, the output will be interlaced with the same polarity as the source (it will follow the source). The output could therefore be a mix of "top field first" and "bottom field first". -- - If the source is progressive, the output will be interlaced with "top field first" or "bottom field first" polarity, depending on which of the Follow options you chose. function M.Mpeg2InterlaceMode(str) asserts.AssertMpeg2InterlaceMode(str) return str end function asserts.AssertCmafManifestCompression(str) assert(str) assert(type(str) == "string", "Expected CmafManifestCompression to be of type 'string'") end -- When set to GZIP, compresses HLS playlist. function M.CmafManifestCompression(str) asserts.AssertCmafManifestCompression(str) return str end function asserts.AssertBurninSubtitleAlignment(str) assert(str) assert(type(str) == "string", "Expected BurninSubtitleAlignment to be of type 'string'") end -- If no explicit x_position or y_position is provided, setting alignment to centered will place the captions at the bottom center of the output. Similarly, setting a left alignment will align captions to the bottom left of the output. If x and y positions are given in conjunction with the alignment parameter, the font will be justified (either left or centered) relative to those coordinates. This option is not valid for source captions that are STL, 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match. function M.BurninSubtitleAlignment(str) asserts.AssertBurninSubtitleAlignment(str) return str end function asserts.AssertAudioNormalizationLoudnessLogging(str) assert(str) assert(type(str) == "string", "Expected AudioNormalizationLoudnessLogging to be of type 'string'") end -- If set to LOG, log each output's audio track loudness to a CSV file. function M.AudioNormalizationLoudnessLogging(str) asserts.AssertAudioNormalizationLoudnessLogging(str) return str end function asserts.AssertSccDestinationFramerate(str) assert(str) assert(type(str) == "string", "Expected SccDestinationFramerate to be of type 'string'") end -- Set Framerate (SccDestinationFramerate) to make sure that the captions and the video are synchronized in the output. Specify a framerate that matches the framerate of the associated video. If the video framerate is 29.97, choose 29.97 dropframe (FRAMERATE_29_97_DROPFRAME) only if the video has video_insertion=true and drop_frame_timecode=true; otherwise, choose 29.97 non-dropframe (FRAMERATE_29_97_NON_DROPFRAME). function M.SccDestinationFramerate(str) asserts.AssertSccDestinationFramerate(str) return str end function asserts.AssertInputDenoiseFilter(str) assert(str) assert(type(str) == "string", "Expected InputDenoiseFilter to be of type 'string'") end -- Enable Denoise (InputDenoiseFilter) to filter noise from the input. Default is disabled. Only applicable to MPEG2, H.264, H.265, and uncompressed video inputs. function M.InputDenoiseFilter(str) asserts.AssertInputDenoiseFilter(str) return str end function asserts.AssertDashIsoWriteSegmentTimelineInRepresentation(str) assert(str) assert(type(str) == "string", "Expected DashIsoWriteSegmentTimelineInRepresentation to be of type 'string'") end -- When ENABLED, segment durations are indicated in the manifest using SegmentTimeline and SegmentTimeline will be promoted down into Representation from AdaptationSet. function M.DashIsoWriteSegmentTimelineInRepresentation(str) asserts.AssertDashIsoWriteSegmentTimelineInRepresentation(str) return str end function asserts.AssertMsSmoothManifestEncoding(str) assert(str) assert(type(str) == "string", "Expected MsSmoothManifestEncoding to be of type 'string'") end -- Use Manifest encoding (MsSmoothManifestEncoding) to specify the encoding format for the server and client manifest. Valid options are utf8 and utf16. function M.MsSmoothManifestEncoding(str) asserts.AssertMsSmoothManifestEncoding(str) return str end function asserts.AssertH265FlickerAdaptiveQuantization(str) assert(str) assert(type(str) == "string", "Expected H265FlickerAdaptiveQuantization to be of type 'string'") end -- Adjust quantization within each frame to reduce flicker or 'pop' on I-frames. function M.H265FlickerAdaptiveQuantization(str) asserts.AssertH265FlickerAdaptiveQuantization(str) return str end function asserts.AssertAacCodecProfile(str) assert(str) assert(type(str) == "string", "Expected AacCodecProfile to be of type 'string'") end -- AAC Profile. function M.AacCodecProfile(str) asserts.AssertAacCodecProfile(str) return str end function asserts.AssertAudioSelectorType(str) assert(str) assert(type(str) == "string", "Expected AudioSelectorType to be of type 'string'") end -- Specifies the type of the audio selector. function M.AudioSelectorType(str) asserts.AssertAudioSelectorType(str) return str end function asserts.AssertH264AdaptiveQuantization(str) assert(str) assert(type(str) == "string", "Expected H264AdaptiveQuantization to be of type 'string'") end -- Adaptive quantization. Allows intra-frame quantizers to vary to improve visual quality. function M.H264AdaptiveQuantization(str) asserts.AssertH264AdaptiveQuantization(str) return str end function asserts.AssertDvbSubtitleShadowColor(str) assert(str) assert(type(str) == "string", "Expected DvbSubtitleShadowColor to be of type 'string'") end -- Specifies the color of the shadow cast by the captions. --All burn-in and DVB-Sub font settings must match. function M.DvbSubtitleShadowColor(str) asserts.AssertDvbSubtitleShadowColor(str) return str end function asserts.AssertH265InterlaceMode(str) assert(str) assert(type(str) == "string", "Expected H265InterlaceMode to be of type 'string'") end -- Use Interlace mode (InterlaceMode) to choose the scan line type for the output. * Top Field First (TOP_FIELD) and Bottom Field First (BOTTOM_FIELD) produce interlaced output with the entire output having the same field polarity (top or bottom first). * Follow, Default Top (FOLLOW_TOP_FIELD) and Follow, Default Bottom (FOLLOW_BOTTOM_FIELD) use the same field polarity as the source. Therefore, behavior depends on the input scan type. -- - If the source is interlaced, the output will be interlaced with the same polarity as the source (it will follow the source). The output could therefore be a mix of "top field first" and "bottom field first". -- - If the source is progressive, the output will be interlaced with "top field first" or "bottom field first" polarity, depending on which of the Follow options you chose. function M.H265InterlaceMode(str) asserts.AssertH265InterlaceMode(str) return str end function asserts.AssertVideoTimecodeInsertion(str) assert(str) assert(type(str) == "string", "Expected VideoTimecodeInsertion to be of type 'string'") end -- Applies only to H.264, H.265, MPEG2, and ProRes outputs. Only enable Timecode insertion when the input framerate is identical to the output framerate. To include timecodes in this output, set Timecode insertion (VideoTimecodeInsertion) to PIC_TIMING_SEI. To leave them out, set it to DISABLED. Default is DISABLED. When the service inserts timecodes in an output, by default, it uses any embedded timecodes from the input. If none are present, the service will set the timecode for the first output frame to zero. To change this default behavior, adjust the settings under Timecode configuration (TimecodeConfig). In the console, these settings are located under Job > Job settings > Timecode configuration. Note - Timecode source under input settings (InputTimecodeSource) does not affect the timecodes that are inserted in the output. Source under Job settings > Timecode configuration (TimecodeSource) does. function M.VideoTimecodeInsertion(str) asserts.AssertVideoTimecodeInsertion(str) return str end function asserts.AssertH264FramerateConversionAlgorithm(str) assert(str) assert(type(str) == "string", "Expected H264FramerateConversionAlgorithm to be of type 'string'") end -- When set to INTERPOLATE, produces smoother motion during framerate conversion. function M.H264FramerateConversionAlgorithm(str) asserts.AssertH264FramerateConversionAlgorithm(str) return str end function asserts.AssertH264FieldEncoding(str) assert(str) assert(type(str) == "string", "Expected H264FieldEncoding to be of type 'string'") end -- Choosing FORCE_FIELD disables PAFF encoding for interlaced outputs. function M.H264FieldEncoding(str) asserts.AssertH264FieldEncoding(str) return str end function asserts.AssertHlsOutputSelection(str) assert(str) assert(type(str) == "string", "Expected HlsOutputSelection to be of type 'string'") end -- Indicates whether the .m3u8 manifest file should be generated for this HLS output group. function M.HlsOutputSelection(str) asserts.AssertHlsOutputSelection(str) return str end function asserts.AssertDeinterlaceAlgorithm(str) assert(str) assert(type(str) == "string", "Expected DeinterlaceAlgorithm to be of type 'string'") end -- Only applies when you set Deinterlacer (DeinterlaceMode) to Deinterlace (DEINTERLACE) or Adaptive (ADAPTIVE). Motion adaptive interpolate (INTERPOLATE) produces sharper pictures, while blend (BLEND) produces smoother motion. Use (INTERPOLATE_TICKER) OR (BLEND_TICKER) if your source file includes a ticker, such as a scrolling headline at the bottom of the frame. function M.DeinterlaceAlgorithm(str) asserts.AssertDeinterlaceAlgorithm(str) return str end function asserts.AssertH265DynamicSubGop(str) assert(str) assert(type(str) == "string", "Expected H265DynamicSubGop to be of type 'string'") end -- Choose Adaptive to improve subjective video quality for high-motion content. This will cause the service to use fewer B-frames (which infer information based on other frames) for high-motion portions of the video and more B-frames for low-motion portions. The maximum number of B-frames is limited by the value you provide for the setting B frames between reference frames (numberBFramesBetweenReferenceFrames). function M.H265DynamicSubGop(str) asserts.AssertH265DynamicSubGop(str) return str end function asserts.AssertProresInterlaceMode(str) assert(str) assert(type(str) == "string", "Expected ProresInterlaceMode to be of type 'string'") end -- Use Interlace mode (InterlaceMode) to choose the scan line type for the output. * Top Field First (TOP_FIELD) and Bottom Field First (BOTTOM_FIELD) produce interlaced output with the entire output having the same field polarity (top or bottom first). * Follow, Default Top (FOLLOW_TOP_FIELD) and Follow, Default Bottom (FOLLOW_BOTTOM_FIELD) use the same field polarity as the source. Therefore, behavior depends on the input scan type. -- - If the source is interlaced, the output will be interlaced with the same polarity as the source (it will follow the source). The output could therefore be a mix of "top field first" and "bottom field first". -- - If the source is progressive, the output will be interlaced with "top field first" or "bottom field first" polarity, depending on which of the Follow options you chose. function M.ProresInterlaceMode(str) asserts.AssertProresInterlaceMode(str) return str end function asserts.AssertRespondToAfd(str) assert(str) assert(type(str) == "string", "Expected RespondToAfd to be of type 'string'") end -- Use Respond to AFD (RespondToAfd) to specify how the service changes the video itself in response to AFD values in the input. * Choose Respond to clip the input video frame according to the AFD value, input display aspect ratio, and output display aspect ratio. * Choose Passthrough to include the input AFD values. Do not choose this when AfdSignaling is set to (NONE). A preferred implementation of this workflow is to set RespondToAfd to (NONE) and set AfdSignaling to (AUTO). * Choose None to remove all input AFD values from this output. function M.RespondToAfd(str) asserts.AssertRespondToAfd(str) return str end function asserts.AssertCmafWriteDASHManifest(str) assert(str) assert(type(str) == "string", "Expected CmafWriteDASHManifest to be of type 'string'") end -- When set to ENABLED, a DASH MPD manifest will be generated for this output. function M.CmafWriteDASHManifest(str) asserts.AssertCmafWriteDASHManifest(str) return str end function asserts.AssertPresetListBy(str) assert(str) assert(type(str) == "string", "Expected PresetListBy to be of type 'string'") end -- Optional. When you request a list of presets, you can choose to list them alphabetically by NAME or chronologically by CREATION_DATE. If you don't specify, the service will list them by name. function M.PresetListBy(str) asserts.AssertPresetListBy(str) return str end function asserts.AssertH265TemporalAdaptiveQuantization(str) assert(str) assert(type(str) == "string", "Expected H265TemporalAdaptiveQuantization to be of type 'string'") end -- Adjust quantization within each frame based on temporal variation of content complexity. function M.H265TemporalAdaptiveQuantization(str) asserts.AssertH265TemporalAdaptiveQuantization(str) return str end function asserts.Assert__stringPatternDD(str) assert(str) assert(type(str) == "string", "Expected __stringPatternDD to be of type 'string'") end -- function M.__stringPatternDD(str) asserts.Assert__stringPatternDD(str) return str end function asserts.AssertEac3DynamicRangeCompressionRf(str) assert(str) assert(type(str) == "string", "Expected Eac3DynamicRangeCompressionRf to be of type 'string'") end -- Enables Heavy Dynamic Range Compression, ensures that the instantaneous signal peaks do not exceed specified levels. function M.Eac3DynamicRangeCompressionRf(str) asserts.AssertEac3DynamicRangeCompressionRf(str) return str end function asserts.AssertMovCslgAtom(str) assert(str) assert(type(str) == "string", "Expected MovCslgAtom to be of type 'string'") end -- When enabled, file composition times will start at zero, composition times in the 'ctts' (composition time to sample) box for B-frames will be negative, and a 'cslg' (composition shift least greatest) box will be included per 14496-1 amendment 1. This improves compatibility with Apple players and tools. function M.MovCslgAtom(str) asserts.AssertMovCslgAtom(str) return str end function asserts.AssertDvbSubtitleBackgroundColor(str) assert(str) assert(type(str) == "string", "Expected DvbSubtitleBackgroundColor to be of type 'string'") end -- Specifies the color of the rectangle behind the captions. --All burn-in and DVB-Sub font settings must match. function M.DvbSubtitleBackgroundColor(str) asserts.AssertDvbSubtitleBackgroundColor(str) return str end function asserts.AssertProresTelecine(str) assert(str) assert(type(str) == "string", "Expected ProresTelecine to be of type 'string'") end -- Only use Telecine (ProresTelecine) when you set Framerate (Framerate) to 29.970. Set Telecine (ProresTelecine) to Hard (hard) to produce a 29.97i output from a 23.976 input. Set it to Soft (soft) to produce 23.976 output and leave converstion to the player. function M.ProresTelecine(str) asserts.AssertProresTelecine(str) return str end function asserts.AssertMpeg2DynamicSubGop(str) assert(str) assert(type(str) == "string", "Expected Mpeg2DynamicSubGop to be of type 'string'") end -- Choose Adaptive to improve subjective video quality for high-motion content. This will cause the service to use fewer B-frames (which infer information based on other frames) for high-motion portions of the video and more B-frames for low-motion portions. The maximum number of B-frames is limited by the value you provide for the setting B frames between reference frames (numberBFramesBetweenReferenceFrames). function M.Mpeg2DynamicSubGop(str) asserts.AssertMpeg2DynamicSubGop(str) return str end function asserts.AssertProresParControl(str) assert(str) assert(type(str) == "string", "Expected ProresParControl to be of type 'string'") end -- Use (ProresParControl) to specify how the service determines the pixel aspect ratio. Set to Follow source (INITIALIZE_FROM_SOURCE) to use the pixel aspect ratio from the input. To specify a different pixel aspect ratio: Using the console, choose it from the dropdown menu. Using the API, set ProresParControl to (SPECIFIED) and provide for (ParNumerator) and (ParDenominator). function M.ProresParControl(str) asserts.AssertProresParControl(str) return str end function asserts.AssertHlsAudioTrackType(str) assert(str) assert(type(str) == "string", "Expected HlsAudioTrackType to be of type 'string'") end -- Four types of audio-only tracks are supported: Audio-Only Variant Stream The client can play back this audio-only stream instead of video in low-bandwidth scenarios. Represented as an EXT-X-STREAM-INF in the HLS manifest. Alternate Audio, Auto Select, Default Alternate rendition that the client should try to play back by default. Represented as an EXT-X-MEDIA in the HLS manifest with DEFAULT=YES, AUTOSELECT=YES Alternate Audio, Auto Select, Not Default Alternate rendition that the client may try to play back by default. Represented as an EXT-X-MEDIA in the HLS manifest with DEFAULT=NO, AUTOSELECT=YES Alternate Audio, not Auto Select Alternate rendition that the client will not try to play back by default. Represented as an EXT-X-MEDIA in the HLS manifest with DEFAULT=NO, AUTOSELECT=NO function M.HlsAudioTrackType(str) asserts.AssertHlsAudioTrackType(str) return str end function asserts.AssertH265WriteMp4PackagingType(str) assert(str) assert(type(str) == "string", "Expected H265WriteMp4PackagingType to be of type 'string'") end -- If HVC1, output that is H.265 will be marked as HVC1 and adhere to the ISO-IECJTC1-SC29_N13798_Text_ISOIEC_FDIS_14496-15_3rd_E spec which states that parameter set NAL units will be stored in the sample headers but not in the samples directly. If HEV1, then H.265 will be marked as HEV1 and parameter set NAL units will be written into the samples. function M.H265WriteMp4PackagingType(str) asserts.AssertH265WriteMp4PackagingType(str) return str end function asserts.AssertJobTemplateListBy(str) assert(str) assert(type(str) == "string", "Expected JobTemplateListBy to be of type 'string'") end -- Optional. When you request a list of job templates, you can choose to list them alphabetically by NAME or chronologically by CREATION_DATE. If you don't specify, the service will list them by name. function M.JobTemplateListBy(str) asserts.AssertJobTemplateListBy(str) return str end function asserts.AssertDvbSubtitleTeletextSpacing(str) assert(str) assert(type(str) == "string", "Expected DvbSubtitleTeletextSpacing to be of type 'string'") end -- Only applies to jobs with input captions in Teletext or STL formats. Specify whether the spacing between letters in your captions is set by the captions grid or varies depending on letter width. Choose fixed grid to conform to the spacing specified in the captions file more accurately. Choose proportional to make the text easier to read if the captions are closed caption. function M.DvbSubtitleTeletextSpacing(str) asserts.AssertDvbSubtitleTeletextSpacing(str) return str end function asserts.AssertHlsCaptionLanguageSetting(str) assert(str) assert(type(str) == "string", "Expected HlsCaptionLanguageSetting to be of type 'string'") end -- Applies only to 608 Embedded output captions. Insert: Include CLOSED-CAPTIONS lines in the manifest. Specify at least one language in the CC1 Language Code field. One CLOSED-CAPTION line is added for each Language Code you specify. Make sure to specify the languages in the order in which they appear in the original source (if the source is embedded format) or the order of the caption selectors (if the source is other than embedded). Otherwise, languages in the manifest will not match up properly with the output captions. None: Include CLOSED-CAPTIONS=NONE line in the manifest. Omit: Omit any CLOSED-CAPTIONS line from the manifest. function M.HlsCaptionLanguageSetting(str) asserts.AssertHlsCaptionLanguageSetting(str) return str end function asserts.AssertAc3LfeFilter(str) assert(str) assert(type(str) == "string", "Expected Ac3LfeFilter to be of type 'string'") end -- Applies a 120Hz lowpass filter to the LFE channel prior to encoding. Only valid with 3_2_LFE coding mode. function M.Ac3LfeFilter(str) asserts.AssertAc3LfeFilter(str) return str end function asserts.AssertContainerType(str) assert(str) assert(type(str) == "string", "Expected ContainerType to be of type 'string'") end -- Container for this output. Some containers require a container settings object. If not specified, the default object will be created. function M.ContainerType(str) asserts.AssertContainerType(str) return str end function asserts.AssertMpeg2TemporalAdaptiveQuantization(str) assert(str) assert(type(str) == "string", "Expected Mpeg2TemporalAdaptiveQuantization to be of type 'string'") end -- Adjust quantization within each frame based on temporal variation of content complexity. function M.Mpeg2TemporalAdaptiveQuantization(str) asserts.AssertMpeg2TemporalAdaptiveQuantization(str) return str end function asserts.AssertH265SpatialAdaptiveQuantization(str) assert(str) assert(type(str) == "string", "Expected H265SpatialAdaptiveQuantization to be of type 'string'") end -- Adjust quantization within each frame based on spatial variation of content complexity. function M.H265SpatialAdaptiveQuantization(str) asserts.AssertH265SpatialAdaptiveQuantization(str) return str end function asserts.AssertH264RepeatPps(str) assert(str) assert(type(str) == "string", "Expected H264RepeatPps to be of type 'string'") end -- Places a PPS header on each encoded picture, even if repeated. function M.H264RepeatPps(str) asserts.AssertH264RepeatPps(str) return str end function asserts.AssertPricingPlan(str) assert(str) assert(type(str) == "string", "Expected PricingPlan to be of type 'string'") end -- Specifies whether the pricing plan for the queue is On-demand or Reserved. The pricing plan for the queue determines whether you pay On-demand or Reserved pricing for the transcoding jobs that you run through the queue. For Reserved queue pricing, you must set up a contract. You can create a Reserved queue contract through the AWS Elemental MediaConvert console. function M.PricingPlan(str) asserts.AssertPricingPlan(str) return str end function asserts.AssertM2tsEsRateInPes(str) assert(str) assert(type(str) == "string", "Expected M2tsEsRateInPes to be of type 'string'") end -- Controls whether to include the ES Rate field in the PES header. function M.M2tsEsRateInPes(str) asserts.AssertM2tsEsRateInPes(str) return str end function asserts.AssertMpeg2FramerateControl(str) assert(str) assert(type(str) == "string", "Expected Mpeg2FramerateControl to be of type 'string'") end -- If you are using the console, use the Framerate setting to specify the framerate for this output. If you want to keep the same framerate as the input video, choose Follow source. If you want to do framerate conversion, choose a framerate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your framerate as a fraction. If you are creating your transcoding job sepecification as a JSON file without the console, use FramerateControl to specify which value the service uses for the framerate for this output. Choose INITIALIZE_FROM_SOURCE if you want the service to use the framerate from the input. Choose SPECIFIED if you want the service to use the framerate you specify in the settings FramerateNumerator and FramerateDenominator. function M.Mpeg2FramerateControl(str) asserts.AssertMpeg2FramerateControl(str) return str end function asserts.AssertMp4MoovPlacement(str) assert(str) assert(type(str) == "string", "Expected Mp4MoovPlacement to be of type 'string'") end -- If set to PROGRESSIVE_DOWNLOAD, the MOOV atom is relocated to the beginning of the archive as required for progressive downloading. Otherwise it is placed normally at the end. function M.Mp4MoovPlacement(str) asserts.AssertMp4MoovPlacement(str) return str end function asserts.AssertLanguageCode(str) assert(str) assert(type(str) == "string", "Expected LanguageCode to be of type 'string'") end -- Specify the language, using the ISO 639-2 three-letter code listed at https://www.loc.gov/standards/iso639-2/php/code_list.php. function M.LanguageCode(str) asserts.AssertLanguageCode(str) return str end function asserts.AssertMpeg2Telecine(str) assert(str) assert(type(str) == "string", "Expected Mpeg2Telecine to be of type 'string'") end -- Only use Telecine (Mpeg2Telecine) when you set Framerate (Framerate) to 29.970. Set Telecine (Mpeg2Telecine) to Hard (hard) to produce a 29.97i output from a 23.976 input. Set it to Soft (soft) to produce 23.976 output and leave converstion to the player. function M.Mpeg2Telecine(str) asserts.AssertMpeg2Telecine(str) return str end function asserts.Assert__stringPattern(str) assert(str) assert(type(str) == "string", "Expected __stringPattern to be of type 'string'") end -- function M.__stringPattern(str) asserts.Assert__stringPattern(str) return str end function asserts.AssertHlsSegmentControl(str) assert(str) assert(type(str) == "string", "Expected HlsSegmentControl to be of type 'string'") end -- When set to SINGLE_FILE, emits program as a single media resource (.ts) file, uses #EXT-X-BYTERANGE tags to index segment for playback. function M.HlsSegmentControl(str) asserts.AssertHlsSegmentControl(str) return str end function asserts.AssertH264EntropyEncoding(str) assert(str) assert(type(str) == "string", "Expected H264EntropyEncoding to be of type 'string'") end -- Entropy encoding mode. Use CABAC (must be in Main or High profile) or CAVLC. function M.H264EntropyEncoding(str) asserts.AssertH264EntropyEncoding(str) return str end function asserts.AssertColorSpaceUsage(str) assert(str) assert(type(str) == "string", "Expected ColorSpaceUsage to be of type 'string'") end -- There are two sources for color metadata, the input file and the job configuration (in the Color space and HDR master display informaiton settings). The Color space usage setting controls which takes precedence. FORCE: The system will use color metadata supplied by user, if any. If the user does not supply color metadata, the system will use data from the source. FALLBACK: The system will use color metadata from the source. If source has no color metadata, the system will use user-supplied color metadata values if available. function M.ColorSpaceUsage(str) asserts.AssertColorSpaceUsage(str) return str end function asserts.AssertMovReference(str) assert(str) assert(type(str) == "string", "Expected MovReference to be of type 'string'") end -- A value of 'external' creates separate media files and the wrapper file (.mov) contains references to these media files. A value of 'self_contained' creates only a wrapper (.mov) file and this file contains all of the media. function M.MovReference(str) asserts.AssertMovReference(str) return str end function asserts.AssertDvbSubtitleOutlineColor(str) assert(str) assert(type(str) == "string", "Expected DvbSubtitleOutlineColor to be of type 'string'") end -- Specifies font outline color. This option is not valid for source captions that are either 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match. function M.DvbSubtitleOutlineColor(str) asserts.AssertDvbSubtitleOutlineColor(str) return str end function asserts.AssertMpeg2QualityTuningLevel(str) assert(str) assert(type(str) == "string", "Expected Mpeg2QualityTuningLevel to be of type 'string'") end -- Use Quality tuning level (Mpeg2QualityTuningLevel) to specifiy whether to use single-pass or multipass video encoding. function M.Mpeg2QualityTuningLevel(str) asserts.AssertMpeg2QualityTuningLevel(str) return str end function asserts.AssertType(str) assert(str) assert(type(str) == "string", "Expected Type to be of type 'string'") end -- function M.Type(str) asserts.AssertType(str) return str end function asserts.AssertH265GopSizeUnits(str) assert(str) assert(type(str) == "string", "Expected H265GopSizeUnits to be of type 'string'") end -- Indicates if the GOP Size in H265 is specified in frames or seconds. If seconds the system will convert the GOP Size into a frame count at run time. function M.H265GopSizeUnits(str) asserts.AssertH265GopSizeUnits(str) return str end function asserts.AssertMpeg2SpatialAdaptiveQuantization(str) assert(str) assert(type(str) == "string", "Expected Mpeg2SpatialAdaptiveQuantization to be of type 'string'") end -- Adjust quantization within each frame based on spatial variation of content complexity. function M.Mpeg2SpatialAdaptiveQuantization(str) asserts.AssertMpeg2SpatialAdaptiveQuantization(str) return str end function asserts.AssertBurninSubtitleShadowColor(str) assert(str) assert(type(str) == "string", "Expected BurninSubtitleShadowColor to be of type 'string'") end -- Specifies the color of the shadow cast by the captions. --All burn-in and DVB-Sub font settings must match. function M.BurninSubtitleShadowColor(str) asserts.AssertBurninSubtitleShadowColor(str) return str end function asserts.AssertH265ParControl(str) assert(str) assert(type(str) == "string", "Expected H265ParControl to be of type 'string'") end -- Using the API, enable ParFollowSource if you want the service to use the pixel aspect ratio from the input. Using the console, do this by choosing Follow source for Pixel aspect ratio. function M.H265ParControl(str) asserts.AssertH265ParControl(str) return str end function asserts.AssertM2tsNielsenId3(str) assert(str) assert(type(str) == "string", "Expected M2tsNielsenId3 to be of type 'string'") end -- If INSERT, Nielsen inaudible tones for media tracking will be detected in the input audio and an equivalent ID3 tag will be inserted in the output. function M.M2tsNielsenId3(str) asserts.AssertM2tsNielsenId3(str) return str end function asserts.AssertTimecodeBurninPosition(str) assert(str) assert(type(str) == "string", "Expected TimecodeBurninPosition to be of type 'string'") end -- Use Position (Position) under under Timecode burn-in (TimecodeBurnIn) to specify the location the burned-in timecode on output video. function M.TimecodeBurninPosition(str) asserts.AssertTimecodeBurninPosition(str) return str end function asserts.AssertMpeg2CodecLevel(str) assert(str) assert(type(str) == "string", "Expected Mpeg2CodecLevel to be of type 'string'") end -- Use Level (Mpeg2CodecLevel) to set the MPEG-2 level for the video output. function M.Mpeg2CodecLevel(str) asserts.AssertMpeg2CodecLevel(str) return str end function asserts.AssertH264Telecine(str) assert(str) assert(type(str) == "string", "Expected H264Telecine to be of type 'string'") end -- This field applies only if the Streams > Advanced > Framerate (framerate) field is set to 29.970. This field works with the Streams > Advanced > Preprocessors > Deinterlacer field (deinterlace_mode) and the Streams > Advanced > Interlaced Mode field (interlace_mode) to identify the scan type for the output: Progressive, Interlaced, Hard Telecine or Soft Telecine. - Hard: produces 29.97i output from 23.976 input. - Soft: produces 23.976; the player converts this output to 29.97i. function M.H264Telecine(str) asserts.AssertH264Telecine(str) return str end function asserts.AssertBurninSubtitleOutlineColor(str) assert(str) assert(type(str) == "string", "Expected BurninSubtitleOutlineColor to be of type 'string'") end -- Specifies font outline color. This option is not valid for source captions that are either 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match. function M.BurninSubtitleOutlineColor(str) asserts.AssertBurninSubtitleOutlineColor(str) return str end function asserts.AssertH264GopSizeUnits(str) assert(str) assert(type(str) == "string", "Expected H264GopSizeUnits to be of type 'string'") end -- Indicates if the GOP Size in H264 is specified in frames or seconds. If seconds the system will convert the GOP Size into a frame count at run time. function M.H264GopSizeUnits(str) asserts.AssertH264GopSizeUnits(str) return str end function asserts.AssertAudioNormalizationAlgorithm(str) assert(str) assert(type(str) == "string", "Expected AudioNormalizationAlgorithm to be of type 'string'") end -- Audio normalization algorithm to use. 1770-1 conforms to the CALM Act specification, 1770-2 conforms to the EBU R-128 specification. function M.AudioNormalizationAlgorithm(str) asserts.AssertAudioNormalizationAlgorithm(str) return str end function asserts.Assert__stringMin0(str) assert(str) assert(type(str) == "string", "Expected __stringMin0 to be of type 'string'") end -- function M.__stringMin0(str) asserts.Assert__stringMin0(str) return str end function asserts.AssertCmafCodecSpecification(str) assert(str) assert(type(str) == "string", "Expected CmafCodecSpecification to be of type 'string'") end -- Specification to use (RFC-6381 or the default RFC-4281) during m3u8 playlist generation. function M.CmafCodecSpecification(str) asserts.AssertCmafCodecSpecification(str) return str end function asserts.AssertH265SceneChangeDetect(str) assert(str) assert(type(str) == "string", "Expected H265SceneChangeDetect to be of type 'string'") end -- Scene change detection (inserts I-frames on scene changes). function M.H265SceneChangeDetect(str) asserts.AssertH265SceneChangeDetect(str) return str end function asserts.AssertM2tsEbpAudioInterval(str) assert(str) assert(type(str) == "string", "Expected M2tsEbpAudioInterval to be of type 'string'") end -- When set to VIDEO_AND_FIXED_INTERVALS, audio EBP markers will be added to partitions 3 and 4. The interval between these additional markers will be fixed, and will be slightly shorter than the video EBP marker interval. When set to VIDEO_INTERVAL, these additional markers will not be inserted. Only applicable when EBP segmentation markers are is selected (segmentationMarkers is EBP or EBP_LEGACY). function M.M2tsEbpAudioInterval(str) asserts.AssertM2tsEbpAudioInterval(str) return str end function asserts.Assert__stringPattern010920405090509092(str) assert(str) assert(type(str) == "string", "Expected __stringPattern010920405090509092 to be of type 'string'") end -- function M.__stringPattern010920405090509092(str) asserts.Assert__stringPattern010920405090509092(str) return str end function asserts.AssertCmafWriteHLSManifest(str) assert(str) assert(type(str) == "string", "Expected CmafWriteHLSManifest to be of type 'string'") end -- When set to ENABLED, an Apple HLS manifest will be generated for this output. function M.CmafWriteHLSManifest(str) asserts.AssertCmafWriteHLSManifest(str) return str end function asserts.AssertFileSourceConvert608To708(str) assert(str) assert(type(str) == "string", "Expected FileSourceConvert608To708 to be of type 'string'") end -- If set to UPCONVERT, 608 caption data is both passed through via the "608 compatibility bytes" fields of the 708 wrapper as well as translated into 708. 708 data present in the source content will be discarded. function M.FileSourceConvert608To708(str) asserts.AssertFileSourceConvert608To708(str) return str end function asserts.AssertMpeg2CodecProfile(str) assert(str) assert(type(str) == "string", "Expected Mpeg2CodecProfile to be of type 'string'") end -- Use Profile (Mpeg2CodecProfile) to set the MPEG-2 profile for the video output. function M.Mpeg2CodecProfile(str) asserts.AssertMpeg2CodecProfile(str) return str end function asserts.Assert__stringPatternAZaZ0932(str) assert(str) assert(type(str) == "string", "Expected __stringPatternAZaZ0932 to be of type 'string'") end -- function M.__stringPatternAZaZ0932(str) asserts.Assert__stringPatternAZaZ0932(str) return str end function asserts.AssertReservationPlanStatus(str) assert(str) assert(type(str) == "string", "Expected ReservationPlanStatus to be of type 'string'") end -- Specifies whether the pricing plan for your reserved queue is ACTIVE or EXPIRED. function M.ReservationPlanStatus(str) asserts.AssertReservationPlanStatus(str) return str end function asserts.AssertProresFramerateControl(str) assert(str) assert(type(str) == "string", "Expected ProresFramerateControl to be of type 'string'") end -- If you are using the console, use the Framerate setting to specify the framerate for this output. If you want to keep the same framerate as the input video, choose Follow source. If you want to do framerate conversion, choose a framerate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your framerate as a fraction. If you are creating your transcoding job sepecification as a JSON file without the console, use FramerateControl to specify which value the service uses for the framerate for this output. Choose INITIALIZE_FROM_SOURCE if you want the service to use the framerate from the input. Choose SPECIFIED if you want the service to use the framerate you specify in the settings FramerateNumerator and FramerateDenominator. function M.ProresFramerateControl(str) asserts.AssertProresFramerateControl(str) return str end function asserts.AssertOrder(str) assert(str) assert(type(str) == "string", "Expected Order to be of type 'string'") end -- When you request lists of resources, you can optionally specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource. function M.Order(str) asserts.AssertOrder(str) return str end function asserts.AssertEac3PhaseControl(str) assert(str) assert(type(str) == "string", "Expected Eac3PhaseControl to be of type 'string'") end -- Controls the amount of phase-shift applied to the surround channels. Only used for 3/2 coding mode. function M.Eac3PhaseControl(str) asserts.AssertEac3PhaseControl(str) return str end function asserts.AssertHlsDirectoryStructure(str) assert(str) assert(type(str) == "string", "Expected HlsDirectoryStructure to be of type 'string'") end -- Indicates whether segments should be placed in subdirectories. function M.HlsDirectoryStructure(str) asserts.AssertHlsDirectoryStructure(str) return str end function asserts.AssertBurninSubtitleBackgroundColor(str) assert(str) assert(type(str) == "string", "Expected BurninSubtitleBackgroundColor to be of type 'string'") end -- Specifies the color of the rectangle behind the captions. --All burn-in and DVB-Sub font settings must match. function M.BurninSubtitleBackgroundColor(str) asserts.AssertBurninSubtitleBackgroundColor(str) return str end function asserts.Assert__stringPatternS3MM2VVMMPPEEGGAAVVIIMMPP4FFLLVVMMPPTTMMPPGGMM4VVTTRRPPFF4VVMM2TTSSTTSS264HH264MMKKVVMMOOVVMMTTSSMM2TTWWMMVVAASSFFVVOOBB3GGPP3GGPPPPMMXXFFDDIIVVXXXXVVIIDDRRAAWWDDVVGGXXFFMM1VV3GG2VVMMFFMM3UU8LLCCHHGGXXFFMMPPEEGG2MMXXFFMMPPEEGG2MMXXFFHHDDWWAAVVYY4MMAAAACCAAIIFFFFMMPP2AACC3EECC3DDTTSSEE(str) assert(str) assert(type(str) == "string", "Expected __stringPatternS3MM2VVMMPPEEGGAAVVIIMMPP4FFLLVVMMPPTTMMPPGGMM4VVTTRRPPFF4VVMM2TTSSTTSS264HH264MMKKVVMMOOVVMMTTSSMM2TTWWMMVVAASSFFVVOOBB3GGPP3GGPPPPMMXXFFDDIIVVXXXXVVIIDDRRAAWWDDVVGGXXFFMM1VV3GG2VVMMFFMM3UU8LLCCHHGGXXFFMMPPEEGG2MMXXFFMMPPEEGG2MMXXFFHHDDWWAAVVYY4MMAAAACCAAIIFFFFMMPP2AACC3EECC3DDTTSSEE to be of type 'string'") end -- function M.__stringPatternS3MM2VVMMPPEEGGAAVVIIMMPP4FFLLVVMMPPTTMMPPGGMM4VVTTRRPPFF4VVMM2TTSSTTSS264HH264MMKKVVMMOOVVMMTTSSMM2TTWWMMVVAASSFFVVOOBB3GGPP3GGPPPPMMXXFFDDIIVVXXXXVVIIDDRRAAWWDDVVGGXXFFMM1VV3GG2VVMMFFMM3UU8LLCCHHGGXXFFMMPPEEGG2MMXXFFMMPPEEGG2MMXXFFHHDDWWAAVVYY4MMAAAACCAAIIFFFFMMPP2AACC3EECC3DDTTSSEE(str) asserts.Assert__stringPatternS3MM2VVMMPPEEGGAAVVIIMMPP4FFLLVVMMPPTTMMPPGGMM4VVTTRRPPFF4VVMM2TTSSTTSS264HH264MMKKVVMMOOVVMMTTSSMM2TTWWMMVVAASSFFVVOOBB3GGPP3GGPPPPMMXXFFDDIIVVXXXXVVIIDDRRAAWWDDVVGGXXFFMM1VV3GG2VVMMFFMM3UU8LLCCHHGGXXFFMMPPEEGG2MMXXFFMMPPEEGG2MMXXFFHHDDWWAAVVYY4MMAAAACCAAIIFFFFMMPP2AACC3EECC3DDTTSSEE(str) return str end function asserts.AssertH264DynamicSubGop(str) assert(str) assert(type(str) == "string", "Expected H264DynamicSubGop to be of type 'string'") end -- Choose Adaptive to improve subjective video quality for high-motion content. This will cause the service to use fewer B-frames (which infer information based on other frames) for high-motion portions of the video and more B-frames for low-motion portions. The maximum number of B-frames is limited by the value you provide for the setting B frames between reference frames (numberBFramesBetweenReferenceFrames). function M.H264DynamicSubGop(str) asserts.AssertH264DynamicSubGop(str) return str end function asserts.AssertM3u8Scte35Source(str) assert(str) assert(type(str) == "string", "Expected M3u8Scte35Source to be of type 'string'") end -- Enables SCTE-35 passthrough (scte35Source) to pass any SCTE-35 signals from input to output. function M.M3u8Scte35Source(str) asserts.AssertM3u8Scte35Source(str) return str end function asserts.AssertBurninSubtitleTeletextSpacing(str) assert(str) assert(type(str) == "string", "Expected BurninSubtitleTeletextSpacing to be of type 'string'") end -- Only applies to jobs with input captions in Teletext or STL formats. Specify whether the spacing between letters in your captions is set by the captions grid or varies depending on letter width. Choose fixed grid to conform to the spacing specified in the captions file more accurately. Choose proportional to make the text easier to read if the captions are closed caption. function M.BurninSubtitleTeletextSpacing(str) asserts.AssertBurninSubtitleTeletextSpacing(str) return str end function asserts.AssertHlsKeyProviderType(str) assert(str) assert(type(str) == "string", "Expected HlsKeyProviderType to be of type 'string'") end -- Indicates which type of key provider is used for encryption. function M.HlsKeyProviderType(str) asserts.AssertHlsKeyProviderType(str) return str end function asserts.AssertDashIsoHbbtvCompliance(str) assert(str) assert(type(str) == "string", "Expected DashIsoHbbtvCompliance to be of type 'string'") end -- Supports HbbTV specification as indicated function M.DashIsoHbbtvCompliance(str) asserts.AssertDashIsoHbbtvCompliance(str) return str end function asserts.AssertHlsProgramDateTime(str) assert(str) assert(type(str) == "string", "Expected HlsProgramDateTime to be of type 'string'") end -- Includes or excludes EXT-X-PROGRAM-DATE-TIME tag in .m3u8 manifest files. The value is calculated as follows: either the program date and time are initialized using the input timecode source, or the time is initialized using the input timecode source and the date is initialized using the timestamp_offset. function M.HlsProgramDateTime(str) asserts.AssertHlsProgramDateTime(str) return str end function asserts.AssertEac3DcFilter(str) assert(str) assert(type(str) == "string", "Expected Eac3DcFilter to be of type 'string'") end -- Activates a DC highpass filter for all input channels. function M.Eac3DcFilter(str) asserts.AssertEac3DcFilter(str) return str end function asserts.Assert__stringMin32Max32Pattern09aFAF32(str) assert(str) assert(type(str) == "string", "Expected __stringMin32Max32Pattern09aFAF32 to be of type 'string'") assert(#str <= 32, "Expected string to be max 32 characters") assert(#str >= 32, "Expected string to be min 32 characters") end -- function M.__stringMin32Max32Pattern09aFAF32(str) asserts.Assert__stringMin32Max32Pattern09aFAF32(str) return str end function asserts.AssertProresFramerateConversionAlgorithm(str) assert(str) assert(type(str) == "string", "Expected ProresFramerateConversionAlgorithm to be of type 'string'") end -- When set to INTERPOLATE, produces smoother motion during framerate conversion. function M.ProresFramerateConversionAlgorithm(str) asserts.AssertProresFramerateConversionAlgorithm(str) return str end function asserts.AssertH264QualityTuningLevel(str) assert(str) assert(type(str) == "string", "Expected H264QualityTuningLevel to be of type 'string'") end -- Use Quality tuning level (H264QualityTuningLevel) to specifiy whether to use fast single-pass, high-quality singlepass, or high-quality multipass video encoding. function M.H264QualityTuningLevel(str) asserts.AssertH264QualityTuningLevel(str) return str end function asserts.AssertRenewalType(str) assert(str) assert(type(str) == "string", "Expected RenewalType to be of type 'string'") end -- Specifies whether the pricing plan contract for your reserved queue automatically renews (AUTO_RENEW) or expires (EXPIRE) at the end of the contract period. function M.RenewalType(str) asserts.AssertRenewalType(str) return str end function asserts.AssertQueueStatus(str) assert(str) assert(type(str) == "string", "Expected QueueStatus to be of type 'string'") end -- Queues can be ACTIVE or PAUSED. If you pause a queue, jobs in that queue won't begin. Jobs that are running when you pause a queue continue to run until they finish or result in an error. function M.QueueStatus(str) asserts.AssertQueueStatus(str) return str end function asserts.AssertAacRawFormat(str) assert(str) assert(type(str) == "string", "Expected AacRawFormat to be of type 'string'") end -- Enables LATM/LOAS AAC output. Note that if you use LATM/LOAS AAC in an output, you must choose "No container" for the output container. function M.AacRawFormat(str) asserts.AssertAacRawFormat(str) return str end function asserts.AssertM2tsSegmentationMarkers(str) assert(str) assert(type(str) == "string", "Expected M2tsSegmentationMarkers to be of type 'string'") end -- Inserts segmentation markers at each segmentation_time period. rai_segstart sets the Random Access Indicator bit in the adaptation field. rai_adapt sets the RAI bit and adds the current timecode in the private data bytes. psi_segstart inserts PAT and PMT tables at the start of segments. ebp adds Encoder Boundary Point information to the adaptation field as per OpenCable specification OC-SP-EBP-I01-130118. ebp_legacy adds Encoder Boundary Point information to the adaptation field using a legacy proprietary format. function M.M2tsSegmentationMarkers(str) asserts.AssertM2tsSegmentationMarkers(str) return str end function asserts.AssertEac3CodingMode(str) assert(str) assert(type(str) == "string", "Expected Eac3CodingMode to be of type 'string'") end -- Dolby Digital Plus coding mode. Determines number of channels. function M.Eac3CodingMode(str) asserts.AssertEac3CodingMode(str) return str end function asserts.AssertCmafClientCache(str) assert(str) assert(type(str) == "string", "Expected CmafClientCache to be of type 'string'") end -- When set to ENABLED, sets #EXT-X-ALLOW-CACHE:no tag, which prevents client from saving media segments for later replay. function M.CmafClientCache(str) asserts.AssertCmafClientCache(str) return str end function asserts.AssertOutputSdt(str) assert(str) assert(type(str) == "string", "Expected OutputSdt to be of type 'string'") end -- Selects method of inserting SDT information into output stream. "Follow input SDT" copies SDT information from input stream to output stream. "Follow input SDT if present" copies SDT information from input stream to output stream if SDT information is present in the input, otherwise it will fall back on the user-defined values. Enter "SDT Manually" means user will enter the SDT information. "No SDT" means output stream will not contain SDT information. function M.OutputSdt(str) asserts.AssertOutputSdt(str) return str end function asserts.AssertCmafManifestDurationFormat(str) assert(str) assert(type(str) == "string", "Expected CmafManifestDurationFormat to be of type 'string'") end -- Indicates whether the output manifest should use floating point values for segment duration. function M.CmafManifestDurationFormat(str) asserts.AssertCmafManifestDurationFormat(str) return str end function asserts.AssertM2tsEbpPlacement(str) assert(str) assert(type(str) == "string", "Expected M2tsEbpPlacement to be of type 'string'") end -- Selects which PIDs to place EBP markers on. They can either be placed only on the video PID, or on both the video PID and all audio PIDs. Only applicable when EBP segmentation markers are is selected (segmentationMarkers is EBP or EBP_LEGACY). function M.M2tsEbpPlacement(str) asserts.AssertM2tsEbpPlacement(str) return str end function asserts.Assert__string(str) assert(str) assert(type(str) == "string", "Expected __string to be of type 'string'") end -- function M.__string(str) asserts.Assert__string(str) return str end function asserts.AssertH264GopBReference(str) assert(str) assert(type(str) == "string", "Expected H264GopBReference to be of type 'string'") end -- If enable, use reference B frames for GOP structures that have B frames > 1. function M.H264GopBReference(str) asserts.AssertH264GopBReference(str) return str end function asserts.AssertDvbSubtitleAlignment(str) assert(str) assert(type(str) == "string", "Expected DvbSubtitleAlignment to be of type 'string'") end -- If no explicit x_position or y_position is provided, setting alignment to centered will place the captions at the bottom center of the output. Similarly, setting a left alignment will align captions to the bottom left of the output. If x and y positions are given in conjunction with the alignment parameter, the font will be justified (either left or centered) relative to those coordinates. This option is not valid for source captions that are STL, 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match. function M.DvbSubtitleAlignment(str) asserts.AssertDvbSubtitleAlignment(str) return str end function asserts.Assert__stringMin3Max3PatternAZaZ3(str) assert(str) assert(type(str) == "string", "Expected __stringMin3Max3PatternAZaZ3 to be of type 'string'") assert(#str <= 3, "Expected string to be max 3 characters") assert(#str >= 3, "Expected string to be min 3 characters") end -- function M.__stringMin3Max3PatternAZaZ3(str) asserts.Assert__stringMin3Max3PatternAZaZ3(str) return str end function asserts.AssertNoiseReducerFilter(str) assert(str) assert(type(str) == "string", "Expected NoiseReducerFilter to be of type 'string'") end -- Use Noise reducer filter (NoiseReducerFilter) to select one of the following spatial image filtering functions. To use this setting, you must also enable Noise reducer (NoiseReducer). * Bilateral is an edge preserving noise reduction filter. * Mean (softest), Gaussian, Lanczos, and Sharpen (sharpest) are convolution filters. * Conserve is a min/max noise reduction filter. * Spatial is a frequency-domain filter based on JND principles. function M.NoiseReducerFilter(str) asserts.AssertNoiseReducerFilter(str) return str end function asserts.AssertCmafKeyProviderType(str) assert(str) assert(type(str) == "string", "Expected CmafKeyProviderType to be of type 'string'") end -- Indicates which type of key provider is used for encryption. function M.CmafKeyProviderType(str) asserts.AssertCmafKeyProviderType(str) return str end function asserts.AssertH265CodecProfile(str) assert(str) assert(type(str) == "string", "Expected H265CodecProfile to be of type 'string'") end -- Represents the Profile and Tier, per the HEVC (H.265) specification. Selections are grouped as [Profile] / [Tier], so "Main/High" represents Main Profile with High Tier. 4:2:2 profiles are only available with the HEVC 4:2:2 License. function M.H265CodecProfile(str) asserts.AssertH265CodecProfile(str) return str end function asserts.AssertEac3StereoDownmix(str) assert(str) assert(type(str) == "string", "Expected Eac3StereoDownmix to be of type 'string'") end -- Stereo downmix preference. Only used for 3/2 coding mode. function M.Eac3StereoDownmix(str) asserts.AssertEac3StereoDownmix(str) return str end function asserts.AssertDeinterlacerMode(str) assert(str) assert(type(str) == "string", "Expected DeinterlacerMode to be of type 'string'") end -- Use Deinterlacer (DeinterlaceMode) to choose how the service will do deinterlacing. Default is Deinterlace. - Deinterlace converts interlaced to progressive. - Inverse telecine converts Hard Telecine 29.97i to progressive 23.976p. - Adaptive auto-detects and converts to progressive. function M.DeinterlacerMode(str) asserts.AssertDeinterlacerMode(str) return str end function asserts.AssertCaptionDestinationType(str) assert(str) assert(type(str) == "string", "Expected CaptionDestinationType to be of type 'string'") end -- Type of Caption output, including Burn-In, Embedded, SCC, SRT, TTML, WebVTT, DVB-Sub, Teletext. function M.CaptionDestinationType(str) asserts.AssertCaptionDestinationType(str) return str end function asserts.Assert__stringPattern01D20305D205D(str) assert(str) assert(type(str) == "string", "Expected __stringPattern01D20305D205D to be of type 'string'") end -- function M.__stringPattern01D20305D205D(str) asserts.Assert__stringPattern01D20305D205D(str) return str end function asserts.AssertEac3AttenuationControl(str) assert(str) assert(type(str) == "string", "Expected Eac3AttenuationControl to be of type 'string'") end -- If set to ATTENUATE_3_DB, applies a 3 dB attenuation to the surround channels. Only used for 3/2 coding mode. function M.Eac3AttenuationControl(str) asserts.AssertEac3AttenuationControl(str) return str end function asserts.AssertBurninSubtitleFontColor(str) assert(str) assert(type(str) == "string", "Expected BurninSubtitleFontColor to be of type 'string'") end -- Specifies the color of the burned-in captions. This option is not valid for source captions that are STL, 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match. function M.BurninSubtitleFontColor(str) asserts.AssertBurninSubtitleFontColor(str) return str end function asserts.AssertEac3PassthroughControl(str) assert(str) assert(type(str) == "string", "Expected Eac3PassthroughControl to be of type 'string'") end -- When set to WHEN_POSSIBLE, input DD+ audio will be passed through if it is present on the input. this detection is dynamic over the life of the transcode. Inputs that alternate between DD+ and non-DD+ content will have a consistent DD+ output as the system alternates between passthrough and encoding. function M.Eac3PassthroughControl(str) asserts.AssertEac3PassthroughControl(str) return str end function asserts.AssertAc3CodingMode(str) assert(str) assert(type(str) == "string", "Expected Ac3CodingMode to be of type 'string'") end -- Dolby Digital coding mode. Determines number of channels. function M.Ac3CodingMode(str) asserts.AssertAc3CodingMode(str) return str end function asserts.AssertHlsCodecSpecification(str) assert(str) assert(type(str) == "string", "Expected HlsCodecSpecification to be of type 'string'") end -- Specification to use (RFC-6381 or the default RFC-4281) during m3u8 playlist generation. function M.HlsCodecSpecification(str) asserts.AssertHlsCodecSpecification(str) return str end function asserts.AssertAfdSignaling(str) assert(str) assert(type(str) == "string", "Expected AfdSignaling to be of type 'string'") end -- This setting only applies to H.264 and MPEG2 outputs. Use Insert AFD signaling (AfdSignaling) to specify whether the service includes AFD values in the output video data and what those values are. * Choose None to remove all AFD values from this output. * Choose Fixed to ignore input AFD values and instead encode the value specified in the job. * Choose Auto to calculate output AFD values based on the input AFD scaler data. function M.AfdSignaling(str) asserts.AssertAfdSignaling(str) return str end function asserts.AssertF4vMoovPlacement(str) assert(str) assert(type(str) == "string", "Expected F4vMoovPlacement to be of type 'string'") end -- If set to PROGRESSIVE_DOWNLOAD, the MOOV atom is relocated to the beginning of the archive as required for progressive downloading. Otherwise it is placed normally at the end. function M.F4vMoovPlacement(str) asserts.AssertF4vMoovPlacement(str) return str end function asserts.AssertHlsManifestDurationFormat(str) assert(str) assert(type(str) == "string", "Expected HlsManifestDurationFormat to be of type 'string'") end -- Indicates whether the output manifest should use floating point values for segment duration. function M.HlsManifestDurationFormat(str) asserts.AssertHlsManifestDurationFormat(str) return str end function asserts.AssertH264RateControlMode(str) assert(str) assert(type(str) == "string", "Expected H264RateControlMode to be of type 'string'") end -- Use this setting to specify whether this output has a variable bitrate (VBR), constant bitrate (CBR) or quality-defined variable bitrate (QVBR). function M.H264RateControlMode(str) asserts.AssertH264RateControlMode(str) return str end function asserts.Assert__stringPatternS3MM2VVMMPPEEGGAAVVIIMMPP4FFLLVVMMPPTTMMPPGGMM4VVTTRRPPFF4VVMM2TTSSTTSS264HH264MMKKVVMMOOVVMMTTSSMM2TTWWMMVVAASSFFVVOOBB3GGPP3GGPPPPMMXXFFDDIIVVXXXXVVIIDDRRAAWWDDVVGGXXFFMM1VV3GG2VVMMFFMM3UU8LLCCHHGGXXFFMMPPEEGG2MMXXFFMMPPEEGG2MMXXFFHHDDWWAAVVYY4MM(str) assert(str) assert(type(str) == "string", "Expected __stringPatternS3MM2VVMMPPEEGGAAVVIIMMPP4FFLLVVMMPPTTMMPPGGMM4VVTTRRPPFF4VVMM2TTSSTTSS264HH264MMKKVVMMOOVVMMTTSSMM2TTWWMMVVAASSFFVVOOBB3GGPP3GGPPPPMMXXFFDDIIVVXXXXVVIIDDRRAAWWDDVVGGXXFFMM1VV3GG2VVMMFFMM3UU8LLCCHHGGXXFFMMPPEEGG2MMXXFFMMPPEEGG2MMXXFFHHDDWWAAVVYY4MM to be of type 'string'") end -- function M.__stringPatternS3MM2VVMMPPEEGGAAVVIIMMPP4FFLLVVMMPPTTMMPPGGMM4VVTTRRPPFF4VVMM2TTSSTTSS264HH264MMKKVVMMOOVVMMTTSSMM2TTWWMMVVAASSFFVVOOBB3GGPP3GGPPPPMMXXFFDDIIVVXXXXVVIIDDRRAAWWDDVVGGXXFFMM1VV3GG2VVMMFFMM3UU8LLCCHHGGXXFFMMPPEEGG2MMXXFFMMPPEEGG2MMXXFFHHDDWWAAVVYY4MM(str) asserts.Assert__stringPatternS3MM2VVMMPPEEGGAAVVIIMMPP4FFLLVVMMPPTTMMPPGGMM4VVTTRRPPFF4VVMM2TTSSTTSS264HH264MMKKVVMMOOVVMMTTSSMM2TTWWMMVVAASSFFVVOOBB3GGPP3GGPPPPMMXXFFDDIIVVXXXXVVIIDDRRAAWWDDVVGGXXFFMM1VV3GG2VVMMFFMM3UU8LLCCHHGGXXFFMMPPEEGG2MMXXFFMMPPEEGG2MMXXFFHHDDWWAAVVYY4MM(str) return str end function asserts.AssertH265FramerateConversionAlgorithm(str) assert(str) assert(type(str) == "string", "Expected H265FramerateConversionAlgorithm to be of type 'string'") end -- When set to INTERPOLATE, produces smoother motion during framerate conversion. function M.H265FramerateConversionAlgorithm(str) asserts.AssertH265FramerateConversionAlgorithm(str) return str end function asserts.AssertAacRateControlMode(str) assert(str) assert(type(str) == "string", "Expected AacRateControlMode to be of type 'string'") end -- Rate Control Mode. function M.AacRateControlMode(str) asserts.AssertAacRateControlMode(str) return str end function asserts.AssertCaptionSourceType(str) assert(str) assert(type(str) == "string", "Expected CaptionSourceType to be of type 'string'") end -- Use Source (SourceType) to identify the format of your input captions. The service cannot auto-detect caption format. function M.CaptionSourceType(str) asserts.AssertCaptionSourceType(str) return str end function asserts.Assert__stringPatternAZaZ0902(str) assert(str) assert(type(str) == "string", "Expected __stringPatternAZaZ0902 to be of type 'string'") end -- function M.__stringPatternAZaZ0902(str) asserts.Assert__stringPatternAZaZ0902(str) return str end function asserts.AssertMovPaddingControl(str) assert(str) assert(type(str) == "string", "Expected MovPaddingControl to be of type 'string'") end -- If set to OMNEON, inserts Omneon-compatible padding function M.MovPaddingControl(str) asserts.AssertMovPaddingControl(str) return str end function asserts.AssertColorSpaceConversion(str) assert(str) assert(type(str) == "string", "Expected ColorSpaceConversion to be of type 'string'") end -- Determines if colorspace conversion will be performed. If set to _None_, no conversion will be performed. If _Force 601_ or _Force 709_ are selected, conversion will be performed for inputs with differing colorspaces. An input's colorspace can be specified explicitly in the "Video Selector":#inputs-video_selector if necessary. function M.ColorSpaceConversion(str) asserts.AssertColorSpaceConversion(str) return str end function asserts.AssertEac3LfeFilter(str) assert(str) assert(type(str) == "string", "Expected Eac3LfeFilter to be of type 'string'") end -- Applies a 120Hz lowpass filter to the LFE channel prior to encoding. Only valid with 3_2_LFE coding mode. function M.Eac3LfeFilter(str) asserts.AssertEac3LfeFilter(str) return str end function asserts.AssertH265AlternateTransferFunctionSei(str) assert(str) assert(type(str) == "string", "Expected H265AlternateTransferFunctionSei to be of type 'string'") end -- Enables Alternate Transfer Function SEI message for outputs using Hybrid Log Gamma (HLG) Electro-Optical Transfer Function (EOTF). function M.H265AlternateTransferFunctionSei(str) asserts.AssertH265AlternateTransferFunctionSei(str) return str end function asserts.AssertHlsTimedMetadataId3Frame(str) assert(str) assert(type(str) == "string", "Expected HlsTimedMetadataId3Frame to be of type 'string'") end -- Indicates ID3 frame that has the timecode. function M.HlsTimedMetadataId3Frame(str) asserts.AssertHlsTimedMetadataId3Frame(str) return str end function asserts.AssertMp4FreeSpaceBox(str) assert(str) assert(type(str) == "string", "Expected Mp4FreeSpaceBox to be of type 'string'") end -- Inserts a free-space box immediately after the moov box. function M.Mp4FreeSpaceBox(str) asserts.AssertMp4FreeSpaceBox(str) return str end function asserts.AssertHlsEncryptionType(str) assert(str) assert(type(str) == "string", "Expected HlsEncryptionType to be of type 'string'") end -- Encrypts the segments with the given encryption scheme. Leave blank to disable. Selecting 'Disabled' in the web interface also disables encryption. function M.HlsEncryptionType(str) asserts.AssertHlsEncryptionType(str) return str end function asserts.AssertInputFilterEnable(str) assert(str) assert(type(str) == "string", "Expected InputFilterEnable to be of type 'string'") end -- Use Filter enable (InputFilterEnable) to specify how the transcoding service applies the denoise and deblock filters. You must also enable the filters separately, with Denoise (InputDenoiseFilter) and Deblock (InputDeblockFilter). * Auto - The transcoding service determines whether to apply filtering, depending on input type and quality. * Disable - The input is not filtered. This is true even if you use the API to enable them in (InputDeblockFilter) and (InputDeblockFilter). * Force - The in put is filtered regardless of input type. function M.InputFilterEnable(str) asserts.AssertInputFilterEnable(str) return str end function asserts.AssertCmafSegmentControl(str) assert(str) assert(type(str) == "string", "Expected CmafSegmentControl to be of type 'string'") end -- When set to SINGLE_FILE, a single output file is generated, which is internally segmented using the Fragment Length and Segment Length. When set to SEGMENTED_FILES, separate segment files will be created. function M.CmafSegmentControl(str) asserts.AssertCmafSegmentControl(str) return str end function asserts.AssertH265SampleAdaptiveOffsetFilterMode(str) assert(str) assert(type(str) == "string", "Expected H265SampleAdaptiveOffsetFilterMode to be of type 'string'") end -- Specify Sample Adaptive Offset (SAO) filter strength. Adaptive mode dynamically selects best strength based on content function M.H265SampleAdaptiveOffsetFilterMode(str) asserts.AssertH265SampleAdaptiveOffsetFilterMode(str) return str end function asserts.AssertColorSpace(str) assert(str) assert(type(str) == "string", "Expected ColorSpace to be of type 'string'") end -- If your input video has accurate color space metadata, or if you don't know about color space, leave this set to the default value FOLLOW. The service will automatically detect your input color space. If your input video has metadata indicating the wrong color space, or if your input video is missing color space metadata that should be there, specify the accurate color space here. If you choose HDR10, you can also correct inaccurate color space coefficients, using the HDR master display information controls. You must also set Color space usage (ColorSpaceUsage) to FORCE for the service to use these values. function M.ColorSpace(str) asserts.AssertColorSpace(str) return str end function asserts.AssertEac3BitstreamMode(str) assert(str) assert(type(str) == "string", "Expected Eac3BitstreamMode to be of type 'string'") end -- Specifies the "Bitstream Mode" (bsmod) for the emitted E-AC-3 stream. See ATSC A/52-2012 (Annex E) for background on these values. function M.Eac3BitstreamMode(str) asserts.AssertEac3BitstreamMode(str) return str end function asserts.AssertOutputGroupType(str) assert(str) assert(type(str) == "string", "Expected OutputGroupType to be of type 'string'") end -- Type of output group (File group, Apple HLS, DASH ISO, Microsoft Smooth Streaming, CMAF) function M.OutputGroupType(str) asserts.AssertOutputGroupType(str) return str end function asserts.AssertMpeg2Syntax(str) assert(str) assert(type(str) == "string", "Expected Mpeg2Syntax to be of type 'string'") end -- Produces a Type D-10 compatible bitstream (SMPTE 356M-2001). function M.Mpeg2Syntax(str) asserts.AssertMpeg2Syntax(str) return str end function asserts.AssertM3u8NielsenId3(str) assert(str) assert(type(str) == "string", "Expected M3u8NielsenId3 to be of type 'string'") end -- If INSERT, Nielsen inaudible tones for media tracking will be detected in the input audio and an equivalent ID3 tag will be inserted in the output. function M.M3u8NielsenId3(str) asserts.AssertM3u8NielsenId3(str) return str end function asserts.AssertDvbSubtitleFontColor(str) assert(str) assert(type(str) == "string", "Expected DvbSubtitleFontColor to be of type 'string'") end -- Specifies the color of the burned-in captions. This option is not valid for source captions that are STL, 608/embedded or teletext. These source settings are already pre-defined by the caption stream. All burn-in and DVB-Sub font settings must match. function M.DvbSubtitleFontColor(str) asserts.AssertDvbSubtitleFontColor(str) return str end function asserts.AssertJobStatus(str) assert(str) assert(type(str) == "string", "Expected JobStatus to be of type 'string'") end -- A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR. function M.JobStatus(str) asserts.AssertJobStatus(str) return str end function asserts.AssertMpeg2AdaptiveQuantization(str) assert(str) assert(type(str) == "string", "Expected Mpeg2AdaptiveQuantization to be of type 'string'") end -- Adaptive quantization. Allows intra-frame quantizers to vary to improve visual quality. function M.Mpeg2AdaptiveQuantization(str) asserts.AssertMpeg2AdaptiveQuantization(str) return str end function asserts.AssertH264FramerateControl(str) assert(str) assert(type(str) == "string", "Expected H264FramerateControl to be of type 'string'") end -- If you are using the console, use the Framerate setting to specify the framerate for this output. If you want to keep the same framerate as the input video, choose Follow source. If you want to do framerate conversion, choose a framerate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your framerate as a fraction. If you are creating your transcoding job specification as a JSON file without the console, use FramerateControl to specify which value the service uses for the framerate for this output. Choose INITIALIZE_FROM_SOURCE if you want the service to use the framerate from the input. Choose SPECIFIED if you want the service to use the framerate you specify in the settings FramerateNumerator and FramerateDenominator. function M.H264FramerateControl(str) asserts.AssertH264FramerateControl(str) return str end function asserts.AssertMpeg2FramerateConversionAlgorithm(str) assert(str) assert(type(str) == "string", "Expected Mpeg2FramerateConversionAlgorithm to be of type 'string'") end -- When set to INTERPOLATE, produces smoother motion during framerate conversion. function M.Mpeg2FramerateConversionAlgorithm(str) asserts.AssertMpeg2FramerateConversionAlgorithm(str) return str end function asserts.AssertWavFormat(str) assert(str) assert(type(str) == "string", "Expected WavFormat to be of type 'string'") end -- The service defaults to using RIFF for WAV outputs. If your output audio is likely to exceed 4 GB in file size, or if you otherwise need the extended support of the RF64 format, set your output WAV file format to RF64. function M.WavFormat(str) asserts.AssertWavFormat(str) return str end function asserts.AssertCmafStreamInfResolution(str) assert(str) assert(type(str) == "string", "Expected CmafStreamInfResolution to be of type 'string'") end -- Include or exclude RESOLUTION attribute for video in EXT-X-STREAM-INF tag of variant manifest. function M.CmafStreamInfResolution(str) asserts.AssertCmafStreamInfResolution(str) return str end function asserts.AssertCmafEncryptionType(str) assert(str) assert(type(str) == "string", "Expected CmafEncryptionType to be of type 'string'") end -- Encrypts the segments with the given encryption scheme. Leave blank to disable. Selecting 'Disabled' in the web interface also disables encryption. function M.CmafEncryptionType(str) asserts.AssertCmafEncryptionType(str) return str end function asserts.Assert__stringPattern09aFAF809aFAF409aFAF409aFAF409aFAF12(str) assert(str) assert(type(str) == "string", "Expected __stringPattern09aFAF809aFAF409aFAF409aFAF409aFAF12 to be of type 'string'") end -- function M.__stringPattern09aFAF809aFAF409aFAF409aFAF409aFAF12(str) asserts.Assert__stringPattern09aFAF809aFAF409aFAF409aFAF409aFAF12(str) return str end function asserts.Assert__stringPatternHttps(str) assert(str) assert(type(str) == "string", "Expected __stringPatternHttps to be of type 'string'") end -- function M.__stringPatternHttps(str) asserts.Assert__stringPatternHttps(str) return str end function asserts.AssertMsSmoothAudioDeduplication(str) assert(str) assert(type(str) == "string", "Expected MsSmoothAudioDeduplication to be of type 'string'") end -- COMBINE_DUPLICATE_STREAMS combines identical audio encoding settings across a Microsoft Smooth output group into a single audio stream. function M.MsSmoothAudioDeduplication(str) asserts.AssertMsSmoothAudioDeduplication(str) return str end function asserts.AssertEac3SurroundExMode(str) assert(str) assert(type(str) == "string", "Expected Eac3SurroundExMode to be of type 'string'") end -- When encoding 3/2 audio, sets whether an extra center back surround channel is matrix encoded into the left and right surround channels. function M.Eac3SurroundExMode(str) asserts.AssertEac3SurroundExMode(str) return str end function asserts.AssertEmbeddedConvert608To708(str) assert(str) assert(type(str) == "string", "Expected EmbeddedConvert608To708 to be of type 'string'") end -- When set to UPCONVERT, 608 data is both passed through via the "608 compatibility bytes" fields of the 708 wrapper as well as translated into 708. 708 data present in the source content will be discarded. function M.EmbeddedConvert608To708(str) asserts.AssertEmbeddedConvert608To708(str) return str end function asserts.AssertAc3DynamicRangeCompressionProfile(str) assert(str) assert(type(str) == "string", "Expected Ac3DynamicRangeCompressionProfile to be of type 'string'") end -- If set to FILM_STANDARD, adds dynamic range compression signaling to the output bitstream as defined in the Dolby Digital specification. function M.Ac3DynamicRangeCompressionProfile(str) asserts.AssertAc3DynamicRangeCompressionProfile(str) return str end function asserts.AssertH265TemporalIds(str) assert(str) assert(type(str) == "string", "Expected H265TemporalIds to be of type 'string'") end -- Enables temporal layer identifiers in the encoded bitstream. Up to 3 layers are supported depending on GOP structure: I- and P-frames form one layer, reference B-frames can form a second layer and non-reference b-frames can form a third layer. Decoders can optionally decode only the lower temporal layers to generate a lower frame rate output. For example, given a bitstream with temporal IDs and with b-frames = 1 (i.e. IbPbPb display order), a decoder could decode all the frames for full frame rate output or only the I and P frames (lowest temporal layer) for a half frame rate output. function M.H265TemporalIds(str) asserts.AssertH265TemporalIds(str) return str end function asserts.AssertScalingBehavior(str) assert(str) assert(type(str) == "string", "Expected ScalingBehavior to be of type 'string'") end -- Applies only if your input aspect ratio is different from your output aspect ratio. Enable Stretch to output (StretchToOutput) to have the service stretch your video image to fit. Leave this setting disabled to allow the service to letterbox your video instead. This setting overrides any positioning value you specify elsewhere in the job. function M.ScalingBehavior(str) asserts.AssertScalingBehavior(str) return str end function asserts.AssertH264FlickerAdaptiveQuantization(str) assert(str) assert(type(str) == "string", "Expected H264FlickerAdaptiveQuantization to be of type 'string'") end -- Adjust quantization within each frame to reduce flicker or 'pop' on I-frames. function M.H264FlickerAdaptiveQuantization(str) asserts.AssertH264FlickerAdaptiveQuantization(str) return str end function asserts.AssertAudioTypeControl(str) assert(str) assert(type(str) == "string", "Expected AudioTypeControl to be of type 'string'") end -- When set to FOLLOW_INPUT, if the input contains an ISO 639 audio_type, then that value is passed through to the output. If the input contains no ISO 639 audio_type, the value in Audio Type is included in the output. Otherwise the value in Audio Type is included in the output. Note that this field and audioType are both ignored if audioDescriptionBroadcasterMix is set to BROADCASTER_MIXED_AD. function M.AudioTypeControl(str) asserts.AssertAudioTypeControl(str) return str end function asserts.AssertEac3MetadataControl(str) assert(str) assert(type(str) == "string", "Expected Eac3MetadataControl to be of type 'string'") end -- When set to FOLLOW_INPUT, encoder metadata will be sourced from the DD, DD+, or DolbyE decoder that supplied this audio data. If audio was not supplied from one of these streams, then the static metadata settings will be used. function M.Eac3MetadataControl(str) asserts.AssertEac3MetadataControl(str) return str end function asserts.AssertMpeg2SceneChangeDetect(str) assert(str) assert(type(str) == "string", "Expected Mpeg2SceneChangeDetect to be of type 'string'") end -- Scene change detection (inserts I-frames on scene changes). function M.Mpeg2SceneChangeDetect(str) asserts.AssertMpeg2SceneChangeDetect(str) return str end function asserts.AssertCmafInitializationVectorInManifest(str) assert(str) assert(type(str) == "string", "Expected CmafInitializationVectorInManifest to be of type 'string'") end -- The Initialization Vector is a 128-bit number used in conjunction with the key for encrypting blocks. If set to INCLUDE, Initialization Vector is listed in the manifest. Otherwise Initialization Vector is not in the manifest. function M.CmafInitializationVectorInManifest(str) asserts.AssertCmafInitializationVectorInManifest(str) return str end function asserts.AssertM2tsRateMode(str) assert(str) assert(type(str) == "string", "Expected M2tsRateMode to be of type 'string'") end -- When set to CBR, inserts null packets into transport stream to fill specified bitrate. When set to VBR, the bitrate setting acts as the maximum bitrate, but the output will not be padded up to that bitrate. function M.M2tsRateMode(str) asserts.AssertM2tsRateMode(str) return str end function asserts.AssertMovMpeg2FourCCControl(str) assert(str) assert(type(str) == "string", "Expected MovMpeg2FourCCControl to be of type 'string'") end -- When set to XDCAM, writes MPEG2 video streams into the QuickTime file using XDCAM fourcc codes. This increases compatibility with Apple editors and players, but may decrease compatibility with other players. Only applicable when the video codec is MPEG2. function M.MovMpeg2FourCCControl(str) asserts.AssertMovMpeg2FourCCControl(str) return str end function asserts.Assert__stringMin3Max3Pattern1809aFAF09aEAE(str) assert(str) assert(type(str) == "string", "Expected __stringMin3Max3Pattern1809aFAF09aEAE to be of type 'string'") assert(#str <= 3, "Expected string to be max 3 characters") assert(#str >= 3, "Expected string to be min 3 characters") end -- function M.__stringMin3Max3Pattern1809aFAF09aEAE(str) asserts.Assert__stringMin3Max3Pattern1809aFAF09aEAE(str) return str end function asserts.AssertM2tsScte35Source(str) assert(str) assert(type(str) == "string", "Expected M2tsScte35Source to be of type 'string'") end -- Enables SCTE-35 passthrough (scte35Source) to pass any SCTE-35 signals from input to output. function M.M2tsScte35Source(str) asserts.AssertM2tsScte35Source(str) return str end function asserts.AssertBillingTagsSource(str) assert(str) assert(type(str) == "string", "Expected BillingTagsSource to be of type 'string'") end -- Optional. Choose a tag type that AWS Billing and Cost Management will use to sort your AWS Elemental MediaConvert costs on any billing report that you set up. Any transcoding outputs that don't have an associated tag will appear in your billing report unsorted. If you don't choose a valid value for this field, your job outputs will appear on the billing report unsorted. function M.BillingTagsSource(str) asserts.AssertBillingTagsSource(str) return str end function asserts.AssertEac3LfeControl(str) assert(str) assert(type(str) == "string", "Expected Eac3LfeControl to be of type 'string'") end -- When encoding 3/2 audio, controls whether the LFE channel is enabled function M.Eac3LfeControl(str) asserts.AssertEac3LfeControl(str) return str end function asserts.AssertHlsInitializationVectorInManifest(str) assert(str) assert(type(str) == "string", "Expected HlsInitializationVectorInManifest to be of type 'string'") end -- The Initialization Vector is a 128-bit number used in conjunction with the key for encrypting blocks. If set to INCLUDE, Initialization Vector is listed in the manifest. Otherwise Initialization Vector is not in the manifest. function M.HlsInitializationVectorInManifest(str) asserts.AssertHlsInitializationVectorInManifest(str) return str end function asserts.AssertH265QualityTuningLevel(str) assert(str) assert(type(str) == "string", "Expected H265QualityTuningLevel to be of type 'string'") end -- Use Quality tuning level (H265QualityTuningLevel) to specifiy whether to use fast single-pass, high-quality singlepass, or high-quality multipass video encoding. function M.H265QualityTuningLevel(str) asserts.AssertH265QualityTuningLevel(str) return str end function asserts.AssertAudioNormalizationPeakCalculation(str) assert(str) assert(type(str) == "string", "Expected AudioNormalizationPeakCalculation to be of type 'string'") end -- If set to TRUE_PEAK, calculate and log the TruePeak for each output's audio track loudness. function M.AudioNormalizationPeakCalculation(str) asserts.AssertAudioNormalizationPeakCalculation(str) return str end function asserts.Assert__stringMin14PatternS3SccSCCTtmlTTMLDfxpDFXPStlSTLSrtSRTSmiSMI(str) assert(str) assert(type(str) == "string", "Expected __stringMin14PatternS3SccSCCTtmlTTMLDfxpDFXPStlSTLSrtSRTSmiSMI to be of type 'string'") assert(#str >= 14, "Expected string to be min 14 characters") end -- function M.__stringMin14PatternS3SccSCCTtmlTTMLDfxpDFXPStlSTLSrtSRTSmiSMI(str) asserts.Assert__stringMin14PatternS3SccSCCTtmlTTMLDfxpDFXPStlSTLSrtSRTSmiSMI(str) return str end function asserts.AssertAc3BitstreamMode(str) assert(str) assert(type(str) == "string", "Expected Ac3BitstreamMode to be of type 'string'") end -- Specifies the "Bitstream Mode" (bsmod) for the emitted AC-3 stream. See ATSC A/52-2012 for background on these values. function M.Ac3BitstreamMode(str) asserts.AssertAc3BitstreamMode(str) return str end function asserts.AssertH265Tiles(str) assert(str) assert(type(str) == "string", "Expected H265Tiles to be of type 'string'") end -- Enable use of tiles, allowing horizontal as well as vertical subdivision of the encoded pictures. function M.H265Tiles(str) asserts.AssertH265Tiles(str) return str end function asserts.AssertMpeg2RateControlMode(str) assert(str) assert(type(str) == "string", "Expected Mpeg2RateControlMode to be of type 'string'") end -- Use Rate control mode (Mpeg2RateControlMode) to specifiy whether the bitrate is variable (vbr) or constant (cbr). function M.Mpeg2RateControlMode(str) asserts.AssertMpeg2RateControlMode(str) return str end function asserts.AssertMpeg2ParControl(str) assert(str) assert(type(str) == "string", "Expected Mpeg2ParControl to be of type 'string'") end -- Using the API, enable ParFollowSource if you want the service to use the pixel aspect ratio from the input. Using the console, do this by choosing Follow source for Pixel aspect ratio. function M.Mpeg2ParControl(str) asserts.AssertMpeg2ParControl(str) return str end function asserts.AssertH264CodecLevel(str) assert(str) assert(type(str) == "string", "Expected H264CodecLevel to be of type 'string'") end -- H.264 Level. function M.H264CodecLevel(str) asserts.AssertH264CodecLevel(str) return str end function asserts.AssertAudioDefaultSelection(str) assert(str) assert(type(str) == "string", "Expected AudioDefaultSelection to be of type 'string'") end -- Enable this setting on one audio selector to set it as the default for the job. The service uses this default for outputs where it can't find the specified input audio. If you don't set a default, those outputs have no audio. function M.AudioDefaultSelection(str) asserts.AssertAudioDefaultSelection(str) return str end function asserts.AssertTtmlStylePassthrough(str) assert(str) assert(type(str) == "string", "Expected TtmlStylePassthrough to be of type 'string'") end -- Pass through style and position information from a TTML-like input source (TTML, SMPTE-TT, CFF-TT) to the CFF-TT output or TTML output. function M.TtmlStylePassthrough(str) asserts.AssertTtmlStylePassthrough(str) return str end function asserts.AssertMp4CslgAtom(str) assert(str) assert(type(str) == "string", "Expected Mp4CslgAtom to be of type 'string'") end -- When enabled, file composition times will start at zero, composition times in the 'ctts' (composition time to sample) box for B-frames will be negative, and a 'cslg' (composition shift least greatest) box will be included per 14496-1 amendment 1. This improves compatibility with Apple players and tools. function M.Mp4CslgAtom(str) asserts.AssertMp4CslgAtom(str) return str end function asserts.AssertH265SlowPal(str) assert(str) assert(type(str) == "string", "Expected H265SlowPal to be of type 'string'") end -- Enables Slow PAL rate conversion. 23.976fps and 24fps input is relabeled as 25fps, and audio is sped up correspondingly. function M.H265SlowPal(str) asserts.AssertH265SlowPal(str) return str end function asserts.AssertH265RateControlMode(str) assert(str) assert(type(str) == "string", "Expected H265RateControlMode to be of type 'string'") end -- Use this setting to specify whether this output has a variable bitrate (VBR), constant bitrate (CBR) or quality-defined variable bitrate (QVBR). function M.H265RateControlMode(str) asserts.AssertH265RateControlMode(str) return str end function asserts.AssertHlsManifestCompression(str) assert(str) assert(type(str) == "string", "Expected HlsManifestCompression to be of type 'string'") end -- When set to GZIP, compresses HLS playlist. function M.HlsManifestCompression(str) asserts.AssertHlsManifestCompression(str) return str end function asserts.AssertAacCodingMode(str) assert(str) assert(type(str) == "string", "Expected AacCodingMode to be of type 'string'") end -- Mono (Audio Description), Mono, Stereo, or 5.1 channel layout. Valid values depend on rate control mode and profile. "1.0 - Audio Description (Receiver Mix)" setting receives a stereo description plus control track and emits a mono AAC encode of the description track, with control data emitted in the PES header as per ETSI TS 101 154 Annex E. function M.AacCodingMode(str) asserts.AssertAacCodingMode(str) return str end function asserts.AssertDropFrameTimecode(str) assert(str) assert(type(str) == "string", "Expected DropFrameTimecode to be of type 'string'") end -- Applies only to 29.97 fps outputs. When this feature is enabled, the service will use drop-frame timecode on outputs. If it is not possible to use drop-frame timecode, the system will fall back to non-drop-frame. This setting is enabled by default when Timecode insertion (TimecodeInsertion) is enabled. function M.DropFrameTimecode(str) asserts.AssertDropFrameTimecode(str) return str end function asserts.AssertAacVbrQuality(str) assert(str) assert(type(str) == "string", "Expected AacVbrQuality to be of type 'string'") end -- VBR Quality Level - Only used if rate_control_mode is VBR. function M.AacVbrQuality(str) asserts.AssertAacVbrQuality(str) return str end function asserts.Assert__stringPatternIdentityAZaZ26AZaZ09163(str) assert(str) assert(type(str) == "string", "Expected __stringPatternIdentityAZaZ26AZaZ09163 to be of type 'string'") end -- function M.__stringPatternIdentityAZaZ26AZaZ09163(str) asserts.Assert__stringPatternIdentityAZaZ26AZaZ09163(str) return str end function asserts.AssertH264SceneChangeDetect(str) assert(str) assert(type(str) == "string", "Expected H264SceneChangeDetect to be of type 'string'") end -- Scene change detection (inserts I-frames on scene changes). function M.H264SceneChangeDetect(str) asserts.AssertH264SceneChangeDetect(str) return str end function asserts.AssertDeinterlacerControl(str) assert(str) assert(type(str) == "string", "Expected DeinterlacerControl to be of type 'string'") end -- - When set to NORMAL (default), the deinterlacer does not convert frames that are tagged in metadata as progressive. It will only convert those that are tagged as some other type. - When set to FORCE_ALL_FRAMES, the deinterlacer converts every frame to progressive - even those that are already tagged as progressive. Turn Force mode on only if there is a good chance that the metadata has tagged frames as progressive when they are not progressive. Do not turn on otherwise; processing frames that are already progressive into progressive will probably result in lower quality video. function M.DeinterlacerControl(str) asserts.AssertDeinterlacerControl(str) return str end function asserts.AssertAudioLanguageCodeControl(str) assert(str) assert(type(str) == "string", "Expected AudioLanguageCodeControl to be of type 'string'") end -- Choosing FOLLOW_INPUT will cause the ISO 639 language code of the output to follow the ISO 639 language code of the input. The language specified for languageCode' will be used when USE_CONFIGURED is selected or when FOLLOW_INPUT is selected but there is no ISO 639 language code specified by the input. function M.AudioLanguageCodeControl(str) asserts.AssertAudioLanguageCodeControl(str) return str end function asserts.AssertH264ParControl(str) assert(str) assert(type(str) == "string", "Expected H264ParControl to be of type 'string'") end -- Using the API, enable ParFollowSource if you want the service to use the pixel aspect ratio from the input. Using the console, do this by choosing Follow source for Pixel aspect ratio. function M.H264ParControl(str) asserts.AssertH264ParControl(str) return str end function asserts.AssertH265AdaptiveQuantization(str) assert(str) assert(type(str) == "string", "Expected H265AdaptiveQuantization to be of type 'string'") end -- Adaptive quantization. Allows intra-frame quantizers to vary to improve visual quality. function M.H265AdaptiveQuantization(str) asserts.AssertH265AdaptiveQuantization(str) return str end function asserts.Assert__stringPatternWS(str) assert(str) assert(type(str) == "string", "Expected __stringPatternWS to be of type 'string'") end -- function M.__stringPatternWS(str) asserts.Assert__stringPatternWS(str) return str end function asserts.AssertH265Telecine(str) assert(str) assert(type(str) == "string", "Expected H265Telecine to be of type 'string'") end -- This field applies only if the Streams > Advanced > Framerate (framerate) field is set to 29.970. This field works with the Streams > Advanced > Preprocessors > Deinterlacer field (deinterlace_mode) and the Streams > Advanced > Interlaced Mode field (interlace_mode) to identify the scan type for the output: Progressive, Interlaced, Hard Telecine or Soft Telecine. - Hard: produces 29.97i output from 23.976 input. - Soft: produces 23.976; the player converts this output to 29.97i. function M.H265Telecine(str) asserts.AssertH265Telecine(str) return str end function asserts.AssertM2tsSegmentationStyle(str) assert(str) assert(type(str) == "string", "Expected M2tsSegmentationStyle to be of type 'string'") end -- The segmentation style parameter controls how segmentation markers are inserted into the transport stream. With avails, it is possible that segments may be truncated, which can influence where future segmentation markers are inserted. When a segmentation style of "reset_cadence" is selected and a segment is truncated due to an avail, we will reset the segmentation cadence. This means the subsequent segment will have a duration of of $segmentation_time seconds. When a segmentation style of "maintain_cadence" is selected and a segment is truncated due to an avail, we will not reset the segmentation cadence. This means the subsequent segment will likely be truncated as well. However, all segments after that will have a duration of $segmentation_time seconds. Note that EBP lookahead is a slight exception to this rule. function M.M2tsSegmentationStyle(str) asserts.AssertM2tsSegmentationStyle(str) return str end function asserts.AssertH264UnregisteredSeiTimecode(str) assert(str) assert(type(str) == "string", "Expected H264UnregisteredSeiTimecode to be of type 'string'") end -- Inserts timecode for each frame as 4 bytes of an unregistered SEI message. function M.H264UnregisteredSeiTimecode(str) asserts.AssertH264UnregisteredSeiTimecode(str) return str end function asserts.AssertH265FramerateControl(str) assert(str) assert(type(str) == "string", "Expected H265FramerateControl to be of type 'string'") end -- If you are using the console, use the Framerate setting to specify the framerate for this output. If you want to keep the same framerate as the input video, choose Follow source. If you want to do framerate conversion, choose a framerate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your framerate as a fraction. If you are creating your transcoding job sepecification as a JSON file without the console, use FramerateControl to specify which value the service uses for the framerate for this output. Choose INITIALIZE_FROM_SOURCE if you want the service to use the framerate from the input. Choose SPECIFIED if you want the service to use the framerate you specify in the settings FramerateNumerator and FramerateDenominator. function M.H265FramerateControl(str) asserts.AssertH265FramerateControl(str) return str end function asserts.AssertProresSlowPal(str) assert(str) assert(type(str) == "string", "Expected ProresSlowPal to be of type 'string'") end -- Enables Slow PAL rate conversion. 23.976fps and 24fps input is relabeled as 25fps, and audio is sped up correspondingly. function M.ProresSlowPal(str) asserts.AssertProresSlowPal(str) return str end function asserts.AssertVideoCodec(str) assert(str) assert(type(str) == "string", "Expected VideoCodec to be of type 'string'") end -- Type of video codec function M.VideoCodec(str) asserts.AssertVideoCodec(str) return str end function asserts.AssertEac3DynamicRangeCompressionLine(str) assert(str) assert(type(str) == "string", "Expected Eac3DynamicRangeCompressionLine to be of type 'string'") end -- Enables Dynamic Range Compression that restricts the absolute peak level for a signal. function M.Eac3DynamicRangeCompressionLine(str) asserts.AssertEac3DynamicRangeCompressionLine(str) return str end function asserts.AssertMovClapAtom(str) assert(str) assert(type(str) == "string", "Expected MovClapAtom to be of type 'string'") end -- When enabled, include 'clap' atom if appropriate for the video output settings. function M.MovClapAtom(str) asserts.AssertMovClapAtom(str) return str end function asserts.AssertColorMetadata(str) assert(str) assert(type(str) == "string", "Expected ColorMetadata to be of type 'string'") end -- Enable Insert color metadata (ColorMetadata) to include color metadata in this output. This setting is enabled by default. function M.ColorMetadata(str) asserts.AssertColorMetadata(str) return str end function asserts.AssertAacSpecification(str) assert(str) assert(type(str) == "string", "Expected AacSpecification to be of type 'string'") end -- Use MPEG-2 AAC instead of MPEG-4 AAC audio for raw or MPEG-2 Transport Stream containers. function M.AacSpecification(str) asserts.AssertAacSpecification(str) return str end function asserts.AssertM3u8PcrControl(str) assert(str) assert(type(str) == "string", "Expected M3u8PcrControl to be of type 'string'") end -- When set to PCR_EVERY_PES_PACKET a Program Clock Reference value is inserted for every Packetized Elementary Stream (PES) header. This parameter is effective only when the PCR PID is the same as the video or audio elementary stream. function M.M3u8PcrControl(str) asserts.AssertM3u8PcrControl(str) return str end function asserts.AssertHlsStreamInfResolution(str) assert(str) assert(type(str) == "string", "Expected HlsStreamInfResolution to be of type 'string'") end -- Include or exclude RESOLUTION attribute for video in EXT-X-STREAM-INF tag of variant manifest. function M.HlsStreamInfResolution(str) asserts.AssertHlsStreamInfResolution(str) return str end function asserts.AssertH265CodecLevel(str) assert(str) assert(type(str) == "string", "Expected H265CodecLevel to be of type 'string'") end -- H.265 Level. function M.H265CodecLevel(str) asserts.AssertH265CodecLevel(str) return str end function asserts.Assert__stringMin1(str) assert(str) assert(type(str) == "string", "Expected __stringMin1 to be of type 'string'") assert(#str >= 1, "Expected string to be min 1 characters") end -- function M.__stringMin1(str) asserts.Assert__stringMin1(str) return str end function asserts.AssertDescribeEndpointsMode(str) assert(str) assert(type(str) == "string", "Expected DescribeEndpointsMode to be of type 'string'") end -- Optional field, defaults to DEFAULT. Specify DEFAULT for this operation to return your endpoints if any exist, or to create an endpoint for you and return it if one doesn't already exist. Specify GET_ONLY to return your endpoints if any exist, or an empty list if none exist. function M.DescribeEndpointsMode(str) asserts.AssertDescribeEndpointsMode(str) return str end function asserts.AssertQueueListBy(str) assert(str) assert(type(str) == "string", "Expected QueueListBy to be of type 'string'") end -- Optional. When you request a list of queues, you can choose to list them alphabetically by NAME or chronologically by CREATION_DATE. If you don't specify, the service will list them by creation date. function M.QueueListBy(str) asserts.AssertQueueListBy(str) return str end function asserts.AssertH264SpatialAdaptiveQuantization(str) assert(str) assert(type(str) == "string", "Expected H264SpatialAdaptiveQuantization to be of type 'string'") end -- Adjust quantization within each frame based on spatial variation of content complexity. function M.H264SpatialAdaptiveQuantization(str) asserts.AssertH264SpatialAdaptiveQuantization(str) return str end function asserts.AssertH264InterlaceMode(str) assert(str) assert(type(str) == "string", "Expected H264InterlaceMode to be of type 'string'") end -- Use Interlace mode (InterlaceMode) to choose the scan line type for the output. * Top Field First (TOP_FIELD) and Bottom Field First (BOTTOM_FIELD) produce interlaced output with the entire output having the same field polarity (top or bottom first). * Follow, Default Top (FOLLOW_TOP_FIELD) and Follow, Default Bottom (FOLLOW_BOTTOM_FIELD) use the same field polarity as the source. Therefore, behavior depends on the input scan type, as follows. -- - If the source is interlaced, the output will be interlaced with the same polarity as the source (it will follow the source). The output could therefore be a mix of "top field first" and "bottom field first". -- - If the source is progressive, the output will be interlaced with "top field first" or "bottom field first" polarity, depending on which of the Follow options you chose. function M.H264InterlaceMode(str) asserts.AssertH264InterlaceMode(str) return str end function asserts.AssertAntiAlias(str) assert(str) assert(type(str) == "string", "Expected AntiAlias to be of type 'string'") end -- Enable Anti-alias (AntiAlias) to enhance sharp edges in video output when your input resolution is much larger than your output resolution. Default is enabled. function M.AntiAlias(str) asserts.AssertAntiAlias(str) return str end function asserts.AssertM2tsPcrControl(str) assert(str) assert(type(str) == "string", "Expected M2tsPcrControl to be of type 'string'") end -- When set to PCR_EVERY_PES_PACKET, a Program Clock Reference value is inserted for every Packetized Elementary Stream (PES) header. This is effective only when the PCR PID is the same as the video or audio elementary stream. function M.M2tsPcrControl(str) asserts.AssertM2tsPcrControl(str) return str end function asserts.AssertH264TemporalAdaptiveQuantization(str) assert(str) assert(type(str) == "string", "Expected H264TemporalAdaptiveQuantization to be of type 'string'") end -- Adjust quantization within each frame based on temporal variation of content complexity. function M.H264TemporalAdaptiveQuantization(str) asserts.AssertH264TemporalAdaptiveQuantization(str) return str end function asserts.AssertTimecodeSource(str) assert(str) assert(type(str) == "string", "Expected TimecodeSource to be of type 'string'") end -- Use Source (TimecodeSource) to set how timecodes are handled within this job. To make sure that your video, audio, captions, and markers are synchronized and that time-based features, such as image inserter, work correctly, choose the Timecode source option that matches your assets. All timecodes are in a 24-hour format with frame number (HH:MM:SS:FF). * Embedded (EMBEDDED) - Use the timecode that is in the input video. If no embedded timecode is in the source, the service will use Start at 0 (ZEROBASED) instead. * Start at 0 (ZEROBASED) - Set the timecode of the initial frame to 00:00:00:00. * Specified Start (SPECIFIEDSTART) - Set the timecode of the initial frame to a value other than zero. You use Start timecode (Start) to provide this value. function M.TimecodeSource(str) asserts.AssertTimecodeSource(str) return str end function asserts.AssertMpeg2IntraDcPrecision(str) assert(str) assert(type(str) == "string", "Expected Mpeg2IntraDcPrecision to be of type 'string'") end -- Use Intra DC precision (Mpeg2IntraDcPrecision) to set quantization precision for intra-block DC coefficients. If you choose the value auto, the service will automatically select the precision based on the per-frame compression ratio. function M.Mpeg2IntraDcPrecision(str) asserts.AssertMpeg2IntraDcPrecision(str) return str end function asserts.AssertHlsIFrameOnlyManifest(str) assert(str) assert(type(str) == "string", "Expected HlsIFrameOnlyManifest to be of type 'string'") end -- When set to INCLUDE, writes I-Frame Only Manifest in addition to the HLS manifest function M.HlsIFrameOnlyManifest(str) asserts.AssertHlsIFrameOnlyManifest(str) return str end function asserts.Assert__stringMin14PatternS3BmpBMPPngPNG(str) assert(str) assert(type(str) == "string", "Expected __stringMin14PatternS3BmpBMPPngPNG to be of type 'string'") assert(#str >= 14, "Expected string to be min 14 characters") end -- function M.__stringMin14PatternS3BmpBMPPngPNG(str) asserts.Assert__stringMin14PatternS3BmpBMPPngPNG(str) return str end function asserts.AssertMpeg2GopSizeUnits(str) assert(str) assert(type(str) == "string", "Expected Mpeg2GopSizeUnits to be of type 'string'") end -- Indicates if the GOP Size in MPEG2 is specified in frames or seconds. If seconds the system will convert the GOP Size into a frame count at run time. function M.Mpeg2GopSizeUnits(str) asserts.AssertMpeg2GopSizeUnits(str) return str end function asserts.Assert__stringPatternS3(str) assert(str) assert(type(str) == "string", "Expected __stringPatternS3 to be of type 'string'") end -- function M.__stringPatternS3(str) asserts.Assert__stringPatternS3(str) return str end function asserts.AssertAudioCodec(str) assert(str) assert(type(str) == "string", "Expected AudioCodec to be of type 'string'") end -- Type of Audio codec. function M.AudioCodec(str) asserts.AssertAudioCodec(str) return str end function asserts.AssertEac3SurroundMode(str) assert(str) assert(type(str) == "string", "Expected Eac3SurroundMode to be of type 'string'") end -- When encoding 2/0 audio, sets whether Dolby Surround is matrix encoded into the two channels. function M.Eac3SurroundMode(str) asserts.AssertEac3SurroundMode(str) return str end function asserts.AssertH265GopBReference(str) assert(str) assert(type(str) == "string", "Expected H265GopBReference to be of type 'string'") end -- If enable, use reference B frames for GOP structures that have B frames > 1. function M.H265GopBReference(str) asserts.AssertH265GopBReference(str) return str end function asserts.AssertAudioNormalizationAlgorithmControl(str) assert(str) assert(type(str) == "string", "Expected AudioNormalizationAlgorithmControl to be of type 'string'") end -- When enabled the output audio is corrected using the chosen algorithm. If disabled, the audio will be measured but not adjusted. function M.AudioNormalizationAlgorithmControl(str) asserts.AssertAudioNormalizationAlgorithmControl(str) return str end function asserts.Assert__doubleMin0(double) assert(double) assert(type(double) == "number", "Expected __doubleMin0 to be of type 'number'") end function M.__doubleMin0(double) asserts.Assert__doubleMin0(double) return double end function asserts.Assert__doubleMinNegative60MaxNegative1(double) assert(double) assert(type(double) == "number", "Expected __doubleMinNegative60MaxNegative1 to be of type 'number'") end function M.__doubleMinNegative60MaxNegative1(double) asserts.Assert__doubleMinNegative60MaxNegative1(double) return double end function asserts.Assert__doubleMin0Max2147483647(double) assert(double) assert(type(double) == "number", "Expected __doubleMin0Max2147483647 to be of type 'number'") end function M.__doubleMin0Max2147483647(double) asserts.Assert__doubleMin0Max2147483647(double) return double end function asserts.Assert__doubleMinNegative59Max0(double) assert(double) assert(type(double) == "number", "Expected __doubleMinNegative59Max0 to be of type 'number'") end function M.__doubleMinNegative59Max0(double) asserts.Assert__doubleMinNegative59Max0(double) return double end function asserts.Assert__doubleMinNegative60Max3(double) assert(double) assert(type(double) == "number", "Expected __doubleMinNegative60Max3 to be of type 'number'") end function M.__doubleMinNegative60Max3(double) asserts.Assert__doubleMinNegative60Max3(double) return double end function asserts.Assert__integerMin1Max1001(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin1Max1001 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 1001, "Expected integer to be max 1001") assert(integer >= 1, "Expected integer to be min 1") end function M.__integerMin1Max1001(integer) asserts.Assert__integerMin1Max1001(integer) return integer end function asserts.Assert__integerMin0Max50000(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin0Max50000 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 50000, "Expected integer to be max 50000") end function M.__integerMin0Max50000(integer) asserts.Assert__integerMin0Max50000(integer) return integer end function asserts.Assert__integerMinNegative180Max180(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMinNegative180Max180 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 180, "Expected integer to be max 180") assert(integer >= -180, "Expected integer to be min -180") end function M.__integerMinNegative180Max180(integer) asserts.Assert__integerMinNegative180Max180(integer) return integer end function asserts.Assert__integerMin1Max32(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin1Max32 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 32, "Expected integer to be max 32") assert(integer >= 1, "Expected integer to be min 1") end function M.__integerMin1Max32(integer) asserts.Assert__integerMin1Max32(integer) return integer end function asserts.Assert__integerMin1000Max1152000000(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin1000Max1152000000 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 1152000000, "Expected integer to be max 1152000000") assert(integer >= 1000, "Expected integer to be min 1000") end function M.__integerMin1000Max1152000000(integer) asserts.Assert__integerMin1000Max1152000000(integer) return integer end function asserts.Assert__integerMin0Max65535(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin0Max65535 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 65535, "Expected integer to be max 65535") end function M.__integerMin0Max65535(integer) asserts.Assert__integerMin0Max65535(integer) return integer end function asserts.Assert__integerMin1Max10(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin1Max10 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 10, "Expected integer to be max 10") assert(integer >= 1, "Expected integer to be min 1") end function M.__integerMin1Max10(integer) asserts.Assert__integerMin1Max10(integer) return integer end function asserts.Assert__integerMin16Max24(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin16Max24 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 24, "Expected integer to be max 24") assert(integer >= 16, "Expected integer to be min 16") end function M.__integerMin16Max24(integer) asserts.Assert__integerMin16Max24(integer) return integer end function asserts.Assert__integerMin1Max16(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin1Max16 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 16, "Expected integer to be max 16") assert(integer >= 1, "Expected integer to be min 1") end function M.__integerMin1Max16(integer) asserts.Assert__integerMin1Max16(integer) return integer end function asserts.Assert__integerMin0Max1466400000(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin0Max1466400000 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 1466400000, "Expected integer to be max 1466400000") end function M.__integerMin0Max1466400000(integer) asserts.Assert__integerMin0Max1466400000(integer) return integer end function asserts.Assert__integerMin0Max96(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin0Max96 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 96, "Expected integer to be max 96") end function M.__integerMin0Max96(integer) asserts.Assert__integerMin0Max96(integer) return integer end function asserts.Assert__integerMin0Max99(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin0Max99 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 99, "Expected integer to be max 99") end function M.__integerMin0Max99(integer) asserts.Assert__integerMin0Max99(integer) return integer end function asserts.Assert__integerMin48000Max48000(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin48000Max48000 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 48000, "Expected integer to be max 48000") assert(integer >= 48000, "Expected integer to be min 48000") end function M.__integerMin48000Max48000(integer) asserts.Assert__integerMin48000Max48000(integer) return integer end function asserts.Assert__integerMin0Max3(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin0Max3 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 3, "Expected integer to be max 3") end function M.__integerMin0Max3(integer) asserts.Assert__integerMin0Max3(integer) return integer end function asserts.Assert__integerMin6000Max1024000(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin6000Max1024000 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 1024000, "Expected integer to be max 1024000") assert(integer >= 6000, "Expected integer to be min 6000") end function M.__integerMin6000Max1024000(integer) asserts.Assert__integerMin6000Max1024000(integer) return integer end function asserts.Assert__integerMin0Max7(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin0Max7 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 7, "Expected integer to be max 7") end function M.__integerMin0Max7(integer) asserts.Assert__integerMin0Max7(integer) return integer end function asserts.Assert__integerMin1000Max1466400000(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin1000Max1466400000 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 1466400000, "Expected integer to be max 1466400000") assert(integer >= 1000, "Expected integer to be min 1000") end function M.__integerMin1000Max1466400000(integer) asserts.Assert__integerMin1000Max1466400000(integer) return integer end function asserts.Assert__integerMin0Max9(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin0Max9 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 9, "Expected integer to be max 9") end function M.__integerMin0Max9(integer) asserts.Assert__integerMin0Max9(integer) return integer end function asserts.Assert__integerMin1Max100(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin1Max100 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 100, "Expected integer to be max 100") assert(integer >= 1, "Expected integer to be min 1") end function M.__integerMin1Max100(integer) asserts.Assert__integerMin1Max100(integer) return integer end function asserts.Assert__integerMin64000Max640000(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin64000Max640000 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 640000, "Expected integer to be max 640000") assert(integer >= 64000, "Expected integer to be min 64000") end function M.__integerMin64000Max640000(integer) asserts.Assert__integerMin64000Max640000(integer) return integer end function asserts.Assert__integerMin0Max100(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin0Max100 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 100, "Expected integer to be max 100") end function M.__integerMin0Max100(integer) asserts.Assert__integerMin0Max100(integer) return integer end function asserts.Assert__integerMin1Max8(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin1Max8 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 8, "Expected integer to be max 8") assert(integer >= 1, "Expected integer to be min 1") end function M.__integerMin1Max8(integer) asserts.Assert__integerMin1Max8(integer) return integer end function asserts.Assert__integerMin1Max4(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin1Max4 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 4, "Expected integer to be max 4") assert(integer >= 1, "Expected integer to be min 1") end function M.__integerMin1Max4(integer) asserts.Assert__integerMin1Max4(integer) return integer end function asserts.Assert__integerMin1Max2(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin1Max2 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 2, "Expected integer to be max 2") assert(integer >= 1, "Expected integer to be min 1") end function M.__integerMin1Max2(integer) asserts.Assert__integerMin1Max2(integer) return integer end function asserts.Assert__integerMin1Max1(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin1Max1 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 1, "Expected integer to be max 1") assert(integer >= 1, "Expected integer to be min 1") end function M.__integerMin1Max1(integer) asserts.Assert__integerMin1Max1(integer) return integer end function asserts.Assert__integerMinNegative1000Max1000(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMinNegative1000Max1000 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 1000, "Expected integer to be max 1000") assert(integer >= -1000, "Expected integer to be min -1000") end function M.__integerMinNegative1000Max1000(integer) asserts.Assert__integerMinNegative1000Max1000(integer) return integer end function asserts.Assert__integerMin1Max6(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin1Max6 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 6, "Expected integer to be max 6") assert(integer >= 1, "Expected integer to be min 1") end function M.__integerMin1Max6(integer) asserts.Assert__integerMin1Max6(integer) return integer end function asserts.Assert__integerMin1000Max288000000(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin1000Max288000000 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 288000000, "Expected integer to be max 288000000") assert(integer >= 1000, "Expected integer to be min 1000") end function M.__integerMin1000Max288000000(integer) asserts.Assert__integerMin1000Max288000000(integer) return integer end function asserts.Assert__integerMin0Max1152000000(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin0Max1152000000 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 1152000000, "Expected integer to be max 1152000000") end function M.__integerMin0Max1152000000(integer) asserts.Assert__integerMin0Max1152000000(integer) return integer end function asserts.Assert__integerMin0Max30(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin0Max30 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 30, "Expected integer to be max 30") end function M.__integerMin0Max30(integer) asserts.Assert__integerMin0Max30(integer) return integer end function asserts.Assert__integer(integer) assert(integer) assert(type(integer) == "number", "Expected __integer to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") end function M.__integer(integer) asserts.Assert__integer(integer) return integer end function asserts.Assert__integerMin1Max2147483647(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin1Max2147483647 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 2147483647, "Expected integer to be max 2147483647") assert(integer >= 1, "Expected integer to be min 1") end function M.__integerMin1Max2147483647(integer) asserts.Assert__integerMin1Max2147483647(integer) return integer end function asserts.Assert__integerMin0Max10(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin0Max10 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 10, "Expected integer to be max 10") end function M.__integerMin0Max10(integer) asserts.Assert__integerMin0Max10(integer) return integer end function asserts.Assert__integerMin0Max2147483647(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin0Max2147483647 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 2147483647, "Expected integer to be max 2147483647") end function M.__integerMin0Max2147483647(integer) asserts.Assert__integerMin0Max2147483647(integer) return integer end function asserts.Assert__integerMinNegative60Max6(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMinNegative60Max6 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 6, "Expected integer to be max 6") assert(integer >= -60, "Expected integer to be min -60") end function M.__integerMinNegative60Max6(integer) asserts.Assert__integerMinNegative60Max6(integer) return integer end function asserts.Assert__integerMinNegative2147483648Max2147483647(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMinNegative2147483648Max2147483647 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 2147483647, "Expected integer to be max 2147483647") assert(integer >= -2147483648, "Expected integer to be min -2147483648") end function M.__integerMinNegative2147483648Max2147483647(integer) asserts.Assert__integerMinNegative2147483648Max2147483647(integer) return integer end function asserts.Assert__integerMin8000Max96000(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin8000Max96000 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 96000, "Expected integer to be max 96000") assert(integer >= 8000, "Expected integer to be min 8000") end function M.__integerMin8000Max96000(integer) asserts.Assert__integerMin8000Max96000(integer) return integer end function asserts.Assert__integerMin1Max31(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin1Max31 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 31, "Expected integer to be max 31") assert(integer >= 1, "Expected integer to be min 1") end function M.__integerMin1Max31(integer) asserts.Assert__integerMin1Max31(integer) return integer end function asserts.Assert__integerMin25Max2000(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin25Max2000 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 2000, "Expected integer to be max 2000") assert(integer >= 25, "Expected integer to be min 25") end function M.__integerMin25Max2000(integer) asserts.Assert__integerMin25Max2000(integer) return integer end function asserts.Assert__integerMin0Max255(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin0Max255 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 255, "Expected integer to be max 255") end function M.__integerMin0Max255(integer) asserts.Assert__integerMin0Max255(integer) return integer end function asserts.Assert__integerMin10Max48(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin10Max48 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 48, "Expected integer to be max 48") assert(integer >= 10, "Expected integer to be min 10") end function M.__integerMin10Max48(integer) asserts.Assert__integerMin10Max48(integer) return integer end function asserts.Assert__integerMin0Max8(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin0Max8 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 8, "Expected integer to be max 8") end function M.__integerMin0Max8(integer) asserts.Assert__integerMin0Max8(integer) return integer end function asserts.Assert__integerMin0Max1000(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin0Max1000 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 1000, "Expected integer to be max 1000") end function M.__integerMin0Max1000(integer) asserts.Assert__integerMin0Max1000(integer) return integer end function asserts.Assert__integerMinNegative70Max0(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMinNegative70Max0 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer >= -70, "Expected integer to be min -70") end function M.__integerMinNegative70Max0(integer) asserts.Assert__integerMinNegative70Max0(integer) return integer end function asserts.Assert__integerMin0Max47185920(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin0Max47185920 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 47185920, "Expected integer to be max 47185920") end function M.__integerMin0Max47185920(integer) asserts.Assert__integerMin0Max47185920(integer) return integer end function asserts.Assert__integerMin24Max60000(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin24Max60000 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 60000, "Expected integer to be max 60000") assert(integer >= 24, "Expected integer to be min 24") end function M.__integerMin24Max60000(integer) asserts.Assert__integerMin24Max60000(integer) return integer end function asserts.Assert__integerMin32000Max48000(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin32000Max48000 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 48000, "Expected integer to be max 48000") assert(integer >= 32000, "Expected integer to be min 32000") end function M.__integerMin32000Max48000(integer) asserts.Assert__integerMin32000Max48000(integer) return integer end function asserts.Assert__integerMin0Max10000(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin0Max10000 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 10000, "Expected integer to be max 10000") end function M.__integerMin0Max10000(integer) asserts.Assert__integerMin0Max10000(integer) return integer end function asserts.Assert__integerMin1000Max30000(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin1000Max30000 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 30000, "Expected integer to be max 30000") assert(integer >= 1000, "Expected integer to be min 1000") end function M.__integerMin1000Max30000(integer) asserts.Assert__integerMin1000Max30000(integer) return integer end function asserts.Assert__integerMin1Max20(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin1Max20 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 20, "Expected integer to be max 20") assert(integer >= 1, "Expected integer to be min 1") end function M.__integerMin1Max20(integer) asserts.Assert__integerMin1Max20(integer) return integer end function asserts.Assert__integerMin0Max128(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin0Max128 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 128, "Expected integer to be max 128") end function M.__integerMin0Max128(integer) asserts.Assert__integerMin0Max128(integer) return integer end function asserts.Assert__integerMin1Max10000000(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin1Max10000000 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 10000000, "Expected integer to be max 10000000") assert(integer >= 1, "Expected integer to be min 1") end function M.__integerMin1Max10000000(integer) asserts.Assert__integerMin1Max10000000(integer) return integer end function asserts.Assert__integerMin96Max600(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin96Max600 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 600, "Expected integer to be max 600") assert(integer >= 96, "Expected integer to be min 96") end function M.__integerMin96Max600(integer) asserts.Assert__integerMin96Max600(integer) return integer end function asserts.Assert__integerMin2Max2147483647(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin2Max2147483647 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 2147483647, "Expected integer to be max 2147483647") assert(integer >= 2, "Expected integer to be min 2") end function M.__integerMin2Max2147483647(integer) asserts.Assert__integerMin2Max2147483647(integer) return integer end function asserts.Assert__integerMinNegative5Max5(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMinNegative5Max5 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 5, "Expected integer to be max 5") assert(integer >= -5, "Expected integer to be min -5") end function M.__integerMinNegative5Max5(integer) asserts.Assert__integerMinNegative5Max5(integer) return integer end function asserts.Assert__integerMin32Max8182(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin32Max8182 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 8182, "Expected integer to be max 8182") assert(integer >= 32, "Expected integer to be min 32") end function M.__integerMin32Max8182(integer) asserts.Assert__integerMin32Max8182(integer) return integer end function asserts.Assert__integerMin1000Max300000000(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin1000Max300000000 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 300000000, "Expected integer to be max 300000000") assert(integer >= 1000, "Expected integer to be min 1000") end function M.__integerMin1000Max300000000(integer) asserts.Assert__integerMin1000Max300000000(integer) return integer end function asserts.Assert__integerMin32000Max384000(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin32000Max384000 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 384000, "Expected integer to be max 384000") assert(integer >= 32000, "Expected integer to be min 32000") end function M.__integerMin32000Max384000(integer) asserts.Assert__integerMin32000Max384000(integer) return integer end function asserts.Assert__integerMin0Max3600(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin0Max3600 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 3600, "Expected integer to be max 3600") end function M.__integerMin0Max3600(integer) asserts.Assert__integerMin0Max3600(integer) return integer end function asserts.Assert__integerMin0Max16(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin0Max16 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 16, "Expected integer to be max 16") end function M.__integerMin0Max16(integer) asserts.Assert__integerMin0Max16(integer) return integer end function asserts.Assert__integerMin0Max15(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin0Max15 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 15, "Expected integer to be max 15") end function M.__integerMin0Max15(integer) asserts.Assert__integerMin0Max15(integer) return integer end function asserts.Assert__integerMin0Max500(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin0Max500 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 500, "Expected integer to be max 500") end function M.__integerMin0Max500(integer) asserts.Assert__integerMin0Max500(integer) return integer end function asserts.Assert__integerMinNegative2Max3(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMinNegative2Max3 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 3, "Expected integer to be max 3") assert(integer >= -2, "Expected integer to be min -2") end function M.__integerMinNegative2Max3(integer) asserts.Assert__integerMinNegative2Max3(integer) return integer end function asserts.Assert__integerMin25Max10000(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin25Max10000 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 10000, "Expected integer to be max 10000") assert(integer >= 25, "Expected integer to be min 25") end function M.__integerMin25Max10000(integer) asserts.Assert__integerMin25Max10000(integer) return integer end function asserts.Assert__integerMin8000Max192000(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin8000Max192000 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 192000, "Expected integer to be max 192000") assert(integer >= 8000, "Expected integer to be min 8000") end function M.__integerMin8000Max192000(integer) asserts.Assert__integerMin8000Max192000(integer) return integer end function asserts.Assert__integerMin32Max2160(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin32Max2160 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 2160, "Expected integer to be max 2160") assert(integer >= 32, "Expected integer to be min 32") end function M.__integerMin32Max2160(integer) asserts.Assert__integerMin32Max2160(integer) return integer end function asserts.Assert__integerMin32Max4096(integer) assert(integer) assert(type(integer) == "number", "Expected __integerMin32Max4096 to be of type 'number'") assert(integer % 1 == 0, "Expected a while integer number") assert(integer <= 4096, "Expected integer to be max 4096") assert(integer >= 32, "Expected integer to be min 32") end function M.__integerMin32Max4096(integer) asserts.Assert__integerMin32Max4096(integer) return integer end function asserts.Assert__mapOf__string(map) assert(map) assert(type(map) == "table", "Expected __mapOf__string to be of type 'table'") for k,v in pairs(map) do asserts.Assert__string(k) asserts.Assert__string(v) end end function M.__mapOf__string(map) asserts.Assert__mapOf__string(map) return map end function asserts.Assert__mapOfAudioSelectorGroup(map) assert(map) assert(type(map) == "table", "Expected __mapOfAudioSelectorGroup to be of type 'table'") for k,v in pairs(map) do asserts.Assert__string(k) asserts.AssertAudioSelectorGroup(v) end end function M.__mapOfAudioSelectorGroup(map) asserts.Assert__mapOfAudioSelectorGroup(map) return map end function asserts.Assert__mapOfCaptionSelector(map) assert(map) assert(type(map) == "table", "Expected __mapOfCaptionSelector to be of type 'table'") for k,v in pairs(map) do asserts.Assert__string(k) asserts.AssertCaptionSelector(v) end end function M.__mapOfCaptionSelector(map) asserts.Assert__mapOfCaptionSelector(map) return map end function asserts.Assert__mapOfAudioSelector(map) assert(map) assert(type(map) == "table", "Expected __mapOfAudioSelector to be of type 'table'") for k,v in pairs(map) do asserts.Assert__string(k) asserts.AssertAudioSelector(v) end end function M.__mapOfAudioSelector(map) asserts.Assert__mapOfAudioSelector(map) return map end function asserts.Assert__timestampUnix(timestamp) assert(timestamp) assert(type(timestamp) == "string", "Expected __timestampUnix to be of type 'string'") end function M.__timestampUnix(timestamp) asserts.Assert__timestampUnix(timestamp) return timestamp end function asserts.Assert__listOfEndpoint(list) assert(list) assert(type(list) == "table", "Expected __listOfEndpoint to be of type ''table") for _,v in ipairs(list) do asserts.AssertEndpoint(v) end end -- -- List of Endpoint objects function M.__listOfEndpoint(list) asserts.Assert__listOfEndpoint(list) return list end function asserts.Assert__listOfPreset(list) assert(list) assert(type(list) == "table", "Expected __listOfPreset to be of type ''table") for _,v in ipairs(list) do asserts.AssertPreset(v) end end -- -- List of Preset objects function M.__listOfPreset(list) asserts.Assert__listOfPreset(list) return list end function asserts.Assert__listOfJob(list) assert(list) assert(type(list) == "table", "Expected __listOfJob to be of type ''table") for _,v in ipairs(list) do asserts.AssertJob(v) end end -- -- List of Job objects function M.__listOfJob(list) asserts.Assert__listOfJob(list) return list end function asserts.Assert__listOfOutputGroupDetail(list) assert(list) assert(type(list) == "table", "Expected __listOfOutputGroupDetail to be of type ''table") for _,v in ipairs(list) do asserts.AssertOutputGroupDetail(v) end end -- -- List of OutputGroupDetail objects function M.__listOfOutputGroupDetail(list) asserts.Assert__listOfOutputGroupDetail(list) return list end function asserts.Assert__listOfOutputGroup(list) assert(list) assert(type(list) == "table", "Expected __listOfOutputGroup to be of type ''table") for _,v in ipairs(list) do asserts.AssertOutputGroup(v) end end -- -- List of OutputGroup objects function M.__listOfOutputGroup(list) asserts.Assert__listOfOutputGroup(list) return list end function asserts.Assert__listOfId3Insertion(list) assert(list) assert(type(list) == "table", "Expected __listOfId3Insertion to be of type ''table") for _,v in ipairs(list) do asserts.AssertId3Insertion(v) end end -- -- List of Id3Insertion objects function M.__listOfId3Insertion(list) asserts.Assert__listOfId3Insertion(list) return list end function asserts.Assert__listOfOutputChannelMapping(list) assert(list) assert(type(list) == "table", "Expected __listOfOutputChannelMapping to be of type ''table") for _,v in ipairs(list) do asserts.AssertOutputChannelMapping(v) end end -- -- List of OutputChannelMapping objects function M.__listOfOutputChannelMapping(list) asserts.Assert__listOfOutputChannelMapping(list) return list end function asserts.Assert__listOfInputClipping(list) assert(list) assert(type(list) == "table", "Expected __listOfInputClipping to be of type ''table") for _,v in ipairs(list) do asserts.AssertInputClipping(v) end end -- -- List of InputClipping objects function M.__listOfInputClipping(list) asserts.Assert__listOfInputClipping(list) return list end function asserts.Assert__listOf__stringMin1(list) assert(list) assert(type(list) == "table", "Expected __listOf__stringMin1 to be of type ''table") for _,v in ipairs(list) do asserts.Assert__stringMin1(v) end end -- -- List of __stringMin1 objects function M.__listOf__stringMin1(list) asserts.Assert__listOf__stringMin1(list) return list end function asserts.Assert__listOfHlsAdMarkers(list) assert(list) assert(type(list) == "table", "Expected __listOfHlsAdMarkers to be of type ''table") for _,v in ipairs(list) do asserts.AssertHlsAdMarkers(v) end end -- -- List of HlsAdMarkers objects function M.__listOfHlsAdMarkers(list) asserts.Assert__listOfHlsAdMarkers(list) return list end function asserts.Assert__listOfOutputDetail(list) assert(list) assert(type(list) == "table", "Expected __listOfOutputDetail to be of type ''table") for _,v in ipairs(list) do asserts.AssertOutputDetail(v) end end -- -- List of OutputDetail objects function M.__listOfOutputDetail(list) asserts.Assert__listOfOutputDetail(list) return list end function asserts.Assert__listOfAudioDescription(list) assert(list) assert(type(list) == "table", "Expected __listOfAudioDescription to be of type ''table") for _,v in ipairs(list) do asserts.AssertAudioDescription(v) end end -- -- List of AudioDescription objects function M.__listOfAudioDescription(list) asserts.Assert__listOfAudioDescription(list) return list end function asserts.Assert__listOfOutput(list) assert(list) assert(type(list) == "table", "Expected __listOfOutput to be of type ''table") for _,v in ipairs(list) do asserts.AssertOutput(v) end end -- -- List of Output objects function M.__listOfOutput(list) asserts.Assert__listOfOutput(list) return list end function asserts.Assert__listOfQueue(list) assert(list) assert(type(list) == "table", "Expected __listOfQueue to be of type ''table") for _,v in ipairs(list) do asserts.AssertQueue(v) end end -- -- List of Queue objects function M.__listOfQueue(list) asserts.Assert__listOfQueue(list) return list end function asserts.Assert__listOf__string(list) assert(list) assert(type(list) == "table", "Expected __listOf__string to be of type ''table") for _,v in ipairs(list) do asserts.Assert__string(v) end end -- -- List of __string objects function M.__listOf__string(list) asserts.Assert__listOf__string(list) return list end function asserts.Assert__listOfHlsCaptionLanguageMapping(list) assert(list) assert(type(list) == "table", "Expected __listOfHlsCaptionLanguageMapping to be of type ''table") for _,v in ipairs(list) do asserts.AssertHlsCaptionLanguageMapping(v) end end -- -- List of HlsCaptionLanguageMapping objects function M.__listOfHlsCaptionLanguageMapping(list) asserts.Assert__listOfHlsCaptionLanguageMapping(list) return list end function asserts.Assert__listOfCaptionDescription(list) assert(list) assert(type(list) == "table", "Expected __listOfCaptionDescription to be of type ''table") for _,v in ipairs(list) do asserts.AssertCaptionDescription(v) end end -- -- List of CaptionDescription objects function M.__listOfCaptionDescription(list) asserts.Assert__listOfCaptionDescription(list) return list end function asserts.Assert__listOfCaptionDescriptionPreset(list) assert(list) assert(type(list) == "table", "Expected __listOfCaptionDescriptionPreset to be of type ''table") for _,v in ipairs(list) do asserts.AssertCaptionDescriptionPreset(v) end end -- -- List of CaptionDescriptionPreset objects function M.__listOfCaptionDescriptionPreset(list) asserts.Assert__listOfCaptionDescriptionPreset(list) return list end function asserts.Assert__listOf__stringPattern09aFAF809aFAF409aFAF409aFAF409aFAF12(list) assert(list) assert(type(list) == "table", "Expected __listOf__stringPattern09aFAF809aFAF409aFAF409aFAF409aFAF12 to be of type ''table") for _,v in ipairs(list) do asserts.Assert__stringPattern09aFAF809aFAF409aFAF409aFAF409aFAF12(v) end end -- -- List of __stringPattern09aFAF809aFAF409aFAF409aFAF409aFAF12 objects function M.__listOf__stringPattern09aFAF809aFAF409aFAF409aFAF409aFAF12(list) asserts.Assert__listOf__stringPattern09aFAF809aFAF409aFAF409aFAF409aFAF12(list) return list end function asserts.Assert__listOfInputTemplate(list) assert(list) assert(type(list) == "table", "Expected __listOfInputTemplate to be of type ''table") for _,v in ipairs(list) do asserts.AssertInputTemplate(v) end end -- -- List of InputTemplate objects function M.__listOfInputTemplate(list) asserts.Assert__listOfInputTemplate(list) return list end function asserts.Assert__listOfJobTemplate(list) assert(list) assert(type(list) == "table", "Expected __listOfJobTemplate to be of type ''table") for _,v in ipairs(list) do asserts.AssertJobTemplate(v) end end -- -- List of JobTemplate objects function M.__listOfJobTemplate(list) asserts.Assert__listOfJobTemplate(list) return list end function asserts.Assert__listOfInsertableImage(list) assert(list) assert(type(list) == "table", "Expected __listOfInsertableImage to be of type ''table") for _,v in ipairs(list) do asserts.AssertInsertableImage(v) end end -- -- List of InsertableImage objects function M.__listOfInsertableImage(list) asserts.Assert__listOfInsertableImage(list) return list end function asserts.Assert__listOfInput(list) assert(list) assert(type(list) == "table", "Expected __listOfInput to be of type ''table") for _,v in ipairs(list) do asserts.AssertInput(v) end end -- -- List of Input objects function M.__listOfInput(list) asserts.Assert__listOfInput(list) return list end function asserts.Assert__listOf__integerMin32Max8182(list) assert(list) assert(type(list) == "table", "Expected __listOf__integerMin32Max8182 to be of type ''table") for _,v in ipairs(list) do asserts.Assert__integerMin32Max8182(v) end end -- -- List of __integerMin32Max8182 objects function M.__listOf__integerMin32Max8182(list) asserts.Assert__listOf__integerMin32Max8182(list) return list end function asserts.Assert__listOf__integerMinNegative60Max6(list) assert(list) assert(type(list) == "table", "Expected __listOf__integerMinNegative60Max6 to be of type ''table") for _,v in ipairs(list) do asserts.Assert__integerMinNegative60Max6(v) end end -- -- List of __integerMinNegative60Max6 objects function M.__listOf__integerMinNegative60Max6(list) asserts.Assert__listOf__integerMinNegative60Max6(list) return list end function asserts.Assert__listOf__integerMin1Max2147483647(list) assert(list) assert(type(list) == "table", "Expected __listOf__integerMin1Max2147483647 to be of type ''table") for _,v in ipairs(list) do asserts.Assert__integerMin1Max2147483647(v) end end -- -- List of __integerMin1Max2147483647 objects function M.__listOf__integerMin1Max2147483647(list) asserts.Assert__listOf__integerMin1Max2147483647(list) return list end local content_type = require "aws-sdk.core.content_type" local request_headers = require "aws-sdk.core.request_headers" local request_handlers = require "aws-sdk.core.request_handlers" local settings = {} local function endpoint_for_region(region, use_dualstack) if not use_dualstack then if region == "us-east-1" then return "mediaconvert.amazonaws.com" end end local ss = { "mediaconvert" } if use_dualstack then ss[#ss + 1] = "dualstack" end ss[#ss + 1] = region ss[#ss + 1] = "amazonaws.com" if region == "cn-north-1" then ss[#ss + 1] = "cn" end return table.concat(ss, ".") end function M.init(config) assert(config, "You must provide a config table") assert(config.region, "You must provide a region in the config table") settings.service = M.metadata.endpoint_prefix settings.protocol = M.metadata.protocol settings.region = config.region settings.endpoint = config.endpoint_override or endpoint_for_region(config.region, config.use_dualstack) settings.signature_version = M.metadata.signature_version settings.uri = (config.scheme or "https") .. "://" .. settings.endpoint end -- -- OPERATIONS -- --- Call CreateQueue asynchronously, invoking a callback when done -- @param CreateQueueRequest -- @param cb Callback function accepting three args: response, error_type, error_message function M.CreateQueueAsync(CreateQueueRequest, cb) assert(CreateQueueRequest, "You must provide a CreateQueueRequest") local headers = { [request_headers.CONTENT_TYPE_HEADER] = content_type.from_protocol(M.metadata.protocol, M.metadata.json_version), [request_headers.AMZ_TARGET_HEADER] = ".CreateQueue", } for header,value in pairs(CreateQueueRequest.headers) do headers[header] = value end local request_handler, err = request_handlers.from_protocol_and_method("rest-json", "POST") if request_handler then request_handler(settings.uri, "/2017-08-29/queues", CreateQueueRequest, headers, settings, cb) else cb(false, err) end end --- Call CreateQueue synchronously, returning when done -- This assumes that the function is called from within a coroutine -- @param CreateQueueRequest -- @return response -- @return error_type -- @return error_message function M.CreateQueueSync(CreateQueueRequest, ...) local co = coroutine.running() assert(co, "You must call this function from within a coroutine") M.CreateQueueAsync(CreateQueueRequest, function(response, error_type, error_message) assert(coroutine.resume(co, response, error_type, error_message)) end) return coroutine.yield() end --- Call UpdatePreset asynchronously, invoking a callback when done -- @param UpdatePresetRequest -- @param cb Callback function accepting three args: response, error_type, error_message function M.UpdatePresetAsync(UpdatePresetRequest, cb) assert(UpdatePresetRequest, "You must provide a UpdatePresetRequest") local headers = { [request_headers.CONTENT_TYPE_HEADER] = content_type.from_protocol(M.metadata.protocol, M.metadata.json_version), [request_headers.AMZ_TARGET_HEADER] = ".UpdatePreset", } for header,value in pairs(UpdatePresetRequest.headers) do headers[header] = value end local request_handler, err = request_handlers.from_protocol_and_method("rest-json", "PUT") if request_handler then request_handler(settings.uri, "/2017-08-29/presets/{name}", UpdatePresetRequest, headers, settings, cb) else cb(false, err) end end --- Call UpdatePreset synchronously, returning when done -- This assumes that the function is called from within a coroutine -- @param UpdatePresetRequest -- @return response -- @return error_type -- @return error_message function M.UpdatePresetSync(UpdatePresetRequest, ...) local co = coroutine.running() assert(co, "You must call this function from within a coroutine") M.UpdatePresetAsync(UpdatePresetRequest, function(response, error_type, error_message) assert(coroutine.resume(co, response, error_type, error_message)) end) return coroutine.yield() end --- Call ListPresets asynchronously, invoking a callback when done -- @param ListPresetsRequest -- @param cb Callback function accepting three args: response, error_type, error_message function M.ListPresetsAsync(ListPresetsRequest, cb) assert(ListPresetsRequest, "You must provide a ListPresetsRequest") local headers = { [request_headers.CONTENT_TYPE_HEADER] = content_type.from_protocol(M.metadata.protocol, M.metadata.json_version), [request_headers.AMZ_TARGET_HEADER] = ".ListPresets", } for header,value in pairs(ListPresetsRequest.headers) do headers[header] = value end local request_handler, err = request_handlers.from_protocol_and_method("rest-json", "GET") if request_handler then request_handler(settings.uri, "/2017-08-29/presets", ListPresetsRequest, headers, settings, cb) else cb(false, err) end end --- Call ListPresets synchronously, returning when done -- This assumes that the function is called from within a coroutine -- @param ListPresetsRequest -- @return response -- @return error_type -- @return error_message function M.ListPresetsSync(ListPresetsRequest, ...) local co = coroutine.running() assert(co, "You must call this function from within a coroutine") M.ListPresetsAsync(ListPresetsRequest, function(response, error_type, error_message) assert(coroutine.resume(co, response, error_type, error_message)) end) return coroutine.yield() end --- Call DeletePreset asynchronously, invoking a callback when done -- @param DeletePresetRequest -- @param cb Callback function accepting three args: response, error_type, error_message function M.DeletePresetAsync(DeletePresetRequest, cb) assert(DeletePresetRequest, "You must provide a DeletePresetRequest") local headers = { [request_headers.CONTENT_TYPE_HEADER] = content_type.from_protocol(M.metadata.protocol, M.metadata.json_version), [request_headers.AMZ_TARGET_HEADER] = ".DeletePreset", } for header,value in pairs(DeletePresetRequest.headers) do headers[header] = value end local request_handler, err = request_handlers.from_protocol_and_method("rest-json", "DELETE") if request_handler then request_handler(settings.uri, "/2017-08-29/presets/{name}", DeletePresetRequest, headers, settings, cb) else cb(false, err) end end --- Call DeletePreset synchronously, returning when done -- This assumes that the function is called from within a coroutine -- @param DeletePresetRequest -- @return response -- @return error_type -- @return error_message function M.DeletePresetSync(DeletePresetRequest, ...) local co = coroutine.running() assert(co, "You must call this function from within a coroutine") M.DeletePresetAsync(DeletePresetRequest, function(response, error_type, error_message) assert(coroutine.resume(co, response, error_type, error_message)) end) return coroutine.yield() end --- Call ListJobTemplates asynchronously, invoking a callback when done -- @param ListJobTemplatesRequest -- @param cb Callback function accepting three args: response, error_type, error_message function M.ListJobTemplatesAsync(ListJobTemplatesRequest, cb) assert(ListJobTemplatesRequest, "You must provide a ListJobTemplatesRequest") local headers = { [request_headers.CONTENT_TYPE_HEADER] = content_type.from_protocol(M.metadata.protocol, M.metadata.json_version), [request_headers.AMZ_TARGET_HEADER] = ".ListJobTemplates", } for header,value in pairs(ListJobTemplatesRequest.headers) do headers[header] = value end local request_handler, err = request_handlers.from_protocol_and_method("rest-json", "GET") if request_handler then request_handler(settings.uri, "/2017-08-29/jobTemplates", ListJobTemplatesRequest, headers, settings, cb) else cb(false, err) end end --- Call ListJobTemplates synchronously, returning when done -- This assumes that the function is called from within a coroutine -- @param ListJobTemplatesRequest -- @return response -- @return error_type -- @return error_message function M.ListJobTemplatesSync(ListJobTemplatesRequest, ...) local co = coroutine.running() assert(co, "You must call this function from within a coroutine") M.ListJobTemplatesAsync(ListJobTemplatesRequest, function(response, error_type, error_message) assert(coroutine.resume(co, response, error_type, error_message)) end) return coroutine.yield() end --- Call ListQueues asynchronously, invoking a callback when done -- @param ListQueuesRequest -- @param cb Callback function accepting three args: response, error_type, error_message function M.ListQueuesAsync(ListQueuesRequest, cb) assert(ListQueuesRequest, "You must provide a ListQueuesRequest") local headers = { [request_headers.CONTENT_TYPE_HEADER] = content_type.from_protocol(M.metadata.protocol, M.metadata.json_version), [request_headers.AMZ_TARGET_HEADER] = ".ListQueues", } for header,value in pairs(ListQueuesRequest.headers) do headers[header] = value end local request_handler, err = request_handlers.from_protocol_and_method("rest-json", "GET") if request_handler then request_handler(settings.uri, "/2017-08-29/queues", ListQueuesRequest, headers, settings, cb) else cb(false, err) end end --- Call ListQueues synchronously, returning when done -- This assumes that the function is called from within a coroutine -- @param ListQueuesRequest -- @return response -- @return error_type -- @return error_message function M.ListQueuesSync(ListQueuesRequest, ...) local co = coroutine.running() assert(co, "You must call this function from within a coroutine") M.ListQueuesAsync(ListQueuesRequest, function(response, error_type, error_message) assert(coroutine.resume(co, response, error_type, error_message)) end) return coroutine.yield() end --- Call GetJobTemplate asynchronously, invoking a callback when done -- @param GetJobTemplateRequest -- @param cb Callback function accepting three args: response, error_type, error_message function M.GetJobTemplateAsync(GetJobTemplateRequest, cb) assert(GetJobTemplateRequest, "You must provide a GetJobTemplateRequest") local headers = { [request_headers.CONTENT_TYPE_HEADER] = content_type.from_protocol(M.metadata.protocol, M.metadata.json_version), [request_headers.AMZ_TARGET_HEADER] = ".GetJobTemplate", } for header,value in pairs(GetJobTemplateRequest.headers) do headers[header] = value end local request_handler, err = request_handlers.from_protocol_and_method("rest-json", "GET") if request_handler then request_handler(settings.uri, "/2017-08-29/jobTemplates/{name}", GetJobTemplateRequest, headers, settings, cb) else cb(false, err) end end --- Call GetJobTemplate synchronously, returning when done -- This assumes that the function is called from within a coroutine -- @param GetJobTemplateRequest -- @return response -- @return error_type -- @return error_message function M.GetJobTemplateSync(GetJobTemplateRequest, ...) local co = coroutine.running() assert(co, "You must call this function from within a coroutine") M.GetJobTemplateAsync(GetJobTemplateRequest, function(response, error_type, error_message) assert(coroutine.resume(co, response, error_type, error_message)) end) return coroutine.yield() end --- Call DescribeEndpoints asynchronously, invoking a callback when done -- @param DescribeEndpointsRequest -- @param cb Callback function accepting three args: response, error_type, error_message function M.DescribeEndpointsAsync(DescribeEndpointsRequest, cb) assert(DescribeEndpointsRequest, "You must provide a DescribeEndpointsRequest") local headers = { [request_headers.CONTENT_TYPE_HEADER] = content_type.from_protocol(M.metadata.protocol, M.metadata.json_version), [request_headers.AMZ_TARGET_HEADER] = ".DescribeEndpoints", } for header,value in pairs(DescribeEndpointsRequest.headers) do headers[header] = value end local request_handler, err = request_handlers.from_protocol_and_method("rest-json", "POST") if request_handler then request_handler(settings.uri, "/2017-08-29/endpoints", DescribeEndpointsRequest, headers, settings, cb) else cb(false, err) end end --- Call DescribeEndpoints synchronously, returning when done -- This assumes that the function is called from within a coroutine -- @param DescribeEndpointsRequest -- @return response -- @return error_type -- @return error_message function M.DescribeEndpointsSync(DescribeEndpointsRequest, ...) local co = coroutine.running() assert(co, "You must call this function from within a coroutine") M.DescribeEndpointsAsync(DescribeEndpointsRequest, function(response, error_type, error_message) assert(coroutine.resume(co, response, error_type, error_message)) end) return coroutine.yield() end --- Call TagResource asynchronously, invoking a callback when done -- @param TagResourceRequest -- @param cb Callback function accepting three args: response, error_type, error_message function M.TagResourceAsync(TagResourceRequest, cb) assert(TagResourceRequest, "You must provide a TagResourceRequest") local headers = { [request_headers.CONTENT_TYPE_HEADER] = content_type.from_protocol(M.metadata.protocol, M.metadata.json_version), [request_headers.AMZ_TARGET_HEADER] = ".TagResource", } for header,value in pairs(TagResourceRequest.headers) do headers[header] = value end local request_handler, err = request_handlers.from_protocol_and_method("rest-json", "POST") if request_handler then request_handler(settings.uri, "/2017-08-29/tags", TagResourceRequest, headers, settings, cb) else cb(false, err) end end --- Call TagResource synchronously, returning when done -- This assumes that the function is called from within a coroutine -- @param TagResourceRequest -- @return response -- @return error_type -- @return error_message function M.TagResourceSync(TagResourceRequest, ...) local co = coroutine.running() assert(co, "You must call this function from within a coroutine") M.TagResourceAsync(TagResourceRequest, function(response, error_type, error_message) assert(coroutine.resume(co, response, error_type, error_message)) end) return coroutine.yield() end --- Call GetQueue asynchronously, invoking a callback when done -- @param GetQueueRequest -- @param cb Callback function accepting three args: response, error_type, error_message function M.GetQueueAsync(GetQueueRequest, cb) assert(GetQueueRequest, "You must provide a GetQueueRequest") local headers = { [request_headers.CONTENT_TYPE_HEADER] = content_type.from_protocol(M.metadata.protocol, M.metadata.json_version), [request_headers.AMZ_TARGET_HEADER] = ".GetQueue", } for header,value in pairs(GetQueueRequest.headers) do headers[header] = value end local request_handler, err = request_handlers.from_protocol_and_method("rest-json", "GET") if request_handler then request_handler(settings.uri, "/2017-08-29/queues/{name}", GetQueueRequest, headers, settings, cb) else cb(false, err) end end --- Call GetQueue synchronously, returning when done -- This assumes that the function is called from within a coroutine -- @param GetQueueRequest -- @return response -- @return error_type -- @return error_message function M.GetQueueSync(GetQueueRequest, ...) local co = coroutine.running() assert(co, "You must call this function from within a coroutine") M.GetQueueAsync(GetQueueRequest, function(response, error_type, error_message) assert(coroutine.resume(co, response, error_type, error_message)) end) return coroutine.yield() end --- Call DeleteJobTemplate asynchronously, invoking a callback when done -- @param DeleteJobTemplateRequest -- @param cb Callback function accepting three args: response, error_type, error_message function M.DeleteJobTemplateAsync(DeleteJobTemplateRequest, cb) assert(DeleteJobTemplateRequest, "You must provide a DeleteJobTemplateRequest") local headers = { [request_headers.CONTENT_TYPE_HEADER] = content_type.from_protocol(M.metadata.protocol, M.metadata.json_version), [request_headers.AMZ_TARGET_HEADER] = ".DeleteJobTemplate", } for header,value in pairs(DeleteJobTemplateRequest.headers) do headers[header] = value end local request_handler, err = request_handlers.from_protocol_and_method("rest-json", "DELETE") if request_handler then request_handler(settings.uri, "/2017-08-29/jobTemplates/{name}", DeleteJobTemplateRequest, headers, settings, cb) else cb(false, err) end end --- Call DeleteJobTemplate synchronously, returning when done -- This assumes that the function is called from within a coroutine -- @param DeleteJobTemplateRequest -- @return response -- @return error_type -- @return error_message function M.DeleteJobTemplateSync(DeleteJobTemplateRequest, ...) local co = coroutine.running() assert(co, "You must call this function from within a coroutine") M.DeleteJobTemplateAsync(DeleteJobTemplateRequest, function(response, error_type, error_message) assert(coroutine.resume(co, response, error_type, error_message)) end) return coroutine.yield() end --- Call ListJobs asynchronously, invoking a callback when done -- @param ListJobsRequest -- @param cb Callback function accepting three args: response, error_type, error_message function M.ListJobsAsync(ListJobsRequest, cb) assert(ListJobsRequest, "You must provide a ListJobsRequest") local headers = { [request_headers.CONTENT_TYPE_HEADER] = content_type.from_protocol(M.metadata.protocol, M.metadata.json_version), [request_headers.AMZ_TARGET_HEADER] = ".ListJobs", } for header,value in pairs(ListJobsRequest.headers) do headers[header] = value end local request_handler, err = request_handlers.from_protocol_and_method("rest-json", "GET") if request_handler then request_handler(settings.uri, "/2017-08-29/jobs", ListJobsRequest, headers, settings, cb) else cb(false, err) end end --- Call ListJobs synchronously, returning when done -- This assumes that the function is called from within a coroutine -- @param ListJobsRequest -- @return response -- @return error_type -- @return error_message function M.ListJobsSync(ListJobsRequest, ...) local co = coroutine.running() assert(co, "You must call this function from within a coroutine") M.ListJobsAsync(ListJobsRequest, function(response, error_type, error_message) assert(coroutine.resume(co, response, error_type, error_message)) end) return coroutine.yield() end --- Call CreateJob asynchronously, invoking a callback when done -- @param CreateJobRequest -- @param cb Callback function accepting three args: response, error_type, error_message function M.CreateJobAsync(CreateJobRequest, cb) assert(CreateJobRequest, "You must provide a CreateJobRequest") local headers = { [request_headers.CONTENT_TYPE_HEADER] = content_type.from_protocol(M.metadata.protocol, M.metadata.json_version), [request_headers.AMZ_TARGET_HEADER] = ".CreateJob", } for header,value in pairs(CreateJobRequest.headers) do headers[header] = value end local request_handler, err = request_handlers.from_protocol_and_method("rest-json", "POST") if request_handler then request_handler(settings.uri, "/2017-08-29/jobs", CreateJobRequest, headers, settings, cb) else cb(false, err) end end --- Call CreateJob synchronously, returning when done -- This assumes that the function is called from within a coroutine -- @param CreateJobRequest -- @return response -- @return error_type -- @return error_message function M.CreateJobSync(CreateJobRequest, ...) local co = coroutine.running() assert(co, "You must call this function from within a coroutine") M.CreateJobAsync(CreateJobRequest, function(response, error_type, error_message) assert(coroutine.resume(co, response, error_type, error_message)) end) return coroutine.yield() end --- Call GetPreset asynchronously, invoking a callback when done -- @param GetPresetRequest -- @param cb Callback function accepting three args: response, error_type, error_message function M.GetPresetAsync(GetPresetRequest, cb) assert(GetPresetRequest, "You must provide a GetPresetRequest") local headers = { [request_headers.CONTENT_TYPE_HEADER] = content_type.from_protocol(M.metadata.protocol, M.metadata.json_version), [request_headers.AMZ_TARGET_HEADER] = ".GetPreset", } for header,value in pairs(GetPresetRequest.headers) do headers[header] = value end local request_handler, err = request_handlers.from_protocol_and_method("rest-json", "GET") if request_handler then request_handler(settings.uri, "/2017-08-29/presets/{name}", GetPresetRequest, headers, settings, cb) else cb(false, err) end end --- Call GetPreset synchronously, returning when done -- This assumes that the function is called from within a coroutine -- @param GetPresetRequest -- @return response -- @return error_type -- @return error_message function M.GetPresetSync(GetPresetRequest, ...) local co = coroutine.running() assert(co, "You must call this function from within a coroutine") M.GetPresetAsync(GetPresetRequest, function(response, error_type, error_message) assert(coroutine.resume(co, response, error_type, error_message)) end) return coroutine.yield() end --- Call UpdateQueue asynchronously, invoking a callback when done -- @param UpdateQueueRequest -- @param cb Callback function accepting three args: response, error_type, error_message function M.UpdateQueueAsync(UpdateQueueRequest, cb) assert(UpdateQueueRequest, "You must provide a UpdateQueueRequest") local headers = { [request_headers.CONTENT_TYPE_HEADER] = content_type.from_protocol(M.metadata.protocol, M.metadata.json_version), [request_headers.AMZ_TARGET_HEADER] = ".UpdateQueue", } for header,value in pairs(UpdateQueueRequest.headers) do headers[header] = value end local request_handler, err = request_handlers.from_protocol_and_method("rest-json", "PUT") if request_handler then request_handler(settings.uri, "/2017-08-29/queues/{name}", UpdateQueueRequest, headers, settings, cb) else cb(false, err) end end --- Call UpdateQueue synchronously, returning when done -- This assumes that the function is called from within a coroutine -- @param UpdateQueueRequest -- @return response -- @return error_type -- @return error_message function M.UpdateQueueSync(UpdateQueueRequest, ...) local co = coroutine.running() assert(co, "You must call this function from within a coroutine") M.UpdateQueueAsync(UpdateQueueRequest, function(response, error_type, error_message) assert(coroutine.resume(co, response, error_type, error_message)) end) return coroutine.yield() end --- Call CancelJob asynchronously, invoking a callback when done -- @param CancelJobRequest -- @param cb Callback function accepting three args: response, error_type, error_message function M.CancelJobAsync(CancelJobRequest, cb) assert(CancelJobRequest, "You must provide a CancelJobRequest") local headers = { [request_headers.CONTENT_TYPE_HEADER] = content_type.from_protocol(M.metadata.protocol, M.metadata.json_version), [request_headers.AMZ_TARGET_HEADER] = ".CancelJob", } for header,value in pairs(CancelJobRequest.headers) do headers[header] = value end local request_handler, err = request_handlers.from_protocol_and_method("rest-json", "DELETE") if request_handler then request_handler(settings.uri, "/2017-08-29/jobs/{id}", CancelJobRequest, headers, settings, cb) else cb(false, err) end end --- Call CancelJob synchronously, returning when done -- This assumes that the function is called from within a coroutine -- @param CancelJobRequest -- @return response -- @return error_type -- @return error_message function M.CancelJobSync(CancelJobRequest, ...) local co = coroutine.running() assert(co, "You must call this function from within a coroutine") M.CancelJobAsync(CancelJobRequest, function(response, error_type, error_message) assert(coroutine.resume(co, response, error_type, error_message)) end) return coroutine.yield() end --- Call CreatePreset asynchronously, invoking a callback when done -- @param CreatePresetRequest -- @param cb Callback function accepting three args: response, error_type, error_message function M.CreatePresetAsync(CreatePresetRequest, cb) assert(CreatePresetRequest, "You must provide a CreatePresetRequest") local headers = { [request_headers.CONTENT_TYPE_HEADER] = content_type.from_protocol(M.metadata.protocol, M.metadata.json_version), [request_headers.AMZ_TARGET_HEADER] = ".CreatePreset", } for header,value in pairs(CreatePresetRequest.headers) do headers[header] = value end local request_handler, err = request_handlers.from_protocol_and_method("rest-json", "POST") if request_handler then request_handler(settings.uri, "/2017-08-29/presets", CreatePresetRequest, headers, settings, cb) else cb(false, err) end end --- Call CreatePreset synchronously, returning when done -- This assumes that the function is called from within a coroutine -- @param CreatePresetRequest -- @return response -- @return error_type -- @return error_message function M.CreatePresetSync(CreatePresetRequest, ...) local co = coroutine.running() assert(co, "You must call this function from within a coroutine") M.CreatePresetAsync(CreatePresetRequest, function(response, error_type, error_message) assert(coroutine.resume(co, response, error_type, error_message)) end) return coroutine.yield() end --- Call UntagResource asynchronously, invoking a callback when done -- @param UntagResourceRequest -- @param cb Callback function accepting three args: response, error_type, error_message function M.UntagResourceAsync(UntagResourceRequest, cb) assert(UntagResourceRequest, "You must provide a UntagResourceRequest") local headers = { [request_headers.CONTENT_TYPE_HEADER] = content_type.from_protocol(M.metadata.protocol, M.metadata.json_version), [request_headers.AMZ_TARGET_HEADER] = ".UntagResource", } for header,value in pairs(UntagResourceRequest.headers) do headers[header] = value end local request_handler, err = request_handlers.from_protocol_and_method("rest-json", "PUT") if request_handler then request_handler(settings.uri, "/2017-08-29/tags/{arn}", UntagResourceRequest, headers, settings, cb) else cb(false, err) end end --- Call UntagResource synchronously, returning when done -- This assumes that the function is called from within a coroutine -- @param UntagResourceRequest -- @return response -- @return error_type -- @return error_message function M.UntagResourceSync(UntagResourceRequest, ...) local co = coroutine.running() assert(co, "You must call this function from within a coroutine") M.UntagResourceAsync(UntagResourceRequest, function(response, error_type, error_message) assert(coroutine.resume(co, response, error_type, error_message)) end) return coroutine.yield() end --- Call GetJob asynchronously, invoking a callback when done -- @param GetJobRequest -- @param cb Callback function accepting three args: response, error_type, error_message function M.GetJobAsync(GetJobRequest, cb) assert(GetJobRequest, "You must provide a GetJobRequest") local headers = { [request_headers.CONTENT_TYPE_HEADER] = content_type.from_protocol(M.metadata.protocol, M.metadata.json_version), [request_headers.AMZ_TARGET_HEADER] = ".GetJob", } for header,value in pairs(GetJobRequest.headers) do headers[header] = value end local request_handler, err = request_handlers.from_protocol_and_method("rest-json", "GET") if request_handler then request_handler(settings.uri, "/2017-08-29/jobs/{id}", GetJobRequest, headers, settings, cb) else cb(false, err) end end --- Call GetJob synchronously, returning when done -- This assumes that the function is called from within a coroutine -- @param GetJobRequest -- @return response -- @return error_type -- @return error_message function M.GetJobSync(GetJobRequest, ...) local co = coroutine.running() assert(co, "You must call this function from within a coroutine") M.GetJobAsync(GetJobRequest, function(response, error_type, error_message) assert(coroutine.resume(co, response, error_type, error_message)) end) return coroutine.yield() end --- Call DeleteQueue asynchronously, invoking a callback when done -- @param DeleteQueueRequest -- @param cb Callback function accepting three args: response, error_type, error_message function M.DeleteQueueAsync(DeleteQueueRequest, cb) assert(DeleteQueueRequest, "You must provide a DeleteQueueRequest") local headers = { [request_headers.CONTENT_TYPE_HEADER] = content_type.from_protocol(M.metadata.protocol, M.metadata.json_version), [request_headers.AMZ_TARGET_HEADER] = ".DeleteQueue", } for header,value in pairs(DeleteQueueRequest.headers) do headers[header] = value end local request_handler, err = request_handlers.from_protocol_and_method("rest-json", "DELETE") if request_handler then request_handler(settings.uri, "/2017-08-29/queues/{name}", DeleteQueueRequest, headers, settings, cb) else cb(false, err) end end --- Call DeleteQueue synchronously, returning when done -- This assumes that the function is called from within a coroutine -- @param DeleteQueueRequest -- @return response -- @return error_type -- @return error_message function M.DeleteQueueSync(DeleteQueueRequest, ...) local co = coroutine.running() assert(co, "You must call this function from within a coroutine") M.DeleteQueueAsync(DeleteQueueRequest, function(response, error_type, error_message) assert(coroutine.resume(co, response, error_type, error_message)) end) return coroutine.yield() end --- Call CreateJobTemplate asynchronously, invoking a callback when done -- @param CreateJobTemplateRequest -- @param cb Callback function accepting three args: response, error_type, error_message function M.CreateJobTemplateAsync(CreateJobTemplateRequest, cb) assert(CreateJobTemplateRequest, "You must provide a CreateJobTemplateRequest") local headers = { [request_headers.CONTENT_TYPE_HEADER] = content_type.from_protocol(M.metadata.protocol, M.metadata.json_version), [request_headers.AMZ_TARGET_HEADER] = ".CreateJobTemplate", } for header,value in pairs(CreateJobTemplateRequest.headers) do headers[header] = value end local request_handler, err = request_handlers.from_protocol_and_method("rest-json", "POST") if request_handler then request_handler(settings.uri, "/2017-08-29/jobTemplates", CreateJobTemplateRequest, headers, settings, cb) else cb(false, err) end end --- Call CreateJobTemplate synchronously, returning when done -- This assumes that the function is called from within a coroutine -- @param CreateJobTemplateRequest -- @return response -- @return error_type -- @return error_message function M.CreateJobTemplateSync(CreateJobTemplateRequest, ...) local co = coroutine.running() assert(co, "You must call this function from within a coroutine") M.CreateJobTemplateAsync(CreateJobTemplateRequest, function(response, error_type, error_message) assert(coroutine.resume(co, response, error_type, error_message)) end) return coroutine.yield() end --- Call UpdateJobTemplate asynchronously, invoking a callback when done -- @param UpdateJobTemplateRequest -- @param cb Callback function accepting three args: response, error_type, error_message function M.UpdateJobTemplateAsync(UpdateJobTemplateRequest, cb) assert(UpdateJobTemplateRequest, "You must provide a UpdateJobTemplateRequest") local headers = { [request_headers.CONTENT_TYPE_HEADER] = content_type.from_protocol(M.metadata.protocol, M.metadata.json_version), [request_headers.AMZ_TARGET_HEADER] = ".UpdateJobTemplate", } for header,value in pairs(UpdateJobTemplateRequest.headers) do headers[header] = value end local request_handler, err = request_handlers.from_protocol_and_method("rest-json", "PUT") if request_handler then request_handler(settings.uri, "/2017-08-29/jobTemplates/{name}", UpdateJobTemplateRequest, headers, settings, cb) else cb(false, err) end end --- Call UpdateJobTemplate synchronously, returning when done -- This assumes that the function is called from within a coroutine -- @param UpdateJobTemplateRequest -- @return response -- @return error_type -- @return error_message function M.UpdateJobTemplateSync(UpdateJobTemplateRequest, ...) local co = coroutine.running() assert(co, "You must call this function from within a coroutine") M.UpdateJobTemplateAsync(UpdateJobTemplateRequest, function(response, error_type, error_message) assert(coroutine.resume(co, response, error_type, error_message)) end) return coroutine.yield() end --- Call ListTagsForResource asynchronously, invoking a callback when done -- @param ListTagsForResourceRequest -- @param cb Callback function accepting three args: response, error_type, error_message function M.ListTagsForResourceAsync(ListTagsForResourceRequest, cb) assert(ListTagsForResourceRequest, "You must provide a ListTagsForResourceRequest") local headers = { [request_headers.CONTENT_TYPE_HEADER] = content_type.from_protocol(M.metadata.protocol, M.metadata.json_version), [request_headers.AMZ_TARGET_HEADER] = ".ListTagsForResource", } for header,value in pairs(ListTagsForResourceRequest.headers) do headers[header] = value end local request_handler, err = request_handlers.from_protocol_and_method("rest-json", "GET") if request_handler then request_handler(settings.uri, "/2017-08-29/tags/{arn}", ListTagsForResourceRequest, headers, settings, cb) else cb(false, err) end end --- Call ListTagsForResource synchronously, returning when done -- This assumes that the function is called from within a coroutine -- @param ListTagsForResourceRequest -- @return response -- @return error_type -- @return error_message function M.ListTagsForResourceSync(ListTagsForResourceRequest, ...) local co = coroutine.running() assert(co, "You must call this function from within a coroutine") M.ListTagsForResourceAsync(ListTagsForResourceRequest, function(response, error_type, error_message) assert(coroutine.resume(co, response, error_type, error_message)) end) return coroutine.yield() end return M
-- ============================================================= -- b_mover_asteroids.lua -- Mover Behavior - Drag Object (Self) -- Behavior Type: Instance -- ============================================================= -- -- ============================================================= --[[ FUNCTIONS IN THIS FILE --]] --behaviors = require("behaviors") public = {} public._behaviorName = "mover_asteroids" function public:onAttach( obj, params ) print("Attached Behavior: " .. self._behaviorName) local behaviorInstance = {} behaviorInstance._behaviorName = self._behaviorName if( not params ) then params = {} end -- Event listener for touches on 'inputObj' function behaviorInstance:touch( event ) local target = event.target if(event.phase == "began") then self.startX = event.x self.startY = event.y display.getCurrentStage():setFocus( target, nil ) target.isFocus = true elseif(target.isFocus) then if(event.phase == "ended") then self.startX = nil self.startY = nil display.getCurrentStage():setFocus( nil ) target.isFocus = false --self.moveObj:applyForce( 0, 0, self.moveObj.x, self.moveObj.y ) elseif(event.phase == "moved") then if(not self.startX) then return end local deltaX = event.x - self.startX local deltaY = event.y - self.startY local vLen = ssk.math2d.length(deltaX, deltaY) local angle = ssk.math2d.vector2Angle(deltaX, deltaY) local forceX,forceY = ssk.math2d.scale(deltaX, deltaY, self.forceMult) print( vLen, angle, forceX, forceY ) self.moveObj.rotation = angle self.moveObj:applyForce( forceX, forceY, self.moveObj.x, self.moveObj.y ) --self.moveObj.x = self.moveObj.x + deltaX --self.moveObj.y = self.moveObj.y + deltaY end end end -- This method is required (even if it does no work) ==> function behaviorInstance:onDetach( obj ) print("Detached behavior:" .. self._behaviorName) -- ========= ADD YOUR DETACH CODE HERE ======= self.inputObj:removeEventListener( "touch", behaviorInstance ) -- ========= ADD YOUR DETACH CODE HERE ======= end -- ========= ADD YOUR ATTACH CODE HERE ======= -- do initialization work here (like adding functions, fields, etc.) behaviorInstance.inputObj = params.inputObj or obj -- Default to this object as input obj behaviorInstance.moveObj = params.moveObj or obj -- Object to move behaviorInstance.forceMult = params.forceMult or 1.0 behaviorInstance.moveObj:applyForce( 0, -400, behaviorInstance.moveObj.x, behaviorInstance.moveObj.y ) -- Configure object's linear damping behaviorInstance.moveObj.linearDamping = params.linDamp or 0.0 -- Enable "touch" listener for for the 'inputObj' and pass these events to the 'behaviorInstance' behaviorInstance.inputObj:addEventListener( "touch", behaviorInstance ) -- ========= ADD YOUR ATTACH CODE HERE ======= return behaviorInstance end ssk.behaviors:registerBehavior( public._behaviorName, public ) return public
local E, L, V, P, G, _ = unpack(select(2, ...)); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB P["AuraWatch"].SpellList = { ["DEATHKNIGHT"] = { { Name = "P_BUFF_ICON", Direction = "LEFT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"BOTTOMLEFT", "ElvUF_Player", "TOPLEFT", 0, 12}, -- Bone Shield --BETA {spellID = 49222, unitID = "player", caster = "player", filter = "BUFF"}, -- Vampiric Blood {spellID = 55233, unitID = "player", caster = "player", filter = "BUFF"}, -- Icebound Fortitude {spellID = 48792, unitID = "player", caster = "player", filter = "BUFF"}, -- Anti-Magic Shell {spellID = 48707, unitID = "player", caster = "player", filter = "BUFF"}, -- Dancing Rune Weapon {spellID = 81256, unitID = "player", caster = "player", filter = "BUFF"}, -- Lichborne {spellID = 49039, unitID = "player", caster = "player", filter = "BUFF"}, -- Pillar of Frost {spellID = 51271, unitID = "player", caster = "player", filter = "BUFF"}, -- Desecrated Ground {spellID = 115018, unitID = "player", caster = "player", filter = "BUFF"}, -- Death's Advance --BETA {spellID = 96268, unitID = "player", caster = "player", filter = "BUFF"}, -- Unholy Blight {spellID = 115989, unitID = "player", caster = "player", filter = "BUFF"}, -- Summon Gargoyle {spellID = 49206, filter = "ICD", trigger = "NONE", duration = 40}, }, { Name = "P_PROC_ICON", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"BOTTOMLEFT", "ElvUF_Player", "TOPLEFT", 0, 55}, -- Buffs -- Scent of Blood --BETA {spellID = 50421, unitID = "player", caster = "player", filter = "BUFF"}, -- Crimson Scourge {spellID = 81141, unitID = "player", caster = "player", filter = "BUFF"}, -- Freezing Fog {spellID = 59052, unitID = "player", caster = "player", filter = "BUFF"}, -- Killing Machine {spellID = 51124, unitID = "player", caster = "player", filter = "BUFF"}, -- Sudden Doom {spellID = 81340, unitID = "player", caster = "player", filter = "BUFF"}, -- Unholy Strength {spellID = 53365, unitID = "player", caster = "player", filter = "BUFF"}, -- Dark Transformation {spellID = 63560, unitID = "pet", caster = "player", filter = "BUFF"}, -- Shadow Infusion --BETA {spellID = 91342, unitID = "pet", caster = "player", filter = "BUFF", count = 5}, -- Blood Charge --BETA {spellID = 114851, unitID = "player", caster = "player", filter = "BUFF", count = 10}, -- Trinkets -- 1.0: Darkmoon Cards -- Spirit of the Warlords (Crit, Proc) {spellID = 162915, unitID = "player", caster = "player", filter = "BUFF"}, -- Strength of Steel (Crit, Proc) {spellID = 162917, unitID = "player", caster = "player", filter = "BUFF"}, -- 1.1: Alchemy Stones -- Strength {spellID = 60229, unitID = "player", caster = "player", filter = "BUFF"}, -- 1.2: Hallow's End -- Brawler's Statue (Bonus Armor, Use) {spellID = 127967, unitID = "player", caster = "player", filter = "BUFF"}, -- Coren's Cold Chromium (Attack Power, Proc) {spellID = 127926, unitID = "player", caster = "player", filter = "BUFF"}, -- 2.0: PvP Trinkets -- Battlemaster (Health, Use) {spellID = 181706, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Strength] (Versatility, Use) {spellID = 182073, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Strength] (Versatility, Proc) {spellID = 182063, unitID = "player", caster = "player", filter = "BUFF"}, -- 3.0: Heirlooms -- Gronntooth War Horn (Strength, Proc) {spellID = 201405, unitID = "player", caster = "player", filter = "BUFF"}, -- Tanking -- Battering Talisman (Haste, Proc) {spellID = 177102, unitID = "player", caster = "player", filter = "BUFF"}, -- Blast Furnace Door (Mastery, Proc) {spellID = 177056, unitID = "player", caster = "player", filter = "BUFF"}, -- Evergaze Arcane Eidolon (Bonus Armor, Proc) {spellID = 177053, unitID = "player", caster = "player", filter = "BUFF"}, -- Formidable Relic of Blood (Haste, Proc) {spellID = 176937, unitID = "player", caster = "player", filter = "BUFF"}, -- Kyb's Foolish Perseverance (Health, Use) {spellID = 176460, unitID = "player", caster = "player", filter = "BUFF"}, -- Pol's Blinded Eye (Mastery, Use) {spellID = 176876, unitID = "player", caster = "player", filter = "BUFF"}, -- Stoneheart Idol (Crit, Proc) {spellID = 176982, unitID = "player", caster = "player", filter = "BUFF"}, -- Tablet of Turnbuckle Teamwork (Bonus Armor, Use) {spellID = 176873, unitID = "player", caster = "player", filter = "BUFF"}, -- Anzu's Cursed Plume (Mastery, Proc) {spellID = 183931, unitID = "player", caster = "player", filter = "BUFF"}, -- Enforcer's Stun Grenade (Versatility, Use) {spellID = 165534, unitID = "player", caster = "player", filter = "BUFF"}, -- Kyrak's Vileblood Serum (Mastery, Use) {spellID = 165535, unitID = "player", caster = "player", filter = "BUFF"}, -- Tyrant's Decree (Stamina, Proc) {spellID = 184770, unitID = "player", caster = "player", filter = "BUFF"}, -- Xeri'tac's Unhatched Egg Sac (Mastery, Proc) {spellID = 165824, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Strength] -- Forgemaster's Insignia (Multistrike, Proc) {spellID = 177096, unitID = "player", caster = "player", filter = "BUFF"}, -- Formidable Fang (Multistrike, Proc) {spellID = 176935, unitID = "player", caster = "player", filter = "BUFF"}, -- Horn of the Screaming Spirits (Mastery, Proc) {spellID = 177042, unitID = "player", caster = "player", filter = "BUFF"}, -- Mote of the Mountain (Versatility, Proc) {spellID = 176974, unitID = "player", caster = "player", filter = "BUFF"}, -- Scabbard of Kyanos (Strength, Use) {spellID = 177189, unitID = "player", caster = "player", filter = "BUFF"}, -- Tectus' Beating Heart (Crit, Proc) {spellID = 177040, unitID = "player", caster = "player", filter = "BUFF"}, -- Vial of Convulsive Shadows (Multistrike, Use) {spellID = 176874, unitID = "player", caster = "player", filter = "BUFF"}, -- Bonemaw's Big Toe (Crit, Use) {spellID = 165532, unitID = "player", caster = "player", filter = "BUFF"}, -- Emberscale Talisman (Versatility, Use) {spellID = 165543, unitID = "player", caster = "player", filter = "BUFF"}, -- Spores of Alacrity (Haste, Proc) {spellID = 165822, unitID = "player", caster = "player", filter = "BUFF"}, -- Unending Hunger (Strength, Proc) {spellID = 183941, unitID = "player", caster = "player", filter = "BUFF"}, -- Enchants -- Mark of Blackrock (Bonus Armor) {spellID = 159679, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of Bleeding Hollow (Mastery) {spellID = 173322, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of the Frostwolf (Multistrike) {spellID = 159676, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of the Thunderlord (Crit) {spellID = 159234, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of Warsong (Haste) {spellID = 159675, unitID = "player", caster = "all", filter = "BUFF"}, }, { Name = "T_DE/BUFF_BAR", Direction = "UP", IconSide = "LEFT", Mode = "BAR", Interval = 3, Alpha = 1, IconSize = 25, BarWidth = 186, Position = {"BOTTOMLEFT", "ElvUF_Target", "TOPLEFT", 0, 68}, -- Blood Plague {spellID = 55078, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Frost Fever {spellID = 55095, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Trinket Effects -- Fel Burn [Empty Drinking Horn] {spellID = 184256, unitID = "target", caster = "player", filter = "DEBUFF"}, }, { Name = "COOLDOWN", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"CENTER", "E.UIParent", "CENTER", 0, -200}, -- Self -- Mind Freeze {spellID = 47528, filter = "CD"}, -- Strangulate {spellID = 47476, filter = "CD"}, -- Gnaw (Ghoul) {spellID = 47481, filter = "CD"}, -- Remorseless Winter --BETA {spellID = 108200, filter = "CD"}, -- Dark Simulacrum {spellID = 77606, filter = "CD"}, -- Soul Reaper {spellID = 130736, filter = "CD"}, -- Death Grip {spellID = 49576, filter = "CD"}, -- Plague Leech {spellID = 123693, filter = "CD"}, -- Death and Decay {spellID = 43265, filter = "CD"}, -- Death's Advance --BETA {spellID = 96268, filter = "CD"}, -- Rune Tap --BETA {spellID = 48982, filter = "CD"}, -- Anti-Magic Shell {spellID = 48707, filter = "CD"}, -- Vampiric Blood {spellID = 55233, filter = "CD"}, -- Pillar of Frost {spellID = 51271, filter = "CD"}, -- Outbreak {spellID = 77575, filter = "CD"}, -- Gorefiend's Grasp {spellID = 108199, filter = "CD"}, -- Raise Dead {spellID = 46584, filter = "CD"}, -- Dancing Rune Weapon {spellID = 49028, filter = "CD"}, -- Unholy Blight {spellID = 115989, filter = "CD"}, -- Breath of Sindragosa {spellID = 152279, filter = "CD"}, -- Lichborne {spellID = 49039, filter = "CD"}, -- Desecrated Ground {spellID = 108201, filter = "CD"}, -- Death Pact {spellID = 48743, filter = "CD"}, -- Anti-Magic Zone {spellID = 51052, filter = "CD"}, -- Icebound Fortitude {spellID = 48792, filter = "CD"}, -- Summon Gargoyle {spellID = 49206, filter = "CD"}, -- Racial -- Arcane Torrent (Blood Elf) {spellID = 69179, filter = "CD"}, -- Berserking (Troll) {spellID = 26297, filter = "CD"}, -- Blood Fury (Orc) {spellID = 20572, filter = "CD"}, -- Cannibalize (Forsaken) {spellID = 20577, filter = "CD"}, -- Darkflight (Worgen) {spellID = 68992, filter = "CD"}, -- Escape Artist (Gnome) {spellID = 20589, filter = "CD"}, -- Every Man for Himself (Human) {spellID = 59752, filter = "CD"}, -- Gift of the Naaru (Draenei) {spellID = 28880, filter = "CD"}, -- Rocket Jump (Goblin) {spellID = 69070, filter = "CD"}, -- Shadowmeld (Night Elf) {spellID = 58984, filter = "CD"}, -- Stoneform (Dwarf) {spellID = 20594, filter = "CD"}, -- War Stomp (Tauren) {spellID = 20549, filter = "CD"}, -- Will of the Forsaken (Forsaken) {spellID = 7744, filter = "CD"}, -- Items -- Back {slotID = 15, filter = "CD"}, -- Belt {slotID = 6, filter = "CD"}, -- Gloves {slotID = 10, filter = "CD"}, -- Neck {slotID = 2, filter = "CD"}, -- Rings {slotID = 11, filter = "CD"}, {slotID = 12, filter = "CD"}, -- Trinkets {slotID = 13, filter = "CD"}, {slotID = 14, filter = "CD"}, }, }, ["DEMONHUNTER"] = { { Name = "P_BUFF_ICON", Direction = "LEFT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"BOTTOMLEFT", "ElvUF_Player", "TOPLEFT", 0, 12}, -- Metamorphosis {spellID = 187827, unitID = "player", caster = "player", filter = "BUFF"}, -- Empower Wards {spellID = 218256, unitID = "player", caster = "player", filter = "BUFF"}, -- Darkness {spellID = 196718, unitID = "player", caster = "player", filter = "BUFF"}, -- Immolation Aura {spellID = 178470, unitID = "player", caster = "player", filter = "BUFF"}, -- Demon Spikes {spellID = 203720, unitID = "player", caster = "player", filter = "BUFF"}, -- Soul Barrier (Talent) {spellID = 227225, unitID = "player", caster = "player", filter = "BUFF"}, -- Netherwalk (Talent) {spellID = 196555, unitID = "player", caster = "player", filter = "BUFF"}, -- Nether Bond (Talent) {spellID = 207810, unitID = "player", caster = "player", filter = "BUFF"}, }, { Name = "P_PROC_ICON", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"BOTTOMLEFT", "ElvUF_Player", "TOPLEFT", 0, 55}, -- Buffs -- Soul Fragments {spellID = 203981, unitID = "player", caster = "player", filter = "BUFF"}, -- Painbringer (Vengeance Artifact) {spellID = 212988, unitID = "player", caster = "player", filter = "BUFF"}, -- Momentum (Talent) {spellID = 208628, unitID = "player", caster = "player", filter = "BUFF"}, -- Trinkets -- 1.0: Darkmoon Cards -- Nightmare Fire (Crit, Proc) {spellID = 162919, unitID = "player", caster = "player", filter = "BUFF"}, -- Visions of the Future (Spirit, Proc) {spellID = 162913, unitID = "player", caster = "player", filter = "BUFF"}, -- Spirit of the Warlords (Crit, Proc) {spellID = 162915, unitID = "player", caster = "player", filter = "BUFF"}, -- Strength of Steel (Crit, Proc) {spellID = 162917, unitID = "player", caster = "player", filter = "BUFF"}, -- 1.1: Alchemy Stones -- Agility {spellID = 60233, unitID = "player", caster = "player", filter = "BUFF"}, -- 1.2: Hallow's End -- Brawler's Statue (Bonus Armor, Use) {spellID = 127967, unitID = "player", caster = "player", filter = "BUFF"}, -- Coren's Cold Chromium (Attack Power, Proc) {spellID = 127926, unitID = "player", caster = "player", filter = "BUFF"}, -- Mithril Wristwatch (Spell Power, Proc) {spellID = 127924, unitID = "player", caster = "player", filter = "BUFF"}, -- Thousand-Year Pickled Egg (Haste, Proc) {spellID = 127914, unitID = "player", caster = "player", filter = "BUFF"}, -- 3.0: Heirlooms -- Infallible Tracking Charm [Damage, Proc] {spellID = 201408, unitID = "player", caster = "player", filter = "BUFF"}, -- Orb Of Voidsight (Haste, Proc) {spellID = 201410, unitID = "player", caster = "player", filter = "BUFF"}, -- 2.0: PvP Trinkets -- Battlemaster (Health, Use) {spellID = 181706, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Agility] (Versatility, Proc) {spellID = 182060, unitID = "player", caster = "player", filter = "BUFF"}, -- Tanking -- Battering Talisman (Haste, Proc) {spellID = 177102, unitID = "player", caster = "player", filter = "BUFF"}, -- Blast Furnace Door (Mastery, Proc) {spellID = 177056, unitID = "player", caster = "player", filter = "BUFF"}, -- Evergaze Arcane Eidolon (Bonus Armor, Proc) {spellID = 177053, unitID = "player", caster = "player", filter = "BUFF"}, -- Formidable Relic of Blood (Haste, Proc) {spellID = 176937, unitID = "player", caster = "player", filter = "BUFF"}, -- Kyb's Foolish Perseverance (Health, Use) {spellID = 176460, unitID = "player", caster = "player", filter = "BUFF"}, -- Pol's Blinded Eye (Mastery, Use) {spellID = 176876, unitID = "player", caster = "player", filter = "BUFF"}, -- Stoneheart Idol (Crit, Proc) {spellID = 176982, unitID = "player", caster = "player", filter = "BUFF"}, -- Tablet of Turnbuckle Teamwork (Bonus Armor, Use) {spellID = 176873, unitID = "player", caster = "player", filter = "BUFF"}, -- Anzu's Cursed Plume (Mastery, Proc) {spellID = 183931, unitID = "player", caster = "player", filter = "BUFF"}, -- Enforcer's Stun Grenade (Versatility, Use) {spellID = 165534, unitID = "player", caster = "player", filter = "BUFF"}, -- Tyrant's Decree (Stamina, Proc) {spellID = 184770, unitID = "player", caster = "player", filter = "BUFF"}, -- Xeri'tac's Unhatched Egg Sac (Mastery, Proc) {spellID = 165824, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Agility] -- Beating Heart of the Mountain (Multistrike, Use) {spellID = 176878, unitID = "player", caster = "player", filter = "BUFF"}, -- Blackheart Enforcer's Medallion (Multistrike, Proc) {spellID = 176984, unitID = "player", caster = "player", filter = "BUFF"}, -- Formidable Jar of Doom (Mastery, Proc) {spellID = 176939, unitID = "player", caster = "player", filter = "BUFF"}, -- Humming Blackiron Trigger (Crit, Proc) {spellID = 177067, unitID = "player", caster = "player", filter = "BUFF"}, -- Lucky Double-Sided Coin (Agility, Use) {spellID = 177597, unitID = "player", caster = "player", filter = "BUFF"}, -- Meaty Dragonspine Trophy (Haste, Proc) {spellID = 177035, unitID = "player", caster = "player", filter = "BUFF"}, -- Scales of Doom (Multistrike, Proc) {spellID = 177038, unitID = "player", caster = "player", filter = "BUFF"}, -- Gor'ashan's Lodestone Spike (Multistrike, Use) {spellID = 165542, unitID = "player", caster = "player", filter = "BUFF"}, -- Kihra's Adrenaline Injector (Mastery, Use) {spellID = 165485, unitID = "player", caster = "player", filter = "BUFF"}, -- Malicious Censer (Agility, Proc) {spellID = 183926, unitID = "player", caster = "player", filter = "BUFF"}, -- Mirror of the Blademaster (Images, Proc) {spellID = 184270, unitID = "player", caster = "player", filter = "BUFF"}, -- Soul Capacitator (Damage, Proc) {spellID = 184293, unitID = "player", caster = "player", filter = "BUFF"}, -- Witherbark's Branch (Haste, Proc) {spellID = 165822, unitID = "player", caster = "player", filter = "BUFF"}, -- Enchants -- Mark of Blackrock (Bonus Armor) {spellID = 159679, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of Bleeding Hollow (Mastery) {spellID = 173322, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of Shadowmoon (Spirit) {spellID = 159678, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of the Frostwolf (Multistrike) {spellID = 159676, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of the Thunderlord (Crit) {spellID = 159234, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of Warsong (Haste) {spellID = 159675, unitID = "player", caster = "all", filter = "BUFF"}, }, { Name = "T_DEBUFF_ICON", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"TOP", T_DEBUFF_ICON_Anchor}, -- Sigil of Flame {spellID = 204598, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Sigil of Silence {spellID = 204490, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Sigil of Misery {spellID = 207685, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Sigil of Grasp {spellID = 204843, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Fiery Brand {spellID = 207744, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Frailty (Spirit Bomb Talent) {spellID = 224509, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Nemesis (Talent) {spellID = 206491, unitID = "target", caster = "player", filter = "DEBUFF"}, }, { Name = "T_DE/BUFF_BAR", Direction = "UP", IconSide = "LEFT", Mode = "BAR", Interval = 3, Alpha = 1, IconSize = 25, BarWidth = 186, Position = {"BOTTOMLEFT", "ElvUF_Target", "TOPLEFT", 0, 68}, -- Darkness {spellID = 209426, unitID = "target", caster = "player", filter = "BUFF"}, }, { Name = "PVE/PVP_CC", Direction = "DOWN", IconSide = "LEFT", Mode = "BAR", Interval = 3, Alpha = 1, IconSize = 25, BarWidth = 189, Position = {"LEFT", "E.UIParent", "LEFT", 200, 0}, -- Imprison {spellID = 217832, unitID = "focus", caster = "all", filter = "DEBUFF"}, }, { Name = "COOLDOWN", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"CENTER", "E.UIParent", "CENTER", 0, -200}, -- Self -- Consume Magic {spellID = 183752, filter = "CD"}, -- Fel Rush {spellID = 195072, filter = "CD", absID = true}, -- Infernal Strike {spellID = 189110, filter = "CD"}, -- Torment {spellID = 185245, filter = "CD"}, -- Demon Spikes {spellID = 203720, filter = "CD"}, -- Immolation Aura {spellID = 178740, filter = "CD"}, -- Felblade (Talent) {spellID = 213241, filter = "CD"}, -- Throw Glaive -- {spellID = 185123, filter = "CD"}, -- Soul Barrier (Talent) {spellID = 227225, filter = "CD"}, -- Blade Dance {spellID = 188499, filter = "CD"}, -- Fel Barrage (Talent) {spellID = 211053, filter = "CD"}, -- Vengeful Retreat {spellID = 198793, filter = "CD", absID = true}, -- Soul Carver (Artifact) {spellID = 207407, filter = "CD"}, -- Sigil of Silence {spellID = 202137, filter = "CD"}, -- Sigil of Misery {spellID = 207684, filter = "CD"}, -- Empower Wards {spellID = 218256, filter = "CD"}, -- Spectral Sight {spellID = 188501, filter = "CD"}, -- Fiery Brand {spellID = 204021, filter = "CD"}, -- Eye Beam {spellID = 198013, filter = "CD", absID = true}, -- Chaos Nova {spellID = 179057, filter = "CD", absID = true}, -- Sigil of Chains {spellID = 202138, filter = "CD"}, -- Fel Eruption (Talent) {spellID = 211881, filter = "CD"}, -- Fel Devastation (Talent) {spellID = 212084, filter = "CD"}, -- Nether Bond (Talent) {spellID = 207810, filter = "CD"}, -- Fury of the Illidari (Artifact) {spellID = 201467, filter = "CD"}, -- Netherwalk (Talent) {spellID = 196555, filter = "CD"}, -- Chaos Blades (Talent) {spellID = 211048, filter = "CD"}, -- Nemesis (Talent) {spellID = 206491, filter = "CD"}, -- Metamorphosis {spellID = 187827, filter = "CD"}, -- Darkness {spellID = 196718, filter = "CD"}, -- Racial -- Arcane Torrent (Blood Elf) {spellID = 202719, filter = "CD"}, -- Shadowmeld (Night Elf) {spellID = 58984, filter = "CD"}, -- Items -- Back {slotID = 15, filter = "CD"}, -- Belt {slotID = 6, filter = "CD"}, -- Gloves {slotID = 10, filter = "CD"}, -- Neck {slotID = 2, filter = "CD"}, -- Rings {slotID = 11, filter = "CD"}, {slotID = 12, filter = "CD"}, -- Trinkets {slotID = 13, filter = "CD"}, {slotID = 14, filter = "CD"}, }, }, ["DRUID"] = { { Name = "P_BUFF_ICON", Direction = "LEFT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"BOTTOMLEFT", "ElvUF_Player", "TOPLEFT", 0, 12}, -- Incarnation: Chosen of Elune {spellID = 102560, unitID = "player", caster = "player", filter = "BUFF"}, -- Incarnation: King of the Jungle {spellID = 102543, unitID = "player", caster = "player", filter = "BUFF"}, -- Incarnation: Son of Ursoc {spellID = 102558, unitID = "player", caster = "player", filter = "BUFF"}, -- Incarnation: Tree of Life {spellID = 117679, unitID = "player", caster = "player", filter = "BUFF"}, -- Survival Instincts {spellID = 61336, unitID = "player", caster = "player", filter = "BUFF"}, -- Barkskin {spellID = 22812, unitID = "player", caster = "player", filter = "BUFF"}, -- Savage Defense --BETA {spellID = 132402, unitID = "player", caster = "player", filter = "BUFF"}, -- Savage Roar {spellID = 52610, unitID = "player", caster = "player", filter = "BUFF"}, -- Heart of the Wild --BETA {spellID = 108294, unitID = "player", caster = "player", filter = "BUFF"}, -- Berserk --BETA {spellID = 50334, unitID = "player", caster = "player", filter = "BUFF", absID = true}, -- Tiger's Fury {spellID = 5217, unitID = "player", caster = "player", filter = "BUFF"}, -- Celestial Alignment --BETA {spellID = 112071, unitID = "player", caster = "player", filter = "BUFF"}, -- Nature's Vigil {spellID = 124974, unitID = "player", caster = "player", filter = "BUFF"}, -- Lunar Empowerment {spellID = 164547, unitID = "player", caster = "player", filter = "BUFF"}, -- Solar Empowerment {spellID = 164545, unitID = "player", caster = "player", filter = "BUFF"}, -- Starfall --BETA {spellID = 184989, unitID = "player", caster = "player", filter = "BUFF"}, -- Nature's Grasp {spellID = 170856, unitID = "player", caster = "player", filter = "BUFF"}, -- Dash {spellID = 1850, unitID = "player", caster = "player", filter = "BUFF"}, -- Cenarion Ward {spellID = 102351, unitID = "player", caster = "player", filter = "BUFF"}, }, { Name = "P_PROC_ICON", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"BOTTOMLEFT", "ElvUF_Player", "TOPLEFT", 0, 55}, -- Buffs -- Bloodtalons {spellID = 145152, unitID = "player", caster = "player", filter = "BUFF"}, -- Lunar Peak --BETA {spellID = 171743, unitID = "player", caster = "player", filter = "BUFF"}, -- Solar Peak --BETA {spellID = 171744, unitID = "player", caster = "player", filter = "BUFF"}, -- Rejuvenation (Glyph) --BETA {spellID = 96206, unitID = "player", caster = "player", filter = "BUFF"}, -- Clearcasting {spellID = 16870, unitID = "player", caster = "player", filter = "BUFF"}, -- Soul of the Forest {spellID = 114108, unitID = "player", caster = "player", filter = "BUFF"}, -- Tooth and Claw --BETA {spellID = 135286, unitID = "player", caster = "player", filter = "BUFF"}, -- Predatory Swiftness {spellID = 69369, unitID = "player", caster = "player", filter = "BUFF"}, -- Trinkets -- 1.0: Darkmoon Cards -- Nightmare Fire (Crit, Proc) {spellID = 162919, unitID = "player", caster = "player", filter = "BUFF"}, -- Visions of the Future (Spirit, Proc) {spellID = 162913, unitID = "player", caster = "player", filter = "BUFF"}, -- Spirit of the Warlords (Crit, Proc) {spellID = 162915, unitID = "player", caster = "player", filter = "BUFF"}, -- Strength of Steel (Crit, Proc) {spellID = 162917, unitID = "player", caster = "player", filter = "BUFF"}, -- 1.1: Alchemy Stones -- Agility {spellID = 60233, unitID = "player", caster = "player", filter = "BUFF"}, -- Intellect {spellID = 60234, unitID = "player", caster = "player", filter = "BUFF"}, -- 1.2: Hallow's End -- Brawler's Statue (Bonus Armor, Use) {spellID = 127967, unitID = "player", caster = "player", filter = "BUFF"}, -- Coren's Cold Chromium (Attack Power, Proc) {spellID = 127926, unitID = "player", caster = "player", filter = "BUFF"}, -- Mithril Wristwatch (Spell Power, Proc) {spellID = 127924, unitID = "player", caster = "player", filter = "BUFF"}, -- Thousand-Year Pickled Egg (Haste, Proc) {spellID = 127914, unitID = "player", caster = "player", filter = "BUFF"}, -- 3.0: Heirlooms -- Infallible Tracking Charm [Damage, Proc] {spellID = 201408, unitID = "player", caster = "player", filter = "BUFF"}, -- Orb Of Voidsight (Haste, Proc) {spellID = 201410, unitID = "player", caster = "player", filter = "BUFF"}, -- 2.0: PvP Trinkets -- Battlemaster (Health, Use) {spellID = 181706, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Intellect] (Versatility, Use) {spellID = 182073, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Intellect] (Versatility, Proc) {spellID = 182058, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Agility] (Versatility, Proc) {spellID = 182060, unitID = "player", caster = "player", filter = "BUFF"}, -- Tanking -- Battering Talisman (Haste, Proc) {spellID = 177102, unitID = "player", caster = "player", filter = "BUFF"}, -- Blast Furnace Door (Mastery, Proc) {spellID = 177056, unitID = "player", caster = "player", filter = "BUFF"}, -- Evergaze Arcane Eidolon (Bonus Armor, Proc) {spellID = 177053, unitID = "player", caster = "player", filter = "BUFF"}, -- Formidable Relic of Blood (Haste, Proc) {spellID = 176937, unitID = "player", caster = "player", filter = "BUFF"}, -- Kyb's Foolish Perseverance (Health, Use) {spellID = 176460, unitID = "player", caster = "player", filter = "BUFF"}, -- Pol's Blinded Eye (Mastery, Use) {spellID = 176876, unitID = "player", caster = "player", filter = "BUFF"}, -- Stoneheart Idol (Crit, Proc) {spellID = 176982, unitID = "player", caster = "player", filter = "BUFF"}, -- Tablet of Turnbuckle Teamwork (Bonus Armor, Use) {spellID = 176873, unitID = "player", caster = "player", filter = "BUFF"}, -- Anzu's Cursed Plume (Mastery, Proc) {spellID = 183931, unitID = "player", caster = "player", filter = "BUFF"}, -- Enforcer's Stun Grenade (Versatility, Use) {spellID = 165534, unitID = "player", caster = "player", filter = "BUFF"}, -- Tyrant's Decree (Stamina, Proc) {spellID = 184770, unitID = "player", caster = "player", filter = "BUFF"}, -- Xeri'tac's Unhatched Egg Sac (Mastery, Proc) {spellID = 165824, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Agility] -- Beating Heart of the Mountain (Multistrike, Use) {spellID = 176878, unitID = "player", caster = "player", filter = "BUFF"}, -- Blackheart Enforcer's Medallion (Multistrike, Proc) {spellID = 176984, unitID = "player", caster = "player", filter = "BUFF"}, -- Formidable Jar of Doom (Mastery, Proc) {spellID = 176939, unitID = "player", caster = "player", filter = "BUFF"}, -- Humming Blackiron Trigger (Crit, Proc) {spellID = 177067, unitID = "player", caster = "player", filter = "BUFF"}, -- Lucky Double-Sided Coin (Agility, Use) {spellID = 177597, unitID = "player", caster = "player", filter = "BUFF"}, -- Meaty Dragonspine Trophy (Haste, Proc) {spellID = 177035, unitID = "player", caster = "player", filter = "BUFF"}, -- Scales of Doom (Multistrike, Proc) {spellID = 177038, unitID = "player", caster = "player", filter = "BUFF"}, -- Gor'ashan's Lodestone Spike (Multistrike, Use) {spellID = 165542, unitID = "player", caster = "player", filter = "BUFF"}, -- Kihra's Adrenaline Injector (Mastery, Use) {spellID = 165485, unitID = "player", caster = "player", filter = "BUFF"}, -- Malicious Censer (Agility, Proc) {spellID = 183926, unitID = "player", caster = "player", filter = "BUFF"}, -- Mirror of the Blademaster (Images, Proc) {spellID = 184270, unitID = "player", caster = "player", filter = "BUFF"}, -- Soul Capacitator (Damage, Proc) {spellID = 184293, unitID = "player", caster = "player", filter = "BUFF"}, -- Witherbark's Branch (Haste, Proc) {spellID = 165822, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Intellect] -- Blackiron Micro Crucible (Multistrike, Proc) {spellID = 177081, unitID = "player", caster = "player", filter = "BUFF"}, -- Copeland's Clarity (Spellpower, Use) {spellID = 177594, unitID = "player", caster = "player", filter = "BUFF"}, -- Darmac's Unstable Talisman (Haste, Proc) {spellID = 177051, unitID = "player", caster = "player", filter = "BUFF"}, -- Formidable Orb of Putrescence (Mastery, Proc) {spellID = 176941, unitID = "player", caster = "player", filter = "BUFF"}, -- Furyheart Talisman (Haste, Proc) {spellID = 176980, unitID = "player", caster = "player", filter = "BUFF"}, -- Goren Soul Repository (Crit, Proc) {spellID = 177046, unitID = "player", caster = "player", filter = "BUFF"}, -- Shards of Nothing (Haste, Use) {spellID = 176875, unitID = "player", caster = "player", filter = "BUFF"}, -- Desecrated Shadowmoon Insignia (Intellect, Proc) {spellID = 183924, unitID = "player", caster = "player", filter = "BUFF"}, -- Coagulated Genesaur Blood (Multistrike, Proc) {spellID = 165832, unitID = "player", caster = "player", filter = "BUFF"}, -- Ragewing's Firefang (Versatility, Use) {spellID = 165543, unitID = "player", caster = "player", filter = "BUFF"}, -- Fleshrender's Meathook (Haste, Use) {spellID = 165531, unitID = "player", caster = "player", filter = "BUFF"}, -- Healing -- Auto-Repairing Autoclave (Haste, Proc) {spellID = 177086, unitID = "player", caster = "player", filter = "BUFF"}, -- Elementalist's Shielding Talisman (Multistrike, Proc) {spellID = 177063, unitID = "player", caster = "player", filter = "BUFF"}, -- Emblem of Caustic Healing (Haste, Use) {spellID = 176879, unitID = "player", caster = "player", filter = "BUFF"}, -- Formidable Censer of Faith (Haste, Proc) {spellID = 176943, unitID = "player", caster = "player", filter = "BUFF"}, -- Immaculate Living Mushroom (Crit, Proc) {spellID = 176978, unitID = "player", caster = "player", filter = "BUFF"}, -- Ironspike Chew Toy (Spirit, Proc) {spellID = 177060, unitID = "player", caster = "player", filter = "BUFF"}, -- Intuition's Gift (Crit, Use) {spellID = 183929, unitID = "player", caster = "player", filter = "BUFF"}, -- Leaf of the Ancient Protectors (Versatility, Proc) {spellID = 165833, unitID = "player", caster = "player", filter = "BUFF"}, -- Tharbek's Lucky Pebble (Mastery, Use) {spellID = 165535, unitID = "player", caster = "player", filter = "BUFF"}, -- Voidmender's Shadowgem (Crit, Use) {spellID = 165532, unitID = "player", caster = "player", filter = "BUFF"}, -- Enchants -- Mark of Blackrock (Bonus Armor) {spellID = 159679, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of Bleeding Hollow (Mastery) {spellID = 173322, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of Shadowmoon (Spirit) {spellID = 159678, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of the Frostwolf (Multistrike) {spellID = 159676, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of the Thunderlord (Crit) {spellID = 159234, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of Warsong (Haste) {spellID = 159675, unitID = "player", caster = "all", filter = "BUFF"}, }, { Name = "T_DEBUFF_ICON", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"TOP", T_DEBUFF_ICON_Anchor}, -- Moonfire {spellID = 164812, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Sunfire {spellID = 164815, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Stellar Flare --BETA {spellID = 152221, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Rake {spellID = 155722, unitID = "target", caster = "player", filter = "DEBUFF", absID = true}, -- Rip {spellID = 1079, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Lacerate --BETA {spellID = 33745, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Thrash {spellID = 77758, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Immobilized {spellID = 45334, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Trinket Effects -- Mark of Doom [Prophecy of Fear] {spellID = 184073, unitID = "target", caster = "player", filter = "DEBUFF"}, }, { Name = "T_DE/BUFF_BAR", Direction = "UP", IconSide = "LEFT", Mode = "BAR", Interval = 3, Alpha = 1, IconSize = 25, BarWidth = 186, Position = {"BOTTOMLEFT", "ElvUF_Target", "TOPLEFT", 0, 68}, -- Lifebloom {spellID = 33763, unitID = "target", caster = "player", filter = "BUFF"}, -- Rejuvenation {spellID = 774, unitID = "target", caster = "player", filter = "BUFF"}, -- Regrowth {spellID = 8936, unitID = "target", caster = "player", filter = "BUFF"}, -- Wild Growth {spellID = 48438, unitID = "target", caster = "player", filter = "BUFF"}, -- Cenarion Ward {spellID = 102351, unitID = "target", caster = "player", filter = "BUFF"}, }, { Name = "PVE/PVP_CC", Direction = "DOWN", IconSide = "LEFT", Mode = "BAR", Interval = 3, Alpha = 1, IconSize = 25, BarWidth = 189, Position = {"LEFT", "E.UIParent", "LEFT", 200, 0}, -- Cyclone {spellID = 33786, unitID = "focus", caster = "all", filter = "DEBUFF"}, -- Entangling Roots {spellID = 339, unitID = "focus", caster = "all", filter = "DEBUFF"}, }, { Name = "COOLDOWN", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"CENTER", "E.UIParent", "CENTER", 0, -200}, -- Self -- Nature's Cure {spellID = 88423, filter = "CD"}, -- Remove Corruption {spellID = 2782, filter = "CD"}, -- Skull Bash {spellID = 106839, filter = "CD"}, -- Mangle {spellID = 33917, filter = "CD"}, -- Wild Growth {spellID = 48438, filter = "CD"}, -- Swiftmend {spellID = 18562, filter = "CD"}, -- Growl {spellID = 6795, filter = "CD"}, -- Maim {spellID = 22570, filter = "CD"}, -- Starsurge {spellID = 78674, filter = "CD"}, -- Wild Charge {spellID = 102401, filter = "CD"}, -- Force of Nature --BETA {spellID = 102693, filter = "CD"}, -- Faerie Fire --BETA {spellID = 770, filter = "CD"}, -- Tiger's Fury {spellID = 5217, filter = "CD"}, -- Incapacitating Roar {spellID = 99, filter = "CD"}, -- Bristling Fur {spellID = 155835, filter = "CD"}, -- Mass Entanglement {spellID = 102359, filter = "CD"}, -- Typhoon {spellID = 132469, filter = "CD"}, -- Mighty Bash {spellID = 5211, filter = "CD"}, -- Solar Beam {spellID = 78675, filter = "CD"}, -- Barkskin {spellID = 22812, filter = "CD"}, -- Ironbark {spellID = 102342, filter = "CD"}, -- Nature's Swiftness --BETA {spellID = 132158, filter = "CD"}, -- Ursol's Vortex {spellID = 102793, filter = "CD"}, -- Nature's Vigil {spellID = 124974, filter = "CD"}, -- Berserk --BETA {spellID = 106952, filter = "CD", absID = true}, -- Incarnation: Chosen of Elune {spellID = 102560, filter = "CD"}, -- Incarnation: King of the Jungle {spellID = 102543, filter = "CD"}, -- Incarnation: Son of Ursoc {spellID = 102558, filter = "CD"}, -- Incarnation: Tree of Life {spellID = 33891, filter = "CD"}, -- Racial -- Berserking (Troll) {spellID = 26297, filter = "CD", absID = true}, -- Darkflight (Worgen) {spellID = 68992, filter = "CD"}, -- Shadowmeld (Night Elf) {spellID = 58984, filter = "CD"}, -- War Stomp (Tauren) {spellID = 20549, filter = "CD"}, -- Items -- Back {slotID = 15, filter = "CD"}, -- Belt {slotID = 6, filter = "CD"}, -- Gloves {slotID = 10, filter = "CD"}, -- Neck {slotID = 2, filter = "CD"}, -- Rings {slotID = 11, filter = "CD"}, {slotID = 12, filter = "CD"}, -- Trinkets {slotID = 13, filter = "CD"}, {slotID = 14, filter = "CD"}, }, }, ["HUNTER"] = { { Name = "P_BUFF_ICON", Direction = "LEFT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"BOTTOMLEFT", "ElvUF_Player", "TOPLEFT", 0, 12}, -- Deterrence {spellID = 19263, unitID = "player", caster = "player", filter = "BUFF"}, -- Rapid Fire {spellID = 3045, unitID = "player", caster = "player", filter = "BUFF"}, -- Bestial Wrath {spellID = 19574, unitID = "player", caster = "player", filter = "BUFF"}, -- Beast Cleave {spellID = 118455, unitID = "pet", caster = "player", filter = "BUFF"}, -- Focus Fire --BETA {spellID = 82692, unitID = "player", caster = "player", filter = "BUFF"}, -- Sniper Training --BETA {spellID = 168811, unitID = "player", caster = "player", filter = "BUFF"}, -- Camouflage --BETA {spellID = 51755, unitID = "player", caster = "player", filter = "BUFF", absID = true}, -- Spirit Mend {spellID = 90361, unitID = "player", caster = "player", filter = "BUFF"}, -- Posthaste {spellID = 118922, unitID = "player", caster = "player", filter = "BUFF"}, }, { Name = "P_PROC_ICON", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"BOTTOMLEFT", "ElvUF_Player", "TOPLEFT", 0, 55}, -- Buffs -- Steady Focus --BETA {spellID = 177668, unitID = "player", caster = "player", filter = "BUFF"}, -- Lock and Load --BETA {spellID = 168980, unitID = "player", caster = "player", filter = "BUFF"}, -- Thrill of the Hunt --BETA {spellID = 34720, unitID = "player", caster = "player", filter = "BUFF"}, -- Frenzy {spellID = 19615, unitID = "player", caster = "player", filter = "BUFF", absID = true}, -- Mend Pet {spellID = 136, unitID = "pet", caster = "player", filter = "BUFF"}, -- Trinkets -- 1.0: Darkmoon Cards -- Spirit of the Warlords (Crit, Proc) {spellID = 162915, unitID = "player", caster = "player", filter = "BUFF"}, -- 1.1: Alchemy Stones -- Agility {spellID = 60233, unitID = "player", caster = "player", filter = "BUFF"}, -- 1.2: Hallow's End -- Coren's Cold Chromium (Attack Power, Proc) {spellID = 127926, unitID = "player", caster = "player", filter = "BUFF"}, -- 2.0: PvP Trinkets -- Battlemaster (Health, Use) {spellID = 181706, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Agility] (Versatility, Use) {spellID = 182073, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Agility] (Versatility, Proc) {spellID = 182060, unitID = "player", caster = "player", filter = "BUFF"}, -- 3.0: Heirlooms -- Infallible Tracking Charm [Damage, Proc] {spellID = 201408, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Agility] -- Beating Heart of the Mountain (Multistrike, Use) {spellID = 176878, unitID = "player", caster = "player", filter = "BUFF"}, -- Blackheart Enforcer's Medallion (Multistrike, Proc) {spellID = 176984, unitID = "player", caster = "player", filter = "BUFF"}, -- Formidable Jar of Doom (Mastery, Proc) {spellID = 176939, unitID = "player", caster = "player", filter = "BUFF"}, -- Humming Blackiron Trigger (Crit, Proc) {spellID = 177067, unitID = "player", caster = "player", filter = "BUFF"}, -- Lucky Double-Sided Coin (Agility, Use) {spellID = 177597, unitID = "player", caster = "player", filter = "BUFF"}, -- Meaty Dragonspine Trophy (Haste, Proc) {spellID = 177035, unitID = "player", caster = "player", filter = "BUFF"}, -- Scales of Doom (Multistrike, Proc) {spellID = 177038, unitID = "player", caster = "player", filter = "BUFF"}, -- Gor'ashan's Lodestone Spike (Multistrike, Use) {spellID = 165542, unitID = "player", caster = "player", filter = "BUFF"}, -- Kihra's Adrenaline Injector (Mastery, Use) {spellID = 165485, unitID = "player", caster = "player", filter = "BUFF"}, -- Malicious Censer (Agility, Proc) {spellID = 183926, unitID = "player", caster = "player", filter = "BUFF"}, -- Mirror of the Blademaster (Images, Proc) {spellID = 184270, unitID = "player", caster = "player", filter = "BUFF"}, -- Soul Capacitator (Damage, Proc) {spellID = 184293, unitID = "player", caster = "player", filter = "BUFF"}, -- Witherbark's Branch (Haste, Proc) {spellID = 165822, unitID = "player", caster = "player", filter = "BUFF"}, -- Enchants -- Hemet's Heartseeker (Mastery) {spellID = 173288, unitID = "player", caster = "all", filter = "BUFF"}, -- Megawatt Filament (Crit) {spellID = 156060, unitID = "player", caster = "all", filter = "BUFF"}, -- Oglethorpe's Missile Splitter (Multistrike) {spellID = 156055, unitID = "player", caster = "all", filter = "BUFF"}, }, { Name = "T_DEBUFF_ICON", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"TOP", T_DEBUFF_ICON_Anchor}, -- Black Arrow --BETA {spellID = 3674, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Explosive Shot --BETA {spellID = 53301, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Serpent Sting {spellID = 87935, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Narrow Escape {spellID = 136634, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Entrapment {spellID = 135373, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Frozen Wake --BETA {spellID = 61394, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Warp Time (Warp Stalker) {spellID = 35346, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Ankle Crack (Crocolisk) {spellID = 50433, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Frost Breath (Chimaera) {spellID = 54644, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Concussive Shot {spellID = 5116, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Ice Trap {spellID = 135299, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Poisoned Ammo {spellID = 162543, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Frozen Ammo {spellID = 162546, unitID = "target", caster = "player", filter = "DEBUFF"}, }, { Name = "PVE/PVP_CC", Direction = "DOWN", IconSide = "LEFT", Mode = "BAR", Interval = 3, Alpha = 1, IconSize = 25, BarWidth = 189, Position = {"LEFT", "E.UIParent", "LEFT", 200, 0}, -- Wyvern Sting {spellID = 19386, unitID = "focus", caster = "player", filter = "DEBUFF"}, }, { Name = "COOLDOWN", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"CENTER", "E.UIParent", "CENTER", 0, -200}, -- Self -- Concussive Shot {spellID = 5116, filter = "CD"}, -- Counter Shot {spellID = 147362, filter = "CD"}, -- Kill Command {spellID = 34026, filter = "CD"}, -- Explosive Shot --BETA {spellID = 53301, filter = "CD"}, -- Chimera Shot {spellID = 53209, filter = "CD"}, -- Kill Shot --BETA {spellID = 53351, filter = "CD"}, -- Glaive Toss --BETA {spellID = 117050, filter = "CD"}, -- Barrage {spellID = 120360, filter = "CD"}, -- Disengage {spellID = 781, filter = "CD"}, -- Dire Beast {spellID = 120679, filter = "CD"}, -- Fervor {spellID = 82726, filter = "CD"}, -- Misdirection {spellID = 34477, filter = "CD"}, -- Feign Death {spellID = 5384, filter = "CD"}, -- Explosive Trap {spellID = 13813, filter = "CD"}, -- Ice Trap {spellID = 13809, filter = "CD"}, -- Binding Shot {spellID = 117526, filter = "CD"}, -- Master's Call {spellID = 53271, filter = "CD"}, -- Powershot --BETA {spellID = 109259, filter = "CD"}, -- Wyvern Sting {spellID = 19386, filter = "CD"}, -- Intimidation {spellID = 19577, filter = "CD"}, -- Bestial Wrath {spellID = 19574, filter = "CD"}, -- A Murder of Crows {spellID = 131894, filter = "CD"}, -- Lynx Rush --BETA {spellID = 120697, filter = "CD"}, -- Exhilaration {spellID = 109304, filter = "CD"}, -- Rapid Fire {spellID = 3045, filter = "CD"}, -- Deterrence {spellID = 19263, filter = "CD"}, -- Spirit Mend (Pet) {spellID = 90361, filter = "CD"}, -- Racial -- Arcane Torrent (Blood Elf) {spellID = 69179, filter = "CD"}, -- Berserking (Troll) {spellID = 26297, filter = "CD"}, -- Blood Fury (Orc) {spellID = 20572, filter = "CD"}, -- Cannibalize (Forsaken) {spellID = 20577, filter = "CD"}, -- Darkflight (Worgen) {spellID = 68992, filter = "CD"}, -- Every Man for Himself (Human) {spellID = 59752, filter = "CD"}, -- Gift of the Naaru (Draenei) {spellID = 28880, filter = "CD"}, -- Quaking Palm (Pandaren) {spellID = 107079, filter = "CD"}, -- Rocket Jump (Goblin) {spellID = 69070, filter = "CD"}, -- Shadowmeld (Night Elf) {spellID = 58984, filter = "CD"}, -- Stoneform (Dwarf) {spellID = 20594, filter = "CD"}, -- War Stomp (Tauren) {spellID = 20549, filter = "CD"}, -- Will of the Forsaken (Forsaken) {spellID = 7744, filter = "CD"}, -- Items -- Back {slotID = 15, filter = "CD"}, -- Belt {slotID = 6, filter = "CD"}, -- Gloves {slotID = 10, filter = "CD"}, -- Neck {slotID = 2, filter = "CD"}, -- Rings {slotID = 11, filter = "CD"}, {slotID = 12, filter = "CD"}, -- Trinkets {slotID = 13, filter = "CD"}, {slotID = 14, filter = "CD"}, }, }, ["MAGE"] = { { Name = "P_BUFF_ICON", Direction = "LEFT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"BOTTOMLEFT", "ElvUF_Player", "TOPLEFT", 0, 12}, -- Ice Block {spellID = 45438, unitID = "player", caster = "player", filter = "BUFF"}, -- Invisibility {spellID = 66, unitID = "player", caster = "player", filter = "BUFF", absID = true}, -- Invisibility {spellID = 32612, unitID = "player", caster = "player", filter = "BUFF", absID = true}, -- Greater Invisibility {spellID = 110960, unitID = "player", caster = "player", filter = "BUFF", absID = true}, -- Icy Veins {spellID = 12472, unitID = "player", caster = "player", filter = "BUFF"}, -- Arcane Power {spellID = 12042, unitID = "player", caster = "player", filter = "BUFF"}, -- Ice Barrier {spellID = 11426, unitID = "player", caster = "player", filter = "BUFF"}, -- Heating Up {spellID = 48107, unitID = "player", caster = "player", filter = "BUFF"}, -- Incanter's Flow {spellID = 1463, unitID = "player", caster = "player", filter = "BUFF"}, -- Ice Floes {spellID = 108839, unitID = "player", caster = "player", filter = "BUFF"}, -- Evanesce {spellID = 157913, unitID = "player", caster = "player", filter = "BUFF"}, -- Alter Time {spellID = 110909, unitID = "player", caster = "player", filter = "BUFF"}, -- Temporal Shield {spellID = 115610, unitID = "player", caster = "player", filter = "BUFF"}, -- Rune of Power {spellID = 116014, unitID = "player", caster = "player", filter = "BUFF"}, -- Prismatic Crystal {spellID = 152087, filter = "ICD", trigger = "NONE", duration = 12}, -- Mirror Image {spellID = 55342, filter = "ICD", trigger = "NONE", duration = 40}, }, { Name = "P_PROC_ICON", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"BOTTOMLEFT", "ElvUF_Player", "TOPLEFT", 0, 55}, -- Buffs -- Fingers of Frost {spellID = 44544, unitID = "player", caster = "player", filter = "BUFF"}, -- Brain Freeze --BETA {spellID = 57761, unitID = "player", caster = "player", filter = "BUFF"}, -- Arcane Missiles! {spellID = 79683, unitID = "player", caster = "player", filter = "BUFF"}, -- Pyroblast! {spellID = 48108, unitID = "player", caster = "player", filter = "BUFF"}, -- Trinkets -- 1.0: Darkmoon Cards -- Nightmare Fire (Crit, Proc) {spellID = 162919, unitID = "player", caster = "player", filter = "BUFF"}, -- 1.1: Alchemy Stones -- Intellect {spellID = 60234, unitID = "player", caster = "player", filter = "BUFF"}, -- 1.2: Hallow's End -- Mithril Wristwatch (Spell Power, Proc) {spellID = 127924, unitID = "player", caster = "player", filter = "BUFF"}, -- 2.0: PvP Trinkets -- Battlemaster (Health, Use) {spellID = 181706, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Intellect] (Versatility, Use) {spellID = 182073, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Intellect] (Versatility, Proc) {spellID = 182058, unitID = "player", caster = "player", filter = "BUFF"}, -- 3.0: Heirlooms -- Orb Of Voidsight (Haste, Proc) {spellID = 201410, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Intellect] -- Blackiron Micro Crucible (Multistrike, Proc) {spellID = 177081, unitID = "player", caster = "player", filter = "BUFF"}, -- Copeland's Clarity (Spellpower, Use) {spellID = 177594, unitID = "player", caster = "player", filter = "BUFF"}, -- Darmac's Unstable Talisman (Haste, Proc) {spellID = 177051, unitID = "player", caster = "player", filter = "BUFF"}, -- Formidable Orb of Putrescence (Mastery, Proc) {spellID = 176941, unitID = "player", caster = "player", filter = "BUFF"}, -- Furyheart Talisman (Haste, Proc) {spellID = 176980, unitID = "player", caster = "player", filter = "BUFF"}, -- Goren Soul Repository (Crit, Proc) {spellID = 177046, unitID = "player", caster = "player", filter = "BUFF"}, -- Shards of Nothing (Haste, Use) {spellID = 176875, unitID = "player", caster = "player", filter = "BUFF"}, -- Desecrated Shadowmoon Insignia (Intellect, Proc) {spellID = 183924, unitID = "player", caster = "player", filter = "BUFF"}, -- Coagulated Genesaur Blood (Multistrike, Proc) {spellID = 165832, unitID = "player", caster = "player", filter = "BUFF"}, -- Ragewing's Firefang (Versatility, Use) {spellID = 165543, unitID = "player", caster = "player", filter = "BUFF"}, -- Fleshrender's Meathook (Haste, Use) {spellID = 165531, unitID = "player", caster = "player", filter = "BUFF"}, -- Enchants -- Mark of Bleeding Hollow (Mastery) {spellID = 173322, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of the Frostwolf (Multistrike) {spellID = 159676, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of the Thunderlord (Crit) {spellID = 159234, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of Warsong (Haste) {spellID = 159675, unitID = "player", caster = "all", filter = "BUFF"}, }, { Name = "T_DEBUFF_ICON", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"TOP", T_DEBUFF_ICON_Anchor}, -- Arcane Charge {spellID = 36032, unitID = "player", caster = "player", filter = "DEBUFF"}, -- Ignite {spellID = 12654, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Living Bomb {spellID = 44457, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Nether Tempest {spellID = 114923, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Frost Bomb {spellID = 112948, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Pyroblast {spellID = 11366, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Combustion --BETA {spellID = 83853, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Freeze (Pet) {spellID = 33395, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Water Jet (Pet) {spellID = 135029, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Frost Nova {spellID = 122, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Ice Ward --BETA {spellID = 111340, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Cone of Cold {spellID = 120, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Flurry {spellID = 228354, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Ice Nova {spellID = 157997, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Slow {spellID = 31589, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Trinket Effects -- Mark of Doom [Prophecy of Fear] {spellID = 184073, unitID = "target", caster = "player", filter = "DEBUFF"}, }, { Name = "PVE/PVP_CC", Direction = "DOWN", IconSide = "LEFT", Mode = "BAR", Interval = 3, Alpha = 1, IconSize = 25, BarWidth = 189, Position = {"LEFT", "E.UIParent", "LEFT", 200, 0}, -- Polymorph {spellID = 118, unitID = "focus", caster = "all", filter = "DEBUFF"}, }, { Name = "COOLDOWN", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"CENTER", "E.UIParent", "CENTER", 0, -200}, -- Self -- Frostjaw --BETA {spellID = 102051, filter = "CD"}, -- Counterspell {spellID = 2139, filter = "CD"}, -- Blink {spellID = 1953, filter = "CD"}, -- Blazing Speed {spellID = 108843, filter = "CD"}, -- Deep Freeze --BETA {spellID = 44572, filter = "CD"}, -- Frost Nova {spellID = 122, filter = "CD"}, -- Ice Ward --BETA {spellID = 111264, filter = "CD"}, -- Ring of Frost {spellID = 113724, filter = "CD"}, -- Ice Barrier {spellID = 11426, filter = "CD"}, -- Temporal Shield {spellID = 115610, filter = "CD"}, -- Incanter's Ward {spellID = 1463, filter = "CD"}, -- Fire Blast --BETA {spellID = 2136, filter = "CD"}, -- Frost Bomb {spellID = 112948, filter = "CD"}, -- Flamestrike {spellID = 2120, filter = "CD"}, -- Cone of Cold {spellID = 120, filter = "CD"}, -- Water Jet (Pet) {spellID = 135029, filter = "CD"}, -- Comet Storm {spellID = 153595, filter = "CD"}, -- Ice Floes {spellID = 108839, filter = "CD"}, -- Combustion --BETA {spellID = 11129, filter = "CD"}, -- Frozen Orb {spellID = 84714, filter = "CD"}, -- Arcane Power {spellID = 12042, filter = "CD"}, -- Presence of Mind --BETA {spellID = 12043, filter = "CD"}, -- Alter Time {spellID = 108978, filter = "CD"}, -- Evocation {spellID = 12051, filter = "CD"}, -- Icy Veins {spellID = 12472, filter = "CD"}, -- Prismatic Crystal {spellID = 152087, filter = "CD"}, -- Mirror Image {spellID = 55342, filter = "CD"}, -- Cold Snap {spellID = 11958, filter = "CD"}, -- Ice Block {spellID = 45438, filter = "CD"}, -- Invisibility {spellID = 66, filter = "CD"}, -- Racial -- Arcane Torrent (Blood Elf) {spellID = 69179, filter = "CD"}, -- Berserking (Troll) {spellID = 26297, filter = "CD"}, -- Blood Fury (Orc) {spellID = 20572, filter = "CD"}, -- Cannibalize (Forsaken) {spellID = 20577, filter = "CD"}, -- Darkflight (Worgen) {spellID = 68992, filter = "CD"}, -- Escape Artist (Gnome) {spellID = 20589, filter = "CD"}, -- Every Man for Himself (Human) {spellID = 59752, filter = "CD"}, -- Gift of the Naaru (Draenei) {spellID = 28880, filter = "CD"}, -- Quaking Palm (Pandaren) {spellID = 107079, filter = "CD"}, -- Rocket Jump (Goblin) {spellID = 69070, filter = "CD"}, -- Shadowmeld (Night Elf) {spellID = 58984, filter = "CD"}, -- Stoneform (Dwarf) {spellID = 20594, filter = "CD"}, -- Will of the Forsaken (Forsaken) {spellID = 7744, filter = "CD"}, -- Items -- Back {slotID = 15, filter = "CD"}, -- Belt {slotID = 6, filter = "CD"}, -- Gloves {slotID = 10, filter = "CD"}, -- Neck {slotID = 2, filter = "CD"}, -- Rings {slotID = 11, filter = "CD"}, {slotID = 12, filter = "CD"}, -- Trinkets {slotID = 13, filter = "CD"}, {slotID = 14, filter = "CD"}, }, }, ["MONK"] = { { Name = "P_BUFF_ICON", Direction = "LEFT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"BOTTOMLEFT", "ElvUF_Player", "TOPLEFT", 0, 12}, -- Guard --BETA {spellID = 115295, unitID = "player", caster = "player", filter = "BUFF"}, -- Fortifying Brew {spellID = 120954, unitID = "player", caster = "player", filter = "BUFF"}, -- Elusive Brew {spellID = 115308, unitID = "player", caster = "player", filter = "BUFF", absID = true}, -- Tigereye Brew {spellID = 116740, unitID = "player", caster = "player", filter = "BUFF", absID = true}, -- Touch of Karma {spellID = 125174, unitID = "player", caster = "player", filter = "BUFF"}, -- Diffuse Magic {spellID = 122783, unitID = "player", caster = "player", filter = "BUFF"}, -- Dampen Harm {spellID = 122278, unitID = "player", caster = "player", filter = "BUFF"}, -- Nimble Brew --BETA {spellID = 137562, unitID = "player", caster = "player", filter = "BUFF"}, -- Serenity {spellID = 152173, unitID = "player", caster = "player", filter = "BUFF"}, -- Energizing Brew {spellID = 115288, unitID = "player", caster = "player", filter = "BUFF"}, -- Thunder Focus Tea {spellID = 116680, unitID = "player", caster = "player", filter = "BUFF"}, -- Momentum {spellID = 119085, unitID = "player", caster = "player", filter = "BUFF"}, }, { Name = "P_PROC_ICON", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"BOTTOMLEFT", "ElvUF_Player", "TOPLEFT", 0, 55}, -- Buffs -- Elusive Brew {spellID = 128939, unitID = "player", caster = "player", filter = "BUFF", absID = true, count = 12}, -- Mana Tea --BETA {spellID = 115867, unitID = "player", caster = "player", filter = "BUFF", absID = true, count = 18}, -- Tigereye Brew --BETA {spellID = 125195, unitID = "player", caster = "player", filter = "BUFF", absID = true, count = 10}, -- Tiger Power --BETA {spellID = 125359, unitID = "player", caster = "player", filter = "BUFF"}, -- Combo Breaker: Blackout Kick {spellID = 116768, unitID = "player", caster = "player", filter = "BUFF"}, -- Combo Breaker: Chi Explosion {spellID = 159407, unitID = "player", caster = "player", filter = "BUFF"}, -- Combo Breaker: Tiger Palm --BETA {spellID = 118864, unitID = "player", caster = "player", filter = "BUFF"}, -- Shuffle --BETA {spellID = 115307, unitID = "player", caster = "player", filter = "BUFF"}, -- Vital Mists --BETA {spellID = 118674, unitID = "player", caster = "player", filter = "BUFF"}, -- Serpent's Zeal --BETA {spellID = 127722, unitID = "player", caster = "player", filter = "BUFF"}, -- Tiger Strikes --BETA {spellID = 120273, unitID = "player", caster = "player", filter = "BUFF"}, -- Trinkets -- 1.0: Darkmoon Cards -- Visions of the Future (Spirit, Proc) {spellID = 162913, unitID = "player", caster = "player", filter = "BUFF"}, -- Spirit of the Warlords (Crit, Proc) {spellID = 162915, unitID = "player", caster = "player", filter = "BUFF"}, -- Strength of Steel (Crit, Proc) {spellID = 162917, unitID = "player", caster = "player", filter = "BUFF"}, -- 1.1: Alchemy Stones -- Agility {spellID = 60233, unitID = "player", caster = "player", filter = "BUFF"}, -- Intellect {spellID = 60234, unitID = "player", caster = "player", filter = "BUFF"}, -- 1.2: Hallow's End -- Brawler's Statue (Bonus Armor, Use) {spellID = 127967, unitID = "player", caster = "player", filter = "BUFF"}, -- Coren's Cold Chromium (Attack Power, Proc) {spellID = 127926, unitID = "player", caster = "player", filter = "BUFF"}, -- Thousand-Year Pickled Egg (Haste, Proc) {spellID = 127914, unitID = "player", caster = "player", filter = "BUFF"}, -- 2.0: PvP Trinkets -- Battlemaster (Health, Use) {spellID = 181706, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Agility] (Versatility, Use) {spellID = 182073, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Agility] (Versatility, Proc) {spellID = 182060, unitID = "player", caster = "player", filter = "BUFF"}, -- 3.0: Heirlooms -- Infallible Tracking Charm [Damage, Proc] {spellID = 201408, unitID = "player", caster = "player", filter = "BUFF"}, -- Orb Of Voidsight (Haste, Proc) {spellID = 201410, unitID = "player", caster = "player", filter = "BUFF"}, -- Tanking -- Battering Talisman (Haste, Proc) {spellID = 177102, unitID = "player", caster = "player", filter = "BUFF"}, -- Blast Furnace Door (Mastery, Proc) {spellID = 177056, unitID = "player", caster = "player", filter = "BUFF"}, -- Evergaze Arcane Eidolon (Bonus Armor, Proc) {spellID = 177053, unitID = "player", caster = "player", filter = "BUFF"}, -- Formidable Relic of Blood (Haste, Proc) {spellID = 176937, unitID = "player", caster = "player", filter = "BUFF"}, -- Kyb's Foolish Perseverance (Health, Use) {spellID = 176460, unitID = "player", caster = "player", filter = "BUFF"}, -- Pol's Blinded Eye (Mastery, Use) {spellID = 176876, unitID = "player", caster = "player", filter = "BUFF"}, -- Stoneheart Idol (Crit, Proc) {spellID = 176982, unitID = "player", caster = "player", filter = "BUFF"}, -- Tablet of Turnbuckle Teamwork (Bonus Armor, Use) {spellID = 176873, unitID = "player", caster = "player", filter = "BUFF"}, -- Anzu's Cursed Plume (Mastery, Proc) {spellID = 183931, unitID = "player", caster = "player", filter = "BUFF"}, -- Enforcer's Stun Grenade (Versatility, Use) {spellID = 165534, unitID = "player", caster = "player", filter = "BUFF"}, -- Tyrant's Decree (Stamina, Proc) {spellID = 184770, unitID = "player", caster = "player", filter = "BUFF"}, -- Xeri'tac's Unhatched Egg Sac (Mastery, Proc) {spellID = 165824, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Agility] -- Beating Heart of the Mountain (Multistrike, Use) {spellID = 176878, unitID = "player", caster = "player", filter = "BUFF"}, -- Blackheart Enforcer's Medallion (Multistrike, Proc) {spellID = 176984, unitID = "player", caster = "player", filter = "BUFF"}, -- Formidable Jar of Doom (Mastery, Proc) {spellID = 176939, unitID = "player", caster = "player", filter = "BUFF"}, -- Humming Blackiron Trigger (Crit, Proc) {spellID = 177067, unitID = "player", caster = "player", filter = "BUFF"}, -- Lucky Double-Sided Coin (Agility, Use) {spellID = 177597, unitID = "player", caster = "player", filter = "BUFF"}, -- Meaty Dragonspine Trophy (Haste, Proc) {spellID = 177035, unitID = "player", caster = "player", filter = "BUFF"}, -- Scales of Doom (Multistrike, Proc) {spellID = 177038, unitID = "player", caster = "player", filter = "BUFF"}, -- Gor'ashan's Lodestone Spike (Multistrike, Use) {spellID = 165542, unitID = "player", caster = "player", filter = "BUFF"}, -- Kihra's Adrenaline Injector (Mastery, Use) {spellID = 165485, unitID = "player", caster = "player", filter = "BUFF"}, -- Malicious Censer (Agility, Proc) {spellID = 183926, unitID = "player", caster = "player", filter = "BUFF"}, -- Mirror of the Blademaster (Images, Proc) {spellID = 184270, unitID = "player", caster = "player", filter = "BUFF"}, -- Soul Capacitator (Damage, Proc) {spellID = 184293, unitID = "player", caster = "player", filter = "BUFF"}, -- Witherbark's Branch (Haste, Proc) {spellID = 165822, unitID = "player", caster = "player", filter = "BUFF"}, -- Healing -- Auto-Repairing Autoclave (Haste, Proc) {spellID = 177086, unitID = "player", caster = "player", filter = "BUFF"}, -- Elementalist's Shielding Talisman (Multistrike, Proc) {spellID = 177063, unitID = "player", caster = "player", filter = "BUFF"}, -- Emblem of Caustic Healing (Haste, Use) {spellID = 176879, unitID = "player", caster = "player", filter = "BUFF"}, -- Formidable Censer of Faith (Haste, Proc) {spellID = 176943, unitID = "player", caster = "player", filter = "BUFF"}, -- Immaculate Living Mushroom (Crit, Proc) {spellID = 176978, unitID = "player", caster = "player", filter = "BUFF"}, -- Ironspike Chew Toy (Spirit, Proc) {spellID = 177060, unitID = "player", caster = "player", filter = "BUFF"}, -- Intuition's Gift (Crit, Use) {spellID = 183929, unitID = "player", caster = "player", filter = "BUFF"}, -- Leaf of the Ancient Protectors (Versatility, Proc) {spellID = 165833, unitID = "player", caster = "player", filter = "BUFF"}, -- Tharbek's Lucky Pebble (Mastery, Use) {spellID = 165535, unitID = "player", caster = "player", filter = "BUFF"}, -- Voidmender's Shadowgem (Crit, Use) {spellID = 165532, unitID = "player", caster = "player", filter = "BUFF"}, -- Enchants -- Mark of Blackrock (Bonus Armor) {spellID = 159679, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of Bleeding Hollow (Mastery) {spellID = 173322, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of Shadowmoon (Spirit) {spellID = 159678, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of the Frostwolf (Multistrike) {spellID = 159676, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of the Thunderlord (Crit) {spellID = 159234, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of Warsong (Haste) {spellID = 159675, unitID = "player", caster = "all", filter = "BUFF"}, }, { Name = "T_DEBUFF_ICON", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"TOP", T_DEBUFF_ICON_Anchor}, -- Heavy Stagger {spellID = 124273, unitID = "player", caster = "player", filter = "DEBUFF"}, -- Dizzying Haze --BETA {spellID = 116330, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Breath of Fire {spellID = 123725, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Rising Sun Kick --BETA {spellID = 130320, unitID = "target", caster = "player", filter = "DEBUFF"}, }, { Name = "COOLDOWN", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"CENTER", "E.UIParent", "CENTER", 0, -200}, -- Self -- Detox {spellID = 115450, filter = "CD"}, -- Spear Hand Strike {spellID = 116705, filter = "CD"}, -- Paralysis {spellID = 115078, filter = "CD"}, -- Expel Harm {spellID = 115072, filter = "CD"}, -- Rising Sun Kick {spellID = 107428, filter = "CD"}, -- Provoke {spellID = 115546, filter = "CD"}, -- Zen Sphere {spellID = 124081, filter = "CD"}, -- Chi Wave {spellID = 115098, filter = "CD"}, -- Fists of Fury {spellID = 113656, filter = "CD"}, -- Chi Burst {spellID = 123986, filter = "CD"}, -- Guard --BETA {spellID = 115295, filter = "CD"}, -- Charging Ox Wave --BETA {spellID = 119392, filter = "CD"}, -- Hurricane Strike {spellID = 152175, filter = "CD"}, -- Ring of Peace {spellID = 116844, filter = "CD"}, -- Thunder Focus Tea {spellID = 116680, filter = "CD"}, -- Dampen Harm {spellID = 122278, filter = "CD"}, -- Flying Serpent Kick {spellID = 101545, filter = "CD"}, -- Energizing Brew {spellID = 115288, filter = "CD"}, -- Diffuse Magic {spellID = 122783, filter = "CD"}, -- Breath of the Serpent --BETA {spellID = 157535, filter = "CD"}, -- Serenity {spellID = 152173, filter = "CD"}, -- Touch of Karma {spellID = 122470, filter = "CD"}, -- Touch of Death {spellID = 115080, filter = "CD"}, -- Nimble Brew --BETA {spellID = 137562, filter = "CD"}, -- Life Cocoon {spellID = 116849, filter = "CD"}, -- Invoke Xuen, the White Tiger {spellID = 123904, filter = "CD"}, -- Racial -- Arcane Torrent (Blood Elf) {spellID = 69179, filter = "CD"}, -- Escape Artist (Gnome) {spellID = 20589, filter = "CD"}, -- Every Man for Himself (Human) {spellID = 59752, filter = "CD"}, -- Gift of the Naaru (Draenei) {spellID = 28880, filter = "CD"}, -- Berserking (Troll) {spellID = 26297, filter = "CD"}, -- Blood Fury (Orc) {spellID = 20572, filter = "CD"}, -- Cannibalize (Forsaken) {spellID = 20577, filter = "CD"}, -- Quaking Palm (Pandaren) {spellID = 107079, filter = "CD"}, -- Shadowmeld (Night Elf) {spellID = 58984, filter = "CD"}, -- Stoneform (Dwarf) {spellID = 20594, filter = "CD"}, -- War Stomp (Tauren) {spellID = 20549, filter = "CD"}, -- Will of the Forsaken (Forsaken) {spellID = 7744, filter = "CD"}, -- Items -- Back {slotID = 15, filter = "CD"}, -- Belt {slotID = 6, filter = "CD"}, -- Gloves {slotID = 10, filter = "CD"}, -- Neck {slotID = 2, filter = "CD"}, -- Rings {slotID = 11, filter = "CD"}, {slotID = 12, filter = "CD"}, -- Trinkets {slotID = 13, filter = "CD"}, {slotID = 14, filter = "CD"}, }, }, ["PALADIN"] = { { Name = "P_BUFF_ICON", Direction = "LEFT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"BOTTOMLEFT", "ElvUF_Player", "TOPLEFT", 0, 12}, -- Divine Shield {spellID = 642, unitID = "player", caster = "player", filter = "BUFF"}, -- Guardian of Ancient Kings {spellID = 86659, unitID = "player", caster = "player", filter = "BUFF"}, -- Holy Avenger {spellID = 105809, unitID = "player", caster = "player", filter = "BUFF"}, -- Avenging Wrath {spellID = 31884, unitID = "player", caster = "player", filter = "BUFF"}, -- Seraphim {spellID = 152262, unitID = "player", caster = "player", filter = "BUFF"}, -- Ardent Defender {spellID = 31850, unitID = "player", caster = "player", filter = "BUFF"}, -- Divine Protection {spellID = 498, unitID = "player", caster = "player", filter = "BUFF"}, -- Speed of Light {spellID = 85499, unitID = "player", caster = "player", filter = "BUFF"}, -- Eternal Flame {spellID = 114163, unitID = "player", caster = "player", filter = "BUFF"}, }, { Name = "P_PROC_ICON", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"BOTTOMLEFT", "ElvUF_Player", "TOPLEFT", 0, 55}, -- Buffs -- Infusion of Light {spellID = 54149, unitID = "player", caster = "player", filter = "BUFF"}, -- Bastion of Glory --BETA {spellID = 114637, unitID = "player", caster = "player", filter = "BUFF"}, -- Selfless Healer {spellID = 114250, unitID = "player", caster = "player", filter = "BUFF"}, -- Divine Purpose --BETA {spellID = 90174, unitID = "player", caster = "player", filter = "BUFF"}, -- Grand Crusader {spellID = 85416, unitID = "player", caster = "player", filter = "BUFF"}, -- Daybreak --BETA {spellID = 88819, unitID = "player", caster = "player", filter = "BUFF"}, -- Divine Crusader --BETA {spellID = 144595, unitID = "player", caster = "player", filter = "BUFF"}, -- Final Verdict {spellID = 157048, unitID = "player", caster = "player", filter = "BUFF"}, -- Long Arm of the Law --BETA {spellID = 87173, unitID = "player", caster = "player", filter = "BUFF"}, -- Supplication --BETA {spellID = 94686, unitID = "player", caster = "player", filter = "BUFF"}, -- Trinkets -- 1.0: Darkmoon Cards -- Visions of the Future (Spirit, Proc) {spellID = 162913, unitID = "player", caster = "player", filter = "BUFF"}, -- Spirit of the Warlords (Crit, Proc) {spellID = 162915, unitID = "player", caster = "player", filter = "BUFF"}, -- Strength of Steel (Crit, Proc) {spellID = 162917, unitID = "player", caster = "player", filter = "BUFF"}, -- 1.1: Alchemy Stones -- Strength {spellID = 60229, unitID = "player", caster = "player", filter = "BUFF"}, -- Intellect {spellID = 60234, unitID = "player", caster = "player", filter = "BUFF"}, -- 1.2: Hallow's End -- Brawler's Statue (Bonus Armor, Use) {spellID = 127967, unitID = "player", caster = "player", filter = "BUFF"}, -- Coren's Cold Chromium (Attack Power, Proc) {spellID = 127926, unitID = "player", caster = "player", filter = "BUFF"}, -- Thousand-Year Pickled Egg (Haste, Proc) {spellID = 127914, unitID = "player", caster = "player", filter = "BUFF"}, -- 2.0: PvP Trinkets -- Battlemaster (Health, Use) {spellID = 181706, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Strength] (Versatility, Use) {spellID = 182073, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Strength] (Versatility, Proc) {spellID = 182063, unitID = "player", caster = "player", filter = "BUFF"}, -- 3.0: Heirlooms -- Gronntooth War Horn (Strength, Proc) {spellID = 201405, unitID = "player", caster = "player", filter = "BUFF"}, -- Orb Of Voidsight (Haste, Proc) {spellID = 201410, unitID = "player", caster = "player", filter = "BUFF"}, -- Tanking -- Battering Talisman (Haste, Proc) {spellID = 177102, unitID = "player", caster = "player", filter = "BUFF"}, -- Blast Furnace Door (Mastery, Proc) {spellID = 177056, unitID = "player", caster = "player", filter = "BUFF"}, -- Evergaze Arcane Eidolon (Bonus Armor, Proc) {spellID = 177053, unitID = "player", caster = "player", filter = "BUFF"}, -- Formidable Relic of Blood (Haste, Proc) {spellID = 176937, unitID = "player", caster = "player", filter = "BUFF"}, -- Kyb's Foolish Perseverance (Health, Use) {spellID = 176460, unitID = "player", caster = "player", filter = "BUFF"}, -- Pol's Blinded Eye (Mastery, Use) {spellID = 176876, unitID = "player", caster = "player", filter = "BUFF"}, -- Stoneheart Idol (Crit, Proc) {spellID = 176982, unitID = "player", caster = "player", filter = "BUFF"}, -- Tablet of Turnbuckle Teamwork (Bonus Armor, Use) {spellID = 176873, unitID = "player", caster = "player", filter = "BUFF"}, -- Anzu's Cursed Plume (Mastery, Proc) {spellID = 183931, unitID = "player", caster = "player", filter = "BUFF"}, -- Enforcer's Stun Grenade (Versatility, Use) {spellID = 165534, unitID = "player", caster = "player", filter = "BUFF"}, -- Tyrant's Decree (Stamina, Proc) {spellID = 184770, unitID = "player", caster = "player", filter = "BUFF"}, -- Xeri'tac's Unhatched Egg Sac (Mastery, Proc) {spellID = 165824, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Strength] -- Forgemaster's Insignia (Multistrike, Proc) {spellID = 177096, unitID = "player", caster = "player", filter = "BUFF"}, -- Formidable Fang (Multistrike, Proc) {spellID = 176935, unitID = "player", caster = "player", filter = "BUFF"}, -- Horn of the Screaming Spirits (Mastery, Proc) {spellID = 177042, unitID = "player", caster = "player", filter = "BUFF"}, -- Mote of the Mountain (Versatility, Proc) {spellID = 176974, unitID = "player", caster = "player", filter = "BUFF"}, -- Scabbard of Kyanos (Strength, Use) {spellID = 177189, unitID = "player", caster = "player", filter = "BUFF"}, -- Tectus' Beating Heart (Crit, Proc) {spellID = 177040, unitID = "player", caster = "player", filter = "BUFF"}, -- Vial of Convulsive Shadows (Multistrike, Use) {spellID = 176874, unitID = "player", caster = "player", filter = "BUFF"}, -- Bonemaw's Big Toe (Crit, Use) {spellID = 165532, unitID = "player", caster = "player", filter = "BUFF"}, -- Emberscale Talisman (Versatility, Use) {spellID = 165543, unitID = "player", caster = "player", filter = "BUFF"}, -- Spores of Alacrity (Haste, Proc) {spellID = 165822, unitID = "player", caster = "player", filter = "BUFF"}, -- Unending Hunger (Strength, Proc) {spellID = 183941, unitID = "player", caster = "player", filter = "BUFF"}, -- Healing -- Auto-Repairing Autoclave (Haste, Proc) {spellID = 177086, unitID = "player", caster = "player", filter = "BUFF"}, -- Elementalist's Shielding Talisman (Multistrike, Proc) {spellID = 177063, unitID = "player", caster = "player", filter = "BUFF"}, -- Emblem of Caustic Healing (Haste, Use) {spellID = 176879, unitID = "player", caster = "player", filter = "BUFF"}, -- Formidable Censer of Faith (Haste, Proc) {spellID = 176943, unitID = "player", caster = "player", filter = "BUFF"}, -- Immaculate Living Mushroom (Crit, Proc) {spellID = 176978, unitID = "player", caster = "player", filter = "BUFF"}, -- Ironspike Chew Toy (Spirit, Proc) {spellID = 177060, unitID = "player", caster = "player", filter = "BUFF"}, -- Intuition's Gift (Crit, Use) {spellID = 183929, unitID = "player", caster = "player", filter = "BUFF"}, -- Leaf of the Ancient Protectors (Versatility, Proc) {spellID = 165833, unitID = "player", caster = "player", filter = "BUFF"}, -- Tharbek's Lucky Pebble (Mastery, Use) {spellID = 165535, unitID = "player", caster = "player", filter = "BUFF"}, -- Enchants -- Mark of Blackrock (Bonus Armor) {spellID = 159679, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of Bleeding Hollow (Mastery) {spellID = 173322, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of Shadowmoon (Spirit) {spellID = 159678, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of the Frostwolf (Multistrike) {spellID = 159676, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of the Thunderlord (Crit) {spellID = 159234, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of Warsong (Haste) {spellID = 159675, unitID = "player", caster = "all", filter = "BUFF"}, }, { Name = "T_DEBUFF_ICON", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"TOP", T_DEBUFF_ICON_Anchor}, -- Forbearance {spellID = 25771, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Censure --BETA {spellID = 31803, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Dazing Shield (Glyph) --BETA {spellID = 63529, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Seal of Justice --BETA {spellID = 20170, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Denounce --BETA {spellID = 2812, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Trinket Effects -- Fel Burn [Empty Drinking Horn] {spellID = 184256, unitID = "target", caster = "player", filter = "DEBUFF"}, }, { Name = "COOLDOWN", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"CENTER", "E.UIParent", "CENTER", 0, -200}, -- Self -- Cleanse {spellID = 4987, filter = "CD"}, -- Rebuke {spellID = 96231, filter = "CD"}, -- Repentance {spellID = 20066, filter = "CD"}, -- Turn Evil --BETA {spellID = 10326, filter = "CD"}, -- Hammer of Justice {spellID = 853, filter = "CD"}, -- Judgment {spellID = 20271, filter = "CD"}, -- Consecration {spellID = 26573, filter = "CD"}, -- Holy Wrath --BETA {spellID = 119072, filter = "CD"}, -- Avenger's Shield {spellID = 31935, filter = "CD"}, -- Exorcism --BETA {spellID = 879, filter = "CD"}, -- Beacon of Insight --BETA {spellID = 157007, filter = "CD"}, -- Holy Prism {spellID = 114165, filter = "CD"}, -- Blessing of Freedom {spellID = 1044, filter = "CD"}, -- Seraphim {spellID = 152262, filter = "CD"}, -- Speed of Light {spellID = 85499, filter = "CD"}, -- Divine Protection {spellID = 498, filter = "CD"}, -- Execution Sentence --BETA {spellID = 114157, filter = "CD"}, -- Light's Hammer {spellID = 114158, filter = "CD"}, -- Blinding Light {spellID = 115750, filter = "CD"}, -- Holy Avenger {spellID = 105809, filter = "CD"}, -- Aura Mastery {spellID = 31821, filter = "CD"}, -- Blessing of Sacrifice {spellID = 6940, filter = "CD"}, -- Avenging Wrath {spellID = 31884, filter = "CD"}, -- Ardent Defender {spellID = 31850, filter = "CD"}, -- Blessing of Protection {spellID = 1022, filter = "CD"}, -- Racial -- Arcane Torrent (Blood Elf) {spellID = 69179, filter = "CD"}, -- Every Man for Himself (Human) {spellID = 59752, filter = "CD"}, -- Gift of the Naaru (Draenei) {spellID = 28880, filter = "CD"}, -- Stoneform (Dwarf) {spellID = 20594, filter = "CD"}, -- War Stomp (Tauren) {spellID = 20549, filter = "CD"}, -- Items -- Back {slotID = 15, filter = "CD"}, -- Belt {slotID = 6, filter = "CD"}, -- Gloves {slotID = 10, filter = "CD"}, -- Neck {slotID = 2, filter = "CD"}, -- Rings {slotID = 11, filter = "CD"}, {slotID = 12, filter = "CD"}, -- Trinkets {slotID = 13, filter = "CD"}, {slotID = 14, filter = "CD"}, }, }, ["PRIEST"] = { { Name = "P_BUFF_ICON", Direction = "LEFT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"BOTTOMLEFT", "ElvUF_Player", "TOPLEFT", 0, 12}, -- Dispersion {spellID = 47585, unitID = "player", caster = "player", filter = "BUFF"}, -- Power Infusion {spellID = 10060, unitID = "player", caster = "player", filter = "BUFF"}, -- Archangel --BETA {spellID = 81700, unitID = "player", caster = "player", filter = "BUFF"}, -- Vampiric Embrace {spellID = 15286, unitID = "player", caster = "player", filter = "BUFF"}, -- Focused Will {spellID = 45242, unitID = "player", caster = "player", filter = "BUFF"}, -- Spectral Guise {spellID = 112833, unitID = "player", caster = "player", filter = "BUFF"}, -- Fade {spellID = 586, unitID = "player", caster = "player", filter = "BUFF"}, -- Spirit Shell {spellID = 109964, unitID = "player", caster = "player", filter = "BUFF", absID = true}, -- Power Word: Shield {spellID = 17, unitID = "player", caster = "all", filter = "BUFF"}, -- Renew {spellID = 139, unitID = "player", caster = "player", filter = "BUFF"}, }, { Name = "P_PROC_ICON", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"BOTTOMLEFT", "ElvUF_Player", "TOPLEFT", 0, 55}, -- Buffs -- Divine Insight --BETA {spellID = 123267, unitID = "player", caster = "player", filter = "BUFF"}, -- Shadowy Insight {spellID = 124430, unitID = "player", caster = "player", filter = "BUFF"}, -- Surge of Light {spellID = 114255, unitID = "player", caster = "player", filter = "BUFF"}, -- Surge of Darkness {spellID = 87160, unitID = "player", caster = "player", filter = "BUFF"}, -- Serendipity --BETA {spellID = 63735, unitID = "player", caster = "player", filter = "BUFF"}, -- Mending --BETA {spellID = 155363, unitID = "player", caster = "player", filter = "BUFF"}, -- Mind Spike (Glyph) --BETA {spellID = 81292, unitID = "player", caster = "player", filter = "BUFF"}, -- Borrowed Time --BETA {spellID = 59889, unitID = "player", caster = "player", filter = "BUFF"}, -- Twist of Fate {spellID = 123254, unitID = "player", caster = "player", filter = "BUFF"}, -- Evangelism --BETA {spellID = 81661, unitID = "player", caster = "player", filter = "BUFF"}, -- Shadow Word: Insanity --BETA {spellID = 132573, unitID = "player", caster = "player", filter = "BUFF"}, -- Trinkets -- 1.0: Darkmoon Cards -- Nightmare Fire (Crit, Proc) {spellID = 162919, unitID = "player", caster = "player", filter = "BUFF"}, -- Visions of the Future (Spirit, Proc) {spellID = 162913, unitID = "player", caster = "player", filter = "BUFF"}, -- 1.1: Alchemy Stones -- Intellect {spellID = 60234, unitID = "player", caster = "player", filter = "BUFF"}, -- 1.2: Hallow's End -- Mithril Wristwatch (Spell Power, Proc) {spellID = 127924, unitID = "player", caster = "player", filter = "BUFF"}, -- Thousand-Year Pickled Egg (Haste, Proc) {spellID = 127914, unitID = "player", caster = "player", filter = "BUFF"}, -- 2.0: PvP Trinkets -- Battlemaster (Health, Use) {spellID = 181706, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Intellect] (Versatility, Use) {spellID = 182073, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Intellect] (Versatility, Proc) {spellID = 182058, unitID = "player", caster = "player", filter = "BUFF"}, -- 3.0: Heirlooms -- Orb Of Voidsight (Haste, Proc) {spellID = 201410, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Intellect] -- Blackiron Micro Crucible (Multistrike, Proc) {spellID = 177081, unitID = "player", caster = "player", filter = "BUFF"}, -- Copeland's Clarity (Spellpower, Use) {spellID = 177594, unitID = "player", caster = "player", filter = "BUFF"}, -- Darmac's Unstable Talisman (Haste, Proc) {spellID = 177051, unitID = "player", caster = "player", filter = "BUFF"}, -- Formidable Orb of Putrescence (Mastery, Proc) {spellID = 176941, unitID = "player", caster = "player", filter = "BUFF"}, -- Furyheart Talisman (Haste, Proc) {spellID = 176980, unitID = "player", caster = "player", filter = "BUFF"}, -- Goren Soul Repository (Crit, Proc) {spellID = 177046, unitID = "player", caster = "player", filter = "BUFF"}, -- Shards of Nothing (Haste, Use) {spellID = 176875, unitID = "player", caster = "player", filter = "BUFF"}, -- Desecrated Shadowmoon Insignia (Intellect, Proc) {spellID = 183924, unitID = "player", caster = "player", filter = "BUFF"}, -- Coagulated Genesaur Blood (Multistrike, Proc) {spellID = 165832, unitID = "player", caster = "player", filter = "BUFF"}, -- Ragewing's Firefang (Versatility, Use) {spellID = 165543, unitID = "player", caster = "player", filter = "BUFF"}, -- Fleshrender's Meathook (Haste, Use) {spellID = 165531, unitID = "player", caster = "player", filter = "BUFF"}, -- Healing -- Auto-Repairing Autoclave (Haste, Proc) {spellID = 177086, unitID = "player", caster = "player", filter = "BUFF"}, -- Elementalist's Shielding Talisman (Multistrike, Proc) {spellID = 177063, unitID = "player", caster = "player", filter = "BUFF"}, -- Emblem of Caustic Healing (Haste, Use) {spellID = 176879, unitID = "player", caster = "player", filter = "BUFF"}, -- Formidable Censer of Faith (Haste, Proc) {spellID = 176943, unitID = "player", caster = "player", filter = "BUFF"}, -- Immaculate Living Mushroom (Crit, Proc) {spellID = 176978, unitID = "player", caster = "player", filter = "BUFF"}, -- Ironspike Chew Toy (Spirit, Proc) {spellID = 177060, unitID = "player", caster = "player", filter = "BUFF"}, -- Intuition's Gift (Crit, Use) {spellID = 183929, unitID = "player", caster = "player", filter = "BUFF"}, -- Leaf of the Ancient Protectors (Versatility, Proc) {spellID = 165833, unitID = "player", caster = "player", filter = "BUFF"}, -- Tharbek's Lucky Pebble (Mastery, Use) {spellID = 165535, unitID = "player", caster = "player", filter = "BUFF"}, -- Voidmender's Shadowgem (Crit, Use) {spellID = 165532, unitID = "player", caster = "player", filter = "BUFF"}, -- Enchants -- Mark of Bleeding Hollow (Mastery) {spellID = 173322, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of Shadowmoon (Spirit) {spellID = 159678, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of the Frostwolf (Multistrike) {spellID = 159676, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of the Thunderlord (Crit) {spellID = 159234, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of Warsong (Haste) {spellID = 159675, unitID = "player", caster = "all", filter = "BUFF"}, }, { Name = "T_DEBUFF_ICON", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"TOP", T_DEBUFF_ICON_Anchor}, -- Void Tendrils {spellID = 114404, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Mind Blast (Glyph) --BETA {spellID = 87194, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Saving Grace --BETA {spellID = 155274, unitID = "player", caster = "player", filter = "DEBUFF"}, -- Trinket Effects -- Mark of Doom [Prophecy of Fear] {spellID = 184073, unitID = "target", caster = "player", filter = "DEBUFF"}, }, { Name = "T_DE/BUFF_BAR", Direction = "UP", IconSide = "LEFT", Mode = "BAR", Interval = 3, Alpha = 1, IconSize = 25, BarWidth = 186, Position = {"BOTTOMLEFT", "ElvUF_Target", "TOPLEFT", 0, 68}, -- Renew {spellID = 139, unitID = "target", caster = "player", filter = "BUFF"}, -- Prayer of Mending {spellID = 41635, unitID = "target", caster = "player", filter = "BUFF"}, -- Guardian Spirit {spellID = 47788, unitID = "target", caster = "player", filter = "BUFF"}, -- Pain Suppression {spellID = 33206, unitID = "target", caster = "player", filter = "BUFF"}, -- Void Entropy {spellID = 155361, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Vampiric Touch {spellID = 34914, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Shadow Word: Pain {spellID = 589, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Devouring Plague --BETA {spellID = 2944, unitID = "target", caster = "player", filter = "DEBUFF"}, }, { Name = "PVE/PVP_CC", Direction = "DOWN", IconSide = "LEFT", Mode = "BAR", Interval = 3, Alpha = 1, IconSize = 25, BarWidth = 189, Position = {"LEFT", "E.UIParent", "LEFT", 200, 0}, -- Shackle Undead {spellID = 9484, unitID = "focus", caster = "player", filter = "DEBUFF"}, -- Psychic Scream {spellID = 8122, unitID = "focus", caster = "player", filter = "DEBUFF"}, }, { Name = "COOLDOWN", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"CENTER", "E.UIParent", "CENTER", 0, -200}, -- Self -- Purify {spellID = 527, filter = "CD"}, -- Mass Dispel {spellID = 32375, filter = "CD"}, -- Penance {spellID = 47540, filter = "CD"}, -- Mind Blast {spellID = 8092, filter = "CD"}, -- Holy Fire {spellID = 14914, filter = "CD"}, -- Shadow Word: Death {spellID = 32379, filter = "CD"}, -- Circle of Healing {spellID = 34861, filter = "CD"}, -- Prayer of Mending {spellID = 33076, filter = "CD"}, -- Divine Star {spellID = 110744, filter = "CD"}, -- Cascade --BETA {spellID = 121135, filter = "CD"}, -- Archangel --BETA {spellID = 81700, filter = "CD"}, -- Holy Word: Chastise {spellID = 88625, filter = "CD"}, -- Spectral Guise {spellID = 112833, filter = "CD"}, -- Fade {spellID = 586, filter = "CD"}, -- Void Tendrils --BETA {spellID = 108920, filter = "CD"}, -- Halo {spellID = 120517, filter = "CD"}, -- Psychic Scream {spellID = 8122, filter = "CD"}, -- Psychic Horror {spellID = 64044, filter = "CD"}, -- Silence {spellID = 15487, filter = "CD"}, -- Leap of Faith {spellID = 73325, filter = "CD"}, -- Power Infusion {spellID = 10060, filter = "CD"}, -- Dispersion {spellID = 47585, filter = "CD"}, -- Desperate Prayer {spellID = 19236, filter = "CD"}, -- Pain Suppression {spellID = 33206, filter = "CD"}, -- Guardian Spirit {spellID = 47788, filter = "CD"}, -- Power Word: Barrier {spellID = 62618, filter = "CD"}, -- Racial -- Arcane Torrent (Blood Elf) {spellID = 69179, filter = "CD"}, -- Berserking (Troll) {spellID = 26297, filter = "CD"}, -- Cannibalize (Forsaken) {spellID = 20577, filter = "CD"}, -- Darkflight (Worgen) {spellID = 68992, filter = "CD"}, -- Escape Artist (Gnome) {spellID = 20589, filter = "CD"}, -- Every Man for Himself (Human) {spellID = 59752, filter = "CD"}, -- Gift of the Naaru (Draenei) {spellID = 28880, filter = "CD"}, -- Quaking Palm (Pandaren) {spellID = 107079, filter = "CD"}, -- Rocket Jump (Goblin) {spellID = 69070, filter = "CD"}, -- Shadowmeld (Night Elf) {spellID = 58984, filter = "CD"}, -- Stoneform (Dwarf) {spellID = 20594, filter = "CD"}, -- War Stomp (Tauren) {spellID = 20549, filter = "CD"}, -- Will of the Forsaken (Forsaken) {spellID = 7744, filter = "CD"}, -- Items -- Back {slotID = 15, filter = "CD"}, -- Belt {slotID = 6, filter = "CD"}, -- Gloves {slotID = 10, filter = "CD"}, -- Neck {slotID = 2, filter = "CD"}, -- Rings {slotID = 11, filter = "CD"}, {slotID = 12, filter = "CD"}, -- Trinkets {slotID = 13, filter = "CD"}, {slotID = 14, filter = "CD"}, }, }, ["ROGUE"] = { { Name = "P_BUFF_ICON", Direction = "LEFT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"BOTTOMLEFT", "ElvUF_Player", "TOPLEFT", 0, 12}, -- Slice and Dice {spellID = 5171, unitID = "player", caster = "player", filter = "BUFF"}, -- Adrenaline Rush {spellID = 13750, unitID = "player", caster = "player", filter = "BUFF"}, -- Evasion {spellID = 5277, unitID = "player", caster = "player", filter = "BUFF"}, -- Envenom {spellID = 32645, unitID = "player", caster = "player", filter = "BUFF"}, -- Shadow Dance {spellID = 185313, unitID = "player", caster = "player", filter = "BUFF"}, -- Symbols of Death {spellID = 212283, unitID = "player", caster = "player", filter = "BUFF"}, -- Shadow Blades {spellID = 121471, unitID = "player", caster = "player", filter = "BUFF"}, -- Alacrity {spellID = 193539, unitID = "player", caster = "player", filter = "BUFF"}, -- Master of Subtlety {spellID = 31665, unitID = "player", caster = "player", filter = "BUFF"}, -- Cloak of Shadows {spellID = 31224, unitID = "player", caster = "player", filter = "BUFF"}, -- Vanish {spellID = 1856, unitID = "player", caster = "player", filter = "BUFF"}, -- Combat Readiness {spellID = 74001, unitID = "player", caster = "player", filter = "BUFF"}, -- Combat Insight {spellID = 74002, unitID = "player", caster = "player", filter = "BUFF"}, -- Shadow Reflection {spellID = 152151, unitID = "player", caster = "player", filter = "BUFF"}, -- Cheating Death {spellID = 45182, unitID = "player", caster = "player", filter = "BUFF"}, -- Blade Flurry {spellID = 13877, unitID = "player", caster = "player", filter = "BUFF"}, -- Burst of Speed {spellID = 108212, unitID = "player", caster = "player", filter = "BUFF"}, -- Sprint {spellID = 2983, unitID = "player", caster = "player", filter = "BUFF"}, -- Feint {spellID = 1966, unitID = "player", caster = "player", filter = "BUFF"}, -- Subterfuge {spellID = 115192, unitID = "player", caster = "player", filter = "BUFF"}, }, { Name = "P_PROC_ICON", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"BOTTOMLEFT", "ElvUF_Player", "TOPLEFT", 0, 55}, -- Buffs -- Anticipation --BETA {spellID = 115189, unitID = "player", caster = "player", filter = "BUFF"}, -- Shallow Insight --BETA {spellID = 84745, unitID = "player", caster = "player", filter = "BUFF"}, -- Moderate Insight --BETA {spellID = 84746, unitID = "player", caster = "player", filter = "BUFF"}, -- Deep Insight --BETA {spellID = 84747, unitID = "player", caster = "player", filter = "BUFF"}, -- Blindside --BETA {spellID = 121153, unitID = "player", caster = "player", filter = "BUFF"}, -- Jolly Roger {spellID = 199603, unitID = "player", caster = "player", filter = "BUFF"}, -- Grand Melee {spellID = 193358, unitID = "player", caster = "player", filter = "BUFF"}, -- True Bearing {spellID = 193359, unitID = "player", caster = "player", filter = "BUFF"}, -- Buried Treasure {spellID = 199600, unitID = "player", caster = "player", filter = "BUFF"}, -- Broadsides {spellID = 193356, unitID = "player", caster = "player", filter = "BUFF"}, -- Shark Infested Waters {spellID = 193357, unitID = "player", caster = "player", filter = "BUFF"}, -- Item Sets -- Deathly Shadows (T18) {spellID = 188700, unitID = "player", caster = "player", filter = "BUFF"}, -- Trinkets -- 1.0: Darkmoon Cards -- Spirit of the Warlords (Crit, Proc) {spellID = 162915, unitID = "player", caster = "player", filter = "BUFF"}, -- 1.1: Alchemy Stones -- Agility {spellID = 60233, unitID = "player", caster = "player", filter = "BUFF"}, -- 1.2: Hallow's End -- Coren's Cold Chromium (Attack Power, Proc) {spellID = 127926, unitID = "player", caster = "player", filter = "BUFF"}, -- 2.0: PvP Trinkets -- Battlemaster (Health, Use) {spellID = 181706, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Agility] (Versatility, Use) {spellID = 182073, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Agility] (Versatility, Proc) {spellID = 182060, unitID = "player", caster = "player", filter = "BUFF"}, -- 3.0: Heirlooms -- Infallible Tracking Charm [Damage, Proc] {spellID = 201408, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Agility] -- Beating Heart of the Mountain (Multistrike, Use) {spellID = 176878, unitID = "player", caster = "player", filter = "BUFF"}, -- Blackheart Enforcer's Medallion (Multistrike, Proc) {spellID = 176984, unitID = "player", caster = "player", filter = "BUFF"}, -- Formidable Jar of Doom (Mastery, Proc) {spellID = 176939, unitID = "player", caster = "player", filter = "BUFF"}, -- Humming Blackiron Trigger (Crit, Proc) {spellID = 177067, unitID = "player", caster = "player", filter = "BUFF"}, -- Lucky Double-Sided Coin (Agility, Use) {spellID = 177597, unitID = "player", caster = "player", filter = "BUFF"}, -- Meaty Dragonspine Trophy (Haste, Proc) {spellID = 177035, unitID = "player", caster = "player", filter = "BUFF"}, -- Scales of Doom (Multistrike, Proc) {spellID = 177038, unitID = "player", caster = "player", filter = "BUFF"}, -- Gor'ashan's Lodestone Spike (Multistrike, Use) {spellID = 165542, unitID = "player", caster = "player", filter = "BUFF"}, -- Kihra's Adrenaline Injector (Mastery, Use) {spellID = 165485, unitID = "player", caster = "player", filter = "BUFF"}, -- Malicious Censer (Agility, Proc) {spellID = 183926, unitID = "player", caster = "player", filter = "BUFF"}, -- Mirror of the Blademaster (Images, Proc) {spellID = 184270, unitID = "player", caster = "player", filter = "BUFF"}, -- Soul Capacitator (Damage, Proc) {spellID = 184293, unitID = "player", caster = "player", filter = "BUFF"}, -- Witherbark's Branch (Haste, Proc) {spellID = 165822, unitID = "player", caster = "player", filter = "BUFF"}, -- Enchants -- Mark of Bleeding Hollow (Mastery) {spellID = 173322, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of the Frostwolf (Multistrike) {spellID = 159676, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of the Thunderlord (Crit) {spellID = 159234, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of Warsong (Haste) {spellID = 159675, unitID = "player", caster = "all", filter = "BUFF"}, }, { Name = "T_DEBUFF_ICON", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"TOP", T_DEBUFF_ICON_Anchor}, -- Rupture {spellID = 1943, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Garrote {spellID = 703, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Gouge {spellID = 1776, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Hemorrhage {spellID = 16511, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Find Weakness {spellID = 91021, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Vendetta {spellID = 79140, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Nightblade {spellID = 195452, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Ghostly Strike {spellID = 196937, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Deadly Poison {spellID = 2818, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Crippling Poison {spellID = 3409, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Wound Poison {spellID = 8680, unitID = "target", caster = "player", filter = "DEBUFF"}, }, { Name = "PVE/PVP_CC", Direction = "DOWN", IconSide = "LEFT", Mode = "BAR", Interval = 3, Alpha = 1, IconSize = 25, BarWidth = 189, Position = {"LEFT", "E.UIParent", "LEFT", 200, 0}, -- Blind {spellID = 2094, unitID = "focus", caster = "player", filter = "DEBUFF"}, -- Sap {spellID = 6770, unitID = "focus", caster = "player", filter = "DEBUFF"}, }, { Name = "COOLDOWN", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"CENTER", "E.UIParent", "CENTER", 0, -200}, -- Self -- Stealth {spellID = 1784, filter = "CD"}, -- Kick {spellID = 1766, filter = "CD"}, -- Gouge {spellID = 1776, filter = "CD"}, -- Kidney Shot {spellID = 408, filter = "CD"}, -- Premiditation --BETA {spellID = 14183, filter = "CD"}, -- Death from Above {spellID = 152150, filter = "CD"}, -- Sprint {spellID = 2983, filter = "CD"}, -- Shadow Dance {spellID = 185313, filter = "CD"}, -- Marked for Death {spellID = 137619, filter = "CD"}, -- Killing Spree {spellID = 51690, filter = "CD"}, -- Vendetta {spellID = 79140, filter = "CD"}, -- Shadow Reflection {spellID = 152151, filter = "CD"}, -- Combat Readiness {spellID = 74001, filter = "CD"}, -- Vanish {spellID = 1856, filter = "CD"}, -- Adrenaline Rush {spellID = 13750, filter = "CD"}, -- Between the Eyes {spellID = 199804, filter = "CD"}, -- Riposte {spellID = 199754, filter = "CD"}, -- Cloak of Shadows {spellID = 31224, filter = "CD"}, -- Grappling Hook {spellID = 195457, filter = "CD"}, -- Crimson Vial {spellID = 185311, filter = "CD"}, -- Cannonball Barrage {spellID = 185767, filter = "CD"}, -- Garrote {spellID = 703, filter = "CD"}, -- Exsanguinate {spellID = 200806, filter = "CD"}, -- Shadowstep {spellID = 36554, filter = "CD"}, -- Evasion {spellID = 5277, filter = "CD"}, -- Racial -- Arcane Torrent (Blood Elf) {spellID = 69179, filter = "CD"}, -- Berserking (Troll) {spellID = 26297, filter = "CD"}, -- Blood Fury (Orc) {spellID = 20572, filter = "CD"}, -- Cannibalize (Forsaken) {spellID = 20577, filter = "CD"}, -- Darkflight (Worgen) {spellID = 68992, filter = "CD"}, -- Escape Artist (Gnome) {spellID = 20589, filter = "CD"}, -- Every Man for Himself (Human) {spellID = 59752, filter = "CD"}, -- Quaking Palm (Pandaren) {spellID = 107079, filter = "CD"}, -- Rocket Jump (Goblin) {spellID = 69070, filter = "CD"}, -- Shadowmeld (Night Elf) {spellID = 58984, filter = "CD"}, -- Stoneform (Dwarf) {spellID = 20594, filter = "CD"}, -- Will of the Forsaken (Forsaken) {spellID = 7744, filter = "CD"}, -- Items -- Back {slotID = 15, filter = "CD"}, -- Belt {slotID = 6, filter = "CD"}, -- Gloves {slotID = 10, filter = "CD"}, -- Neck {slotID = 2, filter = "CD"}, -- Rings {slotID = 11, filter = "CD"}, {slotID = 12, filter = "CD"}, -- Trinkets {slotID = 13, filter = "CD"}, {slotID = 14, filter = "CD"}, }, }, ["SHAMAN"] = { { Name = "P_BUFF_ICON", Direction = "LEFT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"BOTTOMLEFT", "ElvUF_Player", "TOPLEFT", 0, 12}, -- Maelstorm Weapon --BETA {spellID = 53817, unitID = "player", caster = "player", filter = "BUFF"}, -- Lightning Shield --BETA {spellID = 324, unitID = "player", caster = "player", filter = "BUFF", spec = 1, count = 10}, -- Shamanistic Rage --BETA {spellID = 30823, unitID = "player", caster = "player", filter = "BUFF"}, -- Elemental Mastery {spellID = 16166, unitID = "player", caster = "player", filter = "BUFF"}, -- Ascendance {spellID = 114049, unitID = "player", caster = "player", filter = "BUFF"}, -- Spiritwalker's Grace {spellID = 79206, unitID = "player", caster = "player", filter = "BUFF"}, -- Unleash Flame --BETA {spellID = 73683, unitID = "player", caster = "player", filter = "BUFF"}, -- Unleash Life {spellID = 73685, unitID = "player", caster = "player", filter = "BUFF"}, -- Nature Guardian --BETA {spellID = 31616, unitID = "player", caster = "player", filter = "BUFF"}, -- Stone Bulwark {spellID = 114893, unitID = "player", caster = "player", filter = "BUFF"}, -- Ancestral Guidance {spellID = 108281, unitID = "player", caster = "player", filter = "BUFF"}, -- Astral Shift {spellID = 108271, unitID = "player", caster = "player", filter = "BUFF"}, }, { Name = "P_PROC_ICON", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"BOTTOMLEFT", "ElvUF_Player", "TOPLEFT", 0, 55}, -- Buffs -- Lava Surge {spellID = 77762, unitID = "player", caster = "player", filter = "BUFF"}, -- Elemental Blast {spellID = 118522, unitID = "player", caster = "player", filter = "BUFF"}, -- Tidal Waves {spellID = 53390, unitID = "player", caster = "player", filter = "BUFF"}, -- Elemental Fusion --BETA {spellID = 157174, unitID = "player", caster = "player", filter = "BUFF"}, -- Trinkets -- 1.0: Darkmoon Cards -- Nightmare Fire (Crit, Proc) {spellID = 162919, unitID = "player", caster = "player", filter = "BUFF"}, -- Visions of the Future (Spirit, Proc) {spellID = 162913, unitID = "player", caster = "player", filter = "BUFF"}, -- Spirit of the Warlords (Crit, Proc) {spellID = 162915, unitID = "player", caster = "player", filter = "BUFF"}, -- 1.1: Alchemy Stones -- Agility {spellID = 60233, unitID = "player", caster = "player", filter = "BUFF"}, -- Intellect {spellID = 60234, unitID = "player", caster = "player", filter = "BUFF"}, -- 1.2: Hallow's End -- Coren's Cold Chromium (Attack Power, Proc) {spellID = 127926, unitID = "player", caster = "player", filter = "BUFF"}, -- Mithril Wristwatch (Spell Power, Proc) {spellID = 127924, unitID = "player", caster = "player", filter = "BUFF"}, -- Thousand-Year Pickled Egg (Haste, Proc) {spellID = 127914, unitID = "player", caster = "player", filter = "BUFF"}, -- 2.0: PvP Trinkets -- Battlemaster (Health, Use) {spellID = 181706, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Intellect] (Versatility, Use) {spellID = 182073, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Intellect] (Versatility, Proc) {spellID = 182058, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Agility] (Versatility, Proc) {spellID = 182060, unitID = "player", caster = "player", filter = "BUFF"}, -- 3.0: Heirlooms -- Infallible Tracking Charm [Damage, Proc] {spellID = 201408, unitID = "player", caster = "player", filter = "BUFF"}, -- Orb Of Voidsight (Haste, Proc) {spellID = 201410, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Agility] -- Beating Heart of the Mountain (Multistrike, Use) {spellID = 176878, unitID = "player", caster = "player", filter = "BUFF"}, -- Blackheart Enforcer's Medallion (Multistrike, Proc) {spellID = 176984, unitID = "player", caster = "player", filter = "BUFF"}, -- Formidable Jar of Doom (Mastery, Proc) {spellID = 176939, unitID = "player", caster = "player", filter = "BUFF"}, -- Humming Blackiron Trigger (Crit, Proc) {spellID = 177067, unitID = "player", caster = "player", filter = "BUFF"}, -- Lucky Double-Sided Coin (Agility, Use) {spellID = 177597, unitID = "player", caster = "player", filter = "BUFF"}, -- Meaty Dragonspine Trophy (Haste, Proc) {spellID = 177035, unitID = "player", caster = "player", filter = "BUFF"}, -- Scales of Doom (Multistrike, Proc) {spellID = 177038, unitID = "player", caster = "player", filter = "BUFF"}, -- Gor'ashan's Lodestone Spike (Multistrike, Use) {spellID = 165542, unitID = "player", caster = "player", filter = "BUFF"}, -- Kihra's Adrenaline Injector (Mastery, Use) {spellID = 165485, unitID = "player", caster = "player", filter = "BUFF"}, -- Malicious Censer (Agility, Proc) {spellID = 183926, unitID = "player", caster = "player", filter = "BUFF"}, -- Mirror of the Blademaster (Images, Proc) {spellID = 184270, unitID = "player", caster = "player", filter = "BUFF"}, -- Soul Capacitator (Damage, Proc) {spellID = 184293, unitID = "player", caster = "player", filter = "BUFF"}, -- Witherbark's Branch (Haste, Proc) {spellID = 165822, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Intellect] -- Blackiron Micro Crucible (Multistrike, Proc) {spellID = 177081, unitID = "player", caster = "player", filter = "BUFF"}, -- Copeland's Clarity (Spellpower, Use) {spellID = 177594, unitID = "player", caster = "player", filter = "BUFF"}, -- Darmac's Unstable Talisman (Haste, Proc) {spellID = 177051, unitID = "player", caster = "player", filter = "BUFF"}, -- Formidable Orb of Putrescence (Mastery, Proc) {spellID = 176941, unitID = "player", caster = "player", filter = "BUFF"}, -- Furyheart Talisman (Haste, Proc) {spellID = 176980, unitID = "player", caster = "player", filter = "BUFF"}, -- Goren Soul Repository (Crit, Proc) {spellID = 177046, unitID = "player", caster = "player", filter = "BUFF"}, -- Shards of Nothing (Haste, Use) {spellID = 176875, unitID = "player", caster = "player", filter = "BUFF"}, -- Desecrated Shadowmoon Insignia (Intellect, Proc) {spellID = 183924, unitID = "player", caster = "player", filter = "BUFF"}, -- Coagulated Genesaur Blood (Multistrike, Proc) {spellID = 165832, unitID = "player", caster = "player", filter = "BUFF"}, -- Ragewing's Firefang (Versatility, Use) {spellID = 165543, unitID = "player", caster = "player", filter = "BUFF"}, -- Fleshrender's Meathook (Haste, Use) {spellID = 165531, unitID = "player", caster = "player", filter = "BUFF"}, -- Healing -- Auto-Repairing Autoclave (Haste, Proc) {spellID = 177086, unitID = "player", caster = "player", filter = "BUFF"}, -- Elementalist's Shielding Talisman (Multistrike, Proc) {spellID = 177063, unitID = "player", caster = "player", filter = "BUFF"}, -- Emblem of Caustic Healing (Haste, Use) {spellID = 176879, unitID = "player", caster = "player", filter = "BUFF"}, -- Formidable Censer of Faith (Haste, Proc) {spellID = 176943, unitID = "player", caster = "player", filter = "BUFF"}, -- Immaculate Living Mushroom (Crit, Proc) {spellID = 176978, unitID = "player", caster = "player", filter = "BUFF"}, -- Ironspike Chew Toy (Spirit, Proc) {spellID = 177060, unitID = "player", caster = "player", filter = "BUFF"}, -- Intuition's Gift (Crit, Use) {spellID = 183929, unitID = "player", caster = "player", filter = "BUFF"}, -- Leaf of the Ancient Protectors (Versatility, Proc) {spellID = 165833, unitID = "player", caster = "player", filter = "BUFF"}, -- Tharbek's Lucky Pebble (Mastery, Use) {spellID = 165535, unitID = "player", caster = "player", filter = "BUFF"}, -- Voidmender's Shadowgem (Crit, Use) {spellID = 165532, unitID = "player", caster = "player", filter = "BUFF"}, -- Enchants -- Mark of Bleeding Hollow (Mastery) {spellID = 173322, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of Shadowmoon (Spirit) {spellID = 159678, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of the Frostwolf (Multistrike) {spellID = 159676, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of the Thunderlord (Crit) {spellID = 159234, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of Warsong (Haste) {spellID = 159675, unitID = "player", caster = "all", filter = "BUFF"}, }, { Name = "T_DEBUFF_ICON", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"TOP", T_DEBUFF_ICON_Anchor}, -- Stormstrike {spellID = 17364, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Flame Shock --BETA {spellID = 8050, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Frost Shock --BETA {spellID = 8056, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Earthgrab {spellID = 64695, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Trinket Effects -- Mark of Doom [Prophecy of Fear] {spellID = 184073, unitID = "target", caster = "player", filter = "DEBUFF"}, }, { Name = "T_DE/BUFF_BAR", Direction = "UP", IconSide = "LEFT", Mode = "BAR", Interval = 3, Alpha = 1, IconSize = 25, BarWidth = 186, Position = {"BOTTOMLEFT", "ElvUF_Target", "TOPLEFT", 0, 68}, -- Earth Shield --BETA {spellID = 974, unitID = "target", caster = "player", filter = "BUFF"}, -- Riptide {spellID = 61295, unitID = "target", caster = "player", filter = "BUFF"}, }, { Name = "PVE/PVP_CC", Direction = "DOWN", IconSide = "LEFT", Mode = "BAR", Interval = 3, Alpha = 1, IconSize = 25, BarWidth = 189, Position = {"LEFT", "E.UIParent", "LEFT", 200, 0}, -- Hex {spellID = 51514, unitID = "focus", caster = "player", filter = "DEBUFF"}, }, { Name = "COOLDOWN", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"CENTER", "E.UIParent", "CENTER", 0, -200}, -- Self -- Cleanse Spirit {spellID = 51886, filter = "CD"}, -- Wind Shear {spellID = 57994, filter = "CD"}, -- Hex {spellID = 51514, filter = "CD"}, -- Earth Shock {spellID = 8042, filter = "CD"}, -- Lava Burst {spellID = 51505, filter = "CD"}, -- Riptide {spellID = 61295, filter = "CD"}, -- Stormstrike {spellID = 17364, filter = "CD"}, -- Lava Lash {spellID = 60103, filter = "CD"}, -- Healing Rain {spellID = 73920, filter = "CD"}, -- Elemental Blast {spellID = 117014, filter = "CD"}, -- Unleash Elements --BETA {spellID = 73680, filter = "CD"}, -- Cloudburst Totem {spellID = 157153, filter = "CD"}, -- Thunderstorm {spellID = 51490, filter = "CD"}, -- Earthbind Totem {spellID = 2484, filter = "CD"}, -- Tremor Totem --BETA {spellID = 8143, filter = "CD"}, -- Shamanistic Rage --BETA {spellID = 30823, filter = "CD"}, -- Stone Bulwark Totem {spellID = 108270, filter = "CD"}, -- Astral Shift {spellID = 108271, filter = "CD"}, -- Ancestral Swiftness --BETA {spellID = 16188, filter = "CD"}, -- Feral Spirit {spellID = 51533, filter = "CD"}, -- Spiritwalker's Grace {spellID = 79206, filter = "CD"}, -- Ancestral Guidance {spellID = 108281, filter = "CD"}, -- Ascendance {spellID = 114049, filter = "CD"}, -- Racial -- Berserking (Troll) {spellID = 26297, filter = "CD"}, -- Blood Fury (Orc) {spellID = 20572, filter = "CD"}, -- Gift of the Naaru (Draenei) {spellID = 28880, filter = "CD"}, -- Quaking Palm (Pandaren) {spellID = 107079, filter = "CD"}, -- Rocket Jump (Goblin) {spellID = 69070, filter = "CD"}, -- Stoneform (Dwarf) {spellID = 20594, filter = "CD"}, -- War Stomp (Tauren) {spellID = 20549, filter = "CD"}, -- Items -- Back {slotID = 15, filter = "CD"}, -- Belt {slotID = 6, filter = "CD"}, -- Gloves {slotID = 10, filter = "CD"}, -- Neck {slotID = 2, filter = "CD"}, -- Rings {slotID = 11, filter = "CD"}, {slotID = 12, filter = "CD"}, -- Trinkets {slotID = 13, filter = "CD"}, {slotID = 14, filter = "CD"}, }, }, ["WARLOCK"] = { { Name = "P_BUFF_ICON", Direction = "LEFT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"BOTTOMLEFT", "ElvUF_Player", "TOPLEFT", 0, 12}, -- Dark Bargain --BETA {spellID = 110913, unitID = "player", caster = "player", filter = "BUFF"}, -- Unending Resolve {spellID = 104773, unitID = "player", caster = "player", filter = "BUFF"}, -- Dark Soul: Knowledge --BETA {spellID = 113861, unitID = "player", caster = "player", filter = "BUFF"}, -- Dark Soul: Misery --BETA {spellID = 113860, unitID = "player", caster = "player", filter = "BUFF"}, -- Dark Soul: Instability --BETA {spellID = 113858, unitID = "player", caster = "player", filter = "BUFF"}, -- Soul Harvest {spellID = 196098, unitID = "player", caster = "player", filter = "BUFF"}, -- Mana Tap {spellID = 196104, unitID = "player", caster = "player", filter = "BUFF"}, -- Soul Swap {spellID = 86211, unitID = "player", caster = "player", filter = "BUFF"}, -- Kiljaeden's Cunning --BETA {spellID = 137587, unitID = "player", caster = "player", filter = "BUFF"}, -- Dark Regeneration {spellID = 108359, unitID = "player", caster = "player", filter = "BUFF"}, -- Blood Horror --BETA {spellID = 111397, unitID = "player", caster = "player", filter = "BUFF"}, -- Fire and Brimstone --BETA {spellID = 108683, unitID = "player", caster = "player", filter = "BUFF"}, -- Burning Rush {spellID = 111400, unitID = "player", caster = "player", filter = "BUFF"}, -- Sacrificial Pact {spellID = 108416, unitID = "player", caster = "player", filter = "BUFF"}, -- Healthstone {spellID = 6262, unitID = "player", caster = "player", filter = "BUFF"}, }, { Name = "P_PROC_ICON", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"BOTTOMLEFT", "ElvUF_Player", "TOPLEFT", 0, 55}, -- Buffs -- Molten Core --BETA {spellID = 122355, unitID = "player", caster = "player", filter = "BUFF"}, -- Backdraft {spellID = 117828, unitID = "player", caster = "player", filter = "BUFF"}, -- Grimore of Synergy {spellID = 171982, unitID = "player", caster = "player", filter = "BUFF"}, -- Trinkets -- 1.0: Darkmoon Cards -- Nightmare Fire (Crit, Proc) {spellID = 162919, unitID = "player", caster = "player", filter = "BUFF"}, -- 1.1: Alchemy Stones -- Intellect {spellID = 60234, unitID = "player", caster = "player", filter = "BUFF"}, -- 1.2: Hallow's End -- Mithril Wristwatch (Spell Power, Proc) {spellID = 127924, unitID = "player", caster = "player", filter = "BUFF"}, -- 2.0: PvP Trinkets -- Battlemaster (Health, Use) {spellID = 181706, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Intellect] (Versatility, Use) {spellID = 182073, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Intellect] (Versatility, Proc) {spellID = 182058, unitID = "player", caster = "player", filter = "BUFF"}, -- 3.0: Heirlooms -- Orb Of Voidsight (Haste, Proc) {spellID = 201410, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Intellect] -- Blackiron Micro Crucible (Multistrike, Proc) {spellID = 177081, unitID = "player", caster = "player", filter = "BUFF"}, -- Copeland's Clarity (Spellpower, Use) {spellID = 177594, unitID = "player", caster = "player", filter = "BUFF"}, -- Darmac's Unstable Talisman (Haste, Proc) {spellID = 177051, unitID = "player", caster = "player", filter = "BUFF"}, -- Formidable Orb of Putrescence (Mastery, Proc) {spellID = 176941, unitID = "player", caster = "player", filter = "BUFF"}, -- Furyheart Talisman (Haste, Proc) {spellID = 176980, unitID = "player", caster = "player", filter = "BUFF"}, -- Goren Soul Repository (Crit, Proc) {spellID = 177046, unitID = "player", caster = "player", filter = "BUFF"}, -- Shards of Nothing (Haste, Use) {spellID = 176875, unitID = "player", caster = "player", filter = "BUFF"}, -- Desecrated Shadowmoon Insignia (Intellect, Proc) {spellID = 183924, unitID = "player", caster = "player", filter = "BUFF"}, -- Coagulated Genesaur Blood (Multistrike, Proc) {spellID = 165832, unitID = "player", caster = "player", filter = "BUFF"}, -- Ragewing's Firefang (Versatility, Use) {spellID = 165543, unitID = "player", caster = "player", filter = "BUFF"}, -- Fleshrender's Meathook (Haste, Use) {spellID = 165531, unitID = "player", caster = "player", filter = "BUFF"}, -- Enchants -- Mark of Bleeding Hollow (Mastery) {spellID = 173322, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of the Frostwolf (Multistrike) {spellID = 159676, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of the Thunderlord (Crit) {spellID = 159234, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of Warsong (Haste) {spellID = 159675, unitID = "player", caster = "all", filter = "BUFF"}, }, { Name = "T_DEBUFF_ICON", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"TOP", T_DEBUFF_ICON_Anchor}, -- Self -- Enslave Demon {spellID = 1098, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Trinket Effects -- Mark of Doom [Prophecy of Fear] {spellID = 184073, unitID = "target", caster = "player", filter = "DEBUFF"}, }, { Name = "T_DE/BUFF_BAR", Direction = "UP", IconSide = "LEFT", Mode = "BAR", Interval = 3, Alpha = 1, IconSize = 25, BarWidth = 186, Position = {"BOTTOMLEFT", "ElvUF_Target", "TOPLEFT", 0, 68}, -- Havoc {spellID = 80240, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Doom {spellID = 603, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Agony {spellID = 980, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Corruption {spellID = 146739, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Seed of Corruption {spellID = 27243, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Immolate {spellID = 348, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Unstable Affliction {spellID = 30108, unitID = "target", caster = "player", filter = "DEBUFF", absID = true}, -- Siphon Life {spellID = 63106, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Soul Effigy {spellID = 205178, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Phantom Singularity {spellID = 205179, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Haunt {spellID = 48181, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Shadowflame {spellID = 205181, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Eradication {spellID = 196414, unitID = "target", caster = "player", filter = "DEBUFF"}, }, { Name = "PVE/PVP_CC", Direction = "DOWN", IconSide = "LEFT", Mode = "BAR", Interval = 3, Alpha = 1, IconSize = 25, BarWidth = 189, Position = {"LEFT", "E.UIParent", "LEFT", 200, 0}, -- Banish {spellID = 710, unitID = "focus", caster = "player", filter = "DEBUFF"}, -- Fear {spellID = 118699, unitID = "focus", caster = "player", filter = "DEBUFF"}, }, { Name = "COOLDOWN", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"CENTER", "E.UIParent", "CENTER", 0, -200}, -- Self -- Devour Magic (Felhunter) --BETA {spellID = 19505, filter = "CD"}, -- Spell Lock (Felhunter) {spellID = 19647, filter = "CD"}, -- Shadowfury {spellID = 30283, filter = "CD"}, -- Howl of Terror {spellID = 5484, filter = "CD"}, -- Mortal Coil {spellID = 6789, filter = "CD"}, -- Demonic Circle {spellID = 48018, filter = "CD"}, -- Felstorm {spellID = 89751, filter = "CD"}, -- Cataclysm {spellID = 152108, filter = "CD"}, -- Soul Harvest {spellID = 196098, filter = "CD"}, -- Grimoire of Service {spellID = 108501, filter = "CD"}, -- Shadowflame {spellID = 205181, filter = "CD"}, -- Summon Darkglare {spellID = 205180, filter = "CD"}, -- Racial -- Arcane Torrent (Blood Elf) {spellID = 69179, filter = "CD"}, -- Berserking (Troll) {spellID = 26297, filter = "CD"}, -- Blood Fury (Orc) {spellID = 20572, filter = "CD"}, -- Cannibalize (Forsaken) {spellID = 20577, filter = "CD"}, -- Darkflight (Worgen) {spellID = 68992, filter = "CD"}, -- Escape Artist (Gnome) {spellID = 20589, filter = "CD"}, -- Every Man for Himself (Human) {spellID = 59752, filter = "CD"}, -- Rocket Jump (Goblin) {spellID = 69070, filter = "CD"}, -- Stoneform (Dwarf) {spellID = 20594, filter = "CD"}, -- Will of the Forsaken (Forsaken) {spellID = 7744, filter = "CD"}, -- Items -- Back {slotID = 15, filter = "CD"}, -- Belt {slotID = 6, filter = "CD"}, -- Gloves {slotID = 10, filter = "CD"}, -- Neck {slotID = 2, filter = "CD"}, -- Rings {slotID = 11, filter = "CD"}, {slotID = 12, filter = "CD"}, -- Trinkets {slotID = 13, filter = "CD"}, {slotID = 14, filter = "CD"}, }, }, ["WARRIOR"] = { { Name = "P_BUFF_ICON", Direction = "LEFT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"BOTTOMLEFT", "ElvUF_Player", "TOPLEFT", 0, 12}, -- Shield Wall {spellID = 871, unitID = "player", caster = "player", filter = "BUFF"}, -- Last Stand {spellID = 12975, unitID = "player", caster = "player", filter = "BUFF"}, -- Enraged Regeneration --BETA {spellID = 55694, unitID = "player", caster = "player", filter = "BUFF"}, -- Shield Block {spellID = 2565, unitID = "player", caster = "player", filter = "BUFF"}, -- Shield Barrier --BETA {spellID = 112048, unitID = "player", caster = "player", filter = "BUFF"}, -- Spell Reflection {spellID = 23920, unitID = "player", caster = "player", filter = "BUFF"}, -- Ravager {spellID = 152277, unitID = "player", caster = "player", filter = "BUFF", spec = 3}, -- Die by the Sword {spellID = 118038, unitID = "player", caster = "player", filter = "BUFF"}, -- Berserker Rage {spellID = 18499, unitID = "player", caster = "player", filter = "BUFF"}, -- Avatar {spellID = 107574, unitID = "player", caster = "player", filter = "BUFF"}, -- Bloodbath {spellID = 12292, unitID = "player", caster = "player", filter = "BUFF"}, -- Recklesness {spellID = 1719, unitID = "player", caster = "player", filter = "BUFF"}, -- Shield Charge --BETA {spellID = 169667, unitID = "player", caster = "player", filter = "BUFF"}, -- Sweeping Strikes --BETA {spellID = 12328, unitID = "player", caster = "player", filter = "BUFF"}, -- Victorious {spellID = 32216, unitID = "player", caster = "player", filter = "BUFF"}, }, { Name = "P_PROC_ICON", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"BOTTOMLEFT", "ElvUF_Player", "TOPLEFT", 0, 55}, -- Sudden Death {spellID = 52437, unitID = "player", caster = "player", filter = "BUFF"}, -- Raging Blow! {spellID = 131116, unitID = "player", caster = "player", filter = "BUFF"}, -- Bloodsurge --BETA {spellID = 46916, unitID = "player", caster = "player", filter = "BUFF"}, -- Sword and Board --BETA {spellID = 50227, unitID = "player", caster = "player", filter = "BUFF"}, -- Ultimatum {spellID = 122510, unitID = "player", caster = "player", filter = "BUFF"}, -- Meat Cleaver {spellID = 85739, unitID = "player", caster = "player", filter = "BUFF"}, -- Unyielding Strikes {spellID = 169686, unitID = "player", caster = "player", filter = "BUFF"}, -- Enrage --BETA {spellID = 12880, unitID = "player", caster = "player", filter = "BUFF"}, -- Rude Interruption --BETA {spellID = 86663, unitID = "player", caster = "player", filter = "BUFF"}, -- Trinkets -- 1.0: Darkmoon Cards -- Spirit of the Warlords (Crit, Proc) {spellID = 162915, unitID = "player", caster = "player", filter = "BUFF"}, -- Strength of Steel (Crit, Proc) {spellID = 162917, unitID = "player", caster = "player", filter = "BUFF"}, -- 1.1: Alchemy Stones -- Strength {spellID = 60229, unitID = "player", caster = "player", filter = "BUFF"}, -- 1.2: Hallow's End -- Brawler's Statue (Bonus Armor, Use) {spellID = 127967, unitID = "player", caster = "player", filter = "BUFF"}, -- Coren's Cold Chromium (Attack Power, Proc) {spellID = 127926, unitID = "player", caster = "player", filter = "BUFF"}, -- 2.0: PvP Trinkets -- Battlemaster (Health, Use) {spellID = 181706, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Strength] (Versatility, Use) {spellID = 182073, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Strength] (Versatility, Proc) {spellID = 182063, unitID = "player", caster = "player", filter = "BUFF"}, -- 3.0: Heirlooms -- Gronntooth War Horn (Strength, Proc) {spellID = 201405, unitID = "player", caster = "player", filter = "BUFF"}, -- Tanking -- Battering Talisman (Haste, Proc) {spellID = 177102, unitID = "player", caster = "player", filter = "BUFF"}, -- Blast Furnace Door (Mastery, Proc) {spellID = 177056, unitID = "player", caster = "player", filter = "BUFF"}, -- Evergaze Arcane Eidolon (Bonus Armor, Proc) {spellID = 177053, unitID = "player", caster = "player", filter = "BUFF"}, -- Formidable Relic of Blood (Haste, Proc) {spellID = 176937, unitID = "player", caster = "player", filter = "BUFF"}, -- Kyb's Foolish Perseverance (Health, Use) {spellID = 176460, unitID = "player", caster = "player", filter = "BUFF"}, -- Pol's Blinded Eye (Mastery, Use) {spellID = 176876, unitID = "player", caster = "player", filter = "BUFF"}, -- Stoneheart Idol (Crit, Proc) {spellID = 176982, unitID = "player", caster = "player", filter = "BUFF"}, -- Tablet of Turnbuckle Teamwork (Bonus Armor, Use) {spellID = 176873, unitID = "player", caster = "player", filter = "BUFF"}, -- Anzu's Cursed Plume (Mastery, Proc) {spellID = 183931, unitID = "player", caster = "player", filter = "BUFF"}, -- Enforcer's Stun Grenade (Versatility, Use) {spellID = 165534, unitID = "player", caster = "player", filter = "BUFF"}, -- Kyrak's Vileblood Serum (Mastery, Use) {spellID = 165535, unitID = "player", caster = "player", filter = "BUFF"}, -- Tyrant's Decree (Stamina, Proc) {spellID = 184770, unitID = "player", caster = "player", filter = "BUFF"}, -- Xeri'tac's Unhatched Egg Sac (Mastery, Proc) {spellID = 165824, unitID = "player", caster = "player", filter = "BUFF"}, -- Damage [Strength] -- Forgemaster's Insignia (Multistrike, Proc) {spellID = 177096, unitID = "player", caster = "player", filter = "BUFF"}, -- Formidable Fang (Multistrike, Proc) {spellID = 176935, unitID = "player", caster = "player", filter = "BUFF"}, -- Horn of the Screaming Spirits (Mastery, Proc) {spellID = 177042, unitID = "player", caster = "player", filter = "BUFF"}, -- Mote of the Mountain (Versatility, Proc) {spellID = 176974, unitID = "player", caster = "player", filter = "BUFF"}, -- Scabbard of Kyanos (Strength, Use) {spellID = 177189, unitID = "player", caster = "player", filter = "BUFF"}, -- Tectus' Beating Heart (Crit, Proc) {spellID = 177040, unitID = "player", caster = "player", filter = "BUFF"}, -- Vial of Convulsive Shadows (Multistrike, Use) {spellID = 176874, unitID = "player", caster = "player", filter = "BUFF"}, -- Bonemaw's Big Toe (Crit, Use) {spellID = 165532, unitID = "player", caster = "player", filter = "BUFF"}, -- Emberscale Talisman (Versatility, Use) {spellID = 165543, unitID = "player", caster = "player", filter = "BUFF"}, -- Spores of Alacrity (Haste, Proc) {spellID = 165822, unitID = "player", caster = "player", filter = "BUFF"}, -- Unending Hunger (Strength, Proc) {spellID = 183941, unitID = "player", caster = "player", filter = "BUFF"}, -- Enchants -- Mark of Blackrock (Bonus Armor) {spellID = 159679, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of Bleeding Hollow (Mastery) {spellID = 173322, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of the Frostwolf (Multistrike) {spellID = 159676, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of the Thunderlord (Crit) {spellID = 159234, unitID = "player", caster = "all", filter = "BUFF"}, -- Mark of Warsong (Haste) {spellID = 159675, unitID = "player", caster = "all", filter = "BUFF"}, }, { Name = "T_DEBUFF_ICON", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"TOP", T_DEBUFF_ICON_Anchor}, -- Rend {spellID = 772, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Colossus Smash --BETA {spellID = 86346, unitID = "target", caster = "player", filter = "DEBUFF"}, -- Hamstring {spellID = 1715, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Demoralizing Shout {spellID = 1160, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Trinket Effects -- Fel Burn [Empty Drinking Horn] {spellID = 184256, unitID = "target", caster = "player", filter = "DEBUFF"}, }, { Name = "COOLDOWN", Direction = "RIGHT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"CENTER", "E.UIParent", "CENTER", 0, -200}, -- Self -- Pummel {spellID = 6552, filter = "CD"}, -- Shield Slam {spellID = 23922, filter = "CD"}, -- Shockwave {spellID = 46968, filter = "CD"}, -- Storm Bolt {spellID = 107570, filter = "CD"}, -- Thunder Clap {spellID = 6343, filter = "CD"}, -- Taunt {spellID = 355, filter = "CD"}, -- Colossus Smash --BETA {spellID = 86346, filter = "CD"}, -- Charge {spellID = 100, filter = "CD"}, -- Spell Reflection {spellID = 23920, filter = "CD"}, -- Intervene {spellID = 3411, filter = "CD"}, -- Berserker Rage {spellID = 18499, filter = "CD"}, -- Heroic Leap {spellID = 6544, filter = "CD"}, -- Demoralizing Shout {spellID = 1160, filter = "CD"}, -- Enraged Regeneration --BETA {spellID = 55694, filter = "CD"}, -- Ravager {spellID = 152277, filter = "CD"}, -- Intimidating Shout {spellID = 5246, filter = "CD"}, -- Last Stand {spellID = 12975, filter = "CD"}, -- Rallying Cry {spellID = 97462, filter = "CD"}, -- Shield Wall {spellID = 871, filter = "CD"}, -- Racial -- Arcane Torrent (Blood Elf) {spellID = 69179, filter = "CD"}, -- Berserking (Troll) {spellID = 26297, filter = "CD"}, -- Blood Fury (Orc) {spellID = 20572, filter = "CD"}, -- Cannibalize (Forsaken) {spellID = 20577, filter = "CD"}, -- Darkflight (Worgen) {spellID = 68992, filter = "CD"}, -- Escape Artist (Gnome) {spellID = 20589, filter = "CD"}, -- Every Man for Himself (Human) {spellID = 59752, filter = "CD"}, -- Gift of the Naaru (Draenei) {spellID = 28880, filter = "CD"}, -- Quaking Palm (Pandaren) {spellID = 107079, filter = "CD"}, -- Rocket Jump (Goblin) {spellID = 69070, filter = "CD"}, -- Shadowmeld (Night Elf) {spellID = 58984, filter = "CD"}, -- Stoneform (Dwarf) {spellID = 20594, filter = "CD"}, -- War Stomp (Tauren) {spellID = 20549, filter = "CD"}, -- Will of the Forsaken (Forsaken) {spellID = 7744, filter = "CD"}, -- Items -- Back {slotID = 15, filter = "CD"}, -- Belt {slotID = 6, filter = "CD"}, -- Gloves {slotID = 10, filter = "CD"}, -- Neck {slotID = 2, filter = "CD"}, -- Rings {slotID = 11, filter = "CD"}, {slotID = 12, filter = "CD"}, -- Trinkets {slotID = 13, filter = "CD"}, {slotID = 14, filter = "CD"}, }, }, ["ALL"] = { { Name = "SPECIAL_P_BUFF_ICON", Direction = "LEFT", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 42, Position = {"TOP", SPECIAL_P_BUFF_ICON_Anchor}, -- Ashran -- Ancient Artifact {spellID = 168506, unitID = "player", caster = "all", filter = "BUFF"}, -- Boulder Shield {spellID = 169373, unitID = "player", caster = "all", filter = "BUFF"}, -- Scroll of Speed {spellID = 171250, unitID = "player", caster = "all", filter = "BUFF"}, -- Scroll of Protection {spellID = 171249, unitID = "player", caster = "all", filter = "BUFF"}, -- Star Root Tuber {spellID = 161495, unitID = "player", caster = "all", filter = "BUFF"}, -- Wand of Lightning Shield {spellID = 171725, unitID = "player", caster = "all", filter = "BUFF"}, -- Potions: Draenor -- Draenic Agility Potion {spellID = 156423, unitID = "player", caster = "player", filter = "BUFF"}, -- Draenic Intellect Potion {spellID = 156426, unitID = "player", caster = "player", filter = "BUFF"}, -- Draenic Strength Potion {spellID = 156428, unitID = "player", caster = "player", filter = "BUFF"}, -- Draenic Armor Potion {spellID = 156430, unitID = "player", caster = "player", filter = "BUFF"}, -- Potions: Pandaria -- Virmen's Bite (Agility) {spellID = 105697, unitID = "player", caster = "player", filter = "BUFF"}, -- Potion of Mogu Power (Strength) {spellID = 105706, unitID = "player", caster = "player", filter = "BUFF"}, -- Potion of the Jade Serpent (Intellect) {spellID = 105702, unitID = "player", caster = "player", filter = "BUFF"}, -- Kafa Press (Haste) {spellID = 125282, unitID = "player", caster = "player", filter = "BUFF"}, -- Potions: Miscellaneous -- Invisibility Potion {spellID = 11392, unitID = "player", caster = "player", filter = "BUFF", absID = true}, -- Darkwater Potion {spellID = 105707, unitID = "player", caster = "player", filter = "BUFF", absID = true}, -- Draenic Invisibility Potion {spellID = 175833, unitID = "player", caster = "player", filter = "BUFF", absID = true}, -- Draenic Swiftness Potion {spellID = 175790, unitID = "player", caster = "player", filter = "BUFF", absID = true}, -- Potion of Luck {spellID = 135855, unitID = "player", caster = "player", filter = "BUFF", absID = true}, -- Potion of Treasure Finding {spellID = 80263, unitID = "player", caster = "player", filter = "BUFF", absID = true}, -- Swiftness Potion {spellID = 2379, unitID = "player", caster = "player", filter = "BUFF", absID = true}, -- Potions: Brawler's Guild -- Brawler's Draenic Agility Potion {spellID = 176107, unitID = "player", caster = "player", filter = "BUFF", absID = true}, -- Brawler's Draenic Intellect Potion {spellID = 176108, unitID = "player", caster = "player", filter = "BUFF", absID = true}, -- Brawler's Draenic Strength Potion {spellID = 176109, unitID = "player", caster = "player", filter = "BUFF", absID = true}, -- Raid Amplifiers: General -- Ancient Hysteria {spellID = 90355, unitID = "player", caster = "all", filter = "BUFF"}, -- Netherwinds {spellID = 160452, unitID = "player", caster = "all", filter = "BUFF"}, -- Drums of Fury {spellID = 178207, unitID = "player", caster = "all", filter = "BUFF"}, -- Drums of Rage {spellID = 146555, unitID = "player", caster = "all", filter = "BUFF"}, -- Bloodlust {spellID = 2825, unitID = "player", caster = "all", filter = "BUFF"}, -- Heroism {spellID = 32182, unitID = "player", caster = "all", filter = "BUFF"}, -- Time Warp {spellID = 80353, unitID = "player", caster = "all", filter = "BUFF"}, -- Legendary Rings -- Maalus, the Blood Drinker {spellID = 187806, unitID = "player", caster = "all", filter = "BUFF"}, -- Nithramus, the All-Seer {spellID = 187616, unitID = "player", caster = "all", filter = "BUFF"}, -- Sanctus, Sigil of the Unbroken {spellID = 187617, unitID = "player", caster = "all", filter = "BUFF"}, -- Thorasus, the Stone Heart of Draenor {spellID = 187619, unitID = "player", caster = "all", filter = "BUFF"}, -- Professions -- Goblin Glider [Goblin Glider Kit] {spellID = 126389, unitID = "player", caster = "all", filter = "BUFF", absID = true}, -- Nitro Boosts {spellID = 54861, unitID = "player", caster = "player", filter = "BUFF"}, -- Parachute {spellID = 55001, unitID = "player", caster = "player", filter = "BUFF"}, -- Shieldtronic Shield {spellID = 173260, unitID = "player", caster = "all", filter = "BUFF", absID = true}, -- Stealth Field [Stealthman 54] {spellID = 156136, unitID = "player", caster = "all", filter = "BUFF", absID = true}, -- Racial -- Berserking (Troll) {spellID = 26297, unitID = "player", caster = "player", filter = "BUFF", absID = true}, -- Blood Fury (Orc) {spellID = 20572, unitID = "player", caster = "player", filter = "BUFF"}, -- Darkflight (Worgen) {spellID = 68992, unitID = "player", caster = "player", filter = "BUFF"}, -- Gift of the Naaru (Draenei) {spellID = 28880, unitID = "player", caster = "all", filter = "BUFF"}, -- Shadowmeld (Night Elf) {spellID = 58984, unitID = "player", caster = "player", filter = "BUFF"}, -- Stoneform (Dwarf) {spellID = 65116, unitID = "player", caster = "player", filter = "BUFF"}, -- Zone Buffs -- Speed (Battlegrounds) {spellID = 23451, unitID = "player", caster = "all", filter = "BUFF", absID = true}, -- Fel Sludge (Tanaan Jungle) {spellID = 188520, unitID = "player", caster = "all", filter = "DEBUFF", absID = true}, -- Strange Feeling (Brawler's Guild) {spellID = 134851, unitID = "player", caster = "all", filter = "DEBUFF", absID = true}, -- Damage Reduction -- Life Cocoon {spellID = 116849, unitID = "player", caster = "all", filter = "BUFF"}, -- Guardian Spirit {spellID = 47788, unitID = "player", caster = "all", filter = "BUFF"}, -- Pain Suppression {spellID = 33206, unitID = "player", caster = "all", filter = "BUFF"}, -- Ironbark {spellID = 102342, unitID = "player", caster = "all", filter = "BUFF"}, -- Aura Mastery {spellID = 31821, unitID = "player", caster = "all", filter = "BUFF"}, -- Blessing of Protection {spellID = 1022, unitID = "player", caster = "all", filter = "BUFF"}, -- Blessing of Sacrifice {spellID = 6940, unitID = "player", caster = "all", filter = "BUFF"}, -- Blessing of Spellwarding {spellID = 204018, unitID = "player", caster = "all", filter = "BUFF"}, -- Vigilance {spellID = 114030, unitID = "player", caster = "all", filter = "BUFF"}, -- Rallying Cry {spellID = 97463, unitID = "player", caster = "all", filter = "BUFF"}, -- Other -- Fear Ward --BETA {spellID = 6346, unitID = "player", caster = "all", filter = "BUFF"}, -- Grounding Totem {spellID = 8178, unitID = "player", caster = "all", filter = "BUFF"}, -- Mass Spell Reflection {spellID = 114028, unitID = "player", caster = "all", filter = "BUFF"}, -- Tiger's Lust {spellID = 116841, unitID = "player", caster = "all", filter = "BUFF"}, -- Body and Soul {spellID = 65081, unitID = "player", caster = "all", filter = "BUFF"}, -- Angelic Feather {spellID = 121557, unitID = "player", caster = "all", filter = "BUFF"}, -- Stampeding Roar {spellID = 77764, unitID = "player", caster = "all", filter = "BUFF"}, -- Blessing of Freedom {spellID = 1044, unitID = "player", caster = "all", filter = "BUFF"}, -- Ice Ward --BETA {spellID = 111264, unitID = "player", caster = "all", filter = "BUFF"}, --BETA Lightwell Renew -- {spellID = 7001, unitID = "player", caster = "all", filter = "BUFF"}, -- Tricks of the Trade --BETA {spellID = 57933, unitID = "player", caster = "all", filter = "BUFF"}, -- Slow Fall {spellID = 130, unitID = "player", caster = "all", filter = "BUFF"}, -- Levitate {spellID = 1706, unitID = "player", caster = "all", filter = "BUFF"}, }, { Name = "PVE/PVP_DEBUFF", Direction = "UP", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 48, Position = {"TOP", "E.UIParent", "TOP", 0, -400}, -- Crowd Controls -- Death Knight -- Remorseless Winter --BETA {spellID = 115001, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Asphyxiate {spellID = 108194, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Monstrous Blow (Mutated Ghoul) {spellID = 91797, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Gnaw (Ghoul) {spellID = 91800, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Druid -- Cyclone {spellID = 33786, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Incapacitating Roar {spellID = 99, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Mighty Bash {spellID = 5211, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Maim {spellID = 22570, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Rake {spellID = 163505, unitID = "player", caster = "all", filter = "DEBUFF", absID = true}, -- Hunter -- Freezing Trap {spellID = 3355, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Wyvern Sting {spellID = 19386, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Binding Shot {spellID = 117526, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Intimidation {spellID = 24394, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Mage -- Polymorph {spellID = 118, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Ring of Frost {spellID = 82691, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Deep Freeze --BETA {spellID = 44572, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Dragon's Breath {spellID = 31661, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Monk -- Paralysis {spellID = 115078, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Leg Sweep {spellID = 119381, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Charging Ox Wave --BETA {spellID = 119392, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Fists of Fury {spellID = 120086, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Paladin -- Repentance {spellID = 20066, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Turn Evil --BETA {spellID = 10326, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Fist of Justice --BETA {spellID = 105593, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Hammer of Justice {spellID = 853, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Blinding Light {spellID = 105421, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Priest -- Dominate Mind {spellID = 605, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Psychic Horror {spellID = 64044, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Psychic Scream {spellID = 8122, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Sin and Punishment {spellID = 87204, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Rogue -- Sap {spellID = 6770, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Blind {spellID = 2094, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Cheap Shot {spellID = 1833, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Kidney Shot {spellID = 408, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Between the Eyes {spellID = 199804, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Gouge {spellID = 1776, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Shaman -- Hex {spellID = 51514, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Static Charge {spellID = 118905, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Pulverize (Earth Elemental) {spellID = 118345, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Warlock -- Fear {spellID = 118699, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Seduction (Succubus) {spellID = 6358, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Mesmerize (Shivarra) {spellID = 115268, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Howl of Terror {spellID = 5484, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Axe Toss (Felguard) {spellID = 89766, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Blood Horror --BETA {spellID = 137143, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Shadowfury {spellID = 30283, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Mortal Coil {spellID = 6789, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Meteor Strike (Abyssal) {spellID = 171156, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Warrior -- Intimidating Shout {spellID = 5246, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Storm Bolt {spellID = 132169, unitID = "player", caster = "all", filter = "DEBUFF", absID = true}, -- Shockwave {spellID = 132168, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Racial -- Quaking Palm {spellID = 107079, unitID = "player", caster = "all", filter = "DEBUFF"}, -- War Stomp {spellID = 20549, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Silences -- Strangulate {spellID = 47476, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Solar Beam {spellID = 78675, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Fae Silence --BETA {spellID = 114238, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Frostjaw --BETA {spellID = 102051, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Avenger's Shield {spellID = 31935, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Silence {spellID = 15487, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Garrote {spellID = 1330, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Unstable Affliction {spellID = 31117, unitID = "player", caster = "all", filter = "DEBUFF", absID = true}, -- Arcane Torrent {spellID = 28730, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Roots -- Chains of Ice {spellID = 45524, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Entangling Roots {spellID = 339, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Mass Entanglement {spellID = 102359, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Immobilized {spellID = 45334, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Entrapment {spellID = 135373, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Narrow Escape {spellID = 136634, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Frost Nova {spellID = 122, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Ice Ward -- BETA {spellID = 111340, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Ice Nova {spellID = 157997, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Freeze (Water Elemental) {spellID = 33395, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Disable {spellID = 116706, unitID = "player", caster = "all", filter = "DEBUFF", absID = true}, -- Mind Blast (Glyph) --BETA {spellID = 87194, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Void Tendril's Grasp {spellID = 114404, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Frozen Power --BETA {spellID = 63685, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Earthgrab {spellID = 64695, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Debilitate (Terrorguard) {spellID = 170996, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Staggering Shout {spellID = 107566, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Slows -- Chilblains --BETA {spellID = 50435, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Infected Wounds {spellID = 58180, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Typhoon {spellID = 61391, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Freezing Trap (Glyph) --BETA {spellID = 61394, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Concussive Shot {spellID = 5116, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Frost Breath (Chimaera) {spellID = 54644, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Ice Trap {spellID = 135299, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Frozen Ammo {spellID = 162546, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Warp Time (Warp Stalker) {spellID = 35346, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Ankle Crack (Crocolisk) {spellID = 50433, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Blast Wave {spellID = 157981, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Cone of Cold {spellID = 120, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Flurry {spellID = 228354, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Slow {spellID = 31589, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Frostbolt {spellID = 116, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Frostfire Bolt {spellID = 44614, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Chilled {spellID = 7321, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Dazing Shield (Glyph) --BETA {spellID = 63529, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Seal of Justice --BETA {spellID = 20170, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Mind Flay {spellID = 15407, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Deadly Throw {spellID = 26679, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Crippling Poison {spellID = 3409, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Earthbind {spellID = 3600, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Earthquake {spellID = 77505, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Frost Shock --BETA {spellID = 8056, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Thunderstorm {spellID = 51490, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Cripple (Doomguard) {spellID = 170995, unitID = "player", caster = "all", filter = "DEBUFF", absID = true}, -- Conflagrate {spellID = 17962, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Hamstring {spellID = 1715, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Piercing Howl {spellID = 12323, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Warbringer {spellID = 7922, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Other -- Dark Simulacrum {spellID = 77606, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Shroud of Purgatory {spellID = 116888, unitID = "player", caster = "player", filter = "DEBUFF"}, -- Aspect of the Cheetah --BETA {spellID = 5118, unitID = "player", caster = "all", filter = "BUFF"}, -- Aspect of the Pack --BETA {spellID = 13159, unitID = "player", caster = "all", filter = "BUFF"}, -- Cauterize {spellID = 87023, unitID = "player", caster = "player", filter = "DEBUFF"}, -- Touch of Karma {spellID = 125174, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Denounce --BETA {spellID = 2812, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Smoke Bomb {spellID = 76577, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Colossus Smash --BETA {spellID = 86346, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Rocket Fuel Leak {spellID = 94794, unitID = "player", caster = "player", filter = "DEBUFF"}, -- Uncontained Fel (Demon Hunter Last Resort Talent) {spellID = 209261, unitID = "player", caster = "player", filter = "DEBUFF"}, -- Raids: Pandaria -- Heart of Fear -- Corrosive Resin (Wind Lord Mel'jarak) {spellID = 122064, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Kor'thik Strike (Wind Lord Mel'jarak) {spellID = 123963, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Unseen Strike (Blade Lord Ta'yak) {spellID = 123017, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Mogu'shan Vaults -- Arcane Resonance (Feng the Accursed) {spellID = 116417, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Voodoo Doll (Gara'jal the Spiritbinder) {spellID = 122151, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Wildfire Spark (Feng the Accursed) {spellID = 116784, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Throne of Thunder -- Biting Cold (Council of Elders) {spellID = 136992, unitID = "player", caster = "all", filter = "DEBUFF", absID = true}, -- Cinder (Megaera) {spellID = 134391, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Focused Lightning (Jin'rokh the Breaker) {spellID = 137422, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Frostbite (Council of Elders) {spellID = 136922, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Marked Soul (Council of Elders) {spellID = 137359, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Static Shock (Lei Shen) {spellID = 135695, unitID = "player", caster = "all", filter = "DEBUFF"}, -- Torrent of Ice (Megaera) {spellID = 139857, unitID = "player", caster = "all", filter = "DEBUFF"}, }, { Name = "T_BUFF", Direction = "UP", Mode = "ICON", Interval = 3, Alpha = 1, IconSize = 48, Position = {"TOP", T_BUFF_Anchor}, -- Death Knight -- Anti-Magic Shell {spellID = 48707, unitID = "target", caster = "all", filter = "BUFF"}, -- Desecrated Ground {spellID = 115018, unitID = "target", caster = "all", filter = "BUFF"}, -- Lichborne {spellID = 49039, unitID = "target", caster = "all", filter = "BUFF"}, -- Icebound Fortitude {spellID = 48792, unitID = "target", caster = "all", filter = "BUFF"}, -- Pillar of Frost {spellID = 51271, unitID = "target", caster = "all", filter = "BUFF"}, -- Death's Advance --BETA {spellID = 96268, unitID = "target", caster = "all", filter = "BUFF"}, -- Debuffs -- Remorseless Winter --BETA {spellID = 115001, unitID = "target", caster = "all", filter = "DEBUFF", absID = true}, -- Asphyxiate {spellID = 108194, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Gnaw (Ghoul) {spellID = 91800, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Monstrous Blow (Mutated Ghoul) {spellID = 91797, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Strangulate {spellID = 47476, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Demon Hunter -- Metamorphosis {spellID = 162264, unitID = "target", caster = "all", filter = "BUFF"}, -- Spectral Sight {spellID = 188501, unitID = "target", caster = "all", filter = "BUFF"}, -- Netherwalk {spellID = 196555, unitID = "target", caster = "all", filter = "BUFF"}, -- Nether Bond {spellID = 207810, unitID = "target", caster = "all", filter = "BUFF"}, -- Soul Barrier {spellID = 227225, unitID = "target", caster = "all", filter = "BUFF"}, -- Druid -- Survival Instincts {spellID = 61336, unitID = "target", caster = "all", filter = "BUFF"}, -- Barkskin {spellID = 22812, unitID = "target", caster = "all", filter = "BUFF"}, -- Ironbark {spellID = 102342, unitID = "target", caster = "all", filter = "BUFF"}, -- Nature's Grasp {spellID = 170856, unitID = "target", caster = "all", filter = "BUFF"}, -- Stampeding Roar {spellID = 77764, unitID = "target", caster = "all", filter = "BUFF"}, -- Incarnation: Tree of Life {spellID = 117679, unitID = "target", caster = "all", filter = "BUFF"}, -- Berserk --BETA {spellID = 50334, unitID = "target", caster = "all", filter = "BUFF"}, -- Debuffs -- Cyclone {spellID = 33786, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Mighty Bash {spellID = 5211, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Rake {spellID = 163505, unitID = "target", caster = "all", filter = "DEBUFF", absID = true}, -- Maim {spellID = 22570, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Incapacitating Roar {spellID = 99, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Solar Beam {spellID = 78675, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Fae Silence --BETA {spellID = 114238, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Entangling Roots {spellID = 339, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Hunter -- Aspect of the Cheetah --BETA {spellID = 5118, unitID = "target", caster = "all", filter = "BUFF"}, -- Aspect of the Pack --BETA {spellID = 13159, unitID = "target", caster = "all", filter = "BUFF"}, -- Deterrence {spellID = 19263, unitID = "target", caster = "all", filter = "BUFF"}, -- Feign Death {spellID = 5384, unitID = "target", caster = "all", filter = "BUFF"}, -- Posthaste {spellID = 118922, unitID = "target", caster = "all", filter = "BUFF"}, -- Debuffs -- Freezing Trap {spellID = 3355, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Wyvern Sting {spellID = 19386, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Binding Shot {spellID = 117526, unitID = "target", caster = "all", filter = "DEBUFF", absID = true}, -- Intimidation {spellID = 24394, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Mage -- Ice Block {spellID = 45438, unitID = "target", caster = "all", filter = "BUFF"}, -- Invisibility {spellID = 66, unitID = "target", caster = "all", filter = "BUFF"}, -- Greater Invisibility {spellID = 113862, unitID = "target", caster = "all", filter = "BUFF"}, -- Temporal Shield {spellID = 115610, unitID = "target", caster = "all", filter = "BUFF"}, -- Alter Time {spellID = 110909, unitID = "target", caster = "all", filter = "BUFF"}, -- Evanesce {spellID = 157913, unitID = "target", caster = "all", filter = "BUFF"}, -- Evocation {spellID = 12051, unitID = "target", caster = "all", filter = "BUFF"}, -- Ice Ward --BETA {spellID = 111264, unitID = "target", caster = "all", filter = "BUFF"}, -- Debuffs -- Cauterize {spellID = 87023, unitID = "target", caster = "target", filter = "DEBUFF"}, -- Polymorph {spellID = 118, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Deep Freeze --BETA {spellID = 44572, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Ring of Frost {spellID = 82691, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Dragon's Breath {spellID = 31661, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Frostjaw --BETA {spellID = 102051, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Monk -- Diffuse Magic {spellID = 122783, unitID = "target", caster = "all", filter = "BUFF"}, -- Touch of Karma {spellID = 125174, unitID = "target", caster = "all", filter = "BUFF"}, -- Ring of Peace {spellID = 116844, unitID = "target", caster = "all", filter = "BUFF"}, -- Dampen Harm {spellID = 122278, unitID = "target", caster = "all", filter = "BUFF"}, -- Nimble Brew --BETA {spellID = 137562, unitID = "target", caster = "all", filter = "BUFF"}, -- Debuffs -- Paralysis {spellID = 115078, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Leg Sweep {spellID = 119381, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Fists of Fury {spellID = 120086, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Charging Ox Wave --BETA {spellID = 119392, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Paladin -- Divine Shield {spellID = 642, unitID = "target", caster = "all", filter = "BUFF"}, -- Guardian of Ancient Kings {spellID = 86659, unitID = "target", caster = "all", filter = "BUFF"}, -- Blessing of Protection {spellID = 1022, unitID = "target", caster = "all", filter = "BUFF"}, -- Divine Protection {spellID = 498, unitID = "target", caster = "all", filter = "BUFF"}, -- Ardent Defender {spellID = 31850, unitID = "target", caster = "all", filter = "BUFF"}, -- Aura Mastery {spellID = 31821, unitID = "target", caster = "all", filter = "BUFF"}, -- Blessing of Spellwarding {spellID = 204018, unitID = "target", caster = "all", filter = "BUFF"}, -- Blessing of Sacrifice {spellID = 6940, unitID = "target", caster = "all", filter = "BUFF"}, -- Blessing of Freedom {spellID = 1044, unitID = "target", caster = "all", filter = "BUFF"}, -- Debuffs -- Repentance {spellID = 20066, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Fist of Justice --BETA {spellID = 105593, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Hammer of Justice {spellID = 853, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Turn Evil --BETA {spellID = 10326, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Blinding Light {spellID = 105421, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Avenger's Shield {spellID = 31935, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Priest -- Dispersion {spellID = 47585, unitID = "target", caster = "all", filter = "BUFF"}, -- Pain Suppression {spellID = 33206, unitID = "target", caster = "all", filter = "BUFF"}, -- Guardian Spirit {spellID = 47788, unitID = "target", caster = "all", filter = "BUFF"}, -- Spectral Guise {spellID = 119030, unitID = "target", caster = "all", filter = "BUFF"}, -- Phantasm {spellID = 114239, unitID = "target", caster = "all", filter = "BUFF"}, -- Fear Ward --BETA {spellID = 6346, unitID = "target", caster = "all", filter = "BUFF"}, -- Debuffs -- Dominate Mind {spellID = 605, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Psychic Horror {spellID = 64044, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Psychic Scream {spellID = 8122, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Silence {spellID = 15487, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Rogue -- Cloak of Shadows {spellID = 31224, unitID = "target", caster = "all", filter = "BUFF"}, -- Cheating Death {spellID = 45182, unitID = "target", caster = "all", filter = "BUFF"}, -- Evasion {spellID = 5277, unitID = "target", caster = "all", filter = "BUFF"}, -- Combat Insight {spellID = 74002, unitID = "target", caster = "all", filter = "BUFF"}, -- Shadow Dance {spellID = 185313, unitID = "target", caster = "all", filter = "BUFF"}, -- Debuffs -- Sap {spellID = 6770, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Blind {spellID = 2094, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Cheap Shot {spellID = 1833, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Kidney Shot {spellID = 408, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Between the Eyes {spellID = 199804, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Garrote {spellID = 1330, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Smoke Bomb {spellID = 76577, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Shaman -- Grounding Totem {spellID = 8178, unitID = "target", caster = "all", filter = "BUFF"}, -- Shamanistic Rage --BETA {spellID = 30823, unitID = "target", caster = "all", filter = "BUFF"}, -- Spiritwalker's Grace {spellID = 79206, unitID = "target", caster = "all", filter = "BUFF"}, -- Debuffs -- Hex {spellID = 51514, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Static Charge {spellID = 118905, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Pulverize (Earth Elemental) {spellID = 118345, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Warlock -- Blood Horror --BETA {spellID = 111397, unitID = "target", caster = "all", filter = "BUFF"}, -- Dark Bargain --BETA {spellID = 110913, unitID = "target", caster = "all", filter = "BUFF"}, -- Soulstone {spellID = 20707, unitID = "target", caster = "all", filter = "BUFF"}, -- Unending Resolve {spellID = 104773, unitID = "target", caster = "all", filter = "BUFF"}, -- Debuffs -- Banish {spellID = 710, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Axe Toss (Felguard) {spellID = 89766, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Fear {spellID = 118699, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Blood Horror --BETA {spellID = 137143, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Seduction (Succubus) {spellID = 6358, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Mesmerize (Shivarra) {spellID = 115268, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Howl of Terror {spellID = 5484, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Mortal Coil {spellID = 6789, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Shadowfury {spellID = 30283, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Meteor Strike (Abyssal) {spellID = 171156, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Debilitate (Terrorguard) {spellID = 170996, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Unstable Affliction {spellID = 31117, unitID = "target", caster = "all", filter = "DEBUFF", absID = true}, -- Warrior -- Bladestorm {spellID = 46924, unitID = "target", caster = "all", filter = "BUFF"}, -- Spell Reflection {spellID = 23920, unitID = "target", caster = "all", filter = "BUFF"}, -- Mass Spell Reflection {spellID = 114028, unitID = "target", caster = "all", filter = "BUFF"}, -- Shield Wall {spellID = 871, unitID = "target", caster = "all", filter = "BUFF"}, -- Die by the Sword {spellID = 118038, unitID = "target", caster = "all", filter = "BUFF"}, -- Last Stand {spellID = 12975, unitID = "target", caster = "all", filter = "BUFF"}, -- Berserker Rage {spellID = 18499, unitID = "target", caster = "all", filter = "BUFF"}, -- Debuffs -- Intimidating Shout {spellID = 5246, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Storm Bolt {spellID = 132169, unitID = "target", caster = "all", filter = "DEBUFF", absID = true}, -- Shockwave {spellID = 132168, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Gag Order --BETA {spellID = 18498, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Racial -- Arcane Torrent {spellID = 28730, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Quaking Palm {spellID = 107079, unitID = "target", caster = "all", filter = "DEBUFF"}, -- War Stomp {spellID = 20549, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Professions -- Shieldtronic Shield {spellID = 173260, unitID = "target", caster = "all", filter = "BUFF"}, -- Player vs. Player -- Ashran -- Ancient Artifact {spellID = 168506, unitID = "target", caster = "all", filter = "BUFF"}, -- Boulder Shield {spellID = 169373, unitID = "target", caster = "all", filter = "BUFF"}, -- Scroll of Protection {spellID = 171249, unitID = "target", caster = "all", filter = "BUFF"}, -- Star Root Tuber {spellID = 161495, unitID = "target", caster = "all", filter = "BUFF"}, -- Battlegrounds -- Netherstorm Flag {spellID = 34976, unitID = "target", caster = "all", filter = "BUFF"}, -- Orb of Power {spellID = 121175, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Warsong Flag {spellID = 23333, unitID = "target", caster = "all", filter = "BUFF"}, {spellID = 23335, unitID = "target", caster = "all", filter = "BUFF"}, -- Seaforium Bombs {spellID = 66271, unitID = "target", caster = "all", filter = "DEBUFF"}, -- Drinking in Arena -- Ba'ruun's Bountiful Bloom {spellID = 167268, unitID = "target", caster = "all", filter = "BUFF"}, -- Drinking {spellID = 80167, unitID = "target", caster = "all", filter = "BUFF"}, -- Mage Food {spellID = 167152, unitID = "target", caster = "all", filter = "BUFF"}, }, }, }
dofile(minetest.get_modpath("mobs").."/api.lua") mobs:register_mob("mobs:dirt_monster", { type = "monster", hp_max = 16, collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4}, visual = "mesh", mesh = "mobs_stone_monster.x", textures = {"mobs_dirt_monster.png"}, visual_size = {x=3, y=2.6}, makes_footstep_sound = true, view_range = 15, walk_velocity = 1, run_velocity = 3, damage = 2, drops = { {name = "mapgen:dirt", chance = 1, min = 3, max = 5,}, }, armor = 100, drawtype = "front", water_damage = 1, lava_damage = 5, light_damage = 2, on_rightclick = nil, attack_type = "dogfight", animation = { speed_normal = 15, speed_run = 15, stand_start = 0, stand_end = 14, walk_start = 15, walk_end = 38, run_start = 40, run_end = 63, punch_start = 40, punch_end = 63, } }) mobs:register_spawn("mobs:dirt_monster", {"mapgen:grass_1", "mapgen:grass_2", "mapgen:grass_3", "mapgen:grass_4", "mapgen:snowy_grass", "mapgen:dirt", "mapgen:perma_dirt"}, 3, -1, 7000, 3, 31000) mobs:register_mob("mobs:stone_monster", { type = "monster", hp_max = 30, collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4}, visual = "mesh", mesh = "mobs_stone_monster.x", textures = {"mobs_stone_monster.png"}, visual_size = {x=3, y=2.6}, makes_footstep_sound = true, view_range = 10, walk_velocity = 0.5, run_velocity = 2, damage = 3, drops = { {name = "mapgen:cobble", chance = 2, min = 3, max = 5,}, {name = "tools:chisel", chance = 4, min = 1, max = 3,}, }, light_resistant = true, armor = 80, drawtype = "front", water_damage = 0, lava_damage = 0, light_damage = 0, attack_type = "dogfight", animation = { speed_normal = 15, speed_run = 15, stand_start = 0, stand_end = 14, walk_start = 15, walk_end = 38, run_start = 40, run_end = 63, punch_start = 40, punch_end = 63, } }) mobs:register_spawn("mobs:stone_monster", {"mapgen:stone_1", "mapgen:stone_2", "mapgen:stone_3", "mapgen:stone_4", "mapgen:crust_stone"}, 3, -1, 7000, 3, 0) mobs:register_mob("mobs:sand_monster", { type = "monster", hp_max = 16, collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4}, visual = "mesh", mesh = "mobs_sand_monster.x", textures = {"mobs_sand_monster.png"}, visual_size = {x=8,y=8}, makes_footstep_sound = true, view_range = 15, walk_velocity = 1.5, run_velocity = 4, damage = 1, drops = { {name = "mapgen:sand", chance = 1, min = 3, max = 5,}, }, light_resistant = true, armor = 100, drawtype = "front", water_damage = 3, lava_damage = 1, light_damage = 0, attack_type = "dogfight", animation = { speed_normal = 15, speed_run = 15, stand_start = 0, stand_end = 39, walk_start = 41, walk_end = 72, run_start = 74, run_end = 105, punch_start = 74, punch_end = 105, }, }) mobs:register_spawn("mobs:sand_monster", {"mapgen:sand"}, 20, -1, 7000, 3, 31000) mobs:register_mob("mobs:tree_monster", { type = "monster", hp_max = 20, collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4}, visual = "mesh", mesh = "mobs_tree_monster.x", textures = {"mobs_tree_monster.png"}, visual_size = {x=4.5,y=4.5}, makes_footstep_sound = true, view_range = 15, walk_velocity = 1, run_velocity = 3, damage = 2, drops = { {name = "mapgen:oak_sapling", chance = 3, min = 1, max = 2,}, {name = "mapgen:cherry_sapling", chance = 3, min = 1, max = 2,}, {name = "mapgen:evergreen_sapling", chance = 3, min = 1, max = 2,}, {name = "mapgen:birch_sapling", chance = 3, min = 1, max = 2,}, }, light_resistant = true, armor = 100, drawtype = "front", water_damage = 1, lava_damage = 5, light_damage = 2, disable_fall_damage = true, attack_type = "dogfight", animation = { speed_normal = 15, speed_run = 15, stand_start = 0, stand_end = 24, walk_start = 25, walk_end = 47, run_start = 48, run_end = 62, punch_start = 48, punch_end = 62, }, }) mobs:register_spawn("mobs:tree_monster", {"mapgen:oak_leaves", "mapgen:cherry_blossom_leaves", "mapgen:birch_leaves", "mapgen:evergreen_leaves", "mapgen:evergreen_leaves_snowy"}, 3, -1, 7000, 3, 31000) mobs:register_mob("mobs:sheep", { type = "animal", hp_max = 10, collisionbox = {-0.4, -0.01, -0.6, 0.4, 0.9, 0.4}, textures = {"mobs_sheep.png"}, visual = "mesh", mesh = "mobs_sheep.x", makes_footstep_sound = true, walk_velocity = 1, visual_size = {x=1, y=1}, armor = 200, drops = { {name = "mobs:meat_raw", chance = 1, min = 2, max = 3,}, }, drawtype = "front", water_damage = 1, lava_damage = 5, light_damage = 0, sounds = { random = "mobs_sheep", }, animation = { speed_normal = 15, stand_start = 0, stand_end = 80, walk_start = 81, walk_end = 100, }, follow = "farming:wheat", view_range = 5, on_rightclick = function(self, clicker) local item = clicker:get_wielded_item() if item:get_name() == "farming:wheat" then if not self.tamed then if not minetest.setting_getbool("creative_mode") then item:take_item() clicker:set_wielded_item(item) end self.tamed = true elseif self.naked then if not minetest.setting_getbool("creative_mode") then item:take_item() clicker:set_wielded_item(item) end self.food = (self.food or 0) + 1 if self.food >= 8 then self.food = 0 self.naked = false self.object:set_properties({ textures = {"mobs_sheep.png"}, mesh = "mobs_sheep.x", }) end end return end if clicker:get_inventory() and not self.naked then self.naked = true if minetest.registered_items["wool:white"] then clicker:get_inventory():add_item("main", ItemStack("wool:white "..math.random(1,3))) end self.object:set_properties({ textures = {"mobs_sheep_shaved.png"}, mesh = "mobs_sheep.x", }) end end, }) mobs:register_spawn("mobs:sheep", {"mapgen:grass1","mapgen:grass2","mapgen:grass3","mapgen:grass4",}, 20, 8, 9000, 1, 31000) minetest.register_craftitem("mobs:meat_raw", { description = "Raw Meat", inventory_image = "mobs_meat_raw.png", }) minetest.register_craftitem("mobs:meat", { description = "Meat", inventory_image = "mobs_meat.png", on_use = minetest.item_eat(8), }) minetest.register_craft({ type = "cooking", output = "mobs:meat", recipe = "mobs:meat_raw", cooktime = 5, }) mobs:register_mob("mobs:rat", { type = "animal", hp_max = 1, collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.2, 0.2}, visual = "mesh", mesh = "mobs_rat.x", textures = {"mobs_rat.png"}, makes_footstep_sound = false, walk_velocity = 1, armor = 200, drops = {}, drawtype = "front", water_damage = 0, lava_damage = 1, light_damage = 0, on_rightclick = function(self, clicker) if clicker:is_player() and clicker:get_inventory() then clicker:get_inventory():add_item("main", "mobs:rat") self.object:remove() end end, }) mobs:register_spawn("mobs:rat", {"mapgen:grass1","mapgen:grass2","mapgen:grass3","mapgen:grass4", "mapgen:stone"}, 20, -1, 7000, 1, 31000) minetest.register_craftitem("mobs:rat", { description = "Rat", inventory_image = "mobs_rat_inventory.png", on_place = function(itemstack, placer, pointed_thing) if pointed_thing.above then minetest.env:add_entity(pointed_thing.above, "mobs:rat") itemstack:take_item() end return itemstack end, }) minetest.register_craftitem("mobs:rat_cooked", { description = "Cooked Rat", inventory_image = "mobs_cooked_rat.png", on_use = minetest.item_eat(3), }) minetest.register_craft({ type = "cooking", output = "mobs:rat_cooked", recipe = "mobs:rat", }) mobs:register_mob("mobs:oerkki", { type = "monster", hp_max = 38, collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4}, visual = "mesh", mesh = "mobs_oerkki.x", textures = {"mobs_oerkki.png"}, visual_size = {x=5, y=5}, makes_footstep_sound = false, view_range = 15, walk_velocity = 1, run_velocity = 3, damage = 4, drops = { {name = "statues:default_skin", chance = 4, min = 1, max = 2, }, }, armor = 100, drawtype = "front", light_resistant = true, water_damage = 1, lava_damage = 1, light_damage = 0, attack_type = "dogfight", animation = { stand_start = 0, stand_end = 23, walk_start = 24, walk_end = 36, run_start = 37, run_end = 49, punch_start = 37, punch_end = 49, speed_normal = 15, speed_run = 15, }, }) mobs:register_spawn("mobs:oerkki", {"mapgen:stone_1", "mapgen:stone_2", "mapgen:stone_3", "mapgen:stone_4", "mapgen:crust_stone", "mapgen:mese_stone"}, 2, -1, 7000, 3, -10) mobs:register_mob("mobs:dungeon_master", { type = "monster", hp_max = 80, collisionbox = {-0.8, -1, -0.8, 0.8, 1, 0.8}, visual = "mesh", mesh = "mobs_dm.b3d", textures = {"mobs_dm.png"}, visual_size = {x=1, y=1}, makes_footstep_sound = true, view_range = 15, walk_velocity = 1, run_velocity = 3, damage = 4, drops = { {name = "mapgen:mese", chance = 100, min = 1, max = 2,}, {name = "tools:sword_air", chance = 16000, min = 1, max = 1,} }, armor = 60, drawtype = "front", water_damage = 1, lava_damage = 1, light_damage = 0, on_rightclick = nil, attack_type = "shoot", arrow = "mobs:fireball", shoot_interval = 2.5, sounds = { attack = "mobs_fireball", }, animation = { stand_start = 0, stand_end = 19, walk_start = 20, walk_end = 35, punch_start = 36, punch_end = 48, speed_normal = 15, speed_run = 15, }, }) mobs:register_spawn("mobs:dungeon_master", {"mapgen:mese_stone"}, 7, -1, 3500, 1, -50) mobs:register_spawn("mobs:dungeon_master", {"mapgen:crust_stone"}, 2, -1, 7000, 1, -50) mobs:register_arrow("mobs:fireball", { visual = "sprite", visual_size = {x=1, y=1}, --textures = {{name="mobs_fireball.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=0.5}}}, FIXME textures = {"mobs_fireball.png"}, velocity = 5, hit_player = function(self, player) local s = self.object:getpos() local p = player:getpos() local vec = {x=s.x-p.x, y=s.y-p.y, z=s.z-p.z} player:punch(self.object, 1.0, { full_punch_interval=1.0, damage_groups = {fleshy=4}, }, vec) local pos = self.object:getpos() for dx=-1,1 do for dy=-1,1 do for dz=-1,1 do local p = {x=pos.x+dx, y=pos.y+dy, z=pos.z+dz} local n = minetest.env:get_node(pos).name if minetest.registered_nodes[n].groups.flammable or math.random(1, 100) <= 30 then minetest.env:set_node(p, {name="fire:basic_flame"}) else minetest.env:remove_node(p) end end end end end, hit_node = function(self, pos, node) for dx=-1,1 do for dy=-2,1 do for dz=-1,1 do local p = {x=pos.x+dx, y=pos.y+dy, z=pos.z+dz} local n = minetest.env:get_node(pos).name if minetest.registered_nodes[n].groups.flammable or math.random(1, 100) <= 30 then minetest.env:set_node(p, {name="fire:basic_flame"}) else minetest.env:remove_node(p) end end end end end }) mobs:register_mob("mobs:evergreen_tree", { type = "animal", hp_max = 20, collisionbox = {-0.3, -1, -0.3, 0.3, 0.8, 0.3}, visual = "mesh", mesh = "character.b3d", textures = {"player_Evergreen.png"}, makes_footstep_sound = true, view_range = 15, walk_velocity = 1.2, drops = { {name = "mapgen:evergreen_sapling", chance = 24, min = 1, max = 3,}, {name = "mapgen:evergreen_leaves", chance = 1, min = 1, max = 8,}, {name = "tools:sword_air", chance = 4000, min = 1, max = 1,} }, water_damage = 1, lava_damage = 10, on_rightclick = nil, armor = 100, animation = { stand_start = 0, stand_end = 79, walk_start = 168, walk_end = 187, speed_normal = 20, } }) local kitten_nodes = { "wool:black", "wool:blue", "wool:brown", "wool:cyan", "wool:dark_green", "wool:dark_grey", "wool:green", "wool:grey", "wool:magenta", "wool:orange", "wool:pink", "wool:red", "wool:violet", "wool:white", "wool:yellow", "carpet:black", "carpet:blue", "carpet:brown", "carpet:cyan", "carpet:dark_green", "carpet:dark_grey", "carpet:green", "carpet:grey", "carpet:magenta", "carpet:orange", "carpet:pink", "carpet:red", "carpet:violet", "carpet:white", "carpet:yellow", "deco:furnace_active", "beds:bed_bottom", "beds:bed_top", "beds:bed_top_red", "beds:bed_top_orange", "beds:bed_top_yellow", "beds:bed_top_green", "beds:bed_top_blue", "beds:bed_top_violet", "beds:bed_top_black", "beds:bed_top_grey", "beds:bed_top_white", "beds:bed_bottom_red", "beds:bed_bottom_orange", "beds:bed_bottom_yellow", "beds:bed_bottom_green", "beds:bed_bottom_blue", "beds:bed_bottom_violet", "beds:bed_bottom_black", "beds:bed_bottom_grey", "beds:bed_bottom_white", } local function register_kitten(image, name) mobs:register_spawn("mobs:kitten_"..name, kitten_nodes, 15, 0, 10000, 10, 31000) mobs:register_mob("mobs:kitten_"..name, { type = "animal", hp_max = 5, collisionbox = {-0.3, -0.3, -0.3, 0.3, 0.1, 0.3}, visual = "mesh", visual_size = {x=0.5, y=0.5}, mesh = "mobs_kitten.b3d", textures = {image,}, makes_footstep_sound = false, view_range = 15, walk_velocity = 0.6, drops = { {name = "tools:sword_air", chance = 400000, min = 1, max = 1,} }, water_damage = 1, lava_damage = 10, on_rightclick = nil, armor = 100, sounds = { random = "mobs_kitten", }, animation = { stand_start = 97, stand_end = 192, walk_start = 0, walk_end = 96, speed_normal = 42, } }) end register_kitten("mobs_kitten_striped.png", "striped") register_kitten("mobs_kitten_splotchy.png", "splotchy") register_kitten("mobs_kitten_ginger.png", "ginger") register_kitten("mobs_kitten_sandy.png", "sandy") if minetest.setting_get("log_mods") then minetest.log("action", "mobs loaded") end
function giveGui() local screenW, screenH = guiGetScreenSize() giveWindow = guiCreateGridList((screenW - 262) / 2, (screenH - 303) / 2, 262, 303, false) guiSetAlpha(giveWindow, 0.90) guiSetProperty(giveWindow, "AlwaysOnTop", "True") guiSetVisible(giveWindow,false) local curText = "" giveWindowEditboxQuant = guiCreateEdit(120, 270, 60, 24, "0", false, giveWindow) guiEditSetMaxLength(giveWindowEditboxQuant, 5) addEventHandler( "onClientGUIChanged",giveWindowEditboxQuant,function() local currText = guiGetText(source) local newText = string.gsub(currText,'[^0-9]','') if newText ~= currText then guiSetText(source,newText) end end,false) giveWindowCombobox = guiCreateComboBox(10, 10, 150, 180, "Choose Category", false, giveWindow) guiComboBoxAddItem(giveWindowCombobox, "Weapons") guiComboBoxAddItem(giveWindowCombobox, "Ammo") guiComboBoxAddItem(giveWindowCombobox, "Food") guiComboBoxAddItem(giveWindowCombobox, "Clothes") guiComboBoxAddItem(giveWindowCombobox, "Backpacks") guiComboBoxAddItem(giveWindowCombobox, "Vehicle Parts") guiComboBoxAddItem(giveWindowCombobox, "Medical Items") guiComboBoxAddItem(giveWindowCombobox, "Toolbelt") --guiComboBoxAddItem(giveWindowCombobox, "Crafting Items") guiComboBoxAddItem(giveWindowCombobox, "Misc") giveWindowLabel = guiCreateLabel(160, 12, 92, 15, "GIVE PANEL", false, giveWindow) guiSetFont(giveWindowLabel, "default-bold-small") guiLabelSetHorizontalAlign(giveWindowLabel, "center", false) guiLabelSetVerticalAlign(giveWindowLabel, "center") giveWindowGridlist = guiCreateGridList(6, 37, 250, 227, false, giveWindow) guiGridListSetSortingEnabled(giveWindowGridlist,false) guiGridListAddColumn(giveWindowGridlist, "Items", 0.85) addEventHandler("onClientGUIComboBoxAccepted", giveWindowCombobox, function() guiGridListClear(giveWindowGridlist) local text = guiComboBoxGetItemText(giveWindowCombobox,guiComboBoxGetSelected(giveWindowCombobox)) for i,item in ipairs(items[text]) do local row = guiGridListAddRow(giveWindowGridlist) guiGridListSetItemText(giveWindowGridlist, row, 1, item, false, false) end end) giveWindowButtonGive = guiCreateButton(6, 270, 48, 24, "give", false, giveWindow) giveWindowButtonGiveAll = guiCreateButton(60, 270, 56, 24, "give all", false, giveWindow) giveWindowButtonClose = guiCreateButton(190, 270, 66, 24, "close", false, giveWindow) addEventHandler("onClientGUIClick",buttonItems,openGiveGui,false) addEventHandler("onClientGUIClick",giveWindowButtonClose,closeGiveGui,false) addEventHandler("onClientGUIClick",giveWindowButtonGive,give,false) addEventHandler("onClientGUIClick",giveWindowButtonGiveAll,giveAll,false) end addEventHandler("onClientResourceStart", resourceRoot, giveGui) function openGiveGui() if (guiGridListGetSelectedItem( gridlistPlayers1 ) ~= -1) then triggerEvent("disableError",localPlayer) setElementData(localPlayer,"isGui",true) guiSetVisible(hiddenGridlist,true) -- hidden gridlist to dont allow select other players from player list guiSetVisible(errorWindow,false) guiSetVisible(kickWindow,false) guiSetVisible(messageWindow,false) guiSetVisible(muteWindow,false) guiSetVisible(warpWindow,false) guiSetVisible(weatherWindow,false) guiSetVisible(banWindow,false) guiSetVisible(dayzStatsWindow,false) guiSetVisible(giveWindow,true) guiSetVisible(vehicleWindow,false) else triggerEvent("enableError",localPlayer) end end function closeGiveGui() guiSetVisible(hiddenGridlist,false) -- hidden gridlist to dont allow select other players from player list guiSetVisible(giveWindow,false) guiSetText(giveWindowEditboxQuant,"0") setElementData(localPlayer,"isGui",false) end
local cluster_reactor = assert(yatm.cluster.reactor) local cluster_thermal = yatm.cluster.thermal if not cluster_thermal then return end local function heat_exchanger_refresh_infotext(pos, node) local meta = minetest.get_meta(pos) local infotext = cluster_reactor:get_node_infotext(pos) .. "\n" .. cluster_thermal:get_node_infotext(pos) meta:set_string("infotext", infotext) end local function heat_exchanger_transfer_heat(pos, node) -- end local heat_exchanger_reactor_device = { kind = "heat_exchanger", groups = { heat_exchanger = 1, device = 1, }, default_state = "off", states = { conflict = "yatm_reactors:heat_exchanger_error", error = "yatm_reactors:heat_exchanger_error", off = "yatm_reactors:heat_exchanger_off", on = "yatm_reactors:heat_exchanger_on", } } yatm_reactors.register_stateful_reactor_node({ basename = "yatm_reactors:heat_exchanger", description = "Reactor Heat Exchanger", groups = { cracky = 1, heater_device = 1, yatm_cluster_thermal = 1 }, drop = heat_exchanger_reactor_device.states.off, tiles = { "yatm_reactor_casing.plain.png", "yatm_reactor_casing.plain.png", "yatm_reactor_casing.plain.png", "yatm_reactor_casing.plain.png^[transformFX", "yatm_reactor_casing.plain.png", "yatm_reactor_heat_exchanger_front.off.png" }, paramtype = "none", paramtype2 = "facedir", reactor_device = heat_exchanger_reactor_device, refresh_infotext = heat_exchanger_refresh_infotext, thermal_interface = { groups = { heat_exchanger = 1, }, get_heat = function (self, pos, node) local meta = minetest.get_meta(pos) return meta:get_float("heat") end, } }, { error = { tiles = { "yatm_reactor_casing.plain.png", "yatm_reactor_casing.plain.png", "yatm_reactor_casing.plain.png", "yatm_reactor_casing.plain.png^[transformFX", "yatm_reactor_casing.plain.png", "yatm_reactor_heat_exchanger_front.error.png" }, }, on = { tiles = { "yatm_reactor_casing.plain.png", "yatm_reactor_casing.plain.png", "yatm_reactor_casing.plain.png", "yatm_reactor_casing.plain.png^[transformFX", "yatm_reactor_casing.plain.png", "yatm_reactor_heat_exchanger_front.on.png" }, }, })
local awful = require("awful") local wibox = require("wibox") local beautiful = require("beautiful") local vicious = require("vicious") local naughty = require("naughty") -- Spacers volspace = wibox.widget.textbox() volspace:set_text(" ") -- {{{ BATTERY -- Battery attributes local bat_state = "" local bat_charge = 0 local bat_time = 0 local blink = true -- Icon baticon = wibox.widget.imagebox() baticon:set_image(beautiful.widget_batfull) -- Charge % batpct = wibox.widget.textbox() vicious.register(batpct, vicious.widgets.bat, function(widget, args) bat_state = args[1] bat_charge = args[2] bat_time = args[3] if args[1] == "-" then if bat_charge > 70 then baticon:set_image(beautiful.widget_batfull) elseif bat_charge > 30 then baticon:set_image(beautiful.widget_batmed) elseif bat_charge > 10 then baticon:set_image(beautiful.widget_batlow) else baticon:set_image(beautiful.widget_batempty) end else baticon:set_image(beautiful.widget_ac) if args[1] == "+" then blink = not blink if blink then baticon:set_image(beautiful.widget_acblink) end end end return args[2] .. "%" end, nil, "BAT1") -- Buttons function popup_bat() local state = "" if bat_state == "↯" then state = "Full" elseif bat_state == "↯" then state = "Charged" elseif bat_state == "+" then state = "Charging" elseif bat_state == "-" then state = "Discharging" elseif bat_state == "⌁" then state = "Not charging" else state = "Unknown" end naughty.notify { text = "Charge : " .. bat_charge .. "%\nState : " .. state .. " (" .. bat_time .. ")", timeout = 5, hover_timeout = 0.5 } end batpct:buttons(awful.util.table.join(awful.button({ }, 1, popup_bat))) baticon:buttons(batpct:buttons()) -- End Battery}}} -- -- -- {{{ VOLUME -- Cache vicious.cache(vicious.widgets.volume) -- -- Icon volicon = wibox.widget.imagebox() volicon:set_image(beautiful.widget_vol) -- -- Volume % volpct = wibox.widget.textbox() vicious.register(volpct, vicious.widgets.volume, "$1%", nil, "Master") -- -- Buttons volicon:buttons(awful.util.table.join( awful.button({ }, 1, function() awful.util.spawn_with_shell("amixer -q set Master toggle") end), awful.button({ }, 4, function() awful.util.spawn_with_shell("amixer -q set Master 3+% unmute") end), awful.button({ }, 5, function() awful.util.spawn_with_shell("amixer -q set Master 3-% unmute") end) )) volpct:buttons(volicon:buttons()) volspace:buttons(volicon:buttons()) -- End Volume }}} -- -- -- {{{ Start Wifi wifiicon = wibox.widget.imagebox() wifiicon:set_image(beautiful.widget_wifi) -- wifi = wibox.widget.textbox() vicious.register(wifi, vicious.widgets.wifi, "${ssid} Rate: ${rate}MB/s Link: ${link}%", 3, "wlp3s0") -- End Wifi }}}
function onCreate() -- background shit makeLuaSprite('ytback', 'ytback', 0, 0); scaleLuaSprite('ytback', 3, 3); setLuaSpriteScrollFactor('ytback', 0.9, 0.9); addLuaSprite('ytback', false); makeLuaSprite('thumbnail', 'thumbnail', 200, 100); scaleLuaSprite('thumbnail', 1.2, 1.2); setLuaSpriteScrollFactor('thumbnail', 0.9, 0.9); addLuaSprite('thumbnail', false); makeLuaSprite('text', 'text', 300, 150); scaleLuaSprite('text', 1, 1); setLuaSpriteScrollFactor('text', 0.9, 0.9); addLuaSprite('text', true); makeLuaSprite('ytthing', 'ytthing', 0, 430); scaleLuaSprite('ytthing', 1, 1); setLuaSpriteScrollFactor('ytthing', 0.9, 0.9); addLuaSprite('ytthing', true); close(true); --For performance reasons, close this script once the stage is fully loaded, as this script won't be used anymore after loading the stage end
--! unifiedmissile --@ commons periodic missiledriver unifiedmissile -- Unified missile main MyMissile = UnifiedMissile.new(Config) GuidanceInfos = { { Controller = MyMissile, MinAltitude = Limits.MinAltitude, MaxAltitude = Limits.MaxAltitude, MinRange = Limits.MinRange * Limits.MinRange, MaxRange = Limits.MaxRange * Limits.MaxRange, WeaponSlot = MissileWeaponSlot, TargetSelector = MissileTargetSelector, } } function SelectGuidance(_, _) return 1 end -- Main update loop function MissileMain_Update(I) MissileDriver_Update(I, GuidanceInfos, SelectGuidance) end MissileMain = Periodic.new(UpdateRate, MissileMain_Update) function Update(I) -- luacheck: ignore 131 C = Commons.new(I) if not C:IsDocked() then MissileMain:Tick(I) end end
local featuredata = { from = { { name = "liquid-naphtha", type = "fluid", tier = 3 }, { name = "liquid-mineral-oil", type = "fluid", tier = 3 }, { name = "liquid-fuel-oil", type = "fluid", tier = 3 }, { name = "liquid-nutrient-pulp", type = "fluid", tier = 3 }, { name = "angels-mono-silicon", type = "item", tier = 1 }, { name = "chrome-plate", type = "item", tier = 4 }, }, to = { { name = "angels-ore1", type = "item", tier = 1 }, { name = "angels-ore2", type = "item", tier = 2 }, { name = "angels-ore3", type = "item", tier = 1 }, { name = "angels-ore4", type = "item", tier = 2 }, { name = "angels-ore5", type = "item", tier = 1 }, { name = "angels-ore6", type = "item", tier = 1 }, { name = "liquid-multi-phase-oil", type = "fluid", tier = 3 }, { name = "gas-natural-1", type = "fluid", tier = 3 }, } } if not settings.startup["guft-enableores-angel"].value or not data.raw["item"]["angels-ore1"] then table.insert(featuredata.to, { name = "chrome-ore", type = "item", tier = 3 }) table.insert(featuredata.to, { name = "manganese-ore", type = "item", tier = 3 }) table.insert(featuredata.to, { name = "platinum-ore", type = "item", tier = 4 }) end return featuredata
--破壊の代行者 ヴィーナス -- --Script by Trishula9 function c101107021.initial_effect(c) --self spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(101107021,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetCountLimit(1,101107021) e1:SetCost(c101107021.sscost) e1:SetTarget(c101107021.sstg) e1:SetOperation(c101107021.ssop) c:RegisterEffect(e1) --spsummon local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(101107021,1)) e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_MZONE) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetCountLimit(1,101107021) e2:SetCost(c101107021.spcost) e2:SetTarget(c101107021.sptg) e2:SetOperation(c101107021.spop) c:RegisterEffect(e2) end function c101107021.ssfilter(c) return c:IsCode(64734921) and c:IsAbleToRemoveAsCost() end function c101107021.sscost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(c101107021.ssfilter,tp,LOCATION_GRAVE,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) local g=Duel.SelectMatchingCard(tp,c101107021.ssfilter,tp,LOCATION_GRAVE,0,1,1,nil) Duel.Remove(g,POS_FACEUP,REASON_COST) end function c101107021.sstg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) end function c101107021.ssop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end end function c101107021.spfilter(c,e,tp) return c:IsCode(39552864) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeEffectTarget(e) and (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) end function c101107021.spcost(e,tp,eg,ep,ev,re,r,rp,chk) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) if chk==0 then return Duel.CheckLPCost(tp,500) and ft>0 end local lp=Duel.GetLP(tp) local g=Duel.GetMatchingGroup(c101107021.spfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,nil,e,tp) local ct=g:GetCount() if ct>ft then ct=ft end if ct>1 and Duel.IsPlayerAffectedByEffect(tp,59822133) then ct=1 end local t={} for i=1,ct do if not Duel.CheckLPCost(tp,i*500) then break end t[i]=i end Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(101107021,2)) local announce=Duel.AnnounceNumber(tp,table.unpack(t)) Duel.PayLPCost(tp,announce*500) e:SetLabel(announce) end function c101107021.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED) and c101107021.spfilter(chkc,e,tp) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingTarget(c101107021.spfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,e,tp) end local ct=e:GetLabel() Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local g=Duel.SelectTarget(tp,c101107021.spfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,ct,ct,nil,e,tp) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,g:GetCount(),0,0) end function c101107021.spop(e,tp,eg,ep,ev,re,r,rp) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) if ft<=0 then return end local c=e:GetHandler() local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local sg=g:Filter(Card.IsRelateToEffect,nil,e) if sg:GetCount()>1 and Duel.IsPlayerAffectedByEffect(tp,59822133) then return end if sg:GetCount()>ft then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) sg=sg:Select(tp,ft,ft,nil) end local tc=sg:GetFirst() while tc do Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_LEAVE_FIELD_REDIRECT) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetReset(RESET_EVENT+RESETS_REDIRECT) e1:SetValue(LOCATION_DECKBOT) tc:RegisterEffect(e1) tc=sg:GetNext() end Duel.SpecialSummonComplete() end
Change the Username to your username, run it with c/ and in the commandbar, Credit to Pixel for making it able to log more than one person at a time, otherwise i made it. Its not to be traded and is to stay inside this archive
-- alnbox, alignment viewer based on the curses library -- Copyright (C) 2015 Boris Nagaev -- See the LICENSE file for terms of use describe("alnbox.dnaCells", function() it("defines background colors for DNA letters", function() local curses = require 'rote.cursesConsts' local dnaCells = require('alnbox.dnaCells')(curses) assert.truthy(dnaCells.A) end) end)
wine = {} local def = minetest.get_modpath("default") local snd_d = def and default.node_sound_defaults() local snd_g = def and default.node_sound_glass_defaults() local snd_l = def and default.node_sound_leaves_defaults() local sand = "default:desert_sand" -- check for MineClone2 local mcl = minetest.get_modpath("mcl_core") if mcl then snd_d = mcl_sounds.node_sound_glass_defaults() snd_g = mcl_sounds.node_sound_defaults() snd_l = mcl_sounds.node_sound_leaves_defaults() sand = "mcl_core:sand" end -- check for Unified Inventory local is_uninv = minetest.global_exists("unified_inventory") or false -- is thirsty mod active local thirsty_mod = minetest.get_modpath("thirsty") -- Intllib support local S if minetest.get_translator then S = minetest.get_translator("wine") elseif minetest.get_modpath("intllib") then S = intllib.Getter() else S = function(s, a, ...) if a == nil then return s end a = {a, ...} return s:gsub("(@?)@(%(?)(%d+)(%)?)", function(e, o, n, c) if e == ""then return a[tonumber(n)] .. (o == "" and c or "") else return "@" .. o .. n .. c end end) end end -- Unified Inventory hints if is_uninv then unified_inventory.register_craft_type("barrel", { description = "Barrel", icon = 'wine_barrel.png', width = 1, height = 1 }) end local ferment = { {"farming:grapes", "wine:glass_wine"}, {"farming:barley", "wine:glass_beer"}, {"mobs:honey", "wine:glass_mead"}, {"xdecor:honey", "wine:glass_mead"}, -- for when xdcecor is installed {"default:apple", "wine:glass_cider"}, {"default:papyrus", "wine:glass_rum"}, {"wine:blue_agave", "wine:glass_tequila"}, {"farming:wheat", "wine:glass_wheat_beer"}, {"farming:rice", "wine:glass_sake"}, {"farming:corn", "wine:glass_bourbon"}, {"farming:baked_potato", "wine:glass_vodka"}, {"farming:coffee_beans", "wine:glass_coffee_liquor"}, {"wine:glass_champagne_raw", "wine:glass_champagne"} } if mcl then ferment[4] = {"mcl_core:apple", "wine:glass_cider"} ferment[5] = {"mcl_core:paper", "wine:glass_rum"} end if is_uninv then for _, f in pairs(ferment) do unified_inventory.register_craft({ type = "barrel", items = {f[1]}, output = f[2] }) end end -- add item and resulting beverage to list function wine:add_item(list) for n = 1, #list do table.insert(ferment, list[n]) if is_uninv then unified_inventory.register_craft({ type = "barrel", items = {list[n][1]}, output = list[n][2] }) end end end -- list of beverages (name, desc, has bottle, hunger, thirst) local beverages = { {"wine", "Wine", true, 2, 5}, {"beer", "Beer", true, 2, 8}, {"rum", "Rum", true, 2, 5}, {"tequila", "Tequila", true, 2, 3}, {"wheat_beer", "Wheat Beer", true, 2, 8}, {"sake", "Sake", true, 2, 3}, {"bourbon", "Bourbon", true, 2, 3}, {"vodka", "Vodka", true, 2, 3}, {"cider", "Cider", true, 2, 6}, {"mead", "Honey-Mead", true, 4, 5}, {"mint", "Mint Julep", true, 4, 3}, {"brandy", "Brandy", true, 3, 4}, {"coffee_liquor", "Coffee Liquor", true, 3, 4}, {"champagne", "Champagne", true, 4, 5} } -- create glasses and bottles for n = 1, #beverages do local name = beverages[n][1] local desc = beverages[n][2] local has_bottle = beverages[n][3] local num_hunger = beverages[n][4] local num_thirst = beverages[n][5] -- glass minetest.register_node("wine:glass_" .. name, { description = S("Glass of " .. desc), drawtype = "plantlike", visual_scale = 0.5, tiles = {"wine_" .. name .. "_glass.png"}, inventory_image = "wine_" .. name .. "_glass.png", wield_image = "wine_" .. name .. "_glass.png", paramtype = "light", is_ground_content = false, sunlight_propagates = true, walkable = false, selection_box = { type = "fixed", fixed = {-0.15, -0.5, -0.15, 0.15, 0, 0.15} }, groups = { vessel = 1, dig_immediate = 3, attached_node = 1, alcohol = 1, drink = 1 }, sounds = snd_g, on_use = function(itemstack, user, pointed_thing) if user then if thirsty_mod then thirsty.drink(user, num_thirst) end return minetest.do_item_eat(num_hunger, nil, itemstack, user, pointed_thing) end end }) -- bottle if has_bottle then minetest.register_node("wine:bottle_" .. name, { description = S("Bottle of " .. desc), drawtype = "plantlike", visual_scale = 0.7, tiles = {"wine_" .. name .. "_bottle.png"}, inventory_image = "wine_" .. name .. "_bottle.png", paramtype = "light", sunlight_propagates = true, walkable = false, selection_box = { type = "fixed", fixed = {-0.15, -0.5, -0.15, 0.15, 0.25, 0.15} }, groups = {dig_immediate = 3, attached_node = 1, vessel = 1}, sounds = snd_d, }) local glass = "wine:glass_" .. name minetest.register_craft({ output = "wine:bottle_" .. name, recipe = { {glass, glass, glass}, {glass, glass, glass}, {glass, glass, glass}, }, }) minetest.register_craft({ -- type = "shapeless", output = glass .. " 9", recipe = {{"wine:bottle_" .. name}} }) end end -- brandy recipe minetest.register_craft({ type = "cooking", cooktime = 15, output = "wine:glass_brandy", recipe = "wine:glass_wine" }) -- Raw champagne if minetest.get_modpath("farming") and farming.mod and (farming.mod == "undo" or farming.mod == "redo") then minetest.register_craftitem("wine:glass_champagne_raw", { description = "Raw Champagne", inventory_image = "wine_champagne_raw_glass.png", groups = {vessel = 1, flammable = 3} }) minetest.register_craft({ -- type = "shapeless", output = "wine:glass_champagne_raw", recipe = { {"wine:glass_wine", "farming:sugar"} } }) end -- override to add food group to wine and brandy glass minetest.override_item("wine:glass_wine", { groups = { food_wine = 1, vessel = 1, dig_immediate = 3, attached_node = 1, alcohol = 1, drink = 1 } }) minetest.override_item("wine:glass_brandy", { groups = { food_brandy = 1, vessel = 1, dig_immediate = 3, attached_node = 1, alcohol = 1, drink = 1 } }) -- blue agave minetest.register_node("wine:blue_agave", { description = S("Blue Agave"), drawtype = "plantlike", visual_scale = 0.8, tiles = {"wine_blue_agave.png"}, inventory_image = "wine_blue_agave.png", wield_image = "wine_blue_agave.png", paramtype = "light", is_ground_content = false, sunlight_propagates = true, walkable = false, selection_box = { type = "fixed", fixed = {-0.2, -0.5, -0.2, 0.2, 0.3, 0.2} }, groups = {snappy = 3, attached_node = 1, plant = 1}, sounds = snd_l, on_use = minetest.item_eat(2), on_construct = function(pos) local timer = minetest.get_node_timer(pos) timer:start(17) end, on_timer = function(pos) local light = minetest.get_node_light(pos) if not light or light < 13 or math.random() > 1/76 then return true -- go to next iteration end local n = minetest.find_nodes_in_area_under_air( {x = pos.x + 2, y = pos.y + 1, z = pos.z + 2}, {x = pos.x - 2, y = pos.y - 1, z = pos.z - 2}, {"wine:blue_agave"}) -- too crowded, we'll wait for another iteration if #n > 2 then return true end -- find desert sand with air above (grow across and down only) n = minetest.find_nodes_in_area_under_air( {x = pos.x + 1, y = pos.y - 1, z = pos.z + 1}, {x = pos.x - 1, y = pos.y - 2, z = pos.z - 1}, {sand}) -- place blue agave if n and #n > 0 then local new_pos = n[math.random(#n)] new_pos.y = new_pos.y + 1 minetest.set_node(new_pos, {name = "wine:blue_agave"}) end return true end }) -- blue agave into cyan dye minetest.register_craft( { -- type = "shapeless", output = "dye:cyan 4", recipe = {{"wine:blue_agave"}} }) -- blue agave as fuel minetest.register_craft({ type = "fuel", recipe = "wine:blue_agave", burntime = 10, }) -- cook blue agave into a sugar syrup minetest.register_craftitem("wine:agave_syrup", { description = "Agave Syrup", inventory_image = "wine_agave_syrup.png", groups = {food_sugar = 1, vessel = 1, flammable = 3} }) minetest.register_craft({ type = "cooking", cooktime = 7, output = "wine:agave_syrup 2", recipe = "wine:blue_agave" }) -- blue agave into paper minetest.register_craft( { output = "default:paper 3", recipe = { {"wine:blue_agave", "wine:blue_agave", "wine:blue_agave"}, } }) -- register blue agave on mapgen minetest.register_decoration({ deco_type = "simple", place_on = {sand}, sidelen = 16, fill_ratio = 0.001, biomes = {"desert"}, decoration = {"wine:blue_agave"}, y_min = 15, y_max = 50, spawn_by = sand, num_spawn_by = 6 }) -- add to bonemeal as decoration if available if minetest.get_modpath("bonemeal") then bonemeal:add_deco({ {sand, {}, {"default:dry_shrub", "wine:blue_agave", "", ""} } }) end -- Mint Julep recipe if minetest.get_modpath("farming") and farming.mod and (farming.mod == "redo" or farming.mod == "undo") then minetest.register_craft({ -- type = "shapeless", output = "wine:glass_mint", recipe = { {"farming:mint_leaf", "farming:mint_leaf", "farming:mint_leaf"}, {"wine:glass_bourbon", "farming:sugar", ""} } }) end -- Wine barrel formspec winebarrel_formspec = "size[8,9]" .. "list[current_name;src;2,1;1,1;]" .. "list[current_name;dst;5,1;1,1;]" .. "list[current_player;main;0,5;8,4;]" .. "listring[current_name;dst]" .. "listring[current_player;main]" .. "listring[current_name;src]" .. "listring[current_player;main]" .. "image[3.5,1;1,1;gui_furnace_arrow_bg.png^[transformR270]" -- Wine barrel node minetest.register_node("wine:wine_barrel", { description = S("Fermenting Barrel"), tiles = {"wine_barrel.png" }, drawtype = "mesh", mesh = "wine_barrel.obj", paramtype = "light", paramtype2 = "facedir", groups = { choppy = 2, oddly_breakable_by_hand = 1, flammable = 2, tubedevice = 1, tubedevice_receiver = 1 }, legacy_facedir_simple = true, on_place = minetest.rotate_node, on_construct = function(pos) local meta = minetest.get_meta(pos) meta:set_string("formspec", winebarrel_formspec) meta:set_string("infotext", S("Fermenting Barrel")) meta:set_float("status", 0.0) local inv = meta:get_inventory() inv:set_size("src", 1) inv:set_size("dst", 1) end, can_dig = function(pos,player) local meta = minetest.get_meta(pos) local inv = meta:get_inventory() if not inv:is_empty("dst") or not inv:is_empty("src") then return false end return true end, allow_metadata_inventory_take = function( pos, listname, index, stack, player) if minetest.is_protected(pos, player:get_player_name()) then return 0 end return stack:get_count() end, allow_metadata_inventory_put = function( pos, listname, index, stack, player) if minetest.is_protected(pos, player:get_player_name()) then return 0 end local meta = minetest.get_meta(pos) local inv = meta:get_inventory() if listname == "src" then return stack:get_count() elseif listname == "dst" then return 0 end end, allow_metadata_inventory_move = function( pos, from_list, from_index, to_list, to_index, count, player) if minetest.is_protected(pos, player:get_player_name()) then return 0 end local meta = minetest.get_meta(pos) local inv = meta:get_inventory() local stack = inv:get_stack(from_list, from_index) if to_list == "src" then return count elseif to_list == "dst" then return 0 end end, on_metadata_inventory_put = function(pos) local timer = minetest.get_node_timer(pos) timer:start(5) end, tube = (function() if minetest.get_modpath("pipeworks") then return { -- using a different stack from defaut when inserting insert_object = function(pos, node, stack, direction) local meta = minetest.get_meta(pos) local inv = meta:get_inventory() local timer = minetest.get_node_timer(pos) if not timer:is_started() then timer:start(5) end return inv:add_item("src", stack) end, can_insert = function(pos,node,stack,direction) local meta = minetest.get_meta(pos) local inv = meta:get_inventory() return inv:room_for_item("src", stack) end, -- the default stack, from which objects will be taken input_inventory = "dst", connect_sides = { left = 1, right = 1, back = 1, front = 1, bottom = 1, top = 1} } end end)(), on_timer = function(pos) local meta = minetest.get_meta(pos) ; if not meta then return end local inv = meta:get_inventory() -- is barrel empty? if not inv or inv:is_empty("src") then meta:set_float("status", 0.0) meta:set_string("infotext", S("Fermenting Barrel")) return false end -- does it contain any of the source items on the list? local has_item for n = 1, #ferment do if inv:contains_item("src", ItemStack(ferment[n][1])) then has_item = n break end end if not has_item then return false end -- is there room for additional fermentation? if not inv:room_for_item("dst", ferment[has_item][2]) then meta:set_string("infotext", S("Fermenting Barrel (FULL)")) return true end local status = meta:get_float("status") -- fermenting (change status) if status < 100 then meta:set_string("infotext", S("Fermenting Barrel (@1% Done)", status)) meta:set_float("status", status + 5) else inv:remove_item("src", ferment[has_item][1]) inv:add_item("dst", ferment[has_item][2]) meta:set_float("status", 0,0) end if inv:is_empty("src") then meta:set_float("status", 0.0) meta:set_string("infotext", S("Fermenting Barrel")) end return true end }) -- wine barrel craft recipe (with mineclone2 check) local ingot = "default:steel_ingot" if mcl then ingot = "mcl_core:iron_ingot" end minetest.register_craft({ output = "wine:wine_barrel", recipe = { {"group:wood", "group:wood", "group:wood"}, {ingot, "", ingot}, {"group:wood", "group:wood", "group:wood"}, }, }) -- LBMs to start timers on existing, ABM-driven nodes minetest.register_lbm({ name = "wine:barrel_timer_init", nodenames = {"wine:wine_barrel"}, run_at_every_load = false, action = function(pos) local t = minetest.get_node_timer(pos) t:start(5) end, }) minetest.register_lbm({ name = "wine:agave_timer_init", nodenames = {"wine:blue_agave"}, run_at_every_load = false, action = function(pos) local t = minetest.get_node_timer(pos) t:start(17) end, }) -- add lucky blocks if minetest.get_modpath("lucky_block") then lucky_block:add_blocks({ {"fal", {"default:water_source"}, 1, true, 4}, {"dro", {"wine:glass_wine"}, 5}, {"dro", {"wine:glass_beer"}, 5}, {"dro", {"wine:glass_wheat_beer"}, 5}, {"dro", {"wine:glass_mead"}, 5}, {"dro", {"wine:glass_cider"}, 5}, {"dro", {"wine:glass_rum"}, 5}, {"dro", {"wine:glass_sake"}, 5}, {"dro", {"wine:glass_tequila"}, 5}, {"dro", {"wine:glass_bourbon"}, 5}, {"dro", {"wine:glass_vodka"}, 5}, {"dro", {"wine:glass_mint"}, 5}, {"dro", {"wine:glass_coffee_liquor"}, 5}, {"dro", {"wine:glass_brandy"}, 5}, {"dro", {"wine:glass_champagne"}, 5}, {"dro", {"wine:wine_barrel"}, 1}, {"tel", 5, 1}, {"nod", "default:chest", 0, { {name = "wine:bottle_wine", max = 1}, {name = "wine:bottle_tequila", max = 1}, {name = "wine:bottle_rum", max = 1}, {name = "wine:bottle_cider", max = 1}, {name = "wine:bottle_bourbon", max = 1}, {name = "wine:bottle_vodka", max = 1}, {name = "wine:wine_barrel", max = 1}, {name = "wine:bottle_sake", max = 1}, {name = "wine:bottle_mint", max = 1}, {name = "wine:bottle_mead", max = 1}, {name = "wine:bottle_beer", max = 1}, {name = "wine:bottle_wheat_beer", max = 1}, {name = "wine:bottle_coffee_liquor", max = 1}, {name = "wine:bottle_brandy", max = 1}, {name = "wine:bottle_champagne", max = 1}, {name = "wine:blue_agave", max = 4}}}, }) end print (S("[MOD] Wine loaded"))
local utf8 = require("utf8") GameOverState = Class{__includes = BaseState} function GameOverState:init(params) self.name = "GameOverState" self.background = Background(MENU_BACKGROUND) self.score = params.score self.playerName = "" self.cursor = "_" self.cursorTimer = Timer.every(0.5, function() local cursorSymbol = utf8.len(self.playerName) < 8 and "_" or "" self.cursor = (self.cursor == cursorSymbol) and " " or cursorSymbol end) self.menu = Menu { y = VIRTUAL_HEIGHT / 2 + 150, texts = { "Submit Score", "Skip" }, callbacks = { function() if utf8.len(self.playerName) > 0 then self:submitScore() gStateStack:pop() gStateStack:push(HighscoreState({background = self.background})) end end, function() gSounds['music-ending']:stop() gStateStack:pop() gStateStack:push(StartState({background = self.background})) end } } gSounds['music-ending']:setLooping(true) gSounds['music-ending']:play() end function GameOverState:update(dt) self.menu:update(dt) self.background:update(dt) if love.keyboard.textInput:gsub("%s+", "") ~= "" and love.keyboard.textInput ~= "," and utf8.len(self.playerName) < 8 then self.playerName = self.playerName .. love.keyboard.textInput:upper() end if love.keyboard.wasPressed('backspace') and self.playerName ~= "" then -- get the byte offset to the last UTF-8 character in the string. local byteoffset = utf8.offset(self.playerName, -1) if byteoffset then -- remove the last UTF-8 character. -- string.sub operates on bytes rather than UTF-8 characters, so we couldn't do string.sub(text, 1, -2). self.playerName = self.playerName:sub(1, byteoffset - 1) end end end function GameOverState:render() self.background:render() self.menu:render() love.graphics.setColor(1, 1, 1, 1) love.graphics.setFont(gFonts['large']) love.graphics.printf('Game Over', 0, VIRTUAL_HEIGHT / 2 - 200, VIRTUAL_WIDTH, 'center') love.graphics.setFont(gFonts['medium']) love.graphics.printf('Your score was:', 0, VIRTUAL_HEIGHT / 2 - 100, VIRTUAL_WIDTH, 'center') love.graphics.setFont(gFonts['large']) love.graphics.printf(self.score, 0, VIRTUAL_HEIGHT / 2 - 60, VIRTUAL_WIDTH, 'center') love.graphics.setFont(gFonts['medium']) love.graphics.printf('Enter name:', 0, VIRTUAL_HEIGHT / 2 + 50, VIRTUAL_WIDTH, 'center') love.graphics.printf(self.playerName .. self.cursor, VIRTUAL_WIDTH / 2 - 50, VIRTUAL_HEIGHT / 2 + 80, VIRTUAL_WIDTH) end function GameOverState:exit() self.cursorTimer:remove() end function GameOverState:submitScore() data = self.playerName .. "," .. self.score .. "\n" writeSaveFile(FILE_HIGHSCORES, data, 'append') end
--- Gather informations from the environment. -- @module env -- @usage env(project) local fs = require 'luarocks.fs' local utils = require 'love-release.utils' local ver = utils.love.ver local pipe = {} --- Gets the version of the installed LÖVE. -- @treturn ver LÖVE version. -- @local local function getSystemLoveVersion() local handle = io.popen('love --version') local result = handle:read("*a") handle:close() local version = result:match('%d+%.%d+%.%d+') if version then return ver(version) end end --- Gets the latest LÖVE version from the web. -- @treturn ver LÖVE version. -- @local local function getWebLoveVersion() local releasesPath = utils.cache.."/releases.xml" local ok, err = fs.download("https://love2d.org/releases.xml", releasesPath, true) if ok then local releasesXml = io.open(releasesPath, "rb") local version = releasesXml:read("*a"):match("<title>(%d+%.%d+%.%d+)") releasesXml:close() return ver(version) else return nil, err end end --- Gets the latest LÖVE version from the script, the system and the web. -- @tparam ver script script version. -- @tparam ver system system version. -- @tparam ver web web version. -- @treturn ver the latest version. -- @local local function getLatestLoveVersion(script, system, web) local version = script if system and system >= script then version = system end if web and web > version then version = web end return version end function pipe.pipe(project) local err = utils.io.err -- checks for a main.lua file fs.change_dir(project.projectDirectory) if not fs.exists("main.lua") then err("ENV: No main.lua provided.\n") os.exit(1) end fs.pop_dir() -- title project:setTitle(project.projectDirectory:match("[^/]+$")) -- package project:setPackage(project.title:gsub("%W", "-"):lower()) -- LÖVE version local systemLoveVersion = getSystemLoveVersion() local webLoveVersion = getWebLoveVersion() local scriptLoveVersion = utils.love.lastVersion local isSupported = utils.love.isSupported if systemLoveVersion and not isSupported(systemLoveVersion) then err("ENV: Your LÖVE installed version (" .. tostring(systemLoveVersion) .. ") is not supported by love-release (" .. tostring(scriptLoveVersion) .. ").\n") if systemLoveVersion > scriptLoveVersion then err(" You should update love-release.\n") elseif systemLoveVersion < scriptLoveVersion then err(" You should update LÖVE.\n") end end if webLoveVersion and not isSupported(webLoveVersion) then err("ENV: The upstream LÖVE version (" .. tostring(webLoveVersion) .. ") is not supported by love-release (" .. tostring(scriptLoveVersion) .. ").\n") err(" You should update love-release.\n") end project:setLoveVersion(getLatestLoveVersion(scriptLoveVersion, systemLoveVersion, webLoveVersion)) return project end setmetatable(pipe, { __call = function(_, project) return pipe.pipe(project) end }) return pipe
local router = require 'routing.router' local user_urls = { {'', 4, name='user'}, {'/groups', 5, name='user_groups'}, {'/group/{group:w}', 6, name='user_group'} } local membership_urls = { {'users', 2, name='user_list'}, {'users/add', 3, name='add_user', args={user_id=''}}, {'user/{user_id:i}', user_urls} } local all_urls = { {'/', 1, name='default'}, {'/{locale:(en|de)}/', membership_urls}, {'/static/{path:any}', 10, name='static'} } describe('router', function() describe('ctor', function() it('fallbacks to default builders', function() local builders = require('routing.builders') local r = router.new() assert.equals(builders, r.builders) end) it('accepts builders', function() local builders = {} local r = router.new {builders=builders} assert.equals(builders, r.builders) end) end) describe('add', function() it('fails to override route name', function() local r = router.new() local ok, msg = r:add { {'1', 1, name='x'}, {'2', 2, name='x'} } assert.is_false(ok) assert.equals('overriding name "x"', msg) end) it('fails to override route name in included', function() local r = router.new() local ok, msg = r:add { {'1', 1, name='x'}, {'2', { {'3', 2, name='x'} }} } assert.is_false(ok) assert.equals('overriding name "x"', msg) end) it('fails to override route path', function() local r = router.new() local ok, msg = r:add { {'1', 1}, {'1', 2} } assert.is_false(ok) assert.equals('overriding path "1"', msg) end) it('allows to override route path', function() local r = router.new {allow_path_override=true} assert(r:add { {'1', 1}, {'1', 2} }) end) it('fails to override route path in included', function() local r = router.new() local ok, msg = r:add { {'1', 1}, {'', { {'1', 2} }} } assert.is_false(ok) assert.equals('overriding path "1"', msg) end) it('allows to override route path in included', function() local r = router.new {allow_path_override=true} assert(r:add { {'1', 1}, {'', { {'1', 2} }} }) end) end) describe('mapping', function() local r = router.new() assert(r:add(all_urls)) local cases = { ['/'] = { 1, {route_name='default'}}, ['/en/users'] = { 2, {route_name='user_list', locale='en'}}, ['/en/users/add'] = { 3, {route_name='add_user', locale='en', user_id=''}}, ['/en/user/123'] = { 4, {route_name='user', locale='en', user_id='123'}}, ['/de/user/123'] = { 4, {route_name='user', locale='de', user_id='123'}}, ['/en/user/123/groups'] = { 5, {route_name='user_groups', locale='en', user_id='123'}}, ['/en/user/123/group/admin'] = { 6, {route_name='user_group', locale='en', user_id='123', group='admin'}}, ['/static/css/site.css'] = { 10, {route_name='static', path='css/site.css'}} } describe('match', function() for path, m in next, cases do it('#1 ' .. path, function() local handler, args = r:match(path) assert.equals(m[1], handler) assert.same(m[2], args) end) end it('returns nil if there is no match', function() assert.is_nil(r:match('/x')) end) end) describe('path for', function() for path, m in next, cases do it(path, function() local args = m[2] assert.equals(path, r:path_for(args.route_name, args)) end) end it('raises an error if unknown name is used', function() assert.error(function() r:path_for('x') end) end) end) end) end)
--[[ Copyright 2018 Sean McNamara <smcnam@gmail.com>. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] local LAM = LibStub("LibAddonMenu-2.0") local gas_name = "GuildActivity" local gas_savedVarsName = "GuildActivityDB" local gas_guildIndexes = {} local gas_guildNames = {} local gas_defaultVars = { guildsToLog = {}, notify = false, frequency = 5, onlines = {}, } local gas_ticking = false local gas_myTimerName = nil local gas_ldTimer_ver = 0.3 local gas_timers = {} local function gas_yo() -- d("Yo-ing") GetAddOnManager():RequestAddOnSavedVariablesPrioritySave(gas_savedVarsName) end local function gas_add(name, millisecs, callback, maxevents) if (name==nil) then name="tempTimerLD"..GetGameTimeMilliseconds() end if (gas_timers[name]== nil) then gas_timers[name]={} end gas_timers[name].lastevent=GetGameTimeMilliseconds() gas_timers[name].millisecs=millisecs gas_timers[name].count=0 gas_timers[name].callback=callback gas_timers[name].maxevents=maxevents gas_timers[name].params=nil return name end local function gas_rem(timerName) gas_timers[timerName] = nil end local function gas_setTimer(freq, funk) if gas_myTimerName ~= nil then -- d("Removing old timer " .. tostring(gas_myTimerName)) gas_rem(gas_myTimerName) end -- d("Adding timer " .. (freq * 60000)) gas_myTimerName = gas_add(nil, freq * 60000, funk, -1) end local gas_panelData = { type = "panel", name = gas_name, displayName = gas_name, author = "@Coorbin", version = "1.0", slashCommand = "/gasset", registerForRefresh = false, registerForDefaults = false, website = "https://github.com/allquixotic/ESOGuildActivityAddon", } local gas_optionsData = { { type = "header", name = "Guild Activity Stats Options", }, { type = "dropdown", name = "Frequency", choices = { "1 minute", "5 minutes", "10 minutes", "30 minutes", "60 minutes", }, choicesValues = { 1, 5, 10, 30, 60, }, getFunc = function() return gas_savedVariables.frequency end, setFunc = function(var) gas_savedVariables.frequency = var gas_setTimer(gas_savedVariables.frequency, gas_doitAll) gas_yo() -- d("Frequency setter called " .. tostring(var)) end, width = "half", disabled = function() return false end, tooltip = "The frequency with which the online member statistics will be gathered.", default = 5, }, { type = "checkbox", name = "Notify in chat when saved", getFunc = function() return gas_savedVariables.notify end, setFunc = function(var) gas_savedVariables.notify = var gas_yo() -- d("Notify setter called " .. tostring(var)) end, default = true, }, } local function gas_updateGuildInfo() local numGuilds = GetNumGuilds() for i = 1, numGuilds do local gid = GetGuildName(GetGuildId(i)) gas_guildIndexes[gid] = i gas_guildNames[i] = gid table.insert(gas_optionsData, { type = "checkbox", name = "Log " .. gid, getFunc = function() -- d(tostring((gas_savedVariables.guildsToLog ~= nil and gas_savedVariables.guildsToLog[gid] == true)) .. " for " .. gid) return gas_savedVariables.guildsToLog ~= nil and gas_savedVariables.guildsToLog[gid] == true end, setFunc = function(var) gas_savedVariables.guildsToLog[gid] = var -- d("guildsToLog setter called " .. tostring(gas_savedVariables.guildsToLog)) gas_yo() end, tooltip = "Do you want to log " .. gid .. " to the saved variables?", default = false, }) end end local function gas_addWithData(name, millisecs, callback, maxevents,data) if gas_timers == nil then gas_timers={} end if (gas_timers[name]== nil) then gas_timers[name]={} end gas_timers[name].lastevent=GetGameTimeMilliseconds() gas_timers[name].millisecs=millisecs gas_timers[name].count=0 gas_timers[name].callback=callback gas_timers[name].maxevents=maxevents gas_timers[name].params=data end local function gas_exists(name) if (gas_timers[name]== nil) then return false else return true end end function gas_tick() if(gas_ticking == true) then for name,tmr in pairs(gas_timers) do -- d("tick: "..name) if gas_timers[name].maxevents~=-2 then -- not disabled if gas_timers[name].lastevent+gas_timers[name].millisecs<GetGameTimeMilliseconds() then if gas_timers[name].maxevents>0 then -- only track count if is not infinite gas_timers[name].count=gas_timers[name].count+1 end if gas_timers[name].maxevents>0 and gas_timers[name].count>=gas_timers[name].maxevents then gas_timers[name].maxevents=-2 -- Disable end gas_timers[name].lastevent=GetGameTimeMilliseconds() if (gas_timers[name].params~=nil) then gas_timers[name].callback(name,gas_timers[name].params) else gas_timers[name].callback(name) end end end end zo_callLater(gas_tick, 5000) -- run again in 5000 ms end end local function gas_start() if(gas_ticking == nil or gas_ticking == false) then gas_ticking = true gas_tick() end end local function gas_clearGuildStats() gas_savedVariables.onlines = {} end local function gas_doit(guildIndex) local numGuilds = GetNumGuilds() local n = GetNumGuildMembers(GetGuildId(guildIndex)) local i = 1 local ts = GetTimeStamp() local gid = gas_guildNames[guildIndex] local theData = nil if gas_savedVariables.onlines == nil then gas_savedVariables.onlines = {} end if gas_savedVariables.onlines[ts] == nil then gas_savedVariables.onlines[ts] = {} end if gas_savedVariables.onlines[ts][gid] == nil then gas_savedVariables.onlines[ts][gid] = {} end --d("In gas_doit: guildIndex= " .. guildIndex .. ", n=" .. n .. ", ts=" .. ts .. ", gid=" .. gid) for i=1,n do local name,note,rankIndex,playerStatus,secsSinceLogoff = GetGuildMemberInfo(GetGuildId(guildIndex),i) --d("GuildMemberInfo: " .. name .. ", " .. note .. ", " .. rankIndex .. ", " .. playerStatus .. ", " .. secsSinceLogoff) if gas_savedVariables.onlines[ts][gid][name] == nil then gas_savedVariables.onlines[ts][gid][name] = {} end gas_savedVariables.onlines[ts][gid][name].rank = rankIndex gas_savedVariables.onlines[ts][gid][name].secsSinceLogoff = secsSinceLogoff end end function gas_doitAll(_) -- d("Doing it all") local atLeastOne = false local numGuilds = GetNumGuilds() for i = 1, numGuilds do local gid = gas_guildNames[i] if gas_savedVariables.guildsToLog ~= nil and gas_savedVariables.guildsToLog[gid] == true then --d("In gas_doitAll: numGuilds=" .. numGuilds .. ", gid=" .. gid .. ", gas_guildIndexes[gid]=" .. gas_guildIndexes[gid]) gas_doit(gas_guildIndexes[gid]) atLeastOne = true end end if atLeastOne == true then gas_yo() if gas_savedVariables.notify == true then d("Saved Guild Activity Stats.") end end end local function gas_initTimers() if gas_timers == nil then gas_timers={} end gas_start(); end local function gas_OnAddOnLoaded(event, addonName) if addonName == gas_name then -- d("-------------------") -- d("In gas_OnAddOnLoaded") gas_initTimers() gas_savedVariables = ZO_SavedVars:NewAccountWide(gas_savedVarsName, 15, nil, gas_defaultVars) SLASH_COMMANDS["/gasclear"] = gas_clearGuildStats gas_updateGuildInfo() LAM:RegisterAddonPanel(addonName, gas_panelData) LAM:RegisterOptionControls(addonName, gas_optionsData) gas_doitAll() gas_yo() gas_setTimer(gas_savedVariables.frequency, gas_doitAll) -- d("At end of gas_OnAddOnLoaded, gas_savedVariables = ") -- d(gas_savedVariables) -- d("-------------------") EVENT_MANAGER:UnregisterForEvent(gas_name, EVENT_ADD_ON_LOADED) end end EVENT_MANAGER:RegisterForEvent(gas_name, EVENT_ADD_ON_LOADED, gas_OnAddOnLoaded)
#!/usr/bin/lua --[[ This script can be used to mount iso images run from the CLI with image as a parameter or add it to your right click menu with the %f parameter --]] -- Set all required variables IMAGE = arg[1] HOME = os.getenv("HOME") MOUNTPOINT = HOME .. "/" .. "mnt" COMMAND = IMAGE .. " " .. MOUNTPOINT -- Now Mount That Sucker! os.execute("if [ ! -d " .. MOUNTPOINT .. " ] ; then mkdir " .. MOUNTPOINT .. " ; fi") os.execute("pkexec mount -o loop " .. COMMAND)
local notePos = Position(32598, 32381, 10) local function removeNote(position) local noteItem = Tile(position):getItemById(8700) if noteItem then noteItem:remove() end end function onUse(player, item, fromPosition, target, toPosition, isHotkey) if target.actionid ~= 12509 then return false end if player:getStorageValue(Storage.thievesGuild.Mission08) == 1 then player:removeItem(8701, 1) Game.createItem(8700, 1, notePos) player:setStorageValue(Storage.thievesGuild.Mission08, 2) addEvent(removeNote, 5 * 60 * 1000, notePos) end return true end
local load_config = require 'espeon.util.load_config' local detect_serial_port = require 'espeon.util.detect_serial_port' local exec = require 'espeon.util.exec' return { description = 'Flash the firmware specified in ./espeon.conf to a connected ESP', execute = function() local serial_port = detect_serial_port() local config = load_config() print('Flashing firmware...') if type(config.firmware) == 'table' then for bin, offset in pairs(config.firmware) do exec('esptool.py --baud 115200 --port ' .. serial_port .. ' write_flash ' .. offset .. ' ' .. bin) end else local offset = (config.target == 'ESP32') and '0x10000' or '0x0' exec('esptool.py --baud 115200 --port ' .. serial_port .. ' write_flash ' .. offset .. ' ' .. config.firmware) end print('After flashing firmware, the filesystem may need to be formatted. This can take a while. Please be patient.') print() end }
-- This file is automatically generated, do not edit! -- Item data (c) Grinding Gear Games return { { affix = "", "(20-29)% more Monster Life", statOrder = { 1416 }, level = 0, group = "MapMonsterLife", types = { ["Map"] = true, }, }, { affix = "", "(30-39)% more Monster Life", statOrder = { 1416 }, level = 0, group = "MapMonsterLife", types = { ["Map"] = true, }, }, { affix = "", "(40-49)% more Monster Life", statOrder = { 1416 }, level = 0, group = "MapMonsterLife", types = { ["Map"] = true, }, }, { affix = "", "(50-59)% more Monster Life", statOrder = { 1416 }, level = 0, group = "MapMonsterLife", types = { ["Map"] = true, }, }, { affix = "", "(15-19)% increased Monster Damage", statOrder = { 1427 }, level = 0, group = "MapMonsterDamage", types = { ["Map"] = true, }, }, { affix = "", "(20-24)% increased Monster Damage", statOrder = { 1427 }, level = 0, group = "MapMonsterDamage", types = { ["Map"] = true, }, }, { affix = "", "(25-30)% increased Monster Damage", statOrder = { 1427 }, level = 0, group = "MapMonsterDamage", types = { ["Map"] = true, }, }, { affix = "", "(31-35)% increased Monster Damage", statOrder = { 1427 }, level = 0, group = "MapMonsterDamage", types = { ["Map"] = true, }, }, { affix = "", "Area is inhabited by Spiders", statOrder = { 4625 }, level = 0, group = "MapMonsterPacks", types = { ["Map"] = true, }, }, { affix = "", "Area is inhabited by Blackguards", statOrder = { 4620 }, level = 0, group = "MapMonsterPacks", types = { ["Map"] = true, }, }, { affix = "", "Area is inhabited by Bandits", statOrder = { 1376 }, level = 0, group = "MapMonsterPacks", types = { ["Map"] = true, }, }, { type = "Prefix", affix = "Ceremonial", "Area contains many Totems", statOrder = { 1373 }, level = 1, group = "MapTotems", types = { ["Map"] = true, }, }, { type = "Prefix", affix = "Anarchic", "Area is inhabited by 2 additional Rogue Exiles", statOrder = { 1386 }, level = 1, group = "MapMultipleExiles", types = { ["Map"] = true, }, }, { type = "Prefix", affix = "Otherworldly", "Slaying Enemies close together has a 13% chance to attract monsters from Beyond", statOrder = { 1644 }, level = 1, group = "MapBeyondLeagueRolled", types = { ["Map"] = true, }, }, { type = "Prefix", affix = "Twinned", "Area contains two Unique Bosses", statOrder = { 1461 }, level = 1, group = "MapTwoBosses", types = { ["Map"] = true, }, }, { type = "Prefix", affix = "Upgraded", "+(15-25) to maximum Life", statOrder = { 726 }, level = 15, group = "IncreasedLife", types = { ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(16-20)% to Fire Resistance", statOrder = { 760 }, level = 15, group = "FireResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(16-20)% to Cold Resistance", statOrder = { 764 }, level = 15, group = "ColdResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(16-20)% to Lightning Resistance", statOrder = { 767 }, level = 15, group = "LightningResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(15-20) to Strength", statOrder = { 434 }, level = 15, group = "Strength", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(15-20) to Dexterity", statOrder = { 435 }, level = 15, group = "Dexterity", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(15-20) to Intelligence", statOrder = { 436 }, level = 15, group = "Intelligence", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(21-28)% to Fire Resistance", statOrder = { 760 }, level = 30, group = "FireResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(29-35)% to Fire Resistance", statOrder = { 760 }, level = 50, group = "FireResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(21-28)% to Cold Resistance", statOrder = { 764 }, level = 30, group = "ColdResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(29-35)% to Cold Resistance", statOrder = { 764 }, level = 50, group = "ColdResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(21-28)% to Lightning Resistance", statOrder = { 767 }, level = 30, group = "LightningResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(29-35)% to Lightning Resistance", statOrder = { 767 }, level = 50, group = "LightningResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(10-12)% to Fire and Cold Resistances", statOrder = { 1797 }, level = 30, group = "FireAndColdResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(13-16)% to Fire and Cold Resistances", statOrder = { 1797 }, level = 50, group = "FireAndColdResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(17-20)% to Fire and Cold Resistances", statOrder = { 1797 }, level = 75, group = "FireAndColdResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(10-12)% to Cold and Lightning Resistances", statOrder = { 1799 }, level = 30, group = "ColdAndLightningResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(13-16)% to Cold and Lightning Resistances", statOrder = { 1799 }, level = 50, group = "ColdAndLightningResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(17-20)% to Cold and Lightning Resistances", statOrder = { 1799 }, level = 75, group = "ColdAndLightningResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(10-12)% to Fire and Lightning Resistances", statOrder = { 1798 }, level = 30, group = "FireAndLightningResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(13-16)% to Fire and Lightning Resistances", statOrder = { 1798 }, level = 50, group = "FireAndLightningResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(17-20)% to Fire and Lightning Resistances", statOrder = { 1798 }, level = 75, group = "FireAndLightningResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(5-8)% to all Elemental Resistances", statOrder = { 755 }, level = 30, group = "AllResistances", types = { ["Ring"] = true, ["Amulet"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(9-12)% to all Elemental Resistances", statOrder = { 755 }, level = 60, group = "AllResistances", types = { ["Ring"] = true, ["Amulet"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(21-25) to Strength", statOrder = { 434 }, level = 20, group = "Strength", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(26-30) to Strength", statOrder = { 434 }, level = 40, group = "Strength", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(21-25) to Dexterity", statOrder = { 435 }, level = 20, group = "Dexterity", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(26-30) to Dexterity", statOrder = { 435 }, level = 40, group = "Dexterity", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(21-25) to Intelligence", statOrder = { 436 }, level = 20, group = "Intelligence", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(26-30) to Intelligence", statOrder = { 436 }, level = 40, group = "Intelligence", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(6-9) to all Attributes", statOrder = { 433 }, level = 30, group = "AllAttributes", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(10-13) to all Attributes", statOrder = { 433 }, level = 50, group = "AllAttributes", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Quiver"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(10-14)% increased Movement Speed", statOrder = { 901 }, level = 1, group = "MovementVelocity", types = { ["Boots"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(15-19)% increased Movement Speed", statOrder = { 901 }, level = 40, group = "MovementVelocity", types = { ["Boots"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(20-24)% increased Movement Speed", statOrder = { 901 }, level = 68, group = "MovementVelocity", types = { ["Boots"] = true, }, }, { type = "Prefix", affix = "Upgraded", "+(26-40) to maximum Life", statOrder = { 726 }, level = 40, group = "IncreasedLife", types = { ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Prefix", affix = "Upgraded", "+(41-55) to maximum Life", statOrder = { 726 }, level = 68, group = "IncreasedLife", types = { ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Prefix", affix = "Upgraded", "+(56-70) to maximum Life", statOrder = { 726 }, level = 75, group = "IncreasedLife", types = { ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "+(71-85) to maximum Life", statOrder = { 726 }, level = 80, group = "IncreasedLife", types = { ["Body Armour"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(0.3-0.5)% of Physical Attack Damage Leeched as Life", statOrder = { 776 }, level = 30, group = "LifeLeech", types = { ["Ring"] = true, ["Amulet"] = true, ["Gloves"] = true, ["Quiver"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(0.6-0.8)% of Physical Attack Damage Leeched as Life", statOrder = { 776 }, level = 50, group = "LifeLeech", types = { ["Amulet"] = true, }, }, { type = "Suffix", affix = "of Craft", "(0.3-0.5)% of Physical Attack Damage Leeched as Life", statOrder = { 778 }, level = 30, group = "LifeLeech", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of Craft", "(0.5-0.8)% of Physical Attack Damage Leeched as Life", statOrder = { 778 }, level = 50, group = "LifeLeech", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Suffix", affix = "of Craft", "(0.2-0.4)% of Physical Attack Damage Leeched as Mana", statOrder = { 814 }, level = 70, group = "ManaLeech", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Upgraded", "+(25-34) to maximum Mana", statOrder = { 732 }, level = 20, group = "IncreasedMana", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Quiver"] = true, }, }, { type = "Prefix", affix = "Upgraded", "+(35-44) to maximum Mana", statOrder = { 732 }, level = 40, group = "IncreasedMana", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Quiver"] = true, }, }, { type = "Prefix", affix = "Upgraded", "+(45-54) to maximum Mana", statOrder = { 732 }, level = 60, group = "IncreasedMana", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "(20-30)% increased Mana Regeneration Rate", statOrder = { 736 }, level = 30, group = "ManaRegeneration", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Ring"] = true, ["Amulet"] = true, ["Shield"] = true, }, }, { type = "Suffix", affix = "of Craft", "(31-40)% increased Mana Regeneration Rate", statOrder = { 736 }, level = 50, group = "ManaRegeneration", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Ring"] = true, ["Amulet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(40-59)% increased Physical Damage", statOrder = { 473 }, level = 20, group = "LocalPhysicalDamagePercent", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(60-79)% increased Physical Damage", statOrder = { 473 }, level = 40, group = "LocalPhysicalDamagePercent", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(80-99)% increased Physical Damage", statOrder = { 473 }, level = 60, group = "LocalPhysicalDamagePercent", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(100-129)% increased Physical Damage", statOrder = { 473 }, level = 80, group = "LocalPhysicalDamagePercent", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(37-51)% increased Spell Damage", statOrder = { 465 }, level = 20, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(52-66)% increased Spell Damage", statOrder = { 465 }, level = 40, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(67-81)% increased Spell Damage", statOrder = { 465 }, level = 60, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(82-99)% increased Spell Damage", statOrder = { 465 }, level = 80, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(25-34)% increased Spell Damage", statOrder = { 465 }, level = 20, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(35-44)% increased Spell Damage", statOrder = { 465 }, level = 40, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(45-54)% increased Spell Damage", statOrder = { 465 }, level = 60, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(55-66)% increased Spell Damage", statOrder = { 465 }, level = 80, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(11-20)% increased Damage over Time", statOrder = { 453 }, level = 30, group = "DegenerationDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(21-30)% increased Damage over Time", statOrder = { 453 }, level = 50, group = "DegenerationDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(15-23)% increased Elemental Damage with Attack Skills", statOrder = { 3848 }, level = 30, group = "IncreasedWeaponElementalDamagePercent", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(24-32)% increased Elemental Damage with Attack Skills", statOrder = { 3848 }, level = 50, group = "IncreasedWeaponElementalDamagePercent", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Quiver"] = true, ["Belt"] = true, }, }, { type = "Suffix", affix = "of Craft", "(8-10)% increased Attack Speed", statOrder = { 584 }, level = 30, group = "IncreasedAttackSpeed", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of Craft", "(11-15)% increased Attack Speed", statOrder = { 584 }, level = 50, group = "IncreasedAttackSpeed", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Suffix", affix = "of Craft", "(16-20)% increased Attack Speed", statOrder = { 584 }, level = 75, group = "IncreasedAttackSpeed", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Suffix", affix = "of Craft", "(11-13)% increased Attack Speed", statOrder = { 584 }, level = 75, group = "IncreasedAttackSpeed", types = { ["Wand"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of Craft", "(7-12)% increased Attack Speed", statOrder = { 581 }, level = 30, group = "IncreasedAttackSpeed", types = { ["Gloves"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Craft", "(12-15)% increased Cast Speed", statOrder = { 617 }, level = 30, group = "IncreasedCastSpeed", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Suffix", affix = "of Craft", "(16-20)% increased Cast Speed", statOrder = { 617 }, level = 50, group = "IncreasedCastSpeed", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Suffix", affix = "of Craft", "(21-28)% increased Cast Speed", statOrder = { 617 }, level = 75, group = "IncreasedCastSpeed", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Suffix", affix = "of Craft", "(9-11)% increased Cast Speed", statOrder = { 617 }, level = 30, group = "IncreasedCastSpeed", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Suffix", affix = "of Craft", "(12-14)% increased Cast Speed", statOrder = { 617 }, level = 50, group = "IncreasedCastSpeed", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Suffix", affix = "of Craft", "(15-18)% increased Cast Speed", statOrder = { 617 }, level = 75, group = "IncreasedCastSpeed", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(37-51)% increased Fire Damage", statOrder = { 536 }, level = 20, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(52-66)% increased Fire Damage", statOrder = { 536 }, level = 40, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(67-81)% increased Fire Damage", statOrder = { 536 }, level = 68, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(25-34)% increased Fire Damage", statOrder = { 536 }, level = 20, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(35-44)% increased Fire Damage", statOrder = { 536 }, level = 40, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(45-54)% increased Fire Damage", statOrder = { 536 }, level = 68, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Suffix", affix = "of Craft", "(9-12)% increased Fire Damage", statOrder = { 536 }, level = 20, group = "FireDamagePercentage", types = { ["Ring"] = true, ["Amulet"] = true, ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of Craft", "(13-16)% increased Fire Damage", statOrder = { 536 }, level = 40, group = "FireDamagePercentage", types = { ["Ring"] = true, ["Amulet"] = true, ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(37-51)% increased Cold Damage", statOrder = { 543 }, level = 20, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(52-66)% increased Cold Damage", statOrder = { 543 }, level = 40, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(67-81)% increased Cold Damage", statOrder = { 543 }, level = 68, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(25-34)% increased Cold Damage", statOrder = { 543 }, level = 20, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(35-44)% increased Cold Damage", statOrder = { 543 }, level = 40, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(45-54)% increased Cold Damage", statOrder = { 543 }, level = 68, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Suffix", affix = "of Craft", "(9-12)% increased Cold Damage", statOrder = { 543 }, level = 20, group = "ColdDamagePercentage", types = { ["Ring"] = true, ["Amulet"] = true, ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of Craft", "(13-16)% increased Cold Damage", statOrder = { 543 }, level = 40, group = "ColdDamagePercentage", types = { ["Ring"] = true, ["Amulet"] = true, ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(37-51)% increased Lightning Damage", statOrder = { 552 }, level = 20, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(52-66)% increased Lightning Damage", statOrder = { 552 }, level = 40, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(67-81)% increased Lightning Damage", statOrder = { 552 }, level = 68, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(25-34)% increased Lightning Damage", statOrder = { 552 }, level = 20, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(35-44)% increased Lightning Damage", statOrder = { 552 }, level = 40, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(45-54)% increased Lightning Damage", statOrder = { 552 }, level = 68, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Suffix", affix = "of Craft", "(9-12)% increased Lightning Damage", statOrder = { 552 }, level = 20, group = "LightningDamagePercentage", types = { ["Ring"] = true, ["Amulet"] = true, ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of Craft", "(13-16)% increased Lightning Damage", statOrder = { 552 }, level = 40, group = "LightningDamagePercentage", types = { ["Ring"] = true, ["Amulet"] = true, ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(37-51)% increased Chaos Damage", statOrder = { 558 }, level = 20, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(52-66)% increased Chaos Damage", statOrder = { 558 }, level = 40, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(67-81)% increased Chaos Damage", statOrder = { 558 }, level = 68, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(25-34)% increased Chaos Damage", statOrder = { 558 }, level = 30, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(35-44)% increased Chaos Damage", statOrder = { 558 }, level = 50, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(45-54)% increased Chaos Damage", statOrder = { 558 }, level = 68, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Suffix", affix = "of Craft", "(9-12)% increased Chaos Damage", statOrder = { 558 }, level = 30, group = "IncreasedChaosDamage", types = { ["Ring"] = true, ["Amulet"] = true, ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of Craft", "(13-16)% increased Chaos Damage", statOrder = { 558 }, level = 50, group = "IncreasedChaosDamage", types = { ["Ring"] = true, ["Amulet"] = true, ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(91-120) to Accuracy Rating", statOrder = { 1123 }, level = 20, group = "IncreasedAccuracy", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(121-200) to Accuracy Rating", statOrder = { 1123 }, level = 40, group = "IncreasedAccuracy", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(201-300) to Accuracy Rating", statOrder = { 1123 }, level = 68, group = "IncreasedAccuracy", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(91-120) to Accuracy Rating", statOrder = { 604 }, level = 20, group = "IncreasedAccuracy", types = { ["Gloves"] = true, ["Helmet"] = true, ["Ring"] = true, ["Amulet"] = true, ["Quiver"] = true, ["Shield"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(121-150) to Accuracy Rating", statOrder = { 604 }, level = 40, group = "IncreasedAccuracy", types = { ["Gloves"] = true, ["Helmet"] = true, ["Ring"] = true, ["Amulet"] = true, ["Quiver"] = true, ["Shield"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(151-220) to Accuracy Rating", statOrder = { 604 }, level = 68, group = "IncreasedAccuracy", types = { ["Gloves"] = true, ["Helmet"] = true, ["Ring"] = true, ["Amulet"] = true, ["Quiver"] = true, ["Shield"] = true, }, }, { type = "Suffix", affix = "of Craft", "(9-12)% increased Global Physical Damage", statOrder = { 472 }, level = 30, group = "PhysicalDamagePercent", types = { ["Shield"] = true, ["Amulet"] = true, }, }, { type = "Suffix", affix = "of Craft", "(13-16)% increased Global Physical Damage", statOrder = { 472 }, level = 50, group = "PhysicalDamagePercent", types = { ["Shield"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(34-45)% increased Armour", statOrder = { 701 }, level = 40, group = "DefencesPercent", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(45-55)% increased Armour", statOrder = { 701 }, level = 60, group = "DefencesPercent", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(56-74)% increased Armour", statOrder = { 701 }, level = 75, group = "DefencesPercent", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "+(40-50) to Armour", statOrder = { 699 }, level = 30, group = "BaseLocalDefences", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "+(60-80) to Armour", statOrder = { 699 }, level = 50, group = "BaseLocalDefences", types = { ["Body Armour"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "+(180-250) to Armour", statOrder = { 699 }, level = 68, group = "BaseLocalDefences", types = { ["Body Armour"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(34-45)% increased Evasion Rating", statOrder = { 710 }, level = 40, group = "DefencesPercent", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(45-55)% increased Evasion Rating", statOrder = { 710 }, level = 60, group = "DefencesPercent", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(56-74)% increased Evasion Rating", statOrder = { 710 }, level = 75, group = "DefencesPercent", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "+(40-50) to Evasion Rating", statOrder = { 708 }, level = 30, group = "BaseLocalDefences", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "+(60-80) to Evasion Rating", statOrder = { 708 }, level = 50, group = "BaseLocalDefences", types = { ["Body Armour"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "+(180-250) to Evasion Rating", statOrder = { 708 }, level = 68, group = "BaseLocalDefences", types = { ["Body Armour"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(34-45)% increased Energy Shield", statOrder = { 719 }, level = 40, group = "DefencesPercent", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(45-55)% increased Energy Shield", statOrder = { 719 }, level = 60, group = "DefencesPercent", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(56-74)% increased Energy Shield", statOrder = { 719 }, level = 75, group = "DefencesPercent", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "+(27-34) to maximum Energy Shield", statOrder = { 718 }, level = 30, group = "BaseLocalDefences", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "+(35-45) to maximum Energy Shield", statOrder = { 718 }, level = 50, group = "BaseLocalDefences", types = { ["Body Armour"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "+(56-69) to maximum Energy Shield", statOrder = { 718 }, level = 68, group = "BaseLocalDefences", types = { ["Body Armour"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(10-14)% increased maximum Energy Shield", statOrder = { 720 }, level = 60, group = "EnergyShieldPercent", types = { ["Amulet"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(15-20)% increased maximum Energy Shield", statOrder = { 720 }, level = 75, group = "EnergyShieldPercent", types = { ["Amulet"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(34-45)% increased Armour and Evasion", statOrder = { 713 }, level = 40, group = "DefencesPercent", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(45-55)% increased Armour and Evasion", statOrder = { 713 }, level = 60, group = "DefencesPercent", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(56-74)% increased Armour and Evasion", statOrder = { 713 }, level = 75, group = "DefencesPercent", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(34-45)% increased Armour and Energy Shield", statOrder = { 712 }, level = 40, group = "DefencesPercent", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(45-55)% increased Armour and Energy Shield", statOrder = { 712 }, level = 60, group = "DefencesPercent", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(56-74)% increased Armour and Energy Shield", statOrder = { 712 }, level = 75, group = "DefencesPercent", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(34-45)% increased Evasion and Energy Shield", statOrder = { 714 }, level = 40, group = "DefencesPercent", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(45-55)% increased Evasion and Energy Shield", statOrder = { 714 }, level = 60, group = "DefencesPercent", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(56-74)% increased Evasion and Energy Shield", statOrder = { 714 }, level = 75, group = "DefencesPercent", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (16-18) to (28-35) Fire Damage", statOrder = { 539 }, level = 20, group = "FireDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (33-40) to (63-73) Fire Damage", statOrder = { 539 }, level = 40, group = "FireDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (52-62) to (95-110) Fire Damage", statOrder = { 539 }, level = 68, group = "FireDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (11-12) to (19-23) Fire Damage", statOrder = { 539 }, level = 20, group = "FireDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (22-27) to (42-49) Fire Damage", statOrder = { 539 }, level = 40, group = "FireDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (35-41) to (63-73) Fire Damage", statOrder = { 539 }, level = 68, group = "FireDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (8-11) to (16-20) Fire Damage to Attacks", statOrder = { 538 }, level = 20, group = "FireDamage", types = { ["Ring"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (12-17) to (26-30) Fire Damage to Attacks", statOrder = { 538 }, level = 40, group = "FireDamage", types = { ["Ring"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (16-18) to (28-35) Cold Damage", statOrder = { 546 }, level = 20, group = "ColdDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (33-40) to (63-73) Cold Damage", statOrder = { 546 }, level = 40, group = "ColdDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (52-62) to (95-110) Cold Damage", statOrder = { 546 }, level = 68, group = "ColdDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (11-12) to (19-23) Cold Damage", statOrder = { 546 }, level = 20, group = "ColdDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (22-27) to (42-49) Cold Damage", statOrder = { 546 }, level = 40, group = "ColdDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (35-41) to (63-73) Cold Damage", statOrder = { 546 }, level = 68, group = "ColdDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (6-8) to (14-18) Cold Damage to Attacks", statOrder = { 545 }, level = 20, group = "ColdDamage", types = { ["Ring"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (11-15) to (23-27) Cold Damage to Attacks", statOrder = { 545 }, level = 40, group = "ColdDamage", types = { ["Ring"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (2-4) to (40-55) Lightning Damage", statOrder = { 555 }, level = 20, group = "LightningDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (5-8) to (90-120) Lightning Damage", statOrder = { 555 }, level = 40, group = "LightningDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (9-12) to (140-170) Lightning Damage", statOrder = { 555 }, level = 68, group = "LightningDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (1-3) to (27-37) Lightning Damage", statOrder = { 555 }, level = 20, group = "LightningDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (3-5) to (60-80) Lightning Damage", statOrder = { 555 }, level = 40, group = "LightningDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (6-8) to (100-113) Lightning Damage", statOrder = { 555 }, level = 68, group = "LightningDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (1-4) to (32-36) Lightning Damage to Attacks", statOrder = { 554 }, level = 20, group = "LightningDamage", types = { ["Ring"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (1-5) to (41-48) Lightning Damage to Attacks", statOrder = { 554 }, level = 40, group = "LightningDamage", types = { ["Ring"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (9-12) to (18-21) Physical Damage", statOrder = { 490 }, level = 20, group = "PhysicalDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (11-15) to (23-27) Physical Damage", statOrder = { 490 }, level = 40, group = "PhysicalDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (18-24) to (36-42) Physical Damage", statOrder = { 490 }, level = 68, group = "PhysicalDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (6-8) to (13-15) Physical Damage", statOrder = { 490 }, level = 20, group = "PhysicalDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (7-11) to (16-19) Physical Damage", statOrder = { 490 }, level = 40, group = "PhysicalDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (13-17) to (26-30) Physical Damage", statOrder = { 490 }, level = 68, group = "PhysicalDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (3-5) to (6-8) Physical Damage to Attacks", statOrder = { 482 }, level = 20, group = "PhysicalDamage", types = { ["Ring"] = true, ["Amulet"] = true, ["Quiver"] = true, ["Gloves"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (5-7) to (8-10) Physical Damage to Attacks", statOrder = { 482 }, level = 40, group = "PhysicalDamage", types = { ["Ring"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (6-8) to (14-18) Chaos Damage to Attacks", statOrder = { 560 }, level = 30, group = "ChaosDamage", types = { ["Ring"] = true, ["Amulet"] = true, ["Quiver"] = true, ["Gloves"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (11-15) to (23-27) Chaos Damage to Attacks", statOrder = { 560 }, level = 68, group = "ChaosDamage", types = { ["Ring"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (16-21) to (31-36) Fire Damage to Spells", statOrder = { 575 }, level = 30, group = "SpellAddedElementalDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (28-38) to (57-66) Fire Damage to Spells", statOrder = { 575 }, level = 50, group = "SpellAddedElementalDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (41-55) to (83-96) Fire Damage to Spells", statOrder = { 575 }, level = 68, group = "SpellAddedElementalDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (12-16) to (23-27) Fire Damage to Spells", statOrder = { 575 }, level = 30, group = "SpellAddedElementalDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (21-28) to (42-49) Fire Damage to Spells", statOrder = { 575 }, level = 50, group = "SpellAddedElementalDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (31-41) to (61-71) Fire Damage to Spells", statOrder = { 575 }, level = 68, group = "SpellAddedElementalDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (14-19) to (28-33) Cold Damage to Spells", statOrder = { 576 }, level = 30, group = "SpellAddedElementalDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (26-34) to (52-60) Cold Damage to Spells", statOrder = { 576 }, level = 50, group = "SpellAddedElementalDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (38-50) to (75-88) Cold Damage to Spells", statOrder = { 576 }, level = 68, group = "SpellAddedElementalDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (10-13) to (19-22) Cold Damage to Spells", statOrder = { 576 }, level = 30, group = "SpellAddedElementalDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (17-23) to (34-40) Cold Damage to Spells", statOrder = { 576 }, level = 50, group = "SpellAddedElementalDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (25-33) to (50-58) Cold Damage to Spells", statOrder = { 576 }, level = 68, group = "SpellAddedElementalDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (1-5) to (59-63) Lightning Damage to Spells", statOrder = { 577 }, level = 30, group = "SpellAddedElementalDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (3-9) to (109-115) Lightning Damage to Spells", statOrder = { 577 }, level = 50, group = "SpellAddedElementalDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (4-13) to (159-168) Lightning Damage to Spells", statOrder = { 577 }, level = 68, group = "SpellAddedElementalDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (1-4) to (39-42) Lightning Damage to Spells", statOrder = { 577 }, level = 30, group = "SpellAddedElementalDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (2-6) to (73-77) Lightning Damage to Spells", statOrder = { 577 }, level = 50, group = "SpellAddedElementalDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Adds (3-9) to (106-112) Lightning Damage to Spells", statOrder = { 577 }, level = 68, group = "SpellAddedElementalDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Suffix", affix = "of Craft", "(17-19)% increased Critical Strike Chance", statOrder = { 636 }, level = 40, group = "CriticalStrikeChanceIncrease", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of Craft", "(20-24)% increased Critical Strike Chance", statOrder = { 636 }, level = 60, group = "CriticalStrikeChanceIncrease", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of Craft", "(25-27)% increased Critical Strike Chance", statOrder = { 636 }, level = 75, group = "CriticalStrikeChanceIncrease", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(17-19)% to Global Critical Strike Multiplier", statOrder = { 660 }, level = 40, group = "CriticalStrikeMultiplier", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(20-24)% to Global Critical Strike Multiplier", statOrder = { 660 }, level = 60, group = "CriticalStrikeMultiplier", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(25-28)% to Global Critical Strike Multiplier", statOrder = { 660 }, level = 75, group = "CriticalStrikeMultiplier", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of Craft", "(45-75)% increased Critical Strike Chance for Spells", statOrder = { 631 }, level = 40, group = "SpellCriticalStrikeChanceIncrease", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Suffix", affix = "of Craft", "(76-105)% increased Critical Strike Chance for Spells", statOrder = { 631 }, level = 60, group = "SpellCriticalStrikeChanceIncrease", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Suffix", affix = "of Craft", "(30-49)% increased Critical Strike Chance for Spells", statOrder = { 631 }, level = 40, group = "SpellCriticalStrikeChanceIncrease", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Suffix", affix = "of Craft", "(50-69)% increased Critical Strike Chance for Spells", statOrder = { 631 }, level = 60, group = "SpellCriticalStrikeChanceIncrease", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Suffix", affix = "of Craft", "(17-21)% increased Global Critical Strike Chance", statOrder = { 632 }, level = 50, group = "CriticalStrikeChanceIncrease", types = { ["Quiver"] = true, ["Amulet"] = true, }, }, { type = "Suffix", affix = "of Craft", "(22-27)% increased Global Critical Strike Chance", statOrder = { 632 }, level = 68, group = "CriticalStrikeChanceIncrease", types = { ["Quiver"] = true, ["Amulet"] = true, }, }, { type = "Suffix", affix = "of Craft", "(5-10)% increased Flask Effect Duration", statOrder = { 1280 }, level = 50, group = "BeltFlaskDuration", types = { ["Belt"] = true, }, }, { type = "Suffix", affix = "of Craft", "(11-15)% increased Flask Effect Duration", statOrder = { 1280 }, level = 68, group = "BeltFlaskDuration", types = { ["Belt"] = true, }, }, { type = "Suffix", affix = "of Craft", "(15-20)% chance to Avoid being Stunned", statOrder = { 943 }, level = 60, group = "AvoidStun", types = { ["Helmet"] = true, ["Gloves"] = true, }, }, { type = "Suffix", affix = "of Craft", "(21-25)% chance to Avoid being Stunned", statOrder = { 943 }, level = 75, group = "AvoidStun", types = { ["Helmet"] = true, ["Gloves"] = true, }, }, { type = "Suffix", affix = "of Craft", "(15-20)% chance to Avoid Elemental Ailments", statOrder = { 935 }, level = 60, group = "AvoidElementalStatusAilments", types = { ["Helmet"] = true, ["Gloves"] = true, }, }, { type = "Suffix", affix = "of Craft", "(21-25)% chance to Avoid Elemental Ailments", statOrder = { 935 }, level = 75, group = "AvoidElementalStatusAilments", types = { ["Helmet"] = true, ["Gloves"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(2-3)% Chance to Block", statOrder = { 1334 }, level = 50, group = "IncreasedShieldBlockPercentage", types = { ["Shield"] = true, }, }, { type = "Suffix", affix = "of Craft", "+(4-5)% Chance to Block", statOrder = { 1334 }, level = 68, group = "IncreasedShieldBlockPercentage", types = { ["Shield"] = true, }, }, { type = "Suffix", affix = "of Craft", "(2-3)% Chance to Block Spell Damage", statOrder = { 423 }, level = 50, group = "SpellBlockPercentage", types = { ["Shield"] = true, }, }, { type = "Suffix", affix = "of Craft", "(4-5)% Chance to Block Spell Damage", statOrder = { 423 }, level = 68, group = "SpellBlockPercentage", types = { ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(12-17)% faster start of Energy Shield Recharge", statOrder = { 721 }, level = 40, group = "EnergyShieldDelay", types = { ["Ring"] = true, }, }, { type = "Prefix", affix = "Upgraded", "(18-24)% faster start of Energy Shield Recharge", statOrder = { 721 }, level = 60, group = "EnergyShieldDelay", types = { ["Ring"] = true, }, }, { type = "Suffix", affix = "Upgraded", "5% reduced Damage taken from Damage Over Time", statOrder = { 1330 }, level = 80, group = "DegenDamageTaken", types = { ["Shield"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Item drops on Death if Equipped by an Animated Guardian", statOrder = { 1583 }, level = 68, group = "ItemDropsOnGuardianDeath", types = { ["Body Armour"] = true, }, }, { type = "Suffix", affix = "of Craft", "Minions have (11-15)% increased maximum Life", statOrder = { 871 }, level = 40, group = "MinionLife", types = { ["Helmet"] = true, }, }, { type = "Suffix", affix = "of Craft", "Minions have (16-20)% increased maximum Life", statOrder = { 871 }, level = 68, group = "MinionLife", types = { ["Helmet"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Minions deal (10-20)% increased Damage", statOrder = { 1073 }, level = 40, group = "MinionDamage", types = { ["Gloves"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Minions deal (14-25)% increased Damage", statOrder = { 1073 }, level = 30, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Minions deal (26-38)% increased Damage", statOrder = { 1073 }, level = 60, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Minions deal (39-50)% increased Damage", statOrder = { 1073 }, level = 75, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Minions deal (9-16)% increased Damage", statOrder = { 1073 }, level = 30, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Minions deal (17-25)% increased Damage", statOrder = { 1073 }, level = 60, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Upgraded", "Minions deal (26-33)% increased Damage", statOrder = { 1073 }, level = 75, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Suffix", affix = "of Craft", "(6-8)% increased Trap Throwing Speed", statOrder = { 1022 }, level = 50, group = "IncreasedCastSpeed", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of Craft", "(9-12)% increased Trap Throwing Speed", statOrder = { 1022 }, level = 68, group = "IncreasedCastSpeed", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of Craft", "(6-8)% increased Mine Laying Speed", statOrder = { 1023 }, level = 50, group = "IncreasedCastSpeed", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of Craft", "(9-12)% increased Mine Laying Speed", statOrder = { 1023 }, level = 68, group = "IncreasedCastSpeed", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of Craft", "(3-5)% increased Attack Speed", statOrder = { 581 }, level = 30, group = "IncreasedAttackSpeed", types = { ["Shield"] = true, ["Ring"] = true, }, }, { type = "Suffix", affix = "of Craft", "(6-8)% increased Cast Speed", statOrder = { 617 }, level = 30, group = "IncreasedCastSpeed", types = { ["Shield"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Chosen", "(81-85)% increased Physical Damage", "(13-15)% chance to Impale Enemies on Hit with Attacks", statOrder = { 473, 4200 }, level = 60, group = "LocalPhysicalDamagePercent", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "(86-94)% increased Physical Damage", "(16-17)% chance to Impale Enemies on Hit with Attacks", statOrder = { 473, 4200 }, level = 72, group = "LocalPhysicalDamagePercent", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "(95-105)% increased Physical Damage", "(18-20)% chance to Impale Enemies on Hit with Attacks", statOrder = { 473, 4200 }, level = 81, group = "LocalPhysicalDamagePercent", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "(81-85)% increased Physical Damage", "(13-15)% chance to cause Bleeding on Hit", statOrder = { 473, 1512 }, level = 60, group = "LocalPhysicalDamagePercent", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "(86-94)% increased Physical Damage", "(16-17)% chance to cause Bleeding on Hit", statOrder = { 473, 1512 }, level = 72, group = "LocalPhysicalDamagePercent", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "(95-105)% increased Physical Damage", "(18-20)% chance to cause Bleeding on Hit", statOrder = { 473, 1512 }, level = 81, group = "LocalPhysicalDamagePercent", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "(81-85)% increased Physical Damage", "(13-15)% chance to Blind Enemies on hit", statOrder = { 473, 1347 }, level = 60, group = "LocalPhysicalDamagePercent", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "(86-94)% increased Physical Damage", "(16-17)% chance to Blind Enemies on hit", statOrder = { 473, 1347 }, level = 72, group = "LocalPhysicalDamagePercent", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "(95-105)% increased Physical Damage", "(18-20)% chance to Blind Enemies on hit", statOrder = { 473, 1347 }, level = 81, group = "LocalPhysicalDamagePercent", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "(81-85)% increased Physical Damage", "(13-15)% chance to Poison on Hit", statOrder = { 473, 4276 }, level = 60, group = "LocalPhysicalDamagePercent", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "(86-94)% increased Physical Damage", "(16-17)% chance to Poison on Hit", statOrder = { 473, 4276 }, level = 72, group = "LocalPhysicalDamagePercent", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "(95-105)% increased Physical Damage", "(18-20)% chance to Poison on Hit", statOrder = { 473, 4276 }, level = 81, group = "LocalPhysicalDamagePercent", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "(60-64)% increased Fire Damage", "(15-17)% chance to Ignite", statOrder = { 536, 1125 }, level = 60, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "(65-72)% increased Fire Damage", "(18-20)% chance to Ignite", statOrder = { 536, 1125 }, level = 72, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "(73-80)% increased Fire Damage", "(21-23)% chance to Ignite", statOrder = { 536, 1125 }, level = 81, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "(36-41)% increased Fire Damage", "7% chance to Ignite", statOrder = { 536, 1125 }, level = 60, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "(42-50)% increased Fire Damage", "(8-9)% chance to Ignite", statOrder = { 536, 1125 }, level = 72, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "(51-60)% increased Fire Damage", "(10-11)% chance to Ignite", statOrder = { 536, 1125 }, level = 81, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "(60-64)% increased Cold Damage", "(15-17)% chance to Freeze", statOrder = { 543, 1128 }, level = 60, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "(65-72)% increased Cold Damage", "(18-20)% chance to Freeze", statOrder = { 543, 1128 }, level = 72, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "(73-80)% increased Cold Damage", "(21-23)% chance to Freeze", statOrder = { 543, 1128 }, level = 81, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "(36-41)% increased Cold Damage", "7% chance to Freeze", statOrder = { 543, 1128 }, level = 60, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "(42-50)% increased Cold Damage", "(8-9)% chance to Freeze", statOrder = { 543, 1128 }, level = 72, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "(51-60)% increased Cold Damage", "(10-11)% chance to Freeze", statOrder = { 543, 1128 }, level = 81, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "(60-64)% increased Lightning Damage", "(15-17)% chance to Shock", statOrder = { 552, 1132 }, level = 60, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "(65-72)% increased Lightning Damage", "(18-20)% chance to Shock", statOrder = { 552, 1132 }, level = 72, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "(73-80)% increased Lightning Damage", "(21-23)% chance to Shock", statOrder = { 552, 1132 }, level = 81, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "(36-41)% increased Lightning Damage", "7% chance to Shock", statOrder = { 552, 1132 }, level = 60, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "(42-50)% increased Lightning Damage", "(8-9)% chance to Shock", statOrder = { 552, 1132 }, level = 72, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "(51-60)% increased Lightning Damage", "(10-11)% chance to Shock", statOrder = { 552, 1132 }, level = 81, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "(53-60)% increased Chaos Damage", "Chaos Skills have (15-17)% increased Skill Effect Duration", statOrder = { 558, 980 }, level = 60, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "(61-68)% increased Chaos Damage", "Chaos Skills have (18-20)% increased Skill Effect Duration", statOrder = { 558, 980 }, level = 72, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "(69-75)% increased Chaos Damage", "Chaos Skills have (21-23)% increased Skill Effect Duration", statOrder = { 558, 980 }, level = 81, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "(35-39)% increased Chaos Damage", "Chaos Skills have (7-8)% increased Skill Effect Duration", statOrder = { 558, 980 }, level = 60, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "(40-45)% increased Chaos Damage", "Chaos Skills have (9-10)% increased Skill Effect Duration", statOrder = { 558, 980 }, level = 72, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "(46-50)% increased Chaos Damage", "Chaos Skills have (11-12)% increased Skill Effect Duration", statOrder = { 558, 980 }, level = 81, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "(60-64)% increased Spell Damage", "(16-20)% increased Mana Regeneration Rate", statOrder = { 465, 736 }, level = 60, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Chosen", "(65-72)% increased Spell Damage", "(21-25)% increased Mana Regeneration Rate", statOrder = { 465, 736 }, level = 72, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Chosen", "(73-80)% increased Spell Damage", "(26-30)% increased Mana Regeneration Rate", statOrder = { 465, 736 }, level = 81, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Chosen", "(36-41)% increased Spell Damage", "(7-9)% increased Mana Regeneration Rate", statOrder = { 465, 736 }, level = 60, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "(42-50)% increased Spell Damage", "(10-12)% increased Mana Regeneration Rate", statOrder = { 465, 736 }, level = 72, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "(51-60)% increased Spell Damage", "(13-15)% increased Mana Regeneration Rate", statOrder = { 465, 736 }, level = 81, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "(53-58)% increased Spell Damage", "Gain (3-4)% of Non-Chaos Damage as extra Chaos Damage", statOrder = { 465, 4927 }, level = 60, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Chosen", "(59-66)% increased Spell Damage", "Gain (5-6)% of Non-Chaos Damage as extra Chaos Damage", statOrder = { 465, 4927 }, level = 72, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Chosen", "(67-75)% increased Spell Damage", "Gain (7-8)% of Non-Chaos Damage as extra Chaos Damage", statOrder = { 465, 4927 }, level = 81, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Chosen", "(38-40)% increased Spell Damage", "Gain 2% of Non-Chaos Damage as extra Chaos Damage", statOrder = { 465, 4927 }, level = 60, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "(41-45)% increased Spell Damage", "Gain 3% of Non-Chaos Damage as extra Chaos Damage", statOrder = { 465, 4927 }, level = 72, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "(46-50)% increased Spell Damage", "Gain 4% of Non-Chaos Damage as extra Chaos Damage", statOrder = { 465, 4927 }, level = 81, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "Minions have (26-32)% increased maximum Life", "Minions deal (26-32)% increased Damage", statOrder = { 871, 1073 }, level = 60, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "Minions have (33-38)% increased maximum Life", "Minions deal (33-38)% increased Damage", statOrder = { 871, 1073 }, level = 72, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "Minions have (39-45)% increased maximum Life", "Minions deal (39-45)% increased Damage", statOrder = { 871, 1073 }, level = 81, group = "WeaponCasterDamagePrefix", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "Minions have (16-19)% increased maximum Life", "Minions deal (16-19)% increased Damage", statOrder = { 871, 1073 }, level = 60, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "Minions have (20-24)% increased maximum Life", "Minions deal (20-24)% increased Damage", statOrder = { 871, 1073 }, level = 72, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "Minions have (25-28)% increased maximum Life", "Minions deal (25-28)% increased Damage", statOrder = { 871, 1073 }, level = 81, group = "WeaponCasterDamagePrefix", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Suffix", affix = "of the Order", "Minions have (19-21)% increased Attack Speed", "Minions have (19-21)% increased Cast Speed", statOrder = { 1904, 1905 }, level = 60, group = "IncreasedCastSpeed", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "Minions have (22-24)% increased Attack Speed", "Minions have (22-24)% increased Cast Speed", statOrder = { 1904, 1905 }, level = 72, group = "IncreasedCastSpeed", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "Minions have (25-28)% increased Attack Speed", "Minions have (25-28)% increased Cast Speed", statOrder = { 1904, 1905 }, level = 81, group = "IncreasedCastSpeed", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "Minions have (10-11)% increased Attack Speed", "Minions have (10-11)% increased Cast Speed", statOrder = { 1904, 1905 }, level = 60, group = "IncreasedCastSpeed", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Suffix", affix = "of the Order", "Minions have (12-13)% increased Attack Speed", "Minions have (12-13)% increased Cast Speed", statOrder = { 1904, 1905 }, level = 72, group = "IncreasedCastSpeed", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Suffix", affix = "of the Order", "Minions have (14-15)% increased Attack Speed", "Minions have (14-15)% increased Cast Speed", statOrder = { 1904, 1905 }, level = 81, group = "IncreasedCastSpeed", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(28-30)% to Non-Ailment Chaos Damage over Time Multiplier", statOrder = { 3644 }, level = 60, group = "DamageOverTimeMultiplier", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(31-35)% to Non-Ailment Chaos Damage over Time Multiplier", statOrder = { 3644 }, level = 72, group = "DamageOverTimeMultiplier", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(36-40)% to Non-Ailment Chaos Damage over Time Multiplier", statOrder = { 3644 }, level = 81, group = "DamageOverTimeMultiplier", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(14-15)% to Non-Ailment Chaos Damage over Time Multiplier", statOrder = { 3644 }, level = 60, group = "DamageOverTimeMultiplier", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(16-17)% to Non-Ailment Chaos Damage over Time Multiplier", statOrder = { 3644 }, level = 72, group = "DamageOverTimeMultiplier", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(18-20)% to Non-Ailment Chaos Damage over Time Multiplier", statOrder = { 3644 }, level = 81, group = "DamageOverTimeMultiplier", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(28-30)% to Cold Damage over Time Multiplier", statOrder = { 3681 }, level = 60, group = "DamageOverTimeMultiplier", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(31-35)% to Cold Damage over Time Multiplier", statOrder = { 3681 }, level = 72, group = "DamageOverTimeMultiplier", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(36-40)% to Cold Damage over Time Multiplier", statOrder = { 3681 }, level = 81, group = "DamageOverTimeMultiplier", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(14-15)% to Cold Damage over Time Multiplier", statOrder = { 3681 }, level = 60, group = "DamageOverTimeMultiplier", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(16-17)% to Cold Damage over Time Multiplier", statOrder = { 3681 }, level = 72, group = "DamageOverTimeMultiplier", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(18-20)% to Cold Damage over Time Multiplier", statOrder = { 3681 }, level = 81, group = "DamageOverTimeMultiplier", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "Attacks with this Weapon Penetrate (10-11)% Elemental Resistances", statOrder = { 2743 }, level = 60, group = "LocalAttackReduceEnemyElementalResistance", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "Attacks with this Weapon Penetrate (12-13)% Elemental Resistances", statOrder = { 2743 }, level = 72, group = "LocalAttackReduceEnemyElementalResistance", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "Attacks with this Weapon Penetrate (14-16)% Elemental Resistances", statOrder = { 2743 }, level = 81, group = "LocalAttackReduceEnemyElementalResistance", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "Attacks with this Weapon Penetrate (10-11)% Chaos Resistance", statOrder = { 4211 }, level = 60, group = "ChaosPenetrationWithAttacks", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "Attacks with this Weapon Penetrate (12-13)% Chaos Resistance", statOrder = { 4211 }, level = 72, group = "ChaosPenetrationWithAttacks", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "Attacks with this Weapon Penetrate (14-16)% Chaos Resistance", statOrder = { 4211 }, level = 81, group = "ChaosPenetrationWithAttacks", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Suffix", affix = "of the Order", "(6-7)% chance to deal Double Damage", statOrder = { 3598 }, level = 60, group = "DoubleDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "(8-10)% chance to deal Double Damage", statOrder = { 3598 }, level = 72, group = "DoubleDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "3% chance to deal Double Damage", statOrder = { 3598 }, level = 60, group = "DoubleDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Shield"] = true, }, }, { type = "Suffix", affix = "of the Order", "(4-5)% chance to deal Double Damage", statOrder = { 3598 }, level = 72, group = "DoubleDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Chosen", "(26-30)% increased Armour and Evasion", "+(15-19) to maximum Life", statOrder = { 713, 726 }, level = 60, group = "BaseLocalDefencesAndLife", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Chosen", "(31-35)% increased Armour and Evasion", "+(20-23) to maximum Life", statOrder = { 713, 726 }, level = 72, group = "BaseLocalDefencesAndLife", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Chosen", "(36-40)% increased Armour and Evasion", "+(24-28) to maximum Life", statOrder = { 713, 726 }, level = 81, group = "BaseLocalDefencesAndLife", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Chosen", "(26-30)% increased Armour and Energy Shield", "+(15-19) to maximum Life", statOrder = { 712, 726 }, level = 60, group = "BaseLocalDefencesAndLife", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Chosen", "(31-35)% increased Armour and Energy Shield", "+(20-23) to maximum Life", statOrder = { 712, 726 }, level = 72, group = "BaseLocalDefencesAndLife", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Chosen", "(36-40)% increased Armour and Energy Shield", "+(24-28) to maximum Life", statOrder = { 712, 726 }, level = 81, group = "BaseLocalDefencesAndLife", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Chosen", "(26-30)% increased Evasion and Energy Shield", "+(15-19) to maximum Life", statOrder = { 714, 726 }, level = 60, group = "BaseLocalDefencesAndLife", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Chosen", "(31-35)% increased Evasion and Energy Shield", "+(20-23) to maximum Life", statOrder = { 714, 726 }, level = 72, group = "BaseLocalDefencesAndLife", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Chosen", "(36-40)% increased Evasion and Energy Shield", "+(24-28) to maximum Life", statOrder = { 714, 726 }, level = 81, group = "BaseLocalDefencesAndLife", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Chosen", "(26-30)% increased Armour", "+(15-19) to maximum Life", statOrder = { 701, 726 }, level = 60, group = "BaseLocalDefencesAndLife", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Chosen", "(31-35)% increased Armour", "+(20-23) to maximum Life", statOrder = { 701, 726 }, level = 72, group = "BaseLocalDefencesAndLife", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Chosen", "(36-40)% increased Armour", "+(24-28) to maximum Life", statOrder = { 701, 726 }, level = 81, group = "BaseLocalDefencesAndLife", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Chosen", "(26-30)% increased Evasion Rating", "+(15-19) to maximum Life", statOrder = { 710, 726 }, level = 60, group = "BaseLocalDefencesAndLife", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Chosen", "(31-35)% increased Evasion Rating", "+(20-23) to maximum Life", statOrder = { 710, 726 }, level = 72, group = "BaseLocalDefencesAndLife", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Chosen", "(36-40)% increased Evasion Rating", "+(24-28) to maximum Life", statOrder = { 710, 726 }, level = 81, group = "BaseLocalDefencesAndLife", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Chosen", "(26-30)% increased Energy Shield", "+(15-19) to maximum Life", statOrder = { 719, 726 }, level = 60, group = "BaseLocalDefencesAndLife", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Chosen", "(31-35)% increased Energy Shield", "+(20-23) to maximum Life", statOrder = { 719, 726 }, level = 72, group = "BaseLocalDefencesAndLife", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Chosen", "(36-40)% increased Energy Shield", "+(24-28) to maximum Life", statOrder = { 719, 726 }, level = 81, group = "BaseLocalDefencesAndLife", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Chosen", "(26-30)% increased Armour, Evasion and Energy Shield", "+(15-19) to maximum Life", statOrder = { 715, 726 }, level = 60, group = "BaseLocalDefencesAndLife", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Chosen", "(31-35)% increased Armour, Evasion and Energy Shield", "+(20-23) to maximum Life", statOrder = { 715, 726 }, level = 72, group = "BaseLocalDefencesAndLife", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Chosen", "(36-40)% increased Armour, Evasion and Energy Shield", "+(24-28) to maximum Life", statOrder = { 715, 726 }, level = 81, group = "BaseLocalDefencesAndLife", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(11-12) to Strength and Dexterity", statOrder = { 1626 }, level = 60, group = "StrengthDexterity", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, ["Amulet"] = true, ["Belt"] = true, ["Ring"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(13-14) to Strength and Dexterity", statOrder = { 1626 }, level = 72, group = "StrengthDexterity", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, ["Amulet"] = true, ["Belt"] = true, ["Ring"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(15-17) to Strength and Dexterity", statOrder = { 1626 }, level = 81, group = "StrengthDexterity", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, ["Amulet"] = true, ["Belt"] = true, ["Ring"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(11-12) to Dexterity and Intelligence", statOrder = { 1627 }, level = 60, group = "DexterityIntelligence", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, ["Amulet"] = true, ["Belt"] = true, ["Ring"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(13-14) to Dexterity and Intelligence", statOrder = { 1627 }, level = 72, group = "DexterityIntelligence", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, ["Amulet"] = true, ["Belt"] = true, ["Ring"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(15-17) to Dexterity and Intelligence", statOrder = { 1627 }, level = 81, group = "DexterityIntelligence", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, ["Amulet"] = true, ["Belt"] = true, ["Ring"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(11-12) to Strength and Intelligence", statOrder = { 1625 }, level = 60, group = "StrengthIntelligence", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, ["Amulet"] = true, ["Belt"] = true, ["Ring"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(13-14) to Strength and Intelligence", statOrder = { 1625 }, level = 72, group = "StrengthIntelligence", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, ["Amulet"] = true, ["Belt"] = true, ["Ring"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(15-17) to Strength and Intelligence", statOrder = { 1625 }, level = 81, group = "StrengthIntelligence", types = { ["Body Armour"] = true, ["Boots"] = true, ["Gloves"] = true, ["Helmet"] = true, ["Shield"] = true, ["Amulet"] = true, ["Belt"] = true, ["Ring"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "+1 to Minimum Endurance Charges", statOrder = { 906 }, level = 75, group = "MinimumEnduranceCharges", types = { ["Ring"] = true, ["Amulet"] = true, }, }, { type = "Suffix", affix = "of the Order", "+1 to Minimum Power Charges", statOrder = { 910 }, level = 75, group = "MinimumPowerCharges", types = { ["Ring"] = true, ["Amulet"] = true, }, }, { type = "Suffix", affix = "of the Order", "+1 to Minimum Frenzy Charges", statOrder = { 908 }, level = 75, group = "MinimumFrenzyCharges", types = { ["Ring"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(26-30) to maximum Mana", "2 Mana Regenerated per second", statOrder = { 732, 735 }, level = 60, group = "IncreasedMana", types = { ["Ring"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(31-35) to maximum Mana", "3 Mana Regenerated per second", statOrder = { 732, 735 }, level = 72, group = "IncreasedMana", types = { ["Ring"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(36-40) to maximum Mana", "4 Mana Regenerated per second", statOrder = { 732, 735 }, level = 81, group = "IncreasedMana", types = { ["Ring"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(26-30) to maximum Mana", "3% reduced Mana Cost of Skills", statOrder = { 732, 972 }, level = 60, group = "IncreasedMana", types = { ["Ring"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(31-35) to maximum Mana", "4% reduced Mana Cost of Skills", statOrder = { 732, 972 }, level = 72, group = "IncreasedMana", types = { ["Ring"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(36-40) to maximum Mana", "5% reduced Mana Cost of Skills", statOrder = { 732, 972 }, level = 81, group = "IncreasedMana", types = { ["Ring"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(26-30) to maximum Mana", "4% of Damage taken gained as Mana over 4 seconds when Hit", statOrder = { 732, 1486 }, level = 60, group = "IncreasedMana", types = { ["Ring"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(31-35) to maximum Mana", "5% of Damage taken gained as Mana over 4 seconds when Hit", statOrder = { 732, 1486 }, level = 72, group = "IncreasedMana", types = { ["Ring"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(36-40) to maximum Mana", "6% of Damage taken gained as Mana over 4 seconds when Hit", statOrder = { 732, 1486 }, level = 81, group = "IncreasedMana", types = { ["Ring"] = true, ["Amulet"] = true, }, }, { type = "Suffix", affix = "of the Order", "3% increased Attack and Cast Speed", statOrder = { 1146 }, level = 60, group = "AttackCastSpeed", types = { ["Amulet"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "4% increased Attack and Cast Speed", statOrder = { 1146 }, level = 25, group = "AttackCastSpeed", types = { ["Amulet"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "(5-6)% increased Attack and Cast Speed", statOrder = { 1146 }, level = 50, group = "AttackCastSpeed", types = { ["Amulet"] = true, ["Quiver"] = true, }, }, { type = "Prefix", affix = "Chosen", "(13-14)% increased Movement Speed", "(6-9)% increased Movement Speed if you haven't been Hit Recently", statOrder = { 901, 2218 }, level = 60, group = "MovementVelocity", types = { ["Boots"] = true, }, }, { type = "Prefix", affix = "Chosen", "(15-17)% increased Movement Speed", "(6-9)% increased Movement Speed if you haven't been Hit Recently", statOrder = { 901, 2218 }, level = 72, group = "MovementVelocity", types = { ["Boots"] = true, }, }, { type = "Prefix", affix = "Chosen", "(18-20)% increased Movement Speed", "(6-9)% increased Movement Speed if you haven't been Hit Recently", statOrder = { 901, 2218 }, level = 81, group = "MovementVelocity", types = { ["Boots"] = true, }, }, { type = "Prefix", affix = "Chosen", "(13-14)% increased Movement Speed", "(8-12)% chance to gain Onslaught for 4 seconds on Kill", statOrder = { 901, 1994 }, level = 60, group = "MovementVelocity", types = { ["Boots"] = true, }, }, { type = "Prefix", affix = "Chosen", "(15-17)% increased Movement Speed", "(8-12)% chance to gain Onslaught for 4 seconds on Kill", statOrder = { 901, 1994 }, level = 72, group = "MovementVelocity", types = { ["Boots"] = true, }, }, { type = "Prefix", affix = "Chosen", "(18-20)% increased Movement Speed", "(8-12)% chance to gain Onslaught for 4 seconds on Kill", statOrder = { 901, 1994 }, level = 81, group = "MovementVelocity", types = { ["Boots"] = true, }, }, { type = "Prefix", affix = "Chosen", "(13-14)% increased Movement Speed", "Cannot be Chilled", statOrder = { 901, 936 }, level = 60, group = "MovementVelocity", types = { ["Boots"] = true, }, }, { type = "Prefix", affix = "Chosen", "(15-17)% increased Movement Speed", "Cannot be Chilled", statOrder = { 901, 936 }, level = 72, group = "MovementVelocity", types = { ["Boots"] = true, }, }, { type = "Prefix", affix = "Chosen", "(18-20)% increased Movement Speed", "Cannot be Chilled", statOrder = { 901, 936 }, level = 81, group = "MovementVelocity", types = { ["Boots"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(105-150) to Armour and Evasion Rating", statOrder = { 3229 }, level = 60, group = "BaseArmourAndEvasion", types = { ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(151-213) to Armour and Evasion Rating", statOrder = { 3229 }, level = 72, group = "BaseArmourAndEvasion", types = { ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(214-285) to Armour and Evasion Rating", statOrder = { 3229 }, level = 81, group = "BaseArmourAndEvasion", types = { ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(105-150) to Armour", "+(11-15) to maximum Energy Shield", statOrder = { 698, 717 }, level = 60, group = "BaseArmourAndEnergyShield", types = { ["Belt"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(151-213) to Armour", "+(16-20) to maximum Energy Shield", statOrder = { 698, 717 }, level = 72, group = "BaseArmourAndEnergyShield", types = { ["Belt"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(214-285) to Armour", "+(21-25) to maximum Energy Shield", statOrder = { 698, 717 }, level = 81, group = "BaseArmourAndEnergyShield", types = { ["Belt"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(105-150) to Evasion Rating", "+(11-15) to maximum Energy Shield", statOrder = { 704, 717 }, level = 60, group = "BaseEvasionRatingAndEnergyShield", types = { ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(151-213) to Evasion Rating", "+(16-20) to maximum Energy Shield", statOrder = { 704, 717 }, level = 72, group = "BaseEvasionRatingAndEnergyShield", types = { ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(214-285) to Evasion Rating", "+(21-25) to maximum Energy Shield", statOrder = { 704, 717 }, level = 81, group = "BaseEvasionRatingAndEnergyShield", types = { ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Prefix", affix = "Chosen", "(3-4)% increased Effect of Flasks on you", statOrder = { 1741 }, level = 60, group = "FlaskEffect", types = { ["Belt"] = true, }, }, { type = "Prefix", affix = "Chosen", "(5-6)% increased Effect of Flasks on you", statOrder = { 1741 }, level = 72, group = "FlaskEffect", types = { ["Belt"] = true, }, }, { type = "Prefix", affix = "Chosen", "(7-8)% increased Effect of Flasks on you", statOrder = { 1741 }, level = 81, group = "FlaskEffect", types = { ["Belt"] = true, }, }, { type = "Prefix", affix = "Chosen", "(5-6)% chance for your Flasks to not consume Charges", statOrder = { 3192 }, level = 60, group = "FlaskChargesUsed", types = { ["Belt"] = true, }, }, { type = "Prefix", affix = "Chosen", "(7-8)% chance for your Flasks to not consume Charges", statOrder = { 3192 }, level = 75, group = "FlaskChargesUsed", types = { ["Belt"] = true, }, }, { type = "Prefix", affix = "Chosen", "20% reduced Flask Charges gained", "(8-10)% increased Effect of Flasks on you", statOrder = { 1278, 1741 }, level = 60, group = "FlaskEffect", types = { ["Belt"] = true, }, }, { type = "Prefix", affix = "Chosen", "33% reduced Flask Charges gained", "(11-14)% increased Effect of Flasks on you", statOrder = { 1278, 1741 }, level = 75, group = "FlaskEffect", types = { ["Belt"] = true, }, }, { type = "Suffix", affix = "of the Order", "(6-8)% increased Cooldown Recovery Speed", statOrder = { 3505 }, level = 60, group = "CooldownRecovery", types = { ["Belt"] = true, }, }, { type = "Suffix", affix = "of the Order", "(9-12)% increased Cooldown Recovery Speed", statOrder = { 3505 }, level = 75, group = "CooldownRecovery", types = { ["Belt"] = true, }, }, { type = "Suffix", affix = "of the Order", "(5-6)% increased Damage per Endurance Charge", statOrder = { 2192 }, level = 60, group = "AllDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "(3-4)% increased Damage per Endurance Charge", statOrder = { 2192 }, level = 60, group = "AllDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Suffix", affix = "of the Order", "(5-6)% increased Damage per Frenzy Charge", statOrder = { 2282 }, level = 60, group = "AllDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "(3-4)% increased Damage per Frenzy Charge", statOrder = { 2282 }, level = 60, group = "AllDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Suffix", affix = "of the Order", "(5-6)% increased Damage per Power Charge", statOrder = { 3769 }, level = 60, group = "AllDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "(3-4)% increased Damage per Power Charge", statOrder = { 3769 }, level = 60, group = "AllDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Chosen", "(20-25)% of Physical Damage Converted to Fire Damage", statOrder = { 1050 }, level = 60, group = "ConvertPhysicalToFire", types = { ["Gloves"] = true, }, }, { type = "Prefix", affix = "Chosen", "(20-25)% of Physical Damage Converted to Cold Damage", statOrder = { 1051 }, level = 60, group = "ConvertPhysicalToCold", types = { ["Gloves"] = true, }, }, { type = "Prefix", affix = "Chosen", "(20-25)% of Physical Damage Converted to Lightning Damage", statOrder = { 1052 }, level = 60, group = "ConvertPhysicalToLightning", types = { ["Gloves"] = true, }, }, { type = "Prefix", affix = "Chosen", "+1 to maximum number of Raised Zombies", "+1 to maximum number of Skeletons", statOrder = { 1255, 1257 }, level = 60, group = "MaximumMinionCount", types = { ["Helmet"] = true, ["Body Armour"] = true, }, }, { type = "Suffix", affix = "of the Order", "(16-22)% increased Effect of non-Damaging Ailments on Enemies", statOrder = { 4930 }, level = 60, group = "IncreasedAilmentEffectOnEnemies", types = { ["Boots"] = true, ["Amulet"] = true, }, }, { type = "Suffix", affix = "of the Order", "(23-30)% increased Effect of non-Damaging Ailments on Enemies", statOrder = { 4930 }, level = 75, group = "IncreasedAilmentEffectOnEnemies", types = { ["Boots"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Chosen", "You can apply an additional Curse", statOrder = { 1265 }, level = 75, group = "AdditionalCurseOnEnemies", types = { ["Body Armour"] = true, }, }, { type = "Suffix", affix = "of the Order", "(6-7)% increased Effect of your Curses", statOrder = { 1628 }, level = 60, group = "CurseEffectiveness", types = { ["Shield"] = true, }, }, { type = "Suffix", affix = "of the Order", "(8-10)% increased Effect of your Curses", statOrder = { 1628 }, level = 75, group = "CurseEffectiveness", types = { ["Shield"] = true, }, }, { type = "Suffix", affix = "of the Order", "(0.5-0.6)% of Life Regenerated per second", statOrder = { 1038 }, level = 60, group = "LifeRegenerationRatePercentage", types = { ["Amulet"] = true, ["Shield"] = true, }, }, { type = "Suffix", affix = "of the Order", "(0.7-1)% of Life Regenerated per second", statOrder = { 1038 }, level = 75, group = "LifeRegenerationRatePercentage", types = { ["Amulet"] = true, ["Shield"] = true, }, }, { type = "Suffix", affix = "of the Order", "(6-7)% chance to Avoid Elemental Damage from Hits during Soul Gain Prevention", statOrder = { 3488 }, level = 60, group = "AvoidElementalDamageChanceDuringSoulGainPrevention", types = { ["Body Armour"] = true, ["Helmet"] = true, }, }, { type = "Suffix", affix = "of the Order", "(8-9)% chance to Avoid Elemental Damage from Hits during Soul Gain Prevention", statOrder = { 3488 }, level = 75, group = "AvoidElementalDamageChanceDuringSoulGainPrevention", types = { ["Body Armour"] = true, ["Helmet"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(1000-1600) to Armour during Soul Gain Prevention", statOrder = { 4984 }, level = 60, group = "PhysicalDamageReductionRatingDuringSoulGainPrevention", types = { ["Body Armour"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(1601-2200) to Armour during Soul Gain Prevention", statOrder = { 4984 }, level = 72, group = "PhysicalDamageReductionRatingDuringSoulGainPrevention", types = { ["Body Armour"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(2201-3000) to Armour during Soul Gain Prevention", statOrder = { 4984 }, level = 81, group = "PhysicalDamageReductionRatingDuringSoulGainPrevention", types = { ["Body Armour"] = true, ["Shield"] = true, }, }, { type = "Suffix", affix = "of the Order", "You have Onslaught during Soul Gain Prevention", statOrder = { 3998 }, level = 50, group = "GainOnslaughtDuringSoulGainPrevention", types = { ["Boots"] = true, ["Gloves"] = true, }, }, { type = "Suffix", affix = "of the Order", "Non-Vaal Skills deal (30-40)% increased Damage during Soul Gain Prevention", statOrder = { 3775 }, level = 60, group = "DamageWithNonVaalSkillsDuringSoulGainPrevention", types = { ["Boots"] = true, ["Gloves"] = true, }, }, { type = "Suffix", affix = "of the Order", "Non-Vaal Skills deal (41-50)% increased Damage during Soul Gain Prevention", statOrder = { 3775 }, level = 72, group = "DamageWithNonVaalSkillsDuringSoulGainPrevention", types = { ["Boots"] = true, ["Gloves"] = true, }, }, { type = "Suffix", affix = "of the Order", "Non-Vaal Skills deal (51-60)% increased Damage during Soul Gain Prevention", statOrder = { 3775 }, level = 81, group = "DamageWithNonVaalSkillsDuringSoulGainPrevention", types = { ["Boots"] = true, ["Gloves"] = true, }, }, { type = "Prefix", affix = "Chosen", "+1 to Level of Socketed AoE Gems", "(8-10)% increased Area of Effect", statOrder = { 32, 971 }, level = 60, group = "SkillAreaOfEffectPercentAndAreaOfEffectGemLevel", types = { ["Helmet"] = true, ["Gloves"] = true, }, }, { type = "Prefix", affix = "Chosen", "+1 to Level of Socketed Projectile Gems", "Projectiles Pierce an additional Target", statOrder = { 33, 895 }, level = 60, group = "ProjectilePierceAndProjectileGemLevel", types = { ["Helmet"] = true, ["Gloves"] = true, }, }, { type = "Prefix", affix = "Chosen", "+1 to Level of Socketed Melee Gems", "+1 to Melee Weapon and Unarmed Attack range", statOrder = { 35, 1558 }, level = 60, group = "MeleeRangeAndMeleeGemLevel", types = { ["Helmet"] = true, ["Gloves"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(25-31)% Critical Strike Multiplier while a Rare or Unique Enemy is Nearby", statOrder = { 3730 }, level = 60, group = "CriticalStrikeMultiplierIfRareOrUniqueEnemyNearby", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(32-38)% Critical Strike Multiplier while a Rare or Unique Enemy is Nearby", statOrder = { 3730 }, level = 72, group = "CriticalStrikeMultiplierIfRareOrUniqueEnemyNearby", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(39-45)% Critical Strike Multiplier while a Rare or Unique Enemy is Nearby", statOrder = { 3730 }, level = 81, group = "CriticalStrikeMultiplierIfRareOrUniqueEnemyNearby", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(17-21)% Critical Strike Multiplier while a Rare or Unique Enemy is Nearby", statOrder = { 3730 }, level = 60, group = "CriticalStrikeMultiplierIfRareOrUniqueEnemyNearby", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(22-25)% Critical Strike Multiplier while a Rare or Unique Enemy is Nearby", statOrder = { 3730 }, level = 72, group = "CriticalStrikeMultiplierIfRareOrUniqueEnemyNearby", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(26-30)% Critical Strike Multiplier while a Rare or Unique Enemy is Nearby", statOrder = { 3730 }, level = 81, group = "CriticalStrikeMultiplierIfRareOrUniqueEnemyNearby", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Suffix", affix = "of the Order", "(14-16)% increased Attack Speed while a Rare or Unique Enemy is Nearby", statOrder = { 3467 }, level = 60, group = "AttackSpeedPercentIfRareOrUniqueEnemyNearby", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "(17-19)% increased Attack Speed while a Rare or Unique Enemy is Nearby", statOrder = { 3467 }, level = 72, group = "AttackSpeedPercentIfRareOrUniqueEnemyNearby", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "(20-22)% increased Attack Speed while a Rare or Unique Enemy is Nearby", statOrder = { 3467 }, level = 81, group = "AttackSpeedPercentIfRareOrUniqueEnemyNearby", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "7% increased Attack Speed while a Rare or Unique Enemy is Nearby", statOrder = { 3467 }, level = 60, group = "AttackSpeedPercentIfRareOrUniqueEnemyNearby", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Suffix", affix = "of the Order", "(8-9)% increased Attack Speed while a Rare or Unique Enemy is Nearby", statOrder = { 3467 }, level = 72, group = "AttackSpeedPercentIfRareOrUniqueEnemyNearby", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Suffix", affix = "of the Order", "(10-11)% increased Attack Speed while a Rare or Unique Enemy is Nearby", statOrder = { 3467 }, level = 81, group = "AttackSpeedPercentIfRareOrUniqueEnemyNearby", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Suffix", affix = "of the Order", "60 Energy Shield Regenerated per second while a Rare or Unique Enemy is Nearby", statOrder = { 3884 }, level = 60, group = "EnergyShieldRegenerationRatePerMinuteIfRareOrUniqueEnemyNearby", types = { ["Body Armour"] = true, ["Belt"] = true, }, }, { type = "Suffix", affix = "of the Order", "90 Energy Shield Regenerated per second while a Rare or Unique Enemy is Nearby", statOrder = { 3884 }, level = 72, group = "EnergyShieldRegenerationRatePerMinuteIfRareOrUniqueEnemyNearby", types = { ["Body Armour"] = true, ["Belt"] = true, }, }, { type = "Suffix", affix = "of the Order", "120 Energy Shield Regenerated per second while a Rare or Unique Enemy is Nearby", statOrder = { 3884 }, level = 81, group = "EnergyShieldRegenerationRatePerMinuteIfRareOrUniqueEnemyNearby", types = { ["Body Armour"] = true, ["Belt"] = true, }, }, { type = "Suffix", affix = "of the Order", "(9-10)% increased Global Critical Strike Chance", "3% chance to gain a Frenzy Charge on Critical Strike", statOrder = { 632, 3988 }, level = 60, group = "CriticalStrikeChanceIncrease", types = { ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "(11-12)% increased Global Critical Strike Chance", "4% chance to gain a Frenzy Charge on Critical Strike", statOrder = { 632, 3988 }, level = 72, group = "CriticalStrikeChanceIncrease", types = { ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "(13-14)% increased Global Critical Strike Chance", "5% chance to gain a Frenzy Charge on Critical Strike", statOrder = { 632, 3988 }, level = 81, group = "CriticalStrikeChanceIncrease", types = { ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "(11-12)% increased Global Critical Strike Chance", "(14-16)% increased Elemental Damage if you've dealt a Critical Strike Recently", statOrder = { 632, 3834 }, level = 60, group = "CriticalStrikeChanceIncrease", types = { ["Gloves"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "(13-14)% increased Global Critical Strike Chance", "(17-19)% increased Elemental Damage if you've dealt a Critical Strike Recently", statOrder = { 632, 3834 }, level = 72, group = "CriticalStrikeChanceIncrease", types = { ["Gloves"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "(15-16)% increased Global Critical Strike Chance", "(20-22)% increased Elemental Damage if you've dealt a Critical Strike Recently", statOrder = { 632, 3834 }, level = 81, group = "CriticalStrikeChanceIncrease", types = { ["Gloves"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "(11-12)% increased Global Critical Strike Chance", "Adds (10-11) to (14-16) Chaos Damage if you've dealt a Critical Strike Recently", statOrder = { 632, 4857 }, level = 60, group = "CriticalStrikeChanceIncrease", types = { ["Gloves"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "(13-14)% increased Global Critical Strike Chance", "Adds (12-13) to (17-20) Chaos Damage if you've dealt a Critical Strike Recently", statOrder = { 632, 4857 }, level = 72, group = "CriticalStrikeChanceIncrease", types = { ["Gloves"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "(15-16)% increased Global Critical Strike Chance", "Adds (14-16) to (21-24) Chaos Damage if you've dealt a Critical Strike Recently", statOrder = { 632, 4857 }, level = 81, group = "CriticalStrikeChanceIncrease", types = { ["Gloves"] = true, ["Quiver"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(21-27) to maximum Life", "+(21-27) to maximum Mana", statOrder = { 726, 732 }, level = 60, group = "IncreasedLife", types = { ["Helmet"] = true, ["Gloves"] = true, ["Boots"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(28-33) to maximum Life", "+(28-33) to maximum Mana", statOrder = { 726, 732 }, level = 72, group = "IncreasedLife", types = { ["Helmet"] = true, ["Gloves"] = true, ["Boots"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(34-40) to maximum Life", "+(34-40) to maximum Mana", statOrder = { 726, 732 }, level = 81, group = "IncreasedLife", types = { ["Helmet"] = true, ["Gloves"] = true, ["Boots"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "(18-20)% increased Totem Placement speed", statOrder = { 1602 }, level = 60, group = "SummonTotemCastSpeed", types = { ["Boots"] = true, ["Amulet"] = true, }, }, { type = "Suffix", affix = "of the Order", "(21-25)% increased Totem Placement speed", statOrder = { 1602 }, level = 72, group = "SummonTotemCastSpeed", types = { ["Boots"] = true, ["Amulet"] = true, }, }, { type = "Suffix", affix = "of the Order", "(26-30)% increased Totem Placement speed", statOrder = { 1602 }, level = 81, group = "SummonTotemCastSpeed", types = { ["Boots"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Chosen", "Adds (6-7) to (9-10) Fire Damage", "Adds (6-7) to (9-10) Cold Damage", statOrder = { 537, 544 }, level = 60, group = "AddedFireAndColdDamage", types = { ["Shield"] = true, ["Ring"] = true, ["Quiver"] = true, }, }, { type = "Prefix", affix = "Chosen", "Adds (8-9) to (11-13) Fire Damage", "Adds (8-9) to (11-13) Cold Damage", statOrder = { 537, 544 }, level = 72, group = "AddedFireAndColdDamage", types = { ["Shield"] = true, ["Ring"] = true, }, }, { type = "Prefix", affix = "Chosen", "Adds (10-12) to (14-16) Fire Damage", "Adds (10-12) to (14-16) Cold Damage", statOrder = { 537, 544 }, level = 81, group = "AddedFireAndColdDamage", types = { ["Shield"] = true, ["Ring"] = true, }, }, { type = "Prefix", affix = "Chosen", "Adds (6-7) to (9-10) Fire Damage", "Adds 1 to (14-16) Lightning Damage", statOrder = { 537, 553 }, level = 60, group = "AddedFireAndLightningDamage", types = { ["Shield"] = true, ["Ring"] = true, ["Quiver"] = true, }, }, { type = "Prefix", affix = "Chosen", "Adds (8-9) to (11-13) Fire Damage", "Adds 1 to (17-20) Lightning Damage", statOrder = { 537, 553 }, level = 72, group = "AddedFireAndLightningDamage", types = { ["Shield"] = true, ["Ring"] = true, }, }, { type = "Prefix", affix = "Chosen", "Adds (10-12) to (14-16) Fire Damage", "Adds 1 to (21-24) Lightning Damage", statOrder = { 537, 553 }, level = 81, group = "AddedFireAndLightningDamage", types = { ["Shield"] = true, ["Ring"] = true, }, }, { type = "Prefix", affix = "Chosen", "Adds (6-7) to (9-10) Cold Damage", "Adds 1 to (14-16) Lightning Damage", statOrder = { 544, 553 }, level = 60, group = "AddedColdAndLightningDamage", types = { ["Shield"] = true, ["Ring"] = true, ["Quiver"] = true, }, }, { type = "Prefix", affix = "Chosen", "Adds (8-9) to (11-13) Cold Damage", "Adds 1 to (17-20) Lightning Damage", statOrder = { 544, 553 }, level = 72, group = "AddedColdAndLightningDamage", types = { ["Shield"] = true, ["Ring"] = true, }, }, { type = "Prefix", affix = "Chosen", "Adds (10-12) to (14-16) Cold Damage", "Adds 1 to (21-24) Lightning Damage", statOrder = { 544, 553 }, level = 81, group = "AddedColdAndLightningDamage", types = { ["Shield"] = true, ["Ring"] = true, }, }, { type = "Suffix", affix = "of the Order", "Your Critical Strike Chance is Lucky while Focussed", statOrder = { 3906 }, level = 72, group = "LuckyCriticalsDuringFocus", types = { ["Belt"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(16-18)% chance to Dodge Attack Hits while Focussed", statOrder = { 3822 }, level = 60, group = "DodgeChanceDuringFocus", types = { ["Helmet"] = true, ["Boots"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(19-22)% chance to Dodge Attack Hits while Focussed", statOrder = { 3822 }, level = 72, group = "DodgeChanceDuringFocus", types = { ["Helmet"] = true, ["Boots"] = true, }, }, { type = "Prefix", affix = "Chosen", "+(23-25)% chance to Dodge Attack Hits while Focussed", statOrder = { 3822 }, level = 81, group = "DodgeChanceDuringFocus", types = { ["Helmet"] = true, ["Boots"] = true, }, }, { type = "Prefix", affix = "Chosen", "8% additional Physical Damage Reduction while Focussed", statOrder = { 3354 }, level = 60, group = "PhysicalDamageReductionDuringFocus", types = { ["Helmet"] = true, ["Gloves"] = true, }, }, { type = "Prefix", affix = "Chosen", "(9-10)% additional Physical Damage Reduction while Focussed", statOrder = { 3354 }, level = 72, group = "PhysicalDamageReductionDuringFocus", types = { ["Helmet"] = true, ["Gloves"] = true, }, }, { type = "Prefix", affix = "Chosen", "(11-12)% additional Physical Damage Reduction while Focussed", statOrder = { 3354 }, level = 81, group = "PhysicalDamageReductionDuringFocus", types = { ["Helmet"] = true, ["Gloves"] = true, }, }, { type = "Suffix", affix = "of the Order", "Shock nearby Enemies for 2 Seconds when you Focus", statOrder = { 5105 }, level = 60, group = "ShockNearbyEnemiesOnFocus", types = { ["Ring"] = true, }, }, { type = "Suffix", affix = "of the Order", "Shock nearby Enemies for 3 Seconds when you Focus", statOrder = { 5105 }, level = 72, group = "ShockNearbyEnemiesOnFocus", types = { ["Ring"] = true, }, }, { type = "Suffix", affix = "of the Order", "Shock nearby Enemies for 4 Seconds when you Focus", statOrder = { 5105 }, level = 81, group = "ShockNearbyEnemiesOnFocus", types = { ["Ring"] = true, }, }, { type = "Suffix", affix = "of the Order", "1% of Evasion Rating is Regenerated as Life per second while Focussed", statOrder = { 3897 }, level = 60, group = "LifeRegenerationPerEvasionDuringFocus", types = { ["Body Armour"] = true, }, }, { type = "Suffix", affix = "of the Order", "Recover (23-25)% of Mana and Energy Shield when you Focus", statOrder = { 5085 }, level = 60, group = "RestoreManaAndEnergyShieldOnFocus", types = { ["Body Armour"] = true, }, }, { type = "Suffix", affix = "of the Order", "Recover (26-28)% of Mana and Energy Shield when you Focus", statOrder = { 5085 }, level = 72, group = "RestoreManaAndEnergyShieldOnFocus", types = { ["Body Armour"] = true, }, }, { type = "Suffix", affix = "of the Order", "Recover (29-31)% of Mana and Energy Shield when you Focus", statOrder = { 5085 }, level = 81, group = "RestoreManaAndEnergyShieldOnFocus", types = { ["Body Armour"] = true, }, }, { type = "Suffix", affix = "of the Order", "(16-20)% chance to deal Double Damage while Focussed", statOrder = { 3601 }, level = 60, group = "ChanceToDealDoubleDamageWhileFocused", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "(21-25)% chance to deal Double Damage while Focussed", statOrder = { 3601 }, level = 72, group = "ChanceToDealDoubleDamageWhileFocused", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "(26-30)% chance to deal Double Damage while Focussed", statOrder = { 3601 }, level = 81, group = "ChanceToDealDoubleDamageWhileFocused", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "(7-9)% chance to deal Double Damage while Focussed", statOrder = { 3601 }, level = 60, group = "ChanceToDealDoubleDamageWhileFocused", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Shield"] = true, }, }, { type = "Suffix", affix = "of the Order", "(10-12)% chance to deal Double Damage while Focussed", statOrder = { 3601 }, level = 72, group = "ChanceToDealDoubleDamageWhileFocused", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Shield"] = true, }, }, { type = "Suffix", affix = "of the Order", "(13-15)% chance to deal Double Damage while Focussed", statOrder = { 3601 }, level = 81, group = "ChanceToDealDoubleDamageWhileFocused", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Shield"] = true, }, }, { type = "Suffix", affix = "of the Order", "(22-25)% increased Attack and Cast Speed while Focussed", statOrder = { 3436 }, level = 60, group = "AttackAndCastSpeedWhileFocused", types = { ["Gloves"] = true, }, }, { type = "Suffix", affix = "of the Order", "(26-30)% increased Attack and Cast Speed while Focussed", statOrder = { 3436 }, level = 72, group = "AttackAndCastSpeedWhileFocused", types = { ["Gloves"] = true, }, }, { type = "Suffix", affix = "of the Order", "(31-36)% increased Attack and Cast Speed while Focussed", statOrder = { 3436 }, level = 81, group = "AttackAndCastSpeedWhileFocused", types = { ["Gloves"] = true, }, }, { type = "Suffix", affix = "of the Order", "(81-100)% increased Duration of Ailments you inflict while Focussed", statOrder = { 5188 }, level = 60, group = "StatusAilmentsYouInflictDurationWhileFocused", types = { ["Helmet"] = true, }, }, { type = "Suffix", affix = "of the Order", "(101-120)% increased Duration of Ailments you inflict while Focussed", statOrder = { 5188 }, level = 72, group = "StatusAilmentsYouInflictDurationWhileFocused", types = { ["Helmet"] = true, }, }, { type = "Suffix", affix = "of the Order", "(121-140)% increased Duration of Ailments you inflict while Focussed", statOrder = { 5188 }, level = 81, group = "StatusAilmentsYouInflictDurationWhileFocused", types = { ["Helmet"] = true, }, }, { type = "Suffix", affix = "of the Order", "You are Immune to Ailments while Focussed", statOrder = { 4109 }, level = 60, group = "ImmuneToStatusAilmentsWhileFocused", types = { ["Boots"] = true, }, }, { type = "Suffix", affix = "of the Order", "You have Vaal Pact while Focussed", "10% of Damage Leeched as Life while Focussed", statOrder = { 4020, 4142 }, level = 60, group = "LifeLeechFromAnyDamagePermyriadWhileFocused", types = { ["Amulet"] = true, }, }, { type = "Suffix", affix = "of the Order", "80% increased Effect of Fortify on you while Focussed", statOrder = { 3950 }, level = 60, group = "FortifyEffectWhileFocused", types = { ["Body Armour"] = true, }, }, { type = "Suffix", affix = "of the Order", "100% increased Effect of Fortify on you while Focussed", statOrder = { 3950 }, level = 72, group = "FortifyEffectWhileFocused", types = { ["Body Armour"] = true, }, }, { type = "Suffix", affix = "of the Order", "120% increased Effect of Fortify on you while Focussed", statOrder = { 3950 }, level = 81, group = "FortifyEffectWhileFocused", types = { ["Body Armour"] = true, }, }, { type = "Suffix", affix = "of the Order", "Trigger Socketed Spells when you Focus", statOrder = { 346 }, level = 60, group = "TriggerSocketedSpellWhenYouFocus", types = { ["Helmet"] = true, }, }, { type = "Suffix", affix = "of the Order", "(21-25)% of Damage is taken from Mana before Life while Focussed", statOrder = { 3779 }, level = 60, group = "DamageRemovedFromManaBeforeLifeWhileFocused", types = { ["Body Armour"] = true, }, }, { type = "Suffix", affix = "of the Order", "Minions Recover 100% of their Life when you Focus", statOrder = { 4906 }, level = 60, group = "MinionsRecoverMaximumLifeWhenYouFocus", types = { ["Gloves"] = true, }, }, { type = "Suffix", affix = "of the Order", "Skills Cost no Mana while Focussed", statOrder = { 5133 }, level = 60, group = "SkillsCostNoManaWhileFocused", types = { ["Amulet"] = true, }, }, { type = "Prefix", affix = "Leo's", "(11-13)% increased Damage", statOrder = { 437 }, level = 60, group = "AllDamage", types = { ["Ring"] = true, ["Belt"] = true, }, }, { type = "Prefix", affix = "Leo's", "(14-16)% increased Damage", statOrder = { 437 }, level = 72, group = "AllDamage", types = { ["Ring"] = true, ["Belt"] = true, }, }, { type = "Prefix", affix = "Leo's", "(17-20)% increased Damage", statOrder = { 437 }, level = 81, group = "AllDamage", types = { ["Ring"] = true, ["Belt"] = true, }, }, { type = "Prefix", affix = "Catarina's", "+1 to Level of Socketed Support Gems", statOrder = { 44 }, level = 60, group = "IncreaseSpecificSocketedGemLevel", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Catarina's", "+2 to Level of Socketed Support Gems", statOrder = { 44 }, level = 80, group = "IncreaseSpecificSocketedGemLevel", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Elreon's", "-(5-4) to Total Mana Cost of Skills", statOrder = { 975 }, level = 60, group = "IncreaseFlatManaCost", types = { ["Ring"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Elreon's", "-(7-6) to Total Mana Cost of Skills", statOrder = { 975 }, level = 72, group = "IncreaseFlatManaCost", types = { ["Ring"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Elreon's", "-(9-8) to Total Mana Cost of Skills", statOrder = { 975 }, level = 81, group = "IncreaseFlatManaCost", types = { ["Ring"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Vorici's", "(24-30)% increased Damage while Leeching", statOrder = { 2065 }, level = 60, group = "DamageWhileLeeching", types = { ["Gloves"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Vorici's", "(31-36)% increased Damage while Leeching", statOrder = { 2065 }, level = 72, group = "DamageWhileLeeching", types = { ["Gloves"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Vorici's", "(37-43)% increased Damage while Leeching", statOrder = { 2065 }, level = 81, group = "DamageWhileLeeching", types = { ["Gloves"] = true, ["Amulet"] = true, }, }, { type = "Prefix", affix = "Haku's", "+(5-6)% to Quality of Socketed Gems", statOrder = { 54 }, level = 60, group = "SocketedGemQuality", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Haku's", "+(6-7)% to Quality of Socketed Gems", statOrder = { 54 }, level = 72, group = "SocketedGemQuality", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Haku's", "+(7-8)% to Quality of Socketed Gems", statOrder = { 54 }, level = 81, group = "SocketedGemQuality", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "Tora's", "Adds (9-10) to (14-15) Physical Damage", "30% chance to cause Bleeding on Hit", statOrder = { 490, 1512 }, level = 60, group = "PhysicalDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Tora's", "Adds (11-13) to (16-17) Physical Damage", "35% chance to cause Bleeding on Hit", statOrder = { 490, 1512 }, level = 72, group = "PhysicalDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Tora's", "Adds (14-16) to (18-20) Physical Damage", "40% chance to cause Bleeding on Hit", statOrder = { 490, 1512 }, level = 81, group = "PhysicalDamage", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "Tora's", "Adds (5-6) to (8-9) Physical Damage", "30% chance to cause Bleeding on Hit", statOrder = { 490, 1512 }, level = 60, group = "PhysicalDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Tora's", "Adds (7-8) to (10-11) Physical Damage", "35% chance to cause Bleeding on Hit", statOrder = { 490, 1512 }, level = 72, group = "PhysicalDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Tora's", "Adds (9-11) to (12-14) Physical Damage", "40% chance to cause Bleeding on Hit", statOrder = { 490, 1512 }, level = 81, group = "PhysicalDamage", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Prefix", affix = "Vagan's", "Hits can't be Evaded", statOrder = { 1142 }, level = 60, group = "AlwaysHits", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Prefix", affix = "Brinerot", "(16-18)% increased Damage during any Flask Effect", statOrder = { 3050 }, level = 60, group = "DamageDuringFlaskEffect", types = { ["Gloves"] = true, }, }, { type = "Prefix", affix = "Brinerot", "(19-23)% increased Damage during any Flask Effect", statOrder = { 3050 }, level = 72, group = "DamageDuringFlaskEffect", types = { ["Gloves"] = true, }, }, { type = "Prefix", affix = "Brinerot", "(24-28)% increased Damage during any Flask Effect", statOrder = { 3050 }, level = 81, group = "DamageDuringFlaskEffect", types = { ["Gloves"] = true, }, }, { type = "Suffix", affix = "of Janus", "(31-35)% increased Rarity of Items Dropped by Slain Rare or Unique Enemies", statOrder = { 5060 }, level = 60, group = "RareOrUniqueMonsterDroppedItemRarity", types = { ["Helmet"] = true, }, }, { type = "Suffix", affix = "of Janus", "(36-40)% increased Rarity of Items Dropped by Slain Rare or Unique Enemies", statOrder = { 5060 }, level = 72, group = "RareOrUniqueMonsterDroppedItemRarity", types = { ["Helmet"] = true, }, }, { type = "Suffix", affix = "of Janus", "(41-45)% increased Rarity of Items Dropped by Slain Rare or Unique Enemies", statOrder = { 5060 }, level = 81, group = "RareOrUniqueMonsterDroppedItemRarity", types = { ["Helmet"] = true, }, }, { type = "Prefix", affix = "It's", "Gain (8-10)% of Fire Damage as Extra Chaos Damage", statOrder = { 1036 }, level = 60, group = "NonChaosAddedAsChaos", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "It's", "Gain (11-13)% of Fire Damage as Extra Chaos Damage", statOrder = { 1036 }, level = 72, group = "NonChaosAddedAsChaos", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "It's", "Gain (14-16)% of Fire Damage as Extra Chaos Damage", statOrder = { 1036 }, level = 81, group = "NonChaosAddedAsChaos", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "It's", "Gain 4% of Fire Damage as Extra Chaos Damage", statOrder = { 1036 }, level = 60, group = "NonChaosAddedAsChaos", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "It's", "Gain (5-6)% of Fire Damage as Extra Chaos Damage", statOrder = { 1036 }, level = 72, group = "NonChaosAddedAsChaos", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "It's", "Gain (7-8)% of Fire Damage as Extra Chaos Damage", statOrder = { 1036 }, level = 81, group = "NonChaosAddedAsChaos", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "It's", "Gain (8-10)% of Cold Damage as Extra Chaos Damage", statOrder = { 1035 }, level = 60, group = "NonChaosAddedAsChaos", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "It's", "Gain (11-13)% of Cold Damage as Extra Chaos Damage", statOrder = { 1035 }, level = 72, group = "NonChaosAddedAsChaos", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "It's", "Gain (14-16)% of Cold Damage as Extra Chaos Damage", statOrder = { 1035 }, level = 81, group = "NonChaosAddedAsChaos", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "It's", "Gain 4% of Cold Damage as Extra Chaos Damage", statOrder = { 1035 }, level = 60, group = "NonChaosAddedAsChaos", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "It's", "Gain (5-6)% of Cold Damage as Extra Chaos Damage", statOrder = { 1035 }, level = 72, group = "NonChaosAddedAsChaos", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "It's", "Gain (7-8)% of Cold Damage as Extra Chaos Damage", statOrder = { 1035 }, level = 81, group = "NonChaosAddedAsChaos", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "It's", "Gain (8-10)% of Lightning Damage as Extra Chaos Damage", statOrder = { 1033 }, level = 60, group = "NonChaosAddedAsChaos", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "It's", "Gain (11-13)% of Lightning Damage as Extra Chaos Damage", statOrder = { 1033 }, level = 72, group = "NonChaosAddedAsChaos", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "It's", "Gain (14-16)% of Lightning Damage as Extra Chaos Damage", statOrder = { 1033 }, level = 81, group = "NonChaosAddedAsChaos", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "It's", "Gain 4% of Lightning Damage as Extra Chaos Damage", statOrder = { 1033 }, level = 60, group = "NonChaosAddedAsChaos", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "It's", "Gain (5-6)% of Lightning Damage as Extra Chaos Damage", statOrder = { 1033 }, level = 72, group = "NonChaosAddedAsChaos", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "It's", "Gain (7-8)% of Lightning Damage as Extra Chaos Damage", statOrder = { 1033 }, level = 81, group = "NonChaosAddedAsChaos", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "It's", "Gain (8-10)% of Physical Damage as Extra Chaos Damage", statOrder = { 1030 }, level = 60, group = "NonChaosAddedAsChaos", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "It's", "Gain (11-13)% of Physical Damage as Extra Chaos Damage", statOrder = { 1030 }, level = 72, group = "NonChaosAddedAsChaos", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "It's", "Gain (14-16)% of Physical Damage as Extra Chaos Damage", statOrder = { 1030 }, level = 81, group = "NonChaosAddedAsChaos", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Prefix", affix = "It's", "Gain 4% of Physical Damage as Extra Chaos Damage", statOrder = { 1030 }, level = 60, group = "NonChaosAddedAsChaos", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "It's", "Gain (5-6)% of Physical Damage as Extra Chaos Damage", statOrder = { 1030 }, level = 72, group = "NonChaosAddedAsChaos", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Shield"] = true, }, }, { type = "Prefix", affix = "It's", "Gain (7-8)% of Physical Damage as Extra Chaos Damage", statOrder = { 1030 }, level = 81, group = "NonChaosAddedAsChaos", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Shield"] = true, }, }, { type = "Suffix", affix = "of Hillock", "4% increased Attributes", statOrder = { 2087 }, level = 60, group = "PercentageAllAttributes", types = { ["Body Armour"] = true, }, }, { type = "Suffix", affix = "of Hillock", "5% increased Attributes", statOrder = { 2087 }, level = 72, group = "PercentageAllAttributes", types = { ["Body Armour"] = true, }, }, { type = "Suffix", affix = "of Hillock", "6% increased Attributes", statOrder = { 2087 }, level = 81, group = "PercentageAllAttributes", types = { ["Body Armour"] = true, }, }, { type = "Prefix", affix = "Gravicius'", "Gain 6% of Maximum Life as Extra Maximum Energy Shield", statOrder = { 4831 }, level = 60, group = "LifeAddedAsEnergyShield", types = { ["Body Armour"] = true, }, }, { type = "Prefix", affix = "Gravicius'", "Gain (7-8)% of Maximum Life as Extra Maximum Energy Shield", statOrder = { 4831 }, level = 72, group = "LifeAddedAsEnergyShield", types = { ["Body Armour"] = true, }, }, { type = "Prefix", affix = "Gravicius'", "Gain (9-10)% of Maximum Life as Extra Maximum Energy Shield", statOrder = { 4831 }, level = 81, group = "LifeAddedAsEnergyShield", types = { ["Body Armour"] = true, }, }, { type = "Suffix", affix = "Jorgin's", "10% Chance to Trigger Level 18 Summon Spectral Wolf on Kill", statOrder = { 317 }, level = 60, group = "SummonWolfOnKill", types = { ["Amulet"] = true, }, }, { type = "Prefix", affix = "Korell's", "(3-4)% of Physical Damage from Hits taken as Fire Damage", statOrder = { 1479 }, level = 60, group = "PhysicalDamageTakenAsElement", types = { ["Helmet"] = true, }, }, { type = "Prefix", affix = "Korell's", "(5-6)% of Physical Damage from Hits taken as Fire Damage", statOrder = { 1479 }, level = 72, group = "PhysicalDamageTakenAsElement", types = { ["Helmet"] = true, }, }, { type = "Prefix", affix = "Korell's", "(7-8)% of Physical Damage from Hits taken as Fire Damage", statOrder = { 1479 }, level = 81, group = "PhysicalDamageTakenAsElement", types = { ["Helmet"] = true, }, }, { type = "Prefix", affix = "Rin's", "60% chance to Avoid being Frozen", statOrder = { 937 }, level = 60, group = "AvoidFreeze", types = { ["Boots"] = true, }, }, { type = "Prefix", affix = "Rin's", "80% chance to Avoid being Frozen", statOrder = { 937 }, level = 72, group = "AvoidFreeze", types = { ["Boots"] = true, }, }, { type = "Prefix", affix = "Rin's", "Cannot be Frozen", statOrder = { 937 }, level = 81, group = "AvoidFreeze", types = { ["Boots"] = true, }, }, { type = "Suffix", affix = "of Cameria", "(10-11)% increased Global Critical Strike Chance", "+(15-17)% to Critical Strike Multiplier if you've Shattered an Enemy Recently", statOrder = { 632, 3728 }, level = 60, group = "CriticalStrikeChanceIncrease", types = { ["Ring"] = true, }, }, { type = "Suffix", affix = "of Cameria", "(12-13)% increased Global Critical Strike Chance", "+(18-20)% to Critical Strike Multiplier if you've Shattered an Enemy Recently", statOrder = { 632, 3728 }, level = 72, group = "CriticalStrikeChanceIncrease", types = { ["Ring"] = true, }, }, { type = "Suffix", affix = "of Cameria", "(14-16)% increased Global Critical Strike Chance", "+(21-23)% to Critical Strike Multiplier if you've Shattered an Enemy Recently", statOrder = { 632, 3728 }, level = 81, group = "CriticalStrikeChanceIncrease", types = { ["Ring"] = true, }, }, { type = "Suffix", affix = "of Aisling", "(8-10)% increased Global Physical Damage", "(8-10)% increased Chaos Damage", statOrder = { 472, 558 }, level = 60, group = "IncreasedChaosAndPhysicalDamage", types = { ["Ring"] = true, }, }, { type = "Suffix", affix = "of Aisling", "(11-13)% increased Global Physical Damage", "(11-13)% increased Chaos Damage", statOrder = { 472, 558 }, level = 72, group = "IncreasedChaosAndPhysicalDamage", types = { ["Ring"] = true, }, }, { type = "Suffix", affix = "of Aisling", "(14-16)% increased Global Physical Damage", "(14-16)% increased Chaos Damage", statOrder = { 472, 558 }, level = 81, group = "IncreasedChaosAndPhysicalDamage", types = { ["Ring"] = true, }, }, { type = "Suffix", affix = "of Riker", "(8-10)% increased Fire Damage", "(8-10)% increased Lightning Damage", statOrder = { 536, 552 }, level = 60, group = "IncreasedFireAndLightningDamage", types = { ["Ring"] = true, }, }, { type = "Suffix", affix = "of Riker", "(11-13)% increased Fire Damage", "(11-13)% increased Lightning Damage", statOrder = { 536, 552 }, level = 72, group = "IncreasedFireAndLightningDamage", types = { ["Ring"] = true, }, }, { type = "Suffix", affix = "of Riker", "(14-16)% increased Fire Damage", "(14-16)% increased Lightning Damage", statOrder = { 536, 552 }, level = 81, group = "IncreasedFireAndLightningDamage", types = { ["Ring"] = true, }, }, { type = "Suffix", affix = "of the Order", "3% of Life Regenerated per second during Flask Effect", statOrder = { 4252 }, level = 60, group = "LocalFlaskLifeRegenerationPerMinuteDuringFlaskEffect", types = { ["Flask"] = true, ["Flask"] = true, ["Flask"] = true, ["Flask"] = true, ["Flask"] = true, }, }, { type = "Suffix", affix = "of the Order", "(8-12)% increased Movement Speed during Flask effect", "50% Chance to avoid being Stunned during Flask Effect", statOrder = { 376, 4244 }, level = 60, group = "LocalFlaskAvoidStunChanceAndMovementSpeedDuringFlaskEffect", types = { ["Flask"] = true, ["Flask"] = true, ["Flask"] = true, ["Flask"] = true, ["Flask"] = true, }, }, { type = "Suffix", affix = "of the Order", "(20-25)% reduced Mana Cost of Skills during Flask Effect", statOrder = { 391 }, level = 60, group = "LocalFlaskSkillManaCostDuringFlaskEffect", types = { ["Flask"] = true, ["Flask"] = true, ["Flask"] = true, ["Flask"] = true, ["Flask"] = true, }, }, { type = "Suffix", affix = "of the Order", "(20-30)% increased Rarity of Items found during Flask Effect", statOrder = { 4249 }, level = 60, group = "LocalFlaskItemFoundRarityDuringFlaskEffect", types = { ["Flask"] = true, ["Flask"] = true, ["Flask"] = true, ["Flask"] = true, ["Flask"] = true, }, }, { type = "Suffix", affix = "of the Order", "(60-80)% increased Critical Strike Chance during Flask Effect", statOrder = { 4246 }, level = 60, group = "LocalFlaskCriticalStrikeChanceDuringFlaskEffect", types = { ["Flask"] = true, ["Flask"] = true, ["Flask"] = true, ["Flask"] = true, ["Flask"] = true, }, }, { type = "Suffix", affix = "of the Order", "15% of Damage Taken from Hits is Leeched as Life during Flask Effect", statOrder = { 4250 }, level = 60, group = "LocalFlaskLifeLeechOnDamageTakenPermyriadDuringFlaskEffect", types = { ["Flask"] = true, ["Flask"] = true, ["Flask"] = true, ["Flask"] = true, ["Flask"] = true, }, }, { type = "Suffix", affix = "of the Order", "(8-10)% increased Attack Speed", "+(7-12)% to Quality", statOrder = { 584, 4257 }, level = 60, group = "IncreasedAttackSpeed", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "(13-16)% increased Attack Speed", "+(13-18)% to Quality", statOrder = { 584, 4257 }, level = 75, group = "IncreasedAttackSpeed", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Suffix", affix = "of the Order", "(15-20)% increased Critical Strike Chance", "+(7-12)% to Quality", statOrder = { 636, 4257 }, level = 60, group = "CriticalStrikeChanceIncrease", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "(21-25)% increased Critical Strike Chance", "+(13-18)% to Quality", statOrder = { 636, 4257 }, level = 75, group = "CriticalStrikeChanceIncrease", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(161-180) to Accuracy Rating", "+(10-12)% to Quality", statOrder = { 1123, 4257 }, level = 60, group = "IncreasedAccuracy", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(181-210) to Accuracy Rating", "+(13-15)% to Quality", statOrder = { 1123, 4257 }, level = 72, group = "IncreasedAccuracy", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(211-250) to Accuracy Rating", "+(16-18)% to Quality", statOrder = { 1123, 4257 }, level = 81, group = "IncreasedAccuracy", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "10% chance to Trigger Level 1 Blood Rage when you Kill an Enemy", "(8-10)% increased Attack Speed", statOrder = { 321, 584 }, level = 60, group = "IncreasedAttackSpeed", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "10% chance to Trigger Level 1 Blood Rage when you Kill an Enemy", "(13-16)% increased Attack Speed", statOrder = { 321, 584 }, level = 75, group = "IncreasedAttackSpeed", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, }, }, { type = "Suffix", affix = "of the Order", "(10-12)% increased Cast Speed", "10% chance to gain Arcane Surge when you Kill an Enemy", statOrder = { 617, 3975 }, level = 60, group = "IncreasedCastSpeed", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "(13-15)% increased Cast Speed", "10% chance to gain Arcane Surge when you Kill an Enemy", statOrder = { 617, 3975 }, level = 72, group = "IncreasedCastSpeed", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "(16-19)% increased Cast Speed", "10% chance to gain Arcane Surge when you Kill an Enemy", statOrder = { 617, 3975 }, level = 81, group = "IncreasedCastSpeed", types = { ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "(7-8)% increased Cast Speed", "10% chance to gain Arcane Surge when you Kill an Enemy", statOrder = { 617, 3975 }, level = 60, group = "IncreasedCastSpeed", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Suffix", affix = "of the Order", "(9-10)% increased Cast Speed", "10% chance to gain Arcane Surge when you Kill an Enemy", statOrder = { 617, 3975 }, level = 72, group = "IncreasedCastSpeed", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Suffix", affix = "of the Order", "(11-13)% increased Cast Speed", "10% chance to gain Arcane Surge when you Kill an Enemy", statOrder = { 617, 3975 }, level = 81, group = "IncreasedCastSpeed", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, }, }, { type = "Suffix", affix = "of the Order", "Trigger a Socketed Spell when you Use a Skill", statOrder = { 345 }, level = 75, group = "SupportedByTrigger", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Wand"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Bow"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(9-10)% to Fire and Chaos Resistances", statOrder = { 3911 }, level = 60, group = "FireAndChaosDamageResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(11-12)% to Fire and Chaos Resistances", statOrder = { 3911 }, level = 72, group = "FireAndChaosDamageResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(13-15)% to Fire and Chaos Resistances", statOrder = { 3911 }, level = 81, group = "FireAndChaosDamageResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(9-10)% to Lightning and Chaos Resistances", statOrder = { 4175 }, level = 60, group = "LightningAndChaosDamageResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(11-12)% to Lightning and Chaos Resistances", statOrder = { 4175 }, level = 72, group = "LightningAndChaosDamageResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(13-15)% to Lightning and Chaos Resistances", statOrder = { 4175 }, level = 81, group = "LightningAndChaosDamageResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(9-10)% to Cold and Chaos Resistances", statOrder = { 3667 }, level = 60, group = "ColdAndChaosDamageResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(11-12)% to Cold and Chaos Resistances", statOrder = { 3667 }, level = 72, group = "ColdAndChaosDamageResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(13-15)% to Cold and Chaos Resistances", statOrder = { 3667 }, level = 81, group = "ColdAndChaosDamageResistance", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(10-15) to Strength", "+(7-10)% to Quality", statOrder = { 434, 4257 }, level = 60, group = "Strength", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Shield"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(16-20) to Strength", "+(11-14)% to Quality", statOrder = { 434, 4257 }, level = 72, group = "Strength", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Shield"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(21-25) to Strength", "+(15-18)% to Quality", statOrder = { 434, 4257 }, level = 81, group = "Strength", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Shield"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(10-15) to Dexterity", "+(7-10)% to Quality", statOrder = { 435, 4257 }, level = 60, group = "Dexterity", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Shield"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(16-20) to Dexterity", "+(11-14)% to Quality", statOrder = { 435, 4257 }, level = 72, group = "Dexterity", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Shield"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(21-25) to Dexterity", "+(15-18)% to Quality", statOrder = { 435, 4257 }, level = 81, group = "Dexterity", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Shield"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(10-15) to Intelligence", "+(7-10)% to Quality", statOrder = { 436, 4257 }, level = 60, group = "Intelligence", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Shield"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(16-20) to Intelligence", "+(11-14)% to Quality", statOrder = { 436, 4257 }, level = 72, group = "Intelligence", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Shield"] = true, }, }, { type = "Suffix", affix = "of the Order", "+(21-25) to Intelligence", "+(15-18)% to Quality", statOrder = { 436, 4257 }, level = 81, group = "Intelligence", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Shield"] = true, }, }, { type = "Suffix", affix = "of the Order", "1% of Life Regenerated per second during any Flask Effect", statOrder = { 4171 }, level = 60, group = "LifeRegenerationRatePerMinuteWhileUsingFlask", types = { ["Belt"] = true, }, }, { type = "Suffix", affix = "of the Order", "1.5% of Life Regenerated per second during any Flask Effect", statOrder = { 4171 }, level = 72, group = "LifeRegenerationRatePerMinuteWhileUsingFlask", types = { ["Belt"] = true, }, }, { type = "Suffix", affix = "of the Order", "2% of Life Regenerated per second during any Flask Effect", statOrder = { 4171 }, level = 81, group = "LifeRegenerationRatePerMinuteWhileUsingFlask", types = { ["Belt"] = true, }, }, { type = "Suffix", affix = "of the Order", "(7-8)% increased Trap Throwing Speed", statOrder = { 1022 }, level = 60, group = "TrapThrowSpeed", types = { ["Amulet"] = true, ["Belt"] = true, }, }, { type = "Suffix", affix = "of the Order", "(9-10)% increased Trap Throwing Speed", statOrder = { 1022 }, level = 72, group = "TrapThrowSpeed", types = { ["Amulet"] = true, ["Belt"] = true, }, }, { type = "Suffix", affix = "of the Order", "(11-12)% increased Trap Throwing Speed", statOrder = { 1022 }, level = 81, group = "TrapThrowSpeed", types = { ["Amulet"] = true, ["Belt"] = true, }, }, { type = "Suffix", affix = "of the Order", "(7-8)% increased Mine Laying Speed", statOrder = { 1023 }, level = 60, group = "MineLayingSpeed", types = { ["Amulet"] = true, ["Helmet"] = true, }, }, { type = "Suffix", affix = "of the Order", "(9-10)% increased Mine Laying Speed", statOrder = { 1023 }, level = 72, group = "MineLayingSpeed", types = { ["Amulet"] = true, ["Helmet"] = true, }, }, { type = "Suffix", affix = "of the Order", "(11-12)% increased Mine Laying Speed", statOrder = { 1023 }, level = 81, group = "MineLayingSpeed", types = { ["Amulet"] = true, ["Helmet"] = true, }, }, { type = "Suffix", affix = "of the Order", "(7-8)% increased Brand Attachment range", statOrder = { 5122 }, level = 60, group = "BrandAttachmentRange", types = { ["Amulet"] = true, ["Gloves"] = true, }, }, { type = "Suffix", affix = "of the Order", "(9-10)% increased Brand Attachment range", statOrder = { 5122 }, level = 72, group = "BrandAttachmentRange", types = { ["Amulet"] = true, ["Gloves"] = true, }, }, { type = "Suffix", affix = "of the Order", "(11-12)% increased Brand Attachment range", statOrder = { 5122 }, level = 81, group = "BrandAttachmentRange", types = { ["Amulet"] = true, ["Gloves"] = true, }, }, { type = "Prefix", affix = "Chosen", "(5-8)% increased maximum Life", "(5-8)% increased maximum Mana", statOrder = { 727, 733 }, level = 60, group = "MaximumLifeIncreasePercent", types = { ["Body Armour"] = true, }, }, { type = "Prefix", affix = "Chosen", "(5-7)% Chance to Block Attack Damage", statOrder = { 408 }, level = 60, group = "BlockPercent", types = { ["Body Armour"] = true, }, }, { type = "Prefix", affix = "Chosen", "(8-10)% chance to Dodge Spell Hits", statOrder = { 1261 }, level = 60, group = "SpellDodgePercentage", types = { ["Body Armour"] = true, }, }, { type = "Prefix", affix = "Chosen", "(25-35)% chance to Avoid Elemental Ailments", "(25-35)% chance to Avoid being Stunned", statOrder = { 935, 943 }, level = 60, group = "AvoidStunAndElementalStatusAilments", types = { ["Body Armour"] = true, }, }, { type = "Prefix", affix = "Chosen", "(6-7)% increased Area of Effect", "(9-10)% increased Area Damage", statOrder = { 971, 1134 }, level = 60, group = "AreaDamageAndAreaOfEffect", types = { ["Amulet"] = true, }, }, { type = "Prefix", affix = "Chosen", "(8-9)% increased Area of Effect", "(11-13)% increased Area Damage", statOrder = { 971, 1134 }, level = 72, group = "AreaDamageAndAreaOfEffect", types = { ["Amulet"] = true, }, }, { type = "Prefix", affix = "Chosen", "(10-12)% increased Area of Effect", "(14-16)% increased Area Damage", statOrder = { 971, 1134 }, level = 81, group = "AreaDamageAndAreaOfEffect", types = { ["Amulet"] = true, }, }, { type = "Prefix", affix = "Chosen", "(10-12)% increased Projectile Speed", "(9-10)% increased Projectile Damage", statOrder = { 899, 1095 }, level = 60, group = "ProjectileDamageAndProjectileSpeed", types = { ["Amulet"] = true, }, }, { type = "Prefix", affix = "Chosen", "(13-16)% increased Projectile Speed", "(11-13)% increased Projectile Damage", statOrder = { 899, 1095 }, level = 72, group = "ProjectileDamageAndProjectileSpeed", types = { ["Amulet"] = true, }, }, { type = "Prefix", affix = "Chosen", "(17-20)% increased Projectile Speed", "(14-16)% increased Projectile Damage", statOrder = { 899, 1095 }, level = 81, group = "ProjectileDamageAndProjectileSpeed", types = { ["Amulet"] = true, }, }, { type = "Prefix", affix = "Chosen", "(9-10)% increased Melee Damage", "+1 to Melee Weapon and Unarmed Attack range", statOrder = { 1080, 1558 }, level = 60, group = "MeleeRangeAndMeleeDamage", types = { ["Amulet"] = true, }, }, { type = "Prefix", affix = "Chosen", "(11-13)% increased Melee Damage", "+1 to Melee Weapon and Unarmed Attack range", statOrder = { 1080, 1558 }, level = 72, group = "MeleeRangeAndMeleeDamage", types = { ["Amulet"] = true, }, }, { type = "Prefix", affix = "Chosen", "(14-16)% increased Melee Damage", "+1 to Melee Weapon and Unarmed Attack range", statOrder = { 1080, 1558 }, level = 81, group = "MeleeRangeAndMeleeDamage", types = { ["Amulet"] = true, }, }, { type = "Suffix", affix = "of Prefixes", "Prefixes Cannot Be Changed", statOrder = { 2 }, level = 1, group = "ItemGenerationCannotChangePrefixes", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Prefix", affix = "Suffixed", "Suffixes Cannot Be Changed", statOrder = { 3 }, level = 1, group = "ItemGenerationCannotChangeSuffixes", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Crafting", "Can have multiple Crafted Modifiers", statOrder = { 6 }, level = 1, group = "ItemGenerationCanHaveMultipleCraftedMods", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Spellcraft", "Cannot roll Attack Modifiers", statOrder = { 5 }, level = 1, group = "ItemGenerationCannotRollAttackAffixes", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, { type = "Suffix", affix = "of Weaponcraft", "Cannot roll Caster Modifiers", statOrder = { 4 }, level = 1, group = "ItemGenerationCannotRollCasterAffixes", types = { ["Dagger"] = true, ["One Handed Axe"] = true, ["One Handed Mace"] = true, ["One Handed Sword"] = true, ["Claw"] = true, ["Sceptre"] = true, ["Thrusting One Handed Sword"] = true, ["Two Handed Axe"] = true, ["Two Handed Mace"] = true, ["Two Handed Sword"] = true, ["Staff"] = true, ["Wand"] = true, ["Bow"] = true, ["Body Armour"] = true, ["Gloves"] = true, ["Boots"] = true, ["Helmet"] = true, ["Shield"] = true, ["Ring"] = true, ["Amulet"] = true, ["Belt"] = true, ["Quiver"] = true, }, }, }
local F, C = unpack(select(2, ...)) local MISC = F:GetModule('Misc') local mailButton = CreateFrame('Button', 'FreeUIMailButton', InboxFrame, 'UIPanelButtonTemplate') local text = F.CreateFS(mailButton, 'pixel', '', nil, true, 'CENTER', 0, 0) local processing = false local function OnEvent() if(not MailFrame:IsShown()) then return end local num = GetInboxNumItems() local cash = 0 local items = 0 for i = 1, num do local _, _, _, _, money, COD, _, item = GetInboxHeaderInfo(i) if(item and COD<1) then items = items + item end cash = cash + money end text:SetText(C.InfoColor..format('%d gold, %d items', floor(cash * 0.0001), items)) if(processing) then if(num==0) then processing = false return end for i = num, 1, -1 do local _, _, _, _, money, COD, _, itemCount, _, _, _, _, isGM = GetInboxHeaderInfo(i) if not isGM then if(itemCount and COD<1) then AutoLootMailItem(i) return end if(money>0) then TakeInboxMoney(i) return end end end end end local function OnClick() FreeUIMailFrame:Hide() MiniMapMailFrame:Hide() if(not processing) then processing = true OnEvent() end end local function OnHide() processing = false end function MISC:MailButton() if not C.general.mailButton then return end OpenAllMail:Hide() OpenAllMail:UnregisterAllEvents() mailButton:SetPoint('BOTTOM', InboxFrame, 'BOTTOM', -20, 102) mailButton:SetWidth(128) mailButton:SetHeight(25) F.Reskin(mailButton) mailButton:RegisterEvent('MAIL_INBOX_UPDATE') mailButton:SetScript('OnEvent', OnEvent) mailButton:SetScript('OnClick', OnClick) mailButton:SetScript('OnHide', OnHide) end
-- * Copyright © 2021 Data and Service Center for the Humanities and/or DaSCH Service Platform contributors. -- * SPDX-License-Identifier: Apache-2.0 -- Knora GUI-case: create a thumbnail require "send_response" server.setBuffer() for imgindex,imgparam in pairs(server.uploads) do end result = { me = "Lukas", you = "not lukas" } send_success(result)
---@class TraitCollection : zombie.characters.traits.TraitCollection ---@field private m_activeTraitNames List|Unknown ---@field private m_traits List|Unknown TraitCollection = {} ---@public ---@param arg0 int ---@return String function TraitCollection:get(arg0) end ---@public ---@return boolean function TraitCollection:isEmpty() end ---@public ---@return String function TraitCollection:toString() end ---@public ---@param arg0 Object ---@return boolean ---@overload fun(arg0:String) function TraitCollection:remove(arg0) end ---@public ---@param arg0 String ---@return boolean function TraitCollection:remove(arg0) end ---@public ---@return void function TraitCollection:clear() end ---@public ---@param arg0 String ---@param arg1 boolean ---@return void function TraitCollection:set(arg0, arg1) end ---@public ---@param arg0 String ---@return void function TraitCollection:add(arg0) end ---@public ---@param arg0 String ---@return boolean ---@overload fun(arg0:Object) function TraitCollection:contains(arg0) end ---@public ---@param arg0 Object ---@return boolean function TraitCollection:contains(arg0) end ---@private ---@param arg0 int ---@return void function TraitCollection:deactivateTraitSlot(arg0) end ---@private ---@param arg0 String ---@return TraitCollection.TraitSlot function TraitCollection:getOrCreateSlotInternal(arg0) end ---@public ---@return int function TraitCollection:size() end ---@public ---@param arg0 Collection|Unknown ---@return void function TraitCollection:addAll(arg0) end ---@private ---@param arg0 String ---@return int function TraitCollection:indexOfTrait(arg0) end ---@public ---@param arg0 Collection|Unknown ---@return void function TraitCollection:removeAll(arg0) end ---@private ---@param arg0 int ---@return TraitCollection.TraitSlot function TraitCollection:getSlotInternal(arg0) end ---@public ---@param arg0 String ---@return TraitCollection.TraitSlot function TraitCollection:getTraitSlot(arg0) end
local _M = {} _M.NONE = 0 _M.JIEHU = 1 _M.XUELIU = 2 _M.XUEZHAN = 3 return _M
-- config: (lint (only doc:unordered-versions)) --- A module -- -- @since 1.0 -- @changed 1.1 -- @since 1.2
-- loops, lookups, tables function table_push_back(t, val) table.insert(t, val); end function table_erase(t, val) for i = 1, table.getn(t) do if val == table[i] then table.remove(t, i) return true end end return false; end function table_erase_at(t, index) table.remove(t, inex); end function table_find(container, predicate) for i = 1, table.getn(container) do if predicate(container[i]) then return container[i] end end return nil; end function table_2d(width, height, def_val) local this = { }; for i = 1, height do table.insert(this, { }); for j = 1, width do table.insert(this[i], def_val) end end return this; end function foreach(container, action) for i = 1, table.getn(container) do action(container[i]) end end -- dbg function assert(condition, message) if not condition then return end print(message); while 1 == 1 do end end -- string utils function string_is_nil_or_empty(str) if (type(str) == "string") then return str == nil or str == string_empty() end return false; end function string_is_whitespace(str) for i = 1, string.len(str) do if not str[i] == ' ' then return false end end return true end function string_empty() return ""; end
return { tag = 'sourcePlayback', summary = 'Set the playback position of the Source.', description = 'Seeks the Source to the specified position.', arguments = { { name = 'position', type = 'number', description = 'The position to seek to.' }, { name = 'unit', type = 'TimeUnit', default = [['seconds']], description = 'The units for the seek position.' } }, returns = {}, notes = 'Seeking a Source backed by a stream `Sound` has no meaningful effect.' }
local M = {} M.projectDir = lfs.currentdir() M.filter = { extensions = {}, folders = {} } -- show buffer w function M.showFileSearch() local tempFolders = {} -- copy folders to new table for i, folder in ipairs(M.filter.folders) do table.insert( tempFolders, M.projectDir .. '\\' .. folder ) end -- open dialog io.quick_open( M.projectDir, { extensions = M.filter.extensions, folders = tempFolders } ) end function M.excludeExtensions() local exclExt = '' local newExt = {} local status -- excluded extensions as string for _, ext in ipairs(M.filter.extensions) do exclExt = exclExt .. '\r\n' .. ext end -- show dialog status, exclExt = ui.dialogs.textbox { title = 'Exclude extensions', informative_text = 'separate by line', text = exclExt, editable = true } -- recreate table from string for substr in exclExt:gmatch('[^\r\n]+') do table.insert(newExt, substr) end if status ~= _L['_OK'] then M.filter.extensions = newExt end end function M.excludeFolders() local exclFolders = '' local newFolders = {} local status -- put excluded folders as string for i, folder in ipairs(M.filter.folders) do exclFolders = exclFolders .. '\r\n' .. folder end -- show dialog status, exclFolders = ui.dialogs.textbox { title = 'Exclude folders', informative_text = 'separate by line', text = exclFolders, editable = true } -- recreate table from string for substr in exclFolders:gmatch('[^\r\n]+') do table.insert(newFolders, substr) end if status ~= _L['_OK'] then M.filter.folders = newFolders end end -- add project menu local projectMenu = { title = '_Project', { 'Search File', M.showFileSearch }, { 'Set Project _Directory', -- set project directory function() M.projectDir = ui.dialogs.fileselect({ title = '', select_only_directories = true, with_directory = M.projectDir }) end } } local exlcudeMenu = { title = '_Exclude', { '_Directories', M.excludeFolders }, { '_Extensions', M.excludeExtensions } } -- add exclude submenu to projectMenu projectMenu[#projectMenu + 1] = exlcudeMenu -- add project menu to textadept top-level menubar textadept.menu.menubar[#textadept.menu.menubar + 1] = projectMenu return M
local reference = { ["particles/units/heroes/hero_antimage/antimage_manavoid.vpcf"] = "particles/rubick_manavoid.vpcf", ["particles/units/heroes/hero_crystalmaiden/maiden_freezing_field_explosion.vpcf"] = "particles/rubick_freezing_field_explosion.vpcf", ["particles/units/heroes/hero_crystalmaiden/maiden_freezing_field_snow.vpcf"] = "particles/rubick_freezing_field_snow.vpcf", ["particles/units/heroes/hero_dark_willow/dark_willow_wisp_aoe.vpcf"] = "particles/rubick_wisp_aoe_proj.vpcf", ["particles/units/heroes/hero_dark_willow/dark_willow_wisp_aoe_cast.vpcf"] = "particles/rubick_wisp_aoe_cast.vpcf", ["particles/units/heroes/hero_dark_willow/dark_willow_wisp_spell_channel.vpcf"] = "particles/rubick_wisp_spell_channel.vpcf", ["particles/units/heroes/hero_dark_willow/dark_willow_willowisp_base_attack.vpcf"] = "particles/rubick_willowisp_base_attack.vpcf", ["particles/units/heroes/hero_dark_willow/dark_willow_willowisp_ambient.vpcf"] = "particles/rubick_willowisp_ambient.vpcf", ["particles/units/heroes/hero_dark_willow/dark_willow_willowisp_base_attack.vpcf"] = "particles/rubick_willowisp_base_attack.vpcf", ["particles/units/heroes/hero_earthshaker/earthshaker_fissure.vpcf"] = "particles/rubick_fissure.vpcf", ["particles/units/heroes/hero_enigma/enigma_blackhole.vpcf"] = "particles/rubick_blackhole.vpcf", ["particles/units/heroes/hero_faceless_void/faceless_void_chronosphere.vpcf"] = "particles/rubick_chronosphere.vpcf", ["particles/units/heroes/hero_invoker/invoker_chaos_meteor.vpcf"] = "particles/rubick_chaos_meteor.vpcf", ["particles/units/heroes/hero_invoker/invoker_chaos_meteor_fly.vpcf"] = "particles/rubick_chaos_meteor_fly.vpcf", ["particles/econ/items/lich/lich_ti8_immortal_arms/lich_ti8_chain_frost.vpcf"] = "particles/rubick_chain_frost.vpcf", ["particles/units/heroes/hero_shredder/shredder_chakram.vpcf"] = "particles/rubick_chakram.vpcf", ["particles/units/heroes/hero_shredder/shredder_chakram_stay.vpcf"] = "particles/rubick_chakram_stay.vpcf", ["particles/units/heroes/hero_shredder/shredder_chakram_return.vpcf"] = "particles/rubick_chakram_return.vpcf", ["particles/units/heroes/hero_omniknight/omniknight_guardian_angel_ally.vpcf"] = "particles/rubick_guardian_angel_ally.vpcf", ["particles/units/heroes/hero_omniknight/omniknight_guardian_angel_omni.vpcf"] = "particles/rubick_guardian_angel_rubick.vpcf", } return reference --[[ ////// not changing the reference: - bane - bristleback - ck - dazzle - doom - lion - luna - puck - qop - sandking - sf - slardar - ursa //////// problem: - shadow wave (turn yellow) - epicenter (still white) - dream coil (turn yellow) ///////////// not/partial implemented: complex: - magnetize - stampede - nature's attendants - soulbind - mystic flare tracking proj: - chaos bolt - chain frost - stifling dagger - wraithfire blast lazy: - sacred arrow - dark pact - rearm ]]
-- Decorations local decRegion = View.PixelRegionDecoration.create() decRegion:setColor(250, 0, 0, 100) local planeDeco = View.ShapeDecoration.create() planeDeco:setFillColor(0, 255, 255, 80) planeDeco:setLineColor(0, 255, 255) planeDeco:setLineWidth(3) -- Creating classifier and select font local fontClassifierPlastic = Image.OCR.Halcon.FontClassifier.create() fontClassifierPlastic:setFont('INDUSTRIAL_0_9A_Z_NOREJ') local fontClassifierCard = Image.OCR.Halcon.FontClassifier.create() fontClassifierCard:setFont('INDUSTRIAL_0_9_NOREJ') local imDeco = View.ImageDecoration.create() imDeco:setRange(35.0, 55.0) return { decRegion = decRegion, planeDeco = planeDeco, fontClassifierPlastic = fontClassifierPlastic, fontClassifierCard = fontClassifierCard, imDeco = imDeco }
--[[ Recompute a fixed value, i.e. a value that was set at an offset from a reference point. Used for moving around elements with a fixed size or fixed position. Examples: - Recompute X value fixed at an offset of 60 from the center of the screen: recomputeFixedValue(1020, 960, 1296) = 1356 - Recompute Y value fixed at an offset of -80 from the bottom of the screen: recomputeFixedValue(1000, 1080, 1600) = 1520 ]] local function recomputeFixedValue(originalValue, originalReferencePoint, newReferencePoint) local offset = originalReferencePoint - originalValue return newReferencePoint - offset end function Hephaistos.RecomputeFixedXFromLeft(originalValue, centerHud) centerHud = centerHud or Hephaistos.CenterHUD if centerHud then return Hephaistos.RecomputeFixedXFromCenter(originalValue) else return originalValue end end function Hephaistos.RecomputeFixedXFromCenter(originalValue) return recomputeFixedValue(originalValue, Hephaistos.Original.ScreenCenterX, Hephaistos.ScreenCenterX) end function Hephaistos.RecomputeFixedXFromRight(originalValue, centerHud) centerHud = centerHud or Hephaistos.CenterHUD if centerHud then return recomputeFixedValue(originalValue, Hephaistos.Original.ScreenCenterX, Hephaistos.ScreenCenterX) else return recomputeFixedValue(originalValue, Hephaistos.Original.ScreenWidth, Hephaistos.ScreenWidth) end end function Hephaistos.RecomputeFixedYFromCenter(originalValue) return recomputeFixedValue(originalValue, Hephaistos.Original.ScreenCenterY, Hephaistos.ScreenCenterY) end function Hephaistos.RecomputeFixedYFromBottom(originalValue) return recomputeFixedValue(originalValue, Hephaistos.Original.ScreenHeight, Hephaistos.ScreenHeight) end --[[ Reposition an object relative to the center of the screen. ]] function Hephaistos.Recenter(args, X, Y) X = X or 'X' Y = Y or 'Y' args[X] = args[X] and Hephaistos.RecomputeFixedXFromCenter(args[X]) or args[X] args[Y] = args[Y] and Hephaistos.RecomputeFixedYFromCenter(args[Y]) or args[Y] end function Hephaistos.RecenterOffsets(args) Hephaistos.Recenter(args, 'OffsetX', 'OffsetY') end --[[ Rescale an object relative to the size of the screen. ]] function Hephaistos.Rescale(args) local originalFraction = args.Fraction args.Fraction = originalFraction and originalFraction * Hephaistos.ScaleFactorX or Hephaistos.ScaleFactorX SetScaleX(args) args.Fraction = originalFraction and originalFraction * Hephaistos.ScaleFactorY or Hephaistos.ScaleFactorY SetScaleY(args) end --[[ Register pre-hook on given function with `callback` to be executed before the original function is called. ]] function Hephaistos.RegisterPreHook(functionName, callback) if not ModUtil then -- store original function Hephaistos.Original[functionName] = _G[functionName] -- replace original function with our own version _G[functionName] = function(...) -- call our callback, then original function callback(...) return Hephaistos.Original[functionName](...) end else ModUtil.Path.Wrap(functionName, function(base, ...) callback(...) return base(...) end, Hephaistos) end end --[[ Register post-hook on given function with `callback` to be executed after the original function has been called. ]] function Hephaistos.RegisterPostHook(functionName, callback) if not ModUtil then -- store original function Hephaistos.Original[functionName] = _G[functionName] -- replace original function with our own version _G[functionName] = function(...) -- call original function, then our callback local val = Hephaistos.Original[functionName](...) callback(...) return val end else ModUtil.Path.Wrap(functionName, function(base, ...) local val = base(...) callback(...) return val end, Hephaistos) end end --[[ Unregister hook on given function, restoring the original one. ]] function Hephaistos.UnregisterHook(functionName) _G[functionName] = Hephaistos.Original[functionName] Hephaistos.Original[functionName] = nil end --[[ Check if hook exists on given function. ]] function Hephaistos.HasHook(functionName) return Hephaistos.Original[functionName] ~= nil end --[[ Check that all keys in `check` exist in `params` and have the same value. ]] local function matchAll(params, check) for key, value in pairs(check) do if not params[key] or params[key] ~= value then return false end end return true end --[[ Return true if any vararg has all its keys in `params` with the same value. Useful for filtering in hooks by copy/pasting objects from original code, e.g.: MatchAll(params, { Name = "Foo", Group = "Bar", X = 10, Y = 20 }, { Name = "Foo2", Group = "Bar2", X = 30, Y = 40 }) => check if `params` matches any of those 2 ]] function Hephaistos.MatchAll(params, ...) for _, check in ipairs({...}) do if matchAll(params, check) then return true end end return false end --[[ By default return function `GetCallerFunc`: - `foo` calls `GetCallerFunc` - `GetCallerFunc` returns `foo` (function) If optional `level` argument is passed, then it overrides the stack level at which we look for caller name (default of 2). This is useful when there are intermediate functions between the caller we want to check for and the actual call to `GetCallerFunc`. Example: - `foo` calls `bar` - `bar` calls `GetCallerFunc(3)` - `GetCallerFunc` returns `foo` (function) Beware of Lua tail calls, as they are "inlined" and do not increment stack level: https://www.lua.org/manual/5.2/manual.html#3.4.9 ]] function Hephaistos.GetCallerFunc(level) level = level and level or 2 local caller = debug.getinfo(level, 'f') return caller and caller.func or nil end --[[ Return true when the caller of a specific function we hooked onto with `Hephaistos.RegisterFilterHook` is registered in `filterTable`, and its filter condition matches. See `Hephaistos.RegisterFilterHook` for details. ]] local function filterHook(filterTable, ...) -- check caller of functionName local caller = Hephaistos.GetCallerFunc(4) if caller then -- if caller matches a registered filter from Hephaistos filters, pass -- function arguments to filter for analysis local shouldFilter = filterTable[caller] if shouldFilter and shouldFilter(...) then return true end end return false end --[[ Register filter hook on given function with `callback` to be executed if a filter (based on caller function and passed arguments) matches. This is useful for filtering values in specific function calls when coming from specific functions with specific arguments. Everytime a function we've hooked on is called, our hook checks the caller function and looks up registered filters. If any filter is found for the caller function, original function call arguments are passed to the filter. If the filter matches the given arguments, the registered `callback` is called with the original function call arguments. Afterwards: - If replaceOriginalCall is set, the callback return value replaces the original function call return value (filter and replace mode). - Otherwise, the original function is called after the callback has been called (filter-only mode). For example, `WeaponUpgradeScripts.lua` originally defines `ShowWeaponUpgradeScreen`, which itself calls `CreateScreenComponent` with hardcoded X/Y values to position the weapon image when opening the weapon aspects menu screen (where we can spend Titan Blood for upgrades): components.WeaponImage = CreateScreenComponent({ Name = "rectangle01", Group = "Combat_Menu_TraitTray", X = 335, Y = 435 }) To reposition the weapon image, we register a filter with a filter condition specifically matching the weapon image `CreateScreenComponent` arguments from `ShowWeaponUpgradeScreen`: Hephaistos.CreateScreenComponent[ShowWeaponUpgradeScreen] = function(params) return Hephaistos.MatchAll(params, { Name = "rectangle01", Group = "Combat_Menu_TraitTray", X = 335, Y = 435 }) end And then we register a filter hook on `CreateScreenComponent`: Hephaistos.CreateScreenComponent = {} Hephaistos.RegisterFilterHook("CreateScreenComponent", callback) This will call `callback` with `CreateScreenComponent` arguments, but only if `CreateScreenComponent` is called from `ShowWeaponUpgradeScreen` with these specific arguments. ]] function Hephaistos.RegisterFilterHook(functionName, callback, replaceOriginalCall) -- create filter table for storing caller filters if not Hephaistos[functionName] then Hephaistos[functionName] = {} end -- store original function Hephaistos.Original[functionName] = _G[functionName] -- replace original function with our own version _G[functionName] = function(...) -- if filter matches, pass function arguments to callback if filterHook(Hephaistos[functionName], ...) then -- if replaceOriginalCall is set, return callback instead of original function call if replaceOriginalCall then return callback(...) -- otherwise return original function call after callback else callback(...) return Hephaistos.Original[functionName](...) end end -- if filter do not match, act as passthrough to the original function call return Hephaistos.Original[functionName](...) end end --[[ Copy all filters from `sourceFilters` to `targetFilters`. ]] function Hephaistos.LoadFilters(sourceFilters, targetFilters) for caller, hooks in pairs(sourceFilters) do if not targetFilters[caller] then targetFilters[caller] = {} end for _, hook in ipairs(hooks) do table.insert(targetFilters[caller], hook) end end end --[[ Register all filters in `filters` (table) via either: - Hephaistos.RegisterFilterHook + Hephaistos[OverridenFunction][CallerFunction] = FilterCondition - ModUtil.Path.Context.Env + ModUtil.Path.Wrap depending on if ModUtil is available or not. All filters should be consolidated in a single table via `LoadFilters` so that they get loaded all at once via a single call to `RegisterFilters`. This is necessary due to how the ModUtil compatibility layer registers hooks (we don't want to `ModUtil.Path.Context.Env` the same function multiple times, but only once). Multiple calls are idempotent w.r.t. to hooking: the hooks are only set up once, if the hook already exists then `RegisterFilter` will only re-enable the filtering itself. ]] Hephaistos.EnabledFilters = {} function Hephaistos.RegisterFilters(filters) for caller, hooks in pairs(filters) do if not ModUtil then for _, args in ipairs(hooks) do if not Hephaistos.HasHook(args.Hook) then Hephaistos.RegisterFilterHook(args.Hook, args.Action) end if not args.Filter then args.Filter = function() return true end end Hephaistos[args.Hook][_G[caller]] = args.Filter end else if not Hephaistos.EnabledFilters[caller] then Hephaistos.EnabledFilters[caller] = {} ModUtil.Path.Context.Env(caller, function() for _, args in ipairs(hooks) do ModUtil.Path.Wrap(args.Hook, function(base, ...) if Hephaistos.EnabledFilters[caller][args.Hook] and ( -- filter enabled args.Filter and args.Filter(...) -- filter function exists and matches or args.Filter == nil -- filter function does not exist (= always true) ) then args.Action(...) end return base(...) end, Hephaistos) end end, Hephaistos) end for _, args in ipairs(hooks) do Hephaistos.EnabledFilters[caller][args.Hook] = true end end end end --[[ Disable all filters in `filters` (table). The hooks will stay in place and filtering can be re-enabled by calling `RegisterFilter` again. ]] function Hephaistos.UnregisterFilters(filters) for caller, hooks in pairs(filters) do for _, args in ipairs(hooks) do if not ModUtil then Hephaistos[args.Hook][_G[caller]] = nil else Hephaistos.EnabledFilters[caller][args.Hook] = nil end end end end --[[ FUNCTIONS BELOW ONLY FOR DEVELOPMENT PURPOSES ]] function Hephaistos.GetCallStack() local callstack = "" local level = 2 local caller = true while caller do caller = debug.getinfo(level, 'n') if caller and caller.name then callstack = callstack.." "..caller.name end level = level + 1 end return callstack end -- Hephaistos.DevelopmentMode = true if Hephaistos.DevelopmentMode then --[[ Force roll the end credits (the ones displayed after passing [Redacted] 10 times). Note: the `StartRoom` logic from `RoomManager.lua` has special handling related to `BiomeSpeedShrineUpgrade` (the Tight Deadline pact). If this pact is enabled, the code below will crash. It must be used with Tight Deadline disabled. ]] OnControlPressed { "Use", function(triggerArgs) CurrentRun.CurrentRoom = RoomSetData.Surface.E_Story01 LeaveRoomWithNoDoor(_, { NextMap = "Return01" }) thread(HandleReturnBoatRideIntro, CurrentRun.CurrentRoom) end } --[[ Force roll the run clear screen (displayed after passing [Redacted]). ]] OnControlPressed { "Gift", function(triggerArgs) ShowRunClearScreen() end } end
--[[ =================================== Target Id and Name Tracking =================================== This class provides a buffer to remember monster target names for a given targetUnitId for a short duration, since sometimes during a kill event, the target name shows up as empty. I think this happens when someone else does the killing. Whenever a damage event occurs where we know the target name, the target name and id are added to this class, and the timestamp is recorded. A bit over half a minute after the monster stops receiving damage, it is removed from the tracker entirely. If it's not dead, it's either abandoned, or it can be tracked again the next time it gets damaged. ]] local addon = CharacterZoneTracker local debug = false -- Note, this needs to be long enough for all dots to expire, -- but short enough to make sure we free up RAM frequently during large mob fights. local CACHE_LIFETIME_MS = 37000 local PURGE_OLD_TARGETS_NAME = addon.name .. "_TargetTracker_PurgeOldTargets" -- Singleton class local TargetTracker = ZO_Object:Subclass() function TargetTracker:New() return ZO_Object.New(self) end function TargetTracker:Initialize() self.targetUnitNames = {} -- Tracks the last time a target was registered. self.targetsLastSeen = {} -- Register background task to keep old targets from filling up self.targetUnitNames indefinitely. EVENT_MANAGER:RegisterForUpdate( PURGE_OLD_TARGETS_NAME, CACHE_LIFETIME_MS, self:Closure("PurgeOldTargets") ) end --------------------------------------- -- -- Public Methods -- --------------------------------------- function TargetTracker:Closure(functionName) return function(...) return self[functionName](self, ...) end end function TargetTracker:GetTargetName(targetUnitId) if not targetUnitId or targetUnitId == 0 then return end return self.targetUnitNames[targetUnitId] end --[[ Called on an interval to clear out old targets from the list of tracked targets. ]] -- function TargetTracker:PurgeOldTargets() local threshold = os.rawclock() - CACHE_LIFETIME_MS for targetUnitId, lastSeen in pairs(self.targetsLastSeen) do if lastSeen < threshold then self.targetUnitNames[targetUnitId] = nil self.targetsLastSeen[targetUnitId] = nil end end end function TargetTracker:RegisterTarget(targetUnitId, targetName) if not targetName or targetName == "" then -- Reset the clock on known target units, even when someone else damages them. if self.targetUnitNames[targetUnitId] then self.targetsLastSeen[targetUnitId] = os.rawclock() end return end targetName = zo_strformat("<<1>>", targetName) self.targetUnitNames[targetUnitId] = targetName self.targetsLastSeen[targetUnitId] = os.rawclock() end function TargetTracker:Reset() ZO_ClearTable(self.targetUnitNames) ZO_ClearTable(self.targetsLastSeen) end --------------------------------------- -- -- Private Methods -- --------------------------------------- -- Create singleton addon.TargetTracker = TargetTracker:New()
-- 컨트롤 local util = require('__core__.lualib.util') _initiated_session_ = false require('modules.register_event') --[[ download : https://mods.factorio.com/mod/gvv github : https://github.com/x2605/gvv --]] -- Copy & paste following code at the end of empty line of "control.lua" file of other mod or savefile or scenario. -- 다음 코드를 다른 모드나 세이브파일, 또는 시나리오에 있는 "control.lua" 파일의 마지막 빈 줄에 복사&붙여넣기 하세요. -- This is a part of "gvv", "Lua API global Variable Viewer" mod. -- It makes possible gvv mod to read sandboxed variables in the map or other mod if following code is inserted at the end of empty line of "control.lua" of each. if script.active_mods["gvv"] then require("__gvv__.gvv")() end -- 이 코드는 "gvv", "Lua API global Variable Viewer" 모드의 일부입니다. -- 다른 모드나 지도의 "control.lua" 빈 줄 끝에 삽입하면 gvv 모드가 맵이나 다른 모드에서 샌드박스처리된 global 변수를 읽을 수 있습니다.
require("prototypes.belts.belts") local base_locomotive = data.raw["locomotive"]["locomotive"] local group_name = "locomotive" if base_locomotive and base_locomotive.fast_replaceable_group then group_name = base_locomotive.fast_replaceable_group else base_locomotive.fast_replaceable_group = group_name end for i=1, 5, 1 do local subterra_locomotive = data.raw["locomotive"]["locomotive-" .. i] if subterra_locomotive then subterra_locomotive.fast_replaceable_group = group_name end end
local API_NPC = require(script:GetCustomProperty("API_NPC")) local API_D = require(script:GetCustomProperty("APIDamage")) local RANGE = 3500.0 local COOLDOWN = 14.0 local DAMAGE = 25.0 local SPEED = 2000.0 local currentTasks = {} function GetPriority(npc, taskHistory) return 1.0 end function OnTaskStart(npc, threatTable) -- Initial values for the single player case local chargeTarget = API_NPC.GetTarget(npc) local targetThreat = 0.0 -- Find the player in range with the most threat who we aren't currently targeting for player, threat in pairs(threatTable) do if player ~= API_NPC.GetTarget(npc) and threat > targetThreat then if (player:GetWorldPosition() - npc:GetWorldPosition()).size <= RANGE then chargeTarget = player targetThreat = threat end end end API_NPC.LookAtTargetWithoutPitch(npc, chargeTarget:GetWorldPosition()) local chargeTargetThreat = threatTable[chargeTarget] local tankThreat = threatTable[API_NPC.GetTarget(npc)] API_NPC.SetThreat(npc, chargeTarget, tankThreat) API_NPC.SetThreat(npc, API_NPC.GetTarget(npc), targetThreat) local targetBasePosition = chargeTarget:GetWorldPosition() - Vector3.UP * 100.0 * chargeTarget:GetWorldScale().z local offset = targetBasePosition - npc:GetWorldPosition() local offsetSize = offset.size local offsetDirection = offset:GetNormalized() local destination = npc:GetWorldPosition() + offsetDirection * (offsetSize - 200.0) if offsetSize < 200.0 then destination = npc:GetWorldPosition() end local travelTime = (destination - npc:GetWorldPosition()).size / SPEED npc:MoveTo(destination, travelTime) currentTasks[npc] = Task.Spawn(function() Task.Wait(travelTime) if Object.IsValid(chargeTarget) then API_D.ApplyDamage(npc, chargeTarget, DAMAGE) end end) return math.max(0.1, travelTime) end function OnTaskEnd(npc, interrupted) if interrupted and currentTasks[npc] then currentTasks[npc]:Cancel() end currentTasks[npc] = nil end API_NPC.RegisterTaskServer("swampwarrior_charge", RANGE, COOLDOWN, GetPriority, OnTaskStart, OnTaskEnd)
function love.conf(t) t.title = "TROSH: The Movie: The Game" t.author = "Maurice" t.console = false t.screen = t.window t.screen.vsync = true t.screen.width = 800 t.screen.height = 600 t.screen.msaa = 16 end function math.mod(a, b) return a % b end
local MJ_CARDS_TYPE = { [1] = "🀇", [2] = "🀈", [3] = "🀉", [4] = "🀊", [5] = "🀋", [6] = "🀌", [7] = "🀍", [8] = "🀎", [9] = "🀏", [11] = "🀐", [12] = "🀑", [13] = "🀒", [14] = "🀓", [15] = "🀔", [16] = "🀕", [17] = "🀖", [18] = "🀗", [19] = "🀘", [21] = "🀙", [22] = "🀚", [23] = "🀛", [24] = "🀜", [25] = "🀝", [26] = "🀞", [27] = "🀟", [28] = "🀠", [29] = "🀡", [31] = "🀁", [32] = "🀂", [33] = "🀃", [34] = "🀅", [35] = "🀄", [36] = "🀆" } local card_list = { 1,2,3,4,5,6,7,8,9,11,12,13,14,15,16,17,18,19,21,22,23,24,25,26,27,28,29,35, 1,2,3,4,5,6,7,8,9,11,12,13,14,15,16,17,18,19,21,22,23,24,25,26,27,28,29,35, 1,2,3,4,5,6,7,8,9,11,12,13,14,15,16,17,18,19,21,22,23,24,25,26,27,28,29,35, 1,2,3,4,5,6,7,8,9,11,12,13,14,15,16,17,18,19,21,22,23,24,25,26,27,28,29,35 } local handle1 = {11,11,11,11,21,21,1,14,14, 4,4,4,4,3,3,3,3,2,2,2,1,1, 29,14,15,16,13,13,13,13,12,12,12,2,1, } for _,v in ipairs(handle1) do for i=#card_list,1,-1 do local card = card_list[i] if v == card then table.remove(card_list,i) break end end end for _,v in ipairs(handle1) do table.insert(card_list,v) end return {card_list=card_list,zpos = 1} --return card_list
local super = require "ui.widget" return class { typename = "InputField", super = super, ctor = function (self, native) super.ctor(self, native) if native then end end, -- text = { -- getter = function (self) -- return self.__native.text -- end, -- setter = function (self, value) -- self.__native.text = value -- end, -- } }
-- CLASSES -- SYMBOLETOKEN SymboleToken = {type = '', value = 0, line = 0, column = 0} function SymboleToken:new(o) o = o or {} setmetatable(o, self) self.__index = self o.value = o.value or o.type o.line = 0 o.column = 0 return o end function SymboleToken:dump() print(dump(self)) end -- SYMBOLEREADER SymboleReader = { regex = '', tokenGenerator = function(str) SymboleToken:new(str) end } function SymboleReader:new(o) o = o or {} setmetatable(o, self) self.__index = self o.tokenGenerator = o.tokenGenerator or function(str) SymboleToken:new(str) end return o end function SymboleReader.skipCarriageReturn() return SymboleReader:new{ regex = '\n', tokenGenerator = function() return nil end } end function SymboleReader.skipSpacing() return SymboleReader:new{ regex = '%s', tokenGenerator = function() return nil end } end function SymboleReader.floatWithExponent(type) return SymboleReader:new{ regex = '([-+]?%d*[.]?%d+)(?:[eE]([-+]?%d+))?', tokenGenerator = function(str) return SymboleToken:new{type = type, value = tonumber(str)} end } end function SymboleReader.idString(type) return SymboleReader:new{ regex = '[a-zA-Z0-9][_a-zA-Z0-9]*', tokenGenerator = function(str) return SymboleToken:new{type = type, value = tonumber(str)} end } end function SymboleReader:dump() print(dump(self)) end -- FUNCTIONS function dump(o) if type(o) == 'table' then local s = '{ ' for k, v in pairs(o) do if type(k) ~= 'number' then k = '"' .. k .. '"' end s = s .. '[' .. k .. '] = ' .. dump(v) .. ',' end return s .. '} ' else return tostring(o) end end
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by MoMo. --- DateTime: 2018/11/7 16:56 --- local _class = {} function _class:new(o) o = o or {} setmetatable(o, self) self.__index = self return o end function _class:setupUI(containerView) self.userIcon = ImageView() self.userIcon:marginTop(13):marginLeft(8) self.userIcon:width(45):height(45):cornerRadius(45) containerView:addView(self.userIcon) self.nameLabel = Label() self.nameLabel:marginTop(13):marginLeft(58) self.nameLabel:fontSize(15) self.nameLabel:textColor(Color(50,51,51,1)) self.nameLabel:width(MeasurementType.WRAP_CONTENT):height(20) containerView:addView(self.nameLabel) self.tagLabel = Label() self.tagLabel:marginTop(35):marginLeft(58) self.tagLabel:fontSize(9):cornerRadius(10):padding(0,7,0,5) self.tagLabel:textColor(Color(255,255,255,1)) self.tagLabel:bgColor(Color(252, 204, 204, 1)) self.tagLabel:width(MeasurementType.WRAP_CONTENT):height(16) containerView:addView(self.tagLabel) self.contentLayout = LinearLayout(LinearType.VERTICAL) self.contentLayout:padding(8,8,8,8) self.contentLayout:marginTop(64):marginLeft(8):marginRight(10):marginBottom(10) self.contentLayout:width(MeasurementType.MATCH_PARENT):height(MeasurementType.WRAP_CONTENT) self.contentLayout:bgColor(Color(250,250,250,1)) containerView:addView(self.contentLayout) self.contentLayout:addCornerMask(8, Color(255,0,0,1)) self.contentText = Label() self.contentText:width(MeasurementType.WRAP_CONTENT):height(MeasurementType.WRAP_CONTENT) self.contentText:lines(0) self.contentText:fontSize(16) self.contentText:textColor(Color(78,78,78, 1)) self.contentLayout:addView(self.contentText) self.feedImageView = ImageView() self.feedImageView:contentMode(ContentMode.SCALE_ASPECT_FILL) self.feedImageView:bgColor(Color(255, 255, 255, 1)) self.feedImageView:width(80):height(100):marginTop(8):marginBottom(8) self.contentLayout:addView(self.feedImageView) self.feedImageView:addCornerMask(8, Color(255,0,0,1), RectCorner.ALL_CORNERS) self.positionLayout = LinearLayout() self.positionLayout:width(MeasurementType.MATCH_PARENT):height(20) self.contentLayout:addView(self.positionLayout) self.positionIcon = ImageView() self.positionIcon:contentMode(ContentMode.SCALE_ASPECT_FILL) self.positionIcon:width(20):height(20):marginRight(3) self.positionIcon:image("https://img.momocdn.com/banner/65/FA/65FA9308-E049-DAB0-8734-F1BB49694E3020180719.png") self.positionIcon:setGravity(Gravity.CENTER_VERTICAL) self.positionLayout:addView(self.positionIcon) self.positionLabel = Label() self.positionLabel:width(MeasurementType.WRAP_CONTENT):height(20) self.positionLabel:fontSize(13) self.positionLabel:textColor(Color(170,170,170, 1)) self.positionLayout:addView(self.positionLabel) self.sperateLine = View() self.sperateLine:width(MeasurementType.MATCH_PARENT):height(0.5):marginLeft(8) self.sperateLine:bgColor(Color(220, 220, 220, 1)) self.sperateLine:setGravity(Gravity.BOTTOM) containerView:addView(self.sperateLine) end function _class:updateByItem(item, row) self.userIcon:image(item:get("icon")) self.nameLabel:text(item:get("name")) self.tagLabel:text(item:get("tag")) self.feedImageView:width(item:get("feedWidth")):height(item:get("feedHeight")) self.feedImageView:image(item:get("feed")) self.contentText:text(item:get("text")) self.positionLabel:text(item:get("position")) end return _class
local util = require("moonscript.util") local data = require("moonscript.data") local ntype ntype = require("moonscript.types").ntype local user_error user_error = require("moonscript.errors").user_error local concat, insert do local _obj_0 = table concat, insert = _obj_0.concat, _obj_0.insert end local unpack unpack = util.unpack local table_delim = "," local string_chars = { ["\r"] = "\\r", ["\n"] = "\\n" } return { scoped = function(self, node) local _, before, value, after _, before, value, after = node[1], node[2], node[3], node[4] _ = before and before:call(self) do local _with_0 = self:value(value) _ = after and after:call(self) return _with_0 end end, exp = function(self, node) local _comp _comp = function(i, value) if i % 2 == 1 and value == "!=" then value = "~=" end return self:value(value) end do local _with_0 = self:line() _with_0:append_list((function() local _accum_0 = { } local _len_0 = 1 for i, v in ipairs(node) do if i > 1 then _accum_0[_len_0] = _comp(i, v) _len_0 = _len_0 + 1 end end return _accum_0 end)(), " ") return _with_0 end end, explist = function(self, node) do local _with_0 = self:line() _with_0:append_list((function() local _accum_0 = { } local _len_0 = 1 for _index_0 = 2, #node do local v = node[_index_0] _accum_0[_len_0] = self:value(v) _len_0 = _len_0 + 1 end return _accum_0 end)(), ", ") return _with_0 end end, parens = function(self, node) return self:line("(", self:value(node[2]), ")") end, string = function(self, node) local delim, inner = unpack(node, 2) local end_delim = delim:gsub("%[", "]") if delim == "'" or delim == '"' then inner = inner:gsub("[\r\n]", string_chars) end return delim .. inner .. end_delim end, chain = function(self, node) local callee = node[2] local callee_type = ntype(callee) local item_offset = 3 if callee_type == "dot" or callee_type == "colon" or callee_type == "index" then callee = self:get("scope_var") if not (callee) then user_error("Short-dot syntax must be called within a with block") end item_offset = 2 end if callee_type == "ref" and callee[2] == "super" or callee == "super" then do local sup = self:get("super") if sup then return self:value(sup(self, node)) end end end local chain_item chain_item = function(node) local t, arg = unpack(node) if t == "call" then return "(", self:values(arg), ")" elseif t == "index" then return "[", self:value(arg), "]" elseif t == "dot" then return ".", tostring(arg) elseif t == "colon" then return ":", tostring(arg) elseif t == "colon_stub" then return user_error("Uncalled colon stub") else return error("Unknown chain action: " .. tostring(t)) end end if (callee_type == "self" or callee_type == "self_class") and node[3] and ntype(node[3]) == "call" then callee[1] = callee_type .. "_colon" end local callee_value = self:value(callee) if ntype(callee) == "exp" then callee_value = self:line("(", callee_value, ")") end local actions do local _with_0 = self:line() for _index_0 = item_offset, #node do local action = node[_index_0] _with_0:append(chain_item(action)) end actions = _with_0 end return self:line(callee_value, actions) end, fndef = function(self, node) local args, whitelist, arrow, block = unpack(node, 2) local default_args = { } local self_args = { } local arg_names do local _accum_0 = { } local _len_0 = 1 for _index_0 = 1, #args do local arg = args[_index_0] local name, default_value = unpack(arg) if type(name) == "string" then name = name else if name[1] == "self" or name[1] == "self_class" then insert(self_args, name) end name = name[2] end if default_value then insert(default_args, arg) end local _value_0 = name _accum_0[_len_0] = _value_0 _len_0 = _len_0 + 1 end arg_names = _accum_0 end if arrow == "fat" then insert(arg_names, 1, "self") end do local _with_0 = self:block() if #whitelist > 0 then _with_0:whitelist_names(whitelist) end for _index_0 = 1, #arg_names do local name = arg_names[_index_0] _with_0:put_name(name) end for _index_0 = 1, #default_args do local default = default_args[_index_0] local name, value = unpack(default) if type(name) == "table" then name = name[2] end _with_0:stm({ 'if', { 'exp', { "ref", name }, '==', 'nil' }, { { 'assign', { name }, { value } } } }) end local self_arg_values do local _accum_0 = { } local _len_0 = 1 for _index_0 = 1, #self_args do local arg = self_args[_index_0] _accum_0[_len_0] = arg[2] _len_0 = _len_0 + 1 end self_arg_values = _accum_0 end if #self_args > 0 then _with_0:stm({ "assign", self_args, self_arg_values }) end _with_0:stms(block) if #args > #arg_names then do local _accum_0 = { } local _len_0 = 1 for _index_0 = 1, #args do local arg = args[_index_0] _accum_0[_len_0] = arg[1] _len_0 = _len_0 + 1 end arg_names = _accum_0 end end _with_0.header = "function(" .. concat(arg_names, ", ") .. ")" return _with_0 end end, table = function(self, node) local items = unpack(node, 2) do local _with_0 = self:block("{", "}") local format_line format_line = function(tuple) if #tuple == 2 then local key, value = unpack(tuple) if ntype(key) == "key_literal" and data.lua_keywords[key[2]] then key = { "string", '"', key[2] } end local assign if ntype(key) == "key_literal" then assign = key[2] else assign = self:line("[", _with_0:value(key), "]") end local out = self:line(assign, " = ", _with_0:value(value)) return out else return self:line(_with_0:value(tuple[1])) end end if items then local count = #items for i, tuple in ipairs(items) do local line = format_line(tuple) if not (count == i) then line:append(table_delim) end _with_0:add(line) end end return _with_0 end end, minus = function(self, node) return self:line("-", self:value(node[2])) end, temp_name = function(self, node, ...) return node:get_name(self, ...) end, number = function(self, node) return node[2] end, bitnot = function(self, node) return self:line("~", self:value(node[2])) end, length = function(self, node) return self:line("#", self:value(node[2])) end, ["not"] = function(self, node) return self:line("not ", self:value(node[2])) end, self = function(self, node) return "self." .. self:name(node[2]) end, self_class = function(self, node) return "self.__class." .. self:name(node[2]) end, self_colon = function(self, node) return "self:" .. self:name(node[2]) end, self_class_colon = function(self, node) return "self.__class:" .. self:name(node[2]) end, ref = function(self, value) do local sup = value[2] == "super" and self:get("super") if sup then return self:value(sup(self)) end end return tostring(value[2]) end, raw_value = function(self, value) if value == "..." then self:send("varargs") end return tostring(value) end }
--必须在这个位置定义PROJECT和VERSION变量 --PROJECT:ascii string类型,可以随便定义,只要不使用,就行 --VERSION:ascii string类型,如果使用Luat物联云平台固件升级的功能,必须按照"X.X.X"定义,X表示1位数字;否则可随便定义 PROJECT = "I2C" VERSION = "2.0.0" PRODUCT_KEY = "v32xEAKsGTIEQxtqgwCldp5aPlcnPs3K" -- 日志级别 require "log" LOG_LEVEL = log.LOGLEVEL_TRACE require "sys" require "utils" require "patch" require "pins" -- 加载GSM require "net" --8秒后查询第一次csq net.startQueryAll(8 * 1000, 600 * 1000) -- 控制台 require "console" console.setup(2, 115200) --加载网络指示灯和LTE指示灯功能模块 --根据自己的项目需求和硬件配置决定:1、是否加载此功能模块;2、配置指示灯引脚 --合宙官方出售的Air720U开发板上的网络指示灯引脚为pio.P0_1,LTE指示灯引脚为pio.P0_4 require "netLed" pmd.ldoset(2,pmd.LDO_VLCD) netLed.setup(true,pio.P0_1,pio.P0_4) --网络指示灯功能模块中,默认配置了各种工作状态下指示灯的闪烁规律,参考netLed.lua中ledBlinkTime配置的默认值 --如果默认值满足不了需求,此处调用netLed.updateBlinkTime去配置闪烁时长 --LTE指示灯功能模块中,配置的是注册上4G网络,灯就常亮,其余任何状态灯都会熄灭 -- 系统工具 require "misc" require "errDump" -- 系統指示灯 --require "i2c_ssd1306_lcd" --require "mpu6xxx" require"AHT10" require "ntp" ntp.timeSync(1, function()log.info("----------------> AutoTimeSync is Done ! <----------------") end) -- 启动系统框架 sys.init(0, 0) sys.run()
local _, ADDON = ... ------------------------------------------------------------ local function Clear() os.execute("cls") end ------------------------------------------------------------ local function Pause() print("Press enter to continue...") io.read() end ------------------------------------------------------------ local function Choice(prompt, chars, default) repeat io.write(prompt .. " [" .. chars .. "]: ") answer = string.lower(io.read()) -- default answer? if default and answer == "" then return default end -- valid answer? if string.len(answer) == 1 then if string.find(string.lower(chars), answer, 1, true) then return answer end end until false end ------------------------------------------------------------ -- export ADDON.Clear = Clear ADDON.Pause = Pause ADDON.Choice = Choice
resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5' description 'ANTI CHEAT ACTIVATED' client_script 'wd_client.lua' server_script 'wd_server.lua'
local importations = require(IMPORTATIONS) local bearSpriteManager = require(importations.BEAR_SPRITE) local birdSpriteManager = require(importations.BIRD_SPRITE) local eagleSpriteManager = require(importations.EAGLE_SPRITE) local tigerSpriteManager = require(importations.TIGER_SPRITE) local physics = require(importations.PHYSICS) local listener = require(importations.LISTENER) local filters = require(importations.FILTER_RULES) local displayConstants = require(importations.DISPLAY_CONSTANTS) local bodyManager = require(importations.BODY_MANAGER) local crazyScientistSpriteManager = require(importations.CRAZY_SCIENTIST_SPRITE) local spriteSize = require(importations.SPRITE_SIZE) local settings = require(importations.SETTINGS) local sprites = {} local spritesQuantity = 0 local delay = 800 local group = {} local spritesTimer local translateVelocity = -18 local function _setGroup(gp) group = gp end local function _largeSpritesValue() return settings.isLargeSpritesEnabled() and spriteSize.LARGE or spriteSize.SMALL end local function _createCrazyScientist() return crazyScientistSpriteManager.create(_largeSpritesValue()) end local function _createBearSprite() return bearSpriteManager.create(_largeSpritesValue()) end local function _createBirdSprite() return birdSpriteManager.create(_largeSpritesValue()) end local function _createEagleSprite() return eagleSpriteManager.create(_largeSpritesValue()) end local function _createTigerSprite() return tigerSpriteManager.create(_largeSpritesValue()) end local function _createRandomSprites() local max = 5 local randomNumber = math.random(1, max) if (randomNumber < max) then spritesQuantity = spritesQuantity + 1 if (randomNumber == 1) then sprites[spritesQuantity] = _createBearSprite() sprites[spritesQuantity].animalName = bodyManager.ANIMAL_NAME.BEAR sprites[spritesQuantity].x = displayConstants.WIDTH_SCREEN sprites[spritesQuantity].y = displayConstants.HEIGHT_SCREEN - 70 sprites[spritesQuantity].type = bodyManager.TYPE.EARTH elseif (randomNumber == 2) then sprites[spritesQuantity] = _createTigerSprite() sprites[spritesQuantity].animalName = bodyManager.ANIMAL_NAME.TIGER sprites[spritesQuantity].x = displayConstants.WIDTH_SCREEN sprites[spritesQuantity].y = displayConstants.HEIGHT_SCREEN - 80 sprites[spritesQuantity].type = bodyManager.TYPE.EARTH elseif (randomNumber == 3) then sprites[spritesQuantity] = _createBirdSprite() sprites[spritesQuantity].animalName = bodyManager.ANIMAL_NAME.BIRD sprites[spritesQuantity].x = displayConstants.WIDTH_SCREEN sprites[spritesQuantity].y = math.random(displayConstants.TOP_SCREEN + 200, displayConstants.HEIGHT_SCREEN - 300) sprites[spritesQuantity].initialY = sprites[spritesQuantity].y sprites[spritesQuantity].type = bodyManager.TYPE.AIR elseif (randomNumber == 4) then sprites[spritesQuantity] = _createEagleSprite() sprites[spritesQuantity].animalName = bodyManager.ANIMAL_NAME.EAGLE sprites[spritesQuantity].x = displayConstants.WIDTH_SCREEN sprites[spritesQuantity].y = math.random(displayConstants.TOP_SCREEN + 200, displayConstants.HEIGHT_SCREEN - 300) sprites[spritesQuantity].initialY = sprites[spritesQuantity].y sprites[spritesQuantity].type = bodyManager.TYPE.AIR end local sprite = sprites[spritesQuantity] sprite.myName = bodyManager.NAME.OBSTACLE sprite:play() local filter if (sprite.type == bodyManager.TYPE.AIR) then filter = filters.airObstacleCollision else filter = filters.earthObstacleCollision end physics.addBody(sprite, { friction = 0.5, bounce = 0, filter = filter }) sprite:translate(translateVelocity, 0) end end local function _spriteUpdate() for i = 1, spritesQuantity do local currentPosition = i local child = sprites[currentPosition] if (child ~= nil) then child:translate(translateVelocity, 0) if (child.animalName == bodyManager.ANIMAL_NAME.TIGER) then child.y = displayConstants.HEIGHT_SCREEN - 80 elseif (child.type == bodyManager.TYPE.AIR) then child.y = child.initialY end if (child.x <= displayConstants.LEFT_SCREEN or child.isDeleted) then physics.removeBody(child) group:remove(child) child:removeSelf() child = nil sprites[i] = nil -- Doing it because is needed but linter not known Corona SDK if (child ~= nil) then print(child) end end end end end local function _removeAllSprites() for i = 1, spritesQuantity do local child = sprites[i] if (child ~= nil) then physics.removeBody(child) group:remove(child) child:removeSelf() child = nil sprites[i] = nil -- Doing it because is needed but linter not known Corona SDK if (child ~= nil) then print(child) end end end spritesQuantity = 0 sprites = {} end local function _create() spritesTimer = timer.performWithDelay(delay, _createRandomSprites, 0) Runtime:addEventListener(listener.ENTER_FRAME, _spriteUpdate) end local function _cancel() if (spritesTimer ~= nil) then timer.cancel(spritesTimer) end Runtime:removeEventListener(listener.ENTER_FRAME, _spriteUpdate) _removeAllSprites() end return { create = _create, setGroup = _setGroup, cancel = _cancel, createCrazyScientist = _createCrazyScientist }
Weapon.PrettyName = "PDW-57" Weapon.WeaponID = "arccw_p90" Weapon.DamageMultiplier = 0.8 Weapon.WeaponType = WEAPON_PRIMARY
local function newelem(v) return { next = {}, prev = {}, val = v, remove = function(elem) elem.prev.next = elem.next elem.next.prev = elem.prev end, append = function(elem, v) local nl = newelem(v) nl.prev = elem nl.next = elem.next elem.next.prev = nl elem.next = nl end, prepend = function(elem, v) local nl = newelem(v) nl.next = elem nl.prev = elem.prev elem.prev.next = nl elem.prev = nl end, } end local function listfromtable(t) if not t then t = {} end local list = newelem(t[1]) local curr = list if #t < 2 then return list end for i = 1, #t do curr.next = newelem(t[i]) curr.next.prev = curr curr = curr.next end return list end local list_meta local function list(v) --newlist local nl = { head = nil, tail = nil, len = 0, append = function(l, v) if l.tail then l.tail:append(v) l.tail = l.tail.next l.len = l.len + 1 else l.head = newelem(v) l.tail = l.head l.len = 1 end end, } if v then nl.head = newelem(v) nl.tail = nl.head nl.len = 1 end return setmetatable(nl, list_meta) end list_meta = { __concat = function(a, b) if type(a) ~= "table" or getmetatable(a) ~= list_meta then a = list(a) end if type(b) ~= "table" or getmetatable(b) ~= list_meta then b = list(b) end a.tail.next = b.head b.head.prev = a.tail a.len = a.len + b.len return a end, --iterator over list __call = function(l) return function(state) local elem = state.elem if elem.next then state.elem = elem.next return elem, elem.val end end, {elem = l.head} --[[state]] --, l.head --[[elem]] end } return {list = list}
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = {}, Category = "Tick_BeforeFounders", Effects = {}, EnableChance = 40, Enabled = true, Image = "UI/Messages/Events/08_arrival.tga", Prerequisites = {}, ScriptDone = true, Text = T(534101555685, --[[StoryBit Boost3_Heirloom Text]] "It informs you that your old friend and teacher, Professor Richtmann, has just passed away. You often accompanied him on his trips and expeditions and discussed many aspects of science and philosophy together.\n\nThe strongbox contains his legacy, protected by a three-letter password and a short message in his handwriting: “You’ll know.”"), TextReadyForValidation = true, TextsDone = true, Title = T(467521367779, --[[StoryBit Boost3_Heirloom Title]] "Heirloom"), VoicedText = T(482314099204, --[[voice:narrator]] "You have received a strange package with a letter attached. As you read the letter, your eyes fill with tears."), group = "Pre-Founder Stage", id = "Boost3_Heirloom", qa_info = PlaceObj('PresetQAInfo', { data = { { action = "Modified", time = 1549880234, user = "Momchil", }, { action = "Modified", time = 1549966975, user = "Kmilushev", }, { action = "Verified", time = 1549968632, user = "Kmilushev", }, { action = "Modified", time = 1550489311, user = "Blizzard", }, { action = "Modified", time = 1551195759, user = "Momchil", }, { action = "Modified", time = 1551965965, user = "Radomir", }, }, }), PlaceObj('StoryBitReply', { 'Text', T(216773253505, --[[StoryBit Boost3_Heirloom Text]] "TOY"), 'OutcomeText', "custom", 'CustomOutcomeText', T(782964401825, --[[StoryBit Boost3_Heirloom CustomOutcomeText]] "reveals Superfungus breakthrough tech"), }), PlaceObj('StoryBitOutcome', { 'Prerequisites', {}, 'VoicedText', T(615994905538, --[[voice:narrator]] "The gears unlock with a mechanical click. You know what you would find inside, and yet you are grateful for this last gesture of love and goodwill."), 'Text', T(807551716703, --[[StoryBit Boost3_Heirloom Text]] "“Transgenetics of Yeasts” was the last thing that kept the Professor awake late at night. He was working on the project in a complete secrecy and you doubt that anyone else than you and some others knew about it. And there it is, the complete theory ready to be applied in practice, in front of you, alongside his precious mascot – a cute little teddy bear.\n\n<effect>The Breakthrough tech Superfungus has been revealed."), 'Effects', { PlaceObj('DiscoverTech', { 'Field', "Breakthroughs", 'Tech', "Superfungus", }), }, }), PlaceObj('StoryBitReply', { 'Text', T(962637343622, --[[StoryBit Boost3_Heirloom Text]] "PAC"), 'OutcomeText', "custom", 'CustomOutcomeText', T(105148182299, --[[StoryBit Boost3_Heirloom CustomOutcomeText]] "reveals Superior Cables and Superior Pipes breakthrough techs"), }), PlaceObj('StoryBitOutcome', { 'Prerequisites', {}, 'VoicedText', T(615994905538, --[[voice:narrator]] "The gears unlock with a mechanical click. You know what you would find inside, and yet you are grateful for this last gesture of love and goodwill."), 'Text', T(471177073062, --[[StoryBit Boost3_Heirloom Text]] "“Prototype Autonomous Convectors” was the last thing that kept the Professor awake late at night. He was working on the project in a complete secrecy and you doubt that anyone else than you and some others knew about it. And there it is, the complete theory ready to be applied in practice, in front of you, alongside his precious mascot – an old crystal ashtray.\n\n<effect>The Breakthrough techs Superior Pipes and Superior Cables have been revealed."), 'Effects', { PlaceObj('DiscoverTech', { 'Field', "Breakthroughs", 'Tech', "SuperiorCables", }), PlaceObj('DiscoverTech', { 'Field', "Breakthroughs", 'Tech', "SuperiorPipes", }), }, }), PlaceObj('StoryBitReply', { 'Text', T(280000553262, --[[StoryBit Boost3_Heirloom Text]] "PAX"), 'OutcomeText', "custom", 'CustomOutcomeText', T(153005841239, --[[StoryBit Boost3_Heirloom CustomOutcomeText]] "reveals Plasma Rocket breakthrough tech"), }), PlaceObj('StoryBitOutcome', { 'Prerequisites', {}, 'VoicedText', T(615994905538, --[[voice:narrator]] "The gears unlock with a mechanical click. You know what you would find inside, and yet you are grateful for this last gesture of love and goodwill."), 'Text', T(404647647118, --[[StoryBit Boost3_Heirloom Text]] "“Perpetual Acceleration eXperiments” was the last thing that kept the Professor awake late at night. He was working on the project in a complete secrecy and you doubt that anyone else than you and some others knew about it. And there it is, the complete theory ready to be applied in practice, in front of you, alongside his precious mascot – an exotic figurine of a lion-headed humanoid.\n\n<effect>The Breakthrough tech Plasma Rocket has been revealed."), 'Effects', { PlaceObj('DiscoverTech', { 'Field', "Breakthroughs", 'Tech', "PlasmaRocket", }), }, }), PlaceObj('StoryBitReply', { 'Text', T(767352131748, --[[StoryBit Boost3_Heirloom Text]] "JFD"), 'OutcomeText', "custom", 'CustomOutcomeText', T(384284146432, --[[StoryBit Boost3_Heirloom CustomOutcomeText]] "reveals Nano Refinement breakthrough tech"), }), PlaceObj('StoryBitOutcome', { 'Prerequisites', {}, 'VoicedText', T(615994905538, --[[voice:narrator]] "The gears unlock with a mechanical click. You know what you would find inside, and yet you are grateful for this last gesture of love and goodwill."), 'Text', T(209428433920, --[[StoryBit Boost3_Heirloom Text]] "“Junk-Filtration Derivatives” was the last thing that kept the Professor awake late at night. He was working on the project in a complete secrecy and you doubt that anyone else than you and some others knew about it. And there it is, the complete theory ready to be applied in practice, in front of you, alongside his precious mascot – a laughing-face ball.\n\n<effect>The Breakthrough tech Nano Refinement has been revealed."), 'Effects', { PlaceObj('DiscoverTech', { 'Field', "Breakthroughs", 'Tech', "NanoRefinement", }), }, }), })
local shell = require("shell") local driver = require("driver") local dy = 0 local buf = "" local rw, rh = driver.gpu.getResolution() while not io.stdin.closed do local b = io.stdin:read(math.huge) if b then buf = buf .. b end while buf:find("\n") do local idx = buf:find("\n") local line = buf:sub(1, idx) io.write(line) buf = buf:sub(idx+1) dy = dy + 1 if dy >= rh then print("-- More --") require("event").pull("key_down") shell.setY(shell.getY()-1) shell.clearLine() dy = 0 end end end
local function insert(key, value) local ok, data = pcall(box.space.kv_store.insert, box.space.kv_store, { key, value }) if not ok then return nil, data end return data end local function get(key) local ok, data = pcall(box.space.kv_store.get, box.space.kv_store, key) if not ok then return nil, data end return data:tomap({ names_only = true }) end local function update(key, value) local ok, data = pcall(box.space.kv_store.update, box.space.kv_store, { key }, {{ '=', 2, value }}) if not ok then return nil, data end return data end local function delete(key) local ok, data = pcall(box.space.kv_store.delete, box.space.kv_store, key) if not ok then return nil, data end return data end return { insert = insert, get = get, update = update, delete = delete }
local sql_constructor = require('acid.sql_constructor') function test.make_fields(t) for _, raw_fields, exp_fields, desc in t:case_iter(2, { { { field_foo = { data_type = 'bigint', }, }, { field_foo = { data_type = 'bigint', backticked_name = '`field_foo`', select_expr = 'CAST(`field_foo` AS CHAR) as `field_foo`', }, }, }, { { field_foo = { data_type = 'binary', }, }, { field_foo = { data_type = 'binary', backticked_name = '`field_foo`', select_expr = 'LOWER(HEX(`field_foo`)) as `field_foo`', }, }, }, { { field_foo = { data_type = 'varbinary', use_hex = false, }, }, { field_foo = { data_type = 'varbinary', use_hex = false, backticked_name = '`field_foo`', select_expr = '`field_foo`', }, }, }, }) do local fields, err, errmsg = sql_constructor.make_fields(raw_fields) t:eq(nil, err, errmsg) t:eqdict(exp_fields, fields, desc) end end local raw_fields = { id = { data_type = 'bigint', }, age = { data_type = 'bigint', use_string = false, }, name = { data_type = 'varchar', }, } function test.make_insert_sql(t) for _, param, args, exp_sql, desc in t:case_iter(3, { { { allowed_field = { id = true, age = true, name = true, }, }, { id = '123456', age = 28, name = 'bob', }, [[INSERT IGNORE INTO `employee` (`age`,`name`,`id`) VALUES (28,'bob','123456')]], }, }) do local fields, err, errmsg = sql_constructor.make_fields(raw_fields) t:eq(nil, err, errmsg) local constructor, err, errmsg = sql_constructor.new( 'employee', fields) t:eq(nil, err, errmsg) local sql, err, errmsg = constructor:make_insert_sql(param, args) t:eq(nil, err, errmsg) t:eq(exp_sql, sql, desc) end end function test.make_update_sql(t) for _, param, args, opts, exp_sql, desc in t:case_iter(4, { { { allowed_field = { age = true, }, ident = { id = true, }, }, { age = 28, id = '123456' }, { match = {name = 'bob'}, }, [[UPDATE IGNORE `employee` SET `age`=28 WHERE `id`='123456' AND `name`='bob']], }, { { allowed_field = { age = true, }, ident = { id = true, }, }, { age = 1, id = '123456' }, { incremental = true, }, [[UPDATE IGNORE `employee` SET `age`=1+`age` WHERE `id`='123456']], }, }) do local fields, err, errmsg = sql_constructor.make_fields(raw_fields) t:eq(nil, err, errmsg) local constructor, err, errmsg = sql_constructor.new( 'employee', fields) t:eq(nil, err, errmsg) local sql, err, errmsg = constructor:make_update_sql(param, args, opts) t:eq(nil, err, errmsg) t:eq(exp_sql, sql, desc) end end function test.make_delete_sql(t) for _, param, args, opts, exp_sql, desc in t:case_iter(4, { { { range = { age = true, }, }, { age = {20, 30}, }, {match = {name = 'bob'}, leftopen = 1}, [[DELETE IGNORE FROM `employee` WHERE `age`>20 AND `age`<30 AND `name`='bob']], }, { { range = { age = true, }, }, { age = {20}, }, {match = {name = 'bob'}, leftopen = 1}, [[DELETE IGNORE FROM `employee` WHERE `age`>20 AND `name`='bob']], }, { { range = { age = true, }, }, { age = {nil, 30}, }, {match = {name = 'bob'}, rightopen = 1}, [[DELETE IGNORE FROM `employee` WHERE `age`<30 AND `name`='bob']], }, }) do local fields, err, errmsg = sql_constructor.make_fields(raw_fields) t:eq(nil, err, errmsg) local constructor, err, errmsg = sql_constructor.new( 'employee', fields) t:eq(nil, err, errmsg) local sql, err, errmsg = constructor:make_delete_sql(param, args, opts) t:eq(nil, err, errmsg) t:eq(exp_sql, sql, desc) end end function test.make_select_sql(t) for _, select_field, param, args, opts, exp_sql, desc in t:case_iter(5, { { {'id', 'age', 'name'}, { range = { age = true }, }, { age = {20, 30}, }, { index_condition = '`id`>"123456"', order_by = { {'age', 'ASC'}, {'name', 'DESC'}, }, }, [[SELECT CAST(`id` AS CHAR) as `id`,`age`,`name` FROM `employee` WHERE `id`>"123456" AND `age`>=20 AND `age`<30 ORDER BY `age` ASC, `name` DESC]], }, { {'id', 'age', 'name'}, { ident = { age = true }, }, { age = 20, }, { limit = 3, }, [[SELECT CAST(`id` AS CHAR) as `id`,`age`,`name` FROM `employee` WHERE `age`=20 LIMIT 3]], }, { {}, {}, {}, { select_expr_list = '`age`, COUNT(*) as `count`', group_by_clause = ' GROUP BY `age`', }, [[SELECT `age`, COUNT(*) as `count` FROM `employee` GROUP BY `age`]], }, }) do local fields, err, errmsg = sql_constructor.make_fields(raw_fields) t:eq(nil, err, errmsg) local constructor, err, errmsg = sql_constructor.new( 'employee', fields) t:eq(nil, err, errmsg) local sql, err, errmsg = constructor:make_select_sql( select_field, param, args, opts) t:eq(nil, err, errmsg) t:eq(exp_sql, sql, desc) end end
--- LuaDist UNIX and Windows system functions -- Peter Drahoš, LuaDist Project, 2010 -- Original Code contributed to and then borrowed back from the LuaRocks Project --- Host system dependent commands. -- Override the default UNIX commands if needed for your platform. -- Commands currently depend on popen and unzip being available. For future releases we would like -- to use lua packages handling the compression issues. Additionally some filesystem functionality -- not available in luafilesystem is emulated here. module ("dist.sys", package.seeall) local log = require "dist.log" local config = require "dist.config" local lfs = require "lfs" --- Quote argument for shell processing. -- Adds single quotes and escapes. -- @param arg string: Unquoted argument. -- @return string: Quoted argument. function Q(arg) assert(type(arg) == "string", "Q argument 'arg' is not a string.") return "'" .. arg:gsub("\\", "\\\\"):gsub("'", "'\\''") .. "'" end --- Compose full system path or part of url -- @args string: Path components -- @return string: Path string function path(...) local args = ... --if not args then return curDir() end if type(...) == "string" then args = { ... } end if type(args) ~= "table" then return nil end if args[1]:match("^[%a:]*[/\\]") then return table.concat(args,"/") end return curDir() .. "/" .. table.concat(args,"/") end --- Run the given system command. -- The command is executed in the current directory in the dir stack. -- @param cmd string: No quoting/escaping is applied to the command. -- @return boolean: True if command succeeds, false otherwise. function executeString(cmd) assert(type(cmd) == "string", "sys.executeString: Argument 'cmd' is not a string.") -- Command log local execPath = path(config.temp, "execute.log") -- Hande std output local run = cmd if not ( config.verbose or config.debug) then run = run .. " >" .. execPath .. " 2>&1" end -- Run the command local ok = os.execute( run ) -- Append the execution log to the log local execFile, err = io.open( execPath, "r") if execFile then assert(execFile, "sys.executeString: Cannot create log.") log.write("Command: " .. cmd .. "\n" .. execFile:read("*all") .. "\n") execFile:close() if not config.debug then os.remove(execPath) end end if ok~=0 then return nil, "Failed running command: " .. cmd end return true, "Sucessfully executed command: " .. cmd end --- Run the given system command, quoting its arguments. -- The command is executed in the current directory in the dir stack. -- @param command string: The command to be executed. No quoting/escaping need to be applied. -- @param ... strings: containing additional arguments, which are quoted. -- @return ok, log: true on success, false on failure and log message. function execute(command, ...) assert(type(command) == "string", "execute argument 'command' is not a string.") for k, arg in ipairs({...}) do assert(type(arg) == "string", "execute argument #" .. tostring(k+1) .. "is not a string.") command = command .. " " .. Q(arg) end return executeString(command) end --- Create a directory. -- @param dir string: Path to create. -- @return ok, log: true on success, false on failure and log message. -- Succeeds if already exists. function makeDir(dir) assert(type(dir)=="string", "sys.makeDir: Argument 'dir' is not a string.") dir = path(dir) if isDir(dir) then return true end -- done -- Find out if the base dir exists, if not make it local base = dir:gsub("/[^/]*$","") if base == "" then base = "/" end -- Recursion! if not isDir(base) then makeDir(base) end -- Make directory local ok = lfs.mkdir(dir) if not ok then return nil, "Cannot create directory: " .. dir end return true, "Created directory: " .. dir end --- Force delete a file, even if it is open. -- If the file can't be deleted because it is currently open, this function -- will try to rename the file to a temporary file in the same directory. -- Windows in particular doesn't allow running executables to be deleted, but -- it does allow them to be renamed. Cygwin 1.7 (unlike 1.5) does allow such -- deletion but internally implements it via a mechanism like this. For -- futher details, see -- http://sourceforge.net/mailarchive/message.php?msg_name=bc4ed2190909261323i7c6280bfp6e7be6f70c713b0c%40mail.gmail.com -- -- @param src - file name function forceDelete(src) os.remove(src) -- note: ignore fail if exists(src) then -- still exists, try move instead local tempfile local MAX_TRIES = 10 for i=1,MAX_TRIES do local test = src .. ".luadist-temporary-" .. i os.remove(test) -- note: ignore fail if not exists(test) then tempfile = test break end end if not tempfile then return nil, "Failed removing temporary files: " .. tempfile .. "*" end local ok, err = os.rename(src, tempfile) if not ok then return nil, "Failed renaming file: " .. err end end return true end --- Move a file from one location to another. -- @param src string: Pathname of source. -- @param dest string: Pathname of destination. -- @return ok, log: true on success, false on failure and log message. function move(src, dest) assert(type(src)=="string", "sys.move: Argument 'src' is not a string.") assert(type(dest)=="string", "sys.move: Argument 'dest' is not a string.") local ok, err = execute("mv -f", src, dest) if not ok then return nil, "Failed moving source: " .. src .. " to: " .. dest .. " error: " .. err end return true, "Moved source: " .. src .. " to: " .. dest end --- Recursive copy a file or directory. -- @param src string: Pathname of source -- @param dest string: Pathname of destination. -- @param copy_contents boolean: if true, copies contents of -- directory src into directory dest, creating dest -- and parents of dest if they don't exist. (false if omitted) -- @return ok, log: true on success, false on failure and log message. function copy(src, dest, copy_contents) assert(type(src)=="string", "copy argument 'src' is not a string.") assert(type(dest)=="string", "copy argument 'dest' is not a string.") if copy_contents and not isDir(dest) then local ok, err = makeDir(dest) if not ok then return nil, err end end local ok, err if copy_contents then ok, err = execute("cp -R -f -H " .. Q(src) .. [[/*]], dest) else ok, err = execute("cp -R -f -H ", src, dest) end if not ok then return nil, "Failed copying " .. src .. " to " .. dest .. ".\n" .. err end return true end --- little helper function to get file depth (for directories its +1) local function pathLen(dir) local _, len = dir:gsub("[^\\/]+","") return len - 1 end --- Delete a file or a directory and all its contents. -- For safety, this only accepts absolute paths. -- @param dir string: Pathname of the file or directory to delete -- @return ok, log: true on success, false on failure and log message. Returns success if already deleted. function delete(dir) assert(type(dir)=="string" and dir:match("^[%a:]*[/\\]"), "delete argument 'dir' is not a string or a full path.") if not exists(dir) then return true end return executeString("rm -rf " .. Q(dir)) end --- List the contents of a directory. -- @param path string: directory to list if not specified the current directory will be used. -- @return table: an array of strings with the filenames representing the contents of a directory. function dir(dir) assert(not dir or type(dir) == "string", "dir argument 'dir' is not a string.") dir = dir or curDir() if not isDir(dir) then return nil, "Could not find directory " .. dir .. "." end local files = {} for file in lfs.dir(dir) do if not file:match("^%.") then table.insert(files, file) end end return files end --- Get current directory. -- @return string: current direcotry. function curDir() local dir, err = lfs.currentdir() if not dir then return nil, err end return dir:gsub("\\","/") -- Everyone loves win32 end --- Test for existance of a file. -- @param path string: filename to test -- @return ok, log: true on success, false on failure and log message. function exists(dir) assert(type(dir)=="string", "exists argument 'dir' is not a string.") return lfs.attributes(dir) end --- Test is pathname is a directory. -- @param path string: pathname to test -- @return ok, log: true on success, false on failure and log message. function isDir(dir) assert(type(dir)=="string", "isDir argument 'dir' is not a string.") local attr, err = lfs.attributes(dir) if not attr then return nil, "Failed to obtain attributes for " .. dir .. "." end return attr.mode == "directory" end --- Test is pathname is a file. -- @param path string: pathname to test -- @return ok, log: true on success, false on failure and log message. function isFile(dir) assert(type(dir)=="string", "isFile argument 'dir' is not a string.") local attr, err = lfs.attributes(dir) if not attr then return nil, "Failed to obtain attributes for " .. dir .. "." end return attr.mode == "file" end --- Recursively list the contents of a directory. -- @param path string: directory to list if not specified the current directory will be used -- @return table: an array of strings representing the contents of the directory structure function list(dir) assert(type(dir)=="string", "list argument 'path' is not a string.") if not isDir(dir) then return nil, "Directory " .. dir .. " does not exist." end local files = {} local function collect (subdir) subdir = subdir or "" for file in lfs.dir(path(dir, subdir)) do if not file:match("^%.") then table.insert(files, subdir .. file) if isDir(path(dir, subdir .. file)) then collect(subdir .. "/" .. file .. "/") end end end end collect() return files end --- Compress files in a .zip archive. -- @param zipfile string: pathname of .zip archive to be created. -- @param ... Filenames to be stored in the archive are given as additional arguments. -- @return ok, log: true on success, false on failure and log message. function zip(workdir, zipfile, ...) assert (type(workdir)=="string", "zip argument 'workdir' is not a string.") assert (type(zipfile)=="string", "zip argument 'zipfile' is not a string.") return execute("cd " .. Q(workdir) .. " && "..config.root.."/bin/zip -r", zipfile, ...) or execute("cd " .. Q(workdir) .. " && zip -r", zipfile, ...) end --- Unpack an archive. -- Extract the contents of an archive, detecting its format by filename extension. -- @param archive string: Filename of archive. -- @return ok, log: true on success, false on failure and log message. function unzip(archive, dest) assert(type(archive) == "string", "unpack argument 'archive' is not a string.") assert(type(dest) == "string", "unpack agrument 'dest' is not a string.") local ok if archive:match("%.zip$") or archive:match("%.dist$") then ok = executeString(config.root.."/bin/unzip " .. Q(archive) .. " -d " .. Q(dest)) or executeString("unzip " .. Q(archive) .. " -d " .. Q(dest)) end if not ok then return false, "Failed extracting." end return dest end --- Extract file contents of a file from archive -- @param zipfile string: pathname of .zip/.dist archive to read from. -- @param file string: file to get contents of. -- @return contents, err: returns contents of file or false and error message. -- Requires io.popen (2DO: work when io.popen not available?) function getZipFile(zipfile, file) assert(type(zipfile) == "string", "unpack argument 'zipfile' is not a string.") assert(type(file) == "string", "unpack agrument 'file' is not a string.") -- Try to get contents local f, err = io.popen(config.root.."/bin/unzip -cp " .. Q(zipfile) .. " " .. Q(file)) or io.popen("unzip -cp " .. Q(zipfile) .. " " .. Q(file)) if not f then return false, "Failed to extract " .. file .. " from " .. zipfile end -- Read result local content = f:read("*a") f:close() if content == "" then return false, "Failed to extract " .. file .. " from " .. zipfile end return content end --- Override different functions for Windows if config.arch == "Windows" then --- Quote argument for shell processing (Windows). -- Adds single quotes and escapes. -- @param arg string: Unquoted argument. -- @return string: Quoted argument. function Q(arg) assert(type(arg) == "string", "Q argument 'arg' is not a string.") -- Quote DIR for Windows if arg:match("^[\.a-zA-Z]?:?[\\/]") then return '"' .. arg:gsub("//","\\"):gsub("/", "\\"):gsub('"', '\\"') .. '"' end -- URLs and anything else return '"' .. arg:gsub('"', '\\"') .. '"' end --- Move a file from one location to another (Windows). -- @param src string: Pathname of source. -- @param dest string: Pathname of destination. -- @return ok, log: true on success, false on failure and log message. function move(src, dest) assert(type(src)=="string", "sys.move: Argument 'src' is not a string.") assert(type(dest)=="string", "sys.move: Argument 'dest' is not a string.") -- note: copy+delete may be more reliable than move (e.g. copy across drives). -- [improve: cleanup on failure?] local ok, err = copy(src, dest) if ok then ok, err = delete(src) end if not ok then return nil, "Failed moving source: " .. src .. " to: " .. dest .. " error: " .. err end return true, "Moved source: " .. src .. " to: " .. dest end --- Recursive copy a file or directory (Windows). -- @param src string: Pathname of source -- @param dest string: Pathname of destination. -- If `src` is a directory, copies contents of `src` into contents of -- directory `dest`. Otherwise, both must represent files. -- @return ok, log: true on success, false on failure and log message. function copy(src, dest) assert(type(src)=="string", "copy argument 'src' is not a string.") assert(type(dest)=="string", "copy argument 'dest' is not a string.") -- Avoid ambiguous behavior: file <-> directory --2DO - Improve? if isFile(src) then if isDir(dest) then return nil, "ambiguous request to copy file " .. src .. " to directory " .. dest end elseif isDir(src) then if isFile(dest) then return nil, "ambiguous request to copy directory " .. src .. " to file " .. dest end end --2DO: The below will cause problems if src and dest are the same. -- For any destination files that will be overwritten, -- force delete them to avoid conflicts from open files -- in subsequent copy. if isDir(src) then local srcfiles = list(src) for i = 1, #srcfiles do local destfile = path(dest, srcfiles[i]) if isFile(destfile) then local ok, err = forceDelete(destfile) if not ok then return nil, "Failed removing file: " .. destfile .. " " .. err end end end elseif isFile(src) then local ok, err = forceDelete(dest) if not ok then return nil, "Failed removing file: " .. dest .. " " .. err end end local ok, err if isDir(src) then -- note: "xcopy /E /I /Y" copies contents of `src` into contents -- of `dest` and creates all leading directories of `dest` if needed. ok, err = execute("xcopy /I /E /Y " .. Q(src), dest) else ok, err = execute("copy /Y", src, dest) end if not ok then return nil, "Failed copying " .. src .. " to " .. dest .. ".\n" .. err end -- note: The /Q flag on xcopy is not fully quiet; it prints -- "1 File(s) copied". Copy lacks a /Q flag. return true end --- Delete a file or a directory and all its contents (Windows). -- For safety, this only accepts absolute paths. -- @param dir string: Pathname of the file or directory to delete -- @return ok, log: true on success, false on failure and log message. -- Returns success if already deleted. function delete(dir) assert(type(dir)=="string" and dir:match("^[%a:]*[/\\]"), "delete argument 'dir' is not a string or a full path.") -- Note: `del /S` recursively deletes files but not directories. -- `rmdir /S` recursively deletes files and directories but does not -- work if its parameter is a file. if not exists(dir) then return true elseif isDir(dir) then local ok, err = executeString("rmdir /S /Q " .. Q(dir)) if not ok then return nil, "Could not recursively delete directory " .. dir .. " . " .. err end else local ok, err = os.remove(dir) if not ok then return nil, "Could not delete file " .. dir .. " . " .. err end end return true end end
local M = {} local function get_scopes() return vim.tbl_flatten {'_', vim.split(vim.bo.filetype, '.', true)} end local default_config = { snippet_dirs = nil, hl_group = nil, } M.get_scopes = get_scopes M.selected_text = '' M.namespace = vim.api.nvim_create_namespace('snippy') M.config = vim.tbl_extend('force', {}, default_config) function M.set_selection(value, mode) if mode == 'V' or mode == 'line' then value = value:sub(1, #value - 1) local lines = vim.split(value, '\n') local indent = '' for i, line in ipairs(lines) do if i == 1 then indent = line:match('^%s*') end lines[i] = line:gsub('^' .. indent, '') end value = table.concat(lines, '\n') end M.selected_text = value end function M.set_config(params) M.config = vim.tbl_extend('keep', M.config, params) end M.cache = {} return M
---------------------------------------------------------------------------------------------------- -- Proposal: -- https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0238-Keyboard-Enhancements.md ---------------------------------------------------------------------------------------------------- -- Description: Check App is unable to set 'keyboardProperties' for unsupported 'keyboardLayout'. -- -- Steps: -- 1. App is registered -- 2. HMI provides 'KeyboardCapabilities' within 'OnSystemCapabilityUpdated' notification -- with supported keyboards in 'supportedKeyboards' -- 3. App sends 'SetGlobalProperties' with 'keyboardLayout' in 'KeyboardProperties' which is not -- in 'supportedKeyboards' list -- SDL does: -- - Transfer request to HMI -- 4. HMI responds with erroneous 'UNSUPPORTED_RESOURCE' message -- SDL does: -- - Respond with 'UNSUPPORTED_RESOURCE', success:false to App with appropriate message in 'info' ---------------------------------------------------------------------------------------------------- --[[ Required Shared libraries ]] local common = require('test_scripts/API/KeyboardEnhancements/common') --[[ Local Variables ]] local msg = "keyboard layout is not supported" local dispCaps = common.getDispCaps() dispCaps.systemCapability.displayCapabilities[1].windowCapabilities[1].keyboardCapabilities = { supportedKeyboards = { { keyboardLayout = "NUMERIC", numConfigurableKeys = 1 } } } --[[ Local Functions ]] local function sendSetGlobalProperties() local sgpParams = { keyboardProperties = { keyboardLayout = "QWERTY", keypressMode = "SINGLE_KEYPRESS" } } local dataToHMI = common.cloneTable(sgpParams) dataToHMI.appID = common.getHMIAppId() local cid = common.getMobileSession():SendRPC("SetGlobalProperties", sgpParams) common.getHMIConnection():ExpectRequest("UI.SetGlobalProperties", dataToHMI) :Do(function(_, data) common.getHMIConnection():SendError(data.id, data.method, "UNSUPPORTED_RESOURCE", msg) end) common.getMobileSession():ExpectResponse(cid, { success = false, resultCode = "UNSUPPORTED_RESOURCE", info = msg }) end --[[ Scenario ]] common.Title("Preconditions") common.Step("Clean environment", common.preconditions) common.Step("Start SDL, HMI, connect Mobile, start Session", common.start) common.Step("Register App", common.registerApp) common.Title("Test") common.Step("HMI sends OnSystemCapabilityUpdated", common.sendOnSystemCapabilityUpdated, { dispCaps }) common.Step("App sends SetGlobalProperties warnings", sendSetGlobalProperties) common.Title("Postconditions") common.Step("Stop SDL", common.postconditions)
function move_player() if start_menu == false then gravity=0.2 --bigger means more grav player.dy+=gravity --jump if (btnp(2) or btnp(🅾️)) then player.dy-=5 sfx(0) end --move to new position player.y+=player.dy --update player.score+=player.speed else player.y = 64 end end
local FuelSystem = GetSelf() --初始化加载要用lua文件 dofile(LockOn_Options.common_script_path.."devices_defs.lua") dofile(LockOn_Options.script_path.."Systems/electric_system_api.lua") dofile(LockOn_Options.script_path.."utils.lua") dofile(LockOn_Options.script_path.."command_defs.lua") --设置循环次数 local update_rate = 0.05 -- 20次每秒 make_default_activity(update_rate) --初始化DCS读取API local sensor_data = get_base_data() ------Here Strat the general Switch Control local SWITCH_OFF = 0 local SWITCH_ON = 1 local SWITCH_TEST = -1 switch_count = 0 function _switch_counter() switch_count = switch_count + 1 return switch_count end local main_tank_dis = _switch_counter() local wing_tank_dis = _switch_counter() local ctr_tank_dis = _switch_counter() local lout_tank_dis = _switch_counter() local lin_tank_dis = _switch_counter() local rin_tank_dis = _switch_counter() local rout_tank_dis = _switch_counter() local tank_press = _switch_counter() local wing_drop_tank_trans = _switch_counter() local wing_tank_dump = _switch_counter() local fuse_tank_dump = _switch_counter() local fuel_ready = _switch_counter() local boost_pump_test = _switch_counter() target_status = { {main_tank_dis , SWITCH_OFF, get_param_handle("PTN_101"), "PTN_101"}, {wing_tank_dis , SWITCH_ON, get_param_handle("PTN_102"), "PTN_102"}, {ctr_tank_dis , SWITCH_OFF, get_param_handle("PTN_103"), "PTN_103"}, {lout_tank_dis , SWITCH_OFF, get_param_handle("PTN_104"), "PTN_104"}, {lin_tank_dis , SWITCH_OFF, get_param_handle("PTN_105"), "PTN_105"}, {rin_tank_dis , SWITCH_OFF, get_param_handle("PTN_106"), "PTN_106"}, {rout_tank_dis , SWITCH_OFF, get_param_handle("PTN_107"), "PTN_107"}, {tank_press , SWITCH_TEST, get_param_handle("PTN_145"), "PTN_145"}, {wing_drop_tank_trans , SWITCH_OFF, get_param_handle("PTN_146"), "PTN_146"}, {wing_tank_dump , SWITCH_OFF, get_param_handle("PTN_147"), "PTN_147"}, {fuse_tank_dump , SWITCH_OFF, get_param_handle("PTN_148"), "PTN_148"}, {fuel_ready , SWITCH_OFF, get_param_handle("PTN_149"), "PTN_149"}, {boost_pump_test , SWITCH_OFF, get_param_handle("PTN_118"), "PTN_118"}, } current_status = { {main_tank_dis , SWITCH_OFF, SWITCH_OFF}, {wing_tank_dis , SWITCH_OFF, SWITCH_OFF}, {ctr_tank_dis , SWITCH_OFF, SWITCH_OFF}, {lout_tank_dis , SWITCH_OFF, SWITCH_OFF}, {lin_tank_dis , SWITCH_OFF, SWITCH_OFF}, {rin_tank_dis , SWITCH_OFF, SWITCH_OFF}, {rout_tank_dis , SWITCH_OFF, SWITCH_OFF}, {tank_press, SWITCH_OFF, SWITCH_OFF}, {wing_drop_tank_trans, SWITCH_OFF, SWITCH_OFF}, {wing_tank_dump, SWITCH_OFF, SWITCH_OFF}, {fuse_tank_dump, SWITCH_OFF, SWITCH_OFF}, {fuel_ready, SWITCH_OFF, SWITCH_OFF}, {boost_pump_test, SWITCH_OFF, SWITCH_OFF}, } function post_initialize() local birth = LockOn_Options.init_conditions.birth_place if birth == "GROUND_HOT" or birth == "AIR_HOT" then target_status = { {main_tank_dis , SWITCH_OFF, get_param_handle("PTN_101"), "PTN_101"}, {wing_tank_dis , SWITCH_ON, get_param_handle("PTN_102"), "PTN_102"}, {ctr_tank_dis , SWITCH_OFF, get_param_handle("PTN_103"), "PTN_103"}, {lout_tank_dis , SWITCH_OFF, get_param_handle("PTN_104"), "PTN_104"}, {lin_tank_dis , SWITCH_OFF, get_param_handle("PTN_105"), "PTN_105"}, {rin_tank_dis , SWITCH_OFF, get_param_handle("PTN_106"), "PTN_106"}, {rout_tank_dis , SWITCH_OFF, get_param_handle("PTN_107"), "PTN_107"}, {tank_press , SWITCH_OFF, get_param_handle("PTN_145"), "PTN_145"}, {wing_drop_tank_trans , SWITCH_OFF, get_param_handle("PTN_146"), "PTN_146"}, {wing_tank_dump , SWITCH_OFF, get_param_handle("PTN_147"), "PTN_147"}, {fuse_tank_dump , SWITCH_OFF, get_param_handle("PTN_148"), "PTN_148"}, {fuel_ready , SWITCH_OFF, get_param_handle("PTN_149"), "PTN_149"}, {boost_pump_test , SWITCH_OFF, get_param_handle("PTN_118"), "PTN_118"}, } end end function update_switch_status() for k,v in pairs(target_status) do if target_status[k][2] > current_status[k][2] and target_status[k][2] == SWITCH_ON then if current_status[k][3] < SWITCH_ON then current_status[k][2] = current_status[k][2] + 0.25 else current_status[k][2] = target_status[k][2] end -- target_status[k][3]:set(current_status[k][2]) elseif target_status[k][2] < current_status[k][2] and target_status[k][2] == SWITCH_TEST then if current_status[k][3] > SWITCH_TEST then current_status[k][2] = current_status[k][2] - 0.25 else current_status[k][2] = target_status[k][2] end -- target_status[k][3]:set(current_status[k][2]) elseif target_status[k][2] < current_status[k][2] and target_status[k][2] == SWITCH_OFF then if current_status[k][3] > SWITCH_OFF then current_status[k][2] = current_status[k][2] - 0.25 else current_status[k][2] = target_status[k][2] end -- target_status[k][3]:set(current_status[k][2]) elseif target_status[k][2] > current_status[k][2] and target_status[k][2] == SWITCH_OFF then if current_status[k][3] < SWITCH_OFF then current_status[k][2] = current_status[k][2] + 0.25 else current_status[k][2] = target_status[k][2] end -- target_status[k][3]:set(current_status[k][2]) end target_status[k][3]:set(current_status[k][2]) local temp_switch_ref = get_clickable_element_reference(target_status[k][4]) temp_switch_ref:update() -- print_message_to_user(k) end end FuelSystem:listen_command(Keys.FuelDisMain) FuelSystem:listen_command(Keys.FuelDisWing) FuelSystem:listen_command(Keys.FuelDisCtr) FuelSystem:listen_command(Keys.FuelDisLin) FuelSystem:listen_command(Keys.FuelDisLout) FuelSystem:listen_command(Keys.FuelDisRin) FuelSystem:listen_command(Keys.FuelDisRout) FuelSystem:listen_command(Keys.FuelTankPressUP) FuelSystem:listen_command(Keys.WingDropTankTransUP) FuelSystem:listen_command(Keys.FuelTankPressDOWN) FuelSystem:listen_command(Keys.WingDropTankTransDOWN) FuelSystem:listen_command(Keys.WingTankDump) FuelSystem:listen_command(Keys.FuseTankDump) FuelSystem:listen_command(Keys.FuelReadyUP) FuelSystem:listen_command(Keys.BoostPumpTestUP) FuelSystem:listen_command(Keys.FuelReadyDOWN) FuelSystem:listen_command(Keys.BoostPumpTestDOWN) FuelSystem:listen_event("WeaponRearmComplete") -----Switch default position update control off function post_initialize() for k,v in pairs(target_status) do target_status[k][3]:set(current_status[k][2]) end end DISPLAY_TANK = wing_tank_dis function setDisplayStatus(new_selection) target_status[DISPLAY_TANK][2] = SWITCH_OFF local temp_switch_ref = get_clickable_element_reference(target_status[DISPLAY_TANK][4]) temp_switch_ref:hide(false) target_status[new_selection][2] = SWITCH_ON DISPLAY_TANK = new_selection temp_switch_ref = get_clickable_element_reference(target_status[DISPLAY_TANK][4]) temp_switch_ref:hide(true) end fuel_ind_is_startup = 1 local pylon_is_tank = { {get_param_handle("pylon_ctr"), 0}, {get_param_handle("pylon_lout"), 0}, {get_param_handle("pylon_lin"), 0}, {get_param_handle("pylon_rin"), 0}, {get_param_handle("pylon_rout"), 0}, } local fuel_in_tank = { {main_tank_dis , 0, 9016}, {wing_tank_dis , 0, 6923}, {ctr_tank_dis , 0, 2040}, {lout_tank_dis , 0, 2040}, {lin_tank_dis , 0, 2040}, {rin_tank_dis , 0, 2040}, {rout_tank_dis , 0, 2040}, } fuel_drop_tank_init = 1 EXTERNEL_FUEL = 0 INNER_FUEL = 0 EXTERNEL_TANK_AMOUNT = 0 LAST_TOTAL_FUEL = 0 function CockpitEvent(event,val) -- set all externel power together if event == "WeaponRearmComplete" then print_message_to_user("ReCalculate Fuel") fuel_drop_tank_init = 1 end end function update_current_fuel_in_tank() local fuel_total = sensor_data.getTotalFuelWeight() * 2.205 local dFuel = 0 if fuel_drop_tank_init == 1 then for i = 1, 5, 1 do if pylon_is_tank[i][1]:get() == 1 then fuel_in_tank[i+2][2] = 2040 -- assign full fuel into tank JP-5 6.8 lbs/gal EXTERNEL_FUEL = EXTERNEL_FUEL + 2040 pylon_is_tank[i][2] = 1 EXTERNEL_TANK_AMOUNT = EXTERNEL_TANK_AMOUNT + 1 else fuel_in_tank[i+2][2] = 0 -- assign full fuel into tank JP-5 6.8 lbs/gal pylon_is_tank[i][2] = 0 end end fuel_drop_tank_init = 0 else if EXTERNEL_FUEL > 0 then dFuel = LAST_TOTAL_FUEL - fuel_total if dFuel < EXTERNEL_FUEL and dFuel >= 0 then EXTERNEL_FUEL = EXTERNEL_FUEL - dFuel else EXTERNEL_FUEL = 0 end end for i = 1, 5, 1 do -- test if is jettsion fuel tanks if pylon_is_tank[i][1]:get() == 0 and pylon_is_tank[i][2] == 1 then EXTERNEL_TANK_AMOUNT = EXTERNEL_TANK_AMOUNT - 1 fuel_in_tank[i + 2][2] = 0 end end for i = 1, 5, 1 do -- calculate fuel in each fuel tank if pylon_is_tank[i][1]:get() == 1 and pylon_is_tank[i][2] == 1 then fuel_in_tank[i + 2][2] = EXTERNEL_FUEL / EXTERNEL_TANK_AMOUNT end end end LAST_TOTAL_FUEL = fuel_total INNER_FUEL = fuel_total - EXTERNEL_FUEL -- print_message_to_user(EXTERNEL_FUEL) -- inner: mian 9016, wing 6923, 15939 in total fuel_in_tank[main_tank_dis][2] = INNER_FUEL * 9016 / 15939 fuel_in_tank[wing_tank_dis][2] = INNER_FUEL * 6923 / 15939 end FUEL_G_COUNTER = 0 fuel_quanw_num_c = 0 fuel_quank_num_c = 0 fuel_quan3_num_c = 0 fuel_quan2_num_c = 0 fuel_quan1_num_c = 0 gauge_count = 0 function _gauge_counter() gauge_count = gauge_count + 1 return gauge_count end local fuel_quan5 = _gauge_counter() local fuel_quan4 = _gauge_counter() local fuel_quan3 = _gauge_counter() local fuel_quan2 = _gauge_counter() local fuel_quan1 = _gauge_counter() local fuel_quan_main = _gauge_counter() local fuel_quan_sel = _gauge_counter() local fuel_press_l = _gauge_counter() local fuel_press_r = _gauge_counter() Gauge_display_state = { -- last parameter define if it is unneed from 9 to zero {fuel_quan5, 0, 0, get_param_handle("FUEL_QUAN_A_5"), 0}, {fuel_quan4, 0, 0, get_param_handle("FUEL_QUAN_A_4"), 0}, {fuel_quan3, 0, 0, get_param_handle("FUEL_QUAN_A_3"), 0}, {fuel_quan2, 0, 0, get_param_handle("FUEL_QUAN_A_2"), 0}, {fuel_quan1, 0, 0, get_param_handle("FUEL_QUAN_A_1"), 0}, {fuel_quan_main, 0, 0, get_param_handle("FUEL_QUAN_IN"), 1}, {fuel_quan_sel, 0, 0, get_param_handle("FUEL_QUAN_SEL"), 1}, {fuel_press_l, 0, 0, get_param_handle("OP_L"), 0}, {fuel_press_r, 0, 0, get_param_handle("OP_R"),}, } GAUGE_ANI_STEP = 0.05 function updateFuelGaugeDisplay() local fuel_main = 0 local fuel_sel = 0 local fuel_total = 0 local fuel_externel = 0 local fuel_gauge_step = 0.1 if get_elec_primary_ac_ok() then fuel_total = sensor_data.getTotalFuelWeight() * 2.205 -- kg to lbs if fuel_ind_is_startup == 1 then FUEL_G_COUNTER = FUEL_G_COUNTER + 1 end fuel_main = fuel_in_tank[main_tank_dis][2] / 10000 fuel_sel = fuel_in_tank[DISPLAY_TANK][2] / 10000 FUEL_G_COUNTER = 0 fuel_ind_is_startup = 1 end if FUEL_G_COUNTER >= 20 then fuel_ind_is_startup = 0 FUEL_G_COUNTER = 0 end -- display total fuel Gauge_display_state[fuel_quan5][2] = math.modf(fuel_total/10000) / 10 fuel_total = math.fmod(fuel_total, 10000) Gauge_display_state[fuel_quan4][2] = math.modf(fuel_total/1000) / 10 fuel_total = math.fmod(fuel_total, 1000) Gauge_display_state[fuel_quan3][2] = math.modf(fuel_total/100) / 10 fuel_total = math.fmod(fuel_total, 100) Gauge_display_state[fuel_quan2][2] = math.modf(fuel_total/10) / 10 fuel_total = math.fmod(fuel_total, 10) Gauge_display_state[fuel_quan1][2] = fuel_total / 10 Gauge_display_state[fuel_quan_main][2] = fuel_main Gauge_display_state[fuel_quan_sel][2] = fuel_sel for k_G,v_G in pairs(Gauge_display_state) do if math.abs(Gauge_display_state[k_G][2] - Gauge_display_state[k_G][3]) < GAUGE_ANI_STEP then Gauge_display_state[k_G][3] = Gauge_display_state[k_G][2] elseif Gauge_display_state[k_G][5] == 1 then if Gauge_display_state[k_G][2] < Gauge_display_state[k_G][3] then Gauge_display_state[k_G][3] = Gauge_display_state[k_G][3] - GAUGE_ANI_STEP elseif Gauge_display_state[k_G][2] > Gauge_display_state[k_G][3] then Gauge_display_state[k_G][3] = Gauge_display_state[k_G][3] + GAUGE_ANI_STEP end elseif Gauge_display_state[k_G][5] == 2 then if Gauge_display_state[k_G][3] > 0.85 and Gauge_display_state[k_G][2] < - 0.85 then Gauge_display_state[k_G][3] = Gauge_display_state[k_G][3] + GAUGE_ANI_STEP if Gauge_display_state[k_G][3] > 1 then Gauge_display_state[k_G][3] = Gauge_display_state[k_G][3] - 2 end elseif Gauge_display_state[k_G][3] < -0.85 and Gauge_display_state[k_G][2] > 0.85 then Gauge_display_state[k_G][3] = Gauge_display_state[k_G][3] - GAUGE_ANI_STEP if Gauge_display_state[k_G][3] < 0 then Gauge_display_state[k_G][3] = Gauge_display_state[k_G][3] + 2 end else if Gauge_display_state[k_G][2] < Gauge_display_state[k_G][3] then Gauge_display_state[k_G][3] = Gauge_display_state[k_G][3] - GAUGE_ANI_STEP elseif Gauge_display_state[k_G][2] > Gauge_display_state[k_G][3] then Gauge_display_state[k_G][3] = Gauge_display_state[k_G][3] + GAUGE_ANI_STEP end end elseif Gauge_display_state[k_G][3] > 0.85 and Gauge_display_state[k_G][2] < 0.15 then Gauge_display_state[k_G][3] = Gauge_display_state[k_G][3] + GAUGE_ANI_STEP if Gauge_display_state[k_G][3] > 1 then Gauge_display_state[k_G][3] = Gauge_display_state[k_G][3] - 1 end elseif Gauge_display_state[k_G][3] < 0.15 and Gauge_display_state[k_G][2] > 0.85 then Gauge_display_state[k_G][3] = Gauge_display_state[k_G][3] - GAUGE_ANI_STEP if Gauge_display_state[k_G][3] < 0 then Gauge_display_state[k_G][3] = Gauge_display_state[k_G][3] + 1 end else if Gauge_display_state[k_G][2] < Gauge_display_state[k_G][3] then Gauge_display_state[k_G][3] = Gauge_display_state[k_G][3] - GAUGE_ANI_STEP elseif Gauge_display_state[k_G][2] > Gauge_display_state[k_G][3] then Gauge_display_state[k_G][3] = Gauge_display_state[k_G][3] + GAUGE_ANI_STEP end end Gauge_display_state[k_G][4]:set(Gauge_display_state[k_G][3]) end end function SetCommand(command, value) if command == Keys.FuelDisMain then setDisplayStatus(main_tank_dis) elseif command == Keys.FuelDisWing then setDisplayStatus(wing_tank_dis) elseif command == Keys.FuelDisCtr then setDisplayStatus(ctr_tank_dis) elseif command == Keys.FuelDisLout then setDisplayStatus(lout_tank_dis) elseif command == Keys.FuelDisLin then setDisplayStatus(lin_tank_dis) elseif command == Keys.FuelDisRin then setDisplayStatus(rin_tank_dis) elseif command == Keys.FuelDisRout then setDisplayStatus(rout_tank_dis) elseif command == Keys.FuelTankPressUP then if (target_status[tank_press][2] < 0.5) then current_status[tank_press][3] = current_status[tank_press][2] target_status[tank_press][2] = target_status[tank_press][2] + 1 end elseif command == Keys.FuelTankPressDOWN then if (target_status[tank_press][2] > -0.5) then current_status[tank_press][3] = current_status[tank_press][2] target_status[tank_press][2] = target_status[tank_press][2] - 1 end elseif command == Keys.WingDropTankTransUP then if (target_status[wing_drop_tank_trans][2] < 0.5) then current_status[wing_drop_tank_trans][3] = current_status[wing_drop_tank_trans][2] target_status[wing_drop_tank_trans][2] = target_status[wing_drop_tank_trans][2] + 1 end elseif command == Keys.WingDropTankTransDOWN then if (target_status[wing_drop_tank_trans][2] > -0.5) then current_status[wing_drop_tank_trans][3] = current_status[wing_drop_tank_trans][2] target_status[wing_drop_tank_trans][2] = target_status[wing_drop_tank_trans][2] - 1 end elseif command == Keys.WingTankDump then current_status[wing_tank_dump][3] = current_status[wing_tank_dump][2] target_status[wing_tank_dump][2] = 1 - target_status[wing_tank_dump][2] elseif command == Keys.FuseTankDump then current_status[fuse_tank_dump][3] = current_status[fuse_tank_dump][2] target_status[fuse_tank_dump][2] = 1 - target_status[fuse_tank_dump][2] elseif command == Keys.FuelReadyUP then if (target_status[fuel_ready][2] < 0.5) then current_status[fuel_ready][3] = current_status[fuel_ready][2] target_status[fuel_ready][2] = target_status[fuel_ready][2] + 1 end elseif command == Keys.FuelReadyDOWN then if (target_status[fuel_ready][2] > -0.5) then current_status[fuel_ready][3] = current_status[fuel_ready][2] target_status[fuel_ready][2] = target_status[fuel_ready][2] - 1 end elseif command == Keys.BoostPumpTestUP then if (target_status[boost_pump_test][2] < 0.5) then current_status[boost_pump_test][3] = current_status[boost_pump_test][2] target_status[boost_pump_test][2] = SWITCH_ON end elseif command == Keys.BoostPumpTestDOWN then if (target_status[boost_pump_test][2] > -0.5) then current_status[boost_pump_test][3] = current_status[boost_pump_test][2] target_status[boost_pump_test][2] = SWITCH_OFF end end print_message_to_user(fuel_in_tank[DISPLAY_TANK][2]) end function update_oil_pressure() local oil_press_left = 0 local oil_press_right = 0 local fuel_master_l = get_param_handle("PTN_112") local fuel_master_r = get_param_handle("PTN_113") if target_status[tank_press][2] == SWITCH_TEST then -- off -- do nothing elseif target_status[tank_press][2] == SWITCH_OFF then -- normal if fuel_master_l:get() > 0.5 then oil_press_left = (sensor_data.getEngineLeftRPM() - 67) * 15 / 32 + 35 end if fuel_master_r:get() > 0.5 then oil_press_right = (sensor_data.getEngineRightRPM() - 67) * 15 / 32 + 35 end elseif target_status[tank_press][2] == SWITCH_ON then -- override if fuel_master_l:get() > 0.5 then oil_press_left = 20 end if fuel_master_r:get() > 0.5 then oil_press_right = 20 end end Gauge_display_state[fuel_press_l][2] = oil_press_left / 100 Gauge_display_state[fuel_press_r][2] = oil_press_right / 100 end function update() update_switch_status() update_oil_pressure() update_current_fuel_in_tank() updateFuelGaugeDisplay() end --不关闭该lua need_to_be_closed = false
LinkLuaModifier("telekenetic_blob_expel_modifier", "heroes/telekenetic_blob/telekenetic_blob_expel_modifier.lua", LUA_MODIFIER_MOTION_BOTH ) telekenetic_blob_expel = class({}) function telekenetic_blob_expel:CastFilterResultLocation(vLocation) if IsClient () then return UF_SUCCESS end local hCaster = self:GetCaster() local hMarkedAbility = hCaster:FindAbilityByName('telekenetic_blob_mark_target') if not hMarkedAbility or not hMarkedAbility.tMarkedTargets or #hMarkedAbility.tMarkedTargets == 0 then return UF_FAIL_CUSTOM end for _, markedTarget in pairs(hMarkedAbility.tMarkedTargets) do if CalcDistanceBetweenEntityOBB(markedTarget, hCaster) <= self:GetSpecialValueFor("marked_target_max_distance") and not (markedTarget:HasModifier("telekenetic_blob_throw_modifier") or markedTarget:HasModifier("telekenetic_blob_sling_modifier") or markedTarget:HasModifier("telekenetic_blob_expel_modifier") or markedTarget:HasModifier("telekenetic_blob_catapult_modifier")) then return UF_SUCCESS end end return UF_FAIL_CUSTOM end function telekenetic_blob_expel:GetCustomCastErrorLocation(vLocation) return "error_no_market_target" end function telekenetic_blob_expel:OnSpellStart() local hCaster = self:GetCaster() local hMarkedAbility = hCaster:FindAbilityByName('telekenetic_blob_mark_target') for _, markedTarget in pairs(hMarkedAbility.tMarkedTargets) do if CalcDistanceBetweenEntityOBB(markedTarget, hCaster) <= self:GetSpecialValueFor("marked_target_max_distance") and not (markedTarget:HasModifier("telekenetic_blob_throw_modifier") or markedTarget:HasModifier("telekenetic_blob_sling_modifier") or markedTarget:HasModifier("telekenetic_blob_expel_modifier") or markedTarget:HasModifier("telekenetic_blob_catapult_modifier")) then local fDistance = (markedTarget:GetOrigin()-self:GetCursorPosition()):Length2D() markedTarget:AddNewModifier(hCaster, self, "telekenetic_blob_expel_modifier", {Duration = fDistance/self:GetSpecialValueFor("fly_speed")}) end end end
-- util function to define autocmds -- global table to hold our functions _autofuncs = {} -- current bindfunc index local autofunc_i = 0 return function(event, pattern, action) -- if we pass in a lua function if type(action) == "function" then -- make a vim readable expression that will call our function -- in the global _autofuncs table autofunc_i = autofunc_i + 1 local name = "autofunc_" .. tostring(autofunc_i) _autofuncs[name] = action action = "call v:lua._autofuncs." .. name .. "()" end -- space seperated string with all those componments return vim.cmd(table.concat({ "autocmd", event, pattern, action }, " ")) end
local game = Instance.new("DataModel") local workspace = game:GetService("Workspace") assert(workspace.Parent == game) assert(workspace.ClassName == "Workspace")
local CM = ClickMorph if CM.isRetail then return end iMorphV1 = CreateFrame("Frame") iMorphV1:RegisterEvent("PLAYER_ENTERING_WORLD") iMorphV1:RegisterEvent("PLAYER_LOGOUT") iMorphV1:RegisterEvent("ADDON_LOADED") -- iMorphV1:RegisterEvent("PLAYER_MOUNT_DISPLAY_CHANGED") iMorphV1:SetScript("OnEvent", function(self, event, ...) self[event](self, event, ...) end) function iMorphV1:ADDON_LOADED(event, addon) if addon == "ClickMorph" then ClickMorph_iMorphV1 = ClickMorph_iMorphV1 or {} self:UnregisterEvent(event) end end -- imorph seems to already maintain morph when zoning between map instances -- cant immediately remorph on initial login since IMorphInfo is not yet loaded, even after relog -- also IMorphInfo gets wiped between exiting the game / uninjecting function iMorphV1:PLAYER_ENTERING_WORLD(event, isInitialLogin, isReloadingUi) --[[ if isInitialLogin then self:Remorph() end ]] end -- store morph info before logging out function iMorphV1:PLAYER_LOGOUT() -- workaround for scale local tempscale = ClickMorph_iMorphV1.tempscale ClickMorph_iMorphV1.state = CopyTable(IMorphInfo) ClickMorph_iMorphV1.state.scale = tempscale end function iMorphV1:Remorph() -- need to wait for IMorphInfo to be loaded C_Timer.After(1, function() local state = ClickMorph_iMorphV1.state if not IMorphInfo or not state then return end if state.shouldMorphRace and state.race and state.gender then SetRace(state.race, state.gender) elseif state.displayId then Morph(state.displayId) end if next(state.items) then for slotID, itemID in pairs(state.items) do SetItem(slotID, itemID) end end if state.scale then SetScale(state.scale) end if next(state.styles) then for func, value in pairs(state.styles) do _G[func](value) end end --ClickMorph:PrintChat("Remorphed") end) end -- mount/dismount function iMorphV1:PLAYER_MOUNT_DISPLAY_CHANGED() local state = ClickMorph_iMorphV1.state if not IMorphInfo or not state then return end C_Timer.After(.1, function() if state.scale then SetScale(state.scale) end end) end
require("consts") local function load_img(path_and_name) local img = love.image.newImageData(path_and_name) if img == nil then return nil end -- print("loaded asset: "..path_and_name) local ret = love.graphics.newImage(img) ret:setFilter("nearest","nearest") return ret end function load_img_from_supported_extensions(path_and_name) local supported_img_formats = { ".png", ".jpg" } for _, extension in ipairs(supported_img_formats) do if love.filesystem.getInfo(path_and_name..extension) then return load_img(path_and_name..extension) end end return nil end function draw(img, x, y, rot, x_scale,y_scale) rot = rot or 0 x_scale = x_scale or 1 y_scale = y_scale or 1 gfx_q:push({love.graphics.draw, {img, x*GFX_SCALE, y*GFX_SCALE, rot, x_scale*GFX_SCALE, y_scale*GFX_SCALE}}) end function menu_draw(img, x, y, rot, x_scale,y_scale) rot = rot or 0 x_scale = x_scale or 1 y_scale = y_scale or 1 gfx_q:push({love.graphics.draw, {img, x, y, rot, x_scale, y_scale}}) end function menu_drawf(img, x, y, halign, valign, rot, x_scale, y_scale) rot = rot or 0 x_scale = x_scale or 1 y_scale = y_scale or 1 halign = halign or "left" if halign == "center" then x = x - math.floor(img:getWidth() * 0.5 * x_scale) elseif halign == "right" then x = x - math.floor(img:getWidth() * x_scale) end valign = valign or "top" if valign == "center" then y = y - math.floor(img:getHeight() * 0.5 * y_scale) elseif valign == "bottom" then y = y - math.floor(img:getHeight() * y_scale) end gfx_q:push({love.graphics.draw, {img, x, y, rot, x_scale, y_scale}}) end function menu_drawq(img, quad, x, y, rot, x_scale,y_scale) rot = rot or 0 x_scale = x_scale or 1 y_scale = y_scale or 1 gfx_q:push({love.graphics.draw, {img, quad, x, y, rot, x_scale, y_scale}}) end function grectangle(mode, x, y, w, h) gfx_q:push({love.graphics.rectangle, {mode, x, y, w, h}}) end function gprint(str, x, y, color, scale) x = x or 0 y = y or 0 scale = scale or 1 color = color or nil set_color(0, 0, 0, 1) gfx_q:push({love.graphics.print, {str, x+1, y+1, 0, scale}}) local r, g, b, a = 1,1,1,1 if color ~= nil then r,g,b,a = unpack(color) end set_color(r,g,b,a) gfx_q:push({love.graphics.print, {str, x, y, 0, scale}}) end -- font file to use local font_file = nil local font_size = 12 local font_cache = {} function set_global_font(filepath, size) font_cache = {} font_file = filepath font_size = size local f if font_file then f = love.graphics.newFont(font_file, font_size) else f = love.graphics.newFont(font_size) end f:setFilter("nearest", "nearest") love.graphics.setFont(f) end local function get_font_delta(with_delta_size) local font_size = font_size + with_delta_size local f = font_cache[font_size] if not f then if font_file then f = love.graphics.newFont(font_file, font_size) else f = love.graphics.newFont(font_size) end font_cache[font_size] = f end return f end function set_font(font) gfx_q:push({love.graphics.setFont, {font}}) end function set_shader(shader) gfx_q:push({love.graphics.setShader, {shader}}) end function gprintf(str, x, y, limit, halign, color, scale, font_delta_size) x = x or 0 y = y or 0 scale = scale or 1 color = color or nil limit = limit or canvas_width font_delta_size = font_delta_size or 0 halign = halign or "left" set_color(0, 0, 0, 1) local old_font = love.graphics.getFont() if font_delta_size ~= 0 then set_font(get_font_delta(font_delta_size)) end gfx_q:push({love.graphics.printf, {str, x+1, y+1, limit, halign, 0, scale}}) local r, g, b, a = 1,1,1,1 if color ~= nil then r,g,b,a = unpack(color) end set_color(r,g,b,a) gfx_q:push({love.graphics.printf, {str, x, y, limit, halign, 0, scale}}) if font_delta_size ~= 0 then set_font(old_font) end end local _r, _g, _b, _a function set_color(r, g, b, a) a = a or 1 -- only do it if this color isn't the same as the previous one... if _r~=r or _g~=g or _b~=b or _a~=a then _r,_g,_b,_a = r,g,b,a gfx_q:push({love.graphics.setColor, {r, g, b, a}}) end end function file_exists(name) local f=io.open(name,"r") if f~=nil then io.close(f) return true else return false end end function reset_filters() background_overlay = nil foreground_overlay = nil end
require "Object" class(NSError, Object); function NSError:code() return tonumber(runtime::invokeMethod(self:id(), "code")); end function NSError:domain() return runtime::invokeMethod(self:id(), "domain"); end function NSError:localizedDescription() return runtime::invokeMethod(self:id(), "localizedDescription"); end
----------------------------------- -- Area: Hall of the Gods -- NPC: Cermet Gate -- Gives qualified players access to Ru'Aun Gardens. -- !pos 0 -12 48 251 ----------------------------------- require("scripts/globals/keyitems") require("scripts/globals/missions") require("scripts/globals/titles") ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) if not player:hasKeyItem(tpz.ki.CERULEAN_CRYSTAL) then player:startEvent(1) else if player:getCurrentMission(ZILART) == tpz.mission.id.zilart.THE_MITHRA_AND_THE_CRYSTAL then player:startEvent(4) -- Zilart CS. else player:startEvent(2) end end end function onEventUpdate(player, csid, option) end function onEventFinish(player, csid, option) if csid == 1 and player:getCurrentMission(ZILART) == tpz.mission.id.zilart.THE_TEMPLE_OF_DESOLATION then player:addTitle(tpz.title.SEALER_OF_THE_PORTAL_OF_THE_GODS) player:completeMission(ZILART, tpz.mission.id.zilart.THE_TEMPLE_OF_DESOLATION) player:addMission(ZILART, tpz.mission.id.zilart.THE_HALL_OF_THE_GODS) elseif csid == 4 then player:setCharVar("ZilartStatus", 0) player:completeMission(ZILART, tpz.mission.id.zilart.THE_MITHRA_AND_THE_CRYSTAL) player:addMission(ZILART, tpz.mission.id.zilart.THE_GATE_OF_THE_GODS) end end
function Setup() Require("GameObject", "UnityEngine"); Require("Transform", "UnityEngine"); Require("Vector3", "UnityEngine"); end function Start() transform = GameObject.FindWithTag("Enemy").transform; end function Update() transform.position = Vector3.up; end
return function(Vargs, env) local server = Vargs.Server; local service = Vargs.Service; local Settings = server.Settings local Functions, Commands, Admin, Anti, Core, HTTP, Logs, Remote, Process, Variables, Deps = server.Functions, server.Commands, server.Admin, server.Anti, server.Core, server.HTTP, server.Logs, server.Remote, server.Process, server.Variables, server.Deps if env then setfenv(1, env) end return { DonorUncape = { Prefix = Settings.PlayerPrefix; Commands = {"uncape", "removedonorcape"}; Args = {}; Description = "Remove donor cape"; Fun = false; Donors = true; AdminLevel = "Donors"; Function = function(plr: Player, args: {string}) Functions.UnCape(plr) end }; DonorCape = { Prefix = Settings.PlayerPrefix; Commands = {"cape", "donorcape"}; Args = {}; Description = "Get donor cape (remove using "..Settings.PlayerPrefix.."uncape)"; Fun = false; Donors = true; AdminLevel = "Donors"; Function = function(plr: Player, args: {string}) Functions.Donor(plr) end }; DonorRemoveTShirt = { Prefix = Settings.PlayerPrefix; Commands = {"removetshirt", "untshirt", "notshirt"}; Args = {}; Description = "Remove the t-shirt you are wearing, if any"; Fun = false; Donors = true; AdminLevel = "Donors"; Function = function(plr: Player, args: {[number]:string}) if plr.Character then for _, v in pairs(plr.Character:GetChildren()) do if v:IsA("ShirtGraphic") then v:Destroy() end end local humanoid = plr.Character:FindFirstChildOfClass("Humanoid") local humandescrip = humanoid and humanoid:FindFirstChildOfClass("HumanoidDescription") if humandescrip then humandescrip.GraphicTShirt = 0 end end end }; DonorNeon = { Prefix = Settings.PlayerPrefix; Commands = {"neon", "donorneon"}; Args = {"color"}; Description = "Changes your body material to neon and makes you the (optional) color of your choosing."; Fun = false; Donors = true; AdminLevel = "Donors"; Function = function(plr: Player, args: {string}) if plr.Character then for _,p in pairs(plr.Character:GetChildren()) do if p:IsA("BasePart") then if args[1] then p.BrickColor = BrickColor.new(args[1]) end p.Material = Enum.Material.Neon end end end end }; DonorFire = { Prefix = Settings.PlayerPrefix; Commands = {"fire", "donorfire"}; Args = {"color (optional)"}; Description = "Gives you fire with the specified color (if you specify one)"; Fun = false; Donors = true; AdminLevel = "Donors"; Function = function(plr: Player, args: {string}) local torso = plr.Character:FindFirstChild("HumanoidRootPart") if torso then local color = Color3.new(1,1,1) local secondary = Color3.new(1,0,0) if args[1] then local str = BrickColor.new('Cyan').Color local teststr = args[1] if BrickColor.new(teststr) ~= nil then str = BrickColor.new(teststr).Color end color = str secondary = str end Functions.RemoveParticle(torso, "DONOR_FIRE") Functions.NewParticle(torso, "Fire", { Name = "DONOR_FIRE"; Color = color; SecondaryColor = secondary; }) Functions.RemoveParticle(torso, "DONOR_FIRE_LIGHT") Functions.NewParticle(torso, "PointLight", { Name = "DONOR_FIRE_LIGHT"; Color = color; Range = 15; Brightness = 5; }) end end }; DonorSparkles = { Prefix = Settings.PlayerPrefix; Commands = {"sparkles", "donorsparkles"}; Args = {"color (optional)"}; Description = "Gives you sparkles with the specified color (if you specify one)"; Fun = false; Donors = true; AdminLevel = "Donors"; Function = function(plr: Player, args: {string}) local torso = plr.Character:FindFirstChild("HumanoidRootPart") if torso then local color = Color3.new(1,1,1) if args[1] then local str = BrickColor.new('Bright orange').Color local teststr = args[1] if BrickColor.new(teststr) ~= nil then str = BrickColor.new(teststr).Color end color = str end Functions.RemoveParticle(torso, "DONOR_SPARKLES") Functions.RemoveParticle(torso, "DONOR_SPARKLES_LIGHT") Functions.NewParticle(torso, "Sparkles", { Name = "DONOR_SPARKLES"; SparkleColor = color; }) Functions.NewParticle(torso, "PointLight", { Name = "DONOR_SPARKLES_LIGHT"; Color = color; Range = 15; Brightness = 5; }) end end }; DonorLight = { Prefix = Settings.PlayerPrefix; Commands = {"light", "donorlight"}; Args = {"color (optional)"}; Description = "Gives you a PointLight with the specified color (if you specify one)"; Fun = false; Donors = true; AdminLevel = "Donors"; Function = function(plr: Player, args: {string}) local torso = plr.Character:FindFirstChild("HumanoidRootPart") if torso then local color = Color3.new(1,1,1) if args[1] then local str = BrickColor.new('Cyan').Color local teststr = args[1] if BrickColor.new(teststr) ~= nil then str = BrickColor.new(teststr).Color end color = str end Functions.RemoveParticle(torso, "DONOR_LIGHT") Functions.NewParticle(torso, "PointLight", { Name = "DONOR_LIGHT"; Color = color; Range = 15; Brightness = 5; }) end end }; DonorParticle = { Prefix = Settings.PlayerPrefix; Commands = {"particle", "donorparticle"}; Args = {"textureid", "startColor3", "endColor3"}; Description = "Put a custom particle emitter on your character"; Fun = false; Donors = true; AdminLevel = "Donors"; Function = function(plr: Player, args: {string}) assert(args[1], "Missing TextureId") local torso = plr.Character:FindFirstChild("HumanoidRootPart") if torso then local startColor = {} local endColor = {} if args[2] then for s in args[2]:gmatch("[%d]+") do table.insert(startColor,tonumber(s)) end end if args[3] then--276138620 :) for s in args[3]:gmatch("[%d]+") do table.insert(endColor,tonumber(s)) end end local startc = Color3.new(1,1,1) local endc = Color3.new(1,1,1) if #startColor==3 then startc = Color3.new(startColor[1],startColor[2],startColor[3]) end if #endColor==3 then endc = Color3.new(endColor[1],endColor[2],endColor[3]) end Functions.RemoveParticle(torso, "DONOR_PARTICLE") Functions.NewParticle(torso, "ParticleEmitter", { Name = "DONOR_PARTICLE"; Texture = 'rbxassetid://'..Functions.GetTexture(args[1]); Size = NumberSequence.new({ NumberSequenceKeypoint.new(0,0); NumberSequenceKeypoint.new(.1,.25,.25); NumberSequenceKeypoint.new(1,.5); }); Transparency = NumberSequence.new({ NumberSequenceKeypoint.new(0,1); NumberSequenceKeypoint.new(.1,.25,.25); NumberSequenceKeypoint.new(.9,.5,.25); NumberSequenceKeypoint.new(1,1); }); Lifetime = NumberRange.new(5); Speed = NumberRange.new(.5,1); Rotation = NumberRange.new(0,359); RotSpeed = NumberRange.new(-90,90); Rate = 11; VelocitySpread = 180; Color = ColorSequence.new(startc,endc); }) end end }; DonorUnparticle = { Prefix = Settings.PlayerPrefix; Commands = {"unparticle", "removeparticles", "undonorparticle"}; Args = {}; Description = "Removes donor particles on you"; Fun = false; Donors = true; AdminLevel = "Donors"; Function = function(plr: Player, args: {string}) local torso = plr.Character:FindFirstChild("HumanoidRootPart") Functions.RemoveParticle(torso, "DONOR_PARTICLE") end }; DonorUnfire = { Prefix = Settings.PlayerPrefix; Commands = {"unfire", "undonorfire"}; Args = {}; Description = "Removes donor fire on you"; Fun = false; Donors = true; AdminLevel = "Donors"; Function = function(plr: Player, args: {string}) local torso = plr.Character:FindFirstChild("HumanoidRootPart") Functions.RemoveParticle(torso, "DONOR_FIRE") Functions.RemoveParticle(torso, "DONOR_FIRE_LIGHT") end }; DonorUnsparkles = { Prefix = Settings.PlayerPrefix; Commands = {"unsparkles", "undonorsparkles"}; Args = {}; Description = "Removes donor sparkles on you"; Fun = false; Donors = true; AdminLevel = "Donors"; Function = function(plr: Player, args: {string}) local torso = plr.Character:FindFirstChild("HumanoidRootPart") Functions.RemoveParticle(torso, "DONOR_SPARKLES") Functions.RemoveParticle(torso, "DONOR_SPARKLES_LIGHT") end }; DonorUnlight = { Prefix = Settings.PlayerPrefix; Commands = {"unlight", "undonorlight"}; Args = {}; Description = "Removes donor light on you"; Fun = false; Donors = true; AdminLevel = "Donors"; Function = function(plr: Player, args: {string}) local torso = plr.Character:FindFirstChild("HumanoidRootPart") Functions.RemoveParticle(torso, "DONOR_LIGHT") end }; DonorAvatarItem = { Prefix = Settings.PlayerPrefix; Commands = {"avataritem", "accessory", "hat", "donorhat", "shirt", "donorshirt", "tshirt", "donortshirt", "givetshirt", "shirt", "donorshirt", "giveshirt", "pants", "donorpants", "givepants", "face", "donorface", "animation", "anim"}; Args = {"ID"}; Hidden = false; Description = "Gives yourself the avatar item that belongs to <ID>"; Fun = false; Donors = true; Function = function(plr: Player, args: {[number]:string}, data: {}) return Commands.AvatarItem.Function(plr, {"@"..plr.Name, args[1]}, data) end }; DonorHatList = { Prefix = Settings.PlayerPrefix; Commands = {"myhats", "hatlist", "hats", "donorhats"}; Args = {}; Description = "Shows you a list of hats you are currently wearing"; Fun = false; Donors = true; AdminLevel = "Donors"; Function = function(plr: Player, args: {string}) Remote.MakeGui(plr, "HatList", { PlayerPrefix = Settings.PlayerPrefix; SplitKey = Settings.SplitKey; }) end }; DonorRemoveHat = { Prefix = Settings.PlayerPrefix; Commands = {"removehat", "removedonorhat"}; Args = {"name"}; Description = "Removes a specific accessory you are currently wearing"; Fun = false; Donors = true; AdminLevel = "Donors"; Function = function(plr: Player, args: {string}) local hat = plr.Character:FindFirstChild(args[1]) if hat and hat:IsA("Accessory") then hat:Destroy() Functions.Hint(args[1].." has been removed.", {plr}) else Functions.Hint(args[1].." is not a valid accessory. Run `"..Settings.PlayerPrefix.."myhats` for a list of accessories you are wearing.", {plr}) end end }; DonorRemoveHats = { Prefix = Settings.PlayerPrefix; Commands = {"removehats", "nohats", "nodonorhats", "clearhats"}; Args = {}; Description = "Removes any hats you are currently wearing"; Fun = false; Donors = true; AdminLevel = "Donors"; Function = function(plr: Player, args: {string}) for _, v in pairs(plr.Character:GetChildren()) do if v:IsA("Accoutrement") then v:Destroy() end end end }; } end
local mod = DBM:NewMod(1732, "DBM-Nighthold", nil, 786) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 15190 $"):sub(12, -3)) mod:SetCreatureID(103758) mod:SetEncounterID(1863) mod:SetZone() --mod:SetUsedIcons(8, 7, 6, 3, 2, 1) --mod:SetHotfixNoticeRev(12324) mod.respawnTime = 30--or 35 or 40 mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_CAST_START 205408 206949 206517 207720 207439 216909", "SPELL_CAST_SUCCESS 206464 206464 206936 205649 207143 205984 214335 214167", "SPELL_AURA_APPLIED 205429 216344 216345 205445 205984 214335 214167 206585 206936 205649 207143 206398", "SPELL_AURA_REMOVED 205429 216344 216345 205445 205984 214335 214167 206585 206936 207143", "SPELL_SUMMON 207813", "SPELL_PERIODIC_DAMAGE 206398", "SPELL_PERIODIC_MISSED 206398", "UNIT_DIED", "UNIT_SPELLCAST_SUCCEEDED boss1" ) --TODO, evalulate hud size for conjunction for range check/hud. 5 yards guessed. --TODO, felburst stacks/swapping? --TODO, does void nova even merit a special warning, or regular? --Base abilities local warnStarSignCrab = mod:NewTargetAnnounce(205429, 2)--Yellow (looks orange but icon text is yellow) local warnStarSignDragon = mod:NewTargetAnnounce(216344, 2)--Blue local warnStarSignHunter = mod:NewTargetAnnounce(216345, 2)--Green local warnStarSignWolf = mod:NewTargetAnnounce(205445, 2)--Red local warnGravitationalPull = mod:NewTargetAnnounce(205984, 3, nil, "Tank") --Stage One: The Dome of Observation local warnCoronalEjection = mod:NewTargetAnnounce(206464, 2) --Stage Two: Absolute Zero local warnIcyEjection = mod:NewTargetAnnounce(206936, 2) --Stage Three: A Shattered World local warnFelEjection = mod:NewTargetAnnounce(205649, 2) --Stage Four: Inevitable Fate local warnVoidEjection = mod:NewTargetAnnounce(207143, 2) local specWarnConjunction = mod:NewSpecialWarningMoveAway(205408, nil, nil, nil, 3, 2) local specWarnConjunctionSign = mod:NewSpecialWarningYouPos(205408, nil, nil, nil, 1, 6) local specWarnGravitationalPull = mod:NewSpecialWarningYou(205984, nil, nil, nil, 3, 2) local specWarnGravitationalPullOther= mod:NewSpecialWarningTaunt(205984, nil, nil, nil, 1, 2) local yellGravitationalPull = mod:NewFadesYell(205984) --Stage One: The Dome of Observation local specWarnCoronalEjection = mod:NewSpecialWarningMoveAway(206464, nil, nil, nil, 1, 2) --Stage Two: Absolute Zero local specWarnIcyEjection = mod:NewSpecialWarningMoveAway(206936, nil, nil, nil, 1, 2) local yellIcyEjection = mod:NewFadesYell(206936) local specWarnFrigidNova = mod:NewSpecialWarningSpell(206949, nil, nil, nil, 2, 2)--maybe change to MoveTo warning --Stage Three: A Shattered World local specWarnFelEjection = mod:NewSpecialWarningMoveAway(205649, nil, nil, nil, 1, 2) local specWarnFelNova = mod:NewSpecialWarningRun(206517, nil, nil, nil, 4, 2) local specWarnFelFlame = mod:NewSpecialWarningMove(206398, nil, nil, nil, 1, 2) --Stage Four: Inevitable Fate local specWarnThing = mod:NewSpecialWarningSwitch("ej13057", "Tank", nil, 2, 1, 2) local specWarnWitnessVoid = mod:NewSpecialWarningSpell(207720, nil, nil, nil, 1, 2) local specWarnVoidEjection = mod:NewSpecialWarningMoveAway(207143, nil, nil, nil, 1, 2)--Should this be a move away, does void burst do any damage? local specWarnVoidNova = mod:NewSpecialWarningSpell(207439, nil, nil, nil, 2, 2) local specWarnWorldDevouringForce = mod:NewSpecialWarningDodge(216909, nil, nil, nil, 3, 2) --Base abilities local timerConjunctionCD = mod:NewCDTimer(16, 205408, nil, nil, nil, 3, nil, DBM_CORE_HEROIC_ICON) local timerGravPullCD = mod:NewCDTimer(29, 205984, nil, nil, nil, 5, nil, DBM_CORE_TANK_ICON) --Stage One: The Dome of Observation mod:AddTimerLine(SCENARIO_STAGE:format(1)) local timerCoronalEjectionCD = mod:NewCDTimer(16, 206464, nil, nil, nil, 3)--CD is not known, always push phase 2 before this is cast 2nd time --Stage Two: Absolute Zero mod:AddTimerLine(SCENARIO_STAGE:format(2)) local timerIcyEjectionCD = mod:NewCDCountTimer(16, 206936, nil, nil, nil, 3) local timerFrigidNovaCD = mod:NewCDTimer(61.5, 206949, nil, nil, nil, 2, nil, DBM_CORE_DEADLY_ICON) --Stage Three: A Shattered World mod:AddTimerLine(SCENARIO_STAGE:format(3)) local timerFelEjectionCD = mod:NewCDCountTimer(16, 205649, nil, nil, nil, 3) local timerFelNovaCD = mod:NewCDCountTimer(29.3, 206517, nil, nil, nil, 2, nil, DBM_CORE_DEADLY_ICON) --Stage Four: Inevitable Fate mod:AddTimerLine(SCENARIO_STAGE:format(4)) local timerWitnessVoidCD = mod:NewCDTimer(13.4, 207720, nil, nil, nil, 2, nil, DBM_CORE_HEALER_ICON)--14.5 on normal local timerVoidEjectionCD = mod:NewCDCountTimer(16, 207143, nil, nil, nil, 3) local timerVoidNovaCD = mod:NewCDTimer(65, 207439, nil, nil, nil, 2)--Only saw a single pull it was cast twice, so CD needs more verification local timerWorldDevouringForceCD = mod:NewCDTimer(16, 216909, nil, nil, nil, 3, nil, DBM_CORE_DEADLY_ICON..DBM_CORE_HEROIC_ICON) local timerThingCD = mod:NewCDTimer(63, "ej13057", 207813, "Tank", nil, 5, nil, DBM_CORE_TANK_ICON) local berserkTimer = mod:NewBerserkTimer(463) --Base abilities local countdownConjunction = mod:NewCountdownFades("AltTwo15", 205408) local countdownGravPull = mod:NewCountdownFades("Alt10", 205984)--Maybe change to everyone if it works like I think --Stage One: The Dome of Observation --Stage Two: Absolute Zero --Stage Three: A Shattered World --Stage Four: Inevitable Fate --Base abilities local voiceConjunction = mod:NewVoice(205408)--scatter/find <type> local voiceGravPull = mod:NewVoice(205984)--targetyou/tauntboss --Stage One: The Dome of Observation local voiceCoronalEjection = mod:NewVoice(206464)--runout --Stage Two: Absolute Zero local voiceIcyEjection = mod:NewVoice(206936)--runout local voiceFrigidNova = mod:NewVoice(206949)--gathershare --Stage Three: A Shattered World local voiceFelEjection = mod:NewVoice(205649)--runout/keepmove local voiceFelnova = mod:NewVoice(206517)--justrun local voiceFelFlame = mod:NewVoice(206398)--runaway --Stage Four: Inevitable Fate local voiceThing = mod:NewVoice("ej13057", "-Healer")--killmob local voiceWitnessVoid = mod:NewVoice(207720)--turnaway local voiceVoidEjection = mod:NewVoice(207143)--runout local voiceVoidNova = mod:NewVoice(207439)--aesoon local voiceWorldDevouringForce = mod:NewVoice(216909)--farfromline mod:AddRangeFrameOption("5/8") --mod:AddSetIconOption("SetIconOnMC", 163472, false) mod:AddHudMapOption("HudMapOnConjunction", 205408) mod:AddBoolOption("ShowNeutralColor", false) mod:AddInfoFrameOption(205408)--really needs a "various" option mod.vb.StarSigns = 0 mod.vb.phase = 1 mod.vb.icyEjectionCount = 0 mod.vb.felEjectionCount = 0 mod.vb.felNovaCount = 0 mod.vb.voidEjectionCount = 0 --These timers are self corrective, which is annoying when all inclusive but better if scrubbing short timers --For example Icy will always be 35.2, 64.5, 24.7 if you scrub the short timers or within 0.3. However including short timers and you get more variation. --For time being, i'll be all inclusive, particuarlly with void since some of the shorter auto correcting ones are over 10 seconds. --Example of self correction. Note 3rd pull, because of the 14 being late by 3 seconds, the 3 seconds corrected from the 20. --"207143-Void Ejection" = "pull:338.3, 4.5, 14.2, 20.7, 1.6, 7.3, 26.5, 2.4", --"207143-Void Ejection" = "pull:328.7, 5.7, 14.1, 20.7, 2.8, 6.1, 25.7, 4.9", --"207143-Void Ejection" = "pull:326.8, 4.4, 17.5, 17.4, 4.6, 4.7, 26.3, 4.8", --For all inclusive, i'll simply use lowest observed time for each count, which will give close approx cd timer but imprecise to be a "next" timer. local icyEjectionTimers = {24.5, 34.4, 6.5, 5.3, 50.7} local felEjectionTimers = {22.5, 4.8, 3.7, 0.4, 10.9, 3.6, 3.7, 33.6, 2.5, 2.8, 4.5, 2.8, 24.0}--10 after 4, 32 after 7, 24 after 12 local voidEjectionTimers = {24, 3.2, 14.1, 17.4, 0.8, 4.7, 25.7, 2.3} --local felNovaTImers = {34.8, 31.3, 29.3}--Currently unused. for now just doing 34.8 or 29.3 local abZeroTargets = {} local abZeroDebuff, chilledDebuff, gravPullDebuff = GetSpellInfo(206585), GetSpellInfo(206589), GetSpellInfo(205984) local icyEjectionDebuff, coronalEjectionDebuff, voidEjectionDebuff = GetSpellInfo(206936), GetSpellInfo(206464), GetSpellInfo(207143) local crabDebuff, dragonDebuff, hunterDebuff, wolfDebuff = GetSpellInfo(205429), GetSpellInfo(216344), GetSpellInfo(216345), GetSpellInfo(205445) local UnitDebuff = UnitDebuff local chilledFilter, tankFilter do chilledFilter = function(uId) if UnitDebuff(uId, chilledDebuff) then return true end end tankFilter = function(uId) if mod:IsTanking(uId, "boss1") then return true end end end local updateInfoFrame, sortInfoFrame do -- local playerName = UnitName("player") local lines = {} sortInfoFrame = function(a, b) local a = lines[a] local b = lines[b] if not tonumber(a) then a = -1 end if not tonumber(b) then b = -1 end if a < b then return true else return false end end updateInfoFrame = function() table.wipe(lines) local total1, total2 = 0, 0 local crabs, dragons, hunters, wolves = 0, 0, 0, 0 --Star Signs Helper for i = 1, DBM:GetNumRealGroupMembers() do local unitID = 'raid'..i if UnitDebuff(unitID, crabDebuff) then crabs = crabs + 1 total1 = total1 + 1 end if UnitDebuff(unitID, dragonDebuff) then dragons = dragons + 1 total1 = total1 + 1 end if UnitDebuff(unitID, hunterDebuff) then hunters = hunters + 1 total1 = total1 + 1 end if UnitDebuff(unitID, wolfDebuff) then wolves = wolves + 1 total1 = total1 + 1 end end if total1 > 0 then --FIXME, figure out why colors are wrong lines["|cff7d0aCD"..crabDebuff.."|r"] = crabs lines["|c69ccf0CD"..dragonDebuff.."|r"] = dragons lines["|cabd473CD"..hunterDebuff.."|r"] = hunters lines["|cff0000CD"..wolfDebuff.."|r"] = wolves end --Absolute Zero Helper for i = 1, #abZeroTargets do local name = abZeroTargets[i] local uId = DBM:GetRaidUnitId(name) if not uId then break end local _, _, _, currentStack = UnitDebuff(uId, abZeroDebuff) if currentStack then total2 = total2 + 1 lines[name] = currentStack end end if total2 > 0 then --Displays whether or not player has chilled. if YES in red or NO in green --Ths is displayed under the absolute zero name/stacks so they know there are still stacks to soak and if able. lines[chilledDebuff] = UnitDebuff("player", chilledDebuff) and "|cFF1A1ACD"..YES.."|r" or "|c69CCF0CD"..NO.."|r" end if total1 == 0 and total2 == 0 then--Nothing left, hide infoframe DBM.InfoFrame:Hide() end return lines end end local function updateRangeFrame(self, force) if not self.Options.RangeFrame then return end if UnitDebuff("player", icyEjectionDebuff) or UnitDebuff("player", coronalEjectionDebuff) then DBM.RangeCheck:Show(8) elseif self.vb.phase == 2 and self:IsTank() then--Spread for iceburst DBM.RangeCheck:Show(6) elseif UnitDebuff("Player", gravPullDebuff) or UnitDebuff("player", voidEjectionDebuff) or force or self.vb.StarSigns > 0 then DBM.RangeCheck:Show(5) elseif UnitDebuff("player", abZeroDebuff) then DBM.RangeCheck:Show(8, chilledFilter) elseif self.vb.phase == 2 and self:IsMelee() then--Avoid tanks iceburst DBM.RangeCheck:Show(6, tankFilter) else DBM.RangeCheck:Hide() end end local function cancelNotMine(self) --Idea behind this is you should only see all targets same sign as you if not UnitDebuff("player", crabDebuff) then warnStarSignCrab:Cancel() end if not UnitDebuff("player", dragonDebuff) then warnStarSignDragon:Cancel() end if not UnitDebuff("player", hunterDebuff) then warnStarSignHunter:Cancel() end if not UnitDebuff("player", wolfDebuff) then warnStarSignWolf:Cancel() end end function mod:OnCombatStart(delay) table.wipe(abZeroTargets) self.vb.StarSigns = 0 self.vb.phase = 1 if self:IsMythic() then timerCoronalEjectionCD:Start(12-delay)--Still could be health based timerConjunctionCD:Start(15-delay) else timerCoronalEjectionCD:Start(17.5-delay)--Still could be health based end berserkTimer:Start(-delay) end function mod:OnCombatEnd() if self.Options.RangeFrame then DBM.RangeCheck:Hide() end if self.Options.HudMapOnConjunction then DBMHudMap:Disable() end end function mod:SPELL_CAST_START(args) local spellId = args.spellId if spellId == 205408 then specWarnConjunction:Show() voiceConjunction:Play("scatter") --timerConjunctionCD:Start() updateRangeFrame(self, true) DBM:AddMsg("HUD ranges for this are still approximatinos until further testing.") self:Schedule(5, cancelNotMine, self) elseif spellId == 206949 then specWarnFrigidNova:Show() voiceFrigidNova:Play("gathershare") timerFrigidNovaCD:Start() elseif spellId == 206517 then self.vb.felNovaCount = self.vb.felNovaCount + 1 specWarnFelNova:Show() voiceFelnova:Play("justrun") if self.vb.felNovaCount == 1 then timerFelNovaCD:Start(34.8, self.vb.felNovaCount+1) else timerFelNovaCD:Start(nil, self.vb.felNovaCount+1) end elseif spellId == 207720 then specWarnWitnessVoid:Show() voiceWitnessVoid:Play("turnaway") if self:IsEasy() then timerWitnessVoidCD:Start(14.5, args.sourceGUID) else timerWitnessVoidCD:Start(nil, args.sourceGUID) end elseif spellId == 207439 then specWarnVoidNova:Show() voiceVoidNova:Play("aesoon") timerVoidNovaCD:Start() elseif spellId == 216909 then specWarnWorldDevouringForce:Show() voiceWorldDevouringForce:Play("farfromline") timerWorldDevouringForceCD:Start() end end function mod:SPELL_CAST_SUCCESS(args) local spellId = args.spellId if spellId == 206464 then --timerCoronalEjectionCD:Start() elseif spellId == 206936 then self.vb.icyEjectionCount = self.vb.icyEjectionCount + 1 local timer = icyEjectionTimers[self.vb.icyEjectionCount+1] if timer and timer >= 4 then--No sense in starting timers for the sub 4 second casts timerIcyEjectionCD:Start(timer, self.vb.icyEjectionCount+1) end elseif spellId == 205649 and not self:IsMythic() then--Disabled on mythic, shits basically spammed there and doesn't match timers table. self.vb.felEjectionCount = self.vb.felEjectionCount + 1 --10 after 4, 32 after 7, 24 after 12 --The rest are like sub 5 second timers with variations to boot so not worth timers if self.vb.felEjectionCount == 4 then timerFelEjectionCD:Start(10, self.vb.felEjectionCount+1) elseif self.vb.felEjectionCount == 7 then timerFelEjectionCD:Start(32, self.vb.felEjectionCount+1) elseif self.vb.felEjectionCount == 12 then timerFelEjectionCD:Start(24, self.vb.felEjectionCount+1) end elseif spellId == 207143 then self.vb.voidEjectionCount = self.vb.voidEjectionCount + 1 local timer = voidEjectionTimers[self.vb.voidEjectionCount+1] if timer and timer >= 4 then--No sense in starting timers for the sub 4 second casts timerVoidEjectionCD:Start(timer, self.vb.voidEjectionCount+1) end elseif spellId == 205984 or spellId == 214335 or spellId == 214167 then--205984 Frost, 214167 Fel, 214335 Void if spellId == 214335 then timerGravPullCD:Start(39) else--29 timerGravPullCD:Start() end if args:IsPlayer() then specWarnGravitationalPull:Show() voiceGravPull:Play("targetyou") elseif self:IsTank() then specWarnGravitationalPullOther:Show(args.destName) voiceGravPull:Play("tauntboss") else warnGravitationalPull:Show(args.destName) end end end function mod:SPELL_SUMMON(args) local spellId = args.spellId if spellId == 207813 then specWarnThing:Show() voiceThing:Play("killmob") timerWitnessVoidCD:Start(10, args.destGUID) timerThingCD:Start() end end function mod:SPELL_AURA_APPLIED(args) local spellId = args.spellId if spellId == 205429 or spellId == 216344 or spellId == 216345 or spellId == 205445 then--Star Signs self.vb.StarSigns = self.vb.StarSigns + 1 if spellId == 205429 then--Crab warnStarSignCrab:CombinedShow(2, args.destName) if self.Options.HudMapOnConjunction then--Yellow DBMHudMap:RegisterRangeMarkerOnPartyMember(spellId, "highlight", args.destName, 3.5, 17, 1, 1, 0, 0.5, nil, false):Appear():SetLabel(args.destName) end if args:IsPlayer() then specWarnConjunctionSign:Show(args.spellName) voiceConjunction:Play("205408c") countdownConjunction:Start() end elseif spellId == 216344 then--Dragon warnStarSignDragon:CombinedShow(2, args.destName) if self.Options.HudMapOnConjunction then--Blue DBMHudMap:RegisterRangeMarkerOnPartyMember(spellId, "highlight", args.destName, 3.5, 17, 0.28, 0.48, 0.9, 0.5, nil, false):Appear():SetLabel(args.destName) end if args:IsPlayer() then specWarnConjunctionSign:Show(args.spellName) voiceConjunction:Play("205408d") countdownConjunction:Start() end elseif spellId == 216345 then--Hunter warnStarSignHunter:CombinedShow(2, args.destName) if self.Options.HudMapOnConjunction then--Green DBMHudMap:RegisterRangeMarkerOnPartyMember(spellId, "highlight", args.destName, 3.5, 17, 0, 1, 0, 0.5, nil, false):Appear():SetLabel(args.destName) end if args:IsPlayer() then specWarnConjunctionSign:Show(args.spellName) voiceConjunction:Play("205408h") countdownConjunction:Start() end elseif spellId == 205445 then--Wolf warnStarSignWolf:CombinedShow(2, args.destName) if self.Options.HudMapOnConjunction then--Red DBMHudMap:RegisterRangeMarkerOnPartyMember(spellId, "highlight", args.destName, 3.5, 17, 1, 0, 0, 0.5, nil, false):Appear():SetLabel(args.destName) end if args:IsPlayer() then specWarnConjunctionSign:Show(args.spellName) voiceConjunction:Play("205408w") countdownConjunction:Start() end end if self.vb.StarSigns == 1 then updateRangeFrame(self) if self.Options.InfoFrame and not DBM.InfoFrame:IsShown() then DBM.InfoFrame:Show(15, "function", updateInfoFrame, sortInfoFrame, true) end end elseif spellId == 206464 then warnCoronalEjection:CombinedShow(0.5, args.destName) if args:IsPlayer() then specWarnCoronalEjection:Show() voiceCoronalEjection:Play("runout") updateRangeFrame(self) end elseif spellId == 205984 or spellId == 214335 or spellId == 214167 then if args:IsPlayer() then updateRangeFrame(self) local _, _, _, _, _, duration, expires, _, _ = UnitDebuff("player", args.spellName) if expires then local remaining = expires-GetTime() countdownGravPull:Start(remaining) yellGravitationalPull:Schedule(remaining-1, 1) yellGravitationalPull:Schedule(remaining-2, 2) yellGravitationalPull:Schedule(remaining-3, 3) end end elseif spellId == 206585 then if not tContains(abZeroTargets, args.destName) then table.insert(abZeroTargets, args.destName) end if self.Options.InfoFrame and not DBM.InfoFrame:IsShown() then DBM.InfoFrame:Show(15, "function", updateInfoFrame, sortInfoFrame, true) end updateRangeFrame(self) if args:IsPlayer() then updateRangeFrame(self) end elseif spellId == 206936 then warnIcyEjection:CombinedShow(0.5, args.destName)--If only one, move this to else rule to filter from player if args:IsPlayer() then specWarnIcyEjection:Show() voiceIcyEjection:Play("runout") updateRangeFrame(self) yellIcyEjection:Schedule(9, 1) yellIcyEjection:Schedule(8, 2) yellIcyEjection:Schedule(7, 3) end elseif spellId == 205649 then warnFelEjection:CombinedShow(0.5, args.destName) if args:IsPlayer() then specWarnFelEjection:Show() voiceFelEjection:Play("runout") voiceFelEjection:Schedule(1, "keepmove") end elseif spellId == 207143 then warnVoidEjection:CombinedShow(0.5, args.destName) if args:IsPlayer() then specWarnVoidEjection:Show() voiceVoidEjection:Play("runout") end elseif spellId == 206398 and not self:IsTank() and self:AntiSpam(2, 1) then specWarnFelFlame:Show() end end function mod:SPELL_AURA_REMOVED(args) local spellId = args.spellId if spellId == 205429 or spellId == 216344 or spellId == 216345 or spellId == 205445 then--Star Signs self.vb.StarSigns = self.vb.StarSigns - 1 if args:IsPlayer() then countdownConjunction:Cancel() end if self.vb.StarSigns == 0 then updateRangeFrame(self) if self.Options.HudMapOnConjunction then --None left, clear all HUD circles DBMHudMap:FreeEncounterMarkers() end else if self.Options.HudMapOnConjunction and self.Options.ShowNeutralColor then --Change circle color to a 5th, white color for unaffected players DBMHudMap:FreeEncounterMarkerByTarget(spellId, args.destName) DBMHudMap:RegisterRangeMarkerOnPartyMember(spellId, "highlight", args.destName, 4, 17, 1, 1, 1, 0.5, nil, true):Appear():SetLabel(args.destName) end end elseif spellId == 205984 or spellId == 214335 or spellId == 214167 then if args:IsPlayer() then updateRangeFrame(self) yellGravitationalPull:Cancel() countdownGravPull:Cancel() end elseif spellId == 206585 then tDeleteItem(abZeroTargets, args.destName) if args:IsPlayer() then updateRangeFrame(self) end elseif spellId == 206464 then if args:IsPlayer() then updateRangeFrame(self) end elseif spellId == 206936 then if args:IsPlayer() then yellIcyEjection:Cancel() updateRangeFrame(self) end elseif spellId == 207143 then if args:IsPlayer() then updateRangeFrame(self) end end end function mod:UNIT_DIED(args) local cid = self:GetCIDFromGUID(args.destGUID) if cid == 104880 then--Thing That Should Not Be timerWitnessVoidCD:Cancel(args.destGUID) end end --Phases can also be done with Nether Traversal (221875) with same timing. --However, this is more robust since unique spellids for each phase is better than same used for all 3 function mod:UNIT_SPELLCAST_SUCCEEDED(uId, _, _, spellGUID) local spellId = tonumber(select(5, strsplit("-", spellGUID)), 10) if spellId == 222130 then--Phase 2 Conversation self.vb.phase = 2 self.vb.icyEjectionCount = 0 timerCoronalEjectionCD:Stop() timerConjunctionCD:Stop() timerIcyEjectionCD:Start(24.5, 1) timerGravPullCD:Start(29) if not self:IsEasy() then timerFrigidNovaCD:Start(49) end if self:IsMythic() then timerConjunctionCD:Start(48) end elseif spellId == 222133 then--Phase 3 Conversation self.vb.phase = 3 self.vb.felEjectionCount = 0 self.vb.felNovaCount = 0 timerIcyEjectionCD:Stop() timerFrigidNovaCD:Stop() timerGravPullCD:Stop() timerConjunctionCD:Stop() timerFelEjectionCD:Start(19, 1) timerGravPullCD:Start(28) if not self:IsEasy() then timerFelNovaCD:Start(61, 1) end if self:IsMythic() then timerConjunctionCD:Start(48) end elseif spellId == 222134 then--Phase 4 Conversation self.vb.phase = 4 self.vb.voidEjectionCount = 0 timerFelEjectionCD:Stop() timerFelNovaCD:Stop() timerGravPullCD:Stop() timerConjunctionCD:Stop() timerGravPullCD:Start(20.5) timerThingCD:Start(31.5) if not self:IsEasy() then--Was never used on normal, probably not LFR either then timerVoidEjectionCD:Start(24, 1) timerVoidNovaCD:Start(40) end if self:IsMythic() then timerWorldDevouringForceCD:Start(22) timerConjunctionCD:Start(48) end end end function mod:SPELL_PERIODIC_DAMAGE(_, _, _, _, destGUID, _, _, _, spellId) if spellId == 206398 and destGUID == UnitGUID("player") and self:AntiSpam(2, 1) then specWarnFelFlame:Show() voiceFelFlame:Play("runaway") end end mod.SPELL_PERIODIC_MISSED = mod.SPELL_PERIODIC_DAMAGE
set_project("dexbox") set_xmakever("2.3.3") add_rules("mode.debug", "mode.release", "mode.releasedbg") add_requires("tbox 1.6.5", {debug = is_mode("debug")}) if is_plat("windows") then if is_mode("release") then add_cxflags("-MT") elseif is_mode("debug") then add_cxflags("-MTd") end add_ldflags("-nodefaultlib:msvcrt.lib") end option("dump") set_default(true) set_showmenu(true) add_defines("DX_DUMP_ENABLE") set_description("Enable or disable dump interfaces.") option_end() target("dexbox") set_kind("static") add_files("src/dexbox/**.c") add_defines("__tb_prefix__=\"dexbox\"") add_includedirs("src", {interface = true}) add_options("dump") add_packages("tbox") target("dexdump") if not has_config("dump") then set_default(false) end set_kind("binary") add_deps("dexbox") add_files("src/demo/dexdump.c") set_rundir("$(projectdir)") add_packages("tbox")
MgrAds = {} function MgrAds.Init () end function MgrAds.ShowScreenAds () end function MgrAds.ShowRewardVideo () end function MgrAds.ShowBanner () end function MgrAds.ShowBannerABS () end function MgrAds.HideBanner () end function MgrAds.ShowNativeBanner () end function MgrAds.ShowNativeBannerABS () end function MgrAds.HideNativeBanner () end function MgrAds:Equals (obj) end function MgrAds:GetHashCode () end function MgrAds:GetType () end function MgrAds:ToString () end
local c; local player = Var "Player"; local ShowComboAt = THEME:GetMetric("Combo", "ShowComboAt"); local Pulse = THEME:GetMetric("Combo", "PulseCommand"); local PulseLabel = THEME:GetMetric("Combo", "PulseLabelCommand"); local NumberMinZoom = THEME:GetMetric("Combo", "NumberMinZoom"); local NumberMaxZoom = THEME:GetMetric("Combo", "NumberMaxZoom"); local NumberMaxZoomAt = THEME:GetMetric("Combo", "NumberMaxZoomAt"); local LabelMinZoom = THEME:GetMetric("Combo", "LabelMinZoom"); local LabelMaxZoom = THEME:GetMetric("Combo", "LabelMaxZoom"); local t = Def.ActorFrame { LoadActor(THEME:GetPathG("Combo","100Milestone")) .. { Name="OneHundredMilestone"; FiftyMilestoneCommand=cmd(playcommand,"Milestone"); }; LoadActor(THEME:GetPathG("Combo","1000Milestone")) .. { Name="OneThousandMilestone"; ToastyAchievedMessageCommand=cmd(playcommand,"Milestone"); }; InitCommand=cmd(vertalign,bottom); LoadFont( "Combo", "numbers" ) .. { Name="Number"; OnCommand = THEME:GetMetric("Combo", "NumberOnCommand"); }; LoadFont("_roboto condensed Bold italic 24px") .. { Name="Label"; OnCommand = THEME:GetMetric("Combo", "LabelOnCommand"); }; InitCommand = function(self) -- We'll have to deal with this later --self:draworder(notefield_draw_order.over_field) c = self:GetChildren(); c.Number:visible(false); c.Label:visible(false); end; -- Milestones: -- 25,50,100,250,600 Multiples; --[[ if (iCombo % 100) == 0 then c.OneHundredMilestone:playcommand("Milestone"); elseif (iCombo % 250) == 0 then -- It should really be 1000 but thats slightly unattainable, since -- combo doesnt save over now. c.OneThousandMilestone:playcommand("Milestone"); else return end; --]] TwentyFiveMilestoneCommand=function(self,parent) (cmd(skewy,-0.125;decelerate,0.325;skewy,0))(self); end; ToastyAchievedMessageCommand=function(self,params) if params.PlayerNumber == player then (cmd(thump,2;effectclock,'beat'))(self); end; end; ComboCommand=function(self, param) local iCombo = param.Misses or param.Combo; if not iCombo or iCombo < ShowComboAt then c.Number:visible(false); c.Label:visible(false); return; end local labeltext = ""; if param.Combo then labeltext = "COMBO"; -- c.Number:playcommand("Reset"); else labeltext = "MISSES"; -- c.Number:playcommand("Miss"); end c.Label:settext( labeltext ); c.Label:visible(false); param.Zoom = scale( iCombo, 0, NumberMaxZoomAt, NumberMinZoom, NumberMaxZoom ); param.Zoom = clamp( param.Zoom, NumberMinZoom, NumberMaxZoom ); param.LabelZoom = scale( iCombo, 0, NumberMaxZoomAt, LabelMinZoom, LabelMaxZoom ); param.LabelZoom = clamp( param.LabelZoom, LabelMinZoom, LabelMaxZoom ); c.Number:visible(true); c.Label:visible(true); c.Number:settext( string.format("%i", iCombo) ); -- FullCombo Rewards if param.FullComboW1 then c.Number:diffuse(color("#00aeef")); c.Number:glowshift(); (cmd(diffuse,color("#C7E5F0");diffusebottomedge,color("#00aeef");strokecolor,color("#0E3D53");))(c.Label); elseif param.FullComboW2 then c.Number:diffuse(color("#F3D58D")); c.Number:glowshift(); (cmd(diffuse,color("#FAFAFA");diffusebottomedge,color("#F3D58D");strokecolor,color("#53450E");))(c.Label); elseif param.FullComboW3 then c.Number:diffuse(color("#94D658")); c.Number:stopeffect(); (cmd(diffuse,color("#CFE5BC");diffusebottomedge,color("#94D658");strokecolor,color("#12530E");))(c.Label); elseif param.Combo then c.Number:diffuse(color("#D8DFF7")); -- c.Number:diffuse(PlayerColor(player)); c.Number:stopeffect(); (cmd(diffuse,color("#D8DFF7");diffusebottomedge,color("#C4CDED");strokecolor,color("#101E4B");))(c.Label); else c.Number:diffuse(color("#D8DFF7")); c.Number:stopeffect(); (cmd(diffuse,color("#D8DFF7");diffusebottomedge,color("#C4CDED");strokecolor,color("#101E4B");))(c.Label); end -- Pulse Pulse( c.Number, param ); PulseLabel( c.Label, param ); -- Milestone Logic end; --[[ ScoreChangedMessageCommand=function(self,param) local iToastyCombo = param.ToastyCombo; if iToastyCombo and (iToastyCombo > 0) then -- (cmd(thump;effectmagnitude,1,1.2,1;effectclock,'beat'))(c.Number) -- (cmd(thump;effectmagnitude,1,1.2,1;effectclock,'beat'))(c.Number) else -- c.Number:stopeffect(); end; end; --]] }; return t;
-- This file was generated automatically with a tool. productions = {} table.insert(productions, {factory="${good} Mine ${size}", factoryStyle="Mine", ingredients={}, results={{name="Silicon", amount=4}}, garbages={}}) table.insert(productions, {factory="Gas Collector ${size}", factoryStyle="Collector", ingredients={}, results={{name="Helium", amount=3}, {name="Hydrogen", amount=3}, {name="Neon", amount=3}, {name="Chlorine", amount=3}}, garbages={}}) table.insert(productions, {factory="Gas Collector ${size}", factoryStyle="Collector", ingredients={}, results={{name="Helium", amount=3}, {name="Nitrogen", amount=3}, {name="Neon", amount=3}, {name="Chlorine", amount=3}, {name="Fluorine", amount=3}}, garbages={}}) table.insert(productions, {factory="Gas Collector ${size}", factoryStyle="Collector", ingredients={}, results={{name="Oxygen", amount=8}, {name="Hydrogen", amount=8}, {name="Nitrogen", amount=8}}, garbages={}}) table.insert(productions, {factory="Gas Collector ${size}", factoryStyle="Collector", ingredients={}, results={{name="Helium", amount=3}, {name="Hydrogen", amount=3}, {name="Chlorine", amount=3}, {name="Fluorine", amount=3}}, garbages={}}) table.insert(productions, {factory="${good} Mine ${size}", factoryStyle="Mine", ingredients={}, results={{name="Ore", amount=30}}, garbages={}}) table.insert(productions, {factory="${good} Mine ${size}", factoryStyle="Mine", ingredients={}, results={{name="Coal", amount=4}}, garbages={}}) table.insert(productions, {factory="Oil Rig ${size}", factoryStyle="Mine", ingredients={}, results={{name="Raw Oil", amount=5}}, garbages={}}) table.insert(productions, {factory="${good} Farm ${size}", factoryStyle="Factory", ingredients={}, results={{name="Crystal", amount=10}}, garbages={}}) table.insert(productions, {factory="${good} Extractor ${size}", factoryStyle="Factory", ingredients={}, results={{name="Mineral", amount=4}}, garbages={}}) table.insert(productions, {factory="${good} Trader ${size}", factoryStyle="Factory", ingredients={}, results={{name="Scrap Metal", amount=60}}, garbages={}}) table.insert(productions, {factory="${good} Refinery ${size}", factoryStyle="Factory", ingredients={{name="Energy Cell", amount=5, optional=0}, {name="Raw Oil", amount=10, optional=0}}, results={{name="Oil", amount=5}}, garbages={}}) table.insert(productions, {factory="Noble Metal Mine ${size}", factoryStyle="Mine", ingredients={}, results={{name="Gold", amount=1}, {name="Platinum", amount=1}}, garbages={}}) table.insert(productions, {factory="Noble Metal Mine ${size}", factoryStyle="Mine", ingredients={}, results={{name="Silver", amount=1}, {name="Platinum", amount=1}}, garbages={}}) table.insert(productions, {factory="Noble Metal Mine ${size}", factoryStyle="Mine", ingredients={}, results={{name="Silver", amount=1}, {name="Gold", amount=1}}, garbages={}}) table.insert(productions, {factory="${good} Mine ${size}", factoryStyle="Mine", ingredients={}, results={{name="Zinc", amount=10}}, garbages={}}) table.insert(productions, {factory="${good} Mine ${size}", factoryStyle="Mine", ingredients={}, results={{name="Copper", amount=5}}, garbages={}}) table.insert(productions, {factory="${good} Mine ${size}", factoryStyle="Mine", ingredients={}, results={{name="Lead", amount=10}}, garbages={}}) table.insert(productions, {factory="${good} Mine ${size}", factoryStyle="Mine", ingredients={}, results={{name="Aluminum", amount=10}}, garbages={}}) table.insert(productions, {factory="Ice Mine ${size}", factoryStyle="Mine", ingredients={}, results={{name="Water", amount=75}}, garbages={}}) table.insert(productions, {factory="Solar Power Plant ${size}", factoryStyle="SolarPowerPlant", ingredients={}, results={{name="Energy Cell", amount=25}}, garbages={}}) table.insert(productions, {factory="${good} Extractor ${size}", factoryStyle="Factory", ingredients={{name="Corn", amount=52, optional=0}}, results={{name="Carbon", amount=5}}, garbages={}}) table.insert(productions, {factory="${good} Extractor ${size}", factoryStyle="Factory", ingredients={{name="Rice", amount=95, optional=0}}, results={{name="Carbon", amount=5}}, garbages={}}) table.insert(productions, {factory="${good} Extractor ${size}", factoryStyle="Factory", ingredients={{name="Wheat", amount=64, optional=0}}, results={{name="Carbon", amount=5}}, garbages={}}) table.insert(productions, {factory="${good} Extractor ${size}", factoryStyle="Factory", ingredients={{name="Potato", amount=63, optional=0}}, results={{name="Carbon", amount=5}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Steel", amount=1, optional=0}, {name="Copper", amount=1, optional=0}, {name="Conductor", amount=2, optional=0}, {name="Transformator", amount=2, optional=0}}, results={{name="Electro Magnet", amount=4}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Energy Tube", amount=1, optional=0}, {name="Conductor", amount=2, optional=0}, {name="Transformator", amount=2, optional=0}}, results={{name="Energy Inverter", amount=4}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Steel", amount=4, optional=0}, {name="Aluminum", amount=2, optional=0}, {name="Conductor", amount=2, optional=0}, {name="Plastic", amount=1, optional=0}}, results={{name="Servo", amount=2}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Steel", amount=4, optional=0}, {name="Aluminum", amount=2, optional=0}}, results={{name="Steel Tube", amount=3}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Energy Cell", amount=1, optional=1}, {name="Oil", amount=3, optional=0}}, results={{name="Rubber", amount=3}}, garbages={{name="Toxic Waste", amount=1}, {name="Acid", amount=1}}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Zinc", amount=2, optional=0}, {name="Steel", amount=2, optional=0}, {name="Platinum", amount=1, optional=0}, {name="Gold", amount=1, optional=0}, {name="Energy Cell", amount=1, optional=1}}, results={{name="Conductor", amount=20}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Steel", amount=2, optional=0}, {name="Plastic", amount=1, optional=0}, {name="Silicon", amount=1, optional=0}, {name="Silver", amount=1, optional=0}, {name="Energy Cell", amount=1, optional=1}}, results={{name="Transformator", amount=10}}, garbages={}}) table.insert(productions, {factory="${good} Manufacturer ${size}", factoryStyle="Factory", ingredients={{name="Oil", amount=3, optional=0}, {name="Energy Cell", amount=3, optional=1}}, results={{name="Plastic", amount=15}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Zinc", amount=1, optional=0}, {name="Silicon", amount=2, optional=0}, {name="Platinum", amount=2, optional=0}, {name="Gold", amount=1, optional=0}, {name="Energy Cell", amount=1, optional=1}}, results={{name="Solar Cell", amount=10}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Steel", amount=1, optional=0}, {name="Platinum", amount=1, optional=0}, {name="Silver", amount=1, optional=0}, {name="Aluminum", amount=1, optional=0}, {name="Energy Cell", amount=1, optional=1}}, results={{name="Tools", amount=10}}, garbages={}}) table.insert(productions, {factory="${good} Manufacturer ${size}", factoryStyle="Factory", ingredients={{name="Steel", amount=1, optional=0}, {name="Silicon", amount=1, optional=0}, {name="Gold", amount=1, optional=0}, {name="Energy Cell", amount=1, optional=1}}, results={{name="Semi Conductor", amount=15}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Wire", amount=4, optional=0}, {name="Semi Conductor", amount=12, optional=0}, {name="Energy Cell", amount=4, optional=1}}, results={{name="Microchip", amount=3}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Plastic", amount=1, optional=0}, {name="Steel", amount=1, optional=0}, {name="Platinum", amount=1, optional=0}, {name="Neon", amount=1, optional=0}, {name="Steel Tube", amount=1, optional=0}, {name="Energy Cell", amount=1, optional=1}}, results={{name="Energy Tube", amount=1}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Ore", amount=8, optional=0}, {name="Coal", amount=3, optional=0}, {name="Carbon", amount=1, optional=0}}, results={{name="Steel", amount=8}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Scrap Metal", amount=12, optional=0}, {name="Coal", amount=4, optional=0}}, results={{name="Steel", amount=6}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Energy Cell", amount=10, optional=0}, {name="Steel", amount=1, optional=0}, {name="Bio Gas", amount=1, optional=0}, {name="Neon", amount=1, optional=0}, {name="Helium", amount=1, optional=0}}, results={{name="Plasma Cell", amount=10}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Energy Cell", amount=2, optional=0}, {name="Oil", amount=1, optional=0}, {name="Nitrogen", amount=1, optional=0}, {name="Fluorine", amount=1, optional=0}}, results={{name="Fuel", amount=1}}, garbages={{name="Toxic Waste", amount=1}}}) table.insert(productions, {factory="${good} Manufacturer ${size}", factoryStyle="Factory", ingredients={{name="Ore", amount=4, optional=0}, {name="Crystal", amount=4, optional=0}}, results={{name="Glass", amount=8}}, garbages={}}) table.insert(productions, {factory="Chemical Factory ${size}", factoryStyle="Factory", ingredients={{name="Water", amount=5, optional=0}, {name="Nitrogen", amount=5, optional=0}, {name="Hydrogen", amount=5, optional=0}, {name="Oxygen", amount=5, optional=0}, {name="Bio Gas", amount=1, optional=0}, {name="Carbon", amount=1, optional=0}, {name="Energy Cell", amount=10, optional=0}}, results={{name="Chemicals", amount=2}, {name="Adhesive", amount=1}, {name="Coolant", amount=2}, {name="Solvent", amount=2}, {name="Acid", amount=2}}, garbages={}}) table.insert(productions, {factory="${good} Manufacturer ${size}", factoryStyle="Factory", ingredients={{name="Plastic", amount=1, optional=0}, {name="Steel", amount=1, optional=0}, {name="Gold", amount=1, optional=0}}, results={{name="Wire", amount=15}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Steel", amount=3, optional=0}, {name="Silver", amount=1, optional=0}}, results={{name="Metal Plate", amount=2}}, garbages={}}) table.insert(productions, {factory="${good} Manufacturer ${size}", factoryStyle="Factory", ingredients={{name="Oil", amount=1, optional=0}, {name="Water", amount=1, optional=0}, {name="Chemicals", amount=1, optional=0}, {name="Solvent", amount=1, optional=0}, {name="Acid", amount=1, optional=0}}, results={{name="Paint", amount=5}}, garbages={{name="Toxic Waste", amount=1}}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Chemicals", amount=2, optional=0}, {name="Mineral", amount=3, optional=0}, {name="Energy Cell", amount=1, optional=1}, {name="Solvent", amount=1, optional=1}}, results={{name="Fertilizer", amount=11}}, garbages={{name="Toxic Waste", amount=1}}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Plankton", amount=1, optional=0}, {name="Mineral", amount=4, optional=0}, {name="Energy Cell", amount=1, optional=1}}, results={{name="Fertilizer", amount=9}}, garbages={{name="Toxic Waste", amount=1}}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Fluorine", amount=4, optional=0}, {name="Steel", amount=1, optional=0}, {name="Energy Cell", amount=2, optional=0}, {name="Plastic", amount=2, optional=0}, {name="Chemicals", amount=2, optional=0}, {name="Acid", amount=2, optional=0}, {name="Adhesive", amount=2, optional=0}}, results={{name="Explosive Charge", amount=4}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Hydrogen", amount=1, optional=0}, {name="Gold", amount=1, optional=0}, {name="Plasma Cell", amount=2, optional=0}, {name="Transformator", amount=2, optional=0}, {name="Energy Tube", amount=2, optional=0}}, results={{name="Fusion Core", amount=2}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Steel", amount=1, optional=0}, {name="Aluminum", amount=1, optional=0}, {name="Carbon", amount=2, optional=0}, {name="Adhesive", amount=2, optional=0}, {name="Steel Tube", amount=2, optional=0}}, results={{name="High Pressure Tube", amount=3}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Microchip", amount=1, optional=0}, {name="Copper", amount=1, optional=0}, {name="Processor", amount=2, optional=0}}, results={{name="Targeting Card", amount=2}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Energy Container", amount=10, optional=0}, {name="Electro Magnet", amount=6, optional=0}, {name="Energy Tube", amount=2, optional=0}, {name="Transformator", amount=2, optional=0}}, results={{name="Electromagnetic Charge", amount=2}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Energy Cell", amount=10, optional=0}, {name="Electro Magnet", amount=6, optional=0}, {name="Energy Tube", amount=2, optional=0}, {name="High Pressure Tube", amount=1, optional=0}, {name="Transformator", amount=1, optional=0}}, results={{name="Gauss Rail", amount=2}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Energy Cell", amount=15, optional=0}, {name="Microchip", amount=10, optional=0}, {name="Conductor", amount=10, optional=0}}, results={{name="Energy Generator", amount=1}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Glass", amount=1, optional=0}, {name="Microchip", amount=5, optional=0}, {name="Semi Conductor", amount=3, optional=0}, {name="Plasma Cell", amount=1, optional=0}}, results={{name="Display", amount=1}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Microchip", amount=7, optional=0}, {name="Semi Conductor", amount=5, optional=0}, {name="Copper", amount=5, optional=0}, {name="Platinum", amount=5, optional=0}, {name="Gold", amount=5, optional=0}}, results={{name="Processor", amount=3}}, garbages={}}) table.insert(productions, {factory="Computer Component Factory ${size}", factoryStyle="Factory", ingredients={{name="Wire", amount=15, optional=0}, {name="Microchip", amount=7, optional=0}, {name="Semi Conductor", amount=5, optional=0}, {name="Copper", amount=5, optional=0}, {name="Platinum", amount=5, optional=0}, {name="Gold", amount=5, optional=0}}, results={{name="Display", amount=1}, {name="Targeting Card", amount=1}, {name="Processor", amount=1}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Crystal", amount=15, optional=0}, {name="Semi Conductor", amount=15, optional=0}}, results={{name="Nanobot", amount=5}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Plasma Cell", amount=1, optional=0}, {name="Transformator", amount=1, optional=0}, {name="Energy Tube", amount=1, optional=0}, {name="Wire", amount=15, optional=0}}, results={{name="Laser Compressor", amount=1}}, garbages={{name="Scrap Metal", amount=1}}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Glass", amount=1, optional=0}, {name="Conductor", amount=1, optional=0}, {name="Aluminum", amount=15, optional=0}, {name="Energy Cell", amount=1, optional=1}}, results={{name="Laser Head", amount=1}}, garbages={{name="Toxic Waste", amount=1}}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Fuel", amount=1, optional=0}, {name="Plasma Cell", amount=2, optional=0}, {name="Metal Plate", amount=5, optional=0}}, results={{name="Drone", amount=1}}, garbages={{name="Scrap Metal", amount=1}}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Conductor", amount=5, optional=0}, {name="Chemicals", amount=2, optional=0}, {name="Metal Plate", amount=3, optional=0}}, results={{name="Warhead", amount=1}}, garbages={{name="Scrap Metal", amount=1}}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Transformator", amount=2, optional=0}, {name="Energy Cell", amount=2, optional=0}, {name="Plasma Cell", amount=2, optional=0}}, results={{name="Power Unit", amount=1}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Power Unit", amount=2, optional=0}, {name="Processor", amount=2, optional=0}, {name="Energy Cell", amount=1, optional=1}}, results={{name="Antigrav Unit", amount=1}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Energy Cell", amount=9, optional=0}, {name="Transformator", amount=9, optional=0}}, results={{name="Energy Container", amount=3}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Solar Cell", amount=10, optional=0}, {name="Transformator", amount=1, optional=0}}, results={{name="Solar Panel", amount=1}}, garbages={}}) table.insert(productions, {factory="Accelerator Factory ${size}", factoryStyle="Factory", ingredients={{name="Turbine", amount=3, optional=0}, {name="Plasma Cell", amount=3, optional=0}, {name="Fusion Generator", amount=3, optional=0}, {name="Energy Tube", amount=6, optional=0}, {name="High Pressure Tube", amount=6, optional=0}, {name="Conductor", amount=15, optional=0}, {name="Gauss Rail", amount=9, optional=0}}, results={{name="Neutron Accelerator", amount=1}, {name="Proton Accelerator", amount=1}, {name="Electron Accelerator", amount=1}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Targeting Card", amount=1, optional=0}, {name="Processor", amount=1, optional=0}, {name="Energy Cell", amount=3, optional=0}, {name="Conductor", amount=5, optional=0}, {name="Wire", amount=5, optional=0}}, results={{name="Targeting System", amount=1}}, garbages={}}) table.insert(productions, {factory="Ammunition Factory ${size}", factoryStyle="Factory", ingredients={{name="Lead", amount=10, optional=0}, {name="Aluminum", amount=10, optional=0}, {name="Steel", amount=10, optional=0}, {name="Adhesive", amount=5, optional=0}, {name="Energy Cell", amount=5, optional=0}}, results={{name="Ammunition S", amount=15}, {name="Ammunition M", amount=10}, {name="Ammunition L", amount=5}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Glass", amount=4, optional=0}, {name="Carbon", amount=2, optional=0}, {name="Plastic", amount=2, optional=0}, {name="Diamond", amount=2, optional=0}}, results={{name="High Capacity Lens", amount=1}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Servo", amount=4, optional=0}, {name="Energy Tube", amount=2, optional=0}, {name="Transformator", amount=2, optional=0}, {name="Energy Cell", amount=4, optional=0}}, results={{name="Laser Modulator", amount=1}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Electro Magnet", amount=4, optional=0}, {name="Steel", amount=10, optional=0}, {name="Plastic", amount=10, optional=0}, {name="Nanobot", amount=10, optional=0}, {name="Energy Generator", amount=1, optional=0}}, results={{name="Force Generator", amount=1}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Electro Magnet", amount=4, optional=0}, {name="Servo", amount=5, optional=0}, {name="Wire", amount=10, optional=0}, {name="Antigrav Unit", amount=1, optional=0}, {name="Energy Generator", amount=1, optional=0}}, results={{name="Antigrav Generator", amount=1}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Fusion Core", amount=4, optional=0}, {name="Steel", amount=10, optional=0}, {name="Plasma Cell", amount=15, optional=0}, {name="Power Unit", amount=2, optional=0}}, results={{name="Fusion Generator", amount=1}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Servo", amount=4, optional=0}, {name="Steel", amount=10, optional=0}, {name="Coolant", amount=3, optional=0}, {name="Power Unit", amount=2, optional=0}}, results={{name="Turbine", amount=1}}, garbages={}}) table.insert(productions, {factory="Tesla Coil Factory ${size}", factoryStyle="Factory", ingredients={{name="Steel", amount=10, optional=0}, {name="Copper", amount=3, optional=0}, {name="Fusion Core", amount=2, optional=0}, {name="Plastic", amount=5, optional=0}}, results={{name="Military Tesla Coil", amount=1}, {name="Industrial Tesla Coil", amount=1}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Water", amount=5, optional=0}, {name="Chemicals", amount=15, optional=0}, {name="Fabric", amount=5, optional=0}, {name="Zinc", amount=5, optional=0}, {name="Chlorine", amount=5, optional=0}}, results={{name="Medical Supplies", amount=4}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Solar Panel", amount=2, optional=0}, {name="Processor", amount=2, optional=0}, {name="Display", amount=2, optional=0}, {name="Energy Container", amount=1, optional=0}, {name="Steel Tube", amount=1, optional=0}}, results={{name="Satellite", amount=1}}, garbages={{name="Scrap Metal", amount=1}}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Laser Head", amount=1, optional=0}, {name="Processor", amount=1, optional=0}, {name="Steel", amount=2, optional=0}, {name="Diamond", amount=2, optional=0}}, results={{name="Drill", amount=1}}, garbages={{name="Scrap Metal", amount=1}}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Steel", amount=1, optional=0}, {name="Chemicals", amount=15, optional=0}, {name="Paint", amount=15, optional=0}}, results={{name="Ammunition", amount=5}}, garbages={{name="Toxic Waste", amount=1}}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Metal Plate", amount=1, optional=0}, {name="Power Unit", amount=1, optional=0}, {name="Antigrav Unit", amount=1, optional=0}, {name="Plasma Cell", amount=2, optional=0}, {name="Conductor", amount=1, optional=0}, {name="Transformator", amount=1, optional=0}}, results={{name="Teleporter", amount=1}}, garbages={{name="Scrap Metal", amount=1}}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Processor", amount=2, optional=0}, {name="Power Unit", amount=1, optional=0}, {name="Microchip", amount=1, optional=0}, {name="Display", amount=1, optional=0}, {name="Wire", amount=15, optional=0}}, results={{name="Computation Mainframe", amount=1}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Rubber", amount=1, optional=0}, {name="Power Unit", amount=1, optional=0}, {name="Energy Generator", amount=1, optional=0}, {name="Metal Plate", amount=5, optional=0}, {name="Antigrav Unit", amount=1, optional=0}, {name="Display", amount=1, optional=0}}, results={{name="Vehicle", amount=1}}, garbages={{name="Scrap Metal", amount=1}}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Steel", amount=1, optional=0}, {name="Ammunition", amount=1, optional=0}, {name="Aluminum", amount=1, optional=0}, {name="Plastic", amount=1, optional=0}}, results={{name="Gun", amount=5}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Warhead", amount=1, optional=0}, {name="Fuel", amount=1, optional=0}, {name="Steel", amount=1, optional=0}, {name="Microchip", amount=1, optional=0}}, results={{name="Rocket", amount=1}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Power Unit", amount=1, optional=0}, {name="Processor", amount=1, optional=0}, {name="Display", amount=1, optional=0}, {name="Nanobot", amount=5, optional=0}, {name="Drill", amount=2, optional=0}, {name="Coolant", amount=1, optional=0}, {name="Teleporter", amount=1, optional=0}}, results={{name="Mining Robot", amount=1}}, garbages={{name="Scrap Metal", amount=1}}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Power Unit", amount=1, optional=0}, {name="Processor", amount=1, optional=0}, {name="Display", amount=1, optional=0}, {name="Nanobot", amount=5, optional=0}, {name="Gun", amount=2, optional=0}, {name="Teleporter", amount=1, optional=0}, {name="Coolant", amount=1, optional=0}}, results={{name="War Robot", amount=1}}, garbages={{name="Scrap Metal", amount=1}}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Metal Plate", amount=2, optional=0}, {name="Coolant", amount=1, optional=0}, {name="Teleporter", amount=1, optional=0}, {name="Antigrav Unit", amount=1, optional=0}, {name="Carbon", amount=1, optional=0}, {name="Nanobot", amount=1, optional=0}}, results={{name="Body Armor", amount=1}}, garbages={}}) table.insert(productions, {factory="${good} Collector ${size}", factoryStyle="Collector", ingredients={}, results={{name="Water", amount=75}}, garbages={}}) table.insert(productions, {factory="${good} Collector ${size}", factoryStyle="Collector", ingredients={}, results={{name="Plankton", amount=35}}, garbages={}}) table.insert(productions, {factory="Fish Farm ${size}", factoryStyle="Factory", ingredients={{name="Water", amount=23, optional=0}, {name="Wheat", amount=5, optional=0}, {name="Oxygen", amount=5, optional=0}}, results={{name="Fish", amount=8}, {name="Bio Gas", amount=1}}, garbages={{name="Plankton", amount=1}}}) table.insert(productions, {factory="${good} Farm ${size}", factoryStyle="Farm", ingredients={{name="Energy Cell", amount=6, optional=1}, {name="Water", amount=30, optional=0}}, results={{name="Plant", amount=60}}, garbages={{name="Oxygen", amount=6}}}) table.insert(productions, {factory="${good} Farm ${size}", factoryStyle="Farm", ingredients={{name="Energy Cell", amount=4, optional=1}, {name="Water", amount=40, optional=0}}, results={{name="Rice", amount=76}}, garbages={{name="Oxygen", amount=4}}}) table.insert(productions, {factory="${good} Farm ${size}", factoryStyle="Farm", ingredients={{name="Energy Cell", amount=6, optional=1}, {name="Water", amount=30, optional=0}}, results={{name="Potato", amount=35}}, garbages={{name="Oxygen", amount=8}}}) table.insert(productions, {factory="${good} Farm ${size}", factoryStyle="Farm", ingredients={{name="Energy Cell", amount=4, optional=1}, {name="Water", amount=40, optional=0}}, results={{name="Wheat", amount=48}}, garbages={{name="Oxygen", amount=4}}}) table.insert(productions, {factory="${good} Farm ${size}", factoryStyle="Farm", ingredients={{name="Energy Cell", amount=4, optional=1}, {name="Water", amount=60, optional=0}}, results={{name="Corn", amount=60}}, garbages={{name="Oxygen", amount=4}}}) table.insert(productions, {factory="${good} Farm ${size}", factoryStyle="Farm", ingredients={{name="Energy Cell", amount=3, optional=1}, {name="Water", amount=75, optional=0}}, results={{name="Wood", amount=6}}, garbages={{name="Oxygen", amount=3}}}) table.insert(productions, {factory="${good} Farm ${size}", factoryStyle="Farm", ingredients={{name="Energy Cell", amount=4, optional=1}, {name="Water", amount=80, optional=0}}, results={{name="Fruit", amount=40}}, garbages={{name="Oxygen", amount=4}}}) table.insert(productions, {factory="${good} Farm ${size}", factoryStyle="Farm", ingredients={{name="Energy Cell", amount=1, optional=1}, {name="Water", amount=35, optional=0}, {name="Fertilizer", amount=2, optional=0}}, results={{name="Coffee", amount=10}}, garbages={{name="Oxygen", amount=1}}}) table.insert(productions, {factory="${good} Farm ${size}", factoryStyle="Farm", ingredients={{name="Energy Cell", amount=1, optional=1}, {name="Water", amount=30, optional=0}, {name="Fertilizer", amount=2, optional=0}}, results={{name="Cocoa", amount=20}}, garbages={{name="Oxygen", amount=1}}}) table.insert(productions, {factory="${good} Farm ${size}", factoryStyle="Farm", ingredients={{name="Energy Cell", amount=4, optional=1}, {name="Water", amount=100, optional=0}}, results={{name="Tea", amount=75}}, garbages={{name="Oxygen", amount=4}}}) table.insert(productions, {factory="${good} Farm ${size}", factoryStyle="Farm", ingredients={{name="Energy Cell", amount=4, optional=1}, {name="Water", amount=40, optional=0}}, results={{name="Vegetable", amount=35}}, garbages={{name="Oxygen", amount=4}}}) table.insert(productions, {factory="${good} Farm ${size}", factoryStyle="Farm", ingredients={{name="Energy Cell", amount=1, optional=1}, {name="Water", amount=35, optional=0}, {name="Fertilizer", amount=5, optional=0}}, results={{name="Spices", amount=12}}, garbages={{name="Oxygen", amount=1}}}) table.insert(productions, {factory="Sheep Ranch ${size}", factoryStyle="Ranch", ingredients={{name="Energy Cell", amount=2, optional=1}, {name="Oxygen", amount=10, optional=0}, {name="Wheat", amount=18, optional=0}, {name="Water", amount=12, optional=0}}, results={{name="Sheep", amount=15}, {name="Bio Gas", amount=1}}, garbages={{name="Fabric", amount=2}}}) table.insert(productions, {factory="Sheep Ranch ${size}", factoryStyle="Ranch", ingredients={{name="Energy Cell", amount=1, optional=1}, {name="Corn", amount=10, optional=0}, {name="Oxygen", amount=10, optional=0}, {name="Water", amount=20, optional=0}}, results={{name="Sheep", amount=15}, {name="Bio Gas", amount=1}}, garbages={{name="Fabric", amount=2}}}) table.insert(productions, {factory="${good} Farm ${size}", factoryStyle="Farm", ingredients={{name="Bio Gas", amount=1, optional=0}, {name="Water", amount=5, optional=0}, {name="Mineral", amount=1, optional=0}}, results={{name="Fungus", amount=25}}, garbages={{name="Toxic Waste", amount=1}}}) table.insert(productions, {factory="Cattle Ranch ${size}", factoryStyle="Ranch", ingredients={{name="Wheat", amount=15, optional=0}, {name="Oxygen", amount=10, optional=0}, {name="Water", amount=15, optional=0}}, results={{name="Cattle", amount=8}}, garbages={{name="Bio Gas", amount=1}}}) table.insert(productions, {factory="Cattle Ranch ${size}", factoryStyle="Ranch", ingredients={{name="Corn", amount=15, optional=0}, {name="Oxygen", amount=10, optional=0}, {name="Water", amount=15, optional=0}}, results={{name="Cattle", amount=8}, {name="Bio Gas", amount=2}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Meat", amount=25, optional=0}, {name="Dairy", amount=80, optional=0}}, results={{name="Protein", amount=100}}, garbages={}}) table.insert(productions, {factory="Meat Factory ${size}", factoryStyle="Factory", ingredients={{name="Cattle", amount=10, optional=0}}, results={{name="Meat", amount=85}, {name="Leather", amount=10}}, garbages={}}) table.insert(productions, {factory="Dairy Farm ${size}", factoryStyle="Farm", ingredients={{name="Cattle", amount=10, optional=0}}, results={{name="Dairy", amount=180}, {name="Leather", amount=10}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Sheep", amount=15, optional=0}}, results={{name="Fabric", amount=30}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Fabric", amount=80, optional=0}}, results={{name="Clothes", amount=100}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Water", amount=30, optional=0}, {name="Wood", amount=2, optional=0}}, results={{name="Paper", amount=40}}, garbages={}}) table.insert(productions, {factory="Brewery ${size}", factoryStyle="Factory", ingredients={{name="Water", amount=150, optional=0}, {name="Wheat", amount=50, optional=0}, {name="Fungus", amount=10, optional=0}}, results={{name="Beer", amount=30}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Fruit", amount=50, optional=0}, {name="Fungus", amount=10, optional=0}}, results={{name="Wine", amount=25}}, garbages={}}) table.insert(productions, {factory="Distillery ${size}", factoryStyle="Factory", ingredients={{name="Energy Cell", amount=10, optional=0}, {name="Wheat", amount=50, optional=0}, {name="Water", amount=250, optional=0}}, results={{name="Liquor", amount=5}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Wheat", amount=50, optional=0}, {name="Meat", amount=10, optional=0}, {name="Corn", amount=10, optional=0}, {name="Vegetable", amount=10, optional=0}}, results={{name="Food", amount=10}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Energy Cell", amount=1, optional=1}, {name="Wheat", amount=50, optional=0}, {name="Corn", amount=10, optional=0}, {name="Rice", amount=10, optional=0}}, results={{name="Food Bar", amount=10}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Energy Cell", amount=1, optional=1}, {name="Wheat", amount=50, optional=0}, {name="Fruit", amount=10, optional=0}, {name="Spices", amount=6, optional=0}, {name="Wine", amount=7, optional=0}}, results={{name="Luxury Food", amount=1}}, garbages={}}) table.insert(productions, {factory="${good} Factory ${size}", factoryStyle="Factory", ingredients={{name="Paper", amount=20, optional=0}, {name="Energy Cell", amount=1, optional=1}}, results={{name="Book", amount=4}}, garbages={}}) table.insert(productions, {factory="${good} Manufacturer ${size}", factoryStyle="Factory", ingredients={{name="Platinum", amount=2, optional=0}, {name="Gem", amount=5, optional=0}}, results={{name="Jewelry", amount=4}}, garbages={}}) table.insert(productions, {factory="${good} Manufacturer ${size}", factoryStyle="Factory", ingredients={{name="Gold", amount=1, optional=0}, {name="Diamond", amount=4, optional=0}}, results={{name="Jewelry", amount=4}}, garbages={}})
object_intangible_pet_beast_master_bm_blackwing_rancor = object_intangible_pet_beast_master_shared_bm_blackwing_rancor:new { } ObjectTemplates:addTemplate(object_intangible_pet_beast_master_bm_blackwing_rancor, "object/intangible/pet/beast_master/bm_blackwing_rancor.iff")
local awful = require("awful") local config = { terminal = "org.gnome.Terminal.desktop", settings = "gnome-control-center.desktop", apps = { "org.gnome.Calendar.desktop", {"teams.desktop", name = "Microsoft Teams"}, "com.skype.Client.desktop", "us.zoom.Zoom.desktop", "virt-manager.desktop", "win10.desktop", "com.bitwarden.desktop.desktop", "org.chromium.Chromium.desktop", "org.zotero.Zotero.desktop", {"md.obsidian.Obsidian.desktop", icon = "/var/lib/flatpak/exports/share/icons/hicolor/512x512/apps/md.obsidian.Obsidian.png"}, "jetbrains-toolbox.desktop", "jetbrains-pycharm.desktop", }, } function config.lock_screen() awful.spawn("dbus-send --type=method_call --dest=org.gnome.ScreenSaver " .. "/org/gnome/ScreenSaver org.gnome.ScreenSaver.Lock") end function config.suspend() awful.spawn("systemctl suspend") end function config.reboot() awful.spawn("gnome-session-quit --reboot") end function config.shutdown() awful.spawn("gnome-session-quit --power-off") end function config.logout() awful.spawn("gnome-session-quit --logout") end return config
local profile = PROFILEMAN:GetProfile(PLAYER_1) local frameX = 10 local frameY = 250+capWideScale(get43size(120),90) local frameWidth = capWideScale(get43size(455),455) local scoreType = themeConfig:get_data().global.DefaultScoreType local score local song local steps local alreadybroadcasted local alreadybroadcasted local update = false local t = Def.ActorFrame{ BeginCommand=function(self) steps = nil song = nil score = nil self:finishtweening() if getTabIndex() == 0 then self:queuecommand("On") update = true else self:queuecommand("Off") update = false end end, OffCommand=function(self) self:bouncebegin(0.2):xy(-500,0):diffusealpha(0) end, OnCommand=function(self) self:bouncebegin(0.2):xy(0,0):diffusealpha(1) end, SetCommand=function(self) self:finishtweening() if getTabIndex() == 0 then self:queuecommand("On") update = true else self:queuecommand("Off") update = false end end, TabChangedMessageCommand=function(self) self:queuecommand("Set") end, } -- Temporary update control tower; it would be nice if the basic song/step change commands were thorough and explicit and non-redundant t[#t+1] = Def.Actor{ SetCommand=function(self) if song and not alreadybroadcasted then -- if this is true it means we've just exited a pack's songlist into the packlist song = GAMESTATE:GetCurrentSong() -- also apprently true if we're tabbing around within a songlist and then stop... MESSAGEMAN:Broadcast("UpdateChart") -- ms.ok(whee:GetSelectedSection( )) -- use this later to detect pack changes MESSAGEMAN:Broadcast("RefreshChartInfo") else alreadybroadcasted = false end end, CurrentStepsP1ChangedMessageCommand=function(self) song = GAMESTATE:GetCurrentSong() MESSAGEMAN:Broadcast("UpdateChart") alreadybroadcasted = true end, CurrentSongChangedMessageCommand=function(self) if playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).OneShotMirror then -- This will disable mirror when switching songs if OneShotMirror is enabled local modslevel = topscreen == "ScreenEditOptions" and "ModsLevel_Stage" or "ModsLevel_Preferred" local playeroptions = GAMESTATE:GetPlayerState(PLAYER_1):GetPlayerOptions(modslevel) playeroptions:Mirror( false ) end self:queuecommand("Set") end, } local function GetBestScoreByFilter(perc,CurRate) local rtTable = getRateTable() if not rtTable then return nil end local rates = tableKeys(rtTable) local scores, score if CurRate then local tmp = getCurRateString() if tmp == "1x" then tmp = "1.0x" end rates = {tmp} if not rtTable[rates[1]] then return nil end end table.sort(rates) for i=#rates,1,-1 do scores = rtTable[rates[i]] local bestscore = 0 local index for ii=1,#scores do score = scores[ii] if score:ConvertDpToWife() > bestscore then index = ii bestscore = score:ConvertDpToWife() end end if index and scores[index]:GetWifeScore() == 0 and GetPercentDP(scores[index]) > perc * 100 then return scores[index] end if bestscore > perc then return scores[index] end end end local function GetDisplayScore() local score score = GetBestScoreByFilter(0, true) if not score then score = GetBestScoreByFilter(0.9, false) end if not score then score = GetBestScoreByFilter(0.5, false) end if not score then score = GetBestScoreByFilter(0, false) end return score end t[#t+1] = Def.Actor{ SetCommand=function(self) if song then steps = GAMESTATE:GetCurrentSteps(PLAYER_1) score = GetDisplayScore() MESSAGEMAN:Broadcast("RefreshChartInfo") end end, UpdateChartMessageCommand=function(self) self:queuecommand("Set") end, CurrentRateChangedMessageCommand=function() score = GetDisplayScore() end, } --All these 4:3 ratio and 16:9 widescreen ratio stuff goes here. -Misterkister ---------------------------------------------------------------------------------------- local wifeY = frameY-170 local wifeX = frameX+25 local wifescoretypeX = frameX+150 local wifescoretypeY = frameY+40 local secondarytypeX = frameX+130 local secondarytypeY = frameY+63 local secondaryscoretypeX = frameX+173 local secondaryscoretypeY = frameY+63 local rateX = frameX+55 local rateY = frameY+58 local datescoreX = frameX+185 local datescoreY = frameY+59 local maxcomboX = frameX+185 local maxcomboY = frameY+49 local difficultyX = frameX+58 local difficultyY = frameY local negativebpmX = frameX+10 local negativebpmY = frameY-120 local infoboxx = 310 local infoboxy = 200 local infoboxbar = 3 local infoboxwidth = 65 local infoboxheight = 200 local lengthx = capWideScale(get43size(374),420)+60 local lengthy = capWideScale(get43size(360),275) local cdtitlemaxwidth = 75 local cdtitlemaxheight = 30 local curateX = 18 local curateY = SCREEN_BOTTOM-225 local cdtitleX = capWideScale(get43size(374),394)+60 local cdtitleY = capWideScale(get43size(290),270) --16:9 ratio. if IsUsingWideScreen() == true then wifeY = frameY-290 wifeX = frameX+25 wifescoretypeX = frameX+95 wifescoretypeY = frameY-290 secondarytypeX = frameX+180 secondarytypeY = frameY-290 secondaryscoretypeX = frameX+245 secondaryscoretypeY = frameY-290 rateX = frameX+125 rateY = frameY-295 datescoreX = frameX+170 datescoreY = frameY-150 maxcomboY = frameY-150 maxcomboX = frameX+300 difficultyY = frameY-115 difficultyX = frameX+440 negativebpmY = frameY-150 --radarX = frameX+400 infoboxx = capWideScale(get43size(374),405) infoboxy = capWideScale(get43size(360),215) infoboxbar = 8 infoboxwidth = 95 infoboxheight = 195 lengthx = capWideScale(get43size(374),375) lengthy = capWideScale(get43size(360),170) cdtitlemaxwidth = 75 cdtitlemaxheight = 30 curateX = 425 curateY = SCREEN_CENTER_Y-35 end --4:3 ratio. if not IsUsingWideScreen() == true then wifeY = frameY-170 wifeX = frameX+25 wifescoretypeX = frameX+95 wifescoretypeY = frameY-170 secondarytypeX = frameX+25 secondarytypeY = frameY-150 secondaryscoretypeX = frameX+95 secondaryscoretypeY = frameY-150 rateX = frameX+145 rateY = frameY-175 datescoreX = frameX+130 datescoreY = frameY-150 maxcomboY = frameY-175 maxcomboX = frameX+210 difficultyY = frameY-95 difficultyX = frameX+330 negativebpmY = frameY-290 --radarX = frameX+400 infoboxx = 310 infoboxy = 220 infoboxbar = 3 infoboxwidth = 65 infoboxheight = 175 lengthx = 290 lengthy = 142 cdtitlemaxwidth = 50 cdtitlemaxheight = 60 curateX = SCREEN_CENTER_X-20 curateY = SCREEN_CENTER_Y-72 end --Hacky way of fixing these ratios outside of 16:9 and 4:3. I'm not doing 3:4 or 1:1 ratio support unless there's good reasons to do those. -Misterkister --16:10 ratio. -Misterkister if round(GetScreenAspectRatio(),5) == 1.6 then infoboxx = 368 infoboxy = 215 difficultyX = frameX+400 cdtitleY = capWideScale(get43size(350),270) infoboxwidth = 85 lengthy = capWideScale(get43size(185),170) end --5:4 ratio. -Misterkister if round(GetScreenAspectRatio(),5) == 1.25 then infoboxx = 285 infoboxwidth = 58 difficultyX = frameX+305 cdtitleY = capWideScale(get43size(290),270) cdtitleX = capWideScale(get43size(344),394)+60 maxcomboX = frameX+180 maxcomboY = frameY-182 end --8:3 ratio targeted. -Misterkister if round(GetScreenAspectRatio(),5) > 1.77778 then infoboxx = SCREEN_CENTER_X-15 infoboxy = SCREEN_CENTER_Y-90 infoboxwidth = 100 cdtitleY = SCREEN_CENTER_Y-25 cdtitleX = SCREEN_CENTER_X+25 infoboxheight = 250 difficultyX = SCREEN_CENTER_X+30 wifeX = SCREEN_CENTER_X-140 wifeY = SCREEN_CENTER_Y-188 wifescoretypeX = SCREEN_CENTER_X-50 wifescoretypeY = SCREEN_CENTER_Y-188 secondarytypeX = SCREEN_CENTER_X-140 secondarytypeY = SCREEN_CENTER_Y-158 secondaryscoretypeX = SCREEN_CENTER_X-50 secondaryscoretypeY = SCREEN_CENTER_Y-158 lengthx = SCREEN_CENTER_X-255 lengthy = SCREEN_CENTER_Y-70 maxcomboX = SCREEN_CENTER_X-160 maxcomboY = SCREEN_CENTER_Y-140 datescoreX = SCREEN_CENTER_X-160 datescoreY = SCREEN_CENTER_Y-120 rateX = SCREEN_CENTER_X-145 rateY = SCREEN_CENTER_Y-100 end t[#t+1] = Def.Quad{ InitCommand=function(self) self:xy(infoboxx,infoboxy):zoomto(infoboxwidth,infoboxheight):halign(0):valign(0):diffuse(color("#333333CC")):diffusealpha(0.66) end } t[#t+1] = Def.Quad{ InitCommand=function(self) self:xy(infoboxx,infoboxy):zoomto(infoboxbar,infoboxheight):halign(0):valign(0):diffuse(getMainColor('highlight')):diffusealpha(0.5) end } t[#t+1] = Def.ActorFrame{ -- **score related stuff** These need to be updated with rate changed commands -- Primary percent score LoadFont("Common Large")..{ InitCommand=function(self) self:xy(wifeX,wifeY):zoom(0.3):halign(0.5):maxwidth(175):valign(1) end, BeginCommand=function(self) self:queuecommand("Set") end, SetCommand=function(self) if song and score then if score:GetWifeScore() == 0 then self:settextf("%05.2f%%", notShit.floor(GetPercentDP(score)*100)/100) self:diffuse(getGradeColor(score:GetGrade())) else self:settextf("%05.2f%%", notShit.floor(score:GetWifeScore()*10000)/100) self:diffuse(getGradeColor(score:GetWifeGrade())) end else self:settext("") end end, RefreshChartInfoMessageCommand=function(self) self:queuecommand("Set") end, CurrentRateChangedMessageCommand=function(self) self:queuecommand("Set") end, CurrentSongChangedMessageCommand=function(self) self:queuecommand("Set") end; CurrentStepsP1ChangedMessageCommand=function(self) self:queuecommand("Set") end; CurrentStepsP2ChangedMessageCommand=function(self) self:queuecommand("Set") end; }, -- Primary ScoreType LoadFont("Common Large")..{ InitCommand=function(self) self:xy(wifescoretypeX,wifescoretypeY):zoom(0.3):halign(1):valign(1) end, BeginCommand=function(self) self:queuecommand("Set") end, SetCommand=function(self) if song and score then if score:GetWifeScore() == 0 then self:settext("DP*") else self:settext(scoringToText(scoreType)) end else self:settext("") end end, CurrentRateChangedMessageCommand=function(self) self:queuecommand("Set") end, RefreshChartInfoMessageCommand=function(self) self:queuecommand("Set") end, CurrentSongChangedMessageCommand=function(self) self:queuecommand("Set") end; CurrentStepsP1ChangedMessageCommand=function(self) self:queuecommand("Set") end; CurrentStepsP2ChangedMessageCommand=function(self) self:queuecommand("Set") end; }, -- Secondary percent score LoadFont("Common Normal")..{ InitCommand=function(self) self:xy(secondarytypeX,secondarytypeY):zoom(0.6):halign(0.5):maxwidth(125):valign(1) end, BeginCommand=function(self) self:queuecommand("Set") end, SetCommand=function(self) if song and score then if score:GetWifeScore() == 0 then self:settextf("NA") self:diffuse(getGradeColor("Grade_Failed")) else self:settextf("%05.2f%%", GetPercentDP(score)) self:diffuse(getGradeColor(score:GetGrade())) end else self:settext("") end end, RefreshChartInfoMessageCommand=function(self) self:queuecommand("Set") end, CurrentRateChangedMessageCommand=function(self) self:queuecommand("Set") end, }, -- Secondary ScoreType LoadFont("Common Normal")..{ InitCommand=function(self) self:xy(secondaryscoretypeX,secondaryscoretypeY):zoom(0.4):halign(1):valign(1) end, BeginCommand=function(self) self:queuecommand("Set") end, SetCommand=function(self) if song and score then if score:GetWifeScore() == 0 then self:settext("Wife") else self:settext("DP") end else self:settext("") end end, CurrentRateChangedMessageCommand=function(self) self:queuecommand("Set") end, RefreshChartInfoMessageCommand=function(self) self:queuecommand("Set") end, }, -- Rate for the displayed score LoadFont("Common Normal")..{ InitCommand=function(self) self:xy(rateX,rateY):zoom(0.5):halign(0.5) end, BeginCommand=function(self) self:queuecommand("Set") end, SetCommand=function(self) if song and score then local rate = getRate(score) if getCurRateString() ~= rate then self:settext("("..rate..")") else self:settext(rate) end else self:settext("") end end, CurrentRateChangedMessageCommand=function(self) self:queuecommand("Set") end, RefreshChartInfoMessageCommand=function(self) self:queuecommand("Set") end, }, -- Date score achieved on LoadFont("Common Normal")..{ InitCommand=function(self) self:xy(datescoreX,datescoreY):zoom(0.4):halign(0) end, BeginCommand=function(self) self:queuecommand("Set") end, SetCommand=function(self) if song and score then self:settext(score:GetDate()) else self:settext("") end end, CurrentRateChangedMessageCommand=function(self) self:queuecommand("Set") end, RefreshChartInfoMessageCommand=function(self) self:queuecommand("Set") end, }, -- MaxCombo LoadFont("Common Normal")..{ InitCommand=function(self) self:xy(maxcomboX,maxcomboY):zoom(0.4):halign(0) end, BeginCommand=function(self) self:queuecommand("Set") end, SetCommand=function(self) if song and score then self:settextf("Max Combo: %d", score:GetMaxCombo()) else self:settext("") end end, CurrentRateChangedMessageCommand=function(self) self:queuecommand("Set") end, RefreshChartInfoMessageCommand=function(self) self:queuecommand("Set") end, }, -- **End score related stuff** } -- Difficulty value ("meter"), need to change this later t[#t+1] = LoadFont("Common Large") .. { InitCommand=function(self) self:xy(difficultyX,difficultyY):halign(0.5):zoom(0.4):maxwidth(110/0.6) end, BeginCommand=function(self) self:queuecommand("Set") end, SetCommand=function(self) if song then local meter = GAMESTATE:GetCurrentSteps(PLAYER_1):GetMSD(getCurRateValue(), 1) --If meter is showing 0 because it's a solo or a double chart, then don't show the numbers. -Misterkister if meter == 0 then self:settext("") else self:settextf("%05.2f",meter) self:diffuse(byMSD(meter)) end else self:settext("") end if song and steps:GetTimingData():HasWarps() then self:settext("") end end, RefreshChartInfoMessageCommand=function(self) self:queuecommand("Set") end, CurrentRateChangedMessageCommand=function(self) self:queuecommand("Set") end, CurrentSongChangedMessageCommand=function(self) self:queuecommand("Set") end; CurrentStepsP1ChangedMessageCommand=function(self) self:queuecommand("Set") end; CurrentStepsP2ChangedMessageCommand=function(self) self:queuecommand("Set") end; } t[#t+1] = Def.Sprite { InitCommand=function(self) self:xy(cdtitleX,cdtitleY):halign(0.5):valign(1) end, SetCommand=function(self) self:finishtweening() if GAMESTATE:GetCurrentSong() then local song = GAMESTATE:GetCurrentSong() if song then if song:HasCDTitle() then self:visible(true) self:Load(song:GetCDTitlePath()) else self:visible(false) end else self:visible(false) end local height = self:GetHeight() local width = self:GetWidth() if height >= cdtitlemaxheight and width >= cdtitlemaxwidth then if height*(cdtitlemaxwidth/cdtitlemaxheight) >= width then self:zoom(cdtitlemaxheight/height) else self:zoom(cdtitlemaxwidth/width) end elseif height >= cdtitlemaxheight then self:zoom(cdtitlemaxheight/height) elseif width >= cdtitlemaxwidth then self:zoom(cdtitlemaxwidth/width) else self:zoom(1) end else self:visible(false) end end, BeginCommand=function(self) self:queuecommand("Set") end, RefreshChartInfoMessageCommand=function(self) self:queuecommand("Set") end, } t[#t+1] = LoadFont("Common Large") .. { InitCommand=function(self) self:xy(negativebpmX,negativebpmY):halign(0):zoom(0.25) end; BeginCommand=function(self) self:queuecommand("Set") end; SetCommand=function(self) if song and steps:GetTimingData():HasWarps() then self:settext("Negative BPMs Detected") self:diffuse(color("#e61e25")) else self:settext("") end end, CurrentStepsP1ChangedMessageCommand=function(self) self:queuecommand("Set") end, RefreshChartInfoMessageCommand=function(self) self:queuecommand("Set") end, } --test actor t[#t+1] = LoadFont("Common Large") .. { InitCommand=function(self) self:xy(frameX,frameY-120):halign(0):zoom(0.4,maxwidth,125) end, BeginCommand=function(self) self:queuecommand("Set") end, SetCommand=function(self) self:settext("") end, CurrentStepsP1ChangedMessageCommand=function(self) self:queuecommand("Set") end, RefreshChartInfoMessageCommand=function(self) self:queuecommand("Set") end, } -- Song duration t[#t+1] = LoadFont("Common Large") .. { InitCommand=function(self) self:xy(lengthx,lengthy):visible(true):halign(1):zoom(capWideScale(get43size(0.4),0.4)):maxwidth(capWideScale(get43size(360),360)/capWideScale(get43size(0.45),0.45)) end, BeginCommand=function(self) self:queuecommand("Set") end, SetCommand=function(self) if song then local playabletime = GetPlayableTime() self:settext(SecondsToMMSS(playabletime)) self:diffuse(byMusicLength(playabletime)) else self:settext("") end end, CurrentRateChangedMessageCommand=function(self) self:queuecommand("Set") end, RefreshChartInfoMessageCommand=function(self) self:queuecommand("Set") end, } return t
--Settings: local RemoteIgnores = { ["RemoteFunction"] = true; ["RemoteEvent"] = true; ["BindableFunction"] = false; ["BindableEvent"] = false; } ------------------------------------------ local MrSpyV2RebugKurokkusGhost = Instance.new("ScreenGui") local Hub = Instance.new("TextButton") local Main = Instance.new("Frame") local BG = Instance.new("ImageLabel") local ShadowHolder = Instance.new("Frame") local Shadow = Instance.new("ImageLabel") local Shadow_2 = Instance.new("ImageLabel") local Shadow_3 = Instance.new("ImageLabel") local Animate = Instance.new("Frame") local Texture = Instance.new("ImageLabel") local Texture2 = Instance.new("ImageLabel") local Texture3 = Instance.new("ImageLabel") local Texture4 = Instance.new("ImageLabel") local TabsFolder = Instance.new("Frame") local Output = Instance.new("Frame") local OutputWindow = Instance.new("ScrollingFrame") local R2S = Instance.new("Frame") local Warning = Instance.new("Frame") local Logo = Instance.new("ImageLabel") local Shadow_4 = Instance.new("ImageLabel") local Shadow_5 = Instance.new("ImageLabel") local Shadow_6 = Instance.new("ImageLabel") local WarningLabel = Instance.new("TextLabel") local Shadow_7 = Instance.new("TextLabel") local Shadow_8 = Instance.new("TextLabel") local Shadow_9 = Instance.new("TextLabel") local Window = Instance.new("Frame") local ScriptWindow = Instance.new("ScrollingFrame") local RemoteScript = Instance.new("TextLabel") local CopyClip = Instance.new("TextButton") local Shadow_10 = Instance.new("Frame") local Shadow_11 = Instance.new("Frame") local Shadow_12 = Instance.new("Frame") local CopyText = Instance.new("TextLabel") local BG_2 = Instance.new("TextLabel") local BG_3 = Instance.new("TextLabel") local BG_4 = Instance.new("TextLabel") local Remotes = Instance.new("ScrollingFrame") local Explorer = Instance.new("Frame") local Warning_2 = Instance.new("Frame") local Logo_2 = Instance.new("ImageLabel") local Shadow_13 = Instance.new("ImageLabel") local Shadow_14 = Instance.new("ImageLabel") local Shadow_15 = Instance.new("ImageLabel") local WarningLabel_2 = Instance.new("TextLabel") local Shadow_16 = Instance.new("TextLabel") local Shadow_17 = Instance.new("TextLabel") local Shadow_18 = Instance.new("TextLabel") local Window_2 = Instance.new("Frame") local ExplorerWindow = Instance.new("ScrollingFrame") local Shadow_19 = Instance.new("Frame") local Shadow_20 = Instance.new("Frame") local Shadow_21 = Instance.new("Frame") local Shadow_22 = Instance.new("Frame") local Title = Instance.new("TextLabel") local Credits = Instance.new("TextLabel") local Icon = Instance.new("ImageLabel") local Exit = Instance.new("ImageButton") local ShadowHolder_2 = Instance.new("Frame") local Shadow_23 = Instance.new("ImageLabel") local Shadow_24 = Instance.new("ImageLabel") local Shadow_25 = Instance.new("ImageLabel") local Tabs = Instance.new("Frame") local TabLine = Instance.new("Frame") local Remotes_2 = Instance.new("TextButton") local Spys = Instance.new("Frame") local Spyer = Instance.new("ImageButton") local Shadow_26 = Instance.new("ImageLabel") local Shadow_27 = Instance.new("ImageLabel") local Shadow_28 = Instance.new("ImageLabel") local Words = Instance.new("TextLabel") local Output_2 = Instance.new("TextButton") local ClearHolder = Instance.new("Frame") local Clear = Instance.new("ImageButton") local Shadow_29 = Instance.new("ImageLabel") local Shadow_30 = Instance.new("ImageLabel") local Shadow_31 = Instance.new("ImageLabel") local TextLabel = Instance.new("TextLabel") local Explorer_2 = Instance.new("TextButton") local R2S_2 = Instance.new("TextButton") local Holder = Instance.new("Frame") local Icon_2 = Instance.new("Frame") local IconMap = Instance.new("ImageLabel") local RemoteGrid = Instance.new("UIGridLayout") local RemoteTemplate = Instance.new("Frame") local Icon_3 = Instance.new("Frame") local IconMap_2 = Instance.new("ImageLabel") local RemoteName = Instance.new("TextLabel") local Spy = Instance.new("TextButton") local Shadow_32 = Instance.new("Frame") local Shadow_33 = Instance.new("Frame") local Shadow_34 = Instance.new("Frame") local View = Instance.new("TextButton") local Shadow_35 = Instance.new("Frame") local Shadow_36 = Instance.new("Frame") local Shadow_37 = Instance.new("Frame") local ExplorerTemplate = Instance.new("Frame") local Arrow = Instance.new("Frame") local Open = Instance.new("TextButton") local IconMap_3 = Instance.new("ImageLabel") local Icon_4 = Instance.new("Frame") local IconMap_4 = Instance.new("ImageLabel") local InstanceName = Instance.new("TextLabel") local Open_2 = Instance.new("TextButton") local Holder_2 = Instance.new("Frame") local BG_5 = Instance.new("Frame") local RemoteOutputTemplate = Instance.new("Frame") local Icon_5 = Instance.new("Frame") local IconMap_5 = Instance.new("ImageLabel") local RemoteName_2 = Instance.new("TextLabel") local R2S_3 = Instance.new("TextButton") local Shadow_38 = Instance.new("Frame") local Shadow_39 = Instance.new("Frame") local Shadow_40 = Instance.new("Frame") --Properties: MrSpyV2RebugKurokkusGhost.Name = "Mr.Spy V2 - Rebug/KurokkusGhost" MrSpyV2RebugKurokkusGhost.Parent = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui") MrSpyV2RebugKurokkusGhost.ResetOnSpawn = false Hub.Name = "Hub" Hub.Parent = MrSpyV2RebugKurokkusGhost Hub.AnchorPoint = Vector2.new(0.5, 0.5) Hub.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863) Hub.BorderSizePixel = 0 Hub.Position = UDim2.new(0.5, 0, 0.349999994, 0) Hub.Size = UDim2.new(0, 550, 0, 50) Hub.ZIndex = 10 Hub.AutoButtonColor = false Hub.Font = Enum.Font.SourceSans Hub.Text = "" Hub.TextColor3 = Color3.new(0, 0, 0) Hub.TextSize = 14 Main.Name = "Main" Main.Parent = Hub Main.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) Main.BackgroundTransparency = 1 Main.BorderSizePixel = 0 Main.Position = UDim2.new(0, 0, 1, 0) Main.Size = UDim2.new(1, 50, 0, 300) Main.ZIndex = 5 BG.Name = "BG" BG.Parent = Main BG.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) BG.BackgroundTransparency = 1 BG.Position = UDim2.new(0, 0, 0, -25) BG.Size = UDim2.new(1, 0, 1, 25) BG.ZIndex = 5 BG.Image = "rbxassetid://2052866575" BG.ImageColor3 = Color3.new(0.137255, 0.137255, 0.137255) BG.ScaleType = Enum.ScaleType.Slice BG.SliceCenter = Rect.new(8, 8, 8, 8) ShadowHolder.Name = "ShadowHolder" ShadowHolder.Parent = BG ShadowHolder.BackgroundColor3 = Color3.new(1, 1, 1) ShadowHolder.BackgroundTransparency = 1 ShadowHolder.ClipsDescendants = true ShadowHolder.Position = UDim2.new(0, 0, 0, 25) ShadowHolder.Size = UDim2.new(1, 100, 1, 100) Shadow.Name = "Shadow" Shadow.Parent = ShadowHolder Shadow.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) Shadow.BackgroundTransparency = 1 Shadow.Position = UDim2.new(0, 1, 0, -24) Shadow.Size = UDim2.new(1, -100, 1, -100) Shadow.ZIndex = 4 Shadow.Image = "rbxassetid://2052866575" Shadow.ImageColor3 = Color3.new(0, 0, 0) Shadow.ImageTransparency = 0.85000002384186 Shadow.ScaleType = Enum.ScaleType.Slice Shadow.SliceCenter = Rect.new(8, 8, 8, 8) Shadow_2.Name = "Shadow" Shadow_2.Parent = ShadowHolder Shadow_2.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) Shadow_2.BackgroundTransparency = 1 Shadow_2.Position = UDim2.new(0, 2, 0, -23) Shadow_2.Size = UDim2.new(1, -100, 1, -100) Shadow_2.ZIndex = 4 Shadow_2.Image = "rbxassetid://2052866575" Shadow_2.ImageColor3 = Color3.new(0, 0, 0) Shadow_2.ImageTransparency = 0.85000002384186 Shadow_2.ScaleType = Enum.ScaleType.Slice Shadow_2.SliceCenter = Rect.new(8, 8, 8, 8) Shadow_3.Name = "Shadow" Shadow_3.Parent = ShadowHolder Shadow_3.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) Shadow_3.BackgroundTransparency = 1 Shadow_3.Position = UDim2.new(0, 3, 0, -22) Shadow_3.Size = UDim2.new(1, -100, 1, -100) Shadow_3.ZIndex = 4 Shadow_3.Image = "rbxassetid://2052866575" Shadow_3.ImageColor3 = Color3.new(0, 0, 0) Shadow_3.ImageTransparency = 0.85000002384186 Shadow_3.ScaleType = Enum.ScaleType.Slice Shadow_3.SliceCenter = Rect.new(8, 8, 8, 8) Animate.Name = "Animate" Animate.Parent = Main Animate.BackgroundColor3 = Color3.new(0.156863, 0.176471, 0.184314) Animate.BackgroundTransparency = 1 Animate.BorderSizePixel = 0 Animate.ClipsDescendants = true Animate.Size = UDim2.new(1, 0, 1, 0) Texture.Name = "Texture" Texture.Parent = Animate Texture.BackgroundColor3 = Color3.new(1, 1, 1) Texture.BackgroundTransparency = 1 Texture.BorderSizePixel = 0 Texture.Position = UDim2.new(0.00333333341, 0, 0.00999999978, 0) Texture.Size = UDim2.new(2, 0, 2, 0) Texture.ZIndex = 6 Texture.Image = "rbxassetid://922275274" Texture.ImageColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314) Texture.ImageTransparency = 0.5 Texture.ScaleType = Enum.ScaleType.Tile Texture.TileSize = UDim2.new(0, 50, 0, 50) Texture2.Name = "Texture2" Texture2.Parent = Animate Texture2.BackgroundColor3 = Color3.new(1, 1, 1) Texture2.BackgroundTransparency = 1 Texture2.BorderSizePixel = 0 Texture2.Position = UDim2.new(2, 0, 2, 0) Texture2.Size = UDim2.new(2, 0, 2, 0) Texture2.ZIndex = 6 Texture2.Image = "rbxassetid://922275274" Texture2.ImageColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314) Texture2.ImageTransparency = 0.5 Texture2.ScaleType = Enum.ScaleType.Tile Texture2.TileSize = UDim2.new(0, 50, 0, 50) Texture3.Name = "Texture3" Texture3.Parent = Animate Texture3.BackgroundColor3 = Color3.new(1, 1, 1) Texture3.BackgroundTransparency = 1 Texture3.BorderSizePixel = 0 Texture3.Position = UDim2.new(0, 0, 2, 0) Texture3.Size = UDim2.new(2, 0, 2, 0) Texture3.ZIndex = 6 Texture3.Image = "rbxassetid://922275274" Texture3.ImageColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314) Texture3.ImageTransparency = 0.5 Texture3.ScaleType = Enum.ScaleType.Tile Texture3.TileSize = UDim2.new(0, 50, 0, 50) Texture4.Name = "Texture4" Texture4.Parent = Animate Texture4.BackgroundColor3 = Color3.new(1, 1, 1) Texture4.BackgroundTransparency = 1 Texture4.BorderSizePixel = 0 Texture4.Position = UDim2.new(2, 0, 0, 0) Texture4.Size = UDim2.new(2, 0, 2, 0) Texture4.ZIndex = 6 Texture4.Image = "rbxassetid://922275274" Texture4.ImageColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314) Texture4.ImageTransparency = 0.5 Texture4.ScaleType = Enum.ScaleType.Tile Texture4.TileSize = UDim2.new(0, 50, 0, 50) TabsFolder.Name = "TabsFolder" TabsFolder.Parent = Main TabsFolder.BackgroundColor3 = Color3.new(1, 1, 1) TabsFolder.BackgroundTransparency = 1 TabsFolder.ClipsDescendants = true TabsFolder.Size = UDim2.new(1, 0, 1, 0) Output.Name = "Output" Output.Parent = TabsFolder Output.BackgroundColor3 = Color3.new(1, 1, 1) Output.BackgroundTransparency = 1 Output.Position = UDim2.new(1, 0, 0, 0) Output.Size = UDim2.new(1, 0, 1, 0) OutputWindow.Name = "OutputWindow" OutputWindow.Parent = Output OutputWindow.BackgroundColor3 = Color3.new(1, 1, 1) OutputWindow.BackgroundTransparency = 1 OutputWindow.BorderSizePixel = 0 OutputWindow.Size = UDim2.new(1, 0, 1, 0) OutputWindow.ZIndex = 7 OutputWindow.BottomImage = "rbxassetid://2504831909" OutputWindow.CanvasSize = UDim2.new(0, 0, 0, 0) OutputWindow.MidImage = "rbxassetid://2504831909" OutputWindow.ScrollBarThickness = 6 OutputWindow.TopImage = "rbxassetid://2504831909" R2S.Name = "R2S" R2S.Parent = TabsFolder R2S.BackgroundColor3 = Color3.new(1, 1, 1) R2S.BackgroundTransparency = 1 R2S.Position = UDim2.new(3, 0, 0, 0) R2S.Size = UDim2.new(1, 0, 1, 0) Warning.Name = "Warning" Warning.Parent = R2S Warning.BackgroundColor3 = Color3.new(1, 1, 1) Warning.BackgroundTransparency = 1 Warning.Size = UDim2.new(1, 0, 1, 0) Logo.Name = "Logo" Logo.Parent = Warning Logo.AnchorPoint = Vector2.new(0.5, 0) Logo.BackgroundColor3 = Color3.new(1, 1, 1) Logo.BackgroundTransparency = 1 Logo.Position = UDim2.new(0.5, 0, 0.125, 0) Logo.Size = UDim2.new(0, 150, 0, 150) Logo.ZIndex = 7 Logo.Image = "rbxassetid://2512823206" Shadow_4.Name = "Shadow" Shadow_4.Parent = Logo Shadow_4.BackgroundColor3 = Color3.new(1, 1, 1) Shadow_4.BackgroundTransparency = 1 Shadow_4.Position = UDim2.new(0, 1, 0, 1) Shadow_4.Size = UDim2.new(1, 0, 1, 0) Shadow_4.ZIndex = 6 Shadow_4.Image = "rbxassetid://2512823206" Shadow_4.ImageColor3 = Color3.new(0, 0, 0) Shadow_4.ImageTransparency = 0.80000001192093 Shadow_5.Name = "Shadow" Shadow_5.Parent = Logo Shadow_5.BackgroundColor3 = Color3.new(1, 1, 1) Shadow_5.BackgroundTransparency = 1 Shadow_5.Position = UDim2.new(0, 2, 0, 2) Shadow_5.Size = UDim2.new(1, 0, 1, 0) Shadow_5.ZIndex = 6 Shadow_5.Image = "rbxassetid://2512823206" Shadow_5.ImageColor3 = Color3.new(0, 0, 0) Shadow_5.ImageTransparency = 0.80000001192093 Shadow_6.Name = "Shadow" Shadow_6.Parent = Logo Shadow_6.BackgroundColor3 = Color3.new(1, 1, 1) Shadow_6.BackgroundTransparency = 1 Shadow_6.Position = UDim2.new(0, 3, 0, 3) Shadow_6.Size = UDim2.new(1, 0, 1, 0) Shadow_6.ZIndex = 6 Shadow_6.Image = "rbxassetid://2512823206" Shadow_6.ImageColor3 = Color3.new(0, 0, 0) Shadow_6.ImageTransparency = 0.80000001192093 WarningLabel.Name = "WarningLabel" WarningLabel.Parent = Warning WarningLabel.AnchorPoint = Vector2.new(0.5, 1) WarningLabel.BackgroundColor3 = Color3.new(1, 1, 1) WarningLabel.BackgroundTransparency = 1 WarningLabel.Position = UDim2.new(0.5, 0, 0.899999976, 0) WarningLabel.Size = UDim2.new(0.800000012, 0, 0.200000003, 0) WarningLabel.ZIndex = 7 WarningLabel.Font = Enum.Font.SourceSansBold WarningLabel.Text = "Credits to Greekazo for the RemoteSpy scripting and Anti Hash Spam!" WarningLabel.TextColor3 = Color3.new(1, 0.8, 0.301961) WarningLabel.TextScaled = true WarningLabel.TextSize = 30 WarningLabel.TextWrapped = true Shadow_7.Name = "Shadow" Shadow_7.Parent = WarningLabel Shadow_7.BackgroundColor3 = Color3.new(1, 1, 1) Shadow_7.BackgroundTransparency = 1 Shadow_7.Position = UDim2.new(0, 1, 0, 1) Shadow_7.Size = UDim2.new(1, 0, 1, 0) Shadow_7.ZIndex = 6 Shadow_7.Font = Enum.Font.SourceSansBold Shadow_7.Text = "Credits to Greekazo for the RemoteSpy scripting and Anti Hash Spam!" Shadow_7.TextColor3 = Color3.new(0, 0, 0) Shadow_7.TextScaled = true Shadow_7.TextSize = 30 Shadow_7.TextTransparency = 0.80000001192093 Shadow_7.TextWrapped = true Shadow_8.Name = "Shadow" Shadow_8.Parent = WarningLabel Shadow_8.BackgroundColor3 = Color3.new(1, 1, 1) Shadow_8.BackgroundTransparency = 1 Shadow_8.Position = UDim2.new(0, 2, 0, 2) Shadow_8.Size = UDim2.new(1, 0, 1, 0) Shadow_8.ZIndex = 6 Shadow_8.Font = Enum.Font.SourceSansBold Shadow_8.Text = "Credits to Greekazo for the RemoteSpy scripting and Anti Hash Spam!" Shadow_8.TextColor3 = Color3.new(0, 0, 0) Shadow_8.TextScaled = true Shadow_8.TextSize = 30 Shadow_8.TextTransparency = 0.80000001192093 Shadow_8.TextWrapped = true Shadow_9.Name = "Shadow" Shadow_9.Parent = WarningLabel Shadow_9.BackgroundColor3 = Color3.new(1, 1, 1) Shadow_9.BackgroundTransparency = 1 Shadow_9.Position = UDim2.new(0, 3, 0, 3) Shadow_9.Size = UDim2.new(1, 0, 1, 0) Shadow_9.ZIndex = 6 Shadow_9.Font = Enum.Font.SourceSansBold Shadow_9.Text = "Credits to Greekazo for the RemoteSpy scripting and Anti Hash Spam!" Shadow_9.TextColor3 = Color3.new(0, 0, 0) Shadow_9.TextScaled = true Shadow_9.TextSize = 30 Shadow_9.TextTransparency = 0.80000001192093 Shadow_9.TextWrapped = true Window.Name = "Window" Window.Parent = R2S Window.BackgroundColor3 = Color3.new(1, 1, 1) Window.BackgroundTransparency = 1 Window.Size = UDim2.new(1, 0, 1, 0) Window.Visible = false ScriptWindow.Name = "ScriptWindow" ScriptWindow.Parent = Window ScriptWindow.BackgroundColor3 = Color3.new(1, 1, 1) ScriptWindow.BackgroundTransparency = 1 ScriptWindow.BorderSizePixel = 0 ScriptWindow.Position = UDim2.new(0, 2, 0, 0) ScriptWindow.Size = UDim2.new(1, -2, 1, -50) ScriptWindow.ZIndex = 7 ScriptWindow.BottomImage = "rbxassetid://2504831909" ScriptWindow.CanvasSize = UDim2.new(0, 0, 0, 0) ScriptWindow.MidImage = "rbxassetid://2504831909" ScriptWindow.ScrollBarThickness = 6 ScriptWindow.TopImage = "rbxassetid://2504831909" RemoteScript.Name = "RemoteScript" RemoteScript.Parent = ScriptWindow RemoteScript.BackgroundColor3 = Color3.new(1, 1, 1) RemoteScript.BackgroundTransparency = 1 RemoteScript.Size = UDim2.new(1, 0, 1, 0) RemoteScript.ZIndex = 7 RemoteScript.Font = Enum.Font.SourceSansSemibold RemoteScript.Text = "" RemoteScript.TextColor3 = Color3.new(1, 1, 1) RemoteScript.TextSize = 16 RemoteScript.TextXAlignment = Enum.TextXAlignment.Left RemoteScript.TextYAlignment = Enum.TextYAlignment.Top CopyClip.Name = "CopyClip" CopyClip.Parent = Window CopyClip.AnchorPoint = Vector2.new(0, 1) CopyClip.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078) CopyClip.BorderSizePixel = 0 CopyClip.Position = UDim2.new(0, 10, 1, -10) CopyClip.Size = UDim2.new(1, -20, 0, 30) CopyClip.ZIndex = 8 CopyClip.AutoButtonColor = false CopyClip.Font = Enum.Font.SourceSansBold CopyClip.Text = "" CopyClip.TextColor3 = Color3.new(1, 1, 1) CopyClip.TextSize = 20 Shadow_10.Name = "Shadow" Shadow_10.Parent = CopyClip Shadow_10.BackgroundColor3 = Color3.new(0, 0, 0) Shadow_10.BackgroundTransparency = 0.80000001192093 Shadow_10.BorderSizePixel = 0 Shadow_10.Position = UDim2.new(0, 1, 0, 1) Shadow_10.Size = UDim2.new(1, 0, 1, 0) Shadow_10.ZIndex = 7 Shadow_11.Name = "Shadow" Shadow_11.Parent = CopyClip Shadow_11.BackgroundColor3 = Color3.new(0, 0, 0) Shadow_11.BackgroundTransparency = 0.80000001192093 Shadow_11.BorderSizePixel = 0 Shadow_11.Position = UDim2.new(0, 2, 0, 2) Shadow_11.Size = UDim2.new(1, 0, 1, 0) Shadow_11.ZIndex = 7 Shadow_12.Name = "Shadow" Shadow_12.Parent = CopyClip Shadow_12.BackgroundColor3 = Color3.new(0, 0, 0) Shadow_12.BackgroundTransparency = 0.80000001192093 Shadow_12.BorderSizePixel = 0 Shadow_12.Position = UDim2.new(0, 3, 0, 3) Shadow_12.Size = UDim2.new(1, 0, 1, 0) Shadow_12.ZIndex = 7 CopyText.Name = "CopyText" CopyText.Parent = CopyClip CopyText.BackgroundColor3 = Color3.new(1, 1, 1) CopyText.BackgroundTransparency = 1 CopyText.Size = UDim2.new(1, 0, 1, 0) CopyText.ZIndex = 10 CopyText.Font = Enum.Font.SourceSansBold CopyText.Text = "Copy to clipboard" CopyText.TextColor3 = Color3.new(1, 1, 1) CopyText.TextSize = 20 BG_2.Name = "BG" BG_2.Parent = CopyClip BG_2.BackgroundColor3 = Color3.new(1, 1, 1) BG_2.BackgroundTransparency = 1 BG_2.Position = UDim2.new(0, 1, 0, 1) BG_2.Size = UDim2.new(1, 0, 1, 0) BG_2.ZIndex = 9 BG_2.Font = Enum.Font.SourceSansBold BG_2.Text = "Copy to clipboard" BG_2.TextColor3 = Color3.new(0, 0, 0) BG_2.TextSize = 20 BG_2.TextTransparency = 0.80000001192093 BG_3.Name = "BG" BG_3.Parent = CopyClip BG_3.BackgroundColor3 = Color3.new(1, 1, 1) BG_3.BackgroundTransparency = 1 BG_3.Position = UDim2.new(0, 2, 0, 2) BG_3.Size = UDim2.new(1, 0, 1, 0) BG_3.ZIndex = 9 BG_3.Font = Enum.Font.SourceSansBold BG_3.Text = "Copy to clipboard" BG_3.TextColor3 = Color3.new(0, 0, 0) BG_3.TextSize = 20 BG_3.TextTransparency = 0.80000001192093 BG_4.Name = "BG" BG_4.Parent = CopyClip BG_4.BackgroundColor3 = Color3.new(1, 1, 1) BG_4.BackgroundTransparency = 1 BG_4.Position = UDim2.new(0, 3, 0, 3) BG_4.Size = UDim2.new(1, 0, 1, 0) BG_4.ZIndex = 9 BG_4.Font = Enum.Font.SourceSansBold BG_4.Text = "Copy to clipboard" BG_4.TextColor3 = Color3.new(0, 0, 0) BG_4.TextSize = 20 BG_4.TextTransparency = 0.80000001192093 Remotes.Name = "Remotes" Remotes.Parent = TabsFolder Remotes.BackgroundColor3 = Color3.new(1, 1, 1) Remotes.BackgroundTransparency = 1 Remotes.BorderSizePixel = 0 Remotes.Size = UDim2.new(1, 0, 1, 0) Remotes.ZIndex = 7 Remotes.BottomImage = "rbxassetid://2504831909" Remotes.CanvasSize = UDim2.new(0, 0, 0, 0) Remotes.MidImage = "rbxassetid://2504831909" Remotes.ScrollBarThickness = 6 Remotes.TopImage = "rbxassetid://2504831909" Explorer.Name = "Explorer" Explorer.Parent = TabsFolder Explorer.BackgroundColor3 = Color3.new(1, 1, 1) Explorer.BackgroundTransparency = 1 Explorer.Position = UDim2.new(2, 0, 0, 0) Explorer.Size = UDim2.new(1, 0, 1, 0) Warning_2.Name = "Warning" Warning_2.Parent = Explorer Warning_2.BackgroundColor3 = Color3.new(1, 1, 1) Warning_2.BackgroundTransparency = 1 Warning_2.Size = UDim2.new(1, 0, 1, 0) Logo_2.Name = "Logo" Logo_2.Parent = Warning_2 Logo_2.AnchorPoint = Vector2.new(0.5, 0) Logo_2.BackgroundColor3 = Color3.new(1, 1, 1) Logo_2.BackgroundTransparency = 1 Logo_2.Position = UDim2.new(0.5, 0, 0.125, 0) Logo_2.Size = UDim2.new(0, 150, 0, 150) Logo_2.ZIndex = 7 Logo_2.Image = "rbxassetid://2512823206" Shadow_13.Name = "Shadow" Shadow_13.Parent = Logo_2 Shadow_13.BackgroundColor3 = Color3.new(1, 1, 1) Shadow_13.BackgroundTransparency = 1 Shadow_13.Position = UDim2.new(0, 1, 0, 1) Shadow_13.Size = UDim2.new(1, 0, 1, 0) Shadow_13.ZIndex = 6 Shadow_13.Image = "rbxassetid://2512823206" Shadow_13.ImageColor3 = Color3.new(0, 0, 0) Shadow_13.ImageTransparency = 0.80000001192093 Shadow_14.Name = "Shadow" Shadow_14.Parent = Logo_2 Shadow_14.BackgroundColor3 = Color3.new(1, 1, 1) Shadow_14.BackgroundTransparency = 1 Shadow_14.Position = UDim2.new(0, 2, 0, 2) Shadow_14.Size = UDim2.new(1, 0, 1, 0) Shadow_14.ZIndex = 6 Shadow_14.Image = "rbxassetid://2512823206" Shadow_14.ImageColor3 = Color3.new(0, 0, 0) Shadow_14.ImageTransparency = 0.80000001192093 Shadow_15.Name = "Shadow" Shadow_15.Parent = Logo_2 Shadow_15.BackgroundColor3 = Color3.new(1, 1, 1) Shadow_15.BackgroundTransparency = 1 Shadow_15.Position = UDim2.new(0, 3, 0, 3) Shadow_15.Size = UDim2.new(1, 0, 1, 0) Shadow_15.ZIndex = 6 Shadow_15.Image = "rbxassetid://2512823206" Shadow_15.ImageColor3 = Color3.new(0, 0, 0) Shadow_15.ImageTransparency = 0.80000001192093 WarningLabel_2.Name = "WarningLabel" WarningLabel_2.Parent = Warning_2 WarningLabel_2.AnchorPoint = Vector2.new(0.5, 1) WarningLabel_2.BackgroundColor3 = Color3.new(1, 1, 1) WarningLabel_2.BackgroundTransparency = 1 WarningLabel_2.Position = UDim2.new(0.5, 0, 0.899999976, 0) WarningLabel_2.Size = UDim2.new(0.800000012, 0, 0.200000003, 0) WarningLabel_2.ZIndex = 7 WarningLabel_2.Font = Enum.Font.SourceSansBold WarningLabel_2.Text = "Credits to Greekazo for the RemoteSpy scripting and Anti Hash Spam!" WarningLabel_2.TextColor3 = Color3.new(1, 0.8, 0.301961) WarningLabel_2.TextScaled = true WarningLabel_2.TextSize = 30 WarningLabel_2.TextWrapped = true Shadow_16.Name = "Shadow" Shadow_16.Parent = WarningLabel_2 Shadow_16.BackgroundColor3 = Color3.new(1, 1, 1) Shadow_16.BackgroundTransparency = 1 Shadow_16.Position = UDim2.new(0, 1, 0, 1) Shadow_16.Size = UDim2.new(1, 0, 1, 0) Shadow_16.ZIndex = 6 Shadow_16.Font = Enum.Font.SourceSansBold Shadow_16.Text = "Credits to Greekazo for the RemoteSpy scripting and Anti Hash Spam!" Shadow_16.TextColor3 = Color3.new(0, 0, 0) Shadow_16.TextScaled = true Shadow_16.TextSize = 30 Shadow_16.TextTransparency = 0.80000001192093 Shadow_16.TextWrapped = true Shadow_17.Name = "Shadow" Shadow_17.Parent = WarningLabel_2 Shadow_17.BackgroundColor3 = Color3.new(1, 1, 1) Shadow_17.BackgroundTransparency = 1 Shadow_17.Position = UDim2.new(0, 2, 0, 2) Shadow_17.Size = UDim2.new(1, 0, 1, 0) Shadow_17.ZIndex = 6 Shadow_17.Font = Enum.Font.SourceSansBold Shadow_17.Text = "Credits to Greekazo for the RemoteSpy scripting and Anti Hash Spam!" Shadow_17.TextColor3 = Color3.new(0, 0, 0) Shadow_17.TextScaled = true Shadow_17.TextSize = 30 Shadow_17.TextTransparency = 0.80000001192093 Shadow_17.TextWrapped = true Shadow_18.Name = "Shadow" Shadow_18.Parent = WarningLabel_2 Shadow_18.BackgroundColor3 = Color3.new(1, 1, 1) Shadow_18.BackgroundTransparency = 1 Shadow_18.Position = UDim2.new(0, 3, 0, 3) Shadow_18.Size = UDim2.new(1, 0, 1, 0) Shadow_18.ZIndex = 6 Shadow_18.Font = Enum.Font.SourceSansBold Shadow_18.Text = "Credits to Greekazo for the RemoteSpy scripting and Anti Hash Spam!" Shadow_18.TextColor3 = Color3.new(0, 0, 0) Shadow_18.TextScaled = true Shadow_18.TextSize = 30 Shadow_18.TextTransparency = 0.80000001192093 Shadow_18.TextWrapped = true Window_2.Name = "Window" Window_2.Parent = Explorer Window_2.BackgroundColor3 = Color3.new(1, 1, 1) Window_2.BackgroundTransparency = 1 Window_2.Size = UDim2.new(1, 0, 1, 0) Window_2.Visible = false Window_2.ZIndex = 7 ExplorerWindow.Name = "ExplorerWindow" ExplorerWindow.Parent = Window_2 ExplorerWindow.BackgroundColor3 = Color3.new(1, 1, 1) ExplorerWindow.BackgroundTransparency = 1 ExplorerWindow.Size = UDim2.new(1, 0, 1, 0) ExplorerWindow.ZIndex = 7 ExplorerWindow.BottomImage = "rbxassetid://2504831909" ExplorerWindow.CanvasSize = UDim2.new(0, 0, 0, 0) ExplorerWindow.MidImage = "rbxassetid://2504831909" ExplorerWindow.ScrollBarThickness = 6 ExplorerWindow.TopImage = "rbxassetid://2504831909" Shadow_19.Name = "Shadow" Shadow_19.Parent = Hub Shadow_19.BackgroundColor3 = Color3.new(0, 0, 0) Shadow_19.BackgroundTransparency = 0.89999997615814 Shadow_19.BorderSizePixel = 0 Shadow_19.Position = UDim2.new(0, 0, 0.5, 1) Shadow_19.Size = UDim2.new(1, 50, 0.5, 0) Shadow_19.ZIndex = 9 Shadow_20.Name = "Shadow" Shadow_20.Parent = Hub Shadow_20.BackgroundColor3 = Color3.new(0, 0, 0) Shadow_20.BackgroundTransparency = 0.89999997615814 Shadow_20.BorderSizePixel = 0 Shadow_20.Position = UDim2.new(0, 0, 0.5, 2) Shadow_20.Size = UDim2.new(1, 50, 0.5, 0) Shadow_20.ZIndex = 9 Shadow_21.Name = "Shadow" Shadow_21.Parent = Hub Shadow_21.BackgroundColor3 = Color3.new(0, 0, 0) Shadow_21.BackgroundTransparency = 0.89999997615814 Shadow_21.BorderSizePixel = 0 Shadow_21.Position = UDim2.new(0, 0, 0.5, 3) Shadow_21.Size = UDim2.new(1, 50, 0.5, 0) Shadow_21.ZIndex = 9 Shadow_22.Name = "Shadow" Shadow_22.Parent = Hub Shadow_22.BackgroundColor3 = Color3.new(0, 0, 0) Shadow_22.BackgroundTransparency = 0.89999997615814 Shadow_22.BorderSizePixel = 0 Shadow_22.Position = UDim2.new(0, 0, 0.5, 4) Shadow_22.Size = UDim2.new(1, 50, 0.5, 0) Shadow_22.ZIndex = 9 Title.Name = "Title" Title.Parent = Hub Title.BackgroundColor3 = Color3.new(1, 1, 1) Title.BackgroundTransparency = 1 Title.Position = UDim2.new(0, 50, 0, 0) Title.Size = UDim2.new(0, 150, 1, 0) Title.ZIndex = 25 Title.Font = Enum.Font.SourceSansLight Title.Text = "Jailbreak Spy" Title.TextColor3 = Color3.new(1, 1, 1) Title.TextSize = 30 Title.TextXAlignment = Enum.TextXAlignment.Left Credits.Name = "Credits" Credits.Parent = Hub Credits.BackgroundColor3 = Color3.new(1, 1, 1) Credits.BackgroundTransparency = 1 Credits.Position = UDim2.new(0, 50, 0, 0) Credits.Size = UDim2.new(0, 150, 1, -1) Credits.ZIndex = 25 Credits.Font = Enum.Font.SourceSansSemibold Credits.Text = "Created by - Greekazo@v3rmillion.net" Credits.TextColor3 = Color3.new(0.333333, 0.333333, 0.333333) Credits.TextSize = 10 Credits.TextXAlignment = Enum.TextXAlignment.Left Credits.TextYAlignment = Enum.TextYAlignment.Bottom Icon.Name = "Icon" Icon.Parent = Hub Icon.BackgroundColor3 = Color3.new(1, 1, 1) Icon.BackgroundTransparency = 1 Icon.Position = UDim2.new(0, 5, 0, 10) Icon.Size = UDim2.new(0, 40, 0, 40) Icon.ZIndex = 25 Icon.Image = "rbxassetid://2502312317" Exit.Name = "Exit" Exit.Parent = Hub Exit.BackgroundColor3 = Color3.new(1, 1, 1) Exit.BackgroundTransparency = 1 Exit.Position = UDim2.new(1, 0, 0, 0) Exit.Size = UDim2.new(0, 50, 0, 50) Exit.ZIndex = 25 Exit.Image = "rbxassetid://985583019" ShadowHolder_2.Name = "ShadowHolder" ShadowHolder_2.Parent = Exit ShadowHolder_2.BackgroundColor3 = Color3.new(1, 1, 1) ShadowHolder_2.BackgroundTransparency = 1 ShadowHolder_2.ClipsDescendants = true ShadowHolder_2.Size = UDim2.new(1, 10, 1, 0) Shadow_23.Name = "Shadow" Shadow_23.Parent = ShadowHolder_2 Shadow_23.BackgroundColor3 = Color3.new(1, 1, 1) Shadow_23.BackgroundTransparency = 1 Shadow_23.Position = UDim2.new(0, 1, 0, 1) Shadow_23.Size = UDim2.new(0, 50, 0, 50) Shadow_23.ZIndex = 24 Shadow_23.Image = "rbxassetid://985583019" Shadow_23.ImageColor3 = Color3.new(0, 0, 0) Shadow_23.ImageTransparency = 0.85000002384186 Shadow_24.Name = "Shadow" Shadow_24.Parent = ShadowHolder_2 Shadow_24.BackgroundColor3 = Color3.new(1, 1, 1) Shadow_24.BackgroundTransparency = 1 Shadow_24.Position = UDim2.new(0, 2, 0, 2) Shadow_24.Size = UDim2.new(0, 50, 0, 50) Shadow_24.ZIndex = 24 Shadow_24.Image = "rbxassetid://985583019" Shadow_24.ImageColor3 = Color3.new(0, 0, 0) Shadow_24.ImageTransparency = 0.85000002384186 Shadow_25.Name = "Shadow" Shadow_25.Parent = ShadowHolder_2 Shadow_25.BackgroundColor3 = Color3.new(1, 1, 1) Shadow_25.BackgroundTransparency = 1 Shadow_25.Position = UDim2.new(0, 3, 0, 3) Shadow_25.Size = UDim2.new(0, 50, 0, 50) Shadow_25.ZIndex = 24 Shadow_25.Image = "rbxassetid://985583019" Shadow_25.ImageColor3 = Color3.new(0, 0, 0) Shadow_25.ImageTransparency = 0.85000002384186 Tabs.Name = "Tabs" Tabs.Parent = Hub Tabs.BackgroundColor3 = Color3.new(1, 1, 1) Tabs.BackgroundTransparency = 1 Tabs.Position = UDim2.new(0.400000006, 0, 0, 0) Tabs.Size = UDim2.new(0.600000024, 0, 1, 0) Tabs.ZIndex = 25 TabLine.Name = "TabLine" TabLine.Parent = Tabs TabLine.AnchorPoint = Vector2.new(0, 1) TabLine.BackgroundColor3 = Color3.new(0.666667, 0.333333, 1) TabLine.BorderSizePixel = 0 TabLine.Position = UDim2.new(0, 0, 1, 0) TabLine.Size = UDim2.new(0.25, -1, 0, 3) TabLine.ZIndex = 30 Remotes_2.Name = "Remotes" Remotes_2.Parent = Tabs Remotes_2.BackgroundColor3 = Color3.new(1, 1, 1) Remotes_2.BackgroundTransparency = 1 Remotes_2.LayoutOrder = 1 Remotes_2.Size = UDim2.new(0.25, 0, 0, 50) Remotes_2.ZIndex = 25 Remotes_2.Font = Enum.Font.SourceSansBold Remotes_2.Text = "Wait.." Remotes_2.TextColor3 = Color3.new(1, 1, 1) Remotes_2.TextSize = 20 Spys.Name = "Spys" Spys.Parent = Remotes_2 Spys.BackgroundColor3 = Color3.new(1, 1, 1) Spys.BackgroundTransparency = 1 Spys.ClipsDescendants = true Spys.Size = UDim2.new(1, 3, 1.75, 3) Spys.ZIndex = 9 Spyer.Name = "Spyer" Spyer.Parent = Spys Spyer.BackgroundColor3 = Color3.new(0.843137, 0.352941, 0.290196) Spyer.BackgroundTransparency = 1 Spyer.Position = UDim2.new(0, 0, 0, -7) Spyer.Size = UDim2.new(1, -4, 0.5, 3) Spyer.ZIndex = 8 Spyer.Image = "rbxassetid://2052866575" Spyer.ImageColor3 = Color3.new(0, 0.666667, 0.364706) Spyer.ScaleType = Enum.ScaleType.Slice Spyer.SliceCenter = Rect.new(8, 8, 8, 8) Shadow_26.Name = "Shadow" Shadow_26.Parent = Spyer Shadow_26.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) Shadow_26.BackgroundTransparency = 1 Shadow_26.Position = UDim2.new(0, 1, 0, 1) Shadow_26.Size = UDim2.new(1, 0, 1, 0) Shadow_26.ZIndex = 7 Shadow_26.Image = "rbxassetid://2052866575" Shadow_26.ImageColor3 = Color3.new(0, 0, 0) Shadow_26.ImageTransparency = 0.85000002384186 Shadow_26.ScaleType = Enum.ScaleType.Slice Shadow_26.SliceCenter = Rect.new(8, 8, 8, 8) Shadow_27.Name = "Shadow" Shadow_27.Parent = Spyer Shadow_27.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) Shadow_27.BackgroundTransparency = 1 Shadow_27.Position = UDim2.new(0, 2, 0, 2) Shadow_27.Size = UDim2.new(1, 0, 1, 0) Shadow_27.ZIndex = 7 Shadow_27.Image = "rbxassetid://2052866575" Shadow_27.ImageColor3 = Color3.new(0, 0, 0) Shadow_27.ImageTransparency = 0.85000002384186 Shadow_27.ScaleType = Enum.ScaleType.Slice Shadow_27.SliceCenter = Rect.new(8, 8, 8, 8) Shadow_28.Name = "Shadow" Shadow_28.Parent = Spyer Shadow_28.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) Shadow_28.BackgroundTransparency = 1 Shadow_28.Position = UDim2.new(0, 3, 0, 3) Shadow_28.Size = UDim2.new(1, 0, 1, 0) Shadow_28.ZIndex = 7 Shadow_28.Image = "rbxassetid://2052866575" Shadow_28.ImageColor3 = Color3.new(0, 0, 0) Shadow_28.ImageTransparency = 0.85000002384186 Shadow_28.ScaleType = Enum.ScaleType.Slice Shadow_28.SliceCenter = Rect.new(8, 8, 8, 8) Words.Name = "Words" Words.Parent = Spyer Words.BackgroundColor3 = Color3.new(1, 1, 1) Words.BackgroundTransparency = 1 Words.Position = UDim2.new(0, 0, 0.25, -1) Words.Size = UDim2.new(1, 0, 0.75, 0) Words.ZIndex = 8 Words.Font = Enum.Font.SourceSansBold Words.Text = "Greekazo" Words.TextColor3 = Color3.new(1, 1, 1) Words.TextSize = 20 Output_2.Name = "Output" Output_2.Parent = Tabs Output_2.BackgroundColor3 = Color3.new(1, 1, 1) Output_2.BackgroundTransparency = 1 Output_2.LayoutOrder = 2 Output_2.Position = UDim2.new(0.25, 0, 0, 0) Output_2.Size = UDim2.new(0.25, 0, 0, 50) Output_2.ZIndex = 25 Output_2.Font = Enum.Font.SourceSansBold Output_2.Text = "Output" Output_2.TextColor3 = Color3.new(1, 1, 1) Output_2.TextSize = 20 ClearHolder.Name = "ClearHolder" ClearHolder.Parent = Output_2 ClearHolder.BackgroundColor3 = Color3.new(1, 1, 1) ClearHolder.BackgroundTransparency = 1 ClearHolder.ClipsDescendants = true ClearHolder.Size = UDim2.new(1, 3, 1.75, 3) ClearHolder.ZIndex = 9 Clear.Name = "Clear" Clear.Parent = ClearHolder Clear.BackgroundColor3 = Color3.new(0.843137, 0.352941, 0.290196) Clear.BackgroundTransparency = 1 Clear.Position = UDim2.new(0, 0, 0, -7) Clear.Size = UDim2.new(1, -4, 0.5, 3) Clear.ZIndex = 8 Clear.Image = "rbxassetid://2052866575" Clear.ImageColor3 = Color3.new(0.843137, 0.352941, 0.290196) Clear.ScaleType = Enum.ScaleType.Slice Clear.SliceCenter = Rect.new(8, 8, 8, 8) Shadow_29.Name = "Shadow" Shadow_29.Parent = Clear Shadow_29.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) Shadow_29.BackgroundTransparency = 1 Shadow_29.Position = UDim2.new(0, 1, 0, 1) Shadow_29.Size = UDim2.new(1, 0, 1, 0) Shadow_29.ZIndex = 7 Shadow_29.Image = "rbxassetid://2052866575" Shadow_29.ImageColor3 = Color3.new(0, 0, 0) Shadow_29.ImageTransparency = 0.85000002384186 Shadow_29.ScaleType = Enum.ScaleType.Slice Shadow_29.SliceCenter = Rect.new(8, 8, 8, 8) Shadow_30.Name = "Shadow" Shadow_30.Parent = Clear Shadow_30.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) Shadow_30.BackgroundTransparency = 1 Shadow_30.Position = UDim2.new(0, 2, 0, 2) Shadow_30.Size = UDim2.new(1, 0, 1, 0) Shadow_30.ZIndex = 7 Shadow_30.Image = "rbxassetid://2052866575" Shadow_30.ImageColor3 = Color3.new(0, 0, 0) Shadow_30.ImageTransparency = 0.85000002384186 Shadow_30.ScaleType = Enum.ScaleType.Slice Shadow_30.SliceCenter = Rect.new(8, 8, 8, 8) Shadow_31.Name = "Shadow" Shadow_31.Parent = Clear Shadow_31.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255) Shadow_31.BackgroundTransparency = 1 Shadow_31.Position = UDim2.new(0, 3, 0, 3) Shadow_31.Size = UDim2.new(1, 0, 1, 0) Shadow_31.ZIndex = 7 Shadow_31.Image = "rbxassetid://2052866575" Shadow_31.ImageColor3 = Color3.new(0, 0, 0) Shadow_31.ImageTransparency = 0.85000002384186 Shadow_31.ScaleType = Enum.ScaleType.Slice Shadow_31.SliceCenter = Rect.new(8, 8, 8, 8) TextLabel.Parent = Clear TextLabel.BackgroundColor3 = Color3.new(1, 1, 1) TextLabel.BackgroundTransparency = 1 TextLabel.Position = UDim2.new(0, 0, 0.25, -1) TextLabel.Size = UDim2.new(1, 0, 0.75, 0) TextLabel.ZIndex = 8 TextLabel.Font = Enum.Font.SourceSansBold TextLabel.Text = "Clear" TextLabel.TextColor3 = Color3.new(1, 1, 1) TextLabel.TextSize = 20 Explorer_2.Name = "Explorer" Explorer_2.Parent = Tabs Explorer_2.BackgroundColor3 = Color3.new(1, 1, 1) Explorer_2.BackgroundTransparency = 1 Explorer_2.LayoutOrder = 3 Explorer_2.Position = UDim2.new(0.5, 0, 0, 0) Explorer_2.Size = UDim2.new(0.25, 0, 0, 50) Explorer_2.ZIndex = 25 Explorer_2.Font = Enum.Font.SourceSansBold Explorer_2.Text = "Credits" Explorer_2.TextColor3 = Color3.new(1, 1, 1) Explorer_2.TextSize = 20 R2S_2.Name = "R2S" R2S_2.Parent = Tabs R2S_2.BackgroundColor3 = Color3.new(1, 1, 1) R2S_2.BackgroundTransparency = 1 R2S_2.LayoutOrder = 3 R2S_2.Position = UDim2.new(0.75, 0, 0, 0) R2S_2.Size = UDim2.new(0.25, 0, 0, 50) R2S_2.ZIndex = 25 R2S_2.Font = Enum.Font.SourceSansBold R2S_2.Text = "R2S" R2S_2.TextColor3 = Color3.new(1, 1, 1) R2S_2.TextSize = 20 Holder.Name = "Holder" Holder.Parent = MrSpyV2RebugKurokkusGhost Holder.BackgroundColor3 = Color3.new(1, 1, 1) Holder.Size = UDim2.new(0, 100, 0, 100) Holder.Visible = false Icon_2.Name = "Icon" Icon_2.Parent = Holder Icon_2.BackgroundColor3 = Color3.new(1, 1, 1) Icon_2.BackgroundTransparency = 1 Icon_2.ClipsDescendants = true Icon_2.Size = UDim2.new(0, 16, 0, 16) Icon_2.ZIndex = 7 IconMap.Name = "IconMap" IconMap.Parent = Icon_2 IconMap.BackgroundColor3 = Color3.new(1, 1, 1) IconMap.BackgroundTransparency = 1 IconMap.Position = UDim2.new(0, -93, 0, -21) IconMap.Size = UDim2.new(0, 256, 0, 256) IconMap.ZIndex = 7 IconMap.Image = "rbxassetid://483448923" RemoteGrid.Name = "RemoteGrid" RemoteGrid.Parent = Holder RemoteGrid.HorizontalAlignment = Enum.HorizontalAlignment.Right RemoteGrid.CellPadding = UDim2.new(0, 0, 0, 4) RemoteGrid.CellSize = UDim2.new(1, -5, 0, 16) RemoteTemplate.Name = "RemoteTemplate" RemoteTemplate.Parent = Holder RemoteTemplate.BackgroundColor3 = Color3.new(1, 1, 1) RemoteTemplate.BackgroundTransparency = 1 RemoteTemplate.Size = UDim2.new(1, -5, 0, 16) RemoteTemplate.ZIndex = 7 Icon_3.Name = "Icon" Icon_3.Parent = RemoteTemplate Icon_3.BackgroundColor3 = Color3.new(1, 1, 1) Icon_3.BackgroundTransparency = 1 Icon_3.ClipsDescendants = true Icon_3.Size = UDim2.new(0, 16, 0, 16) Icon_3.ZIndex = 7 IconMap_2.Name = "IconMap" IconMap_2.Parent = Icon_3 IconMap_2.BackgroundColor3 = Color3.new(1, 1, 1) IconMap_2.BackgroundTransparency = 1 IconMap_2.Position = UDim2.new(0, -183, 0, -93) IconMap_2.Size = UDim2.new(0, 256, 0, 256) IconMap_2.ZIndex = 7 IconMap_2.Image = "rbxassetid://483448923" RemoteName.Name = "RemoteName" RemoteName.Parent = RemoteTemplate RemoteName.BackgroundColor3 = Color3.new(1, 1, 1) RemoteName.BackgroundTransparency = 1 RemoteName.Position = UDim2.new(0, 20, 0, 0) RemoteName.Size = UDim2.new(0, 200, 0, 16) RemoteName.ZIndex = 7 RemoteName.Font = Enum.Font.SourceSans RemoteName.Text = "GiveMoney" RemoteName.TextColor3 = Color3.new(0.901961, 0.901961, 0.901961) RemoteName.TextSize = 14 RemoteName.TextXAlignment = Enum.TextXAlignment.Left Spy.Name = "Spy" Spy.Parent = RemoteTemplate Spy.BackgroundColor3 = Color3.new(0.235294, 0.235294, 0.235294) Spy.BorderSizePixel = 0 Spy.Position = UDim2.new(0, 82, 0, 0) Spy.Size = UDim2.new(0, 50, 1, 0) Spy.ZIndex = 8 Spy.AutoButtonColor = false Spy.Font = Enum.Font.SourceSansSemibold Spy.Text = "Spy" Spy.TextColor3 = Color3.new(1, 1, 1) Spy.TextSize = 14 Shadow_32.Name = "Shadow" Shadow_32.Parent = Spy Shadow_32.BackgroundColor3 = Color3.new(0, 0, 0) Shadow_32.BackgroundTransparency = 0.80000001192093 Shadow_32.BorderSizePixel = 0 Shadow_32.Position = UDim2.new(0, 1, 0, 1) Shadow_32.Size = UDim2.new(1, 0, 1, 0) Shadow_32.ZIndex = 7 Shadow_33.Name = "Shadow" Shadow_33.Parent = Spy Shadow_33.BackgroundColor3 = Color3.new(0, 0, 0) Shadow_33.BackgroundTransparency = 0.80000001192093 Shadow_33.BorderSizePixel = 0 Shadow_33.Position = UDim2.new(0, 2, 0, 2) Shadow_33.Size = UDim2.new(1, 0, 1, 0) Shadow_33.ZIndex = 7 Shadow_34.Name = "Shadow" Shadow_34.Parent = Spy Shadow_34.BackgroundColor3 = Color3.new(0, 0, 0) Shadow_34.BackgroundTransparency = 0.80000001192093 Shadow_34.BorderSizePixel = 0 Shadow_34.Position = UDim2.new(0, 3, 0, 3) Shadow_34.Size = UDim2.new(1, 0, 1, 0) Shadow_34.ZIndex = 7 View.Name = "View" View.Parent = RemoteTemplate View.BackgroundColor3 = Color3.new(0.235294, 0.235294, 0.235294) View.BorderSizePixel = 0 View.Position = UDim2.new(0, 142, 0, 0) View.Size = UDim2.new(0, 50, 1, 0) View.ZIndex = 8 View.AutoButtonColor = false View.Font = Enum.Font.SourceSansSemibold View.Text = "View" View.TextColor3 = Color3.new(1, 1, 1) View.TextSize = 14 Shadow_35.Name = "Shadow" Shadow_35.Parent = View Shadow_35.BackgroundColor3 = Color3.new(0, 0, 0) Shadow_35.BackgroundTransparency = 0.80000001192093 Shadow_35.BorderSizePixel = 0 Shadow_35.Position = UDim2.new(0, 1, 0, 1) Shadow_35.Size = UDim2.new(1, 0, 1, 0) Shadow_35.ZIndex = 7 Shadow_36.Name = "Shadow" Shadow_36.Parent = View Shadow_36.BackgroundColor3 = Color3.new(0, 0, 0) Shadow_36.BackgroundTransparency = 0.80000001192093 Shadow_36.BorderSizePixel = 0 Shadow_36.Position = UDim2.new(0, 2, 0, 2) Shadow_36.Size = UDim2.new(1, 0, 1, 0) Shadow_36.ZIndex = 7 Shadow_37.Name = "Shadow" Shadow_37.Parent = View Shadow_37.BackgroundColor3 = Color3.new(0, 0, 0) Shadow_37.BackgroundTransparency = 0.80000001192093 Shadow_37.BorderSizePixel = 0 Shadow_37.Position = UDim2.new(0, 3, 0, 3) Shadow_37.Size = UDim2.new(1, 0, 1, 0) Shadow_37.ZIndex = 7 ExplorerTemplate.Name = "ExplorerTemplate" ExplorerTemplate.Parent = Holder ExplorerTemplate.BackgroundColor3 = Color3.new(0.0431373, 0.352941, 0.686275) ExplorerTemplate.BackgroundTransparency = 1 ExplorerTemplate.BorderSizePixel = 0 ExplorerTemplate.Size = UDim2.new(0, 275, 0, 20) ExplorerTemplate.ZIndex = 7 Arrow.Name = "Arrow" Arrow.Parent = ExplorerTemplate Arrow.BackgroundColor3 = Color3.new(1, 1, 1) Arrow.BackgroundTransparency = 1 Arrow.ClipsDescendants = true Arrow.Position = UDim2.new(0, 0, 0, 2) Arrow.Size = UDim2.new(0, 16, 0, 16) Arrow.ZIndex = 8 Open.Name = "Open" Open.Parent = Arrow Open.BackgroundColor3 = Color3.new(1, 1, 1) Open.BackgroundTransparency = 1 Open.Size = UDim2.new(1, 0, 1, 0) Open.ZIndex = 8 Open.Font = Enum.Font.SourceSans Open.Text = "" Open.TextColor3 = Color3.new(0, 0, 0) Open.TextSize = 14 IconMap_3.Name = "IconMap" IconMap_3.Parent = Arrow IconMap_3.BackgroundColor3 = Color3.new(1, 1, 1) IconMap_3.BackgroundTransparency = 1 IconMap_3.Position = UDim2.new(0, -219, 0, -201) IconMap_3.Size = UDim2.new(0, 256, 0, 256) IconMap_3.ZIndex = 8 IconMap_3.Image = "rbxassetid://483448923" Icon_4.Name = "Icon" Icon_4.Parent = ExplorerTemplate Icon_4.BackgroundColor3 = Color3.new(1, 1, 1) Icon_4.BackgroundTransparency = 1 Icon_4.ClipsDescendants = true Icon_4.Position = UDim2.new(0, 20, 0, 2) Icon_4.Size = UDim2.new(0, 16, 0, 16) Icon_4.ZIndex = 8 IconMap_4.Name = "IconMap" IconMap_4.Parent = Icon_4 IconMap_4.BackgroundColor3 = Color3.new(1, 1, 1) IconMap_4.BackgroundTransparency = 1 IconMap_4.Position = UDim2.new(0, -93, 0, -21) IconMap_4.Size = UDim2.new(0, 256, 0, 256) IconMap_4.ZIndex = 8 IconMap_4.Image = "rbxassetid://483448923" InstanceName.Name = "InstanceName" InstanceName.Parent = ExplorerTemplate InstanceName.BackgroundColor3 = Color3.new(0.0431373, 0.352941, 0.686275) InstanceName.BackgroundTransparency = 1 InstanceName.BorderSizePixel = 0 InstanceName.Position = UDim2.new(0, 42, 0, 0) InstanceName.Size = UDim2.new(0, 275, 1, 0) InstanceName.ZIndex = 8 InstanceName.Font = Enum.Font.SourceSans InstanceName.Text = "Workspace" InstanceName.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314) InstanceName.TextSize = 14 InstanceName.TextXAlignment = Enum.TextXAlignment.Left Open_2.Name = "Open" Open_2.Parent = InstanceName Open_2.BackgroundColor3 = Color3.new(1, 1, 1) Open_2.BackgroundTransparency = 1 Open_2.Size = UDim2.new(1, 0, 1, 0) Open_2.ZIndex = 8 Open_2.Font = Enum.Font.SourceSans Open_2.Text = "" Open_2.TextColor3 = Color3.new(0, 0, 0) Open_2.TextSize = 14 Holder_2.Name = "Holder" Holder_2.Parent = ExplorerTemplate Holder_2.BackgroundColor3 = Color3.new(1, 1, 1) Holder_2.BackgroundTransparency = 1 Holder_2.Position = UDim2.new(0, 20, 0, 20) Holder_2.Size = UDim2.new(1, 0, 0, 20) Holder_2.ZIndex = 8 BG_5.Name = "BG" BG_5.Parent = ExplorerTemplate BG_5.BackgroundColor3 = Color3.new(0.0431373, 0.352941, 0.686275) BG_5.BackgroundTransparency = 1 BG_5.BorderSizePixel = 0 BG_5.Position = UDim2.new(0, 16, 0, 0) BG_5.Size = UDim2.new(0, 100, 1, 0) BG_5.ZIndex = 7 RemoteOutputTemplate.Name = "RemoteOutputTemplate" RemoteOutputTemplate.Parent = Holder RemoteOutputTemplate.BackgroundColor3 = Color3.new(1, 1, 1) RemoteOutputTemplate.BackgroundTransparency = 1 RemoteOutputTemplate.Size = UDim2.new(1, -5, 0, 16) RemoteOutputTemplate.ZIndex = 7 Icon_5.Name = "Icon" Icon_5.Parent = RemoteOutputTemplate Icon_5.BackgroundColor3 = Color3.new(1, 1, 1) Icon_5.BackgroundTransparency = 1 Icon_5.ClipsDescendants = true Icon_5.Size = UDim2.new(0, 16, 0, 16) Icon_5.ZIndex = 7 IconMap_5.Name = "IconMap" IconMap_5.Parent = Icon_5 IconMap_5.BackgroundColor3 = Color3.new(1, 1, 1) IconMap_5.BackgroundTransparency = 1 IconMap_5.Position = UDim2.new(0, -183, 0, -93) IconMap_5.Size = UDim2.new(0, 256, 0, 256) IconMap_5.ZIndex = 7 IconMap_5.Image = "rbxassetid://483448923" RemoteName_2.Name = "RemoteName" RemoteName_2.Parent = RemoteOutputTemplate RemoteName_2.BackgroundColor3 = Color3.new(1, 1, 1) RemoteName_2.BackgroundTransparency = 1 RemoteName_2.Position = UDim2.new(0, 20, 0, 0) RemoteName_2.Size = UDim2.new(1, -20, 0, 16) RemoteName_2.ZIndex = 7 RemoteName_2.Font = Enum.Font.SourceSans RemoteName_2.Text = "GiveMoney | Args: {}" RemoteName_2.TextColor3 = Color3.new(0.901961, 0.901961, 0.901961) RemoteName_2.TextSize = 14 RemoteName_2.TextXAlignment = Enum.TextXAlignment.Left R2S_3.Name = "R2S" R2S_3.Parent = RemoteOutputTemplate R2S_3.BackgroundColor3 = Color3.new(0.235294, 0.235294, 0.235294) R2S_3.BorderSizePixel = 0 R2S_3.Position = UDim2.new(0, 82, 0, 0) R2S_3.Size = UDim2.new(0, 50, 1, 0) R2S_3.ZIndex = 8 R2S_3.AutoButtonColor = false R2S_3.Font = Enum.Font.SourceSansSemibold R2S_3.Text = "R2S" R2S_3.TextColor3 = Color3.new(1, 1, 1) R2S_3.TextSize = 14 Shadow_38.Name = "Shadow" Shadow_38.Parent = R2S_3 Shadow_38.BackgroundColor3 = Color3.new(0, 0, 0) Shadow_38.BackgroundTransparency = 0.80000001192093 Shadow_38.BorderSizePixel = 0 Shadow_38.Position = UDim2.new(0, 1, 0, 1) Shadow_38.Size = UDim2.new(1, 0, 1, 0) Shadow_38.ZIndex = 7 Shadow_39.Name = "Shadow" Shadow_39.Parent = R2S_3 Shadow_39.BackgroundColor3 = Color3.new(0, 0, 0) Shadow_39.BackgroundTransparency = 0.80000001192093 Shadow_39.BorderSizePixel = 0 Shadow_39.Position = UDim2.new(0, 2, 0, 2) Shadow_39.Size = UDim2.new(1, 0, 1, 0) Shadow_39.ZIndex = 7 Shadow_40.Name = "Shadow" Shadow_40.Parent = R2S_3 Shadow_40.BackgroundColor3 = Color3.new(0, 0, 0) Shadow_40.BackgroundTransparency = 0.80000001192093 Shadow_40.BorderSizePixel = 0 Shadow_40.Position = UDim2.new(0, 3, 0, 3) Shadow_40.Size = UDim2.new(1, 0, 1, 0) Shadow_40.ZIndex = 7 getfenv().script = Instance.new('LocalScript', MrSpyV2RebugKurokkusGhost) repeat wait() until game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart") local Hub = script.Parent.Hub local plr = game:GetService("Players").LocalPlayer local Animate = Hub.Main.Animate local Animate_Time = 30 local Exit = Hub.Exit local colSize = 14 script.Parent.Hub.Draggable = true local Tabs = Hub.Tabs local TF = Hub.Main.TabsFolder local Remotes = TF.Remotes local Output = TF.Output local Supplies = script.Parent.Holder local Opened = true; local OutputTab = Tabs.Output local RemoteTab = Tabs.Remotes local Explorer = TF.Explorer local R2S = TF.R2S local Instances = { ["BadgeService"] = 76; ["Humanoid"] = 10; ["GuiService"] = 48; ["CylinderHandleAdornment"] = 55; ["BallSocketConstraint"] = 90; ["BrickColorValue"] = 5; ["Accoutrement"] = 33; ["AdService"] = 74; ["AssetService"] = 73; ["GuiMain"] = 48; ["ImageButton"] = 53; ["HapticService"] = 85; ["DialogChoice"] = 64; ["Handles"] = 54; ["ReflectionMetadataClasses"] = 87; ["JointInstance"] = 35; ["AnimationController"] = 61; ["RemoteEvent"] = 81; ["CollectionService"] = 31; ["Smoke"] = 60; ["Configuration"] = 59; ["KeyframeSequenceProvider"] = 61; ["Accessory"] = 33; ["SelectionPointLasso"] = 58; ["GamePassService"] = 20; ["CFrameValue"] = 5; ["TextureTrail"] = 5; ["ImageLabel"] = 50; ["ReflectionMetadataMember"] = 87; ["Animation"] = 61; ["IntConstrainedValue"] = 5; ["HttpService"] = 77; ["PointLight"] = 14; ["Model"] = 3; ["DoubleConstrainedValue"] = 5; ["Snap"] = 35; ["BodyAngularVelocity"] = 15; ["VelocityMotor"] = 35; ["RocketPropulsion"] = 15; ["SurfaceSelection"] = 56; ["CoreGui"] = 47; ["Part"] = 2; ["ReplicatedFirst"] = 73; ["BindableEvent"] = 68; ["SelectionPartLasso"] = 58; ["NegateOperation"] = 79; ["PyramidPart"] = 2; ["ArcHandles"] = 57; ["Hint"] = 34; ["Players"] = 22; ["Script"] = 7; ["ParallelRampPart"] = 2; ["RayValue"] = 5; ["LineHandleAdornment"] = 55; ["Camera"] = 6; ["RunService"] = 67; ["BodyForce"] = 15; ["KeyframeSequence"] = 61; ["ServerScriptService"] = 1; ["BillboardGui"] = 65; ["BodyThrust"] = 15; ["RemoteFunction"] = 80; ["Team"] = 25; ["Sound"] = 12; ["GuiButton"] = 53; ["Workspace"] = 20; ["Lighting"] = 14; ["JointsService"] = 35; ["BlurEffect"] = 91; ["WedgePart"] = 2; ["BloomEffect"] = 91; ["ReflectionMetadata"] = 87; ["Vector3Value"] = 5; ["PointsService"] = 84; ["UserInputService"] = 85; ["Sparkles"] = 43; ["BodyGyro"] = 15; ["Rotate"] = 35; ["HopperBin"] = 23; ["ForceField"] = 38; ["Tool"] = 18; ["Texture"] = 11; ["Teams"] = 24; ["ReflectionMetadataFunctions"] = 87; ["RodConstraint"] = 90; ["Folder"] = 71; ["BodyVelocity"] = 15; ["Shirt"] = 44; ["SlidingBallConstraint"] = 90; ["Animator"] = 61; ["TextButton"] = 52; ["Color3Value"] = 5; ["TextBox"] = 52; ["NetworkReplicator"] = 30; ["Platform"] = 36; ["TerrainRegion"] = 66; ["SkateboardPlatform"] = 36; ["Seat"] = 36; ["Terrain"] = 66; ["Explosion"] = 37; ["BlockMesh"] = 9; ["TeleportService"] = 82; ["PlayerGui"] = 47; ["TextLabel"] = 51; ["SurfaceLight"] = 14; ["SurfaceGui"] = 65; ["Debris"] = 31; ["FlagStand"] = 40; ["StarterPack"] = 21; ["BindableFunction"] = 67; ["ReflectionMetadataCallbacks"] = 87; ["NetworkClient"] = 17; ["ModuleScript"] = 72; ["Flag"] = 39; ["Status"] = 3; ["ParticleEmitter"] = 70; ["StarterPlayer"] = 89; ["StringValue"] = 5; ["ObjectValue"] = 5; ["CharacterMesh"] = 61; ["StarterGui"] = 47; ["ReplicatedStorage"] = 73; ["StarterCharacterScripts"] = 83; ["NetworkServer"] = 16; ["Backpack"] = 21; ["ReflectionMetadataEnum"] = 87; ["StarterPlayerScripts"] = 83; ["SpotLight"] = 14; ["CustomEventReceiver"] = 5; ["SphereHandleAdornment"] = 55; ["SoundService"] = 32; ["SpecialMesh"] = 9; ["SpawnLocation"] = 26; ["PlayerScripts"] = 83; ["PartPairLasso"] = 58; ["ColorCorrectionEffect"] = 91; ["UnionOperation"] = 78; ["Sky"] = 29; ["MoveToConstraint"] = 90; ["RopeConstraint"] = 90; ["RightAngleRampPart"] = 2; ["ShirtGraphic"] = 41; ["ScreenGui"] = 48; ["SelectionSphere"] = 55; ["RotateV"] = 35; ["SelectionBox"] = 55; ["VehicleSeat"] = 36; ["CustomEvent"] = 5; ["Chat"] = 34; ["ServerStorage"] = 75; ["Selection"] = 56; ["IntValue"] = 5; ["RotateP"] = 35; ["FloorWire"] = 5; ["TrussPart"] = 2; ["StarterGear"] = 21; ["ReflectionMetadataYieldFunctions"] = 87; ["ReflectionMetadataProperties"] = 87; ["ReflectionMetadataEvents"] = 87; ["ReflectionMetadataEnums"] = 87; ["ReflectionMetadataEnumItem"] = 87; ["ReflectionMetadataClass"] = 87; ["PrismPart"] = 2; ["BinaryStringValue"] = 5; ["Glue"] = 35; ["PrismaticConstraint"] = 90; ["TouchTransmitter"] = 38; ["CornerWedgePart"] = 2; ["PathfindingService"] = 38; ["SpringConstraint"] = 90; ["Fire"] = 62; ["Pants"] = 45; ["NumberValue"] = 5; ["TestService"] = 69; ["Motor6D"] = 35; ["Motor"] = 35; ["CylindricalConstraint"] = 90; ["MarketplaceService"] = 47; ["CoreScript"] = 19; ["CylinderMesh"] = 9; ["ConeHandleAdornment"] = 55; ["SunRaysEffect"] = 91; ["LocalScript"] = 19; ["Weld"] = 35; ["Attachment"] = 35; ["BoolValue"] = 5; ["Dialog"] = 63; ["Pose"] = 61; ["Decal"] = 8; ["Hat"] = 46; ["AnimationTrack"] = 61; ["ClickDetector"] = 42; ["Frame"] = 49; ["LogService"] = 88; ["FileMesh"] = 9; ["InsertService"] = 73; ["HingeConstraint"] = 90; ["Message"] = 34; ["Player"] = 13; ["ContextActionService"] = 42; ["ContentProvider"] = 73; ["BodyPosition"] = 15; ["BoxHandleAdornment"] = 55; ["ScrollingFrame"] = 49; ["Keyframe"] = 61; } function LoadIcon(service, frame, numb) if Instances[service] or numb then local row = 1 local col = 0 if numb then for i = 1,numb do if i > colSize*row then col = 1 row = row+1 else col = col+1 end end else for i = 1,Instances[service] do if i > colSize*row then col = 1 row = row+1 else col = col+1 end end end frame.IconMap.Position = UDim2.new(0,(-3+(-18*col))+18,0,(-3+(-18*row))+18) end end Exit.MouseEnter:Connect(function() game:GetService("TweenService"):Create(Exit, TweenInfo.new(0.1), { ['ImageColor3'] = Color3.fromRGB(200,200,200); }):Play(); end) Exit.MouseLeave:Connect(function() game:GetService("TweenService"):Create(Exit, TweenInfo.new(0.1), { ['ImageColor3'] = Color3.fromRGB(255,255,255); }):Play(); end) Exit.MouseButton1Down:Connect(function() Opened = false Hub:TweenPosition(UDim2.new(0.5,0,1.1,0),"InOut","Sine",0.25,true) end) Hub.MouseEnter:Connect(function() game:GetService("TweenService"):Create(Hub, TweenInfo.new(0.1), { ['BackgroundColor3'] = Color3.fromRGB(50,50,50); }):Play(); end) Hub.MouseLeave:Connect(function() game:GetService("TweenService"):Create(Hub, TweenInfo.new(0.1), { ['BackgroundColor3'] = Color3.fromRGB(40, 40, 40); }):Play(); end) local CHO = false local BTH = false OutputTab.ClearHolder.MouseEnter:Connect(function() CHO = true end) OutputTab.ClearHolder.MouseLeave:Connect(function() CHO = false end) OutputTab.MouseEnter:Connect(function() BTH = true OutputTab.ClearHolder.Clear:TweenPosition(UDim2.new(0,0,0.5,-7),"InOut","Sine",0.2,true) repeat wait() until not BTH or not CHO OutputTab.ClearHolder.Clear:TweenPosition(UDim2.new(0,0,0,-7),"InOut","Sine",0.2,true) end) local SH = false local RH = false RemoteTab.Spys.MouseEnter:Connect(function() SH = true end) RemoteTab.Spys.MouseLeave:Connect(function() SH = false end) RemoteTab.MouseEnter:Connect(function() RH = true RemoteTab.Spys.Spyer:TweenPosition(UDim2.new(0,0,0.5,-7),"InOut","Sine",0.2,true) repeat wait() until not SH or not RH RemoteTab.Spys.Spyer:TweenPosition(UDim2.new(0,0,0,-7),"InOut","Sine",0.2,true) end) function OpenUI() if Opened then Opened = not Opened Hub:TweenPosition(UDim2.new(0.5,0,1.1,0),"InOut","Sine",0.25,true) else Opened = not Opened Hub:TweenPosition(UDim2.new(0.5,0,0.35,0),"InOut","Sine",0.25,true) end end plr.Chatted:Connect(function(msg) if msg:lower() == "/e open" then OpenUI() end end) game:GetService("UserInputService").InputBegan:Connect(function(input, proc) if not proc and input.KeyCode == Enum.KeyCode.F4 then OpenUI() end end) function SwitchTab(tab,x) Tabs.TabLine:TweenPosition(UDim2.new(x,0,1,0),"InOut","Sine",0.25,true) if tab == "Remotes" then TF.Remotes:TweenPosition(UDim2.new(0,0,0,0),"InOut","Sine",0.25,true) TF.Output:TweenPosition(UDim2.new(1,0,0,0),"InOut","Sine",0.25,true) TF.Explorer:TweenPosition(UDim2.new(2,0,0,0),"InOut","Sine",0.25,true) TF.R2S:TweenPosition(UDim2.new(3,0,0,0),"InOut","Sine",0.25,true) elseif tab == "Output" then TF.Remotes:TweenPosition(UDim2.new(-1,0,0,0),"InOut","Sine",0.25,true) TF.Output:TweenPosition(UDim2.new(0,0,0,0),"InOut","Sine",0.25,true) TF.Explorer:TweenPosition(UDim2.new(1,0,0,0),"InOut","Sine",0.25,true) TF.R2S:TweenPosition(UDim2.new(2,0,0,0),"InOut","Sine",0.25,true) elseif tab == "Explorer" then TF.Remotes:TweenPosition(UDim2.new(-2,0,0,0),"InOut","Sine",0.25,true) TF.Output:TweenPosition(UDim2.new(-1,0,0,0),"InOut","Sine",0.25,true) TF.Explorer:TweenPosition(UDim2.new(0,0,0,0),"InOut","Sine",0.25,true) TF.R2S:TweenPosition(UDim2.new(1,0,0,0),"InOut","Sine",0.25,true) elseif tab == "R2S" then TF.Remotes:TweenPosition(UDim2.new(-3,0,0,0),"InOut","Sine",0.25,true) TF.Output:TweenPosition(UDim2.new(-2,0,0,0),"InOut","Sine",0.25,true) TF.Explorer:TweenPosition(UDim2.new(-1,0,0,0),"InOut","Sine",0.25,true) TF.R2S:TweenPosition(UDim2.new(0,0,0,0),"InOut","Sine",0.25,true) end end for i,v in pairs(Tabs:GetChildren()) do if v:IsA("TextButton") then v.MouseButton1Down:Connect(function() SwitchTab(v.Name,v.Position.X.Scale) end) end end local Ignores = { ["CharacterSoundEvent"] = true; ["MovementUpdate"] = true; ["OnNewMessage"] = true; ["OnMessageDoneFiltering"] = true; ["OnNewSystemMessage"] = true; ["OnChannelJoined"] = true; ["OnChannelLeft"] = true; ["OnMuted"] = true; ["OnUnmuted"] = true; ["OnMainChannelSet"] = true; ["ChannelNameColorUpdated"] = true; ["SayMessageRequest"] = true; ["SetBlockedUserIdsRequest"] = true; ["GetInitDataRequest"] = true; ["MutePlayerRequest"] = true; ["UnMutePlayerRequest"] = true; ["DefaultServerSoundEvent"] = true; ["AddCharacterLoadedEvent"] = true; ["RemoveCharacterEvent"] = true; ["SoundDispatcher"] = true; ["GamepadNotifications"] = true; ["SendNotificationInfo"] = true; ["FollowRelationshipChanged"] = true; ["NewFollower"] = true; ["GetFollowRelationships"] = true; ["SetPlayerBlockList"] = true; ["UpdatePlayerBlockList"] = true; ["SetDialogInUse"] = true; ["GetServerVersion"] = true; } local RemotesToSpy = {} local SpyingRemotes = {} local BiggestTB = 0; function UpdateOutput() Output.OutputWindow.CanvasSize = UDim2.new(0,89+BiggestTB,0,(#Output.OutputWindow:GetChildren()*20)+1) end function ClearOutput() BiggestTB = 0 Output.OutputWindow:ClearAllChildren() UpdateOutput() end OutputTab.ClearHolder.Clear.MouseButton1Down:Connect(function() BTH = false CHO = false ClearOutput() end) local TextToCopy = "" function LoadR2S(obj,args) R2S.Warning.Visible = false R2S.Window.Visible = true local InstancesTable = {} local String = "" for i in string.gmatch(obj:GetFullName(),".") do if i == "." then InstancesTable[#InstancesTable+1] = String String = "" else String = String .. i end end InstancesTable[#InstancesTable+1] = String local TextToLoad = [[local Remote; for i, v in pairs(getreg()) do if typeof(v) == "function" then for i2, v2 in pairs(getupvalues(v)) do if typeof(v2) == "table" and rawget(v2, "em") and rawget(v2, "Fireworks") then if(#getupvalues(v2.Event.FireServer) ~= 1) then assert(false, "You are currently not able to use this script. It may be because of you running it twice or too many times!"); else Remote = v2.Event; end; end; end; end; end;]] TextToLoad = TextToLoad.."\n\nlocal Arguments = " local function GenerateScript() local Tabs = 0 local function AddTabs() if Tabs == 0 then return end for i = 0,Tabs do TextToLoad = TextToLoad.." " end end local IgnoreCommaBreak = false local last = "" for i in string.gmatch(args,".") do if i == "{" then TextToLoad = TextToLoad.."{\n" Tabs = Tabs + 1 AddTabs() elseif i == "}" then TextToLoad = TextToLoad.."\n" Tabs = Tabs - 1 AddTabs() TextToLoad = TextToLoad.."}" elseif i == "(" then IgnoreCommaBreak = true TextToLoad = TextToLoad..i elseif i == ")" and IgnoreCommaBreak then IgnoreCommaBreak = false TextToLoad = TextToLoad..i elseif i == "," and not IgnoreCommaBreak then TextToLoad = TextToLoad..",\n" AddTabs() elseif i == " " and last == "," then --lol goteeem im doing nothing here cuz it's mainly for visuals else TextToLoad = TextToLoad..i end last = i end end GenerateScript() TextToLoad = TextToLoad.."\nRemote:FireServer(unpack(Arguments));" TextToCopy = TextToLoad R2S.Window.ScriptWindow.RemoteScript.Text = TextToLoad R2S.Window.ScriptWindow.CanvasSize = UDim2.new(0,R2S.Window.ScriptWindow.RemoteScript.TextBounds.X+6,0,R2S.Window.ScriptWindow.RemoteScript.TextBounds.Y+6) end R2S.Window.CopyClip.MouseEnter:Connect(function() game:GetService("TweenService"):Create(R2S.Window.CopyClip, TweenInfo.new(0.1), { ['BackgroundColor3'] = Color3.fromRGB(60, 60, 60); }):Play(); end) R2S.Window.CopyClip.MouseLeave:Connect(function() game:GetService("TweenService"):Create(R2S.Window.CopyClip, TweenInfo.new(0.1), { ['BackgroundColor3'] = Color3.fromRGB(50, 50, 50); }):Play(); end) R2S.Window.CopyClip.MouseButton1Down:Connect(function() R2S.Window.CopyClip.BackgroundColor3 = Color3.fromRGB(100, 100, 100) game:GetService("TweenService"):Create(R2S.Window.CopyClip, TweenInfo.new(0.1), { ['BackgroundColor3'] = Color3.fromRGB(50, 50, 50); }):Play(); if setclipboard then setclipboard(TextToCopy) elseif toclipboard then toclipboard(TextToCopy) elseif syn and syn.write_clipboard then syn.write_clipboard(TextToCopy) end end) local ViewDB = false function AddToOutput(obj,args) local temp = Supplies.RemoteOutputTemplate:Clone() temp.RemoteName.Text = obj.Name.." | Args: "..args LoadIcon(obj.ClassName,temp.Icon) temp.Position = UDim2.new(0,5,0,#Output.OutputWindow:GetChildren()*20) temp.Parent = Output.OutputWindow temp.R2S.Position = UDim2.new(0,25+temp.RemoteName.TextBounds.X,0,0) if temp.RemoteName.TextBounds.X >= BiggestTB then BiggestTB = temp.RemoteName.TextBounds.X end UpdateOutput() temp.R2S.MouseEnter:Connect(function() game:GetService("TweenService"):Create(temp.R2S, TweenInfo.new(0.1), { ['BackgroundColor3'] = Color3.fromRGB(75,75,75); }):Play(); end) temp.R2S.MouseLeave:Connect(function() game:GetService("TweenService"):Create(temp.R2S, TweenInfo.new(0.1), { ['BackgroundColor3'] = Color3.fromRGB(60, 60, 60); }):Play(); end) temp.R2S.MouseButton1Down:Connect(function() if not ViewDB then ViewDB = true LoadR2S(obj,args) SwitchTab("R2S",0.75) wait(0.5) ViewDB = false end end) end --Do Spy stuff boyssssss local IgnoreThis = { GetSetting = true; GetSelection = true; SelectionChanged = true; GetAwaiting = true; } function GetType(item) if type(item) == "string" then return "\""..item.."\"" elseif type(item) == "table" then local str = "{" local max = 0 local numb = 1 for i,v in pairs(item) do max = max+1 end for i,v in pairs(item) do if numb == max then str = str.."["..GetType(i).."] = "..GetType(v) else str = str.."["..GetType(i).."] = "..GetType(v)..", " end numb = numb + 1 end str = str.."}" return str elseif type(item) == "userdata" then local a,b = pcall(function() return item.ClassName end) if a then return item:GetFullName() else if tostring(b):match("not a valid member of %w+") then local c, d = tostring(b):match("not a valid member of %w+"):find("of ") local class = tostring(b):match("not a valid member of %w+"):sub(d+1) return class..".new(".. tostring(item) ..")" end end else return tostring(item) end end function ReturnArgs(...) local args = {...} local list = "" local max = 0 local numb = 1 for i,v in pairs(args) do max = max + 1 end for i,v in pairs(args) do if numb == max then list = list..GetType(v) else list = list..GetType(v)..", " end numb = numb + 1 end list=list return list end local mt = getrawmetatable(game) local old_n = mt.__namecall if setreadonly then setreadonly(mt, false) elseif make_writeable then make_writeable(mt) end local protect = newcclosure or protect_function or function(f) return f end local Client = {} for i,v in next, getgc() do if typeof(v) == "table" and rawget(v, "FireServer") then Client.FireServerT = v; end end function IsValidUser(username) for _, v in next, game:GetService("Players"):GetPlayers() do if v.Name == username then return true; end end return false; end function GetSpamHash() local FunctionIndex = 0; for i,v in next, getgc() do if typeof(v) == "function" and islclosure(v) and getfenv(v).script.Name == "LocalScript" then if tostring(getfenv(v).script.Parent) == "PlayerScripts" then for i2,v2 in next, getupvalues(v) do if typeof(v2) == "table" and i2 == 1 and getupvalues(v)[2] then for i3,v3 in next, v2 do if IsValidUser(tostring(i3)) then return getinfo(v).name; end end end end end end end warn("Nothing found!") return nil; end local SpamHash = GetSpamHash(); if SpamHash == nil then Remotes_2.Text = "Patched!" Remotes_2.TextColor3 = Color3.fromRGB(255,0,0) else Remotes_2.Text = "Working!" Remotes_2.TextColor3 = Color3.fromRGB(0, 255, 153) end assert(SpamHash, "The RemoteSpy is not up-to-date! Please contact the owner/author for a fixed version."); local old = Client.FireServerT.FireServer local Shit = Instance.new("RemoteEvent") Client.FireServerT.FireServer = function(a,...) local Args = {...} if Args[1] and Args[1] ~= SpamHash then AddToOutput(Shit,ReturnArgs(Args)) end return old(a,...) end local BiggestR = 0; function UpdateRemotes() Remotes.CanvasSize = UDim2.new(0,144+BiggestR,0,(#Remotes:GetChildren()-1)*20) end function Spy(temp,bool) if not bool then temp.Spy.Text = "Spy" game:GetService("TweenService"):Create(temp.Spy, TweenInfo.new(0.5), { ['TextColor3'] = Color3.fromRGB(255,255,255); }):Play(); else temp.Spy.Text = "Spying" game:GetService("TweenService"):Create(temp.Spy, TweenInfo.new(0.5), { ['TextColor3'] = Color3.fromRGB(17, 170, 73); }):Play(); end end function LoadExplorer(obj) Explorer.Window.ExplorerWindow:ClearAllChildren() Explorer.Window.ExplorerWindow.CanvasSize = UDim2.new(0,0,0,0) Explorer.Warning.Visible = false Explorer.Window.Visible = true local InstancesTable = {} local String = "" for i in string.gmatch(obj:GetFullName(),".") do if i == "." then InstancesTable[#InstancesTable+1] = String String = "" else String = String .. i end end InstancesTable[#InstancesTable+1] = String local ClassTable = {} local function Check(obj,pos) if obj:FindFirstChild(InstancesTable[pos]) then ClassTable[pos] = obj:FindFirstChild(InstancesTable[pos]) if InstancesTable[pos+1] then Check(obj:FindFirstChild(InstancesTable[pos]),pos+1) end end end Check(game,1) local last for i,v in pairs(InstancesTable) do local temp = Supplies.ExplorerTemplate:Clone() temp.Name = v temp.InstanceName.Text = v LoadIcon(((ClassTable[i] and ClassTable[i].ClassName) or "Folder"),temp.Icon) if ClassTable[i] then if #ClassTable[i]:GetChildren() > 0 then temp.Arrow.Visible = true else temp.Arrow.Visible = false end end if last then temp.Parent = last.Holder else temp.Parent = Explorer.Window.ExplorerWindow end temp.BG.Size = UDim2.new(0,temp.InstanceName.TextBounds.X+36,1,0) temp.InstanceName.Size = UDim2.new(0,temp.InstanceName.TextBounds.X+10,1,0) last = temp temp.InstanceName.MouseEnter:Connect(function() game:GetService("TweenService"):Create(temp.BG, TweenInfo.new(0.1), { ['BackgroundTransparency'] = 0.5; }):Play(); end) temp.InstanceName.MouseLeave:Connect(function() game:GetService("TweenService"):Create(temp.BG, TweenInfo.new(0.1), { ['BackgroundTransparency'] = 1; }):Play(); end) temp.Arrow.Open.MouseEnter:Connect(function() game:GetService("TweenService"):Create(temp.Arrow.IconMap, TweenInfo.new(0.1), { ['ImageColor3'] = Color3.fromRGB(200,200,200); }):Play(); end) temp.Arrow.Open.MouseLeave:Connect(function() game:GetService("TweenService"):Create(temp.Arrow.IconMap, TweenInfo.new(0.1), { ['ImageColor3'] = Color3.fromRGB(255,255,255); }):Play(); end) temp.Arrow.Open.MouseButton1Down:Connect(function() if temp.Holder.Visible then temp.Holder.Visible = false LoadIcon(nil,temp.Arrow,166) else temp.Holder.Visible = true LoadIcon(nil,temp.Arrow,167) end end) temp.InstanceName.Open.MouseButton1Down:Connect(function() if temp.Holder.Visible then temp.Holder.Visible = false LoadIcon(nil,temp.Arrow,166) else temp.Holder.Visible = true LoadIcon(nil,temp.Arrow,167) end end) end Explorer.Window.ExplorerWindow.CanvasSize = UDim2.new(0,(last.AbsolutePosition.X-Explorer.AbsolutePosition.X)+50+last.InstanceName.TextBounds.X,0,(20*#InstancesTable)+5) end local AllStuff = {} function MakeRemote(obj) local temp = Supplies.RemoteTemplate:Clone() temp.RemoteName.Text = obj.Name LoadIcon(obj.ClassName,temp.Icon) temp.Parent = Remotes temp.Spy.Position = UDim2.new(0,25+temp.RemoteName.TextBounds.X,0,0) temp.View.Position = UDim2.new(0,80+temp.RemoteName.TextBounds.X,0,0) if temp.RemoteName.TextBounds.X >= BiggestR then BiggestR = temp.RemoteName.TextBounds.X end RemotesToSpy[obj] = temp AllStuff[temp] = obj temp.Spy.MouseEnter:Connect(function() game:GetService("TweenService"):Create(temp.Spy, TweenInfo.new(0.1), { ['BackgroundColor3'] = Color3.fromRGB(75,75,75); }):Play(); end) temp.Spy.MouseLeave:Connect(function() game:GetService("TweenService"):Create(temp.Spy, TweenInfo.new(0.1), { ['BackgroundColor3'] = Color3.fromRGB(60, 60, 60); }):Play(); end) temp.View.MouseEnter:Connect(function() game:GetService("TweenService"):Create(temp.View, TweenInfo.new(0.1), { ['BackgroundColor3'] = Color3.fromRGB(75,75,75); }):Play(); end) temp.View.MouseLeave:Connect(function() game:GetService("TweenService"):Create(temp.View, TweenInfo.new(0.1), { ['BackgroundColor3'] = Color3.fromRGB(60, 60, 60); }):Play(); end) temp.Spy.MouseButton1Down:Connect(function() if SpyingRemotes[obj] then SpyingRemotes[obj] = nil Spy(temp,false) else SpyingRemotes[obj] = true Spy(temp,true) end end) temp.View.MouseButton1Down:Connect(function() if not ViewDB then ViewDB = true LoadExplorer(obj) SwitchTab("Explorer",0.5) wait(0.5) ViewDB = false end end) end local SpyingDB = false RemoteTab.Spys.Spyer.MouseButton1Down:Connect(function() if not SpyingDB then SpyingDB = true game:GetService("TweenService"):Create(RemoteTab.Spys.Spyer, TweenInfo.new(0.1), { ['ImageColor3'] = Color3.fromRGB(215, 90, 74); }):Play(); RemoteTab.Spys.Spyer.Words.Text = "Greekazo" for i,v in pairs(Remotes:GetChildren()) do if v:IsA("Frame") then Spy(v,true) if AllStuff[v] then SpyingRemotes[AllStuff[v]] = true end end end else SpyingDB = false game:GetService("TweenService"):Create(RemoteTab.Spys.Spyer, TweenInfo.new(0.1), { ['ImageColor3'] = Color3.fromRGB(0, 170, 93); }):Play(); RemoteTab.Spys.Spyer.Words.Text = "Greekazo" for i,v in pairs(Remotes:GetChildren()) do if v:IsA("Frame") then Spy(v,false) if AllStuff[v] then SpyingRemotes[AllStuff[v]] = nil end end end end end) function CreateListener() for i,v in pairs(game:GetChildren()) do local suc, err = pcall(function() v:GetChildren() end) if suc then v.DescendantAdded:Connect(function(obj) if RemoteIgnores[obj.ClassName] and not Ignores[obj.Name] then MakeRemote(obj) UpdateRemotes() end end) v.DescendantRemoving:Connect(function(obj) if RemoteIgnores[obj.ClassName] and not Ignores[obj.Name] then RemotesToSpy[obj]:Destroy() RemotesToSpy[obj] = nil SpyingRemotes[obj] = nil end end) end end end spawn(function()CreateListener()end) spawn(function() while true do for i = 0,100 do Tabs.TabLine.BackgroundColor3 = Color3.fromHSV(i/100,0.75,0.75) wait() end end end) spawn(function() while true do Animate.Texture:TweenPosition(UDim2.new(-2,0,-2,0),"Out","Linear",Animate_Time,true) Animate.Texture2:TweenPosition(UDim2.new(0,0,0,0),"Out","Linear",Animate_Time,true) Animate.Texture3:TweenPosition(UDim2.new(-2,0,0,0),"Out","Linear",Animate_Time,true) Animate.Texture4:TweenPosition(UDim2.new(0,0,-2,0),"Out","Linear",Animate_Time,true) wait(Animate_Time) Animate.Texture.Position = UDim2.new(2,0,2,0) Animate.Texture3.Position = UDim2.new(0,0,2,0) Animate.Texture4.Position = UDim2.new(2,0,0,0) Animate.Texture2:TweenPosition(UDim2.new(-2,0,-2,0),"Out","Linear",Animate_Time,true) Animate.Texture:TweenPosition(UDim2.new(0,0,0,0),"Out","Linear",Animate_Time,true) Animate.Texture3:TweenPosition(UDim2.new(-2,0,0,0),"Out","Linear",Animate_Time,true) Animate.Texture4:TweenPosition(UDim2.new(0,0,-2,0),"Out","Linear",Animate_Time,true) wait(Animate_Time) Animate.Texture2.Position = UDim2.new(2,0,2,0) Animate.Texture3.Position = UDim2.new(0,0,2,0) Animate.Texture4.Position = UDim2.new(2,0,0,0) end end)
--USAGE -- Add an empty object with transform and tag it as "Ambient". -- The object will be automatically added to the list of points that will be randomly chosen to play a random sfx from a list found below -- VARIABLES =================================================================== local constructed = false local audioPoints = nil local player = nil local player_transform = nil distanceAway = 100 local playIntervals = { 3, 4, 5, 6 } local playIndex = 1 local timer = 0 local randomDelay = 0 local tekong_sfx = { "Tekong_Ocean_Wavebreak_1", "Tekong_Ocean_Wavebreak_2", "Tekong_Ocean_Wavebreak_3", "Tekong_Ocean_Wavebreak_4" } local chinatown_sfx = { "Amb_Wind_Lowloop_-AllLoc-", "Amb_Wind_Normloop_-AllLoc-", "Chinatown_Wind_Normalloop" } local changi_sfx = { "ambient_airplane_1", "ambient_airplane_2" } local yishun_sfx = { "Amb_Birds_Tek-Chin-Chan-Yis" } local sfx_list = nil -- FUNCTIONS =================================================================== function Constructor() end function MyConstructor() layer = owner:GetLayer() audioPoints = layer:GetObjectsListByTag("Ambient") player = layer:GetObject("Player") player_transform = player:GetComponent("Transform") levelName = PlayerPref_GetString ("CurrentLevel") if (levelName == "Level_Tekong") then sfx_list = tekong_sfx playIndex = 1 distanceAway = 100 elseif (levelName == "Level_ChinaTown") then sfx_list = chinatown_sfx playIndex = 2 distanceAway = 30 elseif (levelName == "Level_Changi") then sfx_list = changi_sfx playIndex = 3 distanceAway = 150 elseif (levelName == "Level_Yishun") then sfx_list = yishun_sfx playIndex = 4 else write("AmbientAudioController: Your level is not valid. Please try again.") end end function OnUpdate(dt) if (constructed == false) then MyConstructor() constructed = true end if (timer > playIntervals[playIndex] + randomDelay) then rand = RandomRangeInt(1, #sfx_list) --Pick randomly from all those that is close enough to player arr = {} curr = 1 for i = 1, #audioPoints do if (player_transform ~= nil) then distanceVec = audioPoints[i]:GetComponent("Transform"):GetWorldPosition() - player_transform:GetWorldPosition() if (VectorLength(distanceVec) < distanceAway) then arr[curr] = audioPoints[i] curr = curr + 1 end end end randpt = RandomRangeInt(1, #arr) --write("Play index: ", playIndex) --write("Playing ", sfx_list[rand], " at ", arr[randpt]:GetComponent("Transform"):GetWorldPosition(), ", ", arr[randpt]:Name()) AudioSystem_PlayAudioAtLocation(sfx_list[rand], arr[randpt]:GetComponent("Transform"):GetWorldPosition(), 1, 50, 500) timer = 0 randomDelay = RandomRange(0,2) else timer = timer + dt end end
local _CUR = ... local _M = { InitializeTimer = cc.import(".InitializeTimer", _CUR), } return _M