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 |
|---|---|---|---|---|---|
soroushwilson/wilson1 | plugins/text2sticker.lua | 22 | 1305 | do
local function run(msg, matches)
local eq = URL.escape(matches[2])
local w = "640"
local h = "200"
local txtsize = "62"
local txtclr = "ff2e4357"
if matches[3] then
txtclr = matches[3]
end
if matches[4] then
txtsize = matches[4]
end
if matches[5] and matches[6] then
w = matches[5]
h = matches[6]
... | gpl-2.0 |
dargosch/home_center_2_addons | Scenes/Very Smart Light scene v1.4.0.lua | 1 | 113859 | --[[
%% properties
%% globals
SleepState
PresentState
TimeOfDay
--]]
--[[
-----------------------------------------------------------------------------
-- VERY SMART LIGHT SCENE -- Put here name of the room
-----------------------------------------------------------------------------
Copyright (c) 2016 Zoran Sankov... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Qulun_Dome/mobs/Za_Dha_Adamantking.lua | 6 | 1190 | -----------------------------------
-- Area: Qulun Dome
-- NM: Za Dha Adamantking
-----------------------------------
require("scripts/globals/titles");
require("scripts/zones/Qulun_Dome/TextIDs");
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function OnM... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/weaponskills/blade_kamu.lua | 4 | 4795 | -----------------------------------
-- Blade Kamu
-- Katana weapon skill
-- Skill Level: N/A
-- Lowers target's params.accuracy. Duration of effect varies with TP. Nagi: Aftermath effect varies with TP.
-- Effect lasts 60 seconds @ 100 TP, 90 seconds @ 200 TP, and 120 seconds @ 300 TP
-- Available only afte... | gpl-3.0 |
tullamods/OmniCC | OmniCC/effects/pulse.lua | 1 | 2196 | -- a pulse finish effect
local AddonName, Addon = ...
local L = LibStub("AceLocale-3.0"):GetLocale(AddonName)
local PULSE_SCALE = 2.5
local PULSE_DURATION = 0.6
local PulseEffect = Addon.FX:Create("pulse", L.Pulse, L.PulseTip)
function PulseEffect:Run(cooldown)
local parent = cooldown:GetParent()
if (not parent) o... | mit |
Gael-de-Sailly/minetest-minetestforfun-server | mods/coloredwood/wood.lua | 8 | 6364 | -- Woods portion of Colored Wood mod by Vanessa Ezekowitz ~~ 2012-07-17
-- based on my unified dyes modding template.
--
-- License: WTFPL
coloredwood.enable_stairsplus = true
if minetest.setting_getbool("coloredwood_enable_stairsplus") == false or not minetest.get_modpath("moreblocks") then
coloredwood.enable_sta... | unlicense |
FFXIOrgins/FFXIOrgins | scripts/zones/Southern_San_dOria/npcs/Lotte.lua | 36 | 1431 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Lotte
-- General Info NPC
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests")... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Selbina/npcs/Chutarmire.lua | 33 | 1717 | -----------------------------------
-- Area: Selbina
-- NPC: Chutarmire
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
require("scripts/globals/shop");
--------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Port_Bastok/npcs/Oggbi.lua | 19 | 3212 | -----------------------------------
-- Area: Port Bastok
-- NPC: Oggbi
-- Starts and Finishes: Ghosts of the Past, The First Meeting
-- @zone 236
-- @pos -159 -7 5
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/abilities/weapon_bash.lua | 4 | 1178 | -----------------------------------
-- Ability: Weapon Bash
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- OnUseAbility
-----------------------------------
function OnAbilityCheck(player,target,ability)
if... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/plate_of_fish_and_chips.lua | 35 | 1558 | -----------------------------------------
-- ID: 5145
-- Item: plate_of_fish_and_chips
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Dexterity 3
-- Vitality 3
-- Mind -3
-- defense 5
-- Ranged ATT % 7
-- Ranged ATT Cap 10
-----------------------------------------
require("... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/serving_of_crimson_jelly.lua | 35 | 1426 | -----------------------------------------
-- ID: 5144
-- Item: serving_of_crimson_jelly
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Magic % 12
-- Magic Cap 85
-- Intelligence 6
-- Magic Regen While Healing 1
-----------------------------------------
require("scripts/global... | gpl-3.0 |
Polkm/learn | transfer.lua | 1 | 1219 | -- Transfer function module, simply applies the function
function learn.transfer.transfer(p)
function p.forward(input)
p.output = input.copy().map(p.transfer)
return p.output
end
function p.backward(input, gradients)
return p.output.copy().map(p.derivative), gradients
end
function p.update(input... | mit |
subzrk/BadRotations | Custom/Functions.lua | 2 | 23919 |
-- Functions from coders for public use
--[[ ]]
--[[ ragnar ]]
--[[ ... | gpl-3.0 |
TW1STaL1CKY/pac3 | lua/pac3/editor/client/panels/pac_tree.lua | 1 | 12401 | local PANEL = vgui.Register("pac_dtree_node_button", {}, "DButton")
pace.pac_dtree_node_button = PANEL
function PANEL:Init()
self:SetTextInset(32, 0)
self:SetContentAlignment(4)
end
function PANEL:Paint(w, h)
derma.SkinHook("Paint", "TreeNodeButton", self, w, h)
return false
end
function PANEL:UpdateColours(skin... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Aht_Urhgan_Whitegate/npcs/Balakaf.lua | 37 | 1031 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Balakaf
-- Type: Standard NPC
-- @pos 25.505 -6.999 126.478 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whi... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/head_of_napa.lua | 35 | 1195 | -----------------------------------------
-- ID: 5235
-- Item: head_of_napa
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility 1
-- Vitality -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItem... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/plate_of_dorado_sushi_+1.lua | 21 | 1682 | -----------------------------------------
-- ID: 5179
-- Item: plate_of_dorado_sushi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Dexterity 5
-- Accuracy % 16
-- Accuracy Cap 80
-- Ranged ACC % 16
-- Ranged ACC Cap 80
-- Sleep Resist 5
-------------------------------------... | gpl-3.0 |
sjznxd/lc-20130127 | modules/niu/luasrc/niulib.lua | 49 | 1744 | --[[
LuCI - Lua Configuration Interface
Copyright 2009 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$
]]--
loc... | apache-2.0 |
sjznxd/lc-20130127 | applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua | 68 | 1140 | --[[
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 |
Gael-de-Sailly/minetest-minetestforfun-server | 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 |
FFXIOrgins/FFXIOrgins | scripts/globals/spells/hydrohelix.lua | 4 | 1718 | --------------------------------------
-- Spell: Hydrohelix
-- Deals water damage that gradually reduces
-- a target's HP. Damage dealt is greatly affected by the weather.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals... | gpl-3.0 |
sajadaltaiee/Raobot | plugins/ahmed.lua | 1 | 1135 | -- BY @A7mEd_B98
-- CH @dev_ahmed_98
do
local function run(msg, matches)
local a == msg['id']
if matches[1] == "chat_add_user" true
local b = "هلا وغلا جرارة كلبي بيت بيتكم تفضلو@"..(msg.action.user.username or "")..\n\n.."الف الصلاة والسلام عليك يارسوول الله محممممممد ك\n\nللوش"..msg.to.title
... | gpl-2.0 |
serhiobb/RGK-test | redis-stable/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 |
zionwu/redis-2.8.9-annotation | 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 |
sjznxd/luci-0.11-aa | libs/nixio/lua/nixio/fs.lua | 184 | 3723 | --[[
nixio - Linux I/O library for lua
Copyright 2009 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$
]]--
local... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/spells/bluemagic/body_slam.lua | 6 | 1037 | require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/bluemagic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function OnMagicCastingCheck(caster,target,spell)
return 0;
end;
function onSpellCast(caster,target,sp... | gpl-3.0 |
sjznxd/luci-0.11-aa | libs/web/luasrc/cbi/datatypes.lua | 6 | 6049 | --[[
LuCI - Configuration Bind Interface - Datatype Tests
(c) 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE... | apache-2.0 |
sjznxd/luci-0.11-aa | applications/luci-asterisk/luasrc/model/cbi/asterisk-iax-connections.lua | 11 | 2061 | --[[
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 |
sjznxd/luci-0.11-aa | protocols/relay/luasrc/model/network/proto_relay.lua | 77 | 3432 | --[[
LuCI - Network model - relay protocol extension
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Apollyon/mobs/Jidra.lua | 17 | 2157 | -----------------------------------
-- Area: Apollyon SW
-- NPC: Jidra
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
-----------------------------... | gpl-3.0 |
sjznxd/lc-20130127 | modules/niu/luasrc/controller/niu/network.lua | 49 | 1175 | --[[
LuCI - Lua Development Framework
Copyright 2009 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$
]]--
modul... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Dynamis-San_dOria/mobs/Serjeant_Tombstone.lua | 16 | 4913 | -----------------------------------
-- Area: Dynamis San d'Oria
-- NPC: Serjeant Tombstone
-- Map1 Position: http://www.dynamislounge.com/html/zone/frame_san1.htm
-- Map2 Position: http://www.dynamislounge.com/html/zone/frame_san2.htm
-----------------------------------
package.loaded["scripts/zones/Dynamis-San_... | gpl-3.0 |
thiagok00/server | tools/genenums/enum.lua | 3 | 7325 | -------------------------------------------------------------------
-- OpenTibia - an opensource roleplaying game
----------------------------------------------------------------------
-- This program is free software; you can redistribute it and-or
-- modify it under the terms of the GNU General Public License
-- as p... | gpl-2.0 |
TW1STaL1CKY/pac3 | lua/pac3/editor/client/init.lua | 1 | 9023 | include("autorun/pac_core_init.lua")
pace = pace or {}
pace.luadata = include("pac3/libraries/luadata.lua")
include("language.lua")
include("icons.lua")
include("util.lua")
include("wear.lua")
include("select.lua")
include("view.lua")
include("parts.lua")
include("saved_parts.lua")
include("logic.lua")
include("und... | gpl-3.0 |
subzrk/BadRotations | System/Libs/DiesalGUI-1.0/Objects/AccordianSection.lua | 4 | 7308 | local DiesalGUI = LibStub("DiesalGUI-1.0")
-- ~~| Libraries |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
local DiesalTools = LibStub("DiesalTools-1.0")
local DiesalStyle = LibStub("DiesalStyle-1.0")
-- | Lua Upvalues |~~~~... | gpl-3.0 |
m2mselect/owrt | feeds/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... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/cone_of_homemade_gelato.lua | 35 | 1137 | -----------------------------------------
-- ID: 5223
-- Item: cone_of_homemade_gelato
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Intelligence 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIte... | gpl-3.0 |
togolwb/skynet | lualib/dns.lua | 42 | 7473 | --[[
lua dns resolver library
See https://github.com/xjdrew/levent/blob/master/levent/dns.lua for more detail
-- resource record type:
-- TYPE value and meaning
-- A 1 a host address
-- NS 2 an authoritative name server
-- MD 3 a mail destination (Obsolete - use MX... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Yhoator_Jungle/npcs/Mintoo_IM.lua | 8 | 2935 | -----------------------------------
-- Area: Yhoator Jungle
-- NPC: Mintoo, I.M.
-- Outpost Conquest Guards
-- @pos 200.254 -1 -80.324 124
-----------------------------------
package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
require(... | gpl-3.0 |
m2mselect/owrt | feeds/luci/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua | 6 | 33294 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local wa = require "luci.tools.webadmin"
local nw = require "luci.model.network"
local ut = require "luci.util"
local nt = require "luci.sys".net
local fs = require "nixio.fs"
arg[1] = arg[1] or ""
m = Map("wi... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Southern_San_dOria/npcs/Ephauge.lua | 36 | 1468 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Ephauge
-- General Info NPC
-- @zone 230
-- @pos -2 -2 45
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings")... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Windurst_Waters_[S]/npcs/Pettette.lua | 38 | 1049 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Pettette
-- Type: Standard NPC
-- @zone: 94
-- @pos 164.026 -0.001 -26.690
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Southern_San_dOria/npcs/Deraquien.lua | 17 | 2388 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Deraquien
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- @pos -98 -2 31 230
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("... | gpl-3.0 |
GameHackingBook/GameHackingCode | LuaScripts/Chapter1_SearchingForAssemblyPatterns.lua | 2 | 1126 | BASEADDRESS = getAddress("Game.exe")
function LocatePacketCreation(packetType)
for address = BASEADDRESS, (BASEADDRESS + 0x2ffffff) do
local push = readBytes(address, 1, false)
local type = readInteger(address + 1)
local call = readInteger(address + 5)
if (push == 0x68 and type == pa... | gpl-2.0 |
devilrap978/devil_rap65 | plugins/ar-info.lua | 1 | 10398 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ I NFO USER : معلوماتي ▀▄ ▄▀
▀▄... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/spells/light_carol.lua | 6 | 1504 | -----------------------------------------
-- Spell: Light Carol
-- Increases light resistance for party members within the area of effect.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/abilities/choral_roll.lua | 6 | 1425 | -----------------------------------
-- Ability: Choral Roll
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- OnUseAbility
-----------------------------------
function OnAbilityCheck(player,target,ability)
lo... | gpl-3.0 |
suchipi/pac3 | lua/pac3/editor/client/panels/web_browser.lua | 1 | 4744 | local PANEL = {}
PANEL.Base = "DFrame"
PANEL.ClassName = "web_browser"
function PANEL:Init()
self:SetTitle("Web Browser")
self:SetDeleteOnClose(false)
self:ShowCloseButton(true)
self:SetDraggable(true)
self:SetSizable(true)
local top = vgui.Create("EditablePanel", self)
top:Dock(TOP)
top:SetTall(24)
self... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/player.lua | 3 | 7361 | -----------------------------------
--
--
--
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scripts/globals/shop");
require("scripts/globals/status");
require("scr... | gpl-3.0 |
daofeng2015/luci | applications/luci-app-ntpc/luasrc/model/cbi/ntpc/ntpc.lua | 78 | 1289 | -- 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.
m = Map("ntpclient", translate("Time Synchronisation"), translate("Synchronizes the system time"))
s = m:section(TypedSection, "ntpclient", translate("General... | apache-2.0 |
TRIEXTEAM/TaylortTG | plugins/owners.lua | 1467 | 12478 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
elyasgalikeshi/renjer | plugins/owners.lua | 1467 | 12478 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
Armin041/Tele_Dam01 | plugins/owners.lua | 1467 | 12478 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
POPHUP/maroonhost | plugins/owners.lua | 1467 | 12478 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
AliKhodadad/zedspam | plugins/owners.lua | 1467 | 12478 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
subzrk/BadRotations | System/Libs/LibArtifactData-1.0/LibArtifactData-1.0.lua | 7 | 16485 | local MAJOR, MINOR = "LibArtifactData-1.0", 15
assert(_G.LibStub, MAJOR .. " requires LibStub")
local lib = _G.LibStub:NewLibrary(MAJOR, MINOR)
if not lib then return end
lib.callbacks = lib.callbacks or _G.LibStub("CallbackHandler-1.0"):New(lib)
local Debug = function() end
if _G.AdiDebug then
Debug = _G.AdiDebug:... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Temenos/bcnms/Temenos_Eastern_Tower.lua | 8 | 1472 | -----------------------------------
-- Area: Temenos
-- Name:
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function OnBcnmRegister(player,instance)
if(GetMobAction(16928844) > 0)then DespawnMob(16928844);end
if(GetMobAction(16928853) > 0)then DespawnMob(16928853);end
if... | gpl-3.0 |
thiagok00/server | data/scripts/otstd/intrinsic/functional.lua | 3 | 1186 |
functional = {}
--
function fmap(f, list)
local rlist = {}
for i, v in ipairs(list) do
rlist[i] = f(v)
end
return rlist
end
--
function famap(f, list)
local rlist = {}
for i, v in pairs(list) do
rlist[i] = f(v)
end
return rlist
end
--
function foldl(f, list)
lo... | gpl-2.0 |
fartoverflow/naev | dat/missions/dvaered/dv_antiflf03.lua | 11 | 27651 | --[[
-- This is the third mission in the anti-FLF Dvaered campaign. The player joins the battle to destroy the FLF base.
-- stack variable flfbase_intro:
-- 1 - The player has turned in the FLF agent or rescued the Dvaered crew. Conditional for dv_antiflf02
-- 2 - The player has rescued the FLF agent. Conditi... | gpl-3.0 |
thiagok00/server | data/scripts/otstd/actions/equip_item.lua | 3 | 10691 | otstd.equip_item = {}
otstd.equip_item.items = {
-- Helmet
[5461] = {slot = "head"},
[2474] = {slot = "head"},
[2343] = {slot = "head"},
[2323] = {slot = "head", vocations = {"Sorcerer", "Master Sorcerer", "Druid", "Elder Druid"} },
[7900] = {slot = "head", vocations = {"Sorcerer", "Master Sorcerer", "Dru... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Temenos/mobs/Iruci.lua | 17 | 1279 | -----------------------------------
-- Area: Temenos Central 1floor
-- NPC: Iruci
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
---------------------... | gpl-3.0 |
stackmachine/stackmachine.love | stackmachine/init.lua | 2 | 4697 | require "love.filesystem"
local http = require "socket.http"
local ltn12 = require "ltn12"
local os = require "os"
local glove = require "stackmachine/glove"
local middle = require 'stackmachine/middleclass'
local json = require 'stackmachine/json'
local logging = require 'stackmachine/logging'
local utils = require '... | mit |
thiagok00/server | data/scripts/otstd/actions/machete.lua | 3 | 1180 | otstd.machete = {}
otstd.machete.machetes = {
[2420] = {},
[2442] = {}
}
otstd.machete.useableItems = {
--wood rush
[1499] = {newid = nil},
--jungle grass
[2782] = {newid = 2781},
[3985] = {newid = 3984},
--spider web
[7538] = {newid = 7544},
[7539] = {newid = 7545}
}
function otstd.machete... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Northern_San_dOria/npcs/Secodiand.lua | 20 | 2038 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Secodiand
-- Starts and Finishes Quest: Fear of the dark
-- @zone 231
-- @pos -160 -0 137
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/The_Shrine_of_RuAvitau/Zone.lua | 2 | 5700 | -----------------------------------
--
-- Zone: The_Shrine_of_RuAvitau (178)
--
-----------------------------------
package.loaded["scripts/zones/The_Shrine_of_RuAvitau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/missions");
require("scri... | gpl-3.0 |
priderobot/titan | plugins/anti_spam.lua | 417 | 3978 |
--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 |
elt11bot/seed-sup | plugins/anti_spam.lua | 417 | 3978 |
--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 |
mahdikord/mahdibaryaji | plugins/translate.lua | 674 | 1637 |
--[[
-- Translate text using Google Translate.
-- http://translate.google.com/translate_a/single?client=t&ie=UTF-8&oe=UTF-8&hl=en&dt=t&tl=en&sl=auto&text=hello
--]]
do
function translate(source_lang, target_lang, text)
local path = "http://translate.google.com/translate_a/single"
-- URL query parameters
local p... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/humpty_dumpty_effigy.lua | 35 | 1506 | -----------------------------------------
-- ID: 5683
-- Item: humpty_dumpty_effigy
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Max HP % 6
-- Max MP % 6
-- HP recovered while healing 10
-- MP recovered while healing 10 (unconfirmed)
-----------------------------------------
... | gpl-3.0 |
pax2you4now/wesnoth | data/lua/helper.lua | 8 | 10134 | --! #textdomain wesnoth
local helper = {}
local wml_actions = wesnoth.wml_actions
--! Returns an iterator over all the sides matching a given filter that can be used in a for-in loop.
function helper.get_sides(cfg)
local function f(s)
local i = s.i
while i < #wesnoth.sides do
i = i + 1
if wesnoth.match_si... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/weaponskills/namas_arrow.lua | 4 | 1776 | -----------------------------------
-- Skill Level: N/A
-- Description: Additional Effect: Temporarily improves Ranged Accuracy
-- Aligned with the Light Gorget, Snow Gorget & Aqua Gorget.
-- Properties
-- Element: N/A
-- Skillchain Properties: Light/Distortion
-- Modifiers: STR: 40% AGI: 40%
-- Damage Multi... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/items/item_fuelcan.lua | 1 | 1084 |
local ITEM = {};
ITEM.ID = 89;
ITEM.Reference = "item_fuelcan";
ITEM.Name = "Fuel Can";
ITEM.Description = "Fill up your car!";
ITEM.Weight = 1;
ITEM.Cost = 500;
ITEM.MaxStack = 100;
ITEM.InventoryModel = "models/props_junk/metalgascan.mdl";
ITEM.ModelCamPos = Vector(30, 0,... | mit |
aosee1h1/AOSEE_2H2 | plugin/lock_fwd.lua | 5 | 2416 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ ANTI FWD : منع اعاده توجيه ▀▄ ▄▀
... | gpl-2.0 |
joshimoo/Algorithm-Implementations | Best_First_Search/Lua/Yonaba/utils/bheap.lua | 78 | 2454 | -- Binary Heap data structure implementation
-- See: http://www.policyalmanac.org/games/binaryHeaps.htm
-- Adapted from: https://github.com/Yonaba/Binary-Heaps
local PATH = (...):gsub('%.bheap$','')
local class = require (PATH .. '.class')
-- Looks for item in an array
local function findIndex(array, item)
for k,v ... | mit |
zhouxiaoxiaoxujian/skynet | lualib/http/sockethelper.lua | 28 | 1991 | local socket = require "skynet.socket"
local skynet = require "skynet"
local readbytes = socket.read
local writebytes = socket.write
local sockethelper = {}
local socket_error = setmetatable({} , { __tostring = function() return "[Socket Error]" end })
sockethelper.socket_error = socket_error
local function preread... | mit |
zaeem998/vtbot | plugins/banhammer.lua | 1 | 36344 | local function pre_process(msg)
if msg.to.type ~= 'pv' then
chat = msg.to.id
user = msg.from.id
local function check_newmember(arg, data)
test = load_data(_config.moderation.data)
lock_bots = test[arg.chat_id]['settings']['lock_bots']
local hash = "gp_lang:"..arg.chat_id
local lang = redis:get(hash)
if data... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/temple_truffle.lua | 36 | 1159 | -----------------------------------------
-- ID: 5916
-- Item: Temple Truffle
-- Food Effect: 3 Min, All Races
-----------------------------------------
-- Strength 1
-- Speed 12.5%
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
--... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Heavens_Tower/npcs/Rhy_Epocan.lua | 19 | 1623 | -----------------------------------
-- Area: Heavens Tower
-- NPC: Rhy Epocan
-- Involved in Mission 3-1
-- @pos 2 -48 14 242
-----------------------------------
package.loaded["scripts/zones/Heavens_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones... | gpl-3.0 |
hb9cwp/snabbswitch | lib/ljsyscall/syscall/linux/fcntl.lua | 19 | 1306 | -- fcntl is one of those bits of the Unix API that is a bit random, so give it its own file
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawse... | apache-2.0 |
Capster/Metro | lua/metro/ui/awesomium.lua | 1 | 2177 | PANEL = {}
AccessorFunc( PANEL, "m_bScrollbars", "Scrollbars", FORCE_BOOL )
fastlua.Bind(PANEL, "AllowLua", false)
function PANEL:Init()
self:SetScrollbars( true )
self:SetAllowLua( false )
self.JS = {}
self.Callbacks = {}
self:AddFunction( "console", "log", function( param ) self:ConsoleMessage( param )... | apache-2.0 |
Xinerki/Story | missions/mission1.lua | 1 | 4057 |
mission1 = {}
function mission1.startMission1(player)
missionNameT.setMissionName("A New Life", player)
toggleAllControls(player,false,true,false)
dimension=math.random(10,50)
fadeCamera(player,false)
setTimer(mission1.fadein,1000,1,player,dimension)
end
function mission1.fadein(player,dimension)
setElementDimension... | mit |
xToken/NSL | lua/NSL/GUI/GUINSLSpectatorTechMap.lua | 1 | 2190 | -- Natural Selection League Plugin
-- Source located at - https://github.com/xToken/NSL
-- lua\GUINSLSpectatorTechMap.lua
-- - Dragon
class 'GUINSLSpectatorTechMap' (GUITechMap)
local teamNumberOverride
-- Cheaty override
local oldPlayerUI_GetTeamType = PlayerUI_GetTeamType
function PlayerUI_GetTeamType()
if tea... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Windurst_Waters/npcs/Koko_Lihzeh.lua | 19 | 1815 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Koko Lihzeh
-- Involved in Quest: Making the Grade, Riding on the Clouds
-- @zone 238
-- @pos 135 -6 162
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/entities/weapons/weapon_zomb_shotgun/shared.lua | 1 | 2853 |
if ( SERVER ) then
AddCSLuaFile( "shared.lua" )
SWEP.BackHolster = false;
end
if ( CLIENT ) then
SWEP.PrintName = "Shotgun"
SWEP.Author = "Counter-Strike"
SWEP.Slot = 4
SWEP.SlotPos = 3
SWEP.IconLetter = "k"
killicon.AddFont( "weapon_pumpshotgun", "CSKillIcons", SWEP.IconLetter, Color( ... | mit |
project-asap/workflow | pub/py/operators/Postgres_MultiJoin/Postgres_MultiJoin.lua | 4 | 1824 | SHELL_COMMAND = "./Postgres_Join.sh"
CONTAINER_INSTANCES = 1
MASTER_JAR_LOCATION = "kitten-master-0.2.0-jar-with-dependencies.jar"
CP = "/opt/hadoop-2.7.0/etc/hadoop:/opt/hadoop-2.7.0/etc/hadoop:/opt/hadoop-2.7.0/etc/hadoop:/opt/hadoop-2.7.0/share/hadoop/common/lib/*:/opt/hadoop-2.7.0/share/hadoop/common/*:/opt/hadoop... | apache-2.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/plantlife_modpack/molehills/init.lua | 7 | 3412 | -----------------------------------------------------------------------------------------------
local title = "Mole Hills"
local version = "0.0.3"
local mname = "molehills"
-----------------------------------------------------------------------------------------------
-- Idea by Sokomine
-- Code & textures by Mossma... | unlicense |
suchipi/pac3 | lua/pac3/core/client/wire_expression_extension.lua | 1 | 2023 | hook.Add("Think", "pac_e2_extension", function()
local ply = LocalPlayer()
if ply:IsValid() then
-- uuumm
if E2Helper then
E2Helper.Descriptions["pacSetKeyValue"] = "Sets a property value on given part. Part unique id is recommended but you can also input name."
end
hook.Remove("Think", "pac_e2_exten... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/dish_of_spaghetti_vongole_rosso_+1.lua | 36 | 1593 | -----------------------------------------
-- ID: 5198
-- Item: Dish of Spaghetti Vongole Rosso +1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health % 20
-- Health Cap 95
-- Vitality 2
-- Mind -1
-- Defense % 25
-- Defense Cap 35
-- Store TP 6
-----------------------------------------
... | gpl-3.0 |
englekk/CoronaDefaultTemplate | Project/main.lua | 1 | 4688 | ----------------------------------------
-- 이 주석은 삭제하지 마세요.
-- 35% 할인해 드립니다. 코로나 계정 유료 구매시 연락주세요. (Corona SDK, Enterprise, Cards)
-- @Author 아폴로케이션 원강민 대표
-- @Website http://WonHaDa.com, http://Apollocation.com, http://CoronaLabs.kr
-- @E-mail englekk@naver.com, englekk@apollocation.com
-- 'John 3:16, Psalm 23'
-- MIT ... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Selbina/npcs/Yulon-Polon.lua | 16 | 3638 | -----------------------------------
-- Area: Selbina
-- NPC: Yulon-Polon
-- Type: Title Change NPC
-- @pos 45.998 -16.273 15.739 248
-----------------------------------
require("scripts/globals/titles");
local title2 = { CORDON_BLEU_FISHER , ECOLOGIST , LIL_CUPID , ACE_ANGLER , GOLD_HOOK , MYTHRIL_HOOK , SILVER_... | gpl-3.0 |
gitfancode/skynet | service/service_mgr.lua | 51 | 3733 | local skynet = require "skynet"
require "skynet.manager" -- import skynet.register
local snax = require "snax"
local cmd = {}
local service = {}
local function request(name, func, ...)
local ok, handle = pcall(func, ...)
local s = service[name]
assert(type(s) == "table")
if ok then
service[name] = handle
else
... | mit |
Capster/Metro | lua/metro/ui/dhtmlcontrols.lua | 2 | 5411 | --[[__ _
/ _| __ _ ___ ___ _ __ _ _ _ __ ___| |__
| |_ / _` |/ __/ _ \ '_ \| | | | '_ \ / __| '_ \
| _| (_| | (_| __/ |_) | |_| | | | | (__| | | |
|_| \__,_|\___\___| .__/ \__,_|_| |_|\___|_| |_|
|_| 2010 --]]
local PANEL = {}
--[[------------... | apache-2.0 |
soroushwilson/wilson1 | plugins/helpfun_en.lua | 1 | 2424 | do
function run(msg, matches)
if msg.to.type == 'chat' then
return 'Tele soroush Fun Command List'..[[
❤لیست دستورات💙:
🔴weather [شهر|کشور]
🔹مشاهده اب و هوای شهر یا کشور مورد نظر
🔴!insta [یوزر]
🔹مشاهده مشخصات اینساگرام فرد مورد نظر
🔴info
🔹مشخصات کامل فرد همراه با (ریپلی|یوزر)
🔴me
🔹دیدن مقام خود در گروه
🔴... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Windurst_Woods/npcs/Mocchi_Katsartbih.lua | 38 | 1048 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Mocchi Katsartbih
-- Type: Standard NPC
-- @zone: 241
-- @pos -13.225 -4.888 -164.108
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-... | gpl-3.0 |
m2mselect/owrt | feeds/luci/applications/luci-app-asterisk/luasrc/model/cbi/asterisk/meetme.lua | 68 | 1037 | -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local ast = require "luci.asterisk"
cbimap = Map("asterisk", "MeetMe - Rooms")
meetme = cbimap:section(TypedSection, "meetme", "MeetMe Rooms")
meetme.addremove = true
meetme.anonymous = true
meetme.template = ... | gpl-2.0 |
xToken/CompMod | lua/CompMod/Weapons/Marine/GrenadeLauncher/shared.lua | 1 | 2184 | -- Natural Selection 2 Competitive Mod
-- Source located at - https://github.com/xToken/CompMod
-- lua\CompMod\Weapons\Marine\GrenadeLauncher\shared.lua
-- - Dragon
local networkVars =
{
gl_upg1 = "boolean",
gl_upg2 = "boolean",
}
local originalGrenadeLauncherOnInitialized
originalGrenadeLauncherOnInitialized = ... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Dynamis-Valkurm/mobs/Cirrate_Christelle.lua | 17 | 4110 | -----------------------------------
-- Area: Dynamis Valkurm
-- NPC: Cirrate_Christelle
-----------------------------------
package.loaded["scripts/zones/Dynamis-Valkurm/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Valkurm/TextIDs");
... | gpl-3.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/sea/seaplants/init.lua | 5 | 16618 | -- NODES
-- Lightened nodes for MFF
local sea_light_source = 5
minetest.register_node("seaplants:kelpgreen", {
description = "Green Kelp",
drawtype = "plantlike",
tiles = {"seaplants_kelpgreen.png"},
inventory_image = "seaplants_kelpgreen.png",
wield_image = "seaplants_kelpgreen.png",
paramtype = "light",
walk... | unlicense |
CAAP/ferre | caja/print.lua | 1 | 1465 | #!/usr/local/bin/lua
local aux = require'ferre.aux'
local lpr = require'ferre.bixolon'
local tkt = require'ferre.ticket'
local ex = require'ferre.extras'
local precio = require'ferre.precio'
local fd = require'carlos.fold'
--[[ NEED TO BE REWRITTEN XXX
local ventas = {VENTA=true, FACTURA=true, CREDITO=true}
local f... | bsd-2-clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.