repo_name
stringlengths
6
78
path
stringlengths
4
206
copies
stringclasses
281 values
size
stringlengths
4
7
content
stringlengths
625
1.05M
license
stringclasses
15 values
nimaghorbani/dozdi9
plugins/get.lua
613
1067
local function get_variables_hash(msg) if msg.to.type == 'chat' then return 'chat:'..msg.to.id..':variables' end if msg.to.type == 'user' then return 'user:'..msg.from.id..':variables' end end local function list_variables(msg) local hash = get_variables_hash(msg) if hash then local names =...
gpl-2.0
hacker44-h44/megasatan
plugins/Spammer.lua
42
75166
local function run(msg) if msg.text == "[!/]spam" then return "".. [[ ...
gpl-2.0
CrazyEddieTK/Zero-K
LuaRules/Configs/cai/brains.lua
5
6458
local CMD_PRIORITY = 34220 -- The "brains" implement the high level reasoning of the AI. -- Takes inputs such as economy status, own units by cost, enemy scouted units by cost. -- Outputs factory and constructor job weights function constructionAndEconomyHandler(a, at, frame) --Note: all "chance" variable have conti...
gpl-2.0
CrazyEddieTK/Zero-K
scripts/cloakskirm.lua
3
4332
include "constants.lua" local hips = piece 'hips' local chest = piece 'chest' local gun = piece 'gun' local muzzle = piece 'muzzle' local exhaust = piece 'exhaust' local turner = piece 'turner' local aimpoint = piece 'aimpoint' local gunemit = piece 'gunemit' local thigh = {piece 'lthigh', piece 'rthigh'} local shin ...
gpl-2.0
luvit/lit
libs/pkg.lua
2
5466
--[[ Copyright 2014-2015 The Luvit Authors. All Rights Reserved. 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 o...
apache-2.0
czfshine/Don-t-Starve
data/scripts/brains/spiderbrain.lua
1
3405
require "behaviours/chaseandattack" require "behaviours/runaway" require "behaviours/wander" require "behaviours/doaction" require "behaviours/avoidlight" require "behaviours/panic" require "behaviours/attackwall" require "behaviours/useshield" local RUN_AWAY_DIST = 10 local SEE_FOOD_DIST = 10 local SEE_TARGET_DIST = ...
gpl-2.0
aviationphoto/AircraftMetadata-Lightroom-Plugin
aircraft-metadata.lrplugin/Utilities.lua
1
6609
--[[---------------------------------------------------------------------------- Utilities.lua This file is part of LR Aircraft Metadata. Copyright(c) 2017, aviationphoto LR Aircraft Metadata is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by th...
gpl-3.0
czfshine/Don-t-Starve
ZeroBraneStudio/src/editor/menu_project.lua
1
16252
-- Copyright 2011-15 Paul Kulchenko, ZeroBrane LLC -- authors: Lomtik Software (J. Winwood & John Labenski) -- Luxinia Dev (Eike Decker & Christoph Kubisch) --------------------------------------------------------- local ide = ide local frame = ide.frame local menuBar = frame.menuBar local openDocuments = ide.openDocu...
gpl-2.0
Jordach/Vox
mods/farming/nodes.lua
1
4684
minetest.override_item("default:dirt", { groups = {crumbly=3,soil=1}, soil = { base = "default:dirt", dry = "farming:soil", wet = "farming:soil_wet" } }) minetest.override_item("default:dirt_with_grass", { groups = {crumbly=3,soil=1}, soil = { base = "default:dirt_with_grass", dry = "farming:soil", we...
lgpl-2.1
ImLiam/Lua-Collections
tests.lua
1
24553
Collection = require "collections" --- Dump and die (for debugging purposes) function dd(value) if type(value) == 'table' then print(Collection:tableToString(value)) elseif type(value) == 'string' then print('"' .. value .. '"') else print(value) end os.exit() end --- Asser...
mit
CrazyEddieTK/Zero-K
effects/ariel.lua
25
6283
-- ariel_splosh -- ariel_gurgle -- ariel_fizz_bubble -- ariel_splash -- ariel_fizz -- torplosion return { ["ariel_splosh"] = { splosh = { air = true, class = [[CSimpleParticleSystem]], count = 1, ground = true, water ...
gpl-2.0
timroes/awesome
spec/gears/matrix_spec.lua
11
6564
--------------------------------------------------------------------------- -- @author Uli Schlachter -- @copyright 2015 Uli Schlachter --------------------------------------------------------------------------- local matrix = require("gears.matrix") local cairo = require("lgi").cairo describe("gears.matrix", functio...
gpl-2.0
CrazyEddieTK/Zero-K
LuaUI/Widgets/camera_lockcamera.lua
6
21078
-- $Id$ local versionNumber = "v2.8" function widget:GetInfo() return { name = "LockCamera", desc = versionNumber .. " Allows you to lock your camera to another player's camera.\n" .. "/luaui lockcamera_interval to set broadcast interval (minimum 0.25 s).", author = "Evil4Zerggin", date = "16 January 2009...
gpl-2.0
victorperin/tibia-server
data/lib/SvargrondArenaQuest.lua
1
13087
--[[ TODO - Include PITS and ARENA table in SvargrondArena -> SvargrondArena.arenas / SvargrondArena.pits - Restructure PITS and ARENA table (reward.storage does not seem to be used) ]] SvargrondArena = { -- action ids have to be equal to action id of reward doors actionGreenhorn = 26100, actionScrapper = 2710...
apache-2.0
woftles/Opengario
blobs.lua
1
4108
Blob = class() Blobs = List.new() function Blob:init(pos, volume, id) local numVertices = 64 self.id = id self.pos = pos self.velocity = Vector2.new() self.volume = volume self.radius = math.sqrt(volume/math.pi) * 10 self.vertices = {} self.tweenedVertices = {} self.controlVec = Vector2.new() --Distances fr...
gpl-2.0
timroes/awesome
spec/gears/cache_spec.lua
22
1875
--------------------------------------------------------------------------- -- @author Uli Schlachter -- @copyright 2015 Uli Schlachter --------------------------------------------------------------------------- local cache = require("gears.cache") describe("gears.cache", function() -- Make sure no cache is clear...
gpl-2.0
nonconforme/Urho3DEditor
Prime/Data/Data/LuaScripts/27_Urho2DPhysics.lua
1
6053
-- Urho2D physics sample. -- This sample demonstrates: -- - Creating both static and moving 2D physics objects to a scene -- - Displaying physics debug geometry require "LuaScripts/Utilities/Sample" local scene_ = nil local cameraNode = nil function Start() -- Execute the common startup for samples S...
mit
czfshine/Don-t-Starve
ZeroBraneStudio/lualibs/metalua/compiler/parser/meta.lua
11
5899
------------------------------------------------------------------------------- -- Copyright (c) 2006-2014 Fabien Fleutot and others. -- -- All rights reserved. -- -- This program and the accompanying materials are made available -- under the terms of the Eclipse Public License v1.0 which -- accompanies this distributi...
gpl-2.0
elvinzeng/nwf
nwf_modules/db_postgres/DbTemplate.lua
2
6569
--[[ title: NPL web framework dbTemplate author: links date: 2017/3/6 method: dbTemplate.execute dbTemplate.executeWithReleaseCtrl dbTemplate.executeWithTransaction dbTemplate:queryList dbTemplate:queryFirst ]] local dbTemplate = commonlib.gettable("nwf.modules.db_postgres.dbTemplate"); local connectionMa...
mit
CrazyEddieTK/Zero-K
LuaRules/Gadgets/api_saveload.lua
1
39084
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- HOW TO USE -- - see http://springrts.com/wiki/Lua_SaveLoad -- - tl;dr: /save -y <filename> to save to Spring/Saves -- remove the -y to not overwrite --...
gpl-2.0
CrazyEddieTK/Zero-K
LuaRules/Utilities/unitDefReplacements.lua
5
7264
------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- local buildTimes = {} local planetwarsStructure = {} local variableCostUnit = { [UnitDefNames["terraunit"].id] = true } for i = 1, #UnitDefs do ...
gpl-2.0
zhujunsan/nodemcu-firmware
lua_examples/ucglib/GT_color_test.lua
30
1027
local M, module = {}, ... _G[module] = M function M.run() -- make this a volatile module: package.loaded[module] = nil print("Running component color_test...") local mx local c, x mx = disp:getWidth() / 2 --my = disp:getHeight() / 2 disp:setColor(0, 0, 0, 0) disp:drawBox(0, 0, ...
mit
iranddos/yagop
plugins/img_google.lua
660
3196
do local mime = require("mime") local google_config = load_from_file('data/google.lua') local cache = {} --[[ local function send_request(url) local t = {} local options = { url = url, sink = ltn12.sink.table(t), method = "GET" } local a, code, headers, status = http.request(options) return tabl...
gpl-2.0
TimSimpson/Macaroni
Next/Tests/Bugs/3/manifest.lua
2
1348
upper = getUpperLibrary(); id = { group=upper.Group, name= upper.Name .. ".3", version="0.1.0.14", author="Tim Simpson" } dependency {group="Macaroni", name="Boost-smart_ptr", version="1.46.1"} dependency {group="Macaroni", name="CppStd", version="2003"} description= [[ There is something wrong wi...
apache-2.0
CrazyEddieTK/Zero-K
scripts/cloakaa.lua
6
4730
include 'constants.lua' local head = piece 'head' local hips = piece 'hips' local lshoulder = piece 'lshoulder' local lbcover = piece 'lbcover' local ltcover = piece 'ltcover' local rshoulder = piece 'rshoulder' local rbcover = piece 'rbcover' local rtcover = piece 'rtcover' local chest = piece 'chest' local ...
gpl-2.0
grodzik/awesomeWM-scripts
usermenu.lua
1
2497
function game_start(game) awful.tag.viewonly(tags[1][7]) awful.util.spawn(game) end programmingmenu = { { "Vim", terminal .. " -e vim" }, { "gVim", "gvim" }, { "MySQL-Workbench", "mysql-workbench" }, { "MySQL-Workbench-bin", "mysql-workbench-bin" } } netmenu = { { "Skype", "skype" }, {...
gpl-3.0
blueyed/awesome
tests/test-menubar.lua
1
2105
-- Test the menubar local runner = require("_runner") local menubar = require("menubar") local menubar_refreshed = false local orig_refresh = menubar.refresh function menubar.refresh(...) menubar_refreshed = true orig_refresh(...) end -- XXX We are building Lua 5.3 with -DLUA_USE_APICHECK=1 and this catches ...
gpl-2.0
czfshine/Don-t-Starve
data/scripts/components/dynamicmusic.lua
1
6093
local DynamicMusic = Class(function(self, inst) self.inst = inst self.inst:StartUpdatingComponent(self) self.enabled = true self.is_busy = false self.busy_timeout = 0 self.playing_danger = false self.is_winter = false self.inst:ListenForEvent( "gotnewitem", function() sel...
gpl-2.0
mamadtnt/erfan
plugins/webshot.lua
919
1473
local helpers = require "OAuth.helpers" local base = 'https://screenshotmachine.com/' local url = base .. 'processor.php' local function get_webshot_url(param) local response_body = {} local request_constructor = { url = url, method = "GET", sink = ltn12.sink.table(response_body), header...
gpl-2.0
omidtarh/fire
plugins/webshot.lua
919
1473
local helpers = require "OAuth.helpers" local base = 'https://screenshotmachine.com/' local url = base .. 'processor.php' local function get_webshot_url(param) local response_body = {} local request_constructor = { url = url, method = "GET", sink = ltn12.sink.table(response_body), header...
gpl-2.0
czfshine/Don-t-Starve
data/scripts/prefabs/panflute.lua
1
1280
local assets= { Asset("ANIM", "anim/pan_flute.zip"), } local function onfinished(inst) inst:Remove() end local function HearPanFlute(inst, musician, instrument) if inst.components.sleeper then inst.components.sleeper:AddSleepiness(10, TUNING.PANFLUTE_SLEEPTIME) end end local function fn(Sim) local inst...
gpl-2.0
CrazyEddieTK/Zero-K
LuaUI/Widgets/gui_iconheight.lua
15
6634
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Icon Height", desc = "Displays icons for all units at once, depending on camera height", a...
gpl-2.0
czfshine/Don-t-Starve
data/scripts/prefabs/rock_light.lua
1
7253
require "prefabutil" local assets = { Asset("ANIM", "anim/rock_light.zip"), } local prefabs = { "character_fire", } local MAXWORK = 6 local MEDIUM = 4 local LOW = 2 local function SetWorkLevel( inst, workleft ) dprint(string.format("SetWORKLEVEL: left=%d, state=%d",workleft,inst.state)) if ins...
gpl-2.0
jconst/SoundDrop
slave.lua
1
5050
FreeAllRegions() FreeAllFlowboxes() SERVER_IP = "192.168.1.60" local log = math.log timeSinceTrigger = 0 timeSinceFlashToggle = 0 flashlightOn = false shouldFlash = false playKick = false function string:split( inSplitPattern, outResults ) if not outResults then outResults = { } end local theStart = 1 lo...
mit
czfshine/Don-t-Starve
data/scripts/map/room_functions.lua
1
2953
local function RunCA(id, entities, data) --print(id.." RunCa", data.iterations, data.seed_mode, data.num_random_points) WorldSim:RunCA(id, data.iterations, data.seed_mode, data.num_random_points) if data.translate ~= nil then local points_x, points_y, points_type = WorldSim:GetPointsForSite(id) if #points_x ...
gpl-2.0
fuzzycow/ev3dev-lang
lua/ev3dev.lua
3
25295
-- -- lua API to the sensors, motors, buttons, LEDs and battery of the ev3dev -- Linux kernel for the LEGO Mindstorms EV3 hardware -- -- Copyright (c) 2014 - Franz Detro -- -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by ...
gpl-2.0
timroes/awesome
spec/wibox/widget/textbox_spec.lua
14
3797
--------------------------------------------------------------------------- -- @author Uli Schlachter -- @copyright 2015 Uli Schlachter --------------------------------------------------------------------------- local textbox = require("wibox.widget.textbox") describe("wibox.widget.textbox", function() local widg...
gpl-2.0
czfshine/Don-t-Starve
data/scripts/prefabs/nightmarelight.lua
1
6206
local assets = { Asset("ANIM", "anim/rock_light.zip"), } local prefabs = { "nightmarelightfx", } local function ReturnChildren(inst) for k,child in pairs(inst.components.childspawner.childrenoutside) do if child.components.combat then child.components.combat:SetTarget(nil) end...
gpl-2.0
samijon/m
plugins/stats.lua
866
4001
do -- Returns a table with `name` and `msgs` local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_prin...
gpl-2.0
dani-sj/danyalrobot
plugins/stats.lua
866
4001
do -- Returns a table with `name` and `msgs` local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_prin...
gpl-2.0
mohammad8/lionbot
plugins/stats.lua
866
4001
do -- Returns a table with `name` and `msgs` local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_prin...
gpl-2.0
czfshine/Don-t-Starve
data/scripts/prefabs/flint.lua
1
1054
local assets= { Asset("ANIM", "anim/flint.zip"), } local function shine(inst) inst.task = nil inst.AnimState:PlayAnimation("sparkle") inst.AnimState:PushAnimation("idle") inst.task = inst:DoTaskInTime(4+math.random()*5, function() shine(inst) end) end local function fn(Sim) local inst = CreateEnti...
gpl-2.0
mohammad8/lionbot
plugins/groupmanager.lua
5
11273
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if not is_admin(msg) then return "You're not admin!" end local group_creator = msg.from.print_name create_group_chat (group_cr...
gpl-2.0
czfshine/Don-t-Starve
data/scripts/components/emitter.lua
1
1585
local Emitter = Class(function(self, inst) self.inst = inst self.area_emitter = function() print("no emitter") end self.config = {} self.max_lifetime = 1 self.ground_height = 1 self.particles_per_tick = 1 self.num_particles_to_emit = 1 self.density_factor = 1 end) function Emitter:Emit() --print("Emit...
gpl-2.0
victorperin/tibia-server
data/npc/scripts/Padreia.lua
1
2945
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg)...
apache-2.0
credosemi/smartsnmp
mibs/icmp.lua
2
3956
-- -- This file is part of SmartSNMP -- Copyright (C) 2014, Credo Semiconductor Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 2 of the License, or -- (at your optio...
gpl-2.0
CrazyEddieTK/Zero-K
units/amphlaunch.lua
3
3712
unitDef = { unitname = [[amphlaunch]], name = [[Lobster]], description = [[Amphibious Launcher Bot]], acceleration = 0.2, activateWhenBuilt = true, brakeRate = 0.4, buildCostMetal = 340, buildPic = [[amphlaunch....
gpl-2.0
nvoron23/tarantool
test/sophia/crud.test.lua
2
1240
-- insert space = box.schema.space.create('test', { engine = 'sophia' }) index = space:create_index('primary', { type = 'tree', parts = {1, 'num'} }) sophia_dir()[1] for key = 1, 132 do space:insert({key}) end t = {} for key = 1, 132 do table.insert(t, space:get({key})) end t -- replace/get for key = 1, 132 do spac...
bsd-2-clause
kevdoran/nifi-minifi-cpp
thirdparty/civetweb-1.10/test/html_esc.lua
10
4611
htmlEscape = { "&#x263a;", "&#x263b;", "&#x2665;", "&#x2666;", "&#x2663;", "&#x2660;", "&#x2022;", -- ASCII 1-7 (symbols for control characters, see code page 437) "&#x25d8;", "&#x25cb;", "&#x25d9;", "&#x2642;", "&#x2640;", "&#x266a;", "&#x266b;", "&#x263c;", -- ASCII 8-15 "&#x25ba;", "&#x25c4;", "&#x2...
apache-2.0
unusualcrow/redead_reloaded
entities/effects/immolate/init.lua
1
1711
function EFFECT:Init(data) self.DieTime = CurTime() + 5 self.SmokeTime = 0 self.Ent = data:GetEntity() if not IsValid(self.Ent) then self.DieTime = 0 return end self.Emitter = ParticleEmitter(self.Ent:GetPos()) if LocalPlayer() ~= self.Ent then return end LocalPlayer():EmitSound("ambient/fire/ignite.wav"...
mit
blueyed/awesome
lib/gears/string.lua
3
3506
--------------------------------------------------------------------------- --- String module for gears -- -- @module gears.string --------------------------------------------------------------------------- local gstring = {} local xml_entity_names = { ["'"] = "&apos;", ["\""] = "&quot;", ["<"] = "&lt;", [">"] = "&gt...
gpl-2.0
rzh/mongocraft
world/Plugins/TransAPI/main.lua
7
1934
-- This plugin copyright Alexander Harkness 2013, licensed under the MIT license. -- Configuration g_ServerLang = "en" g_ConsoleLang = "en" -- Global Variables g_Plugin = nil g_PluginDir = "" g_DataLoc = "" g_UserData = nil -- START WITH DA AWESOME! function Initialize( Plugin ) -- Set u...
apache-2.0
mamadtnt/erfan
plugins/minecraft.lua
624
2605
local usage = { "!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565", "!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.", } local ltn12 = require "ltn12" local function mineSearch(ip, port, receiver) --25565 local responseText = "" l...
gpl-2.0
spectrec/tntlua
queue.lua
5
16289
-- -- Implementation of queueing API. -- -- A task in a queue can be in one of the following states: -- READY initial state, the task is ready for execution -- DELAYED initial state, the task will become ready -- for execution when a timeout expires -- TAKEN the task is being worked on -- BURI...
bsd-2-clause
blueyed/awesome
tests/examples/wibox/widget/calendar/month.lua
2
1747
local parent = ... --DOC_HIDE_ALL local wibox = require("wibox") --DOC_HIDE local beautiful = require( "beautiful" ) --DOC_HIDE local Pango = require("lgi").Pango --DOC_HIDE -- Beautiful fake get_font --DOC_HIDE local f = Pango.FontDescription.from_string("monospace 10") --DOC_HIDE beautiful.get_font = func...
gpl-2.0
AllAboutEE/nodemcu-firmware
lua_examples/yet-another-dht22.lua
65
2195
------------------------------------------------------------------------------ -- DHT11/22 query module -- -- LICENCE: http://opensource.org/licenses/MIT -- Vladimir Dronnikov <dronnikov@gmail.com> -- -- Example: -- print("DHT11", dofile("dht22.lua").read(4)) -- print("DHT22", dofile("dht22.lua").read(4, true)) -- NB: ...
mit
shkan/telebot1
plugins/cpu.lua
244
1893
function run_sh(msg) name = get_name(msg) text = '' -- if config.sh_enabled == false then -- text = '!sh command is disabled' -- else -- if is_sudo(msg) then -- bash = msg.text:sub(4,-1) -- text = run_bash(bash) -- else -- text = name .. ' you...
gpl-2.0
wtof1996/TI-Lua_String_Library_Extension
V1/ustring/class/ustring_c.lua
2
13306
--[[ TI-Lua String Library Extension ---- ustring class Copyright 2013 wtof1996 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 ...
apache-2.0
CrazyEddieTK/Zero-K
units/factoryship.lua
3
2547
unitDef = { unitname = [[factoryship]], name = [[Shipyard]], description = [[Produces Naval Units, Builds at 10 m/s]], acceleration = 0, brakeRate = 0, buildCostMetal = Shared.FACTORY_COST, builder = true, buildopt...
gpl-2.0
CrazyEddieTK/Zero-K
effects/lightning.lua
9
18220
-- lightningplosion -- lightningplosion160AoE -- lightningplosion_yellowbolts -- zeusmuzzle -- panther_spark -- lightningplosion_bluebolts1 -- lightningplosion_stormbolt -- zeusgroundflash -- lightningplosion_smallbolts local circleString = "r%.5f y10 -1 x10x10 y10 %d a10 y10 r6.283 y11 -3.1415 a11 y11 -0.5x11x11...
gpl-2.0
TimSimpson/Macaroni
Main/App/Source/test/lua/Macaroni/Model/NodeTests.lua
2
10884
-------------------------------------------------------------------------------- -- Copyright 2011 Tim Simpson -- -- 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.a...
apache-2.0
victorperin/tibia-server
data/npc/scripts/Dream Master.lua
1
4387
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg)...
apache-2.0
czfshine/Don-t-Starve
data/scripts/prefabs/statueruins.lua
1
6771
assets = { Asset("ANIM", "anim/statue_ruins_small.zip"), Asset("ANIM", "anim/statue_ruins_small_gem.zip"), Asset("ANIM", "anim/statue_ruins.zip"), Asset("ANIM", "anim/statue_ruins_gem.zip"), } local prefabs = { "marble", "greengem", "redgem", "bluegem", "yellowgem", "orangegem", ...
gpl-2.0
TimSimpson/Macaroni
Main/Dependencies/MoonScript/project.lua
2
3416
require "os" require "Macaroni.IO.GeneratedFileWriter"; local Path = require "Macaroni.IO.Path"; Files = Macaroni.Model.Project.Files FileSet = Macaroni.IO.FileSet; -------------------------------------------------------------------------------- -- File Paths ---------------------------------------------...
apache-2.0
sigma-random/wireshark
test/lua/proto.lua
32
31020
---------------------------------------- -- script-name: proto.lua -- This is based on the dissector.lua example script, which is also used for testing. -- Unlike that one, this one is purely for testing even more things, notably -- the Proto/ProtoField API. ---------------------------------------- ------------- gener...
gpl-2.0
CrazyEddieTK/Zero-K
effects/heatray.lua
17
2758
-- heatray_ceg -- heatray_hit return { ["heatray_hit"] = { usedefaultexplosions = false, cinder = { air = true, class = [[heatcloud]], count = 1, ground = true, water = true, properties = { alwaysvis...
gpl-2.0
CrazyEddieTK/Zero-K
gamedata/sidedata.lua
25
1088
-- $Id: sidedata.lua 3708 2009-01-06 06:20:18Z carrepairer $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: sidedata.lua -- brief: sidedata definitions -- -------------------------------...
gpl-2.0
100acrebb/ulogs
ultimatelogs/lua/ultimatelogs/logtypes/ulogs_murder_roundstate.lua
2
1044
--[[ _ _ _ _ _ _ _ | | | || || | (_) | | | | | | | || || |_ _ _ __ ___ __ _ | |_ ___ | | ___ __ _ ___ | | | || || __|| || '_ ` _ \ / _` || __| / _ \ | | / _ \ / _` |...
mit
matthewhesketh/mattata
plugins/github.lua
2
2763
--[[ Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]] local github = {} local mattata = require('mattata') local https = require('ssl.https') local json = require('dkjson') function github:init() github.commands = mattata.commands...
mit
starkos/premake-core
modules/vstudio/tests/vc200x/test_linker_block.lua
15
4849
-- -- tests/actions/vstudio/vc200x/test_linker_block.lua -- Validate generation of VCLinkerTool blocks in Visual Studio 200x C/C++ projects. -- Copyright (c) 2009-2013 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("vs200x_linker_block") local vc200x = p.vstudio.vc200x -- --...
bsd-3-clause
CrazyEddieTK/Zero-K
units/chicken_leaper.lua
2
3015
unitDef = { unitname = [[chicken_leaper]], name = [[Leaper]], description = [[Hopping Raider]], acceleration = 0.5, brakeRate = 0.205, buildCostEnergy = 0, buildCostMetal = 0, builder = false, buildPic = [[chicken_leape...
gpl-2.0
starkos/premake-core
modules/gmake/tests/cpp/test_wiidev.lua
15
1183
-- -- tests/actions/make/cpp/test_wiidev.lua -- Tests for Wii homebrew support in makefiles. -- Copyright (c) 2011-2013 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("make_wiidev") local make = p.make local project = p.project -- -- Setup -- local cfg function suite.se...
bsd-3-clause
unusualcrow/redead_reloaded
gamemode/tables.lua
1
13481
GM.Radio = {} GM.Radio[ VO_DEATH ] = { "bot/aah.wav", "bot/help.wav", "bot/need_help.wav", "bot/need_help2.wav", "bot/noo.wav", "bot/oh.wav", "bot/ow.wav", "bot/pain2.wav", "bot/pain4.wav", "bot/pain5.wav", "bot/pain8.wav", "bot/pain9.wav", "bot/pain10.wav" } GM.Radio[ VO_PAIN ] = { "bot/cut_it_out.wav", "bot/hey.wa...
mit
starkos/premake-core
tests/tools/test_snc.lua
16
3491
-- -- tests/test_snc.lua -- Automated test suite for the SNC toolset interface. -- Copyright (c) 2012-2013 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("tools_snc") local snc = p.tools.snc -- -- Setup/teardown -- local wks, prj, cfg function suite.setup() wks, prj =...
bsd-3-clause
CrazyEddieTK/Zero-K
units/amphassault.lua
1
5975
unitDef = { unitname = [[amphassault]], name = [[Grizzly]], description = [[Heavy Amphibious Assault Walker]], acceleration = 0.1, activateWhenBuilt = true, brakeRate = 0.3, buildCostMetal = 2000, buildPic = [[amphassault.png]], canG...
gpl-2.0
alivilteram/mus1p
plugins/supergroup.lua
1
73083
--Begin supergrpup.lua --Check members #Add supergroup local function check_member_super(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg if success == 0 then send_large_msg(receiver, "Promote me to admin first!") end for k,v in pairs(result)...
gpl-3.0
Sinaloit/EPGP
libs/LibDialog-1.0/LibDialog-1.0.lua
1
38024
------------------------------------------------- -- LibDialog - V1.0 ------------------------------------------------- --[[ The MIT License (MIT) Copyright (c) 2014 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), ...
mit
minetest-games/Minetest_TNG
mods/beds/api.lua
2
3849
function beds.register_bed(name, def) default.register_node(name .. "_bottom", { description = def.description, inventory_image = def.inventory_image, wield_image = def.wield_image, drawtype = "nodebox", tiles = def.tiles.bottom, paramtype = "light", paramtype2 = "facedir", is_ground_content = false, ...
gpl-3.0
alexgrist/NutScript
plugins/area/cl_hooks.lua
1
6115
local PLUGIN = PLUGIN local function DrawTextBackground(x, y, text, font, backgroundColor, padding) font = font or "ixSubTitleFont" padding = padding or 8 backgroundColor = backgroundColor or Color(88, 88, 88, 255) surface.SetFont(font) local textWidth, textHeight = surface.GetTextSize(text) local width, heigh...
mit
Imacc2009/hl2rp
gamemode/schema/items/sh_breach.lua
2
1083
ITEM.name = "Door Breach" ITEM.model = Model("models/props_wasteland/prison_padlock001a.mdl") ITEM.desc = "Used to breach doors." ITEM.price = 45 ITEM.functions = {} ITEM.functions.Place = { alias = "Place Breach", icon = "icon16/tag_blue_edit.png", menuOnly = true, run = function(itemTable, client, data, entity, i...
gpl-2.0
rzh/mongocraft
world/Plugins/ProtectionAreas/CommandState.lua
6
2783
-- CommandState.lua -- Implements the cCommandState class representing a command state for each VIP player --[[ The command state holds internal info, such as the coords they selected using the wand The command state needs to be held in a per-entity manner, so that we can support multiple logins from the same accoun...
apache-2.0
blueyed/awesome
lib/wibox/widget/base.lua
1
23404
--------------------------------------------------------------------------- -- @author Uli Schlachter -- @copyright 2010 Uli Schlachter -- @classmod wibox.widget.base --------------------------------------------------------------------------- local object = require("gears.object") local cache = require("gears.cache") ...
gpl-2.0
matthewhesketh/mattata
libs/https.lua
2
4429
--[[ Customised version of https://github.com/brunoos/luasec/blob/master/src/https.lua to allow better timeouts. LuaSec 0.9 license Copyright (C) 2006-2019 Bruno Silvestre, UFG Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated docu...
mit
CrazyEddieTK/Zero-K
LuaUI/cawidgets.lua
2
61773
-- $Id: cawidgets.lua 4261 2009-03-31 16:34:36Z licho $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: widgets.lua -- brief: the widget manager, a call-in router -- author: Dave Rodger...
gpl-2.0
shkan/telebot1
bot/utils.lua
646
23489
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() JSON = (loadfile "./libs/...
gpl-2.0
KuZon/ptokax-scripts
report.lua
4
2009
--[[ This file is part of HiT Hi FiT Hai's PtokaX scripts Copyright: © 2014 HiT Hi FiT Hai group Licence: GNU General Public Licence v3 https://www.gnu.org/licenses/gpl-3.0.html --]] function OnStartup() tConfig = { sBotName = SetMan.GetString( 21 ), sReportBot = "#[VIPChat]", sChatFilePath = Core.GetPtok...
gpl-3.0
nimaghorbani/dozdi9
plugins/twitter_send.lua
627
1555
do local OAuth = require "OAuth" local consumer_key = "" local consumer_secret = "" local access_token = "" local access_token_secret = "" local client = OAuth.new(consumer_key, consumer_secret, { RequestToken = "https://api.twitter.com/oauth/request_token", AuthorizeUser = {"https://api.twitter.com/oauth/autho...
gpl-2.0
andywingo/snabbswitch
src/apps/test/synth.lua
5
1920
module(...,package.seeall) local ffi = require("ffi") local ethernet = require("lib.protocol.ethernet") local datagram = require("lib.protocol.datagram") local transmit, receive = link.transmit, link.receive Synth = {} function Synth:new (arg) local conf = arg and config.parse_app_arg(arg) or {} conf.sizes = c...
apache-2.0
luvit/lit
tests/libs/tap.lua
3
4990
--[[ Copyright 2014 The Luvit Authors. All Rights Reserved. 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 agr...
apache-2.0
cloudwu/skynet
test/testtobeclosed.lua
10
1149
local skynet = require "skynet" local function new_test(name) return setmetatable({}, { __close = function(...) skynet.error(...) end, __name = "closemeta:" .. name}) end local i = 0 skynet.dispatch("lua", function() i = i + 1 if i==2 then local c<close> = new_test("dispatch_error") ...
mit
Imacc2009/hl2rp
gamemode/schema/sv_hooks.lua
1
15171
function SCHEMA:PlayerFirstLoaded(client) if (client:Team() == FACTION_CITIZEN) then local citizens = team.NumPlayers(FACTION_CITIZEN) self.lastCount = self.lastCount or 0 self:SendOverlayText("CITIZEN POPULATION COUNT UPDATED... "..self.lastCount.." => "..citizens) self.lastCount = citizens end end functi...
gpl-2.0
RElesgoe/pvpgn
lua/quiz/helper.lua
8
1222
--[[ Copyright (C) 2014 HarpyWar (harpywar@gmail.com) This file is a part of the PvPGN Project http://pvpgn.pro Licensed under the same terms as Lua itself. ]]-- -- Get path to Quiz directory function q_directory() return config.scriptdir .. "/quiz" end -- Replace each symbol in string with * -- Example: input...
gpl-2.0
ranisalt/forgottenserver
data/talkactions/scripts/info.lua
6
1489
function onSay(player, words, param) if not player:getGroup():getAccess() then return true end local target = Player(param) if not target then player:sendCancelMessage("Player not found.") return false end if target:getAccountType() > player:getAccountType() then player:sendCancelMessage("You can not ge...
gpl-2.0
starkos/premake-core
modules/vstudio/tests/vc2010/test_globals.lua
3
12607
-- -- tests/actions/vstudio/vc2010/test_globals.lua -- Validate generation of the Globals property group. -- Copyright (c) 2011-2014 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("vstudio_vs2010_globals") local vc2010 = p.vstudio.vc2010 -- -- Setup -- local wks, prj fun...
bsd-3-clause
project-asap/IReS-Platform
asap-platform/asap-server/asapLibrary/operators/OutterSQL_Postgres/OutterSQL_Postgres.lua
1
1361
-- Specific configuration of operator ENGINE = "Postgres" OPERATOR = "OutterSQL_" .. ENGINE SCRIPT = OPERATOR .. ".sh" SHELL_COMMAND = "./" .. SCRIPT -- Home directory of operator OPERATOR_LIBRARY = "asapLibrary/operators" OPERATOR_HOME = OPERATOR_LIBRARY .. "/" .. OPERATOR -- The actual distributed shell job. operato...
apache-2.0
AntonioModer/skeletor
skeletor/unittests/testSkeletorSkeleton.lua
2
1566
-- get the relative path local thispath = select('1', ...):match(".+%.") or "" local parent = "unittests." thispath = string.sub(thispath, 1, string.len(thispath) - string.len(parent)) -- load skeletor module local Skeletor = require(thispath..'skeletor') skeletor = Skeletor() -- test skeletor:newSkeleton() skeletor:...
mit
blueyed/awesome
tests/examples/wibox/layout/ratio/ajust_ratio.lua
4
1165
local generic_widget = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local unpack = unpack or table.unpack -- luacheck: globals unpack (compatibility with Lua 5.1) --DOC_HIDE local first, second, third = generic_widget("first"), --DOC_HIDE generic_widget("second"), generic_widget("third") --DOC_HIDE...
gpl-2.0
imfoollink/NPLRuntime
Server/trunk/LuaJIT/src/host/genminilua.lua
47
12039
---------------------------------------------------------------------------- -- Lua script to generate a customized, minified version of Lua. -- The resulting 'minilua' is used for the build process of LuaJIT. ---------------------------------------------------------------------------- -- Copyright (C) 2005-2017 Mike P...
gpl-2.0
andywingo/snabbswitch
src/program/snabbmark/snabbmark.lua
5
12422
module(..., package.seeall) local usage = require("program.snabbmark.README_inc") local basic_apps = require("apps.basic.basic_apps") local pci = require("lib.hardware.pci") local ethernet = require("lib.protocol.ethernet") local freelist = require("core.freelist") local lib = require("core.lib") ...
apache-2.0
repstd/modified_vlc
share/lua/playlist/mpora.lua
97
2565
--[[ $Id$ Copyright © 2009 the VideoLAN team Authors: Konstantin Pavlov (thresh@videolan.org) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your opt...
gpl-2.0