content stringlengths 5 1.05M |
|---|
object_tangible_storyteller_prop_pr_item_sitholantern3 = object_tangible_storyteller_prop_shared_pr_item_sitholantern3:new {
}
ObjectTemplates:addTemplate(object_tangible_storyteller_prop_pr_item_sitholantern3, "object/tangible/storyteller/prop/pr_item_sitholantern3.iff")
|
function SWEP:GetReloadTime()
-- Only works with classic mag-fed weapons.
local mult = self:GetBuff_Mult("Mult_ReloadTime")
local anim = self:SelectReloadAnimation()
if !self.Animations[anim] then return false end
local full = self:GetAnimKeyTime(anim) * mult
local magin = self:GetAnimKeyTim... |
return {
init_effect = "",
name = "提速",
time = 240,
picture = "",
desc = "6s减速",
stack = 1,
id = 1000000,
icon = 310,
last_effect = "Darkness",
effect_list = {
{
type = "BattleBuffAddAttrRatio",
trigger = {
"onAttach",
"onStack",
"onRemove"
},
arg_list = {
attr = "velocity",
... |
-------------------------------------------------------------------------------
-- Mob Framework Settings Mod by Sapier
--
-- You may copy, use, modify or do nearly anything except removing this
-- copyright notice.
-- And of course you are NOT allow to pretend you have written it.
--
--! @file path.lua
--! @brief path... |
local props = { { Model = "prop_npc_phone_02", Bone = 0x6F06, Offset = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 } } }
Config = {
EnabledControls = { 30, 31, 32, 33, 34, 35, 59, 60, 61, 62, 63, 64, 249 },
Kvp = "roleplay_device-%s-%s",
LocalData = {
["options/background"] = true,
["options/notify"] = true,
["options/rin... |
local UnitTest = require("luatest.UnitTest")
require("examples.Example_01")
require("examples.Example_02")
UnitTest.main()
|
-- Copyright (c) Jérémie N'gadi
--
-- All rights reserved.
--
-- Even if 'All rights reserved' is very clear :
--
-- You shall not use any piece of this software in a commercial product / service
-- You shall not resell this software
-- You shall not provide any facility to install this particular software in a c... |
return {
description = "Replaces the Lua REPL with an advanced version.",
dependencies = {
"bin/lua.lua",
"lib/stack_trace.lua"
},
-- When updating the defaults, one should also update bin/lua.lua
settings = {
{
name = "mbs.lua.enabled",
description = "Whether the extended Lua REPL i... |
-- Copyright (c) 2021 Kirazy
-- Part of Artisanal Reskins: Bob's Mods
--
-- See LICENSE in the project directory for license information.
-- Check to see if reskinning needs to be done.
if not (reskins.bobs and reskins.bobs.triggers.plates.technologies) then return end
-- Setup inputs
local inputs = {
mod = "bobs... |
return function(PackageId, Name)
return Import(LoadedPackages[PackageId].Entrypoints[Name])
end |
local mash = {
split = {"ctrl", "alt", "cmd"},
corner = {"ctrl", "alt", "shift"},
focus = {"ctrl", "alt"}
}
-- Resize windows
local function adjust(x, y, w, h)
return function()
local win = hs.window.focusedWindow()
if not win then return end
local f = win:frame()
local max = win:screen()... |
local jsonConfig = {}
local function GetFileName(name)
return 'custom/config__' .. name .. '.json'
end
function jsonConfig.Load(name, default, keyOrderArray)
local filename = GetFileName(name)
local existingFile = fileDrive.LoadAsync(filename)
local result = nil
if not existingFile.content then
... |
-- require("testing.ultest-plugin")
require("testing.neotest-plugin")
require("testing.whichkey-reg")
|
DownedShipScreenPlay = ScreenPlay:new {
numberOfActs = 1,
screenplayName = "DownedShipScreenPlay",
lootContainers = {
6036667,
6036668,
6036669,
6036670
},
lootLevel = 38,
lootGroups = {
{
groups = {
{group = "color_crystals", chance = 3100000},
{group = "junk", chance = 3500000},
... |
local function searchProjects()
hideKeyboard()
output.clear()
matches = {}
for _, p in ipairs( listProjects( "documents" ) ) do
for _, t in ipairs( listProjectTabs( p ) ) do
local code = readProjectTab( p .. ":" .. t )
local i = 1
for l in string.gmatch( code,... |
mokk_worldboss_sp = ScreenPlay:new {
numberOfActs = 1,
planet = "dantooine",
}
registerScreenPlay("mokk_worldboss_sp", true)
-----------------------------
--Start mokk_worldboss ScreenPlay
-----------------------------
function mokk_worldboss_sp:start()
if (isZoneEnabled(self.planet)) then
self:spawnMobiles()
... |
Config = Config or {}
--[[
These values are going to be all the allowed values for settings.
Some of these may be dependant on other resources
]]--
Config.Ringtones = {
{ name = 'Ringtone 1', value = 1 },
{ name = 'Ringtone 2', value = 1 },
{ name = 'Ringtone 3', value = 1 },
}
Config.Settings = {... |
vim.g.minimap_width = 10
vim.g.minimap_auto_start = 0
vim.g.minimap_auto_start_win_enter = 0
vim.g.minimap_highlight_range = 1
|
--- Ragdolls the humanoid on death
-- @classmod RagdollHumanoidOnDeathClient
-- @author Quenty
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local Players = game:GetService("Players")
local Workspace = game:GetService("Workspace")
local BaseObject = require("BaseObject")
loc... |
slot0 = class("GetCommanderHomeCommand", pm.SimpleCommand)
slot0.execute = function (slot0, slot1)
slot2 = slot1:getBody()
if getProxy(CommanderProxy):GetCommanderHome() then
return
end
pg.ConnectionMgr.GetInstance():Send(25026, {
type = 0
}, 25027, function (slot0)
slot0:AddCommanderHome(slot1)
for sl... |
-- with this you can turn on/off specific anticheese components, note: you can also turn these off while the script is running by using events, see examples for such below
Components = {
Teleport = true,
GodMode = true,
Speedhack = true,
WeaponBlacklist = true,
CustomFlag = true,
}
--[[
event examples are:
antic... |
mars_extra = class({})
mars_extra_recast = class({})
LinkLuaModifier("modifier_mars_extra_recast", "abilities/heroes/mars/mars_extra/modifier_mars_extra_recast", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_mars_soldier", "abilities/heroes/mars/modifier_mars_soldier", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("m... |
CoreTrash = CreateFrame("Frame")
CoreTrashConfig = {}
CoreTrashConfig.enabled = false
trashList = {
"Troll Sweat",
"Broken Obsidian Club",
"Cracked Pottery",
"Crusted Bandages",
"Thick Scaly Tail",
"Turtle Meat",
"Tarnished Silver Necklace",
"Moonberry Juice",
"Cured ... |
local dev = GetSelf()
local update_time_step = 0.1
make_default_activity(update_time_step)
--update will be called 10 times per second
local sensor_data = get_base_data()
-- Const
local degrees_per_radian = 57.2957795
local feet_per_meter_per_minute = 196.8
-- Variables
local DC_BUS_V = get_param_handle("DC_BUS_V"... |
-- load init.lua
local filepath = require("filepath")
local root = filepath.dir(debug.getinfo(1).source)
dofile(filepath.join(root, "init.lua"))
function metric_exists(metric)
local sql_query = string.format([[
select
count(*)
from
metric m
where
plugin = md5('%s')::uuid
and host = md5('%s')::uuid
and ... |
local M = {}
local vim = vim
M.HERMES_HOME = vim.fn.stdpath('data') .. '/site/pack/hermes/start/'
M.HERMES_OPT = vim.fn.stdpath('data') .. '/site/pack/hermes/opt/'
M.HERMES_LOG = vim.fn.stdpath('cache') .. '/hermes.log'
return M
|
-----------------------------------
-- Area: Gusgen Mines
-- NPC: Clay
-- Involved in Quest: A Potter's Preference
-- !pos 117 -21 432 196
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/globals/settings");
local ID = require("scripts/zones/Gus... |
function setup()
color(0,0,0)
fillrect(0,0,128,128);
color(255,255,255)
text("Hello World", 32, 32)
end
function loop()
end
|
local Concord = require("lib.concord")
local Shapes = require("lib.hc.shapes")
local Vector = require("lib.vector")
local Quad = require("src.classes.quad")
local Animation = require("src.classes.animation")
local C = require("src.components")
local function collisionCallback(eShape, otherShape, sepX, sepY)
local... |
require "Polycode/Resource"
class "Font" (Resource)
function Font:__getvar(name)
if name == "loaded" then
return Polycode.Font_get_loaded(self.__ptr)
end
if Resource["__getvar"] ~= nil then
return Resource.__getvar(self, name)
end
end
function Font:__setvar(name,value)
if name == "loaded" then
Polycode.F... |
object_static_worldbuilding_structures_mun_nboo_cloning_facility_destroyed = object_static_worldbuilding_structures_shared_mun_nboo_cloning_facility_destroyed:new {
}
ObjectTemplates:addTemplate(object_static_worldbuilding_structures_mun_nboo_cloning_facility_destroyed, "object/static/worldbuilding/structures/mun_nboo_... |
cfg.table("Person", function(tb)
tb.sqls.Add1 = function (sk)
-- each函数用于遍历获取SqlParameters的key或者value,调用each进行遍历的SqlParameter参数会在执行sql之前自动移除,函数中的参数说明:
-- (Func<string, string, string, string, string, string, bool?, List<string>, object>)
-- (type, sqlkey, key, prefix, suffix, se... |
--
-- Test case for hang on [1]s and :join()s.
--
require "lanes"
local function ret(b)
return b
end
local lgen = lanes.gen("*", {}, ret)
for i=1,10000 do
local ln = lgen(i)
print( "getting result for "..i )
-- Hangs here forever every few hundred runs or so,
-- can be illustrated by putting an... |
flail_butcher = Creature:new {
objectName = "@mob/creature_names:flail_butcher",
randomNameType = NAME_GENERIC,
randomNameTag = true,
socialGroup = "flail",
faction = "flail",
level = 22,
chanceHit = 0.35,
damageMin = 220,
damageMax = 230,
baseXp = 2219,
baseHAM = 6300,
baseHAMmax = 7700,
armor = 0,
resis... |
local gl = require 'gl'
local table = require 'ext.table'
local class = require 'ext.class'
local GLTex = require 'gl.tex'
local GLTex2D = require 'gl.tex2d'
local GLTexCube = class(GLTex)
GLTexCube.target = gl.GL_TEXTURE_CUBE_MAP
function GLTexCube:create(args)
-- now args.data should be a 6-indexed array of whate... |
PLUGIN.Name = "I like trains"
PLUGIN.Description = "Adds commands to apply actions on players through trains."
PLUGIN.Author = "MetaMan"
PLUGIN:AddPermission("trainslay", "Allows users to awesomely slay players with trains")
PLUGIN:AddPermission("trainkick", "Allows users to awesomely kick players with trains")
PLUGIN... |
local skynet = require "skynet"
local socket = require "skynet.socket"
local websocket = require "chestnut.websocket"
local httpd = require "http.httpd"
local urllib = require "http.url"
local sockethelper = require "http.sockethelper"
local log = require "chestnut.skynet.log"
local servicecode = require "chestnut.serv... |
-- init.lua
--
-- initialize wireshark's lua
--
-- This file is going to be executed before any other lua script.
-- It can be used to load libraries, disable functions and more.
--
-- Wireshark - Network traffic analyzer
-- By Gerald Combs <gerald@wireshark.org>
-- Copyright 1998 Gerald Combs
--
-- SPDX-License-Iden... |
function exemplo(a, b)
print("--------------------------")
print("Nos vimos que se vc passar mais valor do que a função vai receber, ")
print("a função descarta tudo a mais.")
print("Se você passar menos")
print(a)
print(b)
print("O resto vai como nil")
print("--------------------------")
coroutine.yi... |
return
{
entities =
{
{"pipe-to-ground", {x = -0.5, y = -6.5}, {}},
{"pipe-to-ground", {x = -0.5, y = -0.5}, {}},
{"pipe-to-ground", {x = -0.5, y = -1.5}, {dir = "south", }},
{"pipe-to-ground", {x = -6.5, y = 0.5}, {dir = "west", }},
{"pipe-to-ground", {x = 3.5, y = 0.5}, {dir = "east", }},
... |
if not Holo:ShouldModify("HUD", "Interaction") then
return
end
HUDInteraction.SHOW_CIRCLE = false --thanks
Holo:Post(HUDInteraction, "init", function(self)
self._progress = self._hud_panel:rect({
name = "line",
alpha = 0,
w = 0,
h = 6,
})
self._progress_bg = self._hud_panel:rect({
name = "line_bg",
al... |
local require = require
local ffi = require "ffi"
local ffi_cdef = ffi.cdef
local ffi_new = ffi.new
local ffi_str = ffi.string
local ffi_typeof = ffi.typeof
local C = ffi.C
local type = type
local random = math.random
local randomseed = math.randomseed
local concat = table.conca... |
local pretty = require 'pl.pretty'
return function(options, busted)
local handler = require 'busted.outputHandlers.base'(busted)
local language = require('busted.languages.' .. options.language)
handler.suiteEnd = function(name, parent)
local system, sayer_pre, sayer_post
local messages
if system =... |
Config = {}
Config.admin_groups = {"admin","superadmin"} -- groups that can use admin commands
Config.banformat = "BANNED!\nReason: %s\nExpires: %s\nBanned by: %s (Ban ID: #%s)" -- message shown when banned (1st %s = reason, 2nd %s = expire, 3rd %s = banner, 4th %s = ban id)
Config.popassistformat = "Player %s is ... |
local t = LoadFallbackB();
local difficulty_icon_map= {
Difficulty_Beginner= "_diconbeginner.png",
Difficulty_Easy= "_diconlight.png",
Difficulty_Medium= "_diconstandard.png",
Difficulty_Hard= "_diconheavy.png",
Difficulty_Challenge= "_dicononi.png",
Difficulty_Edit= "_diconedit.png",
}
local difficulty_positio... |
/******************************************************************************\
Built-in Sound support v1.18
\******************************************************************************/
E2Lib.RegisterExtension("sound", true, "Allows E2s to play sounds.", "Sounds can be played out of arbitrary entities, includin... |
local Helper = require('spec.helper.helper')
local Promise = require('promise')
local dummy = { dummy = 'dummy' }
local sentinel = { sentinel = 'sentinel' }
describe("2.2.2: If `onFulfilled` is a function,", function()
describe("2.2.2.1: it must be called after `promise` is fulfilled, with `promise`’s fulfillment va... |
while wait() do
for i,v in pairs(game:GetService'Players':GetPlayers()) do
if v.Character ~= nil and v.Character:FindFirstChild'Head' then
for _,x in pairs(v.Character.Head:GetChildren()) do
if x:IsA'Sound' then x.Playing = true end
end
end
end
end
while wait() d... |
local noclipping = false
local speed = 250
local pressing =
{
F=false,
B=false,
L=false,
R=false,
U=false,
below=false
}
local keys =
{
F="Z",
B="S",
L="Q",
R="D",
U="Up", -- No spacebar please
below="Left Shift",
toggle="F8"
}
AddEvent("OnKeyPress", function(key)
if ... |
local tile_trigger_effects = {}
tile_trigger_effects.sand_trigger_effect = function()
return
{
{
type = "create-particle",
repeat_count = 20,
repeat_count_deviation = 5,
probability = 1,
affects_target = false,
show_in_tooltip = false,
particle_name = "sand-1-stone-par... |
local Class = require 'lib.hump.class'
local EntityFactory = getClass 'wyx.entity.EntityFactory'
local property = require 'wyx.component.property'
local depths = require 'wyx.system.renderDepths'
-- HeroEntityFactory
-- creates entities based on data files
local HeroEntityFactory = Class{name='HeroEntityFactory',
inh... |
getglobal game
getfield -1 Players
getfield -1 YourName
getfield -1 Pstats
getfield -1 Chars
getfield -1 Char1
getfield -1 Hat
pushstring (Hat Name Here)
getfield -1 Value |
require 'stdlib/game'
-- Determines if a given chunk should have a cavern below it.
-- Arguments:
-- @param cavern_map [required] The map of already determined cavern chunks. Will be modified.
-- @param chunk_event [required] The event trigged from on_chunk_generated.
function choose_cavern_tiles(cavern_map, chunk_eve... |
object_building_general_srii_skyscraper_02 = object_building_general_shared_srii_skyscraper_02:new {
}
ObjectTemplates:addTemplate(object_building_general_srii_skyscraper_02, "object/building/general/srii_skyscraper_02.iff")
|
-- $Id: nestedloop.lua,v 1.1.1.1 2004-05-19 18:10:56 bfulgham Exp $
-- http://www.bagley.org/~doug/shootout/
require 'benchmarks/bench'
for pass = 1,2 do
local n = tonumber((arg and arg[1]) or 1)
local x = 0
for a=1,n do
for b=1,n do
for c=1,n do
for d=1,n do
for e=1,n do
for f=1,n do
x = x + 1
... |
--Dan_BB Speed Cameras
--Define coordinates of Cameras
local speedCameras = {
["Vinewood Blvd / Alta St"]={
x = 278.49673461914, y = 180.99287414551, z = 104.52822875977,
maxSpeed=60.0,
pointingDirection="W",
additionalFine=0},
}
--Creating Blips for Cameras
Citizen.CreateThread(function()
... |
local Class = require "Base.Class"
local Chain = require "Chain"
-- GlobalChain Class
local GlobalChain = Class {}
GlobalChain:include(Chain)
function GlobalChain:init(args)
args.depth = 9999 -- to force high priority
args.sourceType = "global"
Chain.init(self, args)
self:setClassName("GlobalChain"... |
local ls = require("luasnip")
-- some shorthands...
local s = ls.snippet
local sn = ls.snippet_node
local t = ls.text_node
local i = ls.insert_node
local f = ls.function_node
local c = ls.choice_node
local d = ls.dynamic_node
local l = require("luasnip.extras").lambda
local r = require("luasnip.extras").rep
local p = r... |
---------------------------------------------
-- Stormwind
--
-- Description: Creates a whirlwind that deals Wind damage to targets in an area of effect.
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: Unknown radial
-- Notes:
---------------------------------------------
require("scripts/glob... |
vim.cmd [[
augroup arduino
au BufRead,BufNewFile *.pde set filetype=arduino
au BufRead,BufNewFile *.ino set filetype=arduino
augroup END
]]
|
local HighlighterFactory = require("thetto.lib.highlight").HighlighterFactory
local jobs = require("thetto.lib.job")
local pathlib = require("thetto.lib.path")
local filelib = require("thetto.lib.file")
local listlib = require("thetto.lib.list")
local timelib = require("thetto.lib.time")
local modulelib = require("thet... |
--region modifier.lua
--Author : jefflwq
--Date : 2016/02/27
--说明 : 定义modifier关键字,可以用这个关键字定义用于class成员的修饰符
--用例 : public.static.const.A("111")
--endregion
using "Joop"
local rawset = rawset
local rawget = rawget
local Joop = Joop
local JStack = JStack
local keyword = keyword
local GetJoopTypeName =... |
GlobalUI = nil
function OnPackageStart()
ShowHealthHUD(true)
GlobalUI = CreateWebUI(0, 0, 0, 0, 5, 90)
SetWebAlignment(GlobalUI, 0.0, 0.0)
SetWebAnchors(GlobalUI, 0.0, 0.0, 1.0, 1.0)
SetWebVisibility(GlobalUI, WEB_HITINVISIBLE)
LoadWebFile(GlobalUI, "http://asset/"..GetPackageName()... |
require 'luacov'
local guard = require('guard')
local env = _ENV and _ENV or _G
context('require ("guard")', function()
test('returns the guard module', function()
assert_type(guard, 'table')
end)
test('it does not pollute the global environment', function()
assert_nil(env.guard)
end)
test('the module ... |
--
-- main.lua
-- Kochava Sample App
--
-- Copyright (c) 2016 Corona Labs Inc. All rights reserved.
--
local kochava = require( "plugin.kochava" )
local widget = require( "widget" )
local json = require("json")
-----------------------
-- Setup
-----------------------
display.setStatusBar( display.HiddenStatusBar )... |
local mod = get_mod("Rebalance")
--Create table for NewDamageProfileTemplates
NewDamageProfileTemplates = {}
--Include other files
--Weapons
mod:dofile("scripts/mods/FixMeta/rebalance/weapons.lua")
--Add the new templates to the DamageProfile templates
--Setup proper linkin in NetworkLookup
for key, _ in pairs(NewDa... |
local local0 = 0.3
local local1 = 0.5 - local0
local local2 = 0.5 - local0
local local3 = 0.5 - local0
local local4 = 0.5 - local0
local local5 = 0.5 - local0
local local6 = 0.5 - local0
local local7 = 0.5 - local0
local local8 = 0.5 - local0
local local9 = 0.5 - local0
local local10 = 0.5 - local0
local local11 = 1.5 ... |
local olua = {}
package.loaded['olua'] = olua
local scrpath = select(2, ...)
local osn = package.cpath:find('?.dll') and 'windows' or
((io.popen('uname'):read("*l"):find('Darwin')) and 'macosx' or 'linux')
if osn == 'windows' then
olua.HOMEDIR = os.getenv('TMP'):gsub('\\', '/') .. '/olua'
else
olua.HOMEDI... |
me = game.Players.robert147jansen
gui = Instance.new("ScreenGui")
gui.Parent = me.PlayerGui
gui.Name = "Kick"
pos = 135
pos2 = 10
pos3 = 0
enabled = false
button = Instance.new("TextButton")
button.Parent = gui
button.Size = UDim2.new(0, 100, 0, 30)
button.Position = UDim2.new(0, 8, 0, pos)
button.Text = "Kick"
butt... |
----------------------------------------
-- Layout Code -------------------------
----------------------------------------
--
-- In here, all the window elements are
-- created and positioned. This code is
-- pretty much standalone and should not
-- include any complicated handlers or
-- dependencies. It simply dra... |
-- Copyright (c) 2016 Thermo Fisher Scientific
--
-- 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, ... |
-- Utility methods for CombatObjects
--
-- See Also:
-- Callbacks-CombatObjects.lua
if nil ~= require then
require "fritomod/currying";
require "fritomod/Functions";
require "fritomod/CombatEvents";
end;
CombatObjects = CombatObjects or {};
do
-- Mapping of conventional names (like "Source" or "Spell") to the und... |
-- Circuit break if this plugin has already completed
if vim.b.did_local_ftplugin == true then
return 0
end
-- Show line numbers
-- These get reset by the global ftplugin
vim.o.number = true
vim.o.relativenumber = true
-- Navigate up with C-k
-- This gets overridden by the default mapping for C-k in help buffers
vim... |
local app = require('app')
local tap = require('util/tap')
local assert = require('assert')
describe("test all", function ()
assert.equal(app.appName(), 'user')
console.log('rootPath', app.rootPath)
console.log('nodePath', app.nodePath)
console.log('appName', app.appName())
console.log('target', app.getSys... |
data:extend({
{
type = "technology",
name = "sulfuric-acid-processing-2",
icon = "__base__/graphics/technology/sulfur-processing.png",
effects =
{
{
type = "unlock-recipe",
recipe = "sulfuric-acid3",
},
},
prerequisites = {"sulfuric-acid-processing-1"},
unit =
... |
include('shared.lua')
ENT.Spawnable = false
ENT.AdminSpawnable = false
ENT.RenderGroup = RENDERGROUP_OPAQUE
function ENT:Draw()
self.Entity:DrawModel()
end
|
ease = require("ease.ease")
local M = {}
M.xp = {}
M.xp_data_filename = "/xp/blank_data.lua"
M.xp_data = {}
M.initiated = false
M.verbose = false
local function catch(what)
return what[1]
end
local function try(what)
status, result = pcall(what[1])
if not status then
what[2](result)
end
return result
end
fu... |
-- Telescope
local M = {}
require("telescope").setup({
pickers = {
find_files = {
find_command = { "fd", "--type", "f", "--strip-cwd-prefix" },
},
git_files = {
shorten_path = true,
},
},
})
require("telescope").load_extension("fzy_native")
-- Launch mappings
vim.api.nvim_set_keymap(
"n",
"<Leader>... |
local t = Def.Sprite{
Texture=ddrgame,
};
return t |
Locales['en'] = {
-- 衣帽間
['cloakroom'] = '更衣室',
['citizen_wear'] = '民用服裝',
['police_wear'] = '警察制服',
['sheriff_wear'] = '警長制服',
['lieutenant_wear'] = '特警制服 ',
['commandant_wear'] = '聯邦警察',
['statepd_wear'] = '州警察制服',
['specops_wear'] = '特種部隊',
['open_cloackroom'] = '按 ~INPUT_CONTEXT~ 改變',
-- 軍械庫
... |
--
-- tests/oven/test_lists.lua
-- Test the Premake oven list handling.
-- Copyright (c) 2011-2012 Jason Perkins and the Premake project
--
T.oven_lists = { }
local suite = T.oven_lists
local oven = premake5.oven
--
-- Setup and teardown
--
local sln, prj
function suite.setup()
sln = solution("MySolution")
... |
require("prototypes/planner") |
------------------------------------------------------------------------------
-- lm_timed.lua:
-- Lua timed map feature markers.
------------------------------------------------------------------------------
require('dlua/lm_tmsg.lua')
require('dlua/lm_1way.lua')
TimedMarker = util.subclass(OneWayStair)
TimedMarker.... |
onEvent("Mouse", function(player, x, y)
TFM.movePlayer(player, x, y, false)
end) |
local window = require 'window'
local camera = require 'camera'
local fonts = require 'fonts'
local utils = require 'utils'
local Timer = require 'vendor/timer'
local anim8 = require 'vendor/anim8'
local HUD = {}
HUD.__index = HUD
local lens = love.graphics.newImage('images/hud/lens.png')
local chevron = love.graphic... |
-- Shake
-- Stephen Leitnick
-- December 09, 2021
--[=[
@within Shake
@type UpdateCallbackFn () -> (position: Vector3, rotation: Vector3, completed: boolean)
]=]
type UpdateCallbackFn = () -> (Vector3, Vector3, boolean)
local RunService = game:GetService("RunService")
local Trove = require(script.Par... |
local director = require( "director" )
local ui = require("ui")
local action = require("action")
local timer = require("timer")
local shape = require("shape")
local node = require("node")
local sprite = require("sprite")
local sound = require("sound")
local physics = require("physics")
local texture = require("texture"... |
for line in io.lines(arg[1]) do
local s, n = {}, {}
for i in line:gmatch("[^,]+") do
if i:find("^%d+$") then
n[#n+1] = i
else
s[#s+1] = i
end
end
if #s > 0 then
io.write(s[1])
for i = 2, #s do
io.write("," .. s[i])
end
if #n > 0 then io.write("|") end
end
if #n ... |
-- Lua 编程语言中 repeat...until 循环语句不同于 for 和 while循环,
-- for 和 while 循环的条件语句在当前循环执行开始时判断,而 repeat...until 循环的条件语句在当前循环结束后判断。
-- 相当于其它语言的do while
--[ 变量定义 --]
a = 10
--[ 执行循环 --]
repeat
print("a的值为:", a)
a = a + 1
until( a > 15 )
|
local skynet = require "skynet"
local socket = require "socket"
local cjson = require "cjson"
local json = cjson.new()
skynet.start(function ( )
skynet.fork(function ( )
local fd=socket.listen("0.0.0.0",8888)
socket.start(fd,function ( id,addr )
skynet.error(addr,"sdfsdfsdfdf")
skynet.fork(function ( )
... |
local loot_to_add = {"artifact-ore"}
function RampantAddLootToCategory(category, probability_per_tier, c_min, c_max)
for name, table_entry in pairs(data.raw[category]) do
v, t = string.match(name, "%-v(%d+)%-t(%d+)%-rampant")
if v ~= nil and t ~= nil then
if table_entry.loot == nil then
table_e... |
local L = LibStub("AceLocale-3.0"):NewLocale("ClassicCodex", "enUS", true, nil)
if not L then return end
L = L or {}
-- loader.lua
L['[ClassicCodex]'] = true
L['Missing component %s'] = true
L['Failed to load database, ClassicCodex cannot be launched'] = true
L['Failed to load database locales, ClassicCodex cannot b... |
-----------------------------------------------------------------------------------------------------------------------------------------
-- VRP UTILS
-----------------------------------------------------------------------------------------------------------------------------------------
local Tunnel = module("vrp", "... |
botchecker = {
cast = function(player)
player:popUp("<b>Please read this carefully or your character will be jailed.\n\nYour character is being checked for AFK hunting.\n\nIf you closed the window accidentally, please wait for the next one to appear.\n\nYou will have 180 seconds to respond to the messages.\n\nIf you... |
function onMoveCamera(focus)
if focus == 'boyfriend' then
-- called when the camera focus on boyfriend
if getPropertyFromObject('boyfriend', 'y') >= 450 then
doTweenX('scaleTweenX', 'boyfriend.scale', 1.5, 1, 'elasticInOut');
doTweenY('scaleTweenY', 'boyfriend.scale', 1.5, 1, 'elasticInOut');
doTweenY('bf... |
local DB = require("dashboard.model.db")
local stringy = require("orange.utils.stringy")
local ip_list_cache = ngx.shared.waf_ip_list
return function(config)
local model = {}
local mysql_config = config.store_mysql
local db = DB:new(mysql_config)
function model:get_ip_list(rule_id)
... |
-- Automatically generated file: Weapon Skills
return {
[1] = {id=1,en="Combo",ja="コンボ",element=6,icon_id=590,prefix="/weaponskill",range=2,skill=1,skillchain_a="Impaction",skillchain_b="",skillchain_c="",targets=32},
[2] = {id=2,en="Shoulder Tackle",ja="タックル",element=4,icon_id=591,prefix="/weaponskill",ra... |
for line in io.lines(arg[1]) do
local a, r = {}, {}
for i in line:gmatch("-?%d+") do
a[#a + 1] = tonumber(i)
end
local n = select(2, line:gsub("|", "|")) + 1
local m = #a/n
for i = 1, m do
r[i] = a[i]
end
for i = 2, n do
for j = 1, m do
if a[(i-1)*m + j] > r[j] then
r[j] = a[(i... |
-----------------------------------
-- Area: Pashhow Marshlands [S]
-- NM: Kinepikwa
-----------------------------------
require("scripts/globals/hunts")
mixins = {require("scripts/mixins/job_special")}
-----------------------------------
function onMobDeath(mob, player, isKiller)
tpz.hunts.checkHunt(mob, player... |
-------------------------------------------------------------------------------
-- Importing modules
-------------------------------------------------------------------------------
local Endpoint = require "elasticsearch.endpoints.Endpoint"
------------------------------------------------------------------------------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.