content
stringlengths
5
1.05M
local M = { } local colors = { red = "#E06C75", dark_red = "#BE5046", green = "#98C379", yellow = "#E5C07B", dark_yellow = "#D19A66", blue = "#61AFEF", purple = "#C678DD", cyan = "#56B6C2", white = "#ABB2BF", black = "#282C34", visual_black = "NONE", comment_grey = "#5C6370", gutter_fg_grey = "#4B5263", cursor_grey = "#2C323C", visual_grey = "#3E4452", menu_grey = "#3E4452", special_grey = "#3B4048", vertsplit = "#181A1F", } M.normal = { a = { fg = colors.black, bg = colors.green, }, b = { fg = colors.white, bg = colors.visual_grey, }, c = { fg = colors.green, bg = colors.black, }, } M.insert = { a = { fg = colors.black, bg = colors.blue, }, b = { fg = colors.white, bg = colors.visual_grey, }, c = { fg = colors.blue, bg = colors.black, }, } M.visual = { a = { fg = colors.black, bg = colors.purple, }, b = { fg = colors.white, bg = colors.visual_grey, }, c = { fg = colors.purple, bg = colors.black, }, } M.replace = { a = { fg = colors.black, bg = colors.red, }, b = { fg = colors.white, bg = colors.visual_grey, }, c = { fg = colors.red, bg = colors.black, }, } M.terminal = M.normal M.command = M.normal M.inactive = { a = { fg = colors.black, bg = colors.white, }, b = { fg = colors.white, bg = colors.visual_grey, }, c = { fg = colors.white, bg = colors.visual_grey, }, } return M
return {'thriller','thrillerachtig','thrillerauteur','thrillerlezer','thrillerschrijfsters','thrillerschrijver','thrillergenre','thrillerdebuut','thrillerelement','thrillerclip','thracie','thrillerauteurs','thrillers','thrillerachtige','thrillerelementen','thrillerschrijvers'}
local Util = require('util') local Point = { } function Point.copy(pt) return { x = pt.x, y = pt.y, z = pt.z } end function Point.same(pta, ptb) return pta.x == ptb.x and pta.y == ptb.y and pta.z == ptb.z end function Point.above(pt) return { x = pt.x, y = pt.y + 1, z = pt.z, heading = pt.heading } end function Point.below(pt) return { x = pt.x, y = pt.y - 1, z = pt.z, heading = pt.heading } end function Point.subtract(a, b) a.x = a.x - b.x a.y = a.y - b.y a.z = a.z - b.z end -- Euclidian distance function Point.pythagoreanDistance(a, b) return math.sqrt( math.pow(a.x - b.x, 2) + math.pow(a.y - b.y, 2) + math.pow(a.z - b.z, 2)) end -- turtle distance (manhattan) function Point.turtleDistance(a, b) if a.y and b.y then return math.abs(a.x - b.x) + math.abs(a.y - b.y) + math.abs(a.z - b.z) else return math.abs(a.x - b.x) + math.abs(a.z - b.z) end end function Point.calculateTurns(ih, oh) if ih == oh then return 0 end if (ih % 2) == (oh % 2) then return 2 end return 1 end function Point.calculateHeading(pta, ptb) local heading if (pta.heading % 2) == 0 and pta.z ~= ptb.z then if ptb.z > pta.z then heading = 1 else heading = 3 end elseif (pta.heading % 2) == 1 and pta.x ~= ptb.x then if ptb.x > pta.x then heading = 0 else heading = 2 end elseif pta.heading == 0 and pta.x > ptb.x then heading = 2 elseif pta.heading == 2 and pta.x < ptb.x then heading = 0 elseif pta.heading == 1 and pta.z > ptb.z then heading = 3 elseif pta.heading == 3 and pta.z < ptb.z then heading = 1 end return heading or pta.heading end -- Calculate distance to location including turns -- also returns the resulting heading function Point.calculateMoves(pta, ptb, distance) local heading = pta.heading local moves = distance or Point.turtleDistance(pta, ptb) if (pta.heading % 2) == 0 and pta.z ~= ptb.z then moves = moves + 1 if ptb.heading and (ptb.heading % 2 == 1) then heading = ptb.heading elseif ptb.z > pta.z then heading = 1 else heading = 3 end elseif (pta.heading % 2) == 1 and pta.x ~= ptb.x then moves = moves + 1 if ptb.heading and (ptb.heading % 2 == 0) then heading = ptb.heading elseif ptb.x > pta.x then heading = 0 else heading = 2 end end if ptb.heading then if heading ~= ptb.heading then moves = moves + Point.calculateTurns(heading, ptb.heading) heading = ptb.heading end end return moves, heading end -- given a set of points, find the one taking the least moves function Point.closest(reference, pts) local lpt, lm -- lowest for _,pt in pairs(pts) do local m = Point.calculateMoves(reference, pt) if not lm or m < lm then lpt = pt lm = m end end return lpt end function Point.eachClosest(spt, ipts, fn) local pts = Util.shallowCopy(ipts) while #pts > 0 do local pt = Point.closest(spt, pts) local r = fn(pt) if r then return r end Util.removeByValue(pts, pt) end end function Point.adjacentPoints(pt) local pts = { } for _, hi in pairs(turtle.getHeadings()) do table.insert(pts, { x = pt.x + hi.xd, y = pt.y + hi.yd, z = pt.z + hi.zd }) end return pts end function Point.normalizeBox(box) return { x = math.min(box.x, box.ex), y = math.min(box.y, box.ey), z = math.min(box.z, box.ez), ex = math.max(box.x, box.ex), ey = math.max(box.y, box.ey), ez = math.max(box.z, box.ez), } end function Point.inBox(pt, box) return pt.x >= box.x and pt.y >= box.y and pt.z >= box.z and pt.x <= box.ex and pt.y <= box.ey and pt.z <= box.ez end return Point --[[ Box = { } function Box.contain(boundingBox, containedBox) local shiftX = boundingBox.ax - containedBox.ax if shiftX > 0 then containedBox.ax = containedBox.ax + shiftX containedBox.bx = containedBox.bx + shiftX end local shiftZ = boundingBox.az - containedBox.az if shiftZ > 0 then containedBox.az = containedBox.az + shiftZ containedBox.bz = containedBox.bz + shiftZ end shiftX = boundingBox.bx - containedBox.bx if shiftX < 0 then containedBox.ax = containedBox.ax + shiftX containedBox.bx = containedBox.bx + shiftX end shiftZ = boundingBox.bz - containedBox.bz if shiftZ < 0 then containedBox.az = containedBox.az + shiftZ containedBox.bz = containedBox.bz + shiftZ end end --]]
return function (App) App.route( { method = "GET", path = "/API/Connections/List/", }, function (Request, Response) local Return = {} for Index, Connection in pairs(Connections) do table.insert(Return, {Id = Connection.Id}) end Response.body = Json.encode(Return) Response.code = 200 end ) end
-- Copyright (C) 2011-2015 Anton Burdinuk -- clark15b@gmail.com -- https://tsdemuxer.googlecode.com/svn/trunk/xupnpd http.sendurl_buffer_size(32768,1); if cfg.daemon==true then core.detach() end core.openlog(cfg.log_ident,cfg.log_facility) if cfg.daemon==true then core.touchpid(cfg.pid_file) end if cfg.embedded==true then cfg.debug=0 end function clone_table(t) local tt={} for i,j in pairs(t) do tt[i]=j end return tt end function split_string(s,d) local t={} d='([^'..d..']+)' for i in string.gmatch(s,d) do table.insert(t,i) end return t end function load_plugins(path,what) local d=util.dir(path) if d then for i,j in ipairs(d) do if string.find(j,'^[%w_-]+%.lua$') then if cfg.debug>0 then print(what..' \''..j..'\'') end dofile(path..j) end end end end -- options for profiles cfg.dev_desc_xml='/dev.xml' -- UPnP Device Description XML cfg.upnp_container='object.container' -- UPnP class for containers cfg.upnp_artist=false -- send <upnp:artist> / <upnp:actor> in SOAP response cfg.upnp_feature_list='' -- X_GetFeatureList response body cfg.upnp_albumart=0 -- 0: <upnp:albumArtURI>direct url</upnp:albumArtURI>, 1: <res>direct url<res>, 2: <upnp:albumArtURI>local url</upnp:albumArtURI>, 3: <res>local url<res> cfg.dlna_headers=true -- send TransferMode.DLNA.ORG and ContentFeatures.DLNA.ORG in HTTP response cfg.dlna_extras=true -- DLNA extras in headers and SOAP cfg.content_disp=false -- send Content-Disposition when streaming cfg.soap_length=true -- send Content-Length in SOAP response cfg.wdtv=false -- WDTV Live compatible mode cfg.sec_extras=false -- Samsung extras update_id=1 -- system update_id subscr={} -- event sessions (for UPnP notify engine) plugins={} -- external plugins (YouTube, Vimeo ...) profiles={} -- device profiles cache={} -- real URL cache for plugins cache_size=0 if not cfg.feeds_path then cfg.feeds_path=cfg.playlists_path end -- create feeds directory if cfg.feeds_path~=cfg.playlists_path then os.execute('mkdir -p '..cfg.feeds_path) end -- load config, plugins and profiles load_plugins(cfg.plugin_path,'plugin') load_plugins(cfg.config_path,'config') dofile('xupnpd_mime.lua') if cfg.profiles then load_plugins(cfg.profiles,'profile') end dofile('xupnpd_m3u.lua') dofile('xupnpd_ssdp.lua') dofile('xupnpd_http.lua') -- download feeds from external sources (child process) function update_feeds_async() local num=0 for i,j in ipairs(feeds) do local plugin=plugins[ j[1] ] if plugin and plugin.disabled~=true and plugin.updatefeed then if plugin.updatefeed(j[2],j[3])==true then num=num+1 end end end if num>0 then core.sendevent('reload') end end -- spawn child process for feeds downloading function update_feeds(what,sec) core.fspawn(update_feeds_async) core.timer(cfg.feeds_update_interval,what) end -- subscribe player for ContentDirectory events function subscribe(event,sid,callback,ttl) local s=nil if subscr[sid] then s=subscr[sid] s.timestamp=os.time() else if callback=='' then return end s={} subscr[sid]=s s.event=event s.sid=sid s.callback=callback s.timestamp=os.time() s.ttl=tonumber(ttl) s.seq=0 end if cfg.debug>0 then print('subscribe: '..s.sid..', '..s.event..', '..s.callback) end end -- unsubscribe player function unsubscribe(sid) if subscr[sid] then subscr[sid]=nil if cfg.debug>0 then print('unsubscribe: '..sid) end end end --store to cache function cache_store(k,v) local time=os.time() local cc=cache[k] if cc then cc.value=v cc.time=time return end if cache_size>=cfg.cache_size then local min_k=nil local min_time=nil for i,j in pairs(cache) do if not min_time or min_time>j.time then min_k=i min_time=j.time end end if min_k then if cfg.debug>0 then print('remove URL from cache (overflow): '..min_k) end cache[min_k]=nil cache_size=cache_size-1 end end local t={} t.time=time t.value=v cache[k]=t cache_size=cache_size+1 end -- garbage collection function sys_gc(what,sec) local t=os.time() -- force unsubscribe local g={} for i,j in pairs(subscr) do if os.difftime(t,j.timestamp)>=j.ttl then table.insert(g,i) end end for i,j in ipairs(g) do subscr[j]=nil if cfg.debug>0 then print('force unsubscribe (timeout): '..j) end end -- cache clear g={} for i,j in pairs(cache) do if os.difftime(t,j.time)>=cfg.cache_ttl then table.insert(g,i) end end cache_size=cache_size-table.maxn(g) for i,j in ipairs(g) do cache[j]=nil if cfg.debug>0 then print('remove URL from cache (timeout): '..j) end end core.timer(sec,what) end -- ContentDirectory event deliver (child process) function subscr_notify_iterate_tree(pls,tt) if pls.elements then table.insert(tt,pls.objid..','..update_id) for i,j in ipairs(pls.elements) do subscr_notify_iterate_tree(j,tt) end end end function subscr_notify_async(t) local tt={} subscr_notify_iterate_tree(playlist_data,tt) local data=string.format( '<e:propertyset xmlns:e=\"urn:schemas-upnp-org:event-1-0\"><e:property><SystemUpdateID>%s</SystemUpdateID><ContainerUpdateIDs>%s</ContainerUpdateIDs></e:property></e:propertyset>', update_id,table.concat(tt,',')) for i,j in ipairs(t) do if cfg.debug>0 then print('notify: '..j.callback..', sid='..j.sid..', seq='..j.seq) end http.notify(j.callback,j.sid,data,j.seq) end end -- reload all playlists function reload_playlist() reload_playlists() update_id=update_id+1 if update_id>100000 then update_id=1 end if cfg.debug>0 then print('reload playlist, update_id='..update_id) end if cfg.dlna_notify==true then local t={} for i,j in pairs(subscr) do if j.event=='cds' then table.insert(t, { ['callback']=j.callback, ['sid']=j.sid, ['seq']=j.seq } ) j.seq=j.seq+1 if j.seq>100000 then j.seq=0 end end end if table.maxn(t)>0 then core.fspawn(subscr_notify_async,t) end end end -- change child process status (for UI) function set_child_status(pid,status) pid=tonumber(pid) if childs[pid] then childs[pid].status=status childs[pid].time=os.time() end end function get_drive_state(drive) local s local f=io.popen('/sbin/hdparm -C '..drive..' 2>/dev/null | grep -i state','r') if f then s=f:read('*a') f:close() end return string.match(s,'drive state is:%s+(.+)%s+') end function profile_change(user_agent,req) if not user_agent or user_agent=='' then return end for name,profile in pairs(profiles) do local match=profile.match if profile.disabled~=true and match and match(user_agent,req) then local options=profile.options local mtypes=profile.mime_types if options then for i,j in pairs(options) do cfg[i]=j end end if mtypes then if profile.replace_mime_types==true then mime=mtypes else for i,j in pairs(mtypes) do mime[i]=j end end end return name end end return nil end -- event handlers events['SIGUSR1']=reload_playlist events['reload']=reload_playlist events['store']=cache_store events['sys_gc']=sys_gc events['subscribe']=subscribe events['unsubscribe']=unsubscribe events['update_feeds']=update_feeds events['status']=set_child_status events['config']=function() load_plugins(cfg.config_path,'config') cache={} cache_size=0 end events['remove_feed']=function(id) table.remove(feeds,tonumber(id)) end events['add_feed']=function(plugin,feed,name) table.insert(feeds,{[1]=plugin,[2]=feed,[3]=name}) end events['plugin']=function(name,status) if status=='on' then plugins[name].disabled=false else plugins[name].disabled=true end end events['profile']=function(name,status) if status=='on' then profiles[name].disabled=false else profiles[name].disabled=true end end events['bookmark']=function(objid,pos) local pls=find_playlist_object(objid) if pls then pls.bookmark=pos end end events['update_playlists']= function(what,sec) if cfg.drive and cfg.drive~='' then if get_drive_state(cfg.drive)=='active/idle' then reload_playlist() end else reload_playlist() end core.timer(cfg.playlists_update_interval,what) end if cfg.embedded==true then print=function () end end -- start garbage collection system core.timer(300,'sys_gc') http.timeout(cfg.http_timeout) http.user_agent(cfg.user_agent) -- start feeds update system if cfg.feeds_update_interval>0 then core.timer(3,'update_feeds') end if cfg.playlists_update_interval>0 then core.timer(cfg.playlists_update_interval,'update_playlists') end load_plugins(cfg.config_path..'postinit/','postinit') print("start "..cfg.log_ident) core.mainloop() print("stop "..cfg.log_ident) if cfg.daemon==true then os.execute('rm -f '..cfg.pid_file) end
local webhook = '' TriggerEvent('es:addGroupCommand', 'shotplayer', "superadmin", function(source, args, user) if webhook ~= '' then if tonumber(args[1]) ~= nil then if GetPlayerName(args[1]) ~= nil then TriggerClientEvent('chatMessage', source, "SYSTEM ", {255, 0, 0}, "Otetaan kuvaa pelaajasta ^6"..GetPlayerName(args[1])..'^0 ID: ^6'.. args[1]..'^0') TriggerClientEvent('s_shotplayer:asdasfdds', args[1], webhook) else TriggerClientEvent('chatMessage', source, "SYSTEM ", {255, 0, 0}, "Pelaajaa "..args[1]..' ei löydetty...') end else TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Onko Pelaajan id oikein?") end else TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Onko webhook asetettu?") end end)
if not vim.g.vscode then -- 基础配置 require("basic") -- 快捷键映射 require("keybindings") -- Packer插件管理 require("plugins") -- 主题设置 require("colorscheme") -- 自动命令 require("autocmds") -- 插件配置 require("plugin-config.nvim-tree") require("plugin-config.bufferline") require("plugin-config.lualine") require("plugin-config.telescope") require("plugin-config.dashboard") require("plugin-config.project") require("plugin-config.nvim-treesitter") require("plugin-config.indent-blankline") require("plugin-config.surround") require("plugin-config.comment") require("plugin-config.nvim-autopairs") require("plugin-config.license") require("plugin-config.gitlens") require("plugin-config.term") require("plugin-config.sniprun") require("plugin-config.which-key") -- Git require("plugin-config.gitsigns") -- 内置LSP require("lsp.setup") require("lsp.cmp") require("lsp.ui") require("lsp.formatter") end
require("config") require("framework.init") local Store = require("services.Store") -- define global module game = {} function game.startup() game.store = Store.new() game.store:addEventListener(Store.TRANSACTION_PURCHASED, game.onTransactionPurchased) game.store:addEventListener(Store.TRANSACTION_FAILED, game.onTransactionFailed) game.store:addEventListener(Store.TRANSACTION_UNKNOWN_ERROR, game.onTransactionUnknownError) CCFileUtils:sharedFileUtils():addSearchPath("res/") game.enterMainScene() end function game.exit() os.exit() end function game.enterMainScene() display.replaceScene(require("scenes.MainScene").new(), "fade", 0.6, display.COLOR_WHITE) end function game.onTransactionPurchased(event) local transaction = event.transaction local productId = transaction.productIdentifier local product = game.store:getProductDetails(productId) local msg if product then msg = string.format("productId = %s\nquantity = %s\ntitle = %s\nprice = %s %s", productId, tostring(transaction.quantity), product.localizedTitle, product.price, product.priceLocale) else -- prev unfinished transaction msg = string.format("productId = %s\nquantity = %s", productId, tostring(transaction.quantity)) end device.showAlert("IAP Purchased", msg, {"OK"}) -- add Player's Coins at here end function game.onTransactionFailed(event) local transaction = event.transaction local msg = string.format("errorCode = %s\nerrorString = %s", tostring(transaction.errorCode), tostring(transaction.errorString)) device.showAlert("IAP Purchased", msg, {"OK"}) end function game.onTransactionUnknownError(event) device.showAlert("IAP Error", "Unknown error", {"OK"}) end
-- luacheck: globals describe beforeAll expect it local noOptMatcher = function(_received, _expected) return { message = "", pass = true, } end return function() beforeAll(function() expect.extend({ scope_0 = noOptMatcher, }) end) it("SHOULD inherit from previous beforeAll", function() assert(expect().scope_0, "should have scope_0") end) describe("scope 1", function() beforeAll(function() expect.extend({ scope_1 = noOptMatcher, }) end) it("SHOULD inherit from previous beforeAll", function() assert(expect().scope_1, "should have scope_1") end) it("SHOULD inherit from previous root level beforeAll", function() assert(expect().scope_0, "should have scope_0") end) it("SHOULD NOT inherit scope 2", function() assert(expect().scope_2 == nil, "should not have scope_0") end) describe("scope 2", function() beforeAll(function() expect.extend({ scope_2 = noOptMatcher, }) end) it("SHOULD inherit from previous beforeAll in scope 2", function() assert(expect().scope_2, "should have scope_2") end) it("SHOULD inherit from previous beforeAll in scope 1", function() assert(expect().scope_1, "should have scope_1") end) it("SHOULD inherit from previous beforeAll in scope 0", function() assert(expect().scope_0, "should have scope_0") end) end) end) it("SHOULD NOT inherit from scope 1", function() assert(expect().scope_1 == nil, "should not have scope_1") end) end
local config = require "lua-url-shortener.config" describe("Test config file", function() local test_config_filename = "spec/config-sample.lua" it("should find config file", function() assert.truthy(config.file_exists(test_config_filename)) end) local test, msg = config.load_config(test_config_filename) it("should return table with config values", function() assert.same(test.a, 10) assert.same(test.b, 20) end) end)
return { bg = '#000000', fg = '#CCCCCC', }
local Sewing = Class(function(self, inst) self.inst = inst self.repair_value = 1 end) function Sewing:DoSewing(target, doer) if target.components.fueled and target.components.fueled.fueltype == "USAGE" and target.components.fueled:GetPercent() < 1 then target.components.fueled:DoDelta(self.repair_value) if self.inst.components.finiteuses then self.inst.components.finiteuses:Use(1) end if self.onsewn then self.onsewn(self.inst, target, doer) end return true end end function Sewing:CollectUseActions(doer, target, actions, right) --this... should be redone without using the fueled component... it's kind of weird. if not target:HasTag("no_sewing") and target.components.fueled and target.components.fueled.fueltype == "USAGE" and target.components.fueled:GetPercent() < 1 then table.insert(actions, ACTIONS.SEW) end end return Sewing
--[[ LuiExtended License: The MIT License (MIT) --]] local zo_strformat = zo_strformat -- Local Damagetypes for easy use local PhysicalDamage = GetString(SI_DAMAGETYPE2) .. " Damage" -- TODO: Localize local FlameDamage = GetString(SI_DAMAGETYPE3) .. " Damage" -- TODO: Localize local ShockDamage = GetString(SI_DAMAGETYPE4) .. " Damage" -- TODO: Localize local FrostDamage = GetString(SI_DAMAGETYPE6) .. " Damage" -- TODO: Localize local MagicDamage = GetString(SI_DAMAGETYPE8) .. " Damage" -- TODO: Localize local DiseaseDamage = GetString(SI_DAMAGETYPE10) .. " Damage" -- TODO: Localize local PoisonDamage = GetString(SI_DAMAGETYPE11) .. " Damage" -- TODO: Localize local BleedDamage = "Bleed Damage" -- TODO: Localize local OblivionDamage = "Oblivion Damage" -- TODO: Localize LUIE.Data.Tooltips = { ---------------------------------------------------------------- -- MAJOR / MINOR BUFFS & DEBUFFS ------------------------------- ---------------------------------------------------------------- -- Major/Minor Buffs Skill_Minor_Resolve = GetString(SI_LUIE_SKILL_MINOR_RESOLVE_TP), Skill_Major_Resolve = GetString(SI_LUIE_SKILL_MAJOR_RESOLVE_TP), Skill_Minor_Fortitude = GetString(SI_LUIE_SKILL_MINOR_FORTITUDE_TP), Skill_Major_Fortitude = GetString(SI_LUIE_SKILL_MAJOR_FORTITUDE_TP), Skill_Minor_Endurance = GetString(SI_LUIE_SKILL_MINOR_ENDURANCE_TP), Skill_Major_Endurance = GetString(SI_LUIE_SKILL_MAJOR_ENDURANCE_TP), Skill_Minor_Intellect = GetString(SI_LUIE_SKILL_MINOR_INTELLECT_TP), Skill_Major_Intellect = GetString(SI_LUIE_SKILL_MAJOR_INTELLECT_TP), Skill_Minor_Sorcery = GetString(SI_LUIE_SKILL_MINOR_SORCERY_TP), Skill_Major_Sorcery = GetString(SI_LUIE_SKILL_MAJOR_SORCERY_TP), Skill_Minor_Prophecy = GetString(SI_LUIE_SKILL_MINOR_PROPHECY_TP), Skill_Major_Prophecy = GetString(SI_LUIE_SKILL_MAJOR_PROPHECY_TP), Skill_Minor_Brutality = GetString(SI_LUIE_SKILL_MINOR_BRUTALITY_TP), Skill_Major_Brutality = GetString(SI_LUIE_SKILL_MAJOR_BRUTALITY_TP), Skill_Minor_Savagery = GetString(SI_LUIE_SKILL_MINOR_SAVAGERY_TP), Skill_Major_Savagery = GetString(SI_LUIE_SKILL_MAJOR_SAVAGERY_TP), Skill_Minor_Berserk = GetString(SI_LUIE_SKILL_MINOR_BERSERK_TP), Skill_Major_Berserk = GetString(SI_LUIE_SKILL_MAJOR_BERSERK_TP), Skill_Minor_Force = GetString(SI_LUIE_SKILL_MINOR_FORCE_TP), Skill_Major_Force = GetString(SI_LUIE_SKILL_MAJOR_FORCE_TP), Skill_Minor_Vitality = GetString(SI_LUIE_SKILL_MINOR_VITALITY_TP), Skill_Major_Vitality = GetString(SI_LUIE_SKILL_MAJOR_VITALITY_TP), Skill_Minor_Mending = GetString(SI_LUIE_SKILL_MINOR_MENDING_TP), Skill_Major_Mending = GetString(SI_LUIE_SKILL_MAJOR_MENDING_TP), Skill_Minor_Protection = GetString(SI_LUIE_SKILL_MINOR_PROTECTION_TP), Skill_Major_Protection = GetString(SI_LUIE_SKILL_MAJOR_PROTECTION_TP), Skill_Minor_Evasion = GetString(SI_LUIE_SKILL_MINOR_EVASION_TP), Skill_Major_Evasion = GetString(SI_LUIE_SKILL_MAJOR_EVASION_TP), Skill_Minor_Expedition = GetString(SI_LUIE_SKILL_MINOR_EXPEDITION_TP), Skill_Major_Expedition = GetString(SI_LUIE_SKILL_MAJOR_EXPEDITION_TP), Skill_Major_Gallop = GetString(SI_LUIE_SKILL_MAJOR_GALLOP_TP), Skill_Minor_Heroism = GetString(SI_LUIE_SKILL_MINOR_HEROISM_TP), Skill_Major_Heroism = GetString(SI_LUIE_SKILL_MAJOR_HEROISM_TP), Skill_Minor_Toughness = GetString(SI_LUIE_SKILL_MINOR_TOUGHNESS_TP), Skill_Minor_Courage = GetString(SI_LUIE_SKILL_MINOR_COURAGE_TP), Skill_Major_Courage = GetString(SI_LUIE_SKILL_MAJOR_COURAGE_TP), -- Major/Minor Debuffs Skill_Minor_Breach = GetString(SI_LUIE_SKILL_MINOR_BREACH_TP), Skill_Major_Breach = GetString(SI_LUIE_SKILL_MAJOR_BREACH_TP), Skill_Major_Fracture_NPC = GetString(SI_LUIE_SKILL_MAJOR_FRACTURE_NPC_TP), Skill_Minor_Vulnerability = GetString(SI_LUIE_SKILL_MINOR_VULNERABILITY_TP), Skill_Major_Vulnerability = GetString(SI_LUIE_SKILL_MAJOR_VULNERABILITY_TP), Skill_Minor_Maim = GetString(SI_LUIE_SKILL_MINOR_MAIM_TP), Skill_Major_Maim = GetString(SI_LUIE_SKILL_MAJOR_MAIM_TP), Skill_Minor_Defile = GetString(SI_LUIE_SKILL_MINOR_DEFILE_TP), Skill_Major_Defile = GetString(SI_LUIE_SKILL_MAJOR_DEFILE_TP), Skill_Minor_Magickasteal = GetString(SI_LUIE_SKILL_MINOR_MAGICKASTEAL_TP), Skill_Minor_Lifesteal = GetString(SI_LUIE_SKILL_MINOR_LIFESTEAL_TP), Skill_Minor_Enveration = GetString(SI_LUIE_SKILL_MINOR_ENERVATION_TP), Skill_Minor_Uncertainty = GetString(SI_LUIE_SKILL_MINOR_UNCERTAINTY_TP), Skill_Minor_Cowardice = GetString(SI_LUIE_SKILL_MINOR_COWARDICE_TP), Skill_Major_Cowardice = GetString(SI_LUIE_SKILL_MAJOR_COWARDICE_TP), Skill_Minor_Mangle = GetString(SI_LUIE_SKILL_MINOR_MANGLE_TP), Skill_Minor_Timidity = GetString(SI_LUIE_SKILL_MINOR_TIMIDITY_TP), Skill_Minor_Brittle = GetString(SI_LUIE_SKILL_MINOR_BRITTLE_TP), Skill_Major_Brittle = GetString(SI_LUIE_SKILL_MAJOR_BRITTLE_TP), -- Aegis/Slayer Skill_Minor_Aegis = GetString(SI_LUIE_SKILL_MINOR_AEGIS_TP), Skill_Major_Aegis = GetString(SI_LUIE_SKILL_MAJOR_AEGIS_TP), Skill_Minor_Slayer = GetString(SI_LUIE_SKILL_MINOR_SLAYER_TP), Skill_Major_Slayer = GetString(SI_LUIE_SKILL_MAJOR_SLAYER_TP), -- Empower / Hindrance Skill_Empower = GetString(SI_LUIE_SKILL_EMPOWER_TP), ---------------------------------------------------------------- -- GENERIC SKILLS ---------------------------------------------- ---------------------------------------------------------------- Generic_Immunity = GetString(SI_LUIE_SKILL_SET_GENERIC_IMMUNITY_TP), Generic_Immunity_Permanent = GetString(SI_LUIE_SKILL_GENERIC_IMMUNITY_PERMANENT_TP), Generic_Snare = GetString(SI_LUIE_SKILL_GENERIC_SNARE_TP), Generic_Snare_No_Dur = GetString(SI_LUIE_SKILL_GENERIC_SNARE_NO_DUR_TP), Generic_Damage_Shield_No_Duration = GetString(SI_LUIE_SKILL_GENERIC_DAMAGE_SHIELD_NO_DUR_TP), Generic_Damage_Shield_Duration = GetString(SI_LUIE_SKILL_GENERIC_DAMAGE_SHIELD_TP), Generic_Damage_Shield_Percent_Duration = GetString(SI_LUIE_SKILL_GENERIC_DAMAGE_SHIELD_PERCENT_TP), Generic_Weapon_Damage_Duration = GetString(SI_LUIE_SKILL_SET_GENERIC_WEP_DAMAGE_TIME_TP), Generic_Weapon_Damage_Duration_Value = GetString(SI_LUIE_SKILL_SET_GENERIC_WEP_DAMAGE_VALUE_TIME_TP), Generic_Spell_Damage_Duration = GetString(SI_LUIE_SKILL_SET_GENERIC_SPELL_DAMAGE_TIME_TP), Generic_Spell_Damage_Duration_Value = GetString(SI_LUIE_SKILL_SET_GENERIC_SPELL_DAMAGE_TIME_VALUE_TP), Generic_LA_HA_Damage_Duration = GetString(SI_LUIE_SKILL_SET_GENERIC_LA_HA_DAMAGE_TP), Generic_LA_HA_Damage_Duration_Value = GetString(SI_LUIE_SKILL_SET_GENERIC_LA_HA_DAMAGE_VALUE_TP), Generic_Magicka_Recovery_Duration = GetString(SI_LUIE_SKILL_SET_GENERIC_MAG_RECOVERY_TIME_TP), Generic_Magicka_Recovery_Duration_Value = GetString(SI_LUIE_SKILL_SET_GENERIC_MAG_RECOVERY_TIME_VALUE_TP), Generic_Weapon_Spell_Damage_Duration = GetString(SI_LUIE_SKILL_SET_GENERIC_WEP_SPELL_DAMAGE_TIME_TP), Generic_Weapon_Spell_Damage_Duration_Value = GetString(SI_LUIE_SKILL_SET_GENERIC_WEP_SPELL_DAMAGE_TIME_VALUE_TP), Generic_Reduce_Weapon_Damage_Duration_Value = GetString(SI_LUIE_SKILL_SET_GENERIC_REDUCE_WEAPON_DAMAGE_TIME_VALUE_TP), Generic_Increase_Max_Magicka_Duration_Percentage = GetString(SI_LUIE_SKILL_INCREASE_MAX_MAGICKA_DURATION_PERCENTAGE_TP), Generic_Magicka_Regen = GetString(SI_LUIE_SKILL_GENERIC_MGK_REGEN_TP), Generic_Magicka_Regen_Value = GetString(SI_LUIE_SKILL_GENERIC_MGK_REGEN_VALUE_TP), Generic_Stamina_Regen = GetString(SI_LUIE_SKILL_GENERIC_STAM_REGEN_TP), Generic_Stamina_Regen_Value = GetString(SI_LUIE_SKILL_GENERIC_STAM_REGEN_VALUE_TP), Generic_Health_Recovery = GetString(SI_LUIE_SKILL_GENERIC_HEALTH_RECOVERY_TP), Generic_Enrage = GetString(SI_LUIE_SKILL_GENERIC_ENRAGE), Generic_Enrage_No_Dur = GetString(SI_LUIE_SKILL_GENERIC_ENRAGE_NO_DUR), Generic_Enrage_Damage_Taken_No_Dur = GetString(SI_LUIE_SKILL_GENERIC_ENRAGE_DAMAGE_TAKEN_NO_DUR), Generic_Enrage_Damage_Reduce_No_Dur = GetString(SI_LUIE_SKILL_GENERIC_ENRAGE_DAMAGE_REDUCE_NO_DUR), Generic_Enrage_Stack_Permanent = GetString(SI_LUIE_SKILL_GENERIC_ENRAGE_STACK_PERMANENT_TP), Generic_Increase_Damage_Taken = GetString(SI_LUIE_SKILL_GENERIC_INCREASE_DAMAGE_TAKEN_TP), Generic_Reduce_Damage_Taken = GetString(SI_LUIE_SKILL_GENERIC_REDUCE_DAMAGE_TAKEN_TP), Generic_Critical_Damage = GetString(SI_LUIE_SKILL_SET_GENERIC_CRITICAL_DAMAGE_TP), Generic_Movement_Speed = GetString(SI_LUIE_SKILL_GENERIC_MOVEMENT_SPEED_TP), Generic_Increase_Physical_Spell_Pen = GetString(SI_LUIE_SKILL_GENERIC_PHYSICAL_SPELL_PEN_TP), Generic_Set_ICD = GetString(SI_LUIE_SKILL_SET_GENERIC_ICD_TP), Generic_Set_ICD_Minutes = GetString(SI_LUIE_SKILL_SET_GENERIC_ICD_MINUTES_TP), -- Resistances Generic_Physical_Resist = GetString(SI_LUIE_SKILL_GENERIC_PHYSICAL_RESIST_TP), Generic_Spell_Resist_No_Dur = GetString(SI_LUIE_SKILL_GENERIC_SPELL_RESIST_NO_DUR_TP), Generic_Physical_Spell_Resist = GetString(SI_LUIE_SKILL_GENERIC_PHY_SPELL_RESIST), Generic_Physical_Spell_Resist_Value = GetString(SI_LUIE_SKILL_GENERIC_PHY_SPELL_RESIST_VALUE_TP), Generic_Physical_Spell_Resist_No_Dur = GetString(SI_LUIE_SKILL_GENERIC_PHY_SPELL_RESIST_NO_DUR_TP), Generic_Physical_Spell_Resist_No_Dur_Value = GetString(SI_LUIE_SKILL_GENERIC_PHY_SPELL_RESIST_NO_DUR_VALUE_TP), Generic_Reduce_Physical_Spell_Resist = GetString(SI_LUIE_SKILL_GENERIC_REDUCE_PHY_SPELL_RESIST_TP), Generic_Reduce_Physical_Spell_Resist_Value = GetString(SI_LUIE_SKILL_GENERIC_REDUCE_PHY_SPELL_RESIST_VALUE_TP), Generic_Reduce_Physical_Spell_Resist_No_Dur = GetString(SI_LUIE_SKILL_GENERIC_REDUCE_PHY_SPELL_RESIST_NO_DUR_TP), Generic_Reduce_Physical_Spell_Resist_No_Dur_Value = GetString(SI_LUIE_SKILL_GENERIC_REDUCE_PHY_SPELL_RESIST_NO_DUR_VALUE_TP), Generic_Reduce_Physical_Spell_Damage_Percentage = GetString(SI_LUIE_SKILL_GENERIC_REDUCE_WEP_SPELL_DMG_PERCENTAGE_TP), -- TODO: Unused Generic_Reduce_Physical_Spell_Damage_Value = GetString(SI_LUIE_SKILL_GENERIC_REDUCE_WEP_SPELL_DMG_VALUE_TP), -- TODO: Unused Generic_Reduce_Physical_Resist_Value = GetString(SI_LUIE_SKILL_GENERIC_REDUCE_PHYSICAL_RESIST_VALUE_TP), Generic_Reduce_Healing_Received = GetString(SI_LUIE_SKILL_GENERIC_REDUCE_HEALING_RECEIVED_TP), Generic_Lower_Max_HP = GetString(SI_LUIE_SKILL_GENERIC_LOWER_MAX_HP_TP), Generic_Reduce_Damage_Done = GetString(SI_LUIE_SKILL_GENERIC_REDUCE_DAMAGE_DONE_TP), Generic_Test = GetString(SI_LUIE_SKILL_TEST_TP), Generic_Increase_Stamina_Recovery_No_Dur = GetString(SI_LUIE_SKILL_GENERIC_STAMINA_RECOVERY_NO_DUR_TP), Generic_Increase_Magicka_Recovery_No_Dur = GetString(SI_LUIE_SKILL_GENERIC_MAGICKA_RECOVERY_NO_DUR_TP), Generic_Increase_Healing_Received_No_Dur = GetString(SI_LUIE_SKILL_GENERIC_INCREASE_HEALING_RECEIVED_NO_DUR_TP), Generic_Bleed = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_DOT_TP), "SUBSTRING", BleedDamage), Generic_Physical = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_DOT_TP), "SUBSTRING", PhysicalDamage), Generic_Disease = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_DOT_TP), "SUBSTRING", DiseaseDamage), Generic_Poison = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_DOT_TP), "SUBSTRING", PoisonDamage), Generic_Burn = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_DOT_TP), "SUBSTRING", FlameDamage), Generic_Freeze = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_DOT_TP), "SUBSTRING", FrostDamage), Generic_Shock = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_DOT_TP), "SUBSTRING", ShockDamage), Generic_Oblivion = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_DOT_TP), "SUBSTRING", OblivionDamage), Generic_Magic_No_Tick = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_DOT_NO_TICK_TP), "SUBSTRING", MagicDamage), Generic_Magic = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_DOT_TP), "SUBSTRING", MagicDamage), Generic_HoT = GetString(SI_LUIE_SKILL_GENERIC_HOT_TP), Generic_HoT_Channel = GetString(SI_LUIE_SKILL_GENERIC_HOT_CHANNEL_TP), Generic_Shock_Snare = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_DOT_SNARE_TP), "SUBSTRING", ShockDamage), Generic_Oblivion_Snare = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_DOT_SNARE_TP), "SUBSTRING", OblivionDamage), Generic_AOE_Physical = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_GROUND_AOE_TP), "SUBSTRING", PhysicalDamage), Generic_AOE_Bleed = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_GROUND_AOE_TP), "SUBSTRING", BleedDamage), Generic_AOE_Poison = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_GROUND_AOE_TP), "SUBSTRING", PoisonDamage), Generic_AOE_Disease = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_GROUND_AOE_TP), "SUBSTRING", DiseaseDamage), Generic_AOE_Fire = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_GROUND_AOE_TP), "SUBSTRING", FlameDamage), Generic_AOE_Frost = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_GROUND_AOE_TP), "SUBSTRING", FrostDamage), Generic_AOE_Shock = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_GROUND_AOE_TP), "SUBSTRING", ShockDamage), Generic_AOE_Magic = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_GROUND_AOE_TP), "SUBSTRING", MagicDamage), Generic_AOE_Oblivion = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_GROUND_AOE_TP), "SUBSTRING", OblivionDamage), Generic_AOE_Fire_Stacking = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_GROUND_AOE_STACK_TP), "SUBSTRING", FlameDamage), Generic_AOE_Shock_Stacking = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_GROUND_AOE_STACK_TP), "SUBSTRING", ShockDamage), Generic_AOE_Snare_Physical = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_GROUND_AOE_SNARE_TP), "SUBSTRING", PhysicalDamage), Generic_AOE_Snare_Poison = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_GROUND_AOE_SNARE_TP), "SUBSTRING", PoisonDamage), Generic_AOE_Snare_Disease = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_GROUND_AOE_SNARE_TP), "SUBSTRING", DiseaseDamage), Generic_AOE_Snare_Fire = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_GROUND_AOE_SNARE_TP), "SUBSTRING", FlameDamage), Generic_AOE_Snare_Frost = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_GROUND_AOE_SNARE_TP), "SUBSTRING", FrostDamage), Generic_AOE_Snare_Shock = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_GROUND_AOE_SNARE_TP), "SUBSTRING", ShockDamage), Generic_AOE_Snare_Magic = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_GROUND_AOE_SNARE_TP), "SUBSTRING", MagicDamage), Generic_AOE_Heal = GetString(SI_LUIE_SKILL_GENERIC_GROUND_HEAL_TP), Generic_Off_Balance = GetString(SI_LUIE_SKILL_GENERIC_OFF_BALANCE_TP), --Generic_Off_Balance_No_Dur = GetString(SI_LUIE_SKILL_GENERIC_OFF_BALANCE_NO_DUR_TP), Generic_Off_Balance_Immunity = GetString(SI_LUIE_SKILL_GENERIC_OFF_BALANCE_IMMUNITY_TP), Generic_Major_Vulnerability_Immunity = GetString(SI_LUIE_SKILL_GENERIC_MAJOR_VULNERABILITY_IMMUNITY_TP), Generic_Immobilize = GetString(SI_LUIE_SKILL_GENERIC_IMMOBILIZE_TP), Generic_Immobilize_No_Dur = GetString(SI_LUIE_SKILL_GENERIC_IMMOBILIZE_NO_DUR_TP), Generic_Stagger = GetString(SI_LUIE_SKILL_GENERIC_STAGGER_TP), Generic_Stun = GetString(SI_LUIE_SKILL_GENERIC_STUN_TP), Generic_Stun_No_Dur = GetString(SI_LUIE_SKILL_GENERIC_STUN_NO_DUR_TP), Generic_Levitate = GetString(SI_LUIE_SKILL_GENERIC_LEVITATE_TP), Generic_Knockback = GetString(SI_LUIE_SKILL_GENERIC_KNOCKBACK_TP), Generic_Knockdown = GetString(SI_LUIE_SKILL_GENERIC_KNOCKDOWN_TP), Generic_Knockdown_No_Dur = GetString(SI_LUIE_SKILL_GENERIC_KNOCKDOWN_NO_DUR_TP), Generic_Fear = GetString(SI_LUIE_SKILL_GENERIC_FEAR_TP), Generic_Fear_No_Dur = GetString(SI_LUIE_SKILL_GENERIC_FEAR_NO_DUR_TP), Generic_Silence = GetString(SI_LUIE_SKILL_GENERIC_SILENCE_TP), Generic_Silence_No_Dur = GetString(SI_LUIE_SKILL_GENERIC_SILENCE_NO_DUR_TP), Generic_Disorient = GetString(SI_LUIE_SKILL_GENERIC_DISORIENT_TP), --Generic_Disorient_No_Dur = GetString(SI_LUIE_SKILL_GENERIC_DISORIENT_NO_DUR_TP), Generic_CC_Immunity = GetString(SI_LUIE_SKILL_GENERIC_CC_IMMUNITY_TP), Generic_Scary_Immunities = GetString(SI_LUIE_SKILL_GENERIC_SCARY_IMMUNITIES_TP), Generic_Scary_Immunities_Duration = GetString(SI_LUIE_SKILL_GENERIC_SCARY_IMMUNITIES_DUR_TP), Generic_Flying_Immunities = GetString(SI_LUIE_SKILL_GENERIC_FLYING_IMMUNITIES_TP), Generic_Invisibility = GetString(SI_LUIE_SKILL_GENERIC_INVISIBILITY_TP), Generic_Detection = GetString(SI_LUIE_SKILL_GENERIC_DETECTION_TP), Generic_Detection_NPC = GetString(SI_LUIE_SKILL_GENERIC_DETECTION_NPC_TP), Generic_Ravage_Health_Potion = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_RAVAGE_HEALTH_POTION_TP), "SUBSTRING", PoisonDamage), Generic_Gradual_Ravage_Health_Potion = string.gsub(GetString(SI_LUIE_SKILL_GENERIC_RAVAGE_HEALTH_POTION_TP), "SUBSTRING", BleedDamage), --Generic_Ravage_Magicka_Potion = GetString(SI_LUIE_SKILL_GENERIC_RAVAGE_MAGICKA_POTION_TP), --Generic_Ravage_Stamina_Potion = GetString(SI_LUIE_SKILL_GENERIC_RAVAGE_STAMINA_POTION_TP), Generic_Ravage_Magicka_Poison = GetString(SI_LUIE_SKILL_GENERIC_RAVAGE_MAGICKA_POISON_TP), Generic_Ravage_Stamina_Poison = GetString(SI_LUIE_SKILL_GENERIC_RAVAGE_STAMINA_POISON_TP), Generic_Marked = GetString(SI_LUIE_SKILL_GENERIC_MARKED_TP), Generic_Trauma = GetString(SI_LUIE_SKILL_GENERIC_TRAUMA_TP), Generic_Reveal = GetString(SI_LUIE_SKILL_GENERIC_REVEAL_TP), Generic_Reveal_No_Dur = GetString(SI_LUIE_SKILL_GENERIC_REVEAL_NO_DUR_TP), Generic_Blind = GetString(SI_LUIE_SKILL_GENERIC_BLIND_TP), Skill_Spell_Resistance_Potion = GetString(SI_LUIE_SKILL_SPELL_RESISTANCE_POTION_TP), Skill_Physical_Resistance_Potion = GetString(SI_LUIE_SKILL_PHYSICAL_RESISTANCE_POTION_TP), Skill_Ravage_Armor_Potion = GetString(SI_LUIE_SKILL_RAVAGE_ARMOR_TP), Skill_Ravage_Spell_Protection_Potion = GetString(SI_LUIE_SKILL_RAVAGE_SPELL_PROTECTION_TP), Skill_Spell_Resistance_Poison = GetString(SI_LUIE_SKILL_SPELL_RESISTANCE_POISON_TP), Skill_Physical_Resistance_Poison = GetString(SI_LUIE_SKILL_PHYSICAL_RESISTANCE_POISON_TP), ---------------------------------------------------------------- -- INNATE SKILLS ---------------------------------------------- ---------------------------------------------------------------- -- Player Basic Innate_Mounted = GetString(SI_LUIE_SKILL_MOUNTED_TP), Innate_Mounted_Passenger = GetString(SI_LUIE_SKILL_MOUNTED_PASSENGER_TP), Innate_Vanity_Pet = GetString(SI_LUIE_SKILL_COLLECTIBLE_VANITY_PET_TP), Innate_Immobilize_Immunity = GetString(SI_LUIE_SKILL_IMMOBILIZE_IMMUNITY_TP), Innate_Snare_Immobilize_Immunity = GetString(SI_LUIE_SKILL_SNARE_IMMOBILIZE_IMMUNITY_TP), Innate_Dodge_Fatigue = GetString(SI_LUIE_SKILL_DODGE_FATIGUE_TP), Innate_Invisible = GetString(SI_LUIE_SKILL_INVISIBLE_TP), --Innate_Sprint = GetString(SI_LUIE_SKILL_SPRINT_TP), --Innate_Gallop = GetString(SI_LUIE_SKILL_GALLOP_TP), Innate_Resurrection_Immunity = GetString(SI_LUIE_SKILL_RESURRECTION_IMMUNITY_TP), Innate_Taunt = GetString(SI_LUIE_SKILL_TAUNT_TP), Innate_Disguised = GetString(SI_LUIE_SKILL_DISGUISE_TP), Innate_Battle_Spirit = GetString(SI_LUIE_SKILL_BATTLE_SPIRIT_TP), Innate_Battle_Spirit_Imperial_City = GetString(SI_LUIE_SKILL_BATTLE_SPIRIT_IMPERIAL_CITY_TP), Innate_Recall_Penalty = GetString(SI_LUIE_SKILL_RECALL_PENALTY_TP), Innate_Battleground_Deserter = GetString(SI_LUIE_SKILL_BATTLEGROUND_DESERTER_TP), Innate_Looking_for_Group = GetString(SI_LUIE_SKILL_LOOKING_FOR_GROUP_TP), Innate_Ayleid_Well = GetString(SI_LUIE_SKILL_AYLEID_WELL_TP), Innate_Ayleid_Well_Fortified = GetString(SI_LUIE_SKILL_AYLEID_WELL_FORTIFIED_TP), Innate_Firelight = GetString(SI_LUIE_SKILL_FIRELIGHT_TP), Innate_ESO_Plus = GetString(SI_LUIE_SKILL_ESO_PLUS_TP), -- Mundus Stones Boon_Lady = GetString(SI_LUIE_SKILL_MUNDUS_BASIC_LADY), Boon_Lover = GetString(SI_LUIE_SKILL_MUNDUS_BASIC_LOVER), Boon_Lord = GetString(SI_LUIE_SKILL_MUNDUS_BASIC_LORD), Boon_Mage = GetString(SI_LUIE_SKILL_MUNDUS_BASIC_MAGE), Boon_Tower = GetString(SI_LUIE_SKILL_MUNDUS_BASIC_TOWER), Boon_Atronach = GetString(SI_LUIE_SKILL_MUNDUS_BASIC_ATRONACH), Boon_Serpent = GetString(SI_LUIE_SKILL_MUNDUS_BASIC_SERPENT), Boon_Shadow = GetString(SI_LUIE_SKILL_MUNDUS_BASIC_SHADOW), Boon_Ritual = GetString(SI_LUIE_SKILL_MUNDUS_BASIC_RITUAL), Boon_Thief = GetString(SI_LUIE_SKILL_MUNDUS_BASIC_THIEF), Boon_Warrior = GetString(SI_LUIE_SKILL_MUNDUS_BASIC_WARRIOR), Boon_Apprentice = GetString(SI_LUIE_SKILL_MUNDUS_BASIC_APPRENTICE), Boon_Steed = GetString(SI_LUIE_SKILL_MUNDUS_BASIC_STEED), ---------------------------------------------------------------- -- EVENT SKILLS ------------------------------------------------ ---------------------------------------------------------------- Event_Freezing = GetString(SI_LUIE_SKILL_EVENT_FREEZING), Event_Warm = GetString(SI_LUIE_SKILL_EVENT_WARM), Event_Festival_Grog = GetString(SI_LUIE_SKILL_EVENT_FESTIVAL_GROG), Event_Festival_Mints = GetString(SI_LUIE_SKILL_EVENT_FESTIVAL_MINTS), Event_Revelry_Pie = GetString(SI_LUIE_SKILL_REVELRY_PIE_TP), ---------------------------------------------------------------- -- CHAMPION POINT SKILLS --------------------------------------- ---------------------------------------------------------------- -- Craft Champion_Shadowstrike = GetString(SI_LUIE_SKILL_SHADOWSTRIKE_TP), -- Warfare Champion_Enlivening_Overflow = GetString(SI_LUIE_SKILL_ENLIVENING_OVERFLOW_TP), Champion_Foresight = GetString(SI_LUIE_SKILL_FORESIGHT_TP), -- Fitness Champion_Expert_Evasion = GetString(SI_LUIE_SKILL_EXPERT_EVASION_TP), Champion_Winded = GetString(SI_LUIE_SKILL_WINDED_TP), Champion_Unchained = GetString(SI_LUIE_SKILL_UNCHAINED_TP), ---------------------------------------------------------------- -- CONSUMABLES & ITEMS ----------------------------------------- ---------------------------------------------------------------- -- Glyphs Item_Glyph_of_Weakening = GetString(SI_LUIE_SKILL_GLYPH_WEAKENING_TP), -- Crafted Food Food_Crafted_Health = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:68235:309:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), Food_Crafted_Magicka = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:68238:309:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), Food_Crafted_Stamina = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:68241:309:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), Food_Crafted_Health_Magicka = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:68244:310:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), Food_Crafted_Health_Stamina = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:68247:310:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), Food_Crafted_Magicka_Stamina = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:68250:310:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), Food_Crafted_Triple = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:68254:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), Food_Crafted_Orzorgas_Tripe = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:71057:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), Food_Crafted_Orzorgas_Blood_Price = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:71058:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), Food_Crafted_Orzorgas_Smoked_Bear = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:71059:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), Food_Crafted_Deregulated_Mushroom_Stew = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:133554:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), Food_Crafted_Clockwork_Citrus_Filet = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:133556:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), Food_Crafted_Artaeum_Takeaway_Broth = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:139018:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), Food_Crafted_Artaeum_Pickled_Fish_Bowl = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:139016:6:1:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_ARTAEUM_BOWL), GetString(SI_LUIE_SKILL_ADD_TOOLTIP_ARTAEUM_BOWL)), Food_Crafted_Candied_Jesters_Coins = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:120762:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), Food_Crafted_Lava_Foot_Soup = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:112425:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), Food_Crafted_Alcaire_Festival_Sword_Pie = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:112439:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), Food_Crafted_Pumpkin_Snack_Skewer = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:87686:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), Food_Crafted_Crunchy_Spider_Skewer = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:87691:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), Food_Crafted_Frosted_Brains = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:87696:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), Food_Crafted_Jagga_Drenched_Mud_Ball = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:112434:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), Food_Crafted_Jewels_of_Misrule = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:120764:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), Food_Crafted_Rajhins_Sugar_Claws = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:112438:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), Food_Crafted_Sweet_Sanguine_Apples = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:87685:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), Food_Crafted_Bewitched_Sugar_Skulls = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:153629:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), -- Vendor / Cyrodiil Food Food_Vendor_Health = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:57637:308:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h')), Food_Vendor_Magicka = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:57631:134:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h')), Food_Vendor_Stamina = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:71252:308:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h')), Food_Cyrodilic_Field_Bar = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:71076:368:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h')), Food_Cyrodilic_Field_Tack = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:71074:368:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h')), Food_Cyrodilic_Field_Treat = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:71075:368:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h')), -- Crown Food Food_Crown_Crate_Meal = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:94437:123:1:0:0:0:0:0:0:0:0:0:0:0:1:0:0:1:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), Food_Crown_Meal = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:64711:123:1:0:0:0:0:0:0:0:0:0:0:0:1:0:0:1:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), Food_Crown_Vigorous_Ragout = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:124676:123:1:0:0:0:0:0:0:0:0:0:0:0:1:0:0:1:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), Food_Crown_Combat_Mystics_Stew = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:124675:123:1:0:0:0:0:0:0:0:0:0:0:0:1:0:0:1:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), -- Crafted Drink Drink_Crafted_Health = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:68257:309:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), Drink_Crafted_Magicka = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:68260:309:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), Drink_Crafted_Stamina = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:68263:309:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), Drink_Crafted_Health_Magicka = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:68266:310:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), Drink_Crafted_Health_Stamina = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:68269:310:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), Drink_Crafted_Magicka_Stamina = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:68272:310:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), Drink_Crafted_Triple = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:68276:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), Drink_Crafted_Orzorgas_Red_Frothgar = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:71056:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), Drink_Crafted_Spring_Loaded_Infusion = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:133555:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), Drink_Crafted_Dubious_Camoran_Throne = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:120763:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), Drink_Crafted_Witchmothers_Potent_Brew = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:87697:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), Drink_Crafted_Bowl_of_Peeled_Eyeballs = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:87687:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), Drink_Crafted_Witchmothers_Party_Punch = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:87690:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), Drink_Crafted_Ghastly_Eye_Bowl = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:87695:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), Drink_Crafted_Bergama_Warning_Fire = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:112426:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), Drink_Crafted_Betnikh_Twice_Spiked_Ale = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:112433:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_TWICE_SPIKED_ALE), ""), Drink_Crafted_Snow_Bear_Glow_Wine = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:112440:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), Drink_Double_Bloody_Mara = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:87699:6:1:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_DOUBLE_BLOODY_MARA), ""), Drink_Hissmir = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:101879:6:1:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_HISSMIR), GetString(SI_LUIE_SKILL_ADD_TOOLTIP_HISSMIR)), Drink_Crafted_Disastrously_Bloody_Mara = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:153625:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_DISASTROUSLY_BLOODY), ""), Drink_Crafted_Pack_Leaders_Bone_Broth = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:153627:311:50:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_PACK_LEADERS_BROTH), GetString(SI_LUIE_SKILL_ADD_TOOLTIP_PACK_LEADERS_BROTH)), -- Vendor / Cyrodiil Drink Drink_Vendor_Health = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:71249:134:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h')), Drink_Vendor_Magicka = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:71250:308:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h')), Drink_Vendor_Stamina = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:71251:134:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h')), Drink_Cyrodilic_Field_Tonic = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:71079:368:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h')), Drink_Cyrodilic_Field_Brew = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:71077:368:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h')), Drink_Cyrodilic_Field_Tea = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:71078:368:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h')), -- Crown Drink Drink_Crown_Crate_Drink = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:94438:123:1:0:0:0:0:0:0:0:0:0:0:0:1:0:0:1:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), Drink_Crown_Drink = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:64712:123:1:0:0:0:0:0:0:0:0:0:0:0:1:0:0:1:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), Drink_Crown_Stout_Magic_Liqueur = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:124677:123:1:0:0:0:0:0:0:0:0:0:0:0:1:0:0:1:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), Drink_Crown_Vigorous_Tincture = string.gsub(select(3, GetItemLinkOnUseAbilityInfo('|H1:item:124678:123:1:0:0:0:0:0:0:0:0:0:0:0:1:0:0:1:0:0:0|h|h')), GetString(SI_LUIE_SKILL_REMOVE_TOOLTIP_SCALED_LEVEL), ""), -- Experience Experience_Psijic_Ambrosia = zo_strformat(GetString(SI_LUIE_SKILL_EXPERIENCE_HALF_HOUR_TP),"50"), Experience_Aetherial_Ambrosia = zo_strformat(GetString(SI_LUIE_SKILL_EXPERIENCE_HALF_HOUR_TP), "100"), Experience_Mythic_Aetherial_Ambrosia = zo_strformat(GetString(SI_LUIE_SKILL_EXPERIENCE_HALF_HOUR_TP), "150"), Experience_Crown = zo_strformat(GetString(SI_LUIE_SKILL_EXPERIENCE_HOUR_TP), "50", "2"), Experience_Gold_Coast = zo_strformat(GetString(SI_LUIE_SKILL_EXPERIENCE_HOUR_TP), "50", "1"), Experience_Major_Gold_Coast = zo_strformat(GetString(SI_LUIE_SKILL_EXPERIENCE_HOUR_TP), "100", "1"), Experience_Grand_Gold_Coast = zo_strformat(GetString(SI_LUIE_SKILL_EXPERIENCE_HOUR_TP), "150", "1"), Experience_Seasonal_Event = zo_strformat(GetString(SI_LUIE_SKILL_EXPERIENCE_HOUR_TP), "100", "2"), Experience_Seasonal_Pelinal = zo_strformat(GetString(SI_LUIE_SKILL_EXPERIENCE_PELINAL), "2"), -- Alliance War Experience Experience_Alliance_War_Skill = zo_strformat(GetString(SI_LUIE_SKILL_EXPERIENCE_ALLIANCE_HOUR_TP), "50"), Experience_Alliance_War_Skill_Major = zo_strformat(GetString(SI_LUIE_SKILL_EXPERIENCE_ALLIANCE_HOUR_TP), "100"), Experience_Alliance_War_Skill_Grand = zo_strformat(GetString(SI_LUIE_SKILL_EXPERIENCE_ALLIANCE_HOUR_TP), "150"), Experience_Colovian_War_Torte = zo_strformat(GetString(SI_LUIE_SKILL_EXPERIENCE_ALLIANCE_HALF_HOUR_TP), "50"), -- Colovian War Torte Experience_Molten_War_Torte = zo_strformat(GetString(SI_LUIE_SKILL_EXPERIENCE_ALLIANCE_HALF_HOUR_TP), "100"), -- Molten War Torte Experience_White_Gold_War_Torte = zo_strformat(GetString(SI_LUIE_SKILL_EXPERIENCE_ALLIANCE_HALF_HOUR_TP), "150"), -- White-Gold War Torte -- Mementos Memento_Witchmothers_Brew = GetAbilityDescription(84369), Memento_Almalexias_Lantern = select(2, GetCollectibleInfo(341)), Memento_Bonesnap_Binding_Talisman = select(2, GetCollectibleInfo(348)), Memento_Discourse_Amaranthine = select(2, GetCollectibleInfo(345)), Memento_Fetish_of_Anger = select(2, GetCollectibleInfo(347)), Memento_Finvirs_Trinket = select(2, GetCollectibleInfo(336)), Memento_Mystery_Meat = select(2, GetCollectibleInfo(342)), Memento_Sanguines_Goblet = select(2, GetCollectibleInfo(338)), Memento_Token_of_Root_Sunder = select(2, GetCollectibleInfo(349)), -- Crown Mementos Memento_Storm_Atronach_Aura = select(2, GetCollectibleInfo(594)), Memento_Storm_Atronach_Transform = select(2, GetCollectibleInfo(596)), Memento_Wild_Hunt_Leaf_Dance_Aura = select(2, GetCollectibleInfo(760)), Memento_Wild_Hunt_Transform = select(2, GetCollectibleInfo(759)), Memento_Floral_Swirl_Aura = select(2, GetCollectibleInfo(758)), Memento_Dwarven_Puzzle_Orb = select(2, GetCollectibleInfo(1181)), Memento_Dwarven_Tonal_Forks = select(2, GetCollectibleInfo(1182)), Memento_Dwemervamidium_Mirage = select(2, GetCollectibleInfo(1183)), Memento_Swarm_of_Crows = select(2, GetCollectibleInfo(1384)), Memento_Ghost_Lantern = select(2, GetCollectibleInfo(5212)), ---------------------------------------------------------------- -- ITEM SETS -------------------------------------------------- ---------------------------------------------------------------- -- Weapon Sets Set_Asylum_Dual_Wield = GetString(SI_LUIE_SKILL_SET_ASYLUM_DUAL_WIELD), Set_Asylum_Bow = GetString(SI_LUIE_SKILL_SET_ASYLUM_BOW), Set_Asylum_Destruction_Staff = GetString(SI_LUIE_SKILL_SET_ASYLUM_DESTRUCTION_STAFF), Set_Aslyum_Restoration_Staff = GetString(SI_LUIE_SKILL_SET_ASYLUM_RESTORATION_STAFF), Set_Maelstrom_DW = GetString(SI_LUIE_SKILL_SET_MAELSTROM_DW), Set_Maelstrom_1H = GetString(SI_LUIE_SKILL_SET_MAELSTROM_1H), Set_Maelstrom_2H = string.gsub(zo_strformat(GetString(SI_LUIE_SKILL_GENERIC_DOT_TP), 6, 1), "SUBSTRING", BleedDamage), Set_Master_1H = GetString(SI_LUIE_SKILL_SET_MASTER_1H), Set_Master_Resto = GetString(SI_LUIE_SKILL_SET_MASTER_RESTO), Set_Blackrose_Dual_Wield = GetString(SI_LUIE_SKILL_SET_BLACKROSE_DUAL_WIELD), Set_Blackrose_1H = GetString(SI_LUIE_SKILL_SET_BLACKROSE_1H_TP), Set_Blackrose_Destro_Staff = GetString(SI_LUIE_SKILL_SET_BLACKROSE_DESTRO_TP), Set_Vateshran_2H = GetString(SI_LUIE_SKILL_SET_VATESHRAN_2H_TP), Set_Vateshran_1H = GetString(SI_LUIE_SKILL_SET_VATESHRAN_1H_TP), Set_Vateshran_Destro_Staff = GetString(SI_LUIE_SKILL_SET_VATESHRAN_DESTRO_TP), Set_Vateshran_Destro_Staff_Buff = GetString(SI_LUIE_SKILL_SET_VATESHRAN_DESTRO_BUFF_TP), Set_Vateshran_Resto_Staff = GetString(SI_LUIE_SKILL_SET_VATESHRAN_RESTO_TP), -- Monster Helms Set_Balorgh = GetString(SI_LUIE_SKILL_SET_BALORGH), Set_Bogdan_the_Nightflame = GetString(SI_LUIE_SKILL_SET_BOGDAN), Set_Domihaus_Stamina_Buff = GetString(SI_LUIE_SKILL_SET_DOMIHAUS_BUFF_STAMINA), Set_Domihaus_Stamina_Damage = GetString(SI_LUIE_SKILL_SET_DOMIHAUS_DAMAGE_STAMINA), Set_Domihaus_Magicka_Buff = GetString(SI_LUIE_SKILL_SET_DOMIHAUS_BUFF_MAGICKA), Set_Domihaus_Magicka_Damage = GetString(SI_LUIE_SKILL_SET_DOMIHAUS_DAMAGE_MAGICKA), Set_Earthgore = GetString(SI_LUIE_SKILL_SET_EARTHGORE), Set_Grothdarr = GetString(SI_LUIE_SKILL_SET_GROTHDARR), Set_Iceheart = GetString(SI_LUIE_SKILL_SET_ICEHEART), Set_Ilambris = GetString(SI_LUIE_SKILL_SET_ILAMBRIS), Set_Ilambris_Ground = GetString(SI_LUIE_SKILL_SET_ILAMBRIS_GROUND), Set_Lord_Warden_Buff = GetString(SI_LUIE_SKILL_SET_LORD_WARDEN_BUFF), Set_Malubeth_Damage = GetString(SI_LUIE_SKILL_SET_MALUBETH_DAMAGE), Set_Malubeth_Heal = GetString(SI_LUIE_SKILL_SET_MALUBETH_HEAL), Set_Maw_of_the_Infernal = GetString(SI_LUIE_SKILL_SET_MAW_OF_THE_INFERNAL), Set_Molag_Kena_Overkill = GetString(SI_LUIE_SKILL_SET_MOLAG_KENA_OVERKILL_TP), Set_Molag_Kena = GetString(SI_LUIE_SKILL_SET_MOLAG_KENA_TP), Set_Pirate_Skeleton = GetString(SI_LUIE_SKILL_SET_PIRATE_SKELETON_TP), Set_Sentinel_of_Rkugamz = GetString(SI_LUIE_SKILL_SET_SENTINEL_OF_REKUGAMZ_TP), Set_Sentinel_of_Rkugamz_Ground = GetString(SI_LUIE_SKILL_SET_SENTINEL_OF_REKUGAMZ_GROUND_TP), Set_Shadowrend = GetString(SI_LUIE_SKILL_SET_SHADOWREND_TP), Set_Spawn_of_Mephala = GetString(SI_LUIE_SKILL_SET_SPAWN_OF_MEPHALA_TP), Set_Stormfist = GetString(SI_LUIE_SKILL_SET_STORMFIST_TP), Skill_Stormfist_Ground = GetString(SI_LUIE_SKILL_STORMFIST_GROUND_TP), Set_Engine_Guardian_Stamina = zo_strformat(GetString(SI_LUIE_SKILL_SET_ENGINE_GUARDIAN), GetString(SI_COMBATMECHANICTYPE6)), Set_Engine_Guardian_Magicka = zo_strformat(GetString(SI_LUIE_SKILL_SET_ENGINE_GUARDIAN), GetString(SI_COMBATMECHANICTYPE0)), Set_The_Troll_King = GetString(SI_LUIE_SKILL_SET_THE_TROLL_KING_TP), Set_Thurvokun = GetString(SI_LUIE_SKILL_SET_THURVOKUN_TP), Set_Thurvokun_Ground = GetString(SI_LUIE_SKILL_SET_THURVOKUN_GROUND_TP), Set_Zaan = GetString(SI_LUIE_SKILL_SET_ZAAN_TP), Set_Energy_Charge = GetString(SI_LUIE_SKILL_SET_ENERGY_CHARGE_TP), Set_Meridias_Favor = GetString(SI_LUIE_SKILL_SET_MERIDIAS_FAVOR_TP), Set_Aurorans_Thunder = GetString(SI_LUIE_SKILL_SET_AURORANS_THUNDER_TP), Set_Tzogvins_Warband = GetString(SI_LUIE_SKILL_SET_TZOGVINS_WARBAND_TP), Set_Frozen_Watcher = GetString(SI_LUIE_SKILL_SET_FROZEN_WATCHER_TP), Set_Maarselok = GetString(SI_LUIE_SKILL_MAARSELOK_TP), Set_Nerieneth = GetString(SI_LUIE_SKILL_NERIENETH_TP), Set_Sellistrix = GetString(SI_LUIE_SKILL_SELLISTRIX_TP), Set_Kjalnars_Nightmare = GetString(SI_LUIE_SKILL_KJALNARS_NIGHTMARE_TP), Set_Meridias_Blessed_Armor = GetString(SI_LUIE_SKILL_SET_MERIDIAS_BLESSED_ARMOR_TP), Set_Stone_Husk_DOT = GetString(SI_LUIE_SET_STONE_HUSK_DOT_TP), Set_Stone_Husk_Drain = GetString(SI_LUIE_SET_STONE_HUSK_HUSK_DRAIN_TP), Set_Stone_Husk_Buff = GetString(SI_LUEI_SET_STONE_HUSK_BUFF_TP), -- Mythic Items Set_Snow_Treaders = GetString(SI_LUIE_SKILL_SET_SNOW_TREADERS_TP), Set_Bloodlords_Embrace = GetString(SI_LUIE_SKILL_SET_BLOODLORDS_EMBRACE_TP), Set_Thrassian_Stranglers = GetString(SI_LUIE_SKILL_SET_THRASSIAN_STANGLERS_TP), -- Crafted Sets Set_Clever_Alchemist = GetString(SI_LUIE_SKILL_SET_CLEVER_ALCHEMIST), Set_Eternal_Hunt = GetString(SI_LUIE_SKILL_SET_ETERNAL_HUNT), Set_Morkuldin = GetString(SI_LUIE_SKILL_SET_MORKULDIN), Set_Tavas_Favor = GetString(SI_LUIE_SKILL_SET_TAVAS_FAVOR), Set_Varens_Legacy = GetString(SI_LUIE_SKILL_SET_VARENS_LEGACY), Set_Mechanical_Acuity = GetString(SI_LUIE_SKILL_SET_MECHANICAL_ACUITY), --Set_Senche_Rahts_Grit = GetString(SI_LUIE_SKILL_SET_SENCHE_RAHTS_GRIT), Set_Vastaries_Tutelage = GetString(SI_LUIE_SKILL_SET_VASTARIES_TUTELAGE), Set_Eye_of_Nahviintaas = GetString(SI_LUIE_SKILL_SET_EYE_OF_NAHVIINTAAS), Set_Seventh_Legion = GetString(SI_LUIE_SKILL_SET_SEVENTH_LEGION_TP), Set_Sloads = GetString(SI_LUIE_SKILL_SET_SLOADS_TP), Set_Grave_Stake_Collector = GetString(SI_LUIE_SKILL_SET_GRAVE_STAKE_COLLECTOR_TP), Set_Coldharbours_Favorite_Heal = GetString(SI_LUIE_SKILL_SET_COLDHARBOURS_FAVORITE_HEAL_TP), Set_Coldharbours_Favorite_Damage = GetString(SI_LUIE_SKILL_SET_COLDHARBOURS_FAVORITE_DAMAGE_TP), Set_Stuhns_Favor = GetString(SI_LUIE_SKILL_SET_STUHNS_FAVOR_TP), Set_Dragons_Appetite = GetString(SI_LUIE_SKILL_SET_DRAGONS_APPETITE_TP), Set_Voidcaller = GetString(SI_LUIE_SET_VOIDCALLER_TP), -- Light / Medium / Heavy Sets Set_Queens_Elegance_LA = GetString(SI_LUIE_SKILL_SET_ELEGANCE_LA_TP), Set_Queens_Elegance_HA = GetString(SI_LUIE_SKILL_SET_ELEGANCE_HA_TP), Set_Bahrahas_Curse = GetString(SI_LUIE_SKILL_SET_BAHRAHAS_CURSE_TP), Skill_Bahrahas_Curse_Ground = GetString(SI_LUIE_SKILL_BAHRAHAS_CURSE_GROUND_TP), Set_Briarheart = GetString(SI_LUIE_SKILL_SET_BRIARHEART_TP), Set_Unfathomable_Darknesss = GetString(SI_LUIE_SKILL_SET_UNFATHOMABLE_DARKNESS_TP), Set_Storm_Knight = GetString(SI_LUIE_SKILL_SET_STORM_KNIGHT_TP), Set_Draugrs_Rest = GetString(SI_LUIE_SKILL_SET_DRAUGRS_REST_TP), Set_Overwhelming_Surge = GetString(SI_LUIE_SKILL_SET_OVERWHELMING_SURGE_TP), Set_Noble_Duelist = GetString(SI_LUIE_SKILL_SET_NOBLE_DUELIST_TP), Set_Plague_Slinger = GetString(SI_LUIE_SKILL_PLAGUE_SLINGER_TP), Set_Storm_Master = GetString(SI_LUIE_SKILL_SET_STORM_MASTER_TP), Set_Blood_Moon_Scent = GetString(SI_LUIE_SKILL_SET_BLOOD_SCENT), Set_Blood_Moon_Frenzied = GetString(SI_LUIE_SKILL_SET_FRENIZED), Set_Ebon_Armory = GetString(SI_LUIE_SKILL_SET_EBON_ARMORY), Set_Embershield = GetString(SI_LUIE_SKILL_SET_EMBERSHIELD), Set_Hagravens_Garden = GetString(SI_LUIE_SKILL_SET_HAGRAVENS_GARDEN), Set_Jolting_Arms = GetString(SI_LUIE_SKILL_SET_JOLTING_ARMS), Set_Leeching_Plate = GetString(SI_LUIE_SKILL_SET_LEECHING_PLATE_TP), Skill_Leeching_Plate_Ground = GetString(SI_LUIE_SKILL_LEECHING_PLATE_GROUND_TP), Set_Hand_of_Mephala = GetString(SI_LUIE_SKILL_SET_HAND_OF_MEPHALA_TP), Skill_Hand_of_Mephala_Ground = GetString(SI_LUIE_SKILL_HAND_OF_MEPHALA_GROUND_TP), Set_Hollowfang_Thirst = GetString(SI_LUIE_SKILL_HOLLOWFANG_THIRST_TP), Set_Touch_of_Zen = GetString(SI_LUIE_SKILL_TOUCH_OF_ZEN_TP), Set_Blight_Seed = GetString(SI_LUIE_SKILL_SET_BLIGHT_SEED_TP), Set_Renalds_Resolve = GetString(SI_LUIE_SKILL_RENALDS_RESOLVE_TP), Set_Dragons_Defilement = GetString(SI_LUIE_SKILL_DRAGONS_DEFILEMENT_TP), Set_Dragonguard_Tactics = GetString(SI_LUIE_SKILL_DRAGONGUARD_TACTICS_TP), Set_Senchals_Duty = GetString(SI_LUIE_SKILL_SENCHALS_DUTY_TP), Set_Trinimacs_Valor = GetString(SI_LUIE_SKILL_TRINIMACS_VALOR_TP), Set_Hatchlings_Shell = GetString(SI_LUIE_SKILL_SET_HATCHLINGS_SHELL_TP), Set_Dunerippers_Scales = GetString(SI_LUIE_SKILL_SET_DUNERIPPERS_SCALES_TP), Set_Hitis_Hearth = GetString(SI_LUIE_SET_HITIS_HEARTH_TP), Set_Hitis_Hearth_Ground = GetString(SI_LUIE_SET_HITIS_HEARTH_GROUND_TP), Set_Draugrkin = GetString(SI_LUIE_SET_DRAUGRKIN_TP), Set_Aegis_Caller = GetString(SI_LUIE_SET_AEGIS_CALLER_TP), Set_Grave_Guardian = GetString(SI_LUIE_SET_GRAVE_GUARDIAN_TP), Set_Winters_Respite = GetString(SI_LUIE_SET_WINTERS_RESPITE_TP), Set_Hunters_Venom = GetString(SI_LUIE_SET_HUNTERS_VENOM_TP), Set_Sheer_Venom = GetString(SI_LUIE_SET_SHEER_VENOM_TP), Set_Elemental_Catalyst = GetString(SI_LUIE_SET_ELEMENTAL_CATALYST_TP), Set_Crimson_Twilight = GetString(SI_LUIE_SET_CRIMSON_TWILIGHT_TP), Set_Ironblood = GetString(SI_LUIE_SKILL_SET_IRONBLOOD_TP), -- Trial Sets Set_Berserking_Warrior = GetString(SI_LUIE_SKILL_SET_BERSERKING_WARRIOR_TP), Set_Destructive_Mage = GetString(SI_LUIE_SKILL_SET_DESTRUCTIVE_MAGE_TP), Set_Twice_Fanged_Serpent = GetString(SI_LUIE_SKILL_SET_TWICE_FANGED_SERPENT_TP), Set_Lunar_Bastion = GetString(SI_LUIE_SKILL_SET_LUNAR_BASTION_TP), Set_Lunar_Bastion_Ground = GetString(SI_LUIE_SKILL_SET_LUNAR_BASTION_GROUND_TP), Set_Vestment_of_Olorime = GetString(SI_LUIE_SKILL_SET_VESTMENT_OF_OLORIME_TP), Set_Mantle_of_Siroria = GetString(SI_LUIE_SKILL_SET_MANTLE_OF_SIRORIA_TP), Set_Sirorias_Boon = GetString(SI_LUIE_SKILL_SET_SIRORIAS_BOON_TP), Set_Relequen = GetString(SI_LUIE_SKILL_SET_RELEQUEN_TP), Set_Kynes_Blessing = GetString(SI_LUIE_SKILL_SET_KYNES_BLESSING_TP), --Set_Kynes_Blessing_Ground = GetString(SI_LUIE_SKILL_SET_KYNES_BLESSING_GROUND_TP), Set_Giants_Endurance = GetString(SI_LUIE_SKILL_SET_GIANTS_ENDURANCE_TP), Set_Giants_Might = GetString(SI_LUIE_SKILL_SET_GIANTS_MIGHT_TP), Set_Roar_of_Alkosh = GetString(SI_LUIE_SKILL_ROAR_OF_ALKOSH_TP), -- Battleground Sets Set_Vanguards_Challenge = GetString(SI_LUIE_SKILL_SET_VANGUARDS_CHALLENGE_TP), --Set_Cowards_Gear = GetString(SI_LUIE_SKILL_SET_COWARDS_GEAR_TP), -- Imperial City Sets Set_Galerions_Revenge = GetString(SI_LUIE_SKILL_SET_GALERIONS_REVENGE_TP), Set_Vicecanon_of_Venom = GetString(SI_LUIE_SKILL_SET_VICECANON_OF_VENOM_TP), -- Cyrodiil Sets Set_Soldier_of_Anguish = GetString(SI_LUIE_SKILL_SET_SOLDIER_OF_ANGUISH_TP), Set_Spell_Strategist = GetString(SI_LUIE_SKILL_SET_SPELL_STRATEGIST_TP), Set_Glorious_Defender = GetString(SI_LUIE_SKILL_SET_GLORIOUS_DEFENDER_TP), Set_Light_of_Cyrodiil = GetString(SI_LUIE_SKILL_SET_CYRODIILS_LIGHT_TP), Set_Morag_Tong = GetString(SI_LUIE_SKILL_SET_MORAG_TONG_TP), Set_Warriors_Fury = GetString(SI_LUIE_SKILL_SET_WARRIORS_FURY_TP), Set_Robes_of_Transmutation = GetString(SI_LUIE_SKILL_SET_ROBES_OF_TRANSMUTATION_TP), Set_Beckoning_Steel = GetString(SI_LUIE_SKILL_SET_BECKONING_STEEL_TP), Set_Sentry = GetString(SI_LUIE_SKILL_SET_SENTRY_TP), Set_Ravager = GetString(SI_LUIE_SKILL_SET_RAVAGER_TP), -- Arena Sets Set_Succession_Flame = zo_strformat(GetString(SI_LUIE_SKILL_SET_SUCCESSION_TP), FlameDamage), Set_Succession_Shock = zo_strformat(GetString(SI_LUIE_SKILL_SET_SUCCESSION_TP), ShockDamage), Set_Succession_Frost = zo_strformat(GetString(SI_LUIE_SKILL_SET_SUCCESSION_TP), FrostDamage), Set_Para_Bellum = GetString(SI_LUIE_SKILL_SET_PARA_BELLUM_TP), Set_Hex_Siphon = GetString(SI_LUIE_SKILL_SET_HEX_SIPHON_TP), Set_Explosive_Rebuke = GetString(SI_LUIE_SKILL_SET_EXPLOSIVE_REBUKE_TP), -- Disguises Disguise_Generic = GetString(SI_LUIE_SKILL_DISGUISE_GENERIC_TP), Disguise_Kollopi_Essence = GetString(SI_LUIE_SKILL_DISGUISE_KOLLOPI_ESSENCE_TP), Disguise_Sea_Viper_Armor = GetString(SI_LUIE_SKILL_DISGUISE_SEA_VIPER_ARMOR_TP), Disguise_Vulkhel_Guard = GetString(SI_LUIE_SKILL_DISGUISE_VULKHEL_GUARD_TP), Disguise_Phaer_Mercenary = GetString(SI_LUIE_SKILL_DISGUISE_PHAER_MERCENARY_TP), Disguise_Quendeluun = GetString(SI_LUIE_SKILL_DISGUISE_QUENDELUUN_TP), Disguise_Seadrake = GetString(SI_LUIE_SKILL_DISGUISE_SEADRAKE_TP), Disguise_Servants_Robes = GetString(SI_LUIE_SKILL_DISGUISE_SERVANTS_ROBES_TP), Disguise_Bloodthorn = GetString(SI_LUIE_SKILL_DISGUISE_BLOODTHORN_DISGUISE_TP), ---------------------------------------------------------------- -- CLASS SKILLS ------------------------------------------------ ---------------------------------------------------------------- -- Dragonknight Skill_Seething_Fury = GetString(SI_LUIE_SKILL_SEETHING_FURY_TP), Skill_Venomous_Claw = GetString(SI_LUIE_SKILL_VENOMOUS_CLAW_TP), Skill_Burning_Embers = GetString(SI_LUIE_SKILL_BURNING_EMBERS_TP), Skill_Engulfing_Flames = GetString(SI_LUIE_SKILL_ENGULFING_FLAMES_TP), Skill_Engulfing_Flames_Dummy = GetString(SI_LUIE_SKILL_ENGULFING_FLAMES_DUMMY_TP), Skill_Inferno_Active = GetString(SI_LUIE_SKILL_INFERNO_TP), Skill_Flames_of_Oblivion_Active = GetString(SI_LUIE_SKILL_FLAMES_OF_OBLIVION_TP), Skill_Cauterize_Active = GetString(SI_LUIE_SKILL_CAUTERIZE_TP), Skill_Dragonknight_Standard = GetString(SI_LUIE_SKILL_DRAGONKNIGHT_STANDARD_TP), Skill_Dragonknight_Standard_Ground = GetString(SI_LUIE_SKILL_DRAGONKNIGHT_STANDARD_GROUND_TP), Skill_Standard_of_Might_Buff = GetString(SI_LUIE_SKILL_STANDARD_OF_MIGHT_TP), Skill_Shifting_Standard = GetString(SI_LUIE_SKILL_SHIFTING_STANDARD_TP), Skill_Spiked_Armor = GetString(SI_LUIE_SKILL_SPIKED_ARMOR_TP), Skill_Hardened_Armor = GetString(SI_LUIE_SKILL_HARDENED_ARMOR_TP), Skill_Burning_Talons = GetString(SI_LUIE_SKILL_BURNING_TALONS_TP), Skill_Protective_Scale = GetString(SI_LUIE_SKILL_PROTECTIVE_SCALE_TP), Skill_Protective_Plate = GetString(SI_LUIE_SKILL_PROTECTIVE_PLATE_TP), Skill_Dragon_Fire_Scale = GetString(SI_LUIE_SKILL_DRAGON_FIRE_SCALE_TP), Skill_Inhale = GetString(SI_LUIE_SKILL_INHALE_TP), Skill_Draw_Essence = GetString(SI_LUIE_SKILL_DRAW_ESSENCE_TP), Skill_Molten_Armaments = GetString(SI_LUIE_SKILL_MOLTEN_ARMAMENTS_TP), Skill_Petrify_Stun = GetString(SI_LUIE_SKILL_PETRIFY_STUN_TP), Skill_Fossilize_Stun = GetString(SI_LUIE_SKILL_FOSSILIZE_STUN_TP), Skill_Shattering_Rocks_Stun = GetString(SI_LUIE_SKILL_SHATTERING_ROCKS_STUN_TP), Skill_Ash_Cloud = GetString(SI_LUIE_SKILL_ASH_CLOUD_TP), Skill_Eruption = GetString(SI_LUIE_SKILL_ERUPTION_TP), Skill_Magma_Armor = GetString(SI_LUIE_SKILL_MAGMA_ARMOR_TP), Skill_Corrosive_Armor = GetString(SI_LUIE_SKILL_CORROSIVE_ARMOR_TP), Skill_Stonefist = GetString(SI_LUIE_SKILL_STONEFIST_TP), Skill_Stone_Giant = GetString(SI_LUIE_SKILL_STONE_GIANT_TP), Skill_Stagger = GetString(SI_LUIE_SKILL_STAGGER_TP), -- Nightblade Skill_Mark_Target = GetString(SI_LUIE_SKILL_MARK_TARGET_TP), Skill_Reapers_Mark = GetString(SI_LUIE_SKILL_REAPERS_MARK_TP), Skill_Death_Stroke_Debuff = GetString(SI_LUIE_SKILL_DEATH_STROKE_DEBUFF), Skill_Incapacitating_Strike = GetString(SI_LUIE_SKILL_INCAPACITATING_STRIKE), Skill_Shadowy_Disguise = GetString(SI_LUIE_SKILL_SHADOWY_DISGUISE_TP), Skill_Grim_Focus = GetString(SI_LUIE_SKILL_GRIM_FOCUS_TP), Skill_Relentless_Focus = GetString(SI_LUIE_SKILL_RELENTLESS_FOCUS_TP), Skill_Merciless_Resolve = GetString(SI_LUIE_SKILL_MERCILESS_RESOLVE_TP), Skill_Grim_Focus_Defense = GetString(SI_LUIE_SKILL_GRIM_FOCUS_DEFENSE_TP), Skill_Path_of_Darkness = GetString(SI_LUIE_SKILL_PATH_OF_DARKNESS_TP), Skill_Twisting_Path = GetString(SI_LUIE_SKILL_TWISTING_PATH_TP), Skill_Refreshing_Path = GetString(SI_LUIE_SKILL_REFRESHING_PATH_TP), Skill_Manifestation_of_Terror = GetString(SI_LUIE_SKILL_MANIFESTATION_OF_TERROR_TP), Skill_Summon_Shade = GetString(SI_LUIE_SKILL_SUMMON_SHADE_TP), Skill_Dark_Shade = GetString(SI_LUIE_SKILL_DARK_SHADE_TP), Skill_Shadow_Image = GetString(SI_LUIE_SKILL_SHADOW_IMAGE_TP), Skill_Hidden_Refresh = GetString(SI_LUIE_SKILL_HIDDEN_REFRESH_TP), Skill_Consuming_Darkness = GetString(SI_LUIE_SKILL_CONSUMING_DARKNESS_TP), Skill_Bolstering_Darkness = GetString(SI_LUIE_SKILL_BOLSTERING_DARKNESS_TP), Skill_Veil_of_Blades = GetString(SI_LUIE_SKILL_VEIL_OF_BLADES_TP), Skill_Malevolent_Offering = GetString(SI_LUIE_SKILL_MALEVOLENT_OFFERING_TP), Skill_Cripple = GetString(SI_LUIE_SKILL_CRIPPLE_TP), Skill_Crippling_Grasp = GetString(SI_LUIE_SKILL_CRIPPLING_GRASP_TP), Skill_Debilitate = GetString(SI_LUIE_SKILL_DEBILITATE_TP), Skill_Siphoning_Strikes = GetString(SI_LUIE_SKILL_SIPHONING_STRIKES_TP), Skill_Leeching_Strikes = GetString(SI_LUIE_SKILL_LEECHING_STRIKES_TP), Skill_Siphoning_Attacks = GetString(SI_LUIE_SKILL_SIPHONING_ATTACKS_TP), Skill_Soul_Tether = GetString(SI_LUIE_SKILL_SOUL_TETHER_TP), -- Sorcerer Skill_Persistence_Rank_1 = zo_strformat(GetString(SI_LUIE_SKILL_PERSISTENCE), 7), Skill_Persistence_Rank_2 = zo_strformat(GetString(SI_LUIE_SKILL_PERSISTENCE), 15), Skill_Crystal_Weaver = GetString(SI_LUIE_SKILL_CRYSTAL_WEAVER_TP), Skill_Crystal_Weapon = GetString(SI_LUIE_SKILL_CRYSTAL_WEAPON_TP), Skill_Crystal_Fragments = GetString(SI_LUIE_SKILL_CRYSTAL_FRAGMENTS_TP), Skill_Shattering_Prison = GetString(SI_LUIE_SKILL_SHATTERING_PRISON_TP), Skill_Rune_Cage = GetString(SI_LUIE_SKILL_RUNE_CAGE_TP), Skill_Defensive_Rune = GetString(SI_LUIE_SKILL_DEFENSIVE_RUNE_TP), Skill_Daedric_Mines = GetString(SI_LUIE_SKILL_DAEDRIC_MINES_TP), Skill_Negate_Magic = GetString(SI_LUIE_SKILL_NEGATE_MAGIC_TP), Skill_Suppression_Field = GetString(SI_LUIE_SKILL_SUPPRESSION_FIELD_TP), Skill_Absorption_Field = GetString(SI_LUIE_SKILL_ABSORPTION_FIELD_TP), Skill_Unstable_Familiar = GetString(SI_LUIE_SKILL_UNSTABLE_FAMILIAR_TP), Skill_Unstable_Clannfear = GetString(SI_LUIE_SKILL_UNSTABLE_CLANNFEAR_TP), Skill_Volatile_Familiar = GetString(SI_LUIE_SKILL_VOLATILE_FAMILIAR_TP), Skill_Familiar_Damage_Pulse = GetString(SI_LUIE_SKILL_FAMILIAR_DAMAGE_PULSE_TP), Skill_Familiar_Damage_Pulse_Self = GetString(SI_LUIE_SKILL_FAMILIAR_DAMAGE_PULSE_SELF_TP), Skill_Familiar_Stun_Pulse = GetString(SI_LUIE_SKILL_FAMILIAR_DAMAGE_PULSE_STUN_TP), Skill_Familiar_Stun_Pulse_Self = GetString(SI_LUIE_SKILL_FAMILIAR_DAMAGE_PULSE_SELF_STUN_TP), Skill_Daedric_Curse = GetString(SI_LUIE_SKILL_DAEDRIC_CURSE_TP), Skill_Daedric_Prey = GetString(SI_LUIE_SKILL_DAEDRIC_PREY_TP), Skill_Haunting_Curse = GetString(SI_LUIE_SKILL_HAUNTING_CURSE_TP), Skill_Winged_Twilight = GetString(SI_LUIE_SKILL_WINGED_TWILIGHT_TP), Skill_Twilight_Tormentor = GetString(SI_LUIE_SKILL_TWILIGHT_TORMENTOR_TP), Skill_Twilight_Matriarch = GetString(SI_LUIE_SKILL_TWILIGHT_MATRIARCH_TP), Skill_Tormentor_Damage_Boost = GetString(SI_LUIE_SKILL_TORMENTOR_DAMAGE_BOOST_TP), Skill_Tormentor_Damage_Boost_Self = GetString(SI_LUIE_SKILL_TORMENTOR_DAMAGE_BOOST_SELF_TP), Skill_Bound_Armor = GetString(SI_LUIE_SKILL_BOUND_ARMOR_TP), Skill_Bound_Armaments_Skill = GetString(SI_LUIE_SKILL_BOUND_ARMAMENTS_SKILL_TP), Skill_Bound_Armaments_Stack = GetString(SI_LUIE_SKILL_BOUND_ARMAMENTS_STACK_TP), Skill_Storm_Atronach = GetString(SI_LUIE_SKILL_STORM_ATRONACH_TP), Skill_Charged_Atronach = GetString(SI_LUIE_SKILL_CHARGED_ATRONACH_TP), Skill_Mages_Fury = GetString(SI_LUIE_SKILL_MAGES_FURY_TP), Skill_Endless_Fury = GetString(SI_LUIE_SKILL_ENDLESS_FURY_TP), Skill_Lightning_Form = GetString(SI_LUIE_SKILL_LIGHTNING_FORM_TP), Skill_Hurricane = GetString(SI_LUIE_SKILL_HURRICANE_TP), Skill_Lightning_Splash = GetString(SI_LUIE_SKILL_LIGHTNING_SPLASH_TP), Skill_Surge = GetString(SI_LUIE_SKILL_SURGE_TP), Skill_Power_Surge = GetString(SI_LUIE_SKILL_POWER_SURGE_TP), Skill_Bolt_Escape_Fatigue = GetString(SI_LUIE_SKILL_BOLT_ESCAPE_FATIGUE_TP), Skill_Intercept = GetString(SI_LUIE_SKILL_INTERCEPT_TP), Skill_Overload = GetString(SI_LUIE_SKILL_OVERLOAD_TP), Skill_Energy_Overload = GetString(SI_LUIE_SKILL_ENERGY_OVERLOAD_TP), Skill_Suppression_Field_Stun = GetString(SI_LUIE_SKILL_SUPPRESSION_FIELD_STUN), Skill_Suppression_Field_Silence = GetString(SI_LUIE_SKILL_SUPPRESSION_FIELD_SILENCE), -- Templar Skill_Spear_Shards = GetString(SI_LUIE_SKILL_SPEAR_SHARDS_TP), Skill_Luminous_Shards = GetString(SI_LUIE_SKILL_LUMINOUS_SHARDS_TP), Skill_Blazing_Shield = GetString(SI_LUIE_SKILL_BLAZING_SHIELD_TP), Skill_Radial_Sweep = GetString(SI_LUIE_SKILL_RADIAL_SWEEP_TP), Skill_Sun_Fire = GetString(SI_LUIE_SKILL_SUN_FIRE_TP), Skill_Sun_Fire_Snare = GetString(SI_LUIE_SKILL_SUN_FIRE_SNARE_TP), Skill_Solar_Barrage = GetString(SI_LUIE_SKILL_SOLAR_BARRAGE_TP), Skill_Backlash = GetString(SI_LUIE_SKILL_BACKLASH_TP), Skill_Purifying_Light = GetString(SI_LUIE_SKILL_PURIFYING_LIGHT_TP), Skill_Power_of_the_Light = GetString(SI_LUIE_SKILL_POWER_OF_THE_LIGHT_TP), Skill_Eclipse = GetString(SI_LUIE_SKILL_ECLIPSE_TP), Skill_Living_Dark = GetString(SI_LUIE_SKILL_LIVING_DARK_TP), Skill_Unstable_Core = GetString(SI_LUIE_SKILL_UNSTABLE_CORE_TP), Skill_Radiant_Destruction = GetString(SI_LUIE_SKILL_RADIANT_DESTRUCTION_TP), Skill_Nova = GetString(SI_LUIE_SKILL_NOVA_TP), Skill_Nova_Ground = GetString(SI_LUIE_SKILL_NOVA_GROUND_TP), Skill_Solar_Prison = GetString(SI_LUIE_SKILL_SOLAR_PRISON_TP), Skill_Solar_Disturbance = GetString(SI_LUIE_SKILL_SOLAR_DISTURBANCE_TP), Skill_Solar_Disturbance_Ground = GetString(SI_LUIE_SKILL_SOLAR_DISTURBANCE_GROUND_TP), Skill_Cleansing_Ritual = GetString(SI_LUIE_SKILL_CLEANSING_RITUAL_TP), Skill_Ritual_of_Retribution = GetString(SI_LUIE_SKILL_CLEANSING_RITUAL_RETRIBUTION_TP), Skill_Rite_of_Passage = GetString(SI_LUIE_SKILL_RITE_OF_PASSAGE_TP), Skill_Sacred_Ground = GetString(SI_LUIE_SKILL_SACRED_GROUND_TP), Skill_Rune_Focus = GetString(SI_LUIE_SKILL_RUNE_FOCUS_TP), Skill_Channeled_Focus = GetString(SI_LUIE_SKILL_CHANNELED_FOCUS_TP), Skill_Restoring_Focus = GetString(SI_LUIE_SKILL_RESTORING_FOCUS_TP), -- Warden Skill_Cutting_Dive = GetString(SI_LUIE_SKILL_CUTTING_DIVE_TP), Skill_Scorch = GetString(SI_LUIE_SKILL_SCORCH_TP), Skill_Subterranean_Assault = GetString(SI_LUIE_SKILL_SUB_ASSAULT_TP), Skill_Subterranean_Assault_Echo = GetString(SI_LUIE_SKILL_SUB_ASSAULT_ECHO_TP), Skill_Deep_Fissure = GetString(SI_LUIE_SKILL_DEEP_FISSURE_TP), Skill_Fetcher_Infection_Bonus = GetString(SI_LUIE_SKILL_FETCHER_INFECTION_BONUS_DAMAGE_TP), Skill_Growing_Swarm = GetString(SI_LUIE_SKILL_GROWING_SWARM_TP), Skill_Betty_Netch = GetString(SI_LUIE_SKILL_BETTY_NETCH_TP), Skill_Blue_Betty = GetString(SI_LUIE_SKILL_BLUE_BETTY_TP), Skill_Bull_Netch = GetString(SI_LUIE_SKILL_BULL_NETCH_TP), Skill_Feral_Guardian = GetString(SI_LUIE_SKILL_FERAL_GUARDIAN_TP), Skill_Eternal_Guardian = GetString(SI_LUIE_SKILL_ETERNAL_GUARDIAN_TP), Skill_Wild_Guardian = GetString(SI_LUIE_SKILL_WILD_GUARDIAN_TP), Skill_Guardians_Wrath = GetString(SI_LUIE_SKILL_GUARDIANS_WRATH_TP), Skill_Guardians_Savagery = GetString(SI_LUIE_SKILL_GUARDIANS_SAVAGERY_TP), Skill_Eternal_Guardian_Cooldown = GetString(SI_LUIE_SKILL_ETERNAL_GUARDIAN_COOLDOWN_TP), Skill_Healing_Seed = GetString(SI_LUIE_SKILL_HEALING_SEED_TP), Skill_Budding_Seeds = GetString(SI_LUIE_SKILL_BUDDING_SEEDS_TP), Skill_Corrupting_Pollen = GetString(SI_LUIE_SKILL_CORRUPTING_POLLEN_TP), Skill_Living_Vines = GetString(SI_LUIE_SKILL_LIVING_VINES_TP), Skill_Leeching_Vines = GetString(SI_LUIE_SKILL_LEECHING_VINES_TP), Skill_Living_Trellis = GetString(SI_LUIE_SKILL_LIVING_TRELLIS_TP), Skill_Lotus_Flower = GetString(SI_LUIE_SKILL_LOTUS_FLOWER_TP), Skill_Natures_Grasp = GetString(SI_LUIE_SKILL_NATURES_GRASP_TP), Skill_Natures_Grasp_Self = GetString(SI_LUIE_SKILL_NATURES_GRASP_SELF_TP), Skill_Secluded_Grove = GetString(SI_LUIE_SKILL_SECLUDED_GROVE_TP), Skill_Healing_Thicket = GetString(SI_LUIE_SKILL_HEALING_THICKET_TP), Skill_Impaling_Shards = GetString(SI_LUIE_SKILL_IMPALING_SHARDS_TP), Skill_Crystallized_Shield = GetString(SI_LUIE_SKILL_CRYSTALLIZED_SHIELD_TP), Skill_Crystallized_Slab = GetString(SI_LUIE_SKILL_CRYSTALLIZED_SLAB_TP), Skill_Shimmering_Shield = GetString(SI_LUIE_SKILL_SHIMMERING_SHIELD_TP), Skill_Frozen_Gate = GetString(SI_LUIE_SKILL_FROZEN_GATE_TP), Skill_Frozen_Device = GetString(SI_LUIE_SKILL_FROZEN_DEVICE_TP), Skill_Frozen_Retreat = GetString(SI_LUIE_SKILL_FROZEN_RETREAT_TP), Skill_Sleet_Storm = GetString(SI_LUIE_SKILL_SLEET_STORM_TP), Skill_Permafrost = GetString(SI_LUIE_SKILL_PERMAFROST_TP), Skill_Permafrost_Ground = GetString(SI_LUIE_SKILL_PERMAFROST_GROUND_TP), Skill_Arctic_Wind = GetString(SI_LUIE_SKILL_ARCTIC_WIND_TP), Skill_Arctic_Blast = GetString(SI_LUIE_SKILL_ARCTIC_BLAST_TP), Skill_Arctic_Blast_Ground = GetString(SI_LUIE_SKILL_ARCTIC_BLAST_GROUND_TP), -- Necromancer Skill_Reusable_Parts_Rank_1 = zo_strformat(GetString(SI_LUIE_SKILL_REUSABLE_PARTS_TP), 25), Skill_Reusable_Parts_Rank_2 = zo_strformat(GetString(SI_LUIE_SKILL_REUSABLE_PARTS_TP), 50), Skill_Flame_Skull = GetString(SI_LUIE_SKILL_FLAME_SKULL_TP), Skill_Ricochet_Skull = GetString(SI_LUIE_SKILL_RICOCHET_SKULL_TP), Skill_Blastbones = GetString(SI_LUIE_SKILL_BLASTBONES_TP), Skill_Blighted_Blastbones = GetString(SI_LUIE_SKILL_BLIGHTED_BLASTBONES_TP), Skill_Stalking_Blastbones = GetString(SI_LUIE_SKILL_STALKING_BLASTBONES_TP), Skill_Boneyard = GetString(SI_LUIE_SKILL_BONEYARD_TP), Skill_Unnerving_Boneyard = GetString(SI_LUIE_SKILL_UNNERVING_BONEYARD_TP), Skill_Unnerving_Boneyard_Ground = GetString(SI_LUIE_SKILL_UNNERVING_BONEYARD_GROUND_TP), Skill_Avid_Boneyard = GetString(SI_LUIE_SKILL_AVID_BONEYARD_TP), Skill_Skeletal_Mage = GetString(SI_LUIE_SKILL_SKELETAL_MAGE_TP), Skill_Skeletal_Archer = GetString(SI_LUIE_SKILL_SKELETAL_ARCHER_TP), Skill_Skeletal_Arcanist = GetString(SI_LUIE_SKILL_SKELETAL_ARCANIST_TP), Skill_Shocking_Siphon = GetString(SI_LUIE_SKILL_SHOCKING_SIPHON_TP), Skill_Shocking_Siphon_Ground = GetString(SI_LUIE_SKILL_SHOCKING_SIPHON_GROUND_TP), Skill_Detonating_Siphon = GetString(SI_LUIE_SKILL_DETONATING_SIPHON_TP), Skill_Detonating_Siphon_Ground = GetString(SI_LUIE_SKILL_DETONATING_SIPHON_GROUND_TP), Skill_Mystic_Siphon = GetString(SI_LUIE_SKILL_MYSTIC_SIPHON_TP), Skill_Frozen_Colossus = GetString(SI_LUIE_SKILL_FROZEN_COLOSSUS_TP), Skill_Frozen_Colossus_Ground = GetString(SI_LUIE_SKILL_FROZEN_COLOSSUS_GROUND_TP), Skill_Pestilent_Colossus = GetString(SI_LUIE_SKILL_PESTILENT_COLOSSUS_TP), Skill_Pestilent_Colossus_Ground = GetString(SI_LUIE_SKILL_PESTILENT_COLOSSUS_GROUND_TP), Skill_Glacial_Colossus = GetString(SI_LUIE_SKILL_GLACIAL_COLOSSUS_TP), Skill_Glacial_Colossus_Ground = GetString(SI_LUIE_SKILL_GLACIAL_COLOSSUS_GROUND_TP), Skill_Ruinous_Scythe = GetString(SI_LUIE_SKILL_RUINOUS_SCYTHE_TP), Skill_Bone_Totem = GetString(SI_LUIE_SKILL_BONE_TOTEM_TP), Skill_Agony_Totem = GetString(SI_LUIE_SKILL_AGONY_TOTEM_TP), Skill_Bone_Goliath_Transformation = GetString(SI_LUIE_SKILL_BONE_GOLIATH_TRANSFORMATION_TP), Skill_Pummeling_Goliath = GetString(SI_LUIE_SKILL_PUMMELING_GOLIATH_TP), Skill_Ravenous_Goliath = GetString(SI_LUIE_SKILL_RAVENOUS_GOLIATH_TP), Skill_Ravenous_Goliath_Ground = GetString(SI_LUIE_SKILL_RAVENOUS_GOLIATH_GROUND_TP), Skill_Resistant_Flesh = GetString(SI_LUIE_SKILL_RESISTANT_FLESH_TP), Skill_Life_amid_Death = GetString(SI_LUIE_SKILL_LIFE_AMID_DEATH_TP), Skill_Spirit_Mender = GetString(SI_LUIE_SKILL_SPIRIT_MENDER_TP), Skill_Spirit_Guardian = GetString(SI_LUIE_SKILL_SPIRIT_GUARDIAN_TP), Skill_Restoring_Tether = GetString(SI_LUIE_SKILL_RESTORING_TETHER_TP), Skill_Braided_Tether = GetString(SI_LUIE_SKILL_BRAIDED_TETHER_TP), Skill_Mortal_Coil = GetString(SI_LUIE_SKILL_MORTAL_COIL_TP), Skill_Bone_Armor = GetString(SI_LUIE_SKILL_BONE_ARMOR_TP), Skill_Beckoning_Armor = GetString(SI_LUIE_SKILL_BECKONING_ARMOR_TP), Skill_Summoners_Armor = GetString(SI_LUIE_SKILL_SUMMONERS_ARMOR_TP), ---------------------------------------------------------------- -- WEAPON SKILLS ----------------------------------------------- ---------------------------------------------------------------- -- Two Handed Skill_Follow_Up_Rank_1 = zo_strformat(GetString(SI_LUIE_SKILL_FOLLOW_UP_TP), 5), Skill_Follow_Up_Rank_2 = zo_strformat(GetString(SI_LUIE_SKILL_FOLLOW_UP_TP), 10), Skill_Battle_Rush_Rank_1 = zo_strformat(GetString(SI_LUIE_SKILL_BATTLE_RUSH_TP), 15), Skill_Battle_Rush_Rank_2 = zo_strformat(GetString(SI_LUIE_SKILL_BATTLE_RUSH_TP), 30), Skill_Rally = GetString(SI_LUIE_SKILL_RALLY_TP), Skill_Stampede = GetString(SI_LUIE_SKILL_STAMPEDE_TP), Skill_Berserker_Strike = GetString(SI_LUIE_SKILL_BERSERKER_STRIKE_TP), Skill_Onslaught = GetString(SI_LUIE_SKILL_ONSLAUGHT_TP), Skill_Berserker_Rage = GetString(SI_LUIE_SKILL_BERSERKER_RAGE_TP), -- Sword and Shield Skill_Defensive_Posture = GetString(SI_LUIE_SKILL_DEFENSIVE_POSTURE_TP), Skill_Absorb_Missile = GetString(SI_LUIE_SKILL_ABSORB_MISSILE_TP), Skill_Reverberating_Bash = GetString(SI_LUIE_SKILL_REVEBERATING_BASH_TP), Skill_Resentment = GetString(SI_LUIE_SKILL_RESENTMENT_TP), Skill_Shield_Wall = GetString(SI_LUIE_SKILL_SHIELD_WALL_TP), Skill_Spell_Wall = GetString(SI_LUIE_SKILL_SPELL_WALL_TP), Skill_Shield_Discipline = GetString(SI_LUIE_SKILL_SHIELD_DISCIPLINE_TP), -- Dual Wield Skill_Rending_Slashes = GetString(SI_LUIE_SKILL_RENDING_SLASHES_TP), Skill_Blood_Craze = GetString(SI_LUIE_SKILL_BLOOD_CRAZE_TP), Skill_Blood_Craze_Heal = GetString(SI_LUIE_SKILL_BLOOD_CRAZE_HEAL_TP), Skill_Blade_Cloak = GetString(SI_LUIE_SKILL_BLADE_CLOAK_TP), Skill_Lacerate = GetString(SI_LUIE_SKILL_LACERATE_TP), Skill_Thrive_in_Chaos = GetString(SI_LUIE_SKILL_THRIVE_IN_CHAOS_TP), Skill_Flying_Blade = GetString(SI_LUIE_SKILL_FLYING_BLADE_TP), -- Bow Skill_Hawk_Eye_Rank_1 = zo_strformat(GetString(SI_LUIE_SKILL_HAWK_EYE_TP), 2), Skill_Hawk_Eye_Rank_2 = zo_strformat(GetString(SI_LUIE_SKILL_HAWK_EYE_TP), 5), Skill_Volley = GetString(SI_LUIE_SKILL_VOLLEY_TP), Skill_Bombard = GetString(SI_LUIE_SKILL_BOMBARD_TP), Skill_Poison_Injection = GetString(SI_LUIE_SKILL_POISON_INJECTION_TP), Skill_Ballista = GetString(SI_LUIE_SKILL_BALLISTA_TP), -- Destruction Staff Skill_Heavy_Attack_Lightning = GetString(SI_LUIE_HEAVY_ATTACK_LIGHTNING_STAFF_TP), Skill_Heavy_Attack_Restoration = GetString(SI_LUIE_HEAVY_ATTACK_RESTORATION_STAFF_TP), Skill_Wall_of_Elements_Fire = GetString(SI_LUIE_SKILL_WOE_FIRE_TP), Skill_Wall_of_Elements_Frost = GetString(SI_LUIE_SKILL_WOE_FROST_TP), Skill_Wall_of_Elements_Shock = GetString(SI_LUIE_SKILL_WOE_SHOCK_TP), Skill_U_Wall_of_Elements_Fire = GetString(SI_LUIE_SKILL_UWOE_FIRE_TP), Skill_U_Wall_of_Elements_Frost = GetString(SI_LUIE_SKILL_UWOE_FROST_TP), Skill_U_Wall_of_Elements_Shock = GetString(SI_LUIE_SKILL_UWOE_SHOCK_TP), Skill_Wall_of_Elements_Ground_Fire = GetString(SI_LUIE_SKILL_WALL_OF_ELEMENTS_GROUND_FIRE), Skill_Wall_of_Elements_Ground_Shock = GetString(SI_LUIE_SKILL_WALL_OF_ELEMENTS_GROUND_SHOCK), Skill_Wall_of_Elements_Ground_Frost = GetString(SI_LUIE_SKILL_WALL_OF_ELEMENTS_GROUND_FROST), Skill_U_Wall_of_Elements_Ground_Fire = GetString(SI_LUIE_SKILL_U_WALL_OF_ELEMENTS_GROUND_FIRE), Skill_U_Wall_of_Elements_Ground_Shock = GetString(SI_LUIE_SKILL_U_WALL_OF_ELEMENTS_GROUND_SHOCK), Skill_U_Wall_of_Elements_Ground_Frost = GetString(SI_LUIE_SKILL_U_WALL_OF_ELEMENTS_GROUND_FROST), Skill_Wall_of_Elements_Frost_Shield = GetString(SI_LUIE_SKILL_WOE_FROST_SHIELD_TP), Skill_Flame_Touch = GetString(SI_LUIE_SKILL_FLAME_TOUCH_TP), Skill_Flame_Touch_Alt = GetString(SI_LUIE_SKILL_FLAME_TOUCH_ALT_TP), Skill_Shock_Touch = GetString(SI_LUIE_SKILL_SHOCK_TOUCH_TP), Skill_Shock_Touch_Alt = GetString(SI_LUIE_SKILL_SHOCK_TOUCH_ALT_TP), Skill_Frost_Touch = GetString(SI_LUIE_SKILL_FROST_TOUCH_TP), Skill_Frost_Touch_Alt = GetString(SI_LUIE_SKILL_FROST_TOUCH_ALT_TP), Skill_Frost_Clench = GetString(SI_LUIE_SKILL_FROST_CLENCH_TP), Skill_Frost_Clench_Alt = GetString(SI_LUIE_SKILL_FROST_CLENCH_ALT_TP), Skill_Fire_Storm = zo_strformat(GetString(SI_LUIE_SKILL_ELEMENTAL_STORM_TP), GetString(SI_DAMAGETYPE3)), Skill_Thunder_Storm = zo_strformat(GetString(SI_LUIE_SKILL_ELEMENTAL_STORM_TP), GetString(SI_DAMAGETYPE4)), Skill_Ice_Storm = zo_strformat(GetString(SI_LUIE_SKILL_ELEMENTAL_STORM_TP), GetString(SI_DAMAGETYPE6)), Skill_Fiery_Rage = zo_strformat(GetString(SI_LUIE_SKILL_ELEMENTAL_STORM_TP), GetString(SI_DAMAGETYPE3)), Skill_Icy_Rage = GetString(SI_LUIE_SKILL_ICY_RAGE_TP), Skill_Eye_of_Flame = zo_strformat(GetString(SI_LUIE_SKILL_EYE_OF_THE_STORM_TP), GetString(SI_DAMAGETYPE3)), Skill_Eye_of_Lightning = zo_strformat(GetString(SI_LUIE_SKILL_EYE_OF_THE_STORM_TP), GetString(SI_DAMAGETYPE4)), Skill_Eye_of_Frost = zo_strformat(GetString(SI_LUIE_SKILL_EYE_OF_THE_STORM_TP), GetString(SI_DAMAGETYPE6)), -- Restoration Staff Skill_Grand_Healing = GetString(SI_LUIE_SKILL_GRAND_HEALING), Skill_Healing_Springs = GetString(SI_LUIE_SKILL_HEALING_SPRINGS), Skill_Healing_Ward = GetString(SI_LUIE_SKILL_HEALING_WARD), Skill_Lights_Champion = GetString(SI_LUIE_SKILL_LIGHTS_CHAMPION), ---------------------------------------------------------------- -- ARMOR SKILLS ------------------------------------------------ ---------------------------------------------------------------- -- Light Armor Skill_Harness_Magicka = GetString(SI_LUIE_SKILL_HARNESS_MAGICKA), -- Medium Armor Skill_Elude = GetString(SI_LUIE_SKILL_ELUDE), -- Heavy Armor Skill_Unstoppable = GetString(SI_LUIE_SKILL_UNSTOPPABLE), ---------------------------------------------------------------- -- WORLD SKILLS ------------------------------------------------ ---------------------------------------------------------------- -- Soul Magic Skill_Soul_Summons = GetString(SI_LUIE_SKILL_SOUL_SUMMONS_TP), Skill_Soul_Trap_Magic = string.gsub(GetString(SI_LUIE_SKILL_SOUL_TRAP), "SUBSTRING", MagicDamage), Skill_Soul_Trap_Physical = string.gsub(GetString(SI_LUIE_SKILL_SOUL_TRAP), "SUBSTRING", PhysicalDamage), Skill_Consuming_Trap_Magic = string.gsub(GetString(SI_LUIE_SKILL_CONSUMING_TRAP), "SUBSTRING", MagicDamage), Skill_Consuming_Trap_Physical = string.gsub(GetString(SI_LUIE_SKILL_CONSUMING_TRAP), "SUBSTRING", PhysicalDamage), -- Vampire Skill_Noxiphilic_Sanguivoria = GetString(SI_LUIE_SKILL_NOXIPHILIC_SANGUIVORIA_TP), Skill_Vampirism_Stage_1 = GetString(SI_LUIE_SKILL_VAMPIRISM_STAGE1_TP), Skill_Vampirism_Stage_2 = GetString(SI_LUIE_SKILL_VAMPIRISM_STAGE2_TP), Skill_Vampirism_Stage_3 = GetString(SI_LUIE_SKILL_VAMPIRISM_STAGE3_TP), Skill_Vampirism_Stage_4 = GetString(SI_LUIE_SKILL_VAMPIRISM_STAGE4_TP), Skill_Vampirism_Stage_5 = GetString(SI_LUIE_SKILL_VAMPIRISM_STAGE5_TP), Skill_Blood_Ritual = GetString(SI_LUIE_SKILL_BLOOD_RITUAL_TP), Skill_Unnatural_Movement = GetString(SI_LUIE_SKILL_UNNATURAL_MOVEMENT_TP), Skill_Blood_for_Blood = GetString(SI_LUIE_SKILL_BLOOD_FOR_BLOOD_TP), Skill_Blood_Frenzy = GetString(SI_LUIE_SKILL_BLOOD_FRENZY_TP), Skill_Simmering_Frenzy = GetString(SI_LUIE_SKILL_SIMMERING_FRENZY_TP), Skill_Sated_Fury = GetString(SI_LUIE_SKILL_SATED_FURY_TP), Skill_Vampiric_Drain = GetString(SI_LUIE_SKILL_VAMPIRIC_DRAIN_TP), Skill_Drain_Vigor = GetString(SI_LUIE_SKILL_DRAIN_VIGOR_TP), Skill_Exhilarating_Drain = GetString(SI_LUIE_SKILL_EXHILARATING_DRAIN_TP), Skill_Stupefy = GetString(SI_LUIE_SKILL_STUPEFY_TP), Skill_Mist_Form = GetString(SI_LUIE_SKILL_MIST_FORM_TP), Skill_Blood_Mist = GetString(SI_LUIE_SKILL_BLOOD_MIST_TP), Skill_Blood_Scion = GetString(SI_LUIE_SKILL_BLOOD_SCION_TP), Skill_Swarming_Scion = GetString(SI_LUIE_SKILL_SWARMING_SCION_TP), -- Werewolf Skill_Sanies_Lupinus = GetString(SI_LUIE_SKILL_SANIES_LUPINUS_TP), Skill_Lycanthrophy = GetString(SI_LUIE_SKILL_LYCANTHROPHY_TP), Skill_Blood_Moon = GetString(SI_LUIE_SKILL_BLOOD_MOON_TP), Skill_Claws_of_Life = GetString(SI_LUIE_SKILL_CLAWS_OF_LIFE_TP), Skill_Werewolf_Transformation = GetString(SI_LUIE_SKILL_WEREWOLF_TRANSFORMATION_TP), Skill_Werewolf_Berserker = GetString(SI_LUIE_SKILL_WEREWOLF_BERSERKER_TP), Skill_Pack_Leader = GetString(SI_LUIE_SKILL_PACK_LEADER_TP), Skill_Carnage_Proc = GetString(SI_LUIE_SKILL_CARNAGE_PROC_TP), Skill_Carnage = GetString(SI_LUIE_SKILL_CARNAGE_TP), Skill_Feral_Carnage = GetString(SI_LUIE_SKILL_FERAL_CARNAGE_TP), Skill_Brutal_Carnage_Buff = GetString(SI_LUIE_SKILL_BRUTAL_CARNAGE_BUFF_TP), Skill_Hircines_Fortitude = GetString(SI_LUIE_SKILL_HIRCINES_FORTITUDE_TP), Skill_Ferocious_Roar = GetString(SI_LUIE_SKILL_FEROCIOUS_ROAR_TP), ---------------------------------------------------------------- -- GUILDS SKILLS ------------------------------------------------ ---------------------------------------------------------------- -- Fighters Guild Skill_Circle_of_Protection = GetString(SI_LUIE_SKILL_CIRCLE_OF_PROTECTION_TP), Skill_Ring_of_Preservation = GetString(SI_LUIE_SKILL_RING_OF_PRESERVATION_TP), Skill_Expert_Hunter = GetString(SI_LUIE_SKILL_EXPERT_HUNTER_TP), Skill_Evil_Hunter = GetString(SI_LUIE_SKILL_EVIL_HUNTER_TP), Skill_Trap_Beast = GetString(SI_LUIE_SKILL_TRAP_BEAST_TP), Skill_Trap_Beast_Debuff = GetString(SI_LUIE_SKILL_TRAP_BEAST_DEBUFF_TP), Skill_Barbed_Trap = GetString(SI_LUIE_SKILL_BARBED_TRAP_TP), Skill_Barbed_Trap_Debuff = GetString(SI_LUIE_SKILL_BARBED_TRAP_DEBUFF_TP), Skill_Flawless_Dawnbreaker = GetString(SI_LUIE_SKILL_FLAWLESS_DAWNBREAKER_TP), Skill_Dawnbreaker_of_Smiting = GetString(SI_LUIE_SKILL_DAWNBREAKER_OF_SMITING_TP), -- Mages Guild Skill_Radiant_Magelight = GetString(SI_LUIE_SKILL_RADIANT_MAGELIGHT_TP), Skill_Structured_Entropy = GetString(SI_LUIE_SKILL_STRUCTURED_ENTROPY_TP), Skill_Fire_Rune = GetString(SI_LUIE_SKILL_FIRE_RUNE_TP), Skill_Volcanic_Rune = GetString(SI_LUIE_SKILL_VOLCANIC_RUNE_TP), Skill_Scalding_Rune = zo_strformat(GetString(SI_LUIE_SKILL_SCALDING_RUNE_TP), (GetAbilityDuration(40468) / 1000) + GetNumPassiveSkillRanks(GetSkillLineIndicesFromSkillLineId(44), select(2, GetSkillLineIndicesFromSkillLineId(44)), 8) ), Skill_Equilibrium = GetString(SI_LUIE_SKILL_EQUILIBRIUM_TP), Skill_Spell_Symmetry = GetString(SI_LUIE_SKILL_SPELL_SYMMETRY_TP), Skill_Meteor = GetString(SI_LUIE_SKILL_METEOR_TP), Skill_Ice_Comet = GetString(SI_LUIE_SKILL_ICE_COMET_TP), -- Psijic Order Skill_Spell_Orb = GetString(SI_LUIE_SKILL_SPELL_ORB_TP), Skill_Concentrated_Barrier = GetString(SI_LUIE_SKILL_CONCENTRATED_BARRIER_TP), Skill_Time_Stop = GetString(SI_LUIE_SKILL_TIME_STOP_TP), Skill_Borrowed_Time = GetString(SI_LUIE_SKILL_TIME_BORROWED_TIME_TP), Skill_Borrowed_Time_Stun = GetString(SI_LUIE_SKILL_TIME_BORROWED_TIME_STUN_TP), Skill_Time_Freeze = GetString(SI_LUIE_SKILL_TIME_FREEZE_TP), Skill_Time_Freeze_Ground = GetString(SI_LUIE_SKILL_TIME_FREEZE_GROUND_TP), Skill_Imbue_Weapon = GetString(SI_LUIE_SKILL_IMBUE_WEAPON_TP), Skill_Elemental_Weapon = GetString(SI_LUIE_SKILL_ELEMENTAL_WEAPON_TP), Skill_Crushing_Weapon = GetString(SI_LUIE_SKILL_CRUSHING_WEAPON_TP), Skill_Mend_Wounds = GetString(SI_LUIE_SKILL_MEND_WOUNDS_TP), Skill_Mend_Spirit = GetString(SI_LUIE_SKILL_MEND_SPIRIT_TP), Skill_Symbiosis = GetString(SI_LUIE_SKILL_SYMBIOSIS_TP), Skill_Mend_Wounds_Channel = GetString(SI_LUIE_SKILL_MEND_WOUNDS_CHANNEL_TP), Skill_Meditate = GetString(SI_LUIE_SKILL_MEDITATE_TP), Skill_Introspection = GetString(SI_LUIE_SKILL_INTROSPECTION_TP), -- Undaunted Skill_Blood_Altar = GetString(SI_LUIE_SKILL_BLOOD_ALTAR_TP), Skill_Overflowing_Altar = GetString(SI_LUIE_SKILL_OVERFLOWING_ALTAR_TP), Skill_Trapping_Webs = GetString(SI_LUIE_SKILL_TRAPPING_WEBS_TP), Skill_Shadow_Silk = GetString(SI_LUIE_SKILL_SHADOW_SILK_TP), Skill_Tangling_Webs = GetString(SI_LUIE_SKILL_TANGLING_WEBS_TP), Skill_Trapping_Webs_Snare = GetString(SI_LUIE_SKILL_TRAPPING_WEBS_SNARE_TP), Skill_Spawn_Broodling = GetString(SI_LUIE_SKILL_SPAWN_BROODLING_TP), Skill_Inner_Beast = GetString(SI_LUIE_SKILL_INNER_BEAST_TP), Skill_Radiate = GetString(SI_LUIE_SKILL_RADIATE_TP), Skill_Bone_Shield = GetString(SI_LUIE_SKILL_BONE_SHIELD_TP), Skill_Spiked_Bone_Shield = GetString(SI_LUIE_SKILL_SPIKED_BONE_SHIELD_TP), Skill_Bone_Surge = GetString(SI_LUIE_SKILL_BONE_SURGE_TP), Skill_Necrotic_Orb = GetString(SI_LUIE_SKILL_NECROTIC_ORB_TP), Skill_Energy_Orb = GetString(SI_LUIE_SKILL_ENERGY_ORB_TP), ---------------------------------------------------------------- -- ALLIANCE WAR SKILLS ----------------------------------------- ---------------------------------------------------------------- -- Assault Skill_Continuous_Attack_Rank_1 = GetString(SI_LUIE_SKILL_CONTINUOUS_ATTACK_RANK_1_TP), Skill_Continuous_Attack_Rank_2 = GetString(SI_LUIE_SKILL_CONTINUOUS_ATTACK_RANK_2_TP), Skill_Retreating_Maneuver = GetString(SI_LUIE_SKILL_RETREATING_MANEUEVER_TP), Skill_Caltrops = GetString(SI_LUIE_SKILL_CALTROPS_TP), Skill_Anti_Cavalry_Caltrops = GetString(SI_LUIE_SKILL_ANTI_CAVALRY_CALTROPS_TP), Skill_Anti_Cavalry_Caltrops_Debuff = GetString(SI_LUIE_SKILL_ANTI_CAVALRY_CALTROPS_DEBUFF_TP), Skill_Razor_Caltrops = GetString(SI_LUIE_SKILL_RAZOR_CALTROPS_TP), Skill_Razor_Caltrops_Debuff = GetString(SI_LUIE_SKILL_RAZOR_CALTROPS_DEBUFF_TP), Skill_Magicka_Detonation = GetString(SI_LUIE_SKILL_MAGICKA_DETONATION_TP), Skill_Inevitable_Detonation = GetString(SI_LUIE_SKILL_INEVITABLE_DETONATION_TP), Skill_Proximity_Detonation = GetString(SI_LUIE_SKILL_PROXIMITY_DETONATION_TP), Skill_War_Horn = GetString(SI_LUIE_SKILL_WAR_HORN_TP), Skill_War_Horn_Dummy = GetString(SI_LUIE_SKILL_WAR_HORN_DUMMY_TP), Skill_Study_Horn = GetString(SI_LUIE_SKILL_STURDY_HORN_TP), -- Support Skill_Siege_Shield = GetString(SI_LUIE_SKILL_SIEGE_SHIELD_TP), Skill_Siege_Shield_Ground = GetString(SI_LUIE_SKILL_SIEGE_SHIELD_GROUND_TP), Skill_Siege_Weapon_Shield = GetString(SI_LUIE_SKILL_SIEGE_WEAPON_SHIELD_TP), Skill_Siege_Weapon_Shield_Ground = GetString(SI_LUIE_SKILL_SIEGE_WEAPON_SHIELD_GROUND_TP), Skill_Propelling_Shield = GetString(SI_LUIE_SKILL_PROPELLING_SHIELD_TP), Skill_Propelling_Shield_Ground = GetString(SI_LUIE_SKILL_PROPELLING_SHIELD_GROUND_TP), Skill_Guard_Self = GetString(SI_LUIE_SKILL_GUARD_SELF_TP), Skill_Guard_Other = GetString(SI_LUIE_SKILL_GUARD_OTHER_TP), Skill_Revealing_Flare = GetString(SI_LUIE_SKILL_REVEALING_FLARE_TP), Skill_Blinding_Flare = GetString(SI_LUIE_SKILL_BLINDING_FLARE_TP), Skill_Replenishing_Barrier = GetString(SI_LUIE_SKILL_REPLENISHING_BARRIER_TP), -- --------------------------------------------------- -- CYRODIIL ------------------------------------------ -- --------------------------------------------------- Skill_AvA_Sanctuary = GetString(SI_LUIE_SKILL_AVA_SANCTUARY_TP), Skill_Lightning_Ballista_Bolt = GetString(SI_LUIE_SKILL_LIGHTNING_BALLISTA_BOLT_TP), Skill_Meatbag_Catapult = GetString(SI_LUIE_SKILL_MEATBAG_CATAPULT_TP), Skill_Meatbag_Catapult_AOE = GetString(SI_LUIE_SKILL_MEATBAG_CATAPULT_AOE_TP), Skill_Meatbag_Catapult_Ground = GetString(SI_LUIE_SKILL_MEATBAG_CATAPULT_GROUND_TP), Skill_Oil_Catapult_Ground = GetString(SI_LUIE_SKILL_OIL_CATAPULT_GROUND_TP), Skill_Scattershot_Catapult_AOE = GetString(SI_LUIE_SKILL_SCATTERSHOT_CATAPULT_AOE_TP), Skill_Scattershot_Catapult_Ground = GetString(SI_LUIE_SKILL_SCATTERSHOT_CATAPULT_GROUND_TP), Skill_Guard_Detection = GetString(SI_LUIE_SKILL_GUARD_DETECTION_TP), Skill_Blessing_of_War = GetString(SI_LUIE_SKILL_BLESSING_OF_WAR_TP), Skill_Home_Keep_Bonus = GetString(SI_LUIE_SKILL_HOME_KEEP_BONUS_TP), Skill_Enemy_Keep_Bonus_I = zo_strformat(GetString(SI_LUIE_SKILL_ENEMY_KEEP_BONUS_TP), 7, 1), Skill_Enemy_Keep_Bonus_II = zo_strformat(GetString(SI_LUIE_SKILL_ENEMY_KEEP_BONUS_TP), 8, 2), Skill_Enemy_Keep_Bonus_III = zo_strformat(GetString(SI_LUIE_SKILL_ENEMY_KEEP_BONUS_TP), 9, 3), Skill_Enemy_Keep_Bonus_IV = zo_strformat(GetString(SI_LUIE_SKILL_ENEMY_KEEP_BONUS_TP), 10, 4), Skill_Enemy_Keep_Bonus_V = zo_strformat(GetString(SI_LUIE_SKILL_ENEMY_KEEP_BONUS_TP), 11, 5), Skill_Enemy_Keep_Bonus_VI = zo_strformat(GetString(SI_LUIE_SKILL_ENEMY_KEEP_BONUS_TP), 12, 6), Skill_Enemy_Keep_Bonus_VII = zo_strformat(GetString(SI_LUIE_SKILL_ENEMY_KEEP_BONUS_TP), 13, 7), Skill_Enemy_Keep_Bonus_VIII = zo_strformat(GetString(SI_LUIE_SKILL_ENEMY_KEEP_BONUS_TP), 14, 8), Skill_Enemy_Keep_Bonus_IX = zo_strformat(GetString(SI_LUIE_SKILL_ENEMY_KEEP_BONUS_TP), 15, 9), Skill_Edge_Keep_Bonus_I = zo_strformat(GetString(SI_LUIE_SKILL_EDGE_KEEP_BONUS_TP), 8), Skill_Edge_Keep_Bonus_II = zo_strformat(GetString(SI_LUIE_SKILL_EDGE_KEEP_BONUS_TP), 16), Skill_Edge_Keep_Bonus_III = zo_strformat(GetString(SI_LUIE_SKILL_EDGE_KEEP_BONUS_TP), 24), Skill_Defensive_Scroll_Bonus_I = zo_strformat(GetString(SI_LUIE_SKILL_DEFENSIVE_SCROLL_BONUS_TP), 2), Skill_Defensive_Scroll_Bonus_II = zo_strformat(GetString(SI_LUIE_SKILL_DEFENSIVE_SCROLL_BONUS_TP), 5), Skill_Offensive_Scroll_Bonus_I = zo_strformat(GetString(SI_LUIE_SKILL_OFFENSIVE_SCROLL_BONUS_TP), 2), Skill_Offensive_Scroll_Bonus_II = zo_strformat(GetString(SI_LUIE_SKILL_OFFENSIVE_SCROLL_BONUS_TP), 5), Skill_Emperorship_Alliance_Bonus = GetString(SI_LUIE_SKILL_EMPERORSHIP_ALLIANCE_BONUS_TP), Skill_Razor_Armor = GetString(SI_LUIE_SKILL_RAZOR_ARMOR_TP), Skill_Unstable_Core_Cyrodiil = GetString(SI_LUIE_SKILL_UNSTABLE_CORE_CYRODIIL_TP), Skill_Shattering_Prison_Cyrodiil = GetString(SI_LUIE_SKILL_SHATTERING_PRISON_CYRODIIL_TP), Skill_Siege_Shield_Cyrodiil = GetString(SI_LUIE_SKILL_SIEGE_SHIELD_CYRODIIL_TP), Skill_Power_Bash_Cyrodiil = GetString(SI_LUIE_SKILL_POWER_BASH_CYRODIIL_TP), Skill_Rune_Focus_Cyrodiil = GetString(SI_LUIE_SKILL_RUNE_FOCUS_CYRODIIL_TP), Skill_Elder_Scroll_Altadoon = zo_strformat(GetString(SI_LUIE_SKILL_ELDER_SCROLL_TP), GetAbilityName(15177)), Skill_Elder_Scroll_Mnem = zo_strformat(GetString(SI_LUIE_SKILL_ELDER_SCROLL_TP), GetAbilityName(15178)), Skill_Elder_Scroll_Ghartok = zo_strformat(GetString(SI_LUIE_SKILL_ELDER_SCROLL_TP), GetAbilityName(22282)), Skill_Elder_Scroll_Chim = zo_strformat(GetString(SI_LUIE_SKILL_ELDER_SCROLL_TP), GetAbilityName(22295)), Skill_Elder_Scroll_Ni_Mohk = zo_strformat(GetString(SI_LUIE_SKILL_ELDER_SCROLL_TP), GetAbilityName(22297)), Skill_Elder_Scroll_Alma_Ruma = zo_strformat(GetString(SI_LUIE_SKILL_ELDER_SCROLL_TP), GetAbilityName(22299)), Skill_Ruinous_Cyclone = GetString(SI_LUIE_SKILL_RUINOUS_CYCLONE), Skill_Wall_of_Souls = GetString(SI_LUIE_SKILL_WALL_OF_SOULS_TP), -- --------------------------------------------------- -- BATTLEGROUNDS ------------------------------------- -- --------------------------------------------------- Skill_Mark_of_the_Worm = GetString(SI_LUIE_SKILL_MARK_OF_THE_WORM_TP), -- --------------------------------------------------- -- TRAPS --------------------------------------------- -- --------------------------------------------------- Skill_Slaughterfish_Attack = GetString(SI_LUIE_SKILL_SLAUGHTERFISH_ATTACK_TP), Skill_Spike_Trap = GetString(SI_LUIE_SKILL_SPIKE_TRAP_TP), Skill_Spike_Trap_Auridon = GetString(SI_LUIE_SKILL_SPIKE_TRAP_AURIDON_TP), Skill_Trap_Static_Pitcher = GetString(SI_LUIE_SKILL_STATIC_PITCHER_TP), Skill_Trap_Stunted_Current = GetString(SI_LUIE_SKILL_STUNTED_CURRENT_TP), ---------------------------------------------------------------- -- NPCS ------------------------------------------------------ ---------------------------------------------------------------- -- Basic / Shared Skill_Backstabber = GetString(SI_LUIE_SKILL_BACKSTABBER_TP), Skill_Recover = GetString(SI_LUIE_SKILL_RECOVER_TP), Skill_Recover_Duel = GetString(SI_LUIE_SKILL_RECOVER_DUEL_TP), -- Animals Skill_Ancient_Skin = zo_strformat(GetString(SI_LUIE_SKILL_HARDENED_CARAPACE_TP), 9), Skill_Weakness_Lion = GetString(SI_LUIE_SKILL_WEAKNESS_LION_TP), Skill_Hardened_Shell = GetString(SI_LUIE_SKILL_HARDENED_SHELL_TP), Skill_Slash_Cliff_Strider = GetString(SI_LUIE_SKILL_SLASH_CLIFF_STRIDER_TP), Skill_Baleful_Call = GetString(SI_LUIE_SKILL_BALEFUL_CALL_TP), -- Human NPCs Skill_Cleave_Stance = GetString(SI_LUIE_SKILL_CLEAVE_STANCE_TP), Skill_Defensive_Ward = GetString(SI_LUIE_SKILL_DEFENSIVE_WARD_TP), Skill_Soul_Tether_NPC = GetString(SI_LUIE_SKILL_SOUL_TETHER_NPC_TP), --Skill_Focused_Healing = GetString(SI_LUIE_SKILL_FOCUSED_HEALING_TP), Skill_Rite_of_Passage_NPC = GetString(SI_LUIE_SKILL_RITE_OF_PASSAGE_NPC_TP), Skill_Throw_Dagger = GetString(SI_LUIE_SKILL_THROW_DAGGER_TP), Skill_Agony = GetString(SI_LUIE_SKILL_AGONY_TP), Skill_Ice_Barrier = GetString(SI_LUIE_SKILL_ICE_BARRIER_TP), Skill_Agonizing_Fury = GetString(SI_LUIE_SKILL_AGONIZING_FURY_TP), Skill_Grasping_Vines = GetString(SI_LUIE_SKILL_GRASPING_VINES_TP), Skill_Retaliation_NPC = GetString(SI_LUIE_SKILL_RETALIATION_NPC_TP), Skill_Briarheart_Resurrection = GetString(SI_LUIE_SKILL_BRIARHEART_RESURRECTION_TP), Skill_Enrage_Devoted = GetString(SI_LUIE_SKILL_ENRAGE_DEVOTED_TP), Skill_Uncanny_Dodge = GetString(SI_LUIE_SKILL_UNCANNY_DODGE_TP), Skill_Block_NPC = GetString(SI_LUIE_SKILL_BLOCK_NPC_TP), Skill_Block_NPC_Theater = GetString(SI_LUIE_SKILL_BLOCK_NPC_THEATER_TP), Skill_Call_Ally = GetString(SI_LUIE_SKILL_CALL_ALLY_TP), Skill_Feral_Guardian_NPC = GetString(SI_LUIE_SKILL_FERAL_GUARDIAN_NPC_TP), Skill_Basilisk_Powder = GetString(SI_LUIE_SKILL_BASILISK_POWDER_TP), Skill_Shadowy_Duplicate = GetString(SI_LUIE_SKILL_SHADOWY_DUPLICATE_TP), Skill_Shadowy_Barrier = GetString(SI_LUIE_SKILL_SHADOWY_BARRIER_TP), Skill_Fiendish_Healing = GetString(SI_LUIE_SKILL_FIENDISH_HEALING_TP), Skill_War_Horn_NPC = GetString(SI_LUIE_SKILL_WAR_HORN_NPC_TP), Skill_Radiant_Magelight_NPC = GetString(SI_LUIE_SKILL_RADIANT_MAGELIGHT_NPC_TP), Skill_Dampen_Magic = GetString(SI_LUIE_SKILL_DAMPEN_MAGIC_TP), Skill_Summon_the_Dead = GetString(SI_LUIE_SKILL_SUMMON_THE_DEAD_TP), Skill_Burdening_Eye = GetString(SI_LUIE_SKILL_BURDENING_EYE_TP), Skill_Spell_Absorption = GetString(SI_LUIE_SKILL_SPELL_ABSORPTION_TP), Skill_Shard_Shield = GetString(SI_LUIE_SKILL_SHARD_SHIELD_TP), Skill_Til_Death = GetString(SI_LUIE_SKILL_TIL_DEATH_TP), Skill_Til_Death_Self = GetString(SI_LUIE_SKILL_TIL_DEATH_SELF_TP), Skill_Dutiful_Fury = GetString(SI_LUIE_SKILL_DUTIFUL_FURY_TP), Skill_Dutiful_Fury_Proc = GetString(SI_LUIE_SKILL_DUTIFUL_FURY_PROC_TP), -- Insects Skill_Hardened_Carapace = zo_strformat(GetString(SI_LUIE_SKILL_HARDENED_CARAPACE_TP), 15), Skill_Inject_Larva = GetString(SI_LUIE_SKILL_INJECT_LARVA_TP), Skill_Latch_On = GetString(SI_LUIE_SKILL_LATCH_ON_TP), Skill_Kotu_Gava_Swarm = GetString(SI_LUIE_SKILL_KOTU_GAVA_SWARM_TP), Skill_Colonize = GetString(SI_LUIE_SKILL_COLONIZE_TP), -- Monsters Skill_Harmony = GetString(SI_LUIE_SKILL_HARMONY_TP), Skill_Summon_Spectral_Lamia = GetString(SI_LUIE_SKILL_SUMMON_SPECTRAL_LAMIA_TP), Skill_Weakness_NPC_Summon = GetString(SI_LUIE_SKILL_WEAKNESS_NPC_SUMMON_TP), Skill_Ice_Pillar = GetString(SI_LUIE_SKILL_ICE_PILLAR_TP), Skill_Summon_Beast = GetString(SI_LUIE_SKILL_SUMMON_BEAST_TP), Skill_Control_Beast = GetString(SI_LUIE_SKILL_CONTROL_BEAST_TP), Skill_Healing_Salve = GetString(SI_LUIE_SKILL_HEALING_SALVE_TP), Skill_Reflective_Shadows = GetString(SI_LUIE_SKILL_REFLECTIVE_SHADOWS_TP), Skill_Steal_Essence = GetString(SI_LUIE_SKILL_STEAL_ESSENCE_TP), Skill_Flame_Ray = GetString(SI_LUIE_SKILL_FLAME_RAY_TP), Skill_Frost_Ray = GetString(SI_LUIE_SKILL_FROST_RAY_TP), Skill_Lacerate_Gargoyle = GetString(SI_LUIE_SKILL_LACERATE_GARGOYLE_TP), Skill_Vampiric_Touch_Gargoyle = GetString(SI_LUIE_SKILL_VAMPIRIC_TOUCH_GARGOYLE_TP), Skill_Elemental_Weapon_NPC = GetString(SI_LUIE_SKILL_ELEMENTAL_WEAPON_NPC_TP), Skill_Regeneration_Troll = GetString(SI_LUIE_SKILL_REGENERATION_TROLL_TP), Skill_Consuming_Omen = GetString(SI_LUIE_SKILL_CONSUMING_OMEN_TP), Skill_Consuming_Omen_Snare = GetString(SI_LUIE_SKILL_CONSUMING_OMEN_SNARE_TP), Skill_Close_Wounds = GetString(SI_LUIE_SKILL_CLOSE_WOUNDS_TP), -- Daedra Skill_Empower_Atronach_Flame = GetString(SI_LUIE_SKILL_EMPOWER_ATRONACH_FLAME_TP), Skill_Empower_Atronach_Flame_Unlimited = GetString(SI_LUIE_SKILL_EMPOWER_ATRONACH_FLAME_UNLIMITED_TP), Skill_Empower_Atronach_Frost = GetString(SI_LUIE_SKILL_EMPOWER_ATRONACH_FROST_TP), Skill_Empower_Atronach_Storm = GetString(SI_LUIE_SKILL_EMPOWER_ATRONACH_STORM_TP), Skill_Lightning_Rod = GetString(SI_LUIE_SKILL_LIGHTNING_ROD_TP), Skill_Storm_Bound = GetString(SI_LUIE_SKILL_STORM_BOUND_TP), Skill_Chilling_Aura = GetString(SI_LUIE_SKILL_CHILLING_AURA_TP), Skill_Radiance = GetString(SI_LUIE_SKILL_RADIANCE_TP), Skill_Devour_Clannfear = GetString(SI_LUIE_SKILL_DEVOUR_CLANNFEAR_TP), Skill_Aura_of_Protection = GetString(SI_LUIE_SKILL_AURA_OF_PROTECTION_TP), Skill_Aura_of_Protection_Other = GetString(SI_LUIE_SKILL_AURA_OF_PROTECTION_OTHER_TP), Skill_Devour_Hunger = GetString(SI_LUIE_SKILL_DEVOUR_HUNGER_TP), Skill_Torpor = GetString(SI_LUIE_SKILL_TORPOR_TP), Skill_Summon_Spiderling = GetString(SI_LUIE_SKILL_SUMMON_SPIDERLING_TP), Skill_Unyielding_Mace = GetString(SI_LUIE_SKILL_UNYIELDING_MACE_TP), Skill_Wing_Gust_Snare = GetString(SI_LUIE_SKILL_WING_GUST_SNARE), Skill_Wing_Gust_Stun = GetString(SI_LUIE_SKILL_WING_GUST_STUN), -- Undead Skill_Vampiric_Drain_NPC = GetString(SI_LUIE_SKILL_VAMPIRIC_DRAIN_NPC_TP), -- Dwemer Skill_Static_Field = GetString(SI_LUIE_SKILL_STATIC_FIELD_TP), Skill_Shock_Barrage = GetString(SI_LUIE_SKILL_SHOCK_BARRAGE_TP), Skill_Polarizing_Field = GetString(SI_LUIE_SKILL_POLARIZING_FIELD_TP), Skill_Static_Shield = GetString(SI_LUIE_SKILL_STATIC_SHIELD_TP), Skill_Turret_Mode = GetString(SI_LUIE_SKILL_TURRET_MODE_TP), ---------------------------------------------------------------- -- WORLD ------------------------------------------------------- ---------------------------------------------------------------- Skill_Static_Charge = GetString(SI_LUIE_SKILL_STATIC_CHARGE_TP), ---------------------------------------------------------------- -- WORLD BOSSES ------------------------------------------------ ---------------------------------------------------------------- Skill_Molten_Pillar = GetString(SI_LUIE_SKILL_MOLTEN_PILLAR_TP), Skill_Trapping_Bolt = GetString(SI_LUIE_SKILL_TRAPPING_BOLT_WORLD_TP), Skill_Poison_Spit = GetString(SI_LUIE_SKILL_POISON_SPIT_TP), Skill_Graven_Slash = GetString(SI_LUIE_SKILL_GRAVEN_SLASH_TP), Skill_Constricting_Webs = GetString(SI_LUIE_SKILL_CONSTRICTING_WEBS_TP), ---------------------------------------------------------------- -- QUESTS ------------------------------------------------------ ---------------------------------------------------------------- -- MSQ Skill_Eye_of_the_Sentinel = GetString(SI_LUIE_SKILL_EYE_OF_THE_SENTINEL_TP), Skill_Incapacitating_Terror = GetString(SI_LUIE_SKILL_INCAPACITATING_TERROR_TP), -- Aldmeri Quests Skill_Blessing_Gathwen = GetString(SI_LUIE_SKILL_BLESSING_GATHWEN_TP), Skill_Disguise_Altmer_Glamour = GetString(SI_LUIE_SKILL_DISGUISE_ALTMER_GLAMOUR_TP), Skill_Spiritual_Cloak = GetString(SI_LUIE_SKILL_SPIRITUAL_CLOAK_TP), Skill_Aetherial_Shift = GetString(SI_LUIE_SKILL_AETHERIAL_SHIFT_TP), Skill_Divine_Speed = GetString(SI_LUIE_SKILL_DIVINE_SPEED_TP), Skill_Lightning_Fury = GetString(SI_LUIE_SKILL_QUEST_LIGHTNING_FURY_TP), Skill_Blacksaps_Brew = GetString(SI_LUIE_SKILL_BLACKSAPS_BREW_TP), Skill_Vision_Journey = GetString(SI_LUIE_SKILL_VISION_JOURNEY_TP), Skill_Snakes_Scales = GetString(SI_LUIE_SKILL_SNAKE_SCALES_TP), Skill_Wolfs_Pelt = GetString(SI_LUIE_SKILL_WOLFS_PELT_TP), Skill_Tigers_Fur = GetString(SI_LUIE_SKILL_TIGERS_FUR_TP), Skill_Soul_Binding = GetString(SI_LUIE_SKILL_SOUL_BINDING_TP), Skill_Spirit_Armor = GetString(SI_LUIE_SKILL_SPIRIT_ARMOR_TP), Skill_Fancy_Clothing = GetString(SI_LUIE_SKILL_FANCY_CLOTHING_TP), Skill_Wilderkings_Protection = GetString(SI_LUIE_SKILL_WILDERKINGS_PROTECTION_TP), Skill_Burrow = GetString(SI_LUIE_SKILL_BURROW_TP), Skill_Shadow_Wood = GetString(SI_LUIE_SKILL_SHADOW_WOOD_TP), Skill_Ancient_Wrath = GetString(SI_LUIE_SKILL_ANCIENT_WRATH_TP), Skill_Necrotic_Circle_Stun = GetString(SI_LUIE_SKILL_NECROTIC_CIRCLE_STUN_TP), -- Daggerfall Covenant Quests Skill_Vision_of_the_Past = GetString(SI_LUIE_SKILL_VISION_OF_THE_PAST_TP), -- Elsweyr Quests Skill_Flame_Aura = GetString(SI_LUIE_SKILL_FLAME_AURA), -- Greymoor Quests Skill_Freezing_Vines = GetString(SI_LUIE_SKILL_FREEZING_VINES_TP), ---------------------------------------------------------------- -- ARENAS ------------------------------------------------------ ---------------------------------------------------------------- -- Dragonstar Arena Skill_Expert_Hunter_NPC = GetString(SI_LUIE_SKILL_EXPERT_HUNTER_NPC_TP), Skill_Circle_of_Protection_NPC = GetString(SI_LUIE_SKILL_CIRCLE_OF_PROTECTION_NPC_TP), Skill_Pierce_Armor_NPC = GetString(SI_LUIE_SKILL_PIERCE_ARMOR_NPC_TP), Skill_Deep_Slash_NPC = GetString(SI_LUIE_SKILL_DEEP_SLASH_NPC_TP), Skill_Biting_Cold = GetString(SI_LUIE_SKILL_BITING_COLD_TP), Skill_Biting_Cold_Vet = GetString(SI_LUIE_SKILL_BITING_COLD_VET_TP), Skill_Frost_Clench_NPC = GetString(SI_LUIE_SKILL_FROST_CLENCH_NPC_TP), Skill_U_Wall_of_Frost_NPC = GetString(SI_LUIE_SKILL_UWOF_NPC_TP), Skill_Elemental_Susceptibility_NPC = GetString(SI_LUIE_SKILL_ELEMENTAL_SUSCEPTIBILITY_NPC_TP), Skill_Ember_Explosion = GetString(SI_LUIE_SKILL_EMBER_EXPLOSION_TP), Skill_Thundering_Presence_NPC = GetString(SI_LUIE_SKILL_THUNDERING_PRESENCE_NPC_TP), Skill_Bound_Aegis_NPC = GetString(SI_LUIE_SKILL_BOUND_AEGIS_NPC_TP), Skill_Mark_Target_NPC = GetString(SI_LUIE_SKILL_MARK_TARGET_NPC_TP), Skill_Enslavement = GetString(SI_LUIE_SKILL_ENSLAVEMENT_TP), Skill_Molten_Armaments_NPC = GetString(SI_LUIE_SKILL_MOLTEN_ARMAMENTS_NPC_TP), Skill_Cinder_Storm_NPC = GetString(SI_LUIE_SKILL_CINDER_STORM_NPC_TP), Skill_Corrosive_Armor_NPC = GetString(SI_LUIE_SKILL_CORROSIVE_ARMOR_NPC_TP), Skill_Corrosive_Armor_Debuff_NPC = GetString(SI_LUIE_SKILL_CORROSIVE_ARMOR_NPC_DEBUFF_TP), Skill_Entropy_NPC = GetString(SI_LUIE_SKILL_ENTROPY_NPC_TP), Skill_Petrify_NPC = GetString(SI_LUIE_SKILL_PETRIFY_NPC_TP), Skill_Celestial_Ward = GetString(SI_LUIE_SKILL_CELESTIAL_WARD_TP), Skill_Celestial_Blast = GetString(SI_LUIE_SKILL_CELESTIAL_BLAST_TP), Skill_Standard_of_Might_NPC = GetString(SI_LUIE_SKILL_STANDARD_OF_MIGHT_NPC_TP), Skill_Standard_of_Might_NPC_Ground = GetString(SI_LUIE_SKILL_STANDARD_OF_MIGHT_NPC_GROUND_TP), Skill_Draining_Poison = GetString(SI_LUIE_SKILL_DRAINING_POISON_TP), Skill_Natures_Blessing = GetString(SI_LUIE_SKILL_NATURES_BLESSING_TP), Skill_Natures_Blessing_Ground = GetString(SI_LUIE_SKILL_NATURES_BLESSING_GROUND_TP), Skill_Acid_Spray_NPC = GetString(SI_LUIE_SKILL_ACID_SPRAY_NPC_TP), Skill_Dark_Flare_NPC = GetString(SI_LUIE_SKILL_DARK_FLARE_NPC_TP), Skill_Purifying_Light_NPC = GetString(SI_LUIE_SKILL_PURIFYING_LIGHT_NPC_TP), Skill_Unstable_Core_NPC = GetString(SI_LUIE_SKILL_UNSTABLE_CORE_NPC_TP), Skill_Searing_Light = GetString(SI_LUIE_SKILL_SEARING_LIGHT_TP), Skill_Solar_Disturbance_NPC = GetString(SI_LUIE_SKILL_SOLAR_DISTURBANCE_NPC_TP), Skill_Dark_Dark_NPC = GetString(SI_LUIE_SKILL_DARK_DEAL_NPC_TP), Skill_Ice_Charge = GetString(SI_LUIE_SKILL_ICE_CHARGE_TP), Skill_Poison_Mist = GetString(SI_LUIE_SKILL_POISON_MIST_TP), Skill_Drain_Essence_Vamp_NPC = GetString(SI_LUIE_SKILL_DRAIN_ESSENCE_VAMP_NPC_TP), Skill_Malefic_Wreath = GetString(SI_LUIE_SKILL_MALEFIC_WREATH_TP), Skill_Crippling_Grasp_NPC = GetString(SI_LUIE_SKILL_CRIPPLING_GRASP_NPC_TP), Skill_Power_Extraction_NPC = GetString(SI_LUIE_SKILLPOWER_EXTRACTION_NPC_TP), Skill_Marked_for_Death = GetString(SI_LUIE_SKILL_MARKED_FOR_DEATH_TP), Skill_Devouring_Swarm = GetString(SI_LUIE_SKILL_DEVOURING_SWARM_TP), Skill_Devouring_Swarm_Ground = GetString(SI_LUIE_SKILL_DEVOURING_SWARM_GROUND_TP), Skill_Enrage_FG_Gladiator = GetString(SI_LUIE_SKILL_ENRAGE_FG_GLADIATOR_TP), Skill_Torch_Grab = GetString(SI_LUIE_SKILL_TORCH_GRAB_TP), Skill_Warming_Aura = GetString(SI_LUIE_SKILL_WARMING_AURA_TP), -- Maelstrom Arena Skill_Sigil_of_Haste = GetString(SI_LUIE_SKILL_SIGIL_OF_HASTE_TP), Skill_Sigil_of_Power = zo_strformat(GetString(SI_LUIE_SKILL_SIGIL_OF_POWER_TP), 990), Skill_Sigil_of_Power_Veteran = zo_strformat(GetString(SI_LUIE_SKILL_SIGIL_OF_POWER_TP), 1188), Skill_Sigil_of_Healing = GetString(SI_LUIE_SKILL_SIGIL_OF_HEALING_TP), Skill_Sigil_of_Defense = GetString(SI_LUIE_SKILL_SIGIL_OF_DEFENSE_TP), Skill_Defiled_Grave = GetString(SI_LUIE_SKILL_DEFILED_GRAVE_TP), Skill_Defensive_Protocol = GetString(SI_LUIE_SKILL_DEFENSIVE_PROTOCOL_TP), Skill_Overcharged = GetString(SI_LUIE_SKILL_OVERCHARGED_DWEMER_TP), Skill_Overheated = GetString(SI_LUIE_SKILL_OVERHEATED_DWEMER_TP), Skill_Overheated_VET = GetString(SI_LUIE_SKILL_OVERHEATED_DWEMER_VET_TP), Skill_Voltaic_Overload = GetString(SI_LUIE_SKILL_VOLTAIC_OVERLOAD_TP), Skill_Frigid_Waters = GetString(SI_LUIE_SKILL_FRIGID_WATERS_TP), Skill_Cold_Snap = GetString(SI_LUIE_SKILL_COLD_SNAP_TP), Skill_Blade_Trap_VMA = GetString(SI_LUIE_SKILL_BLADE_TRAP_VMA), ---------------------------------------------------------------- -- DUNGEONS ------------------------------------------------------ ---------------------------------------------------------------- -- Banished Cells I Skill_Summon_Dark_Proxy = GetString(SI_LUIE_SKILL_SUMMON_DARK_PROXY_TP), Skill_Summon_Clannfear = GetString(SI_LUIE_SKILL_SUMMON_CLANNFEAR_TP), -- Banished Cells II Skill_Curse_of_Suffering = GetString(SI_LUIE_SKILL_CURSE_OF_SUFFERING_TP), Skill_Curse_of_Dominance = GetString(SI_LUIE_SKILL_CURSE_OF_DOMINANCE_TP), Skill_Resilience = GetString(SI_LUIE_SKILL_RESILIENCE_TP), Skill_Levitate_Suffering = GetString(SI_LUIE_SKILL_LEVITATE_SUFFERING_TP), Skill_Levitating_Dominance = GetString(SI_LUIE_SKILL_LEVITATE_DOMINANCE_TP), -- Elden Hollow II Skill_Siphon_Magicka = GetString(SI_LUIE_SKILL_SIPHON_MAGICKA_TP), Skill_Siphon_Stamina = GetString(SI_LUIE_SKILL_SIPHON_STAMINA_TP), Skill_Dark_Root_Stamina = GetString(SI_LUIE_SKILL_DARK_ROOT_STAMINA_TP), Skill_Dark_Root_Magicka = GetString(SI_LUIE_SKILL_DARK_ROOT_MAGICKA_TP), -- City of Ash I Skill_Blazing_Arrow = GetString(SI_LUIE_SKILL_BLAZING_ARROW_TP), Skill_Blazing_Embers = GetString(SI_LUIE_SKILL_BLAZING_EMBERS_TP), -- City of Ash II Skill_Enrage_Horvantud = GetString(SI_LUIE_SKILL_ENRAGE_HORVANTUD), Skill_Flame_Tsunami = GetString(SI_LUIE_SKILL_FLAME_TSUNAMI_TP), Skill_Flame_Tornado_Shield = GetString(SI_LUIE_SKILL_FLAME_TORNADO_SHIELD_TP), Skill_Ignore_Pain = GetString(SI_LUIE_SKILL_IGNORE_PAIN_TP), Skill_Magma_Prison = GetString(SI_LUIE_SKILL_MAGMA_PRISON_TP), Skill_Volcanic_Shield = GetString(SI_LUIE_SKILL_VOLCANIC_SHIELD_TP), -- Tempest Island Skill_Backstab = GetString(SI_LUIE_SKILL_BACKSTAB_TP), Skill_Enervating_Stone = GetString(SI_LUIE_SKILL_ENERVATING_STONE_TP), Skill_Ethereal_Chain = GetString(SI_LUIE_SKILL_ETHEREAL_CHAIN_TP), -- Selene's Web Skill_Ensnare = GetString(SI_LUIE_SKILL_ENSNARE_TP), Skill_Mirror_Ward = GetString(SI_LUIE_SKILL_MIRROR_WARD_TP), Skill_Poison_Shot = GetString(SI_LUIE_SKILL_POISON_SHOT_TP), Skill_Venomous_Burst = GetString(SI_LUIE_SKILL_VENOMOUS_BURST_TP), Skill_Web_Wrap = GetString(SI_LUIE_SKILL_WEB_WRAP_TP), -- Spindleclutch I Skill_Inject_Poison = GetString(SI_LUIE_SKILL_INJECT_POISON_TP), Skill_Fighters_Boon = GetString(SI_LUIE_SKILL_FIGHTERS_BOON_TP), -- Spindleclutch II Skill_Enervating_Seal = GetString(SI_LUIE_SKILL_ENERVATING_SEAL_TP), Skill_Blood_Pool = GetString(SI_LUIE_SKILL_BLOOD_POOL_TP), -- Wayrest Sewers I Skill_Growing_Torment = GetString(SI_LUIE_SKILL_GROWING_TORMENT_TP), -- Wayrest Sewers II Skill_Rend_Soul = GetString(SI_LUIE_SKILL_REND_SOUL_TP), Skill_Scorching_Flames = GetString(SI_LUIE_SKILL_SCORCHING_FLAMES_TP), -- Crypt of Hearts I Skill_Immolate_Colossus = GetString(SI_LUIE_SKILL_IMMOLATE_COLOSSUS_TP), Skill_Lightning_Empowerment = GetString(SI_LUIE_SKILL_LIGHTNING_EMPOWERMENT_TP), Skill_Lightning_Empowerment_Enrage = GetString(SI_LUIE_SKILL_LIGHTNING_EMPOWERMENT_ENRAGE_TP), Skill_Incensed = GetString(SI_LUIE_SKILL_INCENSED_TP), Skill_Incensed_Enrage = GetString(SI_LUIE_SKILL_INCENSED_ENRAGE_TP), -- Crypt of Hearts II Skill_Summon_Death_Spider = GetString(SI_LUIE_SKILL_SUMMON_DEATH_SPIDER_TP), Skill_Chattering_Web = GetString(SI_LUIE_SKILL_CHATTERING_WEB_TP), Skill_Fire_Form = GetString(SI_LUIE_SKILL_FIRE_FORM_TP), Skill_Shock_Form = GetString(SI_LUIE_SKILL_SHOCK_FORM_TP), Skill_Void_Grip = GetString(SI_LUIE_SKILL_VOID_GRIP_TP), Skill_Cold_Strike = GetString(SI_LUIE_SKILL_COLD_STRIKE_TP), Skill_Blood_Lust = GetString(SI_LUIE_SKILL_BLOOD_LUST_TP), Skill_Resist_Necrosis = GetString(SI_LUIE_SKILL_RESIST_NECROSIS_TP), -- Volenfell Skill_Explosive_Bolt = GetString(SI_LUIE_SKILL_EXPLOSIVE_BOLT_TP), Skill_Hemorrhaging_Tear = GetString(SI_LUIE_SKILL_HEMORRHAGING_TEAR_TP), -- Frostvault Skill_Maim = GetString(SI_LUIE_SKILL_MAIM_NPC_TP), -- --------------------------------------------------- -- KEEP UPGRADE -------------------------------------- -- --------------------------------------------------- Keep_Upgrade_Food_Guard_Range = GetString(SI_LUIE_KEEP_UPGRADE_FOOD_GUARD_RANGE_TP), Keep_Upgrade_Food_Heartier_Guards = GetString(SI_LUIE_KEEP_UPGRADE_FOOD_HEARTIER_GUARDS_TP), Keep_Upgrade_Food_Resistant_Guards = GetString(SI_LUIE_KEEP_UPGRADE_FOOD_RESISTANT_GUARDS_TP), Keep_Upgrade_Food_Stronger_Guards = GetString(SI_LUIE_KEEP_UPGRADE_FOOD_STRONGER_GUARDS_TP), Keep_Upgrade_Ore_Armored_Guards = GetString(SI_LUIE_KEEP_UPGRADE_ORE_ARMORED_GUARDS_TP), Keep_Upgrade_Ore_Corner_Build = GetString(SI_LUIE_KEEP_UPGRADE_ORE_CORNER_BUILD_TP), Keep_Upgrade_Ore_Siege_Platform = GetString(SI_LUIE_KEEP_UPGRADE_ORE_SIEGE_PLATFORM_TP), Keep_Upgrade_Ore_Stronger_Walls = GetString(SI_LUIE_KEEP_UPGRADE_ORE_STRONGER_WALLS_TP), Keep_Upgrade_Ore_Wall_Regeneration = GetString(SI_LUIE_KEEP_UPGRADE_ORE_WALL_REGENERATION_TP), Keep_Upgrade_Wood_Archer_Guard = GetString(SI_LUIE_KEEP_UPGRADE_WOOD_ARCHER_GUARD_TP), Keep_Upgrade_Wood_Door_Regeneration = GetString(SI_LUIE_KEEP_UPGRADE_WOOD_DOOR_REGENERATION_TP), Keep_Upgrade_Wood_Siege_Cap = GetString(SI_LUIE_KEEP_UPGRADE_WOOD_SIEGE_CAP_TP), Keep_Upgrade_Wood_Stronger_Doors = GetString(SI_LUIE_KEEP_UPGRADE_WOOD_STRONGER_DOORS_TP), Keep_Upgrade_Food_Mender_Abilities = GetString(SI_LUIE_KEEP_UPGRADE_FOOD_MENDER_ABILITIES_TP), Keep_Upgrade_Food_Honor_Guard_Abilities = GetString(SI_LUIE_KEEP_UPGRADE_FOOD_HONOR_GUARD_ABILITIES_TP), Keep_Upgrade_Food_Mage_Abilities = GetString(SI_LUIE_KEEP_UPGRADE_FOOD_MAGE_ABILITIES_TP), Keep_Upgrade_Food_Guard_Abilities = GetString(SI_LUIE_KEEP_UPGRADE_FOOD_GUARD_ABILITIES_TP), } -- Returns dynamic tooltips when called by Tooltip function function LUIE.DynamicTooltip(abilityId) -- Brace if abilityId == 974 then local _, _, mitigation = GetAdvancedStatValue(ADVANCED_STAT_DISPLAY_TYPE_BLOCK_MITIGATION) local _, _, speed = GetAdvancedStatValue(ADVANCED_STAT_DISPLAY_TYPE_BLOCK_SPEED) local finalSpeed = 100 - speed local _, cost = GetAdvancedStatValue(ADVANCED_STAT_DISPLAY_TYPE_BLOCK_COST) -- Get current weapons to check if a frost staff is equipped. local weaponPair = GetActiveWeaponPairInfo() local weaponType if weaponPair == ACTIVE_WEAPON_PAIR_MAIN then weaponType = GetItemWeaponType(BAG_WORN, EQUIP_SLOT_MAIN_HAND) elseif weaponPair == ACTIVE_WEAPON_PAIR_BACKUP then weaponType = GetItemWeaponType(BAG_WORN, EQUIP_SLOT_BACKUP_MAIN) else weaponType = WEAPONTYPE_NONE end -- Set tooltip resource to Stamina by default local resourceType = GetString(SI_ATTRIBUTES3) -- Stamina -- If we have a frost staff equipped and have learned Tri Focus then use Magicka for the tooltip if weaponType == WEAPONTYPE_FROST_STAFF then local skillType, skillIndex, abilityIndex = GetSpecificSkillAbilityKeysByAbilityId(30948) local purchased = select(6, GetSkillAbilityInfo(skillType, skillIndex, abilityIndex)) if purchased then resourceType = GetString(SI_ATTRIBUTES2) -- Magicka end end mitigation = math.floor(mitigation * 100 + 0.5) / 100 -- Remove decimal places -- TODO: Recheck this if they ever update the function itself to round tooltip = zo_strformat(GetString(SI_LUIE_SKILL_BRACE_TP), mitigation, finalSpeed, cost, resourceType) end -- Crouch if abilityId == 20299 then local _, _, speed = GetAdvancedStatValue(ADVANCED_STAT_DISPLAY_TYPE_SNEAK_SPEED_REDUCTION) local _, cost = GetAdvancedStatValue(ADVANCED_STAT_DISPLAY_TYPE_SNEAK_COST) if speed <= 0 or speed >= 100 then tooltip = zo_strformat(GetString(SI_LUIE_SKILL_HIDDEN_NO_SPEED_TP), cost) else local finalSpeed = 100 - speed tooltip = zo_strformat(GetString(SI_LUIE_SKILL_HIDDEN_TP), finalSpeed, cost) end end -- Unchained if abilityId == 98316 then local duration = GetAbilityDuration(98316) / 1000 local pointsSpent = GetNumPointsSpentOnChampionSkill(64) * 1.1 local adjustPoints = math.floor(pointsSpent * 100 + 0.5) / 100 -- Remove decimal places tooltip = zo_strformat(GetString(SI_LUIE_SKILL_UNCHAINED_TP), duration, adjustPoints) end if abilityId == 150057 then -- Medium Armor Evasion -- Counter for bonus local counter = 0 -- Count the # of Medium Armor pieces equipped for i = 0, 16 do local itemLink = GetItemLink(BAG_WORN, i) local armorType = GetItemLinkArmorType(itemLink) if armorType == ARMORTYPE_MEDIUM then counter = counter + 1 end end local counter = counter * 2 tooltip = zo_strformat(GetString(SI_LUIE_SKILL_MEDIUM_ARMOR_EVASION), counter) end if abilityId == 126582 then -- Unstoppable Brute -- Counter for bonus local counter = 0 -- Count the # of Heavy Armor pieces equipped for i = 0, 16 do local itemLink = GetItemLink(BAG_WORN, i) local armorType = GetItemLinkArmorType(itemLink) if armorType == ARMORTYPE_HEAVY then counter = counter + 1 end end local counter = counter * 5 local tooltipValue1 = GetAbilityDuration(126582) / 1000 local tooltipValue2 = counter tooltip = zo_strformat(GetString(SI_LUIE_SKILL_UNSTOPPABLE_BRUTE), tooltipValue1, tooltipValue2) end if abilityId == 126583 then -- Immovable -- Counter for bonus local counter = 0 -- Count the # of Heavy Armor pieces equipped for i = 0, 16 do local itemLink = GetItemLink(BAG_WORN, i) local armorType = GetItemLinkArmorType(itemLink) if armorType == ARMORTYPE_HEAVY then counter = counter + 1 end end local counter = counter * 5 local tooltipValue1 = GetAbilityDuration(126583) / 1000 local tooltipValue2 = counter local tooltipValue3 = 65 + counter tooltip = zo_strformat(GetString(SI_LUIE_SKILL_IMMOVABLE), tooltipValue1, tooltipValue2, tooltipValue3) end return tooltip end --[[ function LUIE.ProcessTooltipType(input, tooltip) -- dummy func, maybe use end LUIE.DynamicTooltips = { } local DT = LUIE.DynamicTooltips DT[20299] = function() local skillType, skillIndex, abilityIndex = GetSpecificSkillAbilityKeysByAbilityId(45038) local _, _, _, _, _, purchased, _, rankIndex = GetSkillAbilityInfo(skillType, skillIndex, abilityIndex) local duration = 2 if purchased then duration = duration + rankIndex end local tooltip = zo_strformat(GetString(SI_LUIE_SKILL_HIDDEN_TP), duration) return tooltip end if DT[abilityId] then DT[abilityId]() ]]-- --[[ local itemLink = '|H1:item:71252:308:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h' local abilityDescription = select(3, GetItemLinkOnUseAbilityInfo('|H1:item:71252:308:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h')) d(abilityDescription) zo_strformat(GetString(SI_LUIE_SKILL_SET_CLEVER_ALCHEMIST), string.sub( GetAbilityDescription(75745):gsub("[^0-9]", ""), 0, -3) ) ]]--
require("Cocos2d") local HPCounter = class("HPCounter",function() return cc.Node:create() end) function HPCounter:create() self._isBlooding = false self._num = 0 return HPCounter.new() end function HPCounter:showBloodLossNum(dmage,racetype,atack) local time = 1 local function getRandomXYZ() local rand_x = 20*math.sin(math.rad(time*0.5+4356)) local rand_y = 20*math.sin(math.rad(time*0.37+5436)) local rand_z = 20*math.sin(math.rad(time*0.2+54325)) return {x=rand_x,y=rand_y,z=rand_z} end local function getBlood() local num = self._num local tm = 0.5 local pointZ = 50 local ttfconfig = {outlineSize=7,fontSize=50,fontFilePath="fonts/britanic bold.ttf"} local blood = cc.BillBoardLable:createWithTTF(ttfconfig,"-"..num,cc.TEXT_ALIGNMENT_CENTER,400) blood:enableOutline(cc.c4b(0,0,0,255)) blood:setRotation3D({x=90,y=0,z=0}) blood:setScale(0.1) blood:setRotation3D(getRandomXYZ()) local targetScale = 0.6 if num > 1000 then blood:setColor(cc.c3b(254,58,19)) elseif num > 300 then targetScale = 0.45 blood:setColor(cc.c3b(255,247,153)) else targetScale = 0.55 blood:setColor(cc.c3b(189,0,0)) end if racetype._racetype ~= EnumRaceType.MONSTER then blood:setColor(cc.c3b(0,180,255)) end local function getAction() local sequence = cc.Sequence:create(cc.EaseElasticOut:create(cc.ScaleTo:create(tm/2,targetScale),0.4), cc.FadeOut:create(tm/2), cc.RemoveSelf:create(), cc.CallFunc:create(function() self._isBlooding=false self._num = 0 end) ) local spawn = cc.Spawn:create(sequence, cc.MoveBy:create(tm,{x=0,y=0,z=pointZ}), cc.RotateBy:create(tm,math.random(-40,40))) return spawn end if atack then local critleAttack = cc.Sprite:createWithSpriteFrameName("hpcounter.png") tm = 1 critleAttack:runAction(getAction()) critleAttack:setRotation3D({x=90,y=0,z=0}) if racetype._name == "Rat" then critleAttack:setPositionZ(G.winSize.height*0.25) end racetype:addEffect(critleAttack) self._cirtleAttack = critleAttack pointZ = 80 targetScale = targetScale*2 end self._blood = blood self._blood:runAction(getAction()) return self._blood end if self._isBlooding == false then self._isBlooding = true self._num = dmage else self._blood:stopAllActions() self._blood:removeFromParent() self._num = self._num+dmage end return getBlood() end return HPCounter
local lunatest = require "lunatest" function busywait(n) n = n or 10000 for i=1,n do for j=1,n do -- no-op end end end function setup(n) -- show that test case time does not include setup busywait() end local teardown_count = 0 function teardown(n) teardown_count = teardown_count + 1 if teardown_count > 1 then error("*boom*") end end function test_fail_but_expect_teardown() error("fail whale") end function test_fail_but_expect_teardown_2() error("boom") end local caught_teardown_error = false xpcall(lunatest.run(), function(x) print("ARGH", x) caught_teardown_error = true end) assert(caught_teardown_error, "Didn't catch teardown failure.")
local shader = require "shader" local lovr2d = require "lovr2d" local context2d = lovr2d.newContext() local gridtex = lovr.graphics.newTexture("grid.png") gridtex:setWrap("repeat") local gridmat = lovr.graphics.newMaterial(gridtex) local gridw, gridh = gridtex:getDimensions() local gridquad = lovr2d.newQuad(-gridw, -gridh, 3 * gridw, 3 * gridh, gridw, gridh) local tiletex = lovr.graphics.newTexture("tiles.png") local tilemat = lovr.graphics.newMaterial(tiletex) local tilew, tileh = tiletex:getDimensions() local tilequad = lovr2d.newQuad(256, 128, 128, 128, tilew, tileh) local mesh1 = lovr2d.newRectangleMesh("fill", 100, 75, 20, 20) local tilemat1 = lovr.graphics.newMaterial(tiletex) local tilequad1 = lovr2d.newQuad( 0, 256, 128, 128, tilew, tileh) tilequad1:transformMaterial(tilemat1) mesh1:setMaterial(tilemat1) local mesh2 = lovr2d.newArcMesh("fill", "pie", 64, math.pi/6, 10 * math.pi/6, 10) local tilemat2 = lovr.graphics.newMaterial(tiletex) local tilequad2 = lovr2d.newQuad( 128*3, 128*2, 128, 128, tilew, tileh) tilequad2:transformMaterial(tilemat2) mesh2:setMaterial(tilemat2) local function drawLabel(str, x, y, z) lovr.graphics.print(str, x, y, z, .1) end function lovr.draw() lovr.graphics.setCullingEnabled(true) -- font doesn't work if enabled lovr.graphics.setWinding("counterclockwise") lovr.graphics.setBackgroundColor(.1, .1, .1) local x, y, z -- Point x, y, z = .6, .6, -2 lovr.graphics.setPointSize(5) lovr.graphics.setColor(1, 1, 1) lovr.graphics.points(x, y, z) -- Line x, y, z = 0, .6, -2 local points = { x - .1, y, z, x + .1, y, z } lovr.graphics.setColor(1, 1, 1) lovr.graphics.line(points) lovr.graphics.setShader(shader) local time = lovr.timer.getTime() -- Plane local x, y, z = -.6, 0, -2 lovr.graphics.setColor(.94, .33, .31) lovr.graphics.plane('fill', x, y, z, .4, .4, time) -- Cube local x, y, z = 0, 0, -2 lovr.graphics.setColor(.49, .34, .76) lovr.graphics.cube('fill', x, y, z, .3, time) -- Box local x, y, z = .6, 0, -2 lovr.graphics.setColor(1, .65, .18) lovr.graphics.box('fill', x, y, z, .4, .2, .3, time) -- Cylinder local x, y, z = -.6, -.6, -2 lovr.graphics.setColor(.4, .73, .42) lovr.graphics.cylinder(x, y, z, .4, time, 0, 1, 0, .1, .1) -- Cone local x, y, z = 0, -.6, -2 lovr.graphics.setColor(1, .95, .46) lovr.graphics.cylinder(x, y, z, .4, math.pi / 2, 1, 0, 0, 0, .18) -- Sphere local x, y, z = .6, -.6, -2 lovr.graphics.setColor(.3, .82, 1) lovr.graphics.sphere(x, y, z, .2) lovr.graphics.setShader() lovr.graphics.setFont(font3d) drawLabel('Point', .6, .9, -2) drawLabel('Line', 0, .9, -2) drawLabel('Plane', -.6, .3, -2) drawLabel('Cube', 0, .3, -2) drawLabel('Box', .6, .3, -2) drawLabel('Cylinder', -.6, -.3, -2) drawLabel('Cone', 0, -.3, -2) drawLabel('Sphere', .6, -.3, -2) end lovr.draw2d = function() context2d:push() lovr.graphics.setColor(1,1,1, 0.2) lovr2d.drawImage(gridmat, gridquad, 300, 300, 0.9, 1.2, 0.1, 1.5 * gridw, 1.5 * gridh) lovr.graphics.setColor(1,0,0, 0.4) lovr2d.drawImage(gridmat, 300, 300, 0.9, 1.2, 0.1, .5 * gridw, .5 * gridh) lovr.graphics.setColor(1,1,1) lovr2d.drawImage(tilemat, tilequad, 20, 40) mesh1:draw(20, 200) lovr.graphics.setColor(1,0,0) lovr.graphics.setLineWidth(3) mesh2:draw(20 + 64, 400) lovr.graphics.setLineWidth(1) local text = "Lorem Ipsum Dolor" lovr.graphics.setColor(1,1,1) lovr.graphics.points({300, 300, 0}) lovr2d.printf(text, 10, 10) lovr2d.drawCircle(gridmat, 200, 10 + 30, 30, 0.0, 8) lovr2d.drawArc(gridmat, "pie", 260, 10 + 30, 30, 0.0, math.pi/6, 10 * math.pi/6, 7) context2d:pop() end local default_mirror = lovr.mirror function lovr.mirror() default_mirror() if lovr.draw2d then lovr.draw2d() end end
local Cuboid = assert(foundation.com.Cuboid) local is_table_empty = assert(foundation.com.is_table_empty) local ng = Cuboid.new_fast_node_box local string_hex_escape = assert(foundation.com.string_hex_escape) local data_network = assert(yatm.data_network) minetest.register_node("yatm_data_logic:data_node_sensor", { description = "DATA Node Sensor\nReports various parameters about a neighbour node.", codex_entry_id = "yatm_data_logic:data_node_sensor", groups = { cracky = 1, data_programmable = 1, yatm_data_device = 1, }, paramtype = "light", paramtype2 = "facedir", drawtype = "nodebox", node_box = { type = "fixed", fixed = { ng(0, 0, 0, 16, 4, 16), ng(3, 4, 3, 10, 1, 10), }, }, tiles = { "yatm_data_node_sensor_top.png", "yatm_data_node_sensor_bottom.png", "yatm_data_node_sensor_side.png", "yatm_data_node_sensor_side.png", "yatm_data_node_sensor_side.png", "yatm_data_node_sensor_side.png", }, on_construct = function (pos) local node = minetest.get_node(pos) data_network:add_node(pos, node) end, after_destruct = function (pos, node) data_network:remove_node(pos, node) end, data_network_device = { type = "device", groups = { updatable = 1, }, }, data_interface = { update = function (self, pos, node, dtime) local meta = minetest.get_meta(pos) local time = meta:get_float("time") time = time - dtime if time <= 0 then time = time + 1 local value = 0 -- TODO: sample data local output_data = string_hex_escape(string.char(value)) yatm_data_logic.emit_output_data_value(pos, output_data) -- TODO: store coords of last sampled entity yatm.queue_refresh_infotext(pos, node) end meta:set_float("time", time) end, on_load = function (self, pos, node) -- end, receive_pdu = function (self, pos, node, dir, port, value) -- end, get_programmer_formspec = function (self, pos, user, pointed_thing, assigns) -- local meta = minetest.get_meta(pos) local formspec = yatm_data_logic.layout_formspec() .. yatm.formspec_bg_for_player(user:get_player_name(), "module") .. "label[0,0;Port Configuration]" .. yatm_data_logic.get_io_port_formspec(pos, meta, "o") return formspec end, receive_programmer_fields = function (self, player, form_name, fields, assigns) local meta = minetest.get_meta(assigns.pos) local needs_refresh = false local _ichg, ochg = yatm_data_logic.handle_io_port_fields(assigns.pos, fields, meta, "o") if not is_table_empty(ochg) then needs_refresh = true end return true, needs_refresh end, }, refresh_infotext = function (pos) local meta = minetest.get_meta(pos) local infotext = -- TODO: report last seen entity data_network:get_infotext(pos) meta:set_string("infotext", infotext) end, })
local template = require("nightfox.util.template") --#region Types ---@class Spec ---@field bg0 string ---@field bg1 string ---@field bg2 string ---@field bg3 string ---@field bg4 string ---@field fg0 string ---@field fg1 string ---@field fg2 string ---@field fg3 string ---@field sel0 string ---@field sel1 string ---@field syntax SpecSyntax ---@field diag SpecDiagnostic ---@field diag_bg SpecDiagnosticBg ---@field diff SpecDiff ---@field git SpecGit ---@class SpecSyntax ---@field bracket string ---@field builtin0 string ---@field builtin1 string ---@field builtin2 string ---@field builtin3 string ---@field comment string ---@field conditional string ---@field const string ---@field dep string ---@field field string ---@field func string ---@field ident string ---@field keyword string ---@field number string ---@field operator string ---@field preproc string ---@field regex string ---@field statement string ---@field string string ---@field type string ---@field variable string ---@class SpecDiagnostic ---@field error string ---@field warn string ---@field info string ---@field hint string ---@class SpecDiagnosticBg ---@field error string ---@field warn string ---@field info string ---@field hint string ---@class SpecDiff ---@field add string ---@field delete string ---@field change string ---@field text string ---@class SpecGit ---@field add string ---@field removed string ---@field changed string --#endregion local M = {} local function override(spec, pallet, ovr) ovr = template.parse(ovr, pallet) local tbl_list = { "syntax", "diag", "diag_bg", "diff", "git" } local single_list = { "comment", "bg0", "bg1", "bg2", "bg3", "bg4", "fg0", "fg1", "fg2", "fg3", "sel0", "sel1" } for _, name in ipairs(single_list) do if ovr[name] then local value = ovr[name] spec[name] = type(value) == "table" and value:to_css() or value end end for _, name in ipairs(tbl_list) do if ovr[name] then for k, v in pairs(ovr[name]) do spec[name][k] = type(v) == "table" and v:to_css() or v end end end return spec end function M.load(name) local ovr = require("nightfox.override").specs if name then local pallet = require("nightfox.pallet").load(name) local spec = pallet.generate_spec(pallet) if ovr[name] then spec = override(spec, pallet, ovr[name]) end spec.pallet = pallet return spec else local result = {} local foxes = require("nightfox.pallet").foxes for _, mod in ipairs(foxes) do local pallet = require("nightfox.pallet").load(mod) local spec = pallet.generate_spec(pallet) if ovr[mod] then spec = override(spec, pallet, ovr[mod]) end spec.pallet = pallet result[mod] = spec end return result end end return M
-- If AAI is installed, update the technologies with SP0. if data.raw.technology["basic-automation"] and data.raw.technology["basic-logistics"] then require("prototypes.technology.science-pack-0-update") end
local RunService = game:GetService("RunService") local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local Workspace = game:GetService("Workspace") local Promise = require(ReplicatedStorage.Packages.Promise) local Stitch = require(script.Parent.Parent.Parent.Parent) return function() if not RunService:IsClient() or not RunService:IsRunning() or not Players.LocalPlayer then return end local world local testComponent = { name = "replicationSystemTest", replicate = true, defaults = {}, } beforeEach(function() world = Stitch.World.new("test") end) afterEach(function() world:destroy() end) describe("Component added", function() it("should read replicate folder on client", function() world:addSystem(Stitch.DefaultSystems.ReplicationSystem) world:registerComponent(testComponent) local instance = Workspace:WaitForChild("ReplicationSystemTestInstance") world:addComponent(testComponent, instance) Promise.fromEvent(RunService.Heartbeat):await() Promise.fromEvent(RunService.Heartbeat):await() expect(world:getComponent(testComponent, instance)).to.be.ok() expect(world:getComponent(testComponent, instance).foo).to.equal("bar") end) it("should read replicate folder update on client", function() world:addSystem(Stitch.DefaultSystems.ReplicationSystem) world:registerComponent(testComponent) local instance = Workspace:WaitForChild("ReplicationSystemTestInstance") world:addComponent(testComponent, instance) Promise.fromEvent(RunService.Heartbeat):await() Promise.fromEvent(RunService.Heartbeat):await() expect(world:getComponent(testComponent, instance)).to.be.ok() expect(world:getComponent(testComponent, instance).foo).to.equal("baz") expect(world:getComponent(testComponent, instance).momma).to.equal("mia") end) end) end
local log = require 'goldsmith.log' local M = {} function M.run() log.toggle_debug_console() end return M
--Basic example for model loading, keyboad interaction, a script-based animation print("Starting Lua script for ModelViewer example") --Todo: -- Lua modules (for better organization, and maybe reloading?) -- Allow pointlights to attach to nodes -- Allow fill lights (no n-dot-l term) to hack global illum --These 9 special variables are querried by the engine each -- frame and used to set the camera pose. --Here we set the intial camera pose: CameraPosX = -4.0; CameraPosY = 2; CameraPosZ = -1.8 CameraDirX = 1.0; CameraDirY = -0.2; CameraDirZ = 0.4 CameraUpX = 0.0; CameraUpY = 1.0; CameraUpZ = 0.0 theta = 0; radius = 4 --Helper variabsle for camrea control animatedModels = {} velModel = {} rotYVelModel = {} --Special function that is called every frame --The variable dt containts how much times has pased since it was last called function frameUpdate(dt) --Update the camera based on radius and theta CameraPosX = radius*math.cos(theta) CameraPosZ = radius*math.sin(theta) CameraDirX = -CameraPosX CameraDirZ = -CameraPosZ --A simple animation system for modelID,v in pairs(animatedModels) do local vel = velModel[modelID] if vel then translateModel(modelID,dt*vel[1],dt*vel[2],dt*vel[3]) end local rotYvel = rotYVelModel[modelID] if rotYvel then rotateModel(modelID,rotYvel*dt, 0, 1, 0) end end end --Special function that is called each frame. The variable --keys containts information about which keys are currently . function keyHandler(keys) --Move camera radius and theta based on up/down/left/right keys if keys.left then theta = theta + .03 end if keys.right then theta = theta - .03 end if keys.up then radius = radius - .05 end if keys.down then radius = radius + .05 end --Tab key cycles through models unhideing them from rendering one by one if keys.tab and not tabDownBefore then hideModel(model[drawModel]) if keys.shift then --Shift-tab cycles backwards drawModel = (drawModel -1 % #model) if drawModel == 0 then drawModel = #model end else drawModel = (drawModel % #model) + 1 end unhideModel(model[drawModel]) end tabDownBefore = keys.tab end --Add base floor model floor = addModel("Floor",0,.95,0) setModelMaterial(floor,"Clay") --Add several predefined models to be rendered i = 1 --Lau is typically 1-indexed model = {} model[i] = addModel("Windmill",0,1,0); i = i+1 model[i] = addModel("Bookcase",0,1,0); i = i+1 model[i] = addModel("Ring",0,1,0); i = i+1 model[i] = addModel("Soccer Ball",0,1,0); i = i+1 model[i] = addModel("Thonet S43 Chair",0,1,0); i = i+1 model[i] = addModel("Silver Knot",0,1,0); i = i+1 model[i] = addModel("Gold Knot",0,1,0); i = i+1 model[i] = addModel("Frog",0,1,0); i = i+1 model[i] = addModel("Copper Pan",0,1,0); i = i+1 model[i] = addModel("Pool Table",0,1,0); i = i+1 --Choose 1 model to be drawn at a time, the rest will be hidden drawModel = 1 for i = 1,#model do if drawModel ~= i then hideModel(model[i]) end end --Set the 3rd model to rotate around it's the y-axis rotYVelModel[model[3]] = 0.2 --radians per second animatedModels[model[3]] = true
--[[ Adobe Experience Manager (AEM) API Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API OpenAPI spec version: 3.2.0-pre.0 Contact: opensource@shinesolutions.com Generated by: https://openapi-generator.tech ]] --[[ Unit tests for openapi-client.model.truststore_items Automatically generated by openapi-generator (https://openapi-generator.tech) Please update as you see appropriate ]] describe("truststore_items", function() local openapi-client_truststore_items = require "openapi-client.model.truststore_items" -- unit tests for the property 'alias' describe("property alias test", function() it("should work", function() -- TODO assertion here: http://olivinelabs.com/busted/#asserts end) end) -- unit tests for the property 'entry_type' describe("property entry_type test", function() it("should work", function() -- TODO assertion here: http://olivinelabs.com/busted/#asserts end) end) -- unit tests for the property 'subject' describe("property subject test", function() it("should work", function() -- TODO assertion here: http://olivinelabs.com/busted/#asserts end) end) -- unit tests for the property 'issuer' describe("property issuer test", function() it("should work", function() -- TODO assertion here: http://olivinelabs.com/busted/#asserts end) end) -- unit tests for the property 'not_before' describe("property not_before test", function() it("should work", function() -- TODO assertion here: http://olivinelabs.com/busted/#asserts end) end) -- unit tests for the property 'not_after' describe("property not_after test", function() it("should work", function() -- TODO assertion here: http://olivinelabs.com/busted/#asserts end) end) -- unit tests for the property 'serial_number' describe("property serial_number test", function() it("should work", function() -- TODO assertion here: http://olivinelabs.com/busted/#asserts end) end) end)
--====================================================================-- -- dmc_lua/lua_bytearray/pack_bytearray.lua -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright (c) 2014-2015 David McCuskey 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. --]] --[[ based off work from zrong(zengrong.net) https://github.com/zrong/lua#ByteArray https://github.com/zrong/lua/blob/master/lib/zrong/zr/utils/ByteArray.lua --]] --====================================================================-- --== DMC Lua Library: Lua Byte Array (pack) --====================================================================-- -- Semantic Versioning Specification: http://semver.org/ local VERSION = "0.1.0" --====================================================================-- --== Imports require 'pack' --====================================================================-- --== Pack Byte Array Class --====================================================================-- local ByteArray = {} ByteArray.ENDIAN_LITTLE = 'endian_little' ByteArray.ENDIAN_BIG = 'endian_big' --====================================================================-- --== Public Methods function ByteArray:readDouble() self:_checkAvailable(8) local _, val = string.unpack(self:readBuf(8), self:_getLC("d")) return val end function ByteArray:writeDouble( double ) local str = string.pack( self:_getLC("d"), double ) self:writeBuf( str ) return self end function ByteArray:readFloat() self:_checkAvailable(4) local _, val = string.unpack(self:readBuf(4), self:_getLC("f")) return val end function ByteArray:writeFloat( float ) local str = string.pack( self:_getLC("f"), float) self:writeBuf( str ) return self end function ByteArray:readInt() self:_checkAvailable(4) local _, val = string.unpack(self:readBuf(4), self:_getLC("i")) return val end function ByteArray:writeInt( int ) local str = string.pack( self:_getLC("i"), int ) self:writeBuf( str ) return self end function ByteArray:readLong() self:_checkAvailable(8) local _, val = string.unpack(self:readBuf(8), self:_getLC("l")) return val end function ByteArray:writeLong( long ) local str = string.pack( self:_getLC("l"), long ) self:writeBuf( str ) return self end function ByteArray:readMultiByte( len ) error("not implemented") return val end function ByteArray:writeMultiByte( int ) error("not implemented") return self end function ByteArray:readStringBytes( len ) assert( len , "Need a length of the string!") if len == 0 then return "" end self:_checkAvailable( len ) local __, __v = string.unpack(self:readBuf( len ), self:_getLC( "A".. len )) return __v end function ByteArray:writeStringBytes(__string) local __s = string.pack(self:_getLC("A"), __string) self:writeBuf(__s) return self end function ByteArray:readStringUnsignedShort() local len = self:readUShort() return self:readStringBytes( len ) end ByteArray.readStringUShort = ByteArray.readStringUnsignedShort function ByteArray:writeStringUnsignedShort( ustr ) local str = string.pack(self:_getLC("P"), ustr ) self:writeBuf( str ) return self end ByteArray.writeStringUShort = ByteArray.writeStringUnsignedShort function ByteArray:readShort() self:_checkAvailable(2) local _, val = string.unpack(self:readBuf(2), self:_getLC("h")) return val end function ByteArray:writeShort( short ) local str = string.pack( self:_getLC("h"), short ) self:writeBuf( str ) return self end function ByteArray:readUnsignedByte() self:_checkAvailable(1) local _, val = string.unpack(self:readChar(), "b") return val end ByteArray.readUByte = ByteArray.readUnsignedByte function ByteArray:writeUnsignedByte( ubyte ) local str = string.pack("b", ubyte ) self:writeBuf( str ) return self end ByteArray.writeUByte = ByteArray.writeUnsignedByte function ByteArray:readUInt() self:_checkAvailable(4) local _, val = string.unpack(self:readBuf(4), self:_getLC("I")) return val end ByteArray.readUInt = ByteArray.readUnsignedInt function ByteArray:writeUInt( uint ) local str = string.pack(self:_getLC("I"), uint ) self:writeBuf( str ) return self end ByteArray.writeUInt = ByteArray.writeUnsignedInt function ByteArray:readUnsignedLong() self:_checkAvailable(4) local _, val = string.unpack(self:readBuf(4), self:_getLC("L")) return val end ByteArray.readULong = ByteArray.readUnsignedLong function ByteArray:writeUnsignedLong( ulong ) local str = string.pack( self:_getLC("L"), ulong ) self:writeBuf( str ) return self end ByteArray.writeULong = ByteArray.writeUnsignedLong function ByteArray:readUnsignedShort() self:_checkAvailable(2) local _, val = string.unpack(self:readBuf(2), self:_getLC("H")) return val end ByteArray.readUShort = ByteArray.readUnsignedShort function ByteArray:writeUnsignedShort( ushort ) local str = string.pack(self:_getLC("H"), ushort ) self:writeBuf( str ) return self end ByteArray.writeUShort = ByteArray.writeUnsignedShort --====================================================================-- --== Private Methods function ByteArray:_getLC( format ) format = format or "" if self._endian == ByteArray.ENDIAN_LITTLE then return "<".. format elseif self._endian == ByteArray.ENDIAN_BIG then return ">".. format end return "=".. format end return ByteArray
require 'torch' require 'nn' require 'image' require 'densecap.DetectionModel' require 'densecap.DataLoader' local utils = require 'densecap.utils' local box_utils = require 'densecap.box_utils' local vis_utils = require 'densecap.vis_utils' --[[ Run a trained DenseCap model on images. The inputs can be any one of: - a single image: use the flag '-input_image' to give path - a directory with images: use flag '-input_dir' to give dir path - MSCOCO split: use flag '-input_split' to identify the split (train|val|test) The output can be controlled with: - max_images: maximum number of images to process. Set to -1 to process all - output_dir: use this flag to identify directory to write outputs to - output_vis: set to 1 to output images/json to the vis directory for nice viewing in JS/HTML --]] local cmd = torch.CmdLine() -- Model options cmd:option('-checkpoint', 'data/models/densecap/densecap-pretrained-vgg16.t7') cmd:option('-image_size', 720) cmd:option('-rpn_nms_thresh', 0.7) cmd:option('-final_nms_thresh', 0.3) cmd:option('-num_proposals', 1000) -- Input settings cmd:option('-data_h5', 'data/VG-regions.h5') cmd:option('-data_json', 'data/VG-regions-dicts.json') cmd:option('-input_image', '', 'A path to a single specific image to caption') cmd:option('-input_dir', '', 'A path to a directory with images to caption') cmd:option('-input_split', '', 'A VisualGenome split identifier to process (train|val|test)') -- Only used when input_split is given cmd:option('-splits_json', 'info/densecap_splits.json') cmd:option('-vg_img_root_dir', '', 'root directory for vg images') -- Output settings cmd:option('-max_images', 100, 'max number of images to process') cmd:option('-output_dir', '') -- these settings are only used if output_dir is not empty cmd:option('-num_to_draw', 10, 'max number of predictions per image') cmd:option('-text_size', 2, '2 looks best I think') cmd:option('-box_width', 2, 'width of rendered box') cmd:option('-output_vis', 1, 'if 1 then writes files needed for pretty vis into vis/ ') cmd:option('-output_vis_dir', 'vis/data') -- Misc cmd:option('-gpu', 0) cmd:option('-use_cudnn', 1) local opt = cmd:parse(arg) function run_image(model, img_caffe, opt, dtype, label_mask) -- -- Load, resize, and preprocess image -- local img = image.load(img_path, 3) -- img = image.scale(img, opt.image_size):float() -- local H, W = img:size(2), img:size(3) -- local img_caffe = img:view(1, 3, H, W) -- img_caffe = img_caffe:index(2, torch.LongTensor{3, 2, 1}):mul(255) -- local vgg_mean = torch.FloatTensor{103.939, 116.779, 123.68} -- vgg_mean = vgg_mean:view(1, 3, 1, 1):expand(1, 3, H, W) -- img_caffe:add(-1, vgg_mean) -- Run the model forward local boxes, scores, classes, captions, class_scores = model:forward_test(img_caffe:type(dtype), label_mask) -- local captions = {} -- for i = 1, boxes:size(1) do -- table.insert(captions, 'object') -- end local captions_out = nil if false then mask = classes:int():ne(1):select(2,1) print(mask) indices = torch.linspace(1, classes:size(1), classes:size(1)):long()[mask] print(indices) boxes = boxes:index(1, indices) scores = scores:index(1, indices) captions_out = {} for idx = 1,classes:size(1) do if mask[idx] ~= 0 then table.insert(captions_out, captions[idx]) end end classes = classes:index(1, indices) print(captions_out) else captions_out = captions end local boxes_xywh if boxes:nDimension() ~= 0 then boxes_xywh = box_utils.xcycwh_to_xywh(boxes) else boxes_xywh = torch.Tensor() end local out = { img = img, boxes = boxes_xywh, boxes_xcycwh = boxes, scores = scores, captions = captions_out, classes = classes, class_scores = class_scores } return out end function result_to_json(result) local out = {} out.boxes = result.boxes:float():totable() if result.scores:nDimension() ~= 0 then out.scores = result.scores:float():view(-1):totable() else out.scores = {} end out.captions = result.captions return out end function rotate180(img) return image.vflip(image.hflip(img)) end function lua_render_result(result, opt, outPath) -- Okay, we want to draw the bboxes onto the *original* images. -- Retrieve the image path from the dataset. local imgpath = paths.dirname(result.info.filename) print("Processing", imgpath) local rgbFile = paths.concat(imgpath, paths.basename(imgpath) .. "_color.jpg") local rgbIm = image.load(rgbFile) local crop_x1 = (result.info.ori_bbox[1] + result.info.ori_bbox[3]/2) local crop_x2 = (result.info.ori_bbox[1] - result.info.ori_bbox[3]/2) local crop_y1 = (result.info.ori_bbox[2] + result.info.ori_bbox[4]/2) local crop_y2 = (result.info.ori_bbox[2] - result.info.ori_bbox[4]/2) --local annotationIm = image.load(paths.concat(imgpath, "annotation.png")) --annotationIm = image.crop(annotationIm, crop_x1, crop_y1, crop_x2, crop_y2) image.save(paths.concat(outPath, "rgb.png"), rgbIm) for num_boxes=1,5 do -- slice results accordingly local slicedBoxes = result.boxes_xcycwh[{{1, num_boxes}}]:clone() local captions_sliced = {} for i = 1, num_boxes do table.insert(captions_sliced, "") end -- project to original image local scale = result.info.ori_bbox[3] / result.info.width slicedBoxes:mul(scale) slicedBoxes_xy = box_utils.xcycwh_to_xywh(slicedBoxes) -- render local outImg = vis_utils.densecap_draw(rgbIm, slicedBoxes_xy, captions_sliced, {box_width=4}) -- save image.save(paths.concat(outPath, string.format("out%d.png", num_boxes)), outImg) end end function get_input_images(opt) -- utility function that figures out which images we should process -- and fetches all the raw image paths local image_paths = {} if opt.input_image ~= '' then table.insert(image_paths, opt.input_image) elseif opt.input_dir ~= '' then -- iterate all files in input directory and add them to work for fn in paths.files(opt.input_dir) do if string.sub(fn, 1, 1) ~= '.' then local img_in_path = paths.concat(opt.input_dir, fn) table.insert(image_paths, img_in_path) end end elseif opt.input_split ~= '' then -- load json information that contains the splits information for VG local info = utils.read_json(opt.splits_json) local split_img_ids = info[opt.input_split] -- is a table of integer ids for k=1,#split_img_ids do local img_in_path = paths.concat(opt.vg_img_root_dir, tostring(split_img_ids[k]) .. '.jpg') table.insert(image_paths, img_in_path) end else error('one of input_image, input_dir, or input_split must be provided.') end return image_paths end -- Load the model, and cast to the right type local dtype, use_cudnn = utils.setup_gpus(opt.gpu, opt.use_cudnn) local checkpoint = torch.load(opt.checkpoint) local model = checkpoint.model -- local model = DetectionModel(opt) model:convert(dtype, use_cudnn) model:setTestArgs{ rpn_nms_thresh = opt.rpn_nms_thresh, final_nms_thresh = opt.final_nms_thresh, num_proposals = opt.num_proposals, } model:evaluate() -- local bounds = { -- x_min=255, y_min=5, -- x_max=255+439, -- y_max=5+332 -- } -- model.nets.localization_layer:setBounds(bounds) opt.depth = model.opt.depth -- initialize the data loader class local loader = DataLoader(opt) local counter = 0 local all_losses = {} local results_json = {} -- We also save VOC-style result files to evaluate the VOC score using VOC tools local vocfiles = {} for index, cls in pairs(loader:getLabelStrings()) do vocfiles[index] = io.open(string.format("/tmp/densecap_det_val_%s.txt", cls), "w") end while true do counter = counter + 1 -- Grab a batch of data and convert it to the right dtype local data = {} local loader_kwargs = {split=2, iterate=true} local img, gt_boxes, gt_labels, info, _ = loader:getBatch(loader_kwargs) local data = { image = img:type(dtype), gt_boxes = gt_boxes:type(dtype), gt_labels = gt_labels:type(dtype), } info = info[1] -- Since we are only using a single image -- Get present labels local label_mask = torch.IntTensor(#loader.info.label_strings):fill(0) for i=1,gt_labels:size(2) do label_mask[gt_labels[1][i][1]] = 1 end label_mask = nil local result if true then result = run_image(model, data.image, opt, dtype, label_mask) else -- display ground truth result = {} result.boxes = box_utils.xcycwh_to_xywh(data.gt_boxes[1]) result.img = data.image result.captions = {} for i=1,gt_labels:size(2) do result.captions[i] = info.filename .. loader.info.label_strings[gt_labels[1][i][1]] end result.scores = torch.zeros(result.boxes:size(1)) if gt_labels:size(2) > 1 then print("Multiple objects", info.filename) print(result) end end result.info = info -- Write VOC output -- if result.scores:nDimension() ~= 0 then -- -- the box is in scaled image coordinates, scale back to orig size -- local scalew = info.ori_width / info.width -- local scaleh = info.ori_height / info.height -- print('scale:', scalew, scaleh) -- -- for i=1,result.scores:size(1) do -- for every detection -- local x2 = result.boxes[i][1] + result.boxes[i][3] -- local y2 = result.boxes[i][2] + result.boxes[i][4] -- -- for j=1,result.class_scores:size(2) do -- vocfiles[j]:write(string.format( -- "%s %.20f %f %f %f %f\n", -- string.gsub(path.basename(info.filename), '_color.jpg', ''), --[[math.exp(result.scores[i][1]) *]] result.class_scores[i][j], -- scalew * result.boxes[i][1], scaleh * result.boxes[i][2], scalew * x2, scaleh * y2 -- )) -- vocfiles[j]:flush() -- end -- end -- end -- handle output serialization: either to directory or for pretty html vis if opt.output_dir ~= '' then local img_out_path = paths.concat(opt.output_dir, string.format("img%03d", counter)) paths.mkdir(img_out_path) lua_render_result(result, opt, img_out_path) end if opt.output_vis == 1 then local img_name = string.format('image%d.png', counter) -- save the raw image to vis/data/ local img_out_path = paths.concat(opt.output_vis_dir, img_name) local img = data.image:clone():float():add(1, loader.vgg_mean:expandAs(img)):mul(1.0/255.0) img = img[1]:index(1, torch.LongTensor{3, 2, 1}) image.save(img_out_path, img) -- keep track of the (thin) json information with all result metadata local result_json = result_to_json(result) result_json.img_name = img_name table.insert(results_json, result_json) end -- Break out if we have processed enough images if info.split_bounds[1] == info.split_bounds[2] then break end end -- get paths to all images we should be evaluating -- local image_paths = get_input_images(opt) -- local num_process = math.min(#image_paths, opt.max_images) -- local results_json = {} -- for k=1,num_process do -- local img_path = image_paths[k] -- print(string.format('%d/%d processing image %s', k, num_process, img_path)) -- -- -- Load, resize, and preprocess image -- local img = image.load(img_path, 3) -- img = image.scale(img, opt.image_size):float() -- local H, W = img:size(2), img:size(3) -- local img_caffe = img:view(1, 3, H, W) -- img_caffe = img_caffe:index(2, torch.LongTensor{3, 2, 1}):mul(255) -- local vgg_mean = torch.FloatTensor{103.939, 116.779, 123.68} -- vgg_mean = vgg_mean:view(1, 3, 1, 1):expand(1, 3, H, W) -- img_caffe:add(-1, vgg_mean) -- -- -- run the model on the image and obtain results -- local result = run_image(model, img_caffe, opt, dtype) -- -- handle output serialization: either to directory or for pretty html vis -- if opt.output_dir ~= '' then -- result.img = img -- local img_out = lua_render_result(result, opt) -- local img_out_path = paths.concat(opt.output_dir, paths.basename(img_path)) -- image.save(img_out_path, img_out) -- end -- if opt.output_vis == 1 then -- -- save the raw image to vis/data/ -- local img_out_path = paths.concat(opt.output_vis_dir, paths.basename(img_path)) -- image.save(img_out_path, img) -- -- keep track of the (thin) json information with all result metadata -- local result_json = result_to_json(result) -- result_json.img_name = paths.basename(img_path) -- table.insert(results_json, result_json) -- end -- end if #results_json > 0 then -- serialize to json local out = {} out.results = results_json out.opt = opt utils.write_json(paths.concat(opt.output_vis_dir, 'results.json'), out) end
object_mobile_space_comm_gotal_warlord_02 = object_mobile_shared_space_comm_gotal_warlord_02:new { } ObjectTemplates:addTemplate(object_mobile_space_comm_gotal_warlord_02, "object/mobile/space_comm_gotal_warlord_02.iff")
local mod = DBM:NewMod(1237, "DBM-Party-WoD", 4, 558) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 13746 $"):sub(12, -3)) mod:SetCreatureID(79852) mod:SetEncounterID(1750) mod:SetZone() mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_CAST_START 163054", "SPELL_CAST_SUCCESS 178124", "SPELL_AURA_APPLIED 162415 178156", "UNIT_SPELLCAST_SUCCEEDED boss1" ) --TODO, Roar cd 37 seconds? Verify --TODO, time to feed seems MUCH longer CD now, unfortunately because of this, fight too short to get good cooldown data local warnRendingSlashes = mod:NewSpellAnnounce(161239, 4) local warnRoar = mod:NewSpellAnnounce(163054, 3) local warnTimeToFeed = mod:NewTargetAnnounce(162415, 3) local warnBreakout = mod:NewTargetAnnounce(178124, 2) local specWarnRendingSlashes = mod:NewSpecialWarningDodge(161239, nil, nil, nil, 3) local specWarnRoar = mod:NewSpecialWarningSpell(163054, nil, nil, nil, 2) local specWarnTimeToFeed = mod:NewSpecialWarningYou(162415)--Can still move and attack during it, a personal warning lets a person immediately hit self heals/damage reduction abilities. local specWarnTimeToFeedOther = mod:NewSpecialWarningTarget(162415, "Healer") local specWarnAcidSplash = mod:NewSpecialWarningMove(178156) --local timerTimeToFeedCD = mod:NewCDTimer(22, 162415)--22 to 30 second variation. In CM targets random players, not just tank, so timer for all. function mod:OnCombatStart(delay) -- timerTimeToFeedCD:Start(50-delay) end function mod:SPELL_AURA_APPLIED(args) if args.spellId == 162415 then warnTimeToFeed:Show(args.destName) specWarnTimeToFeedOther:Show(args.destName) -- timerTimeToFeedCD:Start() if args:IsPlayer() then specWarnTimeToFeed:Show() end elseif args.spellId == 178156 and args:IsPlayer() and self:AntiSpam(2, 1) then specWarnAcidSplash:Show() end end function mod:SPELL_CAST_START(args) if args.spellId == 163054 then--he do not target anything. so can't use target scan. warnRoar:Show() specWarnRoar:Show() end end function mod:SPELL_CAST_SUCCESS(args) local spellId = args.spellId if spellId == 178124 then warnBreakout:Show(args.destName) end end function mod:UNIT_SPELLCAST_SUCCEEDED(uId, _, _, _, spellId) if spellId == 161239 and self:AntiSpam(5, 2) then warnRendingSlashes:Show() specWarnRendingSlashes:Show() end end
POTION.Name = "Dragon Potion" POTION.Model = "models/sohald_spike/props/potion_5.mdl" POTION.Scale = 3 POTION.Color = Color(127, 0, 0) POTION.OnDrink = function(pl) if SERVER then pl:EmitSound("npc/antlion/pain1.wav") pl:EmitSound("ambient/voices/cough" .. math.random(1, 4) .. ".wav") pl:Ignite(7, 250) end end
function UpdateImpulsers() local x,y = 0,0 while x < width do while y < height do if GetChunk(x,y).hasimpulser then if not cells[y][x].updated and cells[y][x].ctype == 28 then if x > 1 then PullCell(x-2,y,0,false,1) end end y = y + 1 else y = y + 25 end end y = 0 x = x + 1 end x,y = width-1,height-1 while x >= 0 do while y >= 0 do if GetChunk(x,y).hasimpulser then if not cells[y][x].updated and cells[y][x].ctype == 28 then if x < width-2 then PullCell(x+2,y,2,false,1) end end y = y - 1 else y = math.floor(y/25)*25 - 1 end end y = height-1 x = x - 1 end x,y = width-1,height-1 while y >= 0 do while x >= 0 do if GetChunk(x,y).hasimpulser then if not cells[y][x].updated and cells[y][x].ctype == 28 then if y < height-2 then PullCell(x,y+2,3,false,1) end end x = x - 1 else x = math.floor(x/25)*25 - 1 end end x = width-1 y = y - 1 end x,y = 0,0 while y < height do while x < width do if GetChunk(x,y).hasimpulser then if not cells[y][x].updated and cells[y][x].ctype == 28 then if y > 1 then PullCell(x,y-2,1,false,1) end end x = x + 1 else x = x + 25 end end x = 0 y = y + 1 end end
-- Copyright 2016 Marcel Haupt -- -- 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. -- Github Project: https://github.com/cbacon93/Java-Aircraft-Instruments if CbaconAv==nil then -- Protection against multiple references (typically wrong script installation) local UDPip = "127.0.0.1" local UDPport = "9876" package.path = package.path..";.\\LuaSocket\\?.lua" .. ";.\\Scripts\\?.lua" package.cpath = package.cpath..";.\\LuaSocket\\?.dll" local socket = require("socket") CbaconAv={ SendTelemetry=function() udp = socket.udp() udp:settimeout(0) udp:setpeername(UDPip, UDPport) local altBar = LoGetAltitudeAboveSeaLevel()/0.3048; local pitch, bank, yaw = LoGetADIPitchBankYaw(); sendstr = altBar .. ',1013,' .. pitch .. ',' .. -bank; --ret = ""; --for k,v in pairs(nav) do -- ret = ret .. ', ' .. k --end --sendstr = sendstr .. ret udp:send(sendstr); end, } -- (Hook) Works just after every simulation frame. do local PrevLuaExportAfterNextFrame=LuaExportAfterNextFrame; LuaExportAfterNextFrame=function() CbaconAv:SendTelemetry(); if PrevLuaExportAfterNextFrame then PrevLuaExportAfterNextFrame(); end end end end -- Protection against multiple references (typically wrong script installation)
-- The CoolCam Siren can act as both Siren and Doorbell. -- The different modes, sounds and volume has to be set as configurations -- Please note that the configurations are not resetted to what it was before. local deviceName = "Siren" local doorbell = "dingdong" local alarm = "alarm" debug = true ---- local deviceManager = require "telldus.DeviceManager" local COMMAND_CLASS_CONFIGURATION = 0x70 ALARM_MUSIC_VOLUME = 1 DOOR_BELL_VOLUME = 4 ALARM_MUSIC_INDEX = 5 DOOR_BELL_INDEX = 6 SIZE = 1 MODE = 7 SIREN = 1 DOOR_BELL = 2 function onDeviceStateChanged(device, state, stateValue) if state ~= 1 then return end local doorbell = deviceManager:findByName(doorbell) local alarm = deviceManager:findByName(alarm) if doorbell == nil or alarm == nil then print("Could not find device") return end local sirenDevice = deviceManager:findByName(deviceName) if device:id() == doorbell:id() then mode = DOOR_BELL -- SIREN or DOOR_BELL sound = 1 -- 1 to 10 volume = 1 -- 1 to 3 duration = 5 --seconds siren(sirenDevice, mode, sound, volume, duration) elseif device:id() == alarm:id() then mode = SIREN -- SIREN or DOOR_BELL sound = 10 -- 1 to 10 volume = 3 -- 1 to 3 duration = 5 --seconds siren(sirenDevice, mode, sound, volume, duration) end end function siren(devname, mode, sound, volume, duration) if (devname:typeString() ~= 'zwave') then print("Device %s is not a Z-Wave device", devname:name()) return end -- Get the raw zwave node local zwaveNode = devname:zwaveNode() local cmdClass = zwaveNode:cmdClass(COMMAND_CLASS_CONFIGURATION) if (cmdClass == nil) then print("Device %s does not support COMMAND_CLASS_CONFIGURATION", devname:name()) return end if mode == SIREN then cmdClass:setConfigurationValue(ALARM_MUSIC_INDEX, SIZE, sound) cmdClass:setConfigurationValue(MODE, SIZE, mode) cmdClass:setConfigurationValue(ALARM_MUSIC_VOLUME, SIZE, volume) print("Siren - Sound %s - Volume %s - Duration %s", sound, volume, duration) cmdClass:sendConfigurationParameters() devname:command("turnon", nil, "Siren script") if debug == true then print("Turning on device: %s", devname:name()) end sleep(duration*1000) devname:command("turnoff", nil, "Siren script") if debug == true then print("Turning off device: %s", devname:name()) end elseif mode == DOOR_BELL then cmdClass:setConfigurationValue(DOOR_BELL_INDEX, SIZE, sound) cmdClass:setConfigurationValue(MODE, SIZE, mode) cmdClass:setConfigurationValue(DOOR_BELL_VOLUME, SIZE, volume) print("Door Bell - Sound %s - Volume %s - Duration %s", sound, volume, duration) cmdClass:sendConfigurationParameters() devname:command("turnon", nil, "Siren script") if debug == true then print("Turning on device: %s", devname:name()) end end end
describe('yaml', function() local yaml = require('wowapi.yaml') local null = require('lyaml').null describe('parse', function() it('works on empty', function() assert.Nil(yaml.parse('')) end) it('works on all types', function() local input = [[ --- bool: true number: 42 string: foo empty_string: '' nullkey: null sequence: - 99 - null - bar record: baz: quux frob: nicate ]] local expected = { bool = true, number = 42, string = 'foo', empty_string = '', nullkey = null, sequence = { 99, null, 'bar' }, record = { baz = 'quux', frob = 'nicate' }, } assert.same(expected, yaml.parse(input)) end) end) describe('pprint', function() it('works on empty', function() assert.same('--- {}\n', yaml.pprint({})) end) end) end)
RGE_Enchantable = RGE_Item:New() function RGE_Enchantable:IsValid() return (self.bag > -1 and self.slot > -1 and self.type > -1 and not RGE.IsEmpty(self.link) and not RGE.IsEmpty(self.name) and IsItemEnchantable(self.bag, self.slot)) end function RGE_Enchantable:IsEnchantableBy(glyph) return glyph:CanEnchant(self) end function RGE_Enchantable:IsEnchanted() return not RGE.IsEmpty(self.enchantment) and self.hasCharges end function RGE_Enchantable:HandleTooltip() RGE.AddTTLine("") RGE.AddTTLine(RGE.COLORS.BLUE..RGE.LONGNAME:upper(), "ZoFontWinH2") ZO_Tooltip_AddDivider(PopupTooltip) if (RGE.getSavedSetting("display_name")) then local formattedLink = self.formattedLink or self:FormatLink() RGE.AddTTLine(formattedLink, "ZoFontWinH3") end RGE.AddTTLine("") self:HandleTooltipFor("glyphs in inventory", BAG_BACKPACK) end function RGE_Enchantable:HandleTooltipFor(typeStr, bag) RGE.AddTTLine(typeStr:upper(), "ZoFontWinH4") local count = 0 local uniqueGlyphs = {} local uniqueGlyphCounts = {} local bagSlots = GetBagSize(bag) for i = 0, bagSlots+1 do local glyph = RGE_Glyph:New(bag, i) if (glyph:IsValid() and self:IsEnchantableBy(glyph)) then count = count + 1 if (not uniqueGlyphCounts[glyph.name]) then uniqueGlyphs[glyph.name] = glyph uniqueGlyphCounts[glyph.name] = 1 else uniqueGlyphCounts[glyph.name] = uniqueGlyphCounts[glyph.name] + 1 end end end if (count > 0) then for name, glyph in pairs(uniqueGlyphs) do glyph:ToTooltipLines(uniqueGlyphCounts[name]) end else RGE.AddTTLine("No "..typeStr.." can enchant this item") end end function RGE_Enchantable:ToTooltipLines() local formattedLink = self.formattedLink or self:FormatLink() RGE.AddTTLine(formattedLink) if (RGE.getSavedSetting("display_enchantment") and self:IsEnchanted()) then RGE.AddTTLine(self.enchantment, "ZoFontGameSmall") end if (RGE.getSavedSetting("display_description") and self:IsEnchanted()) then RGE.AddTTLine("("..self.enchantDescription:sub(0, -2)..")", "ZoFontGameSmall") end end
require("lspconfig").elixirls.setup { cmd = { DATA_PATH .. "/lspinstall/elixir/elixir-ls/language_server.sh" }, } -- needed for the LSP to recognize elixir files (alternativly just use elixir-editors/vim-elixir) -- vim.cmd([[ -- au BufRead,BufNewFile *.ex,*.exs set filetype=elixir -- au BufRead,BufNewFile *.eex,*.leex,*.sface set filetype=eelixir -- au BufRead,BufNewFile mix.lock set filetype=elixir -- ]])
include('shared.lua') function ENT:Draw() //self.Entity:DrawModel() RDbeamlib.BeamRender( self:GetEnt() ) end function ENT:Think() if ( CurTime() >= ( self.NextRBUpdate or 0 ) ) then RDbeamlib.UpdateRenderBounds( self:GetEnt() ) self.NextRBUpdate = CurTime() + 3 end end
local Promise = require(script.Parent.Parent.Promise) local AccessLayer = require(script.Parent.Layers.AccessLayer) local DocumentData = require(script.Parent.DocumentData) local stackSkipAssert = require(script.Parent.stackSkipAssert).stackSkipAssert local Document = {} Document.__index = Document function Document.new(collection, name) return setmetatable({ collection = collection; name = name; _data = nil; }, Document) end function Document:readyPromise() if self._readyPromise == nil then self._readyPromise = Promise.new(function(resolve) self._data = DocumentData.new({ lockSession = AccessLayer.acquireLockSession(self.collection.name, self.name, self.collection._migrations); collection = self.collection; name = self.name; }) resolve(self) end) end -- Wrap in Promise.resolve to track unique consumers return Promise.resolve(self._readyPromise) end function Document:get(key) key = tostring(key) stackSkipAssert(self.collection:keyExists(key), ("Key %q does not appear in %q's schema."):format( key, self.collection.name )) return self._data:read()[key] end function Document:set(key, value) stackSkipAssert(self._data:isClosed() == false, "Attempt to call :set() on a closed Document") key = tostring(key) stackSkipAssert(self.collection:validateKey(key, value)) local current = self._data:read() current[key] = value self._data:write(current) end function Document:save() stackSkipAssert(self._data:isClosed() == false, "Attempt to call :save() on a closed Document") return Promise.new(function(resolve) self._data:save() resolve() end) end function Document:close() stackSkipAssert(self._data:isClosed() == false, "Attempt to call :close() on a closed Document") return Promise.new(function(resolve) self._data:close() resolve() end):finally(function() self.collection:_removeDocument(self.name) end) end function Document:isClosed() return self._data:isClosed() end return Document
-- -- Copyright (c) 2018 Milos Tosic. All rights reserved. -- License: http://www.opensource.org/licenses/BSD-2-Clause -- -- https://github.com/madler/zlib local params = { ... } local ZLIB_ROOT = params[1] local ZLIB_FILES = { ZLIB_ROOT .. "*.c", ZLIB_ROOT .. "*.h" } local ZLIB_DEFINES = {} if getTargetOS() == "android" then ZLIB_DEFINES = { "fopen64=fopen", "ftello64=ftell", "fseeko64=fseek", } end function projectExtraConfig_zlib() includedirs { ZLIB_ROOT } defines { ZLIB_DEFINES } end function projectAdd_zlib() addProject_3rdParty_lib("zlib", ZLIB_FILES) end
local tostring, tonumber, select, type, getmetatable, setmetatable, rawget = tostring, tonumber, select, type, getmetatable, setmetatable, rawget local bit = require('bit') local bnot, band, bor, bxor, lshift, rshift = bit.bnot, bit.band, bit.bor, bit.bxor, bit.lshift, bit.rshift local Types = require('types') local Any, Array = Types.Any, Types.Array local OMeta = require('ometa') local utils = require('utils') local Commons = require('commons') local BinaryCommons = OMeta.Grammar({_grammarName = 'BinaryCommons', byte = OMeta.Rule({behavior = function (input) return input:applyWithArgs(input.grammar.choice, function (input) if not (type(input.stream._head) == "number" and band(input.stream._head, 255) == input.stream._head) then return false end return input:apply(input.grammar.anything) end) end, arity = 0, name = 'byte'}), char = OMeta.Rule({behavior = function (input, n) return input:applyWithArgs(input.grammar.choice, function (input) return input:applyWithArgs(input.grammar.codesToString, function (input) return input:applyWithArgs(input.grammar.loop, input.grammar.byte, n or 1) end) end) end, arity = 1, name = 'char'})}) BinaryCommons:merge(Commons) local function bitfield(msb, number, bitn) local fields = {} local f, t, s if msb then f, t, s = #bitn, 1, -1 else f, t, s = 1, #bitn, 1 end for fn = f, t, s do local n = bitn[fn] local mask = bnot(lshift(bnot(0), n)) local field = band(number, mask) fields[fn] = field number = rshift(number, n) end return fields end local Msb0 = OMeta.Grammar({_grammarName = 'Msb0', bit = OMeta.Rule({behavior = function (input, offset, n) local val, __pass__ return input:applyWithArgs(input.grammar.choice, function (input) __pass__, val = input:apply(input.grammar.byte) if not (__pass__) then return false end return true, rshift(band(rshift(255, offset or 0), val), 8 - (n or 1) - (offset or 0)) end) end, arity = 2, name = 'bit'}), bitfield = OMeta.Rule({behavior = function (input, r, bitn) local val, __pass__ return input:applyWithArgs(input.grammar.choice, function (input) __pass__, val = input:apply(r) if not (__pass__) then return false end return true, bitfield(true, val, bitn) end) end, arity = 2, name = 'bitfield'})}) local Lsb0 = OMeta.Grammar({_grammarName = 'Lsb0', bit = OMeta.Rule({behavior = function (input, offset, n) local val, __pass__ return input:applyWithArgs(input.grammar.choice, function (input) __pass__, val = input:apply(input.grammar.byte) if not (__pass__) then return false end return true, band(rshift(val, offset or 0), bnot(lshift(bnot(0), n or 1))) end) end, arity = 2, name = 'bit'}), bitfield = OMeta.Rule({behavior = function (input, r, bitn) local val, __pass__ return input:applyWithArgs(input.grammar.choice, function (input) __pass__, val = input:apply(r) if not (__pass__) then return false end return true, bitfield(false, val, bitn) end) end, arity = 2, name = 'bitfield'})}) local BigEndian = OMeta.Grammar({_grammarName = 'BigEndian', int16 = OMeta.Rule({behavior = function (input) local b, __pass__, a return input:applyWithArgs(input.grammar.choice, function (input) __pass__, a = input:apply(input.grammar.byte) if not (__pass__) then return false end __pass__, b = input:apply(input.grammar.byte) if not (__pass__) then return false end return true, bor(lshift(a, 8), b) end) end, arity = 0, name = 'int16'}), int32 = OMeta.Rule({behavior = function (input) local b, __pass__, a return input:applyWithArgs(input.grammar.choice, function (input) __pass__, a = input:apply(input.grammar.int16) if not (__pass__) then return false end __pass__, b = input:apply(input.grammar.int16) if not (__pass__) then return false end return true, bor(lshift(a, 16), b) end) end, arity = 0, name = 'int32'})}) local LittleEndian = OMeta.Grammar({_grammarName = 'LittleEndian', int16 = OMeta.Rule({behavior = function (input) local b, __pass__, a return input:applyWithArgs(input.grammar.choice, function (input) __pass__, b = input:apply(input.grammar.byte) if not (__pass__) then return false end __pass__, a = input:apply(input.grammar.byte) if not (__pass__) then return false end return true, bor(lshift(a, 8), b) end) end, arity = 0, name = 'int16'}), int32 = OMeta.Rule({behavior = function (input) local b, __pass__, a return input:applyWithArgs(input.grammar.choice, function (input) __pass__, b = input:apply(input.grammar.int16) if not (__pass__) then return false end __pass__, a = input:apply(input.grammar.int16) if not (__pass__) then return false end return true, bor(lshift(a, 16), b) end) end, arity = 0, name = 'int32'})}) BinaryCommons.Msb0 = Msb0 BinaryCommons.Lsb0 = Lsb0 BinaryCommons.BigEndian = BigEndian BinaryCommons.LittleEndian = LittleEndian return BinaryCommons
return {'jus','juskom','juslepel','justeerder','justeren','justificatie','justitiabel','justitiabelen','justitie','justitieapparaat','justitieassistent','justitiebegroting','justitiebeleid','justitiedossier','justitieel','justitiekosten','justitieminister','justitiepaleis','justitiesamenwerking','justitiewoordvoerder','justitioneel','jusblokje','justiniaans','justitieambtenaar','justitiehuis','justitiemedewerker','justin','justine','just','justice','justina','justinus','justus','jussen','justeer','justeert','justificaties','justitieambtenaren','justitiefunctionarissen','justitiehuizen','justitiemensen','justitiele','juskommen','juslepels','justeerde','justitiabele','justitieassistenten','justitionele','jusblokjes','justiniaanse','justs','justices','justins','justinas','justines','justinus','justus','justitiemedewerkers','justitiepaleizen','justitieministers','justitiedossiers'}
masks = { circle="plugin/mask/mask-Circle.fx", backgroundFilter="plugin/mask/mask-BackGroundFilter.fx", } function dgsCreateMask(texture1,texture2,settings) settings = settings or {} assert(dgsGetType(texture1) == "texture","Bad argument @dgsCreateMask at argument 1, expect texture "..dgsGetType(texture1)) local tex2Type = dgsGetType(texture2) local maskResult if tex2Type == "string" then assert(masks[texture2],"Bad argument @dgsCreateMask at argument 2, mask type "..texture2.." is not supported") maskResult = dxCreateShader(masks[texture2]) dgsSetData(maskResult,"sourceTexture",texture1) dxSetShaderValue(maskResult,"sourceTexture",texture1) for k,v in pairs(settings) do dxSetShaderValue(maskResult,k,v) dgsSetData(maskResult,k,v) end dgsSetData(maskResult,"asPlugin","dgs-dxmask") triggerEvent("onDgsPluginCreate",maskResult,sourceResource) elseif tex2Type == "texture" then maskResult = dxCreateShader("plugin/mask/maskTexture.fx") dgsSetData(maskResult,"sourceTexture",texture1) dxSetShaderValue(maskResult,"sourceTexture",texture1) dgsSetData(maskResult,"maskTexture",texture2) dxSetShaderValue(maskResult,"maskTexture",texture2) dgsSetData(maskResult,"asPlugin","dgs-dxmask") triggerEvent("onDgsPluginCreate",maskResult,sourceResource) elseif tex2Type == "shader" then maskResult = texture2 for k,v in pairs(settings) do dxSetShaderValue(maskResult,k,v) dgsSetData(maskResult,k,v) end dgsSetData(maskResult,"asPlugin","dgs-dxmask") triggerEvent("onDgsPluginCreate",maskResult) end return maskResult end function dgsMaskSetTexture(mask,texture) assert(dgsGetPluginType(mask) == "dgs-dxmask","Bad argument @dgsMaskSetTexture at argument 1, expect dgs-dxmask "..dgsGetPluginType(mask)) dxSetShaderValue(mask,"sourceTexture",texture) return dgsSetData(mask,"sourceTexture",texture) end function dgsMaskGetTexture(mask) assert(dgsGetPluginType(mask) == "dgs-dxmask","Bad argument @dgsMaskGetTexture at argument 1, expect dgs-dxmask "..dgsGetPluginType(mask)) return dgsElementData[mask].sourceTexture end function dgsMaskGetSetting(mask,settingName) assert(dgsGetPluginType(mask) == "dgs-dxmask","Bad argument @dgsMaskGetSetting at argument 1, expect dgs-dxmask "..dgsGetPluginType(mask)) return dgsElementData[mask][settingName] end function dgsMaskSetSetting(mask,settingName,value) assert(dgsGetPluginType(mask) == "dgs-dxmask","Bad argument @dgsMaskSetSetting at argument 1, expect dgs-dxmask "..dgsGetPluginType(mask)) dgsSetData(mask,settingName,value) assert(dxSetShaderValue(mask,settingName,value),"Bad argument @dgsMaskSetSetting, failed to call dxSetShaderValue") return true end function dgsMaskCenterTexturePosition(dgsMask,w,h) assert(dgsGetPluginType(dgsMask) == "dgs-dxmask","Bad argument @dgsMaskCenterTexturePosition at argument 1, expect dgs-dxmask got "..dgsGetPluginType(dgsMask)) local ratio = w/h local scaleW,scaleH = (ratio>1 and ratio or 1),(1/ratio>1 and 1/ratio or 1) dgsMaskSetSetting(dgsMask,"offset",{scaleW/2-0.5,scaleH/2-0.5,1}) end function dgsMaskAdaptTextureSize(dgsMask,w,h) assert(dgsGetPluginType(dgsMask) == "dgs-dxmask","Bad argument @dgsMaskAdaptTextureSize at argument 1, expect dgs-dxmask got "..dgsGetPluginType(dgsMask)) local ratio = w/h local scaleW,scaleH = (ratio>1 and ratio or 1),(1/ratio>1 and 1/ratio or 1) dgsMaskSetSetting(dgsMask,"scale",{scaleW,scaleH,1}) end
#!/usr/bin/env lua local sys = require("sys") local sock = require"sys.sock" local thread = sys.thread assert(thread.init()) local evq = assert(sys.event_queue()) -- Scheduler local sched do sched = assert(thread.scheduler()) -- Workers assert(thread.run(sched.loop, sched)) end print("-- Timer event") local task do local timeout = 10 local function on_timeout() local ev = sched:wait_timer(evq, timeout) assert(ev == 't', timeout .. " msec timeout expected") end assert(sched:put(on_timeout)) end print("-- Socket event") do local msg = "test" local fdi, fdo = sock.handle(), sock.handle() assert(fdi:socket(fdo)) local function on_read() local ev = sched:wait_socket(evq, fdi, "r") assert(ev == 'r') local s = assert(fdi:read()) assert(s == msg, msg .. " expected, got " .. tostring(s)) fdi:close() fdo:close() end assert(sched:put(on_read)) thread.sleep(100) assert(fdo:write(msg)) end print("-- Terminate task, waiting on event") do local timeout = 100 local fdi, fdo = sock.handle(), sock.handle() assert(fdi:socket(fdo)) local function on_timeout(task) local ev = sched:wait_timer(evq, timeout) assert(ev == 't', timeout .. " msec timeout expected") assert(sched:terminate(task)) fdi:close() fdo:close() end local function on_read(fd) sched:wait_socket(evq, fd, "r") assert(false, "Termination expected") end local task = assert(sched:put(on_read, fdi)) assert(sched:put(on_timeout, task)) thread.sleep(100) end assert(evq:loop()) print("OK") sched:stop()
local skynet = require "skynet" local snax = require "skynet.snax" skynet.start(function() local ps = snax.uniqueservice ("pingserver", "test queue") for i=1, 10 do ps.post.sleep(true,i*10) ps.post.hello() end for i=1, 10 do ps.post.sleep(false,i*10) ps.post.hello() end skynet.exit() end)
--[[ Copyright 2020 Teverse @File core/client/loader.lua @Author(s) Jay @Description Loads all open sourced components of the client. --]] print("Loaded Client") require("tevgit:core/client/debug.lua") require("tevgit:core/client/chat.lua") require("tevgit:core/client/playerList.lua") --require("tevgit:core/client/characterController.lua")
--************************** -- YouBot Kuka Robot's battery -- @author Klaus Raizer -- @date 24-02-2017 -- -- Description: Controls the battery of the YouBot Kuka Robot --************************** -- Returns a list with the handles of all the recharge stations in the scene getListOfRechargeStations = function () objects = simGetObjectsInTree(sim_handle_scene,0,0) numberOfObjectsOfTypeShape=table.getn(objects) rs=1 recharge_station_list={} for i=1,numberOfObjectsOfTypeShape,1 do objectName=simGetObjectName(objects[i]) if string.match(objectName, "RechargeStation") then recharge_station_list[rs]=objects[i] rs=rs+1 end end return recharge_station_list end if (sim_call_type==sim_childscriptcall_initialization) then battery_initial_level=simGetScriptSimulationParameter(sim_handle_self,'batteryInitialLevel') -- Initial battery value working_time=simGetScriptSimulationParameter(sim_handle_self,'workingTime') -- Time the battery lasts in seconds of simulation time discharge_constant=-battery_initial_level/working_time battery_level=tonumber(battery_initial_level) --Battery current level time_to_recharge=simGetScriptSimulationParameter(sim_handle_self,'timeToRecharge') -- The time it takes to recharche a baterry from 0% to 100% recharge_constant=battery_initial_level/time_to_recharge first_at_recharge=true first_at_discharge=true -- http://www.coppeliarobotics.com/helpFiles/en/accessingGeneralObjects.htm batteryObject=simGetObjectHandle('Battery') result=simSetShapeColor(batteryObject,nil,0,{0,1,0}) vehicleReference=simGetObjectHandle('youBot_vehicleReference') minimumDistanceForRecharging=0.35 --If the robot is farther than this from the recharger, it won't recharge --print('minimumDistanceForRecharging: ',minimumDistanceForRecharging) recharge_station_list=getListOfRechargeStations() --print ("recharge_station_list: ",recharge_station_list[1]," , ",recharge_station_list[2]," , ",recharge_station_list[3],", ...") end if (sim_call_type==sim_childscriptcall_actuation) then -- TODO: should we stop the robot when battery level reaches zero? -- TODO: should we take into account also the orientation between recharger and robot? -- Find closest recharger if(recharge_station_list~=nil)and(recharge_station_list~={})then number_of_recharge_stations=table.getn(recharge_station_list) else number_of_recharge_stations=0 end if(number_of_recharge_stations>0)then-- at least one recharge station in this scene closestRsHandle=recharge_station_list[1] relativePosition=simGetObjectPosition (closestRsHandle,vehicleReference) horizontalDistance=math.sqrt(relativePosition[1]^2+relativePosition[2]^2) closestDistance=horizontalDistance if(number_of_recharge_stations>1)then for i=2,number_of_recharge_stations,1 do relativePosition=simGetObjectPosition (recharge_station_list[i],vehicleReference) horizontalDistance=math.sqrt(relativePosition[1]^2+relativePosition[2]^2) if(horizontalDistance<closestDistance)then closestDistance=horizontalDistance closestRsHandle=recharge_station_list[i] end end end end if(battery_level~=nil)then t=simGetSimulationTime() --print('battery_level: ',battery_level) if((number_of_recharge_stations>0)and(closestDistance<=minimumDistanceForRecharging))then if(first_at_recharge)then b = battery_level-recharge_constant*t first_at_recharge=false first_at_discharge=true end tempBat=recharge_constant*t+b if(tempBat<100) then battery_level=tempBat else battery_level=tonumber(battery_initial_level) end else if(first_at_discharge)then b = battery_level-discharge_constant*t first_at_recharge=true first_at_discharge=false end tempBat=discharge_constant*t+b if(tempBat>0) then battery_level=tempBat else battery_level=0 end end --Change color of battery to visually represent how charged it is if((battery_level)<(battery_initial_level/2))then g = (2/battery_initial_level)*battery_level else g=1 end if(battery_level>(battery_initial_level/2))then r = -2*battery_level/battery_initial_level + 2 else r = 1 end result=simSetShapeColor(batteryObject,nil,0,{r,g,0}) end end if (sim_call_type==sim_childscriptcall_sensing) then -- Put your main SENSING code here end if (sim_call_type==sim_childscriptcall_cleanup) then -- Put some restoration code here end --Returns Battery parameters getBatteryProperties = function() --battery_initial_level=tostring(simGetScriptSimulationParameter(sim_handle_self,'batteryInitialLevel')) -- Initial battery value working_time=tostring(simGetScriptSimulationParameter(sim_handle_self,'workingTime')) -- Time the battery lasts in seconds of simulation time time_to_recharge=tostring(simGetScriptSimulationParameter(sim_handle_self,'timeToRecharge')) -- The time it takes to recharche a baterry from 0% to 100% return {1}, {}, {working_time, time_to_recharge}, "" end --Sets Battery parameters setBatteryProperties = function(inInts, inFloats, inStrings, inBuffer) simSetScriptSimulationParameter(sim_handle_self,'workingTime',inInts[1])--working_time) working_time = inInts[1] simSetScriptSimulationParameter(sim_handle_self,'timeToRecharge',inInts[2])--time_to_recharge) time_to_discharge = inInts[2] discharge_constant=-battery_initial_level/working_time recharge_constant=battery_initial_level/time_to_recharge return {1}, {}, {}, "" end --Returns Battery status getBatteryLevel = function(inInts, inFloats, inStrings, inBuffer) return {1, battery_level}, {}, {}, "" end
-- -- Please see the readme.txt file included with this distribution for -- attribution and copyright information. -- function onInit() -- REGISTER A GENERAL HANDLER ChatManager.registerRollHandler("", processDiceLanded); end --function onClose() -- UNREGISTER A GENERAL HANDLER --ChatManager.unregisterRollHandler("", processDiceLanded); -- UNREGISTER SPECIFIC HANDLERS --ChatManager.unregisterRollHandler("save", processSaveRoll); --ChatManager.unregisterRollHandler("autosave", processSaveRoll); --ChatManager.unregisterRollHandler("recharge", processRechargeRoll); --end function processPercentiles(draginfo) local aDragDieList = draginfo.getDieList(); if not aDragDieList then return nil; end local aD100Indexes = {}; local aD10Indexes = {}; for k, v in pairs(aDragDieList) do if v["type"] == "d100" then table.insert(aD100Indexes, k); elseif v["type"] == "d10" then table.insert(aD10Indexes, k); end end local nMaxMatch = #aD100Indexes; if #aD10Indexes < nMaxMatch then nMaxMatch = #aD10Indexes; end if nMaxMatch <= 0 then return aDragDieList; end local nMatch = 1; local aNewDieList = {}; for k, v in pairs(aDragDieList) do if v["type"] == "d100" then if nMatch > nMaxMatch then table.insert(aNewDieList, v); else v["result"] = aDragDieList[aD100Indexes[nMatch]]["result"] + aDragDieList[aD10Indexes[nMatch]]["result"]; table.insert(aNewDieList, v); nMatch = nMatch + 1; end elseif v["type"] == "d10" then local bInsert = true; for i = 1, nMaxMatch do if aD10Indexes[i] == k then bInsert = false; end end if bInsert then table.insert(aNewDieList, v); end else table.insert(aNewDieList, v); end end return aNewDieList; end function createRollMessage(draginfo, rSourceActor) -- UNPACK DATA local sType = draginfo.getType(); local sDesc = draginfo.getDescription(); -- DETERMINE META-ROLL MODIFIERS -- NOTE: SHOULD BE MUTUALLY EXCLUSIVE local isDiceTower = string.match(sDesc, "^%[TOWER%]"); local isGMOnly = string.match(sDesc, "^%[GM%]"); -- APPLY MOD STACK, IF APPROPRIATE if not isDiceTower and not (sType == "autosave") and not (sType == "recharge") then ModifierStack.applyToRoll(draginfo); sDesc = draginfo.getDescription(); end -- DICE TOWER AND GM FLAG HANDLING if isDiceTower then -- MAKE SURE SOURCE ACTOR IS EMPTY rSourceActor = nil; elseif isGMOnly then -- STRIP GM FROM DESCRIPTION sDesc = string.sub(sDesc, 6); end -- Build the basic message to deliver local rMessage = ChatManager.createBaseMessage(rSourceActor); rMessage.text = rMessage.text .. sDesc; rMessage.dice = processPercentiles(draginfo) or {}; rMessage.diemodifier = draginfo.getNumberData(); -- Check to see if this roll should be secret (GM or dice tower tag) if isDiceTower then rMessage.dicesecret = true; rMessage.sender = ""; rMessage.icon = "dicetower_icon"; elseif isGMOnly then rMessage.dicesecret = true; rMessage.text = "[GM] " .. rMessage.text; elseif User.isHost() and OptionsManager.isOption("REVL", "off") then rMessage.dicesecret = true; end -- RETURN MESSAGE RECORD return rMessage; end function processDiceLanded(draginfo) -- Figure out what type of roll we're handling local dragtype = draginfo.getType(); local dragdesc = draginfo.getDescription(); -- Get actors local rSourceActor, rTargetActor = CombatCommon.getActionActors(draginfo); local bMultiRoll = false; -- BUILD THE BASIC ROLL MESSAGE local entry = createRollMessage(draginfo, rSourceActor); -- BUILD TOTALS AND HANDLE SPECIAL CONDITIONS FOR DAMAGE ROLLS local add_total = true; local total = 0; -- BUILD BASIC TOTAL FOR NON-DAMAGE ROLLS for i,d in ipairs(entry.dice) do total = total + d.result; end -- Add the roll modifier to the total total = total + entry.diemodifier; -- Add the total, if the auto-total option is on if OptionsManager.isOption("TOTL", "on") and add_total then entry.dicedisplay = 1; end local result_str = ""; -- Add any special results if result_str ~= "" then entry.text = entry.text .. result_str; end -- Deliver the chat entry ChatManager.deliverMessage(entry); if dragtype == "init" then -- Set the initiative for this creature in the combat tracker if rSourceActor then NodeManager.set(rSourceActor.nodeCT, "initresult", "number", total); end end end
local function object(parent) local obj = {} obj.__index = parent return setmetatable(obj, obj) end local Entity = object() Entity._entity = true function Entity:__call(...) local obj = object(self) obj:call('new', ...) return obj end function Entity:extend() local cls = object(self) cls.__call = self.__call return cls end function Entity:call(name, ...) local func = self[name] if type(func) == 'function' then func(self, ...) end end function Entity:callTree(name, ...) self:call(name, ...) for key, child in pairs(self) do if key ~= 'parent' and key ~= '__index' then if type(child) == 'table' and child._entity then if not child.skip then child.parent = self child:callTree(name, ...) child.parent = nil end child.skip = nil end end end self:call(name .. 'End', ...) end return Entity
local M = {} local function make_specs(specs_name, ness) local background = vim.opt.background:get() package.loaded[specs_name] = nil if ness == nil then return require(specs_name) end vim.g[specs_name .. "_" .. background .. "ness"] = ness local specs = require(specs_name) vim.g[specs_name .. "_" .. background .. "ness"] = nil return specs end local function make_env(colorscheme) local specs_name = colorscheme.specs local builder = require "shipwright.builder" local p = require(specs_name .. ".palette")[colorscheme.background] local env = { name = colorscheme.name, specs_name = specs_name, p = p, background = colorscheme.background, description = colorscheme.description, term = require("zenbones.term").colors_map(p), transform = require "zenbones.shipwright.transform", } vim.opt.background = colorscheme.background env.specs = make_specs(specs_name) local ness = colorscheme.background == "light" and { "dim", "bright" } or { "stark", "warm" } env["specs_" .. ness[1]] = make_specs(specs_name, ness[1]) env["specs_" .. ness[2]] = make_specs(specs_name, ness[2]) return builder.make_env(env) end local function make_build_fn(file) return loadfile(string.format("lua/zenbones/shipwright/runners/%s.lua", file)) end local function make_runners(config) if not config.background then return { setfenv( make_build_fn(config.file), make_env { name = config.name .. "_light", specs = config.name, background = "light", description = config.description, } ), setfenv( make_build_fn(config.file), make_env { name = config.name .. "_dark", specs = config.name, background = "dark", description = config.description, } ), } end return { setfenv( make_build_fn(config.file), make_env { name = config.name, specs = config.name, background = config.background, description = config.description, } ), } end M.run = function() local runner_files = { "vim", "iterm", "alacritty", "kitty", "wezterm", "tmux", "windows_terminal", "foot", "lualine", "lightline", } local colorschemes = vim.fn.json_decode(vim.fn.readfile "zenbones.json") for _, colorscheme in ipairs(colorschemes) do for _, file in ipairs(runner_files) do if not vim.tbl_contains(colorscheme.exclude or {}, file) then colorscheme.file = file for _, runner in ipairs(make_runners(colorscheme)) do assert(pcall(runner)) end end end end end return M
local playerMeta = FindMetaTable("Player"); PLUGIN:SetGlobalAlias("cwDiseases"); PLUGIN.version = "r8" Clockwork.kernel:IncludePrefixed("cl_hooks.lua"); Clockwork.kernel:IncludePrefixed("sh_hooks.lua"); Clockwork.kernel:IncludePrefixed("sv_hooks.lua"); -- Called when the schema has been loaded. function PLUGIN:ClockworkSchemaLoaded() for k, v in pairs(Clockwork.plugin.stored) do if (!Clockwork.plugin:IsDisabled(v.name) and !Clockwork.plugin:IsUnloaded(v.name)) then local pluginDirectory = v:GetBaseDir().."/diseases/"; Clockwork.kernel:IncludeDirectory(pluginDirectory); end; end; end; if SERVER then function PLUGIN:CheckVersion() MsgC(Color(46, 204, 113), "-> The diseases plugin has been initialized.\n"); MsgC(Color(236, 240, 241), "-> Version: "..self.version.."\n"); MsgC(Color(236, 240, 241), "-> Checking if the plugin is up to date...\n"); http.Fetch("https://dl.dropbox.com/s/tj75dyfirq0v8sx/clockwork_plugins_tracker.txt", function(body) local info = string.Explode("\n", body); local versions = {}; for k,v in pairs(info) do local version_info = string.Explode(": ", v); versions[version_info[1]] = version_info[2]; end if versions["cwDiseases"] then if versions["cwDiseases"] == self.version then MsgC(Color(46, 204, 113), "-> The diseases plugin is up to date!\n"); else MsgC(Color(231, 76, 60), "! Diseases is out of date!\n"); MsgC(Color(236, 240, 241), "-> Current version: "..self.version.."\n"); MsgC(Color(236, 240, 241), "-> Newest version: "..versions["cwDiseases"].."\n"); end else MsgC(Color(231, 76, 60), "! Failed to fetch release information!\n"); end end, function() MsgC(Color(231, 76, 60), "! Failed to fetch version tracker!\n"); end); end; function PLUGIN:Initialize() self:CheckVersion(); end; end if (SERVER) then Clockwork.config:Add("diseases_enabled", true); Clockwork.config:Add("diseases_temporary_min", 1); Clockwork.config:Add("diseases_temporary_max", 2); Clockwork.config:Add("diseases_contact_radius", 64); Clockwork.config:Add("diseases_base_infection_chance", 30); Clockwork.config:Add("diseases_contact_infect_interval", 10); Clockwork.config:Add("diseases_contact_time_limit", 1); Clockwork.config:Add("diseases_airborne_infect_interval", 30); Clockwork.config:Add("diseases_lethality_override", false); Clockwork.config:Add("diseases_lethaltiy_interval", 15); Clockwork.config:Add("diseases_sick_time_min", 2); Clockwork.config:Add("diseases_sick_time_max", 4); else Clockwork.config:AddToSystem("Enable diseases", "diseases_enabled", "Whether or not the diseases system should be enabled.", true); Clockwork.config:AddToSystem("Disease temporary effect minimum", "diseases_temporary_min", "The minimum amount of time in minutes before a temporary effect occurs.", 1, 9); Clockwork.config:AddToSystem("Disease temporary effect maximum", "diseases_temporary_max", "The maximum amount of time in minutes before a temporary effect occurs.", 2, 10); Clockwork.config:AddToSystem("Disease contact radius", "diseases_contact_radius", "The distance someone has to be to a player for it to be considered contact.", 64, 128); Clockwork.config:AddToSystem("Base infection chance", "diseases_base_infection_chance", "The base infection chance.", 0, 70); Clockwork.config:AddToSystem("Contact infection interval", "diseases_contact_infect_interval", "The approximate interval in minutes between each chance of being infected by contact.", 10, 120); Clockwork.config:AddToSystem("Contact time limit", "diseases_contact_time_limit", "How long - in minutes - you have to stand near someone infected until it counts as contact.", 2, 20); Clockwork.config:AddToSystem("Airborne infection interval", "diseases_airborne_infect_interval", "The approximate interval in minutes between each chance of being infected through the air.", 30, 120); Clockwork.config:AddToSystem("Override disease lethality", "diseases_lethality_override", "Whether or not to override automatic handling of disease lethality", false); Clockwork.config:AddToSystem("Disease lethality effect interval", "diseases_lethality_interval", "The interval in minutes between a disease's lethality affecting someone.", 15, 30); Clockwork.config:AddToSystem("Sick time minimum", "diseases_sick_time_min", "The minimum time in hours before a disease wears off.", 2, 10); Clockwork.config:AddToSystem("Sick time maximum", "diseases_sick_time_max", "The maximum time in hours before a disease wears off.", 4, 20); end;
local hello = require("plugins.HelloWorld.hello") return { name = "HelloWorld", description = "Hello World is an example Clank Plugin", version = { major = 0, minor = 1, patch = 0 }, depends = {}, events = { PLUGIN_INIT_EVENT = hello.init, PLUGIN_SHUTDOWN_EVENT = hello.shutdown, TICK_EVENT = hello.onTick, CONNECT_EVENT = hello.onConnect, DISCONNECT_EVENT = hello.onDisconnect }, -- run_on = 0x01 | 0x02 | 0x04 | 0x08 | 0x10 run_on = { "MEDIUS_UNIVERSE_INFORMATION_SERVER", "MEDIUS_AUTHENTICATION_SERVER", "MEDIUS_LOBBY_SERVER", "DME_SERVER", "NAT_SERVER" }, commands = { hello = { description = "Says hello!", handler = hello.command.hello }, luatime = { description = "Prints the Lua os.time()", handler = hello.command.luatime } } }
local GameWeapon = {} GameWeapon.__index = GameWeapon function GameWeapon.create() local weapon = {} -- our new object setmetatable(weapon,GameWeapon) -- make GameWeapon handle lookup weapon.bulletCount = 20 -- initialize our object weapon.weaponChargingRate=0.02 weapon.weaponSpeed=30 weapon.weaponImpact=10 weapon.weaponPenetration=10 return weapon end function GameWeapon:getBulletCount() return self.bulletCount end function GameWeapon:setBulletCount(bulletCount) self.bulletCount=bulletCount end function GameWeapon:getWeaponChargingRate() return self.weaponChargingRate end function GameWeapon:setWeaponChargingRate(rate) self.weaponChargingRate=rate end function GameWeapon:setWeaponImpact(impact) self.weaponImpact=impact end function GameWeapon:getWeaponImpact() return self.weaponImpact end function GameWeapon:setWeaponPenetration(penetration) self.weaponPenetration=penetration end function GameWeapon:getWeaponPenetration() return self.weaponPenetration end function GameWeapon:hasBullets() if self.bulletCount > 0 then return 1 else return 0 end end function GameWeapon:setMaxBulletCount(bulletCount) self.bulletCount=bulletCount end function GameWeapon:setWeaponSpeed(speed) self.weaponSpeed=speed end function GameWeapon:getWeaponSpeed() return self.weaponSpeed end return GameWeapon
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --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 Lesser General Public License for --more details. --You should have received a copy of the GNU Lesser General --Public License along with this program; if not, write to --the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA --Linking Engine3 statically or dynamically with other modules --is making a combined work based on Engine3. --Thus, the terms and conditions of the GNU Lesser General Public License --cover the whole combination. --In addition, as a special exception, the copyright holders of Engine3 --give you permission to combine Engine3 program with free software --programs or libraries that are released under the GNU LGPL and with --code included in the standard release of Core3 under the GNU LGPL --license (or modified versions of such code, with unchanged license). --You may copy and distribute such a system following the terms of the --GNU LGPL for Engine3 and the licenses of the other code concerned, --provided that you include the source code of that other code when --and as the GNU LGPL requires distribution of source code. --Note that people who make modified versions of Engine3 are not obligated --to grant this special exception for their modified versions; --it is their choice whether to do so. The GNU Lesser General Public License --gives permission to release a modified version without this exception; --this exception also makes it possible to release a modified version --Children folder includes -- Server Objects includeFile("tangible/furniture/all/bestine_quest_imp_banner.lua") includeFile("tangible/furniture/all/bestine_quest_statue.lua") includeFile("tangible/furniture/all/event_flag_game_imp_banner.lua") includeFile("tangible/furniture/all/event_flag_game_neut_banner.lua") includeFile("tangible/furniture/all/event_flag_game_reb_banner.lua") includeFile("tangible/furniture/all/frn_all_banner_rebel.lua") includeFile("tangible/furniture/all/frn_all_bed_lg_s1.lua") includeFile("tangible/furniture/all/frn_all_bed_lg_s2.lua") includeFile("tangible/furniture/all/frn_all_bed_sm_s1.lua") includeFile("tangible/furniture/all/frn_all_bed_sm_s2.lua") includeFile("tangible/furniture/all/frn_all_chair_kitchen_s1.lua") includeFile("tangible/furniture/all/frn_all_chair_kitchen_s2.lua") includeFile("tangible/furniture/all/frn_all_chair_meatal_wheeled_s1.lua") includeFile("tangible/furniture/all/frn_all_chair_metal_s1.lua") includeFile("tangible/furniture/all/frn_all_chair_recliner_s1.lua") includeFile("tangible/furniture/all/frn_all_chair_upholstered_s1.lua") includeFile("tangible/furniture/all/frn_all_chair_wooden_s1.lua") includeFile("tangible/furniture/all/frn_all_chair_wooden_s2.lua") includeFile("tangible/furniture/all/frn_all_command_console.lua") includeFile("tangible/furniture/all/frn_all_couch_divan_s1.lua") includeFile("tangible/furniture/all/frn_all_couch_futon_s1.lua") includeFile("tangible/furniture/all/frn_all_couch_lg_s1.lua") includeFile("tangible/furniture/all/frn_all_couch_lg_s2.lua") includeFile("tangible/furniture/all/frn_all_couch_love_seat_s1.lua") includeFile("tangible/furniture/all/frn_all_couch_love_seat_s2.lua") includeFile("tangible/furniture/all/frn_all_couch_ottoman_s1.lua") includeFile("tangible/furniture/all/frn_all_couch_sm_s1.lua") includeFile("tangible/furniture/all/frn_all_data_terminal_free_s1.lua") includeFile("tangible/furniture/all/frn_all_data_terminal_free_s2.lua") includeFile("tangible/furniture/all/frn_all_data_terminal_wall_s1.lua") includeFile("tangible/furniture/all/frn_all_data_terminal_wall_s2.lua") includeFile("tangible/furniture/all/frn_all_data_terminal_wall_s3.lua") includeFile("tangible/furniture/all/frn_all_decorative_lg_s1.lua") includeFile("tangible/furniture/all/frn_all_decorative_lg_s2.lua") includeFile("tangible/furniture/all/frn_all_decorative_sm_s1.lua") includeFile("tangible/furniture/all/frn_all_decorative_sm_s2.lua") includeFile("tangible/furniture/all/frn_all_decorative_sm_s3.lua") includeFile("tangible/furniture/all/frn_all_decorative_sm_s4.lua") includeFile("tangible/furniture/all/frn_all_desk_map_table.lua") includeFile("tangible/furniture/all/frn_all_desk_map_table_insert.lua") includeFile("tangible/furniture/all/frn_all_desk_radar_topology_screen.lua") includeFile("tangible/furniture/all/frn_all_gaming_kiosk_s01.lua") includeFile("tangible/furniture/all/frn_all_jedi_council_seat.lua") includeFile("tangible/furniture/all/frn_all_lamp_candlestick_free_s01.lua") includeFile("tangible/furniture/all/frn_all_lamp_candlestick_free_s01_lit.lua") includeFile("tangible/furniture/all/frn_all_lamp_candlestick_free_s02.lua") includeFile("tangible/furniture/all/frn_all_lamp_candlestick_free_s02_lit.lua") includeFile("tangible/furniture/all/frn_all_lamp_candlestick_tbl_s01.lua") includeFile("tangible/furniture/all/frn_all_lamp_candlestick_tbl_s02.lua") includeFile("tangible/furniture/all/frn_all_lamp_candlestick_tbl_s03.lua") includeFile("tangible/furniture/all/frn_all_lamp_desk_s01.lua") includeFile("tangible/furniture/all/frn_all_lamp_desk_s01_lit.lua") includeFile("tangible/furniture/all/frn_all_lamp_desk_s02.lua") includeFile("tangible/furniture/all/frn_all_lamp_desk_s02_lit.lua") includeFile("tangible/furniture/all/frn_all_lamp_free_s01.lua") includeFile("tangible/furniture/all/frn_all_lamp_free_s01_lit.lua") includeFile("tangible/furniture/all/frn_all_lamp_free_s02.lua") includeFile("tangible/furniture/all/frn_all_lamp_free_s02_lit.lua") includeFile("tangible/furniture/all/frn_all_lamp_free_s03.lua") includeFile("tangible/furniture/all/frn_all_lamp_free_s03_lit.lua") includeFile("tangible/furniture/all/frn_all_lamp_free_s04.lua") includeFile("tangible/furniture/all/frn_all_lamp_free_s04_lit.lua") includeFile("tangible/furniture/all/frn_all_lamp_table_s01.lua") includeFile("tangible/furniture/all/frn_all_lamp_table_s02.lua") includeFile("tangible/furniture/all/frn_all_lamp_table_s03.lua") includeFile("tangible/furniture/all/frn_all_lamp_tatt_s01.lua") includeFile("tangible/furniture/all/frn_all_lamp_tatt_s01_lit.lua") includeFile("tangible/furniture/all/frn_all_lamp_tbl_s01.lua") includeFile("tangible/furniture/all/frn_all_lamp_tbl_s01_lit.lua") includeFile("tangible/furniture/all/frn_all_lamp_tbl_s02.lua") includeFile("tangible/furniture/all/frn_all_lamp_tbl_s02_lit.lua") includeFile("tangible/furniture/all/frn_all_lamp_tbl_s03.lua") includeFile("tangible/furniture/all/frn_all_lamp_tbl_s03_lit.lua") includeFile("tangible/furniture/all/frn_all_light_death_watch.lua") includeFile("tangible/furniture/all/frn_all_light_lamp_candlestick_free_s01.lua") includeFile("tangible/furniture/all/frn_all_light_lamp_candlestick_free_s02.lua") includeFile("tangible/furniture/all/frn_all_light_lamp_candlestick_tbl_s01.lua") includeFile("tangible/furniture/all/frn_all_light_lamp_candlestick_tbl_s02.lua") includeFile("tangible/furniture/all/frn_all_light_lamp_candlestick_tbl_s02_red.lua") includeFile("tangible/furniture/all/frn_all_light_lamp_candlestick_tbl_s03.lua") includeFile("tangible/furniture/all/frn_all_light_lamp_desk_s01.lua") includeFile("tangible/furniture/all/frn_all_light_lamp_desk_s02.lua") includeFile("tangible/furniture/all/frn_all_light_lamp_free_s01.lua") includeFile("tangible/furniture/all/frn_all_light_lamp_free_s02.lua") includeFile("tangible/furniture/all/frn_all_light_lamp_free_s03.lua") includeFile("tangible/furniture/all/frn_all_light_lamp_free_s04.lua") includeFile("tangible/furniture/all/frn_all_light_lamp_table_s01.lua") includeFile("tangible/furniture/all/frn_all_light_lamp_table_s02.lua") includeFile("tangible/furniture/all/frn_all_light_lamp_table_s03.lua") includeFile("tangible/furniture/all/frn_all_light_lamp_tatt_s01.lua") includeFile("tangible/furniture/all/frn_all_plant_potted_lg_s1.lua") includeFile("tangible/furniture/all/frn_all_plant_potted_lg_s2.lua") includeFile("tangible/furniture/all/frn_all_plant_potted_lg_s3.lua") includeFile("tangible/furniture/all/frn_all_plant_potted_lg_s4.lua") includeFile("tangible/furniture/all/frn_all_potted_plants_sml_s01.lua") includeFile("tangible/furniture/all/frn_all_potted_plants_sml_s02.lua") includeFile("tangible/furniture/all/frn_all_potted_plants_sml_s03.lua") includeFile("tangible/furniture/all/frn_all_potted_plants_sml_s04.lua") includeFile("tangible/furniture/all/frn_all_potted_plants_sml_s05.lua") includeFile("tangible/furniture/all/frn_all_professor_desk.lua") includeFile("tangible/furniture/all/frn_all_rug_rectangle_large_style_01.lua") includeFile("tangible/furniture/all/frn_all_rug_rectangle_large_style_02.lua") includeFile("tangible/furniture/all/frn_all_rug_rectangle_large_style_03.lua") includeFile("tangible/furniture/all/frn_all_rug_rectangle_large_style_04.lua") includeFile("tangible/furniture/all/frn_all_rug_rectangle_large_style_05.lua") includeFile("tangible/furniture/all/frn_all_table_s01.lua") includeFile("tangible/furniture/all/frn_all_table_s02.lua") includeFile("tangible/furniture/all/frn_all_table_s03.lua") includeFile("tangible/furniture/all/frn_all_technical_console_s01.lua") includeFile("tangible/furniture/all/frn_all_technical_console_s02.lua") includeFile("tangible/furniture/all/frn_all_throwpillow_med_s01.lua") includeFile("tangible/furniture/all/frn_all_throwpillow_med_s02.lua") includeFile("tangible/furniture/all/frn_all_throwpillow_med_s03.lua") includeFile("tangible/furniture/all/frn_all_tiki_torch_s1.lua") includeFile("tangible/furniture/all/frn_all_toolchest_lg_s01.lua") includeFile("tangible/furniture/all/frn_all_toolchest_med_s01.lua") includeFile("tangible/furniture/all/frn_all_tree_potted_s1.lua") includeFile("tangible/furniture/all/frn_all_tree_potted_s2.lua") includeFile("tangible/furniture/all/frn_bench_generic.lua")
local env = environment() local l = mk_param_univ("l") local A = Local("A", mk_sort(l)) local a = Local("a", A) local b = Local("b", A) local P = Local("P", mk_arrow(A, Prop)) env = add_decl(env, mk_definition("id", {l}, Pi(A, mk_arrow(A, mk_arrow(A, Prop))), Fun(A, a, b, Pi(P, mk_arrow(P(a), P(b)))))) local id_l = Const("id", {l}) local H = Local("H", P(a)) env = add_decl(env, mk_theorem("refl", {l}, Pi(A, a, id_l(A, a, a)), Fun(A, a, P, H, H))) local H1 = Local("H1", id_l(A, a, b)) local H2 = Local("H2", P(a)) env = add_decl(env, mk_theorem("subst", {l}, Pi(A, P, a, b, H1, H2, P(b)), Fun(A, P, a, b, H1, H2, H1(P, H2)))) local refl_l = Const("refl", {l}) local subst_l = Const("subst", {l}) local x = Local("x", A) local H = Local("H", id_l(A, a, b)) env = add_decl(env, mk_theorem("symm", {l}, Pi(A, a, b, H, id_l(A, b, a)), Fun(A, a, b, H, subst_l(A, Fun(x, id_l(A, x, a)), a, b, H, refl_l(A, a))))) local c = Local("c", A) local H1 = Local("H1", id_l(A, a, b)) local H2 = Local("H2", id_l(A, b, c)) env = add_decl(env, mk_theorem("trans", {l}, Pi(A, a, b, c, H1, H2, id_l(A, a, c)), Fun(A, a, b, c, H1, H2, subst_l(A, Fun(x, id_l(A, a, x)), b, c, H2, H1)))) local symm_l = Const("symm", {l}) local trans_l = Const("trans", {l}) print(env:get("trans"):value()) env = env:add_universe("u") local u = mk_global_univ("u") local tc = type_checker(env) print(tc:check(Const("trans", {u}))) local id_u = Const("id", {u}) local refl_u = Const("refl", {u}) local subst_u = Const("subst", {u}) local symm_u = Const("symm", {u}) local trans_u = Const("trans", {u}) local A = Local("A", mk_sort(u)) local d = Local("d", A) local H1 = Local("H1", id_u(A, b, a)) local H2 = Local("H2", id_u(A, b, c)) local H3 = Local("H3", id_u(A, c, d)) print(tc:check(Fun(A, a, b, c, d, H1, H2, H3, trans_u(A, a, b, d, symm_u(A, b, a, H1), trans_u(A, b, c, d, H2, H3))))) local g = name_generator("tst") local tc2 = type_checker(env, g) print("=================") local A = Local("A", mk_sort(u)) local mf_ty = mk_metavar("f_ty", Pi(A, mk_sort(mk_meta_univ("l_f")))) local f = Local("f", mf_ty(A)) local a = Local("a", A) local mA1 = mk_metavar("A1", Pi(A, f, a, mk_sort(mk_meta_univ("l_A1")))) print(tc2:check(Fun(A, f, a, id_u(mA1(A, f, a), f(a), a))))
--[[---------------------------------------------------------------------------- This file is part of Friday Night Funkin' Rewritten by HTV04 ------------------------------------------------------------------------------]] return Sprite ( love.graphics.newImage("images/GF_assets.png"), -- Automatically generated from GF_assets.xml { {x = 0, y = 0, width = 699, height = 657, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 657}, -- 1: GF Cheer0000 {x = 709, y = 0, width = 703, height = 657, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 2: GF Cheer0001 {x = 1422, y = 0, width = 703, height = 654, offsetX = 0, offsetY = -3, offsetWidth = 703, offsetHeight = 657}, -- 3: GF Cheer0002 {x = 2135, y = 0, width = 699, height = 654, offsetX = -2, offsetY = -3, offsetWidth = 703, offsetHeight = 657}, -- 4: GF Cheer0003 {x = 2844, y = 0, width = 699, height = 654, offsetX = -2, offsetY = -3, offsetWidth = 703, offsetHeight = 657}, -- 5: GF Cheer0004 {x = 2844, y = 0, width = 699, height = 654, offsetX = -2, offsetY = -3, offsetWidth = 703, offsetHeight = 657}, -- 6: GF Cheer0005 {x = 2844, y = 0, width = 699, height = 654, offsetX = -2, offsetY = -3, offsetWidth = 703, offsetHeight = 657}, -- 7: GF Cheer0006 {x = 2844, y = 0, width = 699, height = 654, offsetX = -2, offsetY = -3, offsetWidth = 703, offsetHeight = 657}, -- 8: GF Cheer0007 {x = 2844, y = 0, width = 699, height = 654, offsetX = -2, offsetY = -3, offsetWidth = 703, offsetHeight = 657}, -- 9: GF Cheer0008 {x = 2844, y = 0, width = 699, height = 654, offsetX = -2, offsetY = -3, offsetWidth = 703, offsetHeight = 657}, -- 10: GF Cheer0009 {x = 2844, y = 0, width = 699, height = 654, offsetX = -2, offsetY = -3, offsetWidth = 703, offsetHeight = 657}, -- 11: GF Cheer0010 {x = 2844, y = 0, width = 699, height = 654, offsetX = -2, offsetY = -3, offsetWidth = 703, offsetHeight = 657}, -- 12: GF Cheer0011 {x = 2844, y = 0, width = 699, height = 654, offsetX = -2, offsetY = -3, offsetWidth = 703, offsetHeight = 657}, -- 13: GF Cheer0012 {x = 2844, y = 0, width = 699, height = 654, offsetX = -2, offsetY = -3, offsetWidth = 703, offsetHeight = 657}, -- 14: GF Cheer0013 {x = 2844, y = 0, width = 699, height = 654, offsetX = -2, offsetY = -3, offsetWidth = 703, offsetHeight = 657}, -- 15: GF Cheer0014 {x = 2844, y = 0, width = 699, height = 654, offsetX = -2, offsetY = -3, offsetWidth = 703, offsetHeight = 657}, -- 16: GF Cheer0015 {x = 2844, y = 0, width = 699, height = 654, offsetX = -2, offsetY = -3, offsetWidth = 703, offsetHeight = 657}, -- 17: GF Cheer0016 {x = 2844, y = 0, width = 699, height = 654, offsetX = -2, offsetY = -3, offsetWidth = 703, offsetHeight = 657}, -- 18: GF Cheer0017 {x = 2844, y = 0, width = 699, height = 654, offsetX = -2, offsetY = -3, offsetWidth = 703, offsetHeight = 657}, -- 19: GF Cheer0018 {x = 2844, y = 0, width = 699, height = 654, offsetX = -2, offsetY = -3, offsetWidth = 703, offsetHeight = 657}, -- 20: GF Cheer0019 {x = 2844, y = 0, width = 699, height = 654, offsetX = -2, offsetY = -3, offsetWidth = 703, offsetHeight = 657}, -- 21: GF Cheer0020 {x = 3553, y = 0, width = 699, height = 634, offsetX = -2, offsetY = -14, offsetWidth = 703, offsetHeight = 648}, -- 22: GF Dancing Beat0000 {x = 4262, y = 0, width = 703, height = 634, offsetX = 0, offsetY = -14, offsetWidth = 703, offsetHeight = 648}, -- 23: GF Dancing Beat0001 {x = 4975, y = 0, width = 703, height = 632, offsetX = 0, offsetY = -16, offsetWidth = 703, offsetHeight = 648}, -- 24: GF Dancing Beat0002 {x = 5688, y = 0, width = 699, height = 632, offsetX = -2, offsetY = -16, offsetWidth = 703, offsetHeight = 648}, -- 25: GF Dancing Beat0003 {x = 6397, y = 0, width = 699, height = 635, offsetX = -2, offsetY = -13, offsetWidth = 703, offsetHeight = 648}, -- 26: GF Dancing Beat0004 {x = 7106, y = 0, width = 699, height = 635, offsetX = -2, offsetY = -13, offsetWidth = 703, offsetHeight = 648}, -- 27: GF Dancing Beat0005 {x = 0, y = 667, width = 699, height = 637, offsetX = -2, offsetY = -11, offsetWidth = 703, offsetHeight = 648}, -- 28: GF Dancing Beat0006 {x = 709, y = 667, width = 699, height = 648, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 648}, -- 29: GF Dancing Beat0007 {x = 709, y = 667, width = 699, height = 648, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 648}, -- 30: GF Dancing Beat0008 {x = 709, y = 667, width = 699, height = 648, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 648}, -- 31: GF Dancing Beat0009 {x = 1418, y = 667, width = 699, height = 648, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 648}, -- 32: GF Dancing Beat0010 {x = 1418, y = 667, width = 699, height = 648, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 648}, -- 33: GF Dancing Beat0011 {x = 1418, y = 667, width = 699, height = 648, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 648}, -- 34: GF Dancing Beat0012 {x = 2127, y = 667, width = 699, height = 648, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 648}, -- 35: GF Dancing Beat0013 {x = 2127, y = 667, width = 699, height = 648, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 648}, -- 36: GF Dancing Beat0014 {x = 2836, y = 667, width = 699, height = 636, offsetX = -2, offsetY = -12, offsetWidth = 703, offsetHeight = 648}, -- 37: GF Dancing Beat0015 {x = 3545, y = 667, width = 703, height = 636, offsetX = 0, offsetY = -12, offsetWidth = 703, offsetHeight = 648}, -- 38: GF Dancing Beat0016 {x = 4258, y = 667, width = 703, height = 636, offsetX = 0, offsetY = -12, offsetWidth = 703, offsetHeight = 648}, -- 39: GF Dancing Beat0017 {x = 4971, y = 667, width = 699, height = 636, offsetX = -2, offsetY = -12, offsetWidth = 703, offsetHeight = 648}, -- 40: GF Dancing Beat0018 {x = 5680, y = 667, width = 699, height = 637, offsetX = -2, offsetY = -11, offsetWidth = 703, offsetHeight = 648}, -- 41: GF Dancing Beat0019 {x = 6389, y = 667, width = 699, height = 637, offsetX = -2, offsetY = -11, offsetWidth = 703, offsetHeight = 648}, -- 42: GF Dancing Beat0020 {x = 7098, y = 667, width = 699, height = 638, offsetX = -2, offsetY = -10, offsetWidth = 703, offsetHeight = 648}, -- 43: GF Dancing Beat0021 {x = 0, y = 1325, width = 699, height = 643, offsetX = -2, offsetY = -5, offsetWidth = 703, offsetHeight = 648}, -- 44: GF Dancing Beat0022 {x = 0, y = 1325, width = 699, height = 643, offsetX = -2, offsetY = -5, offsetWidth = 703, offsetHeight = 648}, -- 45: GF Dancing Beat0023 {x = 0, y = 1325, width = 699, height = 643, offsetX = -2, offsetY = -5, offsetWidth = 703, offsetHeight = 648}, -- 46: GF Dancing Beat0024 {x = 709, y = 1325, width = 699, height = 642, offsetX = -2, offsetY = -6, offsetWidth = 703, offsetHeight = 648}, -- 47: GF Dancing Beat0025 {x = 709, y = 1325, width = 699, height = 642, offsetX = -2, offsetY = -6, offsetWidth = 703, offsetHeight = 648}, -- 48: GF Dancing Beat0026 {x = 709, y = 1325, width = 699, height = 642, offsetX = -2, offsetY = -6, offsetWidth = 703, offsetHeight = 648}, -- 49: GF Dancing Beat0027 {x = 1418, y = 1325, width = 699, height = 642, offsetX = -2, offsetY = -6, offsetWidth = 703, offsetHeight = 648}, -- 50: GF Dancing Beat0028 {x = 1418, y = 1325, width = 699, height = 642, offsetX = -2, offsetY = -6, offsetWidth = 703, offsetHeight = 648}, -- 51: GF Dancing Beat0029 {x = 2127, y = 1325, width = 699, height = 635, offsetX = -2, offsetY = -13, offsetWidth = 703, offsetHeight = 648}, -- 52: GF Dancing Beat Hair Landing0000 {x = 2836, y = 1325, width = 703, height = 635, offsetX = 0, offsetY = -13, offsetWidth = 703, offsetHeight = 648}, -- 53: GF Dancing Beat Hair Landing0001 {x = 3549, y = 1325, width = 703, height = 619, offsetX = 0, offsetY = -29, offsetWidth = 703, offsetHeight = 648}, -- 54: GF Dancing Beat Hair Landing0002 {x = 4262, y = 1325, width = 699, height = 619, offsetX = -2, offsetY = -29, offsetWidth = 703, offsetHeight = 648}, -- 55: GF Dancing Beat Hair Landing0003 {x = 4971, y = 1325, width = 699, height = 607, offsetX = -2, offsetY = -41, offsetWidth = 703, offsetHeight = 648}, -- 56: GF Dancing Beat Hair Landing0004 {x = 5680, y = 1325, width = 699, height = 607, offsetX = -2, offsetY = -41, offsetWidth = 703, offsetHeight = 648}, -- 57: GF Dancing Beat Hair Landing0005 {x = 6389, y = 1325, width = 699, height = 626, offsetX = -2, offsetY = -22, offsetWidth = 703, offsetHeight = 648}, -- 58: GF Dancing Beat Hair Landing0006 {x = 709, y = 667, width = 699, height = 648, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 648}, -- 59: GF Dancing Beat Hair Landing0007 {x = 709, y = 667, width = 699, height = 648, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 648}, -- 60: GF Dancing Beat Hair Landing0008 {x = 709, y = 667, width = 699, height = 648, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 648}, -- 61: GF Dancing Beat Hair Landing0009 {x = 1418, y = 667, width = 699, height = 648, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 648}, -- 62: GF Dancing Beat Hair Landing0010 {x = 1418, y = 667, width = 699, height = 648, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 648}, -- 63: GF Dancing Beat Hair Landing0011 {x = 1418, y = 667, width = 699, height = 648, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 648}, -- 64: GF Dancing Beat Hair Landing0012 {x = 2127, y = 667, width = 699, height = 648, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 648}, -- 65: GF Dancing Beat Hair Landing0013 {x = 2127, y = 667, width = 699, height = 648, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 648}, -- 66: GF Dancing Beat Hair Landing0014 {x = 2836, y = 667, width = 699, height = 636, offsetX = -2, offsetY = -12, offsetWidth = 703, offsetHeight = 648}, -- 67: GF Dancing Beat Hair Landing0015 {x = 3545, y = 667, width = 703, height = 636, offsetX = 0, offsetY = -12, offsetWidth = 703, offsetHeight = 648}, -- 68: GF Dancing Beat Hair Landing0016 {x = 4258, y = 667, width = 703, height = 636, offsetX = 0, offsetY = -12, offsetWidth = 703, offsetHeight = 648}, -- 69: GF Dancing Beat Hair Landing0017 {x = 4971, y = 667, width = 699, height = 636, offsetX = -2, offsetY = -12, offsetWidth = 703, offsetHeight = 648}, -- 70: GF Dancing Beat Hair Landing0018 {x = 5680, y = 667, width = 699, height = 637, offsetX = -2, offsetY = -11, offsetWidth = 703, offsetHeight = 648}, -- 71: GF Dancing Beat Hair Landing0019 {x = 6389, y = 667, width = 699, height = 637, offsetX = -2, offsetY = -11, offsetWidth = 703, offsetHeight = 648}, -- 72: GF Dancing Beat Hair Landing0020 {x = 7098, y = 667, width = 699, height = 638, offsetX = -2, offsetY = -10, offsetWidth = 703, offsetHeight = 648}, -- 73: GF Dancing Beat Hair Landing0021 {x = 0, y = 1325, width = 699, height = 643, offsetX = -2, offsetY = -5, offsetWidth = 703, offsetHeight = 648}, -- 74: GF Dancing Beat Hair Landing0022 {x = 0, y = 1325, width = 699, height = 643, offsetX = -2, offsetY = -5, offsetWidth = 703, offsetHeight = 648}, -- 75: GF Dancing Beat Hair Landing0023 {x = 0, y = 1325, width = 699, height = 643, offsetX = -2, offsetY = -5, offsetWidth = 703, offsetHeight = 648}, -- 76: GF Dancing Beat Hair Landing0024 {x = 709, y = 1325, width = 699, height = 642, offsetX = -2, offsetY = -6, offsetWidth = 703, offsetHeight = 648}, -- 77: GF Dancing Beat Hair Landing0025 {x = 709, y = 1325, width = 699, height = 642, offsetX = -2, offsetY = -6, offsetWidth = 703, offsetHeight = 648}, -- 78: GF Dancing Beat Hair Landing0026 {x = 709, y = 1325, width = 699, height = 642, offsetX = -2, offsetY = -6, offsetWidth = 703, offsetHeight = 648}, -- 79: GF Dancing Beat Hair Landing0027 {x = 1418, y = 1325, width = 699, height = 642, offsetX = -2, offsetY = -6, offsetWidth = 703, offsetHeight = 648}, -- 80: GF Dancing Beat Hair Landing0028 {x = 1418, y = 1325, width = 699, height = 642, offsetX = -2, offsetY = -6, offsetWidth = 703, offsetHeight = 648}, -- 81: GF Dancing Beat Hair Landing0029 {x = 7098, y = 1325, width = 701, height = 636, offsetX = -45, offsetY = -13, offsetWidth = 748, offsetHeight = 649}, -- 82: GF Dancing Beat Hair blowing0000 {x = 0, y = 1978, width = 703, height = 636, offsetX = -45, offsetY = -13, offsetWidth = 748, offsetHeight = 649}, -- 83: GF Dancing Beat Hair blowing0001 {x = 713, y = 1978, width = 748, height = 628, offsetX = 0, offsetY = -21, offsetWidth = 748, offsetHeight = 649}, -- 84: GF Dancing Beat Hair blowing0002 {x = 1471, y = 1978, width = 699, height = 627, offsetX = -47, offsetY = -22, offsetWidth = 748, offsetHeight = 649}, -- 85: GF Dancing Beat Hair blowing0003 {x = 2180, y = 1978, width = 701, height = 638, offsetX = -45, offsetY = -11, offsetWidth = 748, offsetHeight = 649}, -- 86: GF Dancing Beat Hair blowing0004 {x = 2891, y = 1978, width = 701, height = 638, offsetX = -45, offsetY = -11, offsetWidth = 748, offsetHeight = 649}, -- 87: GF Dancing Beat Hair blowing0005 {x = 3602, y = 1978, width = 739, height = 636, offsetX = -7, offsetY = -13, offsetWidth = 748, offsetHeight = 649}, -- 88: GF Dancing Beat Hair blowing0006 {x = 4351, y = 1978, width = 699, height = 647, offsetX = -47, offsetY = -2, offsetWidth = 748, offsetHeight = 649}, -- 89: GF Dancing Beat Hair blowing0007 {x = 5060, y = 1978, width = 728, height = 639, offsetX = -18, offsetY = -10, offsetWidth = 748, offsetHeight = 649}, -- 90: GF Dancing Beat Hair blowing0008 {x = 5798, y = 1978, width = 699, height = 638, offsetX = -47, offsetY = -11, offsetWidth = 748, offsetHeight = 649}, -- 91: GF Dancing Beat Hair blowing0009 {x = 6507, y = 1978, width = 699, height = 649, offsetX = -47, offsetY = 0, offsetWidth = 748, offsetHeight = 649}, -- 92: GF Dancing Beat Hair blowing0010 {x = 6507, y = 1978, width = 699, height = 649, offsetX = -47, offsetY = 0, offsetWidth = 748, offsetHeight = 649}, -- 93: GF Dancing Beat Hair blowing0011 {x = 7216, y = 1978, width = 726, height = 641, offsetX = -20, offsetY = -8, offsetWidth = 748, offsetHeight = 649}, -- 94: GF Dancing Beat Hair blowing0012 {x = 0, y = 2637, width = 699, height = 648, offsetX = -47, offsetY = -1, offsetWidth = 748, offsetHeight = 649}, -- 95: GF Dancing Beat Hair blowing0013 {x = 709, y = 2637, width = 725, height = 640, offsetX = -21, offsetY = -9, offsetWidth = 748, offsetHeight = 649}, -- 96: GF Dancing Beat Hair blowing0014 {x = 1444, y = 2637, width = 699, height = 625, offsetX = -47, offsetY = -24, offsetWidth = 748, offsetHeight = 649}, -- 97: GF Dancing Beat Hair blowing0015 {x = 2153, y = 2637, width = 703, height = 634, offsetX = -45, offsetY = -15, offsetWidth = 748, offsetHeight = 649}, -- 98: GF Dancing Beat Hair blowing0016 {x = 2866, y = 2637, width = 703, height = 631, offsetX = -45, offsetY = -18, offsetWidth = 748, offsetHeight = 649}, -- 99: GF Dancing Beat Hair blowing0017 {x = 3579, y = 2637, width = 709, height = 623, offsetX = -37, offsetY = -26, offsetWidth = 748, offsetHeight = 649}, -- 100: GF Dancing Beat Hair blowing0018 {x = 4298, y = 2637, width = 699, height = 634, offsetX = -47, offsetY = -15, offsetWidth = 748, offsetHeight = 649}, -- 101: GF Dancing Beat Hair blowing0019 {x = 5007, y = 2637, width = 710, height = 626, offsetX = -36, offsetY = -23, offsetWidth = 748, offsetHeight = 649}, -- 102: GF Dancing Beat Hair blowing0020 {x = 5727, y = 2637, width = 699, height = 630, offsetX = -47, offsetY = -19, offsetWidth = 748, offsetHeight = 649}, -- 103: GF Dancing Beat Hair blowing0021 {x = 6436, y = 2637, width = 699, height = 646, offsetX = -47, offsetY = -3, offsetWidth = 748, offsetHeight = 649}, -- 104: GF Dancing Beat Hair blowing0022 {x = 6436, y = 2637, width = 699, height = 646, offsetX = -47, offsetY = -3, offsetWidth = 748, offsetHeight = 649}, -- 105: GF Dancing Beat Hair blowing0023 {x = 7145, y = 2637, width = 715, height = 638, offsetX = -31, offsetY = -11, offsetWidth = 748, offsetHeight = 649}, -- 106: GF Dancing Beat Hair blowing0024 {x = 0, y = 3295, width = 699, height = 647, offsetX = -47, offsetY = -2, offsetWidth = 748, offsetHeight = 649}, -- 107: GF Dancing Beat Hair blowing0025 {x = 709, y = 3295, width = 716, height = 639, offsetX = -30, offsetY = -10, offsetWidth = 748, offsetHeight = 649}, -- 108: GF Dancing Beat Hair blowing0026 {x = 1435, y = 3295, width = 699, height = 638, offsetX = -47, offsetY = -11, offsetWidth = 748, offsetHeight = 649}, -- 109: GF Dancing Beat Hair blowing0027 {x = 2144, y = 3295, width = 699, height = 646, offsetX = -47, offsetY = -3, offsetWidth = 748, offsetHeight = 649}, -- 110: GF Dancing Beat Hair blowing0028 {x = 2144, y = 3295, width = 699, height = 646, offsetX = -47, offsetY = -3, offsetWidth = 748, offsetHeight = 649}, -- 111: GF Dancing Beat Hair blowing0029 {x = 2853, y = 3295, width = 699, height = 631, offsetX = -2, offsetY = -6, offsetWidth = 703, offsetHeight = 637}, -- 112: GF Down Note0000 {x = 3562, y = 3295, width = 703, height = 631, offsetX = 0, offsetY = -6, offsetWidth = 703, offsetHeight = 637}, -- 113: GF Down Note0001 {x = 4275, y = 3295, width = 703, height = 636, offsetX = 0, offsetY = -1, offsetWidth = 703, offsetHeight = 637}, -- 114: GF Down Note0002 {x = 4988, y = 3295, width = 699, height = 636, offsetX = -2, offsetY = -1, offsetWidth = 703, offsetHeight = 637}, -- 115: GF Down Note0003 {x = 5697, y = 3295, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 116: GF Down Note0004 {x = 5697, y = 3295, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 117: GF Down Note0005 {x = 5697, y = 3295, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 118: GF Down Note0006 {x = 5697, y = 3295, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 119: GF Down Note0007 {x = 5697, y = 3295, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 120: GF Down Note0008 {x = 5697, y = 3295, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 121: GF Down Note0009 {x = 5697, y = 3295, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 122: GF Down Note0010 {x = 5697, y = 3295, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 123: GF Down Note0011 {x = 5697, y = 3295, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 124: GF Down Note0012 {x = 5697, y = 3295, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 125: GF Down Note0013 {x = 5697, y = 3295, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 126: GF Down Note0014 {x = 5697, y = 3295, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 127: GF Down Note0015 {x = 5697, y = 3295, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 128: GF Down Note0016 {x = 5697, y = 3295, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 129: GF Down Note0017 {x = 5697, y = 3295, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 130: GF Down Note0018 {x = 5697, y = 3295, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 131: GF Down Note0019 {x = 6406, y = 3295, width = 699, height = 640, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 132: GF FEAR 0000 {x = 7115, y = 3295, width = 699, height = 640, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 133: GF FEAR 0001 {x = 0, y = 3952, width = 699, height = 638, offsetX = 0, offsetY = -2, offsetWidth = 699, offsetHeight = 640}, -- 134: GF FEAR 0002 {x = 709, y = 3952, width = 699, height = 640, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 135: GF FEAR 0003 {x = 1418, y = 3952, width = 699, height = 632, offsetX = -2, offsetY = -5, offsetWidth = 703, offsetHeight = 637}, -- 136: GF Right Note0000 {x = 2127, y = 3952, width = 703, height = 632, offsetX = 0, offsetY = -5, offsetWidth = 703, offsetHeight = 637}, -- 137: GF Right Note0001 {x = 2840, y = 3952, width = 703, height = 637, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 138: GF Right Note0002 {x = 3553, y = 3952, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 139: GF Right Note0003 {x = 4262, y = 3952, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 140: GF Right Note0004 {x = 4971, y = 3952, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 141: GF Right Note0005 {x = 5680, y = 3952, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 142: GF Right Note0006 {x = 5680, y = 3952, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 143: GF Right Note0007 {x = 6389, y = 3952, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 144: GF Right Note0008 {x = 6389, y = 3952, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 145: GF Right Note0009 {x = 6389, y = 3952, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 146: GF Right Note0010 {x = 6389, y = 3952, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 147: GF Right Note0011 {x = 6389, y = 3952, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 148: GF Right Note0012 {x = 6389, y = 3952, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 149: GF Right Note0013 {x = 6389, y = 3952, width = 699, height = 637, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 637}, -- 150: GF Right Note0014 {x = 7098, y = 3952, width = 699, height = 661, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 661}, -- 151: GF Up Note0000 {x = 0, y = 4623, width = 703, height = 661, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 152: GF Up Note0001 {x = 713, y = 4623, width = 703, height = 661, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 153: GF Up Note0002 {x = 1426, y = 4623, width = 699, height = 661, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 661}, -- 154: GF Up Note0003 {x = 2135, y = 4623, width = 699, height = 661, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 661}, -- 155: GF Up Note0004 {x = 2135, y = 4623, width = 699, height = 661, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 661}, -- 156: GF Up Note0005 {x = 2135, y = 4623, width = 699, height = 661, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 661}, -- 157: GF Up Note0006 {x = 2844, y = 4623, width = 699, height = 633, offsetX = -2, offsetY = -5, offsetWidth = 703, offsetHeight = 638}, -- 158: GF left note0000 {x = 3553, y = 4623, width = 703, height = 631, offsetX = 0, offsetY = -7, offsetWidth = 703, offsetHeight = 638}, -- 159: GF left note0001 {x = 4266, y = 4623, width = 703, height = 638, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 160: GF left note0002 {x = 4979, y = 4623, width = 699, height = 638, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 638}, -- 161: GF left note0003 {x = 5688, y = 4623, width = 699, height = 638, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 638}, -- 162: GF left note0004 {x = 6397, y = 4623, width = 699, height = 638, offsetX = -2, offsetY = 0, offsetWidth = 703, offsetHeight = 638}, -- 163: GF left note0005 {x = 7106, y = 4623, width = 699, height = 637, offsetX = -2, offsetY = -1, offsetWidth = 703, offsetHeight = 638}, -- 164: GF left note0006 {x = 7106, y = 4623, width = 699, height = 637, offsetX = -2, offsetY = -1, offsetWidth = 703, offsetHeight = 638}, -- 165: GF left note0007 {x = 0, y = 5294, width = 699, height = 637, offsetX = -2, offsetY = -1, offsetWidth = 703, offsetHeight = 638}, -- 166: GF left note0008 {x = 0, y = 5294, width = 699, height = 637, offsetX = -2, offsetY = -1, offsetWidth = 703, offsetHeight = 638}, -- 167: GF left note0009 {x = 0, y = 5294, width = 699, height = 637, offsetX = -2, offsetY = -1, offsetWidth = 703, offsetHeight = 638}, -- 168: GF left note0010 {x = 0, y = 5294, width = 699, height = 637, offsetX = -2, offsetY = -1, offsetWidth = 703, offsetHeight = 638}, -- 169: GF left note0011 {x = 0, y = 5294, width = 699, height = 637, offsetX = -2, offsetY = -1, offsetWidth = 703, offsetHeight = 638}, -- 170: GF left note0012 {x = 0, y = 5294, width = 699, height = 637, offsetX = -2, offsetY = -1, offsetWidth = 703, offsetHeight = 638}, -- 171: GF left note0013 {x = 0, y = 5294, width = 699, height = 637, offsetX = -2, offsetY = -1, offsetWidth = 703, offsetHeight = 638}, -- 172: GF left note0014 {x = 709, y = 5294, width = 699, height = 633, offsetX = 0, offsetY = -3, offsetWidth = 699, offsetHeight = 636}, -- 173: gf sad0000 {x = 709, y = 5294, width = 699, height = 633, offsetX = 0, offsetY = -3, offsetWidth = 699, offsetHeight = 636}, -- 174: gf sad0001 {x = 1418, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 175: gf sad0002 {x = 1418, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 176: gf sad0003 {x = 2127, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 177: gf sad0004 {x = 2127, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 178: gf sad0005 {x = 2836, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 179: gf sad0006 {x = 2836, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 180: gf sad0007 {x = 3545, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 181: gf sad0008 {x = 3545, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 182: gf sad0009 {x = 1418, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 183: gf sad0010 {x = 1418, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 184: gf sad0011 {x = 2127, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 185: gf sad0012 {x = 2127, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 186: gf sad0013 {x = 2836, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 187: gf sad0014 {x = 2836, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 188: gf sad0015 {x = 3545, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 189: gf sad0016 {x = 3545, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 190: gf sad0017 {x = 1418, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 191: gf sad0018 {x = 1418, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 192: gf sad0019 {x = 2127, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 193: gf sad0020 {x = 2127, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 194: gf sad0021 {x = 2836, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 195: gf sad0022 {x = 2836, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 196: gf sad0023 {x = 3545, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 197: gf sad0024 {x = 3545, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 198: gf sad0025 {x = 1418, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 199: gf sad0026 {x = 1418, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 200: gf sad0027 {x = 2127, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 201: gf sad0028 {x = 2127, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 202: gf sad0029 {x = 2836, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 203: gf sad0030 {x = 2836, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 204: gf sad0031 {x = 3545, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 205: gf sad0032 {x = 3545, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 206: gf sad0033 {x = 1418, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 207: gf sad0034 {x = 1418, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 208: gf sad0035 {x = 2127, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 209: gf sad0036 {x = 2127, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 210: gf sad0037 {x = 2836, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 211: gf sad0038 {x = 2836, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 212: gf sad0039 {x = 3545, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 213: gf sad0040 {x = 3545, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 214: gf sad0041 {x = 1418, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 215: gf sad0042 {x = 1418, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 216: gf sad0043 {x = 2127, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 217: gf sad0044 {x = 2127, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 218: gf sad0045 {x = 2836, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 219: gf sad0046 {x = 2836, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 220: gf sad0047 {x = 3545, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 221: gf sad0048 {x = 3545, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 222: gf sad0049 {x = 1418, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 223: gf sad0050 {x = 1418, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 224: gf sad0051 {x = 2127, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 225: gf sad0052 {x = 2127, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 226: gf sad0053 {x = 2836, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 227: gf sad0054 {x = 2836, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 228: gf sad0055 {x = 3545, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 229: gf sad0056 {x = 3545, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 230: gf sad0057 {x = 1418, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 231: gf sad0058 {x = 1418, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 232: gf sad0059 {x = 2127, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 233: gf sad0060 {x = 2127, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 234: gf sad0061 {x = 2836, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 235: gf sad0062 {x = 2836, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 236: gf sad0063 {x = 3545, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 237: gf sad0064 {x = 3545, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 238: gf sad0065 {x = 1418, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 239: gf sad0066 {x = 1418, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 240: gf sad0067 {x = 2127, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 241: gf sad0068 {x = 2127, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 242: gf sad0069 {x = 2836, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 243: gf sad0070 {x = 2836, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 244: gf sad0071 {x = 3545, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 245: gf sad0072 {x = 3545, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 246: gf sad0073 {x = 1418, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 247: gf sad0074 {x = 1418, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 248: gf sad0075 {x = 2127, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 249: gf sad0076 {x = 2127, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 250: gf sad0077 {x = 2836, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0}, -- 251: gf sad0078 {x = 2836, y = 5294, width = 699, height = 636, offsetX = 0, offsetY = 0, offsetWidth = 0, offsetHeight = 0} -- 252: gf sad0079 }, { ["idle"] = {start = 22, stop = 51, speed = 24, offsetX = 0, offsetY = -9}, ["hair landing"] = {start = 52, stop = 81, speed = 24, offsetX = -11, offsetY = -9}, ["hair blowing"] = {start = 82, stop = 111, speed = 24, offsetX = 45, offsetY = -8}, ["down"] = {start = 112, stop = 131, speed = 24, offsetX = 0, offsetY = -20}, ["fear"] = {start = 132, stop = 135, speed = 24, offsetX = -2, offsetY = -17}, ["right"] = {start = 136, stop = 150, speed = 24, offsetX = 0, offsetY = -20}, ["up"] = {start = 151, stop = 157, speed = 24, offsetX = 0, offsetY = 4}, ["left"] = {start = 158, stop = 172, speed = 24, offsetX = 0, offsetY = -19} }, "idle", true )
--Helper function for common use local function AddBox(panel,cmd,str) panel:AddControl("CheckBox",{Label=str, Command=cmd}) end --Helper function for common use local function AddTextBox(panel,cmd,str) panel:AddControl("TextBox",{Label=str, Command=cmd}) end local function AddSlider(panel,cmd,str,min,max,fl) panel:AddControl("Slider",{Label=str, Command=cmd,min=min,max=max,type=fl and "float"}) end -- Build admin panel local function AdminPanel(panel) if not LocalPlayer():IsAdmin() then return end AddBox(panel,"metrostroi_train_requirethirdrail",Metrostroi.GetPhrase("Panel.RequireThirdRail")) --panel:AddControl("CheckBox",{Label="Trains require 3rd rail", Command = "metrostroi_train_requirethirdrail"}) end -- Build regular client panel local function ClientPanel(panel) panel:ClearControls() panel:SetPadding(0) panel:SetSpacing(0) panel:Dock( FILL ) local Lang = vgui.Create("DComboBox") Lang:SetValue(Metrostroi.CurrentLanguageTable and Metrostroi.CurrentLanguageTable.lang or Metrostroi.GetPhrase("Panel.Language")) Lang:SetColor(color_black) for k,v in pairs(Metrostroi.Languages) do Lang:AddChoice(v.lang, k) end Lang.OnSelect = function(Lang,index,value,data) Metrostroi.ChoosedLang = data RunConsoleCommand("metrostroi_language",Metrostroi.ChoosedLang) end panel:AddItem(Lang) panel:ControlHelp(Metrostroi.GetPhrase("AuthorText")) if Metrostroi.HasPhrase("AuthorTextMetadmin") then panel:ControlHelp(Metrostroi.GetPhrase("AuthorTextMetadmin")) end AddBox(panel,"metrostroi_drawcams",Metrostroi.GetPhrase("Panel.DrawCams")) AddBox(panel,"metrostroi_disablehud",Metrostroi.GetPhrase("Panel.DisableHUD")) AddBox(panel,"metrostroi_disablecamaccel",Metrostroi.GetPhrase("Panel.DisableCamAccel")) AddBox(panel,"metrostroi_disablehovertext",Metrostroi.GetPhrase("Panel.DisableHoverText")) AddBox(panel,"metrostroi_disablehovertextpos",Metrostroi.GetPhrase("Panel.DisableHoverTextP")) AddBox(panel,"metrostroi_screenshotmode",Metrostroi.GetPhrase("Panel.ScreenshotMode")) AddBox(panel,"metrostroi_shadows1",Metrostroi.GetPhrase("Panel.ShadowsHeadlight")) AddBox(panel,"metrostroi_shadows3",Metrostroi.GetPhrase("Panel.RedLights")) AddBox(panel,"metrostroi_shadows2",Metrostroi.GetPhrase("Panel.ShadowsOther")) AddBox(panel,"metrostroi_shadows4",Metrostroi.GetPhrase("Panel.PanelLights")) AddBox(panel,"metrostroi_sprites",Metrostroi.GetPhrase("Panel.PanelSprites")) local DRouteNumber = panel:TextEntry(Metrostroi.GetPhrase("Panel.RouteNumber"),"metrostroi_route_number") AddBox(panel,"metrostroi_minimizedshow",Metrostroi.GetPhrase("Panel.MinimizedShow")) AddSlider(panel,"metrostroi_cabfov",Metrostroi.GetPhrase("Panel.FOV"),65,100) AddSlider(panel,"metrostroi_cabz",Metrostroi.GetPhrase("Panel.Z"),-10,10,true) AddSlider(panel,"metrostroi_renderdistance",Metrostroi.GetPhrase("Panel.RenderDistance"),960,3072) panel:Button(Metrostroi.GetPhrase("Panel.ReloadClient"),"metrostroi_reload_client",true) function DRouteNumber:OnChange() local oldval = self:GetValue() local NewValue = "" for i = 1,math.min(3,#oldval) do NewValue = NewValue..((oldval[i] or ""):upper():match("[%d]+") or "") end local oldpos = self:GetCaretPos() self:SetText(NewValue) self:SetCaretPos(math.min(#NewValue,oldpos,3)) end end local function ClientAdvanced(panel) panel:ClearControls() panel:SetPadding(0) panel:SetSpacing(0) panel:Dock( FILL ) AddBox(panel,"metrostroi_drawdebug",Metrostroi.GetPhrase("Panel.DrawDebugInfo")) AddBox(panel,"metrostroi_drawsignaldebug",Metrostroi.GetPhrase("Panel.DrawSignalDebugInfo")) panel:Button(Metrostroi.GetPhrase("Panel.CheckAddons"),"metrostroi_addons_check") panel:Button(Metrostroi.GetPhrase("Panel.ReloadLang"),"metrostroi_language_reload",true) AddSlider(panel,"metrostroi_softdrawmultipier",Metrostroi.GetPhrase("Panel.SoftDraw"),25,400) AddBox(panel,"metrostroi_language_softreload",Metrostroi.GetPhrase("Panel.SoftReloadLang")) --panel:AddControl("combobox","metrostroi_language",{Label="Language", options = {"Русский","Английский"}}) --panel:AddControl("Checkbox",{Label="Draw debugging info", Command = "metrostroi_drawdebug"}) end hook.Add("PopulateToolMenu", "Metrostroi cpanel", function() spawnmenu.AddToolMenuOption("Utilities", "Metrostroi", "metrostroi_admin_panel", Metrostroi.GetPhrase("Panel.Admin"), "", "", AdminPanel) spawnmenu.AddToolMenuOption("Utilities", "Metrostroi", "metrostroi_client_panel", Metrostroi.GetPhrase("Panel.Client"), "", "", ClientPanel) spawnmenu.AddToolMenuOption("Utilities", "Metrostroi", "metrostroi_clientadv_panel", Metrostroi.GetPhrase("Panel.ClientAdvanced"), "", "", ClientAdvanced) end)
local s = splay_map() assert(s:empty()) assert(#s == 0) s:insert(10, 1) assert(not s:empty()) assert(#s == 1) assert(s:find(10) == 1)
--[[ _ _ ____ _ _ | | | | | _ \ | | | | |_ _ _ __ __ _| | ___| |_) |_ _ _ __ __| | | ___ _ | | | | | '_ \ / _` | |/ _ \ _ <| | | | '_ \ / _` | |/ _ \ | |__| | |_| | | | | (_| | | __/ |_) | |_| | | | | (_| | | __/ \____/ \__,_|_| |_|\__, |_|\___|____/ \__,_|_| |_|\__,_|_|\___| __/ | |___/ SCRIPT BY DrPhoenix & S1mple Changelog : BETA 0.1 : First release More Soon ! ]]-- local champions = { ["Evelynn"] = true, ["Hecarim"] = true, ["Maokai"] = true, ["Nocturne"] = true, ["Nunu"] = true, ["Rammus"] = true, ["RekSai"] = true, ["Shyvana"] = true, ["Skarner"] = true, ["Trundle "] = true, ["Vi"] = true, ["Zac"] = true } assert(load(Base64Decode("G0x1YVIAAQQEBAgAGZMNChoKAAAAAAAAAAAAAQQfAAAAAwAAAEQAAACGAEAA5QAAAJ1AAAGGQEAA5UAAAJ1AAAGlgAAACIAAgaXAAAAIgICBhgBBAOUAAQCdQAABhkBBAMGAAQCdQAABhoBBAOVAAQCKwICDhoBBAOWAAQCKwACEhoBBAOXAAQCKwICEhoBBAOUAAgCKwACFHwCAAAsAAAAEEgAAAEFkZFVubG9hZENhbGxiYWNrAAQUAAAAQWRkQnVnc3BsYXRDYWxsYmFjawAEDAAAAFRyYWNrZXJMb2FkAAQNAAAAQm9sVG9vbHNUaW1lAAQQAAAAQWRkVGlja0NhbGxiYWNrAAQGAAAAY2xhc3MABA4AAABTY3JpcHRUcmFja2VyAAQHAAAAX19pbml0AAQSAAAAU2VuZFZhbHVlVG9TZXJ2ZXIABAoAAABzZW5kRGF0YXMABAsAAABHZXRXZWJQYWdlAAkAAAACAAAAAwAAAAAAAwkAAAAFAAAAGABAABcAAIAfAIAABQAAAAxAQACBgAAAHUCAAR8AgAADAAAAAAQSAAAAU2VuZFZhbHVlVG9TZXJ2ZXIABAcAAAB1bmxvYWQAAAAAAAEAAAABAQAAAAAAAAAAAAAAAAAAAAAEAAAABQAAAAAAAwkAAAAFAAAAGABAABcAAIAfAIAABQAAAAxAQACBgAAAHUCAAR8AgAADAAAAAAQSAAAAU2VuZFZhbHVlVG9TZXJ2ZXIABAkAAABidWdzcGxhdAAAAAAAAQAAAAEBAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAAAAQAEDQAAAEYAwACAAAAAXYAAAUkAAABFAAAATEDAAMGAAABdQIABRsDAAKUAAADBAAEAXUCAAR8AgAAFAAAABA4AAABTY3JpcHRUcmFja2VyAAQSAAAAU2VuZFZhbHVlVG9TZXJ2ZXIABAUAAABsb2FkAAQMAAAARGVsYXlBY3Rpb24AAwAAAAAAQHpAAQAAAAYAAAAHAAAAAAADBQAAAAUAAAAMAEAAgUAAAB1AgAEfAIAAAgAAAAQSAAAAU2VuZFZhbHVlVG9TZXJ2ZXIABAgAAAB3b3JraW5nAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAEBAAAAAAAAAAAAAAAAAAAAAAAACAAAAA0AAAAAAAYyAAAABgBAAB2AgAAaQEAAF4AAgEGAAABfAAABF0AKgEYAQQBHQMEAgYABAMbAQQDHAMIBEEFCAN0AAAFdgAAACECAgUYAQQBHQMEAgYABAMbAQQDHAMIBEMFCAEbBQABPwcICDkEBAt0AAAFdgAAACEAAhUYAQQBHQMEAgYABAMbAQQDHAMIBBsFAAA9BQgIOAQEARoFCAE/BwgIOQQEC3QAAAV2AAAAIQACGRsBAAIFAAwDGgEIAAUEDAEYBQwBWQIEAXwAAAR8AgAAOAAAABA8AAABHZXRJbkdhbWVUaW1lcgADAAAAAAAAAAAECQAAADAwOjAwOjAwAAQGAAAAaG91cnMABAcAAABzdHJpbmcABAcAAABmb3JtYXQABAYAAAAlMDIuZgAEBQAAAG1hdGgABAYAAABmbG9vcgADAAAAAAAgrEAEBQAAAG1pbnMAAwAAAAAAAE5ABAUAAABzZWNzAAQCAAAAOgAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAATAAAAAAAIKAAAAAEAAABGQEAAR4DAAIEAAAAhAAiABkFAAAzBQAKAAYABHYGAAVgAQQIXgAaAR0FBAhiAwQIXwAWAR8FBAhkAwAIXAAWARQGAAFtBAAAXQASARwFCAoZBQgCHAUIDGICBAheAAYBFAQABTIHCAsHBAgBdQYABQwGAAEkBgAAXQAGARQEAAUyBwgLBAQMAXUGAAUMBgABJAYAAIED3fx8AgAANAAAAAwAAAAAAAPA/BAsAAABvYmpNYW5hZ2VyAAQLAAAAbWF4T2JqZWN0cwAECgAAAGdldE9iamVjdAAABAUAAAB0eXBlAAQHAAAAb2JqX0hRAAQHAAAAaGVhbHRoAAQFAAAAdGVhbQAEBwAAAG15SGVybwAEEgAAAFNlbmRWYWx1ZVRvU2VydmVyAAQGAAAAbG9vc2UABAQAAAB3aW4AAAAAAAMAAAAAAAEAAQEAAAAAAAAAAAAAAAAAAAAAFAAAABQAAAACAAICAAAACkAAgB8AgAABAAAABAoAAABzY3JpcHRLZXkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABUAAAACAAUKAAAAhgBAAMAAgACdgAABGEBAARfAAICFAIAAjIBAAQABgACdQIABHwCAAAMAAAAEBQAAAHR5cGUABAcAAABzdHJpbmcABAoAAABzZW5kRGF0YXMAAAAAAAIAAAAAAAEBAAAAAAAAAAAAAAAAAAAAABYAAAAlAAAAAgATPwAAAApAAICGgEAAnYCAAAqAgICGAEEAxkBBAAaBQQAHwUECQQECAB2BAAFGgUEAR8HBAoFBAgBdgQABhoFBAIfBQQPBgQIAnYEAAcaBQQDHwcEDAcICAN2BAAEGgkEAB8JBBEECAwAdggABFgECAt0AAAGdgAAACoCAgYaAQwCdgIAACoCAhgoAxIeGQEQAmwAAABdAAIAKgMSHFwAAgArAxIeGQEUAh4BFAQqAAIqFAIAAjMBFAQEBBgBBQQYAh4FGAMHBBgAAAoAAQQIHAIcCRQDBQgcAB0NAAEGDBwCHw0AAwcMHAAdEQwBBBAgAh8RDAFaBhAKdQAACHwCAACEAAAAEBwAAAGFjdGlvbgAECQAAAHVzZXJuYW1lAAQIAAAAR2V0VXNlcgAEBQAAAGh3aWQABA0AAABCYXNlNjRFbmNvZGUABAkAAAB0b3N0cmluZwAEAwAAAG9zAAQHAAAAZ2V0ZW52AAQVAAAAUFJPQ0VTU09SX0lERU5USUZJRVIABAkAAABVU0VSTkFNRQAEDQAAAENPTVBVVEVSTkFNRQAEEAAAAFBST0NFU1NPUl9MRVZFTAAEEwAAAFBST0NFU1NPUl9SRVZJU0lPTgAECwAAAGluZ2FtZVRpbWUABA0AAABCb2xUb29sc1RpbWUABAYAAABpc1ZpcAAEAQAAAAAECQAAAFZJUF9VU0VSAAMAAAAAAADwPwMAAAAAAAAAAAQJAAAAY2hhbXBpb24ABAcAAABteUhlcm8ABAkAAABjaGFyTmFtZQAECwAAAEdldFdlYlBhZ2UABA4AAABib2wtdG9vbHMuY29tAAQXAAAAL2FwaS9ldmVudHM/c2NyaXB0S2V5PQAECgAAAHNjcmlwdEtleQAECQAAACZhY3Rpb249AAQLAAAAJmNoYW1waW9uPQAEDgAAACZib2xVc2VybmFtZT0ABAcAAAAmaHdpZD0ABA0AAAAmaW5nYW1lVGltZT0ABAgAAAAmaXNWaXA9AAAAAAACAAAAAAABAQAAAAAAAAAAAAAAAAAAAAAmAAAAKgAAAAMACiEAAADGQEAAAYEAAN2AAAHHwMAB3YCAAArAAIDHAEAAzADBAUABgACBQQEA3UAAAscAQADMgMEBQcEBAIABAAHBAQIAAAKAAEFCAgBWQYIC3UCAAccAQADMgMIBQcECAIEBAwDdQAACxwBAAMyAwgFBQQMAgYEDAN1AAAIKAMSHCgDEiB8AgAASAAAABAcAAABTb2NrZXQABAgAAAByZXF1aXJlAAQHAAAAc29ja2V0AAQEAAAAdGNwAAQIAAAAY29ubmVjdAADAAAAAAAAVEAEBQAAAHNlbmQABAUAAABHRVQgAAQSAAAAIEhUVFAvMS4wDQpIb3N0OiAABAUAAAANCg0KAAQLAAAAc2V0dGltZW91dAADAAAAAAAAAAAEAgAAAGIAAwAAAPyD15dBBAIAAAB0AAQKAAAATGFzdFByaW50AAQBAAAAAAQFAAAARmlsZQAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAA="), nil, "bt", _ENV))() TrackerLoad("") require "MapPosition" local function printC(arg) print("<font color=\"#007f06\"><b>[</b></font><font color=\"#00bc06\"><b>Jungle Bundle</b></font><font color=\"#007f06\"><b>]</b></font> <font color=\"#10ff00\">"..arg.."</font>") end -- Made by Nebelwolfi. Makes Classes Local, Not Global -- function Class(name) _ENV[name] = { } _ENV[name].__index = _ENV[name] local mt = { __call = function(self, ...) local b = { } setmetatable(b, _ENV[name]) b:__init(...) return b end } setmetatable(_ENV[name], mt) end Class("Core") function Core:__init() self.version = "0.1" if not self:loadchamp() then return end self:managers() self:menu() self.ItemManager = ItemManager() self.Awareness = Awareness(self.Menu) AddDrawCallback(function () self:draw() end) AddTickCallback(function () self:updateManagers() self:smite() end) end function Core:loadchamp() if (champions[myHero.charName] and _ENV["_" .. myHero.charName]) then self.champion = _ENV["_" .. myHero.charName]() printC("Loading "..myHero.charName) return true else print(myHero.charName.. " - Is not Supported") return false end end function Core:managers() self.ts = TargetSelector(TARGET_LOW_HP_PRIORITY, 1000, DAMAGE_PHYSICAL, true) self.ts.name = "Target Select" self.jm = minionManager(MINION_JUNGLE, 1000, myHero, MINION_SORT_HEALTH_ASC) self.mm = minionManager(MINION_ENEMY, 1000, myHero, MINION_SORT_HEALTH_ASC) end function Core:updateManagers() self.ts:update() self.jm:update() self.mm:update() end function Core:menu() self.Menu = scriptConfig("Jungle Bundle", "Menu") self.Menu:addSubMenu("Key Settings", "KeySettings") self.Menu.KeySettings:addParam("comboON", "Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte(" ")) self.Menu.KeySettings:addParam("JungleClearON", "Jungle Clear", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("V")) self.Menu.KeySettings:addParam("WaveClearON", "Wave Clear", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("V")) self.Menu.KeySettings:addParam("HarrassON", "Harrass", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("C")) self.Menu.KeySettings:addParam("LastHitON", "Last Hit", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X")) self.Menu:addSubMenu("Humanizer", "HumanizerSettings") self.Menu.HumanizerSettings:addParam("SmiteHumanizerON", "Humanizer for Smite", SCRIPT_PARAM_ONOFF, true) self.Menu.HumanizerSettings:addParam("SmiteHumanizerMinValue", "Min Value", SCRIPT_PARAM_SLICE, 100, 0, 1000, 0) self.Menu.HumanizerSettings:addParam("SmiteHumanizerMaxValue", "Max Value", SCRIPT_PARAM_SLICE, 200, 0, 1000, 0) self.Menu.HumanizerSettings:setCallback("SmiteHumanizerMinValue", function (value) if value < self.Menu.HumanizerSettings.SmiteHumanizerMinValue then self.Menu.HumanizerSettings.SmiteHumanizerMaxValue = self.Menu.HumanizerSettings.SmiteHumanizerMinValue end end) self.Menu.HumanizerSettings:setCallback("SmiteHumanizerMaxValue", function (value) if value > self.Menu.HumanizerSettings.SmiteHumanizerMaxValue then self.Menu.HumanizerSettings.SmiteHumanizerMinValue = self.Menu.HumanizerSettings.SmiteHumanizerMaxValue end end) self.Menu.HumanizerSettings:addParam("SpaceHumanizer11","____________________________________________", 5, "") self.Menu.HumanizerSettings:addParam("SpaceHumanizer12","", 5, "") self.Menu.HumanizerSettings:addParam("QSSHumanizerON", "Humanizer for QSS", SCRIPT_PARAM_ONOFF, true) self.Menu.HumanizerSettings:addParam("QSSHumanizerMinValue", "Min Value", SCRIPT_PARAM_SLICE, 100, 0, 1000, 0) self.Menu.HumanizerSettings:addParam("QSSHumanizerMaxValue", "Max Value", SCRIPT_PARAM_SLICE, 200, 0, 1000, 0) self.Menu.HumanizerSettings:setCallback("QSSHumanizerMinValue", function (value) if value < self.Menu.HumanizerSettings.QSSHumanizerMinValue then self.Menu.HumanizerSettings.QSSHumanizerMaxValue = self.Menu.HumanizerSettings.QSSHumanizerMinValue end end) self.Menu.HumanizerSettings:setCallback("QSSHumanizerMaxValue", function (value) if value > self.Menu.HumanizerSettings.QSSHumanizerMaxValue then self.Menu.HumanizerSettings.QSSHumanizerMinValue = self.Menu.HumanizerSettings.QSSHumanizerMaxValue end end) self.Menu.HumanizerSettings:addParam("SpaceHumanizer13","____________________________________________", 5, "") self.Menu.HumanizerSettings:addParam("SpaceHumanizer14","", 5, "") self.Menu.HumanizerSettings:addParam("SpellsHumanizerON", "Humanizer for Spells", SCRIPT_PARAM_ONOFF, true) self.Menu.HumanizerSettings:addParam("SpellsHumanizerMinValue", "Min Value", SCRIPT_PARAM_SLICE, 100, 0, 1000, 0) self.Menu.HumanizerSettings:addParam("SpellsHumanizerMaxValue", "Max Value", SCRIPT_PARAM_SLICE, 200, 0, 1000, 0) self.Menu.HumanizerSettings:setCallback("SpellsHumanizerMinValue", function (value) if value < self.Menu.HumanizerSettings.SpellsHumanizerMinValue then self.Menu.HumanizerSettings.SpellsHumanizerMaxValue = self.Menu.HumanizerSettings.SpellsHumanizerMinValue end end) self.Menu.HumanizerSettings:setCallback("SpellsHumanizerMaxValue", function (value) if value > self.Menu.HumanizerSettings.SpellsHumanizerMaxValue then self.Menu.HumanizerSettings.SpellsHumanizerMinValue = self.Menu.HumanizerSettings.SpellsHumanizerMaxValue end end) self.Menu:addSubMenu("Draw", "DrawSettings") self.Menu.DrawSettings:addParam("DrawAaON", "Draw AA range", SCRIPT_PARAM_ONOFF, true) self.Menu.DrawSettings:addParam("DrawTargetON", "Draw current target", SCRIPT_PARAM_ONOFF, true) self.Menu.DrawSettings:addParam("LastHitDrawON", "Draw Last Hit Helper", SCRIPT_PARAM_ONOFF, true) self.Menu.DrawSettings:addParam("SmiteDrawON", "Draw Smite Helper", SCRIPT_PARAM_ONOFF, true) self.Menu:addSubMenu("Miscellaneous", "MiscSettings") self.Menu.MiscSettings:addParam("UseSmite", "Smite Dragon, Rift Herald and Baron", SCRIPT_PARAM_ONOFF, true) self.Menu.MiscSettings:addParam("SetSkin", "Select Skin", SCRIPT_PARAM_SLICE, 0, 0, 20, 0) self.Menu.MiscSettings:setCallback("SetSkin", function (value) SetSkin(myHero, self.Menu.MiscSettings.SetSkin - 1) end) self.Menu:addTS(self.ts) self.Menu:addParam("space2", "", 5, "") self.Menu:addParam("signature0", " Jungle Bundle v"..self.version, 5, "") self.Menu:addParam("signature1", " by DrPhoenix and S1mple ", 5, "") end function Core:draw() if self.Menu.DrawSettings.DrawAaON then DrawCircle3D(myHero.x,myHero.y,myHero.z,myHero.range+myHero.boundingRadius,1,ARGB(255,0,255,0),15) end if self.Menu.DrawSettings.DrawTargetON then local target = nil if self.Menu.KeySettings.comboON or self.Menu.KeySettings.HarrassON then target = self.ts.target end if self.Menu.KeySettings.JungleClearON and #self.jm.objects >= 1 then target = self.jm.objects[1] end if not target and self.Menu.KeySettings.WaveClearON and #self.mm.objects >= 1 then target = self.mm.objects[1] end if target then DrawCircle3D(target.x,target.y,target.z,25,3,ARGB(255,255,0,0),8) end end end function Core:smite() if myHero.level <= 4 then SmiteDamage = 370 + (myHero.level*20) end if myHero.level > 4 and myHero.level <= 9 then SmiteDamage = 330 + (myHero.level*30) end if myHero.level > 9 and myHero.level <= 14 then SmiteDamage = 240 + (myHero.level*40) end if myHero.level > 14 then SmiteDamage = 100 + (myHero.level*50) end if self.Menu.MiscSettings.UseSmite then for i, jungle in pairs(self.jm.objects) do if jungle ~= nil then if SmitePos ~= nil and myHero:CanUseSpell(SmitePos) == READY and GetDistance(jungle) <= 560 and jungle.health <= SmiteDamage then if jungle.charName == "SRU_Baron" or jungle.charName == "SRU_Dragon_Water" or jungle.charName == "SRU_Dragon_Fire" or jungle.charName == "SRU_Dragon_Earth" or jungle.charName == "SRU_Dragon_Air" or jungle.charName == "SRU_Dragon_Elder" or jungle.charName == "SRU_RiftHerald" then DelayAction(function() CastSpell(SmitePos, jungle) end, SmiteHumanizer) end end end end end end Class("ItemManager") function ItemManager:__init() self.OffensiveItemsList = { TMT = { id = 3077, range = 189, reqTarget = false, slot = nil }, -- Tiamat THD = { id = 3074, range = 189, reqTarget = false, slot = nil }, -- Ravenous Hydra THD = { id = 3748, range = 189, reqTarget = false, slot = nil }, -- Titanic Hydra BWC = { id = 3144, range = 400, reqTarget = true, slot = nil }, -- Bilgewater Cutlass BRK = { id = 3153, range = 450, reqTarget = true, slot = nil }, --Blade of the ruined king SR = { id = 3715, range = 560, reqTarget = true, slot = nil }, -- Red Smite SB = { id = 3706, range = 560, reqTarget = true, slot = nil }, -- Blue Smite SRD = { id = 1419, range = 560, reqTarget = true, slot = nil }, -- Red Smite Bloodrazor SBD = { id = 1416, range = 560, reqTarget = true, slot = nil }, -- Blue Smite Bloodrazor YGB = { id = 3142, range = 1000, reqTarget = false, slot = nil } -- Youmuu Ghostblade } self.DefensiveItemsList = { QSS = { id = 3140, slot = nil }, -- Quicksilver Sash MCS = { id = 3139, slot = nil } -- Mercurial Scimitar } end function ItemManager:menu() Core.Menu:addSubMenu("Items", "ItemsSettings") Core.Menu.ItemsSettings:addParam("SmiteChampON", "Use smite on champion", SCRIPT_PARAM_ONOFF, true) Core.Menu.ItemsSettings:addParam("OffensiveItemsON", "Use Offensive Items in combo mode", SCRIPT_PARAM_ONOFF, true) Core.Menu.ItemsSettings:addSubMenu("QSS","QSS") Core.Menu.ItemsSettings.QSS:addParam("Stun", "Remove stun", SCRIPT_PARAM_ONOFF, true) Core.Menu.ItemsSettings.QSS:addParam("Silence", "Remove silence", SCRIPT_PARAM_ONOFF, true) Core.Menu.ItemsSettings.QSS:addParam("Taunt", "Remove taunt", SCRIPT_PARAM_ONOFF, true) Core.Menu.ItemsSettings.QSS:addParam("Root", "Remove root", SCRIPT_PARAM_ONOFF, true) Core.Menu.ItemsSettings.QSS:addParam("Fear", "Remove fear", SCRIPT_PARAM_ONOFF, true) Core.Menu.ItemsSettings.QSS:addParam("Charm", "Remove charm", SCRIPT_PARAM_ONOFF, true) Core.Menu.ItemsSettings.QSS:addParam("Suppression", "Remove suppression", SCRIPT_PARAM_ONOFF, true) Core.Menu.ItemsSettings.QSS:addParam("Blind", "Remove blind", SCRIPT_PARAM_ONOFF, true) Core.Menu.ItemsSettings.QSS:addParam("KnockUp", "Remove knock up", SCRIPT_PARAM_ONOFF, true) Core.Menu.ItemsSettings.QSS:addParam("Exhaust", "Remove exhaust", SCRIPT_PARAM_ONOFF, true) end Class("Awareness") function Awareness:__init(Menu) self.Menu = Menu self:menu() self.ally = GetAllyHeroes() self.enemy = GetEnemyHeroes() self.junglers = {} for i, hero in pairs(self.enemy) do if hero:GetSpellData(SUMMONER_1).name:find("Smite") then self.junglers[#self.junglers + 1] = hero elseif myHero:GetSpellData(SUMMONER_2).name:find("Smite") then self.junglers[#self.junglers + 1] = hero end end self.wards = {} self.HeroSprite = {} self.SpellSprite = {} self.wardNumber = 70 self:loadSprites() AddTickCallback(function () self:Tick() end) AddDrawCallback(function () self:drawHUD() self:drawHPBar() self:drawEnemyPath() self:drawTimers() self:drawEnemyJungler() self:drawWards() end) AddAnimationCallback(function (unit, animation) self:Animation(unit, animation) end) AddCreateObjCallback(function (object) self:CreateWard(object) self:CreateObj(object) end) AddDeleteObjCallback(function (object) self:DeleteWard(object) end) end function Awareness:menu() local WindowW = WINDOW_W local WindowH = WINDOW_H self.Menu:addSubMenu("Awareness", "AwarenessSettings") self.Menu.AwarenessSettings:addSubMenu("HUD", "HUDSettings") self.Menu.AwarenessSettings.HUDSettings:addParam("HUDON", "Draw HUD", SCRIPT_PARAM_ONOFF, true) self.Menu.AwarenessSettings.HUDSettings:addParam("HUDType", "Select Type", SCRIPT_PARAM_LIST, 1, {"Horizontal", "Vertical"}) self.Menu.AwarenessSettings.HUDSettings:setCallback("HUDType", function(value) if value == 1 then WindowW = WINDOW_W - 485 WindowH = WINDOW_H - 85 elseif value == 2 then WindowW = WINDOW_W - 85 WindowH = WINDOW_H - 485 end self.Menu.AwarenessSettings.HUDSettings:removeParam("HUDPosX") self.Menu.AwarenessSettings.HUDSettings:removeParam("HUDPosY") self.Menu.AwarenessSettings.HUDSettings:addParam("HUDPosX", "Horizontal position", SCRIPT_PARAM_SLICE, 1, 0, WindowW, 0) self.Menu.AwarenessSettings.HUDSettings:addParam("HUDPosY", "Vertical position", SCRIPT_PARAM_SLICE, 1, 0, WindowH, 0) end) self.Menu.AwarenessSettings.HUDSettings:addParam("HUDPosX", "Horizontal position", SCRIPT_PARAM_SLICE, 1, 0, WindowW, 0) self.Menu.AwarenessSettings.HUDSettings:addParam("HUDPosY", "Vertical position", SCRIPT_PARAM_SLICE, 1, 0, WindowH, 0) self.Menu.AwarenessSettings:addParam("WardTrackerON", "Track ward pos", SCRIPT_PARAM_ONOFF, true) self.Menu.AwarenessSettings:addParam("WardTrackerQuality", "Quality of the ward tracker", SCRIPT_PARAM_SLICE, 1, 0, 10, 0) self.Menu.AwarenessSettings:addParam("HPbarON", "Track spell cooldowns", SCRIPT_PARAM_ONOFF, true) end function Awareness:Tick() self:Timers() end function Awareness:loadSprites() if self.Menu.AwarenessSettings.HUDSettings.HUDON then self.HudSprite = GetSprite("\\JungleBundle\\hud.png") for i, hero in pairs(self.enemy) do self.HeroSprite[hero.charName] = GetSprite("\\JungleBundle\\Champions\\"..hero.charName..".png") end self.SpellSprite["SummonerBarrier"] = GetSprite("\\JungleBundle\\Spells\\SummonerBarrier.png") self.SpellSprite["SummonerMana"] = GetSprite("\\JungleBundle\\Spells\\SummonerMana.png") self.SpellSprite["SummonerBoost"] = GetSprite("\\JungleBundle\\Spells\\SummonerBoost.png") self.SpellSprite["SummonerExhaust"] = GetSprite("\\JungleBundle\\Spells\\SummonerExhaust.png") self.SpellSprite["SummonerFlash"] = GetSprite("\\JungleBundle\\Spells\\SummonerFlash.png") self.SpellSprite["SummonerHaste"] = GetSprite("\\JungleBundle\\Spells\\SummonerHaste.png") self.SpellSprite["SummonerHeal"] = GetSprite("\\JungleBundle\\Spells\\SummonerHeal.png") self.SpellSprite["SummonerDot"] = GetSprite("\\JungleBundle\\Spells\\SummonerDot.png") self.SpellSprite["SummonerSnowball"] = GetSprite("\\JungleBundle\\Spells\\SummonerSnowball.png") self.SpellSprite["SummonerSmite"] = GetSprite("\\JungleBundle\\Spells\\SummonerSmite.png") self.SpellSprite["S5_SummonerSmitePlayerGanker"] = GetSprite("\\JungleBundle\\Spells\\S5_SummonerSmitePlayerGanker.png") self.SpellSprite["S5_SummonerSmiteDuel"] = GetSprite("\\JungleBundle\\Spells\\S5_SummonerSmiteDuel.png") self.SpellSprite["SummonerTeleport"] = GetSprite("\\JungleBundle\\Spells\\SummonerTeleport.png") end NotificationSprite = GetSprite("\\JungleBundle\\notification.png") BaronSprite = GetSprite("\\JungleBundle\\Buffs\\baron.png") DragonSprite = GetSprite("\\JungleBundle\\Buffs\\dragon.png") RedSprite = GetSprite("\\JungleBundle\\Buffs\\red.png") BlueSprite = GetSprite("\\JungleBundle\\Buffs\\blue.png") end function Awareness:drawHUD() if self.Menu.AwarenessSettings.HUDSettings.HUDON then for i, hero in pairs(self.enemy) do local x = self.Menu.AwarenessSettings.HUDSettings.HUDPosX local y = self.Menu.AwarenessSettings.HUDSettings.HUDPosY if self.Menu.AwarenessSettings.HUDSettings.HUDType == 1 then x = self.Menu.AwarenessSettings.HUDSettings.HUDPosX + ( ( i - 1 ) * 100 ) y = self.Menu.AwarenessSettings.HUDSettings.HUDPosY elseif self.Menu.AwarenessSettings.HUDSettings.HUDType == 2 then x = self.Menu.AwarenessSettings.HUDSettings.HUDPosX y = self.Menu.AwarenessSettings.HUDSettings.HUDPosY + ( ( i - 1 ) * 100 ) end self.HudSprite:Draw(x, y, 255) self.HeroSprite[hero.charName]:Draw(x + 5, y + 5, 255) self.SpellSprite[hero:GetSpellData(SUMMONER_1).name]:Draw(x + 58, y + 5, 255) if hero:GetSpellData(SUMMONER_1).cd > 0 then local cd = ( 100 - ( hero:GetSpellData(SUMMONER_1).currentCd / hero:GetSpellData(SUMMONER_1).cd * 100 ) ) / 100 * 22 DrawRectangle(x + 58, y + 5 + cd, 22, 22 - cd, ARGB(200,0,0,0)) end self.SpellSprite[hero:GetSpellData(SUMMONER_2).name]:Draw(x + 58, y + 31, 255) if hero:GetSpellData(SUMMONER_2).cd > 0 then local cd = ( 100 - ( hero:GetSpellData(SUMMONER_2).currentCd / hero:GetSpellData(SUMMONER_2).cd * 100 ) ) / 100 * 22 DrawRectangle(x + 58, y + 31 + cd, 22, 22 - cd, ARGB(200,0,0,0)) end DrawRectangle(x + 5, y + 38, 18, 15, ARGB(200,0,0,0)) DrawTextA(hero.level, 11, x + 8, y + 40, ARGB(255,255,255,255)) HP = hero.health / hero.maxHealth * 75 if HP == 0 then DrawRectangle(x + 5, y + 5, 48, 48, ARGB(200,0,0,0)) else DrawLine(x + 5, y + 68, x + 5 + HP, y + 68, 6, ARGB(255,26,190,81)) MP = hero.mana / hero.maxMana * 75 if MP > 0 then DrawLine(x + 5, y + 77, x + 5 + MP, y + 77, 6, ARGB(255,1,130,181)) end end if hero:GetSpellData(_Q).level ~= 0 then if hero:GetSpellData(_Q).cd == 0 then cdQ = 14 else cdQ = ( 100 - ( hero:GetSpellData(_Q).currentCd / hero:GetSpellData(_Q).cd * 100 ) ) / 100 * 14 end else cdQ = nil end if hero:GetSpellData(_W).level ~= 0 then if hero:GetSpellData(_W).cd == 0 then cdW = 14 else cdW = ( 100 - ( hero:GetSpellData(_W).currentCd / hero:GetSpellData(_W).cd * 100 ) ) / 100 * 14 end else cdW = nil end if hero:GetSpellData(_E).level ~= 0 then if hero:GetSpellData(_E).cd == 0 then cdE = 14 else cdE = ( 100 - ( hero:GetSpellData(_E).currentCd / hero:GetSpellData(_E).cd * 100 ) ) / 100 * 14 end else cdE = nil end if hero:GetSpellData(_R).level ~= 0 then if hero:GetSpellData(_R).cd == 0 then cdR = 22 else cdR = ( 100 - ( hero:GetSpellData(_R).currentCd / hero:GetSpellData(_R).cd * 100 ) ) / 100 * 22 end else cdR = nil end if cdQ ~= nil then DrawLine(x + 5, y + 59, x + 5 + cdQ, y + 59, 4, ARGB(255,17,160,2)) end if cdW ~= nil then DrawLine(x + 22, y + 59, x + 22 + cdW, y + 59, 4, ARGB(255,17,160,2)) end if cdE ~= nil then DrawLine(x + 39, y + 59, x + 39 + cdE, y + 59, 4, ARGB(255,17,160,2)) end if cdR ~= nil then DrawLine(x + 58, y + 59, x + 58 + cdR, y + 59, 4, ARGB(255,17,160,2)) end end end end function Awareness:drawHPBar() if Core.Menu.AwarenessSettings.HPbarON then HPBarSprite = GetSprite("\\JungleBundle\\HPbar.png") for i, hero in pairs(self.ally) do local barPos = GetUnitHPBarPos(hero) local off = GetUnitHPBarOffset(hero) local y = barPos.y + (off.y * 53) + 2 local xOff = ({['AniviaEgg'] = -0.1,['Darius'] = -0.05,['Renekton'] = -0.05,['Sion'] = -0.05,['Thresh'] = -0.03,})[hero.charName] local x = barPos.x + ((xOff or 0) * 140) - 25 if hero:GetSpellData(_Q).level ~= 0 then if hero:GetSpellData(_Q).cd == 0 then cdQ = 23 else cdQ = ( 100 - ( hero:GetSpellData(_Q).currentCd / hero:GetSpellData(_Q).cd * 100 ) ) / 100 * 23 end else cdQ = 0 end if hero:GetSpellData(_W).level ~= 0 then if hero:GetSpellData(_W).cd == 0 then cdW = 23 else cdW = ( 100 - ( hero:GetSpellData(_W).currentCd / hero:GetSpellData(_W).cd * 100 ) ) / 100 * 23 end else cdW = 0 end if hero:GetSpellData(_E).level ~= 0 then if hero:GetSpellData(_E).cd == 0 then cdE = 23 else cdE = ( 100 - ( hero:GetSpellData(_E).currentCd / hero:GetSpellData(_E).cd * 100 ) ) / 100 * 23 end else cdE = 0 end if hero:GetSpellData(_R).level ~= 0 then if hero:GetSpellData(_R).cd == 0 then cdR = 23 else cdR = ( 100 - ( hero:GetSpellData(_R).currentCd / hero:GetSpellData(_R).cd * 100 ) ) / 100 * 23 end else cdR = 0 end if OnScreen(barPos.x, barPos.y) and not hero.dead and hero.visible then HPBarSprite:Draw(x-44, y-8, 255) if cdQ ~= nil then DrawLine(x-41, y+14, x-41+cdQ, y+14, 3, ARGB(255,0,191,9)) end if cdE ~= nil then DrawLine(x-14, y+14, x-14+cdW, y+14, 3, ARGB(255,0,191,9)) end if cdW ~= nil then DrawLine(x+13, y+14, x+13+cdE, y+14, 3, ARGB(255,0,191,9)) end if cdR ~= nil then DrawLine(x+40, y+14, x+40+cdR, y+14, 3, ARGB(255,0,191,9)) end end end for i, hero in pairs(self.enemy) do local cdQ local cdW local cdE local cdR local barPos = GetUnitHPBarPos(hero) local off = GetUnitHPBarOffset(hero) local y = barPos.y + (off.y * 53) + 2 local xOff = ({['AniviaEgg'] = -0.1,['Darius'] = -0.05,['Renekton'] = -0.05,['Sion'] = -0.05,['Thresh'] = -0.03,})[hero.charName] local x = barPos.x + ((xOff or 0) * 140) - 25 if hero:GetSpellData(_Q).level ~= 0 then if hero:GetSpellData(_Q).cd == 0 then cdQ = 23 else cdQ = ( 100 - ( hero:GetSpellData(_Q).currentCd / hero:GetSpellData(_Q).cd * 100 ) ) / 100 * 23 end else cdQ = 0 end if hero:GetSpellData(_W).level ~= 0 then if hero:GetSpellData(_W).cd == 0 then cdW = 23 else cdW = ( 100 - ( hero:GetSpellData(_W).currentCd / hero:GetSpellData(_W).cd * 100 ) ) / 100 * 23 end else cdW = 0 end if hero:GetSpellData(_E).level ~= 0 then if hero:GetSpellData(_E).cd == 0 then cdE = 23 else cdE = ( 100 - ( hero:GetSpellData(_E).currentCd / hero:GetSpellData(_E).cd * 100 ) ) / 100 * 23 end else cdE = 0 end if hero:GetSpellData(_R).level ~= 0 then if hero:GetSpellData(_R).cd == 0 then cdR = 23 else cdR = ( 100 - ( hero:GetSpellData(_R).currentCd / hero:GetSpellData(_R).cd * 100 ) ) / 100 * 23 end else cdR = 0 end if OnScreen(barPos.x, barPos.y) and not hero.dead and hero.visible then HPBarSprite:Draw(x-44, y-6, 255) if cdQ ~= nil then DrawLine(x-41, y+14, x-41+cdQ, y+14, 3, ARGB(255,0,191,9)) end if cdE ~= nil then DrawLine(x-14, y+14, x-14+cdW, y+14, 3, ARGB(255,0,191,9)) end if cdW ~= nil then DrawLine(x+13, y+14, x+13+cdE, y+14, 3, ARGB(255,0,191,9)) end if cdR ~= nil then DrawLine(x+40, y+14, x+40+cdR, y+14, 3, ARGB(255,0,191,9)) end end end end end function Awareness:drawEnemyPath() for i, hero in pairs(self.enemy) do if hero.hasMovePath then if hero.path:Path(2) == nil then DrawLine3D(hero.x, hero.y, hero.z, hero.path:Path(1).x, hero.path:Path(1).y, hero.path:Path(1).z, 2, ARGB(255,255,255,255)) else a=1 while(hero.path:Path(a) ~= nil) do DrawLine3D(hero.path:Path(a-1).x, hero.path:Path(a-1).y, hero.path:Path(a-1).z, hero.path:Path(a).x, hero.path:Path(a).y, hero.path:Path(a).z, 2, ARGB(255,255,255,255)) a = a+1 end DrawCircle3D(hero.path:Path(a-1).x, hero.path:Path(a-1).y, hero.path:Path(a-1).z, 30, 2, ARGB(255,255,255,255), 400) DrawLine3D(hero.path:Path(a-1).x-30, hero.path:Path(a-1).y, hero.path:Path(a-1).z, hero.path:Path(a-1).x+30, hero.path:Path(a-1).y, hero.path:Path(a-1).z, 2, ARGB(255,255,255,255)) DrawLine3D(hero.path:Path(a-1).x, hero.path:Path(a-1).y, hero.path:Path(a-1).z-30, hero.path:Path(a-1).x, hero.path:Path(a-1).y, hero.path:Path(a-1).z+30, 2, ARGB(255,255,255,255)) DrawText3D(hero.charName, hero.path:Path(a-1).x-50, hero.path:Path(a-1).y-50, hero.path:Path(a-1).z, 15, ARGB(255,255,255,255)) end end end end function Awareness:CreateObj(obj) if obj.name == "SRU_Dragon_Death.troy" then DTimer = 1000 * ( GetInGameTimer() + 360 ) end if obj.name == "SRU_Baron_Death.troy" then BTimer = 1000 * ( GetInGameTimer() + 420 ) end end function Awareness:Animation(unit, animation) -- Blue Buff / Blue Team if unit.name == "SRU_Blue1.1.1" and animation == "Death" then if BTBB == nil then BTBB = 1 elseif BTBB == 2 then BTBBTimer = 1000 * ( GetInGameTimer() + 300 ) BTBB = 0 else BTBB = BTBB + 1 end end if unit.name == "SRU_BlueMini1.1.2" and animation == "Death" then if BTBB == nil then BTBB = 1 elseif BTBB == 2 then BTBBTimer = 1000 * ( GetInGameTimer() + 300 ) BTBB = 0 else BTBB = BTBB + 1 end end if unit.name == "SRU_BlueMini21.1.3" and animation == "Death" then if BTBB == nil then BTBB = 1 elseif BTBB == 2 then BTBBTimer = 1000 * ( GetInGameTimer() + 300 ) BTBB = 0 else BTBB = BTBB + 1 end end -- Blue Buff / Red Team if unit.name == "SRU_Blue7.1.1" and animation == "Death" then if RTBB == nil then RTBB = 1 elseif RTBB == 2 then RTBBTimer = 1000 * ( GetInGameTimer() + 300 ) RTBB = 0 else RTBB = RTBB + 1 end end if unit.name == "SRU_BlueMini7.1.2" and animation == "Death" then if RTBB == nil then RTBB = 1 elseif RTBB == 2 then RTBBTimer = 1000 * ( GetInGameTimer() + 300 ) RTBB = 0 else RTBB = RTBB + 1 end end if unit.name == "SRU_BlueMini27.1.3" and animation == "Death" then if RTBB == nil then RTBB = 1 elseif RTBB == 2 then RTBBTimer = 1000 * ( GetInGameTimer() + 300 ) RTBB = 0 else RTBB = RTBB + 1 end end -- Red Buff / Blue Team if unit.name == "SRU_Red4.1.1" and animation == "Death" then if BTRB == nil then BTRB = 1 elseif BTRB == 2 then BTRBTimer = 1000 * ( GetInGameTimer() + 300 ) BTRB = 0 else BTRB = BTRB + 1 end end if unit.name == "SRU_RedMini4.1.2" and animation == "Death" then if BTRB == nil then BTRB = 1 elseif BTRB == 2 then BTRBTimer = 1000 * ( GetInGameTimer() + 300 ) BTRB = 0 else BTRB = BTRB + 1 end end if unit.name == "SRU_RedMini4.1.3" and animation == "Death" then if BTRB == nil then BTRB = 1 elseif BTRB == 2 then BTRBTimer = 1000 * ( GetInGameTimer() + 300 ) BTRB = 0 else BTRB = BTRB + 1 end end -- Red Buff / Red Team if unit.name == "SRU_Red10.1.1" and animation == "Death" then if RTRB == nil then RTRB = 1 elseif RTRB == 2 then RTRBTimer = 1000 * ( GetInGameTimer() + 300 ) RTRB = 0 else RTRB = RTRB + 1 end end if unit.name == "SRU_RedMini10.1.2" and animation == "Death" then if RTRB == nil then RTRB = 1 elseif RTRB == 2 then RTRBTimer = 1000 * ( GetInGameTimer() + 300 ) RTRB = 0 else RTRB = RTRB + 1 end end if unit.name == "SRU_RedMini10.1.3" and animation == "Death" then if RTRB == nil then RTRB = 1 elseif RTRB == 2 then RTRBTimer = 1000 * ( GetInGameTimer() + 300 ) RTRB = 0 else RTRB = RTRB + 1 end end end function Awareness:Timers() -- Baron if BTimer ~= nil then if BTimer == 0 then else BTimer = BTimer - 1 BRespawnS = (BTimer - ( GetInGameTimer() * 1000))/1000 nMins = string.format("%02.f", math.floor(BRespawnS/60)) nSecs = string.format("%02.f", math.floor(BRespawnS - nMins *60)) BRespawn = nMins..":" ..nSecs end end -- Dragon if DTimer ~= nil then if DTimer == 0 then else DTimer = DTimer - 1 DRespawnS = (DTimer - ( GetInGameTimer() * 1000))/1000 nMins = string.format("%02.f", math.floor(DRespawnS/60)) nSecs = string.format("%02.f", math.floor(DRespawnS - nMins *60)) DRespawn = nMins..":" ..nSecs end end -- Blue Buff / Blue Team if BTBBTimer ~= nil then if BTBBTimer == 0 then else BTBBTimer = BTBBTimer - 1 BTBBRespawnS = (BTBBTimer - ( GetInGameTimer() * 1000))/1000 nMins = string.format("%02.f", math.floor(BTBBRespawnS/60)) nSecs = string.format("%02.f", math.floor(BTBBRespawnS - nMins *60)) BTBBRespawn = nMins..":" ..nSecs end end -- Blue Buff / Red Team if RTBBTimer ~= nil then if RTBBTimer == 0 then else RTBBTimer = RTBBTimer - 1 RTBBRespawnS = (RTBBTimer - ( GetInGameTimer() * 1000))/1000 nMins = string.format("%02.f", math.floor(RTBBRespawnS/60)) nSecs = string.format("%02.f", math.floor(RTBBRespawnS - nMins *60)) RTBBRespawn = nMins..":" ..nSecs end end -- Red Buff / Blue Team if BTRBTimer ~= nil then if BTRBTimer == 0 then else BTRBTimer = BTRBTimer - 1 BTRBRespawnS = (BTRBTimer - ( GetInGameTimer() * 1000))/1000 nMins = string.format("%02.f", math.floor(BTRBRespawnS/60)) nSecs = string.format("%02.f", math.floor(BTRBRespawnS - nMins *60)) BTRBRespawn = nMins..":" ..nSecs end end -- Red Buff / Red Team if RTRBTimer ~= nil then if RTRBTimer == 0 then else RTRBTimer = RTRBTimer - 1 RTRBRespawnS = (RTRBTimer - ( GetInGameTimer() * 1000))/1000 nMins = string.format("%02.f", math.floor(RTRBRespawnS/60)) nSecs = string.format("%02.f", math.floor(RTRBRespawnS - nMins *60)) RTRBRespawn = nMins..":" ..nSecs end end end function Awareness:drawTimers() local x = WINDOW_W - 200 -- Exemple of notification for Baron if BRespawnS < 60 and BRespawnS ~= nil then local y = WINDOW_H - 450 NotificationSprite:Draw(x, y, 255) BaronSprite:Draw(x + 8, y + 8, 255) DrawTextA("Baron", 23, x + 120, y + 11, ARGB(255,25,148,115)) DrawTextA(BRespawn, 35, x + 108, y + 43, ARGB(255,25,148,115)) end -- Second notif -- local y = WINDOW_H - 575 -- Third notif -- local y = WINDOW_H - 700 -- Last notif -- local y = WINDOW_H - 825 -- Coords for text -- DrawTextA("Baron", 23, x + 120, y + 11, ARGB(255,25,148,115)) -- DrawTextA("Dragon", 23, x + 115, y + 11, ARGB(255,25,148,115)) -- DrawTextA("Red Team", 23, x + 101, y + 11, ARGB(255,25,148,115)) -- DrawTextA("Blue Team", 23, x + 97, y + 11, ARGB(255,25,148,115)) end function Awareness:drawEnemyJungler() for i, hero in pairs(self.junglers) do if hero and hero.visible and not hero.dead then if MapPosition:onTopLane(hero) then return (hero.charName.." is ganking top lane !") elseif MapPosition:onMidLane(hero) then return (hero.charName.." is ganking mid lane !") elseif MapPosition:onBotLane(hero) then return (hero.charName.." is ganking bottom lane !") elseif MapPosition:inTopRiver(hero) then return (hero.charName.." is in top river !") elseif MapPosition:inBottomRiver(hero) then return (hero.charName.." is in bottom river !") elseif MapPosition:inLeftBase(hero) then return (hero.charName.." is in blue base !") elseif MapPosition:inRightBase(hero) then return (hero.charName.." is in red base !") elseif MapPosition:inTopLeftJungle(hero) then return (hero.charName.." is in the blue buff jungle of the blue team !") elseif MapPosition:inBottomRightJungle(hero) then return (hero.charName.." is in the blue buff jungle of the red team !") elseif MapPosition:inBottomLeftJungle(hero) then return (hero.charName.." is in the red buff jungle of the blue team !") elseif MapPosition:inTopRightJungle(hero) then return (hero.charName.." is in the red buff jungle of the red team !") end end end end -- Made by Whitex22. -- function Awareness:CreateWard(object) if Core.Menu.AwarenessSettings.WardTrackerON then if object and (object.name:lower():find("visionward") or object.name:lower():find("sightward")) and object.networkID ~= 0 then if object.team ~= myHero.team then i = 1 while i < self.wardNumber do if(self.wards[i])then i = i+1 else break end end self.wards[i] = {} self.wards[i][1] = object.x self.wards[i][2] = object.y self.wards[i][3] = object.z self.wards[i][4] = object.networkID self:GetDrawPoints(i) end end end end function Awareness:DeleteWard(object) if Core.Menu.AwarenessSettings.WardTrackerON then if object and object.name and (object.name:lower():find("visionward") or object.name:lower():find("sightward")) and object.networkID ~= 0 then i = 1 while i < self.wardNumber do if(self.wards[i]) then if(self.wards[i][4] == object.networkID) then self.wards[i] = nil return end end i = i +1 end end end end function Awareness:GetDrawPoints(index) local i = 1 local wardVector = Vector(self.wards[index][1], self.wards[index][2], self.wards[index][3]) local alpha = 0 local value = Core.Menu.AwarenessSettings.WardTrackerQuality while(i <= 36 * value) do alpha = alpha + 360 / 36 / value self.wards[index][4+i] = {} a = 0.1 self.wards[index][4 + i][1] = wardVector.x self.wards[index][4 + i][2] = wardVector.y self.wards[index][4 + i][3] = wardVector.z + 110 while (not IsWall(D3DXVECTOR3(self.wards[index][4 + i][1], self.wards[index][4 + i][2], self.wards[index][4 + i][3]))) and a < 0.9 do a = a + 0.025 vc = Vector(1100 * math.sin(alpha / 360 * 6.28),0,1100 * math.cos(alpha / 360 * 6.28)) vc:normalize() vc = vc * 1100 * a self.wards[index][4 + i][1] = wardVector.x + vc.x self.wards[index][4 + i][2] = wardVector.y self.wards[index][4 + i][3] = wardVector.z + vc.z end i = i + 1 end end function Awareness:drawWards() if Core.Menu.AwarenessSettings.WardTrackerON then num = 1 while num < self.wardNumber do if(self.wards[num]) then ward = self.wards[num] i = 1 DrawCircle(self.wards[num][1], self.wards[num][2], self.wards[num][3],50,ARGB(140,255,0,0)) DrawCircleMinimap(self.wards[num][1],0, self.wards[num][3],200,4,ARGB(255,0,200,0),50) while(ward[4+i]) do if ward[5+i] then DrawLine3D(ward[4+i][1],ward[4+i][2],ward[4+i][3],ward[5+i][1],ward[5+i][2],ward[5+i][3],3,ARGB(128,255,30,30)) else DrawLine3D(ward[4+i][1],ward[4+i][2],ward[4+i][3],ward[5][1],ward[5][2],ward[5][3],3,ARGB(128,255,30,30)) end i = i + 1 end end num = num + 1 end end end Class("_Evelynn") function _Evelynn:__init() end Class("_Hecarim") function _Hecarim:__init() end Class("_Maokai") function _Maokai:__init() end Class("_Nocturne") function _Nocturne:__init() end Class("_Nunu") function _Nunu:__init() end Class("_Rammus") function _Rammus:__init() end Class("_RekSai") function _RekSai:__init() end Class("_Shyvana") function _Shyvana:__init() end Class("_Skarner") function _Skarner:__init() end Class("_Trundle") function _Trundle:__init() end Class("_Vi") function _Vi:__init() end Class("_Zac") function _Zac:__init() end function OnLoad() Core = Core() printC("Loaded") end
local s = require("null-ls.state") local u = require("null-ls.utils") local methods = require("null-ls.methods") local generators = require("null-ls.generators") local M = {} local postprocess = function(action) s.register_action(action) action.command = methods.internal.CODE_ACTION action.action = nil end M.handler = function(method, original_params, handler) if method == methods.lsp.CODE_ACTION then if not original_params.textDocument then return end if original_params._null_ls_ignore then return end local uri = original_params.textDocument.uri local bufnr = vim.uri_to_bufnr(uri) original_params.bufnr = bufnr s.clear_actions() generators.run_registered( u.make_params(original_params, methods.internal.CODE_ACTION), postprocess, function(actions) u.debug_log("received code actions from generators") u.debug_log(actions) -- sort actions by title table.sort(actions, function(a, b) return a.title < b.title end) handler(actions) end ) original_params._null_ls_handled = true end if method == methods.lsp.EXECUTE_COMMAND and original_params.command == methods.internal.CODE_ACTION then s.run_action(original_params.title) original_params._null_ls_handled = true end end return M
---------------------------------------- -- Sassilization -- http://sassilization.com -- By Sassafrass / Spacetech / LuaPineapple -- Models By Jaanus ---------------------------------------- MAPS = {} MAPS.List = { "sa_orbit", "sa_exodus", "sa_olympia", "sa_stronghold", } /* Maps currently removed until we get their minimaps working properly. "sa_bridges", "sa_surf_remnants", "sa_spoonage", "sa_losttemple", "sa_castlebase", "sa_arabia_2", "sa_valley", "sa_field", "sa_highland", "sa_arcticsummit", */ --for _, map in pairs( MAPS.List ) do --resource.AddFile("maps/"..map..".bsp") --end function MAPS.GetNextMap() local CURRENTMAP = game.GetMap() NEXTMAP = MAPS.List[math.random(1, table.Count(MAPS.List))] while NEXTMAP == CURRENTMAP do NEXTMAP = MAPS.List[math.random(1, table.Count(MAPS.List))] end return NEXTMAP end
local encode = require 'modbus.encode' local decode = require 'modbus.decode' local ecm = require "modbus.ecm" local _M = {} local function create_header(unit) local data = encode.uint8(unit) return data end function _M.encode(pdu, req) if not pdu then return nil, 'no pdu object' end local adu = create_header(req.unit) .. pdu local checknum = ecm.check(adu, req.ecm) return adu .. checknum end function _M.decode(raw) local unit = decode.uint8(raw:sub(1, 1)) return unit, raw:sub(2, -3) end _M.min_packet_len = 5 function _M.check(buf, req) if string.len(buf) <= 4 then return nil, buf, 4 - string.len(buf) end local adu = nil local unit = encode.uint8(req.unit) local func = tonumber(req.func) while string.len(buf) > 4 do local err_data = unit..encode.uint8(req.func + 0x80)..encode.uint8(1) if string.sub(buf, 1, 3) == err_data then if string.len(buf) >= 5 then return buf:sub(1, 5), buf:sub(5) end return nil, buf, 5 - string.len(buf) end if func == 0x01 or func == 0x02 then local len = math.ceil(tonumber(req.len) / 8) local data = unit .. encode.uint8(req.func) .. encode.uint8(len) local b, e = buf:find(data, 1, true) if e then if e + len + 2 > string.len(buf) then return nil, buf, e + len + 2 - string.len(buf) end adu = buf:sub(b, e + len + 2) local checknum = ecm.check(adu:sub(1, -3), req.ecm) if checknum == adu:sub(-2, -1) then return adu, buf:sub(e + len + 2 + 1) end end elseif func == 0x03 or func == 0x04 then local len = req.len * 2 local data = unit .. encode.uint8(req.func) .. encode.uint8(len) local b, e = buf:find(data, 1, true) if e then if e + len + 2 > string.len(buf) then return nil, buf, e + len + 2 - string.len(buf) end adu = buf:sub(b, e + len + 2) local checknum = ecm.check(adu:sub(1, -3), req.ecm) if checknum == adu:sub(-2, -1) then return adu, buf:sub( e + len + 2 + 1) end end elseif func == 0x05 or func == 0x06 then local hv, lv = encode.uint16(req.addr) local addr = hv .. lv local data = unit .. encode.uint8(req.func) .. addr local b, e = buf:find(data, 1, true) if e then if e + 4 > string.len(buf) then return nil, buf, e + 4 - string.len(buf) end adu = buf:sub(b, e + 4) local checknum = ecm.check(adu:sub(1, -3), req.ecm) if checknum == adu:sub(-2, -1) then return adu, buf:sub(e + 4 + 1) end end elseif func == 0x0F or func == 0x10 then local hv, lv = encode.uint16(req.addr) local addr = hv .. lv hv, lv = encode.uint16(req.len) local len = hv .. lv local data = unit .. encode.uint8(req.func) .. addr .. len local b, e = buf:find(data, 1, true) if e then if e + 2 > string.len(buf) then return nil, buf, e + 2 - string.len(buf) end adu = buf:sub(b, e + 2) local checknum = ecm.check(adu:sub(1, -3), req.ecm) if checknum == adu:sub(-2, -1) then return adu, buf:sub(e + 2 + 1) end end else return nil, buf, 1 end buf = buf:sub(2) end return nil, buf, 1 end return _M
-- Inspired by: -- https://blog.dutchcoders.io/openresty-with-dynamic-generated-certificates/ local ssl = require "ngx.ssl" local resty_lock = require "resty.lock" local lrucache = require "resty.lrucache" -- initialize memory caches for certs/keys. -- these lrucaches are NOT shared among nginx workers (https://github.com/openresty/lua-resty-lrucache). -- total cert + key size is ~3KB, and we store both in the cache. -- each nginx worker will use ~1MB for its memory cache. local cert_mem_cache, err = lrucache.new(600) if not cert_mem_cache then error("failed to create the cache: " .. (err or "unknown")) end function unlock_or_exit(lock) local ok, err = lock:unlock() if not ok then ngx.log(ngx.ERR, "failed to unlock: ", err) return ngx.exit(ngx.ERROR) end end function root_ca_disk_locations() return "${ROOT_CA_CERT}", "${ROOT_CA_KEY}" end function cert_disk_locations(common_name) local disk_cache_dir = "/data/funes/cert_cache"; local private_key = string.format("%s/%s.key", disk_cache_dir, common_name) local csr = string.format("%s/%s.csr", disk_cache_dir, common_name) local signed_cert = string.format("%s/%s.crt", disk_cache_dir, common_name) return private_key, csr, signed_cert end function cert_info() return "US", "California", "San Francisco", "Raydiant" end function get_file_with_mem_cache(filename) -- try fetching from cache first. local data = cert_mem_cache:get(filename) if data then return data end -- if not present in cache, read from disk. local f = io.open(filename, "r") if f then data = f:read("*a") f:close() -- set data in cache  cert_mem_cache:set(filename, data, ${CERT_MEM_CACHE_TTL_SEC}) else ngx.log(ngx.WARN, "Failed to read data from disk: ", filename) end return data end function get_signed_cert(common_name) local private_key, csr, signed_cert = cert_disk_locations(common_name) local key_data = get_file_with_mem_cache(private_key); local cert_data = get_file_with_mem_cache(signed_cert); -- return key_data, cert_data if key_data and cert_data then local key_data_der, err = ssl.priv_key_pem_to_der(key_data) if not key_data_der then ngx.log(ngx.ERR, "failed to convert private key ", "from PEM to DER: ", err) return ngx.exit(ngx.ERROR) end local cert_data_der, err = ssl.cert_pem_to_der(cert_data) if not cert_data_der then ngx.log(ngx.ERR, "failed to convert certificate chain ", "from PEM to DER: ", err) return ngx.exit(ngx.ERROR) end return key_data_der, cert_data_der end return nil, nil end -- Generate a certificate signing request. function generate_csr(common_name) local private_key, csr, signed_cert = cert_disk_locations(common_name) local country, state, city, company = cert_info() local openssl_command = string.format("/bin/bash -c 'RANDFILE=/data/funes/.rnd openssl req -new -newkey rsa:2048 -keyout %s -nodes -out %s -subj \"/C=%s/ST=%s/L=%s/O=%s/CN=%s\" >/dev/null 2>&1'", private_key, csr, country, state, city, company, common_name) ngx.log(ngx.DEBUG, openssl_command) local ret = os.execute(openssl_command) return ret end -- Sign a CSR using the root CA cert and key. function sign_csr(common_name, root_ca_cert, root_ca_key) local private_key, csr, signed_cert = cert_disk_locations(common_name) local openssl_command = string.format("faketime yesterday /bin/bash -c 'RANDFILE=/data/funes/.rnd openssl x509 -req -extfile <(printf \"subjectAltName=DNS:%s\") -days 365 -in %s -CA %s -CAkey %s -CAcreateserial -out %s >/dev/null 2>&1'", common_name, csr, root_ca_cert, root_ca_key, signed_cert) ngx.log(ngx.DEBUG, openssl_command) local ret = os.execute(openssl_command) return ret end -- Generate a self-signed cert end-to-end (create CSR, sign with root CA cert). function generate_self_signed_cert(common_name) local ret = generate_csr(common_name) if not ret == 0 then ngx.log(ngx.ERR, "generate_csr failed with code: ", ret) return false end local root_ca_cert, root_ca_key = root_ca_disk_locations() local ret = sign_csr(common_name, root_ca_cert, root_ca_key) if not ret == 0 then ngx.log(ngx.ERR, "sign_csr failed with code: ", ret) return false end return true end -- Try to set the cert for a common name on the current response. -- Returns false if the cert doesn't exist. function set_cert(common_name) local key_data, cert_data = get_signed_cert(common_name) if key_data and cert_data then local ok, err = ssl.set_der_priv_key(key_data) if not ok then ngx.log(ngx.ERR, "failed to set DER priv key: ", err) return ngx.exit(ngx.ERROR) end local ok, err = ssl.set_der_cert(cert_data) if not ok then ngx.log(ngx.ERR, "failed to set DER cert: ", err) return ngx.exit(ngx.ERROR) end return true end return false end ssl.clear_certs() local common_name = ssl.server_name() if common_name == nil then common_name = "unknown" end -- try to set the self-signed certificate on the response. -- this will succeed if a cert has already been generated. local ok = set_cert(common_name) if ok then return end -- otherwise, we need to create a new certificate. -- prevent creating same certificate twice using lock. local lock = resty_lock:new("my_locks") local elapsed, err = lock:lock(common_name) if not elapsed then ngx.log(ngx.ERR, "failed to acquire the lock: ", err) return ngx.exit(ngx.ERROR) end -- try to set the cert again, in case it was created by another thread. local ok = set_cert(common_name) if ok then -- unlock to avoid deadlock unlock_or_exit(lock) return end -- generate new private key ngx.log(ngx.INFO, "generating key") -- call openssl to create a new self-signed certificate in the disk cache. local ok = generate_self_signed_cert(common_name) -- unlock immediately after generating the cert. unlock_or_exit(lock) -- check whether openssl call succeeded. if not ok then ngx.log(ngx.ERR, string.format("failed to generate certificate")) return ngx.exit(ngx.ERROR) end -- read the newly generated cert from disk and return. local ok = set_cert(common_name) if ok then return end ngx.log(ngx.ERR, "failed to read generated certificate") return ngx.exit(ngx.ERROR)
-- A helper utility based on code by Quenty. local Maid = {} function Maid.new() local self = { _tasks = {}, } setmetatable(self, Maid) return self end function Maid:__index(key) return Maid[key] or self._tasks[key] end function Maid:__newindex(key, newTask) if rawget(self, key) or rawget(Maid, key) then error(string.format("Cannot use %q as a Maid key", tostring(key))) end local tasks = self._tasks local oldTask = tasks[key] tasks[key] = newTask if oldTask then Maid.cleanupTask(oldTask) end end function Maid:iter() return pairs(self._tasks) end function Maid:give(task) local tasks = self._tasks tasks[#tasks+1] = task end function Maid.cleanupTask(task) local taskTy = typeof(task) if taskTy == 'function' then task() elseif taskTy == 'RBXScriptConnection' then task:Disconnect() elseif taskTy == 'Instance' then task:Destroy() elseif task.destroy then task:destroy() else error("Unable to cleanup unknown task") end end function Maid:clean() local tasks = self._tasks for key,task in pairs(tasks) do if typeof(task) == 'RBXScriptConnection' then tasks[key] = nil task:Disconnect() end end local index, task = next(tasks) while task ~= nil do tasks[index] = nil Maid.cleanupTask(task) index, task = next(tasks) end end Maid.destroy = Maid.clean setmetatable(Maid, { __newindex = function(maid, key, value) error("Maid is immutable, attempted to set key "..tostring(key)) end, }) return Maid
local os = require "os" local table = require "table" local process = require "luvit.process" local ibmt = require "ibmt" local odbxuv = require "odbxuv" local mq = require "koh.mq" local createQueryBuilder = require "odbxuv.queryBuilder".createQueryBuilder local setTimeout = require "luvit.timer".setTimeout local epoch = require "luautil.epoch" mq.exchange("profileScheduler") local sql = odbxuv.Connection:new() local startupTask = ibmt.create() local ONE_DAY = 86400 local RETRY_INTERVAL = ONE_DAY / 2 local NAME_FETCH_INTERVAL = ONE_DAY local PROFILE_FETCH_INTERVAL = ONE_DAY * 2 local function enqueueRow(id, uuid, tag) local q = createQueryBuilder(sql) q:update("player") q:set({lastEnqueued = epoch()}) q:where("UUID = :uuid") q:bind("uuid", uuid) q:finalize(function(err, q) if err then print ("Error during update generation for " .. uuid, err) else sql:query(q, function(err, q) q:on("close", function() end) if err then print("Error during updating of " .. uuid, err) q:close() else q:on("fetch", function() if q:getAffectedCount() ~= 1 then print ("Failed to update time affected count: " .. q:getAffectedCount()) end end) q:on("fetched", function() q:close() end) q:fetch() end end) end end) mq.publish(mq.QUEUE.GENERAL_PROCESSING, function() mq.write(tag, { uuid = uuid, id = id }) end) print ("Enqueued", tag, uuid, id) end local function queuNextBatch() local q = createQueryBuilder(sql) q:select("id", "UUID", "lastNameFetch", "lastProfileFetch") q:from("player") q:where("lastNameFetch < :NAME_FETCH_INTERVAL AND lastProfileFetch < :PROFILE_FETCH_INTERVAL AND lastEnqueued < :RETRY_INTERVAL") q:limit(30) q:bind("NAME_FETCH_INTERVAL", epoch() - NAME_FETCH_INTERVAL) q:bind("PROFILE_FETCH_INTERVAL", epoch() - PROFILE_FETCH_INTERVAL) q:bind("RETRY_INTERVAL", epoch() - RETRY_INTERVAL) q:finalize(function(err, q) if err then print ("Error during fetch query generation", err) else sql:query(q, function(err, q) q:on("close", function() setTimeout(30000, queuNextBatch) end) if err then print ("Error during fetch query ", err) q:close() else q:on("fetch", function() end) q:on("row", function(id, uuid, lastNameFetch, lastProfileFetch) local fetchName = tonumber(lastNameFetch) < NAME_FETCH_INTERVAL local fetchProfile = tonumber(lastProfileFetch) < PROFILE_FETCH_INTERVAL enqueueRow(tonumber(id), uuid, (fetchName == fetchProfile) and mq.TAG.PRE_FETCH_ALL or (fetchName and mq.TAG.PRE_FETCH_NAMES) or (fetchProfile and mq.TAG.PRE_FETCH_PROFILE)) end) q:on("fetched", function() q:close() end) q:fetch() end end) end end) end startupTask:on("finish", function() queuNextBatch() end) startupTask:push() sql:connect (dofile("database.conf"), function(err, ...) if err then return startupTask:cancel(err) end startupTask:pop() end) sql:on("error", function(...) print("SQL error:", ...) p(...) end) sql:on("close", function() end)
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = { PlaceObj('ForEachExecuteEffects', { 'Label', "Colonist", 'Filters', { PlaceObj('HasTrait', { 'Trait', "Renegade", 'Negate', true, }), }, 'RandomPercent', 15, 'Effects', { PlaceObj('AddTrait', { 'Trait', "Renegade", }), }, }), PlaceObj('SetBuildingRogueState', { 'RogueState', false, }), }, Disables = { "TheRogueDome_Clear", }, Effects = {}, Prerequisites = { PlaceObj('CheckObjectCount', { 'Label', "Colonist", 'InDome', true, 'Filters', {}, 'Condition', "==", 'Amount', 0, }), }, ScriptDone = true, Text = T(127545542605, --[[StoryBit TheRogueDome_Dead Text]] "The average colonist perceived the entire chain of events as a tragedy and it had devastating effects on the Morale of our entire Colony. It will take a lot of hard work to regain the trust of our people.\n\n<effect>A wave of Renegades has appeared throughout the Colony. At least we regained control over the now empty <DisplayName> Dome."), TextReadyForValidation = true, TextsDone = true, VoicedText = T(732685877861, --[[voice:narrator]] "The First Martian Republic is no more. The entire population of the rogue Dome is now deceased."), group = "Renegades", id = "TheRogueDome_Dead", PlaceObj('StoryBitReply', { 'Text', T(734813490091, --[[StoryBit TheRogueDome_Dead Text]] "What a pointless waste of human life..."), }), PlaceObj('StoryBitReply', { 'Text', T(135232637553, --[[StoryBit TheRogueDome_Dead Text]] "These renegades had it coming!"), }), })
include( "shared.lua" ) include( "database/cl_database.lua" ) include( "datatables/minomodels.lua" ) include( "datatables/humanmodels.lua" ) include( "datatables/endgamesongs.lua" ) include( "datatables/abilities.lua" ) include( "cl_scoreboard.lua" ) include( "cl_report.lua" ) -- This gamemode was created by TB002. Unless specifically granted permission by TB002, you may not modify, copy, rebrand, or mess with this gamemode. You, of course, may host a server using this gamemode. That's totally fine. client = LocalPlayer( ); players = 0 minPlayer = 2 readytime = 0 round = 1 drachma = 0 ready = false role = "Observer" maxhealth = 100 tele = 0 sight = 0 curmessage = "" queue = {} messageexpire = 0 slidex = 0 endTime = 0 thirdperson = false telepos = nil enablemusic = true musictype = 0 readyplayers = 0 humanpositions = {} surface.CreateFont( "DefaultFont", { font = "Arial", size = 16, weight = 1000, blursize = 0, scanlines = 0, antialias = true, underline = false, italic = false, strikeout = false, symbol = false, rotary = false, shadow = true, additive = false, outline = false, } ) if ENDGAMESONGS != nil then for k,v in pairs(ENDGAMESONGS) do if file.Exists( "sound/"..v, "GAME" ) then util.PrecacheSound( v ) end end end util.PrecacheSound( "commentary/tf2-comment000.wav" ) local playerList = nil local scorepanel = nil function NumToRole( number ) if number <= 0 then return "Observer" else if number == 1 then return "Human" else return "Minotaur" end end end function GM:HUDShouldDraw( name ) if ( name == "CHudHealth" or name == "CHudAmmo" or name == "CHudWeapon" or name == "CHudBattery" ) then return false end return true end function GM:HUDPaint( ) if role == "Observer" then bcol = Color(25,25,100,0) elseif role == "Human" then bcol = Color(25,100,25,0) else bcol = Color(100,25,25,0) end Scrw, Scrh = ScrW(), ScrH() RelativeX, RelativeY = 0, Scrh xPos = 25 yPos = ScrH() - 125 draw.RoundedBox(5, xPos, yPos, 250, 100, bcol) if round == 1 then local nexttime = math.floor( readytime - CurTime() + 1) if nexttime < 0 then nexttime = 0 end draw.SimpleText( "Pregame", "Trebuchet24", xPos + 15, ScrH() - 100, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP ) draw.SimpleText( "Drachma: "..drachma, "TargetID", xPos + 15, ScrH() - 80, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP ) draw.SimpleText( "Next game starts in: "..nexttime, "TargetID", xPos + 15, ScrH() - 60, Color(0,255,0), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP ) draw.SimpleText( "Ready players: "..readyplayers, "TargetID", xPos + 15, ScrH() - 40, Color(0,255,0), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP ) local humancenter = Vector( 3376, 1760, 100) local normalcenter = Vector( 3058, 1760, 100) local minocenter = Vector( 2746, 1760, 100) humancenter = humancenter:ToScreen() normalcenter = normalcenter:ToScreen() minocenter = minocenter:ToScreen() draw.DrawText( "Stand here to be a human!", "TargetID", humancenter.x, humancenter.y, Color( 255, 255, 255, 255 ), 1 ) draw.DrawText( "Stand here to random!", "TargetID", normalcenter.x, normalcenter.y, Color( 255, 255, 255, 255 ), 1 ) draw.DrawText( "Stand here to be a minotaur!", "TargetID", minocenter.x, minocenter.y, Color( 255, 255, 255, 255 ), 1 ) -- end blood scent elseif round == 2 then draw.SimpleText( "Setup", "Trebuchet24", xPos + 15, ScrH() - 100, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP ) draw.SimpleText( "Drachma: "..drachma, "TargetID", xPos + 15, ScrH() - 80, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP ) draw.SimpleText( "The game will start soon.", "TargetID", xPos + 15, ScrH() - 60, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP ) if role == "Minotaur" then draw.SimpleText( role, "Trebuchet24", ScrW() - 100, 50, Color(230,0,0, 230), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP ) elseif role == "Human" then draw.SimpleText( role, "Trebuchet24", ScrW() - 100, 50, Color(0,230,0, 230), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP ) end elseif round == 3 then if endTime > CurTime() then local bordersize = 6 local posx = 25 local posy = 50 local font = "DefaultFont" local textColor = Color(255,255,255) local timecounter = "Time Left: "..(math.floor( endTime - CurTime() ) + 1) draw.WordBox( bordersize, posx, posy, timecounter, font, bcol, textColor ) end if LocalPlayer():Alive() then if telepos != nil then local teleangle = -LocalPlayer():EyeAngles().y + (LocalPlayer():GetPos() - telepos):Angle().y surface.SetMaterial( Material( "icon16/arrow_down.png", "nocull" ) ) surface.SetDrawColor( color_white ) surface.DrawTexturedRectRotated( xPos + 190, yPos + 50, 50, 60, teleangle ) draw.SimpleText( "Exit Sphere", "TargetID", xPos + 150 , ScrH() - 105, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP ) end colrb = hp / maxhealth * 255 else colrb = 255 end draw.SimpleText( "", "Trebuchet24", xPos + 15, ScrH() - 100, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP ) draw.SimpleText( "Drachma: "..drachma, "TargetID", xPos + 15, ScrH() - 80, Color(255,255,255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP ) if role == "Minotaur" then draw.SimpleText( role, "Trebuchet24", ScrW() - 100, 50, Color(230,0,0), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP ) elseif role == "Human" then draw.SimpleText( role, "Trebuchet24", ScrW() - 100, 50, Color(0,230,0), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP ) else draw.SimpleText( role, "Trebuchet24", ScrW() - 100, 50, Color(230,230,230), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP ) end if LocalPlayer():Alive() && (role == "Human" or role == "Minotaur") then draw.SimpleText( "HP:"..LocalPlayer():Health(), "TargetID", xPos + 15, ScrH() - 60, Color(255,colrb,colrb), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP ) end else end if checkExpire() then if slidex < 40 then slidex = slidex + .5 end local bordersize = 6 local posx = xPos + 250 local posy = yPos + 50 local font = "DefaultFont" local textColor = Color(255,255,255) draw.WordBox( bordersize, posx + slidex, posy, curmessage, font, bcol, textColor ) end -- target ID's from gmod's base code, put here since they stopped working, but they are a default function local tr = util.GetPlayerTrace( LocalPlayer() ) local trace = util.TraceLine( tr ) if (!trace.Hit) then return end if (!trace.HitNonWorld) then return end local text = "ERROR" local text2 = "" local font = "Trebuchet24" if (trace.Entity:IsPlayer()) and trace.Entity:GetColor().a > 20 then text = trace.Entity:Nick() else return end surface.SetFont( font ) local w, h = surface.GetTextSize( text ) local MouseX, MouseY = gui.MousePos() if ( MouseX == 0 && MouseY == 0 ) then MouseX = ScrW() / 2 MouseY = ScrH() / 2 end local x = MouseX local y = MouseY x = x - w / 2 y = y + 30 draw.SimpleText( text, font, x+1, y+1, Color(0,0,0,120) ) draw.SimpleText( text, font, x+2, y+2, Color(0,0,0,50) ) draw.SimpleText( text, font, x, y, self:GetTeamColor( trace.Entity ) ) y = y + h + 5 local font = "Trebuchet18" if trace.Entity:Health() > 0 then local text = trace.Entity:Health() surface.SetFont( font ) local w, h = surface.GetTextSize( text ) local x = MouseX - w / 2 draw.SimpleText( text, font, x+1, y+1, Color(0,0,0,120) ) draw.SimpleText( text, font, x+2, y+2, Color(0,0,0,50) ) draw.SimpleText( text, font, x, y, self:GetTeamColor( trace.Entity ) ) end local w, h = surface.GetTextSize( text2 ) y = y + h local x = MouseX - w / 2 draw.SimpleText( text2, font, x+1, y+1, Color(0,0,0,120) ) draw.SimpleText( text2, font, x+2, y+2, Color(0,0,0,50) ) draw.SimpleText( text2, font, x, y, self:GetTeamColor( trace.Entity ) ) end --- post processing local function specialprocessing() if round >= 2 && LocalPlayer():Alive() then hp = LocalPlayer():Health() if hp < 40 then hpmod = hp / 40 else hpmod = 1 end postproccessor = {} if role == "Human" then postproccessor[ "$pp_colour_addr" ] = 0 postproccessor[ "$pp_colour_addg" ] = 0 postproccessor[ "$pp_colour_addb" ] = 0 postproccessor[ "$pp_colour_brightness" ] = -.06 - sight postproccessor[ "$pp_colour_contrast" ] = 1 - ( 1 - hpmod ) * .3 + math.sin( CurTime() * 3 ) * musictype * .6 postproccessor[ "$pp_colour_colour" ] = (1 - ( 1 - hpmod ) ) postproccessor[ "$pp_colour_mulr" ] = .4 * math.sin( CurTime() * 3) * musictype + .5 * musictype postproccessor[ "$pp_colour_mulg" ] = 0 - math.cos( CurTime() * 3) * musictype * .3 postproccessor[ "$pp_colour_mulb" ] = tele * 2 * (1 - hpmod ) - musictype DrawColorModify( postproccessor ) elseif role == "Minotaur" then postproccessor[ "$pp_colour_addr" ] = musictype * .06 postproccessor[ "$pp_colour_addg" ] = 0 postproccessor[ "$pp_colour_addb" ] = 0 postproccessor[ "$pp_colour_brightness" ] = -.06 - sight postproccessor[ "$pp_colour_contrast" ] = 1.1 * ( 1 - sight ) - musictype * .5 postproccessor[ "$pp_colour_colour" ] = 0.1 postproccessor[ "$pp_colour_mulr" ] = .5 + musictype postproccessor[ "$pp_colour_mulg" ] = 0.05 - musictype * .5 postproccessor[ "$pp_colour_mulb" ] = 0.05 - musictype * .5 DrawColorModify( postproccessor ) else end end end hook.Add( "RenderScreenspaceEffects", "RenderColorModifyPOO", specialprocessing ) function addMessageToQueue( message ) if #queue > 0 or curmessage != "" then if !table.RemoveByValue( queue, message ) and curmessage != message then queue[ #queue + 1 ] = message messageexpire = messageexpire - ( messageexpire - CurTime() ) * (3 / 5 ) end else slidex = 0 surface.PlaySound( "UI/buttonclick.wav" ) local song = table.Random( MINOTAURSONGS ) curmessage = message messageexpire = CurTime() + 4 end end function checkExpire() if curmessage != "" then if messageexpire < CurTime() then if #queue > 0 then slidex = 0 surface.PlaySound( "UI/buttonclick.wav" ) curmessage = queue[1] table.remove( queue, 1 ) messageexpire = CurTime() + ( 4 / (#queue + 1) ) else curmessage = "" end end return true else return false end end net.Receive( "soundtrack", function() local info = net.ReadTable() PlaySoundtrack( info[1], info[2] ) end) net.Receive( "readyplayers", function() readyplayers = net.ReadInt( 10 ) end) function PlaySoundtrack( filepath, soundtype) musictype = soundtype if not enablemusic then return end if soundtype == 0 then if mystartsound == nil then startsound = Sound(filepath) mystartsound = CreateSound( LocalPlayer(), startsound ) mystartsound:Play() mystartsound:ChangeVolume( .55, 0 ) else if mystartsound:IsPlaying() then mystartsound:ChangeVolume( .55, 2 ) else mystartsound:Play() end if myendsound != nil and myendsound:IsPlaying() then myendsound:ChangeVolume( 0.01, 2 ) end end else if myendsound == nil then endsound = Sound(filepath) myendsound = CreateSound( LocalPlayer(), endsound ) myendsound:Play() myendsound:ChangeVolume( .66, 0 ) if mystartsound != nil and mystartsound:IsPlaying() then mystartsound:ChangeVolume( 0.01, 2 ) end else if myendsound:IsPlaying() then myendsound:ChangeVolume( .66, 2 ) else myendsound:Play() end if mystartsound != nil and mystartsound:IsPlaying() then mystartsound:ChangeVolume( 0.01, 2 ) end end end end net.Receive("roundinfo", function(len) lr = round round = net.ReadInt( 3 ) if round == 1 then surface.PlaySound( "buttons/button5.wav" ) tele = 0 sight = 0 endTime = 0 thirdperson = false telepos = nil mystartsound = nil musictype = 0 myendsound = nil elseif round == 2 then players = 0 ready = false sight = 0 endTime = 0 thirdperson = false surface.PlaySound( "ambient/materials/metal_big_impact_scrape1.wav" ) else if role == "Minotaur" then surface.PlaySound( "labyrinth/gamestartmino.wav" ) end if role == "Human" then surface.PlaySound( "labyrinth/gamestarthuman.wav" ) end local song = table.Random( GAMESTARTSONGS ) end if round == 1 and lr == 3 then surface.PlaySound( "labyrinth/gameover.wav" ) end end) net.Receive("drachma", function(len) drachma = net.ReadInt( 30 ) end) net.Receive("playermessage", function(len) local message = net.ReadString( ) addMessageToQueue( message ) end) net.Receive("endtime", function(len) endTime = net.ReadDouble( 32 ) end) net.Receive("blindness", function(len) time = net.ReadInt( 8 ) if sight == 0 then sight = 1 timer.Simple( time, function() sight = 0 end) end end) net.Receive("readytime", function(len) readytime = CurTime() + net.ReadDouble( 32 ) end) net.Receive( "helpmenu", function( len ) local DermaPanel = vgui.Create( "DFrame" ) DermaPanel:SetSize(ScrW() * 0.95, ScrH() * 0.95) DermaPanel:SetPos((ScrW() - DermaPanel:GetWide()) / 2, (ScrH() - DermaPanel:GetTall()) / 2) DermaPanel:SetTitle( "Player Menu" ) DermaPanel:SetVisible( true ) DermaPanel:SetDraggable( true ) DermaPanel:MakePopup() if databaseGetValue( "lifetimedrachma" ) != nil and databaseGetValue( "lifetimedrachma" ) < 10 and role == "Observer" then DermaPanel:ShowCloseButton( false ) timer.Simple( 7, function() DermaPanel:ShowCloseButton( true ) end ) else DermaPanel:ShowCloseButton( true ) end local PropertySheet = vgui.Create( "DPropertySheet", DermaPanel ) PropertySheet:SetParent( DermaPanel ) PropertySheet:SetSize(ScrW() * 0.9, ScrH() * 0.9) PropertySheet:SetPos((ScrW() - PropertySheet:GetWide()) / 4, (ScrH() - PropertySheet:GetTall()) / 2) local HelpPanel = vgui.Create( "HTML", PropertySheet ) HelpPanel:SetSize(ScrW() * 0.9, ScrH() * 0.9) HelpPanel:SetPos((ScrW() - HelpPanel:GetWide()) / 4, (ScrH() - HelpPanel:GetTall()) / 2) HelpPanel:OpenURL("http://motd.ftwgamer.com/labyrinth-help.php") HelpPanel.Paint = function() surface.SetDrawColor( 50, 50, 50, 255 ) surface.DrawRect( 0, 0, HelpPanel:GetWide(), HelpPanel:GetTall() ) end local SettingsPanel = vgui.Create( "DForm", PropertySheet ) SettingsPanel:SetSize(ScrW() * 0.9, ScrH() * 0.9) SettingsPanel:SetPos((ScrW() - SettingsPanel:GetWide()) / 4, (ScrH() - SettingsPanel:GetTall()) / 2) SettingsPanel:SetName( "Settings" ) SettingsPanel:Button( "Toggle Music", "ToggleMusic" ) local StatsPanel = vgui.Create( "DListView", PropertySheet ) StatsPanel:AddColumn( "Stat" ) StatsPanel:AddColumn( "Your amount" ) StatsPanel:AddColumn( "Record amount" ) StatsPanel:AddColumn( "Record Holder" ) StatsPanel:SetSize(ScrW() * 0.9, ScrH() * 0.9) StatsPanel:SetPos((ScrW() - StatsPanel:GetWide()) / 4, (ScrH() - StatsPanel:GetTall()) / 2) StatsPanel:SetName( "Settings" ) local serverstats = net.ReadTable() local mytab = databaseTable() StatsPanel:AddLine( "Human Kills", mytab["humankills"], serverstats["humankills"], serverstats["humankillsname"] ) StatsPanel:AddLine( "Minotaur Kills", mytab["minotaurkills"], serverstats["minotaurkills"], serverstats["minotaurkillsname"] ) StatsPanel:AddLine( "Sprays", mytab["sprays"], serverstats["sprays"], serverstats["spraysname"] ) StatsPanel:AddLine( "Minigame Wins", mytab["minigamewins"], serverstats["minigamewins"], serverstats["minigamewinsname"] ) StatsPanel:AddLine( "Labyrinth Escapes", mytab["escapes"], serverstats["escapes"], serverstats["escapesname"] ) StatsPanel:AddLine( "Labyrinth Wins", mytab["gamewins"], serverstats["gamewins"], serverstats["gamewinsname"] ) StatsPanel:AddLine( "Lifetime Drachma", mytab["lifetimedrachma"], serverstats["lifetimedrachma"], serverstats["lifetimedrachmaname"] ) PropertySheet:AddSheet( "Help", HelpPanel, "gui/silkicons/user", false, false, "Have questions answered." ) PropertySheet:AddSheet( "Settings", SettingsPanel, "gui/silkicons/user", false, false, "Set things." ) PropertySheet:AddSheet( "Stats", StatsPanel, "gui/silkicons/user", false, false, "Brag about stuff people don't care about." ) end) net.Receive("myrole", function(len) role = NumToRole( net.ReadInt( 4 ) ) if role == "Human" then surface.PlaySound( "labyrinth/human/human"..math.random(1,2)..".wav" ) elseif role == "Minotaur" then surface.PlaySound( "labyrinth/minotaur/minotaur.wav" ) else thirdperson = false end end) net.Receive( "telepos", function( len ) telepos = net.ReadVector( ) end) net.Receive("teleporterspawned", function(len) --local telepos = net.ReadVector( ) local song = table.Random( MINOTAURSONGS ) if role == "Minotaur" then surface.PlaySound( "labyrinth/teleporterappearedminos.wav" ) end if role == "Human" then surface.PlaySound( "labyrinth/teleporterappearedhumans.wav" ) end tele = 1 end) net.Receive("maxhealth", function(len) maxhealth = net.ReadInt( 10 ) end) function ToggleMusic( ply, command, arguments ) if enablemusic then addMessageToQueue( "Disabled music." ) end if !enablemusic then addMessageToQueue( "Enabled music." ) end enablemusic = !enablemusic end concommand.Add( "ToggleMusic", ToggleMusic )
return function() local isDark = require(script.Parent.isDark) it("throws if argument is not a Color3", function() expect(pcall(isDark, true)).to.equal(false) end) it("returns `false` for white", function() expect(isDark(Color3.new(1, 1, 1))).to.equal(false) end) it("returns `true` for black", function() expect(isDark(Color3.new())).to.equal(true) end) it("returns `true` for crimson", function() expect(isDark(Color3.new(.6, 0, 0))) end) end
local Root = script.Parent.Parent.Parent local CorePackages = game:GetService("CorePackages") local PurchasePromptDeps = require(CorePackages.PurchasePromptDeps) local Roact = PurchasePromptDeps.Roact local PromptState = require(Root.Enums.PromptState) local purchaseItem = require(Root.Thunks.purchaseItem) local launchRobuxUpsell = require(Root.Thunks.launchRobuxUpsell) local initiatePurchasePrecheck = require(Root.Thunks.initiatePurchasePrecheck) local getPlayerPrice = require(Root.Utils.getPlayerPrice) local connectToStore = require(Root.connectToStore) local ConfirmButton = require(script.Parent.ConfirmButton) local CancelButton = require(script.Parent.CancelButton) local OkButton = require(script.Parent.OkButton) local withLayoutValues = require(script.Parent.Parent.Connection.withLayoutValues) local GetFFlagPurchasePromptScaryModalV2 = require(Root.Flags.GetFFlagPurchasePromptScaryModalV2) local CONFIRM_PURCHASE_KEY = "CoreScripts.PurchasePrompt.ConfirmPurchase.%s" local PromptButtons = Roact.PureComponent:extend("PromptButtons") function PromptButtons:render() return withLayoutValues(function(values) local layoutOrder = self.props.layoutOrder local onClose = self.props.onClose local promptState = self.props.promptState local price = self.props.price local onBuy = self.props.onBuy local onRobuxUpsell = self.props.onRobuxUpsell local onScaryModalConfirm = self.props.onScaryModalConfirm local children if promptState == PromptState.PurchaseComplete or promptState == PromptState.Error then children = { UIPadding = Roact.createElement("UIPadding", { PaddingBottom = UDim.new(0, 4), }), OkButton = Roact.createElement(OkButton, { onClick = onClose, }), } else local confirmButtonStringKey = CONFIRM_PURCHASE_KEY:format("BuyNow") local leftButtonCallback = onBuy if price == 0 then confirmButtonStringKey = CONFIRM_PURCHASE_KEY:format("TakeFree") elseif promptState == PromptState.RobuxUpsell then confirmButtonStringKey = CONFIRM_PURCHASE_KEY:format("BuyRobuxV2") leftButtonCallback = onRobuxUpsell elseif promptState == PromptState.AdultConfirmation then confirmButtonStringKey = "CoreScripts.PurchasePrompt.Button.OK" leftButtonCallback = onRobuxUpsell elseif promptState == PromptState.U13PaymentModal or promptState == PromptState.U13MonthlyThreshold1Modal or promptState == PromptState.U13MonthlyThreshold2Modal then confirmButtonStringKey = "CoreScripts.PurchasePrompt.Button.OK" leftButtonCallback = onScaryModalConfirm end children = { ConfirmButton = Roact.createElement(ConfirmButton, { stringKey = confirmButtonStringKey, onClick = leftButtonCallback, }), CancelButton = Roact.createElement(CancelButton, { onClick = onClose, }), } end return Roact.createElement("Frame", { LayoutOrder = layoutOrder, BackgroundTransparency = 1, BorderSizePixel = 0, Size = UDim2.new(1, 0, 0, values.Size.ButtonHeight) }, children) end) end local function mapStateToProps(state) local isPlayerPremium = state.accountInfo.membershipType == 4 local price = getPlayerPrice(state.productInfo, isPlayerPremium) return { promptState = state.promptState, price = price, } end local function mapDispatchToProps(dispatch) return { onBuy = function() dispatch(purchaseItem()) end, onScaryModalConfirm = function() dispatch(launchRobuxUpsell()) end, onRobuxUpsell = function() if (GetFFlagPurchasePromptScaryModalV2()) then dispatch(initiatePurchasePrecheck()) else dispatch(launchRobuxUpsell()) end end, } end PromptButtons = connectToStore( mapStateToProps, mapDispatchToProps )(PromptButtons) return PromptButtons
-- vim: ts=2 sw=2 sts=2 et : -- Testing Nums -- (c) 2021 Tim Menzies (timm@ieee.org) unlicense.org package.path = '../src/?.lua;' .. package.path local Lib,Num=require("lib"),require("num") do local n=Num(10,"asds-") n:add {9,2,5,4,12,7,8,11,9,3,7,4,12,5,4,10,9,6,9,4} assert(n.mu == 7,"mu test") assert(3.06 <= n.sd and n.sd <= 3.07, "sd test") end Lib.rogues()
if UseItem(161) == true then goto label0 end; do return end; ::label0:: SetScenceMap(-2, 1, 29, 25, 0); SetScenceMap(-2, 1, 29, 24, 3698); SetScenceMap(-2, 1, 28, 24, 3696); ModifyEvent(-2, -2, -2, -2, -1, -1, -1, -1, -1, -1, -2, -2, -2); jyx2_FixMapObject("梅庄地牢开门",1); do return end;
-- oUF_Simple: core/spawn -- zork, 2016 ----------------------------- -- Variables ----------------------------- local A, L = ... local oUF = L.oUF or oUF ----------------------------- -- oUF Tags ----------------------------- --add player regen to the unitless event tags oUF.Tags.SharedEvents["PLAYER_REGEN_DISABLED"] = true oUF.Tags.SharedEvents["PLAYER_REGEN_ENABLED"] = true --tag method: oUF_Simple:health oUF.Tags.Methods["oUF_Simple:health"] = function(unit) if not UnitIsConnected(unit) then return "|cff999999Offline|r" end if(UnitIsDead(unit) or UnitIsGhost(unit)) then return "|cff999999Dead|r" end local hpmin, hpmax = UnitHealth(unit), UnitHealthMax(unit) local hpper = 0 if hpmax > 0 then hpper = floor(hpmin/hpmax*100) end return L.F.NumberFormat(hpmin).."|ccccccccc | |r"..hpper.."%" end --tag event: oUF_Simple:health oUF.Tags.Events["oUF_Simple:health"] = "UNIT_HEALTH UNIT_MAXHEALTH UNIT_CONNECTION" --tag method: oUF_Simple:role oUF.Tags.Methods["oUF_Simple:role"] = function(unit) local role = UnitGroupRolesAssigned(unit) if role == "TANK" then return "|TInterface\\LFGFrame\\LFGRole:14:14:0:0:64:16:32:48:0:16|t" elseif role == "HEALER" then return "|TInterface\\LFGFrame\\LFGRole:14:14:0:0:64:16:48:64:0:16|t" --elseif role == "DAMAGER" then --return "|TInterface\\LFGFrame\\LFGRole:14:14:0:0:64:16:16:32:0:16|t" end end --tag event: oUF_Simple:role oUF.Tags.Events["oUF_Simple:role"] = "PLAYER_ROLES_ASSIGNED GROUP_ROSTER_UPDATE" --tag method: oUF_Simple:leader oUF.Tags.Methods["oUF_Simple:leader"] = function(unit) if UnitIsGroupLeader(unit) then return "|TInterface\\GroupFrame\\UI-Group-LeaderIcon:14:14:0:0|t" end end --tag event: oUF_Simple:leader oUF.Tags.Events["oUF_Simple:leader"] = "PARTY_LEADER_CHANGED GROUP_ROSTER_UPDATE" --load tags from the config if L.C.tagMethods and type(L.C.tagMethods) == "table" and L.C.tagEvents and type(L.C.tagEvents) == "table" then for key, value in next, L.C.tagMethods do if L.C.tagMethods[key] and L.C.tagEvents[key] then oUF.Tags.Methods[key] = L.C.tagMethods[key] oUF.Tags.Events[key] = L.C.tagEvents[key] end end end
function lang_switch_keys(lang) local in_lang = {} local langs = { [1] = {lang_key = "tr", lang_name = "Türkçe", script_name = "Satır Sil", sub_menu = "Satır/Sil"}, [2] = {lang_key = "en", lang_name = "English", script_name = "Delete Lines", sub_menu = "Lines/Delete"} } local lang_list = {} local script_name_list = {} local sub_menu_list = {} for i = 1, #langs do lang_list[langs[i].lang_key] = langs[i].lang_name script_name_list[langs[i].lang_key] = langs[i].script_name sub_menu_list[langs[i].lang_key] = langs[i].sub_menu end if lang == langs[1].lang_key then in_lang["module_incompatible"] = "Mag modülünün kurulu sürümü bu lua dosyası ile uyumsuz!\n\nModül dosyasının en az \"%s\" sürümü veya daha üstü gerekiyor.\n\n\nŞimdi indirme sayfasına gitmek ister misiniz?" in_lang["module_not_found"] = "Mag modülü bulunamadı!\n\nBu lua dosyasını kullanmak için Mag modülünü indirip Aegisub programı kapalıyken\n\"Aegisub/automation/include/\" dizinine taşımanız gerekiyor.\n\n\nŞimdi indirme sayfasına gitmek ister misiniz?" in_lang["module_yes"] = "Git" in_lang["module_no"] = "Daha Sonra" in_lang["sub_menu"] = langs[1].sub_menu in_lang["s_name"] = langs[1].script_name in_lang["s_desc"] = "Stile, oyuncuya veya efeğe göre satırları siler." in_lang["tabKey1"] = "Stil" in_lang["tabKey2"] = "Oyuncu" in_lang["tabKey3"] = "Efekt" in_lang["buttonKey1"] = "Sil" in_lang["buttonKey2"] = "Satır Ekle" in_lang["buttonKey3"] = "Satır Sil" in_lang["buttonKey4"] = "Kapat" in_lang["guiLabel1"] = "Stil:" in_lang["guiLabel2"] = "Stil bilgisini de sil." in_lang["guiLabel3"] = "Oyuncu:" in_lang["guiLabel4"] = "Efekt:" in_lang["guiHint1"] = "Bu kutuyu seçerek \"{%s}\" butonuna basarsanız arayüzdeki o satır silenecektir." in_lang["key1"] = "Satır oluşturmak için kalan hakkınız: {%s}" in_lang["key2"] = "Stil Yöneticisi'nde listelenen stillerden hiçbirini seçmemişsiniz." in_lang["key3"] = "Hiçbir satırın oyuncu kutucuğu dolu değil." in_lang["key4"] = "Hiçbir satırın efekt kutucuğu dolu değil." in_lang["logKey1"] = "[Stil: \"{%s}\"]\nSilinen satır: {%s}\nStil bilgisi: {%s}" in_lang["logKey2"] = "Toplam silinen satır: {%s}\n\nSilinen stil bilgilerinin listesi:\n{%s}\n\nSilinmeyen stil bilgilerinin listesi:\n{%s}" in_lang["logKey3"] = "Aynı stil adı birçok kere kullanıldı:\n{%s}" in_lang["logKey4"] = "Aynı oyuncu adı birçok kere kullanıldı:\n{%s}" in_lang["logKey5"] = "[Oyuncu: \"{%s}\"]\nSilinen satır: {%s}" in_lang["logKey6"] = "Toplam silinen satır: {%s}" in_lang["logKey7"] = "Aynı efekt adı birçok kere kullanıldı:\n{%s}" in_lang["logKey8"] = "[Efekt: \"{%s}\"]\nSilinen satır: {%s}" in_lang["logTrue"] = "silindi" in_lang["logFalse"] = "silinmedi" in_lang["logNone"] = "hiçbiri" in_lang["doubleItemFormat"] = "{%s} (x{%s})" elseif lang == langs[2].lang_key then in_lang["module_incompatible"] = "The installed version of the Mag module is incompatible with this lua file!\n\nAt least \"%s\" version or higher of the module file is required.\n\n\nWould you like to go to the download page now?" in_lang["module_not_found"] = "The module named Mag could not be found!\n\nTo use this file, you need to download the module named mag\nand move it to \"Aegisub/automation/include/\" directory when Aegisub is off.\n\n\nDo you want to go to download page now?" in_lang["module_yes"] = "Go" in_lang["module_no"] = "Later" in_lang["sub_menu"] = langs[2].sub_menu in_lang["s_name"] = langs[2].script_name in_lang["s_desc"] = "Deletes lines by style, actor or effect." in_lang["tabKey1"] = "Style" in_lang["tabKey2"] = "Actor" in_lang["tabKey3"] = "Effect" in_lang["buttonKey1"] = "Delete" in_lang["buttonKey2"] = "New Row" in_lang["buttonKey3"] = "Delete Row" in_lang["buttonKey4"] = "Close" in_lang["guiLabel1"] = "Style:" in_lang["guiLabel2"] = "Also delete style info" in_lang["guiLabel3"] = "Actor:" in_lang["guiLabel4"] = "Effect:" in_lang["guiHint1"] = "If you click on the \"{%s}\" button by choosing this box, the line in the interface will be deleted." in_lang["key1"] = "Remaining rights to create a row: {%s}" in_lang["key2"] = "You have not selected any styles of styles manager in the lines." in_lang["key3"] = "Actor boxes are empty." in_lang["key4"] = "Effect boxes are empty." in_lang["logKey1"] = "[Style: \"{%s}\"]\nDeleted lines: {%s}\nStyle info: {%s}" in_lang["logKey2"] = "Total deleted lines: {%s}\n\nList of deleted style info:\n{%s}\n\nList of undeleted style info:\n{%s}" in_lang["logKey3"] = "Same style name was used more than once:\n{%s}" in_lang["logKey4"] = "Same actor name was used more than once:\n{%s}" in_lang["logKey5"] = "[Actor: \"{%s}\"]\nDeleted lines: {%s}" in_lang["logKey6"] = "Total deleted lines: {%s}" in_lang["logKey7"] = "Same effect name was used more than once:\n{%1}" in_lang["logKey8"] = "[Effect: \"{%s}\"]\nDeleted lines: {%s}" in_lang["logTrue"] = "deleted" in_lang["logFalse"] = "not deleted" in_lang["logNone"] = "none" in_lang["doubleItemFormat"] = "{%s} (x{%s})" end return in_lang, lang_list, script_name_list, sub_menu_list end c_lang_switch = "en" c_lang, c_lang_list, c_script_name_list, c_sub_name_list = lang_switch_keys(c_lang_switch) script_name = c_lang.s_name script_description = c_lang.s_desc script_version = "2.4" script_author = "Magnum357" script_mag_version = "1.1.4.4" script_file_name = "mag.delete_lines" script_file_ext = ".lua" mag_import, mag = pcall(require, "mag") if mag_import then mag.lang = c_lang_switch c_lang.guiLabel1 = mag.string.wall(" ", 5)..c_lang.guiLabel1 c_lang.guiLabel3 = mag.string.wall(" ", 5)..c_lang.guiLabel3 c_lang.guiLabel4 = mag.string.wall(" ", 5)..c_lang.guiLabel4 c_lock_gui = false c_buttons1 = {c_lang.buttonKey1, c_lang.buttonKey2, c_lang.buttonKey3, c_lang.buttonKey4} c_buttons2 = {c_lang.buttonKey5, c_lang.buttonKey4} c_max_row = 10 end function create_gui(mode,x,y,width,height,name,value,label,hint) if mode == "checkbox" then return {class = "checkbox", name = name, label = label, x = x, y = y, width = width, height = height, value = value, hint = hint} end if mode == "label" then return {class = "label", x = x, y = y, width = width, height = height, label = label} end if mode == "dropdown" then return {class = "dropdown", name = name, x = x, y = y, width = width, height = height, items = value, value = label, hint = hint} end end function add_macro1(subs) local buttons = {c_buttons1[1], c_buttons1[2], c_buttons1[4]} my_gui = {} local id = 2 local pos = 1 local ok, config local limit = c_max_row local deleted_row = 0 local apply = {mag.window.lang.message("select")} local list = mag.list.apply(subs, "default") if list[1] ~= nil then if my_gui["exp"] == nil then my_gui["exp"] = create_gui("label", 0, 2, 4, 1, "", "", mag.string.format(c_lang.key1, limit - 1), "") end if my_gui[1] == nil then my_gui[1] = create_gui("label", 0, 0, 1, 1, "", "", "#1", "") end if my_gui[2] == nil then my_gui[2] = create_gui("label", 1, 0, 1, 1, "", "", c_lang.guiLabel1, "") end if my_gui[3] == nil then my_gui[3] = create_gui("dropdown", 2, 0, 1, 1, "u_list_1", apply, mag.window.lang.message("select"), "") end if my_gui[4] == nil then my_gui[4] = create_gui("checkbox", 2, 1, 1, 1, "u_delete_style_1", false, c_lang.guiLabel2, "") end for _, style in pairs(list) do mag.array.insert(apply, style) end repeat ok, config = mag.window.dialog(my_gui, buttons) if ok == mag.convert.ascii(c_buttons1[3]) then local deleted_row = false for n in pairs(my_gui) do if mag.n(n) and n % 4 == 0 and config[ my_gui[n - 3].name ] then deleted_row = true my_gui["exp"].label = mag.string.format(c_lang.key1, limit - pos + 1) pos = pos - 1 my_gui[n - 3] = nil my_gui[n - 2] = nil my_gui[n - 1] = nil my_gui[n] = nil end end if deleted_row then local k = 0 local e = 0 for n in pairs(my_gui) do local m = 0 if mag.n(n) and n % 4 == 0 then m = m + 1 e = e + 1 my_gui[n - 3].label = "#" .. e end my_gui[n].y = k * 2 + m if m == 1 then k = k + 1 end end end end if ok == mag.convert.ascii(c_buttons1[2]) or ok == mag.convert.ascii(c_buttons1[3]) then for n in pairs(my_gui) do if mag.n(n) and n % 4 == 0 then my_gui[n - 3].value = config[ my_gui[n - 3].name ] my_gui[n - 1].value = config[ my_gui[n - 1].name ] my_gui[n].value = config[ my_gui[n].name ] end end end if ok == mag.convert.ascii(c_buttons1[2]) then if my_gui[id * 4 + 1 - 4] == nil then my_gui[id * 4 + 1 - 4] = create_gui("checkbox", 0, pos * 2, 1, 1, "u_row_id_" .. id, false, "#" .. pos + 1, mag.string.format(c_lang.guiHint1, c_lang.buttonKey3)) end if my_gui[id * 4 + 2 - 4] == nil then my_gui[id * 4 + 2 - 4] = create_gui("label", 1, pos * 2, 1, 1, "", "", c_lang.guiLabel1, "") end if my_gui[id * 4 + 3 - 4] == nil then my_gui[id * 4 + 3 - 4] = create_gui("dropdown", 2, pos * 2, 1, 1, "u_list_" .. id, apply, mag.window.lang.message("select"), "") end if my_gui[id * 4 + 4 - 4] == nil then my_gui[id * 4 + 4 - 4] = create_gui("checkbox", 2, pos * 2 + 1, 1, 1, "u_delete_style_" .. id, false, c_lang.guiLabel2, "") end my_gui["exp"].y = pos * 2 + 2 my_gui["exp"].label = mag.string.format(c_lang.key1, limit - pos - 1) end if ok == mag.convert.ascii(c_buttons1[2]) then id = id + 1 pos = pos + 1 end if pos > 1 then buttons = {c_buttons1[1], c_buttons1[2], c_buttons1[3], c_buttons1[4]} else buttons = {c_buttons1[1], c_buttons1[2], c_buttons1[4]} end if pos >= limit then buttons = {c_buttons1[1], c_buttons1[3], c_buttons1[4]} end until ok == mag.convert.ascii(c_buttons1[1]) or ok == mag.convert.ascii(c_buttons1[4]) if ok == mag.convert.ascii(c_buttons1[1]) then delete_lines_for_styles(subs, sel, config) end else mag.show.log(1, c_lang.key2) end end function add_macro2(subs) local buttons = {c_buttons1[1], c_buttons1[2], c_buttons1[4]} my_gui = {} local id = 2 local pos = 1 local ok, config local limit = c_max_row local deleted_row = 0 local apply = {mag.window.lang.message("select")} local list = mag.list.actor(subs, true) if list ~= nil and list[1] ~= nil then if my_gui["exp"] == nil then my_gui["exp"] = create_gui("label", 0, 1, 4, 1, "", "", mag.string.format(c_lang.key1, limit - 1), "") end if my_gui[1] == nil then my_gui[1] = create_gui("label", 0, 0, 1, 1, "", "", "#1", "") end if my_gui[2] == nil then my_gui[2] = create_gui("label", 1, 0, 1, 1, "", "", c_lang.guiLabel3, "") end if my_gui[3] == nil then my_gui[3] = create_gui("dropdown", 2, 0, 1, 1, "u_list_1", apply, mag.window.lang.message("select"), "") end for _, actor in pairs(list) do mag.array.insert(apply, actor) end repeat ok, config = mag.window.dialog(my_gui, buttons) if ok == mag.convert.ascii(c_buttons1[3]) then local deleted_row = false for n in pairs(my_gui) do if mag.n(n) and n % 3 == 0 and config[my_gui[n - 2].name] then deleted_row = true my_gui["exp"].label = mag.string.format(c_lang.key1, limit - pos + 1) pos = pos - 1 my_gui[n - 2] = nil my_gui[n - 1] = nil my_gui[n] = nil end end if deleted_row then local m = 0 for n in pairs(my_gui) do my_gui[n].y = m if mag.n(n) and n % 3 == 0 then m = m + 1 my_gui[n - 2].label = "#" .. m end end end end if ok == mag.convert.ascii(c_buttons1[2]) or ok == mag.convert.ascii(c_buttons1[3]) then for n in pairs(my_gui) do if mag.n(n) and n % 3 == 0 then my_gui[n - 2].value = config[ my_gui[n - 2].name ] my_gui[n - 1].value = config[ my_gui[n - 1].name ] my_gui[n].value = config[ my_gui[n].name ] end end end if ok == mag.convert.ascii(c_buttons1[2]) then if my_gui[id * 3 + 1 - 3] == nil then my_gui[id * 3 + 1 - 3] = create_gui("checkbox", 0, pos, 1, 1, "u_row_id_" .. id, false, "#" .. pos + 1, mag.string.format(c_lang.guiHint1, c_lang.buttonKey3)) end if my_gui[id * 3 + 2 - 3] == nil then my_gui[id * 3 + 2 - 3] = create_gui("label", 1, pos, 1, 1, "", "", c_lang.guiLabel3, "") end if my_gui[id * 3 + 3 - 3] == nil then my_gui[id * 3 + 3 - 3] = create_gui("dropdown", 2, pos, 1, 1, "u_list_" .. id, apply, mag.window.lang.message("select"), "") end my_gui["exp"].y = pos + 1 my_gui["exp"].label = mag.string.format(c_lang.key1, limit - pos - 1) end if ok == mag.convert.ascii(c_buttons1[2]) then id = id + 1 pos = pos + 1 end if pos > 1 then buttons = {c_buttons1[1], c_buttons1[2], c_buttons1[3], c_buttons1[4]} else buttons = {c_buttons1[1], c_buttons1[2], c_buttons1[4]} end if pos >= limit then buttons = {c_buttons1[1], c_buttons1[3], c_buttons1[4]} end until ok == mag.convert.ascii(c_buttons1[1]) or ok == mag.convert.ascii(c_buttons1[4]) if ok == mag.convert.ascii(c_buttons1[1]) then delete_lines_for_actor(subs, sel, config) end else mag.show.log(1, c_lang.key3) end end function add_macro3(subs) local buttons = {c_buttons1[1], c_buttons1[2], c_buttons1[4]} my_gui = {} local id = 2 local pos = 1 local ok, config local limit = c_max_row local deleted_row = 0 local apply = {mag.window.lang.message("select")} local list = mag.list.effect(subs, true) if list ~= nil and list[1] ~= nil then if my_gui["exp"] == nil then my_gui["exp"] = create_gui("label", 0, 1, 4, 1, "", "", mag.string.format(c_lang.key1, limit - 1), "") end if my_gui[1] == nil then my_gui[1] = create_gui("label", 0, 0, 1, 1, "", "", "#1", "") end if my_gui[2] == nil then my_gui[2] = create_gui("label", 1, 0, 1, 1, "", "", c_lang.guiLabel4, "") end if my_gui[3] == nil then my_gui[3] = create_gui("dropdown", 2, 0, 1, 1, "u_list_1", apply, mag.window.lang.message("select"), "") end for _, actor in pairs(list) do mag.array.insert(apply, actor) end repeat ok, config = mag.window.dialog(my_gui, buttons) if ok == mag.convert.ascii(c_buttons1[3]) then local deleted_row = false for n in pairs(my_gui) do if mag.n(n) and n % 3 == 0 and config[ my_gui[n - 2].name ] then deleted_row = true my_gui["exp"].label = mag.string.format(c_lang.key1, limit - pos + 1) pos = pos - 1 my_gui[n - 2] = nil my_gui[n - 1] = nil my_gui[n] = nil end end if deleted_row then local m = 0 for n in pairs(my_gui) do my_gui[n].y = m if mag.n(n) and n % 3 == 0 then m = m + 1 my_gui[n - 2].label = "#" .. m end end end end if ok == mag.convert.ascii(c_buttons1[2]) or ok == mag.convert.ascii(c_buttons1[3]) then for n in pairs(my_gui) do if mag.n(n) and n % 3 == 0 then my_gui[n - 2].value = config[ my_gui[n - 2].name ] my_gui[n - 1].value = config[ my_gui[n - 1].name ] my_gui[n].value = config[ my_gui[n].name ] end end end if ok == mag.convert.ascii(c_buttons1[2]) then if my_gui[id * 3 + 1 - 3] == nil then my_gui[id * 3 + 1 - 3] = create_gui("checkbox", 0, pos, 1, 1, "u_row_id_" .. id, false, "#" .. pos + 1, mag.string.format(c_lang.guiHint1, c_lang.buttonKey3)) end if my_gui[id * 3 + 2 - 3] == nil then my_gui[id * 3 + 2 - 3] = create_gui("label", 1, pos, 1, 1, "", "", c_lang.guiLabel4, "") end if my_gui[id * 3 + 3 - 3] == nil then my_gui[id * 3 + 3 - 3] = create_gui("dropdown", 2, pos, 1, 1, "u_list_" .. id, apply, mag.window.lang.message("select"), "") end my_gui["exp"].y = pos + 1 my_gui["exp"].label = mag.string.format(c_lang.key1, limit - pos - 1) end if ok == mag.convert.ascii(c_buttons1[2]) then id = id + 1 pos = pos + 1 end if pos > 1 then buttons = {c_buttons1[1], c_buttons1[2], c_buttons1[3], c_buttons1[4]} else buttons = {c_buttons1[1], c_buttons1[2], c_buttons1[4]} end if pos >= limit then buttons = {c_buttons1[1], c_buttons1[3], c_buttons1[4]} end until ok == mag.convert.ascii(c_buttons1[1]) or ok == mag.convert.ascii(c_buttons1[4]) if ok == mag.convert.ascii(c_buttons1[1]) then delete_lines_for_effect(subs, sel, config) end else mag.show.log(1, c_lang.key4) end end function delete_lines_for_styles(subs,sel,config) local gui_config = {} gui_config["styles"] = {} gui_config["style_info"] = {} local counter = {config_count = 0, count = 0} for key in pairs(config) do if mag.match(key, "u_list_") then counter["config_count"] = counter["config_count"] + 1 local style_name = mag.strip.apply(config["u_list_"..counter["config_count"]]) if config["u_list_"..counter["config_count"]] ~= mag.window.lang.message("select") then counter["count"] = counter["count"] + 1 gui_config["styles"][counter["count"]] = style_name gui_config["style_info"][counter["count"]] = config["u_delete_style_"..counter["config_count"]] end end end local styles = {} local style_info = {} local deleted = {} local double_styles = {} for i = 1, #gui_config["styles"] do if mag.array.search(styles, gui_config["styles"][i]) == false then deleted[gui_config["styles"][i]] = {lines = 0, info = false} mag.array.insert(styles, gui_config["styles"][i]) mag.array.insert(style_info, gui_config["style_info"][i]) else if mag.array.search(double_styles, gui_config["styles"][i]) == false then mag.array.insert(double_styles, gui_config["styles"][i]) end end end if double_styles[1] ~= nil then local collect_deleted_style_info = "" for d = 1, #double_styles do collect_deleted_style_info = mag.string.combine(collect_deleted_style_info, mag.string.format(c_lang.doubleItemFormat, double_styles[d], mag.array.count(gui_config["styles"], double_styles[d])), "{%s}\n{%s}") end mag.show.log(2, mag.string.format(c_lang.logKey3, collect_deleted_style_info)) end local line, index local pcs = false local deleted_index = {} for i = 1, #subs do mag.window.progress(i, #subs) index = i line = subs[index] if line.class == "style" then for k = 1, #styles do if style_info[k] == true and styles[k] == line.name then deleted[styles[k]]["info"] = true mag.array.insert(deleted_index, index) end end elseif line.class == "dialogue" then for k = 1, #styles do if line.style == styles[k] then deleted[styles[k]]["lines"] = deleted[styles[k]]["lines"] + 1 mag.array.insert(deleted_index, index) end end end end if deleted_index[1] ~= nil then local total_line = 0 local deleted_styles = "" local undeleted_styles = "" for k = 1, #styles do mag.window.progress(k, #styles) total_line = total_line + deleted[styles[k]]["lines"] local style_info_status if deleted[styles[k]]["info"] then deleted_styles = mag.string.combine(deleted_styles, mag.string.wall(" ", 8)..styles[k], "{%s}\n{%s}") style_info_status = c_lang.logTrue else undeleted_styles = mag.string.combine(undeleted_styles, mag.string.wall(" ", 8)..styles[k], "{%s}\n{%s}") style_info_status = c_lang.logFalse end mag.show.log(mag.string.format(c_lang.logKey1, styles[k], deleted[styles[k]]["lines"], style_info_status)) end if total_line > 0 then local style_group1 if deleted_styles ~= "" then style_group1 = deleted_styles else style_group1 = mag.string.wall(" ", 8)..c_lang.logNone end local style_group2 if undeleted_styles ~= "" then style_group2 = undeleted_styles else style_group2 = mag.string.wall(" ", 8)..c_lang.logNone end mag.show.log(mag.string.format(c_lang.logKey2, total_line, style_group1, style_group2)) end mag.line.delete(subs, deleted_index) end end function delete_lines_for_actor(subs,sel,config) local gui_config = {} gui_config["actors"] = {} local counter = {config_count = 0, count = 0} for key in pairs(config) do if mag.match(key, "u_list_") then counter["config_count"] = counter["config_count"] + 1 local actor_name = mag.strip.apply(config["u_list_"..counter["config_count"]]) if config["u_list_"..counter["config_count"]] ~= mag.window.lang.message("select") then counter["count"] = counter["count"] + 1 gui_config["actors"][counter["count"]] = actor_name end end end local actors = {} local deleted = {} local double_actors = {} for i = 1, #gui_config["actors"] do if mag.array.search(actors, gui_config["actors"][i]) == false then deleted[gui_config["actors"][i]] = {lines = 0} mag.array.insert(actors, gui_config["actors"][i]) else if mag.array.search(double_actors, gui_config["actors"][i]) == false then mag.array.insert(double_actors, gui_config["actors"][i]) end end end if double_actors[1] ~= nil then local collect_deleted_actors = "" for d = 1, #double_actors do collect_deleted_actors = mag.string.combine(collect_deleted_actors, mag.string.format(c_lang.doubleItemFormat, double_actors[d], mag.mag.array.count(gui_config["actors"], double_actors[d])), "{%s}\n{%s}") end mag.show.log(2, mag.string.format(c_lang.logKey4, collect_deleted_actors)) end local line, index local pcs = false local deleted_index = {} for i = 1, #subs do mag.window.progress(i, #subs) index = i line = subs[index] if line.class == "dialogue" then for k = 1, #actors do if line.actor == actors[k] then deleted[actors[k]]["lines"] = deleted[actors[k]]["lines"] + 1 mag.array.insert(deleted_index, index) end end end end if deleted_index[1] ~= nil then local total_line = 0 for k = 1, #actors do mag.window.progress(k, #actors) total_line = total_line + deleted[actors[k]]["lines"] mag.show.log(mag.string.format(c_lang.logKey5, actors[k], deleted[actors[k]]["lines"])) end if total_line > 0 then mag.show.log(mag.string.format(c_lang.logKey6, total_line)) end mag.line.delete(subs, deleted_index) end end function delete_lines_for_effect(subs,sel,config) local gui_config = {} gui_config["effects"] = {} local counter = {config_count = 0, count = 0} for key in pairs(config) do if mag.match(key, "u_list_") then counter["config_count"] = counter["config_count"] + 1 local effect_name = mag.strip.apply(config["u_list_"..counter["config_count"]]) if config["u_list_"..counter["config_count"]] ~= mag.window.lang.message("select") then counter["count"] = counter["count"] + 1 gui_config["effects"][counter["count"]] = effect_name end end end local effects = {} local deleted = {} local double_effects = {} for i = 1, #gui_config["effects"] do if mag.array.search(effects, gui_config["effects"][i]) == false then deleted[gui_config["effects"][i]] = {lines = 0} mag.array.insert(effects, gui_config["effects"][i]) else if mag.array.search(double_effects, gui_config["effects"][i]) == false then mag.array.insert(double_effects, gui_config["effects"][i]) end end end if double_effects[1] ~= nil then local collect_deleted_effects = "" for d = 1, #double_effects do collect_deleted_effects = mag.string.combine(collect_deleted_effects, mag.string.format(c_lang.doubleItemFormat, double_effects[d], mag.array.count(gui_config["effects"], double_effects[d])), "{%s}\n{%s}") end mag.show.log(2, mag.string.format(c_lang.logKey7, collect_deleted_effects)) end local line, index local pcs = false local deleted_index = {} for i = 1, #subs do mag.window.progress(i, #subs) index = i line = subs[index] if line.class == "dialogue" then for k = 1, #effects do if line.effect == effects[k] then deleted[effects[k]]["lines"] = deleted[effects[k]]["lines"] + 1 mag.array.insert(deleted_index, index) end end end end if deleted_index[1] ~= nil then local total_line = 0 for k = 1, #effects do mag.window.progress(k, #effects) total_line = total_line + deleted[effects[k]]["lines"] mag.show.log(mag.string.format(c_lang.logKey8, effects[k], deleted[effects[k]]["lines"])) end if total_line > 0 then mag.show.log(mag.string.format(c_lang.logKey6, total_line)) end mag.line.delete(subs, deleted_index) end end function check_macro1(subs) if c_lock_gui then mag.show.log(1, mag.window.lang.message("restart_aegisub")) else local fe, fee = pcall(add_macro1, subs) mag.window.funce(fe, fee) mag.window.undo_point() end end function check_macro2(subs) if c_lock_gui then mag.show.log(1, mag.window.lang.message("restart_aegisub")) else local fe, fee = pcall(add_macro2, subs) mag.window.funce(fe, fee) mag.window.undo_point() end end function check_macro3(subs) if c_lock_gui then mag.show.log(1, mag.window.lang.message("restart_aegisub")) else local fe, fee = pcall(add_macro3, subs) mag.window.funce(fe, fee) mag.window.undo_point() end end function mag_redirect_gui() local mag_module_link = "https://github.com/magnum357i/Magnum-s-Aegisub-Scripts" local k = aegisub.dialog.display({{class = "label", label = mag_gui_message}}, {c_lang.module_yes, c_lang.module_no}) if k == c_lang.module_yes then os.execute("start "..mag_module_link) end end if mag_import then if mag_module_version:gsub("%.", "") < script_mag_version:gsub("%.", "") then mag_gui_message = string.format(c_lang.module_incompatible, script_mag_version) aegisub.register_macro(script_name, script_desription, mag_redirect_gui) else mag.window.register(c_sub_name_list[c_lang_switch].."/"..c_lang.tabKey1, check_macro1) mag.window.register(c_sub_name_list[c_lang_switch].."/"..c_lang.tabKey2, check_macro2) mag.window.register(c_sub_name_list[c_lang_switch].."/"..c_lang.tabKey3, check_macro3) mag.window.lang.register(c_sub_name_list[c_lang_switch]) end else mag_gui_message = c_lang.module_not_found aegisub.register_macro(script_name, script_desription, mag_redirect_gui) end
a = {} for i=-200, 100, 1 do a[i] = 0 end print(#a) print(a[-200]) print(a[100]) -- Matrix matrix = {} for i=1, 4 do matrix[i] = {} for j=1, 4 do matrix[i][j] = 0 end end matrix_tiny = {} xdim, ydim = 4,4 for i=1,ydim do for j=1, xdim do matrix_tiny[(i-1)*xdim+j]=0 end end -- Single List node = nil v = 9 for i=1, 12 do -- append twelve 9 node = { next = node, value = v } end local list = node while list do print(list.value) list = list.next end -- Text read --[[ local t= {} for line in io.lines() do t[#t+1] = line end text = table.concat(t,"\n") .. "\n" print(text) --]]
env = require('test_run') test_run = env.new() engine = test_run:get_cfg('engine') -- one part indices -- int type space0 = box.schema.space.create('space0', { engine = engine }) index0 = space0:create_index('primary', { type = 'tree', parts = {1, 'INTEGER'} }) space0:insert({1, "AAAA"}) space0:insert({2, "AAAA"}) space0:insert({3, "AAAA"}) space0:insert({4, "AAAA"}) index0:select() index0:max(2) index0:min(2) index0:count(2) index0:max() index0:min() index0:count() space0:insert({20, "AAAA"}) space0:insert({30, "AAAA"}) space0:insert({40, "AAAA"}) index0:select() index0:max(15) index0:min(15) index0:count(15) index0:max() index0:min() index0:count() space0:insert({-2, "AAAA"}) space0:insert({-3, "AAAA"}) space0:insert({-4, "AAAA"}) index0:select() index0:max(0) index0:min(0) index0:count(0) index0:max() index0:min() index0:count() space0:drop() -- number type space1 = box.schema.space.create('space1', { engine = engine }) index1 = space1:create_index('primary', { type = 'tree', parts = {1, 'number'} }) space1:insert({1, "AAAA"}) space1:insert({2, "AAAA"}) space1:insert({3, "AAAA"}) space1:insert({4, "AAAA"}) index1:select() index1:max(2) index1:min(2) index1:count(2) index1:max() index1:min() index1:count() space1:insert({20, "AAAA"}) space1:insert({30, "AAAA"}) space1:insert({40, "AAAA"}) index1:select() index1:max(15) index1:min(15) index1:count(15) index1:max() index1:min() index1:count() space1:insert({-2, "AAAA"}) space1:insert({-3, "AAAA"}) space1:insert({-4, "AAAA"}) index1:select() index1:max(0) index1:min(0) index1:count(0) index1:max() index1:min() index1:count() space1:insert({1.5, "AAAA"}) space1:insert({2.5, "AAAA"}) space1:insert({3.5, "AAAA"}) space1:insert({4.5, "AAAA"}) index1:select() index1:max(1) index1:min(1) index1:count(1) index1:max() index1:min() index1:count() space1:drop() -- str type space2 = box.schema.space.create('space2', { engine = engine }) index2 = space2:create_index('primary', { type = 'tree', parts = {1, 'string'} }) space2:insert({'1', "AAAA"}) space2:insert({'2', "AAAA"}) space2:insert({'3', "AAAA"}) space2:insert({'4', "AAAA"}) index2:select() index2:max('2') index2:min('2') index2:count('2') index2:max() index2:min() index2:count() space2:insert({'20', "AAAA"}) space2:insert({'30', "AAAA"}) space2:insert({'40', "AAAA"}) index2:select() index2:max('15') index2:min('15') index2:count('15') index2:max() index2:min() index2:count() space2:insert({'-2', "AAAA"}) space2:insert({'-3', "AAAA"}) space2:insert({'-4', "AAAA"}) index2:select() index2:max('0') index2:min('0') index2:count('0') index2:max() index2:min() index2:count() space2:drop() -- num type space3 = box.schema.space.create('space3', { engine = engine }) index3 = space3:create_index('primary', { type = 'tree', parts = {1, 'unsigned'} }) space3:insert({1, "AAAA"}) space3:insert({2, "AAAA"}) space3:insert({3, "AAAA"}) space3:insert({4, "AAAA"}) index3:select() index3:max(2) index3:min(2) index3:count(2) index3:max() index3:min() index3:count() space3:insert({20, "AAAA"}) space3:insert({30, "AAAA"}) space3:insert({40, "AAAA"}) index3:select() index3:max(15) index3:min(15) index3:count(15) index3:max() index3:min() index3:count() space3:drop() -- scalar type space4 = box.schema.space.create('space4', { engine = engine }) index4 = space4:create_index('primary', { type = 'tree', parts = {1, 'scalar'} }) space4:insert({1, "AAAA"}) space4:insert({2, "AAAA"}) space4:insert({3, "AAAA"}) space4:insert({4, "AAAA"}) index4:select() index4:max(2) index4:min(2) index4:count(2) index4:max() index4:min() index4:count() space4:insert({20, "AAAA"}) space4:insert({30, "AAAA"}) space4:insert({40, "AAAA"}) index4:select() index4:max(15) index4:min(15) index4:count(15) index4:max() index4:min() index4:count() space4:insert({'1', "AAAA"}) space4:insert({'2', "AAAA"}) space4:insert({'3', "AAAA"}) space4:insert({'4', "AAAA"}) index4:select() index4:max('2') index4:min('2') index4:count('2') index4:max() index4:min() index4:count() space4:insert({'20', "AAAA"}) space4:insert({'30', "AAAA"}) space4:insert({'40', "AAAA"}) index4:select() index4:max('15') index4:min('15') index4:count('15') index4:max() index4:min() index4:count() space4:insert({'-2', "AAAA"}) space4:insert({'-3', "AAAA"}) space4:insert({'-4', "AAAA"}) index4:select() index4:max('0') index4:min('0') index4:count('0') index4:max() index4:min() index4:count() space4:insert({-2, "AAAA"}) space4:insert({-3, "AAAA"}) space4:insert({-4, "AAAA"}) index4:select() index4:max(0) index4:min(0) index4:count(0) index4:max() index4:min() index4:count() space4:drop() -- multi filed indices -- scalar int space5 = box.schema.space.create('space5', { engine = engine }) index5 = space5:create_index('primary', { type = 'tree', parts = {1, 'scalar', 2, 'INTEGER'} }) space5:insert({1, 1}) space5:insert({1, 2}) space5:insert({1, 3}) space5:insert({1, -4}) index5:select() index5:max({1}) index5:min({1}) index5:count({1}) index5:max({1, 0}) index5:min({1, 1}) index5:count({1}) index5:max() index5:min() index5:count() space5:insert({2, 1}) space5:insert({2, 2}) space5:insert({2, 3}) space5:insert({2, -4}) index5:select() index5:max({2}) index5:min({2}) index5:count({2}) index5:max({2, 0}) index5:min({2, 1}) index5:count({2}) index5:max() index5:min() index5:count() space5:drop() -- scalar str space6 = box.schema.space.create('space6', { engine = engine }) index6 = space6:create_index('primary', { type = 'tree', parts = {1, 'scalar', 2, 'string'} }) space6:insert({1, '1'}) space6:insert({1, '2'}) space6:insert({1, '3'}) space6:insert({1, '-4'}) index6:select() index6:max({1}) index6:min({1}) index6:count({1}) index6:max({1, '0'}) index6:min({1, '1'}) index6:count({1}) index6:max() index6:min() index6:count() space6:insert({2, '1'}) space6:insert({2, '2'}) space6:insert({2, '3'}) space6:insert({2, '-4'}) index6:select() index6:max({2}) index6:min({2}) index6:count({2}) index6:max({2, '0'}) index6:min({2, '1'}) index6:count({2}) index6:max() index6:min() index6:count() space6:drop() -- min max count after many inserts string = require('string') space7 = box.schema.space.create('space7', { engine = engine }) index7 = space7:create_index('primary', { type = 'tree', parts = {1, 'scalar'} }) long_string = string.rep('A', 650) for i = 1, 1000 do space7:insert({i, long_string}) end index7:max({100}) index7:max({700}) index7:min({100}) index7:min({700}) index7:count({2}) index7:max() index7:min() index7:count() space7:drop() space8 = box.schema.space.create('space8', { engine = engine }) index8 = space8:create_index('primary', { type = 'tree', parts = {1, 'scalar', 2, 'INTEGER'} }) for i = 1, 1000 do space8:insert({i % 10, i, long_string}) end index8:max({1, 100}) index8:max({2, 700}) index8:max({3}) index8:min({1, 10}) index8:min({1, 700}) index8:min({3}) index8:count({2}) index8:max() index8:min() index8:count() space8:drop()
local backgroundTexture = game.gui.getTexture("res/error_bg.png") local logoTexture = game.gui.getTexture("res/logo.png") local function onCreate(overlay, data) local menu = StackMenu:create(900, overlay, 15, "Error") menu:pad(100) menu:setBackground(backgroundTexture) local errorMessage = menu:addLabel("Server IP", "Enter server IP...") errorMessage.text = data["message"] menu:pad(200) local backButton = menu:addButton("Main Menu") backButton.onClick = function() game.gui.change("main_menu") end end game.gui.addGui{ id = "error_screen", create = onCreate, }
--[[ * Natural Selection 2 - Combat++ Mod * Authors: * WhiteWizard * * Toggles the Combat HUD on and off during the count down sequence. * * Wrapped Functions: * 'Alien:OnCountDown' - Turns the Combat HUD off while the count down sequence is executing. * 'Alien:OnCountDownEnd' - Turns the Combat HUD back on after the count down sequence is complete. ]] local ns2_Alien_OnCountDown = Alien.OnCountDown function Alien:OnCountDown() ns2_Alien_OnCountDown(self) ClientUI.SetScriptVisibility("Combat/GUI/AlienStatusHUD", "Countdown", false) end local ns2_Alien_OnCountDownEnd = Alien.OnCountDownEnd function Alien:OnCountDownEnd() ns2_Alien_OnCountDownEnd(self) ClientUI.SetScriptVisibility("Combat/GUI/AlienStatusHUD", "Countdown", true) end -- Bring up evolve menu function Alien:Buy() -- Don't allow display in the ready room, or as phantom -- Don't allow buy menu to be opened while help screen is displayed. if self:GetIsLocalPlayer() and not HelpScreen_GetHelpScreen():GetIsBeingDisplayed() then -- The Embryo cannot use the buy menu in any case. if self:GetTeamNumber() ~= 0 and not self:isa("Embryo") then if not self.buyMenu then -- new Combat Alien Buy Menu (WhiteWizard) self.buyMenu = GetGUIManager():CreateGUIScript("Combat/GUI/AlienBuyMenu") else self:CloseMenu() end else self:PlayEvolveErrorSound() end end end
-- -- The agglomerative clustering algorithm. -- require 'hdf5' local agg_clustering = {} local K_c = 5 -- > indices: indice for k-nearest neighbors -- < labels: cluster labels for samples function agg_clustering.init(indices) -- initialize labels for input data given knn indices local nsamples = (#indices)[1] local k = (#indices)[2] local visited = torch.IntTensor(nsamples, 1):fill(-1) local count = 0 for i = 1, nsamples do local cur_idx = i local pos = {} while visited[cur_idx][1] == -1 do table.insert(pos, cur_idx) local neighbor = 0 for k = 1, (indices[cur_idx]:size(1)) do neighbor = indices[cur_idx][k] -- print(cur_idx, neighbor) -- print(k) if cur_idx ~= neighbor then break; end end visited[cur_idx][1] = -2 cur_idx = neighbor if #pos > 50 then break; end end if visited[cur_idx][1] < 0 then visited[cur_idx][1] = count count = count + 1 end for j = 1, #pos do visited[pos[j]][1] = visited[cur_idx][1] end end -- print(count) local label_indice = {} for i = 1, count do table.insert(label_indice, {}) end for i = 1, nsamples do table.insert(label_indice[visited[i][1] + 1], i) -- (label_indice[visited[i][1]] or 0) + 1 end for i = 1, count do if #(label_indice[i]) == 0 then print("error") end end -- error() -- print(label_indice) return label_indice end function agg_clustering.merge_two_clusters(W, A_s_t, A_us_t, Y_t, idx_c_a, idx_c_b) nclusters = #Y_t A_us_t:indexAdd(2, torch.LongTensor{idx_c_a}, A_us_t:index(2, torch.LongTensor{idx_c_b})) -- update A_t(i->idx_c_a) = r_a * A_t(i->idx_c_a) + r_b * A_t(i->idx_c_b) (fast algorithm) -- nsamples in cluster idx_c_a local nsamples_c_a = (#Y_t[idx_c_a]) local nsamples_c_b = (#Y_t[idx_c_b]) local ratio = nsamples_c_a / (nsamples_c_a + nsamples_c_b) A_us_t:select(1, idx_c_a):mul(ratio) A_us_t:select(1, idx_c_b):mul(1 - ratio) A_us_t:indexAdd(1, torch.LongTensor{idx_c_a}, A_us_t:index(1, torch.LongTensor{idx_c_b})) A_us_t[idx_c_a][idx_c_a] = 0 A_us_t:select(2, idx_c_b):zero() A_us_t:select(1, idx_c_b):zero() -- update A_t(i->idx_c_a) -- update cluster labels Y_t for k = 1, #(Y_t[idx_c_b]) do Y_t[idx_c_a][#(Y_t[idx_c_a]) + 1] = Y_t[idx_c_b][k] end Y_t[idx_c_b] = {} -- update A_s_t for i = 1, nclusters do if #(Y_t[i]) == 0 or i == idx_c_a then A_s_t[i][idx_c_a] = 0 A_s_t[idx_c_a][i] = 0 elseif i < idx_c_a then A_s_t[i][idx_c_a] = A_us_t[idx_c_a][i] / torch.pow(#(Y_t[idx_c_a]), 2) + A_us_t[i][idx_c_a] / torch.pow(#(Y_t[i]), 2) elseif i > idx_c_a then A_s_t[idx_c_a][i] = A_us_t[idx_c_a][i] / torch.pow(#(Y_t[idx_c_a]), 2) + A_us_t[i][idx_c_a] / torch.pow(#(Y_t[i]), 2) end end return A_s_t, A_us_t, Y_t end function agg_clustering.search_clusters(A_s_t) -- print("cluster numbers:", nclusters) local A_sorted, Idx_sort = torch.sort(A_s_t, 1, true) local aff = torch.FloatTensor(1, A_sorted:size(2)):zero() for i = 1, A_sorted:size(2) do aff[1][i] = A_sorted[1][i] if A_sorted:size(2) > 100 then for k = 2, K_c do aff[1][i] = aff[1][i] + (A_sorted[1][i] - A_sorted[k][i]) / (K_c - 1) end end end local v_c, idx_c = torch.max(aff, 2) -- each row -- find corresponding cluster labels for two clusters local idx_c_b = idx_c[1][1] -- col local idx_c_a = Idx_sort[1][idx_c_b] -- row if idx_c_a == idx_c_b then print("error") error() elseif idx_c_a > idx_c_b then local temp = idx_c_a idx_c_a = idx_c_b idx_c_b = temp end return idx_c_a, idx_c_b end function agg_clustering.run_step(W, A_s_t, A_us_t, Y_t) -- timer = torch.Timer() -- get the number of clusters nclusters = #Y_t -- print("Cluster Num: ", nclusters) -- find maximal value in A_t local idx_c_a, idx_c_b = agg_clustering.search_clusters(A_s_t) -- print('merge pairs: ', idx_c_a, idx_c_b) -- update affinity matrix A_t -- update A_t(idx_c_a->i) = A_t(idx_c_a->i) + A_t(idx_c_b->i) A_us_t:indexAdd(2, torch.LongTensor{idx_c_a}, A_us_t:index(2, torch.LongTensor{idx_c_b})) -- update cluster labels Y_t for k = 1, #Y_t[idx_c_b] do Y_t[idx_c_a][#(Y_t[idx_c_a]) + 1] = Y_t[idx_c_b][k] end Y_t[idx_c_b] = {} -- update A_t(i->idx_c_a) for i = 1, nclusters do if #(Y_t[i]) > 0 and i ~= idx_c_a then local W_i = W:index(1, torch.LongTensor(Y_t[i])) local W_i_idx_c_a = W_i:index(2, torch.LongTensor(Y_t[idx_c_a])) local W_idx_c_a = W:index(1, torch.LongTensor(Y_t[idx_c_a])) local W_idx_c_a_i = W_idx_c_a:index(2, torch.LongTensor(Y_t[i])) -- print(W_idx_c_a_i:size()) -- print(W_i_idx_c_a:size()) -- print(#(Y_t[idx_c_a])) A_us_t[idx_c_a][i] = torch.sum(torch.mm(W_idx_c_a_i, W_i_idx_c_a)) end end -- print(A_us_t) A_us_t[idx_c_a][idx_c_a] = 0 A_us_t:select(2, idx_c_b):zero() A_us_t:select(1, idx_c_b):zero() local nclusters = #Y_t for i = 1, nclusters do if #(Y_t[i]) == 0 or i == idx_c_a then A_s_t[i][idx_c_a] = 0 A_s_t[idx_c_a][i] = 0 elseif i < idx_c_a then A_s_t[i][idx_c_a] = A_us_t[idx_c_a][i] / torch.pow(#(Y_t[idx_c_a]), 2) + A_us_t[i][idx_c_a] / torch.pow(#(Y_t[i]), 2) elseif i > idx_c_a then A_s_t[idx_c_a][i] = A_us_t[idx_c_a][i] / torch.pow(#(Y_t[idx_c_a]), 2) + A_us_t[i][idx_c_a] / torch.pow(#(Y_t[i]), 2) end end A_s_t:select(1, idx_c_b):zero() A_s_t:select(2, idx_c_b):zero() -- return updated A_s_t, A_us_t and Y_t return A_s_t, A_us_t, Y_t end function agg_clustering.run_step_fast(W, A_s_t, A_us_t, Y_t) -- timer = torch.Timer() -- get the number of clusters local nclusters = #Y_t -- print("Cluster Num: ", nclusters) -- find maximal value in A_t local idx_c_a, idx_c_b = agg_clustering.search_clusters(A_s_t) -- update affinity matrix A_t -- update A_t(idx_c_a->i) = A_t(idx_c_a->i) + A_t(idx_c_b->i) A_us_t:indexAdd(2, torch.LongTensor{idx_c_a}, A_us_t:index(2, torch.LongTensor{idx_c_b})) -- update A_t(i->idx_c_a) = r_a * A_t(i->idx_c_a) + r_b * A_t(i->idx_c_b) (fast algorithm) -- nsamples in cluster idx_c_a A_us_t:indexAdd(1, torch.LongTensor{idx_c_a}, A_us_t:index(1, torch.LongTensor{idx_c_b})) -- update A_t(i->idx_c_a) -- update cluster labels Y_t for k = 1, #(Y_t[idx_c_b]) do Y_t[idx_c_a][#(Y_t[idx_c_a]) + 1] = Y_t[idx_c_b][k] end Y_t[idx_c_b] = {} -- update A_s_t for i = 1, nclusters do if #(Y_t[i]) == 0 or i == idx_c_a then A_s_t[i][idx_c_a] = 0 A_s_t[idx_c_a][i] = 0 elseif i < idx_c_a then A_s_t[i][idx_c_a] = A_us_t[idx_c_a][i] / torch.pow(#(Y_t[idx_c_a]), 2) + A_us_t[i][idx_c_a] / torch.pow(#(Y_t[i]), 2) elseif i > idx_c_a then A_s_t[idx_c_a][i] = A_us_t[idx_c_a][i] / torch.pow(#(Y_t[idx_c_a]), 2) + A_us_t[i][idx_c_a] / torch.pow(#(Y_t[i]), 2) end end -- print(A_us_t:size()) -- print(nclusters) if idx_c_b ~= nclusters then -- print(idx_c_b) -- print(A_us_t:index(1, torch.LongTensor{1})) A_us_t:indexCopy(1, torch.LongTensor{idx_c_b}, A_us_t:index(1, torch.LongTensor{nclusters})) A_us_t:indexCopy(2, torch.LongTensor{idx_c_b}, A_us_t:index(2, torch.LongTensor{nclusters})) A_us_t[idx_c_b][idx_c_b] = 0 -- print("Pre: ", A_s_t:sub(1, idx_c_b, idx_c_b, idx_c_b)) -- print("Pre: ", A_s_t:sub(idx_c_b, idx_c_b, idx_c_b, nclusters)) A_s_t:sub(1, idx_c_b, idx_c_b, idx_c_b):copy(A_s_t:sub(1, idx_c_b, nclusters, nclusters)) A_s_t:sub(idx_c_b, idx_c_b, idx_c_b, nclusters):copy(A_s_t:sub(idx_c_b, nclusters, nclusters, nclusters):t()) A_s_t[idx_c_b][idx_c_b] = 0 -- print("Cur: ", A_s_t:sub(1, idx_c_b, idx_c_b, idx_c_b)) -- print("Cur: ", A_s_t:sub(idx_c_b, idx_c_b, idx_c_b, nclusters)) for k = 1, #(Y_t[nclusters]) do Y_t[idx_c_b][#(Y_t[idx_c_b]) + 1] = Y_t[nclusters][k] end end A_us_t = A_us_t:sub(1, nclusters - 1, 1, nclusters - 1) A_s_t = A_s_t:sub(1, nclusters - 1, 1, nclusters - 1) table.remove(Y_t, nclusters) -- print(Y_t) -- timer = torch.Timer() -- print('Time-2 elapsed: ' .. timer:time().real .. ' seconds') -- return updated A_s_t, A_us_t and Y_t return A_s_t, A_us_t, Y_t end -- > W: MxM affinity matrix, where M is the number of samples -- > Y_0: {N} table, whose elements is the positions for one cluster -- > verbose: prints a progress bar or not -- -- < Y_T, predicted labels for X after T timesteps function agg_clustering.run(W, A_unsym_0, A_sym_0, Y_0, T, K_c_in, use_fast) -- compute initial affinity among clusters\ local nclusters = #Y_0 A_sym_0_sum = torch.sum(A_sym_0, 1) K_c = K_c_in -- update affinity among clusters and Y as well local t = 0 timer = torch.Timer() while t < T do if use_fast == 1 then A_sym_0, A_unsym_0, Y_0 = agg_clustering.run_step_fast(W, A_sym_0, A_unsym_0, Y_0) else A_sym_0, A_unsym_0, Y_0 = agg_clustering.run_step(W, A_sym_0, A_unsym_0, Y_0) end t = t + 1 end print('Time elapsed for agg clustering: ' .. timer:time().real .. ' seconds') local Y_T = {} for i = 1, #Y_0 do if #(Y_0[i]) > 0 then table.insert(Y_T, Y_0[i]) end end return Y_T end return agg_clustering
------------------------------------------------------------------------------- -- Spine Runtimes Software License v2.5 -- -- Copyright (c) 2013-2016, Esoteric Software -- All rights reserved. -- -- You are granted a perpetual, non-exclusive, non-sublicensable, and -- non-transferable license to use, install, execute, and perform the Spine -- Runtimes software and derivative works solely for personal or internal -- use. Without the written permission of Esoteric Software (see Section 2 of -- the Spine Software License Agreement), you may not (a) modify, translate, -- adapt, or develop new applications using the Spine Runtimes or otherwise -- create derivative works or improvements of the Spine Runtimes or (b) remove, -- delete, alter, or obscure any trademarks or any copyright, trademark, patent, -- or other intellectual property or proprietary rights notices on or in the -- Software, including any copy thereof. Redistributions in binary or source -- form must include this license and terms. -- -- THIS SOFTWARE IS PROVIDED BY ESOTERIC SOFTWARE "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 ESOTERIC SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, BUSINESS INTERRUPTION, OR LOSS OF -- USE, DATA, OR PROFITS) 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. ------------------------------------------------------------------------------- -- FIXME the logic in this file uses 0-based indexing. Each array -- access adds 1 to the calculated index. We should switch the logic -- to 1-based indexing eventually. local setmetatable = setmetatable local AttachmentType = require "spine-lua.attachments.AttachmentType" local PathConstraintData = require "spine-lua.PathConstraintData" local utils = require "spine-lua.utils" local math_pi = math.pi local math_pi2 = math.pi * 2 local math_atan2 = math.atan2 local math_sqrt = math.sqrt local math_acos = math.acos local math_sin = math.sin local math_cos = math.cos local table_insert = table.insert local math_deg = math.deg local math_rad = math.rad local math_abs = math.abs local math_max = math.max local PathConstraint = {} PathConstraint.__index = PathConstraint PathConstraint.NONE = -1 PathConstraint.BEFORE = -2 PathConstraint.AFTER = -3 PathConstraint.epsilon = 0.00001 function PathConstraint.new (data, skeleton) if not data then error("data cannot be nil", 2) end if not skeleton then error("skeleton cannot be nil", 2) end local self = { data = data, bones = {}, target = skeleton:findSlot(data.target.name), position = data.position, spacing = data.spacing, rotateMix = data.rotateMix, translateMix = data.translateMix, spaces = {}, positions = {}, world = {}, curves = {}, lengths = {}, segments = {} } setmetatable(self, PathConstraint) for i,boneData in ipairs(data.bones) do table_insert(self.bones, skeleton:findBone(boneData.name)) end return self end function PathConstraint:apply () self:update() end function PathConstraint:update () local attachment = self.target.attachment if not attachment or not (attachment.type == AttachmentType.path) then return end local rotateMix = self.rotateMix local translateMix = self.translateMix local translate = translateMix > 0 local rotate = rotateMix > 0 if not translate and not rotate then return end local data = self.data; local spacingMode = data.spacingMode local lengthSpacing = spacingMode == PathConstraintData.SpacingMode.length local rotateMode = data.rotateMode local tangents = rotateMode == PathConstraintData.RotateMode.tangent local scale = rotateMode == PathConstraintData.RotateMode.chainscale local bones = self.bones local boneCount = #bones local spacesCount = boneCount + 1 if tangents then spacesCount = boneCount end local spaces = utils.setArraySize(self.spaces, spacesCount) local lengths = nil local spacing = self.spacing if scale or lengthSpacing then if scale then lengths = utils.setArraySize(self.lengths, boneCount) end local i = 0 local n = spacesCount - 1 while i < n do local bone = bones[i + 1]; local setupLength = bone.data.length if setupLength < PathConstraint.epsilon then if scale then lengths[i + 1] = 0 end i = i + 1 spaces[i + 1] = 0 else local x = setupLength * bone.a local y = setupLength * bone.c local length = math_sqrt(x * x + y * y) if scale then lengths[i + 1] = length end i = i + 1 if lengthSpacing then spaces[i + 1] = (setupLength + spacing) * length / setupLength else spaces[i + 1] = spacing * length / setupLength end end end else local i = 1 while i < spacesCount do spaces[i + 1] = spacing i = i + 1 end end local positions = self:computeWorldPositions(attachment, spacesCount, tangents, data.positionMode == PathConstraintData.PositionMode.percent, spacingMode == PathConstraintData.SpacingMode.percent) local boneX = positions[1] local boneY = positions[2] local offsetRotation = data.offsetRotation local tip = false; if offsetRotation == 0 then tip = rotateMode == PathConstraintData.RotateMode.chain else tip = false; local p = self.target.bone; if p.a * p.d - p.b * p.c > 0 then offsetRotation = offsetRotation * utils.degRad else offsetRotation = offsetRotation * -utils.degRad end end local i = 0 local p = 3 while i < boneCount do local bone = bones[i + 1] bone.worldX = bone.worldX + (boneX - bone.worldX) * translateMix bone.worldY = bone.worldY + (boneY - bone.worldY) * translateMix local x = positions[p + 1] local y = positions[p + 2] local dx = x - boneX local dy = y - boneY if scale then local length = lengths[i + 1] if length ~= 0 then local s = (math_sqrt(dx * dx + dy * dy) / length - 1) * rotateMix + 1 bone.a = bone.a * s bone.c = bone.c * s end end boneX = x boneY = y if rotate then local a = bone.a local b = bone.b local c = bone.c local d = bone.d local r = 0 local cos = 0 local sin = 0 if tangents then r = positions[p - 1 + 1] elseif spaces[i + 1 + 1] == 0 then r = positions[p + 2 + 1] else r = math_atan2(dy, dx) end r = r - math_atan2(c, a) if tip then cos = math_cos(r) sin = math_sin(r) local length = bone.data.length boneX = boneX + (length * (cos * a - sin * c) - dx) * rotateMix; boneY = boneY + (length * (sin * a + cos * c) - dy) * rotateMix; else r = r + offsetRotation end if r > math_pi then r = r - math_pi2 elseif r < -math_pi then r = r + math_pi2 end r = r * rotateMix cos = math_cos(r) sin = math.sin(r) bone.a = cos * a - sin * c bone.b = cos * b - sin * d bone.c = sin * a + cos * c bone.d = sin * b + cos * d end bone.appliedValid = false i = i + 1 p = p + 3 end end function PathConstraint:computeWorldPositions (path, spacesCount, tangents, percentPosition, percentSpacing) local target = self.target local position = self.position local spaces = self.spaces local out = utils.setArraySize(self.positions, spacesCount * 3 + 2) local world = nil local closed = path.closed local verticesLength = path.worldVerticesLength local curveCount = verticesLength / 6 local prevCurve = PathConstraint.NONE if not path.constantSpeed then local lengths = path.lengths if closed then curveCount = curveCount - 1 else curveCount = curveCount - 2 end local pathLength = lengths[curveCount + 1]; if percentPosition then position = position * pathLength end if percentSpacing then local i = 0 while i < spacesCount do spaces[i + 1] = spaces[i + 1] * pathLength i = i + 1 end end world = utils.setArraySize(self.world, 8); local i = 0 local o = 0 local curve = 0 while i < spacesCount do local space = spaces[i + 1]; position = position + space local p = position local skip = false if closed then p = p % pathLength if p < 0 then p = p + pathLength end curve = 0 elseif p < 0 then if prevCurve ~= PathConstraint.BEFORE then prevCurve = PathConstraint.BEFORE path:computeWorldVertices(target, 2, 4, world, 0, 2) end self:addBeforePosition(p, world, 0, out, o) skip = true elseif p > pathLength then if prevCurve ~= PathConstraint.AFTER then prevCurve = PathConstraint.AFTER path:computeWorldVertices(target, verticesLength - 6, 4, world, 0, 2) end self:addAfterPosition(p - pathLength, world, 0, out, o) skip = true end if not skip then -- Determine curve containing position. while true do local length = lengths[curve + 1] if p <= length then if curve == 0 then p = p / length else local prev = lengths[curve - 1 + 1] p = (p - prev) / (length - prev) end break end curve = curve + 1 end if curve ~= prevCurve then prevCurve = curve if closed and curve == curveCount then path:computeWorldVertices(target, verticesLength - 4, 4, world, 0, 2) path:computeWorldVertices(target, 0, 4, world, 4, 2) else path:computeWorldVertices(target, curve * 6 + 2, 8, world, 0, 2) end end self:addCurvePosition(p, world[1], world[2], world[3], world[4], world[5], world[6], world[7], world[8], out, o, tangents or (i > 0 and space == 0)) end i = i + 1 o = o + 3 end return out end -- World vertices. if closed then verticesLength = verticesLength + 2 world = utils.setArraySize(self.world, verticesLength) path:computeWorldVertices(target, 2, verticesLength - 4, world, 0, 2) path:computeWorldVertices(target, 0, 2, world, verticesLength - 4, 2) world[verticesLength - 2 + 1] = world[0 + 1] world[verticesLength - 1 + 1] = world[1 + 1] else curveCount = curveCount - 1 verticesLength = verticesLength - 4; world = utils.setArraySize(self.world, verticesLength) path:computeWorldVertices(target, 2, verticesLength, world, 0, 2) end -- Curve lengths. local curves = utils.setArraySize(self.curves, curveCount) local pathLength = 0; local x1 = world[0 + 1] local y1 = world[1 + 1] local cx1 = 0 local cy1 = 0 local cx2 = 0 local cy2 = 0 local x2 = 0 local y2 = 0 local tmpx = 0 local tmpy = 0 local dddfx = 0 local dddfy = 0 local ddfx = 0 local ddfy = 0 local dfx = 0 local dfy = 0 i = 0 local w = 2 while i < curveCount do cx1 = world[w + 1] cy1 = world[w + 2] cx2 = world[w + 3] cy2 = world[w + 4] x2 = world[w + 5] y2 = world[w + 6] tmpx = (x1 - cx1 * 2 + cx2) * 0.1875 tmpy = (y1 - cy1 * 2 + cy2) * 0.1875 dddfx = ((cx1 - cx2) * 3 - x1 + x2) * 0.09375 dddfy = ((cy1 - cy2) * 3 - y1 + y2) * 0.09375 ddfx = tmpx * 2 + dddfx ddfy = tmpy * 2 + dddfy dfx = (cx1 - x1) * 0.75 + tmpx + dddfx * 0.16666667 dfy = (cy1 - y1) * 0.75 + tmpy + dddfy * 0.16666667 pathLength = pathLength + math_sqrt(dfx * dfx + dfy * dfy) dfx = dfx + ddfx dfy = dfy + ddfy ddfx = ddfx + dddfx ddfy = ddfy + dddfy pathLength = pathLength + math_sqrt(dfx * dfx + dfy * dfy) dfx = dfx + ddfx dfy = dfy + ddfy pathLength = pathLength + math_sqrt(dfx * dfx + dfy * dfy) dfx = dfx + ddfx + dddfx dfy = dfy + ddfy + dddfy pathLength = pathLength + math_sqrt(dfx * dfx + dfy * dfy) curves[i + 1] = pathLength x1 = x2 y1 = y2 i = i + 1 w = w + 6 end if percentPosition then position = position * pathLength end if percentSpacing then local i = 0 while i < spacesCount do spaces[i + 1] = spaces[i + 1] * pathLength i = i + 1 end end local segments = self.segments local curveLength = 0 local i = 0 local o = 0 local curve = 0 local segment = 0 while i < spacesCount do local space = spaces[i + 1] position = position + space local p = position local skip = false if closed then p = p % pathLength if p < 0 then p = p + pathLength end curve = 0 elseif p < 0 then self:addBeforePosition(p, world, 0, out, o) skip = true elseif p > pathLength then self:addAfterPosition(p - pathLength, world, verticesLength - 4, out, o) skip = true end if not skip then -- Determine curve containing position. while true do local length = curves[curve + 1] if p <= length then if curve == 0 then p = p / length else local prev = curves[curve - 1 + 1] p = (p - prev) / (length - prev) end break end curve = curve + 1 end -- Curve segment lengths. if curve ~= prevCurve then prevCurve = curve local ii = curve * 6 x1 = world[ii + 1] y1 = world[ii + 2] cx1 = world[ii + 3] cy1 = world[ii + 4] cx2 = world[ii + 5] cy2 = world[ii + 6] x2 = world[ii + 7] y2 = world[ii + 8] tmpx = (x1 - cx1 * 2 + cx2) * 0.03 tmpy = (y1 - cy1 * 2 + cy2) * 0.03 dddfx = ((cx1 - cx2) * 3 - x1 + x2) * 0.006 dddfy = ((cy1 - cy2) * 3 - y1 + y2) * 0.006 ddfx = tmpx * 2 + dddfx ddfy = tmpy * 2 + dddfy dfx = (cx1 - x1) * 0.3 + tmpx + dddfx * 0.16666667 dfy = (cy1 - y1) * 0.3 + tmpy + dddfy * 0.16666667 curveLength = math_sqrt(dfx * dfx + dfy * dfy) segments[1] = curveLength ii = 1 while ii < 8 do dfx = dfx + ddfx dfy = dfy + ddfy ddfx = ddfx + dddfx ddfy = ddfy + dddfy curveLength = curveLength + math_sqrt(dfx * dfx + dfy * dfy) segments[ii + 1] = curveLength ii = ii + 1 end dfx = dfx + ddfx dfy = dfy + ddfy curveLength = curveLength + math_sqrt(dfx * dfx + dfy * dfy) segments[9] = curveLength dfx = dfx + ddfx + dddfx dfy = dfy + ddfy + dddfy curveLength = curveLength + math_sqrt(dfx * dfx + dfy * dfy) segments[10] = curveLength segment = 0 end -- Weight by segment length. p = p * curveLength while true do local length = segments[segment + 1] if p <= length then if segment == 0 then p = p / length else local prev = segments[segment - 1 + 1] p = segment + (p - prev) / (length - prev) end break; end segment = segment + 1 end self:addCurvePosition(p * 0.1, x1, y1, cx1, cy1, cx2, cy2, x2, y2, out, o, tangents or (i > 0 and space == 0)) end i = i + 1 o = o + 3 end return out end function PathConstraint:addBeforePosition (p, temp, i, out, o) local x1 = temp[i + 1] local y1 = temp[i + 2] local dx = temp[i + 3] - x1 local dy = temp[i + 4] - y1 local r = math_atan2(dy, dx) out[o + 1] = x1 + p * math_cos(r) out[o + 2] = y1 + p * math_sin(r) out[o + 3] = r end function PathConstraint:addAfterPosition(p, temp, i, out, o) local x1 = temp[i + 3] local y1 = temp[i + 4] local dx = x1 - temp[i + 1] local dy = y1 - temp[i + 2] local r = math_atan2(dy, dx) out[o + 1] = x1 + p * math_cos(r) out[o + 2] = y1 + p * math_sin(r) out[o + 3] = r end function PathConstraint:addCurvePosition(p, x1, y1, cx1, cy1, cx2, cy2, x2, y2, out, o, tangents) if p == 0 or (p ~= p) then p = 0.0001 end local tt = p * p local ttt = tt * p local u = 1 - p local uu = u * u local uuu = uu * u local ut = u * p local ut3 = ut * 3 local uut3 = u * ut3 local utt3 = ut3 * p local x = x1 * uuu + cx1 * uut3 + cx2 * utt3 + x2 * ttt local y = y1 * uuu + cy1 * uut3 + cy2 * utt3 + y2 * ttt out[o + 1] = x out[o + 2] = y if tangents then out[o + 3] = math_atan2(y - (y1 * uu + cy1 * ut * 2 + cy2 * tt), x - (x1 * uu + cx1 * ut * 2 + cx2 * tt)) end end return PathConstraint
local if_nil = vim.F.if_nil local default_header = { type = "text", val = { -- [[⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⢀⢄⢄⠢⡠⡀⢀⠄⡀⡀⠄⠄⠄⠄⠐⠡⠄⠉⠻⣻⣟⣿⣿⣄⠄⠄⠄⠄⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⢠⢣⠣⡎⡪⢂⠊⡜⣔⠰⡐⠠⠄⡾⠄⠈⠠⡁⡂⠄⠔⠸⣻⣿⣿⣯⢂⠄⠄⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠄⠄⠄⡀⠄⠄⠄⠄⠄⠄⠄⠐⢰⡱⣝⢕⡇⡪⢂⢊⢪⢎⢗⠕⢕⢠⣻⠄⠄⠄⠂⠢⠌⡀⠄⠨⢚⢿⣿⣧⢄⠄⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠄⠄⡐⡈⠌⠄⠄⠄⠄⠄⠄⠄⡧⣟⢼⣕⢝⢬⠨⡪⡚⡺⡸⡌⡆⠜⣾⠄⠄⠄⠁⡐⠠⣐⠨⠄⠁⠹⡹⡻⣷⡕⢄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠄⢄⠇⠂⠄⠄⠄⠄⠄⠄⠄⢸⣻⣕⢗⠵⣍⣖⣕⡼⡼⣕⢭⢮⡆⠱⣽⡇⠄⠄⠂⠁⠄⢁⠢⡁⠄⠄⠐⠈⠺⢽⣳⣄⠄⠄]], -- [[⠄⠄⠄⠄⠄⢔⢕⢌⠄⠄⠄⠄⠄⢀⠄⠄⣾⢯⢳⠹⠪⡺⡺⣚⢜⣽⣮⣳⡻⡇⡙⣜⡇⠄⠄⢸⠄⠄⠂⡀⢠⠂⠄⢶⠊⢉⡁⠨⡒⠄⠄]], -- [[⠄⠄⠄⠄⡨⣪⣿⢰⠈⠄⠄⠄⡀⠄⠄⠄⣽⣵⢿⣸⢵⣫⣳⢅⠕⡗⣝⣼⣺⠇⡘⡲⠇⠄⠄⠨⠄⠐⢀⠐⠐⠡⢰⠁⠄⣴⣾⣷⣮⣇⠄]], -- [[⠄⠄⠄⠄⡮⣷⣿⠪⠄⠄⠄⠠⠄⠂⠠⠄⡿⡞⡇⡟⣺⣺⢷⣿⣱⢕⢵⢺⢼⡁⠪⣘⡇⠄⠄⢨⠄⠐⠄⠄⢀⠄⢸⠄⠄⣿⣿⣿⣿⣿⡆]], -- [[⠄⠄⠄⢸⣺⣿⣿⣇⠄⠄⠄⠄⢀⣤⣖⢯⣻⡑⢕⢭⢷⣻⣽⡾⣮⡳⡵⣕⣗⡇⠡⡣⣃⠄⠄⠸⠄⠄⠄⠄⠄⠄⠈⠄⠄⢻⣿⣿⣵⡿⣹]], -- [[⠄⠄⠄⢸⣿⣿⣟⣯⢄⢤⢲⣺⣻⣻⡺⡕⡔⡊⡎⡮⣿⣿⣽⡿⣿⣻⣼⣼⣺⡇⡀⢎⢨⢐⢄⡀⠄⢁⠠⠄⠄⠐⠄⠣⠄⠸⣿⣿⣯⣷⣿]], -- [[⠄⠄⠄⢸⣿⣿⣿⢽⠲⡑⢕⢵⢱⢪⡳⣕⢇⢕⡕⣟⣽⣽⣿⣿⣿⣿⣿⣿⣿⢗⢜⢜⢬⡳⣝⢸⣢⢀⠄⠄⠐⢀⠄⡀⠆⠄⠸⣿⣿⣿⣿]], -- [[⠄⠄⠄⢸⣿⣿⣿⢽⣝⢎⡪⡰⡢⡱⡝⡮⡪⡣⣫⢎⣿⣿⣿⣿⣿⣿⠟⠋⠄⢄⠄⠈⠑⠑⠭⡪⡪⢏⠗⡦⡀⠐⠄⠄⠈⠄⠄⠙⣿⣿⣿]], -- [[⠄⠄⠄⠘⣿⣿⣿⣿⡲⣝⢮⢪⢊⢎⢪⢺⠪⣝⢮⣯⢯⣟⡯⠷⠋⢀⣠⣶⣾⡿⠿⢀⣴⣖⢅⠪⠘⡌⡎⢍⣻⠠⠅⠄⠄⠈⠢⠄⠄⠙⠿]], -- [[⠄⠄⠄⠄⣿⣿⣿⣿⣽⢺⢍⢎⢎⢪⡪⡮⣪⣿⣞⡟⠛⠋⢁⣠⣶⣿⡿⠛⠋⢀⣤⢾⢿⣕⢇⠡⢁⢑⠪⡳⡏⠄⠄⠄⠄⠄⠄⢑⠤⢀⢠]], -- [[⠄⠄⠄⠄⢸⣿⣿⣿⣟⣮⡳⣭⢪⡣⡯⡮⠗⠋⠁⠄⠄⠈⠿⠟⠋⣁⣀⣴⣾⣿⣗⡯⡳⡕⡕⡕⡡⢂⠊⢮⠃⠄⠄⠄⠄⠄⢀⠐⠨⢁⠨]], -- [[⠄⠄⠄⠄⠈⢿⣿⣿⣿⠷⠯⠽⠐⠁⠁⢀⡀⣤⢖⣽⢿⣦⣶⣾⣿⣿⣿⣿⣿⣿⢎⠇⡪⣸⡪⡮⠊⠄⠌⠎⡄⠄⠄⠄⠄⠄⠄⡂⢁⠉⡀]], -- [[⠄⠄⠄⠄⠄⠈⠛⠚⠒⠵⣶⣶⣶⣶⢪⢃⢇⠏⡳⡕⣝⢽⡽⣻⣿⣿⣿⣿⡿⣺⠰⡱⢜⢮⡟⠁⠄⠄⠅⠅⢂⠐⠄⠐⢀⠄⠄⠄⠂⡁⠂]], -- [[⠄⠄⠄⠄⠄⠄⠄⠰⠄⠐⢒⣠⣿⣟⢖⠅⠆⢝⢸⡪⡗⡅⡯⣻⣺⢯⡷⡯⡏⡇⡅⡏⣯⡟⠄⠄⠄⠨⡊⢔⢁⠠⠄⠄⠄⠄⠄⢀⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠄⠄⠄⠹⣿⣿⣿⣿⢿⢕⢇⢣⢸⢐⢇⢯⢪⢪⠢⡣⠣⢱⢑⢑⠰⡸⡸⡇⠁⠄⠄⠠⡱⠨⢘⠄⠂⡀⠂⠄⠄⠄⠄⠈⠂⠄]], -- [[⠄⠄⠄⠄⠄⠄⠄⠄⠄⢻⣿⣿⣿⣟⣝⢔⢅⠸⡘⢌⠮⡨⡪⠨⡂⠅⡑⡠⢂⢇⢇⢿⠁⠄⢀⠠⠨⡘⢌⡐⡈⠄⠄⠠⠄⠄⠄⠄⠄⠄⠁]], -- [[⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠹⣿⣿⣿⣯⢢⢊⢌⢂⠢⠑⠔⢌⡂⢎⠔⢔⢌⠎⡎⡮⡃⢀⠐⡐⠨⡐⠌⠄⡑⠄⢂⠐⢀⠄⠄⠈⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠙⣿⣿⣿⣯⠂⡀⠔⢔⠡⡹⠰⡑⡅⡕⡱⠰⡑⡜⣜⡅⡢⡈⡢⡑⡢⠁⠰⠄⠨⢀⠐⠄⠄⠄⠄⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠈⠻⢿⣿⣷⣢⢱⠡⡊⢌⠌⡪⢨⢘⠜⡌⢆⢕⢢⢇⢆⢪⢢⡑⡅⢁⡖⡄⠄⠄⠄⢀⠄⠄⠄⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠛⢿⣿⣵⡝⣜⢐⠕⢌⠢⡑⢌⠌⠆⠅⠑⠑⠑⠝⢜⠌⠠⢯⡚⡜⢕⢄⠄⠁⠄⠄⠄⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠙⢿⣷⡣⣇⠃⠅⠁⠈⡠⡠⡔⠜⠜⣿⣗⡖⡦⣰⢹⢸⢸⢸⡘⠌⠄⠄⠄⠄⠄⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠈⠋⢍⣠⡤⡆⣎⢇⣇⢧⡳⡍⡆⢿⣯⢯⣞⡮⣗⣝⢎⠇⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠁⣿⣿⣎⢦⠣⠳⠑⠓⠑⠃⠩⠉⠈⠈⠉⠄⠁⠉⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠈⡿⡞⠁⠄⠄⢀⠐⢐⠠⠈⡌⠌⠂⡁⠌⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠈⢂⢂⢀⠡⠄⣈⠠⢄⠡⠒⠈⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠢⠠⠊⠨⠐⠈⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⡀⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠈⠄⠄⠄⠁⠄⠁⠄⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠄⣀⣀⣤⣤⣴⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣦⣤⣤⣄⣀⡀⠄⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⣴⣿⣿⡿⣿⢿⣟⣿⣻⣟⡿⣟⣿⣟⡿⣟⣿⣻⣟⣿⣻⢿⣻⡿⣿⢿⣷⣆⠄⠄⠄]], -- [[⠄⠄⠄⢘⣿⢯⣷⡿⡿⡿⢿⢿⣷⣯⡿⣽⣞⣷⣻⢯⣷⣻⣾⡿⡿⢿⢿⢿⢯⣟⣞⡮⡀⠄⠄]], -- [[⠄⠄⠄⢸⢞⠟⠃⣉⢉⠉⠉⠓⠫⢿⣿⣷⢷⣻⣞⣿⣾⡟⠽⠚⠊⠉⠉⠉⠙⠻⣞⢵⠂⠄⠄]], -- [[⠄⠄⠄⢜⢯⣺⢿⣻⣿⣿⣷⣔⡄⠄⠈⠛⣿⣿⡾⠋⠁⠄⠄⣄⣶⣾⣿⡿⣿⡳⡌⡗⡅⠄⠄]], -- [[⠄⠄⠄⢽⢱⢳⢹⡪⡞⠮⠯⢯⡻⡬⡐⢨⢿⣿⣿⢀⠐⡥⣻⡻⠯⡳⢳⢹⢜⢜⢜⢎⠆⠄⠄]], -- [[⠄⠄⠠⣻⢌⠘⠌⡂⠈⠁⠉⠁⠘⠑⢧⣕⣿⣿⣿⢤⡪⠚⠂⠈⠁⠁⠁⠂⡑⠡⡈⢮⠅⠄⠄]], -- [[⠄⠄⠠⣳⣿⣿⣽⣭⣶⣶⣶⣶⣶⣺⣟⣾⣻⣿⣯⢯⢿⣳⣶⣶⣶⣖⣶⣮⣭⣷⣽⣗⠍⠄⠄]], -- [[⠄⠄⢀⢻⡿⡿⣟⣿⣻⣽⣟⣿⢯⣟⣞⡷⣿⣿⣯⢿⢽⢯⣿⣻⣟⣿⣻⣟⣿⣻⢿⣿⢀⠄⠄]], -- [[⠄⠄⠄⡑⡏⠯⡯⡳⡯⣗⢯⢟⡽⣗⣯⣟⣿⣿⣾⣫⢿⣽⠾⡽⣺⢳⡫⡞⡗⡝⢕⠕⠄⠄⠄]], -- [[⠄⠄⠄⢂⡎⠅⡃⢇⠇⠇⣃⣧⡺⡻⡳⡫⣿⡿⣟⠞⠽⠯⢧⣅⣃⠣⠱⡑⡑⠨⢐⢌⠂⠄⠄]], -- [[⠄⠄⠄⠐⠼⣦⢀⠄⣶⣿⢿⣿⣧⣄⡌⠂⠢⠩⠂⠑⣁⣅⣾⢿⣟⣷⠦⠄⠄⡤⡇⡪⠄⠄⠄]], -- [[⠄⠄⠄⠄⠨⢻⣧⡅⡈⠛⠿⠿⠿⠛⠁⠄⢀⡀⠄⠄⠘⠻⠿⠿⠯⠓⠁⢠⣱⡿⢑⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠈⢌⢿⣷⡐⠤⣀⣀⣂⣀⢀⢀⡓⠝⡂⡀⢀⢀⢀⣀⣀⠤⢊⣼⡟⡡⡁⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠈⢢⠚⣿⣄⠈⠉⠛⠛⠟⠿⠿⠟⠿⠻⠻⠛⠛⠉⠄⣠⠾⢑⠰⠈⠄⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠄⠄⠑⢌⠿⣦⡡⣱⣸⣸⣆⠄⠄⠄⣰⣕⢔⢔⠡⣼⠞⡡⠁⠁⠄⠄⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠄⠄⠄⠄⠑⢝⢷⣕⡷⣿⡿⠄⠄⠠⣿⣯⣯⡳⡽⡋⠌⠄⠄⠄⠄⠄⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠙⢮⣿⣽⣯⠄⠄⢨⣿⣿⡷⡫⠃⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠘⠙⠝⠂⠄⢘⠋⠃⠁⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄]], -- [[⠄⠄⠄⠁⠄⠁⠄⠁⠄⠄⠄⠄⠄⠄⠄⠄⠄⢀⠄⡀⡀⠄⠄⠁⢀⢁⠄⡀⠠⠄⠁⡈⢀⠈⢀⠠⠄⢀⠄⠄]], -- [[⠄⠄⠄⠄⠁⠄⠁⠄⠂⠄⡠⣲⢧⣳⡳⡯⣟⣼⢽⣺⣜⡵⣝⢜⢔⠔⡅⢂⠄⠄⠁⠄⢀⠄⡀⠄⡀⠄⠄⠄]], -- [[⠄⠄⠄⠄⠈⠄⠈⠄⢀⡇⡯⡺⢵⣳⢿⣻⣟⣿⣿⣽⢾⣝⢮⡳⣣⢣⠣⡃⢅⠂⠐⠈⠄⠄⢀⠄⡀⠄⠄⠄]], -- [[⠄⠄⠄⠄⠈⠄⠐⢀⠇⡪⡸⡸⣝⣾⣻⣯⣿⣿⡿⣟⣿⡽⣗⡯⣞⢜⢌⠢⡡⢈⠈⠄⠁⠈⠄⠄⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠐⠄⠈⠆⠕⢔⠡⣓⣕⢷⣻⣽⣝⢷⣻⣻⣝⢯⢿⠹⠸⡑⡅⠕⠠⠠⠄⠅⠄⠂⠄⠂⠈⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠂⠡⡑⢍⠌⡊⢢⢢⢱⠼⣺⢿⢝⠮⢪⣪⡺⣘⡜⣑⢤⢐⠅⠡⢂⠡⠐⡀⢀⠠⠐⠄⠐⠄⠄]], -- [[⠄⠄⠄⠄⢈⢀⠡⠨⡢⡑⡌⡔⡮⡷⣭⢧⣳⠭⣪⣲⣼⣾⣟⣻⣽⣺⣸⣜⢌⢆⢌⠐⠄⡀⠄⡀⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠠⠄⠌⡢⡵⠺⠞⠟⠛⠯⠟⠟⠝⡫⢗⠟⠝⠙⠉⠊⠑⠉⠉⠉⠑⢒⠠⠁⠄⡀⠠⠄⠄⠄⠄]], -- [[⠄⠄⠄⠐⡀⠄⠄⠅⡪⠄⠂⠄⠄⠄⠄⠄⠄⠄⢀⢕⢔⠄⠄⠄⠄⡀⠠⠐⠈⢀⠄⠠⠄⡁⠄⡀⠂⠠⠄⠄]], -- [[⠄⠄⠄⠠⠄⠄⠂⡑⠄⠄⠠⠐⠄⠁⠄⠁⠄⠄⢸⣿⣿⡂⠄⠄⢀⠄⡀⠄⠂⠠⠐⠄⡐⡀⠂⢀⠐⠄⠄⠄]], -- [[⠄⠄⠄⠄⢐⠄⠂⢕⢅⢄⠄⣀⡀⢄⠄⠁⣀⣔⡵⣿⣯⠧⡣⣢⡠⢀⢀⡠⠐⢀⢐⠠⢀⠐⠄⠄⠄⠄⠄⠄]], -- [[⠄⠄⠄⠄⠐⡔⢀⠘⢽⣻⣶⣥⣉⠥⡣⣱⣷⠻⣪⣻⣷⡣⡣⢫⣞⣗⡦⡵⢻⠺⡸⠐⡀⠐⠄⠂⡀⠄⠄⠄]], -- [[⠄⠄⠄⠄⠂⠘⡀⠔⢀⠑⠍⠍⡽⣽⣿⣻⠂⡷⣯⡿⣟⡿⠌⡆⠘⣾⣻⢵⢕⠔⢀⠁⠠⠈⡀⠁⠄⡀⠄⠄]], -- [[⠄⠄⠄⠄⠠⠄⠄⡐⢰⢈⢄⠱⢽⣺⢳⠁⣈⠄⠄⠈⠊⠈⠄⠄⢡⣐⢫⢯⡢⢊⢄⢪⠨⠠⠄⡀⠁⠄⠄⠄]], -- [[⠄⠄⠄⠄⠂⠄⠂⠠⠱⣕⡣⡇⡏⢮⢕⣸⣾⠠⠄⠄⠄⠂⠄⠄⠌⢟⣜⡵⣯⢷⡴⡅⠅⡂⠠⠄⢈⠄⠄⠄]], -- [[⠄⠄⠄⠄⠂⠁⢀⠈⠌⡪⢝⢾⣝⣎⠒⠏⠙⠠⠑⠁⠆⠒⠐⠐⠉⢀⠑⣍⡿⣽⡽⡂⠕⠄⠄⠂⢀⠠⠄⠄]], -- [[⠄⠄⠄⠐⠄⡈⠄⢀⠄⠊⠍⢯⣷⣏⢊⢀⣈⣠⣤⣤⣤⣴⣶⢶⣴⢤⢬⣌⢻⡺⡻⠈⠄⠂⠄⠂⡀⠄⠄⠄]], -- [[⠄⠄⠄⠄⠂⢀⠐⠄⠄⠂⠡⠑⠕⠅⡕⡽⡑⡁⠉⠉⠉⠉⠁⠁⠁⠠⢊⠊⠢⠈⠄⠨⠄⠄⠁⠐⢀⠈⠄⠄]], -- [[⠄⠄⠄⠈⢀⠄⠄⠈⡀⢂⠐⠄⠂⠁⠠⠁⡢⡪⣢⣲⣦⣖⡔⡤⡨⡐⢄⠌⠠⠈⠐⠄⠂⠠⠁⢈⠠⠄⠄⠄]], -- [[⠄⠄⠄⠄⠄⠄⠄⢂⠄⠢⠂⠈⡀⠈⡀⠈⠰⠹⡨⠑⡑⠕⠕⠊⠌⠌⠄⠐⠄⠂⠁⢈⠄⡁⠐⠄⡐⢀⠂⠄]], -- [[⠄⠄⠄⠄⡐⢄⠑⠄⠄⡇⡁⠄⠄⠄⠄⡈⠄⠄⠄⠄⢀⠠⠄⠂⢀⠐⠄⡈⠠⠈⠄⠄⠠⠐⠄⠁⠠⠄⠄⠄]], -- [[⣿⣿⣿⣿⣿⣿⣿⡿⠛⠉⠉⠉⠉⠛⠻⣿⣿⠿⠛⠛⠙⠛⠻⣿⣿⣿⣿⣿⣿⣿]], -- [[⣿⣿⣿⣿⣿⠟⠁⠀⠀⠀⢀⣀⣀⡀⠀⠈⢄⠀⠀⠀⠀⠀⠀⠀⢻⣿⣿⣿⣿⣿]], -- [[⣿⣿⣿⣿⠏⠀⠀⠀⠔⠉⠁⠀⠀⠈⠉⠓⢼⡤⠔⠒⠀⠐⠒⠢⠌⠿⢿⣿⣿⣿]], -- [[⣿⣿⣿⡏⠀⠀⠀⠀⠀⠀⢀⠤⣒⠶⠤⠭⠭⢝⡢⣄⢤⣄⣒⡶⠶⣶⣢⡝⢿⣿]], -- [[⡿⠋⠁⠀⠀⠀⠀⣀⠲⠮⢕⣽⠖⢩⠉⠙⣷⣶⣮⡍⢉⣴⠆⣭⢉⠑⣶⣮⣅⢻]], -- [[⠀⠀⠀⠀⠀⠀⠀⠉⠒⠒⠻⣿⣄⠤⠘⢃⣿⣿⡿⠫⣿⣿⣄⠤⠘⢃⣿⣿⠿⣿]], -- [[⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠓⠤⠭⣥⣀⣉⡩⡥⠴⠃⠀⠈⠉⠁⠈⠉⠁⣴⣾⣿]], -- [[⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⠤⠔⠊⠀⠀⠀⠓⠲⡤⠤⠖⠐⢿⣿⣿⣿]], -- [[⠀⠀⠀⠀⠀⠀⠀⠀⣠⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⣿]], -- [[⠀⠀⠀⠀⠀⠀⠀⢸⣿⡻⢷⣤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣘⣿⣿]], -- [[⠀⠀⠀⠀⠀⠠⡀⠀⠙⢿⣷⣽⣽⣛⣟⣻⠷⠶⢶⣦⣤⣤⣤⣤⣶⠾⠟⣯⣿⣿]], -- [[⠀⠀⠀⠀⠀⠀⠉⠂⠀⠀⠀⠈⠉⠙⠛⠻⠿⠿⠿⠿⠶⠶⠶⠶⠾⣿⣟⣿⣿⣿]], -- [[⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣿⣿⣿⣿⣿⣿]], -- [[⣿⣿⣶⣤⣀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣤⣟⢿⣿⣿⣿⣿⣿⣿⣿]], -- [[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣶⣶⣶⣶⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]], -- [[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]], -- [[⣿⣿⣿⣿⣿⣿⣿⠛⢩⣴⣶⣶⣶⣌⠙⠫⠛⢋⣭⣤⣤⣤⣤⡙⣿⣿⣿⣿⣿⣿]], -- [[⣿⣿⣿⣿⣿⡟⢡⣾⣿⠿⣛⣛⣛⣛⣛⡳⠆⢻⣿⣿⣿⠿⠿⠷⡌⠻⣿⣿⣿⣿]], -- [[⣿⣿⣿⣿⠏⣰⣿⣿⣴⣿⣿⣿⡿⠟⠛⠛⠒⠄⢶⣶⣶⣾⡿⠶⠒⠲⠌⢻⣿⣿]], -- [[⣿⣿⠏⣡⢨⣝⡻⠿⣿⢛⣩⡵⠞⡫⠭⠭⣭⠭⠤⠈⠭⠒⣒⠩⠭⠭⣍⠒⠈⠛]], -- [[⡿⢁⣾⣿⣸⣿⣿⣷⣬⡉⠁⠄⠁⠄⠄⠄⠄⠄⠄⠄⣶⠄⠄⠄⠄⠄⠄⠄⠄⢀]], -- [[⢡⣾⣿⣿⣿⣿⣿⣿⣿⣧⡀⠄⠄⠄⠄⠄⠄⠄⢀⣠⣿⣦⣤⣀⣀⣀⣀⠄⣤⣾]], -- [[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣶⣶⡶⢇⣰⣿⣿⣟⠿⠿⠿⠿⠟⠁⣾⣿⣿]], -- [[⣿⣿⣿⣿⣿⣿⣿⡟⢛⡛⠿⠿⣿⣧⣶⣶⣿⣿⣿⣿⣿⣷⣼⣿⣿⣿⣧⠸⣿⣿]], -- [[⠘⢿⣿⣿⣿⣿⣿⡇⢿⡿⠿⠦⣤⣈⣙⡛⠿⠿⠿⣿⣿⣿⣿⠿⠿⠟⠛⡀⢻⣿]], -- [[⠄⠄⠉⠻⢿⣿⣿⣷⣬⣙⠳⠶⢶⣤⣍⣙⡛⠓⠒⠶⠶⠶⠶⠖⢒⣛⣛⠁⣾⣿]], -- [[⠄⠄⠄⠄⠄⠈⠛⠛⠿⠿⣿⣷⣤⣤⣈⣉⣛⣛⣛⡛⠛⠛⠿⠿⠿⠟⢋⣼⣿⣿]], -- [[⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠈⠉⠉⣻⣿⣿⣿⣿⡿⠿⠛⠃⠄⠙⠛⠿⢿⣿]], -- [[⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⢬⣭⣭⡶⠖⣢⣦⣀⠄⠄⠄⠄⢀⣤⣾⣿]], -- [[⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⢰⣶⣶⣶⣾⣿⣿⣿⣿⣷⡄⠄⢠⣾⣿⣿⣿]], -- [[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣬⡛⣿⣿⣿⣯⢻]], -- [[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⢻⣿⣿⢟⣻⣿⣿⣿⣿⣿⣿⣮⡻⣿⣿⣧]], -- [[⣿⣿⣿⣿⣿⢻⣿⣿⣿⣿⣿⣿⣆⠻⡫⣢⠿⣿⣿⣿⣿⣿⣿⣿⣷⣜⢻⣿]], -- [[⣿⣿⡏⣿⣿⣨⣝⠿⣿⣿⣿⣿⣿⢕⠸⣛⣩⣥⣄⣩⢝⣛⡿⠿⣿⣿⣆⢝]], -- [[⣿⣿⢡⣸⣿⣏⣿⣿⣶⣯⣙⠫⢺⣿⣷⡈⣿⣿⣿⣿⡿⠿⢿⣟⣒⣋⣙⠊]], -- [[⣿⡏⡿⣛⣍⢿⣮⣿⣿⣿⣿⣿⣿⣿⣶⣶⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿]], -- [[⣿⢱⣾⣿⣿⣿⣝⡮⡻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠿⠛⣋⣻⣿⣿⣿⣿]], -- [[⢿⢸⣿⣿⣿⣿⣿⣿⣷⣽⣿⣿⣿⣿⣿⣿⣿⡕⣡⣴⣶⣿⣿⣿⡟⣿⣿⣿]], -- [[⣦⡸⣿⣿⣿⣿⣿⣿⡛⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⣿⣿⣿]], -- [[⢛⠷⡹⣿⠋⣉⣠⣤⣶⣶⣿⣿⣿⣿⣿⣿⡿⠿⢿⣿⣿⣿⣿⣿⣷⢹⣿⣿]], -- [[⣷⡝⣿⡞⣿⣿⣿⣿⣿⣿⣿⣿⡟⠋⠁⣠⣤⣤⣦⣽⣿⣿⣿⡿⠋⠘⣿⣿]], -- [[⣿⣿⡹⣿⡼⣿⣿⣿⣿⣿⣿⣿⣧⡰⣿⣿⣿⣿⣿⣹⡿⠟⠉⡀⠄⠄⢿⣿]], -- [[⣿⣿⣿⣽⣿⣼⣛⠿⠿⣿⣿⣿⣿⣿⣯⣿⠿⢟⣻⡽⢚⣤⡞⠄⠄⠄⢸]], -- [[⣿⣿⣿⣿⠟⠉⠄⠄⠄⠄⠄⠙⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]], -- [[⣿⣿⡟⠁⠄⠄⠄⠄⠄⢀⠄⠄⠄⠈⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]], -- [[⣿⣿⠁⠄⠄⠄⢀⠄⣴⣿⣿⣷⡄⠄⠄⢽⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]], -- [[⣿⠇⠄⠄⠄⠄⠄⢸⣿⣿⣋⡱⠶⡄⠄⠄⣻⣿⣿⣿⣿⣿⣿⣿⣿⣿]], -- [[⣿⠂⠄⠄⠄⢀⠁⠄⣺⣿⣿⣴⣷⣿⡀⠄⠱⣿⣿⣿⣿⣿⣿⣿⣿⣿]], -- [[⣏⠄⠄⠄⠄⠄⠄⣴⣿⣿⣿⣿⣿⣿⣧⠄⠄⢹⣿⣿⣿⣿⣿⣿⣿⣿]], -- [[⣻⡇⠄⠄⠄⠄⠄⢿⣿⣷⠾⡛⢻⣿⠇⠄⢣⣼⣿⣿⣿⣿⣿⣿⣿⣿]], -- [[⣿⡇⠄⠄⠄⠄⢠⡴⠛⠃⠺⣵⡿⠏⠄⢋⣹⣿⣿⣿⣿⣿⣿⣿⣿⣿]], -- [[⣻⣧⠄⠄⠄⠄⢾⣧⣖⠷⣦⡀⠄⡦⠄⠈⠉⢛⢟⠿⠿⣿⣿⣿⣿⣿]], -- [[⣷⠉⠄⠄⠄⠸⣿⣿⡾⠻⣗⠁⠄⠄⣤⣤⣾⡇⠸⡄⠄⠈⣿⣿⣿⣿]], -- [[⡏⠄⠄⠄⠄⠄⢹⣿⣿⣤⠉⠄⠐⠄⠔⠁⠄⠁⠄⢻⠄⠄⢸⣿⣿⣿]], -- [[⡄⠄⠄⠄⠄⠄⠄⣿⣿⣿⠄⠄⠄⡖⠄⠄⠄⢀⠄⣼⣶⡀⢸⣿⣿⣿]], -- [[⣷⡆⠄⠄⠄⠄⣰⣿⣿⠇⠄⣀⠄⠄⠄⠄⣀⣱⣾⣿⡿⠁⢸⣿⣿⣿]], -- [[⣿⠟⠄⠄⠄⢀⣿⣿⣿⢀⢸⣿⣶⣶⣶⣿⣿⣿⣿⣿⣇⠄⢸⣿⣿⣿]], -- [[⡇⣶⣶⠄⢀⣾⣿⣿⡟⢨⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠄⠈⣿⣿⣿]], -- [[⣿⣿⡯⠄⣾⣿⣿⣿⠇⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠄⠄⣿⣿⣿]], -- [[⣿⡿⢏⣼⣿⣿⣿⣟⣤⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠁⠄⠄⢹⣿⣿]], -- [[⣿⣿⣿⣿⣿⣿⣿⣿⡿⠿⠛⠛⠛⠋⠉⠈⠉⠉⠉⠉⠛⠻⢿⣿⣿⣿⣿⣿⣿]], -- [[⣿⣿⣿⣿⣿⡿⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⢿⣿⣿⣿]], -- [[⣿⣿⣿⣿⡏⣀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣤⣤⣄⡀⠀⠀⠀⠀⠀⠀⠀⠙⢿⣿]], -- [[⣿⣿⣿⢏⣴⣿⣷⠀⠀⠀⠀⠀⢾⣿⣿⣿⣿⣿⣿⡆⠀⠀⠀⠀⠀⠀⠀⠈⣿]], -- [[⣿⣿⣟⣾⣿⡟⠁⠀⠀⠀⠀⠀⢀⣾⣿⣿⣿⣿⣿⣷⢢⠀⠀⠀⠀⠀⠀⠀⢸]], -- [[⣿⣿⣿⣿⣟⠀⡴⠄⠀⠀⠀⠀⠀⠀⠙⠻⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀⠀]], -- [[⣿⣿⣿⠟⠻⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠶⢴⣿⣿⣿⣿⣿⣧⠀⠀⠀⠀⠀⠀]], -- [[⣿⣁⡀⠀⠀⢰⢠⣦⠀⠀⠀⠀⠀⠀⠀⠀⢀⣼⣿⣿⣿⣿⣿⡄⠀⣴⣶⣿⡄]], -- [[⣿⡋⠀⠀⠀⠎⢸⣿⡆⠀⠀⠀⠀⠀⠀⣴⣿⣿⣿⣿⣿⣿⣿⠗⢘⣿⣟⠛⠿]], -- [[⣿⣿⠋⢀⡌⢰⣿⡿⢿⡀⠀⠀⠀⠀⠀⠙⠿⣿⣿⣿⣿⣿⡇⠀⢸⣿⣿⣧⢀]], -- [[⣿⣿⣷⢻⠄⠘⠛⠋⠛⠃⠀⠀⠀⠀⠀⢿⣧⠈⠉⠙⠛⠋⠀⠀⠀⣿⣿⣿⣿]], -- [[⣿⣿⣧⠀⠈⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠟⠀⠀⠀⠀⢀⢃⠀⠀⢸⣿⣿⣿]], -- [[⣿⣿⡿⠀⠴⢗⣠⣤⣴⡶⠶⠖⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⡸⠀⣿⣿⣿]], -- [[⣿⣿⣿⡀⢠⣾⣿⠏⠀⠠⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠛⠉⠀⣿⣿⣿]], -- [[⣿⣿⣿⣧⠈⢹⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿⣿]], -- [[⣿⣿⣿⣿⡄⠈⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣴⣾⣿⣿⣿⣿]], -- [[⣿⣿⣿⣿⣧⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣾⣿⣿⣿⣿⣿⣿⣿⣿]], -- [[⣿⣿⣿⣿⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]], -- [[⣿⣿⣿⣿⣿⣦⣄⣀⣀⣀⣀⠀⠀⠀⠀⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]], -- [[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡄⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]], -- [[⡏⠉⠉⠉⠉⠉⠉⠋⠉⠉⠉⠉⠉⠉⠋⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠙⠉⠉⠉]], -- [[⡇⢸⣿⡟⠛⢿⣷⠀⢸⣿⡟⠛⢿⣷⡄⢸⣿⡇⠀⢸⣿⡇⢸⣿⡇⠀⢸⣿⡇]], -- [[⡇⢸⣿⣧⣤⣾⠿⠀⢸⣿⣇⣀⣸⡿⠃⢸⣿⡇⠀⢸⣿⡇⢸⣿⣇⣀⣸⣿⡇]], -- [[⡇⢸⣿⡏⠉⢹⣿⡆⢸⣿⡟⠛⢻⣷⡄⢸⣿⡇⠀⢸⣿⡇⢸⣿⡏⠉⢹⣿⡇]], -- [[⡇⢸⣿⣧⣤⣼⡿⠃⢸⣿⡇⠀⢸⣿⡇⠸⣿⣧⣤⣼⡿⠁⢸⣿⡇⠀⢸⣿⡇]], -- [[⣇⣀⣀⣀⣀⣀⣀⣄⣀⣀⣀⣀⣀⣀⣀⣠⣀⡈⠉⣁⣀⣄⣀⣀⣀⣠⣀⣀⣀]], -- [[⣇⣿⠘⣿⣿⣿⡿⡿⣟⣟⢟⢟⢝⠵⡝⣿⡿⢂⣼⣿⣷⣌⠩⡫⡻⣝⠹⢿⣿]], -- [[⡆⣿⣆⠱⣝⡵⣝⢅⠙⣿⢕⢕⢕⢕⢝⣥⢒⠅⣿⣿⣿⡿⣳⣌⠪⡪⣡⢑⢝]], -- [[⡆⣿⣿⣦⠹⣳⣳⣕⢅⠈⢗⢕⢕⢕⢕⢕⢈⢆⠟⠋⠉⠁⠉⠉⠁⠈⠼⢐⢕]], -- [[⡗⢰⣶⣶⣦⣝⢝⢕⢕⠅⡆⢕⢕⢕⢕⢕⣴⠏⣠⡶⠛⡉⡉⡛⢶⣦⡀⠐⣕]], -- [[⡝⡄⢻⢟⣿⣿⣷⣕⣕⣅⣿⣔⣕⣵⣵⣿⣿⢠⣿⢠⣮⡈⣌⠨⠅⠹⣷⡀⢱]], -- [[⡝⡵⠟⠈⢀⣀⣀⡀⠉⢿⣿⣿⣿⣿⣿⣿⣿⣼⣿⢈⡋⠴⢿⡟⣡⡇⣿⡇⡀]], -- [[⡝⠁⣠⣾⠟⡉⡉⡉⠻⣦⣻⣿⣿⣿⣿⣿⣿⣿⣿⣧⠸⣿⣦⣥⣿⡇⡿⣰⢗]], -- [[⠁⢰⣿⡏⣴⣌⠈⣌⠡⠈⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣬⣉⣉⣁⣄⢖⢕⢕]], -- [[⡀⢻⣿⡇⢙⠁⠴⢿⡟⣡⡆⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣵⣵]], -- [[⡻⣄⣻⣿⣌⠘⢿⣷⣥⣿⠇⣿⣿⣿⣿⣿⣿⠛⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]], -- [[⣷⢄⠻⣿⣟⠿⠦⠍⠉⣡⣾⣿⣿⣿⣿⣿⣿⢸⣿⣦⠙⣿⣿⣿⣿⣿⣿⣿⣿]], -- [[⡕⡑⣑⣈⣻⢗⢟⢞⢝⣻⣿⣿⣿⣿⣿⣿⣿⠸⣿⠿⠃⣿⣿⣿⣿⣿⣿⡿⠁]], -- [[⡝⡵⡈⢟⢕⢕⢕⢕⣵⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣶⣿⣿⣿⣿⣿⠿⠋⣀⣈]], -- [[⡝⡵⡕⡀⠑⠳⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠛⢉⡠⡲⡫⡪⡪]], [[ /\ \__ ]], [[ _____ ____\ \ ,_\ ___ ]], [[/\ '__`\ /',__\\ \ \/ / __`\ ]], [[\ \ \L\ \\__, `\\ \ \_/\ \L\ \]], [[ \ \ ,__//\____/ \ \__\ \____/]], [[ \ \ \/ \/___/ \/__/\/___/ ]], [[ \ \_\ ]], [[ \/_/ ]], }, opts = { position = "center", hl = "Type" -- wrap = "overflow"; } } local footer = { type = "text", val = '', opts = { position = "center", hl = "Number", } } --- @param sc string --- @param txt string --- @param keybind string optional --- @param keybind_opts table optional local function button(sc, txt, keybind, keybind_opts) local sc_ = sc:gsub("%s", ""):gsub("SPC", "<leader>") local opts = { position = "center", shortcut = sc, cursor = 5, width = 50, align_shortcut = "right", hl_shortcut = "Keyword", } if keybind then keybind_opts = if_nil(keybind_opts, {noremap = true, silent = true, nowait = true}) opts.keymap = {"n", sc_, keybind, keybind_opts} end local function on_press() local key = vim.api.nvim_replace_termcodes(sc_ .. '<Ignore>', true, false, true) vim.api.nvim_feedkeys(key, "normal", false) end return { type = "button", val = txt, on_press = on_press, opts = opts, } end local buttons = { type = "group", val = { button( "e", " New file", ":ene <CR>"), button("ctrl p", " Find file", ":Telescope find_files<CR>"), button("spc fr", " Recently opened files", ":Telescope oldfiles<CR>"), button("spc fg", " Find word", ":Telescope live_grep<CR>" ), button("c", " Config files", [[:lua require('psto.telescope.setup').search_dotfiles()<CR>]]), button("n", "⚒ Neovim config ", ":e ~/.config/nvim/init.lua<CR>"), button("i", " i3 config", ":e ~/.config/i3/config<CR>"), button("t", " tmux config", ":e ~/.tmux.conf<CR>"), button("q", " Quit", ":qa<CR>"), -- button("Spc f r", " Frecency/MRU" ), -- button("SPC f m", " Jump to bookmarks" ), -- button("SPC s l", " Open last session" ), }, opts = { spacing = 1 } } local section = { header = default_header, buttons = buttons, footer = footer, } local opts = { layout = { {type = "padding", val = 2}, section.header, {type = "padding", val = 2}, section.buttons, section.footer, }, opts = { margin = 5 }, } return { button = button, section = section, opts = opts, }
draft_cm = require(GetScriptDirectory()..'/CM/handle') function Think() if (GetGameMode() == GAMEMODE_CM) then draft_cm.Handle() else print('Other mode launched, bypass') end end
local Locale = { list = { 'en', 'ru' }, main = 'en', __newindex = function()end -- ro } Locale.__index = Locale function Locale:get(cat, k, lang) assert(cat, 'Give category') assert(k, 'Give key') lang = lang or self.main local v = (self[lang] or {})[cat] if not v then return self[self.main][cat][k] else return v[k] end end return function(C) local json = require 'etc.json' for i = 1, #Locale.list do local n = Locale.list[i] local f = io.open(('src/locales/%s.json'):format(n)) Locale[n] = json.decode(f:read 'a') end C.locale = setmetatable({}, Locale) end
require "predefine" local CS = require "csharp" ------------------------------------------------------------------------------ -- command line ------------------------------------------------------------------------------ local dir = table.unpack {...} local USAGE = "regenerator.exe cs_windowskits.lua {cs_dst_dir}" if not dir then error(USAGE) end local function getLatestKits() local kits = "C:/Program Files (x86)/Windows Kits/10/Include" local entries = file.ls(kits) table.sort( entries, function(a, b) return (a > b) end ) -- print_table(entries) for i, e in ipairs(entries) do if file.isDir(e) then return e end end end local src = getLatestKits() ------------------------------------------------------------------------------ -- libclang CIndex ------------------------------------------------------------------------------ local headers = { -- "um/d3d12.h", "um/d3d11.h", "um/d3dcompiler.h", "um/d3d11shader.h", "um/d3d10shader.h", -- "um/documenttarget.h", "um/dwrite.h", "um/d2d1.h", "um/d2d1_1.h", "um/d2d1effectauthor.h", -- "um/wincodec.h", "shared/dxgi.h", "shared/dxgi1_2.h", "shared/dxgi1_3.h", "shared/dxgi1_4.h", -- "um/timeapi.h", "um/winuser.h" } for i, f in ipairs(headers) do local header = string.format("%s/%s", src, f) print(header) headers[i] = header end local sourceMap = ClangParse { headers = headers, defines = {"UNICODE=1"} } if not sourceMap then error("no sourceMap") end ------------------------------------------------------------------------------ -- export to dlang ------------------------------------------------------------------------------ local ignoreTypes = {} local function filter(decl) if ignoreTypes[decl.name] then return false end if decl.class == "Function" then return decl.isExternC or decl.dllExport else return true end end local function remove_MAKEINTRESOURCE(prefix, tokens) local items = {} for _, t in ipairs(tokens) do if t == "MAKEINTRESOURCE" then else table.insert(items, t) end end return table.concat(items, " ") end local function rename_values(prefix, tokens, value_map) local items = {} for _, t in ipairs(tokens) do if value_map and value_map[t] then table.insert(items, value_map[t]) else local rename = string.gsub(t, "^" .. prefix .. "_", "") if rename ~= t then -- 数字で始まる場合があるので rename = "_" .. rename end if rename:sub(#rename - 1) == "UL" then rename = string.sub(rename, 1, #rename - 2) elseif rename:sub(#rename) == "L" then rename = string.sub(rename, 1, #rename - 1) end table.insert(items, rename) end end return table.concat(items, " ") end local const = { IDC = {value = remove_MAKEINTRESOURCE}, CS = {value = rename_values, type = "uint"}, CW = {value = rename_values, type = "int"}, SW = {value = rename_values, type = "int"}, SM = {value = rename_values, type = "int"}, QS = {value = rename_values, type = "uint"}, WS = {value = rename_values, type = "uint"}, PM = { value = rename_values, value_map = { QS_INPUT = "QS._INPUT", QS_POSTMESSAGE = "QS._POSTMESSAGE", QS_HOTKEY = "QS._HOTKEY", QS_TIMER = "QS._TIMER", QS_PAINT = "QS._PAINT", QS_SENDMESSAGE = "QS._SENDMESSAGE" }, type = "uint" }, WM = {value = rename_values, type = "uint"}, DM = { value = rename_values, value_map = {WM_USER = "WM._USER"}, type = "uint" }, DXGI = {value = rename_values, type = "uint"}, DXGI_USAGE = {value = rename_values, type = "uint"}, DXGI_ENUM_MODES = {value = rename_values, type = "uint"} } local overload = { LoadCursorW = [[ public static IntPtr LoadCursorW( IntPtr hInstance, int lpCursorName ) { Span<int> src = stackalloc int[1]; src[0] = lpCursorName; var cast = MemoryMarshal.Cast<int, ushort>(src); return LoadCursorW(hInstance, ref cast[0]); } ]] } local option = { filter = filter, omitEnumPrefix = true, macro_map = { D3D_COMPILE_STANDARD_FILE_INCLUDE = "public static IntPtr D3D_COMPILE_STANDARD_FILE_INCLUDE = new IntPtr(1);", DXGI_RESOURCE_PRIORITY_HIGH = "public const int DXGI_RESOURCE_PRIORITY_HIGH = unchecked ((int) 0xa0000000 );", DXGI_RESOURCE_PRIORITY_MAXIMUM = "public const int DXGI_RESOURCE_PRIORITY_MAXIMUM = unchecked ((int) 0xc8000000 );", DXGI_MAP_READ = "public const int DXGI_MAP_READ = ( 1 );", DXGI_MAP_WRITE = "public const int DXGI_MAP_WRITE = ( 2 );", DXGI_MAP_DISCARD = "public const int DXGI_MAP_DISCARD = ( 4 );", DXGI_ENUM_MODES_INTERLACED = "public const int DXGI_ENUM_MODES_INTERLACED = ( 1 );", DXGI_ENUM_MODES_SCALING = "public const int DXGI_ENUM_MODES_SCALING = ( 2 );", DWRITE_EXPORT = "// public const int DWRITE_EXPORT = __declspec ( dllimport ) WINAPI;", -- SETWALLPAPER_DEFAULT = "public static readonly IntPtr SETWALLPAPER_DEFAULT = new IntPtr(- 1);", TIMERR_NOCANDO = "public const int TIMERR_NOCANDO = ( /*TIMERR_BASE*/96 + 1 );", TIMERR_STRUCT = "public const int TIMERR_STRUCT = ( /*TIMERR_BASE*/96 + 33 );", LB_CTLCODE = "public const int LB_CTLCODE = 0;", WHEEL_PAGESCROLL = "public const int WHEEL_PAGESCROLL = unchecked( /*UINT_MAX*/(int)0xfffffff );", LBS_STANDARD = "public const long LBS_STANDARD = ( LBS_NOTIFY | LBS_SORT | (long)WS._VSCROLL | (long)WS._BORDER );", CW_USEDEFAULT = "public const int _USEDEFAULT = unchecked( ( int ) 0x80000000 );" }, dir = dir, const = const, overload = overload, dll_map = { winuser = "user32", timeapi = "winmm", d3dcompiler = "D3dcompiler_47" } } CS.Generate(sourceMap, option)
local function tcount(tbl) local cnt = 0 for k,v in pairs(tbl) do cnt = cnt + 1 end return cnt end return { tcount = tcount, }
local from_expr = require('related_files').pargen_from_expression return { -- Describe types of files by provinding a name/id, parser function and -- generator function (aka pargen). -- Alternatively for a lot of simple cases, you can use the -- 'pargen_from_expression' helper function that implements a mini DSL to -- generate the parser/generator pair. pargens = { from_expr("source", "{parent}/{name}.py"), from_expr("test", "{parent}/{name}_test.py") }, -- Specify which pargen relates to which with following effect: -- when on a source file: '<leader>2' -> to go to (or create) the related test file -- when on a test file: '<leader>1' -> to go to (or create) the related source file relations = {{"source", "test"}} }
local Object = require 'lib.classic' local squeak = require 'lib.squeak' local ParticlesComponent = squeak.components.particles local images = require 'services.images' local lg = love.graphics local Particles = Object:extend() function Particles:new() end function Particles:dust() local DUST_COUNT = 3 local ps = lg.newParticleSystem(images:getImage('dust1'), DUST_COUNT) ps:setQuads({ images:getQuad('dust1'), }) ps:setSizes(1, .5) ps:setEmissionRate(1) ps:setParticleLifetime(0, 1.5) ps:setEmitterLifetime(1.5) ps:setDirection(math.pi / 2) ps:setSpread(math.pi / 4) ps:setSpeed(5, 10) ps:setLinearAcceleration(1, 5, 0, 10) ps:setLinearDamping(1) ps:setColors( {1, 1, 1, 0.8}, {1, 1, 1, 0} ) ps:start() return ParticlesComponent(ps) end function Particles:__tostring() return 'Particles' end return Particles()
--Notifications function nadmin:Notify(...) --CLIENT version local arg = {...} local args = {} for _, a in ipairs(arg) do if isstring(a) or istable(a) then table.insert(args, a) elseif tostring(a) then table.insert(args, a) end end chat.AddText(unpack(args)) end net.Receive("nadmin_notification", function(len) local argc = net.ReadUInt(16) local args = {} for i = 1, argc do if net.ReadBit() == 1 then table.insert(args, Color(net.ReadUInt(8), net.ReadUInt(8), net.ReadUInt(8), net.ReadUInt(8))) else table.insert(args, net.ReadString()) end end local silent = net.ReadBool() if silent then table.insert(args, 1, nadmin.colors.white) table.insert(args, 2, "(") table.insert(args, 3, nadmin.colors.blue) table.insert(args, 4, "SILENT") table.insert(args, 5, nadmin.colors.white) table.insert(args, 6, ") ") end chat.AddText(unpack(args)) end) net.Receive("nadmin_announcement", function() if IsValid(nadmin.announcement) then nadmin.announcement:Remove() end local text = net.ReadString() local dur = net.ReadFloat() nadmin.announcement = vgui.Create("DPanel") nadmin.announcement:SetSize(0, 8) nadmin.announcement:SetPos(ScrW()/2, ScrH()/2-4) function nadmin.announcement:Paint(w, h) draw.RoundedBox(0, 0, 0, w, h, nadmin.colors.gui.theme) end local font = "nadmin_derma_large_b" surface.SetFont(font) local w, h = surface.GetTextSize(text) w = w + 8 h = h + 10 local x = ScrW()/2 - w/2 local y = 4 nadmin.announcement:MoveTo(x, ScrH()/2 - 4, 0.5) nadmin.announcement:SizeTo(w, -1, 0.5, 0, -1, function() nadmin.announcement:MoveTo(x, ScrH()/2 - h/2, 0.5) nadmin.announcement:SizeTo(-1, h, 0.5, 0, -1, function() local txt = vgui.Create("DLabel", nadmin.announcement) txt:SetText(text) txt:SetTextColor(nadmin:TextColor(nadmin.colors.gui.theme)) txt:SetFont(font) txt:SizeToContents() txt:SetPos(nadmin.announcement:GetWide()/2 - txt:GetWide()/2, nadmin.announcement:GetTall()/2 - txt:GetTall()/2 - 1) txt:SetAlpha(0) local prog = vgui.Create("DPanel", nadmin.announcement) prog:SetSize(nadmin.announcement:GetWide(), 2) prog:SetPos(0, nadmin.announcement:GetTall() - prog:GetTall()) function prog:Paint(w, h) draw.RoundedBox(0, 0, 0, w, h, nadmin.colors.gui.blue) end prog:SetAlpha(0) txt:AlphaTo(255, 0.2) prog:AlphaTo(255, 0.2, 0, function() nadmin.announcement:MoveTo(x, y, 0.3, 0, -1, function() prog:SizeTo(0, -1, dur) prog:MoveTo(nadmin.announcement:GetWide()/2, h-2, dur, 0, -1, function() nadmin.announcement:MoveTo(x, -nadmin.announcement:GetTall(), 0.3, 0, -1, function() nadmin.announcement:Remove() end) end) end) end) end) end) end)
--[[ ä Name: Advanced Questbook By: Crypton ]] --[[ %s is a "Wild Card" character. AQB uses these to replace with data such as names of items, players, etc.. It is important not to remove them or you will receive errors. For translating, you can move them where they need to go in the sentence so the data forms a proper sentence in your language. ]] AQB_XML_QDTAILS = "任务细节"; AQB_XML_DESCR = "描述:"; AQB_XML_REWARDS = "奖励:"; AQB_XML_DETAILS = "详细资料:"; AQB_XML_LOCATIONS = "坐标:"; AQB_XML_CONFIG = "设置"; AQB_XML_HSECTION = "帮助划分"; AQB_XML_OPENHELP = "打开帮助"; AQB_XML_CLOSEHELP = "关闭帮助"; AQB_XML_SHARERES = "共享结果"; AQB_XML_SHOWSHARE = "显示共享"; AQB_XML_HIDESHARE = "隐藏共享"; AQB_XML_BACK = "后退"; AQB_XML_TYPEKEYWORD = "输入关键词"; AQB_XML_SEARCH = "查找"; AQB_XML_SEARCHRES = "查找结果"; AQB_XML_CONFIG2 = "配置"; AQB_XML_CONFIG3 = "Icon Configuration"; -- New AQB_XML_RELOADUI1 = "重载界面"; AQB_XML_RELOADUI2 = "如果小地图图标不见了,请重载界面."; AQB_XML_RELOADUI3 = "AQD启用, 重载界面禁用."; AQB_XML_SHTOOLTIPS = "Tooltips"; -- Edited AQB_XML_STTOOLTIPS = "粘结鼠标提示"; AQB_XML_STICONS = "粘结图标"; AQB_XML_QDONTIPS = "Quest Description"; -- Edited AQB_XML_RLONTIPS = "Recommended Level"; -- Edited AQB_XML_REWONTIPS = "Rewards"; -- Edited AQB_XML_COORDONTIPS = "Coordinates"; -- Edited AQB_XML_PREINC = "保存不完整"; AQB_XML_AQD = "Advanced Quest Dumper"; AQB_XML_QS = "任务共享"; AQB_XML_TMBTN = "锁定小地图图标"; --AQB_XML_SAVECLOSE = "保存/关闭"; --AQB_XML_CLOSECONFIG = "关闭设置"; AQB_XML_PURGE = "清楚数据"; AQB_XML_STPORT = "Snoop Transports"; -- Edited AQB_XML_ETRAIN = "Elite Trainers"; -- Edited AQB_XML_SHOWSHARED = "Shared Quests"; -- Edited AQB_XML_SHOWDAILY = "Daily Quests"; -- New AQB_XML_SHOWQUESTS = "Quests"; -- New AQB_XML_AIRPORT = "Airships"; -- New AQB_XML_MSGONDUMP = "Quest Dump上显示消息"; AQB_XML_NOTE1 = "Drag this icon on the map to place an icon in that location."; -- New AQB_XML_NOTE2 = "Shift+Left Click a Note to Edit It"; -- New AQB_XML_NOTE3 = "Hold Shift+Right Mouse to Move a Note"; -- New AQB_XML_NOTE4 = "CTRL+Left Click to Delete a Note"; -- New AQB_XML_NOTE5 = "New Note"; -- New AQB_XML_NOTE6 = "Edit Note"; -- New AQB_XML_NOTE7 = "You currently have %s notes for the current map. Please remove a note before trying to add another."; -- New AQB_XML_NOTE8 = "Map Notes:"; -- New AQB_XML_NOTE9 = "Save Note"; -- New AQB_XML_NOTE10 = "Edit Title"; -- New AQB_XML_NOTE11 = "Edit Note"; -- New AQB_XML_NOTE12 = "Custom Notes"; -- Edited AdvQuestBook_Messages = { ["AQB_AMINFO"] = "一个寻找信息,追踪,管理游戏内任务的工具.", ["AQB_AMNOTFOUND"] = "未发现AddonManager. 它是个非常有用的插件,强烈建议您使用AddonManager来辅助 %s. 输入 %s 来打开 %s 面板 或者点击AQB图标开启设定面板.", ["AQB_ERRFILELOAD"] = "读取档案错误", ["AQB_DFAULTSETLOAD"] = "读取默认设置", ["AQB_SETSUPDATE"] = "更新设定", ["AQB_GET_PQUEST"] = "取得队伍任务信息", ["AQB_SHIFT_RIGHT"] = "Shift + 鼠标右击 可移动小地图按钮.", ["AQB_RCLICK"] = "鼠标右击", ["AQB_MOVE_BTN"] = "按住鼠标左键可移动按钮.", ["AQB_L50ET"] = "主职和副职都必须用友45精英技能.", ["AQB_LIST_RECIEVED"] = "接收到任务共享列表. 请打开 %s 查看共享任务.", ["AQB_NOLIST_RECIEVED"] = "没有接收到共享任务.", ["AQB_RECLEVEL"] = "建议等级", ["AQB_UNKNOWNQID"] = "未知任务编号", ["AQB_COORDS"] = "C坐标", ["AQB_NEW_QD"] = "New Quest Dumped for %s."; ["AQB_CLEARED_DATA"] = "清除 %s 任务 储存 %s 任务", ["AQB_CLEANED_ALL"] = "清除所有储存的任务.", ["AQB_UPLOAD"] = "在你退出游戏的时候,确定要上传 %s 到 %s .", ["AQB_MIN_CHARS"] = "请最少输入 %s 个字数来查询...", ["AQB_TOOMANY"] = "找到超过 %s 个结果. 使用不同的关键词将可以更精确的查询.", ["AQB_SEARCHING"] = "正在查询 %s. 请稍等...", ["AQB_FOUND_RESULTS"] = "找到 %s 结果 从 %s.", ["AQB_NOTSUB"] = "这个任务还未上传相关资料.", ["AQB_RECLEVEL"] = "建议等级", ["AQB_START"] = "开始", ["AQB_END"] = "结束", ["AQB_REWARDS"] = "奖励", ["AQB_COORDS"] = "坐标", ["AQB_TRANSPORT"] = "传送点", ["AQB_LINKSTO"] = "传送到", ["AQB_DUMPED"] = "Dumped", ["AQB_GOLD"] = "金币", ["AQB_XP"] = "经验", ["AQB_TP"] = "天赋点", ["AQB_MAP"] = "地图", ["AQB_AND"] = "和", ["AQB_OPEN"] = "打开", ["AQB_LOCK"] = "锁定", ["AQB_UNLOCK"] = "解锁", ["AQB_QSTATUS0"] = "你还未完成此任务.", ["AQB_QSTATUS1"] = "你已经有这个任务了.", ["AQB_QSTATUS2"] = "你已经完成这个任务了.", }; -- Help topics will be added back later. I need to rewrite them.
 -- German localisation by Alex6002 & LarryCurse local L = LibStub("AceLocale-3.0"):NewLocale("NauticusClassic", "deDE") if not L then return; end -- addon description L["Tracks the precise arrival & departure schedules of boats and Zeppelins around Azeroth and displays them on the Mini-Map and World Map in real-time."] = "Verfolgt die genaue Position sowie Ankunfts- und Abfahrtszeiten von Booten und Zeppelinen in Azeroth an und zeigt sie auf der Minikarte und der Weltkarte in Echtzeit an." -- slash commands (no spaces!) L["icons"] = true L["minishow"] = true L["worldshow"] = true L["minisize"] = true L["worldsize"] = true L["framerate"] = true L["faction"] = true L["minibutton"] = true L["autoselect"] = true L["alarm"] = true -- options L["Options"] = "Optionen" L["General Settings"] = "Allgemeine Einstellungen" L["Map Icons"] = "Kartenicons" L["Options for displaying transports as icons on the Mini-Map and World Map."] = "Optionen für die Darstellung der Transportmittel als Icons auf der Minikarte und der Weltkarte." L["Show on Mini-Map"] = "Zeige auf der Minikarte" L["Toggle display of icons on the Mini-Map."] = "Ein-/Ausschalten der Anzeige der Icons auf der Minikarte." L["Show on World Map"] = "Zeige auf der Weltkarte" L["Toggle display of icons on the World Map."] = "Ein-/Ausschalten der Anzeige der Icons auf der Weltkarte." L["Mini-Map icon size"] = "Minikarte Icongröße" L["Change the size of the Mini-Map icons."] = "Ändert die Größe der Minikarte Icons." L["World Map icon size"] = "Weltkarte Icongröße" L["Change the size of the World Map icons."] = "Ändert die Größe der Weltkarte Icons." L["Icon framerate"] = true L["Change the framerate of the World Map/Mini-Map icons (lower this value if you are seeing performance issues with the map open)."] = true L["Faction only"] = "Nur Fraktion" L["Hide transports of opposite faction from the map, showing only neutral and those of your faction."] = "Verstecke Transportmittel der gegnerischen Fraktion auf der Karte und zeige nur neutrale und die von Deiner Fraktion." L["Auto select transport"] = "Automatische Transportauswahl" L["Automatically select nearest transport when standing at platform."] = "Automatisch den nächstgelegenen Transport auswählen, wenn man auf einer Plattform steht." L["Alarm delay"] = "Alarm Zeit" L["Change the alarm delay (in seconds)."] = "Ändert die Zeit ab, wann der Alarm vor dem Abflug ertönen soll (in Sekunden)." L["Mini-Map button"] = "Minikarte Button" L["Toggle the Mini-Map button."] = "Ein-/Ausschalten des Minimap Button" -- miscellaneous L["Arrival"] = "Ankunft" L["Departure"] = "Abfahrt" L["Select Transport"] = "Route auswählen" L["Select None"] = "Nichts auswählen" L["No Transport Selected"] = "Keine Route ausgewählt" L["Not Available"] = "Nicht Erreichbar" L["N/A"] = "N/A" -- abbreviation for Not Available L["NauticusClassic Options"] = "NauticusClassic Optionen" L["Alarm is now: "] = "Der Alarm ist jetzt: " L["ON"] = "An" L["OFF"] = "Aus" L["List friendly faction only"] = "Zeige nur Transportmittel freundlicher Fraktionen" -- re do? L["Shows only neutral transports and those of your faction."] = "Zeigt nur neutrale und Transportmittel deiner Fraktion." -- check? L["List relevant to current zone only"] = "Zeige nur Transportmittel der momentanen Zone" -- re do? L["Shows only transports relevant to your current zone."] = "Zeigt nur Transportmittel der momentanen Zone." -- check? L["Hint: Click to cycle transport. Alt-Click to set up alarm"] = "Hinweis: Klick - Reiseroute auswählen. Alt-Klick - Alarm aktivieren." L["New version available! Visit github.com/DungFu/NauticusClassic"] = "Neue Version verfügbar! Schau auf github.com/DungFu/NauticusClassic" -- ship names L["The Thundercaller"] = "Die Donnersturm" L["The Iron Eagle"] = "Der Eiserne Adler" L["The Purple Princess"] = "Die Prinzessin Violetta" L["The Maiden's Fancy"] = "Die Launische Minna" L["The Bravery"] = "Die Bravado" L["The Lady Mehley"] = "Die Lady Mehley" L["The Moonspray"] = "Die Mondgischt" L["Feathermoon Ferry"] = "Mondfederfähre" L["Deeprun Tram North"] = true L["Deeprun Tram South"] = true -- zones (*must* strictly match the in-game name) L["Orgrimmar"] = "Orgrimmar" L["Undercity"] = "Unterstadt" L["Durotar"] = "Durotar" L["Tirisfal Glades"] = "Tirisfal" L["Stranglethorn Vale"] = "Schlingendorntal" L["The Barrens"] = "Das Brachland" L["Wetlands"] = "Sumpfland" L["Darkshore"] = "Dunkelküste" L["Dustwallow Marsh"] = "Düstermarschen" L["Teldrassil"] = "Teldrassil" L["Feralas"] = "Feralas" L["Stormwind City"] = true L["Ironforge"] = true L["Deeprun Tram"] = true -- subzones L["Grom'gol"] = "Grom'gol" L["Booty Bay"] = "Beutebucht" L["Ratchet"] = "Ratschet" L["Menethil Harbor"] = "Menethil" L["Auberdine"] = "Auberdine" L["Theramore"] = "Theramore" L["Rut'Theran Village"] = "Rut'Theran" L["Sardor Isle"] = "Insel Sardor" L["Feathermoon"] = "Mondfederfeste" L["Forgotten Coast"] = "Die vergessene Küste" -- abbreviations L["Org"] = "Org" -- Orgrimmar L["UC"] = "Us" -- Undercity L["GG"] = "GG" -- Grom'gol L["BB"] = "BB" -- Booty Bay L["Rat"] = "Rat" -- Ratchet L["MH"] = "Mene" -- Menethil Harbor L["Aub"] = "Aub" -- Auberdine L["Th"] = "Ther" -- Theramore L["RTV"] = "Rut" -- Rut'Theran Village L["FMS"] = "Mond" -- Feathermoon L["Fer"] = "Fer" -- Feralas L["SW"] = true -- Stormwind City L["IF"] = true -- Ironforge
zeta = game.Players.acb227 main = "Really black" range = 20 guard = false tor = zeta.Character.Torso bp = Instance.new("Model") bp.Parent = zeta.Character bp.Name = "Backpack Guardian is on Stand..By" script.Parent = bp hum = Instance.new("Humanoid") hum.MaxHealth = 0 hum.Parent = bp head = Instance.new("Part") head.Parent = bp head.Size = tor.Size head.Name = "Head" head.BrickColor = BrickColor.new(main) head.TopSurface = "Smooth" head.BottomSurface = "Smooth" head:BreakJoints() weld = Instance.new("Weld") weld.Parent = tor weld.Part0 = tor weld.Part1 = head weld.C0 = CFrame.new(0,0,1) * CFrame.Angles(0,0,0) head2 = Instance.new("Part") head2.Parent = bp head2.Size = Vector3.new(1,1,1) head2.Name = "Shield" head2.BrickColor = BrickColor.new("Really blue") head2.TopSurface = "Smooth" head2.Transparency = 0.8 head2.CanCollide = false head2.BottomSurface = "Smooth" msh = Instance.new("SpecialMesh") msh.MeshType = "Sphere" msh.Parent = head2 msh.Scale = Vector3.new(1,1,1) head2:BreakJoints() weld = Instance.new("Weld") weld.Parent = tor weld.Part0 = tor weld.Part1 = head2 weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0) function fire(player) human = player.Character:findFirstChild("Humanoid") if human ~= nil then lasa = Instance.new("SelectionPartLasso") lasa.Parent = game.Workspace lasa.Humanoid = human lasa.Part = head lasa.Color = BrickColor.new("Really black") wait(0.01) human.Parent:BreakJoints() lasa:Remove() end end function chat(msg) if string.sub(msg:lower(), 1, 8) == "guard/on" and guard == false then for i = 1, range*20 do wait() msh.Scale = msh.Scale + Vector3.new(0.1,0.085,0.1) end bp.Name = "Backpack Guardian; Auto-Attack Range:" ..range guard = true end if string.sub(msg:lower(), 1, 9) == "guard/off" and guard == true then for i = 1, range*20 do wait() msh.Scale = msh.Scale - Vector3.new(0.1,0.1,0.1) end guard = false bp.Name = "Backpack Guardian is on StandBy" end if string.sub(msg, 1, 6) == "laser/" then txt = string.sub(msg, 7) body = game.Players:GetChildren() for i = 1, #body do if body[i].Name == txt then fire(body[i]) end end end end zeta.Chatted:connect(chat) while true do wait() if guard == true then play = game.Players:GetChildren() for i = 1, #play do if play[i].Name ~= zeta.Name then if play[i].Character ~= nil then if play[i].Character:findFirstChild("Torso") ~= ni then if play[i].Character.Humanoid.Health < 1 then else torso = play[i].Character:findFirstChild("Torso") if math.ceil((torso.Position - head2.Position).magnitude) < range then fire(play[i]) end end end end end end end end
include("shared.lua") function ENT:Draw() self:DrawModel() end language.Add("ent_frisbee_combat_mk2","Combat Frisbee MK2");
local Vargs = require 'klib/utils/vargs' local TypeUtils = require 'klib/utils/type_utils' local Event = require 'klib/event/proxy' local CHECK_POINT = { BEFORE = 1, AFTER = 2, MEET = 3 --- execute when condition meets } --- remove handler if condition meets --- arguments: table[event_id, condition, on_remove, handler, check_point] --- check_point: CHECK_POINT_BEFORE, CHECK_POINT_AFTER, CHECK_POINT_MEET local function _register_removable(options) TypeUtils.assert_not_nil(options.event_id, 'event_id') TypeUtils.assert_is_function(options.condition, 'condition') TypeUtils.assert_nil_or_function(options.on_remove, 'on_remove') TypeUtils.assert_nil_or_function(options.handler, 'handler') TypeUtils.assert_is_int(options.check_point, 'check_point') local function check_and_remove(event, removable_handler) if options.condition(event) then if options.check_point == CHECK_POINT.MEET then if options.handler then options.handler(event) end end Event.remove(options.event_id, removable_handler) if options.on_remove then options.on_remove(event) end return true else return false end end local function removable_handler(event) if options.check_point == CHECK_POINT.MEET then check_and_remove(event, removable_handler) else if options.check_point == CHECK_POINT.BEFORE then if check_and_remove(event, removable_handler) then return end end if options.handler then options.handler(event) end if options.check_point == CHECK_POINT.AFTER then check_and_remove(event, removable_handler) end end end Event.register(options.event_id, removable_handler) end local DEFAULT_CONDITION = function() return true end local DEFAULT_CHECK_POINT = CHECK_POINT.AFTER local Removable = { CHECK_POINT = CHECK_POINT } function Removable.register_removable(event_id, ...) local vargs = Vargs(...) vargs.next_if(TypeUtils.is_table, function(options) _register_removable({ event_id = event_id, condition = options.condition, on_remove = options.on_remove, handler = options.handler, check_point = options.check_point }) end) vargs.on_length(1, function(handler) _register_removable({ event_id = event_id, condition = DEFAULT_CONDITION, handler = handler, check_point = DEFAULT_CHECK_POINT }) end) vargs.on_length(2, function(condition, handler) _register_removable({ event_id = event_id, condition = condition, handler = handler, check_point = DEFAULT_CHECK_POINT }) end) end function Removable.execute_while(event_id, condition, on_remove, handler) TypeUtils.assert_is_function(condition) if handler == nil then handler = on_remove on_remove = nil end local function condition_not_meet(event) return not condition(event) end _register_removable({ event_id = event_id, condition = condition_not_meet, on_remove = on_remove, handler = handler, check_point = CHECK_POINT.BEFORE }) end function Removable.execute_until(event_id, condition, on_remove, handler) if handler == nil then handler = on_remove on_remove = nil end _register_removable({ event_id = event_id, condition = condition, on_remove = on_remove, handler = handler, check_point = CHECK_POINT.BEFORE }) end --- execute once when condition meet function Removable.execute_once(event_id, condition, handler) if handler == nil then handler = condition condition = nil end if nil ~= condition then _register_removable({ event_id = event_id, condition = condition, handler = handler, check_point = CHECK_POINT.MEET }) else _register_removable({ event_id = event_id, condition = DEFAULT_CONDITION, handler = handler, check_point = CHECK_POINT.AFTER }) end end return Removable
local plr = game.Players.LocalPlayer local chr = plr.Character local maus = plr:GetMouse() local PGui=plr.PlayerGui local lleg = chr["Left Leg"] local rleg = chr["Right Leg"] local larm = chr["Left Arm"] local rarm = chr["Right Arm"] local hed = chr.Head local rutprt = chr.HumanoidRootPart local torso = chr.Torso local otheranims=false local armmovement=false local equipped=false chr.Animate.Disabled=true local RunSpeed=40 local WlkSpeed=20 local CrawlSpeed=10 local CrawlDashSpeed=20 local runnin=false local tik=0 local fldb={['w']=false,['a']=false,['s']=false,['d']=false} local Meows={"60871617","151742282","138093919"} local leftnekoface="260195370" local rightnekoface="260196558" local swing="Right" local armanim="" local hitdb=false local RightNekoColor=BrickColor.new("Really black") local LeftNekoColor=BrickColor.new("Institutional white") coroutine.wrap(function() for i,x in pairs(hed:GetChildren()) do if x:IsA('Sound') then x:Destroy() end end end)() function Lerp(a, b, i) local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()} local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()} local calx = com1[1] + (com2[1] - com1[1]) * i local caly = com1[2] + (com2[2] - com1[2]) * i local calz = com1[3] + (com2[3] - com1[3]) * i local cala = com1[4] + (com2[4] - com1[4]) * i local calb = com1[5] + (com2[5] - com1[5]) * i local calc = com1[6] + (com2[6] - com1[6]) * i return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc) end function TwnSingleNumber(s,f,m) local wot=s+(f-s)*m return wot end function TwnVector3(q,w,e) local begin={q.x,q.y,q.z} local ending={w.x,w.y,w.z} local bgx=begin[1]+(ending[1]-begin[1])*e local bgy=begin[2]+(ending[2]-begin[2])*e local bgz=begin[3]+(ending[3]-begin[3])*e return Vector3.new(bgx,bgy,bgz) end newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z) wld = Instance.new("Weld", wp1) wld.Part0 = wp0 wld.Part1 = wp1 wld.C0 = CFrame.new(wc0x, wc0y, wc0z) end function Avg(a, b) return CFrame.new((a.X+b.X)/2,(a.Y+b.Y)/2,(a.Z+b.Z)/2) end newWeld(law, torso, larm, -1.5, 0.5, 0) newWeld(raw, torso, rarm, 1.5, 0.5, 0) newWeld(llw, torso, lleg, -.5, -2, 0) newWeld(rlw, torso, rleg, .5, -2, 0) newWeld(hw, torso, hed, 0, 1.5, 0) local rutwald=Instance.new('Weld',rutprt) rutwald.Part0=rutprt rutwald.Part1=torso rutwald.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0) larm.Weld.C1 = CFrame.new(0, 0.5, 0) rarm.Weld.C1 = CFrame.new(0, 0.5, 0) rleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0) lleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0) local anim = "Idling" local lastanim = "Idling" local val = 0 local syne = 0 local num = 0 local runtime = 0 local NekoNekoKnuckles=Instance.new("Model",chr) NekoNekoKnuckles.Name="Neko Neko Knuckles" local RightNeko=Instance.new("Model",NekoNekoKnuckles) RightNeko.Name="Right Neko" local LeftNeko=Instance.new("Model",NekoNekoKnuckles) LeftNeko.Name="Left Neko" --[[ Right Neko ]]-- local rn1=Instance.new("Part",RightNeko) rn1.Name="RightHandle" rn1.Material="SmoothPlastic" rn1.TopSurface=10 rn1.BottomSurface=10 rn1.LeftSurface=10 rn1.RightSurface=10 rn1.FrontSurface=10 rn1.BackSurface=10 rn1.BrickColor=RightNekoColor rn1.formFactor=3 rn1.Size=Vector3.new(1.1,1.3,1.1) rn1.CanCollide=false rn1:breakJoints'' local rn1w=Instance.new("Weld",rn1) rn1w.Part0=rn1 rn1w.Part1=rarm rn1w.C0=CFrame.new(0,.4,0) local rn2=Instance.new("Part",RightNeko) rn2.Name="RightHandle" rn2.Material="SmoothPlastic" rn2.TopSurface=10 rn2.BottomSurface=10 rn2.LeftSurface=10 rn2.RightSurface=10 rn2.FrontSurface=10 rn2.BackSurface=10 rn2.BrickColor=RightNekoColor rn2.formFactor=3 rn2.Size=Vector3.new(1.2,.4,1.2) rn2.CanCollide=false rn2:breakJoints'' local rn2w=Instance.new("Weld",rn2) rn2w.Part0=rn2 rn2w.Part1=rarm rn2w.C0=CFrame.new(0,-.1,0) local rnbell=Instance.new("Part",RightNeko) rnbell.Name="RightBell" rnbell.Material="SmoothPlastic" rnbell.TopSurface=10 rnbell.BottomSurface=10 rnbell.LeftSurface=10 rnbell.RightSurface=10 rnbell.FrontSurface=10 rnbell.BackSurface=10 rnbell.BrickColor=BrickColor.new("New Yeller") rnbell.Reflectance=.6 rnbell.formFactor=3 rnbell.Size=Vector3.new(.45,.45,.45) rnbell.CanCollide=false rnbell:breakJoints'' local rnbellw=Instance.new("Weld",rnbell) rnbellw.Part0=rnbell rnbellw.Part1=rarm rnbellw.C0=CFrame.new(0,.3,.65) local rnbellm=Instance.new("SpecialMesh",rnbell) rnbellm.MeshType="Sphere" local rnbf=Instance.new("PointLight",rnbell) rnbf.Shadows=true rnbf.Range=15 rnbf.Brightness=10 local rnding=Instance.new("Sound",rnbell) rnding.SoundId="http://www.roblox.com/asset?id=138134386" rnding.Volume=.2 local rn3=Instance.new("Part",RightNeko) rn3.Name="RightHead" rn3.Material="SmoothPlastic" rn3.TopSurface=10 rn3.BottomSurface=10 rn3.LeftSurface=10 rn3.RightSurface=10 rn3.FrontSurface=10 rn3.BackSurface=10 rn3.BrickColor=RightNekoColor rn3.formFactor=3 rn3.Size=Vector3.new(1.575,1.65,1.575) rn3.CanCollide=false rn3:breakJoints'' local rn3w=Instance.new("Weld",rn3) rn3w.Part0=rn3 rn3w.Part1=rarm rn3w.C0=CFrame.new(0,.95,0) local rn3m=Instance.new("SpecialMesh",rn3) rn3m.MeshType="Sphere" local rnface=Instance.new("Decal",rn3) rnface.Texture="http://www.roblox.com/asset?id="..rightnekoface rnface.Face="Bottom" local rnpunch=Instance.new("Sound",rn3) rnpunch.SoundId="http://www.roblox.com/asset?id=146163534" rnpunch.Volume=.3 rn3.Touched:connect(function(hit) if hit and swing=="Right" and crawling and armmovement and crawldig then local j=2 for jx=-j,j,4 do for jy=-j,j,4 do for jz=-j,j,4 do local spot=workspace.Terrain:WorldToCell(rn3.CFrame*CFrame.new(0,0,-2).p+Vector3.new(jx,jy,jz)) workspace.Terrain:SetCell(spot.x,spot.y,spot.z,0,0,0) end end end end coroutine.wrap(function() if hit and swing=="Right" and armmovement then coroutine.resume(coroutine.create(function() local j=2 for jx=-j,j,4 do for jy=-j,j,4 do for jz=-j,j,4 do local spot=workspace.Terrain:WorldToCell(rn3.CFrame*CFrame.new(0,0,-2).p+Vector3.new(jx,jy,jz)) workspace.Terrain:SetCell(spot.x,spot.y,spot.z,0,0,0) end end end end)) if hit.Parent then for i,x in pairs(hit.Parent:GetChildren()) do if x:IsA('Humanoid') then hyoom=x end end local hawm=hit.Parent and hyoom and hit.Parent.Parent if hawm and hit.Parent.ClassName=='Model' and hit.Parent~=chr and not hitdb then hitdb=true local nyaa=Instance.new("Sound",rn3) nyaa.SoundId="http://www.roblox.com/asset?id="..Meows[math.random(1,#Meows)] nyaa:Play'' rnpunch:Play'' game:service'Debris':AddItem(nyaa,2) if hyoom.Parent and hyoom.Parent:findFirstChild("Torso") then local asd=Instance.new("BodyVelocity",hyoom.Parent.Torso) asd.maxForce=Vector3.new(1/0,1/0,1/0) asd.velocity=((rn3.CFrame.p-hyoom.Parent.Torso.CFrame.p).unit*-20)+Vector3.new(0,10,0) game:service'Debris':AddItem(asd,.2) end hyoom.Sit=true if crawling then hyoom.Health=hyoom.Health-(math.random(15,20)*(hyoom.MaxHealth/100)) wait(.5) hitdb=false else hyoom.Health=hyoom.Health-(math.random(20,40)*(hyoom.MaxHealth/100)) wait(1) hitdb=false end end end end end)() end) local rn4=Instance.new("Part",RightNeko) rn4.Name="RightHandle" rn4.Material="SmoothPlastic" rn4.TopSurface=10 rn4.BottomSurface=10 rn4.LeftSurface=10 rn4.RightSurface=10 rn4.FrontSurface=10 rn4.BackSurface=10 rn4.BrickColor=RightNekoColor rn4.formFactor=3 rn4.Size=Vector3.new(1.575,.2,1.575) rn4.CanCollide=false rn4:breakJoints'' local rn4w=Instance.new("Weld",rn4) rn4w.Part0=rn4 rn4w.Part1=rn3 rn4w.C0=CFrame.new(0,-.75,.15)*CFrame.Angles(math.rad(90),0,0) local rn4m=Instance.new("SpecialMesh",rn4) rn4m.Scale=Vector3.new(1.2,1.2,1.2) rn4m.MeshId="http://www.roblox.com/asset?id=1374148" rn4m.TextureId="http://www.roblox.com/asset?id=1374132" local ln1=Instance.new("Part",LeftNeko) ln1.Name="LeftHandle" ln1.Material="SmoothPlastic" ln1.TopSurface=10 ln1.BottomSurface=10 ln1.LeftSurface=10 ln1.RightSurface=10 ln1.FrontSurface=10 ln1.BackSurface=10 ln1.BrickColor=LeftNekoColor ln1.formFactor=3 ln1.Size=Vector3.new(1.1,1.3,1.1) ln1.CanCollide=false ln1:breakJoints'' local ln1w=Instance.new("Weld",ln1) ln1w.Part0=ln1 ln1w.Part1=larm ln1w.C0=CFrame.new(0,.4,0) local ln2=Instance.new("Part",LeftNeko) ln2.Name="LeftHandle" ln2.Material="SmoothPlastic" ln2.TopSurface=10 ln2.BottomSurface=10 ln2.LeftSurface=10 ln2.RightSurface=10 ln2.FrontSurface=10 ln2.BackSurface=10 ln2.BrickColor=LeftNekoColor ln2.formFactor=3 ln2.Size=Vector3.new(1.2,.4,1.2) ln2.CanCollide=false ln2:breakJoints'' local ln2w=Instance.new("Weld",ln2) ln2w.Part0=ln2 ln2w.Part1=larm ln2w.C0=CFrame.new(0,-.1,0) local lnbell=Instance.new("Part",LeftNeko) lnbell.Name="LeftBell" lnbell.Material="SmoothPlastic" lnbell.TopSurface=10 lnbell.BottomSurface=10 lnbell.LeftSurface=10 lnbell.RightSurface=10 lnbell.FrontSurface=10 lnbell.BackSurface=10 lnbell.BrickColor=BrickColor.new("New Yeller") lnbell.Reflectance=.6 lnbell.formFactor=3 lnbell.Size=Vector3.new(.45,.45,.45) lnbell.CanCollide=false lnbell:breakJoints'' local lnbellw=Instance.new("Weld",lnbell) lnbellw.Part0=lnbell lnbellw.Part1=larm lnbellw.C0=CFrame.new(0,.3,.65) local lnbellm=Instance.new("SpecialMesh",lnbell) lnbellm.MeshType="Sphere" local lnbf=Instance.new("PointLight",lnbell) lnbf.Shadows=true lnbf.Range=15 lnbf.Brightness=10 local lnding=Instance.new("Sound",lnbell) lnding.SoundId="http://www.roblox.com/asset?id=138134386" lnding.Volume=.2 local ln3=Instance.new("Part",LeftNeko) ln3.Name="LeftHead" ln3.Material="SmoothPlastic" ln3.TopSurface=10 ln3.BottomSurface=10 ln3.LeftSurface=10 ln3.RightSurface=10 ln3.FrontSurface=10 ln3.BackSurface=10 ln3.BrickColor=LeftNekoColor ln3.formFactor=3 ln3.Size=Vector3.new(1.575,1.65,1.575) ln3.CanCollide=false ln3:breakJoints'' local ln3w=Instance.new("Weld",ln3) ln3w.Part0=ln3 ln3w.Part1=larm ln3w.C0=CFrame.new(0,.95,0) local ln3m=Instance.new("SpecialMesh",ln3) ln3m.MeshType="Sphere" local lnface=Instance.new("Decal",ln3) lnface.Texture="http://www.roblox.com/asset?id="..leftnekoface lnface.Face="Bottom" local lnpunch=Instance.new("Sound",ln3) lnpunch.SoundId="http://www.roblox.com/asset?id=146163534" lnpunch.Volume=.3 ln3.Touched:connect(function(hit) if hit and swing=="Left" and crawling and armmovement and crawldig then local j=2 for jx=-j,j,4 do for jy=-j,j,4 do for jz=-j,j,4 do local spot=workspace.Terrain:WorldToCell(ln3.CFrame*CFrame.new(0,0,-2).p+Vector3.new(jx,jy,jz)) workspace.Terrain:SetCell(spot.x,spot.y,spot.z,0,0,0) end end end end coroutine.wrap(function() if hit and swing=="Left" and armmovement then coroutine.resume(coroutine.create(function() local j=2 for jx=-j,j,4 do for jy=-j,j,4 do for jz=-j,j,4 do local spot=workspace.Terrain:WorldToCell(ln3.CFrame*CFrame.new(0,0,-2).p+Vector3.new(jx,jy,jz)) workspace.Terrain:SetCell(spot.x,spot.y,spot.z,0,0,0) end end end end)) if hit.Parent then for i,x in pairs(hit.Parent:GetChildren()) do if x:IsA('Humanoid') then hyoom=x end end local hawm=hit.Parent and hyoom and hit.Parent.Parent if hawm and hit.Parent.ClassName=='Model' and hit.Parent~=chr and not hitdb then hitdb=true local nyaa=Instance.new("Sound",rn3) nyaa.SoundId="http://www.roblox.com/asset?id="..Meows[math.random(1,#Meows)] nyaa:Play'' rnpunch:Play'' game:service'Debris':AddItem(nyaa,3) if hyoom.Parent:findFirstChild("Torso") then local asd=Instance.new("BodyVelocity",hyoom.Parent.Torso) asd.maxForce=Vector3.new(1/0,1/0,1/0) asd.velocity=((ln3.CFrame.p-hyoom.Parent.Torso.CFrame.p).unit*-20)+Vector3.new(0,10,0) game:service'Debris':AddItem(asd,.2) end hyoom.Sit=true if crawling then hyoom.Health=hyoom.Health-(math.random(15,20)*(hyoom.MaxHealth/100)) wait(.5) hitdb=false else hyoom.Health=hyoom.Health-(math.random(20,40)*(hyoom.MaxHealth/100)) wait(1) hitdb=false end end end end end)() end) local ln4=Instance.new("Part",LeftNeko) ln4.Name="LeftHandle" ln4.Material="SmoothPlastic" ln4.TopSurface=10 ln4.BottomSurface=10 ln4.LeftSurface=10 ln4.RightSurface=10 ln4.FrontSurface=10 ln4.BackSurface=10 ln4.BrickColor=LeftNekoColor ln4.formFactor=3 ln4.Size=Vector3.new(1.575,.2,1.575) ln4.CanCollide=false ln4:breakJoints'' local ln4w=Instance.new("Weld",ln4) ln4w.Part0=ln4 ln4w.Part1=ln3 ln4w.C0=CFrame.new(0,-.75,.15)*CFrame.Angles(math.rad(90),0,0) local ln4m=Instance.new("SpecialMesh",ln4) ln4m.Scale=Vector3.new(1.2,1.2,1.2) ln4m.MeshId="http://www.roblox.com/asset?id=1374148" ln4m.TextureId="http://www.roblox.com/asset?id=59596104" maus.KeyDown:connect(function(kei) if string.byte(kei)==48 and not otheranims and not sitting and not disabled then runnin=true end if string.byte(kei)==48 and crawling and not sitting and not disabled then crawldash=true end if kei=='w' then fldb.w=true end if kei=='a' then fldb.a=true end if kei=='s' then fldb.s=true end if kei=='d' then fldb.d=true end if string.byte(kei)==50 and not crawling then if crouching then otheranims=false crouching=false chr.Humanoid.WalkSpeed=18 elseif not crouching and not otheranims then otheranims=true crouching=true anim="Crouching" end end if kei=='j' and not otheranims and not armmovement and not disabled and not lit then otheranims=true anim="PreSuperJump" chr.Humanoid.WalkSpeed=0 jumpcharge=true end if kei=='c' and not armmovement and not sitting and not disabled then if (torso.Velocity*Vector3.new(1,0,1)).magnitude>=RunSpeed-2.5 and not otheranims and not crawling then otheranims=true anim="Sliding" local tempvelocity=Instance.new('BodyVelocity',rutprt) tempvelocity.Name="TemporaryVelocity" tempvelocity.maxForce=Vector3.new(math.huge,0,math.huge) tempvelocity.velocity=((rutprt.CFrame*CFrame.new(0,0,-1)).p-rutprt.CFrame.p).unit*RunSpeed coroutine.resume(coroutine.create(function() local totesvelocity=RunSpeed repeat if (tempvelocity.velocity*Vector3.new(1,1,1)).magnitude<=1 then otheranims=false tempvelocity:destroy'' elseif (tempvelocity.velocity*Vector3.new(1,1,1)).magnitude>1 then totesvelocity=totesvelocity-(2.5*(RunSpeed/100)) tempvelocity.velocity=((rutprt.CFrame*CFrame.new(0,0,-1)).p-rutprt.CFrame.p).unit*totesvelocity end wait'' until tempvelocity.Parent==nil end)) elseif (torso.Velocity*Vector3.new(1,0,1)).magnitude<=RunSpeed-2.5 then if not crawling then otheranims=true anim='PreCrawl' wait'.2' crawling=true chr.Humanoid.WalkSpeed=8 elseif crawling then crawling=false otheranims=false chr.Humanoid.WalkSpeed=WlkSpeed end end end end) maus.KeyUp:connect(function(kei) if string.byte(kei)==48 and not otheranims and not sitting and not disabled then runnin=false end if string.byte(kei)==48 and crawling then crawldash=false end if kei=='w' then fldb.w=false end if kei=='a' then fldb.a=false end if kei=='s' then fldb.s=false end if kei=='d' then fldb.d=false end if kei=="c" and rutprt:findFirstChild("TemporaryVelocity") and otheranims then otheranims=false rutprt["TemporaryVelocity"]:destroy'' end if kei=='j' and otheranims and jumpcharge then if running then chr.Humanoid.WalkSpeed=RunSpeed else chr.Humanoid.WalkSpeed=WlkSpeed end chr.Humanoid.Jump=true anim="SuperJump" local aasdd=Instance.new("BodyVelocity",rutprt) aasdd.maxForce=Vector3.new(0,1/0,0) aasdd.velocity=Vector3.new(0,jumpheight,0) game:service'Debris':AddItem(aasdd,.175) jumpcharge=false wait(.3) otheranims=false end end) maus.Button1Down:connect(function() if not sitting and not disabled and not armmovement and equipped and crawling then crawldig=true armmovement=true armanim="Digging" end if not otheranims and not sitting and not disabled and not armmovement and equipped then armmovement=true armanim=swing.."Swing1" wait(.25) armanim=swing.."Swing2" if swing=="Right" then rnding:Play() coroutine.resume(coroutine.create(function() wait(.65) rnding:Stop() end)) else lnding:Play() coroutine.resume(coroutine.create(function() wait(.65) lnding:Stop() end)) end wait(.3) armmovement=false if swing=="Right" then swing="Left" else swing="Right" end end end) maus.Button1Up:connect(function() if armmovement and crawldig then crawldig=false armmovement=false end end) chr.Humanoid.Changed:connect(function(chng) if crouching or crawling or disabled then if chng=='Jump' then chr.Humanoid.Jump=false end end end) game:service'RunService'.RenderStepped:connect(function() syne=syne+1 if not otheranims and not swimming then if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and not dnc and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5 anim="Idling" elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < RunSpeed-5 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5 anim="Walking" dnc=false elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > RunSpeed-10 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5 anim="Sprinting" dnc=false elseif torso.Velocity.y>5 and chr.Humanoid.Jump then anim='Jumping' dnc=false elseif (torso.Velocity.y < -5) and chr.Humanoid.Jump then anim='Falling' dnc=false end end if otheranims and crawling then if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and not chr.Humanoid.Jump then anim="IdleCrawl" elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 12 and not chr.Humanoid.Jump then anim="Crawling" idled=false elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 12 and not chr.Humanoid.Jump then anim="SpeedCrawling" idled=false end end if anim~=lastanim then runtime=0 syne=0 end lastanim=anim idlesineinc=35 if anim=="Idling" then if not armmovement and not equipped then rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(0,0,math.rad(10)),.1) larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(0,0,math.rad(-10)),.1) elseif not armmovement and equipped then rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.2,.4+math.cos(syne/idlesineinc)/25,.1)*CFrame.Angles(math.rad(105),math.rad(-15),math.rad(-20)),.1) larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.1,.20+math.cos(syne/idlesineinc)/25,-.65)*CFrame.Angles(math.rad(90),math.rad(10),math.rad(15)),.1) end lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(-2.5)),.1) rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(2.5)),.1) hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/idlesineinc)/50,0)*CFrame.Angles(math.cos(syne/idlesineinc)/40,0,0),.1) rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/idlesineinc)/20,0)*CFrame.Angles(math.cos(syne/idlesineinc)/35+math.rad(0),math.rad(0),math.rad(0)),.1) end if anim=="Walking" then if not armmovement and not equipped then rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.cos(syne/6)/1.25,math.rad(5),-(math.cos(syne/6.75)/15)+math.rad(8)),.1) larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(-(math.cos(syne/6)/1.25),0,-(math.cos(syne/6.75)/15)-math.rad(8)),.1) elseif not armmovement and equipped then rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.4,.425,-.2)*CFrame.Angles(math.rad(40),math.rad(10),math.rad(5)),.1) larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.4,.425,-.2)*CFrame.Angles(math.rad(40),math.rad(-10),math.rad(-5)),.1) end lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.8-math.sin(syne/6)/8,-(math.cos(syne/6)/1.125))*CFrame.Angles(math.cos(syne/6)/1.125,0,math.rad(-2.5)),.1) rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.8+math.sin(syne/6)/8,math.cos(syne/6)/1.125)*CFrame.Angles(-(math.cos(syne/6)/1.125),0,math.rad(2.5)),.1) hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/3)/20,0,0),.1) rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.2+math.cos(syne/3.375)/20,math.cos(syne/3)/5)*CFrame.Angles(math.cos(syne/3)/20+math.rad(-3.5),math.cos(syne/6)/8,-math.cos(syne/6)/30+math.sin(rutprt.RotVelocity.y/2)/7.5),.1) end if anim=="Sprinting" then if not armmovement and not equipped then rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,math.cos(syne/4)/15)*CFrame.Angles(-math.cos(syne/2.5)/5+math.rad(-55),0,math.rad(12.5)),.1) larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,-math.cos(syne/4)/15)*CFrame.Angles(-math.cos(syne/2.5)/5+math.rad(-55),0,math.rad(-12.5)),.1) elseif not armmovement and equipped then rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.4,.5,-.1)*CFrame.Angles(math.rad(-5),math.rad(10),math.rad(35)),.1) larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.4,.5,-.1)*CFrame.Angles(math.rad(-5),math.rad(-10),math.rad(-35)),.1) end lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55+math.cos(syne/4)/20,-1.5-math.sin(syne/4)/2.5,-(math.cos(syne/4)*2.5)-.05)*CFrame.Angles(math.cos(syne/4)*2+math.rad(-10),0,math.rad(-2.5)),.1) rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55-math.cos(syne/4)/20,-1.5+math.sin(syne/4)/2.5,math.cos(syne/4)*2.5-.05)*CFrame.Angles(-(math.cos(syne/4)*2)+math.rad(-10),0,math.rad(2.5)),.1) hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.55+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(20),-math.cos(syne/2.5)/8,0),.1) rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.3+math.cos(syne/2.5)/15,math.cos(syne/2.5))*CFrame.Angles(math.cos(syne/2.5)/8+math.rad(-25),math.cos(syne/2.5)/8,math.cos(syne/4)/15+math.sin(rutprt.RotVelocity.y/2)/4),.1) end if anim=="Jumping" then if not armmovement then rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.1) larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1) end lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.4,0)*CFrame.Angles(math.rad(-17.5),0,math.rad(-2.5)),.1) rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.1,-.1)*CFrame.Angles(math.rad(-17.5),0,math.rad(2.5)),.1) hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(math.cos(syne/20)/40,0,0),.1) rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),.1) end if anim=="Falling" then if not armmovement then rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(70)),.035) larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-70)),.035) end lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.2,0)*CFrame.Angles(math.rad(-14),0,math.rad(-2.5)),.035) rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(2.5)),.035) hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,-.3)*CFrame.Angles(math.rad(-40),0,0),.035) rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)),.035) end if anim=="Sliding" then rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(-20),0,math.rad(60)),.1) larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1) lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1,-.1)*CFrame.Angles(math.rad(-17.5),0,math.rad(-2.5)),.1) rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.95,0)*CFrame.Angles(math.rad(0),0,math.rad(2.5)),.1) hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-20),math.rad(-60),0),.1) rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-1.2,0)*CFrame.Angles(math.rad(45),math.rad(85),math.rad(0)),.1) end if armmovement then if armanim=="RightSwing1" then rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.4,.25+math.cos(syne/idlesineinc)/25,1.2)*CFrame.Angles(math.rad(95),math.rad(-15),math.rad(15)),.2) larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.2,.35+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(math.rad(45),math.rad(10),math.rad(10)),.2) end if armanim=="RightSwing2" then rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(.8,.3+math.cos(syne/idlesineinc)/25,-.8)*CFrame.Angles(math.rad(95),math.rad(15),math.rad(-15)),.5) larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.2,.45+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(math.rad(45),math.rad(10),math.rad(-10)),.5) end if armanim=="LeftSwing1" then larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.4,.25+math.cos(syne/idlesineinc)/25,1.2)*CFrame.Angles(math.rad(95),math.rad(10),math.rad(15)),.2) rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.2,.35+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(math.rad(45),math.rad(10),math.rad(10)),.2) end if armanim=="LeftSwing2" then larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-.8,.3+math.cos(syne/idlesineinc)/25,-.8)*CFrame.Angles(math.rad(95),math.rad(-15),math.rad(15)),.5) rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.2,.45+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(math.rad(45),math.rad(10),math.rad(10)),.5) end if armanim=="Digging" then rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.25, 1.1+math.cos(syne), -.1)* CFrame.Angles(math.rad(179), 0, math.rad(-25)), 0.5) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.25, 1.1-(math.cos(syne)), -.1) * CFrame.Angles(math.rad(179), 0, math.rad(25)), 0.5) end end if jumpcharge and jumpheight<150 then jumpheight=jumpheight+3 elseif not jumpcharge then jumpheight=20 end if anim=="PreSuperJump" then rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.06) larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.06) lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1,.3)*CFrame.Angles(math.rad(-40),0,math.rad(-2.5)),.06) rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-.6,-.65)*CFrame.Angles(math.rad(10),0,math.rad(2.5)),.06) hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,.3)*CFrame.Angles(math.rad(40),0,0),.06) rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-1.6,.2)*CFrame.Angles(math.rad(-14),math.rad(0),math.rad(0)),.06) end if anim=="SuperJump" then rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.4,.525,0)*CFrame.Angles(math.rad(-10),0,math.rad(20)),.1) larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.4,.525,0)*CFrame.Angles(math.rad(-10),0,math.rad(-20)),.1) lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.8,0)*CFrame.Angles(math.rad(-2.5),0,math.rad(-2.5)),.2) rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.8,0)*CFrame.Angles(math.rad(-2.5),0,math.rad(2.5)),.2) hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,.3)*CFrame.Angles(math.rad(30),0,0),.1) rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(5),math.rad(0),math.rad(0)),.1) chr.Humanoid.Jump=true end if anim=="Crouching" then if not armmovement then rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.4, .35, -.225) * CFrame.Angles(math.rad(70), 0, math.rad(-15)), 0.075) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4, .35, -.225) * CFrame.Angles(math.rad(70), 0, math.rad(15)), 0.075) end lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -.55, -1) * CFrame.Angles(math.rad(40), 0, math.rad(0)), 0.075) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -.65, -1.275) * CFrame.Angles(math.rad(60), 0, math.rad(-0)), 0.075) hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(5),0,0),.05) rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-2,0)*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),0.075) end if anim=="PreCrawl" then if not armmovement then rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.45, .75, -.15)* CFrame.Angles(math.rad(140), 0, math.rad(-25)), 0.15) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.45, .75, -.15) * CFrame.Angles(math.rad(140), 0, math.rad(25)), 0.15) end lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1.6, -.1) * CFrame.Angles(math.rad(-5), 0, math.rad(0)), 0.15) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1.6, -.1) * CFrame.Angles(math.rad(-5), 0, math.rad(-0)), 0.15) hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.35,.25)*CFrame.Angles(math.rad(72.5),0,0),.15) rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-2.2,0)*CFrame.Angles(math.rad(-80),math.rad(0),math.rad(0)),0.15) end if crawling then if anim=='Crawling' then chr.Humanoid.WalkSpeed=CrawlSpeed-math.cos(syne/5)*5 if not armmovement then rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.25, 1-math.cos(syne/10)/2, -.35+math.cos(syne/10)/8) * CFrame.Angles(math.rad(155)+math.sin(syne/10)/9, 0, math.rad(-25)+math.cos(syne/10)/13),.175) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.25, 1+math.cos(syne/10)/2, -.35-math.cos(syne/10)/8) * CFrame.Angles(math.rad(155)-math.sin(syne/10)/9, 0, math.rad(25)-math.cos(syne/10)/13), .175) end lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.525, -1.5-math.cos(syne/10)/3, -.3+math.cos(syne/10)/10) * CFrame.Angles(math.rad(-5)-math.cos(syne/10)/9, 0, math.rad(0)-math.cos(syne/10)/15), .175) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.525, -1.5+math.cos(syne/10)/3, -.3-math.cos(syne/10)/10) * CFrame.Angles(math.rad(-5)+math.cos(syne/10)/9, 0, math.rad(-0)-math.cos(syne/10)/15), 0.175) hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.35,math.cos(syne/30)/20+.25)*CFrame.Angles(math.cos(syne/30)/25+math.rad(75),math.rad(4),0),.175) rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-2.2,0)*CFrame.Angles(math.rad(-82)+math.cos(syne/5)/12,math.cos(syne/10)/15,math.cos(syne/5)/15),0.15) end if anim=='SpeedCrawling' then if not armmovement then rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.25, 1-math.cos(syne/5)/2, -.35+math.cos(syne/5)/12) * CFrame.Angles(math.rad(155)-math.cos(syne/5)/14, 0, math.rad(-25)+math.cos(syne/5)/13),.175) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.25, 1+math.cos(syne/5)/2, -.35-math.cos(syne/5)/12) * CFrame.Angles(math.rad(155)+math.cos(syne/5)/14, 0, math.rad(25)-math.cos(syne/5)/13), .175) end lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.525, -1.5-math.cos(syne/5)/3, -.3+math.cos(syne/5)/10) * CFrame.Angles(math.rad(-5)-math.cos(syne/5)/9, 0, math.rad(0)-math.cos(syne/5)/15), .175) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.525, -1.5+math.cos(syne/5)/3, -.3-math.cos(syne/5)/10) * CFrame.Angles(math.rad(-5)+math.cos(syne/5)/9, 0, math.rad(-0)-math.cos(syne/5)/15), 0.175) hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.35,math.cos(syne/15)/20+.25)*CFrame.Angles(math.cos(syne/15)/25+math.rad(75),math.rad(4),0),.175) rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-2.2,0)*CFrame.Angles(math.rad(-82)+math.cos(syne/2.5)/12,math.cos(syne/5)/15,math.cos(syne/2.5)/15),0.15) end end if crouching then chr.Humanoid.WalkSpeed=0 end chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0) if runnin and not disabled and not otheranims and not sitting then chr.Humanoid.WalkSpeed=RunSpeed elseif not runnin and not disabled and not otheranims and not sitting then chr.Humanoid.WalkSpeed=WlkSpeed elseif not runnin and not disabled and otheranims and crawling and not crawldash and not sitting then chr.Humanoid.WalkSpeed=CrawlSpeed elseif not runnin and not disabled and otheranims and crawling and crawldash and not sitting then chr.Humanoid.WalkSpeed=CrawlDashSpeed end end) local hp=Instance.new("HopperBin",plr.Backpack) hp.Name="Neko Neko Knuckles" hp.Selected:connect(function() equipped=true end) hp.Deselected:connect(function() equipped=false end)
init_restriction = function() if restrictions == nil then return end for keyObj, valObj in pairs( restrictions ) do local object_n = keyObj local obj = Get_TECH_OBJECT( object_n ) if obj ~= nil then for keyM, valM in pairs( valObj ) do local mode_n = keyM - 1 local mode = obj:GetMode( mode_n ) if mode ~= nil then for keyRM, valRM in pairs ( valM ) do for keyR, valR in pairs(valRM) do if valR == 1 then if keyRM == 1 then mode:AddRestriction("LocalRestriction", object_n, keyR) elseif keyRM == 3 then mode:AddRestriction("NextModeRestriction", object_n, keyR) end else for keyRT, valRT in pairs(valR) do mode:AddRestriction("TotalRestriction", keyR, keyRT) end end end end mode:SortRestriction() end end end end return 0 end
-- when somthing wrong in lua scripts and a dead loop happens, we could remove this file -- by sending the command 'file.remote("init.lua")' to NodeMCU while it is booting -- in the first second! -- by leon(leonstill@163.com) 2018.12.02 ------------------------------------------------------------------------------- -- GPIO init -- 当使用node.dsleep()时,需要将管脚pin0和RST相连接,此时不要设置pin0(,或设置pin0为INPUT模式),否则会无限重启! --gpio.mode(0, gpio.INPUT) --gpio.mode(0, gpio.OUTPUT) --gpio.write(0, gpio.HIGH) ------------------------------------------------------------------------------- -- init adc for vcc if adc.force_init_mode(adc.INIT_ADC) then node.restart() return -- don't bother continuing, the restart is scheduled end print("System voltage (mV):", adc.read(0)) ------------------------------------------------------------------------------- -- init timezone and sntp sync tz = require('tz') tz.setzone('Chongqing') -- https://nodemcu.readthedocs.io/en/latest/en/modules/sntp/#sntp.sync() -- 不需要明确调用rtctime.set(),因为当使能rtctime模块后,会自动调用。 sntp.sync(nil, function(now) local tm = rtctime.epoch2cal(now + tz.getoffset(now)) print(string.format("SNTP server sync time: %04d/%02d/%02d %02d:%02d:%02d", tm["year"], tm["mon"], tm["day"], tm["hour"], tm["min"], tm["sec"])) end, function() print("SNTP server sync failed!") end ) ------------------------------------------------------------------------------- -- init flash if node.flashindex() == nil then node.flashreload('flash.img') end -- LFS.blink ~= nil and LFS.blink or function(t, i) print("blink " .. t .. " with ".. i) end tmr.alarm(0, 1000, tmr.ALARM_SINGLE, function() local fi=node.flashindex local result = pcall(fi and fi'_init') print("LFS._init " .. (result and "ok" or "failed") ) --local led_blink = node.flashindex('blink') or function() end if LFS then if result then local wifi = require("wifi_init"); wifi.start("task.lua") else LFS.blink(3, 150) end end end)
--[[ Example Service This is an example to demonstrate how to use the BaseService class to implement a game service. **NOTE:** After declaring you service, you have to include your package inside the main.lua file! ]]-- require 'common' require 'services.baseservice' --Declare class ExampleService local ExampleService = Class('ExampleService', BaseService) --[[--------------------------------------------------------------- ExampleService:initialize() ExampleService class constructor ---------------------------------------------------------------]] function ExampleService:initialize() BaseService.initialize(self) self.mapname = "" PrintInfo('ExampleService:initialize()') end --[[--------------------------------------------------------------- ExampleService:__gc() ExampleService class gc method Essentially called when the garbage collector collects the service. ---------------------------------------------------------------]] function ExampleService:__gc() PrintInfo('*****************ExampleService:__gc()') end --[[--------------------------------------------------------------- ExampleService:OnInit() Called on initialization of the script engine by the game! ---------------------------------------------------------------]] function ExampleService:OnInit() assert(self, 'ExampleService:OnInit() : self is null!') PrintInfo("\n<!> ExampleSvc: Init..") end --[[--------------------------------------------------------------- ExampleService:OnDeinit() Called on de-initialization of the script engine by the game! ---------------------------------------------------------------]] function ExampleService:OnDeinit() assert(self, 'ExampleService:OnDeinit() : self is null!') PrintInfo("\n<!> ExampleSvc: Deinit..") end --[[--------------------------------------------------------------- ExampleService:OnGroundMapPrepare(mapid) When a new ground map is loaded this is called! ---------------------------------------------------------------]] function ExampleService:OnGroundMapPrepare(mapid) assert(self, 'ExampleService:OnGroundMapPrepare() : self is null!') PrintInfo("\n<!> ExampleSvc: Preparing map " .. tostring(mapid)) self.mapname = mapid end --[[--------------------------------------------------------------- ExampleService:OnGroundMapEnter() When the player enters a ground map this is called ---------------------------------------------------------------]] function ExampleService:OnGroundMapEnter(mapid, entryinf) assert(self, 'ExampleService:OnGroundMapEnter() : self is null!') PrintInfo("\n<!> ExampleSvc: Entered map " .. tostring(mapid)) self.mapname = mapid end --[[--------------------------------------------------------------- ExampleService:OnGroundMapExit(mapid) When the player leaves a ground map this is called ---------------------------------------------------------------]] function ExampleService:OnGroundMapExit(mapid) assert(self, 'ExampleService:OnGroundMapExit() : self is null!') PrintInfo("\n<!> ExampleSvc: Exited map " .. tostring(mapid)) end ---Summary -- Subscribe to all channels this service wants callbacks from function ExampleService:Subscribe(med) med:Subscribe("ExampleService", EngineServiceEvents.Init, function() self.OnInit(self) end ) med:Subscribe("ExampleService", EngineServiceEvents.Deinit, function() self.OnDeinit(self) end ) -- med:Subscribe("ExampleService", EngineServiceEvents.GraphicsLoad, function() self.OnGraphicsLoad(self) end ) -- med:Subscribe("ExampleService", EngineServiceEvents.GraphicsUnload, function() self.OnGraphicsUnload(self) end ) -- med:Subscribe("ExampleService", EngineServiceEvents.Restart, function() self.OnRestart(self) end ) -- med:Subscribe("ExampleService", EngineServiceEvents.Update, function(curtime) self.OnUpdate(self,curtime) end ) -- med:Subscribe("ExampleService", EngineServiceEvents.GroundEntityInteract,function(activator, target) self.OnGroundEntityInteract(self, activator, target) end ) -- med:Subscribe("ExampleService", EngineServiceEvents.DungeonModeBegin, function() self.OnDungeonModeBegin(self) end ) -- med:Subscribe("ExampleService", EngineServiceEvents.DungeonModeEnd, function() self.OnDungeonModeEnd(self) end ) -- med:Subscribe("ExampleService", EngineServiceEvents.DungeonFloorPrepare, function(dungeonloc) self.OnDungeonFloorPrepare(self, dungeonloc) end ) -- med:Subscribe("ExampleService", EngineServiceEvents.DungeonFloorBegin, function(dungeonloc, entryinf) self.OnDungeonFloorBegin(self, dungeonloc, entrypos) end ) -- med:Subscribe("ExampleService", EngineServiceEvents.DungeonFloorEnd, function(dungeonloc, result) self.OnDungeonFloorEnd(self, dungeonloc, result) end ) -- med:Subscribe("ExampleService", EngineServiceEvents.GroundModeBegin, function() self.OnGroundModeBegin(self) end ) -- med:Subscribe("ExampleService", EngineServiceEvents.GroundModeEnd, function() self.OnGroundModeEnd(self) end ) med:Subscribe("ExampleService", EngineServiceEvents.GroundMapPrepare, function(mapid) self.OnGroundMapPrepare(self, mapid) end ) med:Subscribe("ExampleService", EngineServiceEvents.GroundMapEnter, function(mapid, entryinf) self.OnGroundMapEnter(self, mapid, entryinf) end ) med:Subscribe("ExampleService", EngineServiceEvents.GroundMapExit, function(mapid) self.OnGroundMapExit(self, mapid) end ) end ---Summary -- un-subscribe to all channels this service subscribed to function ExampleService:UnSubscribe(med) end ---Summary -- The update method is run as a coroutine for each services. function ExampleService:Update(gtime) -- while(true) -- coroutine.yield() -- end end --Add our service SCRIPT:AddService("ExampleService", ExampleService:new()) return ExampleService
ArrayName={} ArrayName[1] = 12 ArrayName[2] = 1 print(ArrayName[1])
local Boost = require 'Game.Parts.Boost' local Core = {} function Core:Attach(part) end function Core:Start(part) local boostParts = {} part:Traverse(function(p) local isBoost, type = Boost.Check(p) if isBoost then boostParts[type] = p end end) end return Core
--------------------------------------------------------------------- -- LuaSoap implementation for Lua. -- See Copyright Notice in license.html -- $Id: soap.lua,v 1.5 2004/11/03 13:29:51 tomas Exp $ --------------------------------------------------------------------- require"lxp.lom" local assert, ipairs, pairs, tostring, type = assert, ipairs, pairs, tostring, type local getn, tconcat, tinsert, tremove = table.getn, table.concat, table.insert, table.remove local format, strfind = string.format, string.find local max = math.max local parse = lxp.lom.parse module (arg and arg[1]) _COPYRIGHT = "Copyright (C) 2004 Kepler Project" _DESCRIPTION = "LuaSOAP provides a very simple API that convert Lua tables to and from XML documents" _NAME = "LuaSOAP" _VERSION = "1.0b" local serialize --------------------------------------------------------------------- -- Serialize the table of attributes. -- @param a Table with the attributes of an element. -- @return String representation of the object. --------------------------------------------------------------------- local function attrs (a) if not a then return "" -- no attributes else local c = {} if a[1] then for i, v in ipairs (a) do tinsert (c, format ("%s=%q", v, a[v])) end else for i, v in pairs (a) do tinsert (c, format ("%s=%q", i, v)) end end if getn (c) > 0 then return " "..tconcat (c, " ") else return "" end end end --------------------------------------------------------------------- -- Serialize the children of an object. -- @param obj Table with the object to be serialized. -- @return String representation of the children. --------------------------------------------------------------------- local function contents (obj) if not obj[1] then contents = "" else local c = {} for i, v in ipairs (obj) do c[i] = serialize (v) end return tconcat (c) end end --------------------------------------------------------------------- -- Serialize an object. -- @param obj Table with the object to be serialized. -- @return String with representation of the object. --------------------------------------------------------------------- serialize = function (obj) local tt = type(obj) if tt == "string" or tt == "number" then return obj elseif tt == "table" then local t = obj.tag assert (t, "Invalid table format (no `tag' field)") return format ("<%s%s>%s</%s>", t, attrs(obj.attr), contents(obj), t) else return "" end end --------------------------------------------------------------------- -- @param attr Table of object's attributes. -- @return String with the value of the namespace ("xmlns") field. --------------------------------------------------------------------- local function find_xmlns (attr) for a, v in pairs (attr) do if strfind (a, "xmlns", 1, 1) then return v end end end --------------------------------------------------------------------- -- Add header element (if it exists) to object. -- Cleans old header element anyway. --------------------------------------------------------------------- local header_template = { tag = "SOAP-ENV:Header", } local function insert_header (obj, header) -- removes old header if obj[2] then tremove (obj, 1) end if header then header_template[1] = header tinsert (obj, 1, header_template) end end local envelope_template = { tag = "SOAP-ENV:Envelope", attr = { "xmlns:SOAP-ENV", "SOAP-ENV:encodingStyle", ["xmlns:SOAP-ENV"] = "http://schemas.xmlsoap.org/soap/envelope/", ["SOAP-ENV:encodingStyle"] = "http://schemas.xmlsoap.org/soap/encoding/", }, { tag = "SOAP-ENV:Body", [1] = { tag = nil, -- must be filled attr = {}, -- must be filled }, } } --------------------------------------------------------------------- -- Converts a LuaExpat table into a SOAP message. -- @param namespace String with the namespace of the elements. -- @param method String with the method's name. -- @param entries Table of SOAP elements (LuaExpat's format). -- @param header Table describing the header of the SOAP-ENV (optional). -- @return String with SOAP-ENV element. --------------------------------------------------------------------- function encode (namespace, method, entries, header) -- Cleans old header and insert a new one (if it exists). insert_header (envelope_template, header) -- Sets new body contents (and erase old content). local body = (envelope_template[2] and envelope_template[2][1]) or envelope_template[1][1] for i = 1, max (getn(body), getn(entries)) do body[i] = entries[i] end -- Sets method (actually, the table's tag) and namespace. body.tag = (namespace and "m:" or "")..method body.attr["xmlns:m"] = namespace return serialize (envelope_template) end --------------------------------------------------------------------- -- Converts a SOAP message into Lua objects. -- @param doc String with SOAP document. -- @return String with namespace, String with method's name and -- Table with SOAP elements (LuaExpat's format). --------------------------------------------------------------------- function decode (doc) local obj = assert (parse (doc)) assert (obj.tag == "SOAP-ENV:Envelope", "Not a SOAP Envelope: ".. tostring(obj.tag)) local namespace = find_xmlns (obj.attr) if obj[1].tag == "SOAP-ENV:Body" then obj = obj[1] elseif obj[2].tag == "SOAP-ENV:Body" then obj = obj[2] else error ("Couldn't find SOAP Body!") end local _, _, method = strfind (obj[1].tag, "^.*:(.*)$") local entries = {} for i, el in ipairs (obj[1]) do entries[i] = el end return namespace, method, entries end
ITEM.name = "Сундук" ITEM.desc = "Простейший деревянный сундук." ITEM.model = "models/container2.mdl" ITEM.width = 4 ITEM.height = 2 ITEM.invW = 6 ITEM.invH = 4 ITEM.locksound = "hgn/crussaria/devices/door_regular_stopclose.wav" ITEM.opensound = "hgn/crussaria/devices/door_regular_opening.wav"
require("config") require("framework.init") require("framework.shortcodes") require("framework.cc.init") local UIDemoApp = class("UIDemoApp", cc.mvc.AppBase) function UIDemoApp:ctor() UIDemoApp.super.ctor(self) self.scenes_ = { "TestUIPageViewScene", "TestUIListViewScene", "TestUIScrollViewScene", "TestUIImageScene", "TestUIButtonScene", "TestUISliderScene", } end function UIDemoApp:run() cc.FileUtils:getInstance():addSearchPath("res/") self:enterNextScene() end function UIDemoApp:enterScene(sceneName, ...) self.currentSceneName_ = sceneName UIDemoApp.super.enterScene(self, sceneName, ...) end function UIDemoApp:enterNextScene() local index = 1 while index <= #self.scenes_ do if self.scenes_[index] == self.currentSceneName_ then break end index = index + 1 end index = index + 1 if index > #self.scenes_ then index = 1 end self:enterScene(self.scenes_[index]) end function UIDemoApp:createTitle(scene, title) cc.ui.UILabel.new({text = "-- " .. title .. " --", size = 24, color = display.COLOR_BLACK}) :align(display.CENTER, display.cx, display.top - 20) :addTo(scene) end function UIDemoApp:createGrid(scene) display.newColorLayer(cc.c4b(255, 255, 255, 255)):addTo(scene) for y = display.bottom, display.top, 40 do display.newLine( {{display.left, y}, {display.right, y}}, {borderColor = cc.c4f(0.9, 0.9, 0.9, 1.0)}) :addTo(scene) end for x = display.left, display.right, 40 do display.newLine( {{x, display.top}, {x, display.bottom}}, {borderColor = cc.c4f(0.9, 0.9, 0.9, 1.0)}) :addTo(scene) end display.newLine( {{display.left, display.cy + 1}, {display.right, display.cy + 1}}, {borderColor = cc.c4f(1.0, 0.75, 0.75, 1.0)}) :addTo(scene) display.newLine( {{display.cx, display.top}, {display.cx, display.bottom}}, {borderColor = cc.c4f(1.0, 0.75, 0.75, 1.0)}) :addTo(scene) end function UIDemoApp:createNextButton(scene) cc.ui.UIPushButton.new("NextButton.png") :onButtonPressed(function(event) event.target:setScale(1.2) end) :onButtonRelease(function(event) event.target:setScale(1.0) end) :onButtonClicked(function(event) self:enterNextScene() end) :align(display.RIGHT_BOTTOM, display.right - 20, display.bottom + 20) :addTo(scene) end function HDrawRect(rect, parent, color) local left, bottom, width, height = rect.x, rect.y, rect.width, rect.height local points = { {left, bottom}, {left + width, bottom}, {left + width, bottom + height}, {left, bottom + height}, {left, bottom}, } local box = display.newPolygon(points, {borderColor = color}) parent:addChild(box) end return UIDemoApp
require 'nn' require 'cunn' require 'cudnn' local utils = paths.dofile'utils.lua' local model = nn.Sequential() -- building block local function Block(nInputPlane, nOutputPlane) model:add(cudnn.SpatialConvolution(nInputPlane, nOutputPlane, 3,3, 1,1, 1,1):noBias()) model:add(nn.SpatialBatchNormalization(nOutputPlane,1e-3)) model:add(nn.ReLU(true)) return model end local function MP() model:add(nn.SpatialMaxPooling(2,2,2,2)) return model end local function Group(ni, no, N, f) for i=1,N do Block(i == 1 and ni or no, no) end if f then f() end end Group(3,64,2,MP) Group(64,128,2,MP) Group(128,256,4,MP) Group(256,512,4,MP) Group(512,512,4) model:add(nn.SpatialAveragePooling(2,2,2,2)) model:add(nn.View(-1):setNumInputDims(3)) model:add(nn.Linear(512,opt and opt.num_classes or 10)) utils.FCinit(model) --utils.testModel(model) --utils.MSRinit(model) return model
package.path = "../?.lua;" .. package.path local control_port = arg[1] or CONTROL_PORT or 'CNCB1' local data_port = arg[2] or DATA_PORT or 'CNCB0' local rs232 = require "rs232" local ztimer = require "lzmq.timer" local utils = require "utils" local TEST_CASE = require "lunit".TEST_CASE local out = io.stderr local started = ztimer.monotonic():start() local monotonic = ztimer.monotonic() local pcall, error, type, table, ipairs, print = pcall, error, type, table, ipairs, print local RUN = utils.RUN local IT, CMD, PASS = utils.IT, utils.CMD, utils.PASS local nreturn, is_equal = utils.nreturn, utils.is_equal local fmt = string.format local function is_timed_out(elapsed, timeout) if elapsed >= timeout then return true end if (timeout - elapsed) < 100 then return true end return false, string.format("timeout expected (%d - %d) but got %d", timeout - 100, timeout, elapsed) end local function open_port(name) local p, e = rs232.port(name) local ok, e = p:open() if not ok then print(string.format("can't open serial port '%s', error: '%s'", name, tostring(e))) os.exit(-1) end print(string.format("OK, port open with values '%s'", e)) return p end local control, data local sep = '\n' local function printf(...) io.stderr:write(string.format(...)) end local function remote(...) local s = string.format(...) s = string.gsub(s, "\n", ";") s = string.gsub(s, "%s+", " ") s = string.gsub(s, "^%s*", "") s = s .. sep local n, err = control:write(s) assert(n, tostring(err)) assert(#s == n, "Write error. Written: " .. tostring(n)) local d, e = control:read(1, 30000) assert(d, tostring(e)) assert(not e, tostring(e)) assert(#d == 1) assert(d == sep, "Read error. Got " .. string.byte(d)) end local function reconnect() remote[[ data:in_queue_clear() while true do d = data:read(1024, 100) if not d or #d == 0 then break end end ]] data:in_queue_clear() while true do d = data:read(1024, 100) if not d or #d == 0 then break end end end local ENABLE = true local _ENV = TEST_CASE'echo' if ENABLE or true then local it = IT(_ENV or _M) function setup() reconnect() end local function test_echo(len) local s = ('a'):rep(len) remote([[ s = data:read(%d, 5000, 1) if s then data:write(s) end ]], len) local ret = assert(data:write(s)) if type(ret) == 'number' then assert_equal(len, ret) else assert_equal(data, ret) end local s1 = assert_string(data:read(len, 5000, true)) assert_equal(len, #s1) end local function test(len) it(fmt("%d bytes", len), function() test_echo(len) end) end test(128) test(256) test(1024) end local _ENV = TEST_CASE'read timeout forced' if ENABLE then local it = IT(_ENV or _M) function setup() reconnect() end local function test_read_timeout_forced(len, tm, sl) remote([[ str = string.rep('a', %d) data:write(str) print('server: sleeping for %dms') ztimer.sleep(%d) print('server: woke up') data:write(str) ]], len, sl, sl) monotonic:start() local d, e = assert_string(data:read(2*len, tm, true)) local elapsed = monotonic:stop() assert(#d > 0) if #d ~= 2 * len then assert_true(is_timed_out(elapsed, tm)) end end local function test(len, tm, sl) it(fmt("%d bytes, %dms total timeout, %dms pause", len, tm, sl), function() test_read_timeout_forced(len, tm, sl) end) end test(1024, 2000, 3000) test(1024, 3000, 2000) test(2048, 2000, 3000) test(2048, 3000, 2000) end local _ENV = TEST_CASE'read some' if ENABLE then local it = IT(_ENV or _M) function setup() reconnect() end local function test_read_some(len, tm, sl) remote([[ str = string.rep('a', %d) print('server: sleeping for %dms') ztimer.sleep(%d) print('server: woke up') data:write(str) ]], len, sl, sl) monotonic:start() local d = assert_string(data:read(len, tm)) local elapsed = monotonic:stop() if #d < len then assert_true(is_timed_out(elapsed, tm)) end end local function test(len, tm, sl) it(fmt("%d bytes, %dms total timeout, %dms pause", len, tm, sl), function() test_read_some(len, tm, sl) end) end test(1024, 2000, 3000) test(1024, 3000, 2000) end local _ENV = TEST_CASE'read all' if ENABLE then local it = IT(_ENV or _M) function setup() reconnect() end local function test_read_all(len, sl) remote([[ str = string.rep('a', %d) print('server: sleeping for %dms') ztimer.sleep(%d) data:write(str) print('server: sleeping for %dms') ztimer.sleep(%d) print('server: woke up') data:write(str) ]], len, sl, sl, sl, sl) monotonic:start() local d = assert_string(data:read(len * 2)) local elapsed = monotonic:stop() assert_true(#d > 0, 'no data') assert_true(#d <= len, fmt("wait too long %d, readed %d", elapsed, #d)) end local function test(len, sl) it(fmt("%d bytes, %dms pause", len, sl), function() test_read_all(len, sl) end) end test(64, 2000) test(128, 2000) test(512, 2000) test(1024, 2000) end local _ENV = TEST_CASE'input queue' if ENABLE then local it = IT(_ENV or _M) function setup() reconnect() end local function test_queue_in(len) local l = assert_number(data:in_queue()) assert_equal(0, l, 'should be emty') remote([[ s = ('a'):rep(%d) data:write(s) ]], len) ztimer.sleep(2000) l = assert_number(data:in_queue()) assert_equal(len, l) local d = assert_string(data:read(1, 0)) assert_equal(1, #d) l = assert_number(data:in_queue()) assert_equal(len-1, l) assert(data:in_queue_clear()) l = assert_number(data:in_queue()) assert_equal(0, l, 'should be emty') end local function test(len) it(fmt("%d bytes", len), function() test_queue_in(len) end) end test(16) test(128) test(256) test(1024) end control = open_port(control_port) data = open_port(data_port) RUN(function() remote("ztimer.sleep(500);os.exit()") printf("--------------------------------------------------\n") printf("-- testing done in %.2fs\n", started:stop()/1000) printf("--------------------------------------------------\n") end)