content stringlengths 5 1.05M |
|---|
function Test()
local pattern = [[
*** found 1 target(s)...
*** updating 1 target(s)...
@ UpperCaseRule all
-> THIS TEXT WILL BE UPPERCASE.
-> THIS TEXT WILL ALSO BE UPPERCASE IN THE OUTPUT.
@ LowerCaseRule all
-> this text will be lowercase.
@ Compiler all
c:/the/directory/filename.cpp(1000) This is an error messa... |
local gui = require "gui"
local chars = require("chars")
local factory = {}
function factory:new()
return setmetatable({
grid = {tiles={}, width=0, height=0},
camera = {x=0, y=0},
redrawAll = true,
}, {__index=factory})
end
function factory:load(grid)
self.grid.tiles = {}
self.grid.width = grid.width
self.... |
-- @Author:pandayu
-- @Version:1.0
-- @DateTime:2018-09-09
-- @Project:pandaCardServer CardGame
-- @Contact: QQ:815099602
local _M = function(role,data)
if not data.em or type(data.em) ~= "table" then return 2 end
local em = {}
for i=1,8 do
if not data.em[i] then return 2 end
em[i] = data.em[i]
end
role.army... |
package.path = package.path .. ";scripts/managers/name/?.lua"
DECLINED_DEVELOPER = 1;
DECLINED_FICT_RESERVED = 2;
DECLINED_PROFANE = 3;
DECLINED_RESERVED = 6;
require("species.bothan")
require("species.human")
require("species.ithorian")
require("species.moncal")
require("species.rodian")
require("species.sullustan")... |
Config = Config or {}
Config.PlayerSlot = 51
Config.DurabilityDecraseAmount = {
['WEAPON_PISTOL'] = 0.3,
}
Config.Shops = {
{
coords = vector3(316.3667, -200.783, 54.086),
blip = {
id = 52,
name = "Shop",
color = 5,
scale = 0.6,
... |
Ambi.General.Global = Ambi.General.Global or {}
-- • Я у кого-то слышал, что Color() записанный HEX числами быстрее, чем с десятичными
-- -------------------------------------------------------------------------------------
local rgb = Color
local C_DEFAULT = Color( 0x0, 0x0, 0x0 )
-- --------------------------------... |
local ContextActionService = game:GetService("ContextActionService")
local InputSystem = require(script.Parent.Parent.InputSystem)
local CAS_BIND_ACTION_NAME = "GamepadInputSystem"
local GAMEPAD_INPUT_BINDING_POSTFIXES = {
["BUTTONX"] = Enum.KeyCode.ButtonX;
["BUTTONY"] = Enum.KeyCode.ButtonY;
["BUTTON... |
include "luaClass.class.namespace"
_ENV=namespace "luaClass"
LProperty={}
LProperty.__index=LProperty
function LProperty:new(propertyName,readName,setName)
local object={
propertyName=propertyName;
readName=readName;
setName=setName;
}
setmetatable(object,LProperty)
return obje... |
Config = {}
Config.FishTime = {a = 20000, b = 44000}
Config.FishPrice = {a = 5, b = 20}
Config.TurtlePrice = {a = 250, b = 500}
Config.SharkPrice = {a = 500, b = 1000}
Config.SellFish = {x = -1845.8, y = -1196.8, z = 18.20}
Config.SellTurtle = {x = -220.16, y = -2665.81, z = 10.8}
Config.SellShark... |
if CPPI then return end
CPPI = {}
CPPI.CPPI_DEFER = 100100 --\100\100 = dd
CPPI.CPPI_NOTIMPLEMENTED = 7080
function CPPI:GetName()
return "DarkRP"
end
function CPPI:GetVersion()
return CPPI.CPPI_NOTIMPLEMENTED
end
function CPPI:GetInterfaceVersion()
return CPPI.CPPI_NOTIMPLEMENTED
end
function C... |
---------------------------------------------------------------
-- Copyright 2021 Deviap (https://deviap.com/) --
---------------------------------------------------------------
-- Made available under the MIT License: --
-- https://github.com/deviap/deviap-main/blob/master/LICENSE --
... |
local mqtt = require("mosquitto")
return function (config, body)
local client = mqtt.new()
client.ON_CONNECT = function()
client:publish(body.topic, body.payload, body.qos, body.retain)
end
client.ON_PUBLISH = function()
client:disconnect()
end
client:connect(config['mqtt_host'])
client:loop()
... |
local Controller = require('mvc.Controller')
local CreateBuildProgressBar = {}
function CreateBuildProgressBar.create(buildingName)
local app = require("app.App"):instance()
local buildings = app.session.buildings
local startTime = buildings[buildingName].time
if startTime ~= 0 then
--local tab = os.date("... |
-- Bonuses:
-- money_per_turn - more money per turn
-- science_per_turn - more science per turn
-- science_for_ally
-- population_increase - more population increase per turn
-- hiring_an_army_less
-- more_movement_points
-- trade
-- capital_defense
-- pay_less_for_an_army_in_an_ally_lands
-- consequence
-- army_defens... |
-----------------------------------
-- Area: Port Windurst
-- NPC: Kohlo-Lakolo
-- Invloved In Quests:
-- Truth, Justice, and the Onion Way!,
-- Know One's Onions,
-- Inspector's Gadget,
-- Onion Rings,
-- Crying Over Onions,
-- Wild Card,
-- The Promise
-----------------------------------
require("scripts/globals/tit... |
return {
{
effect_list = {
{
type = "BattleSkillFire",
casterAniEffect = "",
target_choise = "TargetHarmRandom",
targetAniEffect = "",
arg_list = {
weapon_id = 64691
}
},
{
type = "BattleSkillFire",
casterAniEffect = "",
target_choise = "TargetHarmRandom",
target... |
-- Enter your code here. Read input from STDIN. Print output to STDOUT
print("Hello, World.")
print(io.read()) |
--
-- Author: GeZiyang
-- Date: 2014-02-10
--
-- config
local flySpeed = 2.5
local flyOffset = 5
-- vars
g_flyTag = 1000
g_rateButton = nil
g_playButton = nil
g_rankButton = nil
cc.FileUtils:getInstance():addSearchPath("res/")
local textureAtlas = cc.Director:getInstance():getTextureCache():addImage("atlas.png")
... |
class 'i18n'
function i18n:new()
local lang = api.get("/settings/info").defaultLanguage
if not translations[lang] then
lang = 'en'
end
self.translations = translations[lang]
self.lang = lang
return self
end
function i18n:get(key, ...)
if self.translations[key] then
return s... |
local metadata =
{
plugin =
{
format = 'staticLibrary',
staticLibs = { },
frameworks = { "AppLovinMediationOguryPresageAdapter", "OguryAds", "OMSDK_Oguryco", "OguryChoiceManager", "OgurySdk" },
frameworksOptional = {},
},
}
return metadata
|
-- ... angular.lua
|
--[[Mana drain and damage part of Mana Break
Author: Pizzalol
Date: 16.12.2014.
NOTE: Currently works on magic immune enemies, can be fixed by checking for magic immunity before draining mana and dealing damage]]
function ManaBreak( keys )
if not keys.target:IsBuilding() and keys.target:GetMaxMana() > 0 then
Em... |
-- Copyright (C) 2018 DBot
-- 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,... |
require "Client.Scripts.Modulus.UIBase.Widget.__init"
require "Client.Scripts.Modulus.UIBase.UIInfo.__init"
require "Client.Scripts.Modulus.UIBase.Base.__init"
require "Client.Scripts.Modulus.UIBase.Mgr.UIMgr" |
--[[
Platform module
Platform module defines platform specific values.
]]
local platform = {}
--[[
The separator for directories on the platform.
Usually '/' on Linux and '\' on Windows.
]]
platform.dir_separator = _G.package.config:sub(1,1)
-- Boolean flag to if we are running on Windows
platform.is_windows = plat... |
class("MapInstance" , MapEditor)
function MapEditor.MapInstance:__init(objectsData)
MapEditor.mapInstance = self
self.objects = {}
-- Create all of our objects.
for index , objectData in ipairs(objectsData) do
-- Fix for Angle inaccuracy when sent to clients.
objectData.angle = Angle(table.unpack... |
--!
--! \addtogroup switch switch widget
--! \brief switch widget界面组件,实现开关控件。
--! @{
--!
local vg = require "vg"
local ui = require "ui"
return {
_animationSpeed = 0.1,
onInit=function(self,themes)
self:enableEvent(ui.EVENT_TOUCHDOWN+ui.EVENT_TOUCHUP+ui.EVENT_TOUCHDROP)
self:setSize(60,30)
self._color = themes... |
require 'torch'
require 'image'
require 'paths'
local utils = paths.dofile('utils.lua')
local cfg = paths.dofile('config.lua')
local limitPer = cfg.slicesPerGenre
local currentNum = 0
local genre
-- Creates slices from spectrogram
local function sliceSpectrogram(fn, size)
if currentNum > limitPer then -- skip tracks... |
local uci = require("luci.model.uci").cursor()
function uci_del_list(conf, sect, opt, value)
local lval = uci:get(conf, sect, opt)
if lval == nil or lval == "" then
lval = {}
elseif type(lval) ~= "table" then
lval = { lval }
end
local i
local changed = false
for i = #lval, 1 do
if lval[i] == ... |
--legend
--by draconisnz
size=36
bossrooms = {
"slime ranch",
"viper's nest",
"arachnid's lair",
"griffon's cave"
}
function roomname(room)
if room.g == "e" then
return "depth " .. depth
elseif room.g == "s" then
return "secret"
elseif room.g == "b" then
return bossrooms[depth]
elseif ro... |
AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Button"
ENT.WireDebugName = "Button"
function ENT:SetupDataTables()
self:NetworkVar( "Bool", 0, "On" )
end
if CLIENT then
local halo_ent, halo_blur
function ENT:Initialize()
self.PosePosition = 0.0
end
function ENT:Think()
b... |
return {
init_effect = "",
name = "中飞联动一Boss减伤",
time = 0,
picture = "",
desc = "",
stack = 1,
id = 8786,
icon = 8786,
last_effect = "",
effect_list = {
{
type = "BattleBuffAddAttr",
trigger = {
"onAttach"
},
arg_list = {
attr = "damageReduceFromAmmoType_2",
number = 0.2
}
}
}
... |
local importations = require(IMPORTATIONS)
local displayConstants = require(importations.DISPLAY_CONSTANTS)
local viewUtil = require(importations.VIEW_UTIL)
local i18n = require(importations.I18N)
local bodyManager = require(importations.BODY_MANAGER)
local BEAR_SCORE = 50
local TIGER_SCORE = 100
local BIRD_SCORE = 15... |
local common = require "core.common"
local config = require "core.config"
local style = require "core.style"
local DocView = require "core.docview"
local command = require "core.command"
-- originally written by luveti
config.whitespace_map = { [" "] = "·", ["\t"] = "»" }
config.draw_whitespace = true
local draw_lin... |
-- The while loop represents the game.
-- Each iteration represents a turn of the game
-- where you are given inputs (the heights of the mountains)
-- and where you have to print an output (the index of the mountain to fire on)
-- The inputs you are given are automatically updated according to your last actions.
-- g... |
data.raw["gui-style"].default["tnp_speechbubble"] = {
type = "speech_bubble_style",
label_style = {
type = "label_style",
parent = "label",
font = "default-bold",
font_color = { r = 255, g = 246, b = 113 },
minimal_width = 150,
maximal_width = 400
},
frame... |
CreateItemTable("AirDropCrate");
-- Called when the crate is initially dropped
--function AirDropCrate:OnDropped()
--Log("AirDropCrate - OnDropped")
--end
-- Called when the crate is close to landing - about 10m above the ground
-- This is when the crate is physicalized and falls due to gravity
--function AirDropCra... |
solution "lasev"
location("../build")
configurations { "Debug", "Release" }
configuration "Debug"
defines { "DEBUG" }
flags {"Symbols"}
configuration "Release"
defines { "NDEBUG" }
flags {"Optimize"}
project "lasev"
kind "StaticLib"
language "C"
targetdir "../lib"
files {"../lasev/*.h", "../... |
-- 向monitor节点报告本节点性能,状态等(已废置)
--
local skynet = require "skynet"
local cluster = require "skynet.cluster"
local info = require "bw.util.clusterinfo"
local conf = require "conf"
local bewater = require "bw.bewater"
local log = require "bw.log"
local print = log.print("report")
local function ... |
-- per-player upper half of ScreenEvaluation
local player = ...
return Def.ActorFrame{
Name=ToEnumShortString(player).."_AF_Upper",
OnCommand=function(self)
self:x(_screen.cx)
end,
-- nice
LoadActor("./nice.lua", player),
-- difficulty text and meter
LoadActor("./Difficulty.lua", player),
-- Record Text... |
TestConfiguration = {}
function TestConfiguration:setUp()
TestHighLevelBehaviour:bootstrapChecklist()
end
function TestConfiguration:testPanelOpensByDefaultInAnA320()
flyWithLuaStub:setPlaneIcao("A320")
local checklist = dofile("scripts/A320_checklist.lua")
flyWithLuaStub:bootstrapAllMacros()
flyW... |
---@class RDSTinFoilHat : zombie.randomizedWorld.randomizedDeadSurvivor.RDSTinFoilHat
RDSTinFoilHat = {}
---@public
---@param arg0 BuildingDef
---@return void
function RDSTinFoilHat:randomizeDeadSurvivor(arg0) end
|
addEvent( "onGhostDataReceive", true )
addEventHandler( "onGhostDataReceive", g_Root,
function( recording, bestTime, racer, mapName )
-- May be inaccurate, if recording is still being sent when map changes
--[[local currentMap = exports.mapmanager:getRunningGamemodeMap()
local mapName = getResourceName( current... |
return {'snaai','snaaien','snaak','snaaks','snaaksheid','snaar','snaarinstrument','snack','snackbar','snackbarhouder','snackcar','snak','snaken','snakerig','snakerij','snakken','snap','snapachtig','snaphaan','snappen','snapper','snapshot','snapster','snaredrum','snaren','snarenmaker','snarenspel','snarentheorie','snars... |
local UTC, parent = torch.class('nn.UnfoldedTemporalConvolution', 'nn.Module')
function UTC:__init(nin, nout, kw, dW, pad)
dW = dW or 1
assert(dW == 1, "nn.UnfoldedTemporalConvolution only supports dW = 1")
parent.__init(self)
self.linear = nn.Linear(kw*nin, nout)
-- sizes
self.kW = kw
se... |
require "moonscript.init"
|
return function(cutscene)
local kris = cutscene:getCharacter("kris")
local susie = cutscene:getCharacter("susie")
local ralsei = cutscene:getCharacter("ralsei")
if ralsei then
cutscene:text("* The power of [color:pink]test\ndialogue[color:reset] shines within\nyou.", "starwalker")
cuts... |
ITEM.name = "Cloth"
ITEM.description = "itemClothDesc"
ITEM.price = 1
ITEM.model = "models/mosi/fallout4/props/junk/components/cloth.mdl" |
getglobal game
getfield -1 Players
getfield -1 LocalPlayer
getfield -1 Agility
pushstring 500
setfield -2 Value
getglobal game
getfield -1 Players
getfield -1 LocalPlayer
getfield -1 Agility
pushstring true
setfield -2 RobloxLocked |
-- Franchi SPAS-12
if SERVER then
AddCSLuaFile( "shared.lua" )
resource.AddFile("materials/vgui/ttt/icon_bb_spas12.vmt")
resource.AddFile( "materials/models/weapons/v_models/v_shot_spas12/barrels.vmt" )
resource.AddFile( "materials/models/weapons/v_models/v_shot_spas12/barrels.vtf" )
resource.AddFile( "mater... |
local api = require("fromage")
local client = api()
local enumerations = client.enumerations()
coroutine.wrap(function()
client.connect("Username#0000", "password") -- Needs a connection for 'getProfile(nil)'
if client.isConnected() then
print("Account's profile:")
local myProfile, result = client.getProfile()... |
-- graph.lua
-- GRAPH VISUALIZATION OF BLOCK TREE
function hashstr(h)
return hex(h):sub(-8,-1)
end
function debug_html()
local n = {}
local e = {}
local bb = {}
for i = 1, #blockchain do
table.insert(bb, tostring(i) .. ": " .. hex(blockchain[i]))
end
-- GENESIS_HASH
local s
GH = hashstr(GENES... |
RegisterNetEvent('cnr:radio_receive')
RegisterNetEvent('cnr:push_notify')
local rolls = 1
AddEventHandler('onClientResourceStart', function(rname)
if rname == GetCurrentResourceName() then
TriggerEvent('chat:addTemplate', 'radioMsg',
'<font color="#0AF">**<b> [</font>'..'{0}<font color="#0AF">] {1}</b... |
return {
{
name = "2018-03-01-130000_init_wssekeys",
up = [[
CREATE TABLE IF NOT EXISTS wsse_keys(
id uuid,
consumer_id uuid,
key text,
secret text,
PRIMARY KEY (id)
);
CREATE IN... |
return {'apulisch','apulie','apulier'} |
cChallengeWindow = {}
cChallengeWindow.__index = cChallengeWindow
function cChallengeWindow.Open(a_Player)
local inv = cLuaWindow(cWindow.wtChest, 9, 4, GetLanguage(a_Player):Get("challenges.window.title"))
inv:SetOnClicked(cChallengeWindow.OnChallengeWindowClick)
cChallengeWindow.UpdateView(a_Player, inv:GetCon... |
#!/usr/local/bin/lua
-- lets it run immediately after unpacking the rock
-- before install.
package.path = package.path .. ";../?.lua"
local deimos = require "deimos"
---
-- Example usage of Deimos. This is sort-of real word: The actual
-- schema has a lot of proprietary stuff. Most of that was removed to
-- mak... |
---@meta
---@class cc.Action :cc.Ref
local Action={ }
cc.Action=Action
---* Called before the action start. It will also set the target. <br>
---* param target A certain target.
---@param target cc.Node
---@return self
function Action:startWithTarget (target) end
---* Set the original target, since target can be ... |
------------------------------------------------------------------------------------------------------------------------
-- Meta Player Storage Manager
-- Author Morticai (META) - (https://www.coregames.com/user/d1073dbcc404405cbef8ce728e53d380)
-- Date: 2021/1/7
-- Version 0.1.13
-------------------------------------... |
local AddonName, AddonTable = ...
AddonTable.triumvirate = {
-- Zuraal the Ascended
151304, -- subjugators-leggings
151300, -- handwraps-of-the-ascended
151291, -- frozen-void-shard
151312, -- ampoule-of-pure-void
151326, -- waistguard-of-bound-energy
151336, -- voidlashed-hood
151320, ... |
--[[
TheNexusAvenger
Implementation of a Cmdr command.
--]]
local CmdrCommand = require(script.Parent.Parent:WaitForChild("CmdrCommand"))
local Command = CmdrCommand:Extend()
--[[
Creates the command.
--]]
function Command:__new()
self:InitializeSuper()
self.Name = "exit"
self.Aliases = {}
self.De... |
----------------------------------------
--------------- Perkshop ---------------
----------------------------------------
------- Created by my_hat_stinks -------
----------------------------------------
-- vgui/perkshop.lua CLIENT --
-- --
-- Perkshop custom VGUI panels. ... |
tattoosShops = {
{1322.645, -1651.976, 52.275},
{-1153.676, -1425.68, 4.954},
{322.139, 180.467, 103.587},
{-3170.071, 1075.059, 20.829},
{1864.633, 3747.738, 33.032},
{-293.713, 6200.04, 31.487},
{-1220.6872558594, -1430.6593017578, 4.3321843147278},
{-1115.3640136719, -1658.7386474609, 4.3555798530579... |
-- This software is licensed under the M.I.T. license.
-- The license text is found in "license.txt"
--
require "Environment"
require "Parser"
require "LispInterpreter"
Lisp.readEval() |
--This script contains all test cases for a parameter consisting of an array of enums
--How to use:
--1. local arrayEnumParameter = require('user_modules/shared_testcases/testCasesForArrayEnumParameter')
--2. arrayEnumParameter:verify_Array_Enum_Parameter(Request, Parameter, Boundary, ElementExistentValues, Mandatory... |
--- Module implementing the luarocks "download" command.
-- Download a rock from the repository.
local cmd_download = {}
local util = require("luarocks.util")
local download = require("luarocks.download")
function cmd_download.add_to_parser(parser)
local cmd = parser:command("download", "Download a specific rock ... |
--[[
// FileName: NetworkPause.lua
// Written by: woot3
// Description: Code for network pausing during streaming enabled.
]]
-- SERVICES
local PlayerService = game:GetService("Players")
local CoreGuiService = game:GetService("CoreGui")
local StarterGuiService = game:GetService("StarterGui")
local RunService = game... |
local events = {
["Night"] = { elona_id = 107 },
["Insult"] = { elona_id = 108 },
["Kiss"] = { elona_id = 109 },
["Choco"] = { elona_id = 110 },
["Discipline"] = { elona_id = 111 },
["DisciplineOff"] = { elona_id = 112 },
["DisciplineEat"] = { elona_id = 113 },
... |
--[[
Title: the screen manages the layout of sub areas
Author(s): LiXizhi
Date: 2010.10.25
Desc: each window can have one screen layout at most, and the screen manages the layout of sub areas
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/apps/Taurus/Editors/Screen/screen... |
local LS = ChatSuey.Locales["zhCN"].Strings;
LS["Timestamps"] = "时间戳";
LS["Use 24 hour clock"] = "24小时制";
LS["Include seconds"] = "秒钟";
LS["Use consistent color"] = "颜色";
|
local skynet = require 'skynet'
local sysinfo = require 'utils.sysinfo'
local lfs = require 'lfs'
local cancelable_timeout = require 'cancelable_timeout'
local class = {}
local function list_leds()
local list = {}
local os_id = sysinfo.os_id()
if os_id == 'openwrt' then
local leds_path = '/sys/class/leds'
if l... |
local vmf
-- Global variable indicating which version of the game is currently running
VT1 = not pcall(require, "PlayFab.json")
-- Native mod object used by Fatshark mod manager
local vmf_mod_object = {}
-- ##############################################################################################################... |
tmr.delay(1000000)
dofile("Func.lc")
dofile("main.lc")
|
local modules = require(game:GetService("ReplicatedStorage"):WaitForChild("modules"))
local network = modules.load("network")
item = {
--> identifying information <--
id = 253;
--> generic information <--
name = "Pear";
rarity = "Common";
image = "rbxassetid://2661683979";
description = "A ripe pear bu... |
--アラドヴァルの影霊衣
--Nekroz of Areadbhair
--LUA by Kohana Sonogami
function c100270014.initial_effect(c)
c:EnableReviveLimit()
--Cannot Special Summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e... |
local _, ns = ...
if ns.locale ~= "esMX" then return end
local L = ns.L
-- [[ Main Addon ]] --
-- L.OptionsLoadAfterCombat = 'Options will be loaded after combat!'
-- L.AuraAdded = 'Spell "%s" (%d) was added to the aura filter.'
-- L.AuraExists = 'Spell "%s" (%d) already exists'
-- L.Anchors_Unlocked = "Frames unlock... |
--imports
local WIM = WIM;
local _G = _G;
local PlaySoundFile = PlaySoundFile;
local SML = _G.LibStub:GetLibrary("LibSharedMedia-3.0");
local SOUND = SML.MediaType.SOUND;
local string = string;
local math = math;
local GetCVar = GetCVar;
local SetCVar = SetCVar;
--set namespace
setfenv(1, WIM);
db_defaults.sounds = {... |
local U = require "togo.utility"
local P = require "Pickle"
local Core = require "core/Core"
local Page = require "core/Page"
local NavItem = require "core/NavItem"
local M = U.module("Section")
M.tpl_url = [[<a target="_blank" href="%s">%s</a>]]
M.tpl_ref = [[<span class="para-ref" id="%s"><a href="#%s"></a></span>]... |
function os.version()
return "CubeOS 1.1","CubeOS",1.1
end
|
local sia = {}
local https = require("ssl.https")
local airac = require("airac")
local path = require("path")
local fs = require("path.fs")
local BASE_URL_SIA = "https://www.sia.aviation-civile.gouv.fr"
local MONTH_EN = {"JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC"}
... |
-- a way to fetch screen metrics
function init()
--function update()
local c = widget.bindCanvas("c")
local mp = c:mousePosition()
sb.logInfo(string.format("mouse pos %f %f", mp[1], mp[2]))
--sb.logInfo("update called")
pane.dismiss()
end
|
function CreateProgressBar(infoMessage, Time_in_second, statusMessage)
--if LocalPlayer():IsModerator() then return end
RunConsoleCommand("-forward")
RunConsoleCommand("-back")
RunConsoleCommand("-moveleft")
RunConsoleCommand("-moveright")
if statusMessage ~= "" then
net.Start("VBNET_ChangeStatue")
... |
local Pipe = {}
Pipe.__index = Pipe
-- Default Pipe img
function Pipe.addDefault( self, path )
self.img = love.graphics.newImage( path )
self.WIDTH = self.img:getWidth()
self.HEIGHT = self.img:getHeight()
end
function Pipe:new(x, y)
local p = {}
setmetatable( p, Pipe )
p.x = x or 0
p.y = y or 0
retu... |
ENT.Type = "anim"
ENT.Base = "base_rd3_entity"
ENT.PrintName = "Suit Dispenser"
list.Set("LSEntOverlayText", "other_dispenser", { resnames = { "oxygen", "energy", "water", "liquid nitrogen" } })
|
-- Set Nonlip
Client.Subscribe("KeyPress", function(key_name)
local char = Client.GetLocalPlayer():GetControlledCharacter()
if not char then return end
-- Set noclip
if key_name == "C" then
Events.CallRemote("LL_SetNoclip")
end
if not char:GetValue("LL_Noclip") then return end
... |
function update()
local dir = vec2()
nearest = GetNearest(ENT_PLAYER)
if nearest then
local pos = GetPos()
local otherPos = GetPos(nearest)
dir = (otherPos - pos):norm()
local fire = GetNearest(ENT_FIRE)
if fire then
local angle = AngleTo(nearest, fire)... |
--[[ MOB SPAWN LIST
mob(<mob_spawner_alias>, <mob_id>, <mob_count>, <spawner_limit>, <spawn_interval>, <spawner_range>, <map_id>, <x_pos>, <y_pos>, <z_pos>);
--]]
mob("", 111, 1, 1, 20, 20, 2, 5118.95, 5530.95, -3.2);
mob("", 135, 1, 1, 30, 20, 2, 4991.54, 5523.25, -6.21);
mob("", 111, 1, 1, 20, 60, 2, 5101.14, 5482.... |
RegisterNetEvent("caue-heists:complete")
AddEventHandler("caue-heists:complete", function(pValue)
local src = source
local cid = exports["caue-base"]:getChar(src, "id")
if not cid then return end
exports["caue-financials"]:updateCash(src, "+", pValue)
end) |
-- CORE_FUSION_EXPLO_1920
return {
["core_fusion_explo_1920"] = {
usedefaultexplosions = false,
groundflash = {
circlealpha = 4,
circlegrowth = 27,
flashalpha = 2.4,
flashsize = 1920,
ttl = 38,
color = {
[1] = 1,
... |
Shaders = Shaders or {}
-- Depends on log.lua
function Shaders.Compile(shaderCode, shaderName)
local shader = gl.CreateShader(shaderCode)
if not shader then
local shaderLog = gl.GetShaderLog(shader)
Log.Error("Errors found when compiling shader: " .. tostring(shaderName))
Log.Error(shad... |
local SweepBuf = require'sweepbuf'
local sb1 = SweepBuf.new("abcdefghijklmnopqrstuvwzyz\r\n")
print(sb1)
local sb2 = SweepBuf.new("0123456789")
print(sb2)
local sb3 = sb1 + sb2
print(sb3)
if sb1 <= sb2 then
print("SB1 LESER")
end
if sb2 <= sb1 then
print("SB2 LESER")
end
|
-- Routine for NPC "Timo"
velocity = 40
loadRoutine = function(R, W)
R:setTilePosition(21, 13)
R:goToTile(15,13)
R:goToTile(15,11)
R:goToTile(18,11)
R:goToTile(18,7)
R:goToTile(4,7)
R:goToTile(4,4)
R:goToTile(3.5,4.5)
R:setFacingDown()
... |
util.AddNetworkString("ixClothesSet")
util.AddNetworkString("ixClothesClear")
local function DropHat(client, model, itemID, dir)
local entity = ents.Create("ix_item")
entity:Spawn()
entity:SetItem(itemID)
if (IsValid(client)) then
entity.ixSteamID = client:SteamID()
entity.ixCharID = client:GetCharacter():Get... |
--Safenet library, another secure modem messages library
--By Rami Sabbagh (RamiLego4Game)
--== Embedded libraries ==--
--A SHA-256 library, returns a hex string, from http://www.computercraft.info/forums2/index.php?/topic/8169-sha-256-in-pure-lua/
local sha256 = loadstring("local a=2^32;local b=a-1;local function c(... |
local shader = {};
shader.Exceptions = {"HumanoidRootPart"};
local function removeUnnecessaryBits(model)
for _, v in ipairs(model:GetDescendants()) do
if not v:IsA("BasePart") and not v:IsA("SpecialMesh") then
v:Destroy();
end
end
end
local function createPartWeld(part0, part1) --part0 is the shader part an... |
copCars = {
[427] = true,
[490] = true,
[528] = true,
[523] = true,
[596] = true,
[597] = true,
[598] = true,
[599] = true,
[601] = true }
function onCopCarEnter(thePlayer, seat)
if (seat < 2) and (thePlayer==getLocalPlayer()) then
local model = getElementModel(source)
if (copCars[model]) then
setRadioChannel(... |
local time = 0.0
client.register_callback("create_move", function ()
local realtime = globalvars.get_real_time()
if realtime >= time then
engine.execute_client_cmd("takingfire")
time = realtime + 0.1
end
end) |
local module = {}
local HttpService = game:GetService("HttpService")
local BACKUP_CREDITS = {}
local CREDITS_URL = "https://raw.githubusercontent.com/va1kio/commander/main/src/server/SystemPackages/GetCredits/Credits.json"
function module.get()
local success, result = pcall(function()
return HttpService:GetAsync(... |
local DynamicLibrary = TargetPrototype( 'DynamicLibrary' );
function DynamicLibrary.create( toolset, identifier )
local identifier, filename = toolset:dynamic_library_filename( identifier );
local target = toolset:Target( identifier, DynamicLibrary );
target:set_filename( filename or target:path() );
... |
if modifier_huskar_inner_vitality_lua == nil then
modifier_huskar_inner_vitality_lua = class({})
end
--[[
Author: Bude
Date: 30.09.2015.
Checks target health every interval and adjusts health regen accordingly
]]--
function modifier_huskar_inner_vitality_lua:IsBuff()
return 1
end
function modifie... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.