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 |
|---|---|---|---|---|---|
vfedoroff/prosody-modules | mod_twitter/mod_twitter.lua | 32 | 15067 | -- for Prosody
-- via dersd
if module:get_host_type() ~= "component" then
error(module.name.." should be loaded as a component, check out http://prosody.im/doc/components", 0);
end
local jid_split = require "util.jid".split;
local st = require "util.stanza";
local componentmanager = require "core.componentmanager";
... | mit |
rpetit3/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Sulbahn.lua | 29 | 2002 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Sulbahn
-- Type: Alchemy Adv. Image Support
-- @pos -10.470 -6.25 -141.700 241
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Jugner_Forest/npcs/Mionie.lua | 13 | 1887 | -----------------------------------
-- Area: Jugner Forest
-- NPC: Mionie
-- Type: Outpost Vendor
-- @pos 54 0 -11 104
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/zebra_eel.lua | 18 | 1391 | -----------------------------------------
-- ID: 4288
-- Item: Zebra Eel
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-- Evasion 5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCh... | gpl-3.0 |
wanghuan1115/sdkbox-chartboost-sample | lua/src/cocos/framework/extends/NodeEx.lua | 57 | 5161 | --[[
Copyright (c) 2011-2014 chukong-inc.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, copy, modify, merge, publish, dis... | mit |
MinetestForFun/server-minetestforfun-creative | minetestforfun_game/mods/beds/api.lua | 8 | 3528 | function beds.register_bed(name, def)
minetest.register_node(name .. "_bottom", {
description = def.description,
inventory_image = def.inventory_image,
wield_image = def.wield_image,
drawtype = "nodebox",
tiles = def.tiles.bottom,
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
... | unlicense |
rpetit3/darkstar | scripts/globals/items/smilodon_liver.lua | 18 | 1333 | -----------------------------------------
-- ID: 5668
-- Item: Smilodon Liver
-- Food Effect: 5Min, Galka only
-----------------------------------------
-- Strength 5
-- Intelligence -7
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemChec... | gpl-3.0 |
schidler/ionic-luci | modules/luci-mod-admin-mini/luasrc/model/cbi/mini/dhcp.lua | 62 | 2782 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local uci = require "luci.model.uci".cursor()
local ipc = require "luci.ip"
local wa = require "luci.tools.webadmin"
local fs = require "nixio.fs"
m = Map("... | apache-2.0 |
DDTChen/CookieVLC | vlc/share/lua/sd/metachannels.lua | 90 | 3200 | --[[
$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 y... | gpl-2.0 |
phusion/passenger_apt_automation | debian_specs/nginx/modules/nchan/src/store/redis/scripts/get_message.lua | 1 | 5313 | --input: keys: [], values: [namespace, channel_id, msg_time, msg_tag, no_msgid_order, create_channel_ttl]
--output: result_code, msg_ttl, msg_time, msg_tag, prev_msg_time, prev_msg_tag, message, content_type, eventsource_event, channel_subscriber_count
-- no_msgid_order: 'FILO' for oldest message, 'FIFO' for most rece... | mit |
aradml/- | 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 |
rpetit3/darkstar | scripts/zones/Garlaige_Citadel_[S]/Zone.lua | 27 | 1281 | -----------------------------------
--
-- Zone: Garlaige_Citadel_[S] (164)
--
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Garlaige_Citadel_[S]/TextIDs");
--------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Abyssea-Vunkerl/npcs/qm22.lua | 17 | 1746 | -----------------------------------
-- Zone: Abyssea-Vunkeral
-- NPC: ???
-- Spawns: Durinn
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/keyitems");
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(playe... | gpl-3.0 |
slaubenberger/learn2love | demo004/libraries/LoveFrames/objects/textinput.lua | 2 | 41746 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2013 Kenny Shields --
--]]------------------------------------------------
-- textinput class
local newobject = loveframes.NewObject("textinput", "loveframes_object_textinput", true)
--[[----------------... | gpl-2.0 |
padrinoo1/geek | 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 |
tohidbiparva/priest-sheild | 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 |
rpetit3/darkstar | scripts/globals/items/plate_of_urchin_sushi_+1.lua | 17 | 1541 | -----------------------------------------
-- ID: 5160
-- Item: plate_of_urchin_sushi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 40
-- Strength 1
-- Vitality 5
-- Accuracy % 16
-- Ranged ACC % 16
-- Sleep Resist 5
-----------------------------------------
require("scripts/gl... | gpl-3.0 |
sys4-fr/server-minetestforfun | mods/_misc/irc.lua | 8 | 4724 | # Based on https://github.com/ChaosWormz/mt_terms_of_use
local IRC = [[
-~= Regles du salon de chat IRC #minetestforfun@irc.inchra.net =~-
(Ces regles ont ete etablies le 1er Novembre 2014 par les operateurs du canal Mg et MinetestForFun)
1) Il ne sera tolere aucune transgressions aux regles du reseau InchraNet, sous... | unlicense |
martinrotter/textilosaurus | src/libtextosaurus/3rd-party/scintilla-lt/lexlua/django.lua | 2 | 2106 | -- Copyright 2006-2019 Mitchell mitchell.att.foicica.com. See License.txt.
-- Django LPeg lexer.
local lexer = require('lexer')
local token, word_match = lexer.token, lexer.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local lex = lexer.new('django')
-- Whitespace.
lex:add_rule('whitespace', token(lexer.WHITESPA... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/cupid_chocolate.lua | 18 | 1114 | -----------------------------------------
-- ID: 5681
-- Item: cupid_chocolate
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- Attack 10
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
------------------... | gpl-3.0 |
MakanEXE/Cyclone | plugins/invite.lua | 52 | 1260 | 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 |
rpetit3/darkstar | scripts/zones/Inner_Horutoto_Ruins/Zone.lua | 13 | 5247 | -----------------------------------
--
-- Zone: Inner_Horutoto_Ruins (192)
--
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/The_Garden_of_RuHmet/npcs/qm2.lua | 13 | 2483 | -----------------------------------
-- Area: The_Garden_of_RuHmet
-- NPC: ??? (Ix'aern (Dark Knight) Spawn)
-- Allows players to spawn the Ix'aern (Dark Knight) by checking ??? only after killing the required mobs in the same room as the ???.
-- @pos ,-560 5 239
-----------------------------------
package.loaded["scri... | gpl-3.0 |
MHK-BOT/copy | system/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 |
Maxsteam/BBBBKKKK | 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 |
spacebuild/spacebuild | lua/entities/generator_recycler_liq_nitrogen/init.lua | 5 | 5950 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
util.PrecacheSound("apc_engine_start")
util.PrecacheSound("apc_engine_stop")
include('shared.lua')
local Energy_Increment = 100
local Water_Increment = 80
local Steam_Increment = 10
function ENT:Initialize()
self.BaseClass.Initialize(self)
self.Active = 0... | apache-2.0 |
mpeterv/depgraph | src/depgraph/cli.lua | 1 | 3139 | local argparse = require "argparse"
local lfs = require "lfs"
local depgraph = require "depgraph"
local utils = require "depgraph.luacheck.utils"
local function fail(err)
io.stderr:write("Error: ", err, "\n")
os.exit(1)
end
local function main(argv)
local version = "depgraph v" .. depgraph._VERSION
local... | mit |
rpetit3/darkstar | scripts/globals/items/roast_carp.lua | 18 | 1259 | -----------------------------------------
-- ID: 4537
-- Item: roast_carp
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 1
-- Mind -1
-- Ranged ATT % 14
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- On... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Southern_San_dOria/npcs/Phamelise.lua | 12 | 2168 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Phamelise
-- Only sells when San d'Oria controlls Zulkheim Region
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/ev... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Port_Windurst/npcs/Kumama.lua | 17 | 1685 | -----------------------------------
-- Area: Port Windurst
-- NPC: Kumama
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts/zones/Port_Windurst/TextIDs");
----... | gpl-3.0 |
feidens/SwarmRoboticsChaining | experiments/expdist1-5/srprojectdist.lua | 2 | 25657 | -- Put your global variables here
-- Variables Second Approach
p_chain = 0.90 -- prob. threshold to be part of a chain (Explore -> Chain)
p_leave = 1 - p_chain -- prob. threshold to leave a chain as last member of it (Chain -> Explore)
p_search = p_chain / 3 -- prob. threshold to abort exploration... | mit |
rpetit3/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Elnonde.lua | 13 | 1610 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Elnonde
-- @zone 80
-- @pos 86 2 -0
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
require("scripts/globals/quests");
-----------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Kazham/npcs/Kukupp.lua | 13 | 5577 | -----------------------------------
-- Area: Kazham
-- NPC: Kukupp
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
require("scripts/globals/pathfind");
local path = {
43.067505, -11.000000, -177.214966,
43.583324, ... | gpl-3.0 |
tvandijck/premake-core | src/base/rule.lua | 5 | 5393 | ---
-- base/rule.lua
-- Defines rule sets for generated custom rule files.
-- Copyright (c) 2014 Jason Perkins and the Premake project
---
local p = premake
p.rule = p.api.container("rule", p.global)
local rule = p.rule
---
-- Create a new rule container instance.
---
function rule.new(name)
local self = p.... | bsd-3-clause |
rrthomas/luarocks | src/luarocks/write_rockspec.lua | 14 | 11155 |
--module("luarocks.write_rockspec", package.seeall)
local write_rockspec = {}
package.loaded["luarocks.write_rockspec"] = write_rockspec
local dir = require("luarocks.dir")
local fetch = require("luarocks.fetch")
local fs = require("luarocks.fs")
local path = require("luarocks.path")
local persist = require("luarocks... | mit |
imashkan/sedfire | plugins/ingroup.lua | 3 | 43988 | do
-- Check Member
local function check_member_autorealm(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostr... | gpl-2.0 |
rpetit3/darkstar | scripts/globals/weaponskills/flat_blade.lua | 18 | 1540 | -----------------------------------
-- Flat Blade
-- Sword weapon skill
-- Skill Level: 75
-- Stuns enemy. Chance of stunning varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Thunder Gorget.
-- Aligned with the Thunder Belt.
-- Element: None
-- Modifiers: STR:30%
-- 100%TP 200%TP 300%TP
-- 1.0... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/effects/agi_down.lua | 18 | 1110 | -----------------------------------
--
-- EFFECT_AGI_DOWN
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
if ((target:getStat(MOD_AGI) - effect:ge... | gpl-3.0 |
tenvick/hugula | Client/tools/luaTools/win/210/lua/jit/dis_mips.lua | 78 | 13221 | ----------------------------------------------------------------------------
-- LuaJIT MIPS disassembler module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT/X license. See Copyright Notice in luajit.h
---------------------------------------------------------------------------... | mit |
spacebuild/spacebuild | lua/caf/stools/sb_terraformer.lua | 4 | 2107 | --if not GAMEMODE.IsSpacebuildDerived then return end
TOOL.Category = "Life Support"
TOOL.Name = "#Terraformers"
TOOL.DeviceName = "Terraformer"
TOOL.DeviceNamePlural = "Terraformers"
TOOL.ClassName = "sb_terraformer"
TOOL.DevSelect = true
TOOL.CCVar_type = "base_terraformer"
TOOL.CCVar_sub_type = "default"
TOOL.CCV... | apache-2.0 |
rpetit3/darkstar | scripts/globals/spells/bluemagic/vertical_cleave.lua | 35 | 1693 | -----------------------------------------
-- Spell: Vertical Cleave
-- Damage varies with TP
-- Spell cost: 86 MP
-- Monster Type: Luminians
-- Spell Type: Physical (Slashing)
-- Blue Magic Points: 3
-- Stat Bonus: VIT+1 HP-5 MP+5
-- Level: 75
-- Casting Time: 0.5 seconds
-- Recast Time: 37.25 seconds
-- Skillchain Ele... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Temenos/mobs/Enhanced_Tiger.lua | 23 | 1038 | -----------------------------------
-- Area: Temenos W T
-- NPC: Enhanced_Tiger
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
------------------------------... | gpl-3.0 |
ddouglascarr/rooset | lfframework/framework/env/ui/filters.lua | 1 | 4234 | --[[--
ui.filters{
selector = selector, -- selector to be modified
label = label, -- text to be displayed when filters are collapsed
{
name = name1, -- name of first filter (used as GET param)
label = label1, -- label of first filter
{
name = name1a, -- name of first option ... | mit |
rpetit3/darkstar | scripts/zones/Metalworks/npcs/Mih_Ketto.lua | 13 | 1052 | -----------------------------------
-- Area: Metalworks
-- NPC: Mih Ketto
-- Type: Standard NPC
-- @zone: 237
-- @pos 24.046 -17 32.751
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
require("scripts/zone... | gpl-3.0 |
dwmw2/luci | applications/luci-app-radvd/luasrc/model/cbi/radvd/interface.lua | 61 | 7787 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local sid = arg[1]
local utl = require "luci.util"
m = Map("radvd", translatef("Radvd - Interface %q", "?"),
translate("Radvd is a router advertisement daemon for IPv6. " ..
"It listens to router solicitatio... | apache-2.0 |
rpetit3/darkstar | scripts/zones/Caedarva_Mire/npcs/Runic_Portal.lua | 25 | 2671 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: Runic Portal
-- Caedarva Mire Teleporter Back to Aht Urhgan Whitegate
-- @pos -264 -6 -28 79 (Dvucca)
-- @pos 524 -28 -503 79 (Azouph)
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
--------------------... | gpl-3.0 |
mrbangi/yagop | 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 |
torch/cwrap | cinterface.lua | 4 | 11358 | local CInterface = {}
function CInterface.new()
self = {}
self.txt = {}
self.registry = {}
self.defaultArguments = {}
setmetatable(self, {__index=CInterface})
return self
end
function CInterface:luaname2wrapname(name)
return string.format("wrapper_%s", name)
end
function CInterface:print(str)
... | bsd-3-clause |
Rodeo314/tim-vlc-2.1 | share/lua/meta/reader/filename.lua | 48 | 1628 | --[[
Gets an artwork for french TV channels
$Id$
Copyright © 2007 the VideoLAN team
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 la... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Tahrongi_Canyon/npcs/Dimensional_Portal.lua | 13 | 1403 | -----------------------------------
-- Area: Tahrongi_Canyon
-- NPC: Dimensional_Portal
-- @pos 260.000 35.150 340.000 117
-----------------------------------
package.loaded["scripts/zones/Tahrongi_Canyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/global... | gpl-3.0 |
dwmw2/luci | applications/luci-app-radvd/luasrc/model/cbi/radvd.lua | 61 | 7968 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("radvd", translate("Radvd"),
translate("Radvd is a router advertisement daemon for IPv6. " ..
"It listens to router solicitations and sends router advertisements " ..
"as described in RFC 4861."))
... | apache-2.0 |
rpetit3/darkstar | scripts/zones/Port_Windurst/TextIDs.lua | 6 | 6323 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 10962; -- Come back after sorting your inventory.
FULL_INVENTORY_AFTER_TRADE = 10966; -- Try trading again after sorting your inventory.
ITEM_OBTAINED = 10967; -- Obtained:
... | gpl-3.0 |
sys4-fr/server-minetestforfun | mods/names_per_ip/init.lua | 10 | 2781 | minetest.register_privilege("whois", {
description = "Allows player to see other player IPs"})
-- Created by Krock to stop mass-account-creators
-- License: WTFPL
ipnames = {}
ipnames.data = {}
ipnames.tmp_data = {}
ipnames.changes = false
ipnames.file = minetest.get_worldpath().."/ipnames.txt"
ipnames.name_per_... | unlicense |
rpetit3/darkstar | scripts/globals/items/trumpet_shell.lua | 18 | 1317 | -----------------------------------------
-- ID: 5466
-- Item: Trumpet Shell
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity -5
-- Vitality 4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/North_Gustaberg/npcs/Ennigreaud_RK.lua | 13 | 3334 | -----------------------------------
-- Area: North Gustaberg
-- NPC: Ennigreaud, R.K.
-- Type: Outpost Conquest Guards
-- @pos -584.687 39.107 54.281 106
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conq... | gpl-3.0 |
vfedoroff/prosody-modules | mod_srvinjection/mod_srvinjection.lua | 32 | 1246 |
module:set_global();
local adns = require "net.adns";
local map_config = module:get_option("srvinjection") or {};
local map = module:shared "s2s_map"
for host, mapping in pairs(map_config) do
if type(mapping) == "table" and type(mapping[1]) == "string" and (type(mapping[2]) == "number") then
local connecthost, c... | mit |
rpetit3/darkstar | scripts/zones/Davoi/npcs/Treasure_Chest.lua | 13 | 2935 | -----------------------------------
-- Area: Davoi
-- NPC: Treasure Chest
-- @zone 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/treasure");
require("scripts/zones/Davoi/Tex... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/spells/break.lua | 45 | 1155 | -----------------------------------------
-- Spell: Breakga
-- Temporarily blinds an enemy, greatly lowering its accuracy.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
---------------------------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Latteaune.lua | 13 | 1072 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Latteaune
-- Type: Event Scene Replayer
-- @zone: 26
-- @pos -16.426 -28.889 109.626
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"]... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Bastok_Markets/npcs/Oggodett.lua | 16 | 1568 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Oggodett
-- Only sells when Bastok controlls Aragoneu Region
--
-- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded[... | gpl-3.0 |
DDDBTG/DDBTG | plugins/msg_checks.lua | 149 | 11202 | --Begin msg_checks.lua
--Begin pre_process function
local function pre_process(msg)
-- Begin 'RondoMsgChecks' text checks by @rondoozle
if is_chat_msg(msg) or is_super_group(msg) then
if msg and not is_momod(msg) and not is_whitelisted(msg.from.id) then --if regular user
local data = load_data(_config.moderatio... | gpl-2.0 |
i32ropie/telegram-bot | plugins/help.lua | 290 | 1653 | do
-- Returns true if is not empty
local function has_usage_data(dict)
if (dict.usage == nil or dict.usage == '') then
return false
end
return true
end
-- Get commands for that plugin
local function plugin_help(name)
local plugin = plugins[name]
if not plugin then return nil end
local text = ""
if ... | gpl-2.0 |
MinetestForFun/server-minetestforfun-creative | mods/mesecons/mesecons_mvps/init.lua | 9 | 7255 | --register stoppers for movestones/pistons
mesecon.mvps_stoppers = {}
mesecon.on_mvps_move = {}
mesecon.mvps_unmov = {}
--- Objects (entities) that cannot be moved
function mesecon.register_mvps_unmov(objectname)
mesecon.mvps_unmov[objectname] = true;
end
function mesecon.is_mvps_unmov(objectname)
return mesecon.m... | unlicense |
sys4-fr/server-minetestforfun | mods/mff/mff_pclasses/hunter.lua | 5 | 3515 | ------------------
-- Hunter class --
------------------
--
-- See https://github.com/Ombridride/minetest-minetestforfun-server/issues/114
--
local tmp = {}
pclasses.api.register_class("hunter", {
on_assigned = function(pname, inform)
if inform then
minetest.chat_send_player(pname, "You are now a hunter")
m... | unlicense |
DDDBTG/DDBTG | plugins/inpm.lua | 18 | 9160 | local function pre_process(msg)
local to = msg.to.type
local service = msg.service
if to == 'user' and msg.fwd_from then
if not is_support(msg.from.id) and not is_admin1(msg) then
return
end
local user = 'user#id'..msg.from.id
local from_id = msg.fwd_from.peer_id
if msg.fwd_from.first_name then
from_f... | gpl-2.0 |
lthall/Leonard_ardupilot | libraries/AP_Scripting/applets/VTOL-quicktune.lua | 10 | 14677 | --[[
fast tuning of VTOL gains for multirotors and quadplanes
This should be used in QLOITER mode for quadplanes and LOITER mode
for copters, although it will work in other VTOL modes
--]]
--[[
- TODO:
- disable weathervaning while tuning?
- possibly lower P XY gains during tuning?
- bail out on a large angle... | gpl-3.0 |
putin266/TiledGame | TiledGame/cocos2d/plugin/luabindings/auto/api/ProtocolUser.lua | 146 | 1133 |
--------------------------------
-- @module ProtocolUser
-- @extend PluginProtocol
-- @parent_module plugin
--------------------------------
-- brief config the application info<br>
-- param devInfo This parameter is the info of aplication,<br>
-- different plugin have different format<br>
-- warning Must invoke this... | mit |
rpetit3/darkstar | scripts/zones/Southern_San_dOria/TextIDs.lua | 6 | 6827 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6423; -- Come back after sorting your inventory.
FULL_INVENTORY_AFTER_TRADE = 6427; -- Try trading again after sorting your inventory.
ITEM_OBTAINED = 6428; -- Obtained: <<<Unknown Parameter (Type: 80) 1>>><<<Possible Spec... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Sacrarium/npcs/_0s8.lua | 13 | 1749 | -----------------------------------
-- NPC: _0s8 (Wooden Gate)
-- Area: Sacrarium
-- Involved in Mission: Secrets of Worship
-- @pos 45.500 -1.500 10.000 28
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
-----------------------------------
-- onTrigger A... | gpl-3.0 |
brendonjustin/vlc | share/lua/intf/dumpmeta.lua | 14 | 2205 | --[==========================================================================[
dumpmeta.lua: dump a file's meta data on stdout/stderr
--[==========================================================================[
Copyright (C) 2010 the VideoLAN team
$Id$
Authors: Antoine Cellerier <dionoea at videolan dot org>
Th... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Marquis_Decarabia.lua | 23 | 1535 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Marquis Decarabia
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
function onMobE... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Sea_Serpent_Grotto/TextIDs.lua | 15 | 2312 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory
FULL_INVENTORY_AFTER_TRADE = 6383; -- You cannot obtain the <item>. Try trading again after sorting your inventory
ITEM_OBTAINED = 638... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/FeiYin/npcs/qm1.lua | 13 | 1501 | -----------------------------------
-- Area: FeiYin
-- NPC: qm1 (???)
-- Involved In Quest: Pieuje's Decision
-- @pos -55 -16 69 204
-----------------------------------
package.loaded["scripts/zones/FeiYin/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globa... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/prime_seafood_stewpot.lua | 18 | 1942 | -----------------------------------------
-- ID: 5239
-- Item: Prime Seafood Stewpot
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% Cap 75
-- MP +15
-- Dexterity 1
-- Vitality 1
-- Agility 1
-- Mind 1
-- HP Recovered while healing 7
-- MP Recovered while heal... | gpl-3.0 |
drinkthere/redis-3.0-annotated | deps/lua/test/life.lua | 888 | 2635 | -- life.lua
-- original by Dave Bollinger <DBollinger@compuserve.com> posted to lua-l
-- modified to use ANSI terminal escape sequences
-- modified to use for instead of while
local write=io.write
ALIVE="¥" DEAD="þ"
ALIVE="O" DEAD="-"
function delay() -- NOTE: SYSTEM-DEPENDENT, adjust as necessary
for i=1,10000 do... | bsd-3-clause |
atkinson137/lootmasterplus | Libs/AceLocale-3.0/AceLocale-3.0.lua | 67 | 5637 | --- **AceLocale-3.0** manages localization in addons, allowing for multiple locale to be registered with fallback to the base locale for untranslated strings.
-- @class file
-- @name AceLocale-3.0
-- @release $Id: AceLocale-3.0.lua 1035 2011-07-09 03:20:13Z kaelten $
local MAJOR,MINOR = "AceLocale-3.0", 6
local AceLoc... | mit |
rpetit3/darkstar | scripts/zones/Lower_Jeuno/npcs/Pawkrix.lua | 13 | 1254 | -----------------------------------
-- Area: Lower Jeuno
-- NPC:
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
-----------------------------------
-- onTrade Action... | gpl-3.0 |
vseledkin/april-ann | packages/ann/graph/test/test-rnn-parity-problem.lua | 3 | 7206 | local BACKSTEP = math.huge
local MAX_ERROR = 0.04
local EPSILON = 0.01
local MAX_SEQ_SIZE = 10
local MAX_EPOCHS = 1000 -- max epochs for sequence size = 2,MAX_SEQ_SIZE
local WEIGHT_DECAY = 0.0004
local H = 1 -- number of neurons in hidden layer
-------------------------------------------------... | gpl-3.0 |
open3dengineering/laydrop-firmware | src/util/access.lua | 1 | 1718 | --
-- This file is part of the Doodle3D project (http://doodle3d.com).
--
-- @copyright 2013, Doodle3D
-- @license This software is licensed under the terms of the GNU GPL v2 or later.
-- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
local log = require('util.logger')
lo... | gpl-2.0 |
legoktm/wesnoth | data/ai/lua/move_to_any_target.lua | 32 | 1498 | return {
init = function(ai)
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local move_to_any_target = {}
function move_to_any_target:move_to_enemy_eval()
local units = wesnoth.get_units {
side = wesnoth.current.side,
canrecruit = 'no',
... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Buburimu_Peninsula/mobs/Wake_Warder_Wanda.lua | 2 | 1100 | -----------------------------------
-- Area: Buburimi Peninsula
-- MOB: Wake Warder Wanda
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize(mob)
mob:setMobMod(MOBMOD_MA... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/ear_of_roasted_corn.lua | 18 | 1257 | -----------------------------------------
-- ID: 4415
-- Item: ear_of_roasted_corn
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 6
-- Dexterity -1
-- Vitality 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------... | gpl-3.0 |
tvandijck/premake-core | binmodules/luasocket/src/http.lua | 29 | 13216 | -----------------------------------------------------------------------------
-- HTTP/1.1 client support for the Lua language.
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
---------------------------------------------------------------------... | bsd-3-clause |
tenvick/hugula | Client/Assets/Lua/demo/chat_demo.lua | 1 | 5530 | ------------------------------------------------
-- Copyright © 2013-2020 Hugula: Arpg game Engine
--
-- author pu
------------------------------------------------
local View = View
local VMState = VMState
local VMGroup = VMGroup
local NotifyTable = NotifyTable
local NotifyObject = NotifyObject
local math = math
lo... | mit |
vlapsley/outback | mods/technic/technic/tools/cans.lua | 4 | 3922 | local S = technic.getter
local function set_can_wear(itemstack, level, max_level)
local temp
if level == 0 then
temp = 0
else
temp = 65536 - math.floor(level / max_level * 65535)
if temp > 65535 then temp = 65535 end
if temp < 1 then temp = 1 end
end
itemstack:set_wear(temp)
end
local function get_can_le... | lgpl-2.1 |
rpetit3/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Waoud.lua | 12 | 7280 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Waoud
-- Standard Info NPC
-- Involved in quest: An Empty Vessel
-- @pos 65 -6 -78 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/g... | gpl-3.0 |
spacebuild/spacebuild | lua/entities/storage_gas/init.lua | 5 | 4635 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include('shared.lua')
function ENT:Initialize()
self.BaseClass.Initialize(self)
self.damaged = 0
self.vent = false
if not (WireAddon == nil) then
self.WireDebugName = self.PrintName
self.Inputs = Wire_CreateInputs(self, { "Vent" })... | apache-2.0 |
tinchoss/Python_Android | lua/luasocket/etc/qp.lua | 59 | 1025 | -----------------------------------------------------------------------------
-- Little program to convert to and from Quoted-Printable
-- LuaSocket sample files
-- Author: Diego Nehab
-- RCS ID: $Id: qp.lua,v 1.5 2004/06/17 21:46:22 diego Exp $
--------------------------------------------------------------------------... | apache-2.0 |
legoktm/wesnoth | data/ai/micro_ais/cas/ca_hang_out.lua | 26 | 5470 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local LS = wesnoth.require "lua/location_set.lua"
local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua"
local MAISD = wesnoth.require "ai/micro_ais/micro_ai_self_data.lua"
local function get_hang_out_units(c... | gpl-2.0 |
esguk811/DarkRP | gamemode/modules/language/sh_language.lua | 4 | 3662 | local rp_languages = {}
local selectedLanguage = GetConVar("gmod_language"):GetString() -- Switch language by setting gmod_language to another language
function DarkRP.addLanguage(name, tbl)
local old = rp_languages[name] or {}
rp_languages[name] = tbl
-- Merge the language with the translations added by ... | mit |
rpetit3/darkstar | scripts/globals/keyitems.lua | 13 | 136227 | ---------------------------------------------
--
-- KEYITEMS IDS
--
---------------------------------------------
ZERUHN_REPORT = 1;
PALBOROUGH_MINES_LOGS = 2;
BLUE_ACIDITY_TESTER = 3;
RED_ACIDITY_TESTER = 4;
LETTER_TO_THE_CONSUL... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Bibiki_Bay/npcs/Tswe_Panipahr.lua | 13 | 1922 | -----------------------------------
-- Area: Bibiki Bay
-- NPC: Tswe Panipahr
-- Type: Manaclipper
-- @pos 484.604 -4.035 729.671 4
-----------------------------------
package.loaded["scripts/zones/Bibiki_Bay/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bibiki_Bay/TextIDs");
require... | gpl-3.0 |
sys4-fr/server-minetestforfun | mods/mobs_monster/lava_flan.lua | 1 | 3911 |
local S = mobs.intllib
-- Lava Flan by Zeg9 (additional textures by JurajVajda)
mobs:register_mob("mobs_monster:lava_flan", {
type = "monster",
passive = false,
attack_type = "dogfight",
reach = 2,
damage = 3,
hp_min = 10,
hp_max = 35,
armor = 80,
collisionbox = {-0.5, -0.5, -0.5, 0.5, 1.5, 0.5},
visual =... | unlicense |
rpetit3/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Parukoko.lua | 13 | 1063 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Parukoko
-- Type: Standard NPC
-- @zone: 94
-- @pos -32.400 -3.5 -103.666
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Bajahb.lua | 13 | 1249 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Bajahb
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
require("scripts/g... | gpl-3.0 |
opentechinstitute/luci-commotion-linux | libs/web/luasrc/template.lua | 68 | 3061 | --[[
LuCI - Template Parser
Description:
A template parser supporting includes, translations, Lua code blocks
and more. It can be used either as a compiler or as an interpreter.
FileId: $Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you... | apache-2.0 |
rpetit3/darkstar | scripts/zones/Temenos/mobs/Temenos_Cleaner.lua | 26 | 1282 | -----------------------------------
-- Area: Temenos Central 1floor
-- NPC: Temenos_Cleaner
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
------------------... | gpl-3.0 |
AlleriaWindy/GenSouClick | GenSouClick/bin/Debug/Script/test.lua | 2 | 1832 | local aaa = 100 --×ܹ²Ë¢100´Î
local succ
--¿ªË¢Ç°µÄÅäÖôúÂë
function Setup()
LogInfo("¿ªÊ¼Ë¢") --¼Ç¼ÐÅÏ¢
SetLabel(aaa); --ÉèÖá°Ê£Óà´ÎÊý¡±±êǩֵ
--ClickSingle("saizen");
--Delay(200);
end
--Ñ»·´úÂë
function Loop()
local rt = MyMission();
if(rt[1] == false) then
SetError(rt[2]) --ÉèÖ÷µ»ØµÄ´íÎóÐÅÏ¢
Br... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/mobskills/Hurricane_Wing.lua | 66 | 1332 | ---------------------------------------------
-- Hurricane Wing
--
-- Description: Deals hurricane-force wind damage to enemies within a very wide area of effect. Additional effect: Blind
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: 30' radial.
-- Notes: Used only by Dragua, Fafnir, Nidhogg,... | gpl-3.0 |
schidler/ionic-luci | applications/luci-app-ddns/luasrc/tools/ddns.lua | 32 | 8848 | -- Copyright 2014 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
-- Licensed to the public under the Apache License 2.0.
module("luci.tools.ddns", package.seeall)
local NX = require "nixio"
local NXFS = require "nixio.fs"
local OPKG = require "luci.model.ipkg"
local UCI = require "luci.model.uc... | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.