repo_name
stringlengths
6
69
path
stringlengths
6
178
copies
stringclasses
278 values
size
stringlengths
4
7
content
stringlengths
671
917k
license
stringclasses
15 values
kveratis/GameCode4
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/lua-curl/examples/browser.lua
1
7570
----------------------------------------------------------------------------- -- A Browser Class for easy Web Automation with Lua-cURL -- Author: Kai Uwe Jesussek -- RCS ID: $Id: browser.lua,v 0.1 2011/03/11 23:55:20 kai Exp $ ----------------------------------------------------------------------------- if cURL ...
lgpl-3.0
beasterio/FireRays_SDK
Tools/deploy/premake4.lua
6
2669
function fileExists(name) local f=io.open(name,"r") if f~=nil then io.close(f) return true else return false end end newoption { trigger = "embed_kernels", description = "Embed CL kernels into binary module" } solution "FireRays" configurations { "Debug", "Release" } language "C+...
mit
shingenko/darkstar
scripts/zones/Misareaux_Coast/Zone.lua
32
1650
----------------------------------- -- -- Zone: Misareaux_Coast (25) -- ----------------------------------- package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Misareaux_Coast/TextIDs"); -------------...
gpl-3.0
wagonrepairer/Zero-K
LuaRules/Utilities/numberfunctions.lua
7
1740
------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- function math.round(num, idp) return ("%." .. (((num==0) and 0) or idp or 0) .. "f"):format(num) end local abs = math.abs local strFormat...
gpl-2.0
openwayne/chaos_theory
mods/mobs_animal/kitten.lua
1
1509
local S = mobs.intllib -- Kitten by Jordach / BFD mobs:register_mob("mobs_animal:kitten", { type = "animal", passive = true, hp_min = 5, hp_max = 10, armor = 200, collisionbox = {-0.3, -0.3, -0.3, 0.3, 0.1, 0.3}, visual = "mesh", visual_size = {x = 0.5, y = 0.5}, mesh = "mobs_kitten.b3d", textures = { {...
lgpl-2.1
LuaDist2/luatwit
examples/_config.lua
3
1930
local lfs = require "lfs" local pl_file = require "pl.file" local function find_app_keys(config_dir) local filename = config_dir .. "oauth_app_keys" if lfs.attributes(filename) then return filename end assert(pl_file.write(filename, "# fill in your app keys here\nconsumer_key = key\nconsumer_s...
mit
shingenko/darkstar
scripts/globals/items/crab_stewpot.lua
36
1675
----------------------------------------- -- ID: 5544 -- Item: Crab Stewpot -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +10% Cap 50 -- MP +10 -- HP Recoverd while healing 5 -- MP Recovered while healing 1 -- Defense +15% Cap 50 -- Evasion +5 -------------------...
gpl-3.0
Cyumus/Plugins
crafting/entities/weapons/hl2_m_taladro.lua
2
2185
if (SERVER) then SWEP.Weight = 10 SWEP.AutoSwitchTo = false SWEP.AutoSwitchFrom = false end if ( CLIENT ) then SWEP.PrintName = "Power Drill" SWEP.Author = "La Corporativa" SWEP.Instructions = "Left click to attack." SWEP.ShowWorldModel = false SWEP.ViewModelBoneMods = { ["v_weapon.Knife_Hand...
gpl-3.0
shingenko/darkstar
scripts/globals/spells/swift_etude.lua
18
1614
----------------------------------------- -- Spell: Swift Etude -- Static AGI Boost, BRD 68 ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- fun...
gpl-3.0
shingenko/darkstar
scripts/globals/items/plate_of_bream_risotto.lua
35
1645
----------------------------------------- -- ID: 4550 -- Item: plate_of_bream_risotto -- Food Effect: 180Min, All Races ----------------------------------------- -- Health 40 -- Dexterity 6 -- Agility 3 -- Mind -4 -- Health Regen While Healing 1 -- Accuracy % 6 -- Accuracy Cap 15 ---------------------------...
gpl-3.0
shingenko/darkstar
scripts/globals/spells/suiton_ni.lua
17
1257
----------------------------------------- -- Spell: Suiton: Ni -- Deals water damage to an enemy and lowers its resistance against lightning. ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast...
gpl-3.0
shingenko/darkstar
scripts/globals/items/burdock_root.lua
36
1143
----------------------------------------- -- ID: 5651 -- Item: Burdock Root -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility 2 -- Vitality -4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -----...
gpl-3.0
shingenko/darkstar
scripts/zones/Yhoator_Jungle/npcs/Harvesting_Point.lua
29
1116
----------------------------------- -- Area: Yhoator Jungle -- NPC: Harvesting Point ----------------------------------- package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil; ------------------------------------- require("scripts/globals/harvesting"); require("scripts/zones/Yhoator_Jungle/TextIDs");...
gpl-3.0
apaszke/nn
VolumetricDilatedConvolution.lua
9
3018
local THNN = require 'nn.THNN' local VolumetricDilatedConvolution, parent = torch.class('nn.VolumetricDilatedConvolution', 'nn.VolumetricConvolution') function VolumetricDilatedConvolution:__init(nInputPlane, nOutputPlane, kT, kW, kH, dT, dW, dH, padT, padW, padH, dilationT, dilationW, dilationH) parent.__init(self...
bsd-3-clause
shingenko/darkstar
scripts/zones/Lower_Jeuno/npcs/Subash.lua
34
1060
---------------------------------- -- Area: Lower Jeuno -- NPC: Subash -- Type: Item Deliverer -- @zone: 245 -- @pos -19.84 -0.101 -38.081 -- ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; require("scripts/zones/Lower_Jeuno/TextIDs"); ------------------...
gpl-3.0
Nargesf/Sumatrapdf
luatest/gdiplus.lua
7
35469
--proc/wingdi: windows GDI API. setfenv(1, require'winapi') require'winapi.winuser' -- from gdiplusgraphics.h FlatnessDefault = 1.0/4.0 ffi.cdef[[ typedef UINT GraphicsState; typedef UINT GraphicsContainer; enum FillMode { FillModeAlternate, // 0 FillModeWinding // 1 ...
gpl-3.0
idallas456/Dont-Starve-Mods
seasonclock/modinfo.lua
1
4314
-- This information tells other players more about the mod name = "Season Clock" description = "A clock that indicates the progression through the seasons." version = "Public preview version" author = "Soilworker" forumthread = "nuttinyet" -- This lets other players know if your mod is out of date, update it to match...
unlicense
ArcherSys/ArcherSys
Lua/luarocks/cfg.lua
2
23347
--- Configuration for LuaRocks. -- Tries to load the user's configuration file and -- defines defaults for unset values. See the -- <a href="http://luarocks.org/en/Config_file_format">config -- file format documentation</a> for details. -- -- End-users shouldn't edit this file. They can override any defaults -- set in ...
mit
shingenko/darkstar
scripts/zones/Grand_Palace_of_HuXzoi/mobs/Jailer_of_temperance.lua
16
3912
---------------------------------- -- Area: Grand Palace of Hu'Xzoi -- NM: Jailer of Temperance ----------------------------------- require("scripts/globals/magic"); require("scripts/globals/status"); ----------------------------------- -- OnMobSpawn Action -- Set AnimationSub to 0, put it in pot form -- Change i...
gpl-3.0
shingenko/darkstar
scripts/zones/Dynamis-Valkurm/bcnms/dynamis_Valkurm.lua
16
1855
----------------------------------- -- Area: dynamis_Valkurm -- Name: dynamis_Valkurm ----------------------------------- -- After registering the BCNM via bcnmRegister(bcnmid) function onBcnmRegister(player,instance) SetServerVariable("[DynaValkurm]UniqueID",player:getDynamisUniqueID(1286)); SetServerVariable("...
gpl-3.0
changjiashuai/vlc
share/lua/intf/luac.lua
116
2333
--[==========================================================================[ luac.lua: lua compilation module for VLC (duplicates luac) --[==========================================================================[ Copyright (C) 2010 Antoine Cellerier $Id$ Authors: Antoine Cellerier <dionoea at videolan dot org>...
gpl-2.0
wagonrepairer/Zero-K
effects/largemuzzleflame.lua
25
1253
-- large_muzzle_flash_fx return { ["large_muzzle_flash_fx"] = { muzzleflame = { air = true, class = [[CBitmapMuzzleFlame]], count = 1, ground = true, underwater = 1, water = true, properties = { ...
gpl-2.0
Illarion-eV/Illarion-Content
monster/base/spells/heal.lua
4
5398
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
shingenko/darkstar
scripts/globals/spells/bluemagic/flying_hip_press.lua
27
1410
----------------------------------------- -- Spell: Flying Hip Press -- Deals wind damage to enemies within range -- Spell cost: 125 MP -- Monster Type: Beastmen -- Spell Type: Magical (Wind) -- Blue Magic Points: 3 -- Stat Bonus: AGI+1 -- Level: 58 -- Casting Time: 5.75 seconds -- Recast Time: 34.5 seconds ...
gpl-3.0
shingenko/darkstar
scripts/zones/Horlais_Peak/mobs/Maat.lua
27
1130
----------------------------------- -- Area: Horlais Peak -- NPC: Maat -- Genkai 5 Fight ----------------------------------- package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Horlais_Peak/TextIDs"); ----------------------------------- --...
gpl-3.0
oneboter/myboters
plugins/anti_spam.lua
923
3750
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds local data = load_data(_config.moderation.data) -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id =...
gpl-2.0
fzimmermann89/texlive.js
texlive/texmf-dist/tex/luatex/luaotfload/fontloader-font-vfc.lua
2
2667
if not modules then modules = { } end modules ['font-vfc'] = { version = 1.001, comment = "companion to font-ini.mkiv and hand-ini.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } local...
gpl-2.0
shingenko/darkstar
scripts/zones/Eastern_Altepa_Desert/npcs/Eulaclaire.lua
28
1762
----------------------------------- -- Area: Eastern Altepa Desert -- NPC: Eulaclaire -- Type: Chocobo Renter ----------------------------------- require("scripts/globals/chocobo"); require("scripts/globals/keyitems"); require("scripts/globals/settings"); require("scripts/globals/status"); ---------------...
gpl-3.0
Illarion-eV/Illarion-Content
monster/base/spells/poisonring.lua
4
1247
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
wagonrepairer/Zero-K
units/factoryship.lua
7
3827
unitDef = { unitname = [[factoryship]], name = [[Shipyard]], description = [[Produces Ships, Builds at 10 m/s]], acceleration = 0, brakeRate = 0, buildCostEnergy = 600, buildCostMetal = 600, builder = true, ...
gpl-2.0
kveratis/GameCode4
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/markdown/markdown-tests.lua
1
115734
if not markdown then require "markdown" end -- Splits the text into an array of separate lines. local function split(text, sep) sep = sep or "\n" local lines = {} local pos = 1 while true do local b,e = text:find(sep, pos) if not b then table.insert(lines, text:sub(pos)) break end table.insert(l...
lgpl-3.0
TheAncientGoat/GodheadLips
data/godhead/scripts/common/spec.lua
1
1742
Spec = Class() Spec.dict_id = {} Spec.dict_cat = {} Spec.dict_name = {} --- Finds a spec. -- @param clss Spec class. -- @param args Arguments.<ul> -- <li>category: Category name.</li> -- <li>name: Spec name.</li> -- <li>id: Spec ID.</li></ul> -- @return Spec or nil if searching by name or ID. Table or nil otherw...
gpl-3.0
TheAncientGoat/GodheadLips
data/godhead/scripts/client/shaders/foliage.lua
1
1636
Shader{name = "foliage", -- Medium quality program. -- Normal mapping. medium = { pass1_alpha_to_coverage = true, pass1_color_write = false, pass1_depth_func = "lequal", pass1_vertex = [[ out vec2 F_texcoord; void main() { vec4 tmp = LOS_matrix_modelview * vec4(LOS_coord,1.0); F_texcoord = LOS_texcoord; gl_Position...
gpl-3.0
openwayne/chaos_theory
mods/maptools/nodes.lua
3
11883
--[[ Map Tools: node definitions Copyright (c) 2012-2017 Hugo Locurcio and contributors. Licensed under the zlib license. See LICENSE.md for more information. --]] local S = maptools.intllib maptools.creative = maptools.config["hide_from_creative_inventory"] -- Redefine cloud so that the admin pickaxe can mine it: ...
lgpl-2.1
shingenko/darkstar
scripts/globals/items/tropical_clam.lua
18
1267
----------------------------------------- -- ID: 5124 -- Item: Tropical Clam -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Vitality 4 -- Dexterity -5 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ...
gpl-3.0
wagonrepairer/Zero-K
Objects3d/pw_mine3.lua
14
1162
pw_mine3 = { pieces = { base = { offset = {0.00, 0.00, 0.00}, fusionsphere = { offset = {0.00, 95.77, 0.00}, coolerb1 = { offset = {-24.65, 0.00, 24.65}, }, coolerb2 = { offset = {24.65, 0.00, 24.65}, }, coolerb3 = { offset = {24.65, 0.00, -24.65}, }, coolerb...
gpl-2.0
mmusial/prosody-modules
mod_mam/mamprefs.lib.lua
38
1119
-- XEP-0313: Message Archive Management for Prosody -- Copyright (C) 2011-2013 Kim Alvefur -- -- This file is MIT/X11 licensed. local global_default_policy = module:get_option("default_archive_policy", false); do local prefs_format = { [false] = "roster", -- default ::= true | false | "roster" -- true = always...
mit
litmus4/wzJX3
wzExactEye/wzExactEye.lua
1
5711
wzExactEye = { tManagedList = {}, bOpen = true, } RegisterCustomData("wzExactEye.tManagedList") RegisterCustomData("wzExactEye.bOpen") ITEMTRIGGER_TYPE = { ENTER_SCENE = 1, BUFF_APPEAR = 2, BUFF_DISAPPEAR = 3, } function wzExactEye.OnFrameCreate() this:RegisterEvent("CUSTOM_DATA_LOADED") this:RegisterEvent("P...
gpl-3.0
wagonrepairer/Zero-K
LuaRules/Gadgets/weapon_trail_burnout.lua
12
5169
function gadget:GetInfo() return { name = "Trail Burnout", desc = "Provide ability to changes weapon trail CEG after a customParam-specified time, or change specific weapon into customParam-specified weapon when underwater", author = "Anarchid", date = "14.01.2013", license = "Public domain", layer = -1, -...
gpl-2.0
shingenko/darkstar
scripts/zones/Port_Jeuno/npcs/Leyla.lua
37
1442
----------------------------------- -- Area: Port Jeuno -- NPC: Leyla -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; require("scripts/zones/Port_Jeuno/TextIDs"); ----------------------------------- -- o...
gpl-3.0
dmccuskey/lua-e4x
dmc_lua/lua_utils.lua
46
15359
--====================================================================-- -- lua_utils.lua -- -- Documentation: http://docs.davidmccuskey.com/display/docs/lua_utils.lua --====================================================================-- --[[ The MIT License (MIT) Copyright (c) 2014 David McCuskey Permission is ...
mit
shingenko/darkstar
scripts/zones/Korroloka_Tunnel/TextIDs.lua
9
1276
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory. ITEM_OBTAINED = 6384; -- Obtained: <item>. GIL_OBTAINED = 6385; -- Obtained <number> gil. KEYITEM_OBTAINED = 6387; -- Obt...
gpl-3.0
jyggen/lua-parser
tests/Fixtures/d1/8d/0c/ed2381e07ff5817864939255a011141d45169d2aa5152c393c813ae824.lua
1
30576
wlScans = { ["heirlooms"] = "122349:1,122352:1,122366:0,122354:0,122367:0,122385:0,122386:0,122389:0,122351:0,122369:0,122365:0,122363:0,122353:1,122368:0,105690:0,122350:0,122364:0,122391:0,105680:0,122392:0,122387:0,122263:0,122264:0,122388:0,122381:1,122245:1,122251:1,122355:1,127010:0,127012:0,127011:0,122373:0...
mit
darkstalker/lua_brain
src/brain.lua
3
3622
--- Chat bot engine based on Markov chains. -- -- @author darkstalker <https://github.com/darkstalker> -- @license MIT/X11 local next, select, setmetatable, table_remove = next, select, setmetatable, table.remove local tokenizer = require "brain.tokenizer" local database = require "brain.database" local engine =...
mit
psychon/awesome
lib/wibox/layout/align.lua
2
11830
--------------------------------------------------------------------------- -- --@DOC_wibox_layout_defaults_align_EXAMPLE@ -- @author Uli Schlachter -- @copyright 2010 Uli Schlachter -- @classmod wibox.layout.align --------------------------------------------------------------------------- local table = table local pa...
gpl-2.0
shingenko/darkstar
scripts/zones/Outer_Horutoto_Ruins/npcs/_5ei.lua
17
3315
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: Ancient Magical Gizmo #5 (I out of E, F, G, H, I, J) -- Involved In Mission: The Heart of the Matter ----------------------------------- package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil; ---------------------------------...
gpl-3.0
AleksCore/Mr.Green-MTA-Resources
resources/[gameplay]/mtatranslate/translater_c.lua
2
26254
local languages = { -- { google, name, language flag, {country codes}} {"auto", "Detect language","fam",{"FAM","AQ","BW","BZ","CX","GH","MV","PG","PH","TK","ZM"}}, -- Detect flag {"af", "African","za",{"NA","ZA"}}, {"sq", "Albanian","al",{"AL"}}, {"am", "Amharic","et",{"ET"}}, {"ar", "Arabic","ae",{"AE","BH","DZ","EG",...
mit
wagonrepairer/Zero-K
LuaUI/Widgets/unit_unit_reclaimer.lua
8
2331
function widget:GetInfo() return { name = "Specific Unit Reclaimer", desc = "Reclaims targeted unit types in an area", author = "Google Frog", date = "May 12, 2008", license = "GNU GPL, v2 or later", layer = 0, enabled = false -- loaded by default? } end loc...
gpl-2.0
beasterio/FireRays_SDK
UnitTest/UnitTest.lua
4
2546
project "UnitTest" location "../UnitTest" kind "ConsoleApp" includedirs { "../RadeonRays/include", "../Gtest/include", "../Calc/inc", "." } links {"Gtest", "RadeonRays", "Calc"} files { "**.cpp", "**.h" } if _OPTIONS["shared_calc"] then defines {"CALC_IMPORT_API"}; else de...
mit
shingenko/darkstar
scripts/globals/items/serving_of_mushroom_sautee.lua
35
1309
----------------------------------------- -- ID: 5676 -- Item: serving_of_mushroom_sautee -- Food Effect: 3Hrs, All Races ----------------------------------------- -- MP 60 -- Mind 6 -- MP Recovered While Healing 6 ----------------------------------------- require("scripts/globals/status"); --------------...
gpl-3.0
shingenko/darkstar
scripts/zones/East_Ronfaure/npcs/Signpost.lua
19
2142
----------------------------------- -- Area: East Ronfaure -- NPC: Signpost -- Involved in Quest: To Cure a Cough -- @pos 257 -45 212 101 ----------------------------------- package.loaded["scripts/zones/East_Ronfaure/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("s...
gpl-3.0
wagonrepairer/Zero-K
units/armcir.lua
2
6536
unitDef = { unitname = [[armcir]], name = [[Chainsaw]], description = [[Long-Range Anti-Air Missile Battery]], acceleration = 0, brakeRate = 0, buildAngle = 65536, buildCostEnergy ...
gpl-2.0
wagonrepairer/Zero-K
LuaUI/Widgets/api_chili.lua
7
10038
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Chili Framework", desc = "Hot GUI Framework", author = "jK", date = "WIP", license ...
gpl-2.0
openwayne/chaos_theory
mods/vehicles/init.lua
1
74099
-- Load support for intllib. local MP = minetest.get_modpath(minetest.get_current_modname()) local S, NS = dofile(MP.."/intllib.lua") vehicles = {} dofile(minetest.get_modpath("vehicles").."/api.lua") --very laggy and buggy flight -- minetest.register_globalstep(function(dtime) -- for _, player in ipairs(minetest.g...
lgpl-2.1
veden/Rampant
libs/PlayerUtils.lua
1
1062
-- Copyright (C) 2022 veden -- 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 3 of the License, or -- (at your option) any later version. -- This program is distributed...
gpl-3.0
TheAncientGoat/GodheadLips
data/godhead/scripts/client/shaders/default.lua
1
1932
Shader{name = "default", -- Low quality program. -- No lighting. low = { pass1_color_write = false, pass1_depth_func = "lequal", pass1_vertex = [[ void main() { vec4 tmp = LOS_matrix_modelview * vec4(LOS_coord,1.0); gl_Position = LOS_matrix_projection * tmp; }]], pass1_fragment = [[ void main() { }]], pass4_depth_fu...
gpl-3.0
lixiantai/barrier_breaker
feeds/luci/applications/luci-asterisk/luasrc/model/cbi/asterisk/dialplans.lua
80
2807
--[[ LuCI - Lua Configuration Interface Copyright 2008 Jo-Philipp Wich <xm@subsignal.org> 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$ ]]-- l...
gpl-2.0
wagonrepairer/Zero-K
scripts/shipscout.lua
2
2395
include "constants.lua" local base = piece 'base' local turret = piece 'turret' local hull = piece 'hull' local wake1 = piece 'wake1' local wake2 = piece 'wake2' local missile = piece 'missile' local firepoint = piece 'firepoint' local doorl = piece 'doorl' local doorr = piece 'doorr' local smokePiece = {base} ...
gpl-2.0
kveratis/GameCode4
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/lanes/tests/basic.lua
1
8270
-- -- BASIC.LUA Copyright (c) 2007-08, Asko Kauppi <akauppi@gmail.com> -- -- Selftests for Lua Lanes -- -- To do: -- - ... -- require "lanes" require "assert" -- assert.fails() local lanes_gen= assert( lanes.gen ) local lanes_linda= assert( lanes.linda ) local tostring= asse...
lgpl-3.0
Illarion-eV/Illarion-Content
craft/intermediate/sieving.lua
3
1354
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
shingenko/darkstar
scripts/zones/The_Celestial_Nexus/mobs/Exoplates.lua
18
2871
----------------------------------- -- Area: The Celestial Nexus -- NPC: Exoplates -- Zilart Mission 16 BCNM Fight ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/status"); require("scripts/globals/magic"); function onMobInitialize(mob) mob:addMod(MOD_REGAIN, 50); ...
gpl-3.0
ellipticaldoor/yesno
game/lua/player.lua
1
7719
player = {} function player.load() ground_ = 720 ground = ground_ + roof player.x, player.y = 30, 0 + roof player.xvel, player.yvel = 0, 0 player.fr, player.spd = 5, 4000 player.w, player.h = 60, 60 player.alpha, player.alphab = 255, 255 player.alphac = 255 player.gun_x, player.gun...
gpl-2.0
openwayne/chaos_theory
mods/fake_fire/init.lua
2
6915
local S = homedecor_i18n.gettext screwdriver = screwdriver or {} local function start_smoke(pos, node, clicker, chimney) local this_spawner_meta = minetest.get_meta(pos) local id = this_spawner_meta:get_int("smoky") local s_handle = this_spawner_meta:get_int("sound") local above = minetest.get_node({x=pos.x, y=p...
lgpl-2.1
shingenko/darkstar
scripts/zones/Al_Zahbi/npcs/Rajaaha.lua
53
2325
----------------------------------- -- Area: Al Zahbi -- NPC: Rajaaha -- Type: Goldsmithing Normal/Adv. Image Support -- @pos 49.9 0.1 -45.2 48 ----------------------------------- package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); require("sc...
gpl-3.0
azukiapp/lua-zmq
perf/remote_lat.lua
1
2018
-- Copyright (c) 2010 Aleksey Yeschenko <aleksey@yeschenko.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, c...
mit
shingenko/darkstar
scripts/globals/items/shrimp_cracker_+1.lua
35
1332
----------------------------------------- -- ID: 5636 -- Item: shrimp_cracker_+1 -- Food Effect: 5Min, All Races ----------------------------------------- -- Vitality 2 -- HP Recovered While Healing 9 -- Amorph Killer 5 ----------------------------------------- require("scripts/globals/status"); ---------...
gpl-3.0
shingenko/darkstar
scripts/zones/Southern_San_dOria_[S]/npcs/Nembet.lua
36
1042
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Nembet -- @zone 80 -- @pos 147 -3 110 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil; require("scripts/zones/Southern_San_dOria_[S]/TextIDs"); --------------------------------...
gpl-3.0
lixiantai/barrier_breaker
feeds/luci/applications/luci-pbx/luasrc/model/cbi/pbx-calls.lua
117
18881
--[[ Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com> This file is part of luci-pbx. luci-pbx 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 3 of the License, or ...
gpl-2.0
shingenko/darkstar
scripts/zones/The_Shrine_of_RuAvitau/npcs/Monolith.lua
17
5017
----------------------------------- -- Area: The Shrine of Ru'Avitau -- NPC: Monolith -- @pos <many> ----------------------------------- package.loaded["scripts/zones/The_Shrine_of_RuAvitau/TextIDs"] = nil; ----------------------------------- require("scripts/zones/The_Shrine_of_RuAvitau/TextIDs"); -------...
gpl-3.0
wagonrepairer/Zero-K
units/jumpriot.lua
3
4709
unitDef = { unitname = [[jumpriot]], name = [[Infernal]], description = [[Riot Jumper]], acceleration = 0.4, brakeRate = 0.4, buildCostEnergy = 260, buildCostMetal = 260, builder = false, buildPic = [[...
gpl-2.0
shingenko/darkstar
scripts/zones/Northern_San_dOria/npcs/Baraka.lua
17
2126
----------------------------------- -- Area: Northern San d'Oria -- NPC: Baraka -- Involved in Missions 2-3 -- @zone 231 -- @pos 36 -2 -2 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/setting...
gpl-3.0
oneboter/myboters
libs/dkjson.lua
3282
26558
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global values...
gpl-2.0
wagonrepairer/Zero-K
LuaRules/Gadgets/unit_refuel_pad_handler.lua
3
15500
function gadget:GetInfo() return { name = "Refuel Pad Handler", desc = "Replaces the engine implementation of the refuel pad.", author = "Google Frog", date = "5 Jan 2014", --changes: 22 March 2014 license = "GNU GPL, v2 or later", layer = 0, enabled = true, -- loaded by default? } end if (...
gpl-2.0
shingenko/darkstar
scripts/globals/items/cup_of_windurstian_tea.lua
35
1210
----------------------------------------- -- ID: 4493 -- Item: cup_of_windurstian_tea -- Food Effect: 180Min, All Races ----------------------------------------- -- Vitality -2 -- Charisma 1 ----------------------------------------- require("scripts/globals/status"); ---------------------------------------...
gpl-3.0
shingenko/darkstar
scripts/zones/Dynamis-San_dOria/Zone.lua
28
2487
----------------------------------- -- -- Zone: Dynamis-San_dOria -- ----------------------------------- package.loaded["scripts/zones/Dynamis-San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Dynamis-San_dOria/TextIDs"); ------------...
gpl-3.0
shingenko/darkstar
scripts/zones/Sea_Serpent_Grotto/npcs/qm3.lua
17
1378
----------------------------------- -- Area: Sea Serpent Grotto -- NPC: ??? Used for Norg quest "It's not your vault" -- @zone 176 -- @pos -173 26 252 2 ----------------------------------- package.loaded["scripts/zones/Sea_Serpent_Grotto/TextIDs"] = nil; ----------------------------------- require("scripts/g...
gpl-3.0
shingenko/darkstar
scripts/zones/Port_San_dOria/npcs/Answald.lua
13
1457
----------------------------------- -- Area: Port San d'Oria -- NPC: Answald -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; require("scripts/zones/Port_San_dOria/TextIDs"); ----------------------------------- -- onTrade Action --------...
gpl-3.0
shingenko/darkstar
scripts/zones/Cloister_of_Flames/mobs/Ifrit_Prime.lua
18
1857
----------------------------------------------------- -- Area: Cloister of Flames -- NPC: Ifrit Prime -- Involved in Quest: Trial by Fire -- Involved in Mission: ASA-4 Sugar Coated Directive ----------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems");...
gpl-3.0
shingenko/darkstar
scripts/zones/Leafallia/Zone.lua
34
1267
----------------------------------- -- -- Zone: Leafallia -- ----------------------------------- package.loaded["scripts/zones/Leafallia/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Leafallia/TextIDs"); ----------------------------------- ...
gpl-3.0
nimaghorbani/thorbotv2
libs/dkjson.lua
3282
26558
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global values...
gpl-2.0
HajiMokh/hmhaji
libs/dkjson.lua
3282
26558
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global values...
agpl-3.0
aboskroop/smilev2
libs/dkjson.lua
3282
26558
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global values...
gpl-3.0
padrinoo1/telelove
libs/dkjson.lua
3282
26558
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global values...
gpl-2.0
Illarion-eV/Illarion-Content
monster/race_14_transparent_beholder/id_143_horrible_ghost_eye.lua
3
1493
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
psychon/awesome
lib/awful/rules.lua
1
24659
--------------------------------------------------------------------------- --- Rules for clients. -- -- This module applies @{rules} to clients during startup (via @{client.manage}, -- but its functions can be used for client matching in general. -- -- All existing `client` properties can be used in rules. It is also ...
gpl-2.0
BSpike/MOOSE
Moose Development/Moose/Core/Database.lua
1
39618
--- **Core** -- DATABASE manages the database of mission objects. -- -- ==== -- -- ### Author: **Sven Van de Velde (FlightControl)** -- ### Contributions: -- -- ==== -- -- @module Database --- @type DATABASE -- @extends Core.Base#BASE --- # DATABASE class, extends @{Base#BASE} -- -- Mission designers can use ...
gpl-3.0
veden/Rampant
Upgrade.lua
1
22539
-- Copyright (C) 2022 veden -- 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 3 of the License, or -- (at your option) any later version. -- This program is distributed in the...
gpl-3.0
openwayne/chaos_theory
mods/animals_modpack/animal_deer/init.lua
2
9482
------------------------------------------------------------------------------- -- Mob Framework Mod by Sapier -- -- You may copy, use, modify or do nearly anything except removing this -- copyright notice. -- And of course you are NOT allow to pretend you have written it. -- --! @file init.lua --! @brief deer implemen...
lgpl-2.1
HajiMokh/hmhaji
plugins/lock_emoji.lua
43
2047
local function run(msg) local data = load_data(_config.moderation.data) if data[tostring(msg.to.id)]['settings']['emoji'] == 'yes' then if not is_momod(msg) then delete_msg(msg.id, ok_cb, true) end end end return {patterns = { "😞(.+)", "😞", "😐(.+)", "😐", "🙁(.+)", "🙁", "🌝(.+)", "🌝", "🤖(.+)", ...
agpl-3.0
shingenko/darkstar
scripts/globals/spells/kurayami_ni.lua
18
1059
----------------------------------------- -- Spell: Kurayami:Ni ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(cas...
gpl-3.0
Illarion-eV/Illarion-Content
quest/pasinn_539_wilderness.lua
1
6281
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
shadobaker/TeleBeyond
plugins/text2sticker.lua
22
1305
do local function run(msg, matches) local eq = URL.escape(matches[2]) local w = "640" local h = "200" local txtsize = "62" local txtclr = "ff2e4357" if matches[3] then txtclr = matches[3] end if matches[4] then txtsize = matches[4] end if matches[5] and matches[6] then w = matches[5] h = matches[6] ...
gpl-2.0
wagonrepairer/Zero-K
LuaRules/Configs/StartBoxes/Trefoil_v2.lua
11
2731
return { [0] = { boxes = { { {1979.4468994141, 2771.8461914063}, {2885.388671875, 3181.1948242188}, {2733.4694824219, 2892.4084472656}, {2754.6071777344, 2347.9621582031}, {2509.9516601563, 1856.2772216797}, {2264.2612304688, 1548.9146728516}, {1899.146484375, 1730.0141601563}, {17...
gpl-2.0
master041/tele___master
plugins/torrent_search.lua
223
1059
local https = require ('ssl.https') local ltn12 = require ("ltn12") local function search_kickass(query) local url = 'https://kat.cr/json.php?q='..URL.escape(query) local resp = {} local b,c = https.request { url = url, protocol = "tlsv1", sink = ltn12.sink.table(resp) } resp = table.concat(...
gpl-2.0
Illarion-eV/Illarion-Content
scheduled/gaia.lua
1
6150
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
kveratis/GameCode4
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/luadbi/DBI.lua
1
2003
#!/usr/bin/lua module('DBI', package.seeall) -- Driver to module mapping local name_to_module = { MySQL = 'dbdmysql', PostgreSQL = 'dbdpostgresql', SQLite3 = 'dbdsqlite3', DB2 = 'dbddb2', Oracle = 'dbdoracle', } local string = require('string') -- Returns a list of available drive...
lgpl-3.0
ArcherSys/ArcherSys
Lua/lua/json/decode/strings.lua
4
3829
--[[ Licensed according to the included 'LICENSE' document Author: Thomas Harning Jr <harningt@gmail.com> ]] local lpeg = require("lpeg") local util = require("json.decode.util") local merge = require("json.util").merge local tonumber = tonumber local string_char = require("string").char local floor = require("math"...
mit
wagonrepairer/Zero-K
LuaRules/Gadgets/unit_conditional_transportability.lua
7
3988
function gadget:GetInfo() return { name = "Conditional Transportability", desc = "Allows units to only be transportable in some situations.", author = "sprung", date = "15-05-15", license = "PD", layer = 0, enabled = false } end if (gadgetHandler:IsSyncedCode()) then -- transports and potentially ...
gpl-2.0
Illarion-eV/Illarion-Content
quest/thorgrem_silverbeard_708_galmair.lua
1
10191
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
fingon/hnet-core
spec/dns_codec_spec.lua
1
16709
#!/usr/bin/env lua -- -*-lua-*- -- -- $Id: dns_codec_spec.lua $ -- -- Author: Markus Stenberg <markus stenberg@iki.fi> -- -- Copyright (c) 2012 cisco Systems, Inc. -- -- Created: Fri Nov 30 12:06:56 2012 mstenber -- Last modified: Wed Jun 26 19:32:06 2013 mstenber -- Edit time: 126 min -- require "busted" re...
gpl-2.0