content
stringlengths
5
1.05M
local groups = {} for _, hotkey in ipairs(awful.key.hotkeys) do if not groups[hotkey.group] then groups[hotkey.group] = {} end table.insert(groups[hotkey.group], hotkey) end -- TODO: Refactor some bits to not use globals -- Flatten table containing tables of strings function tbl_flat(tbl) local out = {} for _, ...
-- ============================================================= -- Copyright Roaming Gamer, LLC. 2008-2018 (All Rights Reserved) -- ============================================================= local measure = {} local function countGlobals() local count = 0 for k,v in pairs(_G) do count = count+1 end return cou...
-- ============================================= -- Troll action logic from the player modal is located here (callbacks, events) -- ============================================= if (GetConvar('txAdmin-menuEnabled', 'false') ~= 'true') then return end local EFFECT_TIME_MS = GetConvarInt('txAdmin-menuDrunkDuration'...
-- // MODULES // local Scheduler = require(script.Parent).Module local TimedFunction = require(script.Parent.TimedFunction).TimedFunction -- // MAIN FUNCTIONS // local function insert(tail, node) if tail then local compare = tail while compare do -- // behind ( [0]=([1])=[2]=[3] ) if node.item.exp...
local Spell = { } Spell.LearnTime = 300 Spell.Base = "Welding Charm" Spell.Description = [[ Swaps two objects. Usage: cast on some object, then cast on another object. Also, works on players and NPCs. ]] Spell.ShouldSay = false Spell.NodeOffset = Vector(1730, -1051, 0) Spell.SpriteColor = Color(255, 255, 255) ...
--[[ @package Geany plugins lua @filename geany-nest-comment/geany-nest-comment.lua @version 3.0 @autor Díaz Urbaneja Víctor Eduardo Diex <victor.vector008@gmail.com> @date 03.08.2020 14:00:48 ]]-- local ds = geany.dirsep local config_dir = geany.appinfo().scriptdir .. ds .. 'support' .. ds .. 'nest...
require 'networks/mc-models/fast' require('networks/modules/Normalize2') local McCnnFast, parent = torch.class('McCnnFast','FastNetwork') local function createModel(opt, dataset) return McCnnFast:new(opt, dataset) end function McCnnFast:__init(self, opt, dataset) parent.__init(parent, self, opt, dataset) end fu...
--IupCanvas Example in IupLua require( "iuplua" ) require("cdlua") require("iupluacd") require("imlua") require("iupluaim") require("cdluaim") cnv = iup.canvas {rastersize="600x400"} bt = iup.button{ title = "Draw Line", } dg = iup.dialog{ iup.vbox{ cnv, bt }; title="IupCanvas" } boxc = {x=300,y=200} -- c...
hp = 1000 attack = 350 defense = 300 speed = 67 mdefense = 300 luck = 50 float = 0 strength = ELEMENT_NONE weakness = ELEMENT_NONE stage = 0 STAGE_INIT = 0 STAGE_FORWARD = 1 STAGE_BACKWARD = 2 SPEED = 3 / 10 sucked = false function initId(i) id = i end function start() preloadSFX("...
local telescope = require("telescope") telescope.setup({ pickers = { file_browser = { disable_devicons = true, hidden = true, }, find_files = { find_command = { "fd", "--hidden", "--type", "f"...
-- ansicolors.lua v1.0.2 (2012-08) -- Copyright (c) 2009 Rob Hoelz <rob@hoelzro.net> -- Copyright (c) 2011 Enrique García Cota <enrique.garcia.cota@gmail.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to d...
-- Modules local Chunks = require('chunks') -- Tests describe('Chunks', function() describe('#.first()', function() it('should return the first item in the array', function() local results = Chunks.first({1, 2, 3}) assert.equals(results, 1) end) end) describe('#.last()', function() it(...
--- --- Generated by MLN Team (https://www.immomo.com) --- Created by MLN Team. --- DateTime: 15-01-2020 17:35 --- --- --- 编辑框 --- ---@note 非容器视图,不可以添加子视图 ---@class EditTextView @parent class ---@public field name string ---@type EditTextView local _class = { _priveta_class_name = "EditTextView"} --- --- 构造方法 --...
-- create node Divide require "moon.sg" local node = moon.sg.new_node("sg_div") if node then node:set_pos(moon.mouse.get_position()) end
require "TimedActions/ISBaseTimedAction" G_OnPickLockTimedAction = ISBaseTimedAction:derive("G_OnPickLockTimedAction"); function G_OnPickLockTimedAction:isValid() return self.character:getInventory():contains("Paperclip") and self.character:getInventory():contains("Screwdriver") end function G_OnPickLockTimedActio...
if not modules then modules = { } end modules ['data-aux'] = { version = 1.001, comment = "companion to luat-lib.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } local find = string.fin...
function momoIRTweak.compatibility.SpaceX() -- drydock-assembly drydock-structural -- fusion-reactor hull-component protection-field -- space-thruster fuel-cell habitation -- life-support command astrometrics -- ftl-drive if (settings.startup["momo-spaceEx"].value) then --- using local ITEM ...
help( [[ This module loads c-blosc 1.7.1 A blocking, shuffling and loss-less compression library that can be faster than `memcpy()` ]]) whatis("Loads c-blosc") local version = "1.7.1" local base = "/cvmfs/oasis.opensciencegrid.org/osg/modules/cblosc/"..version prepend_path("LD_LIBRARY_PATH", pathJoin(base, "lib")) ...
----------------------------------- -- Area: Misareaux_Coast -- NPC: ??? (Spawn Gration) -- !pos 113.563 -16.302 38.912 25 ----------------------------------- local ID = require("scripts/zones/Misareaux_Coast/IDs") require("scripts/globals/npc_util") ----------------------------------- function onTrade(player, npc, t...
object_static_structure_general_cave_stalactite_snow_style_03 = object_static_structure_general_shared_cave_stalactite_snow_style_03:new { } ObjectTemplates:addTemplate(object_static_structure_general_cave_stalactite_snow_style_03, "object/static/structure/general/cave_stalactite_snow_style_03.iff")
do -- will hold the currently playing sources local sources = {} -- check for sources that finished playing and remove them -- add to love.update function love.audio.update() local remove = {} for _,s in pairs(sources) do if s:isStopped() then remove[#rem...
local timeUtil = {} function timeUtil.secondsToDigitalTime(seconds) local display = "" local remaingSeconds = 0 -- The number of seconds left after converting seconds to minutes. -- Convert minutes to seconds. if seconds >= 60 then local minutes = math.floor(seconds / 60) if minutes...
return { version = "1.1", luaversion = "5.1", tiledversion = "2018.01.23", orientation = "orthogonal", renderorder = "right-down", width = 40, height = 40, tilewidth = 16, tileheight = 16, nextobjectid = 31, properties = { ["collidable"] = "true" }, tilesets = { { name = "GGJ_bac...
if FirstLoad then WaypointChains = false end --config.DebugWaypoints = true local ChainTypes = { ["Door"] = "entrance", ["Doorentrance1"] = "entrance", ["Doorentrance2"] = "entrance", ["Doorexit1"] = "entrance", ["Doorexit2"] = "entrance", ["Cardoor"] = "drone_factory_exit", ["Dronein"] = "rocket_entrance", ...
--[[ Copyright (c) 2016 by Marco Lizza (marco.lizza@gmail.com) This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including...
local class = require("lib/middleclass") local module = {} module.Circle = class('components/circle') function module.Circle:initialize(parameters) self.radius = parameters.radius or 50 self.style = parameters.style or "fill" self.lineWidth = parameters.lineWidth or 1 end return module
local NotificationBindable = Instance.new("BindableFunction") NotificationBindable.OnInvoke = callback -- game.StarterGui:SetCore("SendNotification", { Title = "Dynamic Client"; Text = "Friend Request Spam Activated."; Icon = "rbxassetid://4774152984"; Duration = 3; Callback = NotificationBindable; }) local Robl...
local S = farming.intllib -- lettuce minetest.register_craftitem("farming:lettuce", { description = S("Lettuce"), inventory_image = "farming_lettuce.png", groups = {seed = 2, food_lettuce = 1, flammable = 2}, on_place = function(itemstack, placer, pointed_thing) return farming.place_seed(itemstack, placer, point...
local signatures = { ['sodium_init'] = [[ int %s(void) ]], ['sodium_memzero'] = [[ void %s(void * const pnt, const size_t len) ]], ['randombytes_random'] = [[ uint32_t %s(void) ]], ['randombytes_uniform'] = [[ uint32_t %s(const uint32_t upper_bound) ]], ['randombytes_buf'] = [[ voi...
rootElement = getRootElement() thisResource = getThisResource() missionTimers = {} bool = { [false]=true, [true]=true } addEvent ( "onClientMissionTimerElapsed", true ) addEventHandler("onClientResourceStart",resourceRoot, function() triggerServerEvent ( "onClientMissionTimerDownloaded", getLocalPlayer() ) end ) ...
local command = require('core.command') local ffi = require('ffi') ffi.cdef[[ void* GetConsoleWindow(); bool ShowWindow(void*, int); bool IsWindowVisible(void*); ]] local C = ffi.C local hwnd = C.GetConsoleWindow() local cw = command.new('cw') local commands = { show = true, hi...
require "devmode" local Board = require "sources.board" local Scaling = require "sources.scaling" local Storage = require "sources.storage" TITLE = "ChineseCheckersLöve" ID = "chinese.checkers.love" WIDTH = 800 HEIGHT = 600 -- Affichage des identifiants des cases DEVMODE_SHOW_TILES_ID = false -- Affichage des coup...
ITEM.name = "Anorak" ITEM.model ="models/kek1ch/rookie_outfit.mdl" ITEM.newModel ="models/stalkerisaac/playermodel/male_01_anorak.mdl" ITEM.description= "A worn anorak." ITEM.longdesc = "A simple polyester-cotton mix anorak. Doesn't provide much protection from anything except the wind and rain. " ITEM.width = 2 ITEM.h...
local gamemode = ScriptedGamemode() gamemode.PlayerNicks = {} gamemode:On("PlayerControlledEntityUpdate", function (self, player, oldEntity, newEntity) local id = player:GetPlayerIndex() local text = self.PlayerNicks[id] if (text) then text:Hide() end if (newEntity) then local text = newEntity:AddText({ ...
object_tangible_wearables_base_base_cybernetic_legs = object_tangible_wearables_base_shared_base_cybernetic_legs:new { } ObjectTemplates:addTemplate(object_tangible_wearables_base_base_cybernetic_legs, "object/tangible/wearables/base/base_cybernetic_legs.iff")
--[[ Copyright (c) 2015, Robert 'Bobby' Zenz All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the fo...
-- Baked Clay by TenPlus1 local clay = { {"natural", "Natural"}, {"white", "White"}, {"grey", "Grey"}, {"black", "Black"}, {"red", "Red"}, {"yellow", "Yellow"}, {"green", "Green"}, {"cyan", "Cyan"}, {"blue", "Blue"}, {"magenta", "Magenta"}, {"orange", "Orange"}, {"violet", "Violet"}, {"brown", "Brown"}, ...
heraldConvoTemplate = ConvoTemplate:new { initialScreen = "init", templateType = "Lua", luaClassHandler = "herald_conv_handler", screens = {} } init = ConvoScreen:new { id = "init", leftDialog = "", stopConversation = "false", options = { } } heraldConvoTemplate:addScreen(init); npc_1_1 = ConvoScreen:new { ...
----------------------------------- -- Area: Windurst Waters [S] -- NPC: Ezura-Romazura -- Standard Merchant NPC ----------------------------------- local ID = require("scripts/zones/Windurst_Waters_[S]/IDs") require("scripts/globals/shop") ----------------------------------- function onTrade(player, npc, trade) end ...
local bit = require('bit') local fs_ffi = require('acid.fs_ffi') local strutil = require('acid.strutil') local util = require('acid.util') local _M = {} function _M.is_exist(path) local _, err, errmsg = fs_ffi.access(path, fs_ffi.F_OK) if err ~= nil then return nil, err, errmsg end return tr...
GM.NotifyFadeTime = 8 local DefaultFont = "FRETTA_MEDIUM" local DefaultFontEntity = "FRETTA_MEDIUM" local PANEL = {} function PANEL:Init() self:DockPadding(8, 2, 8, 2) end local matGrad = Material("VGUI/gradient-r") function PANEL:Paint() surface.SetMaterial(matGrad) surface.SetDrawColor(0, 0, 0, 180) local a...
-- vpath.lua - VPI handling local _VPATH = {} function _VPATH.new() local self = { ready = 0 } -- Our VCI handlers are stored here local VCI = {} local function _input(data) end -- Send data through VCI, via VPI function self.put(vci, data) VCI[vci].put(data) end -- Read data from VPI, through VCI fu...
{data={name="???", author="Magnus siiftun1857 Frankline"}, blocks={ {1259800, command={ --faction=0 }}}}
local colors = { white = "#F8F8F2", darker_black = "#232531", black = "#282A36", -- nvim bg black2 = "#303341", one_bg = "#373844", -- real bg of onedark one_bg2 = "#44475a", one_bg3 = "#565761", grey = "#5e5f69", grey_fg = "#666771", grey_fg2 = "#6e6f79", light_grey = "#73747e", re...
function Div(el) -- this function takes in an element as a parameter if el.classes[1] == "box" then -- classes is a field of a Div element; if the class of the element is solution, perform the table.insert function -- Pandoc can determine the class of the Div by interpreting it in fenced div notation (i.e. ::: no...
---------------------------------------- -- Group Calendar 5 Copyright (c) 2018 John Stephen -- This software is licensed under the MIT license. -- See the included LICENSE.txt file for more information. ---------------------------------------- ---------------------------------------- -- Limits ---------------...
-- Copyright (c) 2008 Mikael Lind -- -- 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, publis...
object_tangible_food_generic_drink_bantha_blaster = object_tangible_food_generic_shared_drink_bantha_blaster:new { } ObjectTemplates:addTemplate(object_tangible_food_generic_drink_bantha_blaster, "object/tangible/food/generic/drink_bantha_blaster.iff")
require "System" System.Enum = System.ValueType:new()
HowToColossus = HowToColossus or {} local HowToColossus = HowToColossus local WM = GetWindowManager() local COLOSSUS = 1 local HORN = 2 local MAJOR_VULNE_ID = 122397 local MAJOR_FORCE_ID = 40225 local HORN_ID = 40224 function HowToColossus.SaveColossusLoc() HowToColossus.savedVariables.collossusAlertX = ColossusAl...
function on_activate(parent, ability) local targets = parent:targets():hostile():attackable() local targeter = parent:create_targeter(ability) targeter:set_selection_attackable() targeter:add_all_selectable(targets) targeter:add_all_effectable(targets) targeter:activate() end function on_targe...
return { "icons/fat_medusa_weapon_mirror01", "icons/weapon/wp_talisman05_000_001", "icons/weapon/wp_talisman09_mob-qrich", "icons/weapon/wp_talisman12_000_001", "icons/weapon/wp_talisman14_000_002", "icons/weapon/wp_talisman14_000_003", "icons/weapon/wp_talisman14_mob-kafke-cloth-01", "icons/weapon/wp_talisman15_000_00...
-- simon.lua v1.1 -- by Tallow -- -- Set up a list of points to click on request. Useful for paint or -- ad-hoc macros. -- dofile("common.inc"); askText = singleLine([[ Simon v1.1 (by Tallow) -- Sets up a list of points and then click on them in sequence. ]]); clickList = {}; clickDelay = 150; is_stats = true; ...
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may ...
return {'amicaal','amice','amict','amigo','aminen','aminozuur','aminozuurvolgorde','amine','amin','amie','amina','amine','amir','amira','amit','amiri','amini','amier','amicale','amicaler','amices','amicten','aminozuren','amicaalst','amigos','amies','amins','aminas','amines','amirs','amiras','amits'}
-------------------------------------------------------------------------------- --- Tools to ensure correct code behaviour -- @module lua-nucleo.ensure -- This file is a part of lua-nucleo library -- @copyright lua-nucleo authors (see file `COPYRIGHT` for the license) --------------------------------------------------...
-- This tests the 'text_path' and 'glyph_path' methods. The output image -- shows the outlines of some text, with the paths filled and then stroked -- in a different colour. -- -- The first line of text uses 'text_path' to get a path for a string, but -- also uses a custom matrix transformation to get an unusual backw...
local runService = game:GetService("RunService") -- Used to create a tunnel between client and server local src = script.Parent.Parent local packages = src.Parent local maidConstructor = require(packages:WaitForChild("maid")) local class = {} local fusion = script.Parent.Parent local Abstract = require(script.Parent...
-- gitgutter highlights local lush = require("lush") local base = require("lush_jsx.base") local M = {} M = lush(function() return { -- git-gutter GitGutterAdd {base.LushJSXGreenSign}, GitGutterChange {base.LushJSXAquaSign}, GitGutterDelete {base.LushJSXRedSign}, GitGutterChangeDelete {base.LushJ...
function onCreate() -- background shit makeLuaSprite('HTFunkersBG', 'HTFunkersBG', -600, -40); addLuaSprite('HTFunkersBG', false); makeAnimatedLuaSprite('Russel And Flaky','Russel And Flaky',-570,440) addAnimationByPrefix('Russel And Flaky','dance','Russel And Flaky bop' ,24,true) addLuaSprite('Rus...
if vim.g.loaded_markdown_tools == 1 then return end vim.api.nvim_exec("command! MarkdownImagePaste lua require'markdown_image_paste.modules'.MarkdownImagePaste()", true) vim.api.nvim_exec("command! MarkdownImageDelete lua require'markdown_image_paste.modules'.MarkdownImageDelete()", true) vim.api.nvim_exec("comman...
local Enum = require("api.Enum") local Gui = require("api.Gui") local MapEdit = {} function MapEdit.start() local MapEditLayer = require("mod.elona.api.gui.MapEditLayer") Gui.mes_newline() Gui.mes("building.home.design.help") MapEditLayer:new():query() end function MapEdit.is_tile_selectable(tile) loc...
-- -- Copyright (c) 2018 Milos Tosic. All rights reserved. -- License: http://www.opensource.org/licenses/BSD-2-Clause -- -- https://github.com/bkaradzic/bgfx local params = { ... } local BGFX_ROOT = params[1] local BGFX_INCLUDE = { BGFX_ROOT .. "include", BGFX_ROOT .. "3rdparty", BGFX_ROOT .. "3rdparty/khronos...
SILE.registerCommand("alt", function(o, c) local options = {} for i=1,#c do SILE.call("hbox", {}, {c[i]}) options[#options + 1] = SILE.typesetter.state.nodes[#SILE.typesetter.state.nodes] SILE.typesetter.state.nodes[#SILE.typesetter.state.nodes] = nil end alt = SILE.nodefactory.newAlternative({ ...
wrk.method = "POST" wrk.body = "name=test&content=hello" wrk.headers["Content-Type"] = "application/x-www-form-urlencoded" wrk.headers["Cookie"] = "user=admin" cnt = 0 errs = 0 request = function () body = "name=test&content=hello" .. tostring(cnt) cnt = cnt + 1 -- io.write("req " .. body .. "\n") r...
-- repl.lua i = dfselct("OUT"); -- get element count for port "OUT" value, IPaddr, size, type = dfsrecv("IN") while value == 0 do string = dfsderef(IPaddr) for j = 0, i - 1 do value, IPaddr2 = dfscrep(string) --myprint(IPaddr2) value = dfssend("OUT["..j.."]", IPaddr2) end --myprint(I...
includeFile("tatooine/tatooine_world_boss/custom_jawa_boss.lua") includeFile("tatooine/tatooine_world_boss/custom_jawa_bodyguard.lua") includeFile("tatooine/tatooine_world_boss/custom_krayt_queen.lua")
object_mobile_dressed_valarian_thug_gran = object_mobile_shared_dressed_valarian_thug_gran:new { } ObjectTemplates:addTemplate(object_mobile_dressed_valarian_thug_gran, "object/mobile/dressed_valarian_thug_gran.iff")
local plstring = require("pl.stringx") local _M = {} _M.format = string.format _M.lower = string.lower _M.upper = string.upper _M.find = string.find _M.split = plstring.split _M.replace = plstring.replace return _M
local g = vim.g g.db_ui_use_nerd_fonts = 1
local tostring = tostring local string = require "string" local table = require "table" local export = { } function export.required (selector) local format = "Selector [%s] is required but not implemented!" return string.format (format, tostring (selector)) end function export.conflict (selector) ...
if submode ~= "maps" then eventGameStart() end
----------------------------- 以下为 UI代码 不可修改 ----------------------------------- ---@type Framework.UI.Prefab local super = require("Framework.UI.Prefab") ---@class Examples.04_Button.UI_04:Framework.UI.Prefab ---@field m_Button Framework.UI.Button ---@field m_Text Framework.UI.TextField UI_04 = class("Examples.04_Butt...
-- Stone Monster by PilzAdam mobs:register_mob("mobs:stone_monster", { -- animal, monster, npc, barbarian type = "monster", -- aggressive, deals 8 damage to player when hit passive = false, attack_type = "dogfight", pathfinding = false, reach = 2, damage = 4, -- health & armor hp_min = 20, hp_max = 25, ar...
--- -- @author wesen -- @copyright 2020 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- local Object = require "classic" --- -- Provides the template data for Total coverage data objects. -- -- @type Total -- local Total = Object:extend() --- -- The raw Total coverage data -- -- @tfield CoverageData.Tota...
--[[ Utility functions Copyright (C) 2016 Kui Jia All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. --]] local...
object_mobile_tyrok = object_mobile_shared_tyrok:new { } ObjectTemplates:addTemplate(object_mobile_tyrok, "object/mobile/tyrok.iff")
--control.lua script.on_event(defines.events.on_built_entity, function(e) on_drop_car(e) end) script.on_event(defines.events.on_player_driving_changed_state, function(x) on_exit_car(x) end) function on_drop_car(e) if e.created_entity.name == "car" then local player = game.players[e.player_index] ...
slot0 = class("ChargeAwardPage", import("...base.BaseActivityPage")) slot0.OnInit = function (slot0) slot0.bg = slot0:findTF("bg") slot0.charge = slot0:findTF("charge") slot0.take = slot0:findTF("take") slot0.finish = slot0:findTF("finish") end slot0.OnDataSetting = function (slot0) return end slot0.OnFirstFlus...
local blip, endblip local jobstate = 0 local route = 0 local oldroute = -1 local marker, endmarker local routescompleted = 0 local deliveryStopTimer = nil local wage = 0 routes = { { 1615.5283203125, -1614.431640625, 12.10223865509 }, { 1476.5732421875, -1735.2548828125, 11.943592071533 }, { 1360.879882...
items={} Item("sword","a sword",1,"item_sword", { pta_min=1, pta_max=2, portee=5 } ) Item("cure","a cure",2,"item_tome", { pta_type = "s", pta_min = 5, pta_max = 10, mana = 10 } ) Item("sheld","a sheld",1,"item_sheld", { pta_type = "b", pta_min = 5, pta_max = 10, de...
local ids = require 'ids' local TEX_HEADER = [[ -- textures.txt: strings for wall, floor, and ceiling textures. -- `name` is what appears when you click on a texture. -- `use` is what appears when you double-click (i.e. attempt to use) it. -- `texids` is a list of texture IDs (0-511); most textures have a few variants...
local locales = require "faker.locales" local helpers = require "faker.helpers" local split = helpers.split table.copy = helpers.table_copy local M = { add_locale = locales.add_locale, address = require("faker.core.address"), app = require("faker.core.app"), avatar = require("faker.core.avatar"), b...
-- -*- coding: utf-8-unix -*- --- -- @file Scale9.lua -- @author Junichi Yamazaki -- @since 2012-08-31 local pScale9 local count = 0 local asset = "asset://Horiz.png.imag" function setup() count = 0 pScale9 = UI_Scale9(nil, 7000, 10, 10, 100, 100, asset) pScale9_2 = UI_Scale9(nil, 6000, 60, 6...
local t = Def.ActorFrame{ Def.Quad{ InitCommand=cmd(FullScreen;diffuse,color("1,1,1,1")); }; }; t[#t+1] = Def.ActorFrame{ LoadActor("sound")..{ OnCommand=cmd(queuecommand,"Play"); PlayCommand=cmd(play); }; LoadActor("Konami")..{ InitCommand=cmd(Center); OnCommand=cmd(diffusealpha,0;linear,0.5;diffusealph...
object_mobile_smuggler_fence_norris = object_mobile_shared_smuggler_fence_norris:new { } ObjectTemplates:addTemplate(object_mobile_smuggler_fence_norris, "object/mobile/smuggler_fence_norris.iff")
return {'mba','mbabane'}
object_static_particle_pt_smoke_holocron_blue = object_static_particle_shared_pt_smoke_holocron_blue:new { } ObjectTemplates:addTemplate(object_static_particle_pt_smoke_holocron_blue, "object/static/particle/pt_smoke_holocron_blue.iff")
----------------------------------- -- Area: Ru'Lude Gardens -- NPC: Explorer Moogle -- Type: Mog Tablet -- !pos 1.000 -1 0.000 243 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) player:s...
local _M = {} local strutil = require("acid.strutil") local tableutil = require("acid.tableutil") local mime = require("acid.ngx.mime") local merge = require("acid.ngx.merge") local repr = tableutil.repr function _M.get_url_argument() local uri = ngx.var.request_uri local elts = strutil.split( uri, '[?][?]...
#!/usr/bin/env lua --- -- @author Gianluca Fiore -- @copyright 2012-2014, Gianluca Fiore <forod.g@gmail.com> -- package.path = "/mnt/d/Script/lib/?.lua;" .. package.path local markdown = require("markdown") -- that's the markdown.lua implementation from http://www.frykholm.se/files/markdown.lua local lfs = require("l...
PLUGIN.name = "Vendors" PLUGIN.author = "Chessnut" PLUGIN.desc = "Adds NPC vendors that can sell things." if (SERVER) then AddCSLuaFile("cl_editor.lua") end nut.util.include("sv_logging.lua") nut.util.include("sh_enums.lua") nut.util.include("sv_networking.lua") nut.util.include("cl_networking.lua") nut.util.include...
function Dulce(_x, _y) -- show warning indicator Indicator(_x) -- delay spawning by one second Timer(1, function() sfx(13) add(world, { id = { class = "enemy", subclass = "dulce", size = "medium" }, pos = { x=_x, y=_y }, vel = { x=0, y=C.DULCE_MOVE_VY }, box = ...
function start (song) print("Song: " .. song .. " @ " .. bpm .. " downscroll: " .. downscroll) end function update (elapsed) local currentBeat = (songPos / 1000)*(bpm/84) if curStep >= 192 then for i=0,8 do setActorY(_G['defaultStrum'..i..'Y'] + 10 * math.sin((currentBeat + i*0.25) * mat...
--[[ ================================================================================ ProjectNukeCorePackets ================================================================================ Author: stuntguy3000 --]] -- GeneralCommunicationPacket Object GeneralCommunicationPacket = ProjectNukeCoreClasses.Packe...
---@class EquipWindow local EquipWindow = DClass("EquipWindow", BaseWindow) _G.EquipWindow = EquipWindow function EquipWindow:ctor(data) EquipMgr:setCurSelectHero(data[1]) EquipMgr:initEquipingEquips() end function EquipWindow:addListeners() self.messager:addListener(Msg.EQUIP_OPEN_SELECTSUIT, self.openSe...
-- Options related to the interface implementation. options.cache = true options.charset = '' options.close = false options.info = true options.limit = 0 options.range = math.huge
-- -- DICOM Web Viewer (DWV) lua script for integration in a Conquest PACS server. -- -- Usage -- In the dicom.ini of your web server, create the dwv viewer: -- >> [dwv] -- >> source = viewers\dwv.lua -- And set it as the default viewer: -- >> [webdefaults] -- >> ... -- >> viewer = dwv -- This script relies on the 'kF...
--[[ TO DO -- Implement player filtering for reporting function -- Implement temporary mob_filters variable for reporting function ]] percent_table = { intimidate = S{"hit","block","anticipate","parry","evade"}, evade = S{"hit","block","anticipate","parry"}, parry = S{"nonparry"}, anticipate = S...
-- AUTO BUILD, DON'T MODIFY! dofile "autobuild/jiguang-types.lua" name = "jiguang" path = "../../frameworks/plugins/jiguang" headers = [[ #include "lua-bindings/lua_conv.h" #include "lua-bindings/lua_conv_manual.h" #include "cclua/xlua.h" #include "JiGuang.h" ]] chunk = nil luaopen = nil typeconf 'c...