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 |
|---|---|---|---|---|---|
FFXIOrgins/FFXIOrgins | scripts/zones/Port_Bastok/npcs/Kurando.lua | 38 | 2161 | -----------------------------------
-- Area: Port Bastok
-- NPC: Kurando
-- Type: Quest Giver
-- @zone: 236
-- @pos -23.887 3.898 0.870
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
---------------------... | gpl-3.0 |
hb9cwp/snabbswitch | lib/ljsyscall/syscall/netbsd/nr.lua | 24 | 9205 | -- NetBSD syscall numbers
local nr = {
SYS = {
syscall = 0,
exit = 1,
fork = 2,
read = 3,
write = 4,
open = 5,
close = 6,
compat_50_wait4 = 7,
compat_43_ocreat = 8,
link = 9,
unlink = 10,
chdir = 12,
fchdir = 13,
compat_50_mknod = 14,
chmod = 15,
chown = 16,
["break"] = 17,
compat... | apache-2.0 |
gustavo-hms/cordel | spec/text.lua | 1 | 3774 | return [=[
# (hrtf) Auralização e o emprego de HRTFs
Além dessas alterações na própria estrutura da onda sonora, o ouvinte capta um
outro tipo de informação decorrente do deslocamento do sinal sonoro através do
espaço de propagação: as diferenças de fase (chamadas ITD, do inglês
*Interaural Time Difference*) e de inte... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Carpenters_Landing/npcs/qm8.lua | 11 | 2711 | -----------------------------------
-- Area: Carpenters' Landing
-- NPC: ??? (qm2)
-- Involved in Missions: Calm Before the Storm (CoP 7-4)
-- @pos 120.615 -5.457 -390.133 2
-----------------------------------
package.loaded["scripts/zones/Carpenters_Landing/TextIDs"] = nil;
-----------------------------------
--... | gpl-3.0 |
devilrap978/devil_rap65 | plugins/ar-delete.lua | 1 | 8070 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ delete : حذف الرسائل ▀▄ ▄▀
▀▄▀▀... | gpl-2.0 |
bluelovers/phprpc | lua/phprpc_client.lua | 1 | 5846 | --[[
/**********************************************************\
| |
| The implementation of PHPRPC Protocol 3.0 |
| |
| phprpc_client.lua |
| ... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/weaponskills/blade_rin.lua | 6 | 1243 | -----------------------------------
-- Blade Rin
-- Katana weapon skill
-- Skill Level: 5
-- Delivers a single-hit attack. Chance of params.critical varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Light Gorget.
-- Aligned with the Light Belt.
-- Element: None
-- Modifiers: STR:20%... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Aht_Urhgan_Whitegate/npcs/Sulbahn.lua | 10 | 2042 | -----------------------------------
-- 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("scr... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Aht_Urhgan_Whitegate/npcs/Iruki-Waraki.lua | 38 | 2851 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Iruki-Waraki
-- Type: Standard NPC
-- Involved in quest: No Strings Attached
-- @pos 101.329 -6.999 -29.042 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-------------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/The_Sanctuary_of_ZiTah/Zone.lua | 2 | 2141 | -----------------------------------
--
-- Zone: The_Sanctuary_of_ZiTah (121)
--
-----------------------------------
package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Sanctuary_of_ZiTah/TextIDs");
require( "scripts/globals/icanh... | gpl-3.0 |
MOSAVI17/Gbot | bot/bot.lua | 2 | 6651 | 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")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()
-- This function is ... | gpl-2.0 |
suchipi/pac3 | lua/pac3/core/client/parts/fog.lua | 1 | 1185 | local PART = {}
PART.ClassName = "fog"
PART.NonPhysical = true
pac.StartStorableVars()
pac.GetSet(PART, "Color", Vector(255, 255, 255))
pac.GetSet(PART, "Start", 0)
pac.GetSet(PART, "End", 10)
pac.GetSet(PART, "Alpha", 1)
--pac.GetSet(PART, "AffectChildren", false)
pac.GetSet(PART, "Height", 0)
pac.... | gpl-3.0 |
mpeterv/luassert | src/languages/nl.lua | 6 | 1453 | local s = require('say')
s:set_namespace('nl')
s:set("assertion.same.positive", "Verwachtte objecten die vergelijkbaar zijn.\nAangeboden:\n%s\nVerwachtte:\n%s")
s:set("assertion.same.negative", "Verwachtte objecten die niet vergelijkbaar zijn.\nAangeboden:\n%s\nVerwachtte niet:\n%s")
s:set("assertion.equals.positive... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Misareaux_Coast/npcs/_0p3.lua | 34 | 1082 | -----------------------------------
-- Area: Misareaux Coast
-- NPC: Dilapidated Gate
-- Notes: Entrance to Misareaux Coast
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require(... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Metalworks/npcs/Romero.lua | 10 | 1805 | -----------------------------------
-- Area: Metalworks
-- NPC: Romero
-- Type: Smithing Synthesis Image Support
-- @pos -106.336 2.000 26.117 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Metal... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Davoi/npcs/_45i.lua | 19 | 2041 | -----------------------------------
-- Area: Davoi
-- NPC: Wailing Pond
-- Used In Quest: Whence Blows the Wind
-- @pos 380 0.1 -181 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/gl... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/vehicles/Old Cars/cop_car.lua | 1 | 2586 | ///////////////////////////////
// © 2011-2012 VoltageGaming //
// All rights reserved //
///////////////////////////////
// This material may not be //
// reproduced, displayed, //
// modified or distributed //
// without the express prior //
// written permission of the //
// the copyright holder. //
... | mit |
Gael-de-Sailly/minetest-minetestforfun-server | mods/moretrees/crafts.lua | 7 | 3569 | local S = moretrees.intllib
for i in ipairs(moretrees.treelist) do
local treename = moretrees.treelist[i][1]
-- MODIFICATION MADE FOR MFF //MFF(Mg|08/12/15)
if minetest.registered_items["moretrees:" .. treename .. "_trunk_sideways"] then
minetest.register_craft({
output = "moretrees:"..treename.."_trunk 2",
... | unlicense |
daofeng2015/luci | applications/luci-app-vnstat/luasrc/model/cbi/vnstat.lua | 78 | 1816 | -- Copyright 2010-2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local utl = require "luci.util"
local sys = require "luci.sys"
local fs = require "nixio.fs"
local nw = require "luci.model.network"
local dbdir, line
for line in io.lines("/etc/vnstat.conf") do
dbdir ... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Aht_Urhgan_Whitegate/npcs/Mazween.lua | 34 | 1639 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Mazween
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
require(... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/roast_pipira.lua | 35 | 1575 | -----------------------------------------
-- ID: 4538
-- Item: roast_pipira
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 3
-- Mind -1
-- Attack % 14
-- Attack Cap 85
-- Ranged ATT % 14
-- Ranged ATT Cap 85
-----------------------------------------
require("script... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Great_Axe.lua | 17 | 1489 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Animated Great Axe
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
fun... | gpl-3.0 |
marcovr/T-Bot | libs/other.lua | 1 | 2944 | --[[ Docs:
This library is just a random collection of functions which don't fit into another library.
table.deepcopy(variable)
Makes a true copy (not just a reference) of a given variable.
table.show(table)
Returns a readable representation of a table as string.
stringify(...)
Like to tostring() but supports mul... | gpl-2.0 |
sjznxd/luci-0.11-aa | applications/luci-openvpn/luasrc/model/cbi/openvpn-advanced.lua | 10 | 20093 | --[[
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: openvpn-a... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Lower_Jeuno/npcs/_l04.lua | 36 | 1559 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Streetlamp
-- Involved in Quests: Community Service
-- @zone 245
-- @pos -73.039 6 -95.633
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/glob... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/items/furniture_wood_simple_table.lua | 1 | 1222 |
local ITEM = {};
ITEM.ID = 79;
ITEM.Reference = "furniture_wood_simple_table";
ITEM.Name = "Simplistic Table";
ITEM.Description = "Looks a bit rotten in some parts...\n\nLeft click to spawn as prop.";
ITEM.Weight = 30;
ITEM.Cost = 500;
ITEM.MaxStack = 100;
ITEM.InventoryModel =... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Northern_San_dOria/npcs/Arachagnon.lua | 36 | 1818 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Arachagnon
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/... | gpl-3.0 |
realtime-framework/RealtimeMessaging-Lua | OrtcClient/src/ibt/ortc/plugin/OrtcClient.lua | 1 | 22573 | -- Comment these requires when generating unique file with squish
-- http://matthewwild.co.uk/projects/squish
package.path = package.path..";../OrtcClient/src/ibt/ortc/extensibility/?.lua;../OrtcClient/src/ibt/ortc/websocket/?.lua"
require("ProxyProperties")
require("Strings")
require("WebSocketConnection")
requi... | mit |
Gael-de-Sailly/minetest-minetestforfun-server | mods/markers/areas.lua | 9 | 31278 |
-- TODO: offer teleport button?
-- Temporary compatibility function - see minetest PR#1180
if not vector.interpolate then
vector.interpolate = function(pos1, pos2, factor)
return {x = pos1.x + (pos2.x - pos1.x) * factor,
y = pos1.y + (pos2.y - pos1.y) * factor,
z = pos1.z + (pos2.z - pos1.z) * factor}
en... | unlicense |
FFXIOrgins/FFXIOrgins | scripts/globals/spells/absorb-tp.lua | 6 | 1344 | --------------------------------------
-- Spell: Absorb-TP
-- Steals an enemy's TP.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
------------------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/AlTaieu/npcs/_0x2.lua | 6 | 2391 | -----------------------------------
-- Area: Al'Taieu
-- NPC: Rubious Crystal (West Tower)
-- @pos -683.709 -6.250 -222.142 33
-----------------------------------
package.loaded["scripts/zones/AlTaieu/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/AlTaieu/TextIDs");
require("scripts/g... | gpl-3.0 |
Nitroteam/s | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
xToken/CompMod | lua/CompMod/Structures/Alien/Crag/shared.lua | 1 | 2134 | -- Natural Selection 2 Competitive Mod
-- Source located at - https://github.com/xToken/CompMod
-- lua\CompMod\Structures\Alien\Crag\shared.lua
-- - Dragon
Crag.kHealRadius = kCragHealRange
Crag.kHealPercentage = kCragHealPercentage
Crag.kMinHeal = kCragkMinHeal
Crag.kMaxHeal = kCragkMaxHeal
Crag.kHealWaveDuration = k... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Beaucedine_Glacier/mobs/Tundra_Tiger.lua | 10 | 1427 | -----------------------------------
-- Area: Beaucedine Glacier
-- MOB: Tundra Tiger
-- Note: PH for Nue, Kirata
-----------------------------------
require("/scripts/globals/fieldsofvalor");
require("/scripts/zones/Beaucedine_Glacier/MobIDs");
-----------------------------------
-- onMobDeath
--... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/mobskills/Hyper_Pulse.lua | 8 | 1330 | ---------------------------------------------------
-- Hyper_Pulse
--
-- Description: 300 magic damage, Gravity and short Bind, wipes Utsusemi
-- Type: Magical
--
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globa... | gpl-3.0 |
gitfancode/skynet | service/launcher.lua | 51 | 3199 | local skynet = require "skynet"
local core = require "skynet.core"
require "skynet.manager" -- import manager apis
local string = string
local services = {}
local command = {}
local instance = {} -- for confirm (function command.LAUNCH / command.ERROR / command.LAUNCHOK)
local function handle_to_address(handle)
retu... | mit |
TW1STaL1CKY/pac3 | lua/pac3/libraries/webaudio.lua | 1 | 26424 | local webaudio = _G.webaudio or {}
_G.webaudio = webaudio
if me then
webaudio.debug = true
end
webaudio.sample_rate = nil
webaudio.speed_of_sound = 340.29 -- metres per
webaudio.buffer_size = CreateClientConVar("webaudio_buffer_size", "2048", true)
local function logn(str)
MsgC(Color(0, 255, 0), "[pac webaudio] ")... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Port_San_dOria/npcs/Parcarin.lua | 17 | 1694 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Parcarin
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- @pos -9 -13 -151 232
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
sjznxd/luci-0.11-aa | libs/nixio/docsrc/nixio.File.lua | 173 | 4457 | --- Large File Object.
-- Large file operations are supported up to 52 bits if the Lua number type is
-- double (default).
-- @cstyle instance
module "nixio.File"
--- Write to the file descriptor.
-- @class function
-- @name File.write
-- @usage <strong>Warning:</strong> It is not guaranteed that all data
-- in the bu... | apache-2.0 |
nbeams/program-visualizer | external/src/glfw/support/lua/examples/gears.lua | 2 | 10185 | --------------------------------------------------------------------------
-- 3-D gear wheels. This program is in the public domain.
--
-- Command line options:
-- -info print GL implementation information
-- -exit automatically exit after 30 seconds
--
--
-- Brian Paul
--
--
-- Marcus Geelnard:
-- -... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Southern_San_dOria/npcs/Hanaa_Punaa.lua | 19 | 6196 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Hanaa Punaa
-- Starts and Finishes: A Squire's Test, A Squire's Test II, A Knight's Test
-- @zone 230
-- @pos
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/entities/weapons/weapon_perp_copgun_mp5/shared.lua | 1 | 1293 |
if ( SERVER ) then
AddCSLuaFile( "shared.lua" )
SWEP.BackHolster = false;
end
if ( CLIENT ) then
SWEP.PrintName = "Tactical MP5"
SWEP.Author = "Counter-Strike"
SWEP.Slot = 3
SWEP.SlotPos = 1
SWEP.IconLetter = "x"
end
SWEP.HoldType = "ar2";
SWEP.HoldTypeNorm = "normal";
SWEP.Base ... | mit |
joshimoo/Algorithm-Implementations | Euclidean_algorithm/Lua/Yonaba/euclidian_test.lua | 27 | 1896 | -- Tests for euclidian.lua
local gcd = require 'euclidian'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1 end
local status ... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Port_Bastok/npcs/Zoby_Quhyo.lua | 36 | 1693 | -----------------------------------
-- Area: Port Bastok
-- NPC: Zoby Quhyo
-- Only sells when Bastok controlls Elshimo Lowlands
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Port_Bas... | gpl-3.0 |
suchipi/pac3 | lua/pac3/editor/client/render_scores.lua | 1 | 1434 | local enable = CreateClientConVar("pac_show_profiling_info", 1, true, true)
local font = "pac_render_score"
surface.CreateFont(font, {font = "Arial", shadow = true, size = 14, antialias = false})
pace.RenderTimes = {} -- render times in seconds
timer.Create("pac_render_times", 0.1, 0, function()
if not pac.IsEnable... | gpl-3.0 |
nehz/busted | busted/languages/ar.lua | 15 | 1757 | local s = require('say')
s:set_namespace('ar')
-- 'Pending: test.lua @ 12 \n description
s:set('output.pending', 'عالِق')
s:set('output.failure', 'فَشَل')
s:set('output.failure', 'نَجاح')
s:set('output.pending_plural', 'عالِق')
s:set('output.failure_plural', 'إخْفاقات')
s:set('output.success_plural', 'نَجاحات')
s:s... | mit |
sjznxd/lc-20130127 | applications/luci-commands/luasrc/controller/commands.lua | 76 | 5959 | --[[
LuCI - Lua Configuration Interface
Copyright 2012 Jo-Philipp Wich <jow@openwrt.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
]]--
module("... | apache-2.0 |
stackmachine/stackmachine.love | stackmachine/osx.lua | 2 | 2563 | require "love.timer"
local os = require "os"
local glove = require "stackmachine/glove"
local urllib = require "stackmachine/urllib"
local logging = require "stackmachine/logging"
local utils = require "stackmachine/utils"
local osx = {}
local logger = logging.new('update')
local function execute(command, msg)
loc... | mit |
msburgess3200/PERP | gamemodes/perp/gamemode/cl_modules/calc_view.lua | 1 | 3871 |
function lookForVT ( Vehicle )
if (IsValid(Vehicle)) then
if (!Vehicle.vehicleTable) then
for k, v in pairs(VEHICLE_DATABASE) do
for _, PJ in pairs(v.PaintJobs) do
if (PJ.model == Vehicle:GetModel()) then
Vehicle.vehicleTable = v;
break;
end
end
if (Vehicle.vehicleTable) ... | mit |
sjznxd/lc-20130127 | applications/luci-statistics/luasrc/statistics/datatree.lua | 77 | 4394 | --[[
Luci statistics - rrd data tree builder
(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 copy of the License at
http://www.apache.org/licenses/... | apache-2.0 |
zhouxiaoxiaoxujian/skynet | test/testrediscluster.lua | 19 | 3400 | local skynet = require "skynet"
local rediscluster = require "skynet.db.redis.cluster"
local test_more = ...
-- subscribe mode's callback
local function onmessage(data,channel,pchannel)
print("onmessage",data,channel,pchannel)
end
skynet.start(function ()
local db = rediscluster.new({
{host="127.0.0.1",port=7000... | mit |
ho3einkj/boti | plugins/anti_bot.lua | 65 | 3192 |
local function isBotAllowed (userId, chatId)
local hash = 'anti-bot:allowed:'..chatId..':'..userId
local banned = redis:get(hash)
return banned
end
local function allowBot (userId, chatId)
local hash = 'anti-bot:allowed:'..chatId..':'..userId
redis:set(hash, true)
end
local function disallowBot (userId, ch... | gpl-2.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/vehicles/Old Cars/shelby.lua | 1 | 3057 | ///////////////////////////////
// © 2009-2010 Pulsar Effect //
// All rights reserved //
///////////////////////////////
// This material may not be //
// reproduced, displayed, //
// modified or distributed //
// without the express prior //
// written permission of the //
// the copyright holder. //
... | mit |
Mogara/QSanguosha | lang/zh_CN/Audio/StandardWuLines.lua | 6 | 3047 |
return {
-- 孙权
["$zhiheng1"] = "容我三思。",
["$zhiheng2"] = "且慢。",
["$jiuyuan1"] = "有汝辅佐,甚好!",
["$jiuyuan2"] = "好舒服啊。",
["~sunquan"] = "父亲,大哥,仲谋愧矣……",
-- 甘宁
["$qixi1"] = "接招吧!",
["$qixi2"] = "你的牌太多了!",
["~ganning"] = "二十年后,又是一条好汉!",
-- 吕蒙
["$keji1"] = "不是不报,时候未到!",
["$keji2"] = "留得青山在,不怕没柴烧!",
["~lvmeng"... | gpl-3.0 |
psycho-nico/openwrt-packages | net/smartsnmpd/files/mibs/interfaces.lua | 158 | 4833 | --
-- This file is part of SmartSNMP
-- Copyright (C) 2014, Credo Semiconductor Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your optio... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Southern_San_dOria/npcs/Exoroche.lua | 7 | 2503 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Exoroche
-- Involved in Quests: Father and Son, A Boy's Dream
-- @zone 230
-- @pos 72 -1 60
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
req... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/weaponskills/weapon_break.lua | 6 | 1674 | -----------------------------------
-- Weapon Break
-- Great Axe weapon skill
-- Skill level: 175
-- Lowers enemy's attack. Duration of effect varies with TP.
-- Lowers attack by as much as 25% if unresisted.
-- Strong against: Manticores, Orcs, Rabbits, Raptors, Sheep.
-- Immune: Crabs, Crawlers, Funguar... | gpl-3.0 |
KnightTeam/Knight | plugins/supergroup.lua | 3 | 75853 | --Begin supergrpup.lua
--Check members #Add supergroup
local function check_member_super(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
if type(result) == 'boolean' then
print('This is a old message!')
return reply_msg(msg.id, '[Not sup... | agpl-3.0 |
KimNorgaard/dotfiles-1 | hammerspoon/hammerspoon.symlink/init.lua | 1 | 4101 | -- Load Extensions
local application = require "hs.application"
local window = require "hs.window"
local hotkey = require "hs.hotkey"
local keycodes = require "hs.keycodes"
local fnutils = require "hs.fnutils"
local alert = require "hs.alert"
local screen = require "hs.screen"
local grid = require "hs.grid"
local hints... | mit |
sjznxd/luci-0.11-aa | applications/luci-statistics/luasrc/model/cbi/luci_statistics/email.lua | 7 | 1976 | --[[
Luci configuration model for statistics - collectd email plugin configuration
(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 copy of the License... | apache-2.0 |
sadegh1996/sword_antispam | plugins/inrealm.lua | 1 | 27232 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) then
local group_creator = msg.from.print_name
create_group_chat (group_creator, group_nam... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Kazham/npcs/Gatih_Mijurabi.lua | 21 | 1030 | -----------------------------------
-- Area: Kazham
-- NPC: Gatih Mijurabi
-- Type: Standard NPC
-- @zone: 250
-- @pos 58.249 -13.086 -49.084
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
-------------------... | gpl-3.0 |
TW1STaL1CKY/pac3 | lua/pac3/libraries/class.lua | 2 | 4120 | local table = {insert = table.insert}
do -- table copy
local lookup_table
local function copy(obj, skip_meta)
local t = type(obj)
if t == "number" or t == "string" or t == "function" or t == "boolean" then
return obj
end
if t == "Vector" or t == "Angle" then
return obj * 1
elseif lookup_table[obj]... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Meriphataud_Mountains_[S]/Zone.lua | 8 | 1317 | -----------------------------------
--
-- Zone: Meriphataud_Mountains_[S] (97)
--
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains_[S]/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Meriphataud_Mountains_[S]/TextIDs");
--------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/prime_crab_stewpot.lua | 36 | 1891 | -----------------------------------------
-- ID: 5545
-- Item: Prime Crab Stewpot
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% Cap 75
-- MP +15
-- Vitality +1
-- Agility +1
-- Mind +2
-- HP Recovered while healing +7
-- MP Recovered while healing +2
-- Defe... | gpl-3.0 |
mehrpouya81/gamer1 | plugins/all.lua | 264 | 4202 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Dynamis-Windurst/Zone.lua | 4 | 2260 | -----------------------------------
--
-- Zone: Dynamis-Windurst
--
-----------------------------------
package.loaded["scripts/zones/Dynamis-Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Dynamis-Windurst/TextIDs");
-------------... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/vgui/trade_offer.lua | 1 | 1066 |
local PANEL = {};
function PANEL:Init ( )
self.InventoryBlocks = {};
local fakeX, fakeY = 1, 0;
for x = 1, 3 do
for y = 1, 5 do
fakeY = fakeY + 1;
if (fakeY > 5) then
fakeY = 1;
fakeX = fakeX + 1;
end
local newBlock = vgui.Create("perp2_trade_offer_block", self);
newBlock.itemID ... | mit |
mawri/sswe-team9 | src/SSWE.lua | 1 | 8058 |
-- hardcoded window size as 2
-- require('mobdebug').start();
require("sys")
require("nn")
local SSWE = torch.class ("SSWE")
----------------------------------- constructor ---------------------------
function SSWE:__init()
self.neg_samples = 5;
self.criterion = nn.MarginCriterion()
self.senti_criterion... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Port_San_dOria/npcs/Ilgusin.lua | 38 | 1038 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Ilgusin
-- Type: Standard NPC
-- @zone: 232
-- @pos -68.313 -6.5 -36.985
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------... | gpl-3.0 |
elt11bot/seed-sup | plugins/anti-spam.lua | 2 | 3878 |
--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... | gpl-2.0 |
punisherbot/test | bot/utils.lua | 239 | 13499 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
http.TIMEOUT = 10
funct... | gpl-2.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/items/furniture_bed.lua | 1 | 1236 |
local ITEM = {};
ITEM.ID = 53;
ITEM.Reference = "furniture_bed";
ITEM.Name = "Small Bed";
ITEM.Description = "Needed for a good night's sleep.\n\nLeft click to spawn as prop.";
ITEM.Weight = 10;
ITEM.Cost = 500;
ITEM.MaxStack = 100;
ITEM.InventoryModel = "models/env/furniture/... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/FeiYin/npcs/Rukususu.lua | 13 | 1766 | -----------------------------------
-- Area: Fei'Yin
-- NPC: Rukususu (talk to Cermet Door _no5 to trigger)
-- Type: Quest NPC
-- @pos -194.133 -0.986 191.077 204
-- Involved in quests: Curses, Foiled A-Golem!?,SMN AF2: Class Reunion, SMN AF3: Carbuncle Debacle
-- Involved in Missions: Windurst 5-1/7-2/8-2
-------... | gpl-3.0 |
excessive/lua-bgfx | test/camera.lua | 2 | 2923 | local cpml = require "cpml"
local camera = {}
local camera_mt = {
__index = camera
}
local function new(options)
local t = {
fov = options.fov or 45,
near = options.near or 0.1, -- 10cm
far = options.far or 150.0, -- 150m
exposure = options.exposure or 1.0,
position = o... | mit |
Vanderlay/tfs-TDEvent | data/actions/scripts/TDEvent/twdHammer.lua | 1 | 2722 | dofile('data/lib/TWD/towerDefenseLib.lua')
function onUse(cid, item, fromPosition, target, toPosition, isHotkey)
local player = Player(cid)
if player:getStorageValue(playingGameStorage) ~= 1 then
return false
end
local tile = toPosition:getTile()
if tile then
if not tile:... | gpl-2.0 |
nehz/busted | busted/languages/fr.lua | 12 | 1487 | local s = require('say')
s:set_namespace('fr')
-- 'Pending: test.lua @ 12 \n description
s:set('output.pending', 'En attente')
s:set('output.failure', 'Echec')
s:set('output.success', 'Reussite')
s:set('output.pending_plural', 'en attente')
s:set('output.failure_plural', 'echecs')
s:set('output.success_plural', 'reu... | mit |
FFXIOrgins/FFXIOrgins | scripts/globals/items/blackened_frog.lua | 35 | 1741 | -----------------------------------------
-- ID: 4536
-- Item: Blackened Frog
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 2
-- Agility 2
-- Mind -2
-- Attack % 14
-- Attack Cap 60
-- Ranged ATT % 14
-- Ranged ATT Cap 60
-- Enmity -5
------------------------------... | gpl-3.0 |
JulianVolodia/awesome | lib/awful/tag.lua | 3 | 22976 | ---------------------------------------------------------------------------
--- Useful functions for tag manipulation.
--
-- @author Julien Danjou <julien@danjou.info>
-- @copyright 2008 Julien Danjou
-- @release @AWESOME_VERSION@
-- @module awful.tag
--------------------------------------------------------------... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Halvung/npcs/qm1.lua | 11 | 1200 | -----------------------------------
-- Area: Halvung
-- NPC: ??? (Spawn Big Bomb)
-- @pos -233.830 13.613 286.714 62
-----------------------------------
package.loaded["scripts/zones/Halvung/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Halvung/TextIDs");
-------------------------------... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/entities/weapons/weapon_perp_fire_extinguisher/shared.lua | 1 | 1975 |
if SERVER then
AddCSLuaFile("shared.lua")
end
if CLIENT then
SWEP.PrintName = "Fire Extinguisher"
SWEP.Slot = 2
SWEP.SlotPos = 1
SWEP.DrawAmmo = false
SWEP.DrawCrosshair = false
end
SWEP.Author = "RedMist"
SWEP.Instructions = "Left Click: Extinguish Fires"
SWEP.Contact = ""
SWEP.Purpose = ""
SWEP.ViewModelFOV... | mit |
priderobot/titan | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
MAHDIYAZDI001/mahdi | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Southern_San_dOria_[S]/npcs/Achtelle1.lua | 72 | 1069 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Achtelle
-- @zone 80
-- @pos 108 2 -11
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------... | gpl-3.0 |
sjznxd/luci-0.11-aa | libs/web/luasrc/http/protocol/date.lua | 13 | 2801 | --[[
HTTP protocol implementation for LuCI - date handling
(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 copy of the License at
http://www.... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/boiled_crayfish.lua | 35 | 1248 | -----------------------------------------
-- ID: 4535
-- Item: Boiled Crayfish
-- Food Effect: 30Min, All Races
-----------------------------------------
-- defense % 30
-- defense % 25
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-... | gpl-3.0 |
m2mselect/owrt | feeds/luci/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/tcpconns.lua | 68 | 1143 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("TCPConns Plugin Configuration"),
translate(
"The tcpconns plugin collects informations about open tcp " ..
"connections on selected ports."
))
-- ... | gpl-2.0 |
daofeng2015/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/tcpconns.lua | 68 | 1143 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("TCPConns Plugin Configuration"),
translate(
"The tcpconns plugin collects informations about open tcp " ..
"connections on selected ports."
))
-- ... | apache-2.0 |
m2mselect/owrt | feeds/luci/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/luci.lua | 76 | 1122 | -- 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.
require "luci.config"
local fs = require "nixio.fs"
m = Map("luci", translate("Web <abbr title=\"User Interface\">UI</abbr>"), translate("Here you can customi... | gpl-2.0 |
fartoverflow/naev | dat/missions/sirius/heretic/heretic4.lua | 4 | 7247 | --[[misn title - the egress]]
--[[this mission begins with the frenetic nasin wanting to escape
the wringer due to being overwhelmed by house sirius. the player
loads up with as many nasin as their vessel will carry, and takes
them to seek refuge in the ingot system on planet ulios, where they
begin to rebuild and ... | gpl-3.0 |
mohtamohit/CppSharp | build/LLVM.lua | 1 | 4776 | -- Setup the LLVM dependency directories
LLVMRootDir = depsdir .. "/llvm/"
local LLVMDirPerConfiguration = false
local LLVMRootDirDebug = ""
local LLVMRootDirRelease = ""
require "scripts/LLVM"
function SearchLLVM()
LLVMRootDirDebug = basedir .. "/scripts/" .. get_llvm_package_name(nil, "Debug")
LLVMRootDirRel... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Mine_Shaft_2716/Zone.lua | 32 | 1656 | -----------------------------------
--
-- Zone: Mine_Shaft_2716 (13)
--
-----------------------------------
package.loaded["scripts/zones/Mine_Shaft_2716/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Mine_Shaft_2716/TextIDs");
-------------... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/npcs/car_garage.lua | 1 | 2556 |
local NPC = {};
NPC.Name = "Garage";
NPC.ID = 5;
NPC.Model = Model("models/players/perp2/f_1_02.mdl");
NPC.Invisible = false; // Used for ATM Machines, Casino Tables, etc.
NPC.Location = {Vector(-5317.2427, -10296.3262, 71.0313), Vector(5320.523926, -4728.700195, 128.031250 - 63)};
NPC.Angles = {Angle(0, 0, 0), A... | mit |
sjznxd/luci-0.11-aa | libs/web/luasrc/config.lua | 13 | 1115 | --[[
LuCI - Configuration
Description:
Some LuCI configuration values read from uci file "luci"
FileId:
$Id: config.lua 3856 2008-12-05 15:36:44Z Cyrus $
License:
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 com... | apache-2.0 |
SharpWoW/DungeonDan | Main.lua | 1 | 3951 | --[[
* Copyright (c) 2012 by Adam Hellberg <private@f16gaming.com> and Bjørn Tore Håvie <itsbth@itsbth.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, includi... | mit |
sjznxd/luci-0.11-aa | applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua | 6 | 1185 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 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 copy of the License at
h... | apache-2.0 |
POPHUP/maroonhost | bot/TMP_bot.lua | 5 | 9558 | 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 = '3'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
return... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Lower_Delkfutts_Tower/npcs/_545.lua | 9 | 1594 | -----------------------------------
-- Area: Lower Delkfutt's Tower
-- NPC: Cermet Door
-- Notes: Involved in Missions: THREE_PATHS
-----------------------------------
package.loaded["scripts/zones/Lower_Delkfutts_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems")... | gpl-3.0 |
fartoverflow/naev | dat/missions/shark/sh07_pirates.lua | 1 | 9225 | --[[
This is the climax mission of the Shark's teeth campaign. The player has to kill 4 pirates.
Stages :
0) There are pirates to kill
1) Way to Alteris
--]]
--Needed scripts
include "pilot/pirate.lua"
include "numstring.lua"
lang = naev.lang()
if lang == "es" then
else -- default english
ti... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/weaponskills/tachi_kasha.lua | 6 | 1642 | -----------------------------------
-- Tachi Kasha
-- Great Katana weapon skill
-- Skill Level: 250
-- Paralyzes target. Damage varies with TP.
-- Paralyze effect duration is 60 seconds when unresisted.
-- In order to obtain Tachi: Kasha, the quest The Potential Within must be completed.
-- Will stack wit... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.