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 |
|---|---|---|---|---|---|
AresTao/darkstar | scripts/zones/Windurst_Walls/npcs/Raamimi.lua | 17 | 3005 | -----------------------------------
-- Area: Windurst Walls
-- Location: X:-81 Y:-9 Z:103
-- NPC: Raamimi
-- Working 100%
-- Involved in Quest: To Bee or Not to Bee?
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
----------------------------... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Beaucedine_Glacier_[S]/npcs/Gray_Colossus_LC.lua | 38 | 1071 | -----------------------------------
-- Area: Beaucedine Glacier (S)
-- NPC: Gray Colossus, L.C.
-- Type: Campaign Arbiter
-- @zone: 136
-- @pos 76.178 -60.763 -48.775
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier... | gpl-3.0 |
AresTao/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 |
AresTao/darkstar | scripts/zones/Jugner_Forest_[S]/npcs/Gate_Sentry.lua | 38 | 1028 | -----------------------------------
-- Area: Jugner Forest (S)
-- NPC: Gate Sentry
-- Type: Standard NPC
-- @pos -265.235 -2.399 405.246 82
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Jugner_Forest_... | gpl-3.0 |
alireza1998/DANGEROUS | 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 |
mirbitbit/teleseed | 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 |
small-Wood/FlappyBird | runtime/linux/Resources/src/GameScene.lua | 3 | 1074 | -- game scene
require("GameLayer")
require("StatusLayer")
local function backgroundLayer()
local bgLayer = cc.Layer:create()
local time = os.date("*t", os.time())
local background = nil
if time.hour >= 6 and time.hour <= 17 then
background = cc.Sprite:createWithSpriteFrame(AtlasLoader:getInstance():getSpriteFram... | gpl-2.0 |
small-Wood/FlappyBird | frameworks/runtime-src/proj.android/assets/src/GameScene.lua | 3 | 1074 | -- game scene
require("GameLayer")
require("StatusLayer")
local function backgroundLayer()
local bgLayer = cc.Layer:create()
local time = os.date("*t", os.time())
local background = nil
if time.hour >= 6 and time.hour <= 17 then
background = cc.Sprite:createWithSpriteFrame(AtlasLoader:getInstance():getSpriteFram... | gpl-2.0 |
AresTao/darkstar | scripts/globals/items/slice_of_tavnazian_ram_meat.lua | 18 | 1335 | -----------------------------------------
-- ID: 5208
-- Item: slice_of_tavnazian_ram_meat
-- Food Effect: 5Min, Galka only
-----------------------------------------
-- Strength 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
---------------------------------------... | gpl-3.0 |
DeinFreund/Zero-K | units/striderarty.lua | 5 | 4121 | unitDef = {
unitname = [[striderarty]],
name = [[Merlin]],
description = [[Heavy Saturation Artillery Strider]],
acceleration = 0.1092,
brakeRate = 0.1942,
buildCostMetal = 3500,
builder = false,
buildPic ... | gpl-2.0 |
AresTao/darkstar | scripts/zones/Sea_Serpent_Grotto/npcs/qm2.lua | 17 | 1468 | -----------------------------------
-- Area: Sea Serpent Grotto
-- NPC: ??? Used for Norg quest "The Sahagin's Stash"
-- @zone 176
-- @pos 295.276 27.129 213.043
-----------------------------------
package.loaded["scripts/zones/Sea_Serpent_Grotto/TextIDs"] = nil;
-----------------------------------
require("... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Metalworks/npcs/HomePoint#2.lua | 19 | 1185 | -----------------------------------
-- Area: Metalworks
-- NPC: HomePoint#2
-- @pos: -78 2 2 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Metalworks/TextIDs");
require("scripts/globals/homepoint");
----... | gpl-3.0 |
AresTao/darkstar | scripts/globals/items/anchovy.lua | 35 | 1197 | -----------------------------------------
-- ID: 5652
-- Item: Anchovy
-- Food Effect: 3Min, All Races
-----------------------------------------
-- Dexterity +1
-- Mind -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
... | gpl-3.0 |
DeinFreund/Zero-K | LuaRules/Gadgets/unit_AA_overkill_control.lua | 5 | 5818 | local versionNumber = "v0.1"
function gadget:GetInfo()
return {
name = "AA overkill control",
desc = versionNumber .. " Managed Allowed Weapon Target for Defender, Hacksaw, Chainsaw and Artemis to prevent overkill",
author = "Jseah",
date = "03/05/13",
license = "GNU GPL, v2 o... | gpl-2.0 |
AresTao/darkstar | scripts/zones/Dynamis-Tavnazia/mobs/Nightmare_Makara.lua | 13 | 1506 | -----------------------------------
-- Area: Dynamis Tavnazia
-- NPC: Nightmare_Makara
-----------------------------------
package.loaded["scripts/zones/Dynamis-Tavnazia/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Tavnazia/TextIDs");... | gpl-3.0 |
matthewbauer/wesnoth | data/lua/location_set.lua | 28 | 3736 | local location_set = {}
local function index(x, y)
-- the 2000 bias ensure that the correct x is recovered for negative y
return x * 16384 + y + 2000
end
local invscale = 1 / 16384
local function revindex(p)
local x = math.floor(p * invscale)
return x, p - x * 16384 - 2000
end
local methods = {}
local locset_met... | gpl-2.0 |
prosody-modules/import | mod_http_index/mod_http_index.lua | 31 | 3606 | local st = require "util.stanza";
local url = require"socket.url";
module:depends"http";
-- local dump = require"util.serialization".new"dump".serialize;
local function template(data)
--[[ DOC
Like util.template, but deals with plain text
Returns a closure that is called with a table of values
{name} is substitu... | mit |
NeoRaider/luci | applications/luci-app-multiwan/luasrc/controller/multiwan.lua | 62 | 1929 | module("luci.controller.multiwan", package.seeall)
function index()
local fs = require "nixio.fs"
if not fs.access("/etc/config/multiwan") then
return
end
local page
page = entry({"admin", "network", "multiwan"}, cbi("multiwan/multiwan"), _("Multi-WAN"))
page.dependent = true
entry({"admin", "network", "m... | apache-2.0 |
AresTao/darkstar | scripts/zones/The_Garden_of_RuHmet/mobs/Jailer_of_Fortitude.lua | 17 | 2477 | -----------------------------------
-- Area: The Garden of Ru'Hmet
-- NPC: Jailer_of_Fortitude
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob... | gpl-3.0 |
AresTao/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 |
soroushwilson/soroush | plugins/gps.lua | 14 | 4662 | local function run(msg, matches)
local lat = matches[2]
local lon = matches[3]
local receiver = get_receiver(msg)
if matches[1] == "loc" then
send_location(receiver, lat, lon, ok_cb, false)
elseif matches[1] == "map" then
local zooms = {10, 16}
local urls = {}
for i = 1, #zooms do
local zoom = zooms[i]
... | gpl-2.0 |
AresTao/darkstar | scripts/globals/mobskills/Spike_Flail.lua | 18 | 1248 | ---------------------------------------------------
-- Spike Flail
-- Deals extreme damage in a threefold attack to targets behind the user.
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
-... | gpl-3.0 |
roboxt/fik | plugins/ingroup.lua | 371 | 44212 | 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 |
jsoberg/ESU_OpenRA | lua/scriptwrapper.lua | 56 | 1094 | environment = {}
-- Reset package path
package.path = GameDir .. "/lua/?.lua"
-- Note: sandbox has been customized to remove math.random
local sandbox = require('sandbox')
local stp = require('stacktraceplus')
local PrintStackTrace = function(msg)
return stp.stacktrace("", 2) .. "\nError message\n===============\n"... | gpl-3.0 |
AresTao/darkstar | scripts/globals/spells/impact.lua | 25 | 3681 | -----------------------------------------
-- Spell: Impact
-- Deals dark damage to an enemy and
-- decreases all 7 base stats by 20%
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
-----------------------------------------
-- onMagicCastingCheck... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Inner_Horutoto_Ruins/npcs/_5cg.lua | 34 | 1075 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: _5cg (Gate of Fire)
-- @pos -332 0 99 192
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Inner_Horutoto_Ruins/TextIDs")... | gpl-3.0 |
AresTao/darkstar | scripts/globals/mobskills/Osmosis.lua | 13 | 1247 | ---------------------------------------------
-- Osmosis
--
-- Description: Steals an enemy's HP and one beneficial status effect. Ineffective against undead.
-- Type: Magical
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scri... | gpl-3.0 |
AresTao/darkstar | scripts/globals/items/dish_of_hydra_kofte_+1.lua | 21 | 1945 | -----------------------------------------
-- ID: 5603
-- Item: dish_of_hydra_kofte_+1
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Strength 7
-- Intelligence -3
-- Attack % 21
-- Attack Cap 160
-- Defense % 25
-- Defense Cap 75
-- Ranged ATT % 21
-- Ranged ATT Cap 160
-- P... | gpl-3.0 |
ArduPilot/ardupilot | libraries/AP_Scripting/examples/RCIN_test.lua | 21 | 1255 | -- example of getting RC input
local scripting_rc_1 = rc:find_channel_for_option(300)
local scripting_rc_2 = rc:find_channel_for_option(301)
local flip_flop = 0
function update()
pwm1 = rc:get_pwm(1)
pwm2 = rc:get_pwm(2)
pwm3 = rc:get_pwm(3)
pwm4 = rc:get_pwm(4)
gcs:send_text(0, "RCIN 1:" .. tostring(pwm1) ... | gpl-3.0 |
AresTao/darkstar | scripts/globals/abilities/call_beast.lua | 18 | 1073 | -----------------------------------
-- Ability: Call Beast
-- Calls a beast to fight by your side.
-- Obtained: Beastmaster Level 23
-- Recast Time: 5:00
-- Duration: Dependent on jug pet used.
-----------------------------------
require("scripts/globals/common");
require("scripts/globals/status");
---------... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Beadeaux/Zone.lua | 16 | 3478 | -----------------------------------
--
-- Zone: Beadeaux (147)
--
-----------------------------------
package.loaded["scripts/zones/Beadeaux/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/missions");
require("scripts/globals/quests");
require... | gpl-3.0 |
AresTao/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 |
AresTao/darkstar | scripts/zones/La_Theine_Plateau/npcs/Shattered_Telepoint.lua | 19 | 2214 | -----------------------------------
-- Area: La_Theine Plateau
-- NPC: Shattered Telepoint
-- @pos 334 19 -60 102
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/La_Thei... | gpl-3.0 |
ld-test/prosody | plugins/adhoc/mod_adhoc.lua | 1 | 3943 | -- Copyright (C) 2009 Thilo Cestonaro
-- Copyright (C) 2009-2011 Florian Zeitz
--
-- This file is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local st = require "util.stanza";
local keys = require "util.iterators".keys;
local array_collect = require "util.array".coll... | mit |
trishume/hammerspoon | extensions/eventtap/init.lua | 1 | 5064 | --- === hs.eventtap ===
---
--- Tap into input events (mouse, keyboard, trackpad) for observation and possibly overriding them
--- It also provides convenience wrappers for sending mouse and keyboard events. If you need to construct finely controlled mouse/keyboard events, see hs.eventtap.event
---
--- This module is b... | mit |
AresTao/darkstar | scripts/globals/items/apple_pie_+1.lua | 35 | 1305 | -----------------------------------------
-- ID: 4320
-- Item: Apple Pie +1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Magic 30
-- Intelligence 4
-- Magic Regen While Healing 2
-----------------------------------------
require("scripts/globals/status");
-----------------... | gpl-3.0 |
AresTao/darkstar | scripts/globals/mobskills/Dominion_Slash.lua | 18 | 1571 | ---------------------------------------------
-- Domionion Slash
--
-- Description: Performs an area of effect slashing weaponskill. Additional effect: Silence
-- Type: Physical
-- 2-3 Shadows
-- Range: Unknown radial
-- One source also mentions that it "can dispel important buffs."
------------------------------... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Mearuru.lua | 38 | 1044 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Mearuru
-- Type: Standard NPC
-- @zone: 94
-- @pos 153.798 -1 153.712
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-----... | gpl-3.0 |
balabit/zorp-openwrt-feed | 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 |
AresTao/darkstar | scripts/zones/Port_San_dOria/npcs/Vendavoq.lua | 36 | 1867 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Vendavoq
-- Only sells when San d'Oria controls Movalpolos
-- Working 100%
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop")... | gpl-3.0 |
DeinFreund/Zero-K | effects/gundam_crawlexplode.lua | 50 | 8555 | -- small_nuke_explosion_fx
return {
["small_nuke_explosion_fx"] = {
usedefaultexplosions = false,
g_blast = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties... | gpl-2.0 |
Starkkz/cs2dftp | server.lua | 1 | 21916 | package.path = package.path..";./sys/lua/cs2dftp/?.lua"
if not jit then
local BinaryFormat = package.cpath:match("%p[\\|/]?%p(%a+)")
if BinaryFormat == "dll" then
os.name = "Windows"
elseif BinaryFormat == "so" then
os.name = "Linux"
elseif BinaryFormat == "dylib" then
os.name = "MacOS"
end
if os.name == "... | bsd-2-clause |
AresTao/darkstar | scripts/zones/King_Ranperres_Tomb/Zone.lua | 27 | 2230 | -----------------------------------
--
-- Zone: King_Ranperres_Tomb (190)
--
-----------------------------------
package.loaded["scripts/zones/King_Ranperres_Tomb/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/... | gpl-3.0 |
DeinFreund/Zero-K | scripts/cloakraid.lua | 15 | 3943 |
include "constants.lua"
-- pieces
local head = piece "head"
local hips = piece "hips"
local chest = piece "chest"
-- left arm
local lshoulder = piece "lshoulder"
local lforearm = piece "lforearm"
local gun = piece "gun"
local magazine = piece "magazine"
local flare = piece "flare"
local ejector = piece "ejector"
--... | gpl-2.0 |
qwook/spacesloth | assets/maps/intro.lua | 2 | 239252 | return {
version = "1.1",
luaversion = "5.1",
orientation = "orthogonal",
width = 100,
height = 100,
tilewidth = 32,
tileheight = 32,
properties = {},
tilesets = {
{
name = "tilemap2",
firstgid = 1,
tilewidth = 32,
tileheight = 32,
spacing = 0,
margin = 0,
... | mit |
DeinFreund/Zero-K | lups/ParticleClasses/NanoLasers.lua | 1 | 10980 | -- $Id: NanoLasers.lua 3357 2008-12-05 11:08:54Z jk $
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
local NanoLasers = {}
NanoLasers.__in... | gpl-2.0 |
qwook/spacesloth | assets/maps/skijump.lua | 2 | 227193 | return {
version = "1.1",
luaversion = "5.1",
orientation = "orthogonal",
width = 100,
height = 100,
tilewidth = 32,
tileheight = 32,
properties = {},
tilesets = {
{
name = "collision",
firstgid = 1,
tilewidth = 32,
tileheight = 32,
spacing = 0,
margin = 0,
... | mit |
u20024804/fbcunn | test/test_LookupTableGPU.lua | 9 | 6640 | -- Copyright 2004-present Facebook. All Rights Reserved.
require 'cunn'
require 'fb.luaunit'
require 'fbtorch'
require 'fbcunn'
local tester = torch.Tester()
local kTolerance = 1e-4
local LookupTableTest = {}
local function nonBatchTest(elements, nInput, nOutput, features_in_dim_2)
local cpu_emb = nn.LookupTabl... | bsd-3-clause |
AresTao/darkstar | scripts/zones/Selbina/npcs/Graegham.lua | 17 | 1183 | -----------------------------------
-- Area: Selbina
-- NPC: Graegham
-- Guild Merchant NPC: Fishing Guild
-- @pos -12.423 -7.287 8.665 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
req... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Lower_Jeuno/npcs/Derrick.lua | 17 | 4341 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Derrick
-- Involved in Quests and finish : Save the Clock Tower
-- @zone 245
-- @pos -32 -1 -7
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
package.loaded["scripts/globals/settings"] = nil;
-----... | gpl-3.0 |
AresTao/darkstar | scripts/globals/weaponskills/seraph_strike.lua | 30 | 1314 | -----------------------------------
-- Seraph Strike
-- Club weapon skill
-- Skill level: 40
-- Deals light elemental damage to enemy. Damage varies with TP.
-- Aligned with the Thunder Gorget.
-- Aligned with the Thunder Belt.
-- Element: None
-- Modifiers: STR:40% ; MND:40%
-- 100%TP 200%TP 300%TP
-- ... | gpl-3.0 |
bbalu/kong | spec/unit/statics_spec.lua | 6 | 6294 | local spec_helper = require "spec.spec_helpers"
local constants = require "kong.constants"
local stringy = require "stringy"
local IO = require "kong.tools.io"
local fs = require "luarocks.fs"
describe("Static files", function()
describe("Constants", function()
it("version set in constants should match the one... | mit |
ivanceras/iup-mirror | html/examples/Lua/zbox.lua | 4 | 1191 | -- IupZbox Example in IupLua
-- An application of a zbox could be a program requesting several entries from the user according to a previous selection. In this example, a list of possible layouts ,each one consisting of an element, is presented, and according to the selected option the dialog below the list is changed... | mit |
AresTao/darkstar | scripts/zones/Sauromugue_Champaign/npcs/Cavernous_Maw.lua | 16 | 2985 | -----------------------------------
-- Area: Sauromugue Champaign
-- NPC: Cavernous Maw
-- Teleports Players to Sauromugue_Champaign_S
-- @pos 369 8 -227 120
-----------------------------------
package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil;
-----------------------------------
require("sc... | gpl-3.0 |
AresTao/darkstar | scripts/globals/items/whale_staff_+1.lua | 41 | 1079 | -----------------------------------------
-- ID: 17534
-- Item: Whale Staff +1
-- Additional Effect: Water Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
----------------------------... | gpl-3.0 |
AresTao/darkstar | scripts/globals/items/slice_of_coeurl_meat.lua | 18 | 1348 | -----------------------------------------
-- ID: 4377
-- Item: slice_of_coeurl_meat
-- Food Effect: 5Min, Galka only
-----------------------------------------
-- Strength 5
-- Intelligence -7
-----------------------------------------
require("scripts/globals/status");
--------------------------------------... | gpl-3.0 |
DeinFreund/Zero-K | LuaUI/Widgets/gui_group_recall_fix.lua | 7 | 2961 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Default Group Recall Fix",
desc = "Fix to the group recall problem.",
author = "msafwan... | gpl-2.0 |
TheGoctor/sr5-wundertool-lua | rolls.lua | 1 | 1716 | --------------------------------------------------------------------------------
-- Functions for performing dice rolls in Shadowrun 5th Edition.
-- @author Mac Reichelt
-- @copyright Copyright (c) 2015 Mac Reichelt
--------------------------------------------------------------------------------
-- Seed random by the ... | gpl-3.0 |
DeinFreund/Zero-K | units/amphbomb.lua | 4 | 3330 | unitDef = {
unitname = [[amphbomb]],
name = [[Limpet]],
description = [[Amphibious Slow Bomb]],
acceleration = 0.15,
activateWhenBuilt = true,
brakeRate = 0.2,
buildCostMetal = 180,
buildPic = [[AMPHBOMB.png]],
... | gpl-2.0 |
chanko08/Ludum-Dare-33 | lib/bump.lua | 15 | 21321 | local bump = {
_VERSION = 'bump v3.1.5',
_URL = 'https://github.com/kikito/bump.lua',
_DESCRIPTION = 'A collision detection library for Lua',
_LICENSE = [[
MIT LICENSE
Copyright (c) 2014 Enrique García Cota
Permission is hereby granted, free of charge, to any person obtaining a
... | mit |
mortezam1234/kkdfjkfl- | bot/utils.lua | 239 | 13499 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
http.TIMEOUT = 10
funct... | gpl-2.0 |
DeinFreund/Zero-K | units/grebe.lua | 5 | 4806 | unitDef = {
unitname = [[grebe]],
name = [[Grebe]],
description = [[Amphibious Raider Bot]],
acceleration = 0.2,
activateWhenBuilt = true,
brakeRate = 0.4,
buildCostMetal = 300,
buildPic = [[grebe.png]],
canGu... | gpl-2.0 |
DeinFreund/Zero-K | effects/teleport.lua | 17 | 1837 | return {
["teleport_huge"] = {
cloud = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
underwater = true,
properties = {
airdrag = .9,
... | gpl-2.0 |
AresTao/darkstar | scripts/zones/Southern_San_dOria/npcs/Emoussine.lua | 28 | 2491 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Emoussine
-- Type: Chocobo Renter
-- @pos -11 1 -100
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/chocobo");
require(... | gpl-3.0 |
DeinFreund/Zero-K | LuaUI/Configs/decoration_handler_defs.lua | 12 | 8036 | -- only level 1 is needed, rest can be autogenerated
local commtypeTable = {
["1"] = { -- armcom
["0"] = { -- level
back = {
{
piece = "torso",
height = 10,
width = 10,
rotation = 180,
rotVector = {0,1,0},
offset = {0, 0, -13},
alpha = 0.6,
},
},
chest = {
{
... | gpl-2.0 |
Milkyway-at-home/milkywayathome_client | nbody/tests/orphan_models/GPU_Models/model_6.lua | 1 | 1906 | arg = {...}
seed = 34086709
nbody = arg[1]
prng = DSFMT.create(seed)
dwarfMass = 16
dwarfRadius = 0.2
function makePotential()
return Potential.create{
spherical = Spherical.plummer{ mass = 1.52954402E5, scale = 0.7 },
disk = Disk.miyamotoNagai{ mass = 4.45865888E5, scaleLength = 6.5, scaleHeigh... | gpl-3.0 |
DeinFreund/Zero-K | effects/gundam_vert_explosion.lua | 26 | 3091 | -- vert_explosion
return {
["vert_explosion"] = {
groundflash = {
air = true,
alwaysvisible = true,
circlealpha = 0.9,
circlegrowth = 25,
flashalpha = 0.9,
flashsize = 500,
ground = true,
ttl ... | gpl-2.0 |
AresTao/darkstar | scripts/zones/Bastok_Mines/npcs/Davyad.lua | 17 | 1205 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Davyad
-- Involved in Mission: Bastok 3-2
-- @zone 234
-- @pos 83 0 30
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
re... | gpl-3.0 |
Sygmei/ObEngine | engine/Lib/Toolkit/Functions/package.lua | 5 | 4096 | local Color = require("Lib/StdLib/ConsoleColor");
local Route = require("Lib/Toolkit/Route");
local Style = require("Lib/Toolkit/Stylesheet");
local Package = obe.Package;
local Functions = {};
function getPackageList()
local parser = Vili.ViliParser.new();
parser:parseFile("Package/Packages.vili");
local... | mit |
rainwoodman/fastPM | tests/restart.lua | 1 | 1236 | -- parameter file
------ Size of the simulation --------
-- For Testing
nc = 128
boxsize = 384.0
-------- Time Sequence ----
-- linspace: Uniform time steps in a
-- time_step = linspace(0.025, 1.0, 39)
-- logspace: Uniform time steps in loga
-- time_step = linspace(0.01, 1.0, 10)
time_step = {0.1, 0.5, 0.75, 1.0}
a... | gpl-3.0 |
thess/OpenWrt-luci | modules/luci-mod-admin-mini/luasrc/model/cbi/mini/luci.lua | 76 | 1122 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require "luci.config"
local fs = require "nixio.fs"
m = Map("luci", translate("Web <abbr title=\"User Interface\">UI</abbr>"), translate("Here you can customi... | apache-2.0 |
NeoRaider/luci | modules/luci-mod-admin-mini/luasrc/model/cbi/mini/luci.lua | 76 | 1122 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require "luci.config"
local fs = require "nixio.fs"
m = Map("luci", translate("Web <abbr title=\"User Interface\">UI</abbr>"), translate("Here you can customi... | apache-2.0 |
alijoooon/GoOoZ | plugins/owners.lua | 94 | 12617 |
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 |
AresTao/darkstar | scripts/zones/Port_San_dOria/npcs/_6g7.lua | 17 | 1145 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Door: Arrivals Entrance
-- @zone 232
-- @pos -24 -8 15
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scri... | gpl-3.0 |
Jmainguy/docker_images | prosody/prosody/lib/prosody/modules/mod_iq.lua | 4 | 2388 | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local st = require "util.stanza";
local full_sessions = prosody.full_sessions;
if module:get_host_type... | gpl-2.0 |
thess/OpenWrt-luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/olsrd.lua | 43 | 1470 | -- Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("OLSRd Plugin Configuration"),
translate("The OLSRd plugin reads information about meshed networks from the txtinfo plugin of OLSRd."))
s = m:section(NamedSection,... | apache-2.0 |
NeoRaider/luci | modules/luci-base/luasrc/controller/admin/servicectl.lua | 28 | 1167 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.admin.servicectl", package.seeall)
function index()
entry({"servicectl"}, alias("servicectl", "status")).sysauth = "root"
entry({"servicectl", "status"}, call("action_status")).leaf = ... | apache-2.0 |
thess/OpenWrt-luci | applications/luci-app-ocserv/luasrc/model/cbi/ocserv/user-config.lua | 79 | 4831 | -- Copyright 2014 Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local has_ipv6 = fs.access("/proc/net/ipv6_route")
m = Map("ocserv", translate("OpenConnect VPN"))
s = m:section(TypedSection, "ocserv", "OpenConnect")
s.ano... | apache-2.0 |
AresTao/darkstar | scripts/globals/weaponskills/hard_slash.lua | 25 | 1564 | -----------------------------------
-- Hard Slash
-- Great Sword weapon skill
-- Skill level: 5
-- Delivers a single-hit attack. Damage varies with TP.
-- Modifiers: STR:30%
-- 100%TP 200%TP 300%TP
-- 1.5 1.75 2.0
-----------------------------------
require("scripts/globals/settings");
require("scripts/g... | gpl-3.0 |
bbalu/kong | kong/plugins/keyauth/access.lua | 9 | 5404 | local cache = require "kong.tools.database_cache"
local stringy = require "stringy"
local Multipart = require "multipart"
local responses = require "kong.tools.responses"
local constants = require "kong.constants"
local CONTENT_TYPE = "content-type"
local CONTENT_LENGTH = "content-length"
local FORM_URLENCODED = "appl... | mit |
prosody-modules/import | mod_mam_sql/mod_mam_sql.lua | 32 | 13096 | -- XEP-0313: Message Archive Management for Prosody
-- Copyright (C) 2011-2012 Kim Alvefur
--
-- This file is MIT/X11 licensed.
local xmlns_mam = "urn:xmpp:mam:tmp";
local xmlns_delay = "urn:xmpp:delay";
local xmlns_forward = "urn:xmpp:forward:0";
local st = require "util.stanza";
local rsm = module:require "mo... | mit |
sipefree/guildpanel | Libs/AceComm-3.0/ChatThrottleLib.lua | 1 | 13366 | --
-- ChatThrottleLib by Mikk
--
-- Manages AddOn chat output to keep player from getting kicked off.
--
-- ChatThrottleLib.SendChatMessage/.SendAddonMessage functions that accept
-- a Priority ("BULK", "NORMAL", "ALERT") as well as prefix for SendChatMessage.
--
-- Priorities get an equal share of available b... | gpl-3.0 |
AresTao/darkstar | scripts/globals/weaponskills/vidohunir.lua | 18 | 4742 | -----------------------------------
-- Vidohunir
-- Staff weapon skill
-- Skill Level: N/A
-- Lowers target's magic defense. Duration of effect varies with TP. Laevateinn: Aftermath effect varies with TP.
-- Reduces enemy's magic defense by 10%.
-- Available only after completing the Unlocking a Myth (Black Mage)... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Mhaura/npcs/Lacia.lua | 17 | 3143 | -----------------------------------
-- Area: Mhaura
-- NPC: Lacia
-- Starts Quest: Trial Size Trial By Lightning
-- The "TrialSizeLightning_date" still needs to be set at the BCNM/Mob level to reflect defeat by the Avatar
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Knuckles.lua | 16 | 1489 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Animated Knuckles
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
func... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Chateau_dOraguille/npcs/_6h4.lua | 17 | 3614 | -----------------------------------
-- Area: Chateau d'Oraguille
-- Door: Great Hall
-- Involved in Missions: 3-3, 5-2, 6-1, 8-2, 9-1
-- @pos 0 -1 13 233
-----------------------------------
package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil;
package.loaded["scripts/globals/missions"] = nil;
------... | gpl-3.0 |
wizardbottttt/X | plugins/google.lua | 722 | 1037 | local function googlethat(query)
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&"
local parameters = "q=".. (URL.escape(query) or "")
-- Do the request
local res, code = https.request(api..parameters)
if code ~=200 then return nil end
local data = json:decode(res)
local r... | gpl-2.0 |
DeinFreund/Zero-K | LuaRules/Gadgets/hax_mantis_5480.lua | 5 | 1263 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
AresTao/darkstar | scripts/globals/weaponskills/dancing_edge.lua | 30 | 1413 | -----------------------------------
-- Dancing Edge
-- Dagger weapon skill
-- Skill level: 200
-- Delivers a fivefold attack. params.accuracy varies with TP.
-- Will stack with Sneak Attack.
-- Will stack with Trick Attack.
-- Aligned with the Breeze Gorget & Soil Gorget.
-- Aligned with the Breeze Belt & Soil ... | gpl-3.0 |
NREL/api-umbrella | src/api-umbrella/proxy/models/file_config.lua | 2 | 2690 | local lyaml = require "lyaml"
local nillify_yaml_nulls = require "api-umbrella.utils.nillify_yaml_nulls"
local utils = require "api-umbrella.proxy.utils"
local append_array = utils.append_array
local cache_computed_settings = utils.cache_computed_settings
local log = ngx.log
local ERR = ngx.ERR
local function read_fi... | mit |
AresTao/darkstar | scripts/zones/Alzadaal_Undersea_Ruins/npcs/qm3.lua | 16 | 1199 | -----------------------------------
-- Area: Alzadaal Undersea Ruins
-- NPC: ??? (Spawn Armed Gears(ZNM T3))
-- @pos -42 -4 -169 72
-----------------------------------
package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Alzadaal_Undersea_Ru... | gpl-3.0 |
Jmainguy/docker_images | prosody/prosody/lib/luarocks/rocks/luasec/0.5-2/samples/chain/server.lua | 9 | 1216 | --
-- Public domain
--
local socket = require("socket")
local ssl = require("ssl")
local util = require("util")
local params = {
mode = "server",
protocol = "tlsv1",
key = "../certs/serverAkey.pem",
certificate = "../certs/serverA.pem",
cafile = "../certs/rootA.pem",
verify = {"peer", "fail_if_n... | gpl-2.0 |
AresTao/darkstar | scripts/zones/Southern_San_dOria/npcs/Trail_Markings.lua | 17 | 2780 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Trail Markings
-- Dynamis-San d'Oria Enter
-- @pos 139 -2 122 230
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/setting... | gpl-3.0 |
AresTao/darkstar | scripts/globals/items/pogaca.lua | 35 | 1247 | -----------------------------------------
-- ID: 5637
-- Item: pogaca
-- Food Effect: 5Min, All Races
-----------------------------------------
-- HP Recovered While Healing 4
-- MP Recovered While Healing 4
-----------------------------------------
require("scripts/globals/status");
----------------------... | gpl-3.0 |
DeinFreund/Zero-K | LuaUI/Widgets/gui_chili_economy_panel2.lua | 1 | 47466 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Chili Economy Panel Default",
desc = "",
author = "jK, Shadowfury333, GoogleFrog",
... | gpl-2.0 |
AresTao/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/qm7.lua | 57 | 2181 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: qm7 (??? - Ancient Papyrus Shreds)
-- Involved in Quest: In Defiant Challenge
-- @pos 105.275 -32 92.551 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
----------------------------... | gpl-3.0 |
markandgo/LOVEly-tiles | ext/serialize.lua | 3 | 3951 | --[[
**Modified for LOVE**
Save Table to File
Load Table from File
v 1.0
Lua 5.2 compatible
Only Saves Tables, Numbers, Strings, and Booleans
Insides Table References are saved
Does not save Userdata, Metatables, Functions and indices of these
----------------------------------------------------
successfu... | mit |
AresTao/darkstar | scripts/globals/items/dish_of_spaghetti_nero_di_seppia.lua | 35 | 1800 | -----------------------------------------
-- ID: 5193
-- Item: dish_of_spaghetti_nero_di_seppia
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP % 17 (cap 130)
-- Dexterity 3
-- Vitality 2
-- Agility -1
-- Mind -2
-- Charisma -1
-- Double Attack 1
-- Store TP 6
-------------... | gpl-3.0 |
AresTao/darkstar | scripts/globals/items/colored_egg.lua | 35 | 1274 | -----------------------------------------
-- ID: 4487
-- Item: colored_egg
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 20
-- Magic 20
-- Attack 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
... | gpl-3.0 |
prosody-modules/import | mod_motd_sequential/mod_motd_sequential.lua | 32 | 1482 | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
-- Copyright (C) 2010 Jeff Mitchell
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local host = module:get_host();
local motd_jid = module:get_option("mo... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.