content stringlengths 5 1.05M |
|---|
object_tangible_quest_som_berken_marker_04 = object_tangible_quest_shared_som_berken_marker_04:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_som_berken_marker_04, "object/tangible/quest/som_berken_marker_04.iff")
|
local function iter(o)
local list = o.list
end
local function getLayer(o, v)
return v.layer
end
local function new()
local o = {}
o.list = nil
o.next_id = 1
o.iter = iter
end
local function remove()
end |
-- Download a Roblox asset to a local file.
--
-- e.g. rbxmk run download-asset.rbxmk.lua 1818 Crossroads.rbxl
local id, output = ...
local asset = rbxassetid.read({
AssetID = id,
Format = "bin",
})
fs.write(output, asset, "bin")
|
local PLUGIN = PLUGIN
PLUGIN.name = "개선된 3인칭 시점 추가 (New Fancy Third Person)"
PLUGIN.author = "Tensa / Black Tea"
PLUGIN.desc = "3인칭 시점을 사용할 수 있게 합니다."
PLUGIN.base = true;
PLUGIN:IncludeDir("language");
nut.util.Include("cl_plugin.lua"); |
--[[
Guildpanel - Locale/language.es.lua
Traducido por Intar del gremio Glamhoth, servidor Sciath ES
Thanks to Juki for the UTF-8 ASCII Table
à : \195\160 è : \195\168 ì : \195\172 ò : \195\178 ù : \195\185
á : \195\161 é : \195\169 í : \195\173 ó : \195\179 ú : \195\186
â : \195\162 ... |
require("config")
require("module")
require("common")
local chosenFile=Fltk.chooseFile("Choose a file to convert", "../dump", "*.jpg", false)
chosenFile=os.absoluteToRelativePath(chosenFile)
local _, path=os.processFileName(chosenFile)
local files=os.glob(path.."/*.jpg")
table.sort(files)
if files[1]:sub(-9)~='00000.... |
local platform = require 'bee.platform'
local subprocess = require 'bee.subprocess'
local isWindows = platform.OS == 'Windows'
local isMingw = os.getenv 'MSYSTEM' ~= nil
local isWindowsShell = (isWindows) and (not isMingw)
local shell = {}
function shell:add_readonly(filename)
if isWindowsShell then
os.e... |
function Class(base)
local cls = {}
-- Check if this is a subclass and if so, copy over all methods from base
if base and type(base) == 'table' then
for i, e in pairs(base) do
cls[i] = e
end
cls._base = base
end
cls.__index = cls
-- Constructor for objects of this class
local mt = {
__ca... |
-- -------------------------------------------------------------------------------------
-- Including Standard Awesome Libraries
local awful = require("awful")
local gears = require("gears")
local beautiful = require("beautiful").startscreen.volume
-- ------------------------------------------------------------------... |
Locales['es'] = {
['actions'] = 'Acciones',
['boss_menu'] = 'Menu de jefe',
['money_generic'] = '$%s',
['deposit_amount'] = 'Cantidad a depositar',
['deposit_society_money'] = 'Depositar dinero en la sociedad',
['do_you_want_to_recruit'] = 'Quieres contratar a a... |
data:extend({
-- polluted tile
{
type = "tile",
name = "waste",
collision_mask = {"ground-tile"},
layer = 35,
variants =
{
main =
{
{
picture = "__waste-processing__/graphics/terrain/waste1.png",
count = 16,
size = 1
},
{
... |
-- This script runs on a torpedo launcher and on a torpedo; it launches
-- the torpedo from the launcher, then guides the torpedo.
-- It is "polymorphic" in that it runs on both entities.
-- If the taskParamter parentLauncher (a name) is "-", then the
-- script assumes it is running on
-- Some basic VRF Utilities def... |
-- *****************************************************************
-- TÖVE - Animated vector graphics for LÖVE.
-- https://github.com/poke1024/tove2d
--
-- Copyright (c) 2018, Bernhard Liebl
--
-- Distributed under the MIT license. See LICENSE file for details.
--
-- All rights reserved.
-- **************************... |
local ls = require 'luasnip'
-- some shorthands...
local snippet = ls.snippet
local snippet_node = ls.snippet_node
local text_node = ls.text_node
local insert_node = ls.insert_node
local function_node = ls.function_node
local choice_node = ls.choice_node
local dynamic_node = ls.dynamic_node
local lambda = require('luas... |
pg = pg or {}
pg.battle_environment_behaviour_template = {
[10000] = {
id = 10000,
name = "默认状态无",
behaviour_list = {}
},
[105] = {
id = 105,
name = "火山示例",
behaviour_list = {
{
life_time = 3,
damage = 20,
type = 2,
reload_time = 0.5,
offset = 5
},
{
shake_ID = 999,
r... |
local fs = require('efmls-configs.fs')
-- TODO:
-- This formatter leave it's tooling information
-- at the line. Check for workarounds, if possible.
local formatter = 'fecs'
local args = 'format --silent --ignore --stream ${INPUT}'
local command = string.format('%s %s', fs.executable(formatter, fs.Scope.NODE), args)
... |
require("nvim-treesitter.configs").setup {
rainbow = {
enable = true,
extended_mode = true,
max_file_iles = nil
}
}
|
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local testEz = require(game.testez)
local TestBootstrap = testEz.TestBootstrap
local Reporter = testEz.Reporters.TextReporterQuiet
TestBootstrap:run({ReplicatedStorage}, Reporter, {}) |
local editor = {}
local conf = require("modules.editor.config")
editor["windwp/nvim-autopairs"] = {
event = "InsertCharPre",
after = "nvim-cmp",
config = conf.nvim_autopairs,
}
editor["norcalli/nvim-colorizer.lua"] = {
ft = { "html", "css", "sass", "vim", "typescript", "typescriptreact" },
config = conf.nvim_col... |
---@class text
local text = {
}
---@type text
_G.text = _G.text or text
---@class text_asset
local text_asset = {
---@type text
content = nil
}
---@type text_asset
_G.text_asset = _G.text_asset or text_asset
|
local fio = require('fio')
local t = require('luatest')
local g = t.group()
local utils = require('test.utils')
local helpers = require('test.helper')
g.before_each(function()
t.skip_if(type(helpers) ~= 'table', 'Skip cartridge test')
g.cluster = helpers.init_cluster()
end)
g.after_each(function()
g.clus... |
require("@vue/runtime-dom")
local triggerEvent = function(type, el)
local event = Event(type)
el:dispatchEvent(event)
end
local withVModel = function(node, arg, mods)
withDirectives(node, {{vModelDynamic, arg, '', mods}})
end
local setValue = function(this, value)
self.value = value
end
local root = nil
bef... |
local mil_ad = {}
local MIL_AD = {
LFBC="cazaux",
LFBM="montdemarsan",
LFKS="solenzara",
LFMO="orange_caritat",
LFOA="avord",
LFOE="evreux_fauville",
LFPV="villacoublay_velizy",
LFQE="etain_rouvres",
LFQP="phalsbourg_bourscheid",
LFSI="saintdizier_robinson",
LFS... |
return {
version = "1.1",
luaversion = "5.1",
tiledversion = "0.11.0",
orientation = "orthogonal",
width = 20,
height = 20,
tilewidth = 8,
tileheight = 8,
nextobjectid = 2,
properties = {},
tilesets = {
{
name = "tiles",
firstgid = 1,
tilewidth = 8,
tileheight = 8,
... |
---------------------------------------
-- VARIABLES
---------------------------------------
--get the addon namespace
local addon, ns = ...
--get the config values
local cfg = ns.cfg
local classcolor = RAID_CLASS_COLORS[select(2, UnitClass("player"))]
local dominos = IsAddOnLoaded("D... |
ITEM.name = "Wrench"
ITEM.desc = "A rusty wrench"
ITEM.model = "models/props_c17/tools_wrench01a.mdl"
ITEM.width = 1
ITEM.height = 1
ITEM.money = {2, 6} |
--[[
--=====================================================================================================--
Script Name: MVP Join Alerts, for SAPP (PC & CE)
Description: This mod will automatically broadcast a special message when an MVP joins!
Each MVP can have a unique message!
Supports... |
-- Must keep only correct spellings.
local hom = {
['กด'] = {'กช','กฎ','กด'},
['กน'] = {'กน','กล'},
['กอ'] = {'ก','ก.','กอ'},
['กอบ'] = {'กอบ','กอปร'},
['กอ-ระ-กด'] = {'กรกช','กรกฎ','กรกฏ'},
['กะ-บิน'] = {'กบินทร์','กบิล','กะบิล'},
['กะ-โบน'] = {'กโบร','กโบล'},
['กะ-ปิ'] = {'กปิ','กะปิ'},
['กะ-มะ-ลาด'] = {'ก... |
local exports = {
"configurationerror",
"dictfull",
"dictstackoverflow",
"dictstackunderflow",
"execstackoverflow",
"handleerror",
"interrupt",
"invalidaccess",
"invalidexit",
"invalidfileaccess",
"invalidfont",
"invalidrestore",
"ioerror",
"limitcheck",
"noc... |
-- Copyright (c) 2018, xiedacon.
local cjson = require "cjson"
_G.Array = require "utility.array"
_G.Object = require "utility.object"
_G.String = require "utility.string"
_G.Function = require "utility.function"
_G.utility = require "utility"
_G.test = function(v1, v2, skip)
if type(v1) == "table" then v1 = cjso... |
function OpenMenuTouches()
---- // ## Crée par Stax ## \\ ----
local touches = RageUI.CreateMenu("Touches", "Touches du serveur")
RageUI.Visible(touches, true)
while touches do
Citizen.Wait(0)
RageUI.IsVisible(touches, function()
for k,v in ipairs(config.touches) do
... |
local function Msg(param)
reaper.ShowConsoleMsg(tostring(param).."\n")
end
CC = {
ppqpos = 0,
chanmsg = 0,
chan = 0,
msg2 = 0,
msg3 = 0,
isMuted = false,
isSelected = false,
isInitialized = false,
shape = 0,
beztension = 0,
qn = 0,
qnInFigure = -1,
positionBetwe... |
set_project("libffi")
add_rules("mode.debug", "mode.release")
add_rules("utils.install.cmake_importfiles")
set_configvar("PACKAGE", "libffi")
set_configvar("PACKAGE_NAME", "libffi")
set_configvar("PACKAGE_TARNAME", "libffi")
set_configvar("PACKAGE_BUGREPORT", "")
set_configvar("PACKAGE_URL", "")
option("vers")
... |
local oven_fs = "size[8,7]"
.."image[3.5,1.5;1,1;default_furnace_fire_bg.png]"
.."list[current_player;main;0,3;8,4;]"
.."list[context;input;2,1.5;1,1;]"
.."list[context;output;5,1.5;1,1;]"
.."label[3,0.5;Oven]"
.."label[1.5,1;Uncooked Food]"
.."label[4.5,1;Cooked Food]"
-- possibly add "... |
-- Start Gameplay Thread
Helpers.StartGameplay(LocalPlayer)
-- Packet Handlers
Helpers.PacketHandler('player:Restrain', function(data)
if (data.RestraintType == 0) then -- cuffs
LocalPlayer.ToggleCuffs()
elseif (data.RestraintType == 1) then -- ankle cuffs
LocalPlayer.ToggleAnkleCuffs()... |
-- Catalan Number series implementation
-- See: http://en.wikipedia.org/wiki/Catalan_number
-- Utility functions
-- Returns the factorial of a given number
local function fact(n)
return n == 0 and 1 or n*fact(n-1)
end
-- Memoizes a function
local function memoize(f)
local _cache = {}
return function (v)
lo... |
local A_1 = "XBoostPack"
local A_2 = -100000000
local A_3 = "Backpack"
local Event = game:GetService("ReplicatedStorage").Purchase
Event:FireServer(A_1, A_2, A_3) |
local easing = require("easing")
--
-- Adapted from
-- Shank2 / Ninja CameraShake.cpp
--
local FullShakeDeltas =
{
--------------------------------------------------------------------------
-- 4
-- 7 1
-- 2 S 6
-- 5 3
-- 0
-------------------------------------------------------------------... |
local Timer = {}
Timer._mt = {
__index = Timer
}
function Timer:new(duration, callback)
local instance = {}
setmetatable(instance, Timer._mt)
instance.duration = duration or 1
instance.currentTime = 0
instance.callback = callback
return instance
end
function Timer:update(deltaTime)
self.currentTime = ... |
return function()
local sortCounterClockwise = require(script.Parent.sortCounterClockwise)
it("should sort a list of points in counterclockwise order", function()
-- https://www.desmos.com/calculator/atvolzmilh
local points = {
Vector2.new(5, 2),
Vector2.new(2, 3),
Vector2.new(8, 4),
-- Bigger Y coo... |
-- test vectors from milagro
print("TEST HOMOMORPHIC ADDITION VECTORS")
function runtest()
assert( multiparty.add(N, CIPHERTEXT1, CIPHERTEXT2) == CIPHERTEXT )
end
TEST = "0"
N = "59f668761d66864604a05a647ce112452830f0426d02e4141781c7431eb1845c2ed32ea93150fb3b8c17553629edc84fab77080e4200b815f338aaa58fa030a4b562f43d5... |
local config = require("teema.config")
local colors = require("teema.colors").setup(config)
local teema = {}
teema.normal = {
a = { bg = colors.green, fg = colors.black },
b = { bg = colors.fg_gutter, fg = colors.green },
c = { bg = colors.bg_statusline, fg = colors.fg_sidebar },
}
teema.insert = {
a = { bg ... |
return {'tyfeus','tyfoon','tyfus','tyfuslijder','tyfushond','tyfeuze','tyfoons','tyfuslijders'} |
require "Global"
local UI_CardPoolPlayer = {}
function UI_CardPoolPlayer:Construct()
CommandMap:AddCommand("GetPlayerChooseID", self, self.GetPlayerChooseID)
CommandMap:AddCommand("PopAndPushOneCardForPlayer", self, self.PopAndPushOneCardForPlayer)
CommandMap:AddCommand("PopOneCardForPlayer", self, self.P... |
-------- Settings
local Title = "Luacheck in editor"
local Info = { --luacheck: no unused
Author = "Shmuel Zeigerman";
Guid = "DD595F2F-CCB2-4188-BCD0-B1AB98B80DB6";
MinFarVersion = "3.0.3300";
Started = "2020-09-13";
Title = Title;
}
-------- /Settings
local OptFileName = ".... |
makeglobal()
dirsep "\\"
makeglobal_end()
supportedplatforms
{
"NT",
"Windows",
}
defines
{
"PLATFORM_WINDOWS",
"WIN32",
"_CRT_SECURE_NO_WARNINGS",
"_WINDOWS",
}
exedirs
{
"!$(DXSDK_DIR)Utilities\\bin\\x86",
}
includedirs
{
"!$(DXSDK_DIR)Include",
}
libdirs
{
"!$(DXSDK_DIR)Lib\\x86",
}
libs
{
"ker... |
--[[
Consider the first example of Section 17.6 which creates a table with a finalizer that only prints a message when activated. What happens if the program ends without a collection cycle? What happens if the program calls os.exit? What happens if the program ends with some error?
]]
--[[
lua e17_2_no_collection.... |
-- 2020 (c) kontakt@herrsch.de
local getn = table.getn or function(t) return #t end -- Lua > 5.1 idom
local hotload = require "hotload"
local class = hotload "class"
local KVStorage = hotload "kvstorage"
local Authority = hotload "authority"
local permission_groups = Authority()
local User = class(Authority)
-- @ad... |
require ("lib.lclass.init")
class "FocusLost"
function FocusLost:FocusLost ()
end
|
describe("EepFunktionen.lua", function()
require("ak.core.eep.AkEepFunktionen")
it("EEPVer steht auf \"15\"", function()
assert.are.equals(15, EEPVer)
end)
it("print() Funktion ", function()
clearlog()
end)
describe("EEPSetSignal", function()
describe("setzt Signal 2 a... |
-- extendable particle class
c_particle = {
p = vec2(0, 0),
v = vec2(0, 0),
f = vec2(0, 0),
m = 1,
dt = 0.025,
lastpos = vec2(0, 0),
g = 0,
c = 7,
spr = 0,
damp = 0,
time = 0,
life = 10,
new = function(self, o)
local o = o or {}
setmetatable(o, self)
self.__index = self
return o
end,
-- standard ... |
local Water = {}
Water.__index = Water
setmetatable(Water, {
__tostring = function(t) return "water" end,
__call = function (cls, ...)
local self = setmetatable({}, cls)
self:_new(...)
return self
end,
})
function Water:_new(x, y, width, height, color, tension, dampening, spread)
self.x = x
... |
local ui_path = tostring(...):sub(1, -6)
local Object = require(ui_path .. 'classic/classic')
local Base = require(ui_path .. 'Base')
local Closeable = require(ui_path .. 'Closeable')
local Container = require(ui_path .. 'Container')
local Draggable = require(ui_path .. 'Draggable')
local Resizable = require(ui_path ..... |
-- // rBuffFrameStyler
-- // zork - 2010
-----------------------------
-- INIT
-----------------------------
--get the addon namespace
local addon, ns = ...
--generate a holder for the config data
local cfg = CreateFrame("Frame")
-----------------------------
-- CONFIG
-----... |
--
local setmetatableindex_
setmetatableindex_ = function(t, index)
if type(t) == "userdata" then
error('not supported')
else
local mt = getmetatable(t)
if not mt then
mt = {}
end
if not mt.__index then
mt.__index = index
setmetatable(... |
User = game.Players.rigletto
t = Instance.new("Tool", User.Backpack)
h = Instance.new("Part", t)
h.Name = "Handle"
h.Shape = "Ball"
h.BrickColor = BrickColor.new("Really black")
h.Size = Vector3.new(1,1,1)
t.Activated:connect(function()
local mo = Instance.new("Model", workspace)
mo.Name = ""
local hu = Instance.new("H... |
function Tears2TearDelay(Tears)
if Tears <= 0.77 then
return 16 - 6 * Tears
elseif Tears < 0 then
return 16 - 6 * math.sqrt( Tears * 1.3 + 1 ) - 6 * Tears
else
return 16 - 6 * math.sqrt( Tears * 1.3 + 1 )
end
end
function TearDelay2Tears(TearDelay)
if TearDelay <= 10 then
return ( ( - ( TearDelay - 16 ) ... |
local class = require "xgame.class"
local UILayer = require "xgame.ui.UILayer"
local UIView = require "xgame.ui.UIView"
local ScrollBase = class("ScrollBase", UILayer)
function ScrollBase:ctor()
self.cobj.clippingEnabled = true
self._childrenBounds = false
end
function ScrollBase:hitChildren(points)... |
if not data then data = { raw = require("data-raw") } end
if not log then
log = function(s) print(s) end
end
local function deep_equals(a, b)
local ta, tb = type(a), type(b)
if ta ~= tb then
return false
elseif ta == "table" then
for k in pairs(b) do
if a[k] == nil then
return false
... |
local M = {}
local vim = vim
local function hrtime()
return vim.loop.hrtime() / 1000000000
end
local relative_j_time = hrtime()
local relative_k_time = hrtime()
local press_fre = 0
function M.move_j()
if vim.v.count > 1 then
vim.cmd("normal! " .. vim.v.count .. "gj")
return
end
if
hrtime() - ... |
---@class IsoMetaGrid.VehicleZone : zombie.iso.IsoMetaGrid.VehicleZone
---@field public VZF_FaceDirection short
---@field public dir IsoDirections
---@field public flags short
IsoMetaGrid_VehicleZone = {}
---@public
---@return boolean
function IsoMetaGrid_VehicleZone:isFaceDirection() end
|
CreateListCategory( "Fog", "<insert description>" )
CreateListFunction( "Fog", "Toggle fog of war on or off." )
CreateListArgument( "activation", "bool", "true turns fog on, false turns it off." )
function Fog( activation )
GE_SetFogActive( activation )
end
CreateListFunction( "FogOff", "Toggle fog of war off... |
local function GetDayOfTheWeek(seconds)
local Week = math.floor((seconds - (86400 * 3)) / 604800)
local Day = math.floor((seconds - (86400 * 3)) / 86400)
local DaysBeforeThisWeek = Week * 7
local DayOfTheWeek = Day - DaysBeforeThisWeek
return DayOfTheWeek,Day
end
game.ReplicatedStorage.Click.OnServerEvent:conne... |
local dadPos = {}
local bfPos = {}
function onCreatePost()
if not middlescroll then
for i=0,3 do
table.insert(dadPos, getPropertyFromGroup('opponentStrums', i, 'x'))
table.insert(bfPos, getPropertyFromGroup('playerStrums', i, 'x'))
end
for i=1,4 do
... |
me = game.Players.xSoulStealerx
gs = 25
function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
part.Parent = parent
part.formFactor = form
part.CanCollide = collide
part.Transparency = tran
part.Reflectance = ref
part.Size = Vector3.new(x,y,z)
part.BrickColor = BrickColor.new(color)
part.TopSurf... |
--[[
Chat log printing / output functions
Author: Ragnarok.Lorand
--]]
local lor_chat = {}
lor_chat._author = 'Ragnarok.Lorand'
lor_chat._version = '2016.09.10.0'
require('lor/lor_utils')
_libs.req('maths', 'strings', 'tables')
_libs.lor.req('functional', 'strings', 'tables')
_libs.lor.chat = lor_chat
local ... |
function love.conf(t)
t.title = "Scrolling Shooter Tutorial" -- The title of the window the game is in (string)
t.version = "0.10.2" -- The LÖVE version this game was made for (string)
t.window.width = 480 -- we want our game to be long and thin.
t.window.height = 640
t.window.icon = "assets/plane.... |
local mod_stairs = minetest.get_modpath("stairs") ~= nil
local mod_dye = minetest.get_modpath("dye") ~= nil
local S = sickles.i18n
local colors = {
{ dye = "dark_green" },
{ hex = "#894adb70", name = "purple", dye = "violet" },
{ hex = "#6c7eb070", name = "blue", dye = "cyan" },
{ hex = "#bcc56770", name = "yello... |
DONATOR_COLOR = {}
DONATOR_COLOR[0] = {255, 255, 255} -- Not a donator
DONATOR_COLOR[1] = {135, 20, 20} -- IMBA Lead-Developer
DONATOR_COLOR[2] = {100, 20, 20} -- IMBA Developer
DONATOR_COLOR[3] = {0, 102, 255} -- Administrator
DONATOR_COLOR[4] = {220, 40, 40} -- Ember Donator
DONATOR_COLOR[5] = {218, 165, 32} -- Golde... |
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
--
-- This file is compatible with Lua 5.3
local class = require("class")
require("kaitaistruct")
local str_decode = require("string_decode")
--
-- See also: Source (http://id3.org/id3v2.4.0-structure)
-- See also: So... |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
util.AddNetworkString( "DrawDerma" )
-- Function that runs when you spawn the entity
function ENT:Initialize()
self:SetModel("models/props_c17/Frame002a.mdl") -- Sets ent model
self:PhysicsInit(SOLID_VPHYSICS) -- Sets the physics of the ... |
local nnoremap = vim.keymap.nnoremap
local neuron = require "neuron"
if vim.fn.executable "neuron" == 1 then
neuron.setup {
virtual_titles = true,
mappings = true,
run = function()
vim.cmd [[set textwidth=80]]
vim.cmd [[set spell]]
nnoremap {
"<C-]>",
function()
... |
local state
local gameStates = {}
gameStates.menu = {
bindings = {
backToGame = function() state = gameStates.gameLoop end,
scrollUp = function() --[[<...>]] end,
scrollDown = function() --[[<...>]] end,
select = function() --[[<...>]] end,
},
keys = {
escap... |
local Util = {}
local pairs = pairs
--[[- Checks if a value is in the specified table.
This is for scanning unsorted lists/dictionary tables by using a pairs() loop.
@tparam table thisTable table to check
@tparam any value data value to look for
@treturn bool
@usage local result = Util.tableContains({"a", "b", "c"... |
local ObjectManager = require("managers.object.object_manager")
deathWatchWorkshopDroidConvoHandler = conv_handler:new {}
function deathWatchWorkshopDroidConvoHandler:getInitialScreen(pPlayer, pNpc, pConvTemplate)
local convoTemplate = LuaConversationTemplate(pConvTemplate)
if (CreatureObject(pPlayer):hasScreenPla... |
RegisterNetEvent("ps:missiontext")
AddEventHandler("ps:missiontext", function(text, time)
ClearPrints()
SetTextEntry_2("STRING")
AddTextComponentString(text)
DrawSubtitleTimed(time, 1)
end)
RegisterCommand("getpos", function(source, args, raw)
local ped = GetPlayerPed(PlayerId())
loca... |
--------------------------------------------------------------------------------
-- Handles fading out frames when not moused over
-- Necessary since using the blizzard fading functions can cause issues in combat
--------------------------------------------------------------------------------
local _, Addon = ...
loc... |
function is_start_with_number(str)
return string.find(str, "^%d") and true or false
end
print(is_start_with_number("6asdf")) -- true
print(is_start_with_number("asdf")) -- false
|
data:extend({
{
type = "recipe",
name = "sbs-arithmetic-combinator",
energy_required = 25,
enabled = "false",
ingredients =
{
{"arithmetic-combinator", 1},
{"iron-gear-wheel", 1}
},
result = "sbs-arithmetic-combinator"
},
{
type = "recipe",
name = "sbs-decider-c... |
------------------------------------------------------------------------
--- @file percg.lua
--- @brief (percg) utility.
--- Utility functions for the percg_header structs
--- Includes:
--- - percg constants
--- - percg header utility
--- - Definition of percg packets
--------------------------------------------------... |
include("shared.lua")
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
function ENT:Initialize()
self.BaseClass.Initialize(self)
local weptab = {
Initialize = function(self, pos, ang)
local ent = DRONES_REWRITE.Weapons["Template"].InitializeNoDraw(self)
ent.NoSelecting = true
ent.RespawnRocket = f... |
object_tangible_collection_reward_col_reward_heroic_exar_kun_lost_journal = object_tangible_collection_reward_shared_col_reward_heroic_exar_kun_lost_journal:new {
}
ObjectTemplates:addTemplate(object_tangible_collection_reward_col_reward_heroic_exar_kun_lost_journal, "object/tangible/collection/reward/col_reward_hero... |
-- Event notes hooks
function onEvent(name, value1, value2)
if name == 'ded' then
removeLuaSprite('ded'); -- i dont if this work or shit i havent tested it
end
end |
Locales['fr'] = {
-- global menus
['not_enough_in_society'] = 'Il n\'y à plus assez ~r~de cet objet~s~ dans la societé!',
['player_cannot_hold'] = 'Vous n\'avez ~r~pas~s~ assez ~y~d\'espace~s~ dans votre inventaire!',
['vehicle_belongs'] = 'La Moto avec la plaque ~y~%s~s~ ... |
slot0 = class("RollingBallConst")
slot0.grid_width = 143
slot0.grid_height = 134
slot0.vertical = 5
slot0.horizontal = 6
slot0.grid_type_amount = 6
slot0.moveSpeed = 43
slot0.downTime = 7000
slot0.gameTime = 60000
slot0.finishGameTime = 180000
return slot0
|
Objects = {
createObject (8411,2140,579.5,-54,0,0,0),
createObject (8411,2139.9004,604.90039,-54,0,0,0),
createObject (8411,2202.40039,604.90039,-54,0,0,0),
createObject (8411,2202.40039,579.5,-54,0,0,0),
createObject (3330,2188.4004,618.09961,20.1,0,0,179.995),
createObject (3330,2209.7998,618.5,20,0,0,179.995),
creat... |
local TApplicationException = require 'thrift.TApplicationException'
local TApplicationExceptionType = require 'thrift.TApplicationExceptionType'
describe('TApplicationException', function()
it('constructs', function()
local e = TApplicationException:new(nil, TApplicationExceptionType.BAD_SEQUENCE_ID)
asser... |
require "libs.lua.table"
function addRecipeCategory(name)
if not data.raw["recipe-category"][name] then
data:extend({
{
type = "recipe-category",
name = name
}
})
end
end
-- Should be called only in data-final-fixes
function addCategorySupportsNew(category,newCategory)
for group,entityList in pai... |
--[[=========================================
_ _ _
| | | | | | /\ /\
| | | | | | / \ _ __ _ __ / \ _ __ ___
| | | | | |/ /\ \ | '_ \| '_ \ / /\ \ | '__/ __|
| |___| |__| / ____ \| |_) | |_) / ____ \| | | (__
|______\____/_/ \_\ .__/| .__/_/ \_\_| \___|
Scripting Pro... |
return {
version = "1.1",
luaversion = "5.1",
tiledversion = "1.1.4",
orientation = "orthogonal",
renderorder = "right-down",
width = 24,
height = 18,
tilewidth = 16,
tileheight = 16,
nextobjectid = 2,
properties = {},
tilesets = {
{
name = "NewTilemap",
firstgid = 1,
filen... |
function PROVIDER:GetData(ply, callback)
return callback(ply:GetPData('PS_Points', 0), util.JSONToTable(ply:GetPData('PS_Items', '{}')))
end
function PROVIDER:SetData(ply, points, items)
ply:SetPData('PS_Points', points)
ply:SetPData('PS_Items', util.TableToJSON(items))
end |
-- écriture d'un script dans un fichier et l'exécute
-- zf180717.1517
jj = [[
print("toto")
print("tutu")
]]
file.open("toto1518.lua","w")
file.write(jj)
file.close()
dofile("toto1518.lua")
|
local sti = require ("sti")
local Assets = require('Assets')
local CLASS = require('Class')
local NavGraph = require('NavGraph')
local World = CLASS()
function World:init()
--physics world set up
self.meter = 32
self.left = 1*self.meter
self.right = 40*self.meter
self.top = 1*self.meter
sel... |
if not minetest.get_modpath("loot") then
return
end
loot.register_loot({
weights = { generic = 300 },
payload = {
stack = ItemStack("ropes:ropesegment"),
min_size = 1,
max_size = 50,
},
})
if ropes.ropeLadderLength > 0 then
loot.register_loot({
weights = { generic = 150 },
payload = {
stack = ItemStack(... |
-- Here is an example of the most common used configuration functions
-- For more in-depth use of premake, refer to the online documentation:
-- https://github.com/premake/premake-core/wiki
-- Here is an example of the most common used configuration functions
-- For more in-depth use of premake, refer to the online doc... |
-- ////////////////////////////////////
-- // MYSQL //
-- ////////////////////////////////////
sqlUsername = exports.mysql:getMySQLUsername()
sqlPassword = exports.mysql:getMySQLPassword()
sqlDB = exports.mysql:getMySQLDBName()
sqlHost = exports.mysql:getMySQLHost()
sqlPort = exports.mysql:getMySQLPort()... |
local key = KEYS[1]
local client_id = tostring(ARGV[1])
local expire_time = ARGV[2]
local operate_flag = ARGV[3]
local old_val = redis.call("get",key)
local function add_lock(key, client_id, expire_time)
redis.call('set', key, client_id)
redis.call('expire', key, expire_time)
return true
end
if old_val
th... |
--Edits term.current
local oldTerm = term.current()
function fix()
term.redirect(oldTerm)
end
local newTerm = {
write = function(s)
oldTerm.write(s)
sendMSG("write:" .. s)
end
}
|
local M = {}
function M:init()
pprint('init import not found')
end
function M:start()
pprint('start import not found')
local demo2 = import_contract 'not_found'
if demo2 then
error("import not found contract should return nil")
else
error("successfully import not found contract as nil")
... |
local me = game.Players.chriswwefan
local wand = Instance.new("Tool")
wand.Parent = me.Backpack
wand.Name = "Wand"
wand.GripPos = Vector3.new(0, -1, 0)
local hand = Instance.new("Part")
hand.Parent = wand
hand.Name = "Handle"
hand.BrickColor = BrickColor.new("Dark orange")
hand.Size = Vector3.new(1, 3.6, 1)
ha... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.