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
imeteora/cocos2d-x-3.x-Qt
cocos/scripting/lua-bindings/auto/api/ParticleSystem.lua
2
15612
-------------------------------- -- @module ParticleSystem -- @extend Node,TextureProtocol -------------------------------- -- @function [parent=#ParticleSystem] getStartSizeVar -- @param self -- @return float#float ret (return value: float) -------------------------------- -- @function [parent=#ParticleSys...
gpl-2.0
mattyx14/otxserver
data/monster/mammals/noble_lion.lua
2
2454
local mType = Game.createMonsterType("Noble Lion") local monster = {} monster.description = "a noble lion" monster.experience = 400 monster.outfit = { lookType = 570, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.raceId = 1118 monster.Bestiary = { class = "Mam...
gpl-2.0
kbara/snabb
lib/ljsyscall/syscall/openbsd/ffi.lua
18
6838
-- This are the types for OpenBSD local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string = require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string local abi = require "syscal...
apache-2.0
kbara/snabb
lib/ljsyscall/test/netbsd.lua
18
9661
-- BSD specific tests local function init(S) local helpers = require "syscall.helpers" local types = S.types local c = S.c local abi = S.abi local features = S.features local util = S.util local bit = require "syscall.bit" local ffi = require "ffi" local t, pt, s = types.t, types.pt, types.s local assert = helpers...
apache-2.0
CarabusX/Zero-K
effects/lrpc_trail.lua
25
2379
-- vulcanfx return { ["vulcanfx"] = { usedefaultexplosions = false, exhale = { air = true, class = [[CSimpleParticleSystem]], count = 1, ground = true, water = true, properties = { airdrag ...
gpl-2.0
tgp1994/LiquidRP-tgp1994
entities/entities/gunlab/init.lua
1
3236
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() self.Entity:SetModel("models/props_c17/TrapPropeller_Engine.mdl") self.Entity:PhysicsInit(SOLID_VPHYSICS) self.Entity:SetMoveType(MOVETYPE_VPHYSICS) self.Entity:SetSolid(SOLID_VPHYSICS) local phys = self.Entity...
gpl-3.0
mumuqz/luci
modules/luci-base/luasrc/model/network.lua
6
36375
-- Copyright 2009-2015 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local type, next, pairs, ipairs, loadfile, table, select = type, next, pairs, ipairs, loadfile, table, select local tonumber, tostring, math = tonumber, tostring, math local require = require local nxo ...
apache-2.0
ReclaimYourPrivacy/cloak-luci
applications/luci-app-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo_mini.lua
141
1031
--[[ smap_devinfo - SIP Device Information (c) 2009 Daniel Dickinson 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 $Id$ ]]-- require("luci.i18n") re...
apache-2.0
mattyx14/otxserver
data/monster/quests/dark_trails/tremor_worm.lua
2
2044
local mType = Game.createMonsterType("tremor worm") local monster = {} monster.description = "a tremor worm" monster.experience = 80000 monster.outfit = { lookType = 295, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 125000 monster.maxHealth = 125000 m...
gpl-2.0
tgp1994/LiquidRP-tgp1994
entities/entities/ent_smokegrenade/cl_init.lua
1
1639
include('shared.lua') /*--------------------------------------------------------- Initialize ---------------------------------------------------------*/ function ENT:Initialize() self.timer = CurTime() + 3 end /*--------------------------------------------------------- Think ----------------------------------------...
gpl-3.0
mattyx14/otxserver
data/monster/vermins/deepworm.lua
2
3343
local mType = Game.createMonsterType("Deepworm") local monster = {} monster.description = "a deepworm" monster.experience = 230 monster.outfit = { lookType = 1033, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.raceId = 1531 monster.Bestiary = { class = "Vermin...
gpl-2.0
kbara/snabb
src/lib/protocol/icmp/nd/options/tlv.lua
6
2178
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local ffi = require("ffi") local tlv = subClass(nil) ffi.cdef[[ typedef struct { uint8_t type; uint8_t length; } tlv_t __attribute__((packed)) ]] local tlv_t = ffi.typeof("tlv_t")...
apache-2.0
PAC3-Server/ServerContent
lua/notagain/aowl/commands/bloo.lua
2
2454
AddCSLuaFile() local Tag = "bluescreen" if SERVER then util.AddNetworkString(Tag) aowl.AddCommand("bloo|crash=player_admin|player_alter", function(ply, line, target) net.Start(Tag) net.Send(target) end, "developers") end if CLIENT then net.Receive(Tag,function() local hide = { CHudHealth = true, CHu...
mit
CarabusX/Zero-K
effects/gundam_electric_explosion2.lua
25
4467
-- electric_explosion2 return { ["electric_explosion2"] = { dirt = { count = 4, ground = true, properties = { alphafalloff = 2, alwaysvisible = true, color = [[0.2, 0.1, 0.05]], pos = [[r-10 r10, 0, ...
gpl-2.0
CarabusX/Zero-K
scripts/hoverriot.lua
2
5259
local base = piece 'base' local flare = piece 'flare' local ground1 = piece 'ground1' local barrel = piece 'barrel' local barrel = piece 'barrel' local rthrustpoint = piece 'rthrustpoint' local lthrustpoint = piece 'lthrustpoint' local wakes = {} for i = 1, 8 do wakes[i] = piece ('wake' .. i) end include "constants.l...
gpl-2.0
garrysmodlua/wire
lua/entities/gmod_wire_datasocket.lua
3
3005
AddCSLuaFile() DEFINE_BASECLASS( "gmod_wire_socket" ) ENT.PrintName = "Wire Data Socket" ENT.WireDebugName = "Socket" function ENT:GetPlugClass() return "gmod_wire_dataplug" end if CLIENT then hook.Add("HUDPaint","Wire_DataSocket_DrawLinkHelperLine",function() local sockets = ents.FindByClass("gmod_wire_datasock...
apache-2.0
CarabusX/Zero-K
scripts/plateshield.lua
4
1936
include "constants.lua" include "plates.lua" local base, turret, arm_1, arm_2, arm_3, nanobase, rightpiece, leftpiece, nanoemit, pad, nozzle, cylinder, back = piece ('base', 'turret', 'arm_1', 'arm_2', 'arm_3', 'nanobase', 'rightpiece', 'leftpiece', 'nanoemit', 'pad', 'nozzle', 'cylinder', 'back') local nanoPieces = ...
gpl-2.0
creationix/msgpack-lua
test.lua
2
11287
if not _G.process then require 'luacov' require 'lit-loader' end local encode = require('./msgpack').encode local decode = require('./msgpack').decode local colorize = require('pretty-print').colorize local dump = require('pretty-print').dump local function tabrep(num) local tab = {} for i = 1, num do tab[...
mit
luizsan/ultimate
BGAnimations/ScreenEvaluationCustom underlay/default.lua
1
1837
local t = MenuInputActor()..{ InitCommand=function(self) Global.lockinput = true; end; OnCommand=cmd(diffusealpha,1;sleep,2.5;queuecommand,"Unlock"); OffCommand=cmd(linear,0.5;diffusealpha,0;sleep,0.75;queuecommand,"Exit"); PlayerJoinedMessageCommand=function(self,param) GAMESTATE:UnjoinPlayer(p...
mit
aqasaeed/sparta
plugins/face.lua
641
3073
local https = require("ssl.https") local ltn12 = require "ltn12" -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local mashape = load_from_file('data/mashape.lua', { api_key = '' }) local function request(imageUrl) local api_key = mashape.api_key if api_key:isempt...
gpl-2.0
mattyx14/otxserver
data/monster/demons/floating_savant.lua
2
3441
local mType = Game.createMonsterType("Floating Savant") local monster = {} monster.description = "a floating savant" monster.experience = 8000 monster.outfit = { lookType = 1063, lookHead = 113, lookBody = 94, lookLegs = 78, lookFeet = 78, lookAddons = 0, lookMount = 0 } monster.raceId = 1637 monster.Bestiary ...
gpl-2.0
kbara/snabb
src/apps/test/lwaftr.lua
3
14451
module(...,package.seeall) local lib = require("core.lib") local app = require("core.app") local packet = require("core.packet") local link = require("core.link") local ethernet = require("lib.protocol.ethernet") local ipv4 = require("lib.protocol.ipv4") local ipv6 = require("lib.protocol.ipv6") local ipsum = require(...
apache-2.0
tgp1994/LiquidRP-tgp1994
entities/weapons/unarrest_stick/shared.lua
1
2806
if SERVER then AddCSLuaFile("shared.lua") end if CLIENT then SWEP.PrintName = "Unarrest Baton" SWEP.Slot = 1 SWEP.SlotPos = 3 SWEP.DrawAmmo = false SWEP.DrawCrosshair = false end SWEP.Base = "weapon_cs_base2" SWEP.Author = "Rick Darkaliono, philxyz" SWEP.Instructions = "Left or right click to unarrest" SWEP.Co...
gpl-3.0
CarabusX/Zero-K
scripts/striderscorpion.lua
6
7028
include "constants.lua" include "spider_walking.lua" -------------------------------------------------------------------------------- -- pieces -------------------------------------------------------------------------------- local base = piece 'base' local body = piece 'body' local leg1 = piece 'leg1' -- back right lo...
gpl-2.0
kbara/snabb
lib/pflua/src/pf/match.lua
15
11796
module(...,package.seeall) --- --- Program := 'match' Cond --- Cond := '{' Clause... '}' --- Clause := Test '=>' Dispatch [ClauseTerminator] -- Test := 'otherwise' | LogicalExpression --- ClauseTerminator := ',' | ';' --- Dispatch := Call | Cond --- Call := Identifier Args? --- Args := '(' [ ArithmeticExpression [ ',...
apache-2.0
CarabusX/Zero-K
gamedata/modularcomms/weapons/aalaser.lua
6
1275
local name = "commweapon_aalaser" local weaponDef = { name = [[Anti-Air Laser]], areaOfEffect = 12, beamDecay = 0.736, beamTime = 1/30, beamttl = 15, canattackground = false, coreThickness = 0.5, craterBoost ...
gpl-2.0
mumuqz/luci
applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrd6.lua
68
16296
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. require("luci.tools.webadmin") local fs = require "nixio.fs" local util = require "luci.util" local ip = require "luci.ip" local has_ipip = fs.glob("/etc/mo...
apache-2.0
luohancfd/FluidDynamicTools
Thermo_Chemical_Properties/Molecule_Properties/RawData/CN.lua
1
5203
-- Collater: Rowan J. Gollan -- Date: 21-Jun-2009 CN = {} CN.M = { value = 26.0174000e-3, units = 'kg/mol', description = 'molecular mass', reference = 'CEA2::thermo.inp' } CN.atomic_constituents = {C=1,N=1} CN.charge = 0 CN.gamma = { value = 1.399, units = 'non-dimensional', description = 'ratio ...
gpl-3.0
CarabusX/Zero-K
LuaUI/Widgets/gui_custom_markers.lua
6
15518
function widget:GetInfo() return { name = "Custom Markers", desc = "Alternative to Spring map markers", author = "Evil4Zerggin (adapted by KingRaptor)", date = "29 December 2008", license = "GNU LGPL, v2.1 or later", layer = 1001, -- more than Chili alwaysStart = true, enabled ...
gpl-2.0
luohancfd/FluidDynamicTools
Thermo_Chemical_Properties/Molecule_Properties/RawData/N2_plus_C.lua
1
2035
-- Author: Daniel F. Potter -- Date: 24-Sept-2009 -- Diatomic nitrogen cation excited state 'C' (C2 Sigma u+) N2_plus_C = {} N2_plus_C.M = { value = 28.0128514e-3, units = 'kg/mol', description = 'molecular mass', reference = 'from CEA2::thermo.inp' } N2_plus_C.atomic_constituents = {N=2} N2_plus_C.charg...
gpl-3.0
CarabusX/Zero-K
effects/paris.lua
13
4272
-- paris_glow -- paris -- paris_gflash -- paris_sphere return { ["paris_glow"] = { glow = { air = true, class = [[CSimpleParticleSystem]], count = 2, ground = true, water = true, properties = { airdrag ...
gpl-2.0
christopherjwang/rackspace-monitoring-agent
schedule/scheduler.lua
3
4121
--[[ Copyright 2015 Rackspace 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, software dis...
apache-2.0
saeqe/telegrambot
plugins/stats.lua
236
3989
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
NENO8/GENERAAL
plugins/lock_fwd.lua
3
1086
--[[ @KNSLTHM @KNSLTHM @KNSLTHM @NENO_CH @NENO_CH @NENO_CH --]] do local function pre_process(msg) local fwd = 'mate:'..msg.to.id if redis:get(fwd) and not is_momod(msg) and msg.fwd_from then delete_msg(msg.id, ok_cb, true) return "ok" end return msg end local functio...
gpl-3.0
mattyx14/otxserver
data/monster/quests/the_secret_library/supercharged_mazzinor.lua
2
1813
local mType = Game.createMonsterType("Supercharged Mazzinor") local monster = {} monster.description = "Supercharged Mazzinor" monster.experience = 0 monster.outfit = { lookType = 979, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 300000 monster.maxHea...
gpl-2.0
CarabusX/Zero-K
LuaUI/Widgets/chili_old/Controls/screen.lua
13
7772
Screen = Object:Inherit{ --Screen = Control:Inherit{ classname = 'screen', x = 0, y = 0, width = 0, height = 0, preserveChildrenOrder = true, activeControl = nil, focusedControl = nil, hoveredControl = nil, currentTooltip = nil, _lastHoveredControl = nil, _lastClicked =...
gpl-2.0
houqp/koreader-base
ffi/util.lua
1
18909
--[[-- Module for various utility functions. @module ffi.util ]] local bit = require "bit" local ffi = require "ffi" local C = ffi.C -- win32 utility ffi.cdef[[ typedef unsigned int UINT; typedef unsigned long DWORD; typedef char *LPSTR; typedef wchar_t *LPWSTR; typedef const char *LPCSTR; typedef const wchar_t *LPC...
agpl-3.0
hust921/dotfiles
config/nvim/lua/user/keymaps.lua
1
4448
local opts = { noremap = true, silent = true } -- Shorten function name local keymap = vim.api.nvim_set_keymap --Remap space as leader key keymap("", "<Space>", "<Nop>", opts) vim.g.mapleader = " " vim.g.maplocalleader = " " -- Modes -- normal_mode = "n", -- insert_mode = "i", -- visual_mode = "v", -- visual...
mit
CarabusX/Zero-K
scripts/staticjammer.lua
8
1469
include "constants.lua" local base, cylinder, turret, jammersturret, jam1, jam2, deploy = piece ('base', 'cylinder', 'turret', 'jammersturret', 'jam1', 'jam2', 'deploy') local smokePiece = {base} function script.Create() StartThread(GG.Script.SmokeUnit, unitID, smokePiece) end function script.Activate() Spin(jamme...
gpl-2.0
imeteora/cocos2d-x-3.x-Qt
cocos/scripting/lua-bindings/auto/api/LayoutParameter.lua
2
1144
-------------------------------- -- @module LayoutParameter -- @extend Ref -------------------------------- -- @function [parent=#LayoutParameter] clone -- @param self -- @return LayoutParameter#LayoutParameter ret (return value: ccui.LayoutParameter) -------------------------------- -- @function [parent=#L...
gpl-2.0
mumuqz/luci
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/disk.lua
68
1180
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.statistics.rrdtool.definitions.disk", package.seeall) function rrdargs( graph, plugin, plugin_instance, dtype ) return { { title = "%H: Disk I/O operations on %pi", vlab...
apache-2.0
chronosis/GuildManager
libs/PixiePlot/PixiePlot.lua
2
35790
----------------------------------------------------------------------------------------------------------------------- -- Plotter for WildStar. Supports line, stem, bar, scatter, polar, and parametric plots. -- Copyright (c) NCsoft. All rights reserved -- @author draftomatic -------------------------------------------...
mit
mattyx14/otxserver
data/monster/quests/kilmaresh/an_astral_glyph.lua
2
2159
local mType = Game.createMonsterType("An Astral Glyph") local monster = {} monster.description = "an astral glyph" monster.experience = 0 monster.outfit = { lookTypeEx = 24225 } monster.health = 50000 monster.maxHealth = 50000 monster.race = "venom" monster.corpse = 0 monster.speed = 470 monster.manaCost = 0 monste...
gpl-2.0
kbara/snabb
src/dasm_mm.lua
22
3988
--wrappers around mmap to support dynamic code exection. --Written by Cosmin Apreutesei. Public Domain. --Tested with Windows, Linux and OSX, x86 and x86-64. local ffi = require'ffi' local C = ffi.C local function checkh(ptr) return assert(ptr ~= nil and ptr) end local function checkz(ret) assert(ret == 0) end local...
apache-2.0
CarabusX/Zero-K
scripts/dynstrike.lua
6
24905
include "constants.lua" local dyncomm = include('dynamicCommander.lua') _G.dyncomm = dyncomm local AntennaTip = piece('AntennaTip') local ArmLeft = piece('ArmLeft') local ArmRight = piece('ArmRight') local AssLeft = piece('AssLeft') local AssRight = piece('AssRight') local Breast = piece('Breast') local CalfLeft = pi...
gpl-2.0
mattyx14/otxserver
data/monster/lycanthropes/werehyaena.lua
2
3598
local mType = Game.createMonsterType("Werehyaena") local monster = {} monster.description = "a werehyaena" monster.experience = 2200 monster.outfit = { lookType = 1300, lookHead = 57, lookBody = 77, lookLegs = 1, lookFeet = 1, lookAddons = 0, lookMount = 0 } monster.raceId = 1963 monster.Bestiary = { class = ...
gpl-2.0
CarabusX/Zero-K
LuaRules/Gadgets/unit_water_effects.lua
6
5935
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- if not gadgetHandler:IsSyncedCode() then return end -------------------------------------------------------------------------------- ------------------------...
gpl-2.0
mumuqz/luci
applications/luci-app-splash/luasrc/model/cbi/splash/splashtext.lua
78
1663
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Copyright 2010 Manuel Munz <freifunk@somakoma.de> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" local splashtextfile = "/usr/lib/luci-splash/splashtext.html" local splash...
apache-2.0
luciouskami/YDWE
Development/Component/plugin/w3x2lni/script/core/slk/backend_searchparent.lua
3
4373
local lang = require 'lang' local type = type local pairs = pairs local os_clock = os.clock local w2l local revert_list local unit_list local function get_revert_list(default, code) if not revert_list then revert_list = {} for name, obj in pairs(default) do local code = obj['_code'] ...
gpl-3.0
mattyx14/otxserver
data/monster/quests/wrath_of_the_emperor/scorn_of_the_emperor.lua
2
2724
local mType = Game.createMonsterType("Scorn Of The Emperor") local monster = {} monster.description = "a scorn of the emperor" monster.experience = 450 monster.outfit = { lookType = 351, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 45000 monster.maxHe...
gpl-2.0
mattyx14/otxserver
data/scripts/spells/monster/outburst_explode.lua
2
2416
local function outExplode() local upConer = {x = 32223, y = 31273, z = 14} -- upLeftCorner local downConer = {x = 32246, y = 31297, z = 14} -- downRightCorner for i=upConer.x, downConer.x do for j=upConer.y, downConer.y do for k= upConer.z, downConer.z do local room = {x=i, y=j, z=k} ...
gpl-2.0
PAC3-Server/ServerContent
lua/notagain/jrpg/autorun/client/alerts.lua
2
1985
local scrW, scrH = ScrW(), ScrH() local ResolutionScale = math.Min(scrW/1600 , scrH/900) local JAlert = {} _G.JAlert = JAlert surface.CreateFont("JAlertFont",{ font = "Square721 BT", extended = true, size = 17, weight = 500, shadow = true, }) local ALERT = { Init = function( self...
mit
javad7070/senior
libs/mimetype.lua
1
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-3.0
fo369/luci-1505
applications/luci-app-aria2/luasrc/model/cbi/aria2.lua
11
4554
--[[ RA-MOD ]]-- local fs = require "nixio.fs" local util = require "nixio.util" local running=(luci.sys.call("pidof aria2c > /dev/null") == 0) yaaw="&nbsp;&nbsp;&nbsp;&nbsp;<input type=\"button\" value=\" " .. "yaaw" .. " \" onclick=\"window.open('http://binux.github.io/yaaw/demo')\"/>" aria2_webui="&nbsp;&nbsp;&nbs...
apache-2.0
mattyx14/otxserver
data/monster/humans/adept_of_the_cult.lua
2
3792
local mType = Game.createMonsterType("Adept of the Cult") local monster = {} monster.description = "an adept of the cult" monster.experience = 400 monster.outfit = { lookType = 194, lookHead = 95, lookBody = 94, lookLegs = 94, lookFeet = 19, lookAddons = 0, lookMount = 0 } monster.raceId = 254 monster.Bestiary...
gpl-2.0
CarabusX/Zero-K
LuaUI/Headers/languages.lua
8
1048
local langs = { { lang = 'en', flag = 'gb', name = 'English' }, { lang = 'ru', flag = 'ru', name = 'Русский' }, { lang = 'pl', flag = 'pl', name = 'Polski' }, { lang = 'de', flag = 'de', name = 'Deutsch' }, { lang = 'tr', flag = 'tr', name = 'Türkçe' }, } --[[ On Windows, far eastern fonts are börkçe by default, ...
gpl-2.0
dinodeck/rpg_conversation_graph
nwn_dialog_advanced/code/World.lua
3
4493
World = {} World.__index = World function World:Create() local this = { mTime = 0, mGold = 0, mItems = {}, mKeyItems = {}, mParty = Party:Create(), mIcons = Icons:Create(Texture.Find("inventory_icons.png")), mLockInput = false, mGameSta...
mit
CarabusX/Zero-K
LuaUI/cache.lua
4
5025
-- Poisoning for Spring.* functions (caching, filtering, providing back compat) if not Spring.IsUserWriting then Spring.IsUserWriting = function() return false end end -- *etTeamColor local teamColor = {} -- GetVisibleUnits local visibleUnits = {} -- original functions local GetTeamColor = Spring.GetTeamColor l...
gpl-2.0
mrjon1/1
plugins/banhammer.lua
214
11956
local function pre_process(msg) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('Checking invited user '..user_id) local banned ...
gpl-2.0
CarabusX/Zero-K
effects/babette.lua
25
4072
-- babette -- smoke_babette -- burst_babette return { ["babette"] = { boom = { air = true, class = [[CExpGenSpawner]], count = 20, ground = true, water = true, properties = { delay = [[5 i1]...
gpl-2.0
Guema/gCastBars
CastBarZ_Config/Libs/AceGUI-3.0/widgets/AceGUIContainer-DropDownGroup.lua
65
4515
--[[----------------------------------------------------------------------------- DropdownGroup Container Container controlled by a dropdown on the top. -------------------------------------------------------------------------------]] local Type, Version = "DropdownGroup", 21 local AceGUI = LibStub and LibStub("AceGUI-...
unlicense
Germanunkol/GridCars
network/network.lua
4
2444
local BASE = (...):match("(.-)[^%.]+$") local BASE_SLASH = BASE:sub(1,#BASE-1) .. "/" local Server = require( BASE .. "server" ) local Client = require( BASE .. "client" ) -- Load advertising (serverlist) submodule local advertise = require( BASE .. "advertise" ) local network = {} network.advertise = advertise lo...
mit
clandmeter/aports-turbo
anitya_aports.lua
1
4410
--------- -- Common module for anitya-check-all and anitya-watch with integration -- to aports. local gversion = require 'gversion' local log = require 'turbo.log' local conf = require 'config' local db = require 'db' local cntrl = require 'controller' local format = string.format local normalize_v...
mit
dani-sj/komyl
plugins/plugins.lua
88
6304
do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( ...
gpl-2.0
black123456789/man
plugins/plugins.lua
88
6304
do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( ...
gpl-2.0
mattyx14/otxserver
data/monster/humanoids/pirat_mate.lua
2
3257
local mType = Game.createMonsterType("Pirat Mate") local monster = {} monster.description = "a pirat mate" monster.experience = 2400 monster.outfit = { lookType = 1346, lookHead = 0, lookBody = 95, lookLegs = 95, lookFeet = 113, lookAddons = 3, lookMount = 0 } monster.raceId = 918 monster.Bestiary = { class =...
gpl-2.0
TideSofDarK/DotaCraft
game/dota_addons/dotacraft/scripts/vscripts/heroes/beastmaster/summon_bear.lua
1
1069
--[[ Author: Noya Date: 18.01.2015. Gets the summoning location for the new unit ]] function SummonLocation( event ) local caster = event.caster local fv = caster:GetForwardVector() local origin = caster:GetAbsOrigin() -- Gets the vector facing 200 units away from the caster origin local front_...
gpl-3.0
Frownigami1/cuberite
Server/Plugins/APIDump/Hooks/OnChunkUnloading.lua
28
1082
return { HOOK_CHUNK_UNLOADING = { CalledWhen = " A chunk is about to be unloaded from the memory. Plugins may refuse the unload.", DefaultFnName = "OnChunkUnloading", -- also used as pagename Desc = [[ Cuberite calls this function when a chunk is about to be unloaded from the memory. A plugin may force ...
apache-2.0
mattyx14/otxserver
data/monster/giants/ogre_shaman.lua
2
4233
local mType = Game.createMonsterType("Ogre Shaman") local monster = {} monster.description = "an ogre shaman" monster.experience = 625 monster.outfit = { lookType = 859, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.raceId = 1163 monster.Bestiary = { class = "...
gpl-2.0
mattyx14/otxserver
data/monster/aquatics/renegade_quara_pincher.lua
2
3224
local mType = Game.createMonsterType("Renegade Quara Pincher") local monster = {} monster.description = "a renegade quara pincher" monster.experience = 2200 monster.outfit = { lookType = 77, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.raceId = 1100 monster.Be...
gpl-2.0
bobkersten/domoticz
scripts/dzVents/runtime/device-adapters/kwh_device.lua
5
1123
return { baseType = 'device', name = 'kWh device adapter', matches = function (device, adapterManager) local res = (device.deviceSubType == 'kWh') if (not res) then adapterManager.addDummyMethod(device, 'updateElectricity') end return res end, process = function (device, data, domoticz, utils, adapt...
gpl-3.0
mumuqz/luci
applications/luci-app-multiwan/luasrc/controller/multiwan.lua
62
1929
module("luci.controller.multiwan", package.seeall) function index() local fs = require "nixio.fs" if not fs.access("/etc/config/multiwan") then return end local page page = entry({"admin", "network", "multiwan"}, cbi("multiwan/multiwan"), _("Multi-WAN")) page.dependent = true entry({"admin", "network", "m...
apache-2.0
CarabusX/Zero-K
LuaUI/Widgets/chili/Skins/Evolved/skin.lua
8
18360
--// ============================================================================= --// Skin local skin = { info = { name = "Evolved", version = "0.3", author = "jK", } } --// ============================================================================= --// skin.general = { focusColor = {0.94, 0.50, 0...
gpl-2.0
mattyx14/otxserver
data/monster/humanoids/minotaur_occultist.lua
2
2777
local mType = Game.createMonsterType("Minotaur Occultist") local monster = {} monster.description = "a minotaur occultist" monster.experience = 100 monster.outfit = { lookType = 23, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 125 monster.maxHealth = ...
gpl-2.0
luciouskami/YDWE
Development/Component/script/common/ffi/hook.lua
2
1474
local ffi = require 'ffi' local hk = require 'hook' local ll = require 'ffi.loadlibrary' hk.initialize(ffi.new) local hook = {} function hook.iat(define, module, dll, api, f) local h h = hk.iat(define, module, dll, api, function(...) local ok, e = xpcall(f, debug.traceback, h, ...) if ok the...
gpl-3.0
kbara/snabb
lib/pflua/tests/pfquickcheck/pflua_ir.lua
25
1989
#!/usr/bin/env luajit -- -*- lua -*- -- This module generates (a subset of) pflua's IR, -- for property-based tests of pflua internals. module(..., package.seeall) local choose = require("pf.utils").choose local True, False, Fail, ComparisonOp, BinaryOp, Number, Len local Binary, Arithmetic, Comparison, Conditional -...
apache-2.0
CarabusX/Zero-K
LuaUI/Widgets/chili_old/Controls/editbox.lua
6
24615
--//============================================================================= --- EditBox module --- EditBox fields. -- Inherits from Control. -- @see control.Control -- @table EditBox -- @tparam {r,g,b,a} cursorColor cursor color, (default {0,0,1,0.7}) -- @tparam {r,g,b,a} selectionColor selection color, (defaul...
gpl-2.0
clandmeter/aports-turbo
aports.lua
1
5978
#!/usr/bin/env luajit TURBO_SSL = true local turbo = require("turbo") local conf = require("config") local cntrl = require("controller") local db = require("db") local utils = require("utils") local is_valid_email = utils.is_valid_email -- packages renderer to display a list of packages local packagesRenderer...
mit
abgoyal/nodemcu-firmware
lua_modules/ds3231/ds3231-web.lua
84
1338
require('ds3231') port = 80 -- ESP-01 GPIO Mapping gpio0, gpio2 = 3, 4 days = { [1] = "Sunday", [2] = "Monday", [3] = "Tuesday", [4] = "Wednesday", [5] = "Thursday", [6] = "Friday", [7] = "Saturday" } months = { [1] = "January", [2] = "Febuary", [3] = "March", [4] = "Apri...
mit
black123456789/man
plugins/anti_bot.lua
65
3192
local function isBotAllowed (userId, chatId) local hash = 'anti-bot:allowed:'..chatId..':'..userId local banned = redis:get(hash) return banned end local function allowBot (userId, chatId) local hash = 'anti-bot:allowed:'..chatId..':'..userId redis:set(hash, true) end local function disallowBot (userId, ch...
gpl-2.0
dinodeck/rpg_conversation_graph
nwn_dialog/code/Map.lua
10
11427
Map = {} Map.__index = Map function Map:Create(mapDef) local layer = mapDef.layers[1] local this = { mX = 0, mY = 0, mMapDef = mapDef, mTextureAtlas = Texture.Find(mapDef.tilesets[1].image), mTileSprite = Sprite.Create(), mLayer = layer, ...
mit
kbara/snabb
src/lib/lua/StackTracePlus.lua
44
12501
-- tables local _G = _G local string, io, debug, coroutine = string, io, debug, coroutine -- functions local tostring, print, require = tostring, print, require local next, assert = next, assert local pcall, type, pairs, ipairs = pcall, type, pairs, ipairs local error = error assert(debug, "debug table must...
apache-2.0
CarabusX/Zero-K
LuaUI/Widgets/unit_shapes.lua
4
24479
function widget:GetInfo() return { name = "UnitShapes", desc = "0.5.8.zk.02 Draws blended shapes around units and buildings", author = "Lelousius and aegis, modded Licho, CarRepairer, jK, Shadowfury333", date = "30.07.2010", license = "GNU GPL, v2 or later", la...
gpl-2.0
CarabusX/Zero-K
effects/xta_crawlexplode.lua
50
8555
-- small_nuke_explosion_fx return { ["small_nuke_explosion_fx"] = { usedefaultexplosions = false, g_blast = { air = true, class = [[CSimpleParticleSystem]], count = 1, ground = true, water = true, properties...
gpl-2.0
tgp1994/LiquidRP-tgp1994
entities/effects/rg_muzzle_rifle/init.lua
1
2810
function EFFECT:Init(data) self.WeaponEnt = data:GetEntity() self.Attachment = data:GetAttachment() self.Position = self:GetTracerShootPos(data:GetOrigin(), self.WeaponEnt, self.Attachment) self.Forward = data:GetNormal() self.Angle = self.Forward:Angle() self.Right = self.Angle:Right() local AddVel = self...
gpl-3.0
UB12/wnww
plugins/stats.lua
43
4082
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
CarabusX/Zero-K
scripts/spiderriot.lua
7
4649
include "spider_walking.lua" include "constants.lua" -------------------------------------------------------------------------------- -- pieces -------------------------------------------------------------------------------- local base = piece 'base' local turret = piece 'turret' local barrel = piece 'barrel' local fl...
gpl-2.0
tgp1994/LiquidRP-tgp1994
gamemode/modules/base/sh_createitems.lua
2
22472
local plyMeta = FindMetaTable("Player") -- automatically block players from doing certain things with their DarkRP entities local blockTypes = {"Physgun1", "Spawning1", "Toolgun1"} local checkModel = function(model) return model ~= nil and (CLIENT or util.IsValidModel(model)) end local requiredTeamItems = {"color", "...
gpl-3.0
tgp1994/LiquidRP-tgp1994
gamemode/modules/base/sh_interface.lua
2
17822
DarkRP.registerDarkRPVar = DarkRP.stub{ name = "registerDarkRPVar", description = "Register a DarkRPVar by name. You should definitely register DarkRPVars. Registering DarkRPVars will make networking much more efficient.", parameters = { { name = "name", description = "The name of the DarkRPVar.", type = ...
gpl-3.0
imeteora/cocos2d-x-3.x-Qt
cocos/scripting/lua-bindings/auto/api/ImageView.lua
2
2195
-------------------------------- -- @module ImageView -- @extend Widget -------------------------------- -- @function [parent=#ImageView] loadTexture -- @param self -- @param #string str -- @param #ccui.TextureResType texturerestype -------------------------------- -- @function [parent=#ImageView] setScale9...
gpl-2.0
mattyx14/otxserver
data/npc/Wendy.lua
2
36702
local internalNpcName = "Wendy" local npcType = Game.createNpcType(internalNpcName) local npcConfig = {} npcConfig.name = internalNpcName npcConfig.description = internalNpcName npcConfig.health = 100 npcConfig.maxHealth = npcConfig.health npcConfig.walkInterval = 2000 npcConfig.walkRadius = 2 npcConfig.outfit = { ...
gpl-2.0
mattyx14/otxserver
data/monster/quests/ferumbras_ascendant/bosses/the_lord_of_the_lice.lua
2
3473
local mType = Game.createMonsterType("The Lord of the Lice") local monster = {} monster.description = "the lord of the lice" monster.experience = 600 monster.outfit = { lookType = 305, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 80000 monster.maxHeal...
gpl-2.0
CarabusX/Zero-K
scripts/shieldriot.lua
5
18579
include 'constants.lua' local base = piece 'base' local pelvis = piece 'pelvis' local torso = piece 'torso' local emit = piece 'emit' local fire = piece 'fire' local lleg = piece 'lleg' local rleg = piece 'rleg' local lowerlleg = piece 'lowerlleg' local lowerrleg = piece 'lowerrleg' local lfoot = piece 'lfoot' local r...
gpl-2.0
CarabusX/Zero-K
lups/ParticleClasses/JitterParticles2.lua
6
14257
-- $Id: JitterParticles2.lua 3171 2008-11-06 09:06:29Z det $ ----------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------- local JitterParticles2 = {} Ji...
gpl-2.0
ReclaimYourPrivacy/cloak-luci
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/routes.lua
58
2299
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. local wa = require "luci.tools.webadmin" local fs = require "nixio.fs" m = Map("network", translate("Routes"), translate("Routes specify over which interface and gateway a certain host or network " .. "can ...
apache-2.0
houqp/koreader-base
ffi/freetype_h.lua
1
6294
local ffi = require("ffi") ffi.cdef[[ typedef int FT_Error; struct FT_Generic_ { void *data; void (*finalizer)(void *); }; typedef struct FT_Generic_ FT_Generic; typedef struct FT_ListNodeRec_ *FT_ListNode; struct FT_ListNodeRec_ { FT_ListNode prev; FT_ListNode next; void *data; }; typedef struct FT_ListRec_...
agpl-3.0
jucor/lua-sci
fmin.lua
1
2034
-------------------------------------------------------------------------------- -- Function minimization module. -- -- Copyright (C) 2011-2013 Stefano Peluchetti. All rights reserved. -- -- Features, documention and more: http://www.scilua.org . -- -- This file is part of the SciLua library, which is released u...
mit
mattyx14/otxserver
data/monster/quests/heart_of_destruction/frenzy.lua
2
2484
local mType = Game.createMonsterType("Frenzy") local monster = {} monster.description = "Frenzy" monster.experience = 1313 monster.outfit = { lookType = 290, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 8210 monster.maxHealth = 8210 monster.race = "ve...
gpl-2.0
mattyx14/otxserver
data/monster/event_creatures/memory_creatures/memory_of_a_dwarf.lua
2
2353
local mType = Game.createMonsterType("Memory Of A Dwarf") local monster = {} monster.description = "a memory of a dwarf" monster.experience = 1460 monster.outfit = { lookType = 70, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 } monster.health = 3730 monster.maxHealth = ...
gpl-2.0
tgp1994/LiquidRP-tgp1994
gamemode/dlc/sv_propprotect.lua
1
10169
local LDRP,STL = {},string.lower LDRP_Protector = {} LDRP_Protector.NoPhysgun = (file.Exists("protector/nophys.txt", "DATA") and von.deserialize(file.Read("protector/nophys.txt", "DATA"))) or {"func_door","func_door_rotating","money_printer","player","shop_base","crafting_table","plants","pot","prop_untouchable","roc...
gpl-3.0