content
stringlengths
5
1.05M
ENHANCE_X=350 ENHANCE_Y_3=300 ENHANCE_Y_15=480 ENHANCE_Y_30=660 ENHANCE_FUZZY_NUM=70 function main() mSleep(3000); -- snapshotScreen("/var/touchelf/x.bmp"); -- snapshotRegion("/var/touchelf/x1.bmp",528,70,548,110); -- snapshotRegion("/var/touchelf/x2.bmp",528,310,548,350); -- snapshotRegion("/var/touchelf/x3.bmp",528,550,548,590); -- snapshotRegion("/var/touchelf/x4.bmp",528,790,548,830); -- x, y =findImageInRegionFuzzy("/private/var/touchelf/scripts/bmp/npc1.bmp",80,528,60,570,120); -- notifyMessage(x); -- notifyMessage(y); -- r,g,b = getColorRGB(520, 240); findEnhanceColor(); -- logDebug(a .. " " .. c .. " " .. e); -- logDebug(b .. " " .. d .. " " .. f); -- r,g,b = getColorRGB(350,470); -- logDebug(r .. " " .. g .. " " .. b); -- r,g,b = getColorRGB(350,350); -- logDebug(r .. " " .. g .. " " .. b); -- x, y =findColorInRegion(0xdc5fa1,350,670,350,670); -- notifyMessage(x .. ", " .. y); -- x, y =findColorInRegion(0xd2bb74,143,465,143,465); -- notifyMessage(x .. ", " .. y); -- x, y =findColorInRegion(0x74575b,143,685,143,685); -- notifyMessage(x .. ", " .. y); end function findEnhanceColor() r,g,b = getColorRGB(ENHANCE_X, ENHANCE_Y_3); color3 = getColorHuman(r, g, b); color3hex = rgb2Hex(r, g, b); r,g,b = getColorRGB(ENHANCE_X, ENHANCE_Y_15); color15 = getColorHuman(r, g, b); color15hex = rgb2Hex(r, g, b); r,g,b = getColorRGB(ENHANCE_X, ENHANCE_Y_30); color30 = getColorHuman(r, g, b); color30hex = rgb2Hex(r, g, b); logDebug("find colors: " .. color3hex .. " " .. color15hex .. " " .. color30hex); logDebug("find colors: " .. color3 .. " " .. color15 .. " " .. color30); return color3, color15, color30; end function getColorHuman(r, g, b) -- ff0000 if r > 127 and g < 127 and b < 127 then return 'red'; end -- 00ff00 if r < 127 and g > 127 and b < 127 then return 'green'; end -- 0000ff -- exception of g if r < 127 and g > 127 and b > 127 then return 'blue'; end -- ffff00 if r > 127 and g > 127 and b < 127 then return 'yellow'; end -- ff00ff if r > 127 and g < 127 and b > 127 then return 'purple'; end logDebug('color not recognized'); return 'wrong'; end function hex(n) if n > 255 then n = 255; end return lpad(string.format("%x", n)); end function rgb2Hex(r, g, b) return hex(r) .. hex(g) .. hex(b); end function lpad(r) if string.len(r) == 1 then r = "0" .. r; end return r; end
return LoadFont("Common Normal") .. { Text=ScreenString("Feet"); BeginCommand=function(self) self:AddAttribute(5, {Length= 4, Diffuse=Color.Red}) end; };
-- This file is part of SUIT, copyright (c) 2016 Matthias Richter local BASE = (...) .. "." local suit = require(BASE .. "core") local instance = suit.new() return setmetatable({ _instance = instance, new = suit.new, getOptionsAndSize = suit.getOptionsAndSize, -- core functions setHovered = function(...) return instance:setHovered(...) end, anyHovered = function(...) return instance:anyHovered(...) end, isHovered = function(...) return instance:isHovered(...) end, wasHovered = function(...) return instance:wasHovered(...) end, anyActive = function(...) return instance:anyActive(...) end, setActive = function(...) return instance:setActive(...) end, isActive = function(...) return instance:isActive(...) end, setHit = function(...) return instance:setHit(...) end, anyHit = function(...) return instance:anyHit(...) end, isHit = function(...) return instance:isHit(...) end, mouseInRect = function(...) return instance:mouseInRect(...) end, registerHitbox = function(...) return instance:registerHitbox(...) end, registerMouseHit = function(...) return instance:registerMouseHit(...) end, mouseReleasedOn = function(...) return instance:mouseReleasedOn(...) end, updateMouse = function(...) return instance:updateMouse(...) end, getMousePosition = function(...) return instance:getMousePosition(...) end, getPressedKey = function(...) return instance:getPressedKey(...) end, keypressed = function(...) return instance:keypressed(...) end, textinput = function(...) return instance:textinput(...) end, textedited = function(...) return instance:textedited(...) end, grabKeyboardFocus = function(...) return instance:grabKeyboardFocus(...) end, hasKeyboardFocus = function(...) return instance:hasKeyboardFocus(...) end, keyPressedOn = function(...) return instance:keyPressedOn(...) end, enterFrame = function(...) return instance:enterFrame(...) end, exitFrame = function(...) return instance:exitFrame(...) end, registerDraw = function(...) return instance:registerDraw(...) end, draw = function(...) return instance:draw(...) end, -- widgets Button = function(...) return instance:Button(...) end, ImageButton = function(...) return instance:ImageButton(...) end, Label = function(...) return instance:Label(...) end, Checkbox = function(...) return instance:Checkbox(...) end, Input = function(...) return instance:Input(...) end, Slider = function(...) return instance:Slider(...) end, -- layout layout = instance.layout }, { -- theme __newindex = function(t, k, v) if k == "theme" then instance.theme = v else rawset(instance, k, v) end end, __index = function(t, k) return k == "theme" and instance.theme or rawget(t, k) end, })
return { "001_200_to_210", }
HedgewarsScriptLoad("/Scripts/Locale.lua") HedgewarsScriptLoad("/Scripts/Params.lua") local gravity = 100 local mingravity local maxgravity local mingravity_normal local maxgravity_normal local mingravity_low local maxgravity_low local delta = 0 local period local periodtimer = 0 local wdGameTicks = 0 local wdTTL = 0 local mln = 1000000 local lowGravityUsed = false local script2_onNewTurn local script2_onGameTick20 local script2_onGameInit local script2_onHogAttack function grav_onNewTurn() lowGravityUsed = false if maxgravity_normal == nil then gravity = mingravity_normal else mingravity = mingravity_normal maxgravity = maxgravity_normal if period > 0 then delta = div(maxgravity_normal - mingravity_normal, period) end end if delta ~= nil and period == nil then SetGravity(gravity) else SetGravity(div(gravity, mln)) end wdGameTicks = GameTime if script2_onNewTurn ~= nil then script2_onNewTurn() end end function grav_onGameTick20() if wdGameTicks + 15000 < GameTime then SetGravity(100) else if wdTTL ~= TurnTimeLeft then wdGameTicks = GameTime end if delta == nil then if periodtimer == 0 then periodtimer = period * 2 SetGravity(div(GetRandom(maxgravity - mingravity + 1) + mingravity, mln)) else periodtimer = periodtimer - 1 end elseif delta == 0 then SetGravity(gravity) else if delta > 0 and gravity + delta > maxgravity then gravity = maxgravity delta = -delta elseif delta < 0 and gravity + delta < mingravity then gravity = mingravity delta = -delta else gravity = gravity + delta end SetGravity(div(gravity, mln)) end end wdTTL = TurnTimeLeft if script2_onGameTick20 ~= nil then script2_onGameTick20() end end function onParameters() parseParams() gravity = tonumber(params["g"]) or gravity mingravity_normal = gravity if mingravity_normal > 0 then mingravity_low = div(mingravity_normal, 2) else mingravity_low = mingravity_normal * 2 end mingravity = mingravity_normal if type(tonumber(params["g2"])) == "number" then maxgravity_normal = tonumber(params["g2"]) if maxgravity_normal > 0 then maxgravity_low = div(maxgravity_normal, 2) else maxgravity_low = maxgravity_normal * 2 end maxgravity = maxgravity_normal end period = params["period"] if type(mingravity) == "number" and type(maxgravity) == "number" then if period ~= nil then period = div(period, 40) else period = 125 end mingravity = mingravity * mln mingravity_normal = mingravity_normal * mln mingravity_low = mingravity_low * mln maxgravity = maxgravity * mln maxgravity_normal = maxgravity_normal * mln maxgravity_low = maxgravity_low * mln if mingravity > maxgravity then mingravity, maxgravity = maxgravity, mingravity mingravity_normal, maxgravity_normal = maxgravity_normal, mingravity_normal mingravity_low, maxgravity_low = maxgravity_low, mingravity_low end gravity = mingravity if period > 0 then delta = div(maxgravity_normal - mingravity_normal, period) else period = -period delta = nil end end secondScript = params["script2"] if secondScript ~= nil then onParameters = nil HedgewarsScriptLoad("/Scripts/Multiplayer/" .. secondScript .. ".lua") script2_onNewTurn = onNewTurn script2_onGameTick20 = onGameTick20 script2_onGameInit = onGameInit script2_onHogAttack = onHogAttack if onParameters ~= nil then onParameters() end end onNewTurn = grav_onNewTurn onGameTick20 = grav_onGameTick20 onGameInit = grav_onGameInit onHogAttack = grav_onHogAttack end function grav_onGameInit() DisableGameFlags(gfLowGravity) local v, printperiod if period ~= nil then local period_ms = period * 40 if period_ms % 1000 == 0 then printperiod = string.format(loc("%i s"), div(period_ms, 1000)) else printperiod = string.format(loc("%i ms"), period_ms) end end if delta == nil then v = string.format(loc("Crazy Gravity: Gravity randomly changes within a range from %i%% to %i%% with a period of %s"), div(mingravity_normal, mln), div(maxgravity_normal, mln), printperiod) elseif period ~= nil then v = string.format(loc("Oscillating Gravity: Gravity periodically changes within a range from %i%% to %i%% with a period of %s"), div(mingravity_normal, mln), div(maxgravity_normal, mln), printperiod) elseif gravity > 100 then v = string.format(loc("High Gravity: Gravity is %i%%"), gravity) elseif gravity < 100 then v = string.format(loc("Low Gravity: Gravity is %i%%"), gravity) else v = loc("Gravity: 100%") .. "|" .. loc("Script parameter examples:") .. "|" .. loc("“g=150”, where 150 is 150% of normal gravity.") .. "|" .. loc("“g=50, g2=150, period=4000” for gravity changing|from 50 to 150 and back with period of 4000 ms.") .. "|" .. loc("Set period to negative value for random gravity.") end Goals = v if script2_onGameInit ~= nil then script2_onGameInit() end end function grav_onHogAttack(ammoType) if ammoType == amLowGravity then lowGravityUsed = true if maxgravity_normal == nil then gravity = mingravity_low else mingravity = mingravity_low maxgravity = maxgravity_low if period > 0 then delta = div(maxgravity_low - mingravity_low, period) end end end if script2_onHogAttack ~= nil then script2_onHogAttack() end end
local tree_cb = require'nvim-tree.config'.nvim_tree_callback vim.g.nvim_tree_bindings = { { key = '<C-k>', cb = tree_cb('prev_sibling') }, { key = '<C-j>', cb = tree_cb('next_sibling') }, }
levels[15]={timeBetweenParticleCreation=150,numPortExplosionsWeight=150,numDiverterExplosionsWeight=50,numAntimatterExplosionsWeight=150,numParticlesInSinkWeight=75,numParticlesInPrisonWeight=75,weightBreakForTwoStars=400,weightBreakForThreeStars=600,background="3",particleSpeed=2,maxParticles=4,particlesToComplete=5,powerupFrequency=600,powerupProbability=90,antimatterProbability=70,data={{"_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_"},{"_","R","*","*","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","N","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","G","*","*","*","*","_"},{"_","*","*","*","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","*","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","*","*","*","*","*","_"},{"_","*","*","*","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","*","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","*","*","*","*","*","_"},{"_","*","*","*","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","V","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","*","*","*","*","*","_"},{"_","*","*","*","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","V","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","*","*","*","*","*","_"},{"_","_","_","V","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","D","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","V","_","_","_"},{"_","_","_","A","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","*","*","*","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","S","_","_","_"},{"_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","*","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_"},{"_","_","_","_","Q","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","W","_","_","_","V","_","_","_","Q","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","W","_","_","_","_"},{"_","_","_","_","V","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","V","_","_","_","V","_","_","_","V","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","V","_","_","_","_"},{"_","_","_","_","V","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","V","_","_","_","V","_","_","_","V","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","V","_","_","_","_"},{"_","E","*","*","*","*","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","V","_","_","_","V","_","_","_","V","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","E","*","*","*","*","*","*","_"},{"_","*","*","*","*","*","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","V","_","_","_","V","_","_","_","V","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","*","*","*","*","*","*","*","_"},{"_","*","*","*","*","*","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","D","*","*","_","D","*","*","_","D","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","*","*","*","*","*","*","*","_"},{"_","*","*","*","*","*","*","*","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","*","*","*","H","*","*","*","H","*","*","*","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","*","*","*","*","*","*","*","_"},{"_","*","*","*","*","*","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","*","*","*","_","*","*","*","_","*","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","*","*","*","*","*","*","*","_"},{"_","*","*","*","*","*","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","V","_","_","_","V","_","_","_","V","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","*","*","*","*","*","*","*","_"},{"_","*","*","*","*","*","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","V","_","_","_","V","_","_","_","V","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","*","*","*","*","*","*","*","_"},{"_","_","_","_","V","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","V","_","_","_","V","_","_","_","V","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","V","_","_","_","_"},{"_","_","_","_","V","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","V","_","_","_","V","_","_","_","V","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","V","_","_","_","_"},{"_","_","_","_","A","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","S","_","_","_","V","_","_","_","A","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","S","_","_","_","_"},{"_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","D","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_"},{"_","_","_","Q","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","*","*","*","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","H","W","_","_","_"},{"_","_","_","V","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","*","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","V","_","_","_"},{"_","G","*","*","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","V","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","Y","*","*","*","*","_"},{"_","*","*","*","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","V","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","*","*","*","*","*","_"},{"_","*","*","*","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","I","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","*","*","*","*","*","_"},{"_","*","*","*","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","*","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","*","*","*","*","*","_"},{"_","*","*","*","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","*","*","*","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","*","*","*","*","*","_"},{"_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_","_"}},numPortExplosionsWeight=150,numDiverterExplosionsWeight=50,numAntimatterExplosionsWeight=150,numParticlesInSinkWeight=75,numParticlesInPrisonWeight=75};
package.path = package.path .. ";../../?.lua" local util = require("util.util") local cjson = require("cjson.safe") function mock_ngx(mock) local _ngx = mock setmetatable(_ngx, {__index = _G.ngx}) _G.ngx = _ngx end describe('Busted unit testing framework', function() before_each(function() mock_ngx({ ERR = "error", log = print }) end) describe('should be awesome', function() it('should be easy to use', function() local ruleParser = require("util.rule_parser") local raw =[[ { "items": [{ "conditions": [ { "@userIdBetween": ["0~1999"] }], "name": "center" }, { "conditions": [{ "@userIdBetween": ["2000~9999"] }], "name": "unit" }], "itemType": "UnitRuleItem" } ]] local json = cjson.decode(raw) local currentRule = ruleParser.doParseMapping(json) print(util.stringifyTable(currentRule)) end) end) end)
local gen_def = dofile(minetest.get_modpath("more_chests") .. "/utils/base.lua") local actions = dofile(minetest.get_modpath("more_chests") .. "/utils/actions.lua") local S = minetest.get_translator("more_chests") local function get_formspec(string) return "size[8,10]" .. default.gui_bg .. default.gui_bg_img .. default.gui_slots .. "list[current_name;main;0,0.3;8,4;]" .. "list[current_player;main;0,4.85;8,1;]" .. "list[current_player;main;0,6;8,3;8]" .. "field[.25,9.5;8,1;shared;" .. S("Shared with (separate names with spaces)") .. ":;" .. string .. "]" .. "button[6,9.2;2,1;submit;" .. S("submit") .. "]" .. "listring[current_name;main]" .. "listring[current_player;main]" .. default.get_hotbar_bg(0,4.85) end local function check_privs(meta, player) local name = player:get_player_name() local shared = " " .. meta:get_string("shared") .. " " if name == meta:get_string("owner") then return true elseif shared:find(" " .. name .. " ") then return true else return false end end local shared = gen_def({ description = S("Shared Chest"), type = "shared chest", size = "small", tiles = { top = "shared_top.png", side = "shared_side.png", front = "shared_front.png" }, formspec = get_formspec(""), pipeworks_enabled = true, sounds = default.node_sound_wood_defaults(), allow_metadata_inventory_move = actions.get_allow_metadata_inventory_move{"shared chest", check_privs=check_privs}, allow_metadata_inventory_put = actions.get_allow_metadata_inventory_put{"shared chest", check_privs=check_privs}, allow_metadata_inventory_take = actions.get_allow_metadata_inventory_take{"shared chest", check_privs=check_privs}, }) shared.on_receive_fields = function(pos, formspec, fields, sender) local meta = minetest.get_meta(pos); if fields.shared then if meta:get_string("owner") == sender:get_player_name() then meta:set_string("shared", fields.shared) meta:set_string("formspec", get_formspec(fields.shared)) end end end minetest.register_node("more_chests:shared", shared) minetest.register_craft({ output = "more_chests:shared", recipe = { {"group:wood", "default:leaves", "group:wood"}, {"group:wood", "default:steel_ingot", "group:wood"}, {"group:wood", "group:wood", "group:wood"} } })
local keepScroll = false function onCreate() if getPropertyFromClass('ClientPrefs', 'downScroll') == true then keepScroll = true; elseif getPropertyFromClass('ClientPrefs', 'upScroll') == false then setPropertyFromClass('ClientPrefs', 'downScroll', true); end end function onDestroy() if keepScroll == false then setPropertyFromClass('ClientPrefs', 'downScroll', false); elseif keepScroll == true then keepScroll = false; end end
-- Copyright (c) 2019 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT local names = require "cello.names.init" for _ = 1, 100 do print(names.generate("human", "male")) end for _ = 1, 100 do print(names.generate("human", "female")) end
error("NYI: love.filesystem support") local fs = require("love.filesystem") assert(pcall(love.filesystem.init, ".")) assert(pcall(love.filesystem.setSource, "C:\\"))
local function transformBack(position, itemId, transformId) local item = Tile(position):getItemById(itemId) if item then item:transform(transformId) position:sendMagicEffect(CONST_ME_MAGIC_GREEN) end end function onUse(player, item, fromPosition, target, toPosition, isHotkey) if target.itemid ~= 7178 then return false end if player:getStorageValue(Storage.TheIceIslands.Questline) == 8 then toPosition:sendMagicEffect(CONST_ME_MAGIC_GREEN) player:setStorageValue(Storage.TheIceIslands.PaintSeal, player:getStorageValue(Storage.TheIceIslands.PaintSeal) + 1) if player:getStorageValue(Storage.TheIceIslands.PaintSeal) == 2 then player:setStorageValue(Storage.TheIceIslands.Questline, 9) player:setStorageValue(Storage.TheIceIslands.Mission04, 2) -- Questlog The Ice Islands Quest, Nibelor 3: Artful Sabotage end player:say('You painted a baby seal.', TALKTYPE_MONSTER_SAY) target:transform(7252) addEvent(transformBack, 30 * 1000, toPosition, 7252, 7178) end return true end
local computer = require("computer") local MineOSCore = require("MineOSCore") local icon, menu = args[1], args[2] menu:addItem(MineOSCore.localization.setAsWallpaper).onTouch = function() MineOSCore.properties.wallpaperEnabled = true MineOSCore.properties.wallpaper = icon.path MineOSCore.saveProperties() computer.pushSignal("MineOSCore", "updateWallpaper") end
-- debug function DumpComponent( comp ) for name,value in pairs(comp) do if type(value) == "function" then -- local info = debug.getinfo(value,"LnS") -- print(string.format(" %s = function - %s", name, info.source..":"..tostring(info.linedefined))) else if value and type(value) == "table" and value.IsValid and type(value.IsValid) == "function" then print(string.format(" %s = %s (valid:%s)", name, tostring(value),tostring(value:IsValid()))) else print(string.format(" %s = %s", name, tostring(value))) end end end end function DumpEntity(ent) print("============================================ Dumping entity ",ent,"============================================") print(ent.entity:GetDebugString()) print("--------------------------------------------------------------------------------------------------------------------") for name,value in pairs(ent) do if type(value) == "function" then -- local info = debug.getinfo(value,"LnS") -- print(string.format(" %s = function - %s", name, info.source..":"..tostring(info.linedefined))) else if value and type(value) == "table" and value.IsValid and type(value.IsValid) == "function" then print(string.format(" %s = %s (valid:%s)", name, tostring(value),tostring(value:IsValid()))) else print(string.format(" %s = %s", name, tostring(value))) end end end print("--------------------------------------------------------------------------------------------------------------------") for i,v in pairs(ent.components) do print(" Dumping component",i) DumpComponent(v) end print("====================================================================================================================================") end -- debug end PrefabFiles = { } Assets = { Asset("SOUND", "sound/rabbit.fsb"), Asset("SOUND", "sound/mole.fsb"), } STRINGS = GLOBAL.STRINGS function TableMerge(t1, t2) for k,v in pairs(t2) do if type(v) == "table" then if type(t1[k] or false) == "table" then TableMerge(t1[k] or {}, t2[k] or {}) else t1[k] = v end else t1[k] = v end end return t1 end NEWSTRINGS = GLOBAL.require("preservefoodstrings") GLOBAL.STRINGS = TableMerge(GLOBAL.STRINGS, NEWSTRINGS) -- constants TUNING.CHILL_DURATION = TUNING.TOTAL_DAY_TIME / 8 TUNING.STALE_MULT = 0.75 TUNING.SPOILED_MULT = 0.5 TUNING.WETNESS = 50 -- configuration if (GetModConfigData("chill_duration") == "low") then TUNING.CHILL_DURATION = TUNING.TOTAL_DAY_TIME / 16 end if (GetModConfigData("chill_duration") == "high") then TUNING.CHILL_DURATION = TUNING.TOTAL_DAY_TIME / 4 end if (GetModConfigData("chill_wetness") == "low") then TUNING.WETNESS = 40 end if (GetModConfigData("chill_wetness") == "high") then TUNING.WETNESS = 80 end -- what to do when chilling starts function chill(act) -- print("chilling...") -- DumpEntity(act.target) if act.target.prefab == "rabbit" then act.target.SoundEmitter:PlaySound("dontstarve/rabbit/scream_short") return false end if act.target.prefab == "mole" then act.target.SoundEmitter:PlaySound("dontstarve_DLC001/creatures/mole/pickup") -- moles eat ice act.invobject.components.stackable:Get(1):Remove() return true end if act.target.components.perishable == nil or act.target.components.chiller ~= nil or (act.target.components.edible == nil and act.target.prefab ~= "hambat") or act.target.components.chillable == nil then return false end print("starting to chill on chillable component...") local chill_duration = TUNING.CHILL_DURATION if act.invobject.components.perishable ~= nil then if act.invobject.components.perishable:IsStale() then chill_duration = chill_duration * TUNING.STALE_MULT elseif act.invobject.components.perishable:IsSpoiled() then chill_duration = chill_duration * TUNING.SPOILED_MULT end end if act.target.components.stackable ~= nil then print("is stackable: " .. act.target.components.stackable.stacksize) chill_duration = chill_duration / act.target.components.stackable.stacksize end act.target.components.chillable:Chill(chill_duration) act.invobject.components.stackable:Get(1):Remove() return true end -- new GLOBAL Action "CHILL" AddAction('CHILL', 'Chill', chill) -- Chilling Action takes some time AddStategraphActionHandler('wilson_client', GLOBAL.ActionHandler(GLOBAL.ACTIONS.CHILL, "dolongaction")) AddStategraphActionHandler('wilson', GLOBAL.ActionHandler(GLOBAL.ACTIONS.CHILL, "dolongaction")) -- what to do when player is trying to use an item with chiller component -- mostly a check whether to provide the CHILL action or not based hovered item function chiller(inst, doer, target, actions, right) -- print("using item with component chiller on something " .. tostring(right)) -- DumpEntity(target) if right and (target:HasTag("fresh") or target:HasTag("stale") or target:HasTag("spoiled")) then -- print("match!") table.insert(actions, GLOBAL.ACTIONS.CHILL) end end -- every prefab with the chiller component can be used in inventory AddComponentAction("USEITEM", "chiller", chiller) -- code below this statement is only executed on servers and not on clients if not GLOBAL.TheNet:GetIsServer() then return end -- ice adjustments: ---------------- -- all ice prefabs have the chiller component function tuwas(inst) inst:AddComponent("chiller") end AddPrefabPostInit("ice", tu_was) -- stackable adjustments: ---------- local function stackable_stuff(self, inst) -- overwrite Get and Put local old_get = self.Get self.Get = function(self, num) -- print("stackable: Get " .. tostring(self) .. " " ..tostring(num)) local return_instance = old_get(self, num) -- basically copy the current chillable effect from one stack to the new one local num_to_get = num or 1 -- partly taken from stackable.lua:59 if self.stacksize > num_to_get then if self.inst.components.chillable ~= nil then if self.inst.components.chillable.chilled_until ~= nil then print("stackable: ChillUntil " .. self.inst.components.chillable.chilled_until) return_instance.components.chillable:ChillUntil(self.inst.components.chillable.chilled_until) end end end return return_instance end local old_put = self.Put self.Put = function(self, item, source_pos) -- partly taken from stackable.lua:90 -- print("stackable: Put " .. tostring(self) .. " " ..tostring(item) .. " " .. tostring(source_pos)) -- the following condition expects that --- both inst have chillable --- or both inst don't have chillable if item.prefab == self.inst.prefab and item.skinname == self.inst.skinname then -- dilute the chillable effect in the new stack if self.inst.components.chillable ~= nil and item.components.chillable ~= nil then local newtotal = self.stacksize + item.components.stackable.stacksize local newsize = math.min(self.maxsize, self.stacksize + item.components.stackable.stacksize) local number_added = newsize - self.stacksize print("stackable: Put " .. tostring(self) .. " " ..tostring(item) .. " " .. tostring(source_pos)) self.inst.components.chillable:Dilute(item.components.chillable:GetChilledUntil(), number_added) end end return old_put(self, item, source_pos) end end AddComponentPostInit("stackable", stackable_stuff) -- other miscellaneous adjustments for specific items: ------ local function add_chillable_to_perishable(component, inst) inst:AddComponent("chillable") end local function overwrite_hambat_damage(inst) -- chillable component is added via perishable -- overwrite damage -- chilled hambats are harder! if inst.components.weapon ~= nil then local old_setdamage = inst.components.weapon.SetDamage inst.components.weapon.SetDamage = function(self, dmg) local new_dmg = dmg if inst.components.chillable ~= nil then if inst.components.chillable:GetChilledUntil() ~= nil then new_dmg = new_dmg * 1.1 end end old_setdamage(self, new_dmg) end end end local function overwrite_edible_oneaten_temperature(self, inst) inst:AddComponent("chillable") local old_oneaten = self.OnEaten self.OnEaten = function(oneaten_self, eater) -- local old_edible_component_temperaturedelta = self.temperaturedelta -- local old_edible_component_temperatureduration = self.temperatureduration -- KÜHLENDE TEMPERATUR SETZEN if inst.components.chillable ~= nil then if inst.components.chillable:GetChilledUntil() ~= nil then self.temperaturedelta = TUNING.COLD_FOOD_BONUS_TEMP self.temperatureduration = TUNING.FOOD_TEMP_BRIEF end end -- STANDARD DS ZEUG old_oneaten(oneaten_self, eater) -- KÜHLENDE TEMPERATUR ZURÜCKSETZEN -- if inst.components.chillable ~= nil then -- if inst.components.chillable:GetChilledUntil() ~= nil then -- self.temperaturedelta = old_edible_component_temperaturedelta -- self.temperatureduration = old_edible_component_temperatureduration -- end -- end end end AddComponentPostInit("perishable", add_chillable_to_perishable) AddPrefabPostInit("hambat", overwrite_hambat_damage) AddComponentPostInit("edible", overwrite_edible_oneaten_temperature)
---------------------------------------------------------------------------------------------------- -- Client Lua Script for RaidCore Addon on WildStar Game. -- -- Copyright (C) 2015 RaidCore ---------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------- -- Description: -- Using the Large Training Grounds fabkit it is possible to spawn enemies. -- There are 4 different modes: easy, normal, hard, elite. In each mode you get -- a random enemy out of 3 possibilities. -- These enemies have atleast one cast each and some of them have buffs and debuffs -- Easy: -- Chompacabra: Applies bleed debuff on the player -- Chompacabra: Applies melt debuff on the player -- Moodie: Applies melt debuff on the player -- Hard: -- Krogg: Applies a crit buff on himself -- -- It's not possible to control what enemy you want to get so it's recommended -- to use the easy mode since there are 2 mobs there that will apply debuffs -- on the player. ---------------------------------------------------------------------------------------------------- local Apollo = require "Apollo" local ChatSystemLib = require "ChatSystemLib" local GameLib = require "GameLib" local core = Apollo.GetPackage("Gemini:Addon-1.1").tPackage:GetAddon("RaidCore") --@alpha@ local mod = core:NewEncounter("HousingTest", 36, 0, 60, true) --@end-alpha@ if not mod then return end ---------------------------------------------------------------------------------------------------- -- Registering combat. ---------------------------------------------------------------------------------------------------- local TRIG_MOBS = { -- Easy. "unit.chompacabra", "unit.moodie", "unit.aggressorbot", -- Normal. "unit.bandit", "unit.girrok", "unit.shootbot", -- Hard. "unit.pumera", "unit.osun", "unit.krogg", -- Elite. "unit.ravenok", "unit.pell", "unit.titan", -- Extra units "unit.ai", "unit.computer", } mod:RegisterTrigMob(core.E.TRIGGER_ANY, TRIG_MOBS) mod:RegisterEnglishLocale({ -- Unit names. -- Easy. ["unit.chompacabra"] = "Holographic Chompacabra", ["unit.moodie"] = "Holographic Moodie", ["unit.aggressorbot"] = "Holographic Aggressorbot", -- Normal. ["unit.bandit"] = "Holographic Bandit", ["unit.girrok"] = "Holographic Girrok", ["unit.shootbot"] = "Holographic Shootbot", -- Hard. ["unit.pumera"] = "Holographic Pumera", ["unit.osun"] = "Holographic Osun", ["unit.krogg"] = "Holographic Krogg", -- Elite. ["unit.ravenok"] = "Holographic Ravenok", ["unit.pell"] = "Holographic Pell", ["unit.titan"] = "Holographic Titan", ["unit.buffer"] = "Invisible Unit s71975 - Aquatic Buffer", -- titan cast, -- Extra units. ["unit.ai"] = "SDC-AI", ["unit.computer"] = "Super Duper Computer", ["unit.invis.0"] = "Hostile Invisible Unit for Fields (0 hit radius)", -- Cast names. ["cast.chompacabra.frenzy"] = "Feeding Frenzy", ["cast.chompacabra.trap"] = "Snap Trap", ["cast.moodie.firestorm"] = "Firestorm", ["cast.moodie.fissure"] = "Erupting Fissure", ["cast.shootbot.dash"] = "Slasher Dash", ["cast.shootbot.jump"] = "Jump Shot", ["cast.bandit.blast"] = "Blast Shot", ["cast.girrok.roar"] = "Roar", ["cast.aggressorbot.spin"] = "Mauling Spin", ["cast.pumera.pounce"] = "Pride Pounce", ["cast.pumera.frenzy"] = "Frenzy of the Feline", ["cast.pumera.swipe"] = "Leaping Swipe", ["cast.osun.firestorm"] = "Firestorm", ["cast.osun.fisure"] = "Erupting Fissure", ["cast.osun.superheated"] = "Superheated", ["cast.krogg.rush"] = "Crushing Rush", ["cast.krogg.flurry"] = "Crushing Flurry", ["cast.krogg.assault"] = "Focused Assault", ["cast.ravenok.head_shoulders"] = "Head and Shoulders", ["cast.ravenok.tooth_nail"] = "Tooth and Nail", ["cast.ravenok.winds"] = "Tail Winds", ["cast.ravenok.rush"] = "Ravenok Rush", ["cast.titan.slash"] = "Shellark Slash", ["cast.titan.strike"] = "Trident Strike", ["cast.titan.buffer"] = "Aquatic Buffer", ["cast.pell.vortex"] = "Swirling Vortex", -- Datachron. ["chron.equal.first"] = "First simulated datachron.", ["chron.equal.second"] = "Second simulated datachron.", ["chron.find.first.partial"] = "find me first", ["chron.find.second.partial"] = "find me second", ["chron.find.first.full"] = "Do find me first.", ["chron.find.second.full"] = "And then find me second.", ["chron.match.first.partial"] = "First match this name: ([^%s]+%s[^%s]+) hopefully%.", ["chron.match.second.partial"] = "Secondly match this name: ([^%s]+%s[^%s]+) please%.", ["chron.match.first.full"] = "First match this name: Zod Bain hopefully.", ["chron.match.second.full"] = "Secondly match this name: Zod Bain please.", }) ---------------------------------------------------------------------------------------------------- -- Settings. ---------------------------------------------------------------------------------------------------- mod:RegisterDefaultSetting("TestEnabledSettingOne") mod:RegisterDefaultSetting("TestDisabledSettingOne", false) mod:RegisterDefaultSetting("TestEnabledSettingTwo") mod:RegisterDefaultSetting("TestDisabledSettingTwo", false) mod:RegisterDefaultSetting("TestEnabledSettingThree") mod:RegisterDefaultSetting("TestDisabledSettingThree", false) mod:RegisterMessageSetting("MSG_1", core.E.COMPARE_EQUAL, "TestEnabledSettingOne", "TestEnabledSettingTwo") mod:RegisterMessageSetting("MSG_2", core.E.COMPARE_EQUAL, "TestEnabledSettingOne", "TestDisabledSettingTwo") mod:RegisterMessageSetting("MSG_3", core.E.COMPARE_EQUAL, "TestDisabledSettingOne", "TestEnabledSettingTwo") mod:RegisterMessageSetting("MSG_4", core.E.COMPARE_EQUAL, "TestDisabledSettingOne", "TestDisabledSettingTwo") mod:RegisterMessageSetting("MSG_5", core.E.COMPARE_EQUAL, nil, "TestEnabledSettingThree") mod:RegisterMessageSetting("MSG_6", core.E.COMPARE_EQUAL, "TestEnabledSettingThree", nil) mod:RegisterMessageSetting("MSG_7", core.E.COMPARE_EQUAL, nil, "TestDisabledSettingThree") mod:RegisterMessageSetting("MSG_8", core.E.COMPARE_EQUAL, "TestDisabledSettingThree", nil) mod:RegisterDefaultSetting("TestEqualOne") mod:RegisterDefaultSetting("TestEqualTwo") mod:RegisterDefaultSetting("TestFindOne") mod:RegisterDefaultSetting("TestFindTwo") mod:RegisterDefaultSetting("TestMatchOne") mod:RegisterDefaultSetting("TestMatchTwo") mod:RegisterMessageSetting("MSG_TEST_ONE", core.E.COMPARE_EQUAL, "TestEqualOne", "TestEqualTwo") mod:RegisterMessageSetting("MSG_FIND_ME", core.E.COMPARE_FIND, "TestFindOne", "TestFindTwo") mod:RegisterMessageSetting("MSG_MATCH_%d_ME", core.E.COMPARE_MATCH, "TestMatchOne", "TestMatchTwo") ---------------------------------------------------------------------------------------------------- -- Constants. ---------------------------------------------------------------------------------------------------- local BUFF_KROGG_FOCUSED_ASSAULT = 72202 local BUFF_OSUN_SUPERHEAT = 71236 --moodie and chompacabra debuff local DEBUFF_MELT = 50233 local DEBUFF_CHOMPACABRA_BLEED = 43759 local EXPECTED_DATACHRON_RESULTS = { { registerMessage = "chron.equal.first", message = "chron.equal.first", match = core.E.COMPARE_EQUAL, result = true, },{ registerMessage = "chron.equal.second", message = "chron.equal.second", match = core.E.COMPARE_EQUAL, result = true, },{ registerMessage = "chron.find.first.partial", message = "chron.find.first.full", match = core.E.COMPARE_FIND, result = 4, },{ registerMessage = "chron.find.second.partial", message = "chron.find.second.full", match = core.E.COMPARE_FIND, result = 10, },{ registerMessage = "chron.match.first.partial", message = "chron.match.first.full", match = core.E.COMPARE_MATCH, result = "Zod Bain", },{ registerMessage = "chron.match.second.partial", message = "chron.match.second.full", match = core.E.COMPARE_MATCH, result = "Zod Bain", }, } local ALL_MOBS = { -- Easy. "unit.chompacabra", "unit.moodie", "unit.aggressorbot", -- Normal. "unit.bandit", "unit.girrok", "unit.shootbot", -- Hard. "unit.pumera", "unit.osun", "unit.krogg", -- Elite. "unit.ravenok", "unit.pell", "unit.titan", "unit.buffer", "unit.invis.0", } local ALL_SPELLS = { ["unit.chompacabra"] = { "cast.chompacabra.frenzy", "cast.chompacabra.trap", }, ["unit.moodie"] = { "cast.moodie.firestorm", "cast.moodie.fissure", }, ["unit.shootbot"] = { "cast.shootbot.dash", "cast.shootbot.jump", }, ["unit.bandit"] = { "cast.bandit.blast", }, ["unit.girrok"] = { "cast.girrok.roar", }, ["unit.aggressorbot"] = { "cast.aggressorbot.spin", }, ["unit.pumera"] = { "cast.pumera.pounce", "cast.pumera.frenzy", "cast.pumera.swipe", }, ["unit.osun"] = { "cast.osun.firestorm", "cast.osun.fisure", "cast.osun.superheated", BUFF_OSUN_SUPERHEAT, }, ["unit.krogg"] = { "cast.krogg.rush", "cast.krogg.flurry", "cast.krogg.assault", BUFF_KROGG_FOCUSED_ASSAULT, }, ["unit.ravenok"] = { "cast.ravenok.head_shoulders", "cast.ravenok.tooth_nail", "cast.ravenok.rush", "cast.ravenok.winds", }, ["unit.titan"] = { "cast.titan.slash", "cast.titan.strike", "cast.titan.buffer", }, ["unit.pell"] = { "cast.pell.vortex", }, } local EVENTS_TO_TEST = { core.E.UNIT_CREATED, core.E.UNIT_DESTROYED, core.E.HEALTH_CHANGED, core.E.ENTERED_COMBAT, core.E.CAST_START, core.E.CAST_END, core.E.DEBUFF_ADD, core.E.DEBUFF_UPDATE, core.E.DEBUFF_REMOVE, core.E.BUFF_ADD, core.E.BUFF_UPDATE, core.E.BUFF_REMOVE, } local SPELL_EVENTS = { [core.E.CAST_START] = true, [core.E.CAST_END] = true, [core.E.BUFF_ADD] = true, [core.E.BUFF_UPDATE] = true, [core.E.BUFF_REMOVE] = true, [core.E.DEBUFF_ADD] = true, [core.E.DEBUFF_UPDATE] = true, [core.E.DEBUFF_REMOVE] = true, } local MESSAGE_SETTINGS_TESTS = { {key = "MSG_1", msg = true, sound = true}, {key = "MSG_2", msg = true, sound = false}, {key = "MSG_3", msg = false, sound = true}, {key = "MSG_4", msg = false, sound = false}, {key = "MSG_5", msg = true, sound = true}, {key = "MSG_6", msg = true, sound = true}, {key = "MSG_7", msg = true, sound = false}, {key = "MSG_8", msg = false, sound = true}, {key = "MSG_TEST_ONE", msg = true, sound = true}, {key = "MSG_FIND_ME_SOMEWHERE", msg = true, sound = true}, {key = "MSG_MATCH_123_ME", msg = true, sound = true}, } ---------------------------------------------------------------------------------------------------- -- Locals. ---------------------------------------------------------------------------------------------------- local FakeDatachron = {} function FakeDatachron:GetType() return ChatSystemLib.ChatChannel_Datachron end local datachronResult local datachronExpected local datachronTestNumber local eventCounter local unitEventCounter local events local unitEventsInitialized = false local messageTestCounter ---------------------------------------------------------------------------------------------------- -- Functions. ---------------------------------------------------------------------------------------------------- local next = next local function SimulateDatachron(message) core:CI_OnChatMessage(FakeDatachron, { strSender = "TestEncounter", arMessageSegments = {{strText = message}}, } ) end local function RegisterDatachronTestResult(registerMessage, message, result, oldEvent) --Add a event result that occured table.insert(datachronResult, { registerMessage = registerMessage, message = message, result = result, oldEvent = oldEvent, }) end local function RegisterDatachronTestEvent(registerMessage, match) --Bind datachron events based on the expected results mod:RegisterDatachronEvent(registerMessage, match, function (_, message, result) RegisterDatachronTestResult(registerMessage, message, result, false) end ) end local function RegisterTestEvent(eventName) --Register old events and unit events and keep count of how many events --happened and remove them in the same order again. mod[eventName] = function(...) --Handle normal events eventCounter[eventName] = eventCounter[eventName] or 0 local eventKey = eventName .. tostring(eventCounter[eventName]) events[eventKey] = {...} eventCounter[eventName] = eventCounter[eventName] + 1 --Handle buff and cast events if SPELL_EVENTS[eventName] then local primaryEventName = eventName .. "_Primary" eventCounter[primaryEventName] = eventCounter[primaryEventName] or 0 eventKey = primaryEventName .. tostring(eventCounter[primaryEventName]) events[eventKey] = {...} eventCounter[primaryEventName] = eventCounter[primaryEventName] + 1 local secondaryEventName = eventName .. "_Secondary" eventCounter[secondaryEventName] = eventCounter[secondaryEventName] or 0 eventKey = secondaryEventName .. tostring(eventCounter[secondaryEventName]) events[eventKey] = {...} eventCounter[secondaryEventName] = eventCounter[secondaryEventName] + 1 end end mod:RegisterUnitEvents(core.E.ALL_UNITS, { [eventName] = function(...) unitEventCounter[eventName] = unitEventCounter[eventName] or 0 local eventKey = eventName .. tostring(unitEventCounter[eventName]) mod:CompareEvents(eventName, events[eventKey], {...}) events[eventKey] = nil unitEventCounter[eventName] = unitEventCounter[eventName] + 1 end } ) if not SPELL_EVENTS[eventName] then return end for mob, spellIds in next, ALL_SPELLS do local size = #spellIds for i = 1, size do local spellId = spellIds[i] mod:RegisterUnitEvents(mob, { [eventName] = { [spellId] = function(...) local primaryEventName = eventName .. "_Primary" unitEventCounter[primaryEventName] = unitEventCounter[primaryEventName] or 0 local eventKey = primaryEventName .. tostring(unitEventCounter[primaryEventName]) mod:CompareEvents(primaryEventName, events[eventKey], {...}) events[eventKey] = nil unitEventCounter[primaryEventName] = unitEventCounter[primaryEventName] + 1 end }, [spellId] = { [eventName] = function(...) local secondaryEventName = eventName .. "_Secondary" unitEventCounter[secondaryEventName] = unitEventCounter[secondaryEventName] or 0 local eventKey = secondaryEventName .. tostring(unitEventCounter[secondaryEventName]) mod:CompareEvents(secondaryEventName, events[eventKey], {...}) events[eventKey] = nil unitEventCounter[secondaryEventName] = unitEventCounter[secondaryEventName] + 1 end }, } ) end end end ---------------------------------------------------------------------------------------------------- -- Encounter description. ---------------------------------------------------------------------------------------------------- for _, result in next, EXPECTED_DATACHRON_RESULTS do RegisterDatachronTestEvent(result.registerMessage, result.match) end function mod:OnBossEnable() eventCounter = {} unitEventCounter = {} events = {} if not unitEventsInitialized then local playerName = GameLib.GetPlayerUnit():GetName() ALL_SPELLS[playerName] = { DEBUFF_MELT, DEBUFF_CHOMPACABRA_BLEED, } table.insert(ALL_MOBS, playerName) for _, eventName in next, EVENTS_TO_TEST do RegisterTestEvent(eventName) end unitEventsInitialized = true end --Start datachron test cycles. datachronTestNumber = 0 mod:AddTimerBar("DATACHRON", "Simulate datachron", 0.5, false, nil, mod.SimulateDatachron, mod) --Start unit events cycle. mod:AddTimerBar("UNIT_EVENTS", "Check if events have not been caught", 0.5, false, nil, mod.CheckEvents, mod) messageTestCounter = 1 mod:AddTimerBar("MSG_SETTINGS", "Start message tests", 0.5, false, nil, mod.MessageTest, mod) end function mod:MessageTest() local msgTest = MESSAGE_SETTINGS_TESTS[messageTestCounter] messageTestCounter = messageTestCounter + 1 if not msgTest then return end local key = msgTest.key local msg = msgTest.msg and key or "You should not see this "..key local sound = msgTest.sound and "Info" or "Inferno" mod:AddMsg(key, msg, 1, sound) mod:AddTimerBar("MSG_SETTINGS", "Next message tests", 1, false, nil, mod.MessageTest, mod) end function mod:SimulateDatachron() --Cycle through datachron tests until we finished them all datachronTestNumber = datachronTestNumber + 1 datachronResult = {} datachronExpected = EXPECTED_DATACHRON_RESULTS[datachronTestNumber] if datachronExpected then SimulateDatachron(self.L[datachronExpected.message]) --Check results after a short timer to make sure all the events got caught mod:AddTimerBar("DATACHRON", "Check datachron result", 0.5, false, nil, mod.CheckDatachronResult, mod) end end function mod:CheckDatachronResult() --Check the results from the last simulated datachron. local expectedFound = false local expectedOldFound = false local nCount = #datachronResult for i = 1, nCount do local testResult = datachronResult[i] local message = testResult.message local result = testResult.result local registerMessage = testResult.registerMessage if registerMessage == datachronExpected.registerMessage then --Test against the expected result assert(self.L[datachronExpected.message] == message, "Messages are not the same: "..message.." == "..self.L[datachronExpected.message]) assert(result == datachronExpected.result, "Results are not the same: "..tostring(result).." == "..tostring(datachronExpected.result)) expectedFound = true elseif testResult.oldEvent then --Test message passthrough of old datachron events. assert(self.L[datachronExpected.message] == message, "Messages are not the same: "..message.." == "..self.L[datachronExpected.message]) expectedOldFound = true else --This should never happen. Too many results have been found. assert(registerMessage == nil, registerMessage.." should not be here, expected: "..datachronExpected.registerMessage) end end --No results are found = bad assert(expectedFound == true, "Expected result for "..datachronExpected.registerMessage.." has not been found.") assert(expectedOldFound == true, "Expected old result for "..datachronExpected.registerMessage.." has not been found.") --Start next cycle mod:AddTimerBar("DATACHRON", "Simulate datachron", 0.5, false, nil, mod.SimulateDatachron, mod) end function mod:OnDatachron (message) --Register old datachron events just to make sure they still get passed through too RegisterDatachronTestResult(nil, message, nil, true) end function mod:CompareEvents(eventName, args1, args2) assert(args1 ~= nil, "Old args for "..eventName.." not found") assert(args2 ~= nil, "Unit event args for "..eventName.." not found") --Compare the amount of arguments and the arguments themselves local count1 = #args1 local count2 = #args2 assert(count1 == count2, "Different amount of parameters in "..eventName.." "..tostring(count1).." == "..tostring(count2)) for i = 1, count1 do local arg1 = args1[i] local arg2 = args2[i] assert(arg1 == arg2, "Arguments are not equal "..eventName.." "..tostring(arg1).." == "..tostring(arg2)) end end function mod:CheckEvents() --Check if any events have not been caught by unit events. --If this ever causes a race condition add a flag to the events and then --do the assert on the second pass if they are still there for eventName, _ in next, events do assert(eventName == nil, eventName.." has not been detected by unit events") end mod:AddTimerBar("UNIT_EVENTS", "Check if events have not been caught", 1, false, nil, mod.CheckEvents, mod) end mod:RegisterUnitEvents(ALL_MOBS, { ["OnUnitCreated"] = function (_, _, unit) core:WatchUnit(unit) core:AddUnit(unit) end, } )
-- WebChat example for lev by @kristate / @kristopher -- Based on NodeChat by @ry -- spin-up it up: ./build/lev ./examples/webchat/webchat.lua -- connect via a brower: http://127.0.0.1:9000/ local fs = lev.fs local os = require('os') local _m = require('math') local _t = require('table') local _s = require('string') local qs = require('querystring') local cS = require('web').createServer local MESSAGE_BACKLOG = 200 local SESSION_TIMEOUT = 60 local sessions = {} local mem = {rss = 1} --X:FUTURE local starttime = os.time() local channel channel = { messages = {} ,callbacks = {} ,appendMessage = function(nick, kind, text) local m = { nick = nick ,type = kind -- "msg", "join", "part" ,text = text ,timestamp = os.time() } if kind == "msg" then p("msg", "<" .. nick .. "> " .. text) elseif kind == "join" then p("join", nick) elseif kind == "part" then p("part", nick) end _t.insert(channel.messages, m) local cb while #channel.callbacks > 0 do cb = _t.remove(channel.callbacks, 1) cb.callback( {m} ) end while #channel.messages > MESSAGE_BACKLOG do _t.remove(channel.messages, 1) end end -- X:E appendMessage ,query = function (since, callback) local matching = {} for noop,message in pairs(channel.messages) do if message.timestamp > since then _t.insert(matching, message) end end if #matching ~= 0 then callback( matching ) else _t.insert(channel.callbacks, { timestamp = os.time(), callback = callback }) end end -- X:E query } -- X:E channel function createSession (nick) if #nick > 50 then return nil end if not _s.gmatch(nick, '[^\\w_\\-^!]') then return nil end for noop,session in pairs(sessions) do if session and session.nick == nick then return nil end end local session session = { nick = nick ,id = tostring(_m.floor(_m.random()*99999999999)) ,timestamp = os.time() ,poke = function () session.timestamp = os.time() end ,destroy = function () channel.appendMessage(session.nick, "part") sessions[session.id] = nil end } sessions[session.id] = session return session end local path_handlers = { ["/who"] = function(c, req, res) local nicks = {} for noop,session in pairs(sessions) do _t.insert(nicks, session.nick) end res.simpleJSON(200, { nicks = nicks ,rss = mem.rss }) end -- X:E /who ,["/join"] = function(c, req, res) local qparsed = qs.parse(req.url.query) if not qparsed.nick or #qparsed.nick == 0 then res.simpleJSON(400, {error = "Bad nick."}) return end local session = createSession( qparsed.nick ) if not session then res.simpleJSON(400, {error = "Nick in use"}) return end channel.appendMessage(session.nick, "join") res.simpleJSON(200, { id = session.id , nick = session.nick , rss = mem.rss , starttime = starttime }) end -- X:E /join ,["/part"] = function(c, req, res) local session, id if id and sessions[id] then session = sessions[id] session.destroy() end res.simpleJSON(200, { rss = mem.rss }) end -- X:E /part ,["/recv"] = function(c, req, res) local qparsed = qs.parse(req.url.query) if not qparsed.since then --check for since here res.simpleJSON(400, { error = "Must supply since parameter" }) return end local session if qparsed.id and sessions[qparsed.id] then session = sessions[qparsed.id] session.poke() end channel.query(tonumber(qparsed.since), function (messages) if session then session.poke() end res.simpleJSON(200, { messages = messages, rss = mem.rss }) end) end -- X:E /recv ,["/send"] = function(c, req, res) local qparsed = qs.parse(req.url.query) local session = sessions[ qparsed.id ] if not session or not qparsed.text then res.simpleJSON(400, { error = "No such session id" }) return end session.poke() channel.appendMessage(session.nick, "msg", qparsed.text) res.simpleJSON(200, { rss = mem.rss }) end -- X:E /send } --X:E path_handlers -- clear old callbacks -- they can hang around for at most 30 seconds. local timer_callbacks = lev.timer.new() timer_callbacks:start(function(t, status) local now = os.time() local cb while #channel.callbacks > 0 and now - channel.callbacks[1].timestamp > 30 do cb = _t.remove(channel.callbacks, 1) if cb then cb.callback( {} ) end end end, 3000, 3000) -- interval to kill off old sessions local timer_sessions = lev.timer.new() timer_sessions:start(function(t, status) local now = os.time() for noop,session in pairs(sessions) do if now - session.timestamp > SESSION_TIMEOUT then session.destroy() end end end, 1000, 1000) local STATICS = { ["/"] = {name = "/index.html", type = "text/html"} ,["/style.css"] = {name = "/style.css", type = "text/css"} ,["/client.js"] = {name = "/client.js", type = "application/javascript"} ,["/jquery.min.js"] = {name = "/jquery.min.js", type = "application/javascript"} } local client__onRequest = function(c, req, res) local route = path_handlers[ req.url.path ] local static = STATICS[ req.url.path ] if route then route( c, req, res ) elseif static then -- oh, you want some static data! if not static.buf then local err err, static.buf = fs.readFile(__path__ .. static.name) if err then res.writeHead(500) res.fin( "File Error!" ) return end end res.writeHead(200, {["Content-Type"] = static.type, ["Content-Length"] = tostring(#static.buf)}) res.fin( static.buf ) else res.writeHead(404) res.fin( "Bad Route!" ) end end cS(nil, 9000, client__onRequest) --X:E createServer p("http server listening on port 9000!")
package.path = '../lib/?;../lib/?.lua;../bin/?.lua;'..package.path -- core require 'Runtime.Coredp' -- utils require 'utils.ConfHandler' require 'ProgressiveTernarization.Progress' package.path = os.getenv("LUA_PATH") require 'dp' package.path = '../lib/?;../lib/?.lua;'..package.path nninit = require 'nninit' require 'dp.observer.resultlogger' require 'dp.observer.networksaver' require 'dp.observer.epochlogger' require 'dp.preprocess.scale' require 'dp.transform.transformmatch' require 'dp.transform.removematch' require 'dp.transform.insertatmatch' require 'dp.preprocess.narize' require 'dp.sampler.ligsampler' require 'dp.data.gtsrb' require 'dp.data.custom' require 'dp.data.svhnstd' require 'dp.data.svhncanny' require 'dp.data.cacheloader' require 'dp.data.ncifar10' require 'nn.Distort' require 'nn.Narize' require 'nn.Record' require 'nn.StochasticFire' require 'nn.SqrHingeEmbeddingCriterion' require 'nn.OneHotEncode' if #arg <= 0 then print("<mainProgressTernarization> missing arguments") os.exit() end torch.setdefaulttensortype('torch.DoubleTensor') -- compile configurations local configs = ConfHandler.GetFullConfs(arg) for optNum,opt in pairs(configs) do local default_progress = {} default_progress.javaCmd = "java -Xmx80G -cp" default_progress.jarPath = "~/NeuronBinarization/target/NeuronBinarization-1.0-jar-with-dependencies.jar" default_progress.jarMainClass1 = "fr.liglab.esprit.binarization.BinarizeAllPrecomp" default_progress.jarMainClass2 = "fr.liglab.esprit.binarization.BinarizeAllConvPrecomp" default_progress.jarMainClass3 = "fr.liglab.esprit.binarization.BinarizeAllFinalLayer" default_progress.jarLogFileName = "NeuronBinarization.log" default_progress.jarArg_ei = "0" default_progress.jarArg_ec = "0" default_progress.jarArg_e = "0" default_progress.trDataFilename = "trData" default_progress.actDataFilename = "actData" default_progress.refDataFilename = "refData" default_progress.groundTruthDataFilename = "groundTruth.csv" default_progress.groundTruthDataDirPath = "" -- change this to an existing dir with groundData, preventing recalculation default_progress.retrain = 1 opt.main._progress = opt.main._progress or default_progress if opt.main.cuda > 0 then require 'cutorch' require 'cunn' require 'cudnn' cutorch.setDevice(opt.main.cuda) Log.write("<ModelHandler.configureTorch> including CUDA modules") end if (opt.main.loadExp ~= nil and opt.main.loadExp ~= "") then -- Core.run has already ran at least once print("<mainProgressTernarization> assuming network is already trained at least once") opt = Progress.run(opt) end while opt do -- force retraining for now --if opt.main._progress.retrain > 0 then opt.main.loadExp = "" opt = Coredp.run(opt) --else -- opt.main.bestNet = opt.main.loadNet -- is bestnet a net or experiement?? --end opt = Progress.run(opt) end end
object_building_kashyyyk_rock_kashyyyk_small_s02 = object_building_kashyyyk_shared_rock_kashyyyk_small_s02:new { } ObjectTemplates:addTemplate(object_building_kashyyyk_rock_kashyyyk_small_s02, "object/building/kashyyyk/rock_kashyyyk_small_s02.iff")
 local function ColorChanged(s, e) local c = s.SelectedColor print(string.format("Color changed: RGB: 0x%02x%02x%02x", c.R, c.G, c.B)) end this = Gwen.DockLayout.Create(Gwen.Canvas) hsvPicker = Gwen.HSVColorPicker.Create(this) hsvPicker.Dock = Gwen.Dock.Fill hsvPicker.HorizontalAlignment = Gwen.HorizontalAlignment.Left hsvPicker.VerticalAlignment = Gwen.VerticalAlignment.Top hsvPicker.ColorChanged.add(ColorChanged) window = Gwen.Window.Create(this) window.Size = Gwen.Size.Create(300, 200) window.Collapse() layout = Gwen.DockLayout.Create(window) hsvPicker = Gwen.HSVColorPicker.Create(layout) hsvPicker.Margin = Gwen.Margin.Two hsvPicker.Dock = Gwen.Dock.Fill hsvPicker.ColorChanged.add(ColorChanged) openWindow = Gwen.Button.Create(this) openWindow.Dock = Gwen.Dock.Bottom openWindow.HorizontalAlignment = Gwen.HorizontalAlignment.Left openWindow.Text = "Open Window" openWindow.Clicked.add(function (s, e) window.Show() end) AddItem("Non-standard", "ColorPicker", this)
-- Copyright 2016 Google Inc, NYU. -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. local function scriptPath() local str = debug.getinfo(2, "S").source:sub(2) str = str:match("(.*/)") if str == nil then return './' else return str end end local path = scriptPath() .. "/" local cunn = require("cunn") local tfluids = require("tfluids") -- Load the modules. dofile(path .. "apply_scale.lua") dofile(path .. "fluid_criterion.lua") dofile(path .. "inject_tensor.lua") dofile(path .. "spatial_convolution_upsample.lua") dofile(path .. "spatial_divergence.lua") dofile(path .. "spatial_finite_elements.lua") dofile(path .. "standard_deviation.lua") dofile(path .. "variance.lua") dofile(path .. "volumetric_convolution_upsample.lua") dofile(path .. "volumetric_divergence.lua") dofile(path .. "volumetric_finite_elements.lua") dofile(path .. "weighted_flat_mse_criterion.lua") dofile(path .. "mse_si_criterion.lua") -- Run the tests. dofile(path .. "test_apply_scale.lua") dofile(path .. "test_fluid_criterion.lua") dofile(path .. "test_mse_si_criterion.lua") dofile(path .. "test_spatial_convolution_upsample.lua") dofile(path .. "test_spatial_divergence.lua") dofile(path .. "test_spatial_finite_elements.lua") dofile(path .. "test_standard_deviation.lua") dofile(path .. "test_variance.lua") dofile(path .. "test_volumetric_convolution_upsample.lua") dofile(path .. "test_volumetric_divergence.lua") dofile(path .. "test_volumetric_finite_elements.lua") dofile(path .. "test_weighted_flat_mse_criterion.lua") print("ALL TESTS FINISHED!")
--------------------------------------------------------------------------------- -- -- Prat - A framework for World of Warcraft chat mods -- -- Copyright (C) 2006-2018 Prat Development Team -- -- This program is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public License -- as published by the Free Software Foundation; either version 2 -- of the License, or (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program; if not, write to: -- -- Free Software Foundation, Inc., -- 51 Franklin Street, Fifth Floor, -- Boston, MA 02110-1301, USA. -- -- ------------------------------------------------------------------------------- Prat:AddModuleExtension(function() local module = Prat.Addon:GetModule("PlayerNames", true) if not module then return end LibStub("AceTimer-3.0"):Embed(module) local PL = module.PL module.pluginopts["GlobalPatterns"] = { coloreverywhere = { type = "toggle", name = PL["coloreverywhere_name"], desc = PL["coloreverywhere_desc"], order = 220 } } Prat.RegisterPattern({ pattern = "|c.-|H.-:.-|h.-|h|r", matchfunc=function(link) return Prat:RegisterMatch(link) end, type = "FRAME", priority = 45 }, module.name) local ColorPlayer do local function Player(name, class) return Prat.CLR:Player(name, name, class) end ColorPlayer = function(name) return Prat:RegisterMatch(Player(name, module:GetData(name))) end end local tmp = {} -- Thanks for the frontier pattern: Josh Borke & Arrowmaster local function newPattern(name) return { pattern = Prat.GetNamePattern(name), matchfunc=ColorPlayer, priority=24 } end do local namePatterns = {} function module:OnPlayerDataChangedThrottled(Name) self.timerPlayerData = nil if self.db.profile.coloreverywhere and Name then Name = Name:lower() if not namePatterns[Name] and not Prat.PlayerNameBlackList[Name] and Name:len() > 1 then namePatterns[Name] = Prat.RegisterPattern(newPattern(Name), self.name) end else for k,v in pairs(namePatterns) do Prat.UnregisterPattern(v) namePatterns[k] = nil end end end function module:OnPlayerDataChanged(Name) if not self.db.profile.coloreverywhere then return end self:OnPlayerDataChangedThrottled(Name) end end return end) -- Prat:AddModuleToLoad
AddCSLuaFile() properties.Add( "statue", { MenuLabel = "Make Statue", Order = 1500, MenuIcon = "icon16/lock.png", Filter = function( self, ent, ply ) if ( !IsValid( ent ) ) then return false end if ( ent:GetClass() != "prop_ragdoll" ) then return false end if ( ent:GetNWBool( "IsStatue" ) ) then return false end if ( !gamemode.Call( "CanProperty", ply, "statue", ent ) ) then return false end return true end, Action = function( self, ent ) self:MsgStart() net.WriteEntity( ent ) self:MsgEnd() end, Receive = function( self, length, player ) local ent = net.ReadEntity() if ( !IsValid( ent ) ) then return end if ( !IsValid( player ) ) then return end if ( ent:GetClass() != "prop_ragdoll" ) then return end if ( !self:Filter( ent, player ) ) then return end local bones = ent:GetPhysicsObjectCount() if ( bones < 2 ) then return end if ( ent.StatueInfo ) then return end ent.StatueInfo = {} undo.Create( "Statue" ) for bone = 1, bones-1 do local constraint = constraint.Weld( ent, ent, 0, bone, forcelimit ) if ( constraint ) then ent.StatueInfo[bone] = constraint player:AddCleanup( "constraints", constraint ) undo.AddEntity( constraint ) end local effectdata = EffectData() effectdata:SetOrigin( ent:GetPhysicsObjectNum( bone ):GetPos() ) effectdata:SetScale( 1 ) effectdata:SetMagnitude( 1 ) util.Effect( "GlassImpact", effectdata, true, true ) end ent:SetNWBool( "IsStatue", true ) undo.AddFunction( function() if ( IsValid( ent ) ) then ent:SetNWBool( "IsStatue", false ) ent.StatueInfo = nil end end ) undo.SetPlayer( player ) undo.Finish() end }); properties.Add( "statue_stop", { MenuLabel = "Un-Statue", Order = 1500, MenuIcon = "icon16/lock_open.png", Filter = function( self, ent, ply ) if ( !IsValid( ent ) ) then return false end if ( ent:GetClass() != "prop_ragdoll" ) then return false end if ( !ent:GetNWBool( "IsStatue" ) ) then return false end if ( !gamemode.Call( "CanProperty", ply, "unstatue", ent ) ) then return false end return true end, Action = function( self, ent ) self:MsgStart() net.WriteEntity( ent ) self:MsgEnd() end, Receive = function( self, length, player ) local ent = net.ReadEntity() if ( !IsValid( ent ) ) then return end if ( !IsValid( player ) ) then return end if ( ent:GetClass() != "prop_ragdoll" ) then return end local bones = ent:GetPhysicsObjectCount() if ( bones < 2 ) then return end if ( !ent.StatueInfo ) then return end for k, v in pairs( ent.StatueInfo ) do if ( IsValid( v ) ) then v:Remove() end end ent:SetNWBool( "IsStatue", false ) ent.StatueInfo = nil end });
------------------------------------------------------------------------ --[[ CompositeObserver ]]-- -- Is composed of multiple observers ------------------------------------------------------------------------ local CompositeObserver = torch.class("dp.CompositeObserver", "dp.Observer") CompositeObserver.isCompositeObserver = true function CompositeObserver:__init(observers) self._observers = observers for name, observer in pairs(self._observers) do assert(observer.isObserver) end for _, observer in ipairs(self._observers) do assert(observer.isObserver) end end function CompositeObserver:setup(config) assert(type(config) == 'table', "Setup requires key-value arguments") local args, mediator, subject = xlua.unpack( {config}, 'Observer:setup', 'setub the observer with mediator and subject', {arg='mediator', type='dp.Mediator', req=true, help='used for inter-object communication. defaults to dp.Mediator()'}, {arg='subject', type='dp.Experiment | dp.Propagator | ...', help='object being observed.'} ) assert(mediator.isMediator) self._mediator = mediator self:setSubject(subject) for name, observer in pairs(self._observers) do observer:setup(config) end end function CompositeObserver:verbose(verbose) self._verbose = (verbose == nil) and true or verbose for k, v in pairs(self._observers) do v:verbose(self._verbose) end end
----------------------------------------------------------------------------------------- -- -- main.lua -- ----------------------------------------------------------------------------------------- local testBalloon = false local testWAS = true local widget = require("widget") if (testWAS) then local wickeyappstore = require("wickeyappstore") local json = require("json") local label = display.newText("output", 50, 220, native.systemFont, 16) label.x = display.contentCenterX local data = native.newTextBox(160, 360, 320, 250) data.isEditable = true -- JS event listener. local function pluginListener(event) local str = json.prettify(event) if (event.name == "wasUser") then data.text = "wasUser got event from JS plugin:" .. str else str = "got event from JS plugin:\n" .. str print(str) data.text = str end end local getScore = function() -- call JS native plugin data.text = wickeyappstore.dataGet("highScore") end local saveScore = function() -- call JS native plugin wickeyappstore.dataSave("highScore", 10) end local gameoverCleanup = function() -- call JS native plugin wickeyappstore.dataPersist() end local getUser = function() -- call JS native plugin wickeyappstore.user( function(event) print("++++wickeyappstore.user++++") if (event) then local str = json.prettify(event) data.text = str else data.text = "null" end end ) end wickeyappstore.onOpen( function() print("++++wickeyappstore.onOpen++++") end ) wickeyappstore.onClose( function() print("++++wickeyappstore.onClose++++") end ) local saveConflictRes = function(localSave, cloudSave) local keepSave = localSave if (localSave and cloudSave) then if (cloudSave.highScore > localSave.highScore) then keepSave = cloudSave end end return keepSave end local initRestored = false local restoreSave = function() wickeyappstore.dataRestore( function(_data) print("++++wickeyappstore.dataRestore++++") initRestored = true end, saveConflictRes ) end wickeyappstore.onLoad( function() print("++++wickeyappstore.onLoad++++") restoreSave() wickeyappstore.loginChange( function(_loggedIn) print("++++wickeyappstore.loginChange++++") if (initRestored == true) then restoreSave() end end ) end ) widget.newButton { onRelease = getUser, left = 60, top = 5, width = 200, height = 50, label = "Get User", labelColor = {default = {1, 1, 1}, over = {0.6, 0.6, 0.6}} } widget.newButton { onRelease = saveScore, left = 60, top = 35, width = 200, height = 50, label = "Save Data", labelColor = {default = {1, 1, 1}, over = {0.6, 0.6, 0.6}} } widget.newButton { onRelease = getScore, left = 60, top = 65, width = 200, height = 50, label = "Read Saved Data", labelColor = {default = {1, 1, 1}, over = {0.6, 0.6, 0.6}} } widget.newButton { onRelease = gameoverCleanup, left = 60, top = 120, width = 200, height = 50, label = "Persist", labelColor = {default = {1, 1, 1}, over = {0.6, 0.6, 0.6}} } end if (testBalloon) then -- Your code here local tapCount = 0 local background = display.newImageRect("background.png", 360, 570) background.x = display.contentCenterX background.y = display.contentCenterY local tapText = display.newText(tapCount, display.contentCenterX, 20, native.systemFont, 40) tapText:setFillColor(0, 0, 0) local platform = display.newImageRect("platform.png", 300, 50) platform.x = display.contentCenterX platform.y = display.contentHeight - 25 local balloon = display.newImageRect("balloon.png", 112, 112) balloon.x = display.contentCenterX balloon.y = display.contentCenterY balloon.alpha = 0.8 local physics = require("physics") physics.start() physics.addBody(platform, "static") physics.addBody(balloon, "dynamic", {radius = 50, bounce = 0.3}) local function pushBalloon() balloon:applyLinearImpulse(0, -0.75, balloon.x, balloon.y) tapCount = tapCount + 1 tapText.text = tapCount end balloon:addEventListener("tap", pushBalloon) end
-- Copyright (C) Kong Inc. local access = require "kong.plugins.basic-auth.access" local kong_meta = require "kong.meta" local BasicAuthHandler = { PRIORITY = 1001, VERSION = kong_meta.version, } function BasicAuthHandler:access(conf) access.execute(conf) end return BasicAuthHandler
local yellowPillow = MoveEvent() yellowPillow:type("stepin") function yellowPillow.onStepIn(player, item, position, fromPosition) if not player or player:isInGhostMode() then return true end player:say("Faaart!", TALKTYPE_MONSTER_SAY) item:getPosition():sendMagicEffect(CONST_ME_POFF) return true end yellowPillow:id(8072) yellowPillow:register()
local HeroChangedWeapon = class("HeroChangedWeapon") function HeroChangedWeapon:initialize(weapon) self.weapon = weapon end return HeroChangedWeapon
object_mobile_chirq_low_f_1 = object_mobile_shared_chirq_low_f_1:new { } ObjectTemplates:addTemplate(object_mobile_chirq_low_f_1, "object/mobile/chirq_low_f_1.iff")
fx_version 'adamant' game 'gta5' data_file 'DLC_ITYP_REQUEST' 'stream/decorations.ytyp' dependencies { 'inventory', } shared_scripts { '@grids/shared/grids.lua', 'shared/config.lua', 'shared/main.lua', 'decorations/*.lua', } client_scripts { '@utils/client/vectors.lua', '@utils/client/misc.lua', '@camera/cl_camera.lua', 'client/main.lua', 'client/decoration.lua', 'client/stations.lua', 'client/queue.lua', 'client/editor.lua', } server_scripts { '@utils/server/database.lua', 'server/config.lua', 'server/main.lua', 'server/decoration.lua', 'server/stations.lua', 'server/grids.lua', }
return { Name = "kill"; Aliases = {"slay"}; Description = "Kills a player or set of players."; Group = "DefaultAdmin"; Args = { { Type = "players"; Name = "victims"; Description = "The players to kill."; }, }; }
--[[ RegionTrigger ------------- TouchEnded detection in the form of Region3s. Inherits Trigger. When using this class you'll typically want to add Parts to the Whitelist so only specific Parts will start up the Region loop. If you're looking for Region detection for a Player's Character, check out CharacterTrigger. Constructors ------------ RegionTrigger.new(Part triggerPart) This is the same as Trigger.new(). Properties ---------- Heartbeat This is a Heartbeat instance that is used to check for Parts leaving the Region. This is used internally and is not intended for public use. Region This is a Region instance that is constructed from TriggerPart. It's used to detect with a Part leaves the area of the TriggerPart. Using Region3s comes with the downside of not being able to rotate the TriggerPart, but it's a small price to pay for built-in area detection. Methods ------- DetectTouchEnded(otherPart) Fires TouchEnded when `otherPart` leaves the Region. HandleTouch(otherPart) This works the same as Trigger:HandleTouch(), but it also starts up the Heartbeat loop to run DetectTouchEnded(). Events ------ TouchEnded Fired when a Part leaves the Region. If there are items in the whitelist, this will only fire if the Part is in there too. --]] local run = game:GetService("RunService") local replicatedStorage = game:GetService("ReplicatedStorage") local Heartbeat = require(replicatedStorage.Events.Heartbeat) local Region = require(replicatedStorage.Region) local Signal = require(replicatedStorage.Events.Signal) local Trigger = require(script.Parent.Trigger) -------------------------------------------------------------------------------- local RegionTrigger = {} RegionTrigger.__index = RegionTrigger setmetatable(RegionTrigger, Trigger) function RegionTrigger.new(triggerPart) local self = Trigger.new(triggerPart) setmetatable(self, RegionTrigger) self.Heartbeat = Heartbeat.new() self.Region = Region.fromPart(triggerPart) self.TouchEnded = Signal.new() return self end function RegionTrigger:DetectTouchEnded(otherPart) if not self.Region:PartIsInRegion(otherPart) then self.TouchEnded:fire(otherPart) return true end end function RegionTrigger:HandleTouch(otherPart) Trigger.HandleTouch(self, otherPart) self.Heartbeat:AddCallback(function() return self:DetectTouchEnded(otherPart) end) end return RegionTrigger
local sh = require("shell") local fs = require("filesystem") local tasks = require("tasks") local driver = require("driver") local users = require("users") local filesystem = require("filesystem") tasks.getCurrentProcess().childErrorHandler = function(proc, err) local procType = "process" if proc.isService then procType = "service" end io.stderr:write("Error from " .. procType .. " \"" .. proc.name .. "\": " .. tostring(err) .. "\n") end tasks.getCurrentProcess().permissionGrant = function(perm, pid) local l = nil while l ~= "N" and l ~= "Y" do io.stdout:write("Grant permission \"" .. perm .. "\" to process? (Y/N) ") l = sh.read():upper() io.stdout:write(" \n") end if l == "Y" then return true else return false end end local rw, rh = driver.gpu.getResolution() local function printCentered(str) io.write(string.rep(" ", math.floor(rw/2-str:len()/2))) print(str) end -- splash if not os.getenv("INTERFACE") then -- if this is launched at boot print("Fushell on " .. _OSVERSION) os.setenv("INTERFACE", "Fushell") if OSDATA.CONFIG["SAFE_MODE"] then print("/!\\ Safe Mode has been enabled! Services and non-essential drivers aren't loaded!") else print("Type \"help\" if you're new! \"doc\" also helps.") end if computer.getArchitecture() == "Lua 5.2" then local ok, architectures = pcall(computer.getArchitectures) if not ok then architectures = {} end for k, v in pairs(architectures) do if v == "Lua 5.3" then printCentered("/!\\ Fuchas has detected that the Lua 5.3 architecture is available but not in use.") if OSDATA.CONFIG["AUTO_SET_ARCH"] then printCentered("/!\\ Switching to the Lua 5.3 architecture in 3 seconds. Fuchas will restart.") os.sleep(3) computer.setArchitecture("Lua 5.3") end printCentered("/!\\ Please switch to Lua 5.3 by shift-clicking on your CPU or APU") printCentered("/!\\ You cannot log into a password protected account with Lua 5.2!") goto cont end end printCentered("/!\\ Fuchas has detected that the Lua 5.3 architecture is unavailable.") printCentered("/!\\ You will be unable to log in to any password protected accounts.") end ::cont:: end if not os.getenv("PWD") or os.getenv("PWD") == "" then os.setenv("PWD", "A:/") end local function execCmd(l) local async = false if string.endsWith(l, "&") then l = l:sub(1, l:len()-1) async = true end l = string.gsub(l, "%$(%g+)", os.getenv) local ok, commands = pcall(sh.parseCL, l) local chainStream = nil if not ok then io.stderr:write(commands .. "\n") goto continue end for i=1, #commands do local args = commands[i] if #args == 0 then args[1] = "" end if args[1] == "exit" then -- special case: exit cmd return false end if args[1]:len() == 2 then if args[1]:sub(2, 2) == ":" then if not fs.isMounted(args[1]:sub(1, 1)) then print("No such drive: " .. args[1]:sub(1, 1):upper()) goto continue end os.setenv("PWD", args[1]:sub(1, 1):upper() .. ":/") goto continue end end if sh.getCommand(args[1]) ~= nil then args[1] = sh.getCommand(args[1]) end local newargs = string.split(args[1]) if #newargs > 1 then table.remove(args, 1) for i=#newargs, 1, -1 do table.insert(args, 1, newargs[i]) end end if args[1] == "cd" then local pwd = os.getenv("PWD") local drive = pwd:sub(1, 3) local current = filesystem.canonical(pwd) if #args < 2 then print(current .. "/") else if args[2]:sub(1, 1) == '/' then pwd = drive args[2] = args[2]:sub(2) end local canon = filesystem.canonical(pwd:sub(4)) .. "/" if canon:sub(1, 1) == '/' then canon = canon:sub(2, canon:len()) end local newPath = canon .. args[2] local effectivePath = drive .. filesystem.canonical(newPath) if filesystem.exists(effectivePath) and filesystem.isDirectory(effectivePath) then os.setenv("PWD", effectivePath) else if not filesystem.exists(effectivePath) then print(newPath .. " doesn't exists.") else print(newPath .. " isn't a directory.") end end end goto continue end local path = sh.resolve(args[1]) local exists = true if not path then exists = false end if path and fs.isDirectory(path) then print("Path is a directory.") goto continue end if exists and args[1] ~= "" then local f, err = xpcall(function() local programArgs = {} if #args > 1 then for k, v in pairs(args) do if k > 1 then table.insert(programArgs, v) end end end local f, err = loadfile(path) if f == nil then print(err) end local func = function() if f ~= nil then xpcall(f, function(err) io.stderr:write(err .. "\n") io.stderr:write(debug.traceback(nil, 2) .. "\n") end, programArgs) end io.stdout:close() end local proc = nil if i == #commands then proc = tasks.newProcess(args[1], func) if chainStream then proc.io.stdin = chainStream end if not async then proc:join() io.write("\x1B[39;49m") end else local oldChainStream = chainStream chainStream, proc = io.pipedProc(func, args[1], "r") if oldChainStream then proc.io.stdin = oldChainStream end end end, function(err) print(debug.traceback(err)) end) else print("No such command or external file found.") goto continue end end require("event").flush() -- flush all events that has been received by the process we just invoked ::continue:: return true end local function replaceEnvVars(str) return string.gsub(str, "%$(%g+)", function(name) local len = unicode.len(name) while os.getenv(unicode.sub(name, 1, len)) == nil do len = len - 1 if len == 0 then break end end local sub = unicode.sub(name, 1, len) return (os.getenv(sub) or "$" .. sub) .. replaceEnvVars(unicode.sub(name, len + 1)) end) end local run = true while run do ::continue:: io.write(replaceEnvVars(os.getenv("PS1") or "")) local ok, l = pcall(sh.read, { ["autocomplete"] = sh.fileAutocomplete }) io.write("\n") if not ok and string.endsWith(l, "interrupted") then print("Ctrl+Alt+C: Restarting") computer.shutdown(true) return elseif not ok then print(l) end run = execCmd(l) end
ardour { ["type"] = "EditorAction", name = "Autotune Automation", license = "MIT", author = "David Healey", description = [[Inserts "correction" automation points for X42 Autotune plugin]] } function factory () local autotune_automation_input_values --Persistent variable (session lifespan) return function () local sel = Editor:get_selection () local rl = sel.regions:regionlist () local sr = Session:nominal_sample_rate () local pluginName = "Autotune" local automationIndex = 5 -- correction -- holds reference to plugin local plugin -- prepare undo operation local add_undo = false -- keep track if something has changed Session:begin_reversible_command ("Automation Tweaker") -- get first track local route = Session:get_remote_nth_route(0) assert (not route:isnil (), "Invalid first track") -- look for the plugin in the first 5 plugin slots for i = 0, 6, 1 do plugin = route:nth_plugin(i):to_insert() if plugin then local name = plugin:display_name() if name == "x42-Autotune" or name == "x42-Autotune (microtonal)" then break else plugin = nil end end end assert(plugin, "Plugin not found") --FUNCTIONS-- function addEnvelopePoints(r, inputs) -- get AutomationList, ControlList and ParameterDescriptor of the first plugin's first parameter (cents) local al, cl, pd = ARDOUR.LuaAPI.plugin_automation (plugin, automationIndex) -- get state for undo local before = al:get_state () -- region position and length local pos = r:position() local len = r:length() -- get input data local startPoint = pos + ((len / 100) * inputs["start"]) local attack = pos + ((startPoint - pos) / inputs["attack"]) local endPoint = pos + len - ((len / 100) * inputs["end"]) local decay = pos + len - ((pos + len - endPoint) / inputs["decay"]) local correction = inputs["correction"] if endPoint < startPoint then endPoint = startPoint + 1 end cl:clear(pos, pos + len) -- remove existing points for this region cl:add(pos - 0.2 * sr, 0, false, false) -- add boundary point cl:add(attack, 0, false, false) cl:add(startPoint, correction, false, false) cl:clear(attack+1, startPoint-1) -- remove guard points cl:add(endPoint, correction, false, false) cl:clear(startPoint + 1, endPoint - 1) -- remove guard points cl:add(decay, 0, false, false) cl:clear(endPoint + 1, decay-1) -- remove guard points cl:add(pos + len + 0.2 * sr, 0, false, false) -- add boundary point cl:clear(decay + 1, pos + len - 1 + 0.2 * sr) -- remove guard points -- get state for undo local after = al:get_state () Session:add_command (al:memento_command (before, after)) add_undo = true end --MAIN-- -- When avaiable use previously used values as dialog defaults - only works when script assigned to button local defaults = autotune_automation_input_values if (defaults == nil) then defaults = {} defaults["start"] = 10 defaults["end"] = 10 defaults["correction"] = 1 defaults["attack"] = 1.2 defaults["decay"] = 1.2 end -- setup dialog local dialog_options = { { type = "slider", key = "start", title = "Distance from Start (%)", min = 1, max = 40, default = defaults["start"] }, { type = "slider", key = "end", title = "Distance from End (%)", min = 1, max = 80, default = defaults["end"] }, { type = "slider", key = "correction", title = "Max Correction", min = 0.1, max = 1, digits = 2, default = defaults["correction"] }, {type = "radio", key = "attack", title = "Attack", values = {["Slow"] = 4, ["Medium"] = 2.5, ["Fast"] = 1.2}, default = defaults["attack"]}, {type = "radio", key = "decay", title = "Decay", values = {["Slow"] = 4, ["Medium"] = 2.5, ["Fast"] = 1.2}, default = defaults["decay"]} } -- show dialog local od = LuaDialog.Dialog ("Autotune Automation", dialog_options) local rv = od:run() if rv then autotune_automation_input_values = rv --Save in persistent variable --Each selected region for r in rl:iter () do addEnvelopePoints(r, rv) end end od=nil collectgarbage() -- all done, commit the combined Undo Operation if add_undo then -- the 'nil' Commend here mean to use the collected diffs added above Session:commit_reversible_command (nil) else Session:abort_reversible_command () end end end
package.path = package.path .. ";../?.lua" Object = require "lib/classic" require "obj/Totem" require "obj/WindParticle" WindTotem = Totem:extend() WindTotem.sprite = love.graphics.newImage("res/totem_wind.png") WindTotem.PLAYER_KNOCKBACK = 200 WindTotem.TOTEM_KNOCKBACK = 300 function WindTotem:new(name, coords, areal, color, sprite) WindTotem.super.new(self, name, coords, areal, color, WindTotem.sprite) end function WindTotem:update(dt) WindTotem.super.update(self, dt) -- self:cast() end function WindTotem:updatePartSys(dt) if not self.dead then if self.partsys then self.partsys:update(dt) end end end function WindTotem:getKnockback(k, x, z) local d = dist(self.x, self.z, x, z) if d == 0 then d = 1 end return k / d end function WindTotem:cast() if self.shook and not self.dead then local pushed = false --Check players --if self.name ~= player1.name then if player1:inAreal(self.x, self.z, self.arealX, self.arealY) and not player1:isImpaired() then local p = self:getKnockback(WindTotem.PLAYER_KNOCKBACK, player1.x, player1.z) player1:push((player1.x - self.x)*p, (player1.z - self.z)*p) pushed = true table.insert(objectPool, WindParticle({x = self.x + self.ox, y = self.y - self.oy})) end if player2:inAreal(self.x, self.z, self.arealX, self.arealY) --elseif here and not player2:isImpaired() then local p = self:getKnockback(WindTotem.PLAYER_KNOCKBACK, player2.x, player2.z) player2:push((player2.x - self.x) * p, (player2.z - self.z) * p) pushed = true table.insert(objectPool, WindParticle({x = self.x + self.ox, y = self.y - self.oy})) end --Check other totems for _, totem in pairs(Player.allTotems) do if totem ~= self and not totem.dead and not totem:is(RootTotem) then if totem:inAreal(self.x, self.z, self.arealX, self.arealY) and not totem:isRooted() then local t = self:getKnockback(WindTotem.TOTEM_KNOCKBACK, totem.x, totem.z) totem:push((totem.x - self.x) * t, (totem.z - self.z) * t) pushed = true end end end if pushed then sound.wind:play() end end end
local process = require("process") local shell = require("shell") local text = require("text") local tx = require("transforms") local sh = {} sh.internal = {} function sh.internal.isWordOf(w, vs) return w and #w == 1 and not w[1].qr and tx.first(vs,{{w[1].txt}}) ~= nil end local isWordOf = sh.internal.isWordOf ------------------------------------------------------------------------------- --SH API sh.internal.ec = {} sh.internal.ec.parseCommand = 127 sh.internal.ec.last = 0 function sh.getLastExitCode() return sh.internal.ec.last end function sh.internal.command_result_as_code(ec, reason) -- convert lua result to bash ec local code if ec == false then code = 1 elseif ec == nil or ec == true then code = 0 elseif type(ec) ~= "number" then code = 2 -- illegal number else code = ec end if reason and code ~= 0 then io.stderr:write(reason, "\n") end return code end function sh.internal.resolveActions(input, resolver, resolved) checkArg(1, input, "string") checkArg(2, resolver, "function", "nil") checkArg(3, resolved, "table", "nil") resolver = resolver or shell.getAlias resolved = resolved or {} local processed = {} local prev_was_delim, simple = true, true local words, reason = text.internal.tokenize(input) if not words then return nil, reason end while #words > 0 do local next = table.remove(words,1) if isWordOf(next, {";","&&","||","|"}) then prev_was_delim,simple = true,false resolved = {} elseif prev_was_delim then prev_was_delim = false -- if current is actionable, resolve, else pop until delim if next and #next == 1 and not next[1].qr then local key = next[1].txt if key == "!" then prev_was_delim,simple = true,false -- special redo elseif not resolved[key] then resolved[key] = resolver(key) local value = resolved[key] if value and key ~= value then local replacement_tokens, reason = sh.internal.resolveActions(value, resolver, resolved) if not replacement_tokens then return replacement_tokens, reason end simple = simple and reason words = tx.concat(replacement_tokens, words) next = table.remove(words,1) end end end end table.insert(processed, next) end return processed, simple end function sh.internal.statements(input) checkArg(1, input, "string") local words, reason = sh.internal.resolveActions(input) if type(words) ~= "table" then return words, reason elseif #words == 0 then return true elseif reason and not input:find("[<>]") then return {words}, reason end -- we shall validate pipes before any statement execution local statements = sh.internal.splitStatements(words) for i=1,#statements do local ok, why = sh.internal.hasValidPiping(statements[i]) if not ok then return nil,why end end return statements end -- returns true if key is a string that represents a valid command line identifier function sh.internal.isIdentifier(key) if type(key) ~= "string" then return false end return key:match("^[%a_][%w_]*$") == key end -- expand (interpret) a single quoted area -- examples: $foo, "$foo", or `cmd` in back ticks function sh.expand(value) local expanded = value :gsub("%$([_%w%?]+)", function(key) if key == "?" then return tostring(sh.getLastExitCode()) end return os.getenv(key) or '' end) :gsub("%${(.*)}", function(key) if sh.internal.isIdentifier(key) then return os.getenv(key) or '' end io.stderr:write("${" .. key .. "}: bad substitution\n") os.exit(1) end) return expanded end function sh.internal.createThreads(commands, env, start_args) -- Piping data between programs works like so: -- program1 gets its output replaced with our custom stream. -- program2 gets its input replaced with our custom stream. -- repeat for all programs -- custom stream triggers execution of "next" program after write. -- custom stream triggers yield before read if buffer is empty. -- custom stream may have "redirect" entries for fallback/duplication. local threads = {} for i = 1, #commands do local command = commands[i] local program, args, redirects = table.unpack(command) local name = tostring(program) local thread_env = type(program) == "string" and env or nil local thread, reason = process.load(program or "/dev/null", thread_env, function(...) if redirects then sh.internal.openCommandRedirects(redirects) end args = tx.concat(args, start_args[i] or {}, table.pack(...)) -- popen expects each process to first write an empty string -- this is required for proper thread order io.write("") return table.unpack(args, 1, args.n or #args) end, name) if not thread then for _,t in ipairs(threads) do process.internal.close(t) end return nil, reason end threads[i] = thread end if #threads > 1 then require("pipe").buildPipeChain(threads) end return threads end function sh.internal.executePipes(pipe_parts, eargs, env) local commands = {} for _,words in ipairs(pipe_parts) do -- evaluated words local ewords = {} local has_globits local has_redirects for _,word in ipairs(words) do local eword = {txt=""} for _,part in ipairs(word) do -- expand all parts if interpreted (not literal) -- i.e '' is literal, "" and `` are interpreted local next = part.txt local quoted = part.qr local literal, keep_whitespace, sub if quoted then literal = quoted[3] keep_whitespace = quoted[1] == '"' sub = quoted[1]:match('`') or next:find('`') and '' else if next:match("[%*%?]") then has_globits = true end if next:match("[<>]") then has_redirects = true end end if not literal then next = sh.expand(next) if sub then next = sh.internal.parse_sub(sub .. next .. sub) end if not keep_whitespace then next = text.trim((next:gsub("%s+", " "))) end end eword[#eword + 1] = { txt = next, qr = quoted } eword.txt = eword.txt .. next end ewords[#ewords + 1] = eword end local redirects, reason if has_redirects then redirects, reason = sh.internal.buildCommandRedirects(ewords) if reason then return false, reason end end local args = {} for _,eword in ipairs(ewords) do if has_globits then for _,arg in ipairs(sh.internal.glob(eword)) do args[#args + 1] = arg end else args[#args + 1] = eword.txt end end commands[#commands + 1] = table.pack(table.remove(args, 1), args, redirects) end local threads, reason = sh.internal.createThreads(commands, env, {[#commands]=eargs}) if not threads then return false, reason end return process.internal.continue(threads[1]) end function sh.execute(env, command, ...) checkArg(2, command, "string") if command:find("^%s*#") then return true, 0 end local statements, reason = sh.internal.statements(command) if not statements or statements == true then return statements, reason elseif #statements == 0 then return true, 0 end -- MUST be table.pack for non contiguous ... local eargs = table.pack(...) -- simple if reason then sh.internal.ec.last = sh.internal.command_result_as_code(sh.internal.executePipes(statements, eargs, env)) return true end return sh.internal.execute_complex(statements, eargs, env) end function sh.hintHandler(full_line, cursor) return sh.internal.hintHandlerImpl(full_line, cursor) end require("package").delay(sh, "/lib/core/full_sh.lua") return sh
MapOBBMax = Vector(0,0,0) MapOBBMin = Vector(0,0,0) MapCenter = Vector(0,0,-10390) MapBoarder = 0.1 SkyboxOBBMax = SkyboxOBBMax or Vector(0,0,0) SkyboxOBBMin = SkyboxOBBMin or Vector(0,0,0) SkyboxCenter = SkyboxCenter or Vector(0,0,0) ScanMap = function() local Cam = ents.FindByClass("sky_camera") local SkyBoxCenter = Vector(0,0,0) if #Cam>0 then SkyboxCenter = Cam[1]:GetPos() print(SkyboxCenter) end local ETrace = function(_start,_end) local tr = util.TraceLine( { start = _start, endpos = _end, filter = game.GetWorld() } ) return tr.HitPos or _end end -- Locate the top of the map local zEnd = 0 local z = 0 for I=1,100 do local tr = util.TraceLine( { start = Vector(0,0,z), endpos = Vector(0,0,z+100000), filter = game.GetWorld() } ) if tr.HitSky then zEnd = tr.HitPos.z break elseif tr.Hit then z = ((tr.HitPos)+Vector(0,0,10)).z end end if zEnd<1 then print("[ERROR] Couldn't detect map size. [z = "..zEnd.."]") return end zStart = ETrace(Vector(0,0,0),Vector(0,0,-100000)).z xStart = ETrace(Vector(0,0,zEnd-10),Vector(-100000,0,zEnd-10)).x yStart = ETrace(Vector(0,0,zEnd-10),Vector(0,-100000,zEnd-10)).y xEnd = ETrace(Vector(0,0,zEnd-10),Vector(100000,0,zEnd-10)).x yEnd = ETrace(Vector(0,0,zEnd-10),Vector(0,100000,zEnd-10)).y MapOBBMax = Vector(xEnd,yEnd,zEnd) MapOBBMin = Vector(xStart,yStart,zStart) print("MapSize: ["..xStart..","..yStart..","..zStart.."]","["..xEnd..","..yEnd..","..zEnd.."]") zEnd = ETrace(SkyboxCenter,SkyboxCenter+Vector(0,0,1000)).z zStart = ETrace(SkyboxCenter,SkyboxCenter+Vector(0,0,-1000)).z xStart = ETrace(SkyboxCenter,SkyboxCenter+Vector(-10000,0,0)).x yStart = ETrace(SkyboxCenter,SkyboxCenter+Vector(0,-10000,0)).y xEnd = ETrace(SkyboxCenter,SkyboxCenter+Vector(10000,0,0)).x yEnd = ETrace(SkyboxCenter,SkyboxCenter+Vector(0,10000,0)).y SkyboxOBBMax = Vector(xEnd,yEnd,zEnd) SkyboxOBBMin = Vector(xStart,yStart,zStart) game.GetWorld():SetNWVector("OBBMax",MapOBBMax) game.GetWorld():SetNWVector("OBBMin",MapOBBMin) game.GetWorld():SetNWVector("SkyOBBMax",SkyboxOBBMax) game.GetWorld():SetNWVector("SkyOBBMin",SkyboxOBBMin) game.GetWorld():SetNWVector("SkyboxCenter",SkyboxCenter) game.GetWorld():SetNWVector("MapCenter",MapCenter) game.GetWorld():SetNWVector("MapBoarder",MapBoarder) hook.Call("MapScanComplete") end hook.Add( "InitPostEntity", "MapScan", ScanMap) if DEBUGLOADED then timer.Simple(0.1, function() ScanMap() end) end
-- Frame local b = CreateFrame("Frame", nil, UIParent) b:SetSize(80, 10) b:ClearAllPoints() b:SetPoint("LEFT", PetFrameHappiness, "RIGHT", 32, 0) -- Status Bar b.bar = CreateFrame("StatusBar", nil, b); b.bar:SetWidth(76); b.bar:SetHeight(8); b.bar:SetPoint("LEFT", b, "LEFT", 2, 0); b.bar:SetMinMaxValues(0, 100) b.bar:SetStatusBarTexture("Interface\\TargetingFrame\\UI-StatusBar"); b.bar:SetStatusBarColor(50/255, 100/255, 200/255) -- Border Texture b.bar.border = b.bar:CreateTexture("PetXPBarBorder", "OVERLAY"); b.bar.border:SetTexture("Interface\\Tooltips\\UI-StatusBar-Border"); b.bar.border:SetAllPoints(b); -- Level Text b.bar.tex = b.bar:CreateFontString("PetXPBarText", "OVERLAY", "GameFontHighlight"); b.bar.tex:SetPoint("CENTER", b, "CENTER", 0 , 1); b.bar.tex:SetJustifyH("CENTER"); b.bar.tex:SetJustifyV("CENTER"); function updateBar() currXP, nextXP = GetPetExperience() print("Pet Xp: " .. string.format("%2.2f", (currXP / nextXP) * 100) .. "%") b.bar:SetValue((currXP / nextXP) * 100) end function updateText() local level = UnitLevel("pet") print("Pet Level: " .. level) b.bar.tex:SetText(level) end -- Update Progress local initer = CreateFrame("Frame") initer:RegisterEvent("UNIT_PET_EXPERIENCE") initer:SetScript("OnEvent", function(self, event) updateBar() updateText() end) local reloader = CreateFrame("Frame") reloader:RegisterEvent("UNIT_PET") reloader:SetScript("OnEvent", function(self, event) hunterPetActive() end) function hunterPetActive () local hasUI, isHunterPet = HasPetUI(); b:Hide() if hasUI then if isHunterPet then updateBar() updateText() b:Show() end end end hunterPetActive()
--- Library for using usb4butia boards. -- This library interface with bobot library for -- accessing usb4butia-attached devices. It supports hotplug. -- There will be one object of this type for each bobot device. -- Bobot device's methods (it's api in the bobot terms) are -- available. -- @module bobot -- @alias device local M = {} --local my_path = debug.getinfo(1, "S").source:match[[^@?(.*[\/])[^\/]-$]] --package.path = package.path .. ";"..my_path.."../../bobot/?.lua" local sched=require 'sched' local toribio = require 'toribio' local bobot -- = require 'bobot' local log = require 'log' local devices_attached = {} local function check_open_device(d, ep1, ep2) if not d then return end if d.handler or d.name=='pnp' then return true end --FIXME bug in usb4butia pnp module -- if the device is not open, then open the device log('BOBOT', 'INFO', 'Opening %s on %s', tostring(d.name), tostring(d.handler)) return d:open(ep1 or 1, ep2 or 1) --TODO asignacion de ep? end local function get_device_name(d) --print("DEVICENAME", d.module, d.hotplug, d.handler) local board_id, port_id = '', '' if #bobot.baseboards>1 then board_id='@'..d.baseboard.idBoard end if d.hotplug then port_id = ':'..d.handler end local n=d.module..board_id..port_id return n end local function read_devices_list() local bfound local devices_attached_now = {} for _, bb in ipairs(bobot.baseboards) do for _,d in ipairs(bb.devices) do local regname = get_device_name(d) d.name=regname devices_attached_now[regname]=d end bfound = true end for regname, d in pairs(devices_attached) do if not devices_attached_now[regname] then toribio.remove_devices({name=d.name}) devices_attached[regname]=nil end end -- devices_attached_now["motors"]:open(1,1) -- devices_attached_now["motors"].api["setvel2mtr"].call(1,900,1,900) -- sched.sleep(12) for regname, dv in pairs(devices_attached_now) do if not devices_attached[regname] then -- if check_open_device(d, nil, nil) then local device ={ --- Name of the device. -- Starts with 'bb-' and then the name provided -- by bobot. For example, "bb-dist:1". name='bb-'..dv.name, --- Module of the device. -- Starts with 'bb-' and then the module provided -- by bobot. For example, "bb-dist". module="bb-"..dv.module, } device.bobot_metadata = {} for fn, ff in pairs(dv.api or {}) do device["dev"] = dv device[fn]=ff.call device.bobot_metadata[ff.call] = { parameters = ff.parameters, returns = ff.returns, } end -- if (regname=="motors") then -- print(1123124) -- device["dev"]:open(1,1) -- device["dev"].api["setvel2mtr"].call(1,900,1,900) --sched.sleep(2) --end -- devices_attached_now["motors"]:open(1,1) -- devices_attached_now["motors"].api["setvel2mtr"].call(1,900,1,900) -- sched.sleep(12) toribio.add_device(device) devices_attached[regname]=device --else --print ('Error opening', d.name) --end end end if not bfound then log('BOBOT', 'WARNING', ' No Baseboard found') end end M.refresh = function () print ('bobot refreshing!') if #bobot.baseboards==0 then --print("------------------INIT") sched.sleep(0.5) bobot.init(M.bobot_params) read_devices_list() else --print("------------------REFRESH") local refreshed for i, bb in ipairs(bobot.baseboards) do if bb.refresh and bb.hotplug then if not bb:refresh() then bobot.baseboards[i]=nil end refreshed=true end end if refreshed then read_devices_list() end end end --- Initialize and starts the module. -- This is called automatically by toribio if the _load_ attribute for the module in the configuration file is set to -- true. -- @param conf the configuration table (see @{conf}). M.init = function (conf) local timeout_refresh = conf.timeout_refresh or -1 if conf.path then if conf.path:sub(1,1)=='/' then package.path = package.path .. ";"..conf.path..'/?.lua' else local my_path = debug.getinfo(1, "S").source:match[[^@?(.*[\/])[^\/]-$]] package.path = package.path .. ";"..my_path..conf.path..'/?.lua' end end bobot = require 'bobot' M.bobot_params = conf.comms bobot.init(conf.comms) local count = 60 while #bobot.baseboards == 0 and count > 0 do log('BOBOT', 'DETAIL', 'Retrying conect: %s', count) sched.sleep(1) bobot.init(conf.comms) count = count-1 end read_devices_list() sched.sigrun({ emitter='*', buff_size=1, timeout=timeout_refresh, events={'do_bobot_refresh'} }, M.refresh) end return M --- Configuration Table. -- This table is populated by toribio from the configuration file. -- @table conf -- @field load whether toribio should start this module automatically at startup. -- @field comms communitaction parameter to provide to bobot library (such as `{"usb", "serial"}`) -- @field path where the bobot library is installed. -- @field timeout_refresh Time before triggering a re-detection of attached modules -- (nil or negative disables).
----------------------------------------------------------------------------------------- -- -- fun.lua -- ----------------------------------------------------------------------------------------- -- corona local composer = require( "composer" ) local widget = require( "widget" ) local mui = require( "materialui.mui" ) local scene = composer.newScene() -- mui local muiData = require( "materialui.mui-data" ) -------------------------------------------- -- forward declarations and other locals local screenW, screenH, halfW = display.contentWidth, display.contentHeight, display.contentWidth*0.5 local background local scrollView local function destroyDemoText( demoText ) mui.debug("destroyDemoText called") if demoText ~= nil then demoText:removeSelf() demoText = nil end end function scene:create( event ) -- Called when the scene's view does not exist. -- -- INSERT code here to initialize the scene -- e.g. add display objects to 'sceneGroup', add touch listeners, etc. local sceneGroup = self.view mui.init() -- Gather insets (function returns these in the order of top, left, bottom, right) local topInset, leftInset, bottomInset, rightInset = mui.getSafeAreaInsets() -- Create a vector rectangle sized exactly to the "safe area" local background = display.newRect( display.screenOriginX + leftInset, display.screenOriginY + topInset, display.contentWidth - ( leftInset + rightInset ), display.contentHeight - ( topInset + bottomInset ) ) background:setFillColor( 1 ) background:translate( background.width*0.5, background.height*0.5 ) sceneGroup:insert( background ) mui.newRoundedRectButton({ name = "goBack", text = "Go Back", width = 100, height = 30, x = 80, y = 70, font = native.systemFont, fillColor = { 0.31, 0.65, 0.03, 1 }, textColor = { 1, 1, 1 }, iconText = "arrow_back", iconFont = mui.materialFont, iconFontColor = { 1, 1, 1, 1 }, -- iconImage = "1484026171_02.png", callBack = mui.actionSwitchScene, callBackData = { sceneDestination = "menu", sceneTransitionColor = { 0, 0.73, 1 }, sceneTransitionAnimation = true } -- scene menu.lua }) -- show a "toast" message, yes I said toast like HTML 5 Toast -- recommend 40 percent ratio for one liners (20 radius/50 height = 0.40) local showToast = function() mui.newToast({ name = "toast_demo", text = "New Messages!", radius = 20, width = 150, height = 30, font = native.systemFont, fontSize = 18, fillColor = { 0, 0, 0, 1 }, textColor = { 1, 1, 1, 1 }, top = 40 + muiData.safeAreaInsets.topInset, easingIn = 500, easingOut = 500, callBack = mui.actionForButton }) end mui.newRoundedRectButton({ name = "newToast", text = "Show Toast", width = 100, height = 30, x = 80, y = 110, font = native.systemFont, textColor = { 1, 1, 1, 1 }, fillColor = { 0.63, 0.81, 0.181 }, radius = 10, callBack = showToast }) mui.newTextField({ name = "textfield_demo4", labelText = "My Topic", text = "Hello, World!", font = native.systemFont, width = 200, height = 30, x = 130, y = 190, activeColor = { 0.12, 0.67, 0.27, 1 }, inactiveColor = { 0.4, 0.4, 0.4, 1 }, callBack = mui.textfieldCallBack }) -- horizontal slider (vertical in development) ---[[-- mui.newSlider({ name = "slider_demo", width = 200, height = 2, x = 130, y = 260, radius = 12, colorOff = { 1, 1, 1, 1 }, color = { 0.63, 0.81, 0.181 }, startPercent = 30, callBackMove = mui.sliderCallBackMove, callBack = mui.sliderCallBack }) mui.newSlider({ name = "slider_demo2", width = 200, height = 2, x = 130, y = 300, radius = 12, colorOff = { 1, 1, 1, 1 }, color = { 0.31, 0.65, 0.03, 1 }, startPercent = 60, callBackMove = mui.sliderCallBackMove, callBack = mui.sliderCallBack }) --]]-- -- Create the widget ---[[-- local scrollWidth = muiData.safeAreaWidth * 0.5 scrollView = widget.newScrollView( { top = 15, left = (muiData.safeAreaWidth - scrollWidth), width = scrollWidth, height = muiData.safeAreaHeight - 50, scrollWidth = scrollWidth, scrollHeight = (muiData.safeAreaHeight * 2), listener = scrollAListener } ) mui.newTextField({ name = "textfield_demo2", labelText = "Subject", text = "Hello, world!", font = native.systemFont, width = 200, height = 30, x = 120, y = 80, activeColor = { 0.12, 0.67, 0.27, 1 }, inactiveColor = { 0.4, 0.4, 0.4, 1 }, callBack = mui.textfieldCallBack, scrollView = scrollView }) mui.newTextField({ name = "textfield_demo3", labelText = "Tweet", text = "Scroll away", font = native.systemFont, width = 200, height = 30, x = 120, y = 160, activeColor = { 0.12, 0.67, 0.27, 1 }, inactiveColor = { 0.4, 0.4, 0.4, 1 }, callBack = mui.textfieldCallBack, scrollView = scrollView, isSecure = true }) -- create a drop down list local numOfRowsToShow = 3 mui.newSelect({ name = "selector_demo2", labelText = "Favorite Food", text = "Apple", font = native.systemFont, textColor = { 0.4, 0.4, 0.4 }, fieldBackgroundColor = { 1, 1, 1, 1 }, rowColor = { default={ 1, 1, 1, 1 }, over={ 1, 0.5, 0, 0.2 } }, -- default is the highlighting rowBackgroundColor = { 1, 1, 1, 1 }, -- the drop down color of each row touchpointColor = { 0.4, 0.4, 0.4 }, -- the touchpoint color activeColor = { 0.12, 0.67, 0.27, 1 }, inactiveColor = { 0.4, 0.4, 0.4, 1 }, strokeColor = { 0.4, 0.4, 0.4, 1 }, strokeWidth = 2, width = 200, height = 30, listHeight = 30 * numOfRowsToShow, x = 120, y = 240, callBackTouch = mui.onRowTouchSelector, scrollListener = nil, list = { -- if 'key' use it for 'id' in the table row { key = "Row1", text = "Apple", value = "Apple", isCategory = false, backgroundColor = {1,1,1,1} }, { key = "Row2", text = "Cookie", value = "Cookie", isCategory = false }, { key = "Row3", text = "Pizza", value = "Pizza", isCategory = false }, { key = "Row4", text = "Shake", value = "Shake", isCategory = false }, { key = "Row5", text = "Shake 2", value = "Shake 2", isCategory = false }, { key = "Row6", text = "Shake 3", value = "Shake 3", isCategory = false }, { key = "Row7", text = "Shake 4", value = "Shake 4", isCategory = false }, { key = "Row8", text = "Shake 5", value = "Shake 5", isCategory = false }, { key = "Row9", text = "Shake 6", value = "Shake 6", isCategory = false }, }, scrollView = scrollView, }) --[[-- local newlist = {} newlist = { { key = "Row1", text = "Dog", value = "Puggle", isCategory = false}, { key = "Row2", text = "Cat", value = "Tabby", isCategory = false }, { key = "Row3", text = "Dinosaur", value = "Raptor", isCategory = false }, } mui.setSelectorList("selector_demo2", newlist) --]]-- mui.newTextBox({ name = "textbox_demo1", labelText = "Secret Text Box", text = "I am hidden in view\nYes, me too!\nFood\nDrink\nDesert\n1\n2\n3\n4\n5", font = native.systemFont, fontSize = 16, textBoxFontSize = 16, width = 200, height = 100, x = 120, y = 355, trimFakeTextAt = 80, -- trim at 1..79 characters. activeColor = { 0.12, 0.67, 0.27, 1 }, inactiveColor = { 0.4, 0.4, 0.4, 1 }, callBack = mui.textfieldCallBack, isEditable = true, doneButton = { width = 100, height = 30, fillColor = { 0.25, 0.75, 1, 1 }, textColor = { 1, 1, 1 }, text = "done", iconText = "done", iconFont = mui.materialFont, iconFontColor = { 1, 1, 1, 1 }, radius = mui.getScaleX(8), -- set to 0 for newRectButton() instead of rounded }, overlayBackgroundColor = { 1, 1, 1, 1 }, overlayTextBoxBackgroundColor = { .9, .9, .9, 1 }, overlayTextBoxHeight = 100, scrollView = scrollView }) -- mui.setTextBoxValue("textbox_demo1", "toys in store") --[[-- mui.newTextField({ name = "textfield_demo5", labelText = "Numbers Only", text = "12345", font = native.systemFont, width = mui.getScaleVal(400), height = mui.getScaleVal(46), x = mui.getScaleVal(240), y = mui.getScaleVal(530), activeColor = { 0.12, 0.67, 0.27, 1 }, inactiveColor = { 0.4, 0.4, 0.4, 1 }, callBack = mui.textfieldCallBack, scrollView = scrollView, inputType = "number" }) --]]-- local textOptions = { --parent = textGroup, text = "Scroll the above", width = 150, font = native.systemFont, fontSize = 16, align = "left" --new alignment parameter } infoText = display.newText( textOptions ) infoText:setFillColor( 0.4, 0.4, 0.4 ) infoText.x = scrollView.x + (scrollView.contentWidth * .1) infoText.y = muiData.safeAreaHeight - infoText.contentHeight * .5 -- slide panel example local hideSlidePanel = function(event) mui.debug("home button pushed") -- or use close method below to close and release slider from memory -- mui.closeSlidePanel("slidepanel-demo") mui.hideSlidePanel("slidepanel-demo2") end -- slide panel example, uses navbar's "menu" icon below local showSlidePanel2 = function(event) mui.newSlidePanel({ name = "slidepanel-demo2", title = "MUI Demo", -- leave blank for no panel title text titleAlign = "center", font = native.systemFont, width = 250, titleFontSize = 18, titleFontColor = { 1, 1, 1, 1 }, titleFont = native.systemFont, titleBackgroundColor = { 0.63, 0.81, 0.181 }, fontSize = 18, fillColor = { 1, 1, 1, 1 }, -- background color buttonToAnimate = "menu", callBack = nil, labelColor = { 0.63, 0.81, 0.181 }, -- active labelColorOff = { 0.5, 0.5, 0.5, 1 }, -- non-active buttonHeight = 36, -- fontSize * 2 buttonHighlightColor = { 0.5, 0.5, 0.5 }, buttonHighlightColorAlpha = 0.5, touchpoint = true, list = { { key = "Home", value = "1", icon="home", labelText="Home", isActive = true }, { key = "Newsroom", value = "2", icon="new_releases", labelText="News", isActive = false }, { key = "Location", value = "3", icon="location_searching", labelText="Location Information", isActive = false }, { key = "To-do", value = "4", icon="view_list", labelText="To-do", isActive = false }, }, }) end -- put navbar on bottom. this is to stay on top of other widgets. -- supported widget types are : "RRectButton", "RectButton", "IconButton", "Slider", "TextField" mui.newNavbar({ name = "navbar_demo", --width = mui.getScaleVal(500), -- defaults to display.contentWidth height = 40, left = 0, top = 0, fillColor = { 0.63, 0.81, 0.181 }, activeTextColor = { 1, 1, 1, 1 }, padding = 5, }) mui.newIconButton({ name = "menu", text = "menu", width = 25, height = 25, x = 0, y = 0, font = mui.materialFont, textColor = { 1, 1, 1 }, textAlign = "center", callBack = showSlidePanel2 }) mui.attachToNavBar( "navbar_demo", { widgetName = "menu", widgetType = "IconButton", align = "left", -- left | right supported }) mui.newIconButton({ name = "refresh", text = "refresh", width = 25, height = 25, x = 0, y = 0, font = mui.materialFont, textColor = { 1, 1, 1 }, textAlign = "center", callBack = mui.actionForButton }) mui.attachToNavBar( "navbar_demo", { widgetName = "refresh", widgetType = "IconButton", align = "left", -- left | right supported }) mui.newTextField({ name = "textfield_nav", text = "", placeholder = "Search", font = native.systemFont, width = 200, height = 30, x = 0, y = 0, activeColor = { 1, 1, 1, 1 }, inactiveColor = { 1, 1, 1, 0.8 }, fillColor = { 0.63, 0.81, 0.181 }, callBack = mui.textfieldCallBack }) mui.attachToNavBar( "navbar_demo", { widgetName = "textfield_nav", widgetType = "TextField", align = "left", -- left | right supported }) mui.newIconButton({ name = "help", text = "help", width = 25, height = 25, x = 0, y = 0, font = mui.materialFont, textColor = { 1, 1, 1 }, textAlign = "center", callBack = mui.actionForButton }) mui.attachToNavBar( "navbar_demo", { widgetName = "help", widgetType = "IconButton", align = "right", -- left | right supported }) -- -- create a Generic User-defined widget and attach to navbar -- local textOptions = { --parent = textGroup, text = "Ready", x = 0, y = 0, font = native.systemFont, fontSize = 18, align = "left" --new alignment parameter } local demoText = display.newText( textOptions ) demoText:setFillColor( unpack( {1, 1,1 ,1} ) ) mui.attachToNavBar( "navbar_demo", { widgetName = "demoText", widgetType = "Generic", widgetObject = demoText, destroyCallBack = destroyDemoText, -- user supplied method, must be defined otherwise it will not free memory padding = 12, align = "right", -- left | right supported }) end -- -- a generic scroll to hold ui elements -- -- ScrollView listener function scrollAListener( event ) local phase = event.phase if event.phase == nil then return end mui.updateEventHandler( event ) if ( phase == "began" ) then -- skip it elseif ( phase == "moved" ) then mui.updateUI(event) elseif ( phase == "ended" ) then mui.removeFocus() -- mui.debug( "Scroll view was released" ) end -- In the event a scroll limit is reached... if ( event.limitReached ) then if ( event.direction == "up" ) then mui.debug( "Reached bottom limit" ) elseif ( event.direction == "down" ) then mui.debug( "Reached top limit" ) elseif ( event.direction == "left" ) then mui.debug( "Reached right limit" ) elseif ( event.direction == "right" ) then mui.debug( "Reached left limit" ) end end return true end function scene:show( event ) local sceneGroup = self.view local phase = event.phase if phase == "will" then -- Called when the scene is still off screen and is about to move on screen elseif phase == "did" then -- Called when the scene is now on screen -- -- INSERT code here to make the scene come alive -- e.g. start timers, begin animation, play audio, etc. --physics.start() -- mui.actionSwitchScene({callBackData={sceneDestination="menu"}}) end end function scene:hide( event ) local sceneGroup = self.view local phase = event.phase if event.phase == "will" then -- Called when the scene is on screen and is about to move off screen -- -- INSERT code here to pause the scene -- e.g. stop timers, stop animation, unload sounds, etc.) --physics.stop() elseif phase == "did" then -- Called when the scene is now off screen end end function scene:destroy( event ) -- Called prior to the removal of scene's "view" (sceneGroup) -- -- INSERT code here to cleanup the scene -- e.g. remove display objects, remove touch listeners, save state, etc. local sceneGroup = self.view mui.destroy() if scrollView ~= nil then scrollView:removeSelf() scrollView = nil end if background ~= nil then background:removeSelf() background = nil end if infoText ~= nil then infoText:removeSelf() infoText = nil end sceneGroup:removeSelf() sceneGroup = nil end --------------------------------------------------------------------------------- -- Listener setup scene:addEventListener( "create", scene ) scene:addEventListener( "show", scene ) scene:addEventListener( "hide", scene ) scene:addEventListener( "destroy", scene ) ----------------------------------------------------------------------------------------- return scene
dofile("../framework/framework.lua") SetupSolution("Tutorial17") dofile("tutorials.lua");
local t = Def.ActorFrame{} t[#t+1] = Def.Quad{ InitCommand = function(self) self:FullScreen() end } t[#t+1] = LoadActor("../_songbg.lua") t[#t+1] = Def.Quad{ InitCommand = function(self) self:xy(SCREEN_CENTER_X, SCREEN_HEIGHT):valign(1) self:zoomto(SCREEN_WIDTH,SCREEN_HEIGHT/8):fadetop(1) end } t[#t+1] = Def.Quad{ InitCommand = function(self) self:xy(SCREEN_CENTER_X, 0):valign(0) self:zoomto(SCREEN_WIDTH,SCREEN_HEIGHT/8):fadebottom(1) end } local intervals = {22,31.5,44,63,88,125,177,250,355,500,710,1000,1420,2000,2840,4000,5680} t[#t+1] = audioVisualizer:new{ x = 0, y = SCREEN_HEIGHT, maxHeight = SCREEN_HEIGHT/2, width = SCREEN_WIDTH, freqIntervals = audioVisualizer.multiplyIntervals(intervals, 5), -- 2nd to 9th octave...? color = color("#FFFFFF"), spacing = -15, onBarUpdate = function(self) local rand = math.random() self:diffuse(HSVA(rand*360,0.5,0.9,0.2)) self:fadetop(1) end } t[#t + 1] = LoadActor("bgm") return t
Option = {} function Option:apply(v) self.__index = self v = v or nil if v == nil then is_valid = false else is_valid = true end local option = {_is_valid = is_valid, _value = v} return setmetatable(option, self) end function Option:is_valid() return self._is_valid end function Option:value() return self._value end return Option
--[[ Copyright (c) 2015 gameboxcloud.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 helper = cc.import(".helper") local tests = cc.import("#tests") local check = tests.Check local JobsTestCase = cc.class("JobsTestCase", tests.TestCase) local _TEST_REDIS_KEY = 'jobs.test.number' local _flush function JobsTestCase:setup() local instance = self:getInstance() self._jobs = instance:getJobs() self._redis = instance:getRedis() _flush(self._jobs, self._redis) end function JobsTestCase:teardown() _flush(self._jobs, self._redis) end function JobsTestCase:addAction() local number = math.random(1, 10000) local data = {number = number, key = _TEST_REDIS_KEY} local delay = 1 local jobid = self._jobs:add({ action = 'jobs.trigging', data = data, delay = delay, }) check.isInt(jobid) helper.sleep(delay + 1) -- waiting for job done -- query job result from redis local res = tonumber(self._redis:get(_TEST_REDIS_KEY)) check.equals(res, number * 2) return true end function JobsTestCase:atAction() local number = math.random(20000, 30000) local data = {number = number, key = _TEST_REDIS_KEY} local time = os.time() + 1 local jobid = self._jobs:at({ action = 'jobs.trigging', data = data, time = time, }) check.isInt(jobid) helper.sleep(2) -- waiting for job done -- query job result from redis local now = os.time() local res = tonumber(self._redis:get(_TEST_REDIS_KEY)) check.equals(res, number * 2) check.isTrue(math.abs(now - time) <= 1) return true end function JobsTestCase:getAction() local number = math.random(40000, 50000) local data = {number = number, key = _TEST_REDIS_KEY} local delay = 2 local jobid = self._jobs:add({ action = 'jobs.trigging', data = data, delay = delay, }) check.isInt(jobid) -- query job local job = self._jobs:get(jobid) check.isTable(job) check.equals(job.id, jobid) check.equals(job.data, data) -- delete job local res = self._jobs:delete(jobid) check.isTrue(res) return true end -- remove all jobs function JobsTestCase:_flush() local states = {"ready", "delayed", "buried"} for _, state in ipairs(states) do while true do local job = self._jobs:queryNext(state) if not job then break end self._jobs:remove(job.id) end end end -- private _flush = function(jobs, redis) redis:del(_TEST_REDIS_KEY) end return JobsTestCase
local cache = require "luacheck.cache" local fs = require "luacheck.fs" local lfs = require "lfs" local sha1 = require "luacheck.vendor.sha1" setup(function() end) describe("cache", function() describe("get_default_dir", function() it("returns a string", function() assert.is_string(cache.get_default_dir()) end) end) describe("new", function() it("returns nil, error message on failure to init cache", function() local c, err = cache.new("LICENSE") assert.is_nil(c) assert.is_string(err) end) it("returns Cache object on success", function() local c = cache.new("src") assert.is_table(c) end) end) describe("Cache", function() local filename = "spec/caches/file.lua" local normalized_filename = fs.normalize(fs.join(fs.get_current_dir(), filename)) local cache_dir = "spec/caches" local cache_filename = fs.join(cache_dir, sha1.sha1(normalized_filename)) local c before_each(function() c = cache.new(cache_dir) assert.is_table(c) end) after_each(function() os.remove(filename) if lfs.attributes(cache_filename, "mode") == "directory" then lfs.rmdir(cache_filename) else os.remove(cache_filename) end end) local function make_report(code) return { warnings = { code and {code = code} }, inline_options = {}, line_lengths = {} } end describe("put", function() it("returns nil on failure to store cache", function() lfs.mkdir(cache_filename) local ok = c:put(filename, make_report()) assert.is_nil(ok) end) it("returns true on successfull cache store", function() local ok = c:put(filename, make_report()) assert.is_true(ok) end) end) describe("get", function() it("returns nil on cache miss", function() local report, err = c:get(filename) assert.is_nil(report) assert.is_nil(err) end) it("returns nil on outdated cache", function() assert.is_true(c:put(filename, make_report())) io.open(filename, "w"):close() assert.is_true(lfs.touch(filename, os.time() + 100000)) local report, err = c:get(filename) assert.is_nil(report) assert.is_nil(err) end) it("returns report on success", function() local original_report = make_report("111") assert.is_true(c:put(filename, original_report)) io.open(filename, "w"):close() assert.is_true(lfs.touch(filename, os.time() - 100000)) local cached_report = c:get(filename) assert.same(original_report, cached_report) end) end) end) end)
--[[ Bitmap font creator by Dante van Gemert main file Project resources: - UFO spec: http://unifiedfontobject.org/versions/ufo3/ - TTF info: https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=IWS-Chapter08 - GUI lib: https://notabug.org/pgimeno/Gspot/wiki - UFO compiler: https://github.com/googlefonts/fontmake - Python in Lua: https://labix.org/lunatic-python - Unicode reference: https://compart.com/en/unicode/ - Example ufo font: https://github.com/adobe-fonts/source-sans-pro/tree/master/Roman/Instances/Regular/font.ufo To compile generated ufo font: 1. (install googlefonts/fontmake) 2. fontmake -u test.ufo -o ttf --output-path test.ttf ]]-- local font = require "font" local gui -- local fnt, selectedGlyph, selectedLayer glyphListWidth = 100 local scale, scaleRound = 50, 50 local canvasPos = {} canvasPos.x = function() return glyphListWidth+16 end canvasPos.y = function() return 0 end canvasPos.w = function() return love.graphics.getWidth() - canvasPos.x() - 200 end canvasPos.h = function() return love.graphics.getHeight() - 50 end canvasPos.x2 = function() return canvasPos.x() + canvasPos.w() end canvasPos.y2 = function() return canvasPos.y() + canvasPos.h() end local glyphPos = { _x=scale, _y=canvasPos.h()-scale } glyphPos.x = function() return canvasPos.x() + glyphPos._x end glyphPos.y = function() return canvasPos.y() + glyphPos._y end glyphPos.w = function() return selectedGlyph.width * scaleRound end glyphPos.h = function() return selectedGlyph.height * scaleRound end glyphPos.x2 = function() return glyphPos.x() + glyphPos.w() end glyphPos.y2 = function() return glyphPos.y() + glyphPos.h() end local drawingCanvas = false local draggingAdvanceLine = false function round(val) -- Round X.5 towards positive infinity return val + 0.5 - (val+0.5) % 1 -- equal to math.floor(val+0.5), but faster end function love.load(args) love.graphics.setDefaultFilter( "nearest", "nearest" ) -- Prevent blurry glyph scaling -- Load default font fnt = font({family = "font"}) fnt.author = "nl.dantevg" -- Select default characters selectedLayer = fnt.layers[1] selectedGlyph = selectedLayer.glyphs[1] -- Print a welcome message to the terminal print("Welcome to BitmapFontCreator") print("============================") print() -- Build the GUI gui = require "ui" gui.fontmakePath = args[1] or "fontmake" gui.load(fnt) fnt:autoCompoundGlyphs(selectedLayer) end function love.update(dt) -- require("lib/lovebird").update() gui.gspot:update(dt) -- Update title to match font name love.window.setTitle( "Bitmapfontcreator - "..fnt.family ) end function love.draw() love.graphics.clear( 0.1, 0.1, 0.1 ) -- Draw glyph love.graphics.setColor( 1, 1, 1 ) love.graphics.draw( selectedGlyph:getImage(), glyphPos.x()+selectedGlyph.xOffset*scaleRound, glyphPos.y()-(selectedGlyph.yOffset+selectedGlyph.height)*scaleRound, 0, scaleRound, scaleRound ) -- Draw pixel aligned lines if scaleRound >= 5 then love.graphics.setColor( 0.5, 0.5, 0.5, 0.1 ) for x = canvasPos.x() + (glyphPos._x % scaleRound), canvasPos.x2(), scaleRound do love.graphics.line( x, canvasPos.y(), x, canvasPos.y2() ) end for y = canvasPos.y() + (glyphPos._y % scaleRound), canvasPos.y2(), scaleRound do love.graphics.line( canvasPos.x(), y, canvasPos.x2(), y ) end love.graphics.setColor( 1, 1, 1, 0.2 ) for x = glyphPos.x(), canvasPos.x2(), scaleRound*5 do love.graphics.line( x, canvasPos.y(), x, canvasPos.y2() ) end for y = glyphPos.y(), canvasPos.y(), -scaleRound*5 do love.graphics.line( canvasPos.x(), y, canvasPos.x2(), y ) end end -- Draw glyph baseline and left line love.graphics.setColor( 1, 1, 1 ) love.graphics.line( canvasPos.x(), glyphPos.y(), canvasPos.x2(), glyphPos.y() ) love.graphics.line( glyphPos.x(), canvasPos.y(), glyphPos.x(), canvasPos.y2() ) -- Draw glyph advance line love.graphics.setColor( 0, 0.5, 1, 0.5 ) love.graphics.line( glyphPos.x()+selectedGlyph.advance*scaleRound, canvasPos.y(), glyphPos.x()+selectedGlyph.advance*scaleRound, canvasPos.y2() ) -- Draw font preview love.graphics.setColor( 1, 1, 1 ) local sentence = "The quick brown fox jumps over the lazy dog." local x = canvasPos.x()+5 for i = 1, #sentence do local glyph = fnt:getGlyph( selectedLayer, require("utf8").codepoint(sentence,i,i) ) local ox = glyph.xOffset*2 local oy = glyph.height*2 + glyph.yOffset*2 love.graphics.draw( glyph:getImage(), x+ox, love.graphics.getHeight()-55-oy, 0, 2, 2 ) x = x+glyph.advance*2 end gui.gspot:draw() -- Draw component choosing overlay if gui.addingComponent then love.graphics.setColor( 0, 0, 0, 0.8 ) love.graphics.rectangle( "fill", canvasPos.x(), 0, love.graphics.getWidth()-canvasPos.x(), love.graphics.getHeight() ) love.graphics.setColor( 1, 1, 1 ) end end -- Convert screen coordinates to canvas coordinates function toCanvasCoords( x, y ) local insideX = (x >= canvasPos.x() and x < canvasPos.x2()) local insideY = (y >= canvasPos.y() and y < canvasPos.y2()) return x-canvasPos.x(), y-canvasPos.y(), (insideX and insideY) end -- Convert screen coordinates to glyph image coordinates function toGlyphCoords( x, y ) x = (x-glyphPos.x()) / scaleRound y = (glyphPos.y()-y) / scaleRound local insideX = (x >= 0 and x < selectedGlyph.width) local insideY = (y >= 0 and y < selectedGlyph.height) return x, y, (insideX and insideY) end function isDragging() return love.mouse.isDown(3) or love.keyboard.isDown("lctrl") end function setCursor( x, y, inside ) if isDragging() and inside then love.mouse.setCursor( love.mouse.getSystemCursor("sizeall") ) elseif draggingAdvanceLine or (inside and math.abs( glyphPos.x() + selectedGlyph.advance*scaleRound - x ) < 10) then love.mouse.setCursor( love.mouse.getSystemCursor("sizewe") ) else love.mouse.setCursor( love.mouse.getSystemCursor("arrow") ) end end -- Forward love2d events to Gspot GUI function love.keypressed(key) gui.gspot:keypress(key) end function love.textinput(key) gui.gspot:textinput(key) end function love.mousepressed( x, y, btn ) if gui.addingComponent and x > canvasPos.x() then return end gui.gspot:mousepress( x, y, btn ) local _, _, inside = toCanvasCoords( x, y ) setCursor( x, y, inside ) drawingCanvas = inside if inside and not isDragging() then -- Click within canvas boundaries if math.abs( glyphPos.x() + selectedGlyph.advance*scaleRound - x ) < 10 then draggingAdvanceLine = true else -- Draw and update previews x, y = toGlyphCoords( x, y ) selectedGlyph:setPixel( x, y, btn==1 ) gui.updatePreviews() end end end function love.mousereleased( x, y, btn ) gui.gspot:mouserelease( x, y, btn ) drawingCanvas = false draggingAdvanceLine = false setCursor( x, y, select( 3, toCanvasCoords(x,y) ) ) end function love.wheelmoved( x, y ) gui.gspot:mousewheel( x, y ) -- Zoom if mouse isn't over GUI if love.mouse.getX() > canvasPos.x() and love.mouse.getX() < canvasPos.x2() and love.mouse.getY() > canvasPos.y() and love.mouse.getY() < canvasPos.y2() then scale = math.min( math.max( 1, scale + y*scale*0.05 ), 100 ) scaleRound = math.floor(scale) end end function love.mousemoved( x, y, dx, dy ) local _, _, inside = toCanvasCoords( x, y ) setCursor( x, y, inside ) x, y = toGlyphCoords( x, y ) if draggingAdvanceLine then selectedGlyph.advance = round(x) elseif inside and drawingCanvas then -- Drag draw if mouse is within canvas boundaries if isDragging() then glyphPos._x = glyphPos._x + dx glyphPos._y = glyphPos._y + dy elseif love.mouse.isDown(1) then selectedGlyph:setPixel( x, y, true ) gui.updatePreviews() elseif love.mouse.isDown(2) then selectedGlyph:setPixel( x, y, false ) gui.updatePreviews() end end end function love.resize() gui.resize( love.graphics.getWidth(), love.graphics.getHeight() ) gui.updatePreviews(true) end function love.directorydropped(path) print("Loading font") fnt = font.load(path) selectedLayer = fnt.layers[1] selectedGlyph = selectedLayer.glyphs[1] gui.load(fnt) end
local methods = require("null-ls.methods") return { method = methods.internal.FORMATTING, generator = { fn = function(params, done) return done({ { text = params.content[1] == "first" and "sequential" or "second" } }) end, async = true, }, filetypes = { "text" }, }
local m = string.match local gsub = string.gsub require 'formes' require 'capabilities' require 'moves' require 'pokeExtras' local formCache = {} local regionCache = {} local evoCache = {} local nameLUT = {} local formeNames = loadFormesList('formesList.txt') function cacheRegionVariant(poke) local num = poke.dexNum local c = regionCache[num] if not c then regionCache[num] = {} c = regionCache[num] end local region = poke.region or 'original' c[region] = poke end function cacheForme(shortName, fullName) local c = formCache[shortName] if not c then c = {} formCache[shortName] = c end table.insert(c, fullName) return c end function getPokemonNameOnly(page) page = flabebeCheck(page) local pkmn = { name = getName(page) } return pkmn end function addNewFormeName(name, formeName) local fullName = string.format("%s %s", name, formeName) formeNames[fullName] = {name = name, forme = formeName} end -- EDGE CASES! -- PUMPKABOO/GOURGEIST - multiple stats for sizes (make into forms) -- ROTOM - bullshit forms -- NIDORAN - M/F function getPokemon(page, natDex) -- Typo/Misc pre-processing page = flabebeCheck(page) page = lycanrocCheck(page) page = sliggooCheck(page) page = advAbility1Check(page) -- get simple stuff local pkmn = { name = getName(page), hp = getHP(page), atk = getAtk(page), def = getDef(page), spAtk = getSpAtk(page), spDef = getSpDef(page), spd = getSpd(page), ability_basic1 = getBA1(page), ability_basic2 = getBA2(page), ability_advanced1 = getAA1(page), ability_advanced2 = getAA2(page), ability_advanced3 = getAA3(page), ability_high = getHA(page), height = getHeight(page), weight = getWeight(page), size = getSize(page), gender = getGenderRatio(page), hatchRate = getHatchRate(page), diet = getDiet(page), habitat = getHabitat(page), evoStr = getEvolutionStr(page), skillStr = getSkillStr(page), capabilityStr = getCapabilityStr(page), } -- pkmn.dexNum -- get move lists local moveLists = getMovesStr(page, pkmn.name) if moveLists.lvl then pkmn.movesLvl = parseLvlMoveList(moveLists.lvl) end -- temporary bypass for MEW if pkmn.name ~= "MEW" then if moveLists.tm then pkmn.movesTM = parseTMMoveList(moveLists.tm) end if moveLists.egg then pkmn.movesEgg = parseMoveList(moveLists.egg) end if moveLists.tutor then pkmn.movesTutor = parseMoveList(moveLists.tutor) end end -- get more complex info handleAbilityCorners(pkmn) pkmn.typeMain, pkmn.typeSub = getTypes(page) pkmn.eggGroup1, pkmn.eggGroup2 = getEggGroups(page) processRegion(pkmn, natDex) cacheRegionVariant(pkmn) parseSkills(pkmn) parseCapabilities(pkmn) assignExtraInfo(pkmn, page) -- add to LUT local lowerName = string.lower(pkmn.name) nameLUT[lowerName] = pkmn -- print "----------------------------------------------------------------" -- print(pkmn.name) -- print "----------------------------------------------------------------" -- for k, v in pairs(pkmn) do -- print(k, v) -- end pokemonPrettyPrint(pkmn) -- remove bullshit pkmn.skillStr = nil pkmn.capabilityStr = nil return pkmn end function pokemonPrettyPrint(p) -- local function fmt(txt, ...) -- local args = {...} -- for k, v in ipairs(args) do -- args[k] = tostring(v) -- end -- print(string.format(txt, unpack(args))) -- end print "----------------------------------------------------------------" print(string.format("#%d - %s, introduced in Gen %d", p.dexNum, p.name, p.generation)) print "----------------------------------------------------------------" print("TYPES", p.typeMain, p.typeSub) print "STATS" print(" HP ", p.hp) print(" Atk", p.atk) print(" Def", p.def) print(" SpAtk", p.spAtk) print(" SpDef", p.spDef) print(" Spd", p.spd) print "\nABILITIES" print(" Basic1 ", p.ability_basic1) print(" Basic2 ", p.ability_basic2) print(" Advanced1", p.ability_advanced1) print(" Advanced2", p.ability_advanced2) print(" Advanced3", p.ability_advanced3) print(" High ", p.ability_high) if p.typeAura then print(" TYPE AURA", p.typeAura) end print("\nREGION & FORMES") print(" REGION", p.region) print(" FORME ", p.formeName) print "\nBREEDING" print(" GENDER RATIO", p.gender) print(" HATCH RATE", p.hatchRate) print(" HEIGHT", p.height) print(" WEIGHT", p.weight) print(" SIZE ", p.size) print(" DIET ", p.diet) print(" HABITAT", p.habitat) print "SKILLS" print(string.format(" ATHLETICS %dd6%s%d", p.athletics.dice, p.athletics.mod >= 0 and "+" or "", p.athletics.mod)) print(string.format(" ACROBATICS %dd6%s%d", p.acrobatics.dice, p.acrobatics.mod >= 0 and "+" or "", p.acrobatics.mod)) print(string.format(" COMBAT %dd6%s%d", p.combat.dice, p.combat.mod >= 0 and "+" or "", p.combat.mod)) print(string.format(" STEALTH %dd6%s%d", p.stealth.dice, p.stealth.mod >= 0 and "+" or "", p.stealth.mod)) print(string.format(" PERCEPTION %dd6%s%d", p.perception.dice, p.perception.mod >= 0 and "+" or "", p.perception.mod)) print(string.format(" FOCUS %dd6%s%d", p.focus.dice, p.focus.mod >= 0 and "+" or "", p.focus.mod)) print(string.format(" EDU: TECH %dd6%s%d", p.eduTech.dice, p.eduTech.mod >= 0 and "+" or "", p.eduTech.mod)) print "CAPABILITIES" print(string.format(" OVERLAND %d", p.overland)) print(string.format(" SKY %d", p.sky)) print(string.format(" SWIM %d", p.swim)) print(string.format(" LEVITATE %d", p.levitate)) print(string.format(" BURROW %d", p.burrow)) print(string.format(" HIGH JUMP %d", p.jumpHigh)) print(string.format(" LONG JUMP %d", p.jumpLong)) print(string.format(" POWER %d", p.power)) print " NATUREWALK" if p.natureWalk then for _, terrain in ipairs(p.natureWalk) do print(string.format(" %s", terrain)) end end print " OTHER CAPABILITIES" if p.otherCapabilities then for _, cape in ipairs(p.otherCapabilities) do print(string.format(" %s %s %s", cape.name, cape.rank or "", cape.ex or "")) end end -- print(p.capabilityStr) end function processRegion(pkmn, natDex) -- print("PROCESS REGION FOR: ", pkmn.name) local name = string.lower(pkmn.name) local isAlolan = m(name, ".+%s*alola") local isGalarian = m(name, ".+%s*galar") if isAlolan then name = m(name, "(.-)%s*alola") pkmn.region = 'alola' end if isGalarian then name = m(name, "(.-)%s*galar") pkmn.region = 'galar' end -- check that name isn't a forme variant local forme = formeNames[pkmn.name] -- print(pkmn.name) if forme then -- print("FORME FOUND") name = forme.name pkmn.formeName = forme.forme end pkmn.dexNum, pkmn.generation = natDex:find(name) end -- Helper function for pokemon names duplicated as a substring of others function isWholeName(word, str) local ptn = word .. "[%a%d%-]" local prefix = string.match(str,ptn) ptn = "%a" .. word local suffix = string.match(str,ptn) ptn = word local matches = string.match(str,ptn) return matches and not (prefix or suffix) end -- Find the name of a Pokemon in the given string from the LUT function findNameInStr(str, natDex) local find = string.find -- KLINKLANG HAX -- local klinklang = m(str, "klinklang") -- if klinklang then -- return find(str, "klinklang") -- end for name, _ in pairs(nameLUT) do -- escape magic chars name = gsub(name, '%-', '%%%-') local s, f = find(str, name) -- local partialName = m(str, "^" .. name .. "%a") if isWholeName(name, str) and s and f then return s, f end end print('[INFO] Could not find name in LUT. Searching the dex tables for ' .. str) for _, name in ipairs(natDex.full) do name = gsub(name, '%-', '%%%-') local s, f = find(str, name .. "%s-") if s and f then return s, f end end print('[WARNING] No name found findNameInStr: ' .. str) end -- ONLY CALL THESE AFTER POKEMON HAVE BEEN LOADED ----------------------------------------------------------------------------- local abilityFieldNames = {"ability_basic1", "ability_basic2", "ability_advanced1", "ability_advanced2", "ability_advanced3", "ability_high"} function handleAbilityCorners(pkmn) for k, v in ipairs(abilityFieldNames) do local ability = pkmn[v] if ability then -- resolve type aura local name, _type = m(ability, "(Type Aura)%s*%((.-)%)") if name and _type then pkmn[v] = name pkmn.typeAura = _type end -- resolve dual 'or' abilities local a, b = m(ability, "(.-)%sor%s(.+)") -- also take castform's bullshit into account if not (a and b) then a, b = m(ability, "(.-)%s/%s(.+)") end if a and b then pkmn[v] = a local altKey = v .. "Alt" pkmn[altKey] = b end -- get rid of the asterix on Arbok's listing if ability == "Serpent's Mark*" then pkmn[v] = "Serpent's Mark" end end end end function getRegionTable(pkmn) local num = pkmn.dexNum local tbl = regionCache[num] if tbl.alola or tbl.galar then return tbl end end function buildFormeTbl(pkmn) -- only work on pokemon with alt formes if not pkmn.formeName then return end -- find the base name for this pokemon local formeName = gsub(pkmn.formeName, "%%", "%%%%") -- escape % in Zygarde's forme names local pattern = "%s-" .. formeName local shortName = gsub(pkmn.name, pattern, "") print("SHORT NAME FOR", pkmn.name, shortName) return cacheForme(shortName, pkmn.name) end function unhyphenate(str) -- do the main job str = gsub(str, "(%a)%-%c*(%a)", "%1%2") -- restore any pokemon names & other stuff local names = { PorygonZ = 'Porygon-Z', Jangmoo = 'Jangmo-o', Hakamoo = 'Hakamo-o', Kommoo = 'Kommo-o', XRay = 'X-Ray', Hooh = 'Ho-oh' } for k, v in pairs(names) do if m(str, k) then -- print 'REPLACED' str = gsub(str, k, v) end end return str end local evoLog = logger('evoLog.txt') local evoTblLog = logger('evoTbl.txt') function buildEvoTbl(pkmn, dex, natDex) local evoStr = pkmn.evoStr -- GURDURR typo hax if pkmn.name == "GURDURR" then evoStr = gsub(evoStr, "250%s", "20\n") end -- MILOTIC HAX if pkmn.name == "MILOTIC" then evoStr = gsub(evoStr, "%c%c20", " 20") end -- SHELMET HAX -- if pkmn.name == "SHELMET" or pkmn.name == "ACCELGOR" then -- evoStr = gsub(evoStr, "(Karrablast)[%s%c]*(M)", "%1 %2") -- end evoTblLog:print("---------------------") evoTblLog:print(evoStr .. "|") -- un-hyphenate evoStr = unhyphenate(evoStr) if m(evoStr, "%c%c[^%s%d]") then evoTblLog:print('NEW LINER') evoStr = gsub(evoStr, "%c%c(%D)", " %1") end -- evoTblLog:print("pre-hyphen", evoStr .. "|") -- evoTblLog:print("evoStr:", evoStr .. "|") -- break list into lines local evos = {} local numline = 0 for line in string.gmatch(evoStr, "(.-)%s*%c") do evoTblLog:print(line) if line ~= "" then numline = numline + 1 -- evoTblLog:print("PARSING LINE", numline, line) -- print(string.byte(string.sub(line, #line))) local linetbl = parseEvolLine(line, natDex) local stage = linetbl.stage if not evos[stage] then evos[stage] = {} end local stageTbl = evos[stage] local evo = {} evo.name = linetbl.name evo.lvl = linetbl.lvl evo.cause = linetbl.cause evo.interactWith = linetbl.interactWith -- RAICHU HAX (lvl is not listen on some entries) -- evoTblLog:print(evo.name) if m(evo.name, "raichu") then evo.lvl = 20 end -- magnezone hax if m(evo.name, "magnezone") then evo.lvl = nil evo.cause = "1" .. evo.cause end if linetbl.stage > 1 and evo.cause then evoLog:print(evo.name, "->", evo.cause) end table.insert(stageTbl, evo) end end evos = cacheEvoTbl(evos, natDex) for k, stage in ipairs(evos) do for _, v in ipairs(stage) do evoTblLog:print(" STAGE:", k) evoTblLog:print(" NAME: ", v.name) evoTblLog:print(" LVL: ", v.lvl) evoTblLog:print(" CAUSE:", v.cause or "") if v.interactWith then evoTblLog:print(" INTER:", v.interactWith) end end end evoTblLog:print("Lines parsed:", numline) pkmn.evos = evos pkmn.evoStr = nil end -- Cache evolutions so that all pokemon in an evolutionary family share the same tbl -- This allows pkmn with evos in future content packs (such as Eevee) to have correct listings local evoCacheLog = logger('evoCacheLog.txt') function cacheEvoTbl(tbl, natDex) local rootName = tbl[1][1].name -- strip region rootName = gsub(rootName, "%salola", "") rootName = gsub(rootName, "%sgalar", "") -- nidoran hax if m(rootName, "nidoran [fm]") then rootName = gsub(rootName, "(.+%s)(.)", "%1%(%2%)") end local dexNum = natDex:find(rootName) evoCacheLog:print("===============================") evoCacheLog:print("CACHING", rootName, dexNum) -- get/create cached tree local cacheTree = evoCache[dexNum] if not cacheTree then cacheTree = {} evoCache[dexNum] = cacheTree evoCacheLog:print("NEW CACHE ENTRY FOR DEXNUM", dexNum) end for n, stage in ipairs(tbl) do -- get/create stage in cache local cacheStage = cacheTree[n] if not cacheStage then cacheStage = {} cacheTree[n] = cacheStage evoCacheLog:print("NEW STAGE CACHE ENTRY FOR STAGE", n) end -- ensure that each evolution is cached once. -- log any discrepencies to a file for hax inspection for _, evo in ipairs(stage) do local cacheEvo = findCachedEvo(evo.name, cacheStage) if cacheEvo then -- check values and skip for k, v in pairs(evo) do cacheV = cacheEvo[k] if cacheV and cacheV ~= v then evoCacheLog:print("DOES NOT MATCH", k, v, cacheV) if k == "lvl" then local newValue = math.min(v, cacheV) cacheEvo[k] = newValue evoCacheLog:print(string.format("UPDATED %s to %s", k, newValue)) end elseif not cacheV then evoCacheLog:print("MISSING KEY/VALUE PAIR:", k, v) end end else -- insert into cache evoCacheLog:print("CACHED", evo.name) table.insert(cacheStage, evo) end end end return cacheTree end function findCachedEvo(name, tbl) for k, v in ipairs(tbl) do if v.name == name then return v end end end -- Since the evolution lists are not standardised, grab info -- and trim until just the reason remains -- BULLSHIT HAX: -- MAGNEMITE -- NOSEPASS? -- LYCANROCK HAS PARENS IN NAME function parseEvolLine(l, natDex) l = string.lower(l) evoTblLog:print("LINE", l) -- strip stage & level requirement local stage = m(l, "^(%d-)%s*%-%s*") l = m(l, "^%d-%s*%-%s*(.+)") --trim -- substitute 'Min.' for 'Minimum' if m(l, "min%.%s*%d") then l = gsub(l, "(min%.)(%s*%d)", "minimum%2") end local lvl = m(l, "minimum%s*(%d*)[%s%c]*") l = gsub(l, "%s*minimum[%s%d%c]*", " ") -- Substitute regional variant shorthand l = gsub(l, "%(g%)", "galar") l = gsub(l, "%(a%)", "alola") -- lycanroc bollocks l = gsub(l, "%(midnight%)", "midnight") l = gsub(l, "%(midday%)", "midday") l = gsub(l, "%(dusk%)", "dusk") -- interact with bollocks -- 2 pokemon names in the string messes up the name search local interact = m(l, ".-(%s*interact%s*with.+)") if interact then l = m(l, "(.-)".. interact) end -- strip region and re-add later local region = m(l, "%sgalar") region = region or m(l, "%salola") if region then l = gsub(l, region, "") end -- extract the name local start, fin = findNameInStr(l, natDex) local name if start and fin then name = string.sub(l, start, fin) l = string.sub(l, fin+1) end -- re-append region name = name .. (region or "") if interact then l = interact local start, fin = findNameInStr(l, natDex) interact = string.sub(l, start, fin) end -- strip away control chars from cause local cause = gsub(l, "%c", "") cause = gsub(cause, "^%s*$", "") cause = gsub(cause, "^%s?(.*)%s*$", "%1") stage = tonumber(stage) lvl = tonumber(lvl) cause = cause ~= "" and cause or nil local r = { name = name, stage = stage, lvl = lvl, cause = cause, interactWith = interact } -- print(stage, name, lvl or 1, l) -- print(" STAGE:", r.stage) -- print(" NAME: ", r.name) -- print(" LVL: ", r.lvl) -- print(" CAUSE:", r.l) return r end -- BULLSHIT CHECKS ------------------------------------------------------------------------------------------------------------ local flabebe = string.format("FLAB%sB%s", string.char(0xc9), string.char(0xc9)) function flabebeCheck(p) if m(p, "242%c*FLAB") then p = string.gsub(p, "(242%c*)(.-)\n", "%1FLABEBE\n") end if m(p, "1%s*%-%s*Flab") then p = string.gsub(p, "(1%s*%-%s*)(Flab.-)\n", "%1Flabebe\n") -- print(p) end return p end function lycanrocCheck(p) if m(p, "Lycanrock") then -- p = string.gsub(p, "LYCANROCK", "LYCANROC") p = string.gsub(p, "Lycanrock", "Lycanroc") print 'HIT LYCANROC' end return p end function sliggooCheck(p) if m(p, "Sligoo") then p = gsub(p, "Sligoo", "Sliggoo") end return p end function advAbility1Check(p) local count = 0 for str in string.gmatch(p, "Adv%s*Ability%s*1%s*:") do count = count + 1 if count > 1 then print "DUPLICATE ABILITY NUMBER FOUND, ALTERING" p = gsub(p, "(Adv%s*Ability%s*1%s*:.+Adv%s*Ability%s*)1(%s*:)", "%13%2") -- print(p) return p end end return p end -- REGULAR FUNCS -------------------------------------------------------------------------------------------------------------- function getName(p) local name = m(p, "%d*%c*(.-)%c") -- NINTALES TYPO HAX WTF -- print(name) if name == 'NINETAILS Alola' then name = 'NINETALES Alola' end return name end function getTypes(p) local both = m(p, "Type%s*:%s+(.-)%c") local main, sub = m(both, "(%a*)%s*/-%s*(%a-)$") sub = #sub > 0 and sub or nil return main, sub end function getEggGroups(p) local both = m(p, "Egg Group%s*:%s+(.-)%c") return m(both, "(%a*)%s*/-%s*(%a-)$") end function getHP(p) local v = m(p, "HP:%s+(.-)%c") return tonumber(v) end function getAtk(p) local v = m(p, "Attack:%s+(.-)%c") return tonumber(v) end function getDef(p) local v = m(p, "Defense:%s+(.-)%c") return tonumber(v) end function getSpAtk(p) local v = m(p, "Special Attack:%s+(.-)%c") return tonumber(v) end function getSpDef(p) local v = m(p, "Special Defense:%s+(.-)%c") return tonumber(v) end function getSpd(p) local v = m(p, "Speed:%s+(.-)%c") return tonumber(v) end function getBA1(p) return m(p, "Basic Ability 1%s*:%s*(.-)%c") end function getBA2(p) return m(p, "Basic Ability 2%s*:%s*(.-)%c") end function getAA1(p) return m(p, "Adv Ability 1%s*:%s*(.-)%c") end function getAA2(p) return m(p, "Adv Ability 2%s*:%s*(.-)%c") end function getAA3(p) return m(p, "Adv Ability 3%s*:%s*(.-)%c") end function getHA(p) return m(p, "High Ability%s*:%s*(.-)%c") end function getHeight(p) local v = m(p, "Height%s*:.-/%s*(.-)%a") return tonumber(v) end function getWeight(p) local v = m(p, "Weight%s*:.-/%s*(.-)%a") return tonumber(v) end function getSize(p) return m(p, "Height%s*:.-%((.-)%)") end function getGenderRatio(p) local ratio = m(p, "Gender%s*Ratio%s*:%s*(.-)%%") return ratio --and ratio or 'none' end function getHatchRate(p) local v = m(p, "Average%s*Hatch%s*Rate%s*:%s+(.-)%s") return tonumber(v) end function getEvolutionStr(p) return m(p, "Evolution%s*:%s*%c*(.-)Size%s*Information") end function getDiet(p) return m(p, "Diet%s*:%s*(.-)%c") end function getHabitat(p) return m(p, "Habitat%s*:%s*(.-)%c") end -- local skillLog = logger('skills.txt') function getSkillStr(p) local skills = m(p, "Skill%s*List[%s%c]-(.-)%c*Move%s*List") -- hoopa unbound hax if not skills then skills = m(p, "Skill%s*List[%s%c]-(.-)%c*Confined:") end skills = gsub(skills, "(%a*)%-%c*(%a)", "%1%2") -- skills = gsub(skills, "%s,", ",") skills = gsub(skills, "[\n\r]", " ") -- skills = m(skills, "^%s*(.+)") -- skillLog:print(skills) return skills end function parseSkills(pkmn) local str = pkmn.skillStr -- print(str) local dice, mod = m(str, "Athl%s*(%d-)d6(+*%-*%d*)") if (not mod) or mod == "" then mod = 0 end pkmn.athletics = {dice = tonumber(dice), mod = tonumber(mod)} dice, mod = m(str, "Acro%s*(%d-)d6(+*%-*%d*)") if (not mod) or mod == "" then mod = 0 end pkmn.acrobatics = {dice = tonumber(dice), mod = tonumber(mod)} dice, mod = m(str, "Combat%s*(%d-)d6(+*%-*%d*)") if (not mod) or mod == "" then mod = 0 end -- drillbur typo if pkmn.name == "DRILBUR" then mod = 1 end pkmn.combat = {dice = tonumber(dice), mod = tonumber(mod)} dice, mod = m(str, "Stealth%s*(%d-)d6(+*%-*%d*)") if (not mod) or mod == "" then mod = 0 end pkmn.stealth = {dice = tonumber(dice), mod = tonumber(mod)} dice, mod = m(str, "Percep%s*(%d-)d6(+*%-*%d*)") if (not mod) or mod == "" then mod = 0 end pkmn.perception = {dice = tonumber(dice), mod = tonumber(mod)} dice, mod = m(str, "Focus%s*(%d-)d6(+*%-*%d*)") if (not mod) or mod == "" then mod = 0 end pkmn.focus = {dice = tonumber(dice), mod = tonumber(mod)} dice, mod = 1, 0 if m(str, "Edu:%s*Tech") then dice, mod = m(str, "Edu:%s*Tech%s*(%d-)d6(+*%-*%d*)") end if (not mod) or mod == "" then mod = 0 end pkmn.eduTech = {dice = tonumber(dice), mod = tonumber(mod)} end
-- Adapted from https://ms-jpq.github.io/neovim-async-tutorial/ local co = coroutine local function step(func, callback) local thread = co.create(func) local tick = nil tick = function(...) local ok, val = co.resume(thread, ...) if ok then if type(val) == 'function' then val(tick) else (callback or function () end)(val) end end end tick() end local function wrap(func) return function(...) local params = {...} return function(tick) table.insert(params, tick) return func(unpack(params)) end end end local function join(...) local thunks = {...} local thunk_all = function(s) if #thunks == 0 then return s() end local to_go = #thunks local results = {} for i, thunk in ipairs(thunks) do local callback = function(...) results[i] = {...} if to_go == 1 then s(unpack(results)) else to_go = to_go - 1 end end thunk(callback) end end return thunk_all end local function wait_all(...) return co.yield(join(...)) end local function pool(n, interrupt_check, ...) local thunks = {...} return function(s) if #thunks == 0 then return s() end local remaining = select(n, thunks) local results = {} local to_go = #thunks local make_callback = nil make_callback = function(idx, left) local i = (left == nil) and idx or (idx + left) return function(...) results[i] = {...} to_go = to_go - 1 if to_go == 0 then s(unpack(results)) elseif not interrupt_check or not interrupt_check() then if remaining and #remaining > 0 then local next_task = table.remove(remaining) next_task(make_callback(n, #remaining + 1)) end end end end for i = 1, math.min(n, #thunks) do local thunk = thunks[i] thunk(make_callback(i)) end end end local function wait_pool(limit, ...) return co.yield(pool(limit, false, ...)) end local function interruptible_wait_pool(limit, interrupt_check, ...) return co.yield(pool(limit, interrupt_check, ...)) end local function main(f) vim.schedule(f) end local M = { sync = wrap(step), wait = co.yield, wait_all = wait_all, wait_pool = wait_pool, interruptible_wait_pool = interruptible_wait_pool, wrap = wrap, main = main } return M
-------------------------------------------------------------------------- -- Ring-balancer. -- -- This balancer implements a consistent-hashing algorithm as well as a -- weighted-round-robin. -- -- This loadbalancer is designed for consistent hashing approaches and -- to retain consistency on a maximum level while dealing with dynamic -- changes like adding/removing hosts/targets (ketama principle). -- -- Due to its deterministic way of operating it is also capable of running -- identical balancers (identical consistent rings) on multiple servers/workers -- (though it does not implement inter-server/worker communication). -- -- Only dns is non-deterministic as it might occur when a peer is requested, -- and hence should be avoided (by directly inserting ip addresses). -- Adding/deleting hosts, etc (as long as done in the same order) is always -- deterministic. -- -- Whenever dns resolution fails for a hostname, the host will relinguish all -- the indices it owns, and they will be reassigned to other targets. -- Periodically the query for the hostname will be retried, and if it succeeds -- it will get (different) indices reassigned to it. -- -- When using `setPeerStatus` to mark a peer as unavailable, the slots it owns will -- not be reassigned. So after a recovery, hashing will be restored. -- -- -- __NOTE:__ This documentation only described the altered user methods/properties -- from a see the `user properties` from the `balancer_base` for a complete overview. -- -- @author Thijs Schreijer -- @copyright 2016-2019 Kong Inc. All rights reserved. -- @license Apache 2.0 local balancer_base = require "resty.dns.balancer.base" local lrandom = require "random" local bit = require "bit" local math_floor = math.floor local string_sub = string.sub local table_sort = table.sort local ngx_md5 = ngx.md5_bin local bxor = bit.bxor local ngx_log = ngx.log local ngx_DEBUG = ngx.DEBUG local ngx_WARN = ngx.WARN local empty = setmetatable({}, {__newindex = function() error("The 'empty' table is read-only") end}) local new_tab do local ok ok, new_tab = pcall(require, "table.new") if not ok then new_tab = function() return {} end end end local _M = {} local ring_balancer = {} -- =========================================================================== -- address object. -- =========================================================================== local ring_address = {} -- Adds a list of indices to the address. The indices added to the address will -- be removed from the provided `availableIndicesList`. -- @param availableIndicesList a list of wheel-indices available for adding -- @param count the number of indices to take from the list provided, defaults to ALL if omitted -- @return the address object function ring_address:addIndices(availableIndicesList, count) count = count or #availableIndicesList if count > 0 then local myWheelIndices = self.indices local size = #myWheelIndices if count > #availableIndicesList then error("more indices requested to be added ("..count..") than provided ("..#availableIndicesList.. ") for host '"..self.host.hostname..":"..self.port.."' ("..tostring(self.ip)..")") end local wheel = self.host.balancer.wheel local lsize = #availableIndicesList + 1 for i = 1, count do local availableIdx = lsize - i local wheelIdx = availableIndicesList[availableIdx] availableIndicesList[availableIdx] = nil myWheelIndices[size + i] = wheelIdx wheel[wheelIdx] = self end -- track maximum table size reached local max = count + size if max > self.indicesMax then self.indicesMax = max end end return self end -- Drop an amount of indices and return them to the overall balancer. -- @param availableIndicesList The list to add the dropped indices to -- @param count (optional) The number of indices to drop, defaults to ALL if omitted -- @return availableIndicesList with added to it the indices removed from this address function ring_address:dropIndices(availableIndicesList, count) local myWheelIndices = self.indices local size = #myWheelIndices count = count or size if count > 0 then if count > size then error("more indices requested to drop ("..count..") than available ("..size.. ") in address '"..self.host.hostname..":"..self.port.."' ("..self.ip..")") end local wheel = self.host.balancer.wheel local lsize = #availableIndicesList for i = 1, count do local myIdx = size + 1 - i local wheelIdx = myWheelIndices[myIdx] myWheelIndices[myIdx] = nil availableIndicesList[lsize + i] = wheelIdx wheel[wheelIdx] = nil end -- track table size reduction size = size + count if size * 2 < self.indicesMax then -- table was reduced by at least half, so drop the original to reduce -- memory footprint self.indicesMax = size self.indices = table.move(self.indices, 1, size, 1, {}) end end return availableIndicesList end function ring_address:delete() assert(#self.indices == 0, "Cannot delete address while it owns indices") return self.super.delete(self) end function ring_balancer:newAddress(addr) addr = self.super.newAddress(self, addr) -- inject additional properties addr.indices = {} -- the indices of the wheel assigned to this address addr.indicesMax = 0 -- max size reached for 'indices' table -- inject overridden methods for name, method in pairs(ring_address) do addr[name] = method end return addr end -- =========================================================================== -- Host object. -- =========================================================================== --local ring_host = {} --function ring_balancer:newHost(host) -- host = self.super.newHost(self, host) -- -- inject additional properties -- -- inject overridden methods -- for name, method in pairs(ring_host) do -- host[name] = method -- end -- return host --end -- =========================================================================== -- Balancer object. -- =========================================================================== -- Recalculates the weights. Updates the indices assigned for all hostnames. -- Must be called whenever a weight might have changed; added/removed hosts. -- @return balancer object function ring_balancer:redistributeIndices() local totalWeight = self.weight local movingIndexList = self.unassignedWheelIndices -- NOTE: calculations are based on the "remaining" indices and weights, to -- prevent issues due to rounding: eg. 10 equal systems with 19 indices. -- Calculated to get each 1.9 indices => 9 systems would get 1, last system would get 10 -- by using "remaining" indices, the first would get 1 index, the other 9 would get 2. -- first; reclaim extraneous indices local weightLeft = totalWeight local indicesLeft = self.wheelSize local addList = {} -- addresses that need additional indices local addListCount = {} -- how many extra indices the address needs local addCount = 0 local dropped, added = 0, 0 for weight, address, _ in self:addressIter() do local count if weightLeft == 0 then count = 0 else count = math_floor(indicesLeft * (weight / weightLeft) + 0.0001) -- 0.0001 to bypass float arithmetic issues end local drop = #address.indices - count if drop > 0 then -- we need to reclaim some indices address:dropIndices(movingIndexList, drop) dropped = dropped + drop elseif drop < 0 then -- this one needs extra indices, so record the changes needed addCount = addCount + 1 addList[addCount] = address addListCount[addCount] = -drop -- negate because we need to add them end indicesLeft = indicesLeft - count weightLeft = weightLeft - weight end -- second: add freed indices to the recorded addresses that were short of them for i, address in ipairs(addList) do address:addIndices(movingIndexList, addListCount[i]) added = added + addListCount[i] end ngx_log( #movingIndexList == 0 and ngx_DEBUG or ngx_WARN, self.log_prefix, "redistributed indices, size=", self.wheelSize, ", dropped=", dropped, ", assigned=", added, ", left unassigned=", #movingIndexList) return self end function ring_balancer:addHost(hostname, port, weight) self.super.addHost(self, hostname, port, weight) if #self.unassignedWheelIndices == 0 then self.unassignedWheelIndices = {} -- replace table because of initial memory footprint end return self end function ring_balancer:afterHostUpdate(host) -- recalculate to move indices of added/disabled addresses self:redistributeIndices() end function ring_balancer:beforeHostDelete(host) -- recalculate to move indices of disabled hosts self:redistributeIndices() end function ring_balancer:removeHost(hostname, port) self.super.removeHost(self, hostname, port) if #self.unassignedWheelIndices == 0 then self.unassignedWheelIndices = {} -- replace table because of initial memory footprint end return self end function ring_balancer:getPeer(cacheOnly, handle, hashValue) local pointer if self.weight == 0 then return nil, balancer_base.errors.ERR_NO_PEERS_AVAILABLE end if handle then -- existing handle, so it's a retry if hashValue then -- we have a new hashValue, use it anyway handle.hashValue = hashValue else hashValue = handle.hashValue -- reuse existing (if any) hashvalue end handle.retryCount = handle.retryCount + 1 --handle.address:release(handle, true) -- not needed, nothing to release else -- no handle, so this is a first try handle = self:getHandle() -- no GC specific handler needed handle.retryCount = 0 handle.hashValue = hashValue end -- calculate starting point if hashValue then hashValue = hashValue + handle.retryCount pointer = 1 + (hashValue % self.wheelSize) else -- no hash, so get the next one, round-robin like pointer = self.pointer if pointer < self.wheelSize then self.pointer = pointer + 1 else self.pointer = 1 end end local initial_pointer = pointer while true do local address = self.wheel[pointer] local ip, port, hostname = address:getPeer(cacheOnly) if ip then -- success, update handle handle.address = address return ip, port, hostname, handle elseif port == balancer_base.errors.ERR_DNS_UPDATED then -- we just need to retry the same index, no change for 'pointer', just -- in case of dns updates, we need to check our weight again. if self.weight == 0 then return nil, balancer_base.errors.ERR_NO_PEERS_AVAILABLE end elseif port == balancer_base.errors.ERR_ADDRESS_UNAVAILABLE then -- fall through to the next wheel index if hashValue then pointer = pointer + 1 if pointer > self.wheelSize then pointer = 1 end else pointer = self.pointer if pointer < self.wheelSize then self.pointer = pointer + 1 else self.pointer = 1 end end if pointer == initial_pointer then -- we went around, but still nothing... return nil, balancer_base.errors.ERR_NO_PEERS_AVAILABLE end else -- an unknown error occured return nil, port end end end local randomlist_cache = {} local function randomlist(size) if randomlist_cache[size] then return randomlist_cache[size] end -- create a new randomizer with just any seed, we do not care about -- uniqueness, only about distribution, and repeatability, each orderlist -- must be identical! local randomizer = lrandom.new(158841259) local rnds = new_tab(size, 0) local out = new_tab(size, 0) for i = 1, size do local n = math_floor(randomizer() * size) + 1 while rnds[n] do n = n + 1 if n > size then n = 1 end end out[i] = n rnds[n] = true end randomlist_cache[size] = out return out end --- Creates a new balancer. The balancer is based on a wheel with a number of -- positions (the index on the wheel). The -- indices will be randomly distributed over the targets. The number of indices -- assigned will be relative to the weight. -- -- The options table has the following fields; -- -- - `hosts` (optional) containing hostnames, ports and weights. If omitted, -- ports and weights default respectively to 80 and 10. The list will be sorted -- before being added, so the order of entry is deterministic. -- - `wheelSize` (optional) for total number of positions in the balancer (the -- indices), if omitted -- the size of `order` is used, or 1000 if `order` is not provided. It is important -- to have enough indices to keep the ring properly randomly distributed. If there -- are to few indices for the number of targets then the load distribution might -- become to coarse. Consider the maximum number of targets expected, as new -- hosts can be dynamically added, and dns renewals might yield larger record -- sets. The `wheelSize` cannot be altered, only a new wheel can be created, but -- then all consistency would be lost. On a similar note; making it too big, -- will have a performance impact when the wheel is modified as too many indices -- will have to be moved between targets. A value of 50 to 200 indices per entry -- seems about right. -- - `order` (optional) if given, a list of random numbers, size `wheelSize`, used to -- randomize the wheel. Duplicates are not allowed in the list. -- - `requery` (optional) interval of requerying the dns server for previously -- failed queries. Defaults to 1 if omitted (in seconds) -- - `ttl0` (optional) Maximum lifetime for records inserted with `ttl=0`, to verify -- the ttl is still 0. Defaults to 60 if omitted (in seconds) -- - `callback` (optional) a function called when an address is added. See -- `setCallback` for details. -- @param opts table with options -- @return new balancer object or nil+error -- @usage -- hosts example -- local hosts = { -- "konghq.com", -- name only, as string -- { name = "github.com" }, -- name only, as table -- { name = "getkong.org", port = 80, weight = 25 }, -- fully specified, as table -- } function _M.new(opts) assert(type(opts) == "table", "Expected an options table, but got: "..type(opts)) if not opts.log_prefix then opts.log_prefix = "ringbalancer" end local self = balancer_base.new(opts) if (not opts.wheelSize) and opts.order then opts.wheelSize = #opts.order end if opts.order then assert(opts.order and (opts.wheelSize == #opts.order), "mismatch between size of 'order' and 'wheelSize'") end -- inject additional properties self.wheel = nil -- wheel with entries (fully randomized) self.pointer = nil -- pointer to next-up index for the round robin scheme self.wheelSize = opts.wheelSize or 1000 -- number of entries (indices) in the wheel self.unassignedWheelIndices = nil -- list to hold unassigned indices (initially, and when all hosts fail) -- inject overridden methods for name, method in pairs(ring_balancer) do self[name] = method end -- initialize the balancer self.wheel = new_tab(self.wheelSize, 0) self.unassignedWheelIndices = new_tab(self.wheelSize, 0) self.pointer = math.random(1, self.wheelSize) -- ensure each worker starts somewhere else -- Create a list of entries, and randomize them. local unassignedWheelIndices = self.unassignedWheelIndices local duplicateCheck = new_tab(self.wheelSize, 0) local orderlist = opts.order or randomlist(self.wheelSize) for i = 1, self.wheelSize do local order = orderlist[i] if duplicateCheck[order] then -- no duplicates allowed! order must be deterministic! -- it was a user provided value, so error out error("the 'order' list contains duplicates") end duplicateCheck[order] = true unassignedWheelIndices[i] = order end -- Sort the hosts, to make order deterministic local hosts = {} for i, host in ipairs(opts.hosts or empty) do if type(host) == "table" then hosts[i] = host else hosts[i] = { name = host } end end table_sort(hosts, function(a,b) return (a.name..":"..(a.port or "") < b.name..":"..(b.port or "")) end) -- Insert the hosts for _, host in ipairs(hosts) do local ok, err = self:addHost(host.name, host.port, host.weight) if not ok then return ok, "Failed creating a balancer: "..tostring(err) end end ngx_log(ngx_DEBUG, self.log_prefix, "ringbalancer created") return self end --- Creates a MD5 hash value from a string. -- The string will be hashed using MD5, and then shortened to 4 bytes. -- The returned hash value can be used as input for the `getpeer` function. -- @function hashMd5 -- @param str (string) value to create the hash from -- @return 32-bit numeric hash _M.hashMd5 = function(str) local md5 = ngx_md5(str) return bxor( tonumber(string_sub(md5, 1, 4), 16), tonumber(string_sub(md5, 5, 8), 16) ) end --- Creates a CRC32 hash value from a string. -- The string will be hashed using CRC32. The returned hash value can be -- used as input for the `getpeer` function. This is simply a shortcut to -- `ngx.crc32_short`. -- @function hashCrc32 -- @param str (string) value to create the hash from -- @return 32-bit numeric hash _M.hashCrc32 = ngx.crc32_short return _M
function startsWith(s, x) return s:sub(1, #x) == x end function split(s, x) local t = {} for y in s:gmatch("([^" .. x .. "]+)") do table.insert(t, y) end return t end return function(me) return function(path) local place local places if startsWith(path, "./") then places = split(path:sub(3), "/") place = me elseif startsWith(path, "/") then places = split(path:sub(2), "/") place = game:GetService("ReplicatedStorage") elseif startsWith(path, "../") then places = split(path:sub(4), "/") place = me.Parent else error("Invalid path format: " .. path) end for i,v in next, places do if v == ".." then place = place.Parent else place = place:FindFirstChild(v) end if place == nil then error("No path directory/module in : " .. v) end end if not place:IsA("ModuleScript") then error("Destination " .. place.Name .. " is not a module") end return require(place) end end
-- executes command as "admin" (* permission) local security = require("security") local shell = require("shell") local args, opts = shell.parse(...) if #args < 1 then io.stderr:write("Usage: sudo <command>\n") return end local cmd = args[1] table.remove(args, 1) local name = opts["user"] or opts["u"] or "admin" io.write("[sudo] Password of " .. name .. ": ") local pass = shell.read({ history = {}, pwchar = '*' }) io.write(" \n") local ok, reason = require("users").login(name, pass) if not ok then io.stderr:write("Could not login because " .. reason .. "\n") return end local res = shell.resolve(cmd) if res == nil then io.stderr:write(cmd .. " not found.\n") return end security.requestPermission("*") local f, err = loadfile(res) if f then f(args) else error(err) end require("users").logout()
-- -- Dressing Room Functions - Allows undress and target model for dressing room -- Copyright (C) 2018 Rachael Alexanderson -- -- Redistribution and use in source and binary forms, with or without modification, are permitted provided -- that the following conditions are met: -- -- 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following -- disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following -- disclaimer in the documentation and/or other materials provided with the distribution. -- -- 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products -- derived from this software without specific prior written permission. -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -- BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -- EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR -- TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -- POSSIBILITY OF SUCH DAMAGE. -- local function SysMessage(text) DEFAULT_CHAT_FRAME:AddMessage(DRF_L["S_DRF"]..text); end local function englishOnOff(conditional) if (conditional) then return DRF_L["S_Enabled"]; else return DRF_L["S_Disabled"]; end end if not ( DRF_Version == DRF_CoreVersion ) then return; end if DRF_Global == nil then DRF_Global = {} end; -- Code based on LUA-only options panel code found on wowpedia.org -- Credit goes to CurtWulf and Mortilus -- [SP] The section that used to be here has been moved to Localization.lua if DRF_Global[DRF.config.s1] == nil then DRF_Global[DRF.config.s1] = false; end if DRF_Global[DRF.config.s2] == nil then DRF_Global[DRF.config.s2] = false; end if DRF_Global[DRF.config.s3] == nil then DRF_Global[DRF.config.s3] = false; end if DRF_Global[DRF.config.s4] == nil then DRF_Global[DRF.config.s4] = false; end DRF.panel = CreateFrame( "Frame", "DRFPanel", UIParent ); -- Register in the Interface Addon Options GUI -- Set the name for the Category for the Options Panel DRF.panel.name = DRF_L["O_Panel"]; -- Add the panel to the Interface Options InterfaceOptions_AddCategory(DRF.panel); DRF.panel.text1 = DRF.panel:CreateFontString(nil, "ARTWORK", "GameFontNormalSmall"); DRF.panel.text1:SetPoint("TOP",0,-100); DRF.panel.text1:SetText(DRF_L["O_DRF"]); DRF.panel.option1 = CreateFrame("CheckButton", "DRFOption1", DRF.panel, "UICheckButtonTemplate"); DRF.panel.option1:SetPoint("CENTER",-190,45); DRF.panel.option1.text = _G["DRFOption1Text"]; DRF.panel.option1.text:SetText(DRF.text.s1); DRF.panel.option1:SetScript("OnClick",function(self,event,arg1) DRF_Global[DRF.config.s1] = self:GetChecked() SysMessage(DRF.change.s1..englishOnOff(DRF_Global[DRF.config.s1]).."."); end); DRF.panel.option2 = CreateFrame("CheckButton", "DRFOption2", DRF.panel, "UICheckButtonTemplate"); DRF.panel.option2:SetPoint("CENTER",-190,15); DRF.panel.option2.text = _G["DRFOption2Text"]; DRF.panel.option2.text:SetText(DRF.text.s2); DRF.panel.option2:SetScript("OnClick",function(self,event,arg1) DRF_Global[DRF.config.s2] = self:GetChecked() SysMessage(DRF.change.s2..englishOnOff(DRF_Global[DRF.config.s2]).."."); end); DRF.panel.option3 = CreateFrame("CheckButton", "DRFOption3", DRF.panel, "UICheckButtonTemplate"); DRF.panel.option3:SetPoint("CENTER",-190,-15); DRF.panel.option3.text = _G["DRFOption3Text"]; DRF.panel.option3.text:SetText(DRF.text.s3); DRF.panel.option3:SetScript("OnClick",function(self,event,arg1) DRF_Global[DRF.config.s3] = self:GetChecked() SysMessage(DRF.change.s3..englishOnOff(DRF_Global[DRF.config.s3]).."."); end); DRF.panel.option4 = CreateFrame("CheckButton", "DRFOption4", DRF.panel, "UICheckButtonTemplate"); DRF.panel.option4:SetPoint("CENTER",-190,-45); DRF.panel.option4.text = _G["DRFOption4Text"]; DRF.panel.option4.text:SetText(DRF.text.s4); DRF.panel.option4:SetScript("OnClick",function(self,event,arg1) DRF_Global[DRF.config.s4] = self:GetChecked() SysMessage(DRF.change.s4..englishOnOff(DRF_Global[DRF.config.s4]).."."); end); local function SetOptionsPanel() if ( DRF_Global[DRF.config.s1] ) then DRF.panel.option1:SetChecked(true); else DRF.panel.option1:SetChecked(false); end DRF_Option1 = DRF_Global[DRF.config.s1]; if ( DRF_Global[DRF.config.s2] ) then DRF.panel.option2:SetChecked(true); else DRF.panel.option2:SetChecked(false); end DRF_Option2 = DRF_Global[DRF.config.s2]; if ( DRF_Global[DRF.config.s3] ) then DRF.panel.option3:SetChecked(true); else DRF.panel.option3:SetChecked(false); end DRF_Option3 = DRF_Global[DRF.config.s3]; if ( DRF_Global[DRF.config.s4] ) then DRF.panel.option4:SetChecked(true); else DRF.panel.option4:SetChecked(false); end DRF_Option4 = DRF_Global[DRF.config.s4]; end local function DRF_Cancel() local didchange = false; if ( DRF_Global[DRF.config.s1] ~= DRF_Option1 ) then didchange = true; end if ( DRF_Global[DRF.config.s2] ~= DRF_Option2 ) then didchange = true; end if ( DRF_Global[DRF.config.s3] ~= DRF_Option3 ) then didchange = true; end if ( DRF_Global[DRF.config.s4] ~= DRF_Option4 ) then didchange = true; end DRF_Global[DRF.config.s1] = DRF_Option1; DRF_Global[DRF.config.s2] = DRF_Option2; DRF_Global[DRF.config.s3] = DRF_Option3; DRF_Global[DRF.config.s4] = DRF_Option4; if didchange then SysMessage(DRF_L["S_Cancel"]); end end DRF.panel.cancel = function (self) DRF_Cancel(); end; DRF.panel.refresh = function (self) SetOptionsPanel(); end; local function parseSwitch(textconditional,originalstate) if textconditional == "on" then return true; elseif textconditional == "true" then return true; elseif textconditional == "1" then return true; elseif textconditional == "off" then return false; elseif textconditional == "false" then return false; elseif textconditional == "0" then return false; elseif originalstate == false then return true; else return false; end end SLASH_DRF1, SLASH_DRF2 = '/drf', '/dressingroomfunctions'; function SlashCmdList.DRF(msg, editbox) local command, rest = msg:match("^(%S*)%s*(.-)$"); command = string.lower(command); if command == DRF_L["C_Help"] then SysMessage(DRF_L["S_Help"]); SysMessage(DRF_L["S_Help1"]); SysMessage(DRF_L["S_Help2"]); SysMessage(DRF_L["S_Help3"]); SysMessage(DRF_L["S_Help4"]); elseif command == string.lower(DRF.config.s1) or command == string.lower(DRF.alias.s1) then DRF_Global[DRF.config.s1] = parseSwitch(rest,DRF_Global[DRF.config.s1]); SysMessage(DRF.change.s1..englishOnOff(DRF_Global[DRF.config.s1]).."."); SetOptionsPanel(); elseif command == string.lower(DRF.config.s2) or command == string.lower(DRF.alias.s2) then DRF_Global[DRF.config.s2] = parseSwitch(rest,DRF_Global[DRF.config.s2]); SysMessage(DRF.change.s2..englishOnOff(DRF_Global[DRF.config.s2]).."."); SetOptionsPanel(); elseif command == string.lower(DRF.config.s3) or command == string.lower(DRF.alias.s3) then DRF_Global[DRF.config.s3] = parseSwitch(rest,DRF_Global[DRF.config.s3]); SysMessage(DRF.change.s3..englishOnOff(DRF_Global[DRF.config.s3]).."."); SetOptionsPanel(); elseif command == string.lower(DRF.config.s4) or command == string.lower(DRF.alias.s4) then DRF_Global[DRF.config.s4] = parseSwitch(rest,DRF_Global[DRF.config.s4]); SysMessage(DRF.change.s4..englishOnOff(DRF_Global[DRF.config.s4]).."."); SetOptionsPanel(); elseif command == "" then InterfaceOptionsFrame_OpenToCategory(DRF.panel); SysMessage(DRF_L["S_OptionsFrame"]); else SysMessage(DRF_L["S_BadCommand"]); end end
-- manage VipsOperation -- lookup and call operations local ffi = require "ffi" local bit = require "bit" local verror = require "vips.verror" local version = require "vips.version" local log = require "vips.log" local gvalue = require "vips.gvalue" local vobject = require "vips.vobject" local Image = require "vips.Image" local band = bit.band local type = type local error = error local pairs = pairs local ipairs = ipairs local unpack = unpack local tonumber = tonumber local str_gsub = string.gsub local vips_lib = ffi.load(ffi.os == "Windows" and "libvips-42.dll" or "vips") local REQUIRED = 1 local CONSTRUCT = 2 -- luacheck: ignore local SET_ONCE = 4 -- luacheck: ignore local SET_ALWAYS = 8 -- luacheck: ignore local INPUT = 16 local OUTPUT = 32 local DEPRECATED = 64 local MODIFY = 128 local function map(fn, array) local new_array = {} for i, v in ipairs(array) do new_array[i] = fn(v) end return new_array end -- find in order, and recurse local function find_order(fn, array) for i = 1, #array do if fn(array[i]) then return array[i] elseif type(array[i]) == "table" then local result = find_order(fn, array[i]) if result then return result end end end return nil end local voperation = {} local voperation_mt = { __index = { argumentmap_typeof = ffi.typeof("VipsArgumentMapFn"), pstring_array_typeof = ffi.typeof("const char**[1]"), pint_array_typeof = ffi.typeof("int*[1]"), pint_typeof = ffi.typeof("int[1]"), -- cast to a vobject ... this will create a new cdata object, but won't -- change any VipsObject reference counts, nor add a finalizer vobject = function(self) return ffi.cast(vobject.typeof, self) end, -- but for new() we can't do self:vobject():new() since that would -- attach the unref callback to the cdata object made by the vobject() -- cast, not to this voperation new = function(self) return vobject.new(self) end, set = function(self, name, flags, match_image, value) -- if the object wants an image and we have a constant, imageize it -- -- if the object wants an image array, imageize any constants in the -- array if match_image then local gtype = self:vobject():get_typeof(name) if gtype == gvalue.image_type then value = match_image:imageize(value) elseif gtype == gvalue.array_image_type then value = map(function(x) return match_image:imageize(x) end, value) end end -- MODIFY args need to be copied before they are set if band(flags, MODIFY) ~= 0 then log.msg("copying MODIFY arg", name) -- make sure we have a unique copy value = value:copy():copy_memory() end return self:vobject():set(name, value) end, -- this is slow ... call as little as possible getargs = function(self) local names = {} local flags = {} local n_args = 0 if version.at_least(8, 7) then local p_names = ffi.new(voperation.pstring_array_typeof) local p_flags = ffi.new(voperation.pint_array_typeof) local p_n_args = ffi.new(voperation.pint_typeof) vips_lib.vips_object_get_args(self, p_names, p_flags, p_n_args) p_names = p_names[0] p_flags = p_flags[0] n_args = p_n_args[0] -- C-array is numbered from zero for i = 0, n_args - 1 do names[i + 1] = str_gsub(ffi.string(p_names[i]), "-", "_") flags[i + 1] = p_flags[i] end else local cb = ffi.cast(voperation.argumentmap_typeof, function(_, pspec, argument_class, _, _, _) n_args = n_args + 1 -- libvips uses "-" to separate parts of arg names, but we -- need "_" for lua names[n_args] = str_gsub(ffi.string(pspec.name), "-", "_") flags[n_args] = tonumber(argument_class.flags) end) vips_lib.vips_argument_map(self, cb, nil, nil) cb:free() end return names, flags, n_args end, -- string_options is any optional args coded as a string, perhaps -- "[strip,tile=true]" call = function(name, string_options, ...) local call_args = { ... } local vop = vips_lib.vips_operation_new(name) if vop == nil then error("no such operation\n" .. verror.get()) end vop = vop:new() local names, flags, arguments_length = vop:getargs() -- cache the call args length local call_args_length = #call_args log.msg("calling operation:", name) log.msg("passed:") log.msg_r(call_args) -- make a thing to quickly get flags from an arg name local flags_from_name = {} -- count required input args local n_required = 0 for i = 1, arguments_length do local flag = flags[i] flags_from_name[names[i]] = flag if band(flag, INPUT) ~= 0 and band(flag, REQUIRED) ~= 0 and band(flag, DEPRECATED) == 0 then n_required = n_required + 1 end end -- so we should have been passed n_required, or n_required + 1 if -- there's a table of options at the end local last_arg if call_args_length == n_required then last_arg = nil elseif call_args_length == n_required + 1 then last_arg = call_args[#call_args] if type(last_arg) ~= "table" then error("unable to call " .. name .. ": " .. call_args_length .. " arguments given, " .. n_required .. ", but final argument is not a table") end else error("unable to call " .. name .. ": " .. call_args_length .. " arguments given, but " .. n_required .. " required") end -- the first image argument is the thing we expand constants to -- match ... look inside tables for images, since we may be passing -- an array of image as a single param local match_image = find_order(function(x) if Image.is_Image(x) then return x else return nil end end, call_args) -- set any string options before any args so they can't be -- overridden if vips_lib.vips_object_set_from_string(vop:vobject(), string_options) ~= 0 then error("unable to call " .. name .. "\n" .. verror.get()) end local n = 0 for i = 1, arguments_length do local flag = flags[i] if band(flag, INPUT) ~= 0 and band(flag, REQUIRED) ~= 0 and band(flag, DEPRECATED) == 0 then n = n + 1 if not vop:set(names[i], flag, match_image, call_args[n]) then error("unable to call " .. name .. "\n" .. verror.get()) end end end if last_arg then for k, v in pairs(last_arg) do if not vop:set(k, flags_from_name[k], match_image, v) then error("unable to call " .. name .. "\n" .. verror.get()) end end end local vop2 = vips_lib.vips_cache_operation_build(vop) if vop2 == nil then error("unable to call " .. name .. "\n" .. verror.get()) end vop = vop2:new() local result = {} local vob = vop:vobject() -- fetch required output args, plus modified input images n = 1 for i = 1, arguments_length do local flag = flags[i] if band(flag, OUTPUT) ~= 0 and band(flag, REQUIRED) ~= 0 and band(flag, DEPRECATED) == 0 then result[n] = vob:get(names[i]) n = n + 1 end -- MODIFY input args are returned .. this will get the copy we -- made above if band(flag, INPUT) ~= 0 and band(flag, MODIFY) ~= 0 then result[n] = vob:get(names[i]) n = n + 1 end end -- fetch optional output args for i = 1, arguments_length do local flag = flags[i] if band(flag, OUTPUT) ~= 0 and band(flag, REQUIRED) == 0 and band(flag, DEPRECATED) == 0 then result[n] = vob:get(names[i]) n = n + 1 end end vips_lib.vips_object_unref_outputs(vop) return unpack(result) end } } voperation = ffi.metatype("VipsOperation", voperation_mt) return voperation
modifier_spectre_ex_mobility_fear = class({}) if IsClient() then require("wrappers/modifiers") end Modifiers.Fear(modifier_spectre_ex_mobility_fear)
return function() return { { label = "Expression", command = "/insert/row/expression" }, { label = "Terminal", command = "/insert/row/terminal" }, { label = "Command-Line", command = "/insert/row/cli" } } end
return {'ark','arkansas','arke','arkesteijn','arkema','arken'}
RAMZA_ATTACK_HERO_JOB_POINT = 5 RAMZA_ATTACK_BUILDING_JOB_POINT = 5 RAMZA_ATTACK_ANCIENT_JOB_POINT = 5 RAMZA_ATTACK_CREEP_JOB_POINT = 1 RAMZA_USE_ABILITY_JOB_POINT = 5 RAMZA_KILL_BUILDING_JOB_POINT = 50 RAMZA_KILL_HERO_PER_LEVEL_JOB_POINT = 50 RAMZA_KILL_ANCIENT_JOB_POINT = 50 RAMZA_KILL_CREEP_JOB_POINT = 10 RAMZA_QUOTE_INTERVAL = 10 RAMZA_QUOTE_DURATION = 3 local tBannedAbilities = { item_armlet = true, item_power_treads = true, item_ring_of_aquila = true, item_ring_of_basilius = true, item_radiance = true, ramza_open_stats_lua = true, ramza_select_job_lua = true, ramza_select_secondary_skill_lua = true, ramza_next_page_lua = true, ramza_go_back_lua = true, ramza_job_squire_JC = true, ramza_job_chemist_JC = true, ramza_job_knight_JC = true, ramza_job_white_mage_JC = true, ramza_job_black_mage_JC = true, ramza_job_monk_JC = true, ramza_job_thief_JC = true, ramza_job_mystic_JC = true, ramza_job_time_mage_JC = true, ramza_job_orator_JC = true, ramza_job_summoner_JC = true, ramza_job_geomancer_JC = true, ramza_job_samurai_JC = true, ramza_job_dark_knight_JC = true, ramza_squire_defend = true, ramza_chemist_autopotion = true, ramza_time_mage_mana_shield = true, ramza_ninja_vanish = true, ramza_dark_knight_vehemence = true } modifier_attribute_growth_str = class({}) function modifier_attribute_growth_str:IsBuff() return true end function modifier_attribute_growth_str:IsHidden() return true end function modifier_attribute_growth_str:IsPurgable() return true end function modifier_attribute_growth_str:RemoveOnDeath() return false end function modifier_attribute_growth_str:DeclareFunctions() return { MODIFIER_PROPERTY_TOOLTIP } end function modifier_attribute_growth_str:OnTooltip() return self.fGrowth end function modifier_attribute_growth_str:OnCreated() self.fGrowth = self.fGrowth or 0 end function modifier_attribute_growth_str:GetTexture() return "modifier_attribute_growth_str" end modifier_attribute_growth_agi = class({}) function modifier_attribute_growth_agi:IsBuff() return true end function modifier_attribute_growth_agi:IsHidden() return true end function modifier_attribute_growth_agi:IsPurgable() return true end function modifier_attribute_growth_agi:RemoveOnDeath() return false end function modifier_attribute_growth_agi:DeclareFunctions() return { MODIFIER_PROPERTY_TOOLTIP } end function modifier_attribute_growth_agi:OnTooltip() return self.fGrowth end function modifier_attribute_growth_agi:OnCreated() self.fGrowth = self.fGrowth or 0 end function modifier_attribute_growth_agi:GetTexture() return "modifier_attribute_growth_agi" end modifier_attribute_growth_int = class({}) function modifier_attribute_growth_int:IsBuff() return true end function modifier_attribute_growth_int:IsHidden() return true end function modifier_attribute_growth_int:IsPurgable() return true end function modifier_attribute_growth_int:RemoveOnDeath() return false end function modifier_attribute_growth_int:DeclareFunctions() return { MODIFIER_PROPERTY_TOOLTIP } end function modifier_attribute_growth_int:OnTooltip() return self.fGrowth end function modifier_attribute_growth_int:OnCreated() self.fGrowth = self.fGrowth or 0 end function modifier_attribute_growth_int:GetTexture() return "modifier_attribute_growth_int" end modifier_ramza_job_manager = class({}) -- This modifier will add job points when things happens. function modifier_ramza_job_manager:IsPurgable() return false end function modifier_ramza_job_manager:IsHidden() return true end function modifier_ramza_job_manager:RemoveOnDeath() return false end function modifier_ramza_job_manager:DeclareFunctions() return { MODIFIER_EVENT_ON_ATTACK_LANDED, MODIFIER_EVENT_ON_ABILITY_EXECUTED, MODIFIER_EVENT_ON_TAKEDAMAGE_KILLCREDIT, MODIFIER_PROPERTY_ATTACK_RANGE_BONUS, MODIFIER_PROPERTY_TRANSLATE_ATTACK_SOUND, MODIFIER_EVENT_ON_ATTACK, MODIFIER_EVENT_ON_DEATH } end local tAttackSound = { [1] = "Hero_DragonKnight.Attack", [2] = "Hero_Sniper.attack", [3] = "Hero_DragonKnight.Attack", [4] = "Hero_Clinkz.Attack", [5] = "Hero_KeeperOfTheLight.Attack", [6] = "Hero_Invoker.Attack", [7] = "hero_bloodseeker.attack", [8] = "Hero_Riki.Attack", [9] = "Hero_Oracle.Attack", [10] = "Hero_Silencer.Attack", [11] = "Hero_ShadowShaman.Attack", [12] = "Hero_KeeperOfTheLight.Attack", [13] = "Hero_Warlock.Attack", [14] = "Hero_PhantomLancer.Attack", [15] = "Hero_Juggernaut.Attack", [16] = "Hero_BountyHunter.Attack", [17] = "Hero_Rubick.Attack", [18] = "Hero_Bane.Attack", [19] = "Hero_Abaddon.Attack", [20] = "Hero_Kunkka.Attack" } function modifier_ramza_job_manager:OnDeath(keys) if keys.unit ~= self:GetParent() or keys.unit:IsIllusion() then return end CustomGameEventManager:Send_ServerToPlayer( keys.unit:GetOwner(), "ramza_close_selection", nil ) end function modifier_ramza_job_manager:GetAttackSound() return "" end function modifier_ramza_job_manager:OnCreated() if IsClient() then return end local hParent = self:GetParent() hParent.hRamzaJob = CRamzaJob:New({hParent=hParent}) hParent.hRamzaJob:InitNetTable() -- growth of squire self.fIntGrowth = 2.5 self.fStrGrowth = 2.5 self.fAgiGrowth = 2.5 end function modifier_ramza_job_manager:OnAttackLanded(keys) if keys.attacker ~= self:GetParent() then return end local hParent = self:GetParent() if keys.target:IsHero() then hParent.hRamzaJob:GainJobPoint(RAMZA_ATTACK_HERO_JOB_POINT) elseif keys.target:IsBuilding() then hParent.hRamzaJob:GainJobPoint(RAMZA_ATTACK_BUILDING_JOB_POINT) elseif keys.target:IsAncient() then hParent.hRamzaJob:GainJobPoint(RAMZA_ATTACK_ANCIENT_JOB_POINT) else hParent.hRamzaJob:GainJobPoint(RAMZA_ATTACK_CREEP_JOB_POINT) end if hParent:GetAttackCapability() == DOTA_UNIT_CAP_MELEE_ATTACK then hParent:EmitSound(tAttackSound[self:GetStackCount()]) end end function modifier_ramza_job_manager:OnAttack(keys) if keys.attacker ~= self:GetParent() then return end local hParent = self:GetParent() if hParent:GetAttackCapability() == DOTA_UNIT_CAP_RANGED_ATTACK then hParent:EmitSound(tAttackSound[self:GetStackCount()]) end end -- 20 jp function modifier_ramza_job_manager:OnAbilityExecuted(keys) if keys.unit ~= self:GetParent() or keys.unit:FindModifierByName("modifier_fountain_aura_buff") or tBannedAbilities[keys.ability:GetName()] then return end local hParent = self:GetParent() hParent.hRamzaJob:GainJobPoint(RAMZA_USE_ABILITY_JOB_POINT) end -- 10 jp/50jp function modifier_ramza_job_manager:OnTakeDamageKillCredit(keys) if keys.attacker ~= self:GetParent() then return end local hParent = self:GetParent() if keys.damage > keys.target:GetHealth() and keys.target:IsAlive() then if keys.target:IsHero() then if keys.target:IsRealHero() then hParent.hRamzaJob:GainJobPoint(RAMZA_KILL_HERO_PER_LEVEL_JOB_POINT*keys.target:GetLevel()) else hParent.hRamzaJob:GainJobPoint(RAMZA_KILL_CREEP_JOB_POINT*keys.target:GetLevel()) end elseif keys.target:IsBuilding() then hParent.hRamzaJob:GainJobPoint(RAMZA_KILL_BUILDING_JOB_POINT) elseif keys.target:IsAncient() then hParent.hRamzaJob:GainJobPoint(RAMZA_KILL_ANCIENT_JOB_POINT) else hParent.hRamzaJob:GainJobPoint(RAMZA_KILL_CREEP_JOB_POINT) end end end function modifier_ramza_job_manager:GetModifierAttackRangeBonus() local tRamzaAttackRange = { [1] = 150, [2] = 600, [3] = 150, [4] = 625, [5] = 550, [6] = 500, [7] = 150, [8] = 150, [9] = 575, [10] = 500, [11] = 400, [12] = 600, [13] = 500, [14] = 150, [15] = 150, [16] = 150, [17] = 700, [18] = 600, [19] = 150, [20] = 150 } return tRamzaAttackRange[self:GetStackCount()]-150 end modifier_ramza_job_level = class({}) function modifier_ramza_job_level:IsPurgable() return false end function modifier_ramza_job_level:RemoveOnDeath() return false end function modifier_ramza_job_level:GetTexture() return "ramza_job_info" end function modifier_ramza_job_level:DeclareFunctions() return {MODIFIER_PROPERTY_TOOLTIP} end local tJobRequirements = { 200, 400, 700, 1100, 1600, 2200, 3000, 4000 } function modifier_ramza_job_level:OnTooltip() return tJobRequirements[self:GetStackCount()] end modifier_ramza_job_mastered = class({}) function modifier_ramza_job_mastered:IsPurgable() return false end function modifier_ramza_job_mastered:RemoveOnDeath() return false end function modifier_ramza_job_mastered:GetTexture() return "ramza_job_info_mastered" end modifier_ramza_job_point = class({}) function modifier_ramza_job_point:IsPurgable() return false end function modifier_ramza_job_point:RemoveOnDeath() return false end function modifier_ramza_job_point:GetTexture() return "ramza_job_info" end function modifier_ramza_job_point:DeclareFunctions() return {MODIFIER_PROPERTY_TOOLTIP, MODIFIER_PROPERTY_TOOLTIP2} end function modifier_ramza_job_point:OnTooltip() return self:GetStackCount() end function modifier_ramza_job_point:OnTooltip2() for i = 1, 8 do if self:GetStackCount() < tJobRequirements[i] then return tJobRequirements[i] end end end modifier_ramza_samurai_run_animation_manager = class({}) function modifier_ramza_samurai_run_animation_manager:IsPurgable() return false end function modifier_ramza_samurai_run_animation_manager:RemoveOnDeath() return false end function modifier_ramza_samurai_run_animation_manager:IsHidden() return true end function modifier_ramza_samurai_run_animation_manager:OnCreated() if IsClient() then return end self:StartIntervalThink(0.15) local hParent = self:GetParent() AddAnimationTranslate(hParent, "odachi") AddAnimationTranslate(hParent, "arcana") AddAnimationTranslate(hParent, "red") self.hSpeedModifier = AddAnimationTranslate(hParent, "run") end function modifier_ramza_samurai_run_animation_manager:OnIntervalThink() if IsClient() then return end local hParent = self:GetParent() hParent:SetMaterialGroup("1") if hParent:GetIdealSpeed() >= 380 and self.hSpeedModifier.translate == "run" and hParent:IsAlive() then self.hSpeedModifier:Destroy() self.hSpeedModifier = AddAnimationTranslate(hParent, "run_fast") self.fSpeedStartTime = Time() elseif hParent:GetIdealSpeed() < 380 and self.hSpeedModifier.translate == "run_fast" and Time() - self.fSpeedStartTime > 5 and hParent:IsAlive() then self.hSpeedModifier:Destroy() self.hSpeedModifier = AddAnimationTranslate(hParent, "run") end if hParent:GetHealth()/hParent:GetMaxHealth() < 0.25 and not self.hInjuredModifier and hParent:IsAlive() then self.hInjuredModifier = AddAnimationTranslate(hParent, "injured") elseif hParent:GetHealth()/hParent:GetMaxHealth() >= 0.25 and self.hInjuredModifier and hParent:IsAlive() then self.hInjuredModifier:Destroy() self.hInjuredModifier = nil end tHeroes = FindUnitsInRadius(hParent:GetTeamNumber(), hParent:GetAbsOrigin(), nil, 800, DOTA_UNIT_TARGET_TEAM_ENEMY, DOTA_UNIT_TARGET_HERO, DOTA_UNIT_TARGET_FLAG_FOW_VISIBLE+DOTA_UNIT_TARGET_FLAG_NO_INVIS, FIND_ANY_ORDER, false) if #tHeroes > 0 and not self.hAggressiveModifier and hParent:IsAlive() then self.hAggressiveModifier = AddAnimationTranslate(hParent, "aggressive") elseif #tHeroes == 0 and self.hAggressiveModifier and hParent:IsAlive() then self.hAggressiveModifier:Destroy() self.hAggressiveModifier = nil end end function modifier_ramza_samurai_run_animation_manager:OnDestroy() if IsClient() then return end RemoveAnimationTranslate(self:GetParent()) end modifier_ramza_white_mage_animation_manager = class({}) function modifier_ramza_white_mage_animation_manager:IsPurgable() return false end function modifier_ramza_white_mage_animation_manager:RemoveOnDeath() return false end function modifier_ramza_white_mage_animation_manager:IsHidden() return true end function modifier_ramza_white_mage_animation_manager:OnCreated() if IsClient() then return end local hParent = self:GetParent() AddAnimationTranslate(hParent, "ti6") AddAnimationTranslate(hParent, "divine_sorrow_sunstrike") end function modifier_ramza_white_mage_animation_manager:OnDestroy() if IsClient() then return end RemoveAnimationTranslate(self:GetParent()) end local tAbilityStyles = { ramza_squire_fundamental_ultima = {color = "#00FF00", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_white_mage_white_magicks_cura = {color = "#fff790", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_white_mage_white_magicks_wall = {color = "#fff790", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_white_mage_white_magicks_curaga = {color = "#fff790", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_white_mage_reraise = {color = "#fff790", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_white_mage_white_magicks_holy = {color = "#fff790", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_black_mage_black_magicks_firaga = {color = "red", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_black_mage_black_magicks_blizzaga = {color = "#00bfff", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_black_mage_black_magicks_thundaga = {color = "#e0ffff", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_black_mage_death = {color = "black", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_black_mage_black_magicks_flare = {color = "red", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_monk_martial_arts_shockwave = {color = "gold", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_monk_martial_arts_doom_fist = {color = "orange", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_mystic_mystic_arts_disbelief = {color = "#101263", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_mystic_mystic_arts_hesitation = {color = "#94baab", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_mystic_mystic_arts_quiescence = {color = "#9d28a8", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_mystic_mystic_arts_invigoration = {color = "#5400C3", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_time_mage_time_magicks_gravity = {color = "#060e38", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_time_mage_time_magicks_quick = {color = "#f7da00", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_time_mage_time_magicks_stop = {color = "#0031f7", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_time_mage_time_magicks_meteor = {color = "red", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_summoner_summon_shiva = {color = "#00bfff", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_summoner_summon_ifrit = {color = "red", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_summoner_summon_ramuh = {color = "#e0ffff", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_summoner_lich = {color = "#5400C3", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_summoner_summon_golem = {color = "#784800", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_summoner_odin = {color = "#5400C3", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_summoner_summon_bahamut = {color = "red", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_summoner_summon_zodiark = {color = "#9659ff", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_samurai_iaido_ashura = {color = "gold", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_samurai_iaido_osafune = {color = "#070ac1", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_samurai_iaido_murasame = {color = "#fff790", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_samurai_iaido_kikuichimonji = {color = "#ffb7c5", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_samurai_iaido_masamune = {color = "#fff790", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_samurai_iaido_chirijiraden = {color = "#00bfff", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_dark_knight_darkness_sanguine_sword = {color = "#8A0707", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_dark_knight_darkness_crushing_blow = {color = "#5400C3", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_dark_knight_darkness_abyssal_blade = {color = "#5400C3", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_dark_knight_darkness_unholy_sacrifice = {color = "#5400C3", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, ramza_dark_knight_darkness_shadowblade = {color = "#5400C3", ["text-shadow"] = "2px 2px 2px 1.0 #333333b0", ["margin-top"] = "0px"}, } modifier_ramza_quote_manager = class({}) function modifier_ramza_quote_manager:DeclareFunctions() return { MODIFIER_EVENT_ON_ABILITY_EXECUTED } end function modifier_ramza_quote_manager:IsPurgable() return false end function modifier_ramza_quote_manager:RemoveOnDeath() return false end function modifier_ramza_quote_manager:IsHidden() return true end function modifier_ramza_quote_manager:OnAbilityExecuted(keys) if keys.unit ~= self:GetParent() then return end local sName = keys.ability:GetName() if tAbilityStyles[sName] then self.tAbilityExecutedTime = self.tAbilityExecutedTime or {} if not (self.tAbilityExecutedTime[sName] and Time() - self.tAbilityExecutedTime[sName] < RAMZA_QUOTE_INTERVAL) then self.tAbilityExecutedTime[sName] = Time() Notifications:BottomToAll({text="#" .. sName .. "_quote", duration=RAMZA_QUOTE_DURATION, style= tAbilityStyles[sName]}) end end end modifier_ramza_bravery = class({}) function modifier_ramza_bravery:DeclareFunctions() return {MODIFIER_PROPERTY_PREATTACK_BONUS_DAMAGE, MODIFIER_PROPERTY_STATS_STRENGTH_BONUS} end function modifier_ramza_bravery:IsPurgable() return false end function modifier_ramza_bravery:RemoveOnDeath() return false end function modifier_ramza_bravery:IsHidden() return true end function modifier_ramza_bravery:OnCreated() if not self:GetAbility() then return end self.iBonusDamage = self:GetAbility():GetSpecialValueFor("bonus_damage") self.iBonusStr = self:GetAbility():GetSpecialValueFor("bonus_strength") if IsClient() then return end self:GetParent():CalculateStatBonus(true) end function modifier_ramza_bravery:OnRefresh() if not self:GetAbility() then return end self.iBonusDamage = self:GetAbility():GetSpecialValueFor("bonus_damage") self.iBonusStr = self:GetAbility():GetSpecialValueFor("bonus_strength") if IsClient() then return end self:GetParent():CalculateStatBonus(true) end function modifier_ramza_bravery:GetModifierPreAttack_BonusDamage() if not self.hSpecial then self.hSpecial = Entities:First() while self.hSpecial and (self.hSpecial:GetName() ~= "special_bonus_ramza_1" or self.hSpecial:GetCaster() ~= self:GetCaster()) do self.hSpecial = Entities:Next(self.hSpecial) end end if not self.hSpecial:IsNull() then return (self.iBonusDamage or 0)*(1+self.hSpecial:GetSpecialValueFor("value")) else return (self.iBonusDamage or 0) end end function modifier_ramza_bravery:GetModifierBonusStats_Strength() if not self.hSpecial then self.hSpecial = Entities:First() while self.hSpecial and (self.hSpecial:GetName() ~= "special_bonus_ramza_1" or self.hSpecial:GetCaster() ~= self:GetCaster()) do self.hSpecial = Entities:Next(self.hSpecial) end end if not self.hSpecial:IsNull() then return (self.iBonusStr or 0)*(1+self.hSpecial:GetSpecialValueFor("value")) else return (self.iBonusStr or 0) end end modifier_ramza_speed = class({}) function modifier_ramza_speed:DeclareFunctions() return {MODIFIER_PROPERTY_ATTACKSPEED_BONUS_CONSTANT, MODIFIER_PROPERTY_MOVESPEED_BONUS_PERCENTAGE, MODIFIER_PROPERTY_STATS_AGILITY_BONUS} end function modifier_ramza_speed:IsPurgable() return false end function modifier_ramza_speed:RemoveOnDeath() return false end function modifier_ramza_speed:IsHidden() return true end function modifier_ramza_speed:OnRefresh() if not self:GetAbility() then return end self.iMove = self:GetAbility():GetSpecialValueFor("bonus_move") self.iAttack = self:GetAbility():GetSpecialValueFor("bonus_attack") self.iAgi = self:GetAbility():GetSpecialValueFor("bonus_agility") if IsClient() then return end self:GetParent():CalculateStatBonus(true) end function modifier_ramza_speed:GetModifierBonusStats_Agility() if not self.hSpecial then self.hSpecial = Entities:First() while self.hSpecial and (self.hSpecial:GetName() ~= "special_bonus_ramza_1" or self.hSpecial:GetCaster() ~= self:GetCaster()) do self.hSpecial = Entities:Next(self.hSpecial) end end if not self.hSpecial:IsNull() then return (self.iAgi or 0)*(1+self.hSpecial:GetSpecialValueFor("value")) else return (self.iAgi or 0) end end function modifier_ramza_speed:GetModifierMoveSpeedBonus_Percentage() if not self.hSpecial then self.hSpecial = Entities:First() while self.hSpecial and (self.hSpecial:GetName() ~= "special_bonus_ramza_1" or self.hSpecial:GetCaster() ~= self:GetCaster()) do self.hSpecial = Entities:Next(self.hSpecial) end end if not self.hSpecial:IsNull() then return (self.iMove or 0)*(1+self.hSpecial:GetSpecialValueFor("value")) else return (self.iMove or 0) end end function modifier_ramza_speed:GetModifierAttackSpeedBonus_Constant() if not self.hSpecial then self.hSpecial = Entities:First() while self.hSpecial and (self.hSpecial:GetName() ~= "special_bonus_ramza_1" or self.hSpecial:GetCaster() ~= self:GetCaster()) do self.hSpecial = Entities:Next(self.hSpecial) end end if not self.hSpecial:IsNull() then return (self.iAttack or 0)*(1+self.hSpecial:GetSpecialValueFor("value")) else return (self.iAttack or 0) end end modifier_ramza_faith = class({}) function modifier_ramza_faith:DeclareFunctions() return {MODIFIER_PROPERTY_SPELL_AMPLIFY_PERCENTAGE, MODIFIER_PROPERTY_STATS_INTELLECT_BONUS, MODIFIER_PROPERTY_HP_REGEN_AMPLIFY_PERCENTAGE_SOURCE} end function modifier_ramza_faith:IsPurgable() return false end function modifier_ramza_faith:RemoveOnDeath() return false end function modifier_ramza_faith:IsHidden() return true end function modifier_ramza_faith:OnRefresh() if not self:GetAbility() then return end self.iSpellAmp = self:GetAbility():GetSpecialValueFor("bonus_spell_amp") self.iHealAmp = self:GetAbility():GetSpecialValueFor("bonus_heal_amp") self.iInt = self:GetAbility():GetSpecialValueFor("bonus_intelligence") if IsClient() then return end self:GetParent():CalculateStatBonus(true) end function modifier_ramza_faith:GetModifierHPRegenAmplify_PercentageSource() if not self.hSpecial then self.hSpecial = Entities:First() while self.hSpecial and (self.hSpecial:GetName() ~= "special_bonus_ramza_1" or self.hSpecial:GetCaster() ~= self:GetCaster()) do self.hSpecial = Entities:Next(self.hSpecial) end end if not self.hSpecial:IsNull() then return (self.iHealAmp or 0)*(1+self.hSpecial:GetSpecialValueFor("value")) else return (self.iHealAmp or 0) end end function modifier_ramza_faith:GetModifierSpellAmplify_Percentage() if not self.hSpecial then self.hSpecial = Entities:First() while self.hSpecial and (self.hSpecial:GetName() ~= "special_bonus_ramza_1" or self.hSpecial:GetCaster() ~= self:GetCaster()) do self.hSpecial = Entities:Next(self.hSpecial) end end if not self.hSpecial:IsNull() then return (self.iSpellAmp or 0)*(1+self.hSpecial:GetSpecialValueFor("value")) else return (self.iSpellAmp or 0) end end function modifier_ramza_faith:GetModifierBonusStats_Intellect() if not self.hSpecial then self.hSpecial = Entities:First() while self.hSpecial and (self.hSpecial:GetName() ~= "special_bonus_ramza_1" or self.hSpecial:GetCaster() ~= self:GetCaster()) do self.hSpecial = Entities:Next(self.hSpecial) end end if not self.hSpecial:IsNull() then return (self.iInt or 0)*(1+self.hSpecial:GetSpecialValueFor("value")) else return (self.iInt or 0) end end
object_mobile_dressed_tatooine_opening_drixa = object_mobile_shared_dressed_tatooine_opening_drixa:new { } ObjectTemplates:addTemplate(object_mobile_dressed_tatooine_opening_drixa, "object/mobile/dressed_tatooine_opening_drixa.iff")
if a then for _, v in ipairs(mylist) do print(v) end if b then print("done") end end
local io = require("io") local table_insert = table.insert local FileWriter = {} FileWriter.__index = FileWriter function FileWriter.new(f) local tb = {} tb.path = f tb.tableCount = 0 tb.cache = {} setmetatable(tb,FileWriter) return tb end function FileWriter:WriteLine(s) if not s then table_insert( self.cache ,'\n') return end for i = 0,self.tableCount-1 do table_insert( self.cache ,'\t') end table_insert( self.cache ,s) table_insert( self.cache ,'\n') end function FileWriter:WriteLeftBrace(inline) if inline then self:Write('{') else self:WriteLine('{') end self.tableCount = self.tableCount + 1 end function FileWriter:WriteRightBrace() self.tableCount = self.tableCount - 1 self:WriteLine('}') end function FileWriter:Write(s) if not s then return end for i = 0,self.tableCount-1 do table_insert( self.cache ,'\t') end table_insert( self.cache ,s) end function FileWriter:RawWrite(s) if not s then return end table_insert( self.cache ,s) end function FileWriter:Close() DataExport:WriteFile(self.path,table.concat(self.cache)) end return FileWriter
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end local voices = { {text = 'Selling all sorts of magic equipment. Come and have a look'} } npcHandler:addModule(VoiceModule:new(voices)) local function creatureSayCallback(cid, type, msg) if not npcHandler:isFocused(cid) then return false end local player = Player(cid) local items = {[1] = 2190, [2] = 2182} local itemId = items[player:getVocation():getBase():getId()] if msgcontains(msg, 'first rod') or msgcontains(msg, 'first wand') then if player:isMage() then if player:getStorageValue(Storage.firstMageWeapon) == -1 then npcHandler:say('So you ask me for a {' .. ItemType(itemId):getName() .. '} to begin your adventure?', cid) npcHandler.topic[cid] = 1 else npcHandler:say('What? I have already gave you one {' .. ItemType(itemId):getName() .. '}!', cid) end else npcHandler:say('Sorry, you aren\'t a druid either a sorcerer.', cid) end elseif msgcontains(msg, 'yes') then if npcHandler.topic[cid] == 1 then player:addItem(itemId, 1) npcHandler:say('Here you are young adept, take care yourself.', cid) player:setStorageValue(Storage.firstMageWeapon, 1) end npcHandler.topic[cid] = 0 elseif msgcontains(msg, 'no') and npcHandler.topic[cid] == 1 then npcHandler:say('Ok then.', cid) npcHandler.topic[cid] = 0 end return true end keywordHandler:addKeyword({'magic'}, StdModule.say, {npcHandler = npcHandler, text = "I'm selling runes, life rings, wands, rods and crystal balls. I also buy powerful spellbooks. If you like to see my offers, ask me for a {trade}."}) npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:setMessage(MESSAGE_GREET, "Hi there |PLAYERNAME|, and welcome to the {magic} store.") npcHandler:setMessage(MESSAGE_FAREWELL, "See you, |PLAYERNAME|.") npcHandler:setMessage(MESSAGE_WALKAWAY, "See you, |PLAYERNAME|.") npcHandler:setMessage(MESSAGE_SENDTRADE, "Of course, just browse through my wares. Or do you want to look only at {runes} or {wands}?") npcHandler:addModule(FocusModule:new())
-- Get Roblox services local ReplicatedStorage = game:GetService("ReplicatedStorage"); local Players = game:GetService("Players"); local ControllerService = game:GetService("ControllerService"); local RunService = game:GetService("RunService"); local ContextActionService = game:GetService("ContextActionService"); local UserInputService = game:GetService("UserInputService"); local Player = Players.LocalPlayer; local PlayerGui = Player:WaitForChild("PlayerGui"); local RemoteConnections = ReplicatedStorage:WaitForChild("DialogueMakerRemoteConnections", 3); -- Check if the DialogueMakerRemoteConnections folder was moved assert(RemoteConnections, "[Dialogue Maker] Couldn't find the DialogueMakerRemoteConnections folder in the ReplicatedStorage."); -- Set some constants local THEMES = script.Themes; local DEFAULT_THEME = RemoteConnections.GetDefaultTheme:InvokeServer(); local DEFAULT_MIN_DISTANCE = RemoteConnections.GetMinimumDistanceFromCharacter:InvokeServer(); local KEYBINDS = RemoteConnections.GetKeybinds:InvokeServer(); local DEFAULT_CLICK_SOUND = RemoteConnections.GetDefaultClickSound:InvokeServer(); local PlayerTalkingWithNPC = false; local Events = {}; local API = require(script.ClientAPI); local function ReadDialogue(npc, dialogueSettings) if PlayerTalkingWithNPC then return; end; PlayerTalkingWithNPC = true; API.Triggers.DisableAllSpeechBubbles(); API.Triggers.DisableAllClickDetectors(); API.Triggers.DisableAllProximityDetectors(); API.Player.SetPlayer(Player); if dialogueSettings.FreezePlayer then API.Player.FreezePlayer(); end; -- Show the dialogue GUI to the player local DialogueContainer = npc.DialogueContainer; local DialogueGui = API.Gui.CreateNewDialogueGui(dialogueSettings.Theme); local ResponseContainer = DialogueGui.DialogueContainer.ResponseContainer; local ResponseTemplate = ResponseContainer.ResponseTemplate:Clone(); ResponseContainer.ResponseTemplate:Destroy(); local DialoguePriority = "1"; local RootDirectory = DialogueContainer["1"]; local CurrentDirectory = RootDirectory; -- Setup click sound local ClickSound = DialogueGui:FindFirstChild("ClickSound"); local ClickSoundEnabled = false; if DEFAULT_CLICK_SOUND and DEFAULT_CLICK_SOUND ~= 0 then if not ClickSound then ClickSound = Instance.new("Sound"); ClickSound.Name = "ClickSound"; ClickSound.Parent = DialogueGui; end; ClickSoundEnabled = true; DialogueGui.ClickSound.SoundId = "rbxassetid://"..DEFAULT_CLICK_SOUND; end; -- Check if the NPC has a name if typeof(dialogueSettings.Name) == "string" and dialogueSettings.Name ~= "" then DialogueGui.DialogueContainer.NPCNameFrame.Visible = true; DialogueGui.DialogueContainer.NPCNameFrame.NPCName.Text = dialogueSettings.Name; else DialogueGui.DialogueContainer.NPCNameFrame.Visible = false; end; -- Show the dialouge to the player while PlayerTalkingWithNPC and game:GetService("RunService").Heartbeat:Wait() do CurrentDirectory = API.Dialogue.GoToDirectory(RootDirectory, DialoguePriority:split(".")); if CurrentDirectory.Redirect.Value and RemoteConnections.PlayerPassesCondition:InvokeServer(npc, CurrentDirectory) then local DialoguePriorityPath = CurrentDirectory.RedirectPriority.Value:split("."); table.remove(DialoguePriorityPath, 1); DialoguePriority = table.concat(DialoguePriorityPath, "."); RemoteConnections.ExecuteAction:InvokeServer(npc, CurrentDirectory, "After"); CurrentDirectory = RootDirectory; elseif RemoteConnections.PlayerPassesCondition:InvokeServer(npc, CurrentDirectory) then -- Run the before action if there is one if CurrentDirectory.HasBeforeAction.Value then RemoteConnections.ExecuteAction:InvokeServer(npc, CurrentDirectory, "Before"); end; -- Check if the message has any variables local MessageText = API.Dialogue.ReplaceVariablesWithValues(npc, CurrentDirectory.Message.Value); -- Show the message to the player local ThemeDialogueContainer = DialogueGui.DialogueContainer; -- Check if there are any response options local TextContainer; local ResponsesEnabled = false; if #CurrentDirectory.Responses:GetChildren() > 0 then API.Dialogue.ClearResponses(ResponseContainer); TextContainer = ThemeDialogueContainer.NPCTextContainerWithResponses; ThemeDialogueContainer.NPCTextContainerWithResponses.Visible = true; ThemeDialogueContainer.NPCTextContainerWithoutResponses.Visible = false; ResponsesEnabled = true; else TextContainer = ThemeDialogueContainer.NPCTextContainerWithoutResponses; ThemeDialogueContainer.NPCTextContainerWithoutResponses.Visible = true; ThemeDialogueContainer.NPCTextContainerWithResponses.Visible = false; ThemeDialogueContainer.ResponseContainer.Visible = false; end; DialogueGui.Parent = PlayerGui; local NPCTalking = true; local WaitingForResponse = true; local Skipped = false; local FullMessageText = ""; local Message = ""; -- Make the NPC stop talking if the player clicks the frame local NPCPaused = false; local ContinueDialogue; ContinueDialogue = function(keybind) -- Make sure key is down if keybind and not UserInputService:IsKeyDown(KEYBINDS.DEFAULT_CHAT_CONTINUE_KEY) and not UserInputService:IsKeyDown(KEYBINDS.DEFAULT_CHAT_CONTINUE_KEY_GAMEPAD) then return; end; ContextActionService:UnbindAction("ContinueDialogue"); if NPCTalking then if ClickSoundEnabled then ClickSound:Play(); end; if NPCPaused then NPCPaused = false; end; -- Check settings set by the developer if dialogueSettings.AllowPlayerToSkipDelay then -- Replace the incomplete dialogue with the full text TextContainer.Line.Text = FullMessageText; Skipped = true; end; ContextActionService:BindAction("ContinueDialogue", ContinueDialogue, false, KEYBINDS.DEFAULT_CHAT_CONTINUE_KEY, KEYBINDS.DEFAULT_CHAT_CONTINUE_KEY_GAMEPAD); elseif #CurrentDirectory.Responses:GetChildren() == 0 then WaitingForResponse = false; end; end; Events.DialogueClicked = ThemeDialogueContainer.InputBegan:Connect(function(input) -- Make sure the player clicked the frame if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then ContinueDialogue(); end; end); if KEYBINDS.KEYBINDS_ENABLED then local KEYS_PRESSED = UserInputService:GetKeysPressed(); local KeybindPressed = false; if UserInputService:IsKeyDown(KEYBINDS.DEFAULT_CHAT_CONTINUE_KEY) or UserInputService:IsKeyDown(KEYBINDS.DEFAULT_CHAT_CONTINUE_KEY_GAMEPAD) then coroutine.wrap(function() while UserInputService:IsKeyDown(KEYBINDS.DEFAULT_CHAT_CONTINUE_KEY) or UserInputService:IsKeyDown(KEYBINDS.DEFAULT_CHAT_CONTINUE_KEY_GAMEPAD) do RunService.Heartbeat:Wait(); end; ContextActionService:BindAction("ContinueDialogue", ContinueDialogue, false, KEYBINDS.DEFAULT_CHAT_CONTINUE_KEY, KEYBINDS.DEFAULT_CHAT_CONTINUE_KEY_GAMEPAD); end)(); else ContextActionService:BindAction("ContinueDialogue", ContinueDialogue, false, KEYBINDS.DEFAULT_CHAT_CONTINUE_KEY, KEYBINDS.DEFAULT_CHAT_CONTINUE_KEY_GAMEPAD); end; end; -- Put the letters of the message together for an animation effect local ImportantPositions = {}; if TextContainer.Line.RichText then -- TODO: find a way to mix rich text syntax with fonts local TagContentPattern = "<([^<>]-)>(.-)</"; local TagStart, TagEnd, Tag, Content, Value, Attribute, NewPattern; local function UpdateTagData(str) -- Find the tag local _TagStart, _, _Tag, _ = str:find(TagContentPattern); if _TagStart then local _Attribute, _Value = nil, nil; if _Tag:find(" ") then -- Get the real tag local Split1 = _Tag:split(" "); _Tag = Split1[1]; -- Get the real attribute and value local Split2 = Split1[2]:split("="); _Attribute, _Value = Split2[1], Split2[2]; end -- Make a new pattern based on the tag we have local _NewPattern = TagContentPattern .. _Tag .. ">"; local _, _TagEnd, _, _Content = str:find(_NewPattern); return _TagStart, _TagEnd, _Tag, _Content, _Attribute, _Value, _NewPattern; end; end; TagStart, TagEnd, Tag, Content, Attribute, Value, NewPattern = UpdateTagData(MessageText); while TagStart do local TagGroup = MessageText:sub(TagStart, TagEnd); local ContentStart, ContentEnd = TagGroup:find(Content, 1, true); -- Get the sub-tags inside the first one if not ImportantPositions[TagStart] then ImportantPositions[TagStart] = {}; end; local ETagStart, ETagEnd, ETag, EContent, EAttr, EVal, EPattern = UpdateTagData(Content); while ETagStart do -- Add the sub tag to the table table.insert(ImportantPositions[TagStart], {ETag .. (EVal and (" " .. EAttr .. '=' .. EVal) or "")}); -- Scrub the tag from the content + length Content = Content:gsub(Content:sub(ETagStart, ETagEnd), EContent); ETagStart, ETagEnd, ETag, EContent, EAttr, EVal, EPattern = UpdateTagData(Content); end; -- Change all the final content lengths local ContentLength = TagStart + Content:len() - 1; for i, _ in ipairs(ImportantPositions[TagStart]) do ImportantPositions[TagStart][i][2] = ContentLength; end; -- Add the main tag to the table table.insert(ImportantPositions[TagStart], {Tag .. (Value and (" " .. Attribute .. '=' .. Value) or ""), ContentLength}); -- Scrub the tags from the original text MessageText = MessageText:gsub(TagGroup, Content, 1); -- Check if there's any more tags TagStart, TagEnd, Tag, Content, Attribute, Value, NewPattern = UpdateTagData(MessageText); end; end; local DividedText = API.Dialogue.DivideTextToFitBox(MessageText, TextContainer); local Position = 0; local Adding = false; for index, page in ipairs(DividedText) do FullMessageText = page.FullText; for wordIndex, word in ipairs(page) do if wordIndex ~= 1 then Position += 1; if Adding then ImportantPositions[Position + 1] = ImportantPositions[Position]; Adding = false; end; Message = Message .. " "; end; local Extras = ""; for _, letter in ipairs(word:split("")) do Adding = false; -- Check if the player wants to skip their dialogue if Skipped or not NPCTalking or not PlayerTalkingWithNPC then break; end; Position += 1; local IP = ImportantPositions[Position]; if IP then local Replacement = letter; for _, tag in ipairs(IP) do if not tag.OriginalPosition then tag.OriginalPosition = Position; Replacement = "<" .. tag[1] .. ">" .. Replacement .. ((Position == tag[2] and "</" .. tag[1]:match("%a+") .. ">") or ""); end; if Position < tag[2] then Extras = Extras .. "</" .. tag[1]:match("%a+") .. ">"; if not ImportantPositions[Position + 1] then ImportantPositions[Position + 1] = {}; end; table.insert(ImportantPositions[Position + 1], tag); Adding = true; elseif tag.OriginalPosition ~= Position and Position == tag[2] then Replacement = Replacement .. "</" .. tag[1]:match("%a+") .. ">"; end; end; Message = Message .. Replacement; else Message = Message .. letter; end; TextContainer.Line.Text = Message .. Extras; Extras = ""; wait(dialogueSettings.LetterDelay); end; end; if DividedText[index+1] and NPCTalking then ThemeDialogueContainer.ClickToContinue.Visible = true; NPCPaused = true; while NPCPaused and NPCTalking do game:GetService("RunService").Heartbeat:Wait() end; ThemeDialogueContainer.ClickToContinue.Visible = false; NPCPaused = false; Skipped = false; end; end; NPCTalking = false; local ResponseChosen; if ResponsesEnabled and PlayerTalkingWithNPC then -- Add response buttons for _, response in ipairs(CurrentDirectory.Responses:GetChildren()) do if RemoteConnections.PlayerPassesCondition:InvokeServer(npc,response) then local ResponseButton = ResponseTemplate:Clone(); ResponseButton.Name = "Response"; ResponseButton.Text = response.Message.Value; ResponseButton.Parent = ResponseContainer; ResponseButton.MouseButton1Click:Connect(function() if ClickSoundEnabled then ClickSound:Play(); end; ResponseContainer.Visible = false; ResponseChosen = response; if response.HasAfterAction.Value then RemoteConnections.ExecuteAction:InvokeServer(npc,response,"After"); end; WaitingForResponse = false; end); end; end; ResponseContainer.CanvasSize = UDim2.new(0,ResponseContainer.CanvasSize.X,0,ResponseContainer.UIListLayout.AbsoluteContentSize.Y); ThemeDialogueContainer.ResponseContainer.Visible = true; end; -- Run the timeout code in the background coroutine.wrap(function() if dialogueSettings.TimeoutEnabled and dialogueSettings.ConversationTimeoutInSeconds then -- Wait for the player if the developer wants to if ResponsesEnabled and dialogueSettings.WaitForResponse then return; end; -- Wait the timeout set by the developer wait(dialogueSettings.ConversationTimeoutInSeconds); WaitingForResponse = false; end; end)(); while WaitingForResponse and PlayerTalkingWithNPC do game:GetService("RunService").Heartbeat:Wait(); end; -- Run after action if CurrentDirectory.HasAfterAction.Value and PlayerTalkingWithNPC then RemoteConnections.ExecuteAction:InvokeServer(npc, CurrentDirectory, "After"); end; if ResponseChosen and PlayerTalkingWithNPC then if (#ResponseChosen.Dialogue:GetChildren() ~= 0 or #ResponseChosen.Redirects:GetChildren() ~= 0) then DialoguePriority = string.sub(ResponseChosen.Priority.Value..".1",3); CurrentDirectory = RootDirectory; else DialogueGui:Destroy(); PlayerTalkingWithNPC = false; end; else -- Check if there is more dialogue if PlayerTalkingWithNPC and (#CurrentDirectory.Dialogue:GetChildren() ~= 0 or #CurrentDirectory.Redirects:GetChildren() ~= 0) then DialoguePriority = DialoguePriority..".1"; CurrentDirectory = RootDirectory; else DialogueGui:Destroy(); PlayerTalkingWithNPC = false; end; end; elseif PlayerTalkingWithNPC then local SplitPriority = DialoguePriority:split("."); SplitPriority[#SplitPriority] = SplitPriority[#SplitPriority] + 1; DialoguePriority = table.concat(SplitPriority,"."); end; end; API.Triggers.EnableAllSpeechBubbles(); API.Triggers.EnableAllClickDetectors(); API.Triggers.EnableAllProximityDetectors(); if dialogueSettings.FreezePlayer then API.Player.UnfreezePlayer(); end; end; local NPCDialogue = RemoteConnections.GetNPCDialogue:InvokeServer() print("[Dialogue Maker] Preparing dialogue that was received from the server..."); -- Iterate through every NPC in order to for _, npc in ipairs(NPCDialogue) do -- Make sure all NPCs aren't affected if this one doesn't load properly local success, msg = pcall(function() local DialogueSettings = require(npc.DialogueContainer.Settings); if DialogueSettings.SpeechBubbleEnabled and DialogueSettings.SpeechBubblePart then if DialogueSettings.SpeechBubblePart:IsA("BasePart") then local SpeechBubble = API.Triggers.CreateSpeechBubble(npc, DialogueSettings); -- Listen if the player clicks the speech bubble SpeechBubble.SpeechBubbleButton.MouseButton1Click:Connect(function() ReadDialogue(npc, DialogueSettings); end); SpeechBubble.Parent = PlayerGui; else warn("[Dialogue Maker] The SpeechBubblePart for "..npc.Name.." is not a Part."); end; end; if DialogueSettings.PromptRegionEnabled and DialogueSettings.PromptRegionPart then if DialogueSettings.PromptRegionPart:IsA("BasePart") then DialogueSettings.PromptRegionPart.Touched:Connect(function(part) -- Make sure our player touched it and not someone else local PlayerFromCharacter = Players:GetPlayerFromCharacter(part.Parent); if PlayerFromCharacter == Player then ReadDialogue(npc, DialogueSettings); end; end); else warn("[Dialogue Maker] The PromptRegionPart for "..npc.Name.." is not a Part."); end; end; if DialogueSettings.ProximityDetectorEnabled and (DialogueSettings.ProximityDetectorLocation or DialogueSettings.AutomaticallyCreateProximityDetector) then if (DialogueSettings.AutomaticallyCreateProximityDetector) then local ProximityDetector = Instance.new("ProximityPrompt"); ProximityDetector.MaxActivationDistance = DialogueSettings.ProximityDetectorActivationDistance; ProximityDetector.HoldDuration = DialogueSettings.ProximityDetectorHoldDuration; ProximityDetector.RequiresLineOfSight = DialogueSettings.ProximityDetectorRequiresLineOfSight; ProximityDetector.Parent = npc; DialogueSettings.ProximityDetectorLocation = ProximityDetector; end; if DialogueSettings.ProximityDetectorLocation:IsA("ProximityPrompt") then API.Triggers.AddProximityDetector(npc, DialogueSettings.ProximityDetectorLocation); DialogueSettings.ProximityDetectorLocation.Triggered:Connect(function() ReadDialogue(npc, DialogueSettings); end); else warn("[Dialogue Maker] The ClickDetectorLocation for "..npc.Name.." is not a ClickDetector."); end; end if DialogueSettings.ClickDetectorEnabled and (DialogueSettings.ClickDetectorLocation or DialogueSettings.AutomaticallyCreateClickDetector) then if DialogueSettings.AutomaticallyCreateClickDetector then local ClickDetector = Instance.new("ClickDetector"); ClickDetector.MaxActivationDistance = DialogueSettings.DetectorActivationDistance; ClickDetector.Parent = npc; DialogueSettings.ClickDetectorLocation = ClickDetector; end; if DialogueSettings.ClickDetectorLocation:IsA("ClickDetector") then API.Triggers.AddClickDetector(npc, DialogueSettings.ClickDetectorLocation); DialogueSettings.ClickDetectorLocation.MouseClick:Connect(function() ReadDialogue(npc, DialogueSettings); end); else warn("[Dialogue Maker] The ClickDetectorLocation for "..npc.Name.." is not a ClickDetector."); end; end; if KEYBINDS.KEYBINDS_ENABLED then local CanPressButton = false; local ReadDialogueWithKeybind; ReadDialogueWithKeybind = function() if CanPressButton then if not UserInputService:IsKeyDown(KEYBINDS.DEFAULT_CHAT_TRIGGER_KEY) and not UserInputService:IsKeyDown(KEYBINDS.DEFAULT_CHAT_TRIGGER_KEY_GAMEPAD) then return; end; ReadDialogue(npc, DialogueSettings); end; end; ContextActionService:BindAction("OpenDialogueWithKeybind", ReadDialogueWithKeybind, false, KEYBINDS.DEFAULT_CHAT_TRIGGER_KEY, KEYBINDS.DEFAULT_CHAT_TRIGGER_KEY_GAMEPAD); -- Check if the player is in range RunService.Heartbeat:Connect(function() if Player:DistanceFromCharacter(npc.HumanoidRootPart.Position) <= DEFAULT_MIN_DISTANCE then CanPressButton = true; else CanPressButton = false; end; end); end; end); if not success then warn("[Dialogue Maker] Couldn't load NPC "..npc.Name..": "..msg); end; end; print("[Dialogue Maker] Finished preparing dialogue."); Player.CharacterRemoving:Connect(function() PlayerTalkingWithNPC = false; end);
return {'ebbe','ebben','ebbenboom','ebbenhout','ebbenhouten','ebbinge','ebbe','ebbing','ebbers','ebben','ebbeling','ebbelaar','ebbink','ebbelink','ebbenhorst','ebbekink','ebbenbomen','ebbes'}
local tiles = require("tiles") local setmetatable = setmetatable local tostring = tostring local print = print local type = type local string = string local table = table local ipairs = ipairs local pairs = pairs local unpack = unpack local min = math.min module('dawg') local DawgNode = {} DawgNode.__index = DawgNode DawgNode.__type = "dnode" function DawgNode:__tostring() local ret = {} table.insert(ret, self.final and "1" or "0") for k,v in pairs(self.edges) do table.insert(ret, "(") table.insert(ret, k) table.insert(ret, tostring(v)) table.insert(ret, ")") end return table.concat(ret, "-") end function DawgNode:__eq(other) return tostring(self)==tostring(other) end local index = 0; local function NewNode() local b = {} setmetatable(b,DawgNode) b.id = index index = index + 1 b.final = false b.edges = {} return b end local Dawg = {} Dawg.__index = Dawg Dawg.__type = "dawg" function Dawg:insert( word ) if self.previousWord and word < self.previousWord then return --must be added in order end local common = 0 for i=1, min(string.len(word), string.len(self.previousWord or "")) do if string.sub(word,i,i) ~= string.sub(self.previousWord,i,i) then break end common = common + 1 end self:minimize(common) local node if #self.uncheckedNodes==0 then node = self.root else --local snode, char = unpack(self.uncheckedNodes[#self.uncheckedNodes]) --node = snode.edges[char] --print(string.sub(word,1,common), common, word, self.previousWord) node = self:node(string.sub(word,1,common)) end for i=common+1, string.len(word) do local nextn = NewNode() node.edges[string.sub(word,i,i)] = nextn table.insert(self.uncheckedNodes, {node, string.sub(word,i,i)}) node = nextn end node.final = true self.previousWord = word end function Dawg:finish() self:minimize(0) end function Dawg:minimize(num) for i=#self.uncheckedNodes, num+1, -1 do local parent, letter = unpack(self.uncheckedNodes[i]) local child = parent.edges[letter] if self.minimizedNodes[tostring(child)] then parent.edges[letter] = self.minimizedNodes[tostring(child)] else self.minimizedNodes[tostring(child)] = parent.edges[letter] end table.remove(self.uncheckedNodes) end end function Dawg:lookup(word) return self:node(word).final end function Dawg:node(prefix) local node = self.root for i=1, string.len(prefix) do local letter = string.sub(prefix,i,i) if not node.edges[letter] then print("Commonality failed", node, prefix, letter, node.edges[letter]) return end node = node.edges[letter] end return node end function Dawg:__len() return #self.minimizedNodes end function Dawg:edges() local c = 0 for k,v in pairs(self.minimizedNodes) do count = count + #node.edges end return count end function Dawg:startsWith(prefix) local node = self:node(prefix) local fullList = {} local queue = {} table.insert(queue, {node, prefix}) while #queue>0 do local node, prefix = unpack(table.remove(queue)) for k,v in pairs(node.edges) do table.insert(queue, {v, prefix..k}) end if node.final then table.insert(fullList, prefix) end end return fullList end function New() local b = {} setmetatable(b,Dawg) b.root = NewNode() b.uncheckedNodes = {} b.minimizedNodes = {} b.previousWord = nil return b end function LoadDict(dict) local d = New() --table.sort(dict) --Should already be sorted for _,v in ipairs(dict) do d:insert(v) end d:finish() return d end
--This file should have all functions that are in the public api and either set --or read the state of this source. local vim = vim local renderer = require("neo-tree.ui.renderer") local manager = require("neo-tree.sources.manager") local events = require("neo-tree.events") local M = { name = "example" } ---Navigate to the given path. ---@param path string Path to navigate to. If empty, will navigate to the cwd. M.navigate = function(state, path) if path == nil then path = vim.fn.getcwd() end state.path = path -- Do something useful here to get items local items = { { id = "1", name = "root", children = { { id = "1.1", name = "child1", children = { { id = "1.1.1", name = "child1.1", }, { id = "1.1.2", name = "child1.2", }, }, }, }, }, } renderer.show_nodes(state, items) end ---Configures the plugin, should be called before the plugin is used. ---@param config table Configuration table containing any keys that the user --wants to change from the defaults. May be empty to accept default values. M.setup = function(config, global_config) -- You most likely want to use this function to subscribe to events manager.subscribe(M.name, { event = events.FS_EVENT, handler = function(args) M.navigate() end, }) end return M
local function toboolean(val) val = tostring(val) return val == "1" or val == "true" end local function log_debug( ... ) local result = "" for _,v in ipairs(arg) do result = result .. " " .. tostring(v) end redis.log(redis.LOG_DEBUG, " - " .. result) end
require "Polycode/EventDispatcher" class "CoreServices" (EventDispatcher) function CoreServices:createInstance() local retVal = Polycode.CoreServices_createInstance(self.__ptr) end function CoreServices:Update(elapsed) local retVal = Polycode.CoreServices_Update(self.__ptr, elapsed) end function CoreServices:fixedUpdate() local retVal = Polycode.CoreServices_fixedUpdate(self.__ptr) end function CoreServices:__delete() if self then Polycode.delete_CoreServices(self.__ptr) end end
---@class ProfessionFactory.Profession : zombie.characters.professions.ProfessionFactory.Profession ---@field public type String ---@field public name String ---@field public cost int ---@field public description String ---@field public IconPath String ---@field public texture Texture ---@field public FreeTraitStack Stack|String ---@field private freeRecipes List|Unknown ---@field public XPBoostMap HashMap|PerkFactory.Perks|Integer ProfessionFactory_Profession = {} ---Specified by: --- ---getLabel in interface IListBoxItem ---@public ---@return String function ProfessionFactory_Profession:getLabel() end ---@public ---@return String @the type function ProfessionFactory_Profession:getType() end ---@public ---@return String @the description function ProfessionFactory_Profession:getDescription() end ---@public ---@return HashMap|PerkFactory.Perks|Integer function ProfessionFactory_Profession:getXPBoostMap() end ---@public ---@param FreeTraitStack Stack|String @the FreeTraitStack to set ---@return void function ProfessionFactory_Profession:setFreeTraitStack(FreeTraitStack) end ---@public ---@param trait String ---@return void function ProfessionFactory_Profession:addFreeTrait(trait) end ---Specified by: --- ---getRightLabel in interface IListBoxItem ---@public ---@return String function ProfessionFactory_Profession:getRightLabel() end ---@public ---@return String function ProfessionFactory_Profession:getIconPath() end ---@public ---@param type String @the type to set ---@return void function ProfessionFactory_Profession:setType(type) end ---@public ---@param freeRecipes List|String ---@return void function ProfessionFactory_Profession:setFreeRecipes(freeRecipes) end ---@public ---@param description String @the description to set ---@return void function ProfessionFactory_Profession:setDescription(description) end ---Specified by: --- ---getLeftLabel in interface IListBoxItem ---@public ---@return String function ProfessionFactory_Profession:getLeftLabel() end ---@public ---@param cost int @the cost to set ---@return void function ProfessionFactory_Profession:setCost(cost) end ---@public ---@return int @the cost function ProfessionFactory_Profession:getCost() end ---@public ---@return List|String function ProfessionFactory_Profession:getFreeRecipes() end ---@public ---@return Texture function ProfessionFactory_Profession:getTexture() end ---@public ---@return Stack|String @the FreeTraitStack function ProfessionFactory_Profession:getFreeTraitStack() end ---@public ---@param name String @the name to set ---@return void function ProfessionFactory_Profession:setName(name) end ---@public ---@return String @the name function ProfessionFactory_Profession:getName() end ---@public ---@param IconPath String @the IconPath to set ---@return void function ProfessionFactory_Profession:setIconPath(IconPath) end ---@public ---@return ArrayList|String function ProfessionFactory_Profession:getFreeTraits() end ---@public ---@param arg0 PerkFactory.Perk ---@param arg1 int ---@return void function ProfessionFactory_Profession:addXPBoost(arg0, arg1) end
local mode = redis.call('hget', @lock_key, 'mode'); if (mode == false) then redis.call('hset', @lock_key, 'mode', 'read'); redis.call('hset', @lock_key, @lock_id, 1); redis.call('set', @timeout_key .. ':1', 1); redis.call('pexpire', @timeout_key .. ':1', @expire); redis.call('pexpire', @lock_key, @expire); return nil; end; if (mode == 'read') or (mode == 'write' and redis.call('hexists', @lock_key, @write_lock) == 1) then local ind = redis.call('hincrby', @lock_key, @lock_id, 1); local key = @timeout_key .. ':' .. ind; redis.call('set', key, 1); redis.call('pexpire', key, @expire); local remainTime = redis.call('pttl', @lock_key); redis.call('pexpire', @lock_key, math.max(remainTime, @expire)); return nil; end; return redis.call('pttl', @lock_key);
local assets = require 'src/common/assets' local dictionary = require 'src/common/dictionary' local scene = {} function scene.load() love.graphics.setColor(1, 1, 1) love.graphics.setFont(assets.textFont) love.graphics.setBackgroundColor(0, 0, 0) end function scene.draw() love.graphics.setFont(assets.textFont) love.graphics.setColor(1, 1, 1) love.graphics.print('Em Memória da lenda Kobe Bryant e sua Filha Gianna Bryant', 100, 100) love.graphics.setFont(assets.smallFont) love.graphics.printf( dictionary.localize('credits'), 100, 200, 700 ) end return scene;
filePath = 'C:\\Users\\nilph\\source\\repos\\Excel Data Import (MySql)\\Excel Data Import (MySql)\\bin\\Debug\\netcoreapp3.1\\File\\Test.xlsx' excelConfig = { path = filePath, sheet = 'Sheet1', startRow = 2 } data = { importData:MakeImportData('id', 'ID'), importData:MakeImportData('name', 'Name') } system:import(excelConfig, data, 'test1')
local K, _, L = unpack(select(2, ...)) if GetLocale() == "zhCN" then L["%s to dismount."] = "%s 下马." L["%s to leave the vehicle."] = "%s 离开载具." L["AP"] = "攻击强度:" L["AddOn Info Text"] = "|cffffff00插件配置文件支持以下命令|r\n\n|cff00ff00/settings dbm|r, 来应用设置 |cff00ff00DeadlyBossMods.|r\n|cff00ff00/settings msbt|r, 来应用设置 |cff00ff00MikScrollingBattleText.|r\n|cff00ff00/settings skada|r, 来应用设置 |cff00ff00Skada.|r\n|cff00ff00/settings bt4 or bartender|r, 来应用设置 |cff00ff00Bartender4.|r\n|cff00ff00/settings buggrabber|r, 来应用设置 |cff00ff00!BugGrabber.|r\n|cff00ff00/settings bugsack|r, 来应用设置 |cff00ff00BugSack.|r\n|cff00ff00/settings bugsack|r, 来应用设置 |cff00ff00BugSack.|r\n|cff00ff00/settings pawn|r, 来应用设置 |cff00ff00Pawn.|r\n|cff00ff00/settings bigwigs|r, 来应用设置 |cff00ff00BigWigs.|r\n|cff00ff00/settings all|r, 来为所有支持的插件应用设置,如果加载了该插件!\n\n" L["AddOn Profiles"] = "所有支持的插件配置文件已加载,如果已加载插件!" L["Aerie Peak"] = "鹰巢山" L["Arathi Highlands"] = "阿拉希高地" L["Ashenvale"] = "灰谷" L["Astranaar"] = "阿斯特兰纳" L["Attach List"] = "邮件列表:" L["Auberdine"] = "奥伯丁" L["Azshara"] = "艾萨拉" L["BFA Invasion"] = "阵营入侵" L["Badlands"] = "荒芜之地" L["Bandwidth"] = "带宽" L["Bank"] = "银行" L["Bars"] = "条" L["Blackfathom Deeps"] = "黑暗深渊" L["Blackrock Depths"] = "黑石深渊" L["Blackrock Mountain"] = "黑石山" L["Blasted Lands"] = "诅咒之地" L["Bloodvenom Post"] = "血毒岗哨" L["Boat to"] = "乘船到" L["Booty Bay"] = "藏宝海湾" L["Brackenwall Village"] = "蕨墙村" L["Burning Steppes"] = "燃烧平原" L["CVars Installed"] = "CVars 设置" L["Camp Mojache"] = "莫沙彻营地" L["Camp Taurajo"] = "陶拉祖营地" L["Can't Buy Slot"] = "不能再买空栏位了!" L["Cenarion Hold"] = "塞纳里奥要塞" L["Central Mesa"] = "中央台地" L["Changelog"] = "更新日志" L["Changes Reload"] = "你所做的一个或多个更改需要重新加载UI." L["Character Settings"] = "角色设置" L["Chat Installed"] = "聊天设置" L["Chillwind Camp"] = "冰风岗" L["Collect All"] = "打开所有" L["Collect Gold"] = "收取金币" L["Collect Letters"] = "接收" L["Combat"] = "战斗" L["Copy Chat"] = "Copy Chat" L["Count"] = "计数" L["Current Invasion"] = "当前: " L["Darkshire"] = "夜色镇" L["Darkshore"] = "黑海岸" L["Delete Grays"] = "摧毁灰色物品" L["Desolace"] = "凄凉之地" L["Disable to hide areas."] = "禁用来隐藏区域|n你尚未发现的区域." L["Disband Group"] = "解散团队" L["Discord URL"] = "https://discord.gg/YUmxqQm" L["Discord"] = "|cff7289daDiscord|r" L["Download"] = "下载" L["DuelCanceled_Pet"] = "已拒绝 %s 的宠物决斗请求." L["DuelCanceled_Regular"] = "已拒绝 %s 的决斗请求." L["Dungeon"] = "副本" L["Durotar"] = "杜隆塔尔" L["Duskwood"] = "暮色森林" L["Dustwallow Marsh"] = "尘泥沼泽" L["Dwarven District"] = "矮人区" L["Eastern Plaguelands"] = "东瘟疫之地" L["Emotes"] = "聊天表情" L["Empty Slot"] = "空格子" L["Enable to show hidden areas."] = "启用来显示隐藏区域|n你尚未发现的区域." L["Everlook"] = "永望镇" L["Experience"] = "经验" L["Feathermoon Stronghold"] = "羽月要塞" L["Felwood"] = "费伍德" L["Feralas"] = "菲拉斯" L["Fishy Loot"] = "Fishy Loot" L["FixParty"] = "\n|cff4488ff".."如果你仍然卡在小队中,试试下面的方法".."|r\n\n|cff00ff001.|r 邀请某人加入一个队伍,并让他们接受.\n|cff00ff002.|r 然后转化为团队.\n|cff00ff003.|r 再次使用之前的离开队伍命令.\n|cff00ff004.|r 邀请你的朋友加入一个队伍.\n\n" L["Flame Crest"] = "烈焰峰" L["Freewind Post"] = "乱风岗" L["From"] = "从" L["Gadgetzan"] = "加基森" L["General"] = "常规" L["Get Naked"] = "双击卸下所有装备,然后脱光衣服 <3" L["Ghost"] = "鬼魂" L["Global Settings"] = "全局设置" L["Gnomeregan"] = "诺莫瑞根" L["Grom'gol Base Camp"] = "格罗姆高营地" L["Guild Repair"] = "你的物品已经修复,使用公会银行资金: " L["Hammerfall"] = "落锤镇" L["Hide Undiscovered Areas"] = "隐藏未被探索的区域" L["Hillsbrad Foothills"] = "希尔斯布莱德丘陵" L["Hold Shift/Click"] = "按住Shift点击进行拖拽" L["Home Latency:"] = "本地延迟:" L["Home Protocol:"] = "本地协议:" L["Honor Remaining"] = "荣誉剩余:" L["Honor XP"] = "荣誉经验:" L["Install"] = "安装" L["Ironforge"] = "铁炉堡" L["Kargath"] = "卡加斯" L["Keybind Mode"] = "鼠标悬停在任何操作按钮上,将其绑定.按下escape键或右键可清除当前操作按钮的键位绑定." L["KkthnxUI Help"] = "KkthnxUI 帮助" L["KkthnxUI Outdated"] = "你的KkthnxUI版本 v"..K.Version.." 已过期." L["Lack"] = "不足" L["Lake Elune'ara"] = "月神湖" L["Lake Everstill"] = "止水湖" L["Leeeeeroy!"] = "Leeeeeroy!" L["Left Click"] = "左键单击:" L["Legion Invasion"] = "军团入侵" L["Light's Hope Chapel"] = "圣光之愿礼拜堂" L["Loch Modan"] = "洛克莫丹" L["Loot"] = "拾取" L["Lower Blackrock Spire"] = "黑石塔下层" L["Lower Wilds"] = "低地荒野" L["Maraudon"] = "玛拉顿" L["Marshal's Refuge"] = "马绍尔营地" L["Menethil Harbor"] = "米奈希尔港" L["Middle Click"] = "中键单击:" L["Molten Core"] = "熔火之心" L["Moonglade"] = "月光林地" L["Morgan's Vigil"] = "摩根的岗哨" L["Move Blocked"] = "你以前看过这部影片,跳过它." L["MoveUI"] = "移动UI" L["Nethergarde Keep"] = "守望堡" L["Next Invasion"] = "下一次: " L["Nijel's Point"] = "尼耶尔前哨站" L["No Guild"] = "没有工会" L["No Vendor"] = "你必须在商人处." L["Not Enough Money"] = "你没有足够的钱来修理." L["Onyxia's Lair"] = "奥妮克希亚的巢穴" L["Open Chat Channels"] = "打开聊天频道" L["Orgrimmar"] = "奥格瑞玛" L["Press To Copy"] = "|n按 <CTRL/C> 来复制." L["Profile"] = "配置文件 " L["ProfileDel"] = " 删除: " L["ProfileInfo"] = "\n/配置文件列表\n/配置文件 #\n/配置文件删除 #\n\n" L["ProfileNotFound"] = "未找到配置文件" L["ProfileSelection"] = "请输入一个配置文件 # 来使用 (例如: /profile 5)" L["Profiles"] = "配置文件" L["Pull ABORTED!"] = "拉人终止!" L["Pulling In"] = "正在拉 %s 进 %s.." L["Purchase Slot"] = "购买背包栏位" L["Ragefire Chasm"] = "怒焰裂谷" L["Raid Menu"] = "团队菜单" L["Raid"] = "团队" L["Ratchet"] = "棘齿城" L["Razorfen Downs"] = "剃刀高地" L["Razorfen Kraul"] = "剃刀沼泽" L["Reagents"] = "切换到施法材料" L["Redridge Mountains"] = "赤脊山" L["Refuge Pointe"] = "避难谷地" L["Remaining"] = "剩余:" L["Repair Cost"] = "你的物品已经修复,花费: " L["Reset CVars"] = "重置 CVars" L["Reset Chat"] = "重置聊天" L["Reset Details"] = "重置 Details" L["Reset KkthnxUI"] = "你确定要重置此配置文件上的所有设置吗?" L["Restart Graphics"] = "你所做的一个或多个更改需要重新启动图形引擎" L["Rested"] = "精力充沛:" L["Revantusk Village"] = "恶齿村" L["Reveal Hidden Areas"] = "发现隐藏的区域" L["Reveal"] = "显示" L["Right Click To Search"] = "右键单击搜索" L["Right Click"] = "右键单击击" L["Roll"] = "滚动骰子" L["Rut'theran Village"] = "鲁瑟兰村" L["Sapped"] = "被谁闷棍" L["SappedBy"] = "被闷棍: " L["Scarlet Monastery"] = "血色修道院" L["Scholomance"] = "通灵学院" L["Searing Gorge"] = "灼热峡谷" L["Section"] = "区域" L["Sentinel Hill"] = "哨兵岭" L["Shadowfang Keep"] = "影牙城堡" L["Shadowprey Village"] = "葬影村" L["Share Your Experience"] = "分享你的经验" L["Shift Left Click"] = "Shift + 左键单击" L["Show Hide Details"] = "显示/隐藏 Details" L["Show Hide Skada"] = "显示/隐藏 Skada" L["Silithus"] = "希利苏斯" L["Silverpine Forest"] = "银松森林" L["Skip Install"] = "忽略安装" L["Sold Grays"] = "售出灰色物品收入:" L["Southshore"] = "南海镇" L["Splintertree Post"] = "碎木岗哨" L["Stack Cap"] = "堆叠帽" L["Step 0"] = "感谢你选择 |cff4488ffKkthnxUI|r!|n|n你将通过几个简单的步骤完成安装过程.在每个步骤中,你可以决定是否应用或跳过所提供的设置." L["Step 1"] = "第一步,应用基本设置. 这对于任何用途都是|cffff0000推荐的|r,除非你只想应用设置的特定部分 |n|n点击 '应用' 来应用设置.点击 '下一步' 继续安装. 如果你想跳过这一步,请按 '下一步' ." L["Step 2"] = "第二步,应用正确的聊天设置.如果你是新用户,建议你执行此步骤.如果你是现有用户,你可能想跳过此步骤.|n|n点击 '应用' 来应用设置.点击 '下一步' 继续安装. 如果你想跳过这一步,请按 '下一步' ." L["Step 3"] = "第三步,应用正确的UI缩放设置.如果你觉得你不喜欢这样,你可以在 |cffffd200ESC > 系统 > 高级|r 看到UI缩放滑块,你可以进行调整!" L["Step 4"] = "安装完成. 请点击 '完成' 按钮重载UI. |n|n感谢你使用 |cff4488ffKkthnxUI|r! 你真棒!" L["Stonard"] = "斯通纳德" L["Stonetalon Mountains"] = "石爪山脉" L["Stonetalon Peak"] = "石爪峰" L["Stormwind"] = "暴风城" L["Stranger"] = "Stranger" L["Stranglethorn Vale"] = "荆棘谷" L["Stratholme (Main Gate)"] = "斯坦索姆 (正门)" L["Stratholme (Service Gate)"] = "斯坦索姆 (后门)" L["Subzone Eastern Transept"] = "Eastern Transept" L["Subzone Grand Bazaar"] = "Subzone Grand Bazaar" L["Subzone Port of Zandalar"] = "Subzone Port of Zandalar" L["Sun Rock Retreat"] = "烈日石居" L["Swamp of Sorrows"] = "悲伤沼泽" L["Switch to Bank"] = "切换到银行" L["Talonbranch Glade"] = "刺枝林地" L["Talrendis Point"] = "塔伦迪斯营地" L["Tanaris"] = "塔纳利斯" L["Targeted By"] = "被谁标记:" L["Tarren Mill"] = "塔伦米尔" L["Teldrassil"] = "泰达希尔" L["Temple of Atal'Hakkar"] = "阿塔哈卡神庙" L["The Barrens"] = "贫瘠之地" L["The Crossroads"] = "十字路口" L["The Deadmines"] = "死亡矿井" L["The Great Forge"] = "大锻炉" L["The Hinterlands"] = "辛特兰" L["The Sepulcher"] = "瑟伯切尔" L["The Stockade"] = "暴风城监狱" L["Thelsamar"] = "塞尔萨玛" L["Theramore Isle"] = "塞拉摩岛" L["Thorium Point"] = "瑟银哨塔" L["Thousand Needles"] = "千针石林" L["Thunder Bluff"] = "雷霆崖" L["Tinker Town"] = "工匠区" L["Tirisfal Glades"] = "提瑞斯法林地" L["Toggle Bags"] = "切换背包" L["Toggle Bags"] = "切换背包" L["Toggle KkthnxUI Config"] = "切换 KkthnxUI 配置" L["Toggle PvP"] = "切换 PvP 框体" L["Toggle Quick Menu"] = "切换 快速菜单" L["Toggle Reputation"] = "切换声望框体" L["Trade District"] = "贸易区" L["Trade Quarter"] = "贸易区" L["Trade"] = "交易" L["Trait"] = "有关" L["Tram to"] = "电车驶向" L["Uldaman"] = "奥达曼" L["Un'Goro Crater"] = "安戈洛环形山" L["Undercity"] = "幽暗城" L["Upper Blackrock Spire"] = "黑石塔上层" L["Valley of Strength"] = "力量谷" L["Valormok"] = "瓦罗莫克" L["Vendor Grays"] = "出售灰色物品" L["Wailing Caverns"] = "哀嚎洞穴" L["Warning Blizzard AddOns"] = "看来你的一个插件已经禁用了插件Blizzard_CompactRaidFrames.这可能会导致错误和其他问题.插件现在将重新启用." L["Western Plaguelands"] = "西瘟疫之地" L["Westfall"] = "西部荒野" L["Wetlands"] = "湿地" L["Whisper"] = "私聊" L["Winterspring"] = "冬泉谷" L["World Latency:"] = "世界延迟:" L["World Protocol:"] = "世界协议:" L["XP"] = "经验值:" L["Zeppelin to"] = "飞艇驶向" L["Zoram'gar Outpost"] = "佐拉姆加前哨站" L["Zul'Farrak"] = "祖尔法拉克" end
if not rq then rq = {} end rq.big_icons = {}
-- authors: Luxinia Dev (Eike Decker & Christoph Kubisch) --------------------------------------------------------- return { exts = {"luafx"}, lexer = wxstc.wxSTC_LEX_CPP, apitype = "glsl", sep = "%.", linecomment = "//", isfndef = function(str) local l local s,e,cap = string.find(str,"^%s*([A-Za-z0-9_]+%s+[A-Za-z0-9_]+%s*%(.+%))") if (not s) then s,e,cap = string.find(str,"^%s*([A-Za-z0-9_]+%s+[A-Za-z0-9_]+)%s*%(") end if (cap and (string.find(cap,"^return") or string.find(cap,"else"))) then return end return s,e,cap,l end, lexerstyleconvert = { text = {wxstc.wxSTC_C_IDENTIFIER, wxstc.wxSTC_C_VERBATIM, wxstc.wxSTC_C_REGEX, wxstc.wxSTC_C_REGEX, wxstc.wxSTC_C_GLOBALCLASS,}, lexerdef = {wxstc.wxSTC_C_DEFAULT,}, comment = {wxstc.wxSTC_C_COMMENT, wxstc.wxSTC_C_COMMENTLINE, wxstc.wxSTC_C_COMMENTDOC, wxstc.wxSTC_C_COMMENTLINEDOC, wxstc.wxSTC_C_COMMENTDOCKEYWORD, wxstc.wxSTC_C_COMMENTDOCKEYWORDERROR,}, stringtxt = {wxstc.wxSTC_C_STRING, wxstc.wxSTC_C_CHARACTER, wxstc.wxSTC_C_UUID,}, stringeol = {wxstc.wxSTC_C_STRINGEOL,}, preprocessor= {wxstc.wxSTC_C_PREPROCESSOR,}, operator = {wxstc.wxSTC_C_OPERATOR,}, number = {wxstc.wxSTC_C_NUMBER, wxstc.wxSTC_C_WORD}, keywords0 = {wxstc.wxSTC_C_WORD,}, keywords1 = {wxstc.wxSTC_C_WORD2,}, }, keywords = { [[int uint half float bool double vec2 vec3 vec4 dvec2 dvec3 dvec4 ivec2 ivec3 ivec4 uvec2 uvec3 uvec4 bvec2 bvec3 bvec4 mat2 mat3 mat4 mat2x2 mat3x3 mat4x4 mat2x3 mat3x2 mat4x2 mat2x4 mat4x3 mat3x4 dmat2 dmat3 dmat4 dmat2x2 dmat3x3 dmat4x4 dmat2x3 dmat3x2 dmat4x2 dmat2x4 dmat4x3 dmat3x4 struct typedef void usampler1D usampler2D usampler3D usampler2DRect usamplerCube isampler1DArray usampler2DARRAY usamplerCubeArray usampler2DMS usampler2DMSArray isampler1D isampler2D isampler3D isampler2DRect isamplerCube isampler1DArray isampler2DARRAY isamplerCubeArray isampler2DMS isampler2DMSArray sampler1D sampler2D sampler3D sampler2DRect samplerCube sampler1DArray sampler2DArray samplerCubeArray sampler2DMS sampler2DMSArray sampler1DShadow sampler2DShadow sampler2DRectShadow sampler1DArrayShadow sampler2DArrayShadow samplerCubeArrayShadow usamplerBuffer isamplerBuffer samplerBuffer samplerRenderbuffer isamplerRenderbuffer usamplerRenderbuffer in out inout uniform const centroid sample attribute varying patch index true false buffer return switch case for do while if else break continue main inline layout location vertices line_strip triangle_strip max_vertices stream triangles quads equal_spacing isolines fractional_even_spacing lines points fractional_odd_spacing cw ccw point_mode lines_adjacency triangles_adjacency invocations origin_upper_left pixel_center_integer smooth flat noperspective highp mediump lowp shared packed std140 row_major column_major gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_Color gl_SecondaryColor subroutine gl_Position gl_FragCoord gl_VertexID gl_InstanceID gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointSize gl_ClipDistance gl_TexCoord gl_FogFragCoord gl_ClipVertex gl_in gl_PatchVerticesIn gl_PrimitiveID gl_InvocationID gl_TessLevelOuter gl_TessLevelInner gl_TessCoord gl_InvocationID gl_PrimitiveIDIn gl_Layer gl_ViewportIndex gl_FrontFacing gl_PointCoord gl_SampleID gl_SamplePosition gl_FragColor gl_FragData gl_FragDepth gl_SampleMask offset binding coherent volatile restrict image1D image2D image3D image2DRect imageCube imageBuffer image1DArray image2DArray imageCubeArray image2DMS image2DMSArray uimage1D uimage2D uimage3D uimage2DRect uimageCube uimageBuffer uimage1DArray uimage2DArray uimageCubeArray uimage2DMS uimage2DMSArray iimage1D iimage2D iimage3D iimage2DRect iimageCube iimageBuffer iimage1DArray iimage2DArray iimageCubeArray iimage2DMS iimage2DMSArray size1x8 size1x16 size1x32 size2x32 size4x32 enum pointer ]], [[discard radians degrees sin cos tan asin acos atan sinh cosh tanh asinh acosh atanh pow exp log exp2 log2 sqrt inversesqrt abs sign floor trunc round roundEven ceil fract mod modf min max mix step isnan isinf clamp smoothstep floatBitsToInt intBitsToFloat uintBitsToFloat fma frexp ldexp packUnorm2x16 packUnorm4x8 packSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 unpackSnorm4x8 packDouble2x32 unpackDouble2x32 length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult outerProduct transpose determinant inverse lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not uaddCarry usubBorrow umulExtended imulExtended bitfeldExtract bitfieldInsert bitfeldReverse bitCount findLSB findMSB dFdx dFdy fwidth interpolateAtCentroid interpolateAtSample interpolateAtOffset noise1 noise2 noise3 noise4 EmitStreamVertex EndStreamPrimitive EmitVertex EndPrimitive barrier textureSize textureQueryLod texture textureOffset textureProj textureLod textureProjOffset textureLodOffset texelFetchOffset texelFetch textureProjLod textureProjLodOffset textureGrad textureGradOffset textureProjGrad textureProjGradOffset textureGather textureGatherOffset texture2D texture1D texture3D textureCube texture2DRect texture1DProj texture1DLod texture1DProjLod texture2DProj texture2DLod texture2DProjLod texture3DProj texture3DLod texture3DProjLod textureCubeLod shadow1D shadow2D shadow1DProj shadow1DLod shadow1DProjLod shadow2DProj shadow2DLod shadow2DProjLod texelFetch1D texelFetch2D texelFetch3D texelFetch2DRect texelFetch1DArray texelFetch2DArray texelFetchBuffer textureSizeBuffer textureSize1D textureSize2D textureSize3D textureSizeCube textureSize2DRect textureSize1DArray textureSize2DArray texture1DArray texture1DArrayLod texture2DArray texture2DArrayLod shadow1DArray shadow1DArrayLod shadow2DArray shadowCube texture1DGrad texture1DProjGrad texture1DProjGrad texture1DArrayGrad texture2DGrad texture2DProjGrad texture2DProjGrad texture2DArrayGrad texture3DGrad texture3DProjGrad textureCubeGrad shadow1DGrad shadow1DProjGrad shadow1DArrayGrad shadow2DGrad shadow2DProjGrad shadow2DArrayGrad texture2DRectGrad texture2DRectProjGrad texture2DRectProjGrad shadow2DRectGrad shadow2DRectProjGrad shadowCubeGrad texture1DOffset texture1DProjOffset texture1DLodOffset texture1DProjLodOffset texture2DOffset texture2DProjOffset texture2DLodOffset texture2DProjLodOffset texture3DOffset texture3DProjOffset texture3DLodOffset texture3DProjLodOffset imageLoad imageStore imageAtomicAdd imageAtomicMin imageAtomicMax imageAtomicIncWrap imageAtomicDecWrap imageAtomicAnd imageAtomicOr imageAtomixXor imageAtomicExchange imageCompSwap memoryBarrier x y z w xxxx xxxy xxxz xxxw xxyx xxyy xxyz xxyw xxzx xxzy xxzz xxzw xxwx xxwy xxwz xxww xyxx xyxy xyxz xyxw xyyx xyyy xyyz xyyw xyzx xyzy xyzz xyzw xywx xywy xywz xyww xzxx xzxy xzxz xzxw xzyx xzyy xzyz xzyw xzzx xzzy xzzz xzzw xzwx xzwy xzwz xzww xwxx xwxy xwxz xwxw xwyx xwyy xwyz xwyw xwzx xwzy xwzz xwzw xwwx xwwy xwwz xwww yxxx yxxy yxxz yxxw yxyx yxyy yxyz yxyw yxzx yxzy yxzz yxzw yxwx yxwy yxwz yxww yyxx yyxy yyxz yyxw yyyx yyyy yyyz yyyw yyzx yyzy yyzz yyzw yywx yywy yywz yyww yzxx yzxy yzxz yzxw yzyx yzyy yzyz yzyw yzzx yzzy yzzz yzzw yzwx yzwy yzwz yzww ywxx ywxy ywxz ywxw ywyx ywyy ywyz ywyw ywzx ywzy ywzz ywzw ywwx ywwy ywwz ywww zxxx zxxy zxxz zxxw zxyx zxyy zxyz zxyw zxzx zxzy zxzz zxzw zxwx zxwy zxwz zxww zyxx zyxy zyxz zyxw zyyx zyyy zyyz zyyw zyzx zyzy zyzz zyzw zywx zywy zywz zyww zzxx zzxy zzxz zzxw zzyx zzyy zzyz zzyw zzzx zzzy zzzz zzzw zzwx zzwy zzwz zzww zwxx zwxy zwxz zwxw zwyx zwyy zwyz zwyw zwzx zwzy zwzz zwzw zwwx zwwy zwwz zwww wxxx wxxy wxxz wxxw wxyx wxyy wxyz wxyw wxzx wxzy wxzz wxzw wxwx wxwy wxwz wxww wyxx wyxy wyxz wyxw wyyx wyyy wyyz wyyw wyzx wyzy wyzz wyzw wywx wywy wywz wyww wzxx wzxy wzxz wzxw wzyx wzyy wzyz wzyw wzzx wzzy wzzz wzzw wzwx wzwy wzwz wzww wwxx wwxy wwxz wwxw wwyx wwyy wwyz wwyw wwzx wwzy wwzz wwzw wwwx wwwy wwwz wwww xy xz yz xyz xw yw xyw zw xzw yzw xyzw Material Light STRING FILE HEADER GLOBAL LIGHTS PARAMETERHINTS Geometry Global Group Technique Code Options GlobalGroup EnumDef ]], }, }
local Score = _G.ECS.Component(0) return Score
local HeroModule = require "module.HeroModule" local ItemHelper = require "utils.ItemHelper" local RoleRebornModule=require "module.RoleRebornModule"; local View = {} function View:Start(data) self.view = SGK.UIReference.Setup(self.gameObject); self:InitClick() self.order_list = {} if data.idx and data.idx == 2 then self.selectIdx = data.selectIdx self.view.root.tips[UI.Text].text = "选择要进行转化的碎片" self:UpFlagmentList() elseif data.idx and data.idx == 1 then self.view.root.tips[UI.Text].text = "选择要进行重生的角色" self:UpdateHeroList(); end end function View:InitClick() CS.UGUIClickEventListener.Get(self.view.mask.gameObject).onClick = function () CS.UnityEngine.GameObject.Destroy(self.view.gameObject) end CS.UGUIClickEventListener.Get(self.view.root.close.gameObject).onClick = function () CS.UnityEngine.GameObject.Destroy(self.view.gameObject) end self.view.root.middle.filter.DropdownItem[UnityEngine.UI.Dropdown].onValueChanged:AddListener(function (i) if i == 0 then self.filter = 0xffffffff; else self.filter = (1 << (i-1)) end self:UpdateHeroList() end) end function View:UpFlagmentList() -- self.view.root.middle.ScrollView.Viewport.Content:SetActive(false) -- self.view.root.middle.ScrollView.Viewport.ContentFragment:SetActive(true) self.view.root.middle.filter:SetActive(false) self.checkImage = self.view.root.middle.Checked self.TotalTable = RoleRebornModule.GetTotal() self.viewTable = RoleRebornModule.ViewTableGet() ERROR_LOG("总表",sprinttb(self.TotalTable)) ERROR_LOG("分表",sprinttb(self.viewTable)) self.UIDragIconScript = self.view.root.middle.ScrollView.Viewport.Content[CS.ScrollViewContent] self.UIDragIconScript.pool = CS.GameObjectPool.GetPool("CommonIconPool"); self.UIDragIconScript.RefreshIconCallback = (function (obj,idx) self:refreshData(obj,idx) end) self:initScroll() end function View:initScroll() local itemList = ItemHelper.GetList(41, table.unpack({[1]=21})); self.item_list = self:SortTable(itemList) local selectCount = 0 local selectid = 0 if self.viewTable[self.selectIdx] then selectCount = self.viewTable[self.selectIdx].count selectid = self.viewTable[self.selectIdx].id end local Usedtab = {} for k,v in pairs(self.item_list) do local haveCount = module.ItemModule.GetItemCount(v.id) if haveCount == 0 then Usedtab[#Usedtab+1] = k else for j,l in pairs(self.TotalTable) do local num = l if v.id == selectid then num = num - selectCount end if v.id == j and num == haveCount then Usedtab[#Usedtab+1] = k end end end end for i=#Usedtab,1,-1 do table.remove(self.item_list,Usedtab[i]) end print("suipian",sprinttb(self.item_list)) self.UIDragIconScript.DataCount = #self.item_list; self.UIDragIconScript:Refresh(true); -- self.view.NoItemPage.gameObject:SetActive(#self.item_list==0) end function View:SortTable(itemList) table.sort(itemList,function (a,b) if a.quality ~= b.quality then return a.quality > b.quality end if a.uuid and b.uuid then local a_equip=EquipmentModule.GetByUUID(a.uuid) local b_equip=EquipmentModule.GetByUUID(b.uuid) if a_equip and b_equip then if a_equip.level ~= b_equip.level then return a_equip.level > b_equip.level end local a_heroid_bool =not not (a_equip.heroid~=0) local b_heroid_bool =not not (b_equip.heroid~=0) if a_heroid_bool ~= b_heroid_bool then return a_heroid_bool end if a_equip.isLock ~= b_equip.isLock then return a_equip.isLock end end else end if a.id ~=b.id then return a.id<b.id end end); return itemList; end function View:refreshData(Obj,idx) local Icon =CS.SGK.UIReference.Setup(Obj); local cfg = self.item_list[idx+1] local haveCount = module.ItemModule.GetItemCount(cfg.id) local UsedNum = 0 for k,v in pairs(self.viewTable) do if v.id == cfg.id and k ~= self.selectIdx then UsedNum = v.count + UsedNum end end local iconCount = haveCount - UsedNum if iconCount > 0 then utils.IconFrameHelper.UpdateIcon(cfg, Icon, { showName = true, showDetail = false, showOwner = true, count = iconCount, onClick = function () --print("dianji",cfg.id) self:ClearSaveCheck() self.saveCheck = GetUIParent(self.checkImage.gameObject, Icon.transform) self.saveCheck.transform.localPosition =UnityEngine.Vector3.zero; self.saveCheck:SetActive(true) DialogStack.PushPref("roleReborn/FragmentAddCount", {id = cfg.id,max = iconCount},self.view.gameObject) end }); else Icon:SetActive(false) end Icon[UnityEngine.RectTransform].localScale = UnityEngine.Vector3(0.8,0.8,1) end function View:ClearSaveCheck() if self.saveCheck then CS.UnityEngine.GameObject.Destroy(self.saveCheck.gameObject) end end function View:UpdateHeroList() if not self.online then -- if self.unionExplore then -- self.online = args.online or {0, 0, 0, 0, 0} -- else -- if args and args.online and args.online[1] ~= 0 then -- self.online = args.online; -- else -- print("111111111111") self.online = {0, 0, 0, 0, 0}; for k, v in ipairs(HeroModule.GetManager():GetFormation()) do self.online[k] = v or 0; end -- end -- end end self.view.root.middle.filter:SetActive(true) -- if not self.view.FormationPanel.gameObject.activeSelf then -- return; -- end local list = HeroModule.GetManager():GetAll() local order_list = {}; local _otherList = {} -- if self.unionExplore then -- _otherList = self:getTempHeroList() -- end self.filter = self.filter or 0xffffff; for k, v in pairs(list) do if (_otherList[v.id] ~= 1) then local hero_element = v.type; if hero_element == 0 then hero_element = 64 end; if self.unionExplore then local cfg = module.ManorModule.GetManorNpcTable(v.id) if cfg then if (self.filter == nil) or ((hero_element & self.filter) ~= 0) then table.insert(order_list, {id = v.id, capacity = v.capacity, online = self:isHeroOnline(v.id)}); end end else if (self.filter == nil) or ((hero_element & self.filter) ~= 0) then table.insert(order_list, {id = v.id, capacity = v.capacity, online = self:isHeroOnline(v.id)}); end end end end table.sort(order_list, function(a, b) if a.id == self.master then return true; end if b.id == self.master then return false; end if a.capacity ~= b.capacity then return a.capacity > b.capacity; end return a.id < b.id; end) local deletetab = {} for k,v in pairs(order_list) do if not self:isHeroOnline(v.id) then if self:notStageandStar(v.id) then deletetab[#deletetab+1] = k end end end for i=#deletetab,1,-1 do table.remove(order_list,deletetab[i]) end local diff = true; if #self.order_list == #order_list then diff = false; for k, v in ipairs(order_list) do if self.order_list[k] ~= v.id then diff = true; break; end end end if diff then self.order_list = {} for _, v in ipairs(order_list) do if v.id ~=11000 then table.insert(self.order_list, v.id); end end local UIMultiScroller = self.view.root.middle.ScrollView.Viewport.Content[CS.ScrollViewContent]; UIMultiScroller.RefreshIconCallback = function(obj, idx) obj:SetActive(true); local slot = SGK.UIReference.Setup(obj); local id = self.order_list[idx+1]; self:UpdateIcon(slot, id) CS.UGUIClickEventListener.Get(slot.gameObject).onClick = function() if self:checkClick(id) then showDlgError(nil,SGK.Localize:getInstance():getValue("huoban_chongsheng_02")) else if not self.is_assists_view then utils.EventManager.getInstance():dispatch("OPEN_ROLE_REBORN",{RoleId = id}) CS.UnityEngine.GameObject.Destroy(self.view.gameObject) end end end end UIMultiScroller.DataCount = #self.order_list; else local UIMultiScroller = self.view.root.middle.ScrollView.Viewport.Content[CS.ScrollViewContent]; for k, v in ipairs(self.order_list) do local obj = UIMultiScroller:GetItem(k-1); if obj then self:UpdateIcon(SGK.UIReference.Setup(obj), v) end end end end function View:checkClick(id) if self:isHeroOnline(id) then--or self:notStageandStar(id) then return true end return false end function View:UpdateIcon(view, id) --print("角色",id) local hero = ItemHelper.Get(ItemHelper.TYPE.HERO, id) if not hero then view.RoleItem.gameObject:SetActive(false); view[UnityEngine.UI.Image].color = UnityEngine.Color.white; return view; end view.RoleItem:SetActive(true); if view[UnityEngine.UI.Image] then view[UnityEngine.UI.Image].color = UnityEngine.Color.clear; end if view.RoleItem.IconFrame then --ERROR_LOG("type------>>", utils.ItemHelper.TYPE.HERO) utils.IconFrameHelper.Create(view.RoleItem.IconFrame, { uuid = hero.uuid, type = utils.ItemHelper.TYPE.HERO, func = function ( obj ) if self.unionExplore then local map_info = unionConfig.GetAllExploremapMessage(self.unionExplore) if map_info and (map_info.property == hero.cfg.type) then view.RoleItem.bg:SetActive(true) else view.RoleItem.bg:SetActive(false) end elseif self.huntingElement ~= nil then if hero.element & self.huntingElement ~= 0 then obj[CS.SGK.CommonIcon].Owner = "manor/bg_jian"; else obj[CS.SGK.CommonIcon].Owner = nil; end else if view.RoleItem.bg then view.RoleItem.bg:SetActive(false) end end end}) end local flagIndex = 0; local isOnline = false; for _, v in ipairs(self.online) do if id == v then flagIndex = 1; break; end end if view.RoleItem and view.RoleItem.OnlineFlag then view.RoleItem.OnlineFlag:SetActive(flagIndex > 0); view.RoleItem.OnlineFlag[CS.UGUISpriteSelector].index = flagIndex; end if view.RoleItem and view.RoleItem.AssistInfo then view.RoleItem.AssistInfo:SetActive(self.is_assists_view) if self.is_assists_view then local weaponCfg = HeroWeaponLevelup.LoadWeapon(hero.weapon)[hero.weapon] view.RoleItem.AssistInfo.Text[UnityEngine.UI.Text].text = tostring(weaponCfg and weaponCfg.cfg.assistCd or "-"); end end if view.RoleItem.PowerValue then view.RoleItem.PowerValue[UnityEngine.UI.Text].text = tostring(math.floor(hero.capacity)); end if view.RoleItem.Name then view.RoleItem.Name[UnityEngine.UI.Text].text = hero.name; end if view.RoleItem.Type then local _profession = hero.profession; if hero.profession == 0 then local _cfg = module.TalentModule.GetSkillSwitchConfig(hero.id) local _idx = hero.property_value if _idx == 0 then _idx = 2 end if _cfg[_idx] then _profession = _cfg[_idx].profession end end view.RoleItem.Type[UI.Image]:LoadSprite(string.format("propertyIcon/jiaobiao_%s", _profession)) end return view; end function View:isHeroOnline(id) for _, v in ipairs(self.online) do if v == id then return true; end end end function View:notStageandStar(id) local heroCfg = utils.ItemHelper.Get(utils.ItemHelper.TYPE.HERO, id) if heroCfg.level == 1 and heroCfg.stage == 0 and heroCfg.star == 0 then return true end return false end function View:OnDestroy() print("清除check") self:ClearSaveCheck() end function View:listEvent() return { "CLOSE_ADD_COUNT", "SET_ADD_COUNT", } end function View:onEvent(event,data) if event == "CLOSE_ADD_COUNT" then self:ClearSaveCheck() elseif event == "SET_ADD_COUNT" then CS.UnityEngine.GameObject.Destroy(self.view.gameObject) end end return View;
-- returns a buffer table local to a thread (no serialized) function torch.getBufferTable(namespace) assert(torch.type(namespace) == 'string') torch._buffer = torch._buffer or {} torch._buffer[namespace] = torch._buffer[namespace] or {} return torch._buffer[namespace] end function torch.getBuffer(namespace, buffername, classname) local buffertable = torch.getBufferTable(namespace) assert(torch.type(buffername) == 'string') local buffer = buffertable[buffername] classname = (torch.type(classname) == 'string') and classname or torch.type(classname) if buffer then if torch.type(buffer) ~= classname then buffer = torch.factory(classname)() buffertable[buffername] = buffer end else buffer = torch.factory(classname)() buffertable[buffername] = buffer end return buffer end function torch.isByteTensor(tensor) local typename = torch.typename(tensor) if typename and typename:find('torch.*ByteTensor') then return true end return false end function torch.isCudaTensor(tensor) local typename = torch.typename(tensor) if typename and typename:find('torch.Cuda*Tensor') then return true end return false end function nn.utils.getZeroMaskBatch(batch, zeroMask) -- get first tensor local first = nn.utils.recursiveGetFirst(batch) first = first:contiguous():view(first:size(1), -1) -- collapse non-batch dims -- build mask (1 where norm is 0 in first) local _zeroMask = torch.getBuffer('getZeroMaskBatch', '_zeroMask', first) _zeroMask:norm(first, 2, 2) zeroMask = zeroMask or ( (torch.type(first) == 'torch.CudaTensor') and torch.CudaByteTensor() or (torch.type(first) == 'torch.ClTensor') and torch.ClTensor() or torch.ByteTensor() ) _zeroMask.eq(zeroMask, _zeroMask, 0) return zeroMask:view(zeroMask:size(1)) end function nn.utils.getZeroMaskSequence(sequence, zeroMask) assert(torch.isTensor(sequence), "nn.utils.getZeroMaskSequence expecting tensor for arg 1") assert(sequence:dim() >= 2, "nn.utils.getZeroMaskSequence expecting seqlen x batchsize [x ...] tensor for arg 1") sequence = sequence:contiguous():view(sequence:size(1), sequence:size(2), -1) -- build mask (1 where norm is 0 in first) local _zeroMask if sequence.norm then _zeroMask = torch.getBuffer('getZeroMaskSequence', '_zeroMask', sequence) else _zeroMask = torch.getBuffer('getZeroMaskSequence', '_zeroMask', 'torch.FloatTensor') local _sequence = torch.getBuffer('getZeroMaskSequence', '_sequence', 'torch.FloatTensor') _sequence:resize(sequence:size()):copy(sequence) sequence = _sequence end _zeroMask:norm(sequence, 2, 3) zeroMask = zeroMask or torch.isCudaTensor(sequence) and torch.CudaByteTensor() or torch.ByteTensor() _zeroMask.eq(zeroMask, _zeroMask, 0) return zeroMask:view(sequence:size(1), sequence:size(2)) end function nn.utils.recursiveSet(t1,t2) if torch.type(t2) == 'table' then t1 = (torch.type(t1) == 'table') and t1 or {t1} for key,_ in pairs(t2) do t1[key], t2[key] = nn.utils.recursiveSet(t1[key], t2[key]) end for i=#t2+1,#t1 do t1[i] = nil end elseif torch.isTensor(t2) then t1 = torch.isTensor(t1) and t1 or t2.new() t1:set(t2) else error("expecting nested tensors or tables. Got ".. torch.type(t1).." and "..torch.type(t2).." instead") end return t1, t2 end function nn.utils.recursiveTensorEq(t1, t2) if torch.type(t2) == 'table' then local isEqual = true if torch.type(t1) ~= 'table' then return false end for key,_ in pairs(t2) do isEqual = isEqual and nn.utils.recursiveTensorEq(t1[key], t2[key]) end return isEqual elseif torch.isTensor(t1) and torch.isTensor(t2) then local diff = t1-t2 local err = diff:abs():max() return err < 0.00001 else error("expecting nested tensors or tables. Got ".. torch.type(t1).." and "..torch.type(t2).." instead") end end function nn.utils.recursiveNormal(t2) if torch.type(t2) == 'table' then for key,_ in pairs(t2) do t2[key] = nn.utils.recursiveNormal(t2[key]) end elseif torch.isTensor(t2) then t2:normal() else error("expecting tensor or table thereof. Got " ..torch.type(t2).." instead") end return t2 end function nn.utils.recursiveSum(t2) local sum = 0 if torch.type(t2) == 'table' then for key,_ in pairs(t2) do sum = sum + nn.utils.recursiveSum(t2[key], val) end elseif torch.isTensor(t2) then return t2:sum() else error("expecting tensor or table thereof. Got " ..torch.type(t2).." instead") end return sum end function nn.utils.recursiveNew(t2) if torch.type(t2) == 'table' then local t1 = {} for key,_ in pairs(t2) do t1[key] = nn.utils.recursiveNew(t2[key]) end return t1 elseif torch.isTensor(t2) then return t2.new() else error("expecting tensor or table thereof. Got " ..torch.type(t2).." instead") end end function nn.utils.recursiveGetFirst(input) if torch.type(input) == 'table' then return nn.utils.recursiveGetFirst(input[1]) else assert(torch.isTensor(input)) return input end end -- in-place set tensor to zero where zeroMask is 1 function nn.utils.recursiveZeroMask(tensor, zeroMask) if torch.type(tensor) == 'table' then for k,tensor_k in ipairs(tensor) do nn.utils.recursiveZeroMask(tensor_k, zeroMask) end else assert(torch.isTensor(tensor)) local tensorSize = tensor:size():fill(1) tensorSize[1] = tensor:size(1) if zeroMask:dim() == 2 then tensorSize[2] = tensor:size(2) end assert(zeroMask:dim() <= tensor:dim()) zeroMask = zeroMask:view(tensorSize):expandAs(tensor) -- set tensor to zero where zeroMask is 1 tensor:maskedFill(zeroMask, 0) end return tensor end function nn.utils.recursiveDiv(tensor, scalar) if torch.type(tensor) == 'table' then for j=1,#tensor do nn.utils.recursiveDiv(tensor[j], scalar) end else tensor:div(scalar) end end function nn.utils.recursiveIndex(dst, src, dim, indices) if torch.type(src) == 'table' then dst = torch.type(dst) == 'table' and dst or {} for k,v in ipairs(src) do dst[k] = nn.utils.recursiveIndex(dst[k], v, dim, indices) end for i=#src+1,#dst do dst[i] = nil end else assert(torch.isTensor(src)) dst = torch.isTensor(dst) and dst or src.new() dst:index(src, dim, indices) end return dst end nn.utils.recursiveIndexSelect = nn.utils.recursiveIndex function nn.utils.recursiveIndexCopy(dst, dim, indices, src) if torch.type(src) == 'table' then dst = (torch.type(dst) == 'table') and dst or {dst} for key,src_ in pairs(src) do dst[key] = nn.utils.recursiveIndexCopy(dst[key], dim, indices, src_) end for i=#src+1,#dst do dst[i] = nil end elseif torch.isTensor(src) then assert(torch.isTensor(dst)) dst:indexCopy(dim, indices, src) else error("expecting nested tensors or tables. Got ".. torch.type(dst).." and "..torch.type(src).." instead") end return dst end function nn.utils.recursiveMaskedSelect(dst, src, mask) if torch.type(src) == 'table' then dst = (torch.type(dst) == 'table') and dst or {dst} for key,src_ in pairs(src) do dst[key] = nn.utils.recursiveMaskedSelect(dst[key], src_, mask) end for i=#src+1,#dst do dst[i] = nil end elseif torch.isTensor(src) then assert(torch.isTensor(dst)) dst:maskedSelect(src, mask) else error("expecting nested tensors or tables. Got ".. torch.type(dst).." and "..torch.type(src).." instead") end return dst end function nn.utils.recursiveMaskedCopy(dst, mask, src) if torch.type(src) == 'table' then dst = (torch.type(dst) == 'table') and dst or {dst} for key,src_ in pairs(src) do dst[key] = nn.utils.recursiveMaskedCopy(dst[key], mask, src_) end for i=#src+1,#dst do dst[i] = nil end elseif torch.isTensor(src) then assert(torch.isTensor(dst)) dst:maskedCopy(mask, src) else error("expecting nested tensors or tables. Got ".. torch.type(dst).." and "..torch.type(src).." instead") end return dst end function nn.utils.setZeroMask(modules, zeroMask, cuda) if cuda and not torch.isCudaTensor(zeroMask) then cuZeroMask = torch.getBuffer('setZeroMask', 'cuZeroMask', 'torch.CudaByteTensor') cuZeroMask:resize(zeroMask:size()):copy(zeroMask) zeroMask = cuZeroMask end for i,module in ipairs(torch.type(modules) == 'table' and modules or {modules}) do module:setZeroMask(zeroMask) end end function nn.utils.get_ngrams(sent, n, count) local ngrams = {} for beg = 1, #sent do for last= beg, math.min(beg+n-1, #sent) do local ngram = table.concat(sent, ' ', beg, last) local len = last-beg+1 -- keep track of ngram length if not count then ngrams[ngram] = 1 else if ngrams[ngram] == nil then ngrams[ngram] = {1, len} else ngrams[ngram][1] = ngrams[ngram][1] + 1 end end end end return ngrams end function nn.utils.get_skip_bigrams(sent, ref, count, dskip) local skip_bigrams = {} for beg = 1, #sent do if ref[tostring(sent[beg])] then local temp_token = sent[beg] for last= beg+1, math.min(beg + dskip-1, #sent) do if ref[tostring(sent[last])] then skip_bigram = temp_token..sent[last] if not count then skip_bigrams[skip_bigram] = 1 else skip_bigrams[skip_bigram] = (skip_bigram[bigram] or 0) + 1 end end end end end return skip_bigrams end function nn.utils.get_ngram_prec(cand, ref, n) local results = {} for i = 1, n do results[i] = {0, 0} end local cand_ngrams = nn.utils.get_ngrams(cand, n, 1) local ref_ngrams = nn.utils.get_ngrams(ref, n, 1) for ngram, dist in pairs(cand_ngrams) do local freq = dist[1] local length = dist[2] results[length][1] = results[length][1] + freq local actual if ref_ngrams[ngram] == nil then actual = 0 else actual = ref_ngrams[ngram][1] end results[length][2] = results[length][2] + math.min(actual, freq) end return results end function nn.utils.get_ngram_recall(cand, ref, n) local results = {} for i = 1, n do results[i] = {0, 0} end local cand_ngrams = nn.utils.get_ngrams(cand, n, 1) local ref_ngrams = nn.utils.get_ngrams(ref, n, 1) for ngram, dist in pairs(ref_ngrams) do local freq = dist[1] local length = dist[2] results[length][1] = results[length][1] + freq local actual if cand_ngrams[ngram] == nil then actual = 0 else actual = cand_ngrams[ngram][1] end results[length][2] = results[length][2] + math.min(actual, freq) end return results end
local lm = require "luamake" lm:import "../renderer/make.lua" if lm.LuaInclude == nil then error "need to define lua directory" end lm:source_set "source_effekseer_callback" { includes = { lm.LuaInclude }, sources = { "efkcallback.c", }, } lm:lua_dll "effekseer_callback" { deps = { "source_efkbgfx_lib", "source_effekseer_callback", } }
SILE.hyphenator.languages["lv"] = {}; SILE.hyphenator.languages["lv"].patterns = { "d4z", "d4ž", "a2i", "a2u", "i2e", "e2i", "u2i", "i2u", "o2i", "o2u", "e2u", ".vi1s2a.", ".vi1s2ā.", ".vi1s2i.", ".vi1s2os.", ".vi1s2u.", ".vi1s2iem.", "o1pī", "ū1rē", "i1ta", "ū1ga", "ē1žu", "ū1to", "ā1ni", "i1rē", "i1čo", "ā1bu", "o1mī", "o1kā", "o1či", "ā1lo", "e1čū", "o1ļā", "e1la", "i1šo", "o1bi", "ē1cē", "ā1ru", "o1si", "u1no", "e1hā", "ā1nē", "e1bū", "i1ru", "o1sū", "a1ča", "ā1ča", "o1rē", "i1ke", "o1ra", "u1te", "i1zo", "i1gi", "ē1ma", "ū1ķe", "ū1ca", "o1dē", "a1nā", "ā1ge", "e1či", "ū1bē", "ē1tā", "ā1fi", "i1zi", "o1lī", "e1še", "e1gā", "i1fo", "a1ņo", "u1to", "ī1zē", "ū1gu", "ā1ša", "i1ķi", "ū1nē", "ī1ma", "ā1te", "ē1kē", "ū1mā", "u1zu", "o1sā", "ē1bu", "ī1ga", "e1di", "ī1te", "a1ļī", "e1tē", "i1že", "o1fo", "ā1pu", "o1hu", "ē1do", "o1du", "ā1ma", "ū1mi", "e1re", "i1ha", "i1be", "e1lu", "ā1ja", "ū1ta", "a1šū", "a1da", "ē1cī", "i1bu", "a1pī", "u1ņā", "e1zu", "ū1no", "e1nī", "i1no", "e1mā", "ē1ļa", "ū1pā", "ā1be", "ā1mo", "ī1ja", "e1ji", "ī1re", "e1ce", "ī1ri", "ī1tī", "ū1ni", "ī1žī", "i1ži", "a1fī", "a1be", "e1šā", "e1ķo", "e1pū", "e1ļī", "u1ģi", "ē1tī", "a1ci", "e1jē", "a1zī", "o1lē", "u1ga", "ī1ci", "a1ke", "e1ho", "i1nū", "ū1šī", "e1si", "e1bo", "o1ģē", "u1ņi", "u1sē", "ē1bā", "o1ša", "ū1ro", "ē1ce", "i1zī", "i1ve", "o1ļu", "i1dī", "o1ku", "e1vē", "a1ri", "u1sā", "i1pā", "i1dē", "o1pū", "ī1vī", "a1me", "ē1ze", "ī1bē", "u1ķe", "a1bē", "a1ja", "ā1ļo", "a1jē", "e1fe", "o1pu", "o1to", "ē1vē", "a1ki", "o1mā", "o1lo", "a1lo", "ē1ķi", "e1šē", "ū1dī", "ū1cā", "o1zo", "o1gū", "o1gā", "ī1tē", "e1zē", "ī1le", "e1gī", "ī1na", "o1me", "e1po", "e1fu", "a1ģe", "u1rū", "u1ri", "ū1jo", "e1dē", "a1ļa", "a1žā", "ī1ļa", "ē1ne", "a1zū", "ā1vē", "e1so", "o1mi", "o1šo", "ē1sī", "ē1ļu", "e1ga", "i1pē", "e1vu", "o1ru", "ē1ju", "u1či", "ā1va", "a1hu", "ī1sē", "e1ķa", "i1rā", "a1čā", "ī1ki", "i1ti", "u1cu", "i1žu", "ā1jo", "u1ki", "u1mu", "o1ķī", "e1ma", "ī1ļo", "ē1de", "o1čo", "ā1ču", "i1ņa", "u1ļa", "u1mā", "o1he", "i1lī", "a1de", "o1fa", "ē1ro", "o1sī", "ā1ri", "ū1ti", "o1bē", "a1jā", "ū1zu", "ā1vī", "e1ļe", "o1ņa", "ī1de", "ī1še", "a1kū", "ū1ja", "o1dī", "e1ži", "e1ri", "ī1gā", "e1ki", "u1ze", "u1ma", "i1vī", "ē1pī", "u1lu", "e1ti", "o1čā", "a1ķi", "ū1zē", "a1ļo", "i1či", "o1ke", "a1ģu", "i1vē", "u1ču", "u1ca", "u1vu", "o1ļa", "i1ri", "o1ņo", "u1co", "a1rā", "o1jā", "ī1bi", "e1čī", "ē1rē", "e1kā", "i1pi", "a1ka", "ā1vu", "ū1ža", "e1mī", "e1vī", "o1gi", "a1pē", "ū1zā", "i1cē", "e1va", "o1nī", "ī1ru", "e1pā", "a1ce", "ē1kā", "o1ja", "a1hē", "a1bo", "ū1mu", "ī1ve", "i1nā", "i1fi", "o1va", "u1žu", "e1ģi", "ē1nī", "i1li", "i1ņo", "u1la", "ī1ģe", "e1ca", "a1tā", "ū1zi", "a1bū", "ē1pē", "ī1su", "ī1pā", "ī1zu", "ū1di", "e1lo", "ā1mā", "e1ci", "a1ža", "ē1to", "e1rū", "ā1la", "u1ķu", "o1ģī", "ā1pa", "e1lū", "e1sī", "e1bē", "i1co", "i1ķē", "a1šo", "ū1ku", "u1šā", "o1di", "a1ņa", "ī1pa", "o1pi", "a1žē", "a1si", "a1ha", "u1šo", "ē1mā", "ī1mo", "ā1žo", "ū1lu", "e1žū", "o1ķi", "ā1vā", "a1žo", "i1zā", "a1ku", "o1zi", "o1dā", "e1cu", "ī1no", "e1zi", "e1jū", "ā1ņo", "i1ce", "ū1lē", "a1žī", "o1mē", "i1bī", "o1re", "e1zū", "ū1ra", "a1gi", "i1lē", "ī1bā", "ū1šu", "e1bi", "i1gū", "ū1ķi", "ē1va", "ā1to", "u1ce", "a1pū", "ā1gi", "i1ķe", "ā1kā", "e1ķī", "ē1ža", "u1ve", "u1vo", "ē1no", "o1bu", "a1tī", "e1fi", "e1ļo", "ū1ži", "a1tū", "ī1ti", "ī1la", "i1ho", "ē1gi", "i1fū", "a1tē", "ā1ķi", "a1mi", "e1ra", "u1ja", "e1me", "ī1bu", "i1pu", "o1la", "a1ķī", "u1šu", "o1ža", "a1rū", "ū1ļa", "e1ču", "ī1lo", "o1nu", "ā1jē", "a1dā", "u1rē", "u1rī", "ē1žo", "i1mā", "a1zo", "o1žu", "ē1da", "ī1co", "ū1zī", "ā1sa", "ē1šu", "ū1po", "i1si", "u1zē", "ū1ri", "u1zī", "ū1gā", "e1pu", "ā1du", "e1cē", "ē1ji", "i1bi", "ē1rā", "i1ļi", "u1nu", "i1ki", "a1mū", "ī1ni", "ā1fe", "ē1ca", "ā1ņi", "u1go", "a1nu", "e1nē", "u1ku", "ā1ži", "ē1go", "e1če", "ē1za", "ā1čā", "i1ģe", "ī1go", "a1go", "e1bī", "i1ze", "e1šū", "o1kē", "o1pē", "i1na", "ā1ra", "ā1jī", "o1za", "e1zā", "a1lā", "e1ņē", "a1je", "ē1si", "ā1bo", "u1gā", "i1sē", "u1ši", "u1bī", "a1vā", "e1ko", "ā1šu", "ā1ģē", "i1mo", "e1ļā", "i1tē", "u1ļā", "a1ņē", "u1na", "ī1vo", "ū1me", "a1hī", "ū1ka", "ā1mī", "ā1lī", "ū1tu", "e1je", "ī1vā", "a1ba", "ī1dā", "ū1ko", "ū1cē", "ā1nī", "a1ļē", "u1ju", "ā1žā", "ū1mo", "i1ge", "ā1pā", "e1lā", "i1ķī", "a1sē", "e1ni", "a1ma", "a1tu", "i1kū", "a1bi", "i1jī", "ī1ķu", "e1fā", "u1ta", "ē1dē", "a1gā", "i1lā", "i1ņi", "e1ļa", "ē1ti", "ā1bi", "a1ši", "a1lī", "i1ja", "e1mu", "o1hē", "u1jā", "ū1ša", "i1sā", "u1po", "ā1cā", "a1se", "o1ņe", "u1fo", "ā1sū", "ā1bū", "o1co", "o1ķē", "ā1ļa", "e1že", "u1tī", "ī1ku", "u1ķa", "u1zi", "e1do", "i1so", "o1fi", "ē1sā", "i1pī", "ī1ši", "a1dī", "ā1ti", "u1ņo", "u1pa", "o1ka", "o1cī", "i1pe", "ī1mā", "ā1pē", "ā1pī", "ū1pē", "o1bū", "e1ķē", "a1mē", "ā1rū", "o1de", "i1ķa", "o1šī", "ī1gu", "u1bi", "ā1ka", "ā1nu", "u1ži", "u1so", "ē1ka", "ā1le", "ē1pe", "u1ļī", "ī1me", "u1dī", "i1žā", "i1du", "ē1ra", "o1vo", "o1fā", "o1so", "ā1ļā", "e1dā", "ā1gu", "o1bo", "e1hī", "ā1ģi", "ā1čo", "a1dē", "u1di", "ī1se", "ē1sē", "ā1nā", "a1nī", "ū1rā", "o1hi", "o1šā", "i1lū", "ē1lē", "i1te", "u1še", "ī1tu", "u1ģo", "e1ši", "ū1ba", "e1ņa", "u1si", "ē1zo", "ū1kā", "i1gu", "ū1da", "i1sū", "o1bī", "a1mo", "ē1gā", "ā1ve", "u1bē", "e1ņo", "ē1vo", "ī1mī", "u1ļu", "ā1tu", "i1cī", "u1fa", "ā1tā", "ē1gu", "o1ga", "i1mi", "i1fē", "i1ļe", "ā1co", "u1žī", "i1zē", "i1vu", "a1ju", "i1ca", "ī1ču", "ū1re", "ē1bi", "e1ro", "i1fā", "a1he", "u1mo", "i1jo", "e1bu", "ī1ro", "a1te", "ī1ģi", "ā1di", "i1bū", "u1ļi", "u1le", "a1na", "e1tā", "e1bā", "o1tū", "ū1ze", "ā1fu", "ī1be", "a1pā", "u1de", "i1dū", "e1ve", "ī1di", "a1vo", "u1lā", "e1pi", "u1dē", "ē1dā", "o1jo", "i1žo", "ī1ķe", "o1nā", "e1mū", "ā1zā", "a1ro", "ī1rā", "a1že", "u1je", "a1ti", "ū1cī", "i1tī", "ī1vi", "ī1jo", "e1co", "i1tū", "i1bo", "ū1pe", "e1tū", "o1pā", "ē1se", "a1ļā", "ā1ji", "a1čo", "e1za", "ā1mē", "a1žū", "e1šo", "ī1ļu", "ū1jā", "o1su", "e1ja", "o1ta", "e1lī", "o1ze", "ī1vē", "o1vā", "a1vī", "i1kī", "ā1zī", "u1ha", "ī1pē", "i1de", "o1nē", "ū1bī", "ē1tu", "a1ži", "ā1žu", "o1ņā", "o1ļo", "i1ņē", "u1ci", "ī1ca", "ū1sa", "e1rī", "i1bē", "e1ne", "a1šī", "u1gi", "ī1mu", "a1zā", "i1lo", "ī1cē", "u1lī", "e1čo", "a1bu", "i1nī", "ā1dā", "ā1tē", "ā1ko", "ī1šu", "o1ģi", "a1ta", "i1la", "a1va", "a1še", "a1hi", "a1ca", "e1be", "e1žē", "a1su", "ī1dī", "o1da", "e1ģo", "e1ņu", "e1pa", "ī1jā", "e1sā", "a1ņi", "ū1so", "ī1nu", "i1vo", "ū1lo", "ī1nē", "ē1mī", "ū1cu", "o1žē", "ē1jā", "ī1cā", "a1ču", "o1zū", "a1lu", "ā1lu", "o1ņu", "a1vu", "i1tu", "i1ķu", "i1ķo", "i1ko", "a1fa", "ī1pi", "i1go", "i1me", "a1fi", "e1sū", "ī1ju", "o1pe", "a1sī", "a1nē", "ū1že", "ē1ve", "i1po", "o1zē", "a1ne", "e1sa", "a1lē", "ē1ša", "ū1gi", "ē1lā", "i1mū", "u1vā", "ū1mī", "ū1mē", "u1ro", "ā1po", "o1ju", "i1fu", "i1jē", "i1ga", "ū1tā", "ē1lu", "ū1sā", "a1gū", "ā1bā", "a1la", "o1ri", "ē1šo", "ū1ņa", "o1fē", "e1li", "ē1ko", "u1va", "ī1šo", "a1zi", "e1dī", "i1da", "i1šī", "i1hī", "i1ne", "i1šu", "ē1ku", "e1ņā", "o1na", "ī1ža", "o1ča", "ā1fa", "o1tē", "ī1dē", "o1tā", "i1hi", "ē1mu", "ī1so", "e1cā", "ā1zi", "ī1cī", "u1šē", "o1no", "ā1ņe", "u1bu", "ū1gē", "o1ve", "a1ģī", "i1lu", "i1pa", "e1ka", "ā1ci", "u1ķī", "o1sa", "o1go", "i1nu", "ī1žo", "i1sī", "o1fī", "a1pu", "a1du", "ī1ļi", "o1ba", "i1fa", "e1mi", "o1cu", "u1ža", "ā1mi", "a1ķā", "i1ču", "o1žū", "ī1kā", "ā1ķe", "u1ģē", "e1da", "ē1dī", "ī1čo", "ū1pa", "ā1de", "o1ma", "i1dā", "ē1ņo", "ū1žu", "o1ko", "a1vē", "ā1zē", "ā1sā", "ī1do", "u1cā", "ī1ļā", "u1du", "e1ju", "ā1si", "o1vē", "i1ša", "u1fe", "o1ji", "ē1re", "ū1ļī", "u1ņa", "ā1ca", "a1šu", "ū1nu", "ū1le", "e1ķi", "ā1tī", "o1ge", "i1vā", "ū1za", "ē1nā", "ū1ma", "ā1ķu", "e1lē", "ā1sē", "ā1li", "ī1ne", "i1mī", "ā1pi", "a1mā", "a1žu", "i1ju", "ē1vu", "u1nā", "ū1ru", "e1vi", "a1pa", "i1bā", "o1cē", "ā1lē", "e1ku", "u1lē", "i1se", "e1vā", "ē1jē", "e1pī", "ē1ci", "o1ši", "a1hā", "a1kā", "u1ji", "ū1rī", "ī1sā", "i1ro", "o1rā", "ū1ki", "o1ro", "e1ru", "o1kū", "ē1su", "a1ņā", "ū1tī", "ā1ba", "e1ņe", "e1nu", "ē1te", "ā1vo", "a1sa", "e1nū", "ū1žī", "o1že", "ū1do", "ē1jī", "ī1vu", "o1vi", "u1ba", "ā1na", "ī1mē", "a1ji", "u1ti", "e1mo", "a1ra", "e1hi", "o1te", "u1bo", "e1su", "i1fī", "ē1pi", "i1ģi", "ī1ņu", "ū1lī", "ā1ro", "o1zā", "a1vi", "o1ni", "ī1za", "o1do", "ī1zā", "o1gē", "u1zū", "u1li", "u1da", "a1či", "e1ta", "i1ra", "ā1ķa", "a1jū", "ī1ba", "a1cē", "u1ra", "i1kā", "i1zu", "ē1nu", "a1šā", "e1to", "u1gē", "ū1pī", "a1ho", "ā1je", "ī1ķa", "a1ve", "o1šu", "u1čo", "ī1mi", "u1sī", "a1dū", "e1cū", "ī1rī", "u1ko", "ā1ķī", "ā1zu", "ā1mu", "ī1sa", "ā1ņu", "u1ka", "i1ba", "ū1vi", "ē1ga", "ē1ģe", "a1rī", "u1ša", "u1cī", "a1co", "ī1cu", "o1vu", "i1je", "u1do", "o1cā", "ā1vi", "i1jā", "a1ze", "a1mu", "o1ņi", "e1ža", "o1čī", "i1ča", "i1mē", "ā1cī", "ē1la", "e1dū", "ū1nī", "ī1po", "ē1ļi", "ī1nā", "ū1be", "u1se", "ū1ci", "ī1ņā", "ī1ke", "ā1cē", "ē1sa", "ē1li", "a1ģā", "u1pe", "ā1ku", "a1bī", "u1pu", "o1ca", "u1ne", "ī1ļī", "u1mi", "e1du", "i1ļu", "u1pā", "ī1ņa", "ī1pu", "u1be", "o1ču", "o1šē", "ū1šo", "ē1me", "a1ķa", "u1zo", "ē1zā", "ū1ce", "e1tī", "o1ķu", "ē1jo", "u1tū", "ā1cu", "i1vi", "e1žā", "a1jo", "e1jo", "ū1bi", "u1nī", "ā1ļu", "e1zo", "i1ma", "u1vē", "o1jū", "o1ha", "ū1pu", "e1ša", "a1ru", "a1li", "u1mī", "ū1ve", "ā1pe", "i1cu", "ū1nā", "ī1sī", "e1pe", "ī1zī", "i1rī", "ī1pe", "o1po", "ā1rē", "a1ņe", "ī1gi", "e1žī", "ī1lu", "i1su", "ī1tā", "a1no", "ī1ži", "a1sū", "a1ko", "i1žē", "u1jo", "i1va", "ī1ji", "a1fe", "o1pa", "e1rē", "e1šī", "ē1cu", "i1šā", "ū1žā", "e1ģe", "ē1cā", "a1po", "i1tā", "ā1ne", "ī1va", "e1se", "ī1ra", "o1gu", "ū1de", "u1dā", "i1di", "u1rā", "ē1nē", "a1to", "e1fī", "a1so", "e1ze", "ē1le", "o1mu", "ī1ta", "e1ļu", "a1zē", "ē1ķē", "o1ģe", "e1na", "ū1vē", "ē1du", "u1žo", "i1nē", "ī1si", "i1ka", "ī1fe", "e1no", "i1le", "e1pē", "e1ģē", "ā1go", "i1ni", "e1ča", "a1čī", "ē1be", "a1ša", "e1gi", "i1mu", "ē1bē", "a1čū", "ī1šā", "a1bā", "ī1du", "o1ci", "ē1bo", "ā1ki", "o1mo", "ē1lo", "o1lā", "o1le", "a1gī", "u1kā", "ē1vi", "ī1lē", "u1čē", "ē1mo", "a1cī", "u1ča", "ī1to", "a1fē", "u1ķi", "e1fa", "ī1ša", "o1bā", "a1ļi", "ī1da", "a1mī", "i1gā", "a1ģē", "e1cī", "ā1ta", "i1re", "ā1me", "ū1dē", "a1re", "ī1li", "a1ga", "o1tu", "u1pī", "e1ha", "ā1ķē", "e1tu", "i1ģē", "e1kē", "ā1bē", "o1čū", "a1zu", "ū1sē", "ū1ne", "ā1ga", "ū1vo", "o1ho", "ē1ļā", "o1rī", "ū1ju", "o1fu", "ū1ji", "o1lū", "ā1do", "i1to", "u1bā", "u1ge", "u1cē", "a1le", "u1ķē", "ī1ce", "a1ķu", "ā1ze", "e1šu", "ē1ja", "a1vū", "i1ņā", "ē1na", "o1ne", "ā1dē", "ā1ģa", "u1su", "u1sa", "ē1di", "ū1su", "e1fo", "ē1ni", "ī1pī", "i1ku", "ē1pa", "ē1po", "ī1zi", "i1ļa", "i1ši", "ē1lī", "ā1no", "a1jī", "ā1gā", "o1zī", "ā1dī", "o1ļi", "ā1rā", "ē1zi", "ū1pi", "ē1ge", "o1mū", "i1kē", "e1gū", "u1gu", "i1zū", "a1gu", "a1lū", "i1cā", "ū1lā", "o1ķe", "o1se", "ē1vā", "ē1ru", "a1fo", "e1sē", "ā1re", "ā1lā", "e1ļi", "a1ņu", "e1jā", "ā1ža", "ē1zu", "e1ņi", "u1pi", "ē1mē", "o1ņē", "o1ti", "u1pē", "e1zī", "u1fi", "e1ķe", "ā1jā", "u1vī", "ī1ņi", "u1žā", "ū1li", "e1de", "o1be", "ē1zī", "e1hu", "e1he", "ī1lā", "u1tē", "e1nā", "a1sā", "ā1se", "ē1ļo", "a1ģi", "ī1ze", "o1je", "ū1te", "e1kū", "o1li", "ā1ce", "o1vī", "i1ci", "ā1so", "e1ge", "i1še", "a1ni", "i1do", "ā1lū", "o1žā", "o1še", "o1zu", "a1cu", "e1mē", "e1gu", "ē1ta", "a1do", "e1ba", "ē1ģi", "e1žo", "ā1gū", "a1za", "ū1la", "ū1ķī", "a1pi", "ī1nī", "ū1šā", "i1šē", "o1ļe", "ē1mi", "u1zā", "i1ķā", "ī1ko", "o1dū", "ī1ķi", "a1ķē", "ā1su", "ī1lī", "e1čā", "ē1ļe", "u1za", "o1ži", "o1fe", "ū1tē", "o1ki", "ā1za", "e1le", "ē1bī", "a1di", "o1sē", "ī1žu", "ī1bo", "u1me", "a1rē", "i1ļo", "ū1si", "ā1sī", "u1ni", "ī1ka", "ā1ļi", "o1tī", "ā1šo", "u1tu", "e1žu", "i1ža", "o1lu", "ē1rī", "ā1ju", "u1šī", "a1ķe", "ē1so", "ā1da", "ē1ba", "ē1ri", "o1ce", "ē1ki", "i1ļā", "a1pe", "o1šū", "u1ļo", "ī1zo", "ē1rū", "e1go", "e1te", "i1za", "e1vo", "u1vi", "i1fe", "i1ņu", "ā1zo", "ē1zē", "o1jē", "u1re", "ā1ņa", "ē1pā", "o1žo", "u1nē", "u1ņu", "ū1du", "a1ļu", "u1mē", "ē1pu", "u1lo", "i1ji", "ā1rī", "ī1rē", "e1rā", "u1ru", "a1cā", "o1rū", "ū1na", "u1ģe", "ū1dā", "u1tā", "i1sa", "at1tu", "eg1rū", "ak1so", "it1de", "eb1lā", "et1vī", "or1bi", "al1ša", "ap1dū", "ak1na", "um1ci", "aš1le", "ēr1ķe", "en1ku", "il1ki", "ēr1ku", "at1nā", "at1ģē", "us1pē", "os1vī", "os1ci", "an1ra", "en1pa", "ej1dē", "až1vī", "as1bu", "īs1ga", "iņ1di", "en1to", "uj1me", "or1ki", "el1zo", "ot1nē", "es1ko", "uz1gu", "ak1ti", "īr1ni", "iz1hi", "il1pu", "es1ma", "āt1vi", "ag1rē", "on1zē", "īb1tu", "ap1do", "īt1vī", "ul1sā", "īk1lī", "ur1so", "ok1tē", "ēb1tu", "īs1la", "et1ve", "al1mo", "op1ša", "en1ce", "im1nī", "uš1ķa", "ek1ti", "iz1cī", "er1di", "ur1fa", "an1tā", "er1ba", "as1pe", "al1su", "ip1so", "al1cī", "at1de", "aņ1ra", "ēk1šu", "īg1li", "om1ni", "oņ1ka", "as1le", "at1ņi", "id1rī", "un1ve", "al1kū", "in1da", "ār1ba", "īs1žu", "al1ka", "up1jī", "ur1gu", "at1sī", "īg1mā", "āl1ti", "al1va", "uļ1ku", "ok1rē", "er1gi", "uz1ļo", "ak1šē", "īm1re", "iz1te", "āt1vē", "ēg1ni", "īg1ru", "il1cē", "ir1mu", "ar1ku", "ot1zi", "ub1na", "an1če", "om1bī", "ēg1si", "el1le", "av1ru", "il1nu", "ēs1te", "ur1kā", "ik1ro", "ep1nu", "ur1vē", "oņ1lu", "it1ma", "il1ja", "ēj1tē", "an1ga", "eš1pa", "āl1ce", "ob1rī", "ur1vi", "up1ri", "ēz1tā", "iz1čo", "ap1ša", "uz1ru", "ut1rē", "ar1to", "ež1nī", "aš1ļu", "aļ1ce", "al1ne", "is1sī", "ib1šo", "uz1nu", "ut1ņu", "ul1de", "ār1ho", "am1pū", "ēl1gu", "um1vi", "ik1to", "ēr1ze", "ož1va", "ez1nī", "am1lī", "ak1se", "el1ko", "ep1si", "āj1tu", "um1zā", "at1ja", "al1ķī", "az1dā", "or1to", "ec1he", "at1cī", "en1ko", "ūs1ki", "īg1sa", "ef1ri", "ār1sa", "im1po", "īt1rī", "ed1vi", "id1sē", "ā1džā", "up1la", "ēc1te", "es1pu", "uk1šo", "āp1ni", "ā1dži", "ak1la", "en1na", "as1ka", "ām1di", "ag1li", "og1rā", "ag1dā", "oz1vi", "an1ku", "īk1nē", "us1mū", "er1ma", "āb1ša", "in1tu", "ob1ti", "ap1cu", "es1vā", "ac1ti", "ur1pu", "ar1kī", "el1la", "it1ta", "am1le", "ik1se", "ēk1ti", "ar1sa", "is1mu", "ut1ķe", "ār1vī", "u1dži", "et1nā", "id1ka", "āl1se", "ur1na", "ār1zo", "uz1li", "ān1ka", "as1ve", "ab1la", "aņ1ķe", "ēb1tā", "el1vā", "al1žu", "at1pū", "at1go", "ēr1la", "e1dzi", "iz1dē", "ab1se", "at1žē", "ir1ca", "ēr1su", "uļ1ma", "el1pe", "ej1ve", "ap1ve", "īg1rā", "el1po", "ed1lo", "it1mo", "ep1nā", "uk1tu", "at1šo", "ap1šā", "ār1čo", "ak1sē", "ek1tē", "om1pe", "ul1go", "um1dī", "ec1si", "ēd1vi", "um1mā", "iz1mo", "ok1zā", "āp1ro", "āl1ko", "āl1vē", "ed1po", "īl1zi", "of1rē", "ēj1lo", "ap1sū", "ip1šo", "is1pu", "in1fe", "ep1ra", "at1ša", "or1ga", "on1gā", "ak1šu", "at1jo", "es1pa", "uz1ša", "ār1su", "uz1be", "ik1sī", "en1ša", "ok1te", "ok1bu", "ur1ša", "or1ģe", "īn1ta", "ap1ģi", "iz1zu", "im1tī", "ap1te", "on1nā", "us1jū", "ur1no", "ab1ti", "en1jū", "op1so", "eņ1no", "ur1ka", "an1šo", "ol1le", "ūs1mo", "ās1tā", "ek1tī", "uz1sī", "iš1ķā", "um1pā", "is1po", "ob1lē", "ap1za", "ek1do", "ez1mē", "ēd1la", "uš1ka", "of1ri", "en1hī", "āf1ri", "uk1nu", "iz1do", "ej1ga", "ul1ri", "iz1fi", "ir1na", "is1ka", "ār1do", "en1šo", "ož1ma", "ēs1tī", "at1sā", "um1la", "oš1pa", "eb1to", "ez1ņi", "ej1ka", "iv1žu", "uņ1ģu", "ik1na", "il1ko", "ol1mu", "im1si", "ap1ta", "os1tu", "us1tī", "at1ko", "ar1ci", "iļ1do", "un1či", "oš1si", "en1zā", "ir1zo", "i1džā", "uz1ba", "er1vē", "ip1ni", "il1zu", "in1pū", "or1hi", "iv1de", "os1mē", "uz1pū", "ām1pi", "os1tū", "az1bē", "al1de", "on1de", "uz1ce", "em1ba", "ēr1ļu", "at1nē", "ār1tū", "ur1cu", "ir1ku", "āv1da", "īp1ri", "op1rā", "ej1ni", "am1dī", "ak1va", "ek1pi", "up1ve", "ūt1ma", "un1tā", "aš1ma", "āv1ja", "um1ti", "ūz1mā", "im1te", "ev1rē", "on1ti", "ig1za", "iz1gū", "up1rā", "id1pū", "ār1cī", "ār1lī", "el1lē", "us1ga", "ez1da", "ap1cē", "ej1la", "ag1da", "uz1va", "op1sē", "āģ1ve", "el1to", "ēz1kū", "eš1vi", "uz1vī", "ī1dze", "is1mē", "ef1rī", "ab1ša", "up1ma", "ār1nī", "aš1va", "ab1ri", "ob1tā", "ik1sā", "is1mī", "ag1ša", "ūr1ka", "āņ1mu", "ev1ni", "or1da", "em1ze", "āj1lo", "at1rū", "al1re", "il1cī", "ār1mi", "et1ma", "um1da", "ob1le", "āp1tu", "el1pā", "iz1ķe", "ez1tu", "al1tī", "ap1rū", "iz1ta", "em1ža", "ar1gi", "ēv1re", "as1kā", "až1kā", "eg1ta", "al1gā", "ap1le", "ap1ro", "īv1ni", "op1ka", "ik1vi", "il1tī", "ur1pī", "ir1kī", "iņ1ne", "iz1da", "op1re", "ēl1ni", "is1nu", "ar1cē", "ed1sē", "ul1ka", "ās1ma", "op1ba", "os1fē", "ak1le", "eļ1mū", "ēb1šu", "aš1ra", "uļ1pu", "oķ1vā", "ār1šo", "am1di", "ār1žu", "ed1pu", "ed1ve", "en1re", "ūk1li", "uš1pi", "ep1ta", "al1ve", "ad1ma", "ez1ce", "ēg1tā", "ud1rī", "im1bi", "ek1ra", "iv1jū", "ez1bi", "iz1me", "uļ1tī", "if1rē", "ap1ku", "id1ni", "og1rē", "ēj1de", "op1ko", "iz1tī", "un1ci", "īt1ka", "ēj1nī", "ēr1pē", "oš1ļa", "at1zu", "īv1ga", "os1na", "og1ga", "es1lu", "āt1ko", "az1va", "em1zi", "as1ke", "an1si", "iz1mi", "er1vā", "ep1sē", "al1sā", "us1cū", "ul1sa", "en1ta", "or1vē", "ek1tā", "uz1žo", "an1ma", "i1dzī", "ij1ku", "id1la", "ēp1ta", "ēļ1ko", "ur1ti", "ap1nī", "ot1re", "eš1ņu", "un1de", "ār1vē", "uz1ģī", "er1mū", "o1džu", "oš1ni", "ij1kā", "al1lo", "ig1lo", "er1rī", "em1pu", "ug1ļo", "ūš1do", "ip1ša", "ūs1tā", "oš1ba", "al1lē", "eš1da", "uļ1ļā", "ār1sū", "in1de", "em1to", "ās1tu", "ol1fi", "or1mā", "iv1pu", "aš1la", "ec1ho", "ār1za", "ar1ka", "ub1sī", "ap1zi", "ēp1to", "āk1tu", "er1te", "ur1zu", "īm1ka", "on1ju", "ap1go", "us1lo", "or1na", "og1no", "am1dā", "ār1ta", "ēl1ne", "er1cā", "im1na", "uz1zā", "ār1no", "aj1ci", "ip1tā", "it1ļu", "ag1ri", "ār1bū", "os1po", "ēņ1da", "an1kū", "om1bē", "ār1ve", "aļ1ģe", "im1ti", "al1ti", "īņ1ni", "in1na", "ep1la", "uz1di", "iž1me", "al1tē", "in1si", "ed1ma", "or1tu", "em1ta", "ug1si", "er1be", "us1ra", "il1mu", "ār1ga", "eb1lo", "īr1rū", "īt1re", "al1la", "et1vi", "el1di", "ār1ži", "iz1ca", "ad1da", "ēn1mī", "ut1sa", "ol1po", "ez1ra", "ir1šā", "eg1šo", "ud1pu", "ud1lē", "uk1sē", "on1vu", "em1pā", "ēk1bē", "ār1dē", "en1zū", "āj1re", "at1lo", "ez1ni", "et1ka", "iv1ji", "in1ku", "or1bī", "ok1ti", "al1si", "ur1zī", "ūn1ga", "ēr1pa", "am1bi", "at1ro", "ēr1bu", "iz1ķē", "ip1sē", "uz1či", "ir1du", "uh1tā", "er1bā", "ik1ga", "īš1ķi", "iz1rū", "it1da", "ok1ņu", "ēg1ta", "ir1lo", "an1ka", "in1dī", "es1vī", "op1ma", "um1sī", "on1pa", "em1pī", "ūk1ko", "el1tī", "uz1me", "er1vī", "ūz1na", "eg1ru", "it1ga", "us1du", "īt1ņu", "ep1lā", "ur1va", "um1zī", "īd1lī", "o1dži", "ār1bu", "ak1tā", "er1ta", "ēr1no", "ēr1pā", "um1bi", "en1ca", "oņ1cū", "ēj1mu", "at1pī", "ēr1gā", "ip1re", "ār1vi", "aļ1ķo", "et1ni", "ir1gū", "āp1ne", "ir1su", "āt1me", "eb1tu", "in1cē", "aš1ķe", "ip1ro", "om1da", "ep1tī", "ef1ra", "ū1dza", "ēt1ku", "ub1li", "az1be", "ūs1ka", "us1pa", "ar1su", "uf1li", "ūr1vī", "īs1za", "af1rē", "uz1ņa", "e1dža", "iz1bē", "ūt1di", "en1nī", "eļ1ķē", "es1ku", "az1da", "īg1ra", "iz1gā", "ar1ķī", "er1šu", "ud1ka", "ed1ri", "op1ra", "ap1li", "ap1dī", "ed1la", "an1rī", "en1tī", "āb1šo", "an1cū", "ēj1da", "es1tī", "er1ko", "ūg1ta", "el1zu", "in1ne", "er1bi", "ig1me", "ež1ni", "ad1mi", "aj1ni", "el1li", "ik1šu", "āl1pu", "ar1ga", "et1ta", "īc1še", "uz1zu", "om1bū", "un1ku", "īb1ni", "ar1ža", "ēt1ni", "is1tu", "un1ze", "aš1di", "it1ni", "en1zē", "en1ģe", "er1pe", "uz1zū", "ul1si", "ur1ca", "ap1fa", "is1no", "iz1ķī", "us1vi", "in1ho", "og1ļu", "ūs1nu", "er1ga", "ir1ze", "ēl1re", "ēs1li", "em1ma", "if1ra", "at1mē", "ur1rā", "at1ho", "ob1ju", "op1ro", "ip1li", "ec1mā", "er1mī", "ak1mu", "es1sa", "īk1lo", "u1džē", "ur1fi", "id1ko", "ār1ņu", "uņ1ģa", "īk1li", "iņ1ķe", "as1kē", "il1de", "ār1kū", "ul1bo", "ez1no", "en1mē", "ab1ro", "uz1gū", "ek1ņu", "ož1ņā", "at1ku", "uk1sa", "uk1lo", "ar1do", "ak1tu", "ār1du", "ik1ci", "al1du", "en1pe", "al1vī", "un1ti", "ul1le", "os1cē", "ec1sa", "īk1ti", "ār1dā", "ēb1ju", "ap1ču", "ub1rā", "iv1pa", "os1ma", "oš1ķe", "aš1pu", "um1pē", "ēp1tā", "ek1si", "īk1ļu", "uļ1ķī", "ūš1ka", "al1pe", "īg1nā", "uz1pā", "āt1rā", "īg1nu", "ik1lu", "āb1tā", "um1ji", "ab1so", "og1le", "ir1te", "īb1tā", "il1do", "em1zē", "ar1ģe", "ot1ve", "ap1gū", "id1vā", "ār1de", "āt1ne", "ēt1sa", "ad1do", "en1ja", "er1na", "ēk1li", "iļ1ņa", "uš1ki", "iz1nē", "oz1va", "ez1go", "us1bā", "ut1ri", "ur1lu", "ib1re", "ej1te", "ok1ho", "en1zu", "eb1rā", "em1tā", "ed1mā", "ah1ti", "em1ti", "um1sā", "az1tu", "ur1sī", "in1go", "ār1di", "ap1ņo", "īs1cī", "al1bi", "as1ni", "ek1se", "al1li", "uk1na", "al1nē", "iz1mē", "er1ce", "ūs1mu", "al1tā", "ul1fā", "ēk1lo", "az1ga", "er1zā", "ir1gu", "ig1rī", "en1dē", "eč1tu", "ep1ļa", "ēk1ta", "uz1dē", "ur1su", "īc1ku", "it1bi", "āk1kā", "āp1tā", "eļ1ce", "ed1rā", "ib1rā", "er1mi", "āb1rī", "iļ1ķi", "or1mē", "em1pi", "os1vā", "as1zo", "af1rā", "ež1pā", "ūs1nē", "ān1ve", "eļ1ķi", "oš1ga", "il1žu", "en1va", "īt1ra", "ak1ri", "up1tu", "ad1ka", "eļ1zī", "ir1nē", "ec1ve", "or1mu", "iz1mī", "īš1ļa", "ab1ve", "er1ri", "ū1dze", "ūz1ni", "in1ka", "īķ1sa", "ud1pe", "us1mē", "iz1rī", "on1rā", "aņ1kā", "at1ze", "āl1re", "em1ja", "im1sē", "īk1lu", "ek1va", "at1bī", "is1lā", "os1pī", "ār1jā", "as1mā", "ol1nī", "īg1ti", "em1po", "īg1tā", "ed1va", "ar1da", "or1po", "us1ni", "al1lā", "os1ti", "eg1da", "uz1bā", "ūt1rī", "ag1ni", "iņ1dē", "iz1zo", "is1me", "at1bi", "az1ti", "og1ra", "en1la", "at1do", "ap1zī", "am1ga", "us1ti", "oš1ķi", "is1tā", "at1la", "ēj1ti", "e1džā", "ec1ka", "or1ķo", "iz1pū", "uļ1zi", "er1de", "uk1ļu", "eh1ni", "ēg1to", "ēl1si", "ēc1nā", "ap1pā", "āl1no", "ar1hā", "at1gu", "ob1ļa", "ap1bo", "uļ1ķi", "uk1lē", "es1bi", "ar1žo", "iv1co", "el1mi", "ēr1ci", "ik1mē", "ap1da", "uz1ķī", "im1pu", "īk1la", "ag1ru", "iz1dī", "er1ņa", "at1ņu", "or1pi", "ēp1ni", "ūt1ņu", "eš1ta", "ar1ta", "un1ga", "oš1ļi", "eņ1ģi", "an1tē", "at1si", "or1te", "iz1rā", "ol1vi", "iv1cī", "aš1ko", "ām1ri", "āz1tu", "ek1sī", "ūk1tu", "ēk1ļu", "ir1sā", "el1ku", "ek1su", "aš1ļi", "iļ1ņu", "iz1si", "ir1gi", "at1ha", "ar1tu", "em1bu", "āt1sa", "ek1ļū", "en1tā", "iz1šu", "as1po", "ir1ta", "ab1re", "it1le", "ūk1pi", "uņ1ne", "aš1vi", "ām1pa", "ār1sē", "ok1si", "og1pa", "ut1rī", "in1ji", "ig1no", "iž1ļa", "ēb1ni", "uk1ma", "ēp1šu", "ol1vē", "ēz1ta", "am1kā", "ed1fo", "āp1ra", "ir1ce", "ul1li", "as1no", "ēt1ra", "on1ta", "ur1ņi", "ur1bi", "iz1cē", "us1ki", "eb1ša", "ož1me", "an1gī", "āv1ji", "ip1si", "ur1nē", "ak1ša", "eņ1ku", "ab1li", "il1vī", "is1kē", "om1pā", "ir1mī", "ip1lī", "ēn1mā", "ēr1šā", "āk1da", "el1nā", "ul1pe", "iš1ļo", "ēj1pu", "āl1lī", "ud1ko", "er1vi", "ak1tē", "īs1ka", "ag1tā", "ī1dzī", "at1vu", "ar1mē", "ar1sē", "eb1lē", "od1kā", "ūr1vi", "ot1ņu", "en1da", "az1du", "āt1nā", "oņ1me", "āl1ba", "eb1šo", "uz1mā", "an1zī", "ag1lī", "ot1bu", "il1po", "ēr1ķa", "ur1cā", "ej1bo", "az1ze", "iz1žo", "op1ļā", "īg1šu", "ēs1lu", "at1mā", "eg1lo", "īt1ri", "ir1tu", "ek1sā", "ik1ta", "eg1lu", "ur1vā", "un1bē", "uz1mū", "ež1zi", "eg1tā", "or1ma", "ob1ga", "av1ko", "el1ba", "ā1dzi", "at1ģi", "āg1ne", "ēr1za", "ed1rū", "iz1hu", "aš1ņa", "āb1si", "uz1ni", "et1pi", "āz1vā", "u1dzi", "en1tē", "āt1re", "ūv1no", "um1su", "iz1ci", "at1ra", "uz1ri", "or1ta", "āk1lu", "ik1po", "āš1ķi", "ār1pe", "ap1ķī", "uz1bū", "uz1pē", "uz1si", "ir1ža", "an1gā", "ap1šū", "i1dze", "at1ju", "at1fo", "is1ne", "ez1rē", "as1gā", "al1gu", "as1ti", "ūš1ko", "es1tā", "al1jē", "in1ša", "ab1le", "i1dža", "ēp1ja", "eb1ļa", "ub1le", "ab1tu", "ād1mi", "iņ1ķo", "ā1dža", "ek1li", "un1li", "ek1mē", "ok1lī", "ēr1pi", "ēr1pu", "iļ1la", "ep1ka", "em1li", "ez1na", "id1ma", "až1ne", "ir1re", "ēt1di", "am1zo", "ūr1fo", "ež1ga", "im1to", "ūp1nī", "at1du", "im1tā", "ūg1šo", "en1si", "al1ge", "al1dē", "eļ1ļa", "ap1vī", "ār1cu", "ež1ģa", "iš1re", "ār1ne", "ul1je", "ar1mī", "oš1ka", "īn1va", "ēr1ma", "ok1nu", "om1ra", "ap1jā", "us1ce", "un1mā", "ek1ši", "ob1lā", "ēr1sā", "et1ne", "uz1de", "il1bo", "it1pā", "ar1tē", "ed1ko", "ol1vī", "ot1rī", "us1se", "ēt1ti", "iž1ļu", "īz1de", "en1sā", "is1la", "ik1te", "ob1to", "ag1lā", "it1ko", "ep1ci", "āg1ti", "ūs1le", "ek1lu", "us1mā", "ār1ze", "īs1tu", "ar1kū", "ir1de", "ed1jū", "or1fī", "ēt1li", "ūs1mā", "el1no", "id1ru", "ij1ko", "er1ve", "ec1la", "aš1mo", "em1zo", "uz1bē", "er1fo", "eš1ķū", "ak1lī", "el1lu", "ib1li", "ek1nu", "ir1ņu", "aš1nā", "ēl1ga", "em1nī", "iz1vi", "us1te", "is1ha", "on1jo", "az1ka", "ās1ta", "aš1ta", "iz1vē", "er1nē", "uļ1va", "ab1lē", "an1žu", "oņ1ve", "il1bu", "em1pa", "ob1se", "em1jo", "īv1su", "er1co", "ur1to", "ēg1vā", "in1ci", "ak1ļū", "uz1šu", "eņ1la", "ūg1šu", "āg1tu", "ūg1ti", "īt1va", "er1ka", "ol1šū", "iz1ču", "us1ke", "ur1bē", "āp1ri", "ak1ļa", "ūs1kā", "os1va", "er1ze", "ēt1nī", "āj1ku", "en1žo", "uļ1ve", "is1ķe", "īg1si", "ur1me", "ur1bī", "on1hī", "an1di", "āj1mā", "ep1ļē", "aš1ņu", "or1vi", "ad1vo", "az1gu", "uz1lū", "it1pi", "ak1šo", "ap1si", "ās1to", "in1te", "am1sa", "ap1šo", "iz1vo", "uz1ve", "uļ1ņe", "uz1fo", "uv1sa", "uņ1ķa", "uz1ta", "ug1ļu", "ek1lī", "ok1se", "ok1vi", "až1ņa", "oņ1sa", "ab1hā", "iņ1ci", "ug1šā", "ek1rū", "ij1pa", "ok1ve", "ap1he", "ut1bo", "el1zā", "or1di", "an1go", "iņ1zi", "ek1mī", "ap1bē", "on1gi", "aļ1me", "ab1ru", "ig1ti", "ur1be", "u1dže", "ek1vi", "ur1ze", "ūm1va", "um1mu", "aļ1bu", "āt1ņu", "om1re", "ug1le", "ez1ta", "am1bu", "at1cē", "ēp1ju", "ez1sa", "at1ni", "an1me", "uz1no", "ār1lē", "ul1kā", "ar1pu", "iz1ru", "an1ži", "eņ1ķē", "od1ni", "is1na", "em1zā", "ār1se", "at1ri", "it1ru", "uš1čo", "il1ve", "al1ta", "oš1vī", "ēr1po", "il1pi", "ap1pē", "is1ķē", "ēr1sa", "ār1ku", "oļ1še", "uz1pi", "av1ro", "og1rū", "īg1ņa", "ī1dzā", "il1ze", "ez1ve", "ūr1te", "on1dā", "up1da", "iz1nā", "im1di", "ul1gi", "az1mē", "ā1dze", "as1lē", "ok1ļa", "ak1ce", "ūn1ve", "ek1lo", "ok1tā", "ap1jo", "ēr1gu", "il1nā", "iz1he", "uļ1ņē", "īt1ru", "īd1se", "ak1rē", "āt1ro", "at1da", "iz1žā", "ol1tē", "ūt1sa", "as1ku", "īn1bū", "īv1si", "or1no", "ot1ce", "ol1de", "ab1pa", "ēr1pe", "oņ1ko", "ok1na", "ev1ze", "us1ri", "ip1ti", "eķ1tu", "op1ta", "īs1ra", "er1zē", "of1rā", "ur1dē", "ot1ka", "is1zi", "ēk1mī", "iz1ne", "ag1rī", "on1si", "ir1pē", "er1ni", "ās1vi", "an1za", "ēl1gā", "ap1du", "ek1lā", "ār1ņa", "um1pa", "an1fa", "ār1pa", "uļ1so", "ar1pe", "eš1ļa", "ēr1vi", "ef1rā", "og1la", "it1pē", "in1je", "ut1ma", "ig1nu", "ēr1te", "az1gā", "āl1de", "ār1zi", "on1fe", "on1ma", "ib1ta", "at1žu", "it1lī", "it1ra", "ok1be", "is1žē", "ēz1ma", "ār1ti", "er1ru", "az1ja", "ēg1le", "an1ni", "az1lē", "uk1ni", "at1lī", "eņ1ma", "ik1vī", "ap1be", "ar1ne", "ip1ta", "ap1žu", "az1pu", "ak1ra", "ul1ve", "is1pē", "ež1sa", "iv1ma", "ār1šu", "ek1na", "os1la", "ik1tē", "ēs1la", "es1la", "at1ki", "iz1lu", "ur1le", "īd1ni", "it1se", "ej1ma", "iņ1si", "ār1lā", "us1va", "us1ci", "if1te", "el1ta", "uz1ga", "ak1tū", "or1ve", "iz1ce", "oš1kā", "ēt1ru", "ad1rē", "et1ņu", "ik1šo", "oz1ma", "ir1ti", "uz1da", "ūm1de", "el1tē", "ēz1ti", "it1rē", "aņ1ve", "ap1zā", "at1ga", "up1de", "ās1na", "ap1tu", "āp1ņu", "in1tē", "ās1ne", "ap1re", "ir1ka", "uz1tī", "uz1go", "at1ļā", "ad1rū", "ir1zi", "īv1mā", "er1sa", "in1ti", "āb1ju", "iv1si", "ep1jo", "e1dzē", "el1si", "ij1žu", "an1du", "iz1tā", "il1lā", "ul1bā", "is1cī", "ag1vi", "āj1rū", "os1lo", "īk1lā", "āb1to", "al1nu", "āt1ki", "eņ1ķī", "ol1kū", "un1pi", "ec1re", "uz1ču", "ul1dā", "en1ro", "ir1di", "en1ču", "ul1jo", "ul1ce", "az1vē", "ap1jē", "āl1zī", "ūš1ļo", "og1ve", "ag1si", "on1su", "og1ca", "ol1gu", "ār1zā", "ig1li", "iš1sa", "ot1ru", "al1vā", "am1tī", "ās1te", "ud1rā", "ēt1ko", "uz1jē", "āl1gu", "et1me", "ed1ra", "at1cū", "ol1zā", "uz1žā", "ul1gā", "ok1ļu", "īv1ze", "at1ve", "en1gu", "um1du", "o1dzī", "up1jo", "ap1di", "ur1rū", "īv1mū", "ūk1to", "iz1ņu", "uz1šā", "uļ1bū", "ez1pi", "in1vā", "al1ja", "in1ve", "iz1bu", "ap1šu", "us1ze", "ob1rā", "ēk1me", "il1le", "ēz1to", "īk1de", "ēj1lu", "ar1zo", "ec1me", "ar1za", "ol1bu", "ēj1pe", "ul1te", "īd1pa", "al1ki", "en1zo", "iv1ka", "āl1te", "ok1no", "a1dze", "it1va", "ār1jū", "un1go", "iz1ko", "u1džo", "up1ti", "on1li", "iz1čā", "il1gā", "er1gu", "iz1za", "in1gi", "ū1dzo", "ur1ni", "um1bē", "ed1mu", "ēk1tu", "ār1so", "id1lu", "ar1me", "ir1ši", "ik1ša", "ej1za", "ap1ha", "īv1lī", "as1ga", "eg1šu", "iz1bā", "ev1ju", "ap1ce", "ar1di", "em1ju", "am1bo", "iņ1ma", "et1si", "āk1tī", "is1da", "id1pu", "iz1le", "et1no", "ul1da", "ur1tā", "em1ga", "ēr1ša", "or1mi", "ak1kā", "iz1mā", "ab1vē", "ok1pi", "ir1bē", "īg1tu", "ir1sī", "eņ1ci", "iz1sā", "uz1he", "eļ1ķe", "eb1kā", "in1če", "ar1mo", "ēp1šo", "eb1rū", "on1cū", "er1pa", "īg1na", "us1ta", "ār1rū", "is1lī", "ēg1li", "eš1re", "uz1hu", "ak1re", "īn1da", "el1de", "um1ja", "ak1nē", "ob1tu", "ek1to", "ēr1bē", "ir1ci", "ih1ti", "ov1nu", "al1be", "aļ1da", "ot1rā", "ēr1ķē", "ud1ma", "āv1ju", "ik1li", "ar1du", "uk1su", "ak1sī", "us1le", "āt1bū", "ug1ša", "ag1mā", "ēr1tā", "uz1nā", "uz1čī", "ēs1tu", "iv1tū", "un1ko", "er1mē", "or1ci", "un1ka", "īt1ci", "ūk1ni", "ār1gā", "oz1ta", "is1pi", "ef1ko", "āš1ņa", "ig1ni", "ur1cī", "aņ1ķī", "ec1ti", "il1tu", "ul1su", "an1jo", "ek1vā", "al1po", "uk1tī", "āj1ni", "ām1ja", "ēr1li", "ah1tu", "at1vē", "il1nē", "an1ke", "as1ci", "er1je", "es1nī", "id1gu", "ān1va", "us1fi", "ār1si", "ēd1va", "ul1vā", "el1ni", "eš1ma", "un1la", "al1ma", "un1du", "an1ho", "ul1šu", "el1mu", "al1žī", "el1rū", "ul1ci", "ar1ģi", "at1vo", "ēr1bi", "il1vē", "us1me", "at1li", "uz1mu", "av1da", "ēg1tu", "uz1ļu", "eg1vī", "ēb1to", "ad1ju", "ir1mo", "or1fē", "el1nī", "iž1ļi", "em1de", "ap1pa", "ūg1ša", "ul1bu", "ēr1mu", "as1vi", "eb1ļā", "as1pi", "ir1sū", "uz1vē", "ās1nī", "ur1zā", "ir1bo", "īk1da", "it1nī", "ar1pa", "el1do", "ēr1le", "or1fi", "ēt1la", "aļ1ļi", "am1bā", "āš1ņā", "us1jo", "eļ1ni", "eļ1nī", "us1ja", "in1gu", "ig1nī", "ed1ru", "uj1bi", "os1te", "em1va", "ar1lo", "ig1lu", "ak1lā", "un1ba", "iz1bū", "am1ze", "is1ti", "it1ne", "uz1sā", "ep1lē", "iz1bī", "ār1nē", "eg1la", "iz1du", "ēg1dē", "ān1za", "es1lo", "im1de", "at1hi", "ar1ķi", "iņ1ve", "ēr1zē", "uz1lā", "ir1vi", "ār1ru", "oš1ļu", "at1te", "at1žā", "un1su", "on1tā", "od1la", "ār1ģe", "ēs1lo", "al1kā", "aš1pa", "ūz1ne", "ār1čā", "ur1je", "uļ1ķa", "ak1ņā", "īr1fa", "es1kū", "ār1ši", "ar1ba", "ār1ša", "ir1dī", "id1nī", "uk1da", "uz1žu", "ār1va", "ot1ra", "am1do", "iz1ģi", "ep1lī", "em1si", "āl1ta", "in1su", "ol1ni", "ub1ļu", "iz1ņe", "ap1ča", "el1za", "ob1jā", "uk1tē", "ap1mā", "al1ri", "ot1za", "ir1dā", "av1ni", "ūr1mu", "it1mi", "og1ļū", "er1za", "ek1lē", "ūg1te", "it1mē", "oš1ņa", "āk1le", "aļ1čū", "ān1lī", "e1dzā", "um1be", "et1rī", "ek1sa", "al1le", "uļ1ka", "iv1ni", "ēd1mē", "il1dī", "ul1ti", "ot1le", "at1gā", "iņ1sē", "at1ca", "aļ1rā", "ab1su", "īn1bu", "ip1rī", "uz1ra", "uļ1de", "em1ko", "at1čo", "op1vē", "a1džu", "uz1ķi", "ir1ma", "ur1bo", "iz1pe", "em1tu", "āč1sū", "um1šo", "ap1ķē", "āl1sa", "as1fa", "ož1ņa", "em1dī", "ūz1da", "el1pi", "ir1sa", "āz1mo", "ed1ro", "il1si", "īk1na", "uz1cu", "os1pu", "ag1šo", "iv1va", "īd1vi", "iņ1ro", "ār1ču", "id1ne", "eg1pu", "um1ko", "uš1ķo", "ār1ka", "īļ1bā", "ak1ve", "ez1gi", "or1la", "aš1pā", "īg1va", "ir1šī", "iļ1li", "ēr1sī", "um1ši", "īm1ju", "ub1je", "ep1li", "at1po", "āl1ma", "am1bī", "iņ1ķi", "āj1ra", "as1tū", "eš1tū", "en1te", "īv1ma", "et1nī", "āb1pu", "os1ku", "is1tē", "ok1ļi", "iz1rē", "iz1ži", "el1nu", "iz1pā", "ul1tā", "oļ1ko", "ēv1vā", "os1lā", "or1tī", "āb1tī", "af1ro", "ēl1zī", "āl1ru", "an1šu", "us1tā", "or1do", "er1ci", "īs1ri", "ēd1ra", "im1da", "ar1be", "il1ku", "iz1mū", "it1rā", "up1ša", "uz1sū", "us1ru", "ir1do", "ur1ga", "ek1re", "al1nā", "ok1ni", "ek1šu", "ob1rē", "ir1žo", "ār1dī", "eļ1ma", "aš1ci", "il1pa", "ū1dzu", "ek1ša", "ār1mo", "il1gi", "uš1ņa", "el1mū", "ās1ka", "ēk1ša", "or1ķi", "ār1nu", "az1ru", "ās1tī", "im1šo", "um1ze", "īv1so", "ūt1nī", "ap1fo", "ag1šu", "il1ma", "īc1ga", "ēr1tu", "es1mi", "ūs1mī", "īs1ti", "ej1vi", "uz1na", "on1na", "id1ro", "el1mē", "os1pe", "op1lu", "ēc1ka", "ar1pā", "up1ci", "ūs1ma", "ag1re", "ūž1ņa", "ol1ga", "an1ta", "un1di", "al1ko", "ul1lā", "ir1ko", "ī1dzo", "os1vi", "es1lē", "us1ma", "ec1mo", "iz1ve", "az1ra", "āl1cu", "id1rā", "an1ža", "oņ1zī", "um1tā", "af1ra", "um1vā", "ār1rā", "ab1vī", "ū1dzī", "i1dži", "ēg1šu", "in1ža", "ed1ņe", "ec1tū", "or1ne", "eg1ma", "āp1ja", "ār1šī", "ep1re", "is1ve", "ol1fe", "op1ci", "as1te", "ār1šū", "ež1ku", "iņ1tū", "es1te", "ek1ta", "ēl1cu", "ār1na", "us1jē", "il1te", "āv1ra", "āv1ce", "aļ1va", "um1ni", "ak1ni", "ār1rē", "et1ri", "u1dzī", "on1tu", "up1le", "am1bē", "in1to", "ād1nī", "in1ta", "ol1ma", "īk1bu", "an1žā", "āb1ma", "ur1ķī", "ak1vi", "at1nu", "is1bi", "ol1ve", "og1ne", "īv1bi", "ok1lu", "ār1čī", "ug1ti", "īn1ra", "ig1to", "uļ1ģi", "ār1ma", "um1jī", "ē1dze", "ap1rē", "is1nā", "ūp1ko", "un1si", "il1tā", "ap1ņu", "ol1be", "os1mi", "ig1la", "īl1ni", "or1bū", "ip1ru", "ak1cī", "eņ1ķa", "ez1gī", "oņ1sā", "āz1ni", "ān1pā", "us1pu", "ād1ne", "us1po", "īn1de", "āk1ba", "ā1džu", "ur1sē", "at1ba", "āp1ti", "ūv1vi", "ah1tā", "ut1nē", "em1be", "ap1na", "ul1pa", "ob1je", "āk1ļa", "ib1ti", "os1ve", "ud1vi", "en1pā", "āv1ni", "iz1vā", "eg1ro", "op1si", "ap1pu", "am1ni", "at1ta", "ak1li", "es1ne", "uv1ju", "ar1rī", "i1dzu", "es1rē", "ob1lo", "es1li", "og1ma", "uš1ko", "an1zā", "ig1tu", "an1be", "im1pē", "ic1sa", "eb1ka", "uz1zī", "oš1ma", "at1nī", "am1dē", "uļ1ba", "ār1mu", "up1jā", "ār1he", "es1mē", "er1ha", "ēl1di", "ih1re", "op1ja", "il1go", "uv1ve", "ul1pu", "il1du", "aš1mi", "āl1ve", "ār1lu", "ez1pu", "at1so", "īs1ca", "ek1ni", "ēg1nā", "ūt1ro", "ap1ķe", "ab1pu", "iz1nu", "iz1ņē", "ēk1ne", "ež1jo", "es1po", "ās1no", "ūv1ni", "aļ1sa", "aļ1ķī", "ē1dzo", "ip1no", "ap1vā", "īk1tā", "ār1čū", "uz1ze", "uz1nī", "on1du", "ap1hu", "ez1nā", "uk1ļi", "ul1bi", "ad1pē", "at1pē", "ēr1zu", "uz1čā", "ēs1to", "aš1gā", "āt1no", "en1vē", "is1be", "et1rū", "āk1ta", "uk1tū", "ij1ni", "ug1šu", "us1ķi", "ij1ve", "el1šu", "ul1vē", "ēt1rī", "ag1ļē", "es1pe", "ēr1šo", "ak1rā", "eļ1pa", "ec1rī", "ez1lo", "ēk1lu", "el1va", "ār1ķi", "eļ1po", "am1pa", "ūt1ni", "iš1zi", "id1mē", "uz1dū", "ēk1la", "iņ1ta", "ol1tā", "īk1ša", "īt1nē", "iļ1jū", "it1tū", "is1pa", "ap1sā", "iz1so", "ež1ģī", "ud1ri", "oņ1nā", "am1lū", "iz1pē", "ak1vā", "al1te", "ad1ri", "ak1ga", "ār1bā", "ap1rī", "or1bē", "af1ti", "uz1du", "at1ši", "ug1tu", "iv1zi", "an1se", "eg1to", "ūd1rā", "os1lē", "ār1ri", "el1ga", "ēr1de", "ir1tē", "em1ļa", "us1na", "im1do", "āt1ve", "ur1ma", "ur1ģi", "īg1ni", "īd1ko", "ūd1ra", "iz1vī", "ed1rī", "at1jā", "il1mo", "e1dza", "ēk1to", "ār1ģē", "iļ1ņi", "iz1bo", "as1ro", "um1zo", "or1pu", "ar1kā", "ik1ko", "ap1ca", "īs1ba", "as1vā", "at1mo", "uz1pu", "ēn1ga", "am1ba", "uk1ši", "ag1to", "iz1zi", "uz1tu", "ul1ni", "er1lī", "eš1ķē", "en1zi", "at1zo", "ir1ša", "ez1si", "us1so", "am1fī", "ig1tā", "e1dzu", "ap1kā", "ār1ro", "es1vi", "ag1la", "ir1mē", "ad1ve", "it1di", "um1no", "ap1lā", "in1ga", "op1šo", "a1džā", "er1po", "uz1bī", "un1ra", "uk1ta", "ar1ve", "īn1sa", "ap1vi", "ēr1ce", "og1lū", "aš1li", "aš1po", "e1džu", "ap1mu", "ag1lu", "or1be", "am1ne", "ol1di", "iņ1ģe", "it1na", "eļ1ņu", "uz1lu", "ās1me", "ār1sī", "ur1ku", "ur1pe", "ep1na", "ut1na", "ac1da", "uz1le", "ik1ka", "ar1fi", "ab1si", "er1zī", "ār1ļu", "ap1ja", "ul1tu", "is1di", "an1ge", "ar1lī", "ug1tā", "on1so", "ud1kā", "eļ1ko", "iš1ķī", "um1po", "ik1ļa", "ūg1tu", "ār1gi", "ēr1ni", "et1va", "ap1lo", "ēr1ķī", "iz1tu", "īv1la", "is1ju", "od1ba", "az1ro", "ūs1di", "up1tū", "ūs1nī", "eļ1lo", "ap1bī", "um1ta", "īs1tī", "eb1rī", "uš1ķē", "ep1tū", "eb1lī", "or1že", "up1ra", "ēt1ma", "ak1ro", "ir1la", "at1či", "og1lu", "ūs1ku", "ut1rā", "il1no", "ec1de", "an1bā", "az1vi", "ān1ga", "ēj1ce", "eļ1ve", "er1zi", "el1sa", "īk1ta", "īt1rā", "ār1fe", "um1ka", "ir1si", "ag1ļi", "ip1ka", "ak1šā", "ar1ki", "ek1ļā", "ar1bā", "ed1da", "os1le", "iv1ja", "iv1kā", "ūk1šo", "uļ1vē", "ēk1tā", "oš1ņu", "og1de", "ok1ļo", "ul1dē", "ik1sa", "am1pē", "ūs1no", "um1to", "us1ču", "od1ka", "as1lo", "op1mī", "up1to", "oļ1ti", "ū1dzi", "īr1ma", "os1kā", "al1dī", "ok1va", "el1tu", "ap1pi", "is1ca", "os1ce", "āl1vi", "ir1mi", "uš1ķi", "oz1tā", "is1te", "ig1ša", "at1rā", "ar1žu", "os1kū", "im1ša", "ār1to", "um1bo", "an1sa", "aļ1ļa", "ēk1di", "āj1ka", "ak1tī", "ar1tī", "os1tā", "eg1re", "im1sa", "ul1sī", "ag1me", "il1lē", "on1ce", "iz1jā", "iž1ci", "or1ku", "az1no", "im1pā", "of1se", "op1ļē", "āl1ka", "ēs1ti", "oņ1de", "er1la", "ār1ņē", "uz1ku", "ab1pi", "ar1na", "em1ša", "er1ku", "im1pe", "in1tī", "es1mī", "īv1do", "uz1mo", "uš1mi", "ak1lē", "aļ1la", "up1lā", "ok1ta", "ūv1me", "em1žē", "āl1rū", "is1pā", "ar1le", "eš1va", "eņ1rā", "ad1ne", "on1ku", "īs1si", "ab1da", "il1lu", "ar1va", "an1ko", "ez1bē", "ež1li", "il1ga", "at1tā", "iz1kū", "ar1nu", "ir1mā", "ad1je", "ik1ra", "an1bu", "op1ri", "ik1vā", "ek1šē", "ap1ru", "uz1ņi", "iz1be", "at1vi", "it1ro", "ur1tē", "en1po", "ap1jū", "iz1ģī", "ol1rā", "ar1go", "ah1lo", "im1pa", "ī1dzi", "us1lu", "ir1žu", "at1cu", "am1vi", "ag1ti", "im1ju", "ep1ļā", "ec1ga", "on1di", "ān1kā", "is1fu", "at1ņē", "āņ1ti", "at1čū", "az1pa", "ik1pa", "ov1bo", "ad1si", "er1lū", "ir1bā", "um1tu", "uj1ko", "ež1vī", "ab1lo", "ūk1la", "os1pa", "ul1to", "ap1žē", "āv1ma", "ez1zo", "eg1mā", "ap1to", "iz1ku", "os1lu", "or1vā", "ok1rī", "os1to", "al1di", "is1lu", "ē1dzi", "āt1li", "aļ1li", "an1ču", "eb1la", "eņ1ķo", "ak1rū", "en1ri", "ez1be", "ēr1nē", "eļ1ņā", "ab1rū", "un1sa", "iz1zī", "až1da", "ūv1so", "aš1ķī", "it1kā", "ap1bu", "ē1dzē", "a1džo", "īb1šu", "us1lā", "ad1re", "ej1le", "ek1ro", "at1su", "ap1ļu", "ež1ci", "er1ra", "ez1vē", "aļ1ko", "og1re", "ur1ja", "er1zu", "ār1me", "av1tī", "on1tē", "at1fi", "ir1bi", "ob1li", "uz1jū", "aš1ļa", "āb1ra", "ur1bā", "ap1nu", "al1ģi", "an1vī", "on1dē", "ep1tē", "ez1de", "um1de", "up1ju", "īg1te", "od1de", "ok1sā", "at1jē", "ār1zu", "um1di", "eš1di", "eļ1mo", "iz1de", "in1gā", "ač1gā", "ip1se", "iš1ķē", "ūn1ze", "āk1to", "eš1vī", "ēņ1ve", "ap1la", "oņ1ni", "im1ni", "ut1ro", "et1de", "ep1pa", "aš1re", "up1ja", "us1pi", "uj1la", "āt1ti", "op1le", "an1nu", "ēj1mā", "as1lā", "am1mi", "az1dē", "am1po", "īk1pi", "ūk1tā", "ār1go", "ap1ma", "uf1ra", "īg1ta", "ad1ca", "ār1ķē", "ek1vo", "am1te", "iz1zā", "ar1ke", "ēr1mā", "en1dā", "eg1lī", "at1ci", "ur1ci", "āg1la", "af1ri", "īk1ze", "er1cu", "ad1va", "el1ci", "ep1no", "ag1ne", "ār1zī", "eg1rā", "eš1ķī", "an1ti", "iļ1dā", "ud1mu", "āl1li", "ub1ve", "uz1pe", "uš1ķu", "eļ1tē", "or1čē", "og1pu", "eg1nē", "op1la", "al1dū", "ef1rē", "īt1ni", "ek1nā", "āz1be", "er1ti", "er1no", "os1fo", "ēr1ga", "at1ka", "er1go", "or1ķe", "er1mo", "un1da", "an1žo", "ez1mi", "ef1pa", "ek1rī", "ūp1li", "eļ1te", "ār1tā", "ot1ri", "ud1li", "us1zā", "as1tē", "iv1da", "is1ko", "il1za", "īg1to", "uz1bu", "er1tē", "ap1su", "es1zi", "u1džu", "uk1li", "iz1lū", "it1ti", "īk1kā", "es1pī", "uz1vu", "ūž1di", "ūs1li", "āl1po", "ok1re", "āk1ļi", "īž1me", "eš1ķa", "at1ķe", "āt1rī", "iņ1ši", "ap1ga", "um1jā", "īm1ja", "ez1ro", "iz1jē", "es1sū", "eš1vā", "og1ri", "ār1lo", "al1so", "iz1lī", "is1kā", "ep1ti", "eg1bi", "ār1la", "ar1vo", "ēp1si", "ār1gū", "eļ1ga", "uz1kū", "iļ1le", "o1dze", "an1sē", "at1no", "ok1ma", "al1sa", "ek1ri", "ep1le", "en1rī", "eš1de", "ez1jū", "ik1sē", "al1gi", "ep1ro", "īv1ci", "id1po", "oņ1pi", "od1ra", "ej1pu", "ir1go", "el1ma", "in1se", "et1sa", "īb1ša", "aļ1ķa", "ol1la", "at1rī", "at1dē", "īļ1si", "ār1ņo", "ur1mi", "ep1lo", "āg1šo", "ec1to", "ob1ve", "up1tā", "āt1ra", "os1ko", "al1zi", "el1du", "iz1vu", "ār1pi", "at1šā", "ul1tū", "il1dē", "ap1mī", "ar1lē", "er1tā", "us1mu", "is1hu", "oņ1si", "āz1ve", "īp1ne", "āz1to", "iš1ma", "ol1vā", "em1zī", "āl1be", "al1šo", "us1ko", "es1ga", "in1fa", "āj1vi", "at1di", "at1ži", "ap1bā", "ah1ta", "ēr1nā", "el1me", "īs1le", "iz1ja", "ēb1ti", "es1ka", "ul1be", "ep1ri", "ež1zī", "ot1vē", "as1la", "at1ru", "er1mā", "ed1re", "ēj1ma", "av1ci", "ak1do", "us1nē", "eš1ga", "ap1cī", "āt1zī", "as1pa", "āk1ša", "es1ta", "ib1lo", "er1ģi", "ēr1mī", "eļ1di", "at1lā", "ak1te", "aš1vī", "og1li", "al1ga", "aš1kī", "ār1fi", "es1to", "ūt1pa", "on1ko", "ār1ci", "ām1ju", "el1ce", "īs1tā", "ec1ni", "al1ku", "at1hu", "er1fe", "ār1mē", "ēr1mū", "ul1di", "on1ga", "ār1pē", "ar1pē", "ās1nā", "am1fi", "āt1pe", "an1co", "oš1ņo", "eļ1ņi", "aš1no", "īr1na", "āk1šo", "et1ko", "ig1ma", "an1te", "an1ba", "e1dzī", "ek1šo", "um1bu", "ir1gā", "om1le", "ūm1ve", "al1na", "iz1va", "og1lā", "ūk1ta", "il1so", "uz1ma", "il1ša", "oš1ķū", "at1zī", "ās1mo", "ēr1na", "ūž1ņo", "um1nī", "eg1vi", "al1tū", "on1se", "iz1ža", "ek1te", "ep1lū", "ep1se", "os1tī", "as1ta", "ār1be", "iz1ša", "oš1ķo", "āg1ri", "īv1ku", "āt1na", "aš1ķi", "ēr1dē", "ir1tā", "ak1sa", "as1to", "az1jū", "un1me", "ap1pū", "ep1to", "ur1ve", "en1ma", "ēc1na", "eņ1ķu", "ār1le", "um1zi", "uz1cē", "ez1pa", "os1ka", "ab1rī", "er1ģē", "et1ra", "īt1na", "ap1čī", "ok1ri", "eš1pe", "iž1ma", "is1ša", "āz1ģe", "on1dī", "ep1tā", "am1zi", "īg1lo", "iv1re", "at1lu", "āl1ci", "ez1vā", "iz1ti", "al1mā", "ug1li", "il1bi", "iļ1ķu", "aš1ņā", "iv1ba", "ik1ši", "īk1me", "ap1kū", "un1gi", "uk1nā", "al1vo", "up1lo", "oz1vē", "ēj1ka", "ap1rā", "ad1li", "uz1ju", "el1pa", "en1li", "at1ču", "īk1bū", "at1dā", "up1ta", "iļ1ņo", "ar1pī", "ak1vē", "ēc1ga", "eb1ne", "af1li", "ol1ka", "ez1fo", "in1ki", "an1gi", "ak1lo", "up1si", "ej1va", "ag1tu", "ek1ļo", "iž1vī", "as1zi", "ir1lī", "en1du", "uz1tā", "if1lo", "eļ1ļo", "ob1lī", "um1sū", "on1ci", "an1de", "es1lī", "ēb1si", "ib1tā", "il1da", "uķ1ko", "uk1ša", "āj1pe", "ej1bu", "ūv1ka", "ar1fa", "oz1ve", "īk1rā", "up1mā", "ūs1to", "ir1nī", "ag1lo", "oņ1ra", "iz1sū", "īg1ce", "an1dū", "iņ1vī", "e1džo", "ār1da", "īn1mā", "ār1ju", "er1vo", "ar1se", "i1dzē", "iļ1pi", "it1pu", "ur1sa", "id1da", "iš1ko", "eš1ķo", "ār1po", "ev1kā", "īk1rū", "os1ri", "ik1no", "ār1tu", "ur1ko", "oz1tu", "om1pi", "ar1šē", "on1nu", "uņ1ģi", "ur1šu", "ab1rē", "īr1kū", "en1cē", "em1je", "ap1va", "av1ļa", "aļ1bi", "uz1hi", "in1ča", "on1fu", "ār1sā", "oš1mī", "uz1rī", "il1ka", "un1tē", "as1mi", "iz1ga", "ār1mā", "āk1tā", "ik1lo", "im1pi", "or1pa", "aš1ro", "um1mē", "īn1te", "ež1rū", "ab1sa", "uz1mē", "a1dza", "as1sa", "un1gā", "ag1mī", "eš1mī", "eg1ša", "ak1ru", "ēt1ri", "or1se", "us1no", "it1mā", "uz1po", "in1čo", "iz1su", "is1to", "uk1vi", "ir1to", "um1ju", "uļ1sū", "in1dā", "um1tē", "ar1šo", "īk1ko", "er1me", "uk1si", "īv1pi", "ēr1mē", "as1tī", "in1kā", "en1za", "al1bu", "or1ģi", "a1dzī", "en1sa", "īs1ta", "eļ1de", "ū1dzē", "uk1tā", "ec1vi", "ūk1le", "ap1čo", "ēd1ni", "ān1ce", "if1tu", "īk1di", "āl1va", "ap1gu", "en1de", "ar1de", "ap1mū", "on1te", "es1da", "ud1ci", "at1se", "ūp1ni", "in1ha", "ap1de", "al1ci", "ir1pu", "um1va", "ok1tu", "ug1lī", "aņ1da", "ep1ša", "el1su", "īk1si", "eņ1ģe", "aļ1fi", "er1si", "op1ju", "od1le", "īt1pa", "ak1nā", "ap1nē", "ar1dī", "ek1zē", "at1zi", "āt1ka", "āl1mē", "em1za", "um1pu", "ap1žo", "ēj1sū", "en1le", "iz1lē", "er1zo", "um1dā", "ur1žu", "eh1no", "ab1ka", "īs1vē", "īb1šo", "as1se", "ul1lē", "ir1ki", "at1ča", "uļ1ķe", "āz1ma", "ip1nu", "ar1nī", "īg1lī", "ad1ra", "ez1ti", "īk1ra", "ūr1zi", "ap1vu", "ib1la", "īt1kā", "iļ1da", "ēl1ko", "ob1la", "o1dza", "ep1nī", "es1ri", "up1ji", "eļ1ku", "ik1ve", "es1vē", "er1lo", "um1do", "ik1lā", "em1žo", "is1so", "om1ju", "ij1ka", "en1ni", "āz1ne", "īv1di", "if1to", "un1je", "er1da", "en1kā", "ūt1ra", "en1ge", "āp1ji", "oņ1kā", "al1vi", "ēr1zā", "en1ga", "īr1ku", "ar1te", "up1rī", "or1ti", "ar1ķē", "el1lī", "iš1la", "an1no", "ec1pi", "ēk1šo", "an1da", "āp1šu", "iļ1ru", "ež1lī", "ed1rē", "ed1ka", "at1kū", "īb1si", "ež1ņa", "am1va", "un1dī", "ār1nā", "al1me", "uļ1ze", "es1tē", "āj1ba", "āp1šo", "ap1po", "en1zī", "er1sī", "ig1ro", "at1bu", "um1sē", "el1cē", "ās1ni", "ar1pū", "od1ve", "oz1ga", "in1do", "uz1mi", "un1mē", "uz1ka", "ig1ne", "et1pa", "ol1si", "ab1ra", "on1to", "os1kī", "aš1ķa", "iz1se", "īn1pi", "eb1ru", "es1nu", "ūt1ru", "ik1ri", "as1lu", "iz1la", "uz1ci", "at1tē", "on1da", "āp1ša", "ēp1ne", "or1ce", "ep1rā", "ūr1mā", "ež1vā", "up1jē", "eh1lo", "īg1ņā", "us1li", "ec1tē", "āt1mā", "ak1nu", "u1dzē", "ez1ne", "ar1dē", "ēk1da", "et1nē", "ež1ro", "ir1kū", "ap1lū", "īs1tē", "us1ba", "ēj1zo", "ī1dzu", "at1le", "ēg1na", "ep1tu", "i1dza", "af1ta", "ep1de", "īļ1ve", "od1ro", "um1šā", "en1se", "eņ1ra", "as1tu", "at1pu", "eļ1da", "āb1ba", "iš1ķa", "āg1ša", "il1bā", "ūš1tu", "ud1sa", "at1ģe", "um1šu", "aš1mā", "en1so", "eg1ba", "am1re", "ud1ro", "ov1na", "ik1re", "ār1rī", "ār1ni", "ež1ra", "i1dzo", "īs1to", "an1še", "ar1ju", "iz1ģē", "az1dū", "ēr1me", "oņ1ga", "ēr1tē", "id1mo", "īs1fi", "at1mī", "al1se", "il1ha", "ep1ja", "il1ce", "of1ra", "um1pi", "uz1rē", "aš1ņo", "el1ža", "ap1ņē", "ar1bu", "iņ1re", "ij1pu", "er1žo", "ol1ta", "ez1va", "aļ1ķi", "il1nī", "ag1no", "ul1lī", "ib1ri", "āt1ri", "um1pī", "ūg1tā", "is1fē", "ak1su", "al1to", "el1žu", "ap1ģē", "iv1ga", "al1za", "aļ1dē", "ēr1si", "ār1ņi", "et1rā", "aļ1ņi", "um1zu", "ūg1si", "az1mā", "in1ko", "īg1ri", "il1šu", "er1va", "uz1tū", "ec1cī", "īs1li", "a1dži", "u1dzā", "am1žu", "uz1fi", "iz1nī", "ir1dē", "ev1ga", "iz1ča", "iz1pu", "up1šu", "iz1gu", "in1ce", "uz1dī", "āb1šu", "or1ba", "i1dzā", "a1dzo", "es1tu", "āz1ti", "el1mā", "ap1vo", "ub1lē", "aš1ķē", "īs1vi", "en1jo", "as1ki", "ik1tī", "ok1le", "ur1ķu", "in1gī", "ek1ļu", "uz1to", "uk1le", "ir1bu", "āg1to", "uz1ne", "as1ko", "ek1rē", "ur1do", "ob1ta", "ār1jo", "uk1no", "ot1lī", "ur1te", "uz1re", "at1ma", "at1žo", "ēd1ne", "at1na", "us1ka", "al1vu", "ib1šu", "iz1dū", "ug1ko", "uz1vo", "at1zā", "eg1zī", "ūš1ga", "il1ni", "uz1ro", "el1pu", "ūg1to", "os1mā", "ul1ma", "as1ma", "al1ni", "ut1ra", "ug1šē", "at1sē", "in1fo", "eļ1bū", "uz1jā", "ēt1va", "ēk1ba", "ik1di", "īg1le", "op1ne", "ur1vī", "ār1dū", "ir1cē", "ēr1sē", "as1ja", "es1mo", "il1ci", "az1li", "em1šu", "ap1lu", "er1nā", "ot1rū", "uz1čo", "as1dē", "os1mo", "aļ1ga", "un1te", "at1ne", "om1ba", "ok1ra", "en1vā", "ap1sē", "an1dē", "ol1dē", "ap1ļa", "ek1sē", "ad1so", "iz1po", "uz1lī", "īk1ne", "ud1ra", "uz1ko", "ur1ta", "ep1šo", "ud1mi", "ār1ki", "eļ1vi", "ūk1ti", "īg1ro", "iņ1ti", "ur1du", "eg1tu", "ār1bo", "es1mu", "ar1ce", "os1ki", "iz1tē", "ev1mā", "ān1ko", "er1ge", "ē1dzī", "en1ba", "īv1ba", "ot1mu", "ēb1ta", "īn1rū", "ūk1ņa", "op1jo", "is1lo", "ob1ru", "ur1li", "ēs1le", "ur1lā", "ēj1rā", "ul1ko", "āg1tā", "iv1ku", "ām1ga", "o1dzē", "ī1dzē", "ir1za", "ip1rā", "at1tū", "iv1vi", "op1lū", "āp1si", "em1me", "ap1žā", "ār1mū", "ik1šā", "il1ba", "an1ze", "on1do", "il1he", "ek1ļa", "el1nē", "āk1re", "uk1se", "ēr1so", "ef1re", "ūt1rā", "ip1tu", "am1pā", "ak1ņu", "at1me", "ūr1ma", "ik1tā", "am1pu", "az1de", "en1ki", "iv1mo", "ar1ge", "īb1ti", "uj1ma", "os1ta", "as1na", "ēs1ma", "om1bo", "eb1rē", "er1ža", "āt1nu", "ež1ko", "uz1tē", "up1ni", "ig1nā", "an1na", "az1ku", "on1tī", "ar1sī", "ek1tū", "eņ1me", "os1vē", "ak1šī", "at1rē", "er1bu", "eļ1ņa", "og1ro", "īt1lī", "ij1ro", "ūk1si", "ār1žā", "ap1dā", "uz1pa", "ek1ļi", "iz1tū", "aš1ķo", "im1ta", "ik1nā", "at1jū", "ēg1no", "ā1dzē", "em1te", "er1ģe", "āš1ņi", "eļ1ta", "ap1lī", "ul1la", "uz1bi", "īt1di", "ud1bā", "en1tu", "un1ne", "uk1so", "īv1ti", "ol1je", "ed1li", "iz1ni", "ēr1šu", "eb1si", "ēv1ze", "uz1za", "er1ne", "om1pa", "ec1kā", "in1sa", "uz1ža", "ūs1ta", "ap1ļā", "ūv1ga", "iv1ri", "aļ1ba", "ob1ša", "ir1zī", "aš1mē", "āt1ru", "az1sa", "iš1ķi", "ok1nā", "or1mo", "iļ1ļa", "iņ1ru", "uz1gā", "uz1vā", "it1ri", "om1de", "is1cē", "is1mi", "op1ga", "at1čī", "ar1nē", "uz1ho", "at1bā", "ir1ži", "el1fi", "ir1ne", "ar1dā", "uz1fa", "ap1ki", "ur1dā", "āl1ze", "ār1li", "or1bu", "ap1ti", "um1ga", "ek1ņa", "al1pi", "us1fa", "ār1vo", "uz1ģi", "e1dži", "ig1nē", "uz1te", "ot1va", "ag1ļu", "os1pā", "īk1ņā", "īk1šu", "e1dze", "iš1jā", "ek1ve", "at1ļa", "āl1si", "or1zā", "ul1lo", "ab1va", "aņ1ķi", "ār1ķe", "ur1vo", "ap1ze", "em1ni", "oš1ņā", "ūž1za", "ēr1cē", "ap1hi", "ek1nī", "uz1ņe", "in1tā", "un1cē", "ib1lā", "īr1ga", "is1ku", "uz1zo", "ug1ši", "am1zā", "as1me", "un1dā", "ak1sā", "it1ļa", "ur1nī", "uz1ņē", "ēz1tu", "ab1tā", "ār1šā", "us1sa", "īg1šo", "eņ1ca", "op1lo", "āp1to", "el1mī", "eč1zi", "eg1ku", "al1pē", "ik1rī", "al1vē", "it1ļo", "em1mē", "iz1ba", "is1dā", "īd1mē", "en1ve", "ap1ju", "ol1ko", "ag1le", "ap1tē", "āt1nī", "āv1va", "et1so", "an1hi", "eš1kā", "ir1šu", "es1lā", "os1me", "is1tī", "ur1ne", "et1nu", "ap1mi", "ūz1ma", "or1mī", "as1za", "an1cē", "es1ni", "al1fa", "ēr1bo", "ur1ģe", "āg1si", "is1de", "īs1sa", "at1mi", "ēš1ļa", "ūg1da", "ūs1nā", "ār1ra", "un1kā", "ok1li", "ē1dzū", "ēg1nu", "al1bo", "op1da", "et1ķī", "ur1pi", "ār1pu", "ok1sī", "it1ļi", "ap1sa", "ip1ci", "ar1ša", "av1ma", "ec1vā", "iv1do", "ūs1ti", "at1dī", "ār1žē", "am1na", "ak1ļā", "iņ1me", "uz1ha", "ar1mi", "eļ1ļi", "ēp1tu", "of1to", "ag1rā", "il1zī", "ēg1šo", "il1sē", "is1ba", "ap1ko", "ug1šo", "ot1mā", "iž1ni", "ār1tē", "at1šu", "ep1šu", "uz1ģē", "ag1lū", "up1lu", "ām1gā", "ar1šī", "it1ve", "ak1ma", "už1pu", "uk1te", "uz1lo", "ik1ce", "eļ1rī", "et1na", "āl1ra", "oz1ti", "iz1ze", "ap1zo", "ir1nā", "ad1le", "ēt1ho", "ad1mo", "un1ta", "a1dzi", "az1ko", "āl1pa", "uz1nē", "ug1ma", "en1di", "iz1šū", "ag1rū", "īr1ra", "as1pē", "ok1ce", "en1cī", "il1mā", "op1su", "al1šu", "of1li", "ev1ma", "ab1ļā", "a1dzē", "ud1ru", "ir1zā", "od1bi", "ol1dā", "ap1ci", "il1dā", "ok1pe", "an1ki", "as1vī", "od1ru", "ur1pā", "āj1ga", "ēr1da", "ep1ju", "iz1re", "iņ1ka", "ār1mī", "at1lē", "ir1sē", "iš1ļa", "ēg1ša", "āš1ņu", "ar1gā", "av1la", "aļ1ni", "iz1fo", "il1la", "er1mu", "up1šo", "is1ma", "āl1sā", "ap1ļē", "ur1dī", "as1tā", "ul1tē", "es1cē", "ud1lī", "on1ve", "uz1ģe", "ek1me", "āš1ņo", "ek1la", "āl1ga", "iz1di", "on1vo", "er1tī", "on1ja", "uļ1žo", "ār1fo", "ak1rī", "ev1bi", "ij1ci", "eš1ra", "um1jo", "az1me", "im1šu", "aš1da", "or1tē", "uz1rā", "ār1vu", "al1ba", "in1ge", "ab1na", "an1ci", "īs1lā", "il1šā", "am1za", "al1jo", "ek1le", "im1dā", "iņ1de", "oļ1va", "iž1ra", "am1mē", "ok1rā", "er1le", "ok1vē", "ok1rū", "uz1ķē", "eb1ti", "āv1la", "a1dža", "iz1ļu", "on1ka", "uz1do", "ār1ķī", "ē1dzā", "an1nā", "āģ1zo", "uz1ča", "īt1bi", "am1da", "at1kā", "ēj1ko", "ul1du", "op1lā", "uk1šā", "ik1nu", "oh1ro", "at1ti", "eļ1dā", "it1li", "uļ1ļa", "ūs1mi", "at1he", "at1to", "ec1pa", "aņ1pa", "om1bu", "ig1tī", "ap1me", "er1so", "an1tu", "on1fi", "aš1ni", "īv1ja", "oņ1ma", "il1rū", "ap1pe", "em1di", "ār1pī", "er1žu", "it1rī", "al1tu", "iz1kā", "an1gu", "im1tu", "an1va", "īn1dā", "el1ti", "ap1sī", "ēr1be", "ez1ga", "ēt1ki", "us1tē", "īn1ko", "el1ze", "ab1lī", "ar1tā", "aš1ķū", "en1vi", "il1fa", "ik1ti", "eg1ri", "et1vā", "us1mi", "um1te", "eb1jo", "eļ1ģi", "ar1ha", "al1mi", "ig1lā", "ek1vē", "is1le", "eg1rē", "el1tā", "ap1ģe", "iz1ri", "er1to", "ug1to", "el1lo", "ār1lū", "el1sī", "el1fī", "oņ1da", "in1du", "eg1si", "ub1ļo", "un1zē", "ar1bī", "iz1ju", "ap1nā", "at1ce", "ej1da", "am1vī", "eņ1ķi", "oš1ļā", "ij1me", "ob1ra", "e1dže", "ap1pī", "am1pi", "īķ1ma", "op1te", "uz1cī", "oņ1te", "at1vā", "ap1ņi", "uk1lā", "ir1so", "ak1me", "ip1lo", "ik1ca", "ap1fi", "oj1ne", "iz1pa", "ok1to", "ok1ci", "en1mu", "ip1nī", "ol1za", "ār1ģi", "āk1ļu", "ēr1to", "āl1šā", "ef1le", "as1li", "ar1so", "as1mī", "at1re", "īs1co", "ar1nā", "ug1ta", "is1ta", "eg1ļu", "ām1ni", "ēg1ti", "eļ1ri", "o1dzi", "op1lē", "ip1nā", "oš1ķē", "ap1bū", "im1nā", "ir1gē", "īg1vā", "ēr1nu", "āk1si", "el1mo", "iz1ņi", "ap1mē", "al1pa", "ol1ti", "un1vē", "os1mī", "āk1li", "as1pā", "ēr1ķu", "ul1tī", "ij1ti", "im1fa", "ūs1ni", "um1ba", "um1me", "al1dā", "us1to", "iž1ce", "it1cī", "or1ņa", "ad1rī", "ur1ba", "us1vā", "u1dze", "oš1da", "ok1mī", "ež1ģi", "ef1li", "ir1kā", "uk1ti", "uz1dā", "ēr1ģe", "īg1tē", "ūs1te", "is1vi", "il1ti", "eš1ļā", "ik1me", "or1de", "od1va", "ur1zi", "iz1či", "uk1nī", "az1ma", "uz1ja", "āb1jo", "at1fa", "ev1ri", "iz1jo", "īs1pa", "u1dža", "od1ko", "eb1ro", "is1li", "at1mu", "at1sa", "ub1ri", "ab1me", "ēļ1ni", "ār1hu", "ik1tu", "ok1sa", "em1dē", "ab1lā", "um1sa", "og1lē", "āg1ta", "ez1li", "ob1ļā", "ad1pa", "ig1na", "or1sā", "ir1da", "an1sī", "am1mu", "ul1do", "ār1či", "uz1vi", "ol1ho", "em1zu", "ut1ni", "el1šo", "uļ1vi", "īk1šo", "is1lē", "uz1sa", "ir1gī", "ež1va", "īb1ne", "īd1la", "it1vi", "ēk1ve", "is1sa", "em1pe", "ēj1sa", "id1ra", "ol1da", "il1ca", "uv1re", "ār1tī", "ar1bū", "ap1mo", "il1ža", "a1dzu", "ap1se", "ub1lā", "as1pī", "er1tu", "īc1ni", "ip1ra", "og1lo", "ib1lu", "el1na", "uļ1ni", "ak1si", "an1ši", "ēr1zi", "er1ke", "am1ka", "on1za", "ār1bē", "ud1ni", "ak1ha", "us1mo", "ār1ņe", "at1dū", "iz1žu", "ām1ma", "aj1mu", "uz1čū", "aņ1ģi", "iz1ho", "ēj1ni", "ir1ni", "ek1tu", "ās1ku", "el1žo", "iz1ģe", "ēr1ķi", "ēr1se", "īr1sē", "iz1na", "ob1ro", "al1go", "um1si", "op1ļa", "ur1tu", "or1tā", "ul1cē", "iš1ķo", "ad1ro", "it1če", "il1vi", "uz1se", "oh1lo", "od1ne", "iļ1ra", "īg1no", "ap1ni", "oz1ni", "il1me", "ur1da", "āt1do", "ar1he", "in1tū", "ul1fī", "us1gu", "ul1cī", "al1bā", "ib1ra", "ir1ga", "ul1gu", "ān1ri", "il1gu", "ab1pe", "op1to", "il1zi", "is1ķi", "uv1cī", "ap1tā", "až1re", "iz1pī", "ud1be", "ek1ne", "ab1ļa", "iz1ki", "ar1mā", "iļ1ķe", "ok1ro", "ig1šu", "at1bo", "ār1pū", "īb1ta", "uz1kā", "iz1bi", "um1ma", "or1ko", "an1vā", "es1le", "is1ci", "op1mē", "ām1pu", "ir1ba", "os1tē", "ig1rē", "ok1da", "īk1le", "el1te", "ek1ru", "ok1mā", "ob1ja", "ar1gu", "iz1ķi", "or1gā", "ij1jū", "is1mā", "ūk1nē", "al1ce", "ēs1tā", "ur1la", "īv1bē", "ar1bo", "až1vi", "iz1li", "om1fi", "ar1ni", "ār1cē", "uņ1ni", "ir1pā", "uk1šu", "in1fu", "op1ļo", "on1mē", "ēš1la", "ūm1ju", "on1me", "is1ja", "āl1da", "āj1pu", "el1zi", "ēr1ko", "īs1tū", "āb1ta", "it1re", "ēr1ta", "ik1ne", "aņ1ģē", "es1na", "uš1ķī", "ēk1sū", "āp1jo", "ār1ja", "op1li", "ib1rē", "oš1ķa", "ag1ta", "ob1jo", "ok1lē", "ul1ku", "ip1te", "ar1cī", "ār1te", "īg1ša", "uz1ki", "ās1la", "et1ro", "ās1ti", "ar1ti", "iz1sa", "āk1zi", "uz1sē", "em1šo", "ok1so", "et1ze", "ar1žī", "oš1vi", "ap1ri", "ad1ru", "u1dzo", "āp1nē", "at1za", "ūr1li", "iv1la", "or1va", "ūv1be", "ep1ni", "eņ1sā", "ūr1vē", "āz1tā", "ēb1šo", "ev1lū", "ib1kā", "īt1da", "um1ša", "ug1sa", "ik1da", "ak1lu", "ēr1ļa", "os1mu", "īņ1la", "if1rā", "oņ1tū", "eg1ne", "is1mo", "uz1šū", "on1tū", "ob1šo", "in1va", "eg1lū", "ir1pi", "u1dza", "us1la", "ūs1pu", "ib1to", "iz1sē", "ap1čū", "ok1lā", "uv1mu", "īk1sa", "āķ1ve", "iz1mu", "uz1mī", "uļ1ķo", "ar1hī", "ēl1me", "īg1me", "ag1ve", "ur1vu", "ār1ha", "ed1ni", "āt1se", "at1ņa", "at1sū", "ūk1šu", "ol1me", "ūz1mē", "ip1to", "at1tī", "ēs1ta", "us1ve", "iņ1pu", "ol1va", "in1ši", "āp1ta", "ar1ko", "ēk1si", "el1zī", "er1nu", "az1pi", "ār1bī", "uk1la", "ek1ņi", "er1ro", "ēt1bi", "al1da", "is1pe", "īk1mu", "ēc1pu", "in1dē", "ūr1ve", "es1tū", "ēr1mi", "ez1ko", "ār1ko", "āl1lē", "ep1te", "ār1re", "an1ce", "od1ku", "ig1ru", "īk1tu", "ēž1ve", "ap1no", "ul1ga", "el1ve", "at1ņe", "ār1pā", "op1bu", "iv1ti", "iz1dā", "ig1ra", "ij1va", "ēr1di", "iz1lo", "uz1bo", "ās1nu", "el1ņa", "us1ne", "ev1ge", "ab1di", "uz1jo", "ār1kā", "eb1re", "ir1nu", "op1tā", "il1li", "uz1pī", "āj1do", "ēg1tī", "ul1re", "eļ1ķī", "ej1nī", "av1ļu", "aļ1ņu", "ūs1ga", "im1fo", "ab1ta", "ut1ne", "iš1ķu", "ez1nu", "or1sē", "ep1ļu", "ūt1si", "ik1le", "is1ga", "oz1to", "op1ti", "ur1šo", "il1kā", "im1du", "ēr1ba", "iz1no", "ar1je", "am1du", "ul1lu", "ot1ni", "eš1si", "at1pa", "ab1to", "ip1zā", "ūs1tī", "at1mū", "ī1dza", "im1bo", "op1tu", "ak1ta", "es1ve", "īk1ma", "ūk1ša", "in1di", "uz1ži", "iz1čī", "ad1vi", "am1šā", "iņ1ņa", "ār1ce", "ēd1ma", "ik1ni", "ap1tī", "ap1zu", "ep1sī", "am1pe", "uz1lē", "iņ1ģi", "uņ1ķi", "ur1pa", "eb1ra", "eš1me", "āt1ni", "or1me", "uč1ka", "ar1vi", "en1gā", "ar1ši", "uz1la", "es1kā", "uk1ņī", "ap1gā", "er1vu", "es1nā", "ir1šo", "iz1sī", "at1gū", "ar1ma", "ef1ro", "eš1ķi", "on1nī", "ap1ho", "ez1zi", "oņ1re", "ur1nu", "am1be", "ek1no", "is1jē", "āž1ni", "ag1lē", "ek1ci", "el1da", "es1pi", "ož1vī", "oņ1mā", "il1pā", "ok1la", "as1lī", "en1ze", "ām1vi", "ir1be", "ik1lī", "e1dzo", "uz1ti", "ul1ta", "ār1gu", "an1so", "ik1si", "eņ1ze", "iv1ju", "ag1nā", "ār1bi", "ib1ša", "or1fo", "ūr1zā", "ap1ņa", "ap1ji", "ēr1lī", "u1dzu", "en1rā", "iņ1pa", "at1ķī", "ār1vā", "ap1ļo", "ār1ca", "ek1šā", "ēr1ka", "īz1da", "us1di", "īk1to", "op1sa", "iv1ko", "āb1ti", "il1jo", "iz1ra", "ir1se", "uļ1pa", "iz1ņa", "ār1fa", "os1li", "ez1ma", "ar1si", "oš1ta", "eh1ro", "až1di", "er1sā", "ep1sa", "el1je", "āt1ce", "ek1lū", "an1dā", "ig1rā", "is1za", "ok1ru", "eš1ļi", "āj1mu", "ot1rē", "el1ka", "ur1čū", "eb1šu", "uz1žū", "eg1ve", "uz1ņu", "ob1ri", "ap1bi", "iž1ga", "av1va", "ūs1na", "ēj1ra", "iņ1ni", "eg1tī", "uš1pa", "ag1ma", "ur1ķē", "on1go", "ēr1ne", "īž1ni", "ir1ģe", "as1kū", "ēr1cī", "el1ša", "ēr1nī", "āk1ti", "es1mā", "ap1dē", "īn1me", "ig1šo", "es1ki", "ot1ne", "ab1rā", "ab1te", "ib1rī", "ir1po", "az1do", "en1sī", "az1nī", "er1bo", "al1bī", "ib1lē", "aš1ha", "es1va", "et1ru", "ez1jē", "id1ga", "il1tē", "on1ki", "il1na", "ur1go", "oņ1pa", "ur1lī", "od1pi", "īb1to", "iņ1va", "ad1ni", "ev1ka", "ar1la", "āb1tu", "at1vī", "er1su", "us1ku", "iv1vē", "iņ1za", "or1nī", "an1do", "ūt1ne", "om1bi", "an1to", "el1dē", "uļ1sē", "el1jē", "il1ča", "ās1lē", "as1pu", "uz1su", "uš1ku", "om1po", "ul1bē", "ēc1mē", "eņ1ko", "īv1zā", "eg1le", "is1ce", "is1ni", "od1rā", "om1na", "ul1mi", "āk1ļo", "ig1mu", "ir1me", "eg1ra", "eb1ta", "al1mu", "is1ki", "in1jo", "īn1vi", "ef1lā", "ēj1ca", "ar1hi", "ul1ba", "om1ja", "an1kā", "am1bū", "op1tē", "ol1lo", "am1mā", "at1ķi", "ad1hē", "ot1ma", "em1lī", "āl1le", "as1mē", "ūr1ga", "ik1la", "um1so", "an1dī", "us1lī", "ūr1ta", "in1že", "ip1ri", "ej1se", "ul1ki", "eg1bu", "il1šo", "at1pe", "at1čā", "ap1lē", "eg1lā", "īs1re", "ēr1ve", "ek1ca", "ap1so", "ēr1mo", "āz1ta", "or1tū", "āk1šu", "em1ci", "ok1ne", "ēd1nī", "es1ti", "il1pe", "ip1na", "ik1va", "os1lī", "iz1šā", "od1ri", "ob1rū", "un1va", "eb1ku", "il1to", "ir1tī", "uk1ro", "iz1cu", "āž1ra", "ur1di", "eb1ju", "ul1so", "īs1lo", "ēj1čū", "in1fi", "ur1za", "il1va", "iz1fa", "al1do", "ib1si", "ēr1bā", "os1ni", "oš1re", "im1ba", "ig1si", "ūr1fi", "ec1pu", "ak1to", "el1so", "ek1rā", "īs1va", "aš1mī", "en1ti", "en1pu", "eb1ri", "am1ma", "es1me", "ūn1vi", "ak1ci", "ēp1ša", "eš1ni", "el1vi", "ov1ka", "ēz1do", "iz1lā", "en1tū", "en1su", "ur1nā", "ot1ro", "ob1re", "ep1žo", "at1ķē", "ēp1ti", "en1ci", "at1bē", "uk1to", "āg1šu", "il1mē", "ār1žo", "is1va", "ēt1ce", "un1ro", "eg1me", "on1bū", "ah1ro", "ād1re", "or1ni", "uģ1ni", "uz1so", "uz1rū", "īs1kā", "īs1pu", "ar1šu", "ar1sā", "el1bu", "il1ta", "ur1ķi", "ak1ne", "ap1vē", "ār1ča", "av1ve", "os1pē", "aļ1ra", "eš1ķe", "ur1zo", "as1va", "uk1či", "ar1pi", "uk1ra", "ur1mē", "ez1se", "al1pī", "um1za", "īs1de", "aļ1ru", "uk1ko", "eb1le", "ul1ju", "āt1ze", "at1bū", "ez1vi", "at1šū", "ag1ra", "āt1kā", "īs1te", "iz1jū", "eš1ņo", "ur1co", "ar1bi", "ūs1tu", "it1ka", "en1sē", "eš1ņa", "ag1ro", "aļ1si", "id1ri", "it1no", "ež1ma", "os1pi", "ev1ti", "ēk1pi", "ap1tū", "us1mī", "el1hi", "iz1ha", "eš1ļu", "ām1vā", "un1gu", "ā1dzī", "āl1nī", "eb1li", "od1re", "āk1la", "ab1zi", "af1ni", "ād1ni", "ig1ri", "ek1ga", "uļ1mu", "on1va", "īv1ko", "um1ra", "at1pā", "ub1ļa", "er1nī", "ug1ļi", "aš1ke", "ēr1tī", "ap1ba", "od1jo", "ok1ļū", "us1tu", "uz1ķe", "ih1ta", "iņ1ga", "ēp1jo", "un1ce", "il1ši", "īt1ne", "oš1ķī", "ig1ta", "ol1lī", "ūk1ga", "es1pē", "et1bo", "ez1di", "ap1ķi", "uz1ca", "ig1mā", "or1ķa", "ez1to", "āp1ju", "ēk1nī", "at1ļu", "es1sē", "ir1pa", "ap1ra", "up1li", "ul1dī", "ē1dza", "ek1so", "ol1zī", "ēr1co", "or1ka", "ad1ja", "en1ra", "ez1ba", "iz1go", "en1hā", "ez1ka", "et1re", "ah1ve", "il1pī", "ep1lu", "eg1ti", "im1fā", "ih1nī", "ēr1dī", "ap1čā", "ēj1vi", "an1tī", "eņ1tu", "ut1ru", "ēj1tā", "ur1bu", "ur1de", "es1no", "am1pī", "un1vā", "iž1ku", "uk1lu", "un1bū", "un1tu", "is1nī", "ub1ļi", "ap1či", "ūd1ri", "en1lī", "es1pā", "iz1čū", "ob1ji", "ez1tā", "em1žu", "op1lī", "ab1lu", "od1rī", "āj1sa", "uk1ci", "an1žē", "ūt1ri", "un1dē", "eg1gā", "ur1pū", "il1di", "iķ1ve", "eņ1ka", "an1tū", "āv1vi", "īt1ro", "iz1ro", "āl1di", "i1dzi", "ad1rā", "ap1ne", "at1va", "iz1ma", "ūv1ko", "ūt1nē", "až1va", "ān1sa", "uz1zi", "as1vē", "et1vē", "iļ1bu", "aš1vā", "ap1ka", "iz1pi", "er1ša", "ed1na", "im1dē", "ag1nē", "āj1bu", "ād1ve", "eb1tā", "us1pū", "īt1sa", "ap1ži", "ūr1ni", "og1ļa", "āt1nē", "el1vē", "et1la", "og1ru", "iz1ka", "al1sī", "ir1zu", "om1fo", "eļ1jū", "il1bī", "il1sa", "uņ1ģī", "ej1sa", "or1nē", "am1ta", "ul1šo", "or1pē", "em1du", "ur1lo", "at1be", "ur1si", "ēr1ti", "er1šo", "at1pi", "or1lo", "ev1na", "ec1ri", "ol1ba", "iņ1kā", "ār1hi", "os1fā", "at1lū", "og1ni", "aš1sa", "eg1li", "ij1de", "eļ1mā", "il1nsa", "ir1pti", "iz1šķo", "ēl1mju", "uz1glā", "ap1slā", "op1ska", "ek1špē", "al1tru", "iz1smē", "ēr1kta", "us1kri", "il1bsi", "ul1gri", "ap1sku", "at1frē", "is1pru", "at1fri", "um1pja", "ār1brā", "os1tga", "as1pre", "ār1sve", "ūm1tve", "ār1brī", "uz1fra", "iz1dru", "ēr1ptu", "un1dzā", "ut1ska", "īk1šķo", "āb1sti", "iz1hlo", "ēr1šļo", "ap1gro", "at1šmī", "un1spu", "es1tro", "ap1blē", "et1rka", "us1gri", "at1plā", "on1ste", "ap1šķī", "el1dze", "ab1sce", "at1kļa", "iz1prā", "ug1šde", "on1fli", "at1stu", "im1šte", "ir1kta", "ar1bnī", "er1dzī", "en1dro", "ok1snī", "uk1šķa", "eš1bļo", "īt1ņmē", "et1rde", "ir1mbā", "az1gru", "in1grā", "uk1ska", "ap1spo", "āg1sti", "ug1špa", "al1kva", "ez1tne", "an1gli", "udz1ba", "ūk1sli", "at1sma", "ap1fra", "iķ1skā", "uz1sma", "īp1sla", "il1stu", "iz1gra", "os1krē", "am1sti", "uz1pre", "ez1gla", "īdz1jū", "us1trā", "iz1pla", "iļ1krā", "ēr1zka", "ap1pro", "ir1sno", "ir1smo", "ir1mme", "er1dze", "ān1prā", "ap1bru", "ēg1sto", "as1bra", "ek1šne", "ēr1bšo", "edž1li", "as1tru", "un1dra", "āl1pro", "ār1grē", "ēr1stā", "ar1pta", "īk1stu", "ez1spē", "am1skā", "ir1kļo", "on1gru", "iz1šta", "āļ1dzi", "āl1štā", "īs1pro", "ur1dzu", "ir1stī", "ār1šļa", "uz1gru", "el1pšu", "al1frī", "ek1šga", "ir1mdī", "ek1sku", "iz1spu", "uz1plū", "āk1sla", "iz1dre", "in1ssū", "uz1gle", "om1pre", "ār1gti", "udz1cī", "iš1brū", "uz1kru", "uz1sli", "uz1klā", "at1ble", "īdz1ni", "iz1smī", "ār1sni", "īs1spa", "iz1pre", "īg1sko", "iz1žva", "ir1gti", "ēr1bta", "īt1pra", "at1gla", "as1dzi", "ap1skū", "uk1šķe", "at1dzī", "uz1šta", "uk1lva", "at1dzē", "ār1šma", "es1prā", "iz1blo", "al1sti", "at1zvi", "in1dzo", "uz1krē", "at1kvē", "an1brū", "ur1ksi", "uz1stī", "op1sta", "in1sti", "on1sti", "uz1pli", "at1kve", "as1krē", "in1sda", "an1smi", "ap1stu", "us1tpu", "uz1kņu", "ār1blo", "on1gli", "ar1pli", "ap1šļa", "us1kre", "āk1šķu", "al1vja", "iz1sni", "ap1pla", "uz1brā", "iz1brē", "eš1stū", "iz1svā", "ēr1kša", "ug1sta", "at1blo", "ap1švi", "il1dno", "iz1glū", "ir1sdi", "im1pro", "ār1tre", "iz1bri", "āl1bra", "at1bri", "uk1stē", "iz1brū", "at1plē", "il1bšo", "ur1dza", "ik1lpa", "āt1rra", "uk1sti", "ur1kša", "en1džo", "ār1svā", "ap1krā", "īk1šķi", "at1rre", "iņ1zva", "at1žvī", "ār1blī", "ēr1sta", "ār1smi", "iz1šmī", "ug1šna", "iz1skā", "uz1trī", "ap1svī", "is1prā", "ek1sta", "at1sla", "at1trū", "āk1slī", "uz1kna", "il1dvi", "ār1dzi", "uz1šņu", "is1tre", "iz1svi", "ap1dri", "el1dmē", "ul1gto", "an1tzi", "is1kvī", "uz1kļū", "ār1šņo", "uz1frē", "ib1sto", "ig1sta", "in1ktī", "ir1sni", "en1sne", "em1pjo", "ēr1btu", "īn1skā", "ēk1šņo", "ik1smē", "es1trī", "at1šķū", "at1pla", "in1gto", "ot1rdi", "al1cvi", "um1bri", "uz1švi", "is1glī", "an1džū", "ap1sle", "uz1pļē", "ap1šķe", "iz1ble", "ap1šņa", "ir1mre", "en1tra", "ār1tra", "ul1snē", "iz1spa", "ep1sti", "ūt1sga", "āg1sto", "īb1sta", "ap1pļā", "at1kle", "il1gtu", "iz1spi", "am1tra", "an1fra", "uz1frā", "ēr1nva", "uz1stū", "ūk1sto", "at1šma", "um1šzi", "ug1stā", "at1špa", "il1kti", "īp1sle", "iz1tri", "os1tro", "el1pšo", "av1sta", "ak1tda", "ik1snu", "iz1stū", "ok1tri", "ap1gve", "op1spē", "iz1pra", "el1ptā", "es1tra", "iz1kni", "ān1spē", "os1kva", "ol1ste", "ul1dzo", "ek1šzo", "uz1ste", "uz1brī", "in1skā", "ār1švī", "il1nvē", "ūv1pro", "iz1šļu", "ev1ski", "en1zda", "āt1rda", "ēk1šķu", "ig1sto", "ēr1kšu", "ēr1ktā", "iz1skū", "an1kre", "iz1pro", "il1spi", "al1kto", "ok1zvē", "ap1zva", "ār1zvē", "un1tni", "ak1sti", "as1tri", "īb1spē", "os1mve", "en1sžu", "el1nru", "er1csa", "uz1zvi", "al1vtu", "at1dzi", "um1krū", "ot1frī", "ap1klī", "an1sko", "el1dko", "an1tkā", "ap1gla", "īk1šņa", "ār1gve", "il1dba", "es1tma", "uz1sti", "at1drū", "ul1pto", "uk1smi", "as1trē", "er1tro", "īb1sti", "id1spa", "at1trā", "ar1pna", "at1sta", "ek1trī", "at1šņo", "at1zve", "ig1zda", "ir1mpa", "ak1tni", "ir1kšo", "ār1plo", "ār1prā", "il1nti", "om1sva", "ēr1bja", "il1trā", "al1kta", "iz1dza", "iz1šma", "at1dza", "iz1kri", "ol1skā", "en1tni", "et1sti", "at1tru", "iz1špa", "ur1kne", "īg1zna", "ul1sva", "an1tza", "ār1tņu", "īn1krū", "uz1šņo", "ek1tkā", "at1plū", "il1kni", "uz1žņa", "ur1sli", "iz1tre", "ap1stī", "or1dda", "ur1gra", "at1glā", "ās1tni", "uz1žmi", "at1dze", "āl1sti", "ēr1slī", "el1nze", "āk1ste", "op1pla", "at1prā", "up1sto", "em1plā", "ib1stī", "up1sti", "ār1špa", "ēj1pla", "ār1hlo", "ap1frē", "il1kto", "al1dzi", "on1tri", "ar1gsē", "iz1frē", "ap1bro", "ul1tne", "im1stī", "ug1špē", "em1pta", "at1grū", "as1tma", "īk1ste", "iņ1krū", "il1kšu", "ek1ska", "is1tvi", "ār1dro", "iz1tro", "us1smē", "el1zta", "ēr1psi", "āk1sme", "ēs1tne", "ār1grū", "ok1gri", "up1stē", "ok1sko", "et1rro", "un1dze", "ap1trī", "uk1šķu", "in1sri", "en1tri", "āj1dzī", "ap1fri", "et1rpa", "uz1klu", "ik1sme", "ār1dra", "iz1kvi", "ēr1pto", "at1plī", "od1pra", "at1glu", "ap1fli", "uz1gri", "at1krī", "īk1stē", "oš1prā", "an1frē", "ap1sva", "il1bta", "ek1smē", "ār1šru", "us1tmā", "īk1smī", "al1dķi", "os1trī", "in1ssē", "al1tga", "ir1mkā", "ap1zvi", "ūg1sto", "em1pli", "uz1ble", "on1spe", "at1spā", "ār1sko", "ap1trā", "ek1šli", "āl1skā", "iv1pro", "ar1krē", "iz1tra", "uz1tri", "uk1ste", "ir1klī", "ap1kna", "er1spē", "ik1šķa", "ak1šķo", "ur1gšo", "al1dga", "ap1kla", "ap1svē", "in1tri", "im1tga", "in1šķi", "ēr1bka", "ēr1sti", "at1ska", "āb1sle", "ap1slī", "iz1slā", "an1gļu", "ir1msā", "ēr1pša", "or1tlī", "iz1dri", "un1kta", "el1dzī", "em1ztu", "en1ksi", "ār1kna", "un1kto", "ap1klu", "at1tra", "at1brā", "at1žva", "an1kro", "ap1sme", "ūg1sti", "ar1tmā", "in1gti", "ār1sti", "ik1stē", "om1bve", "ap1sko", "ār1ple", "īk1smi", "ug1sne", "ap1krē", "en1skā", "en1szī", "āk1sne", "es1pre", "ēr1ķti", "āl1sma", "īr1ska", "at1slī", "us1krē", "us1ska", "el1pta", "en1kto", "ar1bga", "ār1tru", "eņ1krū", "en1trē", "ār1spu", "en1spu", "al1ktā", "ik1sti", "em1zti", "āt1stā", "al1kci", "ap1kļū", "el1nsi", "ēr1nru", "ir1dza", "ār1klī", "at1tre", "il1dma", "īk1pla", "ap1sni", "el1kme", "el1nbā", "ak1smē", "āb1sto", "un1drā", "uz1glu", "uz1ska", "en1slī", "an1sli", "ēr1sba", "un1dro", "el1zto", "uz1trā", "uz1spā", "ap1dzē", "ap1dru", "in1dze", "ed1gri", "eļ1blā", "an1kci", "os1krū", "iz1spā", "an1krū", "ir1sra", "it1sko", "ir1mso", "un1ktī", "iz1slī", "er1zto", "et1pra", "ur1tra", "al1tme", "iz1slu", "il1gti", "iz1gre", "ek1šķī", "op1sva", "uz1tru", "ar1ppa", "in1dzē", "ab1dzi", "ur1tni", "uz1bri", "ab1stu", "in1gra", "uz1sva", "iz1krē", "ap1dzi", "ug1šte", "um1bru", "at1dro", "ir1sti", "ur1sti", "āl1sko", "at1klu", "en1kšo", "ut1skā", "il1pšu", "ur1gšu", "ar1knā", "ap1knu", "im1bra", "ēk1stu", "iz1knā", "il1bto", "āp1sli", "us1tru", "ak1šņo", "ap1prā", "ir1dzo", "en1krā", "ār1spē", "ar1kro", "iz1dro", "ār1bra", "il1dnī", "el1dba", "al1bri", "uz1brē", "ot1gri", "at1tvē", "ur1sme", "uz1šļa", "ek1šte", "at1šņa", "en1sro", "āk1slo", "an1žsa", "uz1plī", "an1tra", "il1bša", "il1tni", "us1glā", "ur1gti", "īg1stu", "ar1zva", "ol1lmē", "iz1kve", "ar1glī", "in1kru", "ap1kņu", "ir1pšu", "ec1skā", "ar1dzi", "od1ršu", "al1tma", "uz1sle", "eg1spa", "ap1šļi", "ek1šķo", "uz1spo", "ar1kto", "iz1zvi", "uz1šķo", "il1trē", "or1tre", "im1šļa", "iz1blē", "el1gti", "uz1slē", "ār1spo", "al1dka", "uz1bre", "is1tzo", "im1fva", "az1pra", "ap1plī", "aš1kri", "ir1pji", "uz1šļu", "iz1sla", "em1zto", "ur1kri", "al1tna", "er1dzi", "en1kti", "at1pļē", "ēr1slo", "ar1gto", "ūk1šķi", "in1dzu", "es1pļa", "oņ1pri", "uz1bļā", "us1tro", "ij1skā", "ār1fra", "iz1tru", "og1dzi", "ij1spe", "ij1stū", "uk1šķi", "ār1trā", "uz1kla", "ek1sče", "ik1stu", "ar1ppi", "iz1šņu", "oņ1sli", "il1psi", "iz1gro", "ēg1stu", "uz1sku", "ol1stī", "ur1vci", "uz1smī", "ur1zma", "en1sve", "er1spe", "uš1plē", "ur1bšu", "at1stū", "iz1sme", "el1gšu", "ec1sta", "ap1kra", "ek1šda", "il1dde", "el1kņa", "il1dle", "el1psi", "ap1stū", "ap1ple", "uz1ple", "ur1kšo", "ār1dnī", "ēr1pju", "ēk1šķa", "ir1mte", "ug1ļķe", "an1kvē", "il1gta", "īr1šķi", "ap1svā", "ul1lpu", "es1nvē", "uz1gve", "at1pri", "ug1šda", "at1šķo", "iz1plī", "ār1bri", "al1dkā", "udz1ma", "un1ssa", "os1prū", "iļ1ņve", "er1che", "ān1skā", "ab1ska", "ēr1sli", "ār1krī", "al1kšu", "ur1sto", "ūg1sna", "uk1sto", "ir1mcē", "id1sta", "id1slā", "ut1sko", "ir1stā", "ār1pro", "ir1kti", "ār1kre", "ap1glu", "as1tne", "iz1švī", "uz1spu", "al1nrū", "ār1spa", "un1ktā", "āb1slī", "ār1pļē", "ir1bju", "ur1bto", "el1svi", "un1ktū", "ug1šga", "ir1sli", "uz1fri", "ur1bta", "āb1stu", "em1brā", "om1pro", "ez1glā", "ep1sto", "al1kme", "iz1blī", "ar1ksi", "īk1smo", "ār1spe", "ap1krī", "iz1šķē", "ur1tkā", "ēk1lko", "ār1tna", "il1dsa", "al1dni", "el1dce", "on1tru", "iz1sto", "ūp1sto", "ap1žvī", "ap1tri", "od1gru", "ār1gtā", "iz1gve", "el1gsi", "er1nha", "at1švī", "ār1hro", "il1tvā", "uz1sme", "at1sve", "im1tni", "uz1pri", "ēr1sra", "as1krā", "en1ska", "iz1glī", "us1tdē", "ol1tme", "ūr1stu", "um1švi", "at1šļa", "ār1knā", "uz1tre", "ok1šņo", "at1bli", "at1sni", "el1gto", "ek1šķe", "ab1sti", "un1fte", "ap1gri", "ir1ste", "ul1sni", "en1tvi", "am1plu", "am1zda", "ik1stī", "at1knā", "at1skū", "is1tro", "is1trē", "īg1sta", "ir1spu", "am1svē", "ār1bru", "ec1stū", "ul1dza", "il1kšo", "ār1plā", "os1tni", "īk1sna", "uz1sta", "ār1zda", "ār1šķi", "uz1bli", "ek1tro", "ap1grē", "ur1bšo", "ir1slē", "iz1kla", "uz1trū", "uz1tra", "ak1sto", "os1tre", "uz1dri", "ir1sma", "ak1šķē", "ak1tli", "ek1švē", "ās1nku", "el1zti", "er1cba", "ēr1kto", "in1dsē", "al1kša", "um1tra", "ip1sna", "eļ1ska", "ār1šķī", "ap1kri", "ār1šķē", "el1drē", "im1pli", "uļ1dzi", "ir1pta", "ēr1pta", "il1pra", "up1stī", "iz1fra", "us1tre", "ub1krē", "ār1pļā", "in1fra", "il1kta", "ir1mpi", "ap1šņo", "at1sku", "un1dzi", "es1trē", "an1drī", "il1pto", "adz1ni", "ar1pju", "in1gtā", "iz1gru", "ap1šķo", "ēr1skā", "ot1rpi", "or1tfe", "ir1mti", "ik1šķi", "an1tmē", "am1bri", "un1dža", "il1pšo", "as1brā", "el1gšo", "ap1kvi", "ug1sme", "il1pne", "ēt1svi", "ir1kša", "as1sko", "ek1spe", "en1kša", "iz1bre", "em1pti", "ār1gre", "iz1frā", "iv1stā", "ul1šņa", "ār1kro", "as1pra", "il1ktā", "at1sle", "iz1glu", "ik1snā", "ok1šņa", "um1šma", "ār1gru", "ār1sme", "at1sna", "ur1kto", "ik1sna", "uz1svī", "us1slo", "am1pda", "em1ztā", "uz1žva", "is1smi", "ēr1tnī", "ār1gtu", "ār1drū", "īg1sti", "ap1tro", "at1sme", "iz1plē", "ir1tni", "ak1šžo", "il1sku", "ul1bša", "um1spo", "āk1sli", "ap1blo", "ār1dze", "ār1kva", "uk1sne", "āt1rvi", "ap1žva", "am1stu", "an1dra", "ār1gšo", "ek1stē", "ār1slo", "ār1gto", "ek1ļve", "ek1spo", "ār1tsa", "iz1dži", "ar1blā", "ēg1sti", "ar1bdi", "uk1šķī", "il1bšu", "or1pro", "ap1hlo", "iz1trī", "as1trī", "uz1smē", "ār1spā", "is1tri", "ab1klā", "uz1hlo", "uļ1sti", "at1fli", "ut1nko", "iv1krā", "ur1tdi", "ap1glū", "ār1glū", "om1skā", "at1sto", "um1sta", "ap1gle", "al1sma", "el1tra", "er1sto", "el1dvi", "iz1fri", "et1sko", "at1tva", "ār1kle", "āš1kru", "er1tce", "ap1kru", "us1tri", "uz1gla", "ap1ble", "il1sta", "ap1sve", "iz1dzī", "as1tpa", "em1psi", "iz1tvē", "ac1grī", "ēr1dzī", "ul1lci", "iz1šļi", "at1žņa", "ov1smē", "as1ska", "en1tge", "at1plu", "īs1šķi", "ār1dzī", "ēk1šņā", "el1nko", "ār1sku", "āv1sti", "āl1dzi", "ēp1stu", "īv1kla", "im1tmu", "os1pro", "ap1spē", "um1brā", "ul1dzi", "ār1stā", "ur1knē", "er1trū", "el1nba", "ār1bro", "ar1sme", "ok1sne", "il1ška", "at1svē", "ar1vde", "at1slu", "iz1bro", "ēr1ste", "āb1sli", "us1skā", "at1grā", "āp1stu", "ār1brū", "am1stī", "as1tmē", "iz1kņu", "en1kla", "iļ1sli", "um1sto", "ap1bļā", "uz1sna", "ol1klo", "er1tme", "iz1fli", "al1stu", "ap1špa", "ar1sti", "āk1šķi", "ār1dži", "um1bra", "ir1dzu", "al1kjū", "ap1smī", "āb1sta", "iz1kļa", "ul1ptū", "ap1smē", "ār1tnī", "ar1gva", "udz1so", "us1stu", "ap1ste", "ul1zna", "ār1glā", "ār1blā", "ur1ska", "il1stā", "el1nra", "ak1tri", "at1kņu", "eg1sme", "ap1grū", "ēk1šķo", "in1spi", "ik1sta", "am1bli", "ir1dzē", "ēr1ktu", "ur1kni", "el1tni", "iņ1krā", "iņ1kre", "iz1kle", "an1spa", "un1ska", "am1stā", "ēr1pšo", "ār1fli", "ir1mri", "ēr1btā", "at1svi", "ir1spa", "ār1tnā", "ap1šķū", "en1drā", "ek1šni", "at1trī", "ar1kti", "iz1pri", "ig1znē", "on1spi", "ul1kve", "ek1šķu", "āt1sko", "ek1sne", "īs1krā", "iz1klā", "ēj1tve", "ur1kti", "og1ļhi", "or1tme", "aš1plū", "ēj1slē", "am1pla", "ēs1tni", "ur1bsi", "is1tka", "is1dzi", "iz1spe", "ab1sta", "āp1sti", "as1tme", "os1tri", "udz1da", "ur1dzē", "at1šļu", "at1bra", "un1kla", "er1zti", "uz1pļā", "ār1dre", "il1gša", "iz1ple", "iz1žņa", "er1ztā", "el1dše", "ir1knē", "eņ1krā", "ēr1ssi", "al1sno", "ūp1stī", "ir1gsi", "iz1sta", "ir1sse", "uz1spe", "ek1sni", "īg1snē", "in1dzi", "at1kli", "ar1bve", "on1glo", "iv1ska", "il1dni", "ār1kra", "ār1blē", "ar1stā", "ār1sli", "eņ1ķmē", "ēr1bsi", "ik1smī", "āl1sci", "at1dre", "až1brī", "iz1plā", "ir1mve", "uz1gro", "up1jma", "uz1dza", "em1pto", "an1kto", "ež1sta", "ēr1šļu", "ap1brī", "uz1kro", "uz1skū", "uz1krī", "ap1šmī", "uz1kvi", "il1btā", "or1tje", "es1krā", "at1tve", "ul1stu", "ūk1stu", "en1kta", "ēr1stu", "ar1bma", "uk1stu", "ēr1nzi", "uz1slī", "ūk1sti", "at1sva", "ap1pļē", "il1nmi", "ir1snī", "in1dni", "āj1prā", "ar1sbu", "at1spa", "el1nma", "ek1stu", "is1grū", "is1nle", "āk1stī", "uz1stu", "if1šte", "ār1spi", "īk1stā", "ar1ktu", "ur1ktā", "āj1dzi", "ēr1bto", "iz1zva", "at1knu", "at1fra", "en1sra", "al1ctī", "ār1bre", "ar1bni", "ār1tni", "ez1pro", "an1tnī", "ēp1sti", "as1trā", "āp1sto", "īr1sva", "iz1šķa", "ig1stu", "er1tra", "es1tru", "as1grā", "al1sna", "ur1pre", "ur1mjā", "ēn1prā", "at1pro", "ek1ļpa", "ik1lve", "ēr1kšo", "iz1gla", "ap1sna", "in1dza", "ār1gra", "ir1gto", "iz1sna", "an1čki", "ap1tva", "ār1sna", "um1špe", "at1zva", "ig1zdo", "en1sva", "et1rga", "il1gga", "īk1sme", "al1stā", "et1rri", "iz1dzi", "ār1pra", "iz1trū", "ār1pli", "ēk1šķē", "āj1sta", "iz1kro", "ur1kšu", "iž1knā", "or1bci", "em1ptā", "an1scē", "ir1kšu", "al1tdi", "ēk1šņu", "īdz1ši", "ot1rre", "āt1spē", "ēk1mju", "āt1krū", "il1dda", "at1svī", "udz1kā", "ār1trī", "ar1ktā", "āl1ska", "en1sli", "es1pri", "ur1btu", "ug1stī", "uz1plā", "em1zta", "iz1bļā", "īk1sti", "uz1spa", "ār1tve", "an1dce", "el1dse", "uz1kra", "ap1sli", "ir1gta", "uz1slā", "ir1kli", "oņ1plū", "ur1gto", "an1grē", "ūk1sna", "āv1zva", "an1slā", "ek1švā", "ār1žva", "ār1šļu", "ap1frā", "až1skā", "at1pre", "as1tti", "iv1plā", "uz1grē", "ek1šno", "iz1grā", "uz1bra", "es1tpa", "ur1bra", "iz1kļu", "im1sto", "ur1gtu", "om1dzi", "ir1gka", "iz1šķe", "ek1sti", "uk1šga", "ār1sma", "el1tka", "ar1gma", "al1nra", "uļ1krē", "ar1gka", "iz1svē", "ēr1sto", "il1špa", "im1tci", "uk1plē", "el1pti", "is1dra", "er1sme", "ul1snī", "ār1krā", "āt1sma", "ir1stu", "at1pļā", "uk1smu", "an1dtā", "en1kšu", "ar1sko", "ēr1pti", "ēk1lva", "or1skā", "uk1sta", "ep1sta", "ār1tri", "ir1kņi", "ul1stā", "et1rvi", "il1btu", "ār1sla", "at1pli", "el1nsa", "ur1kmē", "uz1bro", "al1dne", "ār1frē", "un1spū", "ek1šķē", "en1pro", "an1dro", "at1bru", "ak1snī", "uz1tvē", "ik1spā", "uz1blī", "ap1šķi", "el1dra", "un1svi", "at1spu", "ār1fri", "ep1stu", "ēr1szā", "īb1sto", "ār1dza", "ār1gli", "el1kne", "ār1tne", "un1prā", "ap1kve", "uz1kni", "ap1dra", "ār1gša", "ār1kvi", "ir1zga", "ek1šgā", "ek1sve", "at1gle", "ār1stī", "es1pro", "al1kma", "iz1klī", "ug1sto", "az1pro", "āj1sla", "en1tne", "ul1sti", "at1kre", "ār1sva", "ār1šķe", "iz1kļū", "ap1slu", "il1zka", "ek1šme", "am1pšo", "ūr1sko", "uz1grā", "es1grā", "ap1šņu", "ir1kļa", "ur1lmē", "el1dfē", "az1dru", "at1rpu", "um1stu", "es1grī", "iz1kna", "as1smē", "ur1spī", "eņ1skā", "ār1slē", "udz1vī", "un1dru", "ar1ska", "eņ1tra", "am1pli", "uz1kli", "ul1gtu", "ēk1brū", "us1dzī", "ap1stā", "ar1kšu", "es1kra", "iz1brā", "ir1sta", "ar1gce", "em1ptu", "ur1ste", "ār1dru", "uz1pļa", "at1glū", "ad1skā", "ov1skā", "ak1stā", "ēr1zga", "ir1mga", "in1gtu", "īdz1te", "ār1drī", "am1bra", "īk1šķu", "ur1gsi", "ab1sci", "on1dri", "il1pju", "āp1jve", "ar1gbū", "ul1gšu", "ār1dva", "ār1tno", "ap1plo", "as1tka", "il1gšo", "iz1ska", "ār1dni", "ap1dva", "īk1snā", "ap1blā", "as1pļa", "ap1kre", "al1pre", "em1pšo", "ap1tru", "ak1stī", "el1sku", "ak1ņve", "ak1špa", "aļ1ska", "ūr1sta", "at1bļā", "in1gve", "at1hlo", "ig1frī", "ok1snē", "ār1gri", "ak1šķi", "āt1sna", "ul1tsi", "as1tni", "ir1sto", "an1sfo", "ek1šla", "ul1tzo", "ob1spi", "os1pri", "el1bri", "ār1žvī", "at1blī", "ot1rti", "il1gsi", "uz1zvē", "in1spe", "ir1ptu", "ag1sva", "iz1kli", "ok1sni", "el1gra", "um1spē", "ūp1sti", "ak1stē", "ur1kta", "an1dri", "ir1pto", "iz1pli", "īv1drē", "ar1pzo", "ur1bti", "ul1šņi", "at1blē", "og1ļra", "iz1sle", "il1pro", "il1gto", "eļ1tra", "iz1slē", "ār1kve", "ur1btā", "ār1frā", "al1tla", "ur1pmā", "ēr1ksi", "al1ksi", "ir1kņo", "in1sra", "em1blē", "ib1sta", "in1sci", "ur1ktu", "iz1šķū", "an1tni", "ām1glā", "ur1zva", "īk1šķē", "up1rla", "il1nga", "il1gla", "ēk1šņa", "en1prā", "uk1špa", "at1pļa", "iz1šķī", "ār1gšu", "ir1gša", "ul1dzē", "an1kku", "ul1tni", "un1dzē", "ap1sma", "er1sti", "el1ztu", "ir1gko", "im1tre", "us1sna", "ūk1šķu", "ik1tni", "at1brē", "as1kra", "an1dža", "am1plī", "ar1kša", "ap1spe", "an1ska", "ih1svē", "od1sli", "ēr1pšu", "ar1gre", "am1sto", "ān1ska", "or1tvī", "at1svā", "uz1šķū", "ūr1sto", "in1sce", "ud1spi", "udz1ga", "al1snā", "āg1stu", "al1tro", "at1šta", "at1kļū", "udz1vi", "ap1slo", "ap1gre", "iz1šņo", "ug1stu", "im1sti", "up1stu", "ur1stī", "os1kra", "ir1ska", "og1ļde", "um1dzi", "in1kvi", "ed1kļū", "ul1tra", "iz1sko", "el1gtā", "ur1gtā", "iz1pļē", "ap1smu", "er1stī", "āt1ršu", "ok1šņu", "ap1šķa", "āt1dzī", "at1tro", "at1brī", "al1sta", "udz1ru", "ar1gtē", "in1sta", "iņ1ķve", "at1kri", "al1snu", "iz1zvē", "iz1klu", "in1hro", "ir1ptā", "as1kvi", "ur1spi", "iz1kvē", "ār1skā", "ir1gtu", "āp1sta", "uz1bru", "ed1krā", "et1sta", "al1vga", "am1pša", "ar1pga", "uz1sla", "at1šķī", "at1dži", "ār1kļū", "ār1šro", "eņ1bra", "īk1gru", "ār1klā", "ak1ņko", "od1prā", "at1klī", "iz1stē", "ār1žņa", "at1tri", "ik1stū", "ek1šzī", "ār1kni", "ār1pre", "ap1klā", "ul1gta", "ēr1pjo", "ār1gsi", "iz1šņa", "iz1gle", "ēr1bjo", "is1stū", "eļ1drā", "ik1ste", "ēr1nga", "ap1tve", "uz1skā", "ap1knā", "ik1snī", "am1ble", "ek1stā", "ol1fga", "em1bri", "uz1spī", "el1dma", "iz1slo", "ar1gkā", "iz1svī", "ūg1kri", "un1kti", "er1pre", "uz1švī", "ap1dzī", "iz1spī", "ek1tda", "ēr1dze", "il1ska", "ār1tnu", "ur1bša", "ap1tra", "ap1dze", "an1ste", "in1ktū", "er1ztu", "as1pru", "en1sca", "uz1svā", "il1dmē", "ik1sni", "ār1brē", "āk1sto", "āk1slu", "ap1bri", "ap1stē", "iz1sti", "ap1pļa", "ār1šta", "īk1sne", "un1tra", "ok1šķi", "ūs1tni", "ok1trī", "iz1glā", "om1ple", "ār1kri", "uv1bra", "īv1stu", "āt1rgā", "ār1pļa", "uz1klī", "uz1slo", "at1gre", "eļ1bri", "as1prā", "ig1žņa", "ēr1glē", "ūr1sti", "īv1sva", "ah1tve", "ūk1sne", "et1rsi", "uz1špa", "an1dze", "um1pra", "er1plē", "iņ1sti", "at1drī", "at1dva", "in1tnī", "in1gvi", "al1šķī", "ap1slē", "id1plē", "il1nva", "uz1glū", "iz1švi", "udz1pu", "or1tli", "in1kri", "ap1pri", "em1dvi", "ār1drā", "as1tro", "ar1dze", "āk1sni", "uz1ski", "as1tva", "um1sve", "ār1gdi", "ik1sto", "os1pre", "at1frā", "el1dre", "il1dva", "ug1prā", "ul1stī", "uz1svi", "ur1tda", "ār1slu", "ūp1stā", "ez1glu", "īļ1knā", "an1cle", "ūp1stu", "ec1svi", "ak1šķe", "ir1dzī", "uz1dze", "āl1spē", "ij1dro", "ār1kla", "im1sli", "ap1bli", "il1sru", "on1skā", "uz1spi", "ul1dze", "ik1šķo", "us1krū", "ek1stī", "ek1šro", "it1bri", "as1pri", "ik1šķu", "or1tku", "at1kni", "is1mju", "im1stu", "ez1prā", "at1sli", "ur1vma", "om1sta", "er1sta", "ot1rpu", "es1pra", "uz1gre", "at1šķē", "ur1dzi", "ūk1ste", "ap1smi", "ār1stu", "an1skā", "ūr1stē", "ur1zmi", "ār1krē", "er1sma", "at1šņu", "od1sko", "im1pre", "al1snē", "ap1dza", "iz1pļa", "il1krū", "at1spe", "uz1krā", "in1tra", "at1šķi", "at1bro", "el1tga", "in1tro", "on1tda", "ak1šķa", "as1tna", "ir1ski", "aļ1stu", "os1kni", "ēr1tni", "ār1trū", "er1zta", "ir1zma", "iz1knu", "ar1gku", "eļ1gle", "iz1dzē", "ap1sti", "os1trā", "uz1šķi", "os1tru", "ir1kļu", "es1brā", "ar1sto", "ap1grā", "us1tme", "iz1ski", "in1sva", "um1sko", "un1kni", "at1kvi", "uk1stī", "ap1pli", "ot1plā", "et1rmo", "el1djo", "ub1sta", "uz1sni", "iz1dze", "ul1gšo", "am1pjo", "uz1dre", "ar1pni", "is1mmī", "al1dzī", "iz1žvī", "ar1bmū", "at1spo", "al1šķi", "uz1kvē", "al1kti", "udz1re", "ār1spī", "iz1kra", "et1rre", "ab1sto", "uz1slu", "ār1plē", "us1ttē", "ur1sta", "iz1gri", "ot1rto", "en1sti", "āv1grū", "ār1tva", "un1slī", "on1gre", "ēk1sne", "ir1kni", "el1dpū", "av1grī", "or1tjē", "īk1smā", "īdz1ju", "es1smē", "iz1spo", "iz1brī", "um1bve", "is1kva", "īg1ļla", "īs1stū", "im1tkā", "ār1gme", "ār1ble", "āč1plē", "ēr1zci", "ēp1sta", "el1drā", "ak1šķu", "al1nga", "uk1šķē", "ir1ktā", "od1ska", "īk1sto", "ir1spe", "ir1pšo", "ēj1spē", "at1hro", "id1smi", "on1tra", "at1gve", "il1dķe", "in1sku", "el1dtī", "ek1šķi", "uz1kre", "ap1zvē", "ār1ska", "ān1sve", "udz1vā", "iz1ste", "uz1pla", "an1cka", "ež1frē", "in1gša", "ap1hro", "in1gtī", "ir1mdi", "ir1mva", "ap1svi", "uz1dzī", "uz1pro", "ēr1sna", "ap1dro", "uz1blo", "al1tva", "ek1šsē", "udz1ve", "ih1stā", "uz1gra", "ēd1dzi", "ar1psi", "ār1dri", "at1klā", "iz1tve", "ār1sle", "ul1gša", "al1tvī", "ēr1ļve", "ir1mzi", "at1dra", "os1pļa", "ir1kto", "el1nga", "ēl1spi", "ap1gru", "ēr1bti", "us1pli", "ik1sma", "ār1slī", "ol1ska", "īt1ska", "ap1dži", "ur1tnī", "uz1dzi", "ār1šmī", "odz1ni", "ar1gda", "at1ski", "uz1dzē", "el1tli", "ov1ski", "el1ztā", "at1blā", "ar1dzī", "is1trā", "as1tra", "en1svī", "on1krē", "ur1gta", "en1tmē", "ār1kru", "un1dri", "ār1gla", "el1pva", "as1pro", "is1pri", "iz1plū", "il1dko", "ār1šļi", "ar1tne", "us1tne", "at1kna", "at1kra", "at1spi", "ēr1ptā", "īk1sta", "in1grī", "ed1spi", "op1stu", "um1šsa", "ap1pre", "ap1trū", "ār1šķa", "at1brū", "um1šķi", "el1stu", "al1sto", "uz1kļa", "al1nze", "at1gru", "on1fro", "at1kla", "ap1brū", "ir1mtē", "īdz1nā", "uz1šmī", "ap1gra", "ak1šze", "ap1blī", "an1kno", "il1skā", "ir1ktu", "ēt1spē", "al1vni", "ar1gri", "uz1kle", "ul1sto", "es1krū", "iz1pļā", "uz1plo", "at1šļi", "ug1šma", "ec1sla", "īg1sto", "uz1blē", "ib1sti", "en1sto", "in1kli", "ir1dzi", "ug1zna", "in1gro", "as1prū", "ež1gra", "iz1kre", "eg1slā", "ām1grā", "ig1znā", "am1fle", "ir1pša", "eg1smi", "uz1šķa", "ap1šķē", "ug1sti", "al1ste", "al1nci", "em1mvi", "īdz1ti", "ik1sno", "ār1svē", "et1rkā", "ul1gtā", "at1spē", "ār1sto", "il1šmā", "et1rti", "ar1dzē", "er1cko", "ar1sta", "ēr1bša", "āj1gle", "am1pja", "uz1dva", "ot1rkā", "ak1šma", "uz1plē", "ak1špu", "ār1bļā", "ir1gtā", "ik1šķē", "uz1zva", "al1stī", "os1kle", "ār1ste", "ug1šžo", "ēr1tne", "iz1dva", "is1tru", "ek1šku", "ap1skā", "ar1gti", "ar1gvi", "uz1smi", "im1pto", "ār1ski", "ār1plū", "uļ1ska", "ib1snī", "iz1šķi", "ap1ski", "un1sbī", "ep1stē", "us1sko", "at1zvē", "at1sti", "el1dzo", "īk1smē", "an1sku", "um1sla", "uz1šma", "ap1žņa", "ek1šze", "uz1kri", "ir1mmā", "an1čka", "ēg1sta", "at1kro", "et1rrā", "uz1knā", "uz1stā", "ap1drī", "ez1glo", "at1ple", "ar1šļa", "ug1šņu", "ār1kli", "ot1rzi", "al1kvī", "is1tra", "ib1stā", "or1dni", "el1dpa", "in1gpo", "ul1sla", "uz1tve", "el1tta", "ap1plē", "uz1šņa", "ār1sta", "os1tbi", "ār1gle", "og1ļrū", "er1stu", "iz1plo", "ūv1bri", "ēl1spu", "iz1sli", "ap1plu", "um1sti", "uk1švā", "us1tra", "uz1dži", "ēr1npa", "el1pjo", "et1kre", "āb1slē", "ik1lķe", "an1spo", "im1tku", "ok1gre", "iļ1ska", "an1tku", "an1sjē", "il1pša", "ūk1snā", "āl1szā", "ol1sto", "us1trē", "ij1krē", "an1flo", "ap1glā", "āl1svi", "at1slo", "ur1bjo", "el1sme", "at1smē", "op1dzī", "ūg1stu", "al1tra", "er1tne", "at1švi", "os1trē", "ez1drā", "ur1gša", "en1spo", "ov1ska", "il1ktu", "es1tre", "iz1dve", "ār1smē", "at1gra", "āg1sta", "ūv1gri", "as1tmā", "in1flā", "oņ1stū", "ār1klu", "el1tne", "ak1sta", "ār1dko", "ār1kvē", "an1tro", "at1kru", "ap1sto", "il1pta", "edz1ni", "is1pro", "īr1gro", "udz1si", "em1bra", "ār1zko", "ul1šņā", "us1sti", "ēk1šķi", "udz1vē", "um1tni", "ar1stu", "ap1kle", "īk1smu", "up1sta", "īk1sma", "ār1zva", "ab1rka", "ēdz1ni", "āb1stā", "ēr1kli", "en1tro", "ār1plī", "il1gšu", "ap1kvē", "as1tre", "ak1ste", "ek1šķa", "āt1rmo", "an1sce", "in1sde", "iz1kru", "ap1šļā", "at1bre", "on1sta", "ēr1zla", "el1gša", "ām1bra", "el1dzi", "uz1dru", "udz1di", "ap1brā", "ar1kta", "eņ1sla", "ar1švi", "iz1smi", "ir1vja", "en1gri", "ar1kšo", "uz1drī", "ul1sta", "ek1sme", "ār1šņa", "ār1zni", "ār1tro", "ap1kli", "ār1svi", "ēr1stē", "īk1stī", "et1rtū", "īdz1ci", "ur1tli", "ek1sto", "im1tsa", "us1brā", "uk1šķo", "ir1zta", "ār1stū", "un1ktu", "ēr1mju", "īk1šķa", "ur1kli", "uz1fli", "ap1plū", "il1dzi", "ap1dre", "az1sva", "ug1ļla", "at1stī", "iz1plu", "uz1tro", "is1sli", "iž1skā", "ir1gšo", "en1ktā", "ār1gta", "iz1bli", "ār1smī", "im1brī", "ār1dzē", "ār1svī", "ek1spa", "īdz1ko", "uz1svē", "at1plo", "or1tla", "ab1prā", "ir1tne", "ūk1slā", "iz1sve", "et1plā", "ir1sva", "il1bti", "uz1brū", "īt1spē", "uz1šķē", "udz1no", "at1slā", "iz1blā", "es1tdi", "us1zvi", "is1kri", "ēl1slē", "ob1sku", "ēk1šņi", "ul1šņu", "on1tro", "il1stī", "iz1bra", "ur1pni", "al1dsē", "im1ttū", "is1spē", "es1tme", "in1gvī", "ug1špu", "ir1dne", "iļ1ņla", "ap1sta", "ik1smi", "ad1grā", "iz1spē", "il1gtā", "iz1sva", "il1nbā", "im1stā", "ak1šve", "uz1pra", "uz1grū", "ār1skū", "iz1bru", "us1tsē", "ug1snē", "ār1dzo", "in1tni", "ig1sti", "er1gtu", "en1tru", "as1krū", "ār1slā", "ap1tvē", "el1sti", "il1sto", "il1dra", "ot1rga", "ur1kņu", "ap1bra", "er1tzā", "at1stā", "er1cli", "ēr1bšu", "uz1stē", "ap1plā", "an1gvi", "uz1šļi", "uz1blā", "ed1rvi", "as1tla", "iz1stu", "ot1spē", "us1pro", "im1tda", "am1krē", "op1pro", "ig1žņo", "at1bļa", "ap1kni", "iz1sma", "iz1grū", "an1dpu", "īv1prā", "ur1stu", "ar1stī", "ig1zne", "ūk1sta", "āj1sko", "ek1ška", "ub1sti", "ur1dze", "iz1hro", "ap1šma", "ap1spa", "ār1stē", "ib1stu", "at1smī", "im1sta", "il1ksi", "ar1ndo", "on1kre", "es1krē", "āl1plā", "uk1sma", "in1gri", "um1pro", "uz1dra", "ār1pla", "ār1plu", "at1ste", "el1gta", "en1gru", "il1tze", "ār1pri", "iz1krī", "at1krē", "es1prū", "is1svē", "ār1švi", "ār1knu", "en1ktu", "ap1tre", "iz1kņū", "ul1gsi", "in1dri", "iz1drī", "ek1ste", "aļ1ķne", "uz1spē", "os1tma", "ug1sni", "at1grē", "al1sni", "ur1nga", "ip1frū", "ēr1sko", "at1stē", "ēr1gli", "ol1fra", "at1gro", "un1kci", "ār1kņu", "iz1sku", "ek1sce", "ap1sla", "at1slē", "ap1šta", "ap1šļu", "es1tri", "uz1plu", "ār1bli", "ār1grā", "uz1sto", "il1tra", "in1gru", "ūk1sni", "en1szā", "os1prā", "āp1jvī", "ār1tnē", "il1ptu", "um1šza", "is1kre", "is1krē", "ul1gti", "um1dzī", "ek1špu", "ur1zni", "uz1dro", "us1tve", "ās1trā", "ūg1sta", "ap1brē", "er1vje", "iz1grē", "ar1gmu", "at1dru", "ap1kļa", "ap1spi", "ap1bre", "el1pto", "ār1tvē", "al1kšo", "uk1sme", "el1dzē", "il1kme", "ēn1skā", "ir1gšu", "il1sti", "ir1dsa", "ir1slī", "at1smi", "ār1šķo", "ar1spa", "al1dse", "uz1knu", "ar1gpo", "iz1šļa", "at1šķa", "ār1šņu", "uz1sve", "an1stē", "ek1trā", "ār1glu", "ur1vju", "oņ1sti", "at1drā", "iļ1pro", "iz1tva", "iz1trā", "ap1spā", "om1pli", "ak1stu", "ap1spu", "ek1tdi", "ok1ste", "er1gra", "am1bre", "uz1bļa", "us1gra", "el1gru", "am1sta", "at1sko", "īb1stu", "ek1tri", "el1mla", "an1sve", "at1skā", "un1dzī", "īk1gra", "ap1ska", "in1dko", "al1ktu", "ul1dzu", "es1trā", "at1spī", "ol1dla", "at1šķe", "eņ1ple", "os1tla", "ik1stā", "ap1švī", "uz1prā", "ap1kro", "ūt1smē", "is1gri", "em1pšu", "iz1bļa", "ir1mno", "ap1spī", "ēr1kti", "al1gme", "ed1svi", "is1bri", "un1sne", "en1svi", "uz1kve", "ār1gro", "er1stā", "uz1šķe", "eļ1krū", "od1rpa", "īv1grā", "et1rba", "un1sku", "ār1tmē", "āb1stī", "il1pjo", "iz1stā", "uz1žvī", "uz1šķī", "is1tko", "os1pra", "el1gtu", "ad1smi", "om1kra", "ut1sva", "il1pti", "ug1pre", "un1kte", "il1gru", "ār1šķū", "ez1gli", "iv1spē", "er1dlo", "āt1ršā", "ēj1grā", "ur1dzo", "en1trā", "ap1bļa", "ēr1tņu", "em1dni", "in1ksa", "āl1šķē", "uz1hro", "iv1sto", "et1rjū", "uļ1glu", "ir1psi", "el1zce", "um1slē", "at1gri", "el1ptu", "uk1stā", "at1pra", "ar1gjo", "uz1tva", "uz1sko", "iz1stī", "el1sto", "ap1pra", "ov1sku", "ar1šru", "ēp1sto", "at1krā", "ir1ksi", "ok1šķe", "iz1šļā", "iz1dra", "il1ptā", "il1dsē", "in1gta", "ūp1sta", "ug1ļko", "ar1džu", "iz1krā", "ul1dzī", "ur1stā", "ārg1sti", "ilg1sto", "akt1spo", "alt1gva", "ark1sta", "ugs1tlē", "uzs1pļa", "ald1skā", "ins1grē", "izs1prū", "ilk1tni", "urb1sti", "ezg1lve", "arp1pro", "irk1sni", "eld1plē", "ird1spu", "ilp1stu", "īns1trā", "ārs1kra", "ird1smi", "eln1svā", "irp1sti", "ārg1stu", "ens1sta", "ugš1sti", "irk1sti", "ilg1sta", "als1tpu", "ārd1dzi", "irm1dzi", "abs1tra", "umš1brū", "arb1spē", "ils1blī", "urs1krū", "izs1pra", "urb1stu", "udz1šķa", "uzs1kra", "aps1pre", "ins1gru", "ens1bla", "ārs1pra", "arg1krā", "ilk1tne", "ens1tru", "ulk1ste", "upj1gra", "unk1šķi", "urk1sta", "aps1krē", "irs1drē", "ērt1sli", "obs1tru", "ērt1ssū", "ast1sko", "ird1ska", "irg1sto", "ord1zni", "aks1tve", "ikt1stē", "uzs1pre", "izs1pro", "ilt1stē", "uzs1prā", "eks1tko", "alk1stī", "īdz1pro", "ens1dro", "irg1stu", "ing1sto", "izs1kra", "ink1stē", "alk1šķi", "ātr1sli", "ild1spa", "āls1tre", "alk1sto", "ubs1trā", "aps1tru", "ērk1šķa", "izs1trī", "ats1krē", "ārs1trī", "alk1stu", "uss1kri", "izs1pre", "ent1lme", "irg1zda", "ilb1sti", "eks1tre", "aps1pra", "ilk1sti", "unt1szi", "uzs1pro", "eks1klu", "iss1pri", "aps1trī", "ulb1sto", "urk1sti", "aps1pro", "aht1klu", "āls1sta", "ens1krā", "ilt1smā", "eks1pre", "uzs1tru", "aps1prā", "etr1kla", "uzs1pri", "īks1tmē", "eld1spē", "apj1dra", "ist1hre", "ids1krē", "irs1plā", "irs1stu", "unk1stē", "ilk1sni", "ink1šķi", "ird1smī", "irs1kre", "īdz1ska", "alk1snā", "īks1tsi", "izs1tru", "ars1tda", "unt1sno", "ēst1gri", "uzs1tre", "urk1sto", "uns1dro", "ulg1sto", "ātr1spi", "ilg1spē", "erc1sko", "ilb1sto", "āls1skā", "ens1krū", "aps1tri", "ilk1tnē", "udr1skā", "urb1jma", "ats1pra", "ird1sli", "izs1trā", "ekš1ņnī", "ind1sta", "aps1kra", "ērk1stu", "iln1bri", "uzs1pra", "udz1pla", "ilb1stu", "izs1kri", "ilk1stu", "irp1sta", "eks1trē", "ugs1tka", "ult1zva", "ātr1gri", "ink1šķo", "urk1šķa", "ulb1sti", "uzs1trā", "aps1trā", "irk1stī", "ulb1stu", "unk1tsi", "ons1trē", "īgt1spē", "ark1stu", "ilk1sto", "ark1šķo", "alt1kvē", "uns1dzē", "irk1stē", "ild1krē", "ink1sli", "urs1trā", "unk1sto", "ilk1stē", "ārg1sto", "akt1sgu", "ert1bri", "ilg1sti", "ērt1svē", "ērs1gri", "aps1trē", "eņs1krā", "amp1stu", "ats1trā", "ilp1sti", "ežs1trā", "erk1šķi", "eln1pla", "urk1sni", "akt1svi", "ens1dzi", "irg1sti", "ark1šķu", "ess1krā", "irk1sto", "unt1sma", "isn1gri", "alk1sne", "ild1pla", "udz1ska", "ārs1tru", "uzs1krū", "ink1šķē", "ērs1svī", "ērk1šķo", "īks1tpi", "ilt1rpa", "ātr1bra", "urk1stu", "ārs1pro", "als1sti", "eks1plo", "amp1sto", "izs1tre", "ang1ste", "irg1sta", "izs1krē", "ātr1spē", "ust1knā", "ark1šķē", "ark1šķi", "ārs1prā", "aps1prū", "ilp1sto", "īgs1trā", "ont1rre", "akt1sde", "ats1tre", "uzs1trī", "aps1pļa", "urk1šķi", "urk1ste", "ink1stu", "ājs1trā", "ats1pļa", "ērk1šķi", "etr1stū", "ink1sta", "ans1kri", "eks1pro", "ald1drā", "ārp1sta", "urb1sta", "unk1šķē", "akt1sda", "akt1spu", "alk1sni", "ārg1sta", "āls1tra", "āls1ste", "irg1zde", "āgs1tvi", "ird1zni", "irt1sku", "ons1trā", "ērk1sta", "ilp1sta", "isn1stū", "elk1sni", "ilt1sko", "ats1prū", "urk1šķu", "ars1tga", "ugs1tro", "ens1šķi", "ing1sti", "ads1krū", "els1tra", "ark1šķa", "ark1sto", "ant1sbe", "ink1šķa", "unk1sti", "ird1sde", "ink1sti", "ans1pla", "ugs1tra", "ats1pre", "irk1šķi", "irp1stu", "ils1dru", "als1tni", "ats1tru", "ins1tru", "anž1dze", "īks1pro", "amp1sti", "ars1tvī", "ugš1stā", "anc1spē", "ark1sti", "unk1sta", "irm1ska", "akt1smī", "ulg1stu", "amp1sta", "eks1trī", "unk1šķo", "urk1stē", "elz1szā", "ārs1tre", "ens1kri", "ink1šķe", "uks1trā", "ink1sto", "ult1spū", "elt1spē", "ats1pri", "ild1spē", "uzs1prū", "eks1tro", "egl1prā", "irp1sto", "alt1kri", "akņ1gra", "ārs1lve", "ārs1pļa", "udz1stū", "urb1sto", "aps1tre", "ugs1tvē", "ekļ1skā", "unk1šķa", "isn1prā", "ats1tri", "ākļ1stā", "udz1krā", "imt1pro", "ing1sta", "eks1plu", "akt1spa", "ilk1sta", "alk1šņa", "ats1prā", "īks1tča", "ent1rti", "ērk1sti", "irg1spē", "ikt1spē", "izs1prā", "akt1smi", "izs1krū", "unk1stu", "ats1krū", "ārs1pri", "unk1šķu", "ult1spē", "unt1sga", "ugs1tsi", "izs1pri", "ārs1krū", "aps1krū", "ārk1sti", "izs1pļa", "ars1tpu", "ērk1ste", "uzs1tri", "ulb1sta", "izs1tri", "ons1tru", "irs1svā", "ats1trī", "ārs1krē", "akt1ssa", "eks1tra", "akt1slo", "urk1šķo", "ing1stu", "ult1kva", "ust1spo", "ītņ1gri", "ežs1krū", "irm1sle", "irk1sta", "urk1šķē", "ort1pre", "ekš1ņla", "iņs1trā", "alk1sta", "irk1stu", "emm1dzi", "irg1zdā", "irm1kla", "aks1tni", "ons1tra", "ink1šķu", "ats1kra", "ind1rve", "akt1sja", "ens1blu", "aļķ1špa", "ult1sva", "ogļ1skā", "ārk1sta", "ulg1sti", "ērk1sto", "ird1sdā", "ugs1tce", "uns1grē", "ult1pla", "irš1krā", "egt1spē", "ārs1tni", "ats1pro", "akt1sla", "ārs1tri", "ilg1stu", "īdz1sva", "uzs1krē", "oks1krū", "ārt1sta", "ilb1sta", "alk1sti", "oks1tro", "ekš1dzi", "ent1rbē", "iln1ska", "irm1šķi", "ārs1trā", "aps1pri", "ons1krē", "ārs1pre", "irk1ste", "ird1slē", "ulg1sta", "akš1svā", "alt1bri", "ārs1prū", ".jā1s2p", ".ne1s2p", ".ie1s2p", ".no1s2p", ".pa1s2p", ".pie1s2p", ".sa1s2p", ".uz1s2p", ".aiz1s2p", ".ap1s2p", ".at1s2p", ".bez1s2p", ".pār1s2p", ".iz1s2p", ".eks1s2p", ".vis1s2p", ".jā1t2r", ".ne1t2r", ".ie1t2r", ".no1t2r", ".pa1t2r", ".pie1t2r", ".sa1t2r", ".uz1t2r", ".aiz1t2r", ".ap1t2r", ".at1t2r", ".bez1t2r", ".pār1t2r", ".iz1t2r", ".eks1t2r", ".vis1t2r", ".jā1s2c", ".ne1s2c", ".ie1s2c", ".no1s2c", ".pa1s2c", ".pie1s2c", ".sa1s2c", ".uz1s2c", ".aiz1s2c", ".ap1s2c", ".at1s2c", ".bez1s2c", ".pār1s2c", ".iz1s2c", ".eks1s2c", ".vis1s2c", ".jā1s2tj", ".ne1s2tj", ".ie1s2tj", ".no1s2tj", ".pa1s2tj", ".pie1s2tj", ".sa1s2tj", ".uz1s2tj", ".aiz1s2tj", ".ap1s2tj", ".at1s2tj", ".bez1s2tj", ".pār1s2tj", ".iz1s2tj", ".eks1s2tj", ".vis1s2tj", ".jā1g2l", ".ne1g2l", ".ie1g2l", ".no1g2l", ".pa1g2l", ".pie1g2l", ".sa1g2l", ".uz1g2l", ".aiz1g2l", ".ap1g2l", ".at1g2l", ".bez1g2l", ".pār1g2l", ".iz1g2l", ".eks1g2l", ".vis1g2l", ".jā1ž2v", ".ne1ž2v", ".ie1ž2v", ".no1ž2v", ".pa1ž2v", ".pie1ž2v", ".sa1ž2v", ".uz1ž2v", ".aiz1ž2v", ".ap1ž2v", ".at1ž2v", ".bez1ž2v", ".pār1ž2v", ".iz1ž2v", ".eks1ž2v", ".vis1ž2v", ".jā1š2ļ", ".ne1š2ļ", ".ie1š2ļ", ".no1š2ļ", ".pa1š2ļ", ".pie1š2ļ", ".sa1š2ļ", ".uz1š2ļ", ".aiz1š2ļ", ".ap1š2ļ", ".at1š2ļ", ".bez1š2ļ", ".pār1š2ļ", ".iz1š2ļ", ".eks1š2ļ", ".vis1š2ļ", ".jā1s2f", ".ne1s2f", ".ie1s2f", ".no1s2f", ".pa1s2f", ".pie1s2f", ".sa1s2f", ".uz1s2f", ".aiz1s2f", ".ap1s2f", ".at1s2f", ".bez1s2f", ".pār1s2f", ".iz1s2f", ".eks1s2f", ".vis1s2f", ".jā1š2t", ".ne1š2t", ".ie1š2t", ".no1š2t", ".pa1š2t", ".pie1š2t", ".sa1š2t", ".uz1š2t", ".aiz1š2t", ".ap1š2t", ".at1š2t", ".bez1š2t", ".pār1š2t", ".iz1š2t", ".eks1š2t", ".vis1š2t", ".jā1s2tr", ".ne1s2tr", ".ie1s2tr", ".no1s2tr", ".pa1s2tr", ".pie1s2tr", ".sa1s2tr", ".uz1s2tr", ".aiz1s2tr", ".ap1s2tr", ".at1s2tr", ".bez1s2tr", ".pār1s2tr", ".iz1s2tr", ".eks1s2tr", ".vis1s2tr", ".jā1b2r", ".ne1b2r", ".ie1b2r", ".no1b2r", ".pa1b2r", ".pie1b2r", ".sa1b2r", ".uz1b2r", ".aiz1b2r", ".ap1b2r", ".at1b2r", ".bez1b2r", ".pār1b2r", ".iz1b2r", ".eks1b2r", ".vis1b2r", ".jā1š2r", ".ne1š2r", ".ie1š2r", ".no1š2r", ".pa1š2r", ".pie1š2r", ".sa1š2r", ".uz1š2r", ".aiz1š2r", ".ap1š2r", ".at1š2r", ".bez1š2r", ".pār1š2r", ".iz1š2r", ".eks1š2r", ".vis1š2r", ".jā1š2v", ".ne1š2v", ".ie1š2v", ".no1š2v", ".pa1š2v", ".pie1š2v", ".sa1š2v", ".uz1š2v", ".aiz1š2v", ".ap1š2v", ".at1š2v", ".bez1š2v", ".pār1š2v", ".iz1š2v", ".eks1š2v", ".vis1š2v", ".jā1s2t", ".ne1s2t", ".ie1s2t", ".no1s2t", ".pa1s2t", ".pie1s2t", ".sa1s2t", ".uz1s2t", ".aiz1s2t", ".ap1s2t", ".at1s2t", ".bez1s2t", ".pār1s2t", ".iz1s2t", ".eks1s2t", ".vis1s2t", ".jā1p2r", ".ne1p2r", ".ie1p2r", ".no1p2r", ".pa1p2r", ".pie1p2r", ".sa1p2r", ".uz1p2r", ".aiz1p2r", ".ap1p2r", ".at1p2r", ".bez1p2r", ".pār1p2r", ".iz1p2r", ".eks1p2r", ".vis1p2r", ".jā1g2ļ", ".ne1g2ļ", ".ie1g2ļ", ".no1g2ļ", ".pa1g2ļ", ".pie1g2ļ", ".sa1g2ļ", ".uz1g2ļ", ".aiz1g2ļ", ".ap1g2ļ", ".at1g2ļ", ".bez1g2ļ", ".pār1g2ļ", ".iz1g2ļ", ".eks1g2ļ", ".vis1g2ļ", ".jā1š2k", ".ne1š2k", ".ie1š2k", ".no1š2k", ".pa1š2k", ".pie1š2k", ".sa1š2k", ".uz1š2k", ".aiz1š2k", ".ap1š2k", ".at1š2k", ".bez1š2k", ".pār1š2k", ".iz1š2k", ".eks1š2k", ".vis1š2k", ".jā1p2s", ".ne1p2s", ".ie1p2s", ".no1p2s", ".pa1p2s", ".pie1p2s", ".sa1p2s", ".uz1p2s", ".aiz1p2s", ".ap1p2s", ".at1p2s", ".bez1p2s", ".pār1p2s", ".iz1p2s", ".eks1p2s", ".vis1p2s", ".jā1k2l", ".ne1k2l", ".ie1k2l", ".no1k2l", ".pa1k2l", ".pie1k2l", ".sa1k2l", ".uz1k2l", ".aiz1k2l", ".ap1k2l", ".at1k2l", ".bez1k2l", ".pār1k2l", ".iz1k2l", ".eks1k2l", ".vis1k2l", ".jā1g2r", ".ne1g2r", ".ie1g2r", ".no1g2r", ".pa1g2r", ".pie1g2r", ".sa1g2r", ".uz1g2r", ".aiz1g2r", ".ap1g2r", ".at1g2r", ".bez1g2r", ".pār1g2r", ".iz1g2r", ".eks1g2r", ".vis1g2r", ".jā1š2ķ", ".ne1š2ķ", ".ie1š2ķ", ".no1š2ķ", ".pa1š2ķ", ".pie1š2ķ", ".sa1š2ķ", ".uz1š2ķ", ".aiz1š2ķ", ".ap1š2ķ", ".at1š2ķ", ".bez1š2ķ", ".pār1š2ķ", ".iz1š2ķ", ".eks1š2ķ", ".vis1š2ķ", ".jā1p2n", ".ne1p2n", ".ie1p2n", ".no1p2n", ".pa1p2n", ".pie1p2n", ".sa1p2n", ".uz1p2n", ".aiz1p2n", ".ap1p2n", ".at1p2n", ".bez1p2n", ".pār1p2n", ".iz1p2n", ".eks1p2n", ".vis1p2n", ".jā1s2v", ".ne1s2v", ".ie1s2v", ".no1s2v", ".pa1s2v", ".pie1s2v", ".sa1s2v", ".uz1s2v", ".aiz1s2v", ".ap1s2v", ".at1s2v", ".bez1s2v", ".pār1s2v", ".iz1s2v", ".eks1s2v", ".vis1s2v", ".jā1s2pr", ".ne1s2pr", ".ie1s2pr", ".no1s2pr", ".pa1s2pr", ".pie1s2pr", ".sa1s2pr", ".uz1s2pr", ".aiz1s2pr", ".ap1s2pr", ".at1s2pr", ".bez1s2pr", ".pār1s2pr", ".iz1s2pr", ".eks1s2pr", ".vis1s2pr", ".jā1d2r", ".ne1d2r", ".ie1d2r", ".no1d2r", ".pa1d2r", ".pie1d2r", ".sa1d2r", ".uz1d2r", ".aiz1d2r", ".ap1d2r", ".at1d2r", ".bez1d2r", ".pār1d2r", ".iz1d2r", ".eks1d2r", ".vis1d2r", ".jā1p2l", ".ne1p2l", ".ie1p2l", ".no1p2l", ".pa1p2l", ".pie1p2l", ".sa1p2l", ".uz1p2l", ".aiz1p2l", ".ap1p2l", ".at1p2l", ".bez1p2l", ".pār1p2l", ".iz1p2l", ".eks1p2l", ".vis1p2l", ".jā1d2v", ".ne1d2v", ".ie1d2v", ".no1d2v", ".pa1d2v", ".pie1d2v", ".sa1d2v", ".uz1d2v", ".aiz1d2v", ".ap1d2v", ".at1d2v", ".bez1d2v", ".pār1d2v", ".iz1d2v", ".eks1d2v", ".vis1d2v", ".jā1š2l", ".ne1š2l", ".ie1š2l", ".no1š2l", ".pa1š2l", ".pie1š2l", ".sa1š2l", ".uz1š2l", ".aiz1š2l", ".ap1š2l", ".at1š2l", ".bez1š2l", ".pār1š2l", ".iz1š2l", ".eks1š2l", ".vis1š2l", ".jā1s2k", ".ne1s2k", ".ie1s2k", ".no1s2k", ".pa1s2k", ".pie1s2k", ".sa1s2k", ".uz1s2k", ".aiz1s2k", ".ap1s2k", ".at1s2k", ".bez1s2k", ".pār1s2k", ".iz1s2k", ".eks1s2k", ".vis1s2k", ".jā1s2kv", ".ne1s2kv", ".ie1s2kv", ".no1s2kv", ".pa1s2kv", ".pie1s2kv", ".sa1s2kv", ".uz1s2kv", ".aiz1s2kv", ".ap1s2kv", ".at1s2kv", ".bez1s2kv", ".pār1s2kv", ".iz1s2kv", ".eks1s2kv", ".vis1s2kv", ".jā1k2v", ".ne1k2v", ".ie1k2v", ".no1k2v", ".pa1k2v", ".pie1k2v", ".sa1k2v", ".uz1k2v", ".aiz1k2v", ".ap1k2v", ".at1k2v", ".bez1k2v", ".pār1k2v", ".iz1k2v", ".eks1k2v", ".vis1k2v", ".jā1z2v", ".ne1z2v", ".ie1z2v", ".no1z2v", ".pa1z2v", ".pie1z2v", ".sa1z2v", ".uz1z2v", ".aiz1z2v", ".ap1z2v", ".at1z2v", ".bez1z2v", ".pār1z2v", ".iz1z2v", ".eks1z2v", ".vis1z2v", ".jā1k2s", ".ne1k2s", ".ie1k2s", ".no1k2s", ".pa1k2s", ".pie1k2s", ".sa1k2s", ".uz1k2s", ".aiz1k2s", ".ap1k2s", ".at1k2s", ".bez1k2s", ".pār1k2s", ".iz1k2s", ".eks1k2s", ".vis1k2s", ".jā1p2t", ".ne1p2t", ".ie1p2t", ".no1p2t", ".pa1p2t", ".pie1p2t", ".sa1p2t", ".uz1p2t", ".aiz1p2t", ".ap1p2t", ".at1p2t", ".bez1p2t", ".pār1p2t", ".iz1p2t", ".eks1p2t", ".vis1p2t", ".jā1z2n", ".ne1z2n", ".ie1z2n", ".no1z2n", ".pa1z2n", ".pie1z2n", ".sa1z2n", ".uz1z2n", ".aiz1z2n", ".ap1z2n", ".at1z2n", ".bez1z2n", ".pār1z2n", ".iz1z2n", ".eks1z2n", ".vis1z2n", ".jā1k2r", ".ne1k2r", ".ie1k2r", ".no1k2r", ".pa1k2r", ".pie1k2r", ".sa1k2r", ".uz1k2r", ".aiz1k2r", ".ap1k2r", ".at1k2r", ".bez1k2r", ".pār1k2r", ".iz1k2r", ".eks1k2r", ".vis1k2r", ".jā1s2kr", ".ne1s2kr", ".ie1s2kr", ".no1s2kr", ".pa1s2kr", ".pie1s2kr", ".sa1s2kr", ".uz1s2kr", ".aiz1s2kr", ".ap1s2kr", ".at1s2kr", ".bez1s2kr", ".pār1s2kr", ".iz1s2kr", ".eks1s2kr", ".vis1s2kr", ".jā1f2r", ".ne1f2r", ".ie1f2r", ".no1f2r", ".pa1f2r", ".pie1f2r", ".sa1f2r", ".uz1f2r", ".aiz1f2r", ".ap1f2r", ".at1f2r", ".bez1f2r", ".pār1f2r", ".iz1f2r", ".eks1f2r", ".vis1f2r", ".jā1s2h", ".ne1s2h", ".ie1s2h", ".no1s2h", ".pa1s2h", ".pie1s2h", ".sa1s2h", ".uz1s2h", ".aiz1s2h", ".ap1s2h", ".at1s2h", ".bez1s2h", ".pār1s2h", ".iz1s2h", ".eks1s2h", ".vis1s2h", ".jā1ž2ņ", ".ne1ž2ņ", ".ie1ž2ņ", ".no1ž2ņ", ".pa1ž2ņ", ".pie1ž2ņ", ".sa1ž2ņ", ".uz1ž2ņ", ".aiz1ž2ņ", ".ap1ž2ņ", ".at1ž2ņ", ".bez1ž2ņ", ".pār1ž2ņ", ".iz1ž2ņ", ".eks1ž2ņ", ".vis1ž2ņ", ".jā1d2d", ".ne1d2d", ".ie1d2d", ".no1d2d", ".pa1d2d", ".pie1d2d", ".sa1d2d", ".uz1d2d", ".aiz1d2d", ".ap1d2d", ".at1d2d", ".bez1d2d", ".pār1d2d", ".iz1d2d", ".eks1d2d", ".vis1d2d", ".jā1š2pr", ".ne1š2pr", ".ie1š2pr", ".no1š2pr", ".pa1š2pr", ".pie1š2pr", ".sa1š2pr", ".uz1š2pr", ".aiz1š2pr", ".ap1š2pr", ".at1š2pr", ".bez1š2pr", ".pār1š2pr", ".iz1š2pr", ".eks1š2pr", ".vis1š2pr", ".jā1v2j", ".ne1v2j", ".ie1v2j", ".no1v2j", ".pa1v2j", ".pie1v2j", ".sa1v2j", ".uz1v2j", ".aiz1v2j", ".ap1v2j", ".at1v2j", ".bez1v2j", ".pār1v2j", ".iz1v2j", ".eks1v2j", ".vis1v2j", ".jā1f2j", ".ne1f2j", ".ie1f2j", ".no1f2j", ".pa1f2j", ".pie1f2j", ".sa1f2j", ".uz1f2j", ".aiz1f2j", ".ap1f2j", ".at1f2j", ".bez1f2j", ".pār1f2j", ".iz1f2j", ".eks1f2j", ".vis1f2j", ".jā1p2j", ".ne1p2j", ".ie1p2j", ".no1p2j", ".pa1p2j", ".pie1p2j", ".sa1p2j", ".uz1p2j", ".aiz1p2j", ".ap1p2j", ".at1p2j", ".bez1p2j", ".pār1p2j", ".iz1p2j", ".eks1p2j", ".vis1p2j", ".jā1b2ļ", ".ne1b2ļ", ".ie1b2ļ", ".no1b2ļ", ".pa1b2ļ", ".pie1b2ļ", ".sa1b2ļ", ".uz1b2ļ", ".aiz1b2ļ", ".ap1b2ļ", ".at1b2ļ", ".bez1b2ļ", ".pār1b2ļ", ".iz1b2ļ", ".eks1b2ļ", ".vis1b2ļ", ".jā1g2n", ".ne1g2n", ".ie1g2n", ".no1g2n", ".pa1g2n", ".pie1g2n", ".sa1g2n", ".uz1g2n", ".aiz1g2n", ".ap1g2n", ".at1g2n", ".bez1g2n", ".pār1g2n", ".iz1g2n", ".eks1g2n", ".vis1g2n", ".jā1h2r", ".ne1h2r", ".ie1h2r", ".no1h2r", ".pa1h2r", ".pie1h2r", ".sa1h2r", ".uz1h2r", ".aiz1h2r", ".ap1h2r", ".at1h2r", ".bez1h2r", ".pār1h2r", ".iz1h2r", ".eks1h2r", ".vis1h2r", ".jā1s2n", ".ne1s2n", ".ie1s2n", ".no1s2n", ".pa1s2n", ".pie1s2n", ".sa1s2n", ".uz1s2n", ".aiz1s2n", ".ap1s2n", ".at1s2n", ".bez1s2n", ".pār1s2n", ".iz1s2n", ".eks1s2n", ".vis1s2n", ".jā1ž2m", ".ne1ž2m", ".ie1ž2m", ".no1ž2m", ".pa1ž2m", ".pie1ž2m", ".sa1ž2m", ".uz1ž2m", ".aiz1ž2m", ".ap1ž2m", ".at1ž2m", ".bez1ž2m", ".pār1ž2m", ".iz1ž2m", ".eks1ž2m", ".vis1ž2m", ".jā1d2ž", ".ne1d2ž", ".ie1d2ž", ".no1d2ž", ".pa1d2ž", ".pie1d2ž", ".sa1d2ž", ".uz1d2ž", ".aiz1d2ž", ".ap1d2ž", ".at1d2ž", ".bez1d2ž", ".pār1d2ž", ".iz1d2ž", ".eks1d2ž", ".vis1d2ž", ".jā1k2c", ".ne1k2c", ".ie1k2c", ".no1k2c", ".pa1k2c", ".pie1k2c", ".sa1k2c", ".uz1k2c", ".aiz1k2c", ".ap1k2c", ".at1k2c", ".bez1k2c", ".pār1k2c", ".iz1k2c", ".eks1k2c", ".vis1k2c", ".jā1k2ņ", ".ne1k2ņ", ".ie1k2ņ", ".no1k2ņ", ".pa1k2ņ", ".pie1k2ņ", ".sa1k2ņ", ".uz1k2ņ", ".aiz1k2ņ", ".ap1k2ņ", ".at1k2ņ", ".bez1k2ņ", ".pār1k2ņ", ".iz1k2ņ", ".eks1k2ņ", ".vis1k2ņ", ".jā1š2m", ".ne1š2m", ".ie1š2m", ".no1š2m", ".pa1š2m", ".pie1š2m", ".sa1š2m", ".uz1š2m", ".aiz1š2m", ".ap1š2m", ".at1š2m", ".bez1š2m", ".pār1š2m", ".iz1š2m", ".eks1š2m", ".vis1š2m", ".jā1g2v", ".ne1g2v", ".ie1g2v", ".no1g2v", ".pa1g2v", ".pie1g2v", ".sa1g2v", ".uz1g2v", ".aiz1g2v", ".ap1g2v", ".at1g2v", ".bez1g2v", ".pār1g2v", ".iz1g2v", ".eks1g2v", ".vis1g2v", ".jā1h2l", ".ne1h2l", ".ie1h2l", ".no1h2l", ".pa1h2l", ".pie1h2l", ".sa1h2l", ".uz1h2l", ".aiz1h2l", ".ap1h2l", ".at1h2l", ".bez1h2l", ".pār1h2l", ".iz1h2l", ".eks1h2l", ".vis1h2l", ".jā1k2ļ", ".ne1k2ļ", ".ie1k2ļ", ".no1k2ļ", ".pa1k2ļ", ".pie1k2ļ", ".sa1k2ļ", ".uz1k2ļ", ".aiz1k2ļ", ".ap1k2ļ", ".at1k2ļ", ".bez1k2ļ", ".pār1k2ļ", ".iz1k2ļ", ".eks1k2ļ", ".vis1k2ļ", ".jā1s2l", ".ne1s2l", ".ie1s2l", ".no1s2l", ".pa1s2l", ".pie1s2l", ".sa1s2l", ".uz1s2l", ".aiz1s2l", ".ap1s2l", ".at1s2l", ".bez1s2l", ".pār1s2l", ".iz1s2l", ".eks1s2l", ".vis1s2l", ".jā1t2v", ".ne1t2v", ".ie1t2v", ".no1t2v", ".pa1t2v", ".pie1t2v", ".sa1t2v", ".uz1t2v", ".aiz1t2v", ".ap1t2v", ".at1t2v", ".bez1t2v", ".pār1t2v", ".iz1t2v", ".eks1t2v", ".vis1t2v", ".jā1š2ņ", ".ne1š2ņ", ".ie1š2ņ", ".no1š2ņ", ".pa1š2ņ", ".pie1š2ņ", ".sa1š2ņ", ".uz1š2ņ", ".aiz1š2ņ", ".ap1š2ņ", ".at1š2ņ", ".bez1š2ņ", ".pār1š2ņ", ".iz1š2ņ", ".eks1š2ņ", ".vis1š2ņ", ".jā1š2p", ".ne1š2p", ".ie1š2p", ".no1š2p", ".pa1š2p", ".pie1š2p", ".sa1š2p", ".uz1š2p", ".aiz1š2p", ".ap1š2p", ".at1š2p", ".bez1š2p", ".pār1š2p", ".iz1š2p", ".eks1š2p", ".vis1š2p", ".jā1d2z", ".ne1d2z", ".ie1d2z", ".no1d2z", ".pa1d2z", ".pie1d2z", ".sa1d2z", ".uz1d2z", ".aiz1d2z", ".ap1d2z", ".at1d2z", ".bez1d2z", ".pār1d2z", ".iz1d2z", ".eks1d2z", ".vis1d2z", ".jā1f2l", ".ne1f2l", ".ie1f2l", ".no1f2l", ".pa1f2l", ".pie1f2l", ".sa1f2l", ".uz1f2l", ".aiz1f2l", ".ap1f2l", ".at1f2l", ".bez1f2l", ".pār1f2l", ".iz1f2l", ".eks1f2l", ".vis1f2l", ".jā1k2n", ".ne1k2n", ".ie1k2n", ".no1k2n", ".pa1k2n", ".pie1k2n", ".sa1k2n", ".uz1k2n", ".aiz1k2n", ".ap1k2n", ".at1k2n", ".bez1k2n", ".pār1k2n", ".iz1k2n", ".eks1k2n", ".vis1k2n", ".jā1p2ļ", ".ne1p2ļ", ".ie1p2ļ", ".no1p2ļ", ".pa1p2ļ", ".pie1p2ļ", ".sa1p2ļ", ".uz1p2ļ", ".aiz1p2ļ", ".ap1p2ļ", ".at1p2ļ", ".bez1p2ļ", ".pār1p2ļ", ".iz1p2ļ", ".eks1p2ļ", ".vis1p2ļ", ".jā1s2pļ", ".ne1s2pļ", ".ie1s2pļ", ".no1s2pļ", ".pa1s2pļ", ".pie1s2pļ", ".sa1s2pļ", ".uz1s2pļ", ".aiz1s2pļ", ".ap1s2pļ", ".at1s2pļ", ".bez1s2pļ", ".pār1s2pļ", ".iz1s2pļ", ".eks1s2pļ", ".vis1s2pļ", ".jā1s2kl", ".ne1s2kl", ".ie1s2kl", ".no1s2kl", ".pa1s2kl", ".pie1s2kl", ".sa1s2kl", ".uz1s2kl", ".aiz1s2kl", ".ap1s2kl", ".at1s2kl", ".bez1s2kl", ".pār1s2kl", ".iz1s2kl", ".eks1s2kl", ".vis1s2kl", ".jā1k2b", ".ne1k2b", ".ie1k2b", ".no1k2b", ".pa1k2b", ".pie1k2b", ".sa1k2b", ".uz1k2b", ".aiz1k2b", ".ap1k2b", ".at1k2b", ".bez1k2b", ".pār1k2b", ".iz1k2b", ".eks1k2b", ".vis1k2b", ".jā1s2m", ".ne1s2m", ".ie1s2m", ".no1s2m", ".pa1s2m", ".pie1s2m", ".sa1s2m", ".uz1s2m", ".aiz1s2m", ".ap1s2m", ".at1s2m", ".bez1s2m", ".pār1s2m", ".iz1s2m", ".eks1s2m", ".vis1s2m", ".jā1m2n", ".ne1m2n", ".ie1m2n", ".no1m2n", ".pa1m2n", ".pie1m2n", ".sa1m2n", ".uz1m2n", ".aiz1m2n", ".ap1m2n", ".at1m2n", ".bez1m2n", ".pār1m2n", ".iz1m2n", ".eks1m2n", ".vis1m2n", ".jā1š2n", ".ne1š2n", ".ie1š2n", ".no1š2n", ".pa1š2n", ".pie1š2n", ".sa1š2n", ".uz1š2n", ".aiz1š2n", ".ap1š2n", ".at1š2n", ".bez1š2n", ".pār1š2n", ".iz1š2n", ".eks1š2n", ".vis1š2n", ".jā1v2r", ".ne1v2r", ".ie1v2r", ".no1v2r", ".pa1v2r", ".pie1v2r", ".sa1v2r", ".uz1v2r", ".aiz1v2r", ".ap1v2r", ".at1v2r", ".bez1v2r", ".pār1v2r", ".iz1v2r", ".eks1v2r", ".vis1v2r", ".jā1b2l", ".ne1b2l", ".ie1b2l", ".no1b2l", ".pa1b2l", ".pie1b2l", ".sa1b2l", ".uz1b2l", ".aiz1b2l", ".ap1b2l", ".at1b2l", ".bez1b2l", ".pār1b2l", ".iz1b2l", ".eks1b2l", ".vis1b2l", "2b3dams.", "2c3dams.", "2č3dams.", "2d3dams.", "2f3dams.", "2g3dams.", "2ģ3dams.", "2h3dams.", "2j3dams.", "2k3dams.", "2ķ3dams.", "2l3dams.", "2ļ3dams.", "2m3dams.", "2n3dams.", "2ņ3dams.", "2p3dams.", "2r3dams.", "2s3dams.", "2š3dams.", "2t3dams.", "2v3dams.", "2z3dams.", "2ž3dams.", "2b3da3ma.", "2c3da3ma.", "2č3da3ma.", "2d3da3ma.", "2f3da3ma.", "2g3da3ma.", "2ģ3da3ma.", "2h3da3ma.", "2j3da3ma.", "2k3da3ma.", "2ķ3da3ma.", "2l3da3ma.", "2ļ3da3ma.", "2m3da3ma.", "2n3da3ma.", "2ņ3da3ma.", "2p3da3ma.", "2r3da3ma.", "2s3da3ma.", "2š3da3ma.", "2t3da3ma.", "2v3da3ma.", "2z3da3ma.", "2ž3da3ma.", "2b3da3mies.", "2c3da3mies.", "2č3da3mies.", "2d3da3mies.", "2f3da3mies.", "2g3da3mies.", "2ģ3da3mies.", "2h3da3mies.", "2j3da3mies.", "2k3da3mies.", "2ķ3da3mies.", "2l3da3mies.", "2ļ3da3mies.", "2m3da3mies.", "2n3da3mies.", "2ņ3da3mies.", "2p3da3mies.", "2r3da3mies.", "2s3da3mies.", "2š3da3mies.", "2t3da3mies.", "2v3da3mies.", "2z3da3mies.", "2ž3da3mies.", "2b3da3mās.", "2c3da3mās.", "2č3da3mās.", "2d3da3mās.", "2f3da3mās.", "2g3da3mās.", "2ģ3da3mās.", "2h3da3mās.", "2j3da3mās.", "2k3da3mās.", "2ķ3da3mās.", "2l3da3mās.", "2ļ3da3mās.", "2m3da3mās.", "2n3da3mās.", "2ņ3da3mās.", "2p3da3mās.", "2r3da3mās.", "2s3da3mās.", "2š3da3mās.", "2t3da3mās.", "2v3da3mās.", "2z3da3mās.", "2ž3da3mās.", "2b3gans.", "2c3gans.", "2č3gans.", "2d3gans.", "2f3gans.", "2g3gans.", "2ģ3gans.", "2h3gans.", "2j3gans.", "2k3gans.", "2ķ3gans.", "2l3gans.", "2ļ3gans.", "2m3gans.", "2n3gans.", "2ņ3gans.", "2p3gans.", "2r3gans.", "2s3gans.", "2š3gans.", "2t3gans.", "2v3gans.", "2z3gans.", "2ž3gans.", "2b3ga3na.", "2c3ga3na.", "2č3ga3na.", "2d3ga3na.", "2f3ga3na.", "2g3ga3na.", "2ģ3ga3na.", "2h3ga3na.", "2j3ga3na.", "2k3ga3na.", "2ķ3ga3na.", "2l3ga3na.", "2ļ3ga3na.", "2m3ga3na.", "2n3ga3na.", "2ņ3ga3na.", "2p3ga3na.", "2r3ga3na.", "2s3ga3na.", "2š3ga3na.", "2t3ga3na.", "2v3ga3na.", "2z3ga3na.", "2ž3ga3na.", "2b3nieks.", "2c3nieks.", "2č3nieks.", "2d3nieks.", "2f3nieks.", "2g3nieks.", "2ģ3nieks.", "2h3nieks.", "2j3nieks.", "2k3nieks.", "2ķ3nieks.", "2l3nieks.", "2ļ3nieks.", "2m3nieks.", "2n3nieks.", "2ņ3nieks.", "2p3nieks.", "2r3nieks.", "2s3nieks.", "2š3nieks.", "2t3nieks.", "2v3nieks.", "2z3nieks.", "2ž3nieks.", "2b3nie3ce.", "2c3nie3ce.", "2č3nie3ce.", "2d3nie3ce.", "2f3nie3ce.", "2g3nie3ce.", "2ģ3nie3ce.", "2h3nie3ce.", "2j3nie3ce.", "2k3nie3ce.", "2ķ3nie3ce.", "2l3nie3ce.", "2ļ3nie3ce.", "2m3nie3ce.", "2n3nie3ce.", "2ņ3nie3ce.", "2p3nie3ce.", "2r3nie3ce.", "2s3nie3ce.", "2š3nie3ce.", "2t3nie3ce.", "2v3nie3ce.", "2z3nie3ce.", "2ž3nie3ce.", "2b3nī3ca.", "2c3nī3ca.", "2č3nī3ca.", "2d3nī3ca.", "2f3nī3ca.", "2g3nī3ca.", "2ģ3nī3ca.", "2h3nī3ca.", "2j3nī3ca.", "2k3nī3ca.", "2ķ3nī3ca.", "2l3nī3ca.", "2ļ3nī3ca.", "2m3nī3ca.", "2n3nī3ca.", "2ņ3nī3ca.", "2p3nī3ca.", "2r3nī3ca.", "2s3nī3ca.", "2š3nī3ca.", "2t3nī3ca.", "2v3nī3ca.", "2z3nī3ca.", "2ž3nī3ca.", "2b3ša3na.", "2c3ša3na.", "2č3ša3na.", "2d3ša3na.", "2f3ša3na.", "2g3ša3na.", "2ģ3ša3na.", "2h3ša3na.", "2j3ša3na.", "2k3ša3na.", "2ķ3ša3na.", "2l3ša3na.", "2ļ3ša3na.", "2m3ša3na.", "2n3ša3na.", "2ņ3ša3na.", "2p3ša3na.", "2r3ša3na.", "2s3ša3na.", "2š3ša3na.", "2t3ša3na.", "2v3ša3na.", "2z3ša3na.", "2ž3ša3na.", "2b3ša3nās.", "2c3ša3nās.", "2č3ša3nās.", "2d3ša3nās.", "2f3ša3nās.", "2g3ša3nās.", "2ģ3ša3nās.", "2h3ša3nās.", "2j3ša3nās.", "2k3ša3nās.", "2ķ3ša3nās.", "2l3ša3nās.", "2ļ3ša3nās.", "2m3ša3nās.", "2n3ša3nās.", "2ņ3ša3nās.", "2p3ša3nās.", "2r3ša3nās.", "2s3ša3nās.", "2š3ša3nās.", "2t3ša3nās.", "2v3ša3nās.", "2z3ša3nās.", "2ž3ša3nās.", "2b3ta3la.", "2c3ta3la.", "2č3ta3la.", "2d3ta3la.", "2f3ta3la.", "2g3ta3la.", "2ģ3ta3la.", "2h3ta3la.", "2j3ta3la.", "2k3ta3la.", "2ķ3ta3la.", "2l3ta3la.", "2ļ3ta3la.", "2m3ta3la.", "2n3ta3la.", "2ņ3ta3la.", "2p3ta3la.", "2r3ta3la.", "2s3ta3la.", "2š3ta3la.", "2t3ta3la.", "2v3ta3la.", "2z3ta3la.", "2ž3ta3la.", "2b3tu3ve.", "2c3tu3ve.", "2č3tu3ve.", "2d3tu3ve.", "2f3tu3ve.", "2g3tu3ve.", "2ģ3tu3ve.", "2h3tu3ve.", "2j3tu3ve.", "2k3tu3ve.", "2ķ3tu3ve.", "2l3tu3ve.", "2ļ3tu3ve.", "2m3tu3ve.", "2n3tu3ve.", "2ņ3tu3ve.", "2p3tu3ve.", "2r3tu3ve.", "2s3tu3ve.", "2š3tu3ve.", "2t3tu3ve.", "2v3tu3ve.", "2z3tu3ve.", "2ž3tu3ve.", ".jā3a2", ".ne3a2", ".ie3a2", ".no3a2", ".pa3a2", ".pie3a2", ".sa3a2", ".uz3a2", ".aiz3a2", ".ap3a2", ".at3a2", ".bez3a2", ".pār3a2", ".iz3a2", ".eks3a2", ".vis3a2", ".jā3ā2", ".ne3ā2", ".ie3ā2", ".no3ā2", ".pa3ā2", ".pie3ā2", ".sa3ā2", ".uz3ā2", ".aiz3ā2", ".ap3ā2", ".at3ā2", ".bez3ā2", ".pār3ā2", ".iz3ā2", ".eks3ā2", ".vis3ā2", ".jā3e2", ".ne3e2", ".ie3e2", ".no3e2", ".pa3e2", ".pie3e2", ".sa3e2", ".uz3e2", ".aiz3e2", ".ap3e2", ".at3e2", ".bez3e2", ".pār3e2", ".iz3e2", ".eks3e2", ".vis3e2", ".jā3ē2", ".ne3ē2", ".ie3ē2", ".no3ē2", ".pa3ē2", ".pie3ē2", ".sa3ē2", ".uz3ē2", ".aiz3ē2", ".ap3ē2", ".at3ē2", ".bez3ē2", ".pār3ē2", ".iz3ē2", ".eks3ē2", ".vis3ē2", ".jā3i2", ".ne3i2", ".ie3i2", ".no3i2", ".pa3i2", ".pie3i2", ".sa3i2", ".uz3i2", ".aiz3i2", ".ap3i2", ".at3i2", ".bez3i2", ".pār3i2", ".iz3i2", ".eks3i2", ".vis3i2", ".jā3ī2", ".ne3ī2", ".ie3ī2", ".no3ī2", ".pa3ī2", ".pie3ī2", ".sa3ī2", ".uz3ī2", ".aiz3ī2", ".ap3ī2", ".at3ī2", ".bez3ī2", ".pār3ī2", ".iz3ī2", ".eks3ī2", ".vis3ī2", ".jā3o2", ".ne3o2", ".ie3o2", ".no3o2", ".pa3o2", ".pie3o2", ".sa3o2", ".uz3o2", ".aiz3o2", ".ap3o2", ".at3o2", ".bez3o2", ".pār3o2", ".iz3o2", ".eks3o2", ".vis3o2", ".jā3u2", ".ne3u2", ".ie3u2", ".no3u2", ".pa3u2", ".pie3u2", ".sa3u2", ".uz3u2", ".aiz3u2", ".ap3u2", ".at3u2", ".bez3u2", ".pār3u2", ".iz3u2", ".eks3u2", ".vis3u2", ".jā3ū2", ".ne3ū2", ".ie3ū2", ".no3ū2", ".pa3ū2", ".pie3ū2", ".sa3ū2", ".uz3ū2", ".aiz3ū2", ".ap3ū2", ".at3ū2", ".bez3ū2", ".pār3ū2", ".iz3ū2", ".eks3ū2", ".vis3ū2", ".jā3ie1", ".jā3iz1", ".jā3no1", ".ne3aiz1", ".ne3ap1", ".ne3ie1", ".ne3at1", ".ne3in1", ".ne3iz1", ".ne3sa", ".ne3uz1", ".priek2š1", "4d5ze1me", ".tur2p1m", "il2k1tie", ".spil2g1t", "mē1ne2š1", "1pa1d2smit", "g2š1gal", "k2š1gal", "tran2s", "1port", "vēs2t1n", "vēs2t1k", "pa2t3stā", "pa2s2t3k", "pa2s2t3m", "pa2s2t2s.", "pa2r2k2s.", "pa2r3ket", "sa2ls.", "sa2lds.", "sa2l2d1", "pir2m1r", "pir2m1k", "pir2m2s1", "ot2r1r2", "ot2r1k2", "ir2k3l", "ir2k3ļ", ".adā2m3", ".ai4z5", "ak3me4ņ3", "apak2š3", "ap1au", "kār2t3n", "aug2s2t3", ".at3e2j", "bal2t3ma", ".vie2n1", };
local initiative = Initiative:by_id(param.get("initiative_id")) local initiator = Initiator:by_pk(initiative.id, app.session.member.id) -- TODO important m1 selectors returning result _SET_! local issue = initiative:get_reference_selector("issue"):for_share():single_object_mode():exec() if issue.closed then slot.put_into("error", _"This issue is already closed.") return false elseif issue.half_frozen then slot.put_into("error", _"This issue is already frozen.") return false end if initiative.revoked then slot.put_into("error", _"This initiative is revoked") return false end local initiator_todelete = Initiator:by_pk(initiative.id, param.get("member_id", atom.integer)) if not (initiator and initiator.accepted) and not (initiator.member_id == initiator_todelete.member_id) then error("access denied") end if initiator_todelete.accepted == false and initiator.member_id ~= initiator_todelete.member_id then error("access denied") end local initiators = initiative :get_reference_selector("initiators") :add_where("accepted") :for_update() :exec() if #initiators > 1 or initiator_todelete.accepted ~= true then initiator_todelete:destroy() -- slot.put_into("notice", _"Member has been removed from initiators") else slot.put_into("error", _"Can't remove last initiator") return false end
pico-8 cartridge // http://www.pico-8.com version 16 __lua__ --paddle padx = 52 pady = 122 padw = 24 padh = 4 --ball ballx = 64 bally = 64 ballsize = 3 ballxdir = 5 ballydir = -3 score = 0 lives = 5 function movepaddle() if btn(0) then padx -= 3 elseif btn(1) then padx += 3 end end function moveball() ballx += ballxdir bally += ballydir end function looseball() if bally > 128 - ballsize then if lives > 0 then lives = lives - 1 sfx(2) bally = 24 else ballydir = 0 ballxdir = 0 bally = 64 end end end function bounceball() --left if ballx < ballsize then ballxdir =- ballxdir sfx(0) end if ballx > 128 - ballsize then ballxdir =- ballxdir sfx(0) end if bally < ballsize then ballydir =- ballydir sfx(0) end end function bouncepaddle() if ballx >= padx and ballx <= padx + padw and bally > pady then sfx(1) score += 1 ballydir =- ballydir end end function _update() if lives > 0 then bounceball() movepaddle() end moveball() bouncepaddle() looseball() end function _draw() local go = "game over!" rectfill(0,0,128,128,3) for i = 1, lives do spr(001,80+i*8,6) end if lives == 0 then print(go,45,50,16) end print(score,12,6,15) rectfill(padx,pady,padx+padw,pady+padh,15) --draw the ball circfill(ballx, bally,ballsize,15) end __gfx__ 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000088088000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00700700888888800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00077000888888800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00077000088888000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00700700008880000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 __map__ 0000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 __sfx__ 000100000ca502b05014050130500ea50120501105001a5011050110500ca5002a5012a5003a5004a500aa5005a5012a5006a500aa5007a5011a5009a500aa5010a500aa500ba5012a500da5013a500ea5013a50 000300001515015150151501515015150151500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0005000017350163501435014350103500d3500735002350183500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
local maxArraySize = 256 local mainLCDCustomDisplayValues = {} local output = {} for i = 1, maxArraySize do output[#output + 1] = string.format("fPropArray[%d] = new Int32JBoxProperty(\"/custom_properties/prop_array_%d\");", i - 1, i) end for k, output in pairs(output) do print(output) end
-- Example: 2D and 3D points point=object:create() function point:init(x, y) self.x=x self.y=y end function point:show() print('('..self.x..','..self.y..')') end p1=point:new(1, 2) p1:show() -- (1, 2) point3D=point:create() -- inherit from point function point3D:init(x, y, z) self.proto.init(self, x, y) -- call prototype methods self.z=z end function point3D:show() print('('..self.x..','..self.y..','..self.z..')') end p2=point3D:new(1, 2, 3) p2:show() -- (1, 2, 3)
function XYZDrugsTable.Core.GetDataByClass(class) for k, v in ipairs(XYZDrugsTable.Config.Drugs) do if v.ents[class] then return v.ents[class] end end return false end
-------------------------------- -- @module Water -- @extend Sprite -- @parent_module cc -------------------------------- -- -- @function [parent=#Water] create -- @param self -- @param #string tex1 -- @param #string tex2 -- @param #string tex3 -- @param #size_table size -- @param #float hSpeed -- @param #float vSpeed -- @param #float saturation -- @return Water#Water ret (return value: cc.Water) return nil
dofile("table_show.lua") dofile("urlcode.lua") local urlparse = require("socket.url") local http = require("socket.http") local item_value = os.getenv('item_value') local item_type = os.getenv('item_type') local item_dir = os.getenv('item_dir') local warc_file_base = os.getenv('warc_file_base') local url_count = 0 local tries = 0 local downloaded = {} local addedtolist = {} local abortgrab = false local item_value_lower = string.lower(item_value) local discovered = {} discovered[item_type .. ":" .. item_value] = true discovered["site:sites"] = true for ignore in io.open("ignore-list", "r"):lines() do downloaded[ignore] = true end if urlparse == nil or http == nil then abortgrab = true end read_file = function(file) if file then local f = assert(io.open(file)) local data = f:read("*all") f:close() return data else return "" end end discover_item = function(type_, name, tries) if tries == nil then tries = 0 end item = type_ .. ':' .. name if discovered[item] then return true end io.stdout:write("Discovered item " .. item .. ".\n") io.stdout:flush() local body, code, headers, status = http.request( "http://blackbird-amqp.meo.ws:23038/googlesites-lwi23sd7qjsa/", item ) if code == 200 or code == 409 then discovered[item] = true return true elseif code == 404 then io.stdout:write("Project key not found.\n") io.stdout:flush() elseif code == 400 then io.stdout:write("Bad format.\n") io.stdout:flush() else io.stdout:write("Could not queue discovered item. Retrying...\n") io.stdout:flush() if tries == 10 then io.stdout:write("Maximum retries reached for sending discovered item.\n") io.stdout:flush() else os.execute("sleep " .. math.pow(2, tries)) return discover_item(type_, name, tries + 1) end end abortgrab = true return false end allowed = function(url, parenturl) if string.match(url, "'+") or string.match(url, "[<>\\%*%$;%^%[%],%(%){}]") or string.match(url, "^https?://sites%.google%.com/feeds/revision/") or string.match(url, "^https?://sites%.google%.com/feeds/content/[^/]+/[^/]+/batch$") or string.match(url, "^https?://accounts%.google%.com/ServiceLogin") or string.match(url, "^https?://sites%.google%.com/.+/system/app/pages/picasaembed%?") or ( item_type == "a" and string.match(url, "^https?://sites%.google%.com/a/[^/]+/[^/]+/_/tz$") ) or ( item_type == "site" and ( string.match(url, "^https?://sites%.google%.com/site/[^/]+/_/tz$") or string.match(url, "^https?://sites%.google%.com/a/defaultdomain/[^/]+/_/tz$") ) ) then return false end local tested = {} for s in string.gmatch(url, "([^/]+)") do if tested[s] == nil then tested[s] = 0 end if tested[s] == 6 then return false end tested[s] = tested[s] + 1 end local match = string.match(url, "^https?://sites%.google%.com/site/([a-zA-Z0-9%%%-_%.]+)") if not match then match = string.match(url, "^https?://sites%.google%.com/a/defaultdomain/([a-zA-Z0-9%%%-_%.]+)") end if not match then match = string.match(url, "^https?://sites%.google%.com/a/([^/]+/[a-zA-Z0-9%%%-_%.]+)") end if match then if string.find(match, "/") then discover_item("a", match) discover_item("domain", string.match(match, "^([^/]+)/")) else discover_item("site", match) end end match = string.match(url, "^https?://sites%.google%.com/feeds/content/.+start%-index=([0-9]+)") if match and parenturl then start_index_new = tonumber(match) match = string.match(parenturl, "^https?://sites%.google%.com/feeds/content/.+start%-index=([0-9]+)") if match then start_index_old = tonumber(match) if start_index_new < start_index_old then return false end end end if string.match(url, "^https?://[^/]*%.googlegroups%.com") or string.match(url, "^https?://[^/]*google%.com/url") then return true end prev = nil for s in string.gmatch(url, "([a-zA-Z0-9%%%-_%.]+)") do if item_type == "site" and string.lower(s) == item_value_lower and string.match(url, '^https?://sites%.google%.com/') then return true elseif item_type == "a" then if prev and string.lower(prev .. "/" .. s) == item_value_lower and string.match(url, '^https?://sites%.google%.com/') then return true end prev = s end end return false end wget.callbacks.download_child_p = function(urlpos, parent, depth, start_url_parsed, iri, verdict, reason) local url = urlpos["url"]["url"] local html = urlpos["link_expect_html"] --[[ -- These types of static resources have a version number that change frequently if string.match(url, "^https?://ssl%.gstatic%.com/sites/p/[a-z0-9]+/") and html then return false end]] if (downloaded[url] ~= true and addedtolist[url] ~= true) and (allowed(url, parent["url"]) or html == 0) then addedtolist[url] = true return true end return false end wget.callbacks.get_urls = function(file, url, is_css, iri) local urls = {} local html = nil downloaded[url] = true local function check(urla) local origurl = url local url = string.match(urla, "^([^#]+)") local url_ = string.gsub(string.match(url, "^(.-)%.?$"), "&amp;", "&") if string.match(url_, "attredirects=[0-9]+") then check(string.match(url_, "^([^%?]+)%?")) end if (downloaded[url_] ~= true and addedtolist[url_] ~= true) and allowed(url_, origurl) then table.insert(urls, { url=url_, headers={["Accept-Language"]="en-US,en;q=0.7"}}) addedtolist[url_] = true addedtolist[url] = true end end local function checknewurl(newurl) if string.match(newurl, "^https?:////") then check(string.gsub(newurl, ":////", "://")) elseif string.match(newurl, "^https?://") then check(newurl) elseif string.match(newurl, "^https?:\\/\\?/") then check(string.gsub(newurl, "\\", "")) elseif string.match(newurl, "^\\/") then checknewurl(string.gsub(newurl, "\\", "")) elseif string.match(newurl, "^//") then check(urlparse.absolute(url, newurl)) elseif string.match(newurl, "^/") then check(urlparse.absolute(url, newurl)) elseif string.match(newurl, "^%.%./") then if string.match(url, "^https?://[^/]+/[^/]+/") then check(urlparse.absolute(url, newurl)) else checknewurl(string.match(newurl, "^%.%.(/.+)$")) end elseif string.match(newurl, "^%./") then check(urlparse.absolute(url, newurl)) end end local function checknewshorturl(newurl) if string.match(newurl, "^%?") then check(urlparse.absolute(url, newurl)) elseif not (string.match(newurl, "^https?:\\?/\\?//?/?") or string.match(newurl, "^[/\\]") or string.match(newurl, "^%./") or string.match(newurl, "^[jJ]ava[sS]cript:") or string.match(newurl, "^[mM]ail[tT]o:") or string.match(newurl, "^vine:") or string.match(newurl, "^android%-app:") or string.match(newurl, "^ios%-app:") or string.match(newurl, "^%${")) then check(urlparse.absolute(url, newurl)) end end if string.match(url, "^[^%?]+%?.*height=") or string.match(url, "^[^%?]+%?.*width=") then check(string.match(url, "^([^%?]+)")) end local a, b = string.match(url, "^(https?://sites%.google%.com)/a/defaultdomain/(.+)$") if a and b then check(a .. "/site/" .. b) end if string.match(url, "^https?://sites%.google%.com/.+/_/rsrc/.+%?") or string.match(url, "^https?://[^/]*%.googlegroups%.com/.+%?") then check(string.match(url, "^([^%?]+)%?")) end if allowed(url, nil) and status_code == 200 and not string.match(url, "^https?://[^/]*%.googlegroups%.com") and not ( item_type == "site" and string.match(url, "^https?://sites%.google%.com/site/[^/]+/_/rsrc/") ) and not ( item_type == "a" and string.match(url, "^https?://sites%.google%.com/a/[^/]+/[^/]+/_/rsrc/") ) then html = read_file(file) if string.match(url, "^https?://sites%.google%.com/site/[^/]+/$") or string.match(url, "^https?://sites%.google%.com/a/defaultdomain/[^/]+/$") then check("https://sites.google.com/feeds/content/site/" .. item_value .. "?max-results=1000000000") check("https://sites.google.com/feeds/content/site/" .. item_value) elseif string.match(url, "^https?://sites%.google%.com/a/[^/]+/[^/]+/$") then check("https://sites.google.com/feeds/content/" .. item_value .. "?max-results=1000000000") check("https://sites.google.com/feeds/content/" .. item_value) end for newurl in string.gmatch(string.gsub(html, "&quot;", '"'), '([^"]+)') do checknewurl(newurl) end for newurl in string.gmatch(string.gsub(html, "&#039;", "'"), "([^']+)") do checknewurl(newurl) end for newurl in string.gmatch(html, ">%s*([^<%s]+)") do checknewurl(newurl) end for newurl in string.gmatch(html, "href='([^']+)'") do checknewshorturl(newurl) end for newurl in string.gmatch(html, "[^%-]href='([^']+)'") do checknewshorturl(newurl) end for newurl in string.gmatch(html, '[^%-]href="([^"]+)"') do checknewshorturl(newurl) end for newurl in string.gmatch(html, ":%s*url%(([^%)]+)%)") do checknewurl(newurl) end end return urls end wget.callbacks.httploop_result = function(url, err, http_stat) status_code = http_stat["statcode"] url_count = url_count + 1 io.stdout:write(url_count .. "=" .. status_code .. " " .. url["url"] .. " \n") io.stdout:flush() if status_code >= 300 and status_code <= 399 then local newloc = urlparse.absolute(url["url"], http_stat["newloc"]) if string.match(newloc, "^https?://[^/]*google%.com/sorry") then io.stdout:write("Got a CAPTCHA.\n") io.stdout:flush() os.execute("sleep 600") abortgrab = true end if string.match(newloc, "/matureConfirm%?") then io.stdout:write("18+ cookie not working.\n") io.stdout:flush() abortgrab = true end if downloaded[newloc] == true or addedtolist[newloc] == true or not allowed(newloc, url["url"]) then tries = 0 return wget.actions.EXIT end end if status_code >= 200 and status_code <= 399 then downloaded[url["url"]] = true downloaded[string.gsub(url["url"], "https?://", "http://")] = true end if abortgrab == true then io.stdout:write("ABORTING...\n") io.stdout:flush() return wget.actions.ABORT end if (status_code >= 401 and status_code ~= 404) or status_code == 0 then io.stdout:write("Server returned "..http_stat.statcode.." ("..err.."). Sleeping.\n") io.stdout:flush() local maxtries = 10 if not allowed(url["url"], nil) then maxtries = 1 end -- limit the time taken on 403 errors if status_code == 403 then maxtries = 3 end if tries >= maxtries then io.stdout:write("\nI give up...\n") io.stdout:flush() tries = 0 if maxtries == 1 then return wget.actions.EXIT end if status_code == 403 then local html = read_file(http_stat["local_file"]) if string.match(html, "^%s*Access denied%s*$") then return wget.actions.EXIT end end return wget.actions.ABORT else -- 429 = SLOW DOWN, ratelimiting bad here, doing this for now, will slow project down but we have time and resources if status_code == 429 then os.execute("sleep 30") else os.execute("sleep " .. math.floor(math.pow(2, tries))) end tries = tries + 1 return wget.actions.CONTINUE end end tries = 0 local sleep_time = 0 if sleep_time > 0.001 then os.execute("sleep " .. sleep_time) end return wget.actions.NOTHING end wget.callbacks.before_exit = function(exit_status, exit_status_string) if abortgrab == true then return wget.exits.IO_FAIL end return exit_status end
-- ---------------------------------------------------------------------------- -- Rules to build wxWidgets' wxXRC binding for wxLua -- load using : $lua -e"rulesFilename=\"rules.lua\"" genwxbind.lua -- ---------------------------------------------------------------------------- -- ---------------------------------------------------------------------------- -- Set the root directory of the wxLua distribution, used only in this file wxlua_dir = "../" -- ============================================================================ -- Set the Lua namespace (Lua table) that the bindings will be placed into. -- See wxLuaBinding::GetLuaNamespace(); eg. wx.wxWindow(...) hook_lua_namespace = "wx" -- Set the unique C++ "namespace" for the bindings, not a real namespace, but -- a string used in declared C++ objects to prevent duplicate names. -- See wxLuaBinding::GetBindingName(). hook_cpp_namespace = "wxxrc" -- ============================================================================ -- Set the directory to output the bindings to, both C++ header and source files output_cpp_header_filepath = wxlua_dir.."modules/wxbind/include" output_cpp_filepath = wxlua_dir.."modules/wxbind/src" -- ============================================================================ -- Set the DLLIMPEXP macros for compiling these bindings into a DLL -- Use "WXLUA_NO_DLLIMPEXP" and "WXLUA_NO_DLLIMPEXP_DATA" for no IMPEXP macros output_cpp_impexpsymbol = "WXDLLIMPEXP_BINDWXXRC" output_cpp_impexpdatasymbol = "WXDLLIMPEXP_DATA_BINDWXXRC" -- ---------------------------------------------------------------------------- -- Set the name of the header file that will have the #includes from the -- bindings in it. This will be used as #include "hook_cpp_header_filename" in -- the C++ wrapper files, so it must include the proper #include path. hook_cpp_header_filename = "wxbind/include/"..hook_cpp_namespace.."_bind.h" -- ---------------------------------------------------------------------------- -- Set the name of the main binding file that will have the glue code for the -- bindings in it. This file along with the output from the *.i files will be -- placed in the "output_cpp_filepath". hook_cpp_binding_filename = hook_cpp_namespace.."_bind.cpp" -- ---------------------------------------------------------------------------- -- Generate only a single output C++ binding source file with the name of -- hook_cpp_binding_filename, as opposed to generating a single cpp file -- for each *.i file plus the hook_cpp_binding_filename file. output_single_cpp_binding_file = true -- ---------------------------------------------------------------------------- -- Set the name of the subclassed wxLuaBinding class hook_cpp_binding_classname = "wxLuaBinding_"..hook_cpp_namespace -- ---------------------------------------------------------------------------- -- Set the function names that wrap the output structs of defined values, -- objects, events, functions, and classes. hook_cpp_define_funcname = "wxLuaGetDefineList_"..hook_cpp_namespace hook_cpp_string_funcname = "wxLuaGetStringList_"..hook_cpp_namespace hook_cpp_object_funcname = "wxLuaGetObjectList_"..hook_cpp_namespace hook_cpp_event_funcname = "wxLuaGetEventList_"..hook_cpp_namespace hook_cpp_function_funcname = "wxLuaGetFunctionList_"..hook_cpp_namespace hook_cpp_class_funcname = "wxLuaGetClassList_"..hook_cpp_namespace -- ---------------------------------------------------------------------------- -- Set any #includes or other C++ code to be placed verbatim at the top of -- every generated cpp file or "" for none hook_cpp_binding_includes = "" -- ---------------------------------------------------------------------------- -- Set any #includes or other C++ code to be placed verbatim below the -- #includes of every generated cpp file or "" for none hook_cpp_binding_post_includes = "" -- ---------------------------------------------------------------------------- -- Add additional include information or C++ code for the binding header file. -- This code will be place directly after any #includes at the top of the file hook_cpp_binding_header_includes = "#include \"wxbind/include/wxbinddefs.h\"\n".. "#include \"wxluasetup.h\"\n".. "#include \"wxbind/include/wxcore_bind.h\"\n" -- ---------------------------------------------------------------------------- -- Set any #includes or other C++ code to be placed verbatim at the top of -- the single hook_cpp_binding_filename generated cpp file or "" for none hook_cpp_binding_source_includes = "" -- ============================================================================ -- Set the bindings directory that contains the *.i interface files interface_filepath = wxlua_dir.."bindings/wxwidgets" -- ---------------------------------------------------------------------------- -- A list of interface files to use to make the bindings. These files will be -- converted into *.cpp and placed in the output_cpp_filepath directory. -- The files are loaded from the interface_filepath. interface_fileTable = { "wxxrc_xrc.i" } -- ---------------------------------------------------------------------------- -- A list of files that contain bindings that need to be overridden or empty -- table {} for none. -- The files are loaded from the interface_filepath. --override_fileTable = { "wxxrc_override.hpp" } -- ============================================================================ -- A table containing filenames of XXX_datatype.lua from other wrappers to -- to define classes and data types used in this wrapper -- NOTE: for the base wxWidgets wrappers we don't load the cache since they -- don't depend on other wrappers and can cause problems when interface -- files are updated. Make sure you delete or have updated any cache file -- that changes any data types used by this binding. datatype_cache_input_fileTable = { wxlua_dir.."bindings/wxwidgets/wxcore_datatypes.lua" } -- ---------------------------------------------------------------------------- -- The file to output the data type cache for later use with a binding that -- makes use of data types (classes, enums, etc) that are declared in this -- binding. The file will be generated in the interface_filepath. datatypes_cache_output_filename = hook_cpp_namespace.."_datatypes.lua" -- ============================================================================ -- Declare functions or member variables for the derived wxLuaBinding class -- that will be generated for this binding. The string will be copied verbatim -- into the body of the hook_cpp_binding_classname class declaration in the -- hook_cpp_header_filename header file. May be remmed out to ignore it. -- See usage in the wxWidgets wxbase_rules.lua file. --wxLuaBinding_class_declaration = nothing to do here -- ---------------------------------------------------------------------------- -- Implement the functions or member variables for the derived wxLuaBinding -- class that you have declared. The string will be copied into the -- hook_cpp_binding_filename source file. May be remmed out to ignore it. -- See usage in the wxWidgets wxbase_rules.lua file. --wxLuaBinding_class_implementation = nothing to do here -- ============================================================================ -- Add additional conditions here -- example: conditions["DOXYGEN_INCLUDE"] = "defined(DOXYGEN_INCLUDE)" -- ---------------------------------------------------------------------------- -- Add additional data types here -- example: AllocDataType("wxArrayInt", "class",false) -- ============================================================================ -- Generate comments into binding C++ code comment_cpp_binding_code = true
--- State machine local class = require "lib.middleclass" local StateMachine = class("StateMachine") --- Creates a state machine. -- @param object Table containing the functions -- @param default Table with the default function names. See addState. function StateMachine:initialize(object, default) self.object = object self.states = {} self.states["default"] = default or {} self.currentId = "default" end --- Add a state to the machine. -- A state is table which contains the keys of the functions of the object to be called. -- Example: -- state = { -- enter = "enter", -- update = "update", -- draw = "draw" -- } -- "enter", "update", and "draw" are the keys in the object that give us the functions -- that we want to call. -- -- enter - Called when switching to the state -- update - Called during the game loop. Either returns the id of the state to switch to, -- or doesn't return a value to stay at the same state. -- draw - Called during rendering -- -- Note: The keys are used rather than the functions themselves so they can be easily -- hotswapped using lurker. -- @param id Id of the state -- @param state Table function StateMachine:addState(id, state) self.states[id] = state end --- Sets the state of the machine. -- @param id Id of the state to switch to function StateMachine:setState(id) self.currentId = id if self.states[id].enter ~= nil then self.object[self.states[id].enter](self.object) end end --- Gets the current state of the machine. -- @return state Current state function StateMachine:getState() return self.currentId end --- Calls the update function of the current state. -- Also handles switching states if the update returns the name of a new state. -- @param ... Additional arguments to pass to the update function function StateMachine:update(...) local nextId local func if self.currentId == nil or self.states[self.currentId].update == nil then func = self.states["default"].update else func = self.states[self.currentId].update end if func ~= nil then nextId = self.object[func](self.object, ...) end if nextId ~= nil then self:setState(nextId) end end --- Calls the draw function of the current state. -- @param ... Additional arguments to pass to the draw function function StateMachine:draw(...) local func if self.currentId == nil or self.states[self.currentId].draw == nil then func = self.states["default"].draw else func = self.states[self.currentId].draw end if func ~= nil then self.object[func](self.object, ...) end end return StateMachine
local local0 = 0.4 local local1 = 0.4 - local0 local local2 = 2.8 - local0 local local3 = 0.4 - local0 local local4 = 3.2 - local0 local local5 = 0.4 - local0 local local6 = 3.5 - local0 local local7 = 0.4 - local0 local local8 = 4.3 - local0 local local9 = 0.4 - local0 local local10 = 3.8 - local0 local local11 = 0.4 - local0 local local12 = 5.5 - local0 local local13 = 0.4 - local0 local local14 = 4.7 - local0 local local15 = 0.4 - local0 local local16 = 3.5 - local0 local local17 = 1 - local0 local local18 = 40.4 - local0 local local19 = 0.4 - local0 local local20 = 4.3 - local0 local local21 = 1 - local0 local local22 = 40.4 - local0 local local23 = 0.4 - local0 local local24 = 6.5 - local0 local local25 = 0.4 - local0 local local26 = 6.8 - local0 local local27 = 0.4 - local0 local local28 = 7.9 - local0 local local29 = 0 - local0 local local30 = 1 local local31 = 1 function OnIf_270000(arg0, arg1, arg2) if arg2 == 0 then Messenger_of_Church_Gun270000_ActAfter_RealTime(arg0, arg1) end return end local0 = local31 function Messenger_of_Church_Gun270000Battle_Activate(arg0, arg1) local local0 = {} local local1 = {} local local2 = {} Common_Clear_Param(local0, local1, local2) local local3 = arg0:GetDist(TARGET_ENE_0) local local4 = arg0:GetRandam_Int(1, 100) local local5 = arg0:GetExcelParam(AI_EXCEL_THINK_PARAM_TYPE__thinkAttr_doAdmirer) local local6 = 1 if arg0:GetMp(TARGET_SELF) <= 0 then local6 = 0 else local6 = 1 end if not not arg0:HasSpecialEffectId(TARGET_SELF, 5618) or arg0:HasSpecialEffectId(TARGET_SELF, 5619) then local local7 = 0 SETUPVAL 11 0 0 end if arg0:GetNumber(0) == 0 and arg0:HasSpecialEffectId(TARGET_SELF, 5557) == false then if 4.5 <= local3 then local0[24] = 100 else local0[25] = 100 end elseif arg0:HasSpecialEffectId(TARGET_SELF, 5695) and arg0:GetEventRequest() == 100 then local0[11] = 100 elseif not not arg0:HasSpecialEffectId(TARGET_SELF, 5618) or arg0:HasSpecialEffectId(TARGET_SELF, 5619) then local0[9] = 10 elseif arg0:IsInsideTarget(TARGET_ENE_0, AI_DIR_TYPE_B, 120) then local0[20] = 100 elseif local5 == 1 and arg0:GetTeamOrder(ORDER_TYPE_Role) == ROLE_TYPE_Kankyaku then local0[22] = 100 elseif local5 == 1 and arg0:GetTeamOrder(ORDER_TYPE_Role) == ROLE_TYPE_Torimaki then local0[23] = 100 elseif arg0:HasSpecialEffectId(TARGET_SELF, 5695) then if 7 <= local3 then local0[2] = 0 local0[3] = 0 local0[4] = 0 local0[6] = 0 local0[7] = 0 local0[8] = 0 local0[9] = 100 elseif 4 <= local3 then local0[2] = 10 local0[3] = 10 local0[4] = 10 local0[6] = 0 local0[9] = 50 elseif 2 <= local3 then local0[2] = 30 local0[3] = 20 local0[4] = 20 local0[6] = 0 local0[9] = 30 * local6 else local0[2] = 30 local0[3] = 20 local0[4] = 20 local0[6] = 0 local0[9] = 30 * local6 end elseif arg0:HasSpecialEffectId(TARGET_SELF, 5697) then if 7 <= local3 then local0[2] = 0 local0[3] = 0 local0[4] = 0 local0[6] = 0 local0[7] = 0 local0[8] = 0 local0[11] = 30 local0[12] = 30 local0[13] = 40 elseif 4 <= local3 then local0[2] = 0 local0[3] = 0 local0[4] = 0 local0[6] = 0 local0[7] = 0 local0[8] = 0 local0[11] = 50 local0[12] = 30 local0[13] = 20 elseif 2.5 <= local3 then local0[2] = 5 local0[3] = 5 local0[4] = 5 local0[6] = 5 local0[7] = 5 local0[8] = 5 local0[11] = 45 local0[12] = 25 local0[13] = 0 else local0[2] = 10 local0[3] = 10 local0[4] = 20 local0[6] = 0 local0[7] = 0 local0[8] = 10 local0[11] = 45 local0[12] = 15 local0[13] = 0 end elseif 7 <= local3 then local0[2] = 10 local0[3] = 10 local0[4] = 30 local0[6] = 30 local0[7] = 20 local0[8] = 10 elseif 4 <= local3 then local0[2] = 10 local0[3] = 10 local0[4] = 20 local0[6] = 20 local0[7] = 30 local0[8] = 20 elseif 2.5 <= local3 then local0[2] = 25 local0[3] = 10 local0[4] = 25 local0[6] = 15 local0[7] = 10 local0[8] = 25 else local0[2] = 20 local0[3] = 10 local0[4] = 30 local0[6] = 0 local0[7] = 20 local0[8] = 30 end local1[1] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act01) local1[2] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act02) local1[3] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act03) local1[4] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act04) local1[5] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act05) local1[6] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act06) local1[7] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act07) local1[8] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act08) local1[9] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act09) local1[10] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act10) local1[11] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act11) local1[12] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act12) local1[13] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act13) local1[20] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act20) local1[22] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act22) local1[23] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act23) local1[24] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act24) local1[25] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act25) local1[30] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act30) local1[31] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act31) local1[32] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act32) local1[33] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act33) local1[34] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act34) local1[35] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act35) local1[36] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act36) local1[37] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act37) local1[38] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act38) local1[39] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act39) local1[40] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act40) local1[41] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act41) local1[42] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act42) local1[43] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act43) local1[44] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act44) local1[45] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act45) local1[46] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act46) local1[47] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act47) local1[48] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act48) local1[49] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act49) local1[50] = REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_Act50) Common_Battle_Activate(arg0, arg1, local0, local1, REGIST_FUNC(arg0, arg1, Messenger_of_Church_Gun270000_ActAfter_AdjustSpace), local2) return end local0 = local2 local0 = local1 local0 = local30 function Messenger_of_Church_Gun270000_Act01(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = UPVAL1 local local2 = UPVAL0 + 2 local local3 = UPVAL0 + 1 if UPVAL2 == 0 then local2 = 999 end Approach_Act(arg0, arg1, UPVAL0, local2, 0, 2) if arg0:GetRandam_Int(1, 100) <= 40 then arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3000, TARGET_ENE_0, local3, 0, -1) else arg1:AddSubGoal(GOAL_COMMON_ComboAttackTunableSpin, 10, 3000, TARGET_ENE_0, local3, 0, -1) arg1:AddSubGoal(GOAL_COMMON_ComboFinal, 10, 3001, TARGET_ENE_0, local3, 0) end GetWellSpace_Odds = 100 return GetWellSpace_Odds end local0 = local4 local0 = local3 local0 = local30 function Messenger_of_Church_Gun270000_Act02(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = arg0:GetRandam_Int(1, 100) local local3 = arg0:GetRandam_Int(1, 100) local local4 = UPVAL1 local local5 = UPVAL0 + 2 local local6 = UPVAL0 + 1 if UPVAL2 == 0 then local5 = 999 end Approach_Act(arg0, arg1, UPVAL0, local5, 0, 2) if arg0:HasSpecialEffectId(TARGET_SELF, 5695) then if local1 <= 20 then arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3002, TARGET_ENE_0, local6, 0, -1) elseif local1 <= 60 then if local2 <= 20 then arg1:AddSubGoal(GOAL_COMMON_ComboAttackTunableSpin, 10, 3002, TARGET_ENE_0, local6, 0, -1) arg1:AddSubGoal(GOAL_COMMON_ComboFinal, 10, 3003, TARGET_ENE_0, local6, 0) elseif local2 <= 45 then arg1:AddSubGoal(GOAL_COMMON_ComboAttackTunableSpin, 10, 3002, TARGET_ENE_0, local6, 0, -1) arg1:AddSubGoal(GOAL_COMMON_ComboFinal, 10, 3004, TARGET_ENE_0, local6, 0) elseif local2 <= 75 then arg1:AddSubGoal(GOAL_COMMON_ComboAttackTunableSpin, 10, 3002, TARGET_ENE_0, local6, 0, -1) arg1:AddSubGoal(GOAL_COMMON_ComboFinal, 10, 3018, TARGET_ENE_0, local6, 0) else arg1:AddSubGoal(GOAL_COMMON_ComboAttackTunableSpin, 10, 3002, TARGET_ENE_0, local6, 0, -1) arg1:AddSubGoal(GOAL_COMMON_ComboFinal, 10, 3019, TARGET_ENE_0, local6, 0) end elseif local1 <= 90 then if local2 <= 20 then arg1:AddSubGoal(GOAL_COMMON_ComboAttackTunableSpin, 10, 3002, TARGET_ENE_0, local6, 0, -1) arg1:AddSubGoal(GOAL_COMMON_ComboRepeat, 10, 3003, TARGET_ENE_0, local6, 0) arg1:AddSubGoal(GOAL_COMMON_ComboFinal, 10, 3004, TARGET_ENE_0, local6, 0) elseif local2 <= 45 then arg1:AddSubGoal(GOAL_COMMON_ComboAttackTunableSpin, 10, 3002, TARGET_ENE_0, local6, 0, -1) arg1:AddSubGoal(GOAL_COMMON_ComboRepeat, 10, 3003, TARGET_ENE_0, local6, 0) arg1:AddSubGoal(GOAL_COMMON_ComboFinal, 10, 3018, TARGET_ENE_0, local6, 0) elseif local2 <= 80 then arg1:AddSubGoal(GOAL_COMMON_ComboAttackTunableSpin, 10, 3002, TARGET_ENE_0, local6, 0, -1) arg1:AddSubGoal(GOAL_COMMON_ComboRepeat, 10, 3003, TARGET_ENE_0, local6, 0) arg1:AddSubGoal(GOAL_COMMON_ComboFinal, 10, 3019, TARGET_ENE_0, local6, 0) else arg1:AddSubGoal(GOAL_COMMON_ComboAttackTunableSpin, 10, 3002, TARGET_ENE_0, local6, 0, -1) arg1:AddSubGoal(GOAL_COMMON_ComboRepeat, 10, 3019, TARGET_ENE_0, local6, 0) arg1:AddSubGoal(GOAL_COMMON_ComboFinal, 10, 3016, TARGET_ENE_0, local6, 0) end else arg1:AddSubGoal(GOAL_COMMON_ComboAttackTunableSpin, 10, 3002, TARGET_ENE_0, local6, 0, -1) arg1:AddSubGoal(GOAL_COMMON_ComboRepeat, 10, 3003, TARGET_ENE_0, local6, 0) arg1:AddSubGoal(GOAL_COMMON_ComboRepeat, 10, 3019, TARGET_ENE_0, local6, 0) arg1:AddSubGoal(GOAL_COMMON_ComboFinal, 10, 3016, TARGET_ENE_0, local6, 0) end elseif local1 <= 30 then arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3002, TARGET_ENE_0, local6, 0, -1) elseif local1 <= 70 then if local2 <= 60 then arg1:AddSubGoal(GOAL_COMMON_ComboAttackTunableSpin, 10, 3002, TARGET_ENE_0, local6, 0, -1) arg1:AddSubGoal(GOAL_COMMON_ComboFinal, 10, 3003, TARGET_ENE_0, local6, 0) else arg1:AddSubGoal(GOAL_COMMON_ComboAttackTunableSpin, 10, 3002, TARGET_ENE_0, local6, 0, -1) arg1:AddSubGoal(GOAL_COMMON_ComboFinal, 10, 3004, TARGET_ENE_0, local6, 0) end else arg1:AddSubGoal(GOAL_COMMON_ComboAttackTunableSpin, 10, 3002, TARGET_ENE_0, local6, 0, -1) arg1:AddSubGoal(GOAL_COMMON_ComboRepeat, 10, 3003, TARGET_ENE_0, local6, 0) arg1:AddSubGoal(GOAL_COMMON_ComboFinal, 10, 3004, TARGET_ENE_0, local6, 0) end GetWellSpace_Odds = 100 return GetWellSpace_Odds end local0 = local6 local0 = local5 local0 = local30 function Messenger_of_Church_Gun270000_Act03(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 local local3 = UPVAL0 + 2 if UPVAL2 == 0 then local3 = 999 end Approach_Act(arg0, arg1, UPVAL0, local3, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3005, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 100 return GetWellSpace_Odds end local0 = local8 local0 = local7 local0 = local30 function Messenger_of_Church_Gun270000_Act04(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 local local3 = UPVAL0 + 2 if UPVAL2 == 0 then local3 = 999 end Approach_Act(arg0, arg1, UPVAL0, local3, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3006, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 100 return GetWellSpace_Odds end local0 = local10 local0 = local9 local0 = local30 function Messenger_of_Church_Gun270000_Act05(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 local local3 = UPVAL0 + 2 if UPVAL2 == 0 then local3 = 999 end Approach_Act(arg0, arg1, UPVAL0, local3, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3007, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 100 return GetWellSpace_Odds end local0 = local12 local0 = local11 local0 = local30 function Messenger_of_Church_Gun270000_Act06(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 local local3 = UPVAL0 + 2 if UPVAL2 == 0 then local3 = 999 end Approach_Act(arg0, arg1, UPVAL0, local3, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3008, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 100 return GetWellSpace_Odds end local0 = local14 local0 = local13 local0 = local30 function Messenger_of_Church_Gun270000_Act07(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = UPVAL1 local local2 = UPVAL0 + 2 local local3 = UPVAL0 + 1 if UPVAL2 == 0 then local2 = 999 end Approach_Act(arg0, arg1, UPVAL0, local2, 0, 2) if arg0:GetRandam_Int(1, 100) <= 50 then arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3010, TARGET_ENE_0, local3, 0, -1) else arg1:AddSubGoal(GOAL_COMMON_ComboAttackTunableSpin, 10, 3010, TARGET_ENE_0, local3, 0, -1) arg1:AddSubGoal(GOAL_COMMON_ComboFinal, 10, 3011, TARGET_ENE_0, local3, 0) end GetWellSpace_Odds = 100 return GetWellSpace_Odds end local0 = local16 local0 = local15 local0 = local30 function Messenger_of_Church_Gun270000_Act08(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 local local3 = UPVAL0 + 2 local local4 = UPVAL0 + 1 if UPVAL2 == 0 then local3 = 999 end Approach_Act(arg0, arg1, UPVAL0, local3, 0, 2) if local1 <= 30 then arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3012, TARGET_ENE_0, local4, 0, -1) elseif local1 <= 70 then arg1:AddSubGoal(GOAL_COMMON_ComboAttackTunableSpin, 10, 3012, TARGET_ENE_0, local4, 0, -1) arg1:AddSubGoal(GOAL_COMMON_ComboFinal, 10, 3013, TARGET_ENE_0, local4, 0) else arg1:AddSubGoal(GOAL_COMMON_ComboAttackTunableSpin, 10, 3012, TARGET_ENE_0, local4, 0, -1) arg1:AddSubGoal(GOAL_COMMON_ComboRepeat, 10, 3013, TARGET_ENE_0, local4, 0) arg1:AddSubGoal(GOAL_COMMON_ComboFinal, 10, 3014, TARGET_ENE_0, local4, 0) end GetWellSpace_Odds = 100 return GetWellSpace_Odds end local0 = local17 local0 = local18 local0 = local30 local0 = local31 function Messenger_of_Church_Gun270000_Act09(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = arg0:GetRandam_Int(1, 100) local local3 = 18 local local4 = UPVAL1 + 2 local local5 = UPVAL1 + 1 local local6 = 50 local local7 = arg0:GetMp(TARGET_SELF) if UPVAL2 == 0 then local4 = 999 end if arg0:HasSpecialEffectId(TARGET_SELF, 5618) then local5 = DIST_None local3 = 9999 local6 = 100 end if arg0:HasSpecialEffectId(TARGET_SELF, 5619) then local3 = UPVAL1 end if 1 <= local7 then if UPVAL3 == 0 and local3 <= local0 then arg1:AddSubGoal(GOAL_COMMON_Wait, 1, TARGET_ENE_0, 0, 0, 0) elseif UPVAL3 == 1 then if local0 <= UPVAL0 then arg1:AddSubGoal(GOAL_COMMON_LeaveTarget, 3, TARGET_ENE_0, 1.5, TARGET_ENE_0, true, -1) else Approach_Act(arg0, arg1, local3, local4, 0, 3) end end if 2 <= local7 and local1 <= 35 then arg1:AddSubGoal(GOAL_COMMON_ComboAttackTunableSpin, 10, 3015, TARGET_ENE_0, local5, 0, 0) arg1:AddSubGoal(GOAL_COMMON_ComboFinal, 10, 3016, TARGET_ENE_0, local5, 0) else arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3015, TARGET_ENE_0, local5, 0, 0) end else if local1 <= 40 then arg1:AddSubGoal(GOAL_COMMON_SidewayMove, 10, TARGET_ENE_0, arg0:GetRandam_Int(0, 1), arg0:GetRandam_Int(5, 10), true, true, -1) end arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3017, TARGET_ENE_0, local5, 0, 0) end GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = local18 function Messenger_of_Church_Gun270000_Act10(arg0, arg1, arg2) local local0 = arg0:GetDist(POINT_EVENT) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3015, POINT_EVENT, UPVAL0 + 1, 0, 0) GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = local24 local0 = local23 local0 = local30 function Messenger_of_Church_Gun270000_Act11(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 local local3 = UPVAL0 + 2 if UPVAL2 == 0 then local3 = 999 end Approach_Act(arg0, arg1, UPVAL0, local3, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3021, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 100 return GetWellSpace_Odds end local0 = local26 local0 = local25 local0 = local30 function Messenger_of_Church_Gun270000_Act12(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 local local3 = UPVAL0 + 2 if UPVAL2 == 0 then local3 = 999 end Approach_Act(arg0, arg1, UPVAL0, local3, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3022, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 100 return GetWellSpace_Odds end local0 = local28 local0 = local27 local0 = local30 function Messenger_of_Church_Gun270000_Act13(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 local local3 = UPVAL0 + 2 if UPVAL2 == 0 then local3 = 999 end Approach_Act(arg0, arg1, UPVAL0 - 1.5, local3, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3023, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 100 return GetWellSpace_Odds end function Messenger_of_Church_Gun270000_Act20(arg0, arg1, arg2) arg1:AddSubGoal(GOAL_COMMON_Turn, 2, TARGET_ENE_0, 0, 0, 0) GetWellSpace_Odds = 0 return GetWellSpace_Odds end function Messenger_of_Church_Gun270000_Act22(arg0, arg1, arg2) Kanshu_Act(arg0, arg1, 0) GetWellSpace_Odds = 0 return GetWellSpace_Odds end function Messenger_of_Church_Gun270000_Act23(arg0, arg1, arg2) Torimaki_Act(arg0, arg1, 0) GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = 99 - local0 function Messenger_of_Church_Gun270000_Act24(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL0 local local3 = UPVAL0 + 999 local local4 = 0 arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 5, 3033, TARGET_ENE_0, UPVAL0 + 1, 0, 0) arg0:SetNumber(0, 1) GetWellSpace_Odds = 0 return GetWellSpace_Odds end function Messenger_of_Church_Gun270000_Act25(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) Approach_Act(arg0, arg1, 20, 20, 0, 2) arg0:SetNumber(0, 1) GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = local2 local0 = local1 function Messenger_of_Church_Gun270000_Act30(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 Approach_Act(arg0, arg1, UPVAL0, UPVAL0 + 10, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3000, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = 3.8 - local0 local0 = 0.4 - local0 function Messenger_of_Church_Gun270000_Act31(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 Approach_Act(arg0, arg1, UPVAL0, UPVAL0 + 10, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3001, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = local4 local0 = local3 function Messenger_of_Church_Gun270000_Act32(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 Approach_Act(arg0, arg1, UPVAL0, UPVAL0 + 10, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3002, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = 3.4 - local0 local0 = 0.4 - local0 function Messenger_of_Church_Gun270000_Act33(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 Approach_Act(arg0, arg1, UPVAL0, UPVAL0 + 10, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3003, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = 2 - local0 local0 = 0.4 - local0 function Messenger_of_Church_Gun270000_Act34(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 Approach_Act(arg0, arg1, UPVAL0, UPVAL0 + 10, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3004, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = local6 local0 = local5 function Messenger_of_Church_Gun270000_Act35(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 Approach_Act(arg0, arg1, UPVAL0, UPVAL0 + 10, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3005, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = local8 local0 = local7 function Messenger_of_Church_Gun270000_Act36(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 Approach_Act(arg0, arg1, UPVAL0, UPVAL0 + 10, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3006, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = local10 local0 = local9 function Messenger_of_Church_Gun270000_Act37(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 Approach_Act(arg0, arg1, UPVAL0, UPVAL0 + 10, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3007, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = local12 local0 = local11 function Messenger_of_Church_Gun270000_Act38(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 Approach_Act(arg0, arg1, UPVAL0, UPVAL0 + 10, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3008, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = 5 - local0 local0 = 0.4 - local0 function Messenger_of_Church_Gun270000_Act39(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 Approach_Act(arg0, arg1, UPVAL0, UPVAL0 + 10, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3009, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = local14 local0 = local13 function Messenger_of_Church_Gun270000_Act40(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 Approach_Act(arg0, arg1, UPVAL0, UPVAL0 + 10, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3010, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = 3.1 - local0 local0 = 0.4 - local0 function Messenger_of_Church_Gun270000_Act41(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 Approach_Act(arg0, arg1, UPVAL0, UPVAL0 + 10, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3011, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = local16 local0 = local15 function Messenger_of_Church_Gun270000_Act42(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 Approach_Act(arg0, arg1, UPVAL0, UPVAL0 + 10, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3012, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = 3.5 - local0 local0 = 0.4 - local0 function Messenger_of_Church_Gun270000_Act43(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 Approach_Act(arg0, arg1, UPVAL0, UPVAL0 + 10, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3013, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = 3.8 - local0 local0 = 0.4 - local0 function Messenger_of_Church_Gun270000_Act44(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 Approach_Act(arg0, arg1, UPVAL0, UPVAL0 + 10, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3014, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = local18 local0 = local17 function Messenger_of_Church_Gun270000_Act45(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 Approach_Act(arg0, arg1, UPVAL0, UPVAL0 + 10, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3015, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = 40.4 - local0 local0 = 1 - local0 function Messenger_of_Church_Gun270000_Act46(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 Approach_Act(arg0, arg1, UPVAL0, UPVAL0 + 10, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3016, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = 9999 local0 = 0.4 - local0 function Messenger_of_Church_Gun270000_Act47(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 Approach_Act(arg0, arg1, UPVAL0, UPVAL0 + 10, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3017, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = local24 local0 = local23 function Messenger_of_Church_Gun270000_Act48(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 Approach_Act(arg0, arg1, UPVAL0, UPVAL0 + 10, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3021, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = local26 local0 = local25 function Messenger_of_Church_Gun270000_Act49(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 Approach_Act(arg0, arg1, UPVAL0, UPVAL0 + 10, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3022, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 0 return GetWellSpace_Odds end local0 = local28 local0 = local27 function Messenger_of_Church_Gun270000_Act50(arg0, arg1, arg2) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = UPVAL1 Approach_Act(arg0, arg1, UPVAL0, UPVAL0 + 10, 0, 2) arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3023, TARGET_ENE_0, UPVAL0 + 1, 0, -1) GetWellSpace_Odds = 0 return GetWellSpace_Odds end function Messenger_of_Church_Gun270000_ActAfter_RealTime(arg0, arg1) local local0 = arg0:GetDist(TARGET_ENE_0) local local1 = arg0:GetRandam_Int(1, 100) local local2 = arg0:GetRandam_Int(1, 100) local local3 = arg0:GetRandam_Int(0, 1) local local4 = arg0:GetRandam_Float(1.5, 2.5) local local5 = arg0:GetRandam_Float(1, 1.5) local local6 = 0 if arg0:GetTeamOrder(ORDER_TYPE_Role) == ROLE_TYPE_Attack then if arg0:HasSpecialEffectId(TARGET_SELF, 5695) then if local0 <= 5 then if local1 <= 20 then arg1:AddSubGoal(GOAL_COMMON_SidewayMove, local5, TARGET_ENE_0, local3, arg0:GetRandam_Int(120, 120), true, true, -1) elseif local1 <= 50 then arg1:AddSubGoal(GOAL_COMMON_LeaveTarget, local4, TARGET_ENE_0, 8, TARGET_ENE_0, true, -1) elseif local1 <= 60 then arg1:AddSubGoal(GOAL_COMMON_LeaveTarget, local4, TARGET_ENE_0, 8, TARGET_ENE_0, true, -1) arg1:AddSubGoal(GOAL_COMMON_SidewayMove, local5, TARGET_ENE_0, local3, arg0:GetRandam_Int(120, 120), true, true, -1) end elseif local0 <= 8 then if local1 <= 10 then arg1:AddSubGoal(GOAL_COMMON_LeaveTarget, local4, TARGET_ENE_0, 8, TARGET_ENE_0, true, -1) end elseif local0 <= 10 and local1 <= 10 then arg1:AddSubGoal(GOAL_COMMON_SidewayMove, local5, TARGET_ENE_0, local3, arg0:GetRandam_Int(120, 120), true, true, -1) end elseif arg0:HasSpecialEffectId(TARGET_SELF, 5697) then if local0 <= 2 then if local1 <= 20 then arg1:AddSubGoal(GOAL_COMMON_SidewayMove, local5, TARGET_ENE_0, local3, arg0:GetRandam_Int(120, 120), true, true, -1) elseif local1 <= 30 then arg1:AddSubGoal(GOAL_COMMON_LeaveTarget, local4, TARGET_ENE_0, 6, TARGET_ENE_0, true, -1) elseif local1 <= 35 then arg1:AddSubGoal(GOAL_COMMON_LeaveTarget, local4, TARGET_ENE_0, 6, TARGET_ENE_0, true, -1) arg1:AddSubGoal(GOAL_COMMON_SidewayMove, local5, TARGET_ENE_0, local3, arg0:GetRandam_Int(120, 120), true, true, -1) end elseif local0 <= 6 then if local1 <= 30 then arg1:AddSubGoal(GOAL_COMMON_SidewayMove, local5, TARGET_ENE_0, local3, arg0:GetRandam_Int(120, 120), true, true, -1) elseif local1 <= 50 then arg1:AddSubGoal(GOAL_COMMON_LeaveTarget, local4, TARGET_ENE_0, 6, TARGET_ENE_0, true, -1) elseif local1 <= 60 then arg1:AddSubGoal(GOAL_COMMON_LeaveTarget, local4, TARGET_ENE_0, 6, TARGET_ENE_0, true, -1) arg1:AddSubGoal(GOAL_COMMON_SidewayMove, local5, TARGET_ENE_0, local3, arg0:GetRandam_Int(120, 120), true, true, -1) end elseif local0 <= 10 and local1 <= 10 then arg1:AddSubGoal(GOAL_COMMON_SidewayMove, local5, TARGET_ENE_0, local3, arg0:GetRandam_Int(120, 120), true, true, -1) end elseif local0 <= 2 then if local1 <= 20 then arg1:AddSubGoal(GOAL_COMMON_SidewayMove, local5, TARGET_ENE_0, local3, arg0:GetRandam_Int(120, 120), true, true, -1) elseif local1 <= 30 then arg1:AddSubGoal(GOAL_COMMON_LeaveTarget, local4, TARGET_ENE_0, 3.5, TARGET_ENE_0, true, -1) elseif local1 <= 35 then arg1:AddSubGoal(GOAL_COMMON_LeaveTarget, local4, TARGET_ENE_0, 3.5, TARGET_ENE_0, true, -1) arg1:AddSubGoal(GOAL_COMMON_SidewayMove, local5, TARGET_ENE_0, local3, arg0:GetRandam_Int(120, 120), true, true, -1) end elseif local0 <= 5 then if local1 <= 30 then arg1:AddSubGoal(GOAL_COMMON_SidewayMove, local5, TARGET_ENE_0, local3, arg0:GetRandam_Int(120, 120), true, true, -1) end elseif local0 <= 10 and local1 <= 30 then arg1:AddSubGoal(GOAL_COMMON_SidewayMove, local5, TARGET_ENE_0, local3, arg0:GetRandam_Int(120, 120), true, true, -1) end elseif arg0:GetTeamOrder(ORDER_TYPE_Role) == ROLE_TYPE_Torimaki then if local0 <= 4 then arg1:AddSubGoal(GOAL_COMMON_LeaveTarget, local4, TARGET_ENE_0, 8, TARGET_ENE_0, true, -1) else arg1:AddSubGoal(GOAL_COMMON_SidewayMove, local5, TARGET_ENE_0, local3, arg0:GetRandam_Int(45, 60), true, true, -1) end elseif arg0:GetTeamOrder(ORDER_TYPE_Role) == ROLE_TYPE_Kankyaku then if local0 <= 6 then arg1:AddSubGoal(GOAL_COMMON_LeaveTarget, local4, TARGET_ENE_0, 8, TARGET_ENE_0, true, -1) else arg1:AddSubGoal(GOAL_COMMON_SidewayMove, local5, TARGET_ENE_0, local3, arg0:GetRandam_Int(45, 60), true, true, -1) end end return end function Messenger_of_Church_Gun270000_ActAfter_AdjustSpace(arg0, arg1, arg2) arg1:AddSubGoal(GOAL_COMMON_If, 10, 0) return end function Messenger_of_Church_Gun270000Battle_Update(arg0, arg1) return GOAL_RESULT_Continue end function Messenger_of_Church_Gun270000Battle_Terminate(arg0, arg1) return end local0 = local12 local0 = local4 local0 = local24 local0 = local18 function Messenger_of_Church_Gun270000Battle_Interupt(arg0, arg1) if arg0:IsLadderAct(TARGET_SELF) then return false else local local0 = arg0:GetRandam_Int(1, 100) local local1 = arg0:GetRandam_Int(1, 100) local local2 = arg0:GetRandam_Int(1, 100) local local3 = arg0:GetDist(TARGET_ENE_0) local local4 = arg0:GetMp(TARGET_SELF) if UseItem_Act(arg0, arg1, 10, 100) then arg1:ClearSubGoal() if arg0:HasSpecialEffectId(TARGET_SELF, 5695) then if 4 <= local3 then if 1 <= local4 then arg1:AddSubGoal(GOAL_COMMON_Attack, 1, 3015, TARGET_ENE_0, DIST_Middle, 0) else Approach_Act(arg0, arg1, UPVAL0 - 0.5, 9999, 0, 2) arg1:AddSubGoal(GOAL_COMMON_Attack, 1, 3008, TARGET_ENE_0, UPVAL0, 0) end else Approach_Act(arg0, arg1, UPVAL1, 9999, 0, 2) arg1:AddSubGoal(GOAL_COMMON_Attack, 1, 3002, TARGET_ENE_0, UPVAL1, 0) end elseif arg0:HasSpecialEffectId(TARGET_SELF, 5697) then if 4 <= local3 then Approach_Act(arg0, arg1, UPVAL2 - 0.5, 9999, 0, 2) arg1:AddSubGoal(GOAL_COMMON_Attack, 1, 3021, TARGET_ENE_0, UPVAL2, 0) else Approach_Act(arg0, arg1, UPVAL1, 9999, 0, 2) arg1:AddSubGoal(GOAL_COMMON_Attack, 1, 3002, TARGET_ENE_0, UPVAL1, 0) end elseif 5 <= local3 then Approach_Act(arg0, arg1, UPVAL0 - 0.5, 9999, 0, 2) arg1:AddSubGoal(GOAL_COMMON_Attack, 1, 3008, TARGET_ENE_0, UPVAL0, 0) else Approach_Act(arg0, arg1, UPVAL1, 9999, 0, 2) arg1:AddSubGoal(GOAL_COMMON_Attack, 1, 3002, TARGET_ENE_0, UPVAL1, 0) end return true else local local5 = arg0:GetRandam_Int(1, 100) local local6 = arg0:GetDist(TARGET_ENE_0) if GuardBreak_Act(arg0, arg1, 10, 50) then if arg0:HasSpecialEffectId(TARGET_SELF, 5695) then if 1 <= local4 then arg1:AddSubGoal(GOAL_COMMON_Attack, 1, 3015, TARGET_ENE_0, UPVAL3, 0) else Approach_Act(arg0, arg1, UPVAL0 - 0.5, 9999, 0, 2) arg1:AddSubGoal(GOAL_COMMON_Attack, 1, 3008, TARGET_ENE_0, UPVAL0, 0) end elseif arg0:HasSpecialEffectId(TARGET_SELF, 5697) then if 4 <= local6 then Approach_Act(arg0, arg1, UPVAL2 - 0.5, 9999, 0, 2) arg1:AddSubGoal(GOAL_COMMON_Attack, 1, 3021, TARGET_ENE_0, UPVAL2, 0) else Approach_Act(arg0, arg1, UPVAL1, 9999, 0, 2) arg1:AddSubGoal(GOAL_COMMON_Attack, 1, 3002, TARGET_ENE_0, UPVAL1, 0) end elseif 5 <= local6 then Approach_Act(arg0, arg1, UPVAL0 - 0.5, 9999, 0, 2) arg1:AddSubGoal(GOAL_COMMON_Attack, 1, 3008, TARGET_ENE_0, UPVAL0, 0) else Approach_Act(arg0, arg1, UPVAL1, 9999, 0, 2) arg1:AddSubGoal(GOAL_COMMON_Attack, 1, 3002, TARGET_ENE_0, UPVAL1, 0) end return true else return false end end end end return
local constants = require("bufferline.constants") ---@class NumbersFuncOpts ---@field ordinal number ---@field id number ---@field lower number_helper ---@field raise number_helper ---@alias number_helper fun(num: number): string ---@alias numbers_func fun(opts: NumbersFuncOpts): string ---@alias numbers_opt '"buffer_id"' | '"ordinal"' | '"both"' | numbers_func local M = {} local styles = { "buffer_id", "ordinal" } local superscript_numbers = { ["0"] = "⁰", ["1"] = "¹", ["2"] = "²", ["3"] = "³", ["4"] = "⁴", ["5"] = "⁵", ["6"] = "⁶", ["7"] = "⁷", ["8"] = "⁸", ["9"] = "⁹", } local subscript_numbers = { ["0"] = "₀", ["1"] = "₁", ["2"] = "₂", ["3"] = "₃", ["4"] = "₄", ["5"] = "₅", ["6"] = "₆", ["7"] = "₇", ["8"] = "₈", ["9"] = "₉", } local maps = { superscript = superscript_numbers, subscript = subscript_numbers, } --- convert single or multi-digit strings to {sub|super}script --- or return the plain number if there is no corresponding number table ---@param map table<string, string> ---@param num number ---@return string local function construct_number(map, num) if not map then return num .. "." end num = tostring(num) return num:gsub(".", function(c) return map[c] or "" end) end local function to_style(map) return function(num) return construct_number(map, num) end end local lower, raise = to_style(subscript_numbers), to_style(superscript_numbers) ---Add a number prefix to the buffer matching a user's preference ---@param buffer Buffer ---@param numbers numbers_opt ---@param numbers_style string[] ---@return string local function prefix(buffer, numbers, numbers_style) if type(numbers) == "function" then local opts = { ordinal = buffer.ordinal, id = buffer.id, lower = lower, raise = raise, } local ok, number = pcall(numbers, opts) if not ok then return "" end return number end -- if mode is both, numbers will look similar to lightline-bufferline, -- buffer_id at top left and ordinal number at bottom right if numbers == "both" then -- default number_style for mode "both" local both = { buffer_id = "none", ordinal = "subscript" } if numbers_style ~= "superscript" and type(numbers_style) == "table" then both.buffer_id = numbers_style[1] and numbers_style[1] or both.buffer_id both.ordinal = numbers_style[2] and numbers_style[2] or both.ordinal end local num = "" for _, value in ipairs(styles) do local current = value == "ordinal" and buffer.ordinal or buffer.id num = num .. construct_number(maps[both[value]], current) end return num end local n = numbers == "ordinal" and buffer.ordinal or buffer.id local num = construct_number(maps[numbers_style], n) return num end --- @param context RenderContext --- @return RenderContext function M.component(context) local buffer = context.tab:as_buffer() local component = context.component local options = context.preferences.options local length = context.length if options.numbers == "none" then return context end local number_prefix = prefix(buffer, options.numbers, options.number_style) local number_component = number_prefix .. constants.padding component = number_component .. component length = length + vim.fn.strwidth(number_component) return context:update({ component = component, length = length }) end if require("bufferline.utils").is_test() then M.prefix = prefix end return M
include("shared.lua"); function ENT:Think() local dlight = DynamicLight( self:EntIndex() ); cam.Start3D( EyePos(), EyeAngles() ); for k, v in ipairs( player.GetAll() ) do if (v:Alive()) then if ( dlight and v == self.Owner ) then local lightVector = self:GetPos(); lightVector:Add(Vector(0,2,0)); dlight.Pos = lightVector; dlight.r = 30; dlight.g = 255; dlight.b = 30; dlight.Brightness = 0; dlight.Size = 700; dlight.Decay = 5; dlight.DieTime = CurTime() + 0.1; end; end; end; cam.End3D(); end;
local _G = getfenv(0) local oGlow = oGlow local select = select local ATTACHMENTS_MAX_SEND = ATTACHMENTS_MAX_SEND local GetSendMailItem = GetSendMailItem local hooksecurefunc = hooksecurefunc local send = function(self, event) if(not SendMailFrame:IsShown()) then return end for i=1, ATTACHMENTS_MAX_SEND do local link = GetSendMailItemLink(i) local slot = _G['SendMailAttachment'..i] if(link and not oGlow.preventMail) then local q = select(3, GetItemInfo(link)) oGlow(slot, q) elseif(slot.bc) then slot.bc:Hide() end end end local inbox = function(self, event) local numItems = GetInboxNumItems() local index = ((InboxFrame.pageNum - 1) * INBOXITEMS_TO_DISPLAY) + 1 for i=1, INBOXITEMS_TO_DISPLAY do local slot = _G['MailItem'..i..'Button'] if (index <= numItems) then local hq = 0 for j=1, ATTACHMENTS_MAX_RECEIVE do local name = GetInboxItemLink(index, j) if(name) then -- I've always thought of (func()) to be completly useless, guess I was wrong hq = math.max(hq, (select(3, GetItemInfo(name)))) end end if(hq ~= 0 and not oGlow.preventMail) then oGlow(slot, hq) elseif(slot.bc) then slot.bc:Hide() end elseif(slot.bc) then slot.bc:Hide() end index = index + 1 end end local addon = CreateFrame'Frame' addon:SetScript('OnEvent', function(self, event, ...) self[event](self, event, ...) end) hooksecurefunc('OpenMail_Update', function(self) if(not InboxFrame.openMailID) then return end for i=1, ATTACHMENTS_MAX_RECEIVE do local name = GetInboxItemLink(InboxFrame.openMailID, i) if(name) then local slot = _G['OpenMailAttachmentButton'..i] if(not oGlow.preventMail) then oGlow(slot, select(3, GetItemInfo(name))) elseif(slot.bc) then slot.bc:Hide() end end end end) hooksecurefunc('InboxFrame_Update', inbox) addon.MAIL_SHOW = send addon.MAIL_SEND_INFO_UPDATE = send addon.MAIL_SEND_SUCCESS = send addon:RegisterEvent'MAIL_SHOW' addon:RegisterEvent'MAIL_SEND_INFO_UPDATE' addon:RegisterEvent'MAIL_SEND_SUCCESS' oGlow.updateMail = update
if SERVER then AddCSLuaFile() return end TFA.ClientsideModels = TFA.ClientsideModels or {} TFA.RemoveCliensideModel = function( ent ) if ent and ent.Remove then ent.Remove(ent) end ent = nil end TFA.RegisterClientsideModel = function(cmdl,wepv) TFA.ClientsideModels[ #TFA.ClientsideModels + 1 ] = { ["mdl"] = cmdl, ["wep"] = wepv } end local t, i timer.Create("TFA_UpdateClientsideModels",0.1,0,function() i = 1 while i <= #TFA.ClientsideModels do t = TFA.ClientsideModels[i] if not t then table.remove( TFA.ClientsideModels, i ) elseif not IsValid( t.wep ) then TFA.RemoveCliensideModel( t.mdl ) table.remove( TFA.ClientsideModels, i ) elseif IsValid( t.wep.Owner ) and t.wep.Owner.GetActiveWeapon and t.wep ~= t.wep.Owner:GetActiveWeapon() then TFA.RemoveCliensideModel( t.mdl ) table.remove( TFA.ClientsideModels, i ) elseif t.wep.IsHidden and t.wep:IsHidden() then TFA.RemoveCliensideModel( t.mdl ) table.remove( TFA.ClientsideModels, i ) else i = i + 1 end end end)
--// German localization //-- local addon, ns = ... local L = ns.L if GetLocale() == "deDE" then -- optionpanel general (or used across multiple panels) L["module Options"] = "modul Optionen" L["Preview"] = "Vorschau" L["texture"] = "Textur" L["height"] = "Höhe" L["width"] = "Breite" L["PosX"] = "PosX" L["PosY"] = "PosY" L["alpha"] = "Transparenz" L["bgalpha"] = "Hintergund Transparenz" L["anchor"] = "Ankerpunkt" L["parent"] = "Stammpunkt" L["color"] = "Farbe" L["font"] = "Schriftart" L["size"] = "Größe" L["flag"] = "Flagge" L["frame"] = "Fenster" L["spacing"] = "Abstand" L["background"] = "Hintergrund" L["border"] = "Rahmen" L["Position"] = "Position" L["afk_flag"] = "AFK Flagge" L["dnd_flag"] = "DND Flagge" L["scale"] = "Skalierung" L["icon"] = "Symbol" L["time"] = "Zeit" L["text"] = "Text" L["auras"] = "Auren" L["show"] = "Zeige" L["show_max_0_to_40"] = "Zeige Maximal (0-40)" L["growth_x"] = "Wachstum X Achse" L["growth_y"] = "Wachstum Y Achse" L["show_only_player_auras"] = "Zeige nur Spieler Auren" L["desature_auras_not_by_player"] = "Graue Auren aus die nicht von dir sind" L["raidmarks"] = "Raid Symbole" L["show_raidmarks"] = "Zeige Raid Symbole" -- actionbars L["ab_keybinds"] = "Zeige Tastenzuweisungen" L["ab_texture_and_size"] = "Texturen & Größe" L["ab_normaltexture"] = "Normale Textur" L["ab_flashtexture"] = "Flash Textur" L["ab_checkedtexture"] = "Checked Textur" L["ab_hovertexture"] = "Hover Textur" L["ab_pushedtexture"] = "Pushed Textur" L["ab_buttonsize"] = "Buttongröße" L["ab_buttonspacing"] = "Buttonabstand" L["ab_positions"] = "Leisten Positionen" L["ab_mainmenubar"] = "Hauptleiste" L["ab_multibarbottomleft"] = "Untere Linke Leiste" L["ab_multibarbottomright"] = "Untere Rechte Leiste" L["ab_multibarleft"] = "Linke Leiste" L["ab_multibarright"] = "Rechte Leiste" L["ab_petbar"] = "Begleiterleiste" L["ab_posessbar"] = "Spezial Leiste" L["ab_bar_type"] = "Aktionsleisten Typ" -- artifactbar L["af_draw_1px"] = "Zeichne einen 1px Rahmen um die Artefaktleiste" L["af_1px_round"] = "Abgerundeter 1px Rahmen" L["af_1px_notice"] = "Aktiviere 1px Rahmen für diese Option" L["af_mouseover_text"] = "Zeige den Text bei Mouseover" -- buffs L["buff_size"] = "Buff Größe" L["debuff_size"] = "Debuff Größe" L["tempenchant_size"] = "Waffenverzauberungen Größe" L["buff_duration_header"] = "Zeitanzeige" L["buff_detailed_duration_text"] = "Detailierter Text für die Buffdauer (Verbraucht mehr CPU Zyklen)" L["buff_counter_header"] = "Zähler Text" L["buff_and_tempench_texture"] = "Buff & Waffenverzauberungen Textur" L["debuff_texture"] = "Debuff Textur" -- buffwatcher L["bw_watched_auras_header"] = "Auren die beobachtet werden" L["bw_add_or_delete_text"] = "Hinzufügen oder löschen von Auren (per spellID)" L["bw_add_button"] = "Hinzufügen" L["bw_delete_button"] = "Löschen" L["bw_protip_text"] = "Suche die spellID auf WoWHead wie im Bild \nund gib dann die Zahl ein" -- \n is a line break L["bw_startingpoint_notice"] = "Der Startpunkt ist in der Mitte vom Bildschirm (0/0)" L["bw_icon_size"] = "Symbol Größe" L["bw_icon_spacing"] = "Symbol abstand" -- chat L["chat_short_chatstamps"] = "Benutze kurze Chat Stempel (G| P| R| ...)" L["chat_strip_brackets"] = "Entferne Eckige Klammern vom Chat (items, achievements, etc)" L["chat_show_timestamps"] = "Zeige Zeitstempel" L["chat_timestamp_notice"] = "Diese Option setzt Blizzard's eingebaute Zeitstempel zu 'keine'" L["chat_disable_fading"] = "Deaktiviere Verblassen" L["chat_afk_dnd_once"] = "Zeige afk/dnd nachrichten nur einmal pro person" L["chat_strip_say_and_yell"] = "Entferne 'sagt' und 'schreit' vom Chat" L["chat_short_channel_names"] = "Kurze Chatkanalnamen" L["chat_font_shadow"] = "Schrift Schatten" L["chat_background"] = "Chat Hintergrund" L["chat_header_link_color"] = "URL Farbe" L["chat_header_flags_and_sticky_channels"] = "Flaggen und Kanäle merken" L["chat_sticky_say"] = "Sagen" L["chat_sticky_yell"] = "Schreien" L["chat_sticky_party"] = "Gruppe" L["chat_sticky_guild"] = "Gilde" L["chat_sticky_officer"] = "Offizier" L["chat_sticky_raid"] = "Schlachtzug" L["chat_sticky_raidwarning"] = "Schlachtzugswarnung" L["chat_sticky_whisper"] = "Flüstern" L["chat_sticky_channel"] = "Kanal" -- clock L["clock_hours_and_minutes_header"] = "Stunden & Minuten" L["clock_seconds_header"] = "Sekunden" L["clock_seconds_enabled"] = "Zeige Sekunden an" L["clock_date"] = "Datumsformat" -- fonts L["DAMAGE_TEXT_FONT"] = "Schriftart Schaden" L["UNIT_NAME_FONT"] = "Schriftart Einheiten" L["NAMEPLATE_FONT"] = "Schriftart Namensplaketten" L["STANDARD_TEXT_FONT"] = "Schriftart Standard" -- interruptannouncer L["ia_announce_intance"] = "Sage Unterbrechungen im /i an" L["ia_announce_party"] = "Sage Unterbrechungen im /p an" L["ia_message"] = "Unterbrechungsansage" L["ia_message_description"] = "Benutze |cff5599ff!spell|r für den unterbrochenen Zauber und |cff5599ff!name|r für den Namen der unterbochenen Einheit" -- itemlevel L["ilvl_show_on_characterframe"] = "Zeige Itemlevel auf dem Charakterfenster" L["ilvl_show_on_inspectframe"] = "Zeige Itemlevel auf dem Inspizierfenster" L["ilvl_show_on_bags"] = "Zeige Itemlevel auf den Taschen" L["ilvl_header_text"] = "Itemlevel Text" L["ilvl_use_quality_color"] = "Benutze Qualitätsfarben für Itemlevel Text" -- minimap L["mm_square"] = "Quadratische Minimap" -- miscellaneous L["misc_rep_colors_header"] = "Ruf Farben" L["misc_use_alternative_rep_colors"] = "Benutze alternative Ruf Farben" L["misc_hated"] = "Hasserfüllt" L["misc_hostile"] = "Feindselig" L["misc_unfriendly"] = "Unfreundlich" L["misc_neutral"] = "Neutral" L["misc_friendly"] = "Freundlich" L["misc_honored"] = "Wohlwollend" L["misc_revered"] = "Respektvoll" L["misc_exalted"] = "Ehrfürchtig" L["misc_microbuttons"] = "Mikrobuttons" L["misc_hide_microbuttons"] = "Verstecke Mikrobuttonmenü" -- nameplates L["np_show_targetindicator"] = "Zeige Zielindikator auf der ausgewählten Namensplakette" L["np_show_threat_border"] = "Zeige einen Glührahmen bei Gegnern im Kampf" L["np_nameplates_general_header"] = "Namensplaketten Allgemein" L["np_target_nameplate_scale"] = "Ziel Plakette Skalierung" L["np_level_and_name_header"] = "Level und Name" L["sub_panel_nameplates_castbar"] = "Zauberleiste" L["sub_panel_nameplates_title"] = "Namensplaketten Modul: Zauberleiste Optionen" L["sub_panel_nameplates_spark_header"] = "Funken" -- objectivetrackerframe L["objective_autocollapse"] = "Automatisches minimieren im Kampf" L["objective_autocollapse_desc"] = "Minimiert automatisch im Kampf und vergößert außerhalb des Kampfes" L["objective_auto_collapse_login"] = "Automatisches minimieren beim Einloggen" L["objective_auto_collapse_login_desc"] = "Minimiert automatisch beim einloggen" L["objective_auto_collapse_dungeon"] = "Automatisches minimieren in Dungeons & Raids" L["objective_auto_collapse_dungeon_desc"] = "Minimiert automatisch in Dungeons & Raids" -- orderhallbar L["ohb_always_show"] = "Zeige die Ordenshallenleiste immer an" L["ohb_zonetext_header"] = "Zonentext" L["ohb_currency_header"] = "Abzeichen" L["ohb_icon_size"] = "Symbol Größe" -- pullcount L["count_play_sound_from"] = "Spiele Chatnachrichten klänge von" L["count_guild"] = "Gilde" L["count_party"] = "Gruppe" L["count_instance"] = "Instanzgruppe" L["count_say"] = "Sagen" L["count_custom_channels"] = "Benutzerdefinierte Kanäle" L["count_custom_message_to_react_header"] = "Benutzerdefinierte Chatnachrichten um Klänge abzuspielen" L["count_countdown_message"] = "Countdown Nachricht" L["count_!n_represents"] = "|cff5599ff!n|r repränsentiert eine nummer (1-10)" L["count_range_header"] = "Zähler Grenze & Klang Dateien" L["count_range"] = "Pull Zähl Grenze (1-10)" L["count_file"] = "Klangdatei für Zahl" L["count_file_pull"] = "Klangdatei für Pull" L["count_file_abort"] = "Klangdatei für Abbruch" -- slashcommands L["slash_rl"] = "Eine kurze version von /reload" L["slash_frame"] = "Schreibt im Chat den Namen des Fensters unter dem Cursor" L["slash_child"] = "Schreibt im Chat die Namen der untergeordneten Fenster, des Fensters unter dem Cursor" L["slash_gm"] = "Öffnet das Hilfemenü (um z.b. GM Tickets zu schreiben)" L["slash_lolzen"] = "Öffnet das Hauptmenü von LolzenUI" -- tooltip L["tt_show_factionicons"] = "Zeige Fraktionssymbole" L["tt_show_talents"] = "Zeige Talente" L["tt_healthbar_header"] = "Gesundheitsleiste" L["tt_flags_header"] = "Flaggen" L["tt_offline_flag"] = "Offline Flagge" L["tt_player_guild_header"] = "Spieler Gilde" L["tt_use_guild_color_globally"] = "Benutze Gildenfarbe Global (Nicht nur Eigene Gilde)" -- unitframes L["uf_healthpoints"] = "Lebenspunkte" L["uf_healthpoints_overwrite_global_settings"] = "Überschreibe die globalen Einstellungen" L["uf_powerpoints"] = "Ressourcenpunkte (Mana, etc)" L["uf_castbar"] = "Zauberleiste" L["uf_use_standalone_castbar"] = "Benutze Eigene Zauberleiste (Position & Große)" L["uf_trim_castbar_icon"] = "Beschneide das Zauberleistensymbol (Wenn Symbol >= Zauberleiste)" L["uf_time_and_spellname_header"] = "Zeit & Castname Schriftart" L["uf_roleindicator_header"] = "Rollensymbol" L["uf_show_roleindicator"] = "Zeige Rollensymbol" L["uf_readycheckindicator_header"] = "Bereitschaftsprüfungs Symbol" L["uf_show_restingindicator"] = "Zeige Ruhegebietsymbol" L["uf_restingindicator_header"] = "Ruhegebiet Symbol" L["uf_infopanel_header"] = "Infopanel (Name)" L["uf_general_use_hp_percent"] = "Zeige HP Prozent" L["uf_general_use_both_value_and_percent"] = "Zeige HP Punkte & HP Prozent" L["uf_general_switch_value_and_percent_order"] = "Benutze [Prozent]"..LolzenUIcfg.unitframes.general["uf_val_perc_divider"].."[Punkte] statt [Punkte]"..LolzenUIcfg.unitframes.general["uf_val_perc_divider"].."[Prozent]" L["uf_general_use_short_values"] = "Benutze kurze Zahlen (34m5, 3k2, etc)" L["uf_general_use dot_divider"] = "Benutze punkttrennung bei kurzen Zahlen (34.5m, 3.2k, etc)" L["uf_general_notice_activate_hpperc_for_this"] = "Aktiviere HP Prozent hierfür" L["uf_general_notice_deactivate_hpperc_for_this"] = "Deaktiviere HP Prozent hierfür" L["uf_general_notice_activate_hpval_and_hpperc_for_this"] = "Aktiviere HPPunkte & HP Prozent hierfür" L["uf_general_hpdivider_text"] = "Trennsymbol" L["uf_general_leadindicator"] = "Gruppenanführer Symbol" L["uf_general_fadout_out_of_reach"] = "Transparente Einheitenfenster wenn außer Reichweite" L["uf_general_fadout_out_of_reach_alpha"] = "Außer Reichweiten Transparenz(Gruppe/Schlachzug)" L["uf_general_combatfade"] = "Aktiviere Kampftransparenz (Spieler, Ziel & Ziel des Ziels)" L["uf_general_combatfade_in_combat_alpha"] = "Transparenz im Kampf" L["uf_general_combatfade_out_of_combat_alpha"] = "Transparenz außerhalb vom Kampf" L["uf_general_hp_font_options"] = "Globale HP Punkt Optionen (kann individuell überschrieben werden)" L["sub_panel_unitframes_player"] = "Spieler" L["sub_panel_unitframes_player_title"] = "Einheitenfenster Modul: Spieler Optionen" L["sub_panel_unitframes_player_classpower_and_runes_header"] = "Klassenpunkte (Combo Punkte, ...) & Runen" L["sub_panel_unitframes_target"] = "Ziel" L["sub_panel_unitframes_target_title"] = "Einheitenfenster Modul: Ziel Optionen" L["sub_panel_unitframes_targettarget"] = "Ziel des Ziels" L["sub_panel_unitframes_targettarget_title"] = "Einheitenfenster Modul: Ziel des Ziels Optionen" L["sub_panel_unitframes_party"] = "Gruppe" L["sub_panel_unitframes_party_title"] = "Einheitenfenster Modul: Gruppe Optionen" L["sub_panel_unitframes_party_use_LolzenUI"] = "Benutze LolzenUI integrierte Gruppenfenster" L["sub_panel_unitframes_raid"] = "Schlachtzug" L["sub_panel_unitframes_raid_title"] = "Einheitenfenster Modul: Schlachtzug Optionen" L["sub_panel_unitframes_raid_use_LolzenUI"] = "Benutze LolzenUI integrierte Raidruppenfenster" L["sub_panel_unitframes_pet"] = "Begleiter" L["sub_panel_unitframes_pet_title"] = "Einheitenfenster Modul: Begleiter Optionen" L["sub_panel_unitframes_boss"] = "Boss" L["sub_panel_unitframes_boss_title"] = "Einheitenfenster Modul: Boss Optionen" L["sub_panel_unitframes_boss_show_power"] = "Zeige Ressourcenleiste & punkte" L["sub_panel_unitframes_focus"] = "Fokus" L["sub_panel_unitframes_focus_title"] = "Einheitenfenster Modul: Fokus Optionen" L["sub_panel_unitframes_arena"] = "Arena" L["sub_panel_unitframes_arena_title"] = "Einheitenfenster Modul: Arena Optionen" L["sub_panel_unitframes_powercolors"] = "Ressourcen Farben" L["sub_panel_unitframes_powercolors_title"] = "Einheitenfenster Modul: Ressourcen Farben Optionen" L["sub_panel_unitframes_powercolors_mana"] = "Mana" L["sub_panel_unitframes_powercolors_rage"] = "Wut" L["sub_panel_unitframes_powercolors_focus"] = "Fokus" L["sub_panel_unitframes_powercolors_energy"] = "Energie" L["sub_panel_unitframes_powercolors_combopoints"] = "Combo Punkte" L["sub_panel_unitframes_powercolors_runes"] = "Runen" L["sub_panel_unitframes_powercolors_runicpower"] = "Runenmacht" L["sub_panel_unitframes_powercolors_soulshards"] = "Seelensplitter" L["sub_panel_unitframes_powercolors_lunarpower"] = "Astrale Macht" L["sub_panel_unitframes_powercolors_holypower"] = "Heilige Macht" L["sub_panel_unitframes_powercolors_maelstrom"] = "Mahlstrom" L["sub_panel_unitframes_powercolors_chi"] = "Chi" L["sub_panel_unitframes_powercolors_insanity"] = "Wahnsinn" L["sub_panel_unitframes_powercolors_arcanecharges"] = "Arkane Ladungen" L["sub_panel_unitframes_powercolors_fury"] = "Jähzorn" L["sub_panel_unitframes_powercolors_pain"] = "Pein" L["sub_panel_unitframes_omf"] = "Positionen" L["sub_panel_unitframes_omf_title"] = "Einheitenfenster Modul: Positionen [oUF_Movableframes]" L["sub_panel_unitframes_omf_about"] = "Tippe %s um Ankerpunkte An und Auszuschalten" -- worldmap L["wm_scale"] = "Weltkartenskalierung" L["wm_coordinates"] = "Aktiviere Maus Koordinaten" L["wm_title_or_coordinates_color"] = "Titeltext/Koordinaten Farbe" L["save_worldmap_position"] = "Speichere die Weltkartenposition" -- xpbar L["xp_regular_xp_color"] = "Normale XP Farbe" L["xp_rested_xp_color"] = "Ausgeruhte XP Farbe" L["xp_pvp_color"] = "PvP Farbe (Ehre)" L["xp_paragon_color"] = "Paragon XP Farbe" L["xp_draw_1px"] = "Zeichne einen 1px Rahmen um die XPleiste" L["xp_1px_round"] = "Abgerundeter 1px Rahmen" L["xp_1px_notice"] = "Aktiviere 1px Rahmen für diese Option" L["xp_mouseover_text"] = "Zeige den Text bei Mouseover" end
local utils = require ("utils") local socket = require "socket" local irc = require ("irc") local parser = require ("parser") local core = class () function core:new () --self.parser = parser () self.irc = irc (function (...)return self:listener (...) end) self.modules = {} self.commands = {} self.settings = require ("settings") -- TODO: Check settings for errors (nil values) assert (self.settings.server, "No server set in settings.lua") assert (self.settings.nickname, "No Nickname set in settings.lua") end function core:connect () self.irc:connect (self.settings.server, self.settings.port,self.settings.nickname,self.settings.username, self.settings.ssl) for i, v in ipairs (self.settings.connect_commands) do self:send (tostring(v)) end self.irc:send ("NICK %s", self.settings.nickname) for i, v in ipairs (self.settings.channels) do self.irc:join (tostring (v)) end end function core:listener (prefix, cmd, args, suffix) if cmd == "PRIVMSG" then self:on_privmsg (prefix, args, suffix) elseif cmd == "INVITE" then -- This is not a whore bot elseif cmd == "KICK" then local channel = args[1] local nickname = args[2] local reason = args[3] if nickname == self.settings.nickname then -- FIXME, Nickname can change! self.irc:join ("#" .. channel) self.irc:privmsg ("#" .. channel, "I'm alive ! I'm alive!") end else -- Something might have to be done here end end function core:on_privmsg (prefix, args, suffix) local channel = table.remove (args, 1) local prefixLen = string.len (self.settings.prefix) if string.sub (suffix, 1, prefixLen) == self.settings.prefix then suffix = string.sub (suffix, prefixLen+1, -1) local tokens = utils.split (suffix) local cmd_name = tokens[1]; local command = self.commands [table.remove (tokens, 1)] if command then if command.adminonly then local nick = utils.getNick (prefix) local authed = false for k,v in pairs (self.settings.admins) do if v == nick then authed = true break end end if authed then if cmd_name == "die" then command.func (prefix, channel, table.concat (tokens, " ")) else self:respond (channel, "Disabled for security reasons.") end --command.func (prefix, channel, table.concat (tokens, " ")) else self:respond (channel, "Nope.") end else command.func (prefix, channel, table.concat (tokens, " ")) end else self:respond (channel, "Not found") end end end --[[ function core:invoke_cmd (cmdname, prefix, cmd_arg, ...) local command = self.commands [cmdname] if not command then return false, "Command not found" end if command.adminonly then else command.func (prefix, channel) end end ]] function core:disconnect (reason) self.irc:quit (reason) self.irc:close () end function core:loadmodules () self.oldpath = package.path package.path = package.path .. ";./modules/?/?.lua" local modules = utils.list ("modules") for _, name in pairs (modules) do package.path = package.path .. ";./modules/"..name.."/?.lua" table.insert (self.modules, self:loadmodule (name)) end print (string.format ("%i Modules loaded", #self.modules)) end function core:unloadmodules () package.path = self.oldpath or package.path for _, v in pairs (modules) do print (string.format ("Module unloaded %s", tostring (v))) package.loaded[tostring (modules)] = nil end self.modules = {} self.commands = {} print ("Modules unloaded") end function core:loadmodule (name) local ret = table.pack (pcall (require, name)) if ret[1] then return ret[2] or nil else print (string.format ("Failed to load module '%s' an error occoured.\n%s", name, ret[2])) end end function core:start () -- Listen for incomming messages repeat self.irc:listen () local inline = io.read () if inline then print ("> " .. inline) local f,r = load (inline, "=(Console)","t",_G) if f then local ret = table.pack (pcall (f, self)) if #ret == 1 then table.insert (ret, "nil") end if ret[1] then print ("> " .. table.concat (ret, " ", 2)) else print ("> " .. tostring (ret[2] or "nil")) end else print ("> " .. tostring (r or "nil")) end end socket.sleep (0.01) -- TODO: Make this multithreaded until (self.irc.state == "not connected") end function core:addCommand (name, func, adminonly) print (string.format ("Registered command '%s'", name)) assert (not self.commands [name], string.format ("Command %s already registered",name)) pcall (assert, name:find ("(%s)"), "Command '" .. name .. "' contains a space and is therefor inaccesible") self.commands [name] = { func=func, adminonly=adminonly } end function core:respond (channel, msg) msg = utils.sanitize (msg or "nil passed as message to respond!") self.irc:privmsg (channel, msg) end function core:action (channel, msg) self.irc:action (channel, msg or "nil") end function core:raw (...) return self.irc:raw (...) end function core:send (...) return self:raw (...) end return core
local common = require "common" function add_user_token_to_header() local token = common.get_token() if common.is_empty(token) then ngx.status = ngx.HTTP_FORBIDDEN ngx.say('{}') ngx.exit(ngx.HTTP_OK) end -- Change this to use email once nurego provisions user in service now ngx.var.user_token = 'Bearer '..token; end add_user_token_to_header()
--- === cp === --- --- Core CommandPost functionality. local startTime = os.clock() local require = require local hs = _G.hs local logger = require "hs.logger" logger.defaultLogLevel = "verbose" local application = require "hs.application" local console = require "hs.console" local image = require "hs.image" local keycodes = require "hs.keycodes" local settings = require "hs.settings" local styledtext = require "hs.styledtext" local toolbar = require "hs.webview.toolbar" local window = require "hs.window" local config = require "cp.config" local fcp = require "cp.apple.finalcutpro" local feedback = require "cp.feedback" local i18n = require "cp.i18n" local plugins = require "cp.plugins" local tools = require "cp.tools" local imageFromName = image.imageFromName local imageFromPath = image.imageFromPath -------------------------------------------------------------------------------- -- Not used in `init.lua`, but is required to "jump start" the CLI support: -------------------------------------------------------------------------------- require("hs.ipc") -------------------------------------------------------------------------------- -- Set the accessibility API timeout to one second: -------------------------------------------------------------------------------- window.timeout(1) local mod = {} --- cp.init() --- Function --- Initialise CommandPost --- --- Parameters: --- * None --- --- Returns: --- * None function mod.init() -------------------------------------------------------------------------------- -- Setup Logger: -------------------------------------------------------------------------------- local log = logger.new("cp") -------------------------------------------------------------------------------- -- Show Dock Icon: -------------------------------------------------------------------------------- if config.get("dockIcon", true) then hs.dockIcon(true) end -------------------------------------------------------------------------------- -- Save Error Log History across sessions: -------------------------------------------------------------------------------- hs._consoleHistory = require("cp.console.history") -------------------------------------------------------------------------------- -- Enable Spotlight for Name Searches (used in Search Console): -------------------------------------------------------------------------------- application.enableSpotlightForNameSearches(true) -------------------------------------------------------------------------------- -- Disable Window Animations: -------------------------------------------------------------------------------- window.animationDuration = 0 -------------------------------------------------------------------------------- -- Console Colour Scheme: -------------------------------------------------------------------------------- local grey = {hex = "#999999", alpha = 1} console.consoleCommandColor(grey) console.consolePrintColor(grey) console.consoleResultColor(grey) console.outputBackgroundColor({hex = "#161616", alpha = 1}) -------------------------------------------------------------------------------- -- Add Toolbar To Error Log: -------------------------------------------------------------------------------- local function consoleOnTopIcon() if hs.consoleOnTop() then return imageFromName("NSStatusAvailable") else return imageFromName("NSStatusUnavailable") end end local function autoReloadIcon() if config.automaticScriptReloading() then return imageFromName("NSStatusAvailable") else return imageFromName("NSStatusUnavailable") end end console.toolbar(toolbar.new("myConsole", { { id = i18n("reload"), image = imageFromName("NSSynchronize"), fn = function() console.clearConsole() print("Reloading CommandPost...") hs.reload() end }, { id = i18n("clearLog"), image = imageFromName("NSTrashFull"), fn = function() console.clearConsole() end }, { id = i18n("alwaysOnTop"), image = consoleOnTopIcon(), fn = function(object) hs.consoleOnTop(not hs.consoleOnTop()) object:modifyItem({id = i18n("alwaysOnTop"), image = consoleOnTopIcon()}) end }, { id = i18n("toggleAutomaticScriptReloading"), image = autoReloadIcon(), fn = function(object) config.automaticScriptReloading:toggle() object:modifyItem({id = i18n("toggleAutomaticScriptReloading"), image = autoReloadIcon()}) end }, { id = "NSToolbarFlexibleSpaceItem" }, { id = i18n("toolbox"), image = imageFromName("NSAdvanced"), fn = function() plugins("core.toolbox.manager").show() end }, { id = i18n("controlSurfaces"), image = imageFromPath(config.bundledPluginsPath .. "/core/midi/prefs/images/AudioMIDISetup.icns"), fn = function() plugins("core.controlsurfaces.manager").show() end }, { id = i18n("preferences"), image = imageFromName("NSPreferencesGeneral"), fn = function() plugins("core.preferences.manager").show() end }, { id = i18n("feedback"), image = imageFromName("NSInfo"), fn = function() feedback.showFeedback() end }, }) :canCustomize(true) :autosaves(true) ) -------------------------------------------------------------------------------- -- Open Error Log: -------------------------------------------------------------------------------- local errorLogOpenOnClose = config.get("errorLogOpenOnClose", false) if errorLogOpenOnClose then hs.openConsole() end -------------------------------------------------------------------------------- -- Setup Global Shutdown Callback: -------------------------------------------------------------------------------- hs.shutdownCallback = function() local shutdownCallbacks = config.shutdownCallback:getAll() if shutdownCallbacks and type(shutdownCallbacks) == "table" then for _, v in pairs(shutdownCallbacks) do local fn = v:callbackFn() if fn and type(fn) == "function" then fn() end end end end -------------------------------------------------------------------------------- -- Setup Global Text Dropped to Dock Icon Callback: -------------------------------------------------------------------------------- hs.textDroppedToDockIconCallback = function(value) local textDroppedToDockIconCallbacks = config.textDroppedToDockIconCallback:getAll() if textDroppedToDockIconCallbacks and type(textDroppedToDockIconCallbacks) == "table" then for _, v in pairs(textDroppedToDockIconCallbacks) do local fn = v:callbackFn() if fn and type(fn) == "function" then fn(value) end end end end -------------------------------------------------------------------------------- -- Setup Global File Dropped to Dock Icon Callback: -------------------------------------------------------------------------------- hs.fileDroppedToDockIconCallback = function(value) local fileDroppedToDockIconCallbacks = config.fileDroppedToDockIconCallback:getAll() if fileDroppedToDockIconCallbacks and type(fileDroppedToDockIconCallbacks) == "table" then for _, v in pairs(fileDroppedToDockIconCallbacks) do local fn = v:callbackFn() if fn and type(fn) == "function" then fn(value) end end end end -------------------------------------------------------------------------------- -- Setup Global Dock Icon Click Callback: -------------------------------------------------------------------------------- hs.dockIconClickCallback = function(value) local dockIconClickCallbacks = config.dockIconClickCallback:getAll() if dockIconClickCallbacks and type(dockIconClickCallbacks) == "table" then for _, v in pairs(dockIconClickCallbacks) do local fn = v:callbackFn() if fn and type(fn) == "function" then fn(value) end end end end -------------------------------------------------------------------------------- -- Create CommandPost Shutdown Callback: -------------------------------------------------------------------------------- hs.shuttingDown = false config.shutdownCallback:new("cp", function() hs.shuttingDown = true if console.hswindow() then config.set("errorLogOpenOnClose", true) else config.set("errorLogOpenOnClose", false) end console.clearConsole() end) -------------------------------------------------------------------------------- -- Enable "Launch at Startup" by default: -------------------------------------------------------------------------------- if not config.get("hasRunOnce", false) then -------------------------------------------------------------------------------- -- Enable Automatic Launch by default: -------------------------------------------------------------------------------- if not hs.autoLaunch() then hs.autoLaunch(true) end -------------------------------------------------------------------------------- -- Set Log Level to Verbose for Debugging: -------------------------------------------------------------------------------- settings.set("hs.axuielement.logLevel", "verbose") -------------------------------------------------------------------------------- -- Don't do this again unless you trash preferences: -------------------------------------------------------------------------------- config.set("hasRunOnce", true) end -------------------------------------------------------------------------------- -- Check Versions & Language: -------------------------------------------------------------------------------- local fcpVersion = fcp:version() or "Unknown" local fcpPath = fcp:getPath() or "Unknown" local osVersion = tools.macOSVersion() or "Unknown" local fcpLocale = fcp:currentLocale() local fcpLanguage = fcpLocale and fcpLocale.code or "Unknown" local debugMode = config.developerMode() -------------------------------------------------------------------------------- -- Clear The Console: -------------------------------------------------------------------------------- local consoleLoadingContent = console.getConsole() console.clearConsole() -------------------------------------------------------------------------------- -- Display Welcome Message In The Console: -------------------------------------------------------------------------------- console.printStyledtext(styledtext.new(config.appName .. " v" .. config.appVersion .. " (Build: " .. config.appBuild .. ")", { color = {hex = "#999999", alpha = 1}, font = { name = "Helvetica", size = 18 }, })) -------------------------------------------------------------------------------- -- Write To Console For Debug Messages: -------------------------------------------------------------------------------- local writeToConsoleDebug = function(value) console.printStyledtext(styledtext.new(value, { color = {hex = "#999999", alpha = 1}, font = { name = "Menlo", size = 12 }, })) end -------------------------------------------------------------------------------- -- Display Useful Debugging Information in Console: -------------------------------------------------------------------------------- console.printStyledtext("") writeToConsoleDebug("Build Date: " .. hs.processInfo.buildTime) if osVersion ~= nil then writeToConsoleDebug("macOS Version: " .. tostring(osVersion), true) end writeToConsoleDebug(config.appName .. " Locale: " .. tostring(i18n.getLocale()), true) if keycodes.currentLayout() ~= nil then writeToConsoleDebug("Current Keyboard Layout: " .. tostring(keycodes.currentLayout()), true) end if fcpPath ~= nil then writeToConsoleDebug("Final Cut Pro Path: " .. tostring(fcpPath), true) end if fcpVersion ~= nil then writeToConsoleDebug("Final Cut Pro Version: " .. tostring(fcpVersion), true) end if fcpLanguage ~= nil then writeToConsoleDebug("Final Cut Pro Language: " .. tostring(fcpLanguage), true) end writeToConsoleDebug("Developer Mode: " .. tostring(debugMode)) console.printStyledtext("") -------------------------------------------------------------------------------- -- Display the content that was displayed before loading... -------------------------------------------------------------------------------- print(tools.trim(consoleLoadingContent)) -------------------------------------------------------------------------------- -- Setup Automatic Script Reloading: -------------------------------------------------------------------------------- config.automaticScriptReloading:update() -------------------------------------------------------------------------------- -- Load Plugins: -------------------------------------------------------------------------------- log.df("Loading Plugins...") plugins.init(config.pluginPaths) log.df("Plugins Loaded.") -------------------------------------------------------------------------------- -- Display how long it took to load CommandPost: -------------------------------------------------------------------------------- local finishTime = os.clock() local loadingTime = finishTime-startTime log.df("Startup Time: %s seconds", loadingTime) -------------------------------------------------------------------------------- -- Set Garbage Collection Mode: -------------------------------------------------------------------------------- local garbageCollectionMode = "generational" -------------------------------------------------------------------------------- -- Use Incremental Garbage Collection: -- -- In incremental mode, each GC cycle performs a mark-and-sweep collection in -- small steps interleaved with the program's execution. In this mode, the -- collector uses three numbers to control its garbage-collection cycles: -- the garbage-collector pause, the garbage-collector step multiplier, -- and the garbage-collector step size. -- -- The garbage-collector pause controls how long the collector waits before -- starting a new cycle. The collector starts a new cycle when the use of memory -- hits n% of the use after the previous collection. Larger values make the -- collector less aggressive. Values equal to or less than 100 mean the collector -- will not wait to start a new cycle. A value of 200 means that the collector -- waits for the total memory in use to double before starting a new cycle. -- The default value is 200; the maximum value is 1000. -- -- The garbage-collector step multiplier controls the speed of the collector -- relative to memory allocation, that is, how many elements it marks or sweeps -- for each kilobyte of memory allocated. Larger values make the collector more -- aggressive but also increase the size of each incremental step. You should -- not use values less than 100, because they make the collector too slow and -- can result in the collector never finishing a cycle. -- The default value is 100; the maximum value is 1000. -- -- The garbage-collector step size controls the size of each incremental step, -- specifically how many bytes the interpreter allocates before performing a step. -- This parameter is logarithmic: A value of n means the interpreter will -- allocate 2n bytes between steps and perform equivalent work during the step. -- A large value (e.g., 60) makes the collector a stop-the-world (non-incremental) -- collector. The default value is 13, which means steps of approximately 8 Kbytes. -------------------------------------------------------------------------------- if garbageCollectionMode == "incremental" then local gcPause = 100 -- The default value is 200; the maximum value is 1000. local stepMultiplier = 100 -- The default value is 100; the maximum value is 1000. local stepSize = 13 -- The default value is 13, which means steps of approximately 8 Kbytes. collectgarbage("incremental", gcPause, stepMultiplier, stepSize) end -------------------------------------------------------------------------------- -- Use Generational Garbage Collection: -- -- In generational mode, the collector does frequent minor collections, which -- traverses only objects recently created. If after a minor collection the use -- of memory is still above a limit, the collector does a stop-the-world major -- collection, which traverses all objects. The generational mode uses two -- parameters: the minor multiplier and the the major multiplier. -- -- The minor multiplier controls the frequency of minor collections. For a -- minor multiplier x, a new minor collection will be done when memory grows x% -- larger than the memory in use after the previous major collection. For instance, -- for a multiplier of 20, the collector will do a minor collection when the use -- of memory gets 20% larger than the use after the previous major collection. -- The default value is 20; the maximum value is 200. -- -- The major multiplier controls the frequency of major collections. -- For a major multiplier x, a new major collection will be done when memory -- grows x% larger than the memory in use after the previous major collection. -- For instance, for a multiplier of 100, the collector will do a major -- collection when the use of memory gets larger than twice the use after the -- previous collection. The default value is 100; the maximum value is 1000. -------------------------------------------------------------------------------- if garbageCollectionMode == "generational" then local minorMultiplier = 5 -- The default value is 20; the maximum value is 200. local majorMultiplier = 50 -- The default value is 100; the maximum value is 1000. collectgarbage("generational", minorMultiplier, majorMultiplier) end -------------------------------------------------------------------------------- -- Collect Garbage because we love a fresh slate: -------------------------------------------------------------------------------- collectgarbage("collect") collectgarbage("collect") log.df("Garbage Collection Mode: %s", garbageCollectionMode) -------------------------------------------------------------------------------- -- Return the module: -------------------------------------------------------------------------------- return mod end return mod.init()
--- -- @module CmdrService -- @author Quenty local require = require(script.Parent.loader).load(script) local HttpService = game:GetService("HttpService") local PermissionService = require("PermissionService") local CmdrTemplateProviderServer = require("CmdrTemplateProviderServer") local Promise = require("Promise") local CmdrService = {} local GLOBAL_REGISTRY = setmetatable({}, {__mode = "kv"}) function CmdrService:Init(serviceBag) assert(not self._cmdr, "Already initialized") self._serviceBag = assert(serviceBag, "No serviceBag") self._cmdrTemplateProviderServer = self._serviceBag:GetService(CmdrTemplateProviderServer) self._serviceId = HttpService:GenerateGUID(false) self._cmdr = require("Cmdr") self._permissionService = serviceBag:GetService(PermissionService) self._definitionData = {} self._executeData = {} self._cmdr.Registry:RegisterHook("BeforeRun", function(context) local providerPromise = self._permissionService:PromisePermissionProvider() if providerPromise:IsPending() then return "Still loading permissions" end local ok, provider = providerPromise:Yield() if not ok then return provider or "Failed to load permission provider" end if context.Group == "DefaultAdmin" and not provider:IsAdmin(context.Executor) then return "You don't have permission to run this command" end end) GLOBAL_REGISTRY[self._serviceId] = self end function CmdrService:Start() self._cmdr:RegisterDefaultCommands() end function CmdrService:PromiseCmdr() assert(self._cmdr, "Not initialized") return Promise.resolved(self._cmdr) end function CmdrService:RegisterCommand(commandData, execute) assert(self._cmdr, "Not initialized") assert(commandData, "No commandData") assert(commandData.Name, "No commandData.Name") assert(execute, "No execute") local commandId = ("%s_%s"):format(commandData.Name, HttpService:GenerateGUID(false)) self._definitionData[commandId] = commandData self._executeData[commandId] = execute local commandServerScript = self._cmdrTemplateProviderServer:Clone("CmdrExecutionTemplate") commandServerScript.Name = ("%sServer"):format(commandId) local cmdrServiceTarget = Instance.new("ObjectValue") cmdrServiceTarget.Name = "CmdrServiceTarget" cmdrServiceTarget.Value = script cmdrServiceTarget.Parent = commandServerScript local cmdrServiceId = Instance.new("StringValue") cmdrServiceId.Name = "CmdrServiceId" cmdrServiceId.Value = self._serviceId cmdrServiceId.Parent = commandServerScript local cmdrCommandId = Instance.new("StringValue") cmdrCommandId.Name = "CmdrCommandId" cmdrCommandId.Value = commandId cmdrCommandId.Parent = commandServerScript local commandScript = self._cmdrTemplateProviderServer:Clone("CmdrCommandDefinitionTemplate") commandScript.Name = commandId local cmdrJsonCommandData = Instance.new("StringValue") cmdrJsonCommandData.Value = HttpService:JSONEncode(commandData) cmdrJsonCommandData.Name = "CmdrJsonCommandData" cmdrJsonCommandData.Parent = commandScript self._cmdr.Registry:RegisterCommand(commandScript, commandServerScript) end function CmdrService:__ExecuteCommand(id, ...) assert(type(id) == "string", "Bad serviceId") assert(self._cmdr, "Not initialized") local execute = self._executeData[id] if not execute then error(("[CmdrService] - No command definition for id %q"):format(tostring(id))) end return execute(...) end -- Global, but only intended for internal use function CmdrService:__GetServiceFromId(id) assert(type(id) == "string", "Bad serviceId") return GLOBAL_REGISTRY[id] end return CmdrService
hooksecurefunc("GossipFrameOptionsUpdate", function() local lastButtonIndex = #GossipFrame.buttons local lastButton = GossipFrame.buttons[lastButtonIndex] if lastButtonIndex > 1 and lastButton:GetText():find(PET_DISMISS) ~= nil then lastButton:SetPoint( "TOPLEFT", GossipFrame_GetTitleButton(lastButtonIndex - 1), "BOTTOMLEFT", 0, (GossipFrame.insertSeparator and -19 or 0) - 50 ) end end)