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 |
|---|---|---|---|---|---|
luastoned/turbo | turbo/fs.lua | 12 | 2093 | --- Turbo.lua file system Module
--
-- Copyright 2013 John Abrahamsen
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless require... | apache-2.0 |
jshackley/darkstar | scripts/zones/Southern_San_dOria/npcs/Machielle.lua | 30 | 2011 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Machielle
-- Only sells when Bastok controls Norvallen Region
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/global... | gpl-3.0 |
luastoned/turbo | turbo/iostream.lua | 4 | 59760 | --- Turbo.lua IO Stream module.
-- High-level wrappers for asynchronous socket communication.
-- All API's are callback based and depend on the __Turbo IOLoop module__.
--
-- Implementations available:
--
-- * IOStream, non-blocking sockets.
-- * SSLIOStream, non-blocking SSL sockets using OpenSSL.
--
-- Copyright 2011... | apache-2.0 |
MeGaTG/amirdb | plugins/spammer3.lua | 1 | 887241 | local function run(msg) if msg.text == "spam" and is_sudo(msg) then
return [[#by ⚠️OffLiNeTeam⚠️
#by ⚠️OffLiNeTeam⚠️
#by ⚠️OffLiNeTeam⚠️
#by ⚠️OffLiNeTeam⚠️
#by ⚠️OffLiNeTeam⚠️
#by ⚠️OffLiNeTeam⚠️
#by ⚠️OffLiNeTeam⚠️
#by ⚠️OffLiNeTeam⚠️
#by ⚠️OffLiNeTeam⚠️
#by ⚠️OffLiNeTeam⚠️
#by ⚠️OffLiNeTeam⚠️
#by ⚠️OffLiNeTeam⚠️
#b... | gpl-2.0 |
vasilish/torch-draw | opts.lua | 1 | 2649 | local M = {}
function M.split_string(str, var_type)
local data = {}
local i = 1
for x in string.gmatch(str, '([^,]+)') do
if var_type == 'float' then
data[i] = tonumber(x)
else
data[i] = x
end
i = i + 1
end
return data
end
function M.parse(arg)
local cmd = torch.CmdLine()
c... | mit |
iofun/treehouse | luerl/e260c72c3547a7f1f302b70835bc60ad.lua | 1 | 2219 | -- The Hydralisk Den does not produce units directly,
-- but rather enable Hydralisk morphing at the Hatchery.
-- Our unit function table
local this_unit = {}
-- Where we are and fast we move
local x, y, dx, dy
-- Our name
local name = "Zerg_Hydralisk_Den"
-- Our color
local color = "red"
-- Our BWAPI ... | agpl-3.0 |
opentibia/server | data/scripts/otstd/actions/gm_xray.lua | 3 | 1751 |
otstd.GM_XRay_Vision = {}
otstd.GM_XRay_Vision.groups = {"Gamemaster", "Senior Gamemaster", "Community Manager", "Server Administrator"}
function otstd.GM_XRay_Vision.look_handler(evt)
local desc = evt.description
local obj = evt.object
local pos = obj:getPosition()
desc = desc .. "\n"
desc = desc .. "x:" .. ... | gpl-2.0 |
jshackley/darkstar | scripts/globals/spells/bluemagic/filamented_hold.lua | 18 | 1471 | -----------------------------------------
-- Spell: Filamented Hold
-- Reduces the attack speed of enemies within a fan-shaped area originating from the caster
-- Spell cost: 38 MP
-- Monster Type: Vermin
-- Spell Type: Magical (Earth)
-- Blue Magic Points: 3
-- Stat Bonus: VIT+1
-- Level: 52
-- Casting Time: ... | gpl-3.0 |
Th2Evil/SuperPlus | plugins/ar-media.lua | 1 | 2461 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
by member team Plus @Th2_BOOS
-----Plus team
please join to Channel Team Plus
Plugin ; lock audio with warn
▀▄ ▄▀ ▀▄ ▄▀
▀▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄▄... | gpl-2.0 |
BeyondTeam/TeleBeyond | plugins/chat.lua | 1 | 4407 | local function run(msg)
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)]['settings']['chat'] == '❌' then
return nil
end
if msg.text == "خوبی" then
return reply_msg(msg.id, "فدات تو خوبی", ok_cb, false)
end
if msg.text == "چه خبر" then
return reply_msg(msg.id, "سلامتی", ok_cb,... | agpl-3.0 |
jshackley/darkstar | scripts/zones/Norg/npcs/Paito-Maito.lua | 34 | 2624 | -----------------------------------
-- Area: Norg
-- NPC: Paito-Maito
-- Standard Info NPC
-----------------------------------
require("scripts/globals/pathfind");
local path = {
-71.189713, -9.413510, 74.024879,
-71.674171, -9.317029, 73.054794,
-72.516525, -9.298064, 72.363213,
-73.432983, -9.220915, 71... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Kocco_Ehllek.lua | 38 | 1053 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Kocco Ehllek
-- Type: Quest Giver
-- @zone: 94
-- @pos -41.465 -2.125 -163.018
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = n... | gpl-3.0 |
jshackley/darkstar | scripts/globals/items/crepe_caprice.lua | 36 | 1318 | -----------------------------------------
-- ID: 5776
-- Item: Crepe Caprice
-- Food Effect: 60 Min, All Races
-----------------------------------------
-- HP +20
-- MP Healing 3
-- Magic Accuracy +5
-- Magic Defense +2
-----------------------------------------
require("scripts/globals/status");
---------------------... | gpl-3.0 |
JoMiro/arcemu | src/scripts/lua/LuaBridge/AUCHINDOUN/AUCHENAI_CRYPTS/shirrak.lua | 13 | 2873 | --?!MAP=558
assert( include("acrypts.lua") , "Failed to load acrypts.lua")
local mod = require("DUNGEON_AUCHINDOUN.INSTANCE_ACRYPTS")
assert(mod)
module(mod._NAME..".SHIRRAK_THE_DEAD_WATCHER",package.seeall)
local self = getfenv(1)
local FocusFire;
--WorldDBQuery("DELETE FROM ai_agents WHERE entry = 18371;")
function ... | agpl-3.0 |
SpRoXx/GTW-RPG | [resources]/GTWdrugsys/drugsys_c.lua | 2 | 22441 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Price
Source code: https://github.com/GTWCode/GTW-RPG/
Bugtracker: http://forum.404rq.com/bug-reports/
Suggestions: http://forum.404rq.com/mta-serve... | bsd-2-clause |
jshackley/darkstar | scripts/globals/spells/wind_carol.lua | 18 | 1502 | -----------------------------------------
-- Spell: Wind Carol
-- Increases wind resistance for party members within the area of effect.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-------------... | gpl-3.0 |
birkett/MCServer | Server/Plugins/Debuggers/Debuggers.lua | 4 | 59268 |
-- Global variables
g_DropSpensersToActivate = {}; -- A list of dispensers and droppers (as {World, X, Y Z} quadruplets) that are to be activated every tick
g_HungerReportTick = 10;
g_ShowFoodStats = false; -- When true, each player's food stats are sent to them every 10 ticks
function Initialize(a_Plugin)
--... | apache-2.0 |
Ombridride/minetest-minetestforfun-server | mods/lavatemple/mapgen.lua | 10 | 1688 | lavatemple.mapgen_data = {}
lavatemple.file = minetest.get_worldpath()..'/lavatemple.mt'
-- try to load the data from file
local f = io.open(lavatemple.file, "r")
if f then
local contents = f:read()
io.close(f)
if contents ~= nil then
lavatemple.mapgen_data = minetest.deserialize(contents)
end
end
-- generate p... | unlicense |
kidaa/turbo | turbo/3rdparty/JSON.lua | 10 | 26141 | -- -*- coding: utf-8 -*-
--
-- Copyright 2010-2011 Jeffrey Friedl
-- http://regex.info/blog/
--
local VERSION = 20111207.5 -- version history at end of file
local OBJDEF = { VERSION = VERSION }
--
-- Simple JSON encoding and decoding in pure Lua.
-- http://www.json.org/
--
--
-- JSON = loadfile "JSON.lua" -- one-ti... | apache-2.0 |
LiberatorUSA/GUCEF | plugins/VFS/vfspluginITV/premake5.lua | 1 | 2005 | --------------------------------------------------------------------
-- This file was automatically generated by ProjectGenerator
-- which is tooling part the build system designed for GUCEF
-- (Galaxy Unlimited Framework)
-- For the latest info, see http://www.VanvelzenSoftware.com/
--
-- The contents of this file... | apache-2.0 |
chaehwang/cs91r_spring_NN | io/lmdb_reader.lua | 2 | 2100 | require 'lmdb'
require 'string'
require 'torch'
require 'image'
pb = require './pb'
lmdb_reader = {}
lmdb_reader.__index = lmdb_reader
setmetatable(lmdb_reader, {
__call = function (cls, ...)
return cls.new(...)
end,
})
function lmdb_reader.new(file_path)
local self = setmetatable({}, lmdb_reader)
self.... | mit |
JoMiro/arcemu | src/scripts/lua/LuaBridge/Stable Scripts/Azeroth/Karazhan/BOSS_Karazhan_Moroes.lua | 30 | 1211 | function Moroes_Enrage(Unit, event, miscunit, misc)
if Unit:GetHealthPct() < 30 and Didthat == 0 then
Unit:FullCastSpell(44779)
Didthat = 1
else
end
end
function Moroes_Gouge(Unit, event, miscunit, misc)
print "Moroes Gouge"
Unit:FullCastSpellOnTarget(28456,Unit:GetClosestPlayer())
Unit:SendChatMessage(11, 0... | agpl-3.0 |
rigeirani/arbc | plugins/sticker.lua | 14 | 15956 | -- data saved to data/moderation.json
do
local function export_chat_link_cb(extra, success, result)
local msg = extra.msg
local data = extra.data
if success == 0 then
return send_large_msg(get_receiver(msg), 'Cannot generate invite link for this group.\nMake sure you are an admin or a sudoer.')
... | gpl-2.0 |
VincentGong/chess | cocos2d-x/tests/lua-tests/src/TouchesTest/Paddle.lua | 5 | 2575 | require "extern"
require "src/VisibleRect"
Paddle = class("Paddle", function(texture)
return cc.Sprite:createWithTexture(texture)
end)
Paddle.__index = Paddle
local kPaddleStateGrabbed = 0
local kPaddleStateUngrabbed = 1
Paddle._state = kPaddleStateGrabbed
function Paddle:rect()
local s = self:getTexture... | mit |
Ombridride/minetest-minetestforfun-server | mods/mesecons/mesecons_extrawires/tjunction.lua | 8 | 2331 | local tjunction_nodebox = {
type = "fixed",
fixed = {{ -16/32-0.001, -17/32, -3/32, 16/32+0.001, -13/32, 3/32 },
{ -3/32, -17/32, -16/32+0.001, 3/32, -13/32, -3/32},}
}
local tjunction_selectionbox = {
type = "fixed",
fixed = { -16/32-0.001, -18/32, -16/32, 16/32+0.001, -12/32, 7/32 },
}
local tjunction_get_... | unlicense |
graphdat/plugin-mysql | modules/query.lua | 4 | 4250 | --[[
Copyright 2012 Kengo Nakajima. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | apache-2.0 |
JoMiro/arcemu | src/scripts/lua/Lua/Stable Scripts/Outland/Magisters Terrace/UNIT-MagistersTerrace-SunbladeMageGuard.lua | 30 | 1409 | --[[
********************************
* *
* The Moon Project *
* *
********************************
This software is provided as free and open source by the
staff of The Moon Project, in accordance with
the GPL license. This means we provide the so... | agpl-3.0 |
jshackley/darkstar | scripts/zones/Port_Jeuno/npcs/Chudigrimane.lua | 29 | 1189 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Chudigrimane
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
require("scripts/zones/Port_Jeuno/TextIDs");
-----------------------------------
-- onTrade Action
--------------... | gpl-3.0 |
alonewolfx2/nodemcu-firmware | lua_examples/yet-another-ds18b20.lua | 79 | 1924 | ------------------------------------------------------------------------------
-- DS18B20 query module
--
-- LICENCE: http://opensource.org/licenses/MIT
-- Vladimir Dronnikov <dronnikov@gmail.com>
--
-- Example:
-- dofile("ds18b20.lua").read(4, function(r) for k, v in pairs(r) do print(k, v) end end)
------------------... | mit |
opentibia/server | data/scripts/examples/moveitem_example.lua | 3 | 1995 | moveitem_example = {}
function moveitem_example.moveToTile_callback(event)
if(event.creature) then
local pos = event.tile:getPosition()
event.creature:say("I moved the " .. event.item:getName() .. " to " .. pos.x .. ":" .. pos.y .. ":" .. pos.z)
end
end
function moveitem_example.moveFromTile_callback(event)
if... | gpl-2.0 |
jshackley/darkstar | scripts/zones/PsoXja/Zone.lua | 6 | 5215 | -----------------------------------
--
-- Zone: PsoXja (9)
--
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/zones/PsoXja/TextIDs");
require... | gpl-3.0 |
Ombridride/minetest-minetestforfun-server | mods/snow/src/util.lua | 9 | 5009 | --Global config and function table.
snow = {
snowball_gravity = 100/109,
snowball_velocity = 19,
sleds = true,
enable_snowfall = true,
lighter_snowfall = false,
debug = false,
smooth_biomes = true,
christmas_content = true,
smooth_snow = true,
min_height = 3,
mapgen_rarity = 18,
mapgen_size = 210,
}
--Conf... | unlicense |
jshackley/darkstar | scripts/globals/abilities/pets/pet_frost_breath.lua | 25 | 1248 | ---------------------------------------------------
-- Frost Breath
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
function onAbilityCh... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Leujaoam_Sanctum/instances/leujaoam_cleansing.lua | 32 | 4247 | -----------------------------------
--
-- Assault: Leujaoam Cleansing
--
-----------------------------------
require("scripts/zones/Leujaoam_Sanctum/IDs");
-----------------------------------
-- afterInstanceRegister
-----------------------------------
function afterInstanceRegister(player)
local instance = pl... | gpl-3.0 |
jshackley/darkstar | scripts/globals/items/bowl_of_mushroom_soup.lua | 35 | 1384 | -----------------------------------------
-- ID: 4419
-- Item: mushroom_soup
-- Food Effect: 3hours, All Races
-----------------------------------------
-- Magic Points 20
-- Strength -1
-- Mind 2
-- MP Recovered While Healing 1
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
Ombridride/minetest-minetestforfun-server | minetestforfun_game/mods/farming/wheat.lua | 11 | 3878 |
local S = farming.intllib
-- wheat seeds
minetest.register_node("farming:seed_wheat", {
description = S("Wheat Seed"),
tiles = {"farming_wheat_seed.png"},
inventory_image = "farming_wheat_seed.png",
wield_image = "farming_wheat_seed.png",
drawtype = "signlike",
groups = {seed = 1, snappy = 3, attached_node = 1}... | unlicense |
jshackley/darkstar | scripts/globals/spells/bluemagic/seedspray.lua | 18 | 2149 | -----------------------------------------
-- Spell: Seedspray
-- Delivers a threefold attack. Additional effect: Weakens defense. Chance of effect varies with TP
-- Spell cost: 61 MP
-- Monster Type: Plantoids
-- Spell Type: Physical (Slashing)
-- Blue Magic Points: 2
-- Stat Bonus: VIT+1
-- Level: 61
-- Casti... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Spire_of_Mea/npcs/_0l2.lua | 51 | 1321 | -----------------------------------
-- Area: Spire_of_Mea
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Mea/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Mea/TextIDs");
---------------... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Spire_of_Mea/npcs/_0l1.lua | 51 | 1321 | -----------------------------------
-- Area: Spire_of_Mea
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Mea/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Mea/TextIDs");
---------------... | gpl-3.0 |
jshackley/darkstar | scripts/globals/abilities/pets/judgment_bolt.lua | 34 | 1127 | ---------------------------------------------------
-- Judgment Bolt
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
require("/scripts/globals/magic");
--------------------------------------------... | gpl-3.0 |
jshackley/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5f4.lua | 34 | 1106 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Titan's Gate
-- @pos 180 -34 -15 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs")... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Riverne-Site_A01/npcs/_0u3.lua | 17 | 1341 | -----------------------------------
-- Area: Riverne Site #A01
-- NPC: Unstable Displacement
-----------------------------------
package.loaded["scripts/zones/Riverne-Site_A01/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Riverne-Site_A01/Text... | gpl-3.0 |
emadni/telelordteamgimi | plugins/banhammer.lua | 214 | 11956 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
jshackley/darkstar | scripts/zones/Mount_Zhayolm/npcs/Runic_Portal.lua | 17 | 1862 | -----------------------------------
-- Area: Mount Zhayolm
-- NPC: Runic Portal
-- Mount Zhayolm Teleporter Back to Aht Urgan Whitegate
-- @pos 688 -23 349 61
-----------------------------------
package.loaded["scripts/zones/Mount_Zhayolm/TextIDs"] = nil;
-----------------------------------
require("scripts/... | gpl-3.0 |
VincentGong/chess | cocos2d-x/tests/lua-tests/src/TouchesTest/TouchesTest.lua | 5 | 3037 | require "src/testResource"
require "src/TouchesTest/Ball"
require "src/TouchesTest/Paddle"
require "src/VisibleRect"
local kHighPlayer = 0
local kLowPlayer = 1
local kStatusBarHeight = 0.0
local kSpriteTag = 0
local m_ball = nil
local m_ballStartingVelocity = nil
local m_paddles = {}
local layer = nil
local funct... | mit |
dani-sj/mahan | plugins/ingroup.lua | 13 | 57917 | 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 |
jshackley/darkstar | scripts/globals/spells/bluemagic/actinic_burst.lua | 18 | 1492 | -----------------------------------------
-- Spell: Actinic Burst
-- Greatly lowers the accuracy of enemies within range for a brief period of time
-- Spell cost: 24 MP
-- Monster Type: Luminions
-- Spell Type: Magical (Light)
-- Blue Magic Points: 4
-- Stat Bonus: CHR+2, HP+20
-- Level: 74
-- Casting Time: 0.... | gpl-3.0 |
elbamos/nn | MultiMarginCriterion.lua | 11 | 1615 | local THNN = require 'nn.THNN'
local MultiMarginCriterion, parent = torch.class('nn.MultiMarginCriterion', 'nn.Criterion')
function MultiMarginCriterion:__init(p, weights, margin)
assert(p == nil or p == 1 or p == 2, 'only p=1 and p=2 supported')
self.p = p or 1
self.margin = margin or 1.0
parent.__init(se... | bsd-3-clause |
jshackley/darkstar | scripts/zones/Upper_Jeuno/npcs/Monberaux.lua | 17 | 5662 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Monberaux
-- Starts and Finishes Quest: The Lost Cardian (finish), The kind cardian (start)
-- Involved in Quests: Save the Clock Tower
-- @pos -43 0 -1 244
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = n... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Davoi/npcs/_45d.lua | 19 | 1499 | -----------------------------------
-- Area: Davoi
-- NPC: Wall of Banishing
-- Used In Quest: Whence Blows the Wind
-- @pos 181 0.1 -218 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scrip... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Windurst_Woods/npcs/Gioh_Ajihri.lua | 36 | 2813 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Gioh Ajihri
-- Starts & Finishes Repeatable Quest: Twinstone Bonding
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
requ... | gpl-3.0 |
Victek/wrt1900ac-aa | veriksystems/luci-0.11/libs/httpclient/luasrc/httpclient.lua | 41 | 9111 | --[[
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$
]]--
requi... | gpl-2.0 |
dani-sj/tekmilienod | plugins/plugins.lua | 88 | 6304 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
Ombridride/minetest-minetestforfun-server | minetestforfun_game/mods/screwdriver/init.lua | 6 | 4233 | screwdriver = {}
local function nextrange(x, max)
x = x + 1
if x > max then
x = 0
end
return x
end
screwdriver.ROTATE_FACE = 1
screwdriver.ROTATE_AXIS = 2
screwdriver.disallow = function(pos, node, user, mode, new_param2)
return false
end
screwdriver.rotate_simple = function(pos, node, user, mode, new_param2)
... | unlicense |
Ombridride/minetest-minetestforfun-server | minetestforfun_game/mods/farming/corn.lua | 10 | 3067 |
--[[
Original textures from GeMinecraft
http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/wip-mods/1440575-1-2-5-generation-minecraft-beta-1-2-farming-and
]]
local S = farming.intllib
-- corn
minetest.register_craftitem("farming:corn", {
description = S("Corn"),
inventory_image = "farming_c... | unlicense |
jshackley/darkstar | scripts/zones/The_Shrine_of_RuAvitau/npcs/qm1.lua | 2 | 1411 | -----------------------------------
-- Area: The Shrine of Ru'Avitau
-- NPC: ??? (Spawn Olla Pequena)
-- @pos 851 0.1 92 178
-----------------------------------
package.loaded["scripts/zones/The_Shrine_of_RuAvitau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Shrine_of_RuAvit... | gpl-3.0 |
dani-sj/mahan | 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 |
Shrike78/Shilke2D | Samples/BlendModes/blendImages.lua | 1 | 3181 | --[[
The sample is based on http://www.andersriggelsen.dk/glblendfunc.php example
Graphics from www.interfacelift.com:
http://interfacelift.com/wallpaper/details/2262/flamingos.html
--]]
__DEBUG_CALLBACKS__ = true
--__USE_SIMULATION_COORDS__ = true
require("Shilke2D/include")
IO.setWorkingDir("Assets/BlendModes")
... | mit |
LiberatorUSA/GUCEF | tools/ProjectGen/premake4.lua | 1 | 3034 | --------------------------------------------------------------------
-- This file was automatically generated by ProjectGenerator
-- which is tooling part the build system designed for GUCEF
-- (Galaxy Unlimited Framework)
-- For the latest info, see http://www.VanvelzenSoftware.com/
--
-- The contents of this file... | apache-2.0 |
hockeychaos/Core-Scripts-1 | CoreScriptsRoot/Modules/Server/ServerChat/DefaultChatModules/ChatMessageValidator.lua | 2 | 2430 | -- // FileName: ChatMessageValidator.lua
-- // Written by: TheGamer101
-- // Description: Validate things such as no disallowed whitespace and chat message length on the server.
local Chat = game:GetService("Chat")
local RunService = game:GetService("RunService")
local ReplicatedModules = Chat:WaitForChild("ClientChat... | apache-2.0 |
jshackley/darkstar | scripts/zones/RuLude_Gardens/npcs/Pherimociel.lua | 19 | 2513 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Pherimociel
-- Involved in mission: COP 1-2
-- @pos -31.627 1.002 67.956 243
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
r... | gpl-3.0 |
wolf9s/packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/interfaceconfig.lua | 74 | 7228 | -- ------ extra functions ------ --
function interfaceCheck()
metricValue = ut.trim(sys.exec("uci -p /var/state get network." .. arg[1] .. ".metric"))
if metricValue == "" then -- no metric
errorNoMetric = 1
else -- if metric exists create list of interface metrics to compare against for duplicates
uci.cursor()... | gpl-2.0 |
jshackley/darkstar | scripts/zones/Western_Altepa_Desert/npcs/relic.lua | 38 | 1869 | -----------------------------------
-- Area: Western Altepa Desert
-- NPC: <this space intentionally left blank>
-- @pos -152 -16 20 125
-----------------------------------
package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Western_Altepa_De... | gpl-3.0 |
jshackley/darkstar | scripts/globals/weaponskills/freezebite.lua | 30 | 1263 | -----------------------------------
-- Freezebite
-- Great Sword weapon skill
-- Skill Level: 100
-- Delivers an ice elemental attack. Damage varies with TP.
-- Aligned with the Snow Gorget & Breeze Gorget.
-- Aligned with the Snow Belt & Breeze Belt.
-- Element: Ice
-- Modifiers: STR:30% ; INT:20%
-- 100%TP ... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Lower_Jeuno/npcs/Ghebi_Damomohe.lua | 17 | 4285 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Ghebi Damomohe
-- Type: Standard Merchant
-- Starts and Finishes Quest: Tenshodo Membership
-- @zone 245
-- @pos 16 0 -5
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
package.loaded["scripts/globa... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Eastern_Adoulin/npcs/HomePoint#1.lua | 17 | 1239 | -----------------------------------
-- Area: Eastern_Adoulin
-- NPC: HomePoint#1
-- @pos
-----------------------------------
package.loaded["scripts/zones/Eastern_Adoulin/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Eastern_Adoulin/TextIDs");
require("scripts/globals/homepoi... | gpl-3.0 |
hockeychaos/Core-Scripts-1 | CoreScriptsRoot/Modules/Settings/SettingsHubOld.lua | 1 | 39726 | --[[
Filename: SettingsHub.lua
Written by: jeditkacheff
Version 1.0
Description: Controls the settings menu navigation and contains the settings pages
--]]
--[[ CONSTANTS ]]
local SETTINGS_SHIELD_COLOR = Color3.new(41/255,41/255,41/255)
local SETTINGS_SHIELD_TRANSPARENCY = 0.2
local SETTINGS_SHIELD_VR_... | apache-2.0 |
jshackley/darkstar | scripts/zones/Yhoator_Jungle/npcs/Logging_Point.lua | 29 | 1104 | -----------------------------------
-- Area: Yhoator Jungle
-- NPC: Logging Point
-----------------------------------
package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/logging");
require("scripts/zones/Yhoator_Jungle/TextIDs");
--... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Chateau_dOraguille/npcs/Halver.lua | 18 | 8554 | -----------------------------------
-- Area: Chateau d'Oraguille
-- NPC: Halver
-- Involved in Mission 2-3, 3-3, 5-1, 5-2, 8-1
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- @pos 2 0.1 0.1 233
-----------------------------------
package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil;
-------------... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Crawlers_Nest/npcs/Treasure_Chest.lua | 17 | 3197 | -----------------------------------
-- Area: Crawler Nest
-- NPC: Treasure Chest
-- Involved In Quest: Enveloped in Darkness
-- @pos 41 0.1 -314 197
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/se... | gpl-3.0 |
jshackley/darkstar | scripts/zones/AlTaieu/npcs/HomePoint#1.lua | 29 | 1238 | -----------------------------------
-- Area: AlTaieu
-- NPC: HomePoint#1
-- @pos 7 0 709 33
-----------------------------------
package.loaded["scripts/zones/AlTaieu/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/AlTaieu/TextIDs");
require("scripts/globals/homepoint");
----------------... | gpl-3.0 |
hacker44-h44/h44bot | plugins/banhammer.lua | 23 | 11188 | -- data saved to moderation.json
do
-- make sure to set with value that not higher than stats.lua
local NUM_MSG_MAX = 5 -- Max number of messages per TIME_CHECK seconds
local TIME_CHECK = 5
local function is_user_whitelisted(id)
local hash = 'whitelist:user#id'..id
local white = redis:get(hash) or false
return... | gpl-2.0 |
jshackley/darkstar | scripts/zones/Windurst_Woods/npcs/Perih_Vashai.lua | 17 | 7012 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Parih Vashai
-- Starts and Finishes Quest: The Fanged One
-- @zone 241
-- @pos 117 -3 92
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/... | gpl-3.0 |
kubernetes/ingress-nginx | rootfs/etc/nginx/lua/test/global_throttle_test.lua | 3 | 9180 | local util = require("util")
local function assert_request_rejected(config, location_config, opts)
stub(ngx, "exit")
local global_throttle = require_without_cache("global_throttle")
assert.has_no.errors(function()
global_throttle.throttle(config, location_config)
end)
assert.stub(ngx.exit).was_called_w... | apache-2.0 |
jshackley/darkstar | scripts/zones/Nashmau/npcs/Neneroon.lua | 38 | 1033 | ----------------------------------
-- Area: Nashmau
-- NPC: Neneroon
-- Type: Item Deliverer
-- @pos -0.866 -5.999 36.942 53
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
-------------------... | gpl-3.0 |
wolf9s/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 |
jshackley/darkstar | scripts/zones/Chamber_of_Oracles/npcs/Pedestal_of_Light.lua | 17 | 2270 | -----------------------------------
-- Area: Chamber of Oracles
-- NPC: Pedestal of Light
-- Involved in Zilart Mission 7
-- @pos 199 -2 36 168
-------------------------------------
package.loaded["scripts/zones/Chamber_of_Oracles/TextIDs"] = nil;
-------------------------------------
require("scripts/global... | gpl-3.0 |
slanska/flexilite | src_lua/test_flexi.lua | 1 | 4100 | ---
--- Created by slanska.
--- DateTime: 2017-11-01 10:29 PM
---
--[[
This file is used as an entry point for testing Flexilite library
]]
local mobdebug = require("mobdebug")
mobdebug.start()
--ProFi = require 'ProFi'
if jit then
jit.on()
end
-- Source: https://gist.github.com/Tieske/b1654b27fa422afb63eb
--[... | mpl-2.0 |
Ombridride/minetest-minetestforfun-server | mods/throwing/standard_arrows.lua | 8 | 4505 | function throwing_register_arrow_standard (kind, desc, eq, toughness, craft)
minetest.register_craftitem("throwing:arrow_" .. kind, {
description = desc .. " arrow",
inventory_image = "throwing_arrow_" .. kind .. ".png",
})
minetest.register_node("throwing:arrow_" .. kind .. "_box", {
drawtype = "nodebox",
... | unlicense |
jshackley/darkstar | scripts/zones/Mhaura/npcs/Keshab-Menjab.lua | 38 | 1033 | -----------------------------------
-- Area: Mhaura
-- NPC: Keshab-Menjab
-- Type: Standard NPC
-- @pos -15.727 -9.032 54.049 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mhaura/TextIDs");
require("scripts/... | gpl-3.0 |
CapsAdmin/unfinished | battle2.lua | 1 | 44145 | setfenv(1, _G)
battle = battle or {}
battle.entity_vars = battle.entity_vars or {}
function battle.SetEntityVar(ent, key, value, nw)
if ent and key then
battle.entity_vars[ent:EntIndex()] = battle.entity_vars[ent:EntIndex()] or {}
battle.entity_vars[ent:EntIndex()][key] = value
if nw and SERVER then
ent:Set... | gpl-3.0 |
opentibia/server | data/scripts/otstd/actions/make_bread.lua | 3 | 2544 | otstd.make_bread = {}
otstd.ovens = {
[1786] = {},
[1788] = {},
[1790] = {},
[1792] = {},
[6356] = {},
[6358] = {},
[6360] = {},
[6362] = {}
}
function otstd.make_bread.use_wheat_on_mill_callback(event)
local player = event.player
local item = event.item
local toPos = event.targetPosition
local ... | gpl-2.0 |
Ombridride/minetest-minetestforfun-server | mods/mesecons/mesecons_torch/init.lua | 12 | 3310 | --MESECON TORCHES
local rotate_torch_rules = function (rules, param2)
if param2 == 5 then
return mesecon.rotate_rules_right(rules)
elseif param2 == 2 then
return mesecon.rotate_rules_right(mesecon.rotate_rules_right(rules)) --180 degrees
elseif param2 == 4 then
return mesecon.rotate_rules_left(rules)
elseif ... | unlicense |
Ombridride/minetest-minetestforfun-server | mods/mesecons/mesecons_alias/init.lua | 22 | 3047 | -- This file registers aliases for the /give /giveme commands.
minetest.register_alias("mesecons:removestone", "mesecons_random:removestone")
minetest.register_alias("mesecons:power_plant", "mesecons_powerplant:power_plant")
minetest.register_alias("mesecons:powerplant", "mesecons_powerplant:power_plant")
minetest.reg... | unlicense |
VincentGong/chess | cocos2d-x/cocos/scripting/lua-bindings/auto/api/Scale9Sprite.lua | 4 | 6926 |
--------------------------------
-- @module Scale9Sprite
-- @extend Node
--------------------------------
-- @function [parent=#Scale9Sprite] resizableSpriteWithCapInsets
-- @param self
-- @param #rect_table rect
-- @return Scale9Sprite#Scale9Sprite ret (return value: cc.Scale9Sprite)
----------------------... | mit |
joelghill/SciFiGames | TileMapImport/conf.lua | 2 | 3391 | --[[
Include this file in the root directory of your project to overide the default settings.
]]--
function love.conf(t)
t.identity = nil -- The name of the save directory (string)
t.version = "0.9.2" -- The LÖVE version this game was made for (string)
--**********... | apache-2.0 |
jshackley/darkstar | scripts/zones/Temenos/npcs/Armoury_Crate.lua | 25 | 8574 | -----------------------------------
-- Area: Temenos
-- NPC: Armoury Crate
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/zones/Temenos/Text... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Northern_San_dOria/npcs/Mevreauche.lua | 44 | 2103 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Mevreauche
-- Type: Smithing Guild Master
-- @pos -193.584 10 148.655 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status")... | gpl-3.0 |
hockeychaos/Core-Scripts-1 | CoreScriptsRoot/CoreScripts/BlockPlayerPrompt.lua | 1 | 6601 | --[[
// Filename: BlockPlayerPrompt.lua
// Version 1.0
// Written by: TheGamer101
// Description: Handles prompting the blocking and unblocking of Players.
]]--
local StarterGui = game:GetService("StarterGui")
local PlayersService = game:GetService("Players")
local CoreGuiService = game:GetService("CoreGui")
loca... | apache-2.0 |
shagu/pfQuest | slashcmd.lua | 1 | 8046 | -- multi api compat
local compat = pfQuestCompat
SLASH_PFDB1, SLASH_PFDB2, SLASH_PFDB3, SLASH_PFDB4 = "/db", "/shagu", "/pfquest", "/pfdb"
SlashCmdList["PFDB"] = function(input, editbox)
local params = {}
local meta = { ["addon"] = "PFDB" }
if (input == "" or input == nil) then
DEFAULT_CHAT_FRAME:AddMessage... | mit |
jshackley/darkstar | scripts/globals/weaponskills/jishnus_radiance.lua | 30 | 1308 | -----------------------------------
-- Jishnu's Radiance
-- Archery weapon skill
-- Skill level: 357
-- Empyrean Weapon Skill
-- RNG Main Job Required
-- Aligned with the Thunder & Breeze Gorget.
-- Aligned with the Thunder Belt & Breeze Belt.
-- Element:
-- Modifiers: DEX:60%
-- 100%TP 200%TP 300%TP
-... | gpl-3.0 |
chrisglass/ufoai | contrib/installer/mojosetup/scripts/localization.lua | 5 | 3621 | -- MojoSetup; a portable, flexible installation application.
--
-- Please see the file LICENSE.txt in the source's root directory.
--
-- This file written by Ryan C. Gordon.
-- NOTE: If you care about Unicode or ASCII chars above 127, this file _MUST_
-- be UTF-8 encoded! If you think you're using a certain high-as... | gpl-2.0 |
DarkRainX/ufoai | contrib/installer/mojosetup/scripts/localization.lua | 5 | 3621 | -- MojoSetup; a portable, flexible installation application.
--
-- Please see the file LICENSE.txt in the source's root directory.
--
-- This file written by Ryan C. Gordon.
-- NOTE: If you care about Unicode or ASCII chars above 127, this file _MUST_
-- be UTF-8 encoded! If you think you're using a certain high-as... | gpl-2.0 |
LiberatorUSA/GUCEF | plugins/GUI/guidriverWin32/premake5.lua | 1 | 3213 | --------------------------------------------------------------------
-- This file was automatically generated by ProjectGenerator
-- which is tooling part the build system designed for GUCEF
-- (Galaxy Unlimited Framework)
-- For the latest info, see http://www.VanvelzenSoftware.com/
--
-- The contents of this file... | apache-2.0 |
jshackley/darkstar | scripts/globals/items/plate_of_barnacle_paella.lua | 36 | 1576 | -----------------------------------------
-- ID: 5974
-- Item: Plate of Barnacle Paella
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- HP 40
-- Vitality 5
-- Mind -1
-- Charisma -1
-- Defense % 25 Cap 150
-- Undead Killer 5
-----------------------------------------
require("scripts/globa... | gpl-3.0 |
Mizugola/MeltingSaga | engine/Lib/Extlibs/pl/compat.lua | 5 | 5040 | ----------------
--- Lua 5.1/5.2/5.3 compatibility.
-- Ensures that `table.pack` and `package.searchpath` are available
-- for Lua 5.1 and LuaJIT.
-- The exported function `load` is Lua 5.2 compatible.
-- `compat.setfenv` and `compat.getfenv` are available for Lua 5.2, although
-- they are not always guaranteed to work... | mit |
jshackley/darkstar | scripts/zones/VeLugannon_Palace/mobs/Brigandish_Blade.lua | 7 | 1272 | -----------------------------------
-- Area: VeLugannon Palace
-- NM: Brigandish Blade
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize
-----------------------------------
function onMobInitialize(mob)
mob:setMobMod(MOBMOD_ADD_EFFECT,... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Garlaige_Citadel/npcs/Mashira.lua | 17 | 2099 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: Mashira
-- Involved in Quests: Rubbish day, Making Amens!
-- @pos 141 -6 138 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("scripts/globa... | gpl-3.0 |
kidaa/turbo | turbo/util.lua | 7 | 10367 | -- Turbo.lua Utilities module.
--
-- Copyright 2011, 2012, 2013, 2014 John Abrahamsen
--
-- 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 |
VincentGong/chess | cocos2d-x/cocos/scripting/lua-bindings/auto/api/GLProgramCache.lua | 4 | 1095 |
--------------------------------
-- @module GLProgramCache
-- @extend Ref
--------------------------------
-- @function [parent=#GLProgramCache] addGLProgram
-- @param self
-- @param #cc.GLProgram glprogram
-- @param #string str
--------------------------------
-- @function [parent=#GLProgramCache] getGLPro... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.