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 |
|---|---|---|---|---|---|
subzrk/BadRotations | System/UsefulFeatures.lua | 1 | 7705 | function br:AcceptQueues()
if getOptionCheck("Accept Queues") then
-- Accept Queues
if randomReady == nil then
randomReady = math.random(8,15)
end
-- add some randomness
if readyToAccept and readyToAccept <= GetTime() - 5 then
AcceptProposal(); readyToAccept = nil; randomReady = nil
end
end
end
----... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Sacrarium/npcs/qm7.lua | 9 | 1735 | -----------------------------------
-- Area: Sacrarium
-- NPC: qm7 (???)
-- Notes: Used to spawn Old Prof. Mariselle
-- @pos 22.669 -3.111 -127.318 28
-----------------------------------
package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Sacr... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/weaponskills/empyreal_arrow.lua | 6 | 1334 | -----------------------------------
-- Empyreal Arrow
-- Archery weapon skill
-- Skill level: 250
-- In order to obtain Empyreal Arrow, the quest From Saplings Grow must be completed.
-- Delivers a single-hit attack. Damage varies with TP.
-- Aligned with the Flame Gorget & Light Gorget.
-- Aligned with t... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/items/food_coffee.lua | 1 | 1324 |
local ITEM = {};
ITEM.ID = 131;
ITEM.Reference = "food_coffee";
ITEM.Name = 'Coffee';
ITEM.Description = "Short but powerful energy boosts.";
ITEM.Weight = 2;
ITEM.Cost = 35;
ITEM.MaxStack = 100;
ITEM.InventoryModel = "models/props_junk/garbage_coffeemug001a.mdl";
ITEM.ModelCamPos = Vector(48... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Al_Zahbi/npcs/Allard.lua | 37 | 1186 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Allard
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
require("scripts/zones/Al_Zahbi/TextIDs");
-----------------------------------
-- onTrad... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/serving_of_green_curry.lua | 35 | 1755 | -----------------------------------------
-- ID: 4296
-- Item: serving_of_green_curry
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Agility 2
-- Vitality 1
-- Health Regen While Healing 2
-- Magic Regen While Healing 1
-- Defense % 9
-- Ranged ACC % 5
-- Ranged ACC Cap 25
--... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Horlais_Peak/bcnms/dropping_like_flies.lua | 6 | 1703 | -----------------------------------
-- Area: Horlias peak
-- Name: Dropping Like Flies
-- BCNM30
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Horlais_Peak/TextIDs");
-----------------------------------
-- EXA... | gpl-3.0 |
sadegh1996/sword_antispam | plugins/inpm.lua | 11 | 2850 | do
function run(msg, matches)
if msg.to.id == our_id then
local data = load_data(_config.moderation.data)
if matches[1] == 'join' and data[tostring(matches[2])] then
if is_banned(msg.from.id, matches[2]) then
return 'شما بن هستید'
end
if is_gbanned(msg.from.id) then
return 'شما از تمام... | gpl-2.0 |
POPHUP/maroonhost | plugins/lock_ads.lua | 12 | 2980 |
local function run(msg, matches)
if msg.to.type == 'chat' then
if is_momod(msg) then
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)] then
if data[tostring(msg.to.id)]['settings'] then
if data[tostring(msg.to.id)]['settings']['lock_link... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Aydeewa_Subterrane/npcs/qm1.lua | 15 | 1185 | -----------------------------------
-- Area: Aydeewa Subterrane
-- NPC: ??? (Spawn Nosferatu(ZNM T3))
-- @pos -199 8 -62 68
-----------------------------------
package.loaded["scripts/zones/Aydeewa_Subterrane/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aydeewa_Subterrane/TextIDs");
-... | gpl-3.0 |
satreix/awesome | vicious/contrib/rss.lua | 18 | 1741 | ---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2009, olcc
--
-- This is now a standalone RSS reader for awesome:
-- * http://github.com/olcc/aware
---------------------------------------------------
-- {{{ Grab environment
local pairs = pairs
local io... | mit |
subzrk/BadRotations | Rotations/Demon Hunter/Vengeance/VengeanceDub.lua | 3 | 21919 | local rotationName = "Dub"
---------------
--- Toggles ---
---------------
local function createToggles()
-- Rotation Button
RotationModes = {
[1] = { mode = "Auto", value = 1 , overlay = "Automatic Rotation", tip = "Swaps between Single and Multiple based on number of targets in range.", highlight = 1, ic... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Beaucedine_Glacier/Zone.lua | 2 | 2666 | -----------------------------------
--
-- Zone: Beaucedine_Glacier (111)
--
-----------------------------------
package.loaded[ "scripts/zones/Beaucedine_Glacier/TextIDs"] = nil;
require( "scripts/zones/Beaucedine_Glacier/TextIDs");
require( "scripts/globals/missions");
require( "scripts/globals/icanhearara... | gpl-3.0 |
togolwb/skynet | lualib/mqueue.lua | 115 | 1798 | -- This is a deprecated module, use skynet.queue instead.
local skynet = require "skynet"
local c = require "skynet.core"
local mqueue = {}
local init_once
local thread_id
local message_queue = {}
skynet.register_protocol {
name = "queue",
-- please read skynet.h for magic number 8
id = 8,
pack = skynet.pack,
u... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Beaucedine_Glacier/TextIDs.lua | 3 | 1124 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6552; -- You cannot obtain the item. Come back after sorting your inventory.
FULL_INVENTORY_AFTER_TRADE = 6553; -- You cannot obtain the #. Try trading again after sorting your inventory.
ITEM_OBTAINED = 6554; -- Obtained:... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/rolanberry_(864_ce).lua | 35 | 1205 | -----------------------------------------
-- ID: 4531
-- Item: rolanberry_864_ce)
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -3
-- Intelligence 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
... | gpl-3.0 |
hacker44-h44/1104 | plugins/rae.lua | 616 | 1312 | do
function getDulcinea( text )
-- Powered by https://github.com/javierhonduco/dulcinea
local api = "http://dulcinea.herokuapp.com/api/?query="
local query_url = api..text
local b, code = http.request(query_url)
if code ~= 200 then
return "Error: HTTP Connection"
end
dulcinea = json:decode(b)
... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Open_sea_route_to_Mhaura/npcs/Pashi_Maccaleh.lua | 17 | 1245 | -----------------------------------
-- Area: Open sea route to Mhaura
-- NPC: Pashi Maccaleh
-- Guild Merchant NPC: Fishing Guild
-- @zone 4.986 -2.101 -12.026 47
-----------------------------------
package.loaded["scripts/zones/Open_sea_route_to_Mhaura/TextIDs"] = nil;
-----------------------------------
r... | gpl-3.0 |
sjznxd/lc-20130127 | contrib/luadoc/lua/luadoc/taglet/standard/tags.lua | 93 | 5221 | -------------------------------------------------------------------------------
-- Handlers for several tags
-- @release $Id: tags.lua,v 1.8 2007/09/05 12:39:09 tomas Exp $
-------------------------------------------------------------------------------
local luadoc = require "luadoc"
local util = require "luadoc.util"... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Temple_of_Uggalepih/npcs/_4fv.lua | 17 | 1653 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: Granite Door
-- Involved in Missions: San dOria Mission 8-2
-- @pos -50 -17 -154
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
-----------------------------------
require("script... | gpl-3.0 |
TW1STaL1CKY/pac3 | lua/pac3/core/client/parts/player_config.lua | 1 | 3393 | local PART = {}
PART.ClassName = "player_config"
PART.Group = "entity"
PART.Icon = 'icon16/brick.png'
PART.NonPhysical = true
local blood_colors = {
dont_bleed = _G.DONT_BLEED,
red = _G.BLOOD_COLOR_RED,
yellow = _G.BLOOD_COLOR_YELLOW,
green = _G.BLOOD_COLOR_GREEN,
mech = _G.BLOOD_COLOR_MECH,
antlion = _G.BLOOD_... | gpl-3.0 |
rigeirani/Teleseed | plugins/stats.lua | 866 | 4001 | do
-- Returns a table with `name` and `msgs`
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_prin... | gpl-2.0 |
shahramam/seed | plugins/stats.lua | 866 | 4001 | do
-- Returns a table with `name` and `msgs`
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_prin... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Sealions_Den/Zone.lua | 15 | 2028 | -----------------------------------
--
-- Zone: Sealions_Den (32)
--
-----------------------------------
package.loaded["scripts/zones/Sealions_Den/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Sealions_Den/TextIDs");
----------------------... | gpl-3.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/mesecons/mesecons_commandblock/init.lua | 7 | 6280 | minetest.register_chatcommand("say", {
params = "<text>",
description = "Say <text> as the server",
privs = {server=true},
func = function(name, param)
minetest.chat_send_all(name .. ": " .. param)
end
})
minetest.register_chatcommand("tell", {
params = "<name> <text>",
description = "Say <text> to... | unlicense |
lakers/RobloxWiki | extensions/Scribunto/engines/LuaCommon/lualib/ustring/charsets.lua | 8 | 61782 | -- This file is automatically generated by make-tables.php
local pats = {
[0x61] = {
[0x0000aa] = 1,
[0x0000ba] = 1,
[0x0001bb] = 1,
[0x0001c0] = 1,
[0x0001c1] = 1,
[0x0001c2] = 1,
[0x0001c3] = 1,
[0x0001c5] = 1,
[0x0001c8] = 1,
[0x0001cb] = 1,
[0x0001f2] = 1,
[0x000294] = 1,
[0x0002e0] = 1,
... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Aht_Urhgan_Whitegate/npcs/Mhasbaf.lua | 37 | 1030 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Mhasbaf
-- Type: Standard NPC
-- @pos 54.701 -6.999 11.387 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whit... | gpl-3.0 |
hacker44-h44/1104 | plugins/moderation.lua | 336 | 9979 | do
local function check_member(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
local username = v.username
data[tostring(m... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Yuhtunga_Jungle/npcs/Robino-Mobino.lua | 17 | 1852 | -----------------------------------
-- Area: Yuhtunga Jungle
-- NPC: Robino-Mobino
-- @pos -244 0 -401 123
-----------------------------------
package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest"... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/vehicles/Cayenne.lua | 1 | 2659 | ///////////////////////////////
// © 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 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/darkage/mapgen.lua | 8 | 8778 | --[[
This file generates:
darkage:mud
darkage:silt
darkage:chalk
darkage:ors
darkage:shale
darkage:slate
darkage:schist
darkage:basalt
darkage:marble
darkage:serpentine
darkage:gneiss
--]]
local getID = minetest.get_content_id
local function generate_stratus(data, varea, name, wherein, ceilin, ceil, minp,... | unlicense |
m2mselect/owrt | feeds/luci/modules/luci-base/luasrc/ltn12.lua | 84 | 8954 | --[[
LuaSocket 2.0.2 license
Copyright � 2004-2007 Diego Nehab
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, me... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Lower_Delkfutts_Tower/npcs/_540.lua | 16 | 2171 | -----------------------------------
-- Area: Lower Delkfutt's Tower
-- NPC: Cermet Door
-- Cermet Door for Windy Ambassador
-- Windurst Mission 3.3 "A New Journey"
-- @pos 636 16 59 184
-----------------------------------
package.loaded["scripts/zones/Lower_Delkfutts_Tower/TextIDs"] = nil;
------------------... | gpl-3.0 |
loic-fejoz/loic-fejoz-fabmoments | apprenti-maker-logo/gear.lua | 1 | 15272 | -- Parametric Involute Bevel and Spur Gears by GregFrost
-- It is licensed under the Creative Commons - GNU LGPL 2.1 license.
-- � 2010 by GregFrost, thingiverse.com/Amp
-- http:--www.thingiverse.com/thing:3575 and http:--www.thingiverse.com/thing:3752
-- 2013-02-02 sylefeb - ported to IceSL
-- ----------------------... | mit |
hb9cwp/snabbswitch | lib/ljsyscall/syscall/linux/errors.lua | 24 | 5242 | -- Linux error messages
return {
PERM = "Operation not permitted",
NOENT = "No such file or directory",
SRCH = "No such process",
INTR = "Interrupted system call",
IO = "Input/output error",
NXIO = "No such device or address",
["2BIG"] = "Argument list too long",
NOEXEC = "Exec format error",
BADF = ... | apache-2.0 |
sjznxd/lc-20130127 | applications/luci-hd-idle/luasrc/model/cbi/hd_idle.lua | 44 | 1102 | --[[
LuCI hd-idle
(c) 2008 Yanira <forum-2008@email.de>
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$
]]--
require("nixio.fs")
m = Map... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Port_San_dOria/npcs/Pomilla.lua | 17 | 1693 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Pomilla
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- @pos -38 -4 -55 232
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/glo... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/North_Gustaberg/Zone.lua | 2 | 2008 | -----------------------------------
--
-- Zone: North_Gustaberg (106)
--
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/North_Gustaberg/TextIDs");
require( "scripts/globals/icanheararainbow");
---... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/items/furniture_chair_wooden.lua | 1 | 1247 |
local ITEM = {};
ITEM.ID = 45;
ITEM.Reference = "furniture_chair_wooden";
ITEM.Name = "Wooden Chair";
ITEM.Description = "Take a load off.\n\nLeft click to spawn as prop.\nUse + ALT to pickup after dropped as prop.";
ITEM.Weight = 35;
ITEM.Cost = 750;
ITEM.MaxStack = 100;
ITEM.I... | mit |
olafdietsche/sysbench | sysbench/tests/db/select_random_points.lua | 13 | 3996 | -- This test is designed for testing MariaDB's key_cache_segments for MyISAM,
-- and should work with other storage engines as well.
--
-- For details about key_cache_segments please refer to:
-- http://kb.askmonty.org/v/segmented-key-cache
--
function prepare()
local query
local i
set_vars()
db_connect()... | gpl-2.0 |
Messael/Firewolf | entities/other.lua | 2 | 74172 |
--
-- Firewolf
-- Made by GravityScore and 1lann
--
-- Variables
local version = "3.5"
local build = 17
local w, h = term.getSize()
local isMenubarOpen = true
local menubarWindow = nil
local allowUnencryptedConnections = true
local enableTabBar = true
local currentWebsiteURL = ""
local builtInSites = {}
... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Al_Zahbi/npcs/Numaaf.lua | 12 | 2250 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Numaaf
-- Type: Cooking Normal/Adv. Image Support
-- @pos 54.966 -7 8.328 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Al_Zahbi/TextIDs");
requ... | gpl-3.0 |
gitfancode/skynet | test/testredis2.lua | 82 | 1043 | local skynet = require "skynet"
local redis = require "redis"
local db
function add1(key, count)
local t = {}
for i = 1, count do
t[2*i -1] = "key" ..i
t[2*i] = "value" .. i
end
db:hmset(key, table.unpack(t))
end
function add2(key, count)
local t = {}
for i = 1, count do
... | mit |
NORTTeam/N.O.R.T | plugins/location.lua | 93 | 1704 | -- Implement a command !loc [area] which uses
-- the static map API to get a location image
-- Not sure if this is the proper way
-- Intent: get_latlong is in time.lua, we need it here
-- loadfile "time.lua"
-- Globals
-- If you have a google api key for the geocoding/timezone api
do
local api_key = nil
local base_... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Ifrits_Cauldron/npcs/Treasure_Coffer.lua | 5 | 4269 | -----------------------------------
-- Area: Ifrit's Cauldron
-- NPC: Treasure Coffer
-- @zone 205
-- @pos 188 0 -28
-----------------------------------
package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/gl... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/spells/meteor.lua | 4 | 2160 | -----------------------------------------
-- Spell: Meteor
-- Deals non-elemental damage to an enemy.
-----------------------------------------
require("/scripts/globals/settings");
require("scripts/globals/magic");
require("scripts/globals/status");
require("/scripts/globals/monstertpmoves");
---------------... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/items/furniture_wood_coffee_table.lua | 1 | 1244 |
local ITEM = {};
ITEM.ID = 78;
ITEM.Reference = "furniture_wood_coffee_table";
ITEM.Name = "Rounded Coffee Table";
ITEM.Description = "A table for putting coffee on. Isn't that obvious?\n\nLeft click to spawn as prop.";
ITEM.Weight = 30;
ITEM.Cost = 300;
ITEM.MaxStack = 100;
ITE... | mit |
pax2you4now/wesnoth | data/ai/micro_ais/cas/ca_forest_animals_tusker_attack.lua | 26 | 2575 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local function get_tuskers(cfg)
local tuskers = AH.get_units_with_moves {
side = wesnoth.current.side,
type = cfg.tusker_type
}
return tuskers
end
local function get_adjacent_enemies(cfg)
local... | gpl-2.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/homedecor_modpack/homedecor/shutters.lua | 13 | 1774 | -- Various kinds of window shutters
local S = homedecor.gettext
local shutters = {
{"oak", "Unpainted oak", "#bf8a51:200" },
{"mahogany", "Mahogany", "#822606:200" },
{"red", "Red", "#d00000:150" },
{"yellow", "Yellow", "#ffff00:150" },
{"forest_green", "Forest g... | unlicense |
subzrk/BadRotations | System/Libs/LibArtifactData-1.0/LibStub/tests/test2.lua | 100 | 1112 | debugstack = debug.traceback
strmatch = string.match
loadfile("../LibStub.lua")()
for major, library in LibStub:IterateLibraries() do
-- check that MyLib doesn't exist yet, by iterating through all the libraries
assert(major ~= "MyLib")
end
assert(not LibStub:GetLibrary("MyLib", true)) -- check that MyLib doesn't ... | gpl-3.0 |
hb9cwp/snabbswitch | src/lib/hardware/pci.lua | 1 | 6295 | module(...,package.seeall)
local ffi = require("ffi")
local C = ffi.C
local S = require("syscall")
local lib = require("core.lib")
require("lib.hardware.pci_h")
--- ### Hardware device information
devices = {}
--- Array of all supported hardware devices.
---
--- Each entry is a "device info" table with these attr... | apache-2.0 |
m2mselect/owrt | feeds/routing/luci-app-bmx6/files/usr/lib/lua/luci/model/cbi/bmx6/advanced.lua | 18 | 2129 | --[[
Copyright (C) 2011 Pau Escrich <pau@dabax.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Th... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/La_Theine_Plateau/Zone.lua | 2 | 3539 | -----------------------------------
--
-- Zone: La_Theine_Plateau (102)
--
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/La_Theine_Plateau/TextIDs");
require("scripts/globals/icanheararainbow");
... | gpl-3.0 |
lakers/RobloxWiki | extensions/Scribunto/tests/engines/LuaCommon/TitleLibraryTests.lua | 1 | 9576 | local testframework = require 'Module:TestFramework'
local title, title_copy, title2, title3, title4, title5, title6, title4p
if mw.title.testPageId then
title = mw.title.getCurrentTitle()
title_copy = mw.title.getCurrentTitle()
title2 = mw.title.new( 'Module:TestFramework' )
title3 = mw.title.new( 'scribuntotitle... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/cup_of_chocomilk.lua | 35 | 1163 | -----------------------------------------
-- ID: 4498
-- Item: cup_of_chocomilk
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Magic Regen While Healing 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/sv_trade.lua | 1 | 6754 |
function PLAYER:TradeWith ( otherPlayer )
if (!otherPlayer || !IsValid(otherPlayer) || !otherPlayer:IsPlayer()) then return; end
if (otherPlayer.CurrentlyTrading) then
self:Notify("That player is already trading. Please wait until he is finished.");
return; end
if (self.CurrentlyTrading) then
self:Notify... | mit |
TW1STaL1CKY/pac3 | lua/pac3/core/client/parts/legacy/ogg.lua | 1 | 5991 | local PART = {}
PART.ClassName = "ogg"
PART.NonPhysical = true
PART.Group = "legacy"
PART.Icon = 'icon16/music.png'
pac.StartStorableVars()
pac.GetSet(PART, "URL", "")
pac.GetSet(PART, "Volume", 1, {editor_sensitivity = 0.25})
pac.GetSet(PART, "Pitch", 1, {editor_sensitivity = 0.125})
pac.GetSet(PART, "Radius", 1... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/items/item_cinder_block.lua | 1 | 1130 |
local ITEM = {};
ITEM.ID = 21;
ITEM.Reference = "item_cinder_block";
ITEM.Name = "Cinder Block";
ITEM.Description = "A small cinder block, ideal for making large, stable structures.";
ITEM.Weight = 10;
ITEM.Cost = 100;
ITEM.MaxStack = 100;
ITEM.InventoryModel = "models/props_j... | mit |
sjznxd/lc-20130127 | modules/niu/luasrc/model/cbi/niu/wireless/ap.lua | 51 | 1406 | local cursor = require "luci.model.uci".cursor()
if not cursor:get("wireless", "ap") then
cursor:section("wireless", "wifi-iface", "ap",
{device = "_", doth = "1", _niu = "1", mode = "ap"})
cursor:save("wireless")
end
local function deviceroute(self)
cursor:unload("wireless")
local d = cursor:get("wireless", "a... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Port_Windurst/npcs/Drozga.lua | 51 | 1440 | -----------------------------------
-- Area: Port Windurst
-- NPC: Drozga
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/Port_Windurst/TextIDs");
----... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/entities/entities/ent_light_manager_rear/cl_init.lua | 1 | 4003 |
include('shared.lua')
local matLight = Material( "sprites/light_ignorez" )
ENT.RenderGroup = RENDERGROUP_BOTH
function ENT:Draw ( )
self.lastDraw = CurTime() + 0.1
self:DrawTranslucent()
end
function ENT:Think ( )
if (!self.lastDraw || self.lastDraw < CurTime()) then
self:DrawTranslucent()
end
end
funct... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Castle_Oztroja/mobs/Tzee_Xicu_the_Manifest.lua | 6 | 1232 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: Tzee Xicu the Manifest
-----------------------------------
require("scripts/globals/titles");
require("scripts/zones/Castle_Oztroja/TextIDs");
-----------------------------------
-- onMobSpawn Action
-----------------------------------
... | gpl-3.0 |
elt11bot/seed-sup | plugins/wiki.lua | 4 | 1693 | require("./plugins/google")
function firstresult(results)
return results[1][2]
end
function wikiapilink(wikiurl)
local wikipattern="^http://en.wikipedia.org/wiki/(.*)$"
local matches = { string.match(wikiurl, wikipattern) }
local queryterm=matches[1]
local apilink = "http://en.wikipedia.org/w/index.php?acti... | gpl-2.0 |
jxchen01/NEW | temporal.lua | 1 | 6951 | require 'nn'
require 'rnn'
require 'ConvLSTM'
require 'optim'
require 'cutorch'
require 'cunn'
cmd = torch.CmdLine()
cmd:text()
cmd:text('Options:')
cmd:option('--dataDir', '/home/jchen16/NEW/data/temporal/encoder', 'the directory to load')
cmd:option('--ext','.t7','only load a specific type of files')
cmd:option('--r... | mit |
nmsmith22389/CandyUI | Libs/GeminiColor/GeminiColor.lua | 7 | 26057 | --================================================================================================
--
-- GeminiColor
--
-- An Apollo Package for producing UI controls for picking colors, picking colors,
-- and working with color data in multiple formats.
--
--===============================================... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Apollyon/mobs/Adamantshell.lua | 17 | 1260 | -----------------------------------
-- Area: Apollyon SE
-- NPC: Adamantshell
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
-----------------------... | gpl-3.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/pipeworks/item_transport.lua | 7 | 8695 | function pipeworks.tube_item(pos, item)
error("obsolete pipeworks.tube_item() called; change caller to use pipeworks.tube_inject_item() instead")
end
function pipeworks.tube_inject_item(pos, start_pos, velocity, item)
-- Take item in any format
local stack = ItemStack(item)
local obj = luaentity.add_entity(pos, "p... | unlicense |
icetoggle/lua-vararg | test/test.lua | 5 | 6412 | local _G = require "_G"
local assert = _G.assert
local pcall = _G.pcall
local print = _G.print
local select = _G.select
local type = _G.type
local math = require "math"
local ceil = math.ceil
local huge = math.huge
local min = math.min
local table = require "table"
local unpack = table.unpack or _G.unpack
local vara... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Tahrongi_Canyon/npcs/Telepoint.lua | 17 | 1649 | -----------------------------------
-- Area: Tahrongi Canyon
-- NPC: Telepoint
-- @pos 100.000 35.150 340.000 117
-----------------------------------
package.loaded["scripts/zones/Tahrongi_Canyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/... | gpl-3.0 |
fuckerbots/fucker | bot/utils.lua | 646 | 23489 | 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")()
JSON = (loadfile "./libs/... | gpl-2.0 |
msburgess3200/PERP | gamemodes/perp/entities/weapons/weapon_perp_copgun/shared.lua | 1 | 1312 |
if ( SERVER ) then
AddCSLuaFile( "shared.lua" )
SWEP.BackHolster = false;
end
if ( CLIENT ) then
SWEP.PrintName = "Service Pistol"
SWEP.Author = "Counter-Strike"
SWEP.Slot = 3
SWEP.SlotPos = 1
SWEP.IconLetter = "u"
end
SWEP.HoldType = "pistol";
SWEP.HoldTypeNorm = "normal";
SWEP.Ba... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/The_Eldieme_Necropolis/npcs/Brazier.lua | 6 | 3608 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Brazier
-- Involved in Quests: Save my Sister
-- @pos 101 -33 -59 195 (F-9)
-- @pos 259 -33 99 195 (H-7)
-- @pos 99 -33 98 195 (F-7)
-- @pos 259 -33 -58 195 (H-9)
-----------------------------------
package.loaded["scripts/zones/The_E... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/smoldering_salisbury_steak.lua | 36 | 1686 | -----------------------------------------
-- ID: 5924
-- Item: Smoldering Salisbury Steak
-- Food Effect: 180 Min, All Races
-----------------------------------------
-- HP +30
-- Strength +7
-- Intelligence -5
-- Attack % 20 Cap 160
-- Ranged Attack %20 Cap 160
-- Dragon Killer +5
-------------------------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/bowl_of_seafood_stew.lua | 35 | 1467 | -----------------------------------------
-- ID: 4561
-- Item: Bowl of Seafood Stew
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 20
-- Dexterity 1
-- Vitality 5
-- Defense % 25
-- Defense Cap 120
-----------------------------------------
require("scripts/globals/sta... | gpl-3.0 |
sjznxd/lc-20130127 | applications/luci-radvd/luasrc/model/cbi/radvd/interface.lua | 78 | 7996 | --[[
LuCI - Lua Configuration Interface
Copyright 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-2.0
$Id$
]]--
lo... | apache-2.0 |
sjznxd/lc-20130127 | modules/niu/luasrc/model/cbi/niu/network/ddns1.lua | 37 | 1993 | --[[
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 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/silken_squeeze.lua | 36 | 1215 | -----------------------------------------
-- ID: 5630
-- Item: Silken Squeeze
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP Recovered while healing +4
-- MP Recovered while healing +5
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/spells/absorb-chr.lua | 6 | 1258 | --------------------------------------
-- Spell: Absorb-CHR
-- Steals an enemy's Charism.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
------------... | gpl-3.0 |
sjznxd/luci-0.11-aa | contrib/luadoc/lua/luadoc/taglet/standard.lua | 93 | 16319 | -------------------------------------------------------------------------------
-- @release $Id: standard.lua,v 1.39 2007/12/21 17:50:48 tomas Exp $
-------------------------------------------------------------------------------
local assert, pairs, tostring, type = assert, pairs, tostring, type
local io = require "io... | apache-2.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/items/drug_meth_wet.lua | 1 | 1215 |
local ITEM = {};
ITEM.ID = 9;
ITEM.Reference = "drug_meth_wet";
ITEM.Name = "Meth (Wet)";
ITEM.Description = "This meth's all wet. You should probably dry it out somehow.\n\n(Place wet meth in item form next to a stove to dry. Let set until begins to boil.)";
ITEM.Weight = 5;
ITEM.Cost ... | mit |
Gael-de-Sailly/minetest-minetestforfun-server | mods/snow/src/basic_stairs_slabs.lua | 10 | 7650 | -- Based on
-- Minetest 0.4 mod: stairs
-- See README.txt for licensing and other information.
-- ADD CHECK FOR MOREBLOCKS/SKIP IF NOT FOUND CODE STUFF HERE
-- what of the recipeitem can be copied
local recipe_values = {
"description", "tiles", "groups", "sounds", "use_texture_alpha", "sunlight_propagates",
"free... | unlicense |
marcovr/T-Bot | libs/hook.lua | 1 | 1666 | hook = {} -- Table containing the hook library
--[[ Docs:
The hook library gives you several functions to easily manage and implement events. You can "hook" functions
to an event and whenever that event gets called, all the hooked functions will be executed.
hook.add(eventName, identifier, func)
Hooks the given func... | gpl-2.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/homedecor_modpack/homedecor/roofing.lua | 7 | 8359 | local S = homedecor.gettext
minetest.register_node("homedecor:skylight", {
description = S("Glass Skylight"),
drawtype = "raillike",
tiles = { "default_glass.png" },
wield_image = "default_glass.png",
inventory_image = "homedecor_skylight_inv.png",
groups = { snappy = 3 },
paramtype = "light",
sounds = default... | unlicense |
Gael-de-Sailly/minetest-minetestforfun-server | mods/runes/glyphs.lua | 5 | 13009 | -- A stylus to inscribe glyphs
-- Part of a Rune Mod Redo
-- By Mg, 2016
-- License : WTFPL
--
runes.glyphs = {}
minetest.register_tool("runes:stylus", {
description = "Stylus",
inventory_image = "runes_stylus.png",
on_use = function(itemstack, user, pointed_thing)
if not user or pointed_thing.type ~= "node" the... | unlicense |
FFXIOrgins/FFXIOrgins | scripts/zones/Kuftal_Tunnel/npcs/qm1.lua | 9 | 1116 | -----------------------------------
-- Area: Kuftal Tunnel
-- NPC: ??? (qm1)
-- Note: Used to spawn Phantom Worm
-- @pos 75.943 29.916 118.854 174
-----------------------------------
package.loaded["scripts/zones/Kuftal_Tunnel/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Kuftal... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Apollyon/mobs/Thunder_Elemental.lua | 119 | 2423 | -----------------------------------
-- Area: Apollyon SW
-- NPC: elemental
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
--------------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Apollyon/mobs/Ice_Elemental.lua | 119 | 2423 | -----------------------------------
-- Area: Apollyon SW
-- NPC: elemental
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
--------------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Al_Zahbi/npcs/Shihu-Danhu.lua | 19 | 2097 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Shihu-Danhu
-- Warp NPC
-- @pos 62.768 -1.98 -51.299 48
-----------------------------------
require("scripts/globals/besieged");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Dangruf_Wadi/npcs/qm4.lua | 17 | 1900 | -----------------------------------
-- NPC: ??? (QM4)
-- Type: Grasswix dice roll game part 2
-- @zone: 191
-- Involved in quest "As Thick As Thieves"
-----------------------------------
package.loaded["scripts/zones/Dangruf_Wadi/TextIDs"] = nil;
-----------------------------------
require("scripts/global... | gpl-3.0 |
m2mselect/owrt | feeds/luci/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_l2tp.lua | 17 | 1665 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local server, username, password
local ipv6, defaultroute, metric, peerdns, dns, mtu
server = section:taboption("general", Value, "server", translate("L2TP Server"))
server.datat... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Phomiuna_Aqueducts/npcs/qm10.lua | 34 | 1039 | -----------------------------------
-- Area: Phomiuna Aqueducts
-- NPC: qm10 (???)
-- Notes: Opens south door @ J-7
-- @pos 113.474 -26.000 91.610 27
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,... | gpl-3.0 |
moj69/m | plugins/flood.lua | 281 | 2422 | local NUM_MSG_MAX = 5 -- Max number of messages per TIME_CHECK seconds
local TIME_CHECK = 5
local function kick_user(user_id, chat_id)
local chat = 'chat#id'..chat_id
local user = 'user#id'..user_id
chat_del_user(chat, user, function (data, success, result)
if success ~= 1 then
local text = 'I can\'t k... | agpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Al_Zahbi/npcs/Rughadjeen.lua | 38 | 1030 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Rughadjeen
-- Type: Skyserpent General
-- @zone: 48
-- @pos -74.150 -7 70.656
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-------------------... | gpl-3.0 |
jxchen01/NEW | encoder_matlab.lua | 1 | 3491 | require 'nn'
require 'nngraph'
require 'optim'
require 'cutorch'
require 'cunn'
require 'image'
require 'cudnn'
matio=require 'matio'
cmd = torch.CmdLine()
cmd:text()
cmd:text('Options:')
cmd:option('--modelPath','/home/jchen16/NEW/code/checkpoint/fungus_XX_20_seq_whole/unet_420000.000000.bin','path to the trained mo... | mit |
zaeem998/vtbot | plugins/me.lua | 2 | 1654 | -- Begin myinfo.lua
local function run(msg, matches)
if matches[1]:lower() == 'معلوماتي' then
function get_id(arg, data)
local username
if data.first_name_ then
if data.username_ then
username = '@'..data.username_
else
username = '<i>No Username!</i>'
end
local telNum
if data.pho... | gpl-3.0 |
MAXtgBOT/Telemax-TG | plugins/admin.lua | 1 | 7026 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(rec... | gpl-2.0 |
sjznxd/lc-20130127 | applications/luci-statistics/luasrc/statistics/rrdtool/definitions/disk.lua | 86 | 1449 | --[[
Luci statistics - df plugin diagram definition
(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.... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/spells/sneak.lua | 6 | 1175 | -----------------------------------------
-- Spell: Sneak
-- Lessens chance of being detected by sound
-- Duration is random number between 30 seconds and 5 minutes
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
------------------------------... | gpl-3.0 |
peval/Atlas | lib/ro-balance.lua | 40 | 6646 | --[[ $%BEGINLICENSE%$
Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
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; version 2 of the
License.
This program is dis... | gpl-2.0 |
wilbefast/you-ordered-a-pizza | src/gameobjects/Prop.lua | 1 | 2382 | --[[
(C) Copyright 2014 William Dyce
All rights reserved. This program and the accompanying materials
are made available under the terms of the GNU Lesser General Public License
(LGPL) version 2.1 which accompanies this distribution, and is available at
http://www.gnu.org/licenses/lgpl-2.1.html
This library is distri... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.