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
The-HalcyonDays/darkstar
scripts/zones/Castle_Zvahl_Keep/Zone.lua
28
4006
----------------------------------- -- -- Zone: Castle_Zvahl_Keep (162) -- ----------------------------------- package.loaded["scripts/zones/Castle_Zvahl_Keep/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Castle_Zvahl_Keep/TextIDs"); ------...
gpl-3.0
leafo/luarocks
src/luarocks/fetch/git.lua
6
3505
--- Fetch back-end for retrieving sources from GIT. --module("luarocks.fetch.git", package.seeall) local git = {} local unpack = unpack or table.unpack local fs = require("luarocks.fs") local dir = require("luarocks.dir") local util = require("luarocks.util") --- Git >= 1.7.10 can clone a branch **or tag**, < 1.7.1...
mit
rrpgfirecast/firecast
Plugins/Sheets/Ficha Demônio A Queda/output/rdkObjs/Demônio A Queda/rol.lfm.lua
1
5154
require("firecast.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); require("locale.lua"); local __o_Utils = require("utils.lua"); local function constructNew_frmkpta9_svg() local obj = GUI.fromHandle(_obj_newObject(...
apache-2.0
rrpgfirecast/firecast
Plugins/Core/rrpginlua/output/rdkObjs/fichaBasicaV3Branca.lfm.lua
1
2984
require("firecast.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); require("locale.lua"); local __o_Utils = require("utils.lua"); local function constructNew_frmFichaBasicaV3RichWhite() local obj = GUI.fromHandle(_o...
apache-2.0
The-HalcyonDays/darkstar
scripts/globals/weaponskills/ground_strike.lua
30
1581
----------------------------------- -- Ground Strike -- Great Sword weapon skill -- Skill level: 250 QUESTED -- Delivers a single-hit attack. Damage varies with TP. -- Modifiers: STR:50% INT:50% -- 100%TP 200%TP 300%TP -- 1.5 1.75 3.0 ----------------------------------- require("scripts/globals/status"); ...
gpl-3.0
cc-paw/cc-paw
releases/cc-paw/0.4.3/lib.lua
1
11307
local v = dofile "/lib/semver.lua" local util = dofile "/lib/cc-paw-util.lua" local p, e, a, script = util.p, util.e, util.a, util.script local ccpaw = {} ccpaw.v = v"0.4.3" local sources = "/etc/cc-paw/sources.list" local sCache = "/var/cache/cc-paw/sources/" local iCache = "/var/cache/cc-paw/installed/" local rCac...
mit
mreid-moz/data-pipeline
heka/sandbox/decoders/http_edge_decoder.lua
3
6904
-- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at http://mozilla.org/MPL/2.0/. -- See https://wiki.mozilla.org/CloudServices/DataPipeline/HTTPEdgeServerSpecification require "cjson" require "lpeg...
mpl-2.0
angeloc/sysdig
userspace/sysdig/chisels/v_containers.lua
4
4710
--[[ Copyright (C) 2013-2018 Draios Inc dba Sysdig. This file is part of sysdig. 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 ...
apache-2.0
eric-tramel/rbm_toolbox_lua
code/ProFi.lua
15
14020
--[[ ProFi v1.3, by Luke Perkin 2012. MIT Licence http://www.opensource.org/licenses/mit-license.php. Example: ProFi = require 'ProFi' ProFi:start() some_function() another_function() coroutine.resume( some_coroutine ) ProFi:stop() ProFi:writeReport( 'MyProfilingReport.txt' ) API: *Arguments are sp...
bsd-3-clause
otservme/global1053
data/globalevents/scripts/others/serverSave.lua
1
1037
local shutdownAtServerSave = true local cleanMapAtServerSave = false local function serverSave() if shutdownAtServerSave then Game.setGameState(GAME_STATE_SHUTDOWN) else Game.setGameState(GAME_STATE_NORMAL) end if cleanMapAtServerSave then cleanMap() e...
gpl-2.0
The-HalcyonDays/darkstar
scripts/globals/mobskills/Wind_Shear_ZNM.lua
25
1125
--------------------------------------------- -- Wind Shear -- -- Description: Deals damage to enemies within an area of effect. Additional effect: Knockback -- Type: Physical -- Utsusemi/Blink absorb: 2-3 shadows -- Range: 10' radial -- Notes: The knockback is rather severe. Vulpangue uses an enhanced ver...
gpl-3.0
The-HalcyonDays/darkstar
scripts/zones/Horlais_Peak/bcnms/double_dragonian.lua
13
1770
----------------------------------- -- Area: Horlias peak -- Name: double_dragonian -- KSNM30 ----------------------------------- package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/quests"); require("scripts/zones/...
gpl-3.0
The-HalcyonDays/darkstar
scripts/globals/mobskills/Throat_Stab.lua
7
1114
--------------------------------------------- -- Throat Stab -- -- Description: Deals damage to a single target reducing their HP to 5%. Resets enmity. -- Type: Physical -- Utsusemi/Blink absorb: No -- Range: Single Target -- Notes: Very short range, easily evaded by walking away from it. ----------------...
gpl-3.0
mpraglowski/dotfiles
.config/nvim/lua/settings/lsp.lua
1
3099
local status, lualine = pcall(require, "lspconfig") if not status then return end local lsp_config = require("lspconfig") local protocol = require("vim.lsp.protocol") local on_attach = function(client, bufnr) if client.config.flags then client.config.flags.allow_incremental_sync = true end if client.reso...
mit
The-HalcyonDays/darkstar
scripts/globals/items/blindfish.lua
18
1257
----------------------------------------- -- ID: 4313 -- Item: Blindfish -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Mind -4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ---------...
gpl-3.0
The-HalcyonDays/darkstar
scripts/globals/mobskills/Mijin_Gakure.lua
7
1158
--------------------------------------------------- -- Ranged Attack -- Deals a ranged attack to a single target. --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); -------------------------------------...
gpl-3.0
APItools/monitor
lua/resty/sha256.lua
13
1231
-- Copyright (C) by Yichun Zhang (agentzh) local sha = require "resty.sha" local ffi = require "ffi" local ffi_new = ffi.new local ffi_str = ffi.string local C = ffi.C local setmetatable = setmetatable local error = error local _M = { _VERSION = '0.09' } local mt = { __index = _M } ffi.cdef[[ typedef struct SHA...
mit
The-HalcyonDays/darkstar
scripts/zones/Bastok_Markets/npcs/Hortense.lua
36
1972
----------------------------------- -- Area: Bastok Markets -- NPC: Hortense -- Standard Merchant NPC -- -- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; require...
gpl-3.0
The-HalcyonDays/darkstar
scripts/globals/items/bowl_of_witch_stew.lua
35
1461
----------------------------------------- -- ID: 4344 -- Item: witch_stew -- Food Effect: 4hours, All Races ----------------------------------------- -- Magic Points 45 -- Strength -1 -- Mind 4 -- MP Recovered While Healing 4 -- Enmity -4 ----------------------------------------- require("scripts/globals/s...
gpl-3.0
The-HalcyonDays/darkstar
scripts/globals/items/bowl_of_cursed_soup.lua
35
1602
----------------------------------------- -- ID: 4235 -- Item: Bowl of Cursed Soup -- Food Effect: 180Min, All Races ----------------------------------------- -- Strength -7 -- Dexterity -7 -- Agility -7 -- Vitality -7 -- Intelligence -7 -- Mind -7 -- Charisma -7 ----------------------------------------- ...
gpl-3.0
KlonD90/tarantool
src/lua/csv.lua
6
6508
-- csv.lua (internal file) local ffi = require('ffi') local log = require('log') ffi.cdef[[ typedef void (*csv_emit_row_t)(void *ctx); typedef void (*csv_emit_field_t)(void *ctx, const char *field, const char *end); struct csv { void *emit_ctx; csv_emit_row_t emit_row; csv_emi...
bsd-2-clause
vasilenkomike/tarantool
test/app/json.test.lua
11
1058
#!/usr/bin/env tarantool package.path = "lua/?.lua;"..package.path local ffi = require('ffi') local tap = require('tap') local common = require('serializer_test') local function is_map(s) return string.sub(s, 1, 1) == "{" end local function is_array(s) return string.sub(s, 1, 1) == "[" end local function t...
bsd-2-clause
The-HalcyonDays/darkstar
scripts/globals/items/plate_of_vegan_sautee.lua
35
1401
----------------------------------------- -- ID: 5184 -- Item: plate_of_vegan_sautee -- Food Effect: 240Min, All Races ----------------------------------------- -- Agility 1 -- Vitality -1 -- Ranged ACC % 7 -- Ranged ACC Cap 20 ----------------------------------------- require("scripts/globals/status"); ...
gpl-3.0
The-HalcyonDays/darkstar
scripts/zones/Beadeaux/TextIDs.lua
4
1373
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6383; -- Obtained: <item>. GIL_OBTAINED = 6384; -- Obtained <number> gil. KEYITEM_OBTAINED = 6386; -- Obtained...
gpl-3.0
matinbot/testjyrtdxjytd
plugins/invite.lua
1111
1195
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) then -- Ignore bans send_large_msg(chat, 'User is banned.') elseif is_gbanned(result.id) then -- I...
gpl-2.0
hxw804781317/MT7620N
package/ralink/ui/luci-mtk/src/modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua
83
4608
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.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$ ]]-- req...
gpl-2.0
rrpgfirecast/firecast
Plugins/Sheets/ficha tales from the loop plugin/output/rdkObjs/ficha_editavel-tftl/ficha_editavel-tftl.lfm.lua
1
60904
require("firecast.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); require("locale.lua"); local __o_Utils = require("utils.lua"); local function constructNew_frmficha_editavel_tftl() local obj = GUI.fromHandle(_obj_...
apache-2.0
Kinathka/gmod_airbase_vehicles
avehicle_heli/lua/entities/avehicle_heli_ch46/sv/events.lua
3
6348
/********************************************************************************************** //////##////////##//////////##//##########//##////////##////////##////////##########//########## ////##//##//////##//////////##//##//////////####//////##//////##//##//////////##//////##//////// ////##//##//////##//////////##...
lgpl-3.0
The-HalcyonDays/darkstar
scripts/zones/San_dOria-Jeuno_Airship/npcs/Ricaldo.lua
12
2056
----------------------------------- -- Area: San d'Oria-Jeuno Airship -- NPC: Ricaldo -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/San_dOria-Jeuno_Airship/TextIDs"] = nil; require("scripts/zones/San_dOria-Jeuno_Airship/TextIDs"); ----------------------------------- -- onTra...
gpl-3.0
otservme/global1053
data/actions/scripts/ice islands quest/iceIslandsQuestYakchal.lua
3
1519
function onUse(cid, item, fromPosition, itemEx, toPosition) local player = Player(cid) local sarcophagus = {x = 32205, y = 31002, z = 14} if toPosition.x == sarcophagus.x and toPosition.y == sarcophagus.y and toPosition.z == sarcophagus.z and itemEx.itemid == 7362 and item.itemid == 2361 then if getGlobalStorageValu...
gpl-2.0
The-HalcyonDays/darkstar
scripts/zones/Abyssea-Konschtat/TextIDs.lua
4
3322
-- 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 = 6383; -- Obtained: <item> GIL_OBTAINED = 6384; -- Obtained <number> gil KEYITEM_OBTAINED = 6385; -- Obtain...
gpl-3.0
The-HalcyonDays/darkstar
scripts/commands/hide.lua
62
1164
--------------------------------------------------------------------------------------------------- -- func: hide -- desc: Hides the GM from other players. --------------------------------------------------------------------------------------------------- cmdprops = { permission = 1, parameters = "s" }; funct...
gpl-3.0
apwiede/nodemcu-firmware
lua_examples/http-client.lua
8
1050
-- Support HTTP and HTTPS, For example -- HTTP POST Example with JSON header and body http.post("http://somewhere.acceptjson.com/", "Content-Type: application/json\r\n", "{\"hello\":\"world\"}", function(code, data) print(code) print(data) end) -- HTTPS GET Example with NULL header http...
mit
root4r08/RoOt3r08
plugins/msg_checks.lua
2
11384
--[[ # #ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ #:(( # For More Information ....! # Developer : reza < @Yagop > # our channel: @Ntflight # Version: 1.1 #:)) #ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ # ]] --Begin ms...
gpl-2.0
rpetit3/darkstar
scripts/zones/Southern_San_dOria_[S]/npcs/MiliartTK.lua
29
4950
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Miliart T.K -- Type: Sigil NPC -- @pos 107 1 -31 80 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); require("scrip...
gpl-3.0
dmccuskey/dmc-objects
examples/DMC-MultiShapes/dmc_corona/lib/dmc_lua/bit.lua
47
2044
--====================================================================-- -- dmc_lua/bit.lua -- -- a consistent method to load Lua BitOp on various systems -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright...
mit
dmccuskey/dmc-objects
examples/DMC-ufo/dmc_corona/lib/dmc_lua/bit.lua
47
2044
--====================================================================-- -- dmc_lua/bit.lua -- -- a consistent method to load Lua BitOp on various systems -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright...
mit
vfedoroff/prosody-modules
mod_server_contact_info/mod_server_contact_info.lua
32
1546
-- This plugin implements http://xmpp.org/extensions/xep-0157.html local t_insert = table.insert; local df_new = require "util.dataforms".new; -- Source: http://xmpp.org/registrar/formtypes.html#http:--jabber.org-network-serverinfo local valid_types = { abuse = true; admin = true; feedback = true; sales = true; s...
mit
esguk811/DarkRP
entities/entities/letter/init.lua
8
2553
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") include("commands.lua") function ENT:Initialize() self:SetModel("models/props_c17/paper01.mdl") self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:SetUseType(SIMPLE_USE...
mit
rpetit3/darkstar
scripts/zones/The_Eldieme_Necropolis/npcs/_5f3.lua
13
1080
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: Leviathan's Gate -- @pos 145 -34 20 195 ----------------------------------- package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil; ----------------------------------- require("scripts/zones/The_Eldieme_Necropolis/TextIDs"); --...
gpl-3.0
rpetit3/darkstar
scripts/globals/spells/bluemagic/firespit.lua
35
1451
----------------------------------------- -- Spell: Firespit -- Deals fire damage to an enemy -- Spell cost: 121 MP -- Monster Type: Beastmen -- Spell Type: Magical (Fire) -- Blue Magic Points: 5 -- Stat Bonus: STR+3 -- Level: 68 -- Casting Time: 6.5 seconds -- Recast Time: 42.75 seconds -- Magic Bursts on: Liquefactio...
gpl-3.0
rpetit3/darkstar
scripts/zones/Outer_RaKaznar/npcs/Liseran_Door_Exit.lua
27
1207
----------------------------------- -- Area: Outer Ra'Kaznar -- NPC: Liseran Door Exit -- Zones out to Kamihr Drifts (zone 267) -- @zone 274 -- @pos -34.549 -181.334 -20.031 ----------------------------------- package.loaded["scripts/zones/Outer_RaKaznar/TextIDs"] = nil; ----------------------------------- require("sc...
gpl-3.0
Marnador/OpenRA-Marn-TS-Edition
mods/ra/maps/soviet-06b/soviet06b-AI.lua
19
3127
IdleHunt = function(unit) if not unit.IsDead then Trigger.OnIdle(unit, unit.Hunt) end end IdlingUnits = function() local lazyUnits = enemy.GetGroundAttackers() Utils.Do(lazyUnits, function(unit) Trigger.OnDamaged(unit, function() Trigger.ClearAll(unit) Trigger.AfterDelay(0, function() IdleHunt(unit) end) ...
gpl-3.0
rpetit3/darkstar
scripts/globals/items/clump_of_batagreens.lua
18
1193
----------------------------------------- -- ID: 4367 -- Item: clump_of_batagreens -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility 2 -- Vitality -4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck...
gpl-3.0
schidler/ionic-luci
applications/luci-app-statistics/luasrc/statistics/datatree.lua
58
4177
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.statistics.datatree", package.seeall) local util = require("luci.util") local sys = require("luci.sys") local fs = require("nixio.fs") local uci = require("luci.model.uci").c...
apache-2.0
mrbangi/yagop
plugins/trivia.lua
647
6784
do -- Trivia plugin developed by Guy Spronck -- Returns the chat hash for storing information local function get_hash(msg) local hash = nil if msg.to.type == 'chat' then hash = 'chat:'..msg.to.id..':trivia' end if msg.to.type == 'user' then hash = 'user:'..msg.from.id..':trivia' end return hash en...
gpl-2.0
rpetit3/darkstar
scripts/zones/North_Gustaberg/npcs/Heavy_Fog_IM.lua
13
3328
----------------------------------- -- Area: North Gustaberg -- NPC: Heavy Fog, I.M. -- Type: Border Conquest Guards -- @pos -520.704 38.75 560.258 106 ----------------------------------- package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conque...
gpl-3.0
rpetit3/darkstar
scripts/globals/spells/slowga.lua
21
1218
----------------------------------------- -- Spell: Slow -- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and MND. -- Slow's potency is calculated with the formula (150 + dMND*2)/1024, and caps at 300/1024 (~29.3%). -- And MND of 75 is neccessary to reach the hardcap of Slow. -------...
gpl-3.0
lexa/awesome
lib/wibox/layout/flex.lua
2
4718
--------------------------------------------------------------------------- -- @author Uli Schlachter -- @copyright 2010 Uli Schlachter -- @release @AWESOME_VERSION@ -- @classmod wibox.layout.flex --------------------------------------------------------------------------- local base = require("wibox.layout.base") loca...
gpl-2.0
nokizorque/ucd
DENstream/server.lua
1
2815
-- Tables local streamsTable = {} local streamSpeaker = {} -- When a staff wants to open the stream addCommandHandler( "stream", function ( thePlayer ) --if (exports.UCDadmin:isPlayerOwner(thePlayer)) then if (exports.UCDadmin:isPlayerAdmin(thePlayer)) then triggerClientEvent( thePlayer...
mit
rpetit3/darkstar
scripts/zones/The_Celestial_Nexus/npcs/_513.lua
13
1468
----------------------------------- -- Area: Celestial Nexus -- NPC: _515 ----------------------------------- package.loaded["scripts/zones/The_Celestial_Nexus"] = nil; package.loaded["scripts/globals/bcnm"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/globals/quests")...
gpl-3.0
luizfeliperj/nodemcu-firmware
lua_modules/http/http-example.lua
88
1377
------------------------------------------------------------------------------ -- HTTP server Hello world example -- -- LICENCE: http://opensource.org/licenses/MIT -- Vladimir Dronnikov <dronnikov@gmail.com> ------------------------------------------------------------------------------ require("http").createServer(80, ...
mit
jgm/lunamark-standalone
src/lunamark/writer/generic.lua
1
5520
-- (c) 2009-2011 John MacFarlane. Released under MIT license. -- See the file LICENSE in the source for details. --- Generic writer for lunamark. -- This serves as generic documentation for lunamark writers, -- which all export a table with the same functions defined. -- -- New writers can simply modify the generic wr...
mit
ddouglascarr/rooset
lfframework/framework/env/ui/paginate.lua
1
2919
--[[-- ui.paginate{ selector = selector, -- a selector for items from the database (will be modified) anchor = anchor, -- optional name of anchor in document to jump to per_page = per_page, -- items per page, defaults to 10 container_attr = container_attr, -- html att...
mit
Kowh/RareTimer
libs/GeminiConfig/GeminiConfigGUI-1.0/widgets/GeminiConfigGUIWidget-CheckBox.lua
1
5561
-- -*- lua-indent-level: 4; -*- --[[----------------------------------------------------------------------------- Checkbox Widget -------------------------------------------------------------------------------]] local Type, Version = "CheckBox", 22 local GeminiConfigGUIPkg = Apollo.GetPackage("Gemini:ConfigGUI-1.0") lo...
mit
dani-sj/komil01
bot/nod32bot.lua
1
11225
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") VERSION = '2' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then return...
gpl-2.0
brendonjustin/vlc
share/lua/sd/librivox.lua
108
3015
--[[ $Id$ Copyright © 2010 VideoLAN and AUTHORS Authors: Rémi Duraffort <ivoire at videolan dot 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 ...
gpl-2.0
LazyZhu/qmp
packages/qmp-system/files/usr/lib/lua/luci/model/cbi/qmp/gateways.lua
2
4833
--[[ Copyright (C) 2013 Quick Mesh Project 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 option) any later version. This progra...
gpl-2.0
chrizel/Yzis
tests/scripts/utils.lua
2
1419
--[[ ======================================================================= Utilities useful for Yzis lua scripting. Author : Philippe Fremy License: LGPL Version: 0.1 ======================================================================== ]]-- -- Returns a string containing all the lines of the current buffer fu...
gpl-2.0
dwmw2/luci
modules/luci-mod-freifunk/luasrc/controller/freifunk/freifunk.lua
59
5943
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.freifunk.freifunk", package.seeall) function index() local uci = require "luci.model.uci".cursor() local page -- Frontend page = node() page.lock = true page.target ...
apache-2.0
wez2020/ss
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
peterbarker/ardupilot
libraries/AP_Scripting/examples/terrain_warning.lua
22
1780
-- height above terrain warning script -- min altitude above terrain, script will warn if lower than this local terrain_min_alt = 20 -- warning is only enabled further than this distance from home local home_dist_enable = 25 -- must have climbed at least this distance above terrain since arming to enable warning loc...
gpl-3.0
sys4-fr/server-minetestforfun
mods/mobs_monster/minotaur.lua
1
3116
-- Minotaur Monster by ??? mobs:register_mob("mobs_monster:minotaur", { -- animal, monster, npc, barbarian type = "monster", -- aggressive, deals 11 damage to player when hit passive = false, attack_type = "dogfight", pathfinding = false, reach = 2, damage = 6, -- health & armor hp_min = 45, hp_max = 55, ...
unlicense
rpetit3/darkstar
scripts/zones/Selbina/npcs/Elfriede.lua
13
1995
----------------------------------- -- Area: Selbina -- NPC: Elfriede -- Involved In Quest: The Tenshodo Showdown -- @pos 61 -15 10 248 ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Selbina/TextIDs"); require("scri...
gpl-3.0
schidler/ionic-luci
modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/system.lua
47
5384
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local sys = require "luci.sys" local zones = require "luci.sys.zoneinfo" local fs = require "nixio.fs" local conf = require "luci.config" local m, s, o ...
apache-2.0
rpetit3/darkstar
scripts/zones/Sacrarium/npcs/Small_Keyhole.lua
29
1201
----------------------------------- -- NPC: Small Keyhole -- Area: Sacrarium -- @pos 99.772 -1.614 51.545 28 ----------------------------------- package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Sacrarium/TextIDs"); -----------------------------------...
gpl-3.0
spacebuild/spacebuild
lua/caf/stools/ls3_receptacles/extra_h_storage.lua
4
1169
DEVICEGROUP.type = "storage_gas_h" --[[ You can also use skin = number here to define a skin to make the Module spawn with You can also use material = "path/to/material" to set a material to make it spawn with ]] DEVICEGROUP.devices = { add_one = { Name = "CE Small Hydrogen Storage", model = "mo...
apache-2.0
Afforess/Misanthrope
libs/biter/random_name.lua
1
3236
RandomName = {} function RandomName.get_random_vowel() local r = math.random(38100) if (r < 8167) then return 'a' end if (r < 20869) then return 'e' end if (r < 27835) then return 'i' end if (r < 35342) then return 'o' end return 'u' end function RandomName.get_random_consonant() local r ...
isc
ddouglascarr/rooset
lffrontend/app/main/_filter/21_auth.lua
1
3825
local module = request.get_module() local view = request.get_view() local action = request.get_action() local auth_needed = not ( module == 'index' and ( view == "login" or action == "login" or view == "register" or action == "register" or action == "cancel_register" or view == "about" ...
mit
rpetit3/darkstar
scripts/zones/Selbina/npcs/Oswald.lua
13
5026
----------------------------------- -- Area: Selbina -- NPC: Oswald -- Starts and Finishes Quest: Under the sea (finish), The gift, The real gift -- @pos 48 -15 9 248 ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Se...
gpl-3.0
openrouter/openrouter-app
luci/applications/luci-qos_gargoyle/luasrc/controller/qos_gargoyle.lua
3
1037
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.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: qos.lua 9...
gpl-2.0
rpetit3/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Hagakoff.lua
13
2085
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Hagakoff -- Standard Merchant NPC -- Partitionally Implemented -- Difficult Shop Script needed ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("s...
gpl-3.0
esguk811/DarkRP
gamemode/modules/positions/sv_database.lua
5
5086
--[[--------------------------------------------------------------------------- Loading ---------------------------------------------------------------------------]] local teamSpawns = {} local jailPos = {} local function onDBInitialized() local map = MySQLite.SQLStr(string.lower(game.GetMap())) MySQLite.query(...
mit
MHK-BOT/copy
plugins/Set_Get.lua
2
2770
local function save_value(msg, name, value) if (not name or not value) then return "مقدار وارد شده صحيح نيست" end local hash = nil if msg.to.type == 'chat' then hash = 'chat:'..msg.to.id..':variables' end if msg.to.type == 'user' then hash = 'user:'..msg.from.id..':variables' end if hash t...
gpl-2.0
vfedoroff/prosody-modules
mod_dwd/mod_dwd.lua
32
1300
local hosts = _G.hosts; local st = require "util.stanza"; local nameprep = require "util.encodings".stringprep.nameprep; local cert_verify_identity = require "util.x509".verify_identity; module:hook("stanza/jabber:server:dialback:result", function(event) local origin, stanza = event.origin, event.stanza; if origin....
mit
rpetit3/darkstar
scripts/zones/LaLoff_Amphitheater/npcs/qm0_1.lua
13
1157
----------------------------------- -- Area: LaLoff_Amphitheater -- NPC: qm0 (warp player outside after they win fight) ------------------------------------- package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil; ------------------------------------- require("scripts/zones/LaLoff_Amphitheater/TextIDs"); ...
gpl-3.0
MinetestForFun/server-minetestforfun-creative
mods/mesecons/mesecons_button/init.lua
12
2819
-- WALL BUTTON -- A button that when pressed emits power for 1 second -- and then turns off again mesecon.button_turnoff = function (pos) local node = minetest.get_node(pos) if node.name=="mesecons_button:button_on" then --has not been dug minetest.swap_node(pos, {name = "mesecons_button:button_off", param2=node.p...
unlicense
rafrombrc/push_derived
hindsight/hs_run/output/push_endp_redshift.lua
1
1512
-- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at http://mozilla.org/MPL/2.0/. local ds = require "derived_stream" local function get_uuid() return string.format("%X%X%X%X-%X%X-%X%X-%X%X-%X%X...
mpl-2.0
dmccuskey/dmc-objects
examples/DMC-ufo/dmc_corona/lib/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
ddouglascarr/rooset
lffrontend/app/main/admin/newsletter_edit.lua
1
1599
local id = param.get_id() local newsletter = {} if id then newsletter = Newsletter:by_id(id) end ui.titleAdmin(_"Newsletter") ui.form{ attr = { class = "vertical section" }, module = "admin", action = "newsletter_update", id = newsletter and newsletter.id, record = newsletter, routing = { default ...
mit
askore/LootSecretary
src/lua/Libs/AceConfig-3.0/AceConfigCmd-3.0/AceConfigCmd-3.0.lua
11
24292
--- AceConfigCmd-3.0 handles access to an options table through the "command line" interface via the ChatFrames. -- @class file -- @name AceConfigCmd-3.0 -- @release $Id: AceConfigCmd-3.0.lua 1045 2011-12-09 17:58:40Z nevcairiel $ --[[ AceConfigCmd-3.0 Handles commandline optionstable access REQUIRES: AceC...
apache-2.0
rpetit3/darkstar
scripts/zones/Port_Bastok/npcs/Bruno.lua
30
1430
----------------------------------- -- Area: Port Bastok -- NPC: Bruno -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; require("scripts/zones/Port_Bastok/TextIDs"); ----------------------------------- -- onTrade Action ------------------------------...
gpl-3.0
rpetit3/darkstar
scripts/zones/Garlaige_Citadel/npcs/qm15.lua
13
1437
----------------------------------- -- Area: Garlaige Citadel -- NPC: qm15 (???) -- Involved in Quest: Hitting the Marquisate (THF AF3) -- @pos 19.893 -5.500 325.767 200 ----------------------------------- package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil; ----------------------------------- require("scr...
gpl-3.0
opentechinstitute/luci-commotion-linux
libs/lucid-http/luasrc/lucid/http/handler/file.lua
44
7477
--[[ HTTP server implementation for LuCI - file handler (c) 2008 Steven Barth <steven@midlink.org> (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> 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 cop...
apache-2.0
rpetit3/darkstar
scripts/zones/Northern_San_dOria/npcs/Emeige_AMAN.lua
65
1182
----------------------------------- -- Area: Northern San d'Oria -- NPC: Emeige A.M.A.N. -- Type: Mentor Recruiter ----------------------------------- ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; ----------------------------------- ...
gpl-3.0
rpetit3/darkstar
scripts/globals/items/zucchini.lua
18
1262
----------------------------------------- -- ID: 5726 -- Item: Zucchini -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility 1 -- Vitality -3 -- Defense -1 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCh...
gpl-3.0
rpetit3/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/_1e9.lua
29
1155
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: _1e9 (Gate: The Pit) -- @pos 80 -1.949 -107.94 -- Used to enter "The Colosseum" zone. ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zo...
gpl-3.0
rpetit3/darkstar
scripts/zones/Uleguerand_Range/npcs/HomePoint#1.lua
27
1258
----------------------------------- -- Area: Uleguerand_Range -- NPC: HomePoint#1 -- @pos ----------------------------------- package.loaded["scripts/zones/Uleguerand_Range/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Uleguerand_Range/TextIDs"); require("scripts/globals/homepoint"); ...
gpl-3.0
Afforess/Misanthrope
libs/biter/ai/harrassment.lua
1
2982
local Harrassment = {stages = {}} local Log = function(str, ...) BiterBase.LogAI("[Harrassment] " .. str, ...) end Harrassment.search_radius = 14 Harrassment.search_queue = {} for dx, dy in Area.spiral_iterate(Position.expand_to_area({0, 0}, Harrassment.search_radius)) do table.insert(Harrassment.search_queue, {x...
isc
githubmereza/sargarme.lua
plugins/plugins.lua
1
5591
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( name ) for k,v in pairs(p...
gpl-2.0
tommo/gii
lib/lua/mock_edit/init.lua
1
1885
require 'mock.env' -------------------------------------------------------------------- -- mock.setLogLevel( 'status' ) module( 'mock_edit', package.seeall ) -------------------------------------------------------------------- --CORE -------------------------------------------------------------------- require 'mock_...
mit
lukego/snabbswitch
src/lib/hash/murmur.lua
13
6885
-- Implementation of the MurmurHash3 hash function according to the -- reference implementation -- https://code.google.com/p/smhasher/source/browse/trunk/MurmurHash3.cpp -- -- This implementation does not include the variant MurmurMash3_x86_128. -- -- Note that these hash functions are dependent on the endianness of --...
apache-2.0
MinetestForFun/server-minetestforfun-creative
minetestforfun_game/mods/walls/init.lua
3
1850
--[[ Walls mod for Minetest Copyright (C) 2015 Auke Kok <sofar@foo-projects.org> This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as publish...
unlicense
rpetit3/darkstar
scripts/zones/AlTaieu/mobs/Om_yovra.lua
46
1103
----------------------------------- -- Area: Al'Taieu -- MOB: Ru_aern ----------------------------------- require("scripts/globals/missions"); require("scripts/globals/status"); ----------------------------------- -- onMobInitialize Action ----------------------------------- function onMobInitialize(mob) end; -----...
gpl-3.0
rpetit3/darkstar
scripts/zones/Gusgen_Mines/npcs/_5g2.lua
13
1083
----------------------------------- -- Area: Gusgen Mines -- NPC: _5g2 (Door A) -- @pos -4.001 -42.4 -25.5 196 ----------------------------------- package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Gusgen_Mines/TextIDs"); ---------------------------...
gpl-3.0
rpetit3/darkstar
scripts/zones/Qulun_Dome/npcs/_440.lua
13
1586
----------------------------------- -- Area: Qulun Dome -- NPC: Door -- Involved in Mission: Magicite -- @pos 60 24 -2 148 ----------------------------------- package.loaded["scripts/zones/Qulun_Dome/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/zones/Qulun...
gpl-3.0
schidler/ionic-luci
applications/luci-app-diag-devinfo/luasrc/controller/luci_diag/luci_diag_devinfo.lua
61
1933
-- Copyright 2009 Daniel Dickinson -- Licensed to the public under the Apache License 2.0. module("luci.controller.luci_diag.luci_diag_devinfo", package.seeall) function index() local e e = entry({"admin", "voice", "diag", "phones"}, arcombine(cbi("luci_diag/smap_devinfo"), cbi("luci_diag/smap_devinfo_config")...
apache-2.0
Kowh/RareTimer
libs/GeminiConfig/GeminiConfigGUI-1.0/widgets/GeminiConfigGUIWidget-Slider.lua
2
11904
-- -*- lua-indent-level: 4; -*- --[[----------------------------------------------------------------------------- Slider Widget Graphical Slider, like, for Range values. -------------------------------------------------------------------------------]] local Type, Version = "Slider", 21 local GeminiConfigGUIPkg...
mit
rpetit3/darkstar
scripts/zones/Yuhtunga_Jungle/npcs/Luck_Rune.lua
13
1041
----------------------------------- -- Area: Yuhtunga Jungle -- NPC: Luck Rune -- Involved in Quest: Mhaura Fortune -- @pos -95.486 11.188 418.153 123 ----------------------------------- package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil; ------------------------------------- require("scripts/zones/Yuh...
gpl-3.0
rpetit3/darkstar
scripts/zones/Port_Jeuno/npcs/Caffie.lua
27
1730
----------------------------------- -- Area: Port Jeuno -- NPC: Caffie -- Type: Chocobo Renter ----------------------------------- require("scripts/globals/chocobo"); require("scripts/globals/keyitems"); require("scripts/globals/settings"); require("scripts/globals/status"); ----------------------------------- -- on...
gpl-3.0