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 |
|---|---|---|---|---|---|
drakmaniso/Flapoline | src/intitle.lua | 1 | 5425 | inTitle = {}
---------------------------------------------------------------------------------------------------
function inTitle:initialize()
self.title = love.graphics.newImage("data/title.png")
self.quitButton = Button:new(
function ()
love.event.push("quit")
end,
... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Sauromugue_Champaign/npcs/qm5.lua | 11 | 2295 | -----------------------------------
-- Area: Sauromugue Champaign
-- NPC: qm5 (???) (Tower 5)
-- Involved in Quest: THF AF "As Thick As Thieves"
-- @pos -117.713 15.237 45.929 120
-----------------------------------
package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil;
-------------------------------... | gpl-3.0 |
Praveen-1987/devstack-Quantumleap | smc/lib/Lua/statemap.lua | 2 | 5048 | --
-- The contents of this file are subject to the Mozilla Public
-- License Version 1.1 (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.mozilla.org/MPL/
--
-- Software distributed under the License is distributed on an "AS
-- IS... | apache-2.0 |
telbbs/luci-0.12 | modules/base/luasrc/util.lua | 81 | 21858 | --[[
LuCI - Utility library
Description:
Several common useful Lua functions
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Lower_Jeuno/Zone.lua | 12 | 3839 | -----------------------------------
--
-- Zone: Lower_Jeuno (245)
--
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Lower_Jeuno/TextIDs");
require("scripts/globals/settings");
require("scripts/globals/m... | gpl-3.0 |
alioshii/KASBAR | plugins/stats.lua | 11 | 4121 | --[[
# For More Information ....!
# Developer : Aziz < @devss_bot > #Dev
# our channel: @help_tele
]]
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 = 'msg... | gpl-2.0 |
davegoopot/mcrcd-minetest-game | games/mcr_coderdojo/mods/farming/hoes.lua | 1 | 1482 | farming.register_hoe(":farming:hoe_wood", {
description = "Wooden Hoe",
inventory_image = "farming_tool_woodhoe.png",
max_uses = 30,
recipe = {
{"group:wood", "group:wood"},
{"", "group:stick"},
{"", "group:stick"},
}
})
farming.register_hoe(":farming:hoe_stone", {
description = "Stone Hoe",
inventory_ima... | lgpl-3.0 |
juanmanuel-calderon/SteinerTree | PointStructure.lua | 1 | 4741 | --[[
Defines a structure to represent a graph, which includes points and its transitions
The structure is represented by a list of all the points, containing two fields
- Point: contains the coordinate X and Y of the point
- Transition: contains a list of all the other points connected to this point
For example... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Gusgen_Mines/npcs/_5g4.lua | 34 | 1102 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: _5g4 (Door E)
-- @pos 19.998 -22.4 174.506 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Gusgen_Mines/TextIDs");
---------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Northern_San_dOria/npcs/Shakir.lua | 38 | 1046 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Shakir
-- Type: Standard NPC
-- @zone: 231
-- @pos 48.952 -2.999 -16.687
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
---... | gpl-3.0 |
amenophis1er/prosody-modules | mod_component_client/mod_component_client.lua | 31 | 8204 | --[[
mod_component_client.lua
This module turns Prosody hosts into components of other XMPP servers.
Config:
VirtualHost "component.example.com"
component_client = {
host = "localhost";
port = 5347;
secret = "hunter2";
}
]]
local socket = require "socket"
local logger = require "util.logger";
local sha... | mit |
Kthulupwns/darkstar | scripts/zones/Meriphataud_Mountains_[S]/npcs/Cavernous_Maw.lua | 29 | 1505 | -----------------------------------
-- Area: Meriphataud Mountains [S]
-- NPC: Cavernous Maw
-- @pos 597 -32 279 97
-- Teleports Players to Meriphataud Mountains
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains_[S]/TextIDs"] = nil;
-----------------------------------
re... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Bostaunieux_Oubliette/npcs/Novalmauge.lua | 17 | 4006 | -----------------------------------
-- Area: Bostaunieux Obliette
-- NPC: Novalmauge
-- Starts and Finishes Quest: The Rumor
-- Involved in Quest: The Holy Crest, Trouble at the Sluice
-- @pos 70 -24 21 167
-----------------------------------
package.loaded["scripts/zones/Bostaunieux_Oubliette/TextIDs"] = nil;
... | gpl-3.0 |
GabrielNicolasAvellaneda/luvit-upstream | init.lua | 1 | 1539 | --[[
Copyright 2014 The Luvit Authors. 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 agr... | apache-2.0 |
mlody1039/ModernOts | data/npc/scripts/TP/Barry.lua | 1 | 1102 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end... | gpl-3.0 |
AGTMADCAT/naev | dat/factions/equip/nasin.lua | 13 | 5011 | --more of a dummy file to avoid errors.
-- Generic equipping routines, helper functions and outfit definitions.
include("dat/factions/equip/generic.lua")
--[[
-- @brief Does sirius pilot equipping
--
-- @param p Pilot to equip
--]]
function equip( p )
-- Start with an empty ship
p:rmOutfit("all")
p:rmOutf... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/weaponskills/cyclone.lua | 30 | 1416 | -----------------------------------
-- Cyclone
-- Dagger weapon skill
-- Skill level: 125
-- Delivers an area attack that deals wind elemental damage. Damage varies with TP.
-- This weapon skill is ranged and can be used from a distance (Up to 15').
-- Directly affected by Magic Attack Bonus.
-- Aligned with the... | gpl-3.0 |
amin041/tele-dam- | bot/permissions.lua | 43 | 1333 | local sudos = {
"plugins",
"rank_admin",
"bot",
"lang_install",
"set_lang",
"tosupergroup",
"gban_installer"
}
local admins = {
"rank_mod",
"gban",
"ungban",
"setrules",
"setphoto",
"creategroup",
"setname",
"addbots",
"setlink",
"rank_guest",
"description",
"export_... | gpl-2.0 |
hj3938/wax | lib/stdlib/helpers/bit.lua | 19 | 4761 | --[[---------------
LuaBit v0.4
-------------------
a bitwise operation lib for lua.
http://luaforge.net/projects/bit/
How to use:
-------------------
wax.bit.bnot(n) -- bitwise not (~n)
wax.bit.band(m, n) -- bitwise and (m & n)
wax.bit.bor(m, n) -- bitwise or (m | n)
wax.bit.bxor(m, n) -- bitwise xor (m ^ n)
wa... | mit |
Kthulupwns/darkstar | scripts/zones/Carpenters_Landing/mobs/Birdtrap.lua | 10 | 1307 | -----------------------------------
-- Area: Carpenters' Landing
-- Mob: Birdtrap
-- Note: Placeholder Orctrap
-----------------------------------
require("/scripts/zones/Carpenters_Landing/MobIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
function onMo... | gpl-3.0 |
AGTMADCAT/naev | dat/ai/flf.lua | 1 | 1929 | include("dat/ai/tpl/generic.lua")
include("dat/ai/personality/patrol.lua")
-- Settings
mem.aggressive = true
mem.safe_distance = 300
mem.armour_run = 100
mem.shield_return = 20
mem.land_planet = false
function create ()
-- Give monies.
ai.setcredits( rnd.int(ai.pilot():ship():price()/600 , ai.pil... | gpl-3.0 |
rohanp/Algorithm-Implementations | Monty_Hall_Problem/Lua/Yonaba/monty_hall_test.lua | 26 | 1603 | -- Tests for monty_hall.lua
local monty_hall = require 'monty_hall'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1 en... | mit |
Wiladams/LJIT2Win32 | sspi.lua | 1 | 82071 |
local ffi = require ("ffi");
local bit = require ("bit");
local bor = bit.bor;
local band = bit.band;
local rshift = bit.rshift;
local lshift = bit.lshift;
local K32 = require ("Kernel32");
local L=K32.AnsiToUnicode16;
SECURITY_WIN32 = true;
--[[
From Security.h
--]]
--[[
// This file will go out and pull in all... | mit |
Velkon/DarkRP | gamemode/modules/base/sh_simplerr.lua | 4 | 2504 | -- simplerrRun: Run a function with the given parameters and send any runtime errors to admins
DarkRP.simplerrRun = fc{
fn.Snd, -- On success ignore the first return value
simplerr.wrapError,
simplerr.wrapHook,
simplerr.wrapLog,
simplerr.safeCall
}
-- error: throw a runtime error without exiting th... | mit |
Kthulupwns/darkstar | scripts/zones/Spire_of_Dem/npcs/_0j1.lua | 36 | 1313 | -----------------------------------
-- Area: Spire_of_Dem
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Dem/TextIDs");
---------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Kazham/npcs/Tatapp.lua | 19 | 9335 | -----------------------------------
-- Area: Kazham
-- NPC: Tatapp
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
require("scripts/globals/pathfind");
local path = {
15.005042, -8.000000, -104.34995... | gpl-3.0 |
aa65535/luci | build/luadoc/luadoc/init.lua | 172 | 1333 | -------------------------------------------------------------------------------
-- LuaDoc main function.
-- @release $Id: init.lua,v 1.4 2008/02/17 06:42:51 jasonsantos Exp $
-------------------------------------------------------------------------------
local require = require
local util = require "luadoc.util"
log... | apache-2.0 |
carbonsrv/circd | libs/ansicolors.lua | 3 | 2082 | -- Simple ANSI color table.
--[[
The MIT License (MIT)
Copyright (c) 2015 - 2016 Adrian Pistol
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 limitat... | mit |
Kthulupwns/darkstar | scripts/zones/Dynamis-Bastok/mobs/Gu_Dha_Effigy.lua | 11 | 1040 | -----------------------------------
-- Area: Dynamis Bastok
-- NPC: Gu'Dha Effigy
-- Mega Boss
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/titles");
require("scripts/globals/dynamis");
-----------------------------------
-- onMobSpawn Action
-------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/san_dorian_carrot.lua | 35 | 1200 | -----------------------------------------
-- ID: 4389
-- Item: san_dorian_carrot
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility 2
-- Vitality -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- O... | gpl-3.0 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ArmatureAnimation.lua | 10 | 4411 |
--------------------------------
-- @module ArmatureAnimation
-- @extend ProcessBase
-- @parent_module ccs
--------------------------------
--
-- @function [parent=#ArmatureAnimation] getSpeedScale
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
-- Pause the... | mit |
Kthulupwns/darkstar | scripts/globals/effects/addendum_black.lua | 74 | 1952 | -----------------------------------
--
--
--
-----------------------------------
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:recalculateAbilitiesTable();
local bonus = effect:getPower();
local helix = effect... | gpl-3.0 |
Wiladams/LJIT2Win32 | dbghelp_ffi.lua | 1 | 82724 | local ffi = require("ffi")
require("WTypes");
require("WinNT");
local Lib = ffi.load("dbghelp");
--[[
BUILD Version: 0000 Increment this if a change has global effects
Copyright (c) Microsoft Corporation. All rights reserved.
Module Name:
dbghelp.h
Abstract:
This module defines the prototypes and ... | mit |
jlopenwrtluci/luci | applications/luci-app-qos/luasrc/model/cbi/qos/qos.lua | 36 | 2367 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local wa = require "luci.tools.webadmin"
local fs = require "nixio.fs"
m = Map("qos", translate("Quality of Service"),
translate("With <abbr title=\"Quality of Service\">QoS</abbr> you " ..
"can prioritize n... | apache-2.0 |
kuoruan/luci | applications/luci-app-qos/luasrc/model/cbi/qos/qos.lua | 36 | 2367 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local wa = require "luci.tools.webadmin"
local fs = require "nixio.fs"
m = Map("qos", translate("Quality of Service"),
translate("With <abbr title=\"Quality of Service\">QoS</abbr> you " ..
"can prioritize n... | apache-2.0 |
Kthulupwns/darkstar | scripts/globals/items/scream_fungus.lua | 35 | 1193 | -----------------------------------------
-- ID: 4447
-- Item: scream_fungus
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Strength -4
-- Mind 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCh... | gpl-3.0 |
kaeza/love-klib | klib/gui/widget.lua | 1 | 5293 |
local classes = require "klib.classes"
local gui_core = require "klib.gui.core"
local m = classes.module "klib.gui.widget"
local math_min, math_max = math.min, math.max
local Widget = classes.class(m, "Widget")
-- Public fields.
Widget.theme = nil
Widget.font = nil
Widget.line_spacing = nil
Widget.enabled = tru... | bsd-2-clause |
AttacqueSuperior/Engine | mods/cnc/maps/gdi06/gdi06.lua | 2 | 4952 | --[[
Copyright 2007-2021 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later vers... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/PsoXja/npcs/_09c.lua | 9 | 1609 | -----------------------------------
-- Area: Pso'Xja
-- NPC: _09c (Stone Gate)
-- Notes: Spawns Gargoyle when triggered
-- @pos -330.000 14.074 -261.600 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Pso... | gpl-3.0 |
punisherbot/punisherbot | plugins/meme.lua | 637 | 5791 | local helpers = require "OAuth.helpers"
local _file_memes = './data/memes.lua'
local _cache = {}
local function post_petition(url, arguments)
local response_body = {}
local request_constructor = {
url = url,
method = "POST",
sink = ltn12.sink.table(response_body),
headers = {},
red... | gpl-2.0 |
somanyrobots/dota_bot_ai | mode_rune_generic.lua | 1 | 1119 |
----------------------------------------------------------------------------------------------------
_G._savedEnv = getfenv()
module( "mode_rune_generic", package.seeall )
----------------------------------------------------------------------------------------------------
-- function OnStart()
-- print( "mode_gene... | mit |
Kthulupwns/darkstar | scripts/globals/items/mercanbaligi.lua | 18 | 1261 | -----------------------------------------
-- ID: 5454
-- Item: Mercanbaligi
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 4
-- Mind -6
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----... | gpl-3.0 |
shayanchabok555/tigerantispam007 | plugins/search_youtube.lua | 674 | 1270 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
fegimanam/kurdbot | plugins/search_youtube.lua | 674 | 1270 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
telergybot/telergybot | plugins/search_youtube.lua | 674 | 1270 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
punisherbot/punisherbot | plugins/search_youtube.lua | 674 | 1270 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
Nehmulos/knight-game | cocos2d/external/lua/luajit/src/src/jit/dis_x86.lua | 99 | 29330 | ----------------------------------------------------------------------------
-- LuaJIT x86/x64 disassembler module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
--------------------------------------------------------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/spells/exuviation.lua | 13 | 1241 | -----------------------------------------
-- Spell: Exuviation
-- Restores HP and removes one detrimental magic effect.
-- Can be used with Diffusion.
-- Shamelessly stolen from http://members.shaw.ca/pizza_steve/cure/Cure_Calculator.html
-----------------------------------------
require("scripts/globals/settin... | gpl-3.0 |
ark120202/aabs | game/scripts/vscripts/heroes/hero_cherub/modifiers/modifier_cherub_flower_garden_barrier.lua | 1 | 1261 | modifier_cherub_flower_garden_barrier = class({})
function modifier_cherub_flower_garden_barrier:GetTexture()
return "arena/cherub_flower_garden"
end
function modifier_cherub_flower_garden_barrier:IsPurgable()
return false
end
if IsServer() then
function modifier_cherub_flower_garden_barrier:OnCreated(keys)
se... | mit |
Kthulupwns/darkstar | scripts/globals/abilities/drachen_roll.lua | 2 | 1420 | -----------------------------------
-- Ability: Drachen Roll
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- onUseAbility
-----------------------------------
function onAbilityCheck(player,target,ability)
l... | gpl-3.0 |
scottcs/wyx | wyx/entity/ItemEntityFactory.lua | 1 | 1513 | local Class = require 'lib.hump.class'
local EntityFactory = getClass 'wyx.entity.EntityFactory'
local depths = require 'wyx.system.renderDepths'
local property = require 'wyx.component.property'
local match = string.match
-- ItemEntityFactory
-- creates entities based on data files
local ItemEntityFactory = Class{na... | mit |
Kthulupwns/darkstar | scripts/zones/Southern_San_dOria/npcs/Coderiant.lua | 36 | 1471 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Coderiant
-- General Info NPC
-- @zone 230
-- @pos -111 -2 33
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settin... | gpl-3.0 |
davegoopot/mcrcd-minetest-game | games/mcr_coderdojo/mods/wool/init.lua | 8 | 1786 | -- minetest/wool/init.lua
-- Backwards compatibility with jordach's 16-color wool mod
minetest.register_alias("wool:dark_blue", "wool:blue")
minetest.register_alias("wool:gold", "wool:yellow")
local wool = {}
-- This uses a trick: you can first define the recipes using all of the base
-- colors, and then some recipes... | lgpl-3.0 |
eakosin/FIFTYfifty | audio.lua | 1 | 10301 | -- FIFTYfifty - Space shooter using a probability mechanic.
-- Copyright (C) 2014 Evan A. Kosin
-- 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 3 of the License, or
-- (at yo... | gpl-3.0 |
ArcadiaGamingNetwork/AGC-DarkRP-Configuration | lua/darkrp_config/settings.lua | 1 | 21641 | --[[---------------------------------------------------------------------------
DarkRP config settings
---------------------------------------------------------------------------
This is the settings file of DarkRP. Every DarkRP setting is listed here.
Warning:
If this file is missing settings (because of e.g. an upd... | mit |
Kthulupwns/darkstar | scripts/zones/Hall_of_Transference/npcs/_0e4.lua | 43 | 1699 | -----------------------------------
-- Area: Hall of Transference
-- NPC: Large Apparatus (Right) - Holla
-- @pos -242.301 -1.849 269.867 14
-----------------------------------
package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Hall_of_Transf... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Eastern_Altepa_Desert/npcs/Telepoint.lua | 18 | 1640 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: Telepoint
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/Eastern_Altepa_Desert/Te... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/weaponskills/spirits_within.lua | 30 | 1518 | -----------------------------------
-- Spirits Within
-- Sword weapon skill
-- Spirits Within Sword Weapon Skill
-- TrolandAdded by Troland
-- Skill Level: 175
-- Delivers an unavoidable attack. Damage varies with HP and TP.
-- Not aligned with any "elemental gorgets" or "elemental belts" due to it's absence of ... | gpl-3.0 |
xvaara/kong | spec/integration/dao/cassandra/events_spec.lua | 1 | 3451 | local event_types = require "kong.core.events".TYPES
local spec_helper = require "spec.spec_helpers"
local utils = require "kong.tools.utils"
local env = spec_helper.get_env() -- test environment
local dao_factory = env.dao_factory
local events = env.events
describe("Events", function()
setup(function()
spec_h... | apache-2.0 |
himamm/uzzbot | plugins/boobs.lua | 731 | 1601 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
telergybot/telergybot | plugins/boobs.lua | 731 | 1601 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Bhaflau_Thickets/Zone.lua | 1 | 1634 | -----------------------------------
--
-- Zone: Bhaflau_Thickets (52)
--
-----------------------------------
package.loaded["scripts/zones/Bhaflau_Thickets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Bhaflau... | gpl-3.0 |
carbonsrv/circd | libs/logger.lua | 2 | 2341 | -- Log module
--[[
The MIT License (MIT)
Copyright (c) 2015 - 2016 Adrian Pistol
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... | mit |
Mleaf/mleaf_luci | modules/rpc/luasrc/jsonrpcbind/uci.lua | 81 | 1914 | --[[
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
ht... | apache-2.0 |
BarrRedKola/cbt | lib/nfpa_simple.lua | 2 | 9795 | package.path = package.path ..";?.lua;test/?.lua;app/?.lua;"
require "Pktgen";
-- ################### CONFIGURATION PART ########################
-- for config params read from the config file
-- local variables for config parameters (read from config.cfg)
config = {};
-- local variable for different packet sizes... | gpl-2.0 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/lua_cocos2dx_extension_auto_api.lua | 10 | 3036 | --------------------------------
-- @module cc
--------------------------------------------------------
-- the cc Control
-- @field [parent=#cc] Control#Control Control preloaded module
--------------------------------------------------------
-- the cc ControlButton
-- @field [parent=#cc] ControlButton#ControlButton... | mit |
Kthulupwns/darkstar | scripts/zones/Castle_Oztroja/npcs/_m71.lua | 19 | 1187 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _m71 (Torch Stand)
-- Involved in Mission: Magicite
-- @pos -99 24 -105 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
req... | gpl-3.0 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Sprite3D.lua | 6 | 3682 |
--------------------------------
-- @module Sprite3D
-- @extend Node,BlendProtocol
-- @parent_module cc
--------------------------------
--
-- @function [parent=#Sprite3D] setCullFaceEnabled
-- @param self
-- @param #bool enable
--------------------------------
-- @overload self, cc.Texture2D
-- @... | mit |
scottcs/wyx | ui/MainMenu.lua | 1 | 2032 | local ui = {}
local Style = getClass 'wyx.ui.Style'
local command = require 'wyx.ui.command'
local colors = colors
local floor = math.floor
local yOffset = 40
local panelWidth = 0.6 * WIDTH
local panelHeight = 0.75 * HEIGHT
local titleFont = GameFont.bighuge
local titleFontH = titleFont:getHeight()
local titleMargi... | mit |
VanessaE/minetest_game | mods/creative/init.lua | 2 | 1794 | creative = {}
local creative_mode_cache = minetest.setting_getbool("creative_mode")
function creative.is_enabled_for(name)
return creative_mode_cache
end
dofile(minetest.get_modpath("creative") .. "/inventory.lua")
if creative_mode_cache then
-- Dig time is modified according to difference (leveldiff) between too... | lgpl-2.1 |
xvaara/kong | spec/plugins/acl/api_spec.lua | 2 | 3338 | local json = require "cjson"
local http_client = require "kong.tools.http_client"
local spec_helper = require "spec.spec_helpers"
describe("ACLs API", function()
local BASE_URL, acl, consumer
setup(function()
spec_helper.prepare_db()
spec_helper.start_kong()
end)
teardown(function()
spec_helper.s... | apache-2.0 |
pl-stone/sipml5 | asterisk/etc/extensions.lua | 317 | 5827 |
CONSOLE = "Console/dsp" -- Console interface for demo
--CONSOLE = "DAHDI/1"
--CONSOLE = "Phone/phone0"
IAXINFO = "guest" -- IAXtel username/password
--IAXINFO = "myuser:mypass"
TRUNK = "DAHDI/G2"
TRUNKMSD = 1
-- TRUNK = "IAX2/user:pass@provider"
--
-- Extensions are expected to be defined in a global table ... | bsd-3-clause |
Kthulupwns/darkstar | scripts/zones/Southern_San_dOria/Zone.lua | 28 | 2885 | -----------------------------------
--
-- Zone: Southern_San_dOria (230)
--
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/events/harvest_festivals");
require("scripts/globals/zone");
require("... | gpl-3.0 |
xvaara/kong | spec/integration/cluster/cluster_spec.lua | 1 | 12093 | local spec_helper = require "spec.spec_helpers"
local yaml = require "yaml"
local IO = require "kong.tools.io"
local http_client = require "kong.tools.http_client"
local cjson = require "cjson"
local TEST_CONF = spec_helper.get_env().conf_file
local SERVER_CONF = "kong_TEST_SERVER.yml"
local API_URL = spec_helper.API... | apache-2.0 |
mlody1039/ModernOts | data/npc/scripts/necrotask.lua | 1 | 16274 | local tasks =
{
[28] = {questStarted = 1510, questStorage = 65000, killsRequired = 100, raceName = "Trolls", rewards = {first = {enable = true, type = "exp", values = 200}, second = {enable = true, type = "money", values = 200}, third = {enable = false, type = nil, values = {nil, nil}}}},
[27] = {quest... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Chamber_of_Oracles/npcs/Shimmering_Circle.lua | 12 | 1737 | -----------------------------------
-- Area: Chamber of Oracles
-- NPC: Shimmering Circle
-- @pos -220 0 12 168
-------------------------------------
package.loaded["scripts/zones/Chamber_of_Oracles/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/bcnm");
require("scripts/globa... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/mobskills/Barbed_Crescent.lua | 6 | 1034 | ---------------------------------------------------
-- Barbed Crescent
-- Damage. Additional Effect: Accuracy Down.
-- Area of Effect is centered around caster.
-- The Additional Effect: Accuracy Down may not always process.
-- Duration: Three minutes ?
---------------------------------------------------
require("/scr... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Davoi/npcs/_45d.lua | 18 | 1498 | -----------------------------------
-- 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 |
patixx/patixx | plugins/bot_manager.lua | 89 | 6427 | 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(receiver, '... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Upper_Delkfutts_Tower/npcs/HomePoint#1.lua | 12 | 1223 | -----------------------------------
-- Area: Upper Delkfutt's Tower
-- NPC: HomePoint#1
-- @pos -365 -176.5 -36 158
-----------------------------------
package.loaded["scripts/zones/Upper_Delkfutts_Tower/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Upper_Delkfutts_Tower/TextIDs");
req... | gpl-3.0 |
ningg/Atlas | lib/proxy/filter.lua | 41 | 1906 | module("proxy.filter", package.seeall)
local config_file = string.format("proxy.conf.config_%s", proxy.global.config.instance)
local config = require(config_file)
local whitelist = config.whitelist
local blacklist = config.blacklist
local log = require("proxy.log")
local level = log.level
local write_log = log.writ... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Caedarva_Mire/TextIDs.lua | 4 | 1289 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6382; -- Obtained: <item>.
GIL_OBTAINED = 6383; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6385; -- Obtained... | gpl-3.0 |
dpino/snabb | lib/ljsyscall/syscall/bsd/types.lua | 24 | 9241 | -- BSD shared types
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string
local function init(c, types)
local abi ... | apache-2.0 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Armature.lua | 10 | 5702 |
--------------------------------
-- @module Armature
-- @extend Node,BlendProtocol
-- @parent_module ccs
--------------------------------
-- Get a bone with the specified name<br>
-- param name The bone's name you want to get
-- @function [parent=#Armature] getBone
-- @param self
-- @param #string name
-- @return Bo... | mit |
Kthulupwns/darkstar | scripts/globals/spells/bluemagic/mp_drainkiss.lua | 3 | 1433 | -----------------------------------------
-- Spell: MP Drainkiss
-- Drain functions only on skill level!!
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
----------------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Windurst_Waters/npcs/Fuepepe.lua | 19 | 3656 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Fuepepe
-- Starts and Finishes Quest: Teacher's Pet
-- Involved in Quest: Making the grade, Class Reunion
-- @zone = 238
-- @pos = 161 -2 161
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;... | gpl-3.0 |
telbbs/luci-0.12 | applications/luci-asterisk/luasrc/model/cbi/asterisk/dialzones.lua | 91 | 3529 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 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: trunks.l... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/AlTaieu/npcs/HomePoint#3.lua | 3 | 1161 | -----------------------------------
-- Area: AlTaieu
-- NPC: HomePoint#3
-- @pos
-----------------------------------
package.loaded["scripts/zones/AlTaieu/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/AlTaieu/TextIDs");
require("scripts/globals/homepoint");
--------------------------... | gpl-3.0 |
punisherbot/punisherbot | bot/bot.lua | 7 | 6651 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()
-- This function is ... | gpl-2.0 |
Omar-Real/RealBot | plugins/group.lua | 4 | 60105 | 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.peer_id
if member_id ~= our_id then
-- Group configuration
data[... | gpl-2.0 |
kuoruan/luci | applications/luci-app-olsr/luasrc/controller/olsr.lua | 6 | 9815 | module("luci.controller.olsr", package.seeall)
local neigh_table = nil
local ifaddr_table = nil
function index()
local ipv4,ipv6
if nixio.fs.access("/etc/config/olsrd") then
ipv4 = 1
end
if nixio.fs.access("/etc/config/olsrd6") then
ipv6 = 1
end
if not ipv4 and not ipv6 then
return
end
require("luci.mo... | apache-2.0 |
LuaDist/lzmq | examples/perf2/thr/remote_thr.lua | 15 | 1894 | local ZMQ_NAME = "lzmq"
local argc = select("#", ...)
local argv = {...}
if (argc < 3) or (argc > 4)then
print("usage: remote_thr <connect-to> <message-size> <message-count> [ffi]");
return 1
end
local connect_to = argv [1]
local message_size = assert(tonumber(argv [2]))
local message_count = assert(tonumber... | mit |
Wiladams/LJIT2Win32 | NativeSocket.lua | 1 | 4543 |
local ffi = require "ffi"
local WinSock = require "WinSock_Utils"
local wsock = require "win_socket"
local SocketType = wsock.SocketType
local Protocol = wsock.Protocol
ffi.cdef[[
typedef struct {
SOCKET Handle;
int id;
} Socket_Win32;
]]
local NativeSocket = ffi.typeof("Socket_Win32");
local NativeSocket... | mit |
Kthulupwns/darkstar | scripts/zones/Gustav_Tunnel/mobs/Goblin_Mercenary.lua | 10 | 1027 | ----------------------------------
-- Area: Gustav Tunnel
-- MOB: Goblin Mercenary
-- Note: Place holder Wyvernpoacher Drachlox
-----------------------------------
require("/scripts/zones/Gustav_Tunnel/MobIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
functi... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/spells/absorb-chr.lua | 11 | 1194 | --------------------------------------
-- Spell: Absorb-CHR
-- Steals an enemy's Charism.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/m&p_dumpling.lua | 36 | 1210 | -----------------------------------------
-- ID: 5641
-- Item: M&P Dumpling
-- Food Effect: 3Min, All Races
-----------------------------------------
-- Intelligence 5
-- Agility -5
-- MP 30
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIte... | gpl-3.0 |
Kthulupwns/darkstar | 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 |
ikoryakovskiy/grl | addons/rbdl/cfg/cart_pendulum_swingup_balance_unwrap.lua | 1 | 3084 | --[[
-- Cart-pole swing-up task for Manuel's RBDL cart-pole simulation
-- using MPRL-style observations and rewards.
--
-- Authors:
-- Wouter Caarls <wouter@caarls.org>
-- Ivan Koryakovskiy <i.koryakovskiy@tudelft.nl>
--]]
-- Helper functions
math.randomseed( os.time() )
-- Default parameters
if (shaping_wei... | lgpl-3.0 |
Kthulupwns/darkstar | scripts/globals/spells/cura.lua | 13 | 3144 | -----------------------------------------
-- Spell: Cura
-- Restores hp in area of effect. Self target only
-- From what I understand, Cura's base potency is the same as Cure's.
-- With Afflatus Misery Bonus, it can be as potent as a Curaga II
-- Modeled after our Cure.lua, which was modeled after the below reference
-... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/abilities/pets/stone_ii.lua | 5 | 1152 | ---------------------------------------------------
-- Stone 2
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
require("/scripts/globals/magic");
-----------------------------------------... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.