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 |
|---|---|---|---|---|---|
ArashFaceBook/Virus | plugins/trivia.lua | 647 | 6784 | do
-- Trivia plugin developed by Guy Spronck
-- Returns the chat hash for storing information
local function get_hash(msg)
local hash = nil
if msg.to.type == 'chat' then
hash = 'chat:'..msg.to.id..':trivia'
end
if msg.to.type == 'user' then
hash = 'user:'..msg.from.id..':trivia'
end
return hash
en... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/endor/npcs/gundula/gundulaElder.lua | 1 | 4574 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
minexew/zeroDB | AddOns/zeroDB/ui/TabView.lua | 1 | 2354 |
zeroDB = zeroDB or {}
zeroDB.TabView = {}
local tab_inactive = 'Interface\\AddOns\\zeroDB\\assets\\tab_inactive'
local tab_active = 'Interface\\AddOns\\zeroDB\\assets\\tab_active'
function zeroDB.TabView:new(options)
local o = options
setmetatable(o, self)
self.__index = self
self = o
local samp... | gpl-3.0 |
Modified-MW-DF/modified-MDF | MWDF Project/Dwarf Fortress/hack/scripts/modtools/outside-only.lua | 2 | 3629 | -- enables outside only and inside only buildings
--author expwnent
local usage = [====[
modtools/outside-only
=====================
This allows you to specify certain custom buildings as outside only, or inside
only. If the player attempts to build a building in an inappropriate location,
the building will be... | mit |
PAPAGENO-devels/papageno | test/benchmarks/Lua/lua-regression-test/WoW/ContainerFrame.lua | 1 | 24456 | NUM_CONTAINER_FRAMES = 12;
NUM_BAG_FRAMES = 4;
MAX_CONTAINER_ITEMS = 36;
NUM_CONTAINER_COLUMNS = 4;
ROWS_IN_BG_TEXTURE = 6;
MAX_BG_TEXTURES = 2;
BG_TEXTURE_HEIGHT = 512;
CONTAINER_WIDTH = 192;
CONTAINER_SPACING = 0;
VISIBLE_CONTAINER_SPACING = 3;
CONTAINER_OFFSET_Y = 70;
CONTAINER_OFFSET_X = 0;
CONTAINER_SC... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/clothing/pants/pants8.lua | 1 | 2280 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
karolhrdina/malamute | bindings/lua_ffi/test.lua | 4 | 1640 | #!/usr/bin/lua5.2
--[[
Copyright (c) the Contributors as noted in the AUTHORS file.
This file is part of the Malamute Project.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/... | mpl-2.0 |
yav/language-lua | lua-5.3.1-tests/sort.lua | 3 | 7591 | -- $Id: sort.lua,v 1.32 2015/03/04 13:09:38 roberto Exp $
print "testing (parts of) table library"
print "testing unpack"
local unpack = table.unpack
local maxI = math.maxinteger
local minI = math.mininteger
local function checkerror (msg, f, ...)
local s, err = pcall(f, ...)
assert(not s and string.find(err,... | bsd-3-clause |
TheAnswer/FirstTest | bin/scripts/creatures/objects/talus/npcs/fedDub/fedDubSupporter.lua | 1 | 4557 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
Andrettin/Wyrmsun | scripts/items.lua | 1 | 15372 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/yavin4/creatures/spinedPuc.lua | 1 | 4646 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
moltafet35/seeck | plugins/anti_spam.lua | 923 | 3750 |
--An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
local data = load_data(_config.moderation.data)
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id =... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/tatooine/creatures/worrtGutbuster.lua | 1 | 4720 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
raffomania/MAVE | src/core/resources.lua | 1 | 1205 | Resources = class("Resources")
function Resources:initialize()
self.imageQueue = {}
self.musicQueue = {}
self.soundQueue = {}
self.fontQueue= {}
self.images = {}
self.music = {}
self.sounds = {}
self.fonts = {}
end
function Resources:addImage(name, src)
self.imageQueue[name] ... | gpl-3.0 |
perusio/lua-uri | test/_generic.lua | 2 | 24889 | require "uri-test"
local URI = require "uri"
module("test.generic", lunit.testcase, package.seeall)
function test_normalize_percent_encoding ()
-- Don't use unnecessary percent encoding for unreserved characters.
test_norm("x:ABCDEFGHIJKLM", "x:%41%42%43%44%45%46%47%48%49%4A%4b%4C%4d")
test_norm("x:NOPQRS... | mit |
Novaes/ouro | src/lib/low-matrixtestharness.lua | 1 | 7264 | local ffi = require("ffi")
if ffi.os == "Windows" then
return
end
local adjust = 0
function CalcTime(fn)
local begin = terralib.currenttimeinseconds()
local current
local times = 0
repeat
fn()
current = terralib.currenttimeinseconds()
times = times + 1
until times == 10
-- until current - begin > 0.2
ret... | mit |
FTBpro/count-von-count | lib/redis/voncount.lua | 1 | 5526 | -------------- Function to simulate inheritance -------------------------------------
-- local function inheritsFrom( baseClass )
-- local new_class = {}
-- local class_mt = { __index = new_class }
-- if baseClass then
-- setmetatable( new_class, { __index = baseClass } )
-- end
-- return new_class
-- e... | mit |
TheAnswer/FirstTest | bin/scripts/slashcommands/admin/harmless.lua | 1 | 2429 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/corellia/npcs/monumenter/monumenterMarauder.lua | 1 | 4568 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
niedbalski/mongrel2 | examples/bbs/bbs.lua | 96 | 4552 | local strict = require 'strict'
local m2 = require 'mongrel2'
local ui = require 'ui'
local engine = require 'engine'
local db = require 'db'
local function new_user(conn, req, user, password)
req = ui.prompt(conn, req, 'new_user')
while req.data.msg ~= password do
req = ui.prompt(conn, req, 'repeat_p... | bsd-3-clause |
TheAnswer/FirstTest | bin/scripts/slashcommands/skills/saberDervish.lua | 1 | 2575 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/items/bluefrog/slicingTools.lua | 1 | 2198 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versi... | lgpl-3.0 |
wangfakang/ABTestingGateway | lib/abtesting/utils/redis.lua | 26 | 1554 | local modulename = "abtestingRedis"
local _M = {}
_M._VERSION = '0.0.1'
local redis = require('resty.redis')
_M.new = function(self, conf)
self.host = conf.host
self.port = conf.port
self.uds = conf.uds
self.timeout = conf.timeout
self.dbid = conf.dbid
self.poolsiz... | mit |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/artisan/domesticArtsIiiBasicDesserts/caramelizedPkneb.lua | 1 | 4078 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/slashcommands/skills/creatureAreaDisease.lua | 1 | 2596 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/tailor/masterTailor/revealingFleshwrap.lua | 1 | 3957 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/artisan/masterArtisan/vehicleCustomizationKit.lua | 1 | 4074 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/scout/trappingIiRefinedDesign/stinkBomb.lua | 1 | 3653 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
DarkstarProject/darkstar | scripts/globals/spells/huton_san.lua | 12 | 1384 | -----------------------------------------
-- Spell: Huton: San
-- Deals wind damage to an enemy and lowers its resistance against ice.
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
-----------------------------------------
function onMagicCastingCheck(cast... | gpl-3.0 |
AbolDalton/kia | plugins/stats.lua | 1 | 3998 | 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 |
Fenix-XI/Fenix | scripts/zones/Kazham/npcs/Rauteinot.lua | 26 | 3159 | -----------------------------------
-- Area: Kazham
-- NPC: Rauteinot
-- Starts and Finishes Quest: Missionary Man
-- @zone 250
-- @pos -42 -10 -89
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require(... | gpl-3.0 |
GameDevStudios/MrBallGuy2 | assets/libs/loveframes/objects/internal/multichoice/multichoicelist.lua | 8 | 10372 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2013 Kenny Shields --
--]]------------------------------------------------
-- multichoicelist class
local newobject = loveframes.NewObject("multichoicelist", "loveframes_object_multichoicelist", true)
--... | gpl-3.0 |
DarkstarProject/darkstar | scripts/zones/Western_Adoulin/npcs/Kipligg.lua | 11 | 2005 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Kipligg
-- Type: Standard NPC and Mission NPC,
-- Involved with Missions: '...Into the Fire', 'Done and Delivered'
-- !pos -32 0 22 256
-----------------------------------
require("scripts/globals/missions");
-----------------------------------
func... | gpl-3.0 |
kashif/optim | rprop.lua | 9 | 3301 | --[[ A plain implementation of RPROP
ARGS:
- `opfunc` : a function that takes a single input (X), the point of
evaluation, and returns f(X) and df/dX
- `x` : the initial point
- `state` : a table describing the state of the optimizer; after each
call the state is modified
- `state.steps... | bsd-3-clause |
Fenix-XI/Fenix | scripts/zones/Sealions_Den/bcnms/warriors_path.lua | 1 | 2484 | -----------------------------------
-- Area: Sealion's Den
-- Name: warriors_path
-- bcnmID : 993
-----------------------------------
package.loaded["scripts/zones/Sealions_Den/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/keyitems");
require("scripts/... | gpl-3.0 |
DarkstarProject/darkstar | scripts/zones/Temple_of_Uggalepih/npcs/Worn_Book.lua | 9 | 1643 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: Worn Book
-- Getting "Old Rusty Key (keyitem)"
-- !pos 59 0 19 159
-----------------------------------
local ID = require("scripts/zones/Temple_of_Uggalepih/IDs")
require("scripts/globals/keyitems")
-----------------------------------
function o... | gpl-3.0 |
DarkstarProject/darkstar | scripts/zones/Bastok_Markets/npcs/Harmodios.lua | 9 | 1815 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Harmodios
-- Standard Merchant NPC
-- !pos -79.928 -4.824 -135.114 235
-----------------------------------
local ID = require("scripts/zones/Bastok_Markets/IDs")
require("scripts/globals/quests")
require("scripts/globals/shop")
function onTrigger(pla... | gpl-3.0 |
DarkstarProject/darkstar | scripts/globals/items/red_curry_bun.lua | 11 | 1876 | -----------------------------------------
-- ID: 5759
-- Item: red_curry_bun
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- TODO: Group effects
-- Health 25
-- Strength 7
-- Agility 1
-- Intelligence -2
-- Attack % 23 (cap 150)
-- Ranged Atk % 23 (cap 150)
-- Demon Killer 4
-- Resist Sle... | gpl-3.0 |
DarkstarProject/darkstar | scripts/zones/Kazham/npcs/Kakapp.lua | 9 | 2736 | -----------------------------------
-- Area: Kazham
-- NPC: Kakapp
-- Standard Info NPC
-----------------------------------
function onTrade(player,npc,trade)
-- item IDs
-- 483 Broken Mithran Fishing Rod
-- 22 Workbench
-- 1008 Ten of Coins
-- 1157 Sands of Silence
-- 1... | gpl-3.0 |
DarkstarProject/darkstar | scripts/globals/items/windurst_taco.lua | 11 | 1348 | -----------------------------------------
-- ID: 5172
-- Item: windurst_taco
-- Food Effect: 30Min, All Races
-----------------------------------------
-- MP 20
-- Vitality -1
-- Agility 5
-- MP Recovered While Healing 1
-- Ranged Accuracy % 8 (cap 10)
-- Ranged Attack +1
-----------------------------------------
requi... | gpl-3.0 |
mrrigealijan/nnso | plugins/filter.lua | 6 | 3623 | local function save_filter(msg, name, value)
local hash = nil
if msg.to.type == 'channel' then
hash = 'chat:'..msg.to.id..':filters'
end
if msg.to.type == 'user' then
return 'SUPERGROUPS only'
end
if hash then
redis:hset(hash, name, value)
return "Successfull!"
end
end
local function get_filter_hash(msg... | gpl-2.0 |
DarkstarProject/darkstar | scripts/globals/spells/embrava.lua | 11 | 1070 | --------------------------------------
-- Spell: Embrava
-- Consumes 20% of your maximum MP. Gradually restores
-- target party member's HP and MP and increases attack speed.
--------------------------------------
require("scripts/globals/magic")
require("scripts/globals/msg")
require("scripts/globals/status")
---... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Bastok_Mines/npcs/Leonie.lua | 13 | 1060 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Leonie
-- Type: Room Renters
-- @zone: 234
-- @pos 118.871 -0.004 -83.916
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("script... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Port_Bastok/npcs/Gudav.lua | 12 | 1990 | -----------------------------------
-- Area: Port Bastok
-- NPC: Gudav
-- Starts Quests: A Foreman's Best Friend
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
re... | gpl-3.0 |
DarkstarProject/darkstar | scripts/globals/items/serving_of_medicinal_quus.lua | 11 | 1095 | -----------------------------------------
-- ID: 4294
-- Item: serving_of_medicinal_quus
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Dexterity 1
-- Mind -1
-- Ranged ACC % 7
-- Ranged ACC Cap 15
-----------------------------------------
require("scripts/globals/status")
require("scrip... | gpl-3.0 |
parapluu/encore | src/runtime/pony/premake4.lua | 1 | 5198 | -- premake.override is a premake5 feature.
-- We use this approach to improve Visual Studio Support for Windows.
-- The goal is to force C++ compilation for non-*.cpp/cxx/cc file extensions.
-- By doing this properly, we avoid a MSVC warning about overiding /TC
-- with /TP.
if premake.override then
local force_cpp =... | bsd-3-clause |
chuanli11/MGANs | code/release_MGAN.lua | 1 | 1453 | -- a script for releasing the generator: it basically concatenates the encoder part of VGG to the generator.
require 'torch'
require 'nn'
require 'optim'
require 'cutorch'
require 'cunn'
require 'image'
loadcaffe_wrap = paths.dofile('lib/loadcaffe_wrapper.lua')
util = paths.dofile('lib/util.lua')
local opt = {}
opt.mo... | mit |
Fenix-XI/Fenix | scripts/globals/items/blacksmiths_belt.lua | 18 | 1175 | -----------------------------------------
-- ID: 15445
-- Item: Blacksmith's Belt
-- Enchantment: Synthesis image support
-- 2Min, All Races
-----------------------------------------
-- Enchantment: Synthesis image support
-- Duration: 2Min
-- Smithing Skill +3
-----------------------------------------
require("script... | gpl-3.0 |
marcel-sch/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_status/processes.lua | 75 | 1236 | -- 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.
f = SimpleForm("processes", translate("Processes"), translate("This list gives an overview over currently running system processes and their status."))
f.reset... | apache-2.0 |
crunchuser/prosody-modules | mod_auth_external/mod_auth_external.lua | 31 | 4708 | --
-- Prosody IM
-- Copyright (C) 2010 Waqas Hussain
-- Copyright (C) 2010 Jeff Mitchell
-- Copyright (C) 2013 Mikael Nordfeldth
-- Copyright (C) 2013 Matthew Wild, finally came to fix it all
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local lpt... | mit |
Fenix-XI/Fenix | scripts/globals/items/dish_of_spaghetti_vongole_rosso_+1.lua | 18 | 1650 | -----------------------------------------
-- ID: 5198
-- Item: Dish of Spaghetti Vongole Rosso +1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health % 20
-- Health Cap 95
-- Vitality 2
-- Mind -1
-- Defense % 25
-- Defense Cap 35
-- Store TP 6
-----------------------------------------
... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/LaLoff_Amphitheater/bcnms/ark_angels_1.lua | 28 | 3110 | -----------------------------------
-- Area: LaLoff Amphitheater
-- Name: Ark Angels 1 (Hume)
-----------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
require("scripts/globals/mission... | gpl-3.0 |
DarkstarProject/darkstar | scripts/globals/mobskills/vitriolic_spray.lua | 11 | 1113 | ---------------------------------------------
-- Vitriolic Spray
-- Family: Wamouracampa
-- Description: Expels a caustic stream at targets in a fan-shaped area of effect. Additional effect: Burn
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadow
-- Range: Cone
-- Notes: Burn is 10-30/tic
------------------... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/FeiYin/npcs/Grounds_Tome.lua | 30 | 1074 | -----------------------------------
-- Area: Fei'Yin
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
e... | gpl-3.0 |
Fenix-XI/Fenix | scripts/globals/mobskills/glittering_ruby.lua | 27 | 1144 | ---------------------------------------------------
-- Glittering Ruby
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
function onMobSkillCheck(ta... | gpl-3.0 |
oTibia/UnderLight-AK47 | data/creaturescripts/scripts/look.lua | 2 | 1324 | --example of an onLook function event
function onLook(cid, target, itemid)
if itemid == 1988 then --backpack
if target ~= nil then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are looking to a very beautiful backpack.")
else
--target nil means looking at an object in shop npc window, so it will work... | gpl-2.0 |
eugeneia/snabbswitch | src/program/snsh/snsh.lua | 4 | 4449 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(..., package.seeall)
local lib = require("core.lib")
local usage = require("program.snsh.README_inc")
local long_opts = {
["package-path"] = "P",
eval = "e",
load = "l",
program = "p",
test = "t",
interactive = "i... | apache-2.0 |
Fenix-XI/Fenix | scripts/globals/weaponskills/hard_slash.lua | 11 | 1603 | -----------------------------------
-- 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("s... | gpl-3.0 |
tcatm/luci | applications/luci-app-wshaper/luasrc/model/cbi/wshaper.lua | 56 | 1848 | -- Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
require("luci.tools.webadmin")
m = Map("wshaper", translate("Wondershaper"),
translate("Wondershaper shapes traffic to ensure low latencies for interactive traffic even when your " ..
"internet connec... | apache-2.0 |
mozilla-services/data-pipeline | heka/sandbox/filters/firefox_executive_report.lua | 4 | 9338 | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
--[[
Firefox Executive Report
*Example Heka Configuration*
.. code-block:: ini
[FirefoxExecutiveReport]
ty... | mpl-2.0 |
Fenix-XI/Fenix | scripts/zones/Southern_San_dOria_[S]/npcs/Achtelle.lua | 38 | 1029 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Achtelle
-- @zone 80
-- @pos 108 2 -11
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Southern_San_dOria_[S]/npcs/Achtelle1.lua | 38 | 1029 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Achtelle
-- @zone 80
-- @pos 108 2 -11
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-... | gpl-3.0 |
wangg12/fbcunn | examples/imagenet/opts.lua | 8 | 2711 | --
-- Copyright (c) 2014, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
local M = { }
f... | bsd-3-clause |
erics1989/lurk | terrain.lua | 1 | 8498 |
-- terrain data
_database = _database or {}
_database.terrain_question = {
name = "?",
bcolor = { 32, 32, 32 },
color = { 64, 64, 64 },
character = "?",
sprite = { file = "resource/sprite/Interface.png", x = 2, y = 3 },
}
_database.terrain_dot = {
name = "dirt",
bcolor = color_constants.... | gpl-3.0 |
DarkstarProject/darkstar | scripts/zones/Cloister_of_Storms/bcnms/trial_by_lightning.lua | 8 | 1535 | -----------------------------------
-- Area: Cloister of Storms
-- BCNM: Trial by Lightning
-----------------------------------
local ID = require("scripts/zones/Cloister_of_Storms/IDs")
require("scripts/globals/battlefield")
require("scripts/globals/keyitems")
require("scripts/globals/quests")
require("scripts/globals... | gpl-3.0 |
DarkstarProject/darkstar | scripts/zones/Uleguerand_Range/Zone.lua | 6 | 2047 | -----------------------------------
--
-- Zone: Uleguerand_Range (5)
--
-----------------------------------
local ID = require("scripts/zones/Uleguerand_Range/IDs");
require("scripts/globals/conquest");
require("scripts/globals/missions");
require("scripts/globals/weather");
require("scripts/globals/status");
require("... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Temenos/mobs/Temenos_Aern.lua | 7 | 2346 | -----------------------------------
-- Area: Temenos
-- NPC: Temenos_Aern
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------------------------------
-... | gpl-3.0 |
eugeneia/snabbswitch | lib/ljsyscall/syscall/linux/arm/ffi.lua | 25 | 1602 | -- arm specific definitions
return {
ucontext = [[
typedef int greg_t, gregset_t[18];
typedef struct sigcontext {
unsigned long trap_no, error_code, oldmask;
unsigned long arm_r0, arm_r1, arm_r2, arm_r3;
unsigned long arm_r4, arm_r5, arm_r6, arm_r7;
unsigned long arm_r8, arm_r9, arm_r10, arm_fp;
unsigned l... | apache-2.0 |
DarkstarProject/darkstar | scripts/globals/weaponskills/cloudsplitter.lua | 10 | 1577 | -----------------------------------
-- Cloudsplitter
-- Axe weapon skill
-- Skill level: NA
-- Description: Deals lightning elemental damage. Damage varies with TP. Farsha: Aftermath.
-- Available only when equipped with Farsha (85), Farsha (90) or Alard's Axe +1.
-- Elemental gorgets do not affect damage. Rairin Obi i... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/RuLude_Gardens/npcs/Magian_Moogle_Blue.lua | 48 | 1855 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Magian Moogle (Blue Bobble)
-- Type: Magian Trials NPC (Relic Armor)
-- @pos -6.843 2.459 121.9 64
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
package.loaded["scripts/globals/magiantrials"] = nil;... | gpl-3.0 |
ungarscool1/HL2RP | hl2rp/gamemode/modules/hitmenu/sh_init.lua | 5 | 3128 | local plyMeta = FindMetaTable("Player")
local hitmanTeams = {}
function plyMeta:isHitman()
return hitmanTeams[self:Team()]
end
function plyMeta:hasHit()
return self:getDarkRPVar("hasHit") or false
end
function plyMeta:getHitTarget()
return self:getDarkRPVar("hitTarget")
end
function plyMeta:getHitPrice(... | agpl-3.0 |
Fenix-XI/Fenix | scripts/globals/weaponskills/refulgent_arrow.lua | 11 | 1425 | -----------------------------------
-- Refulgent Arrow
-- Archery weapon skill
-- Skill level: 290
-- Delivers a twofold attack. Damage varies with TP.
-- Aligned with the Aqua Gorget & Light Gorget.
-- Aligned with the Aqua Belt & Light Belt.
-- Element: None
-- Modifiers: STR: 60% http://www.bg-wiki.com/bg/Refulgent_... | gpl-3.0 |
DarkstarProject/darkstar | scripts/globals/items/sleep_bolt.lua | 12 | 1175 | -----------------------------------------
-- ID: 18149
-- Item: Sleep Bolt
-- Additional Effect: Sleep
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------------
function onAdditionalEffect(player... | gpl-3.0 |
dualface/killpests | src/framework/cocos2dx/OpenglConstants.lua | 78 | 27074 | --Encapsulate opengl constants.
gl = gl or {}
gl.GCCSO_SHADER_BINARY_FJ = 0x9260
gl._3DC_XY_AMD = 0x87fa
gl._3DC_X_AMD = 0x87f9
gl.ACTIVE_ATTRIBUTES = 0x8b89
gl.ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8b8a
gl.ACTIVE_PROGRAM_EXT = 0x8259
gl.ACTIVE_TEXTURE = 0x84e0
gl.ACTIVE_UNIFORMS = 0x8b86
gl.ACTIVE_UNIFORM_M... | mit |
Fenix-XI/Fenix | scripts/zones/Yuhtunga_Jungle/npcs/Mahol_IM.lua | 13 | 3317 | -----------------------------------
-- Area: Yuhtunga Jungle
-- NPC: Mahol, I.M.
-- Outpost Conquest Guards
-- @pos -242.487 -1 -402.772 123
-----------------------------------
package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
requi... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Temenos/mobs/Air_Elemental.lua | 7 | 1781 | -----------------------------------
-- Area: Temenos E T
-- NPC: Air_Elemental
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-------------------------------... | gpl-3.0 |
jmachuca77/ardupilot | libraries/AP_Scripting/examples/logging.lua | 14 | 2082 | -- example of logging to a file on the SD card and to data flash
local file_name = "AHRS_DATA.csv"
local file
-- index for the data and table
local roll = 1
local pitch = 2
local yaw = 3
local interesting_data = {}
local function write_to_file()
if not file then
error("Could not open file")
end
-- write d... | gpl-3.0 |
wilbefast/boat-peeps-game | src/gameobjects/Food.lua | 1 | 1744 | --[[
(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 |
Fenix-XI/Fenix | scripts/zones/Heavens_Tower/npcs/Rakano-Marukano.lua | 13 | 2303 | -----------------------------------
-- Area: Heavens Tower
-- NPC: Rakano-Marukano
-- Type: Immigration NPC
-- @pos 6.174 -1 32.285 242
-----------------------------------
package.loaded["scripts/zones/Heavens_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
-----------... | gpl-3.0 |
elapuestojoe/survive | build_temp/deployments/default/android/release/arm/intermediate_files/assets/quicklua/dbg.lua | 3 | 11353 | --[[/*
* (C) 2012-2013 Marmalade.
*
* 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, merge, publish,... | mit |
sprcpu/F80-V3.0 | chat.lua | 1 | 1856 | function run(msg, matches)
if matches[1]:lower() == "arisharr" or "silent" or "sudo" then
return "@pahrmakill | @silent_poker"
end
if matches[1]:lower() == "slm" and not is_sudo(msg) then
return "سلام گشاد"
end
if matches[1]:lower() == "slm" and is_sudo(msg) then
return "سلامـ بابایـ خوشگلمـ 🌝"
end
if matches[1]:lo... | gpl-2.0 |
synthein/synthein | src/world/structure.lua | 1 | 12644 | local GridTable = require("gridTable")
local StructureMath = require("world/structureMath")
local StructureParser = require("world/structureParser")
local LocationTable = require("locationTable")
local Location = require("world/location")
local Engine = require("world/shipparts/engine")
local Gun = require("world/shipp... | gpl-3.0 |
crunchuser/prosody-modules | mod_throttle_presence/mod_throttle_presence.lua | 31 | 1709 | local filters = require "util.filters";
local st = require "util.stanza";
module:depends("csi");
local function presence_filter(stanza, session)
if stanza._flush then
stanza._flush = nil;
return stanza;
end
local buffer = session.presence_buffer;
local from = stanza.attr.from;
if stanza.name ~= "presence" or... | mit |
ld-test/csv2tensor | test/test.lua | 3 | 2700 | csv2tensor = require '../csv2tensor'
require 'csvigo'
--helper function
function get_index(s,ls)
for i,v in ipairs(ls) do
if s == v then return i end
end
return nil
end
--- Testing loading a file ---
function test_values(path)
local csv_data = csvigo.load({path=path})
local tensor_data, col_na... | mit |
Fenix-XI/Fenix | scripts/zones/Port_Windurst/npcs/Yujuju.lua | 13 | 2747 | -----------------------------------
-- Area: Port Windurst
-- NPC: Yujuju
-- Involved In Quest: Making Headlines
-- @pos 201.523 -4.785 138.978 240
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/ques... | gpl-3.0 |
DarkstarProject/darkstar | scripts/globals/promyvion.lua | 12 | 3892 | require("scripts/zones/Promyvion-Dem/IDs")
require("scripts/zones/Promyvion-Holla/IDs")
require("scripts/zones/Promyvion-Mea/IDs")
require("scripts/zones/Promyvion-Vahzl/IDs")
require("scripts/globals/status")
------------------------------------
dsp = dsp or {}
dsp.promyvion = dsp.promyvion or {}
-------------------... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Qufim_Island/TextIDs.lua | 10 | 1335 | -- 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 = 6384; -- Obtained: <item>.
GIL_OBTAINED = 6385; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6387; -- Obtained... | gpl-3.0 |
DarkstarProject/darkstar | scripts/globals/abilities/gallants_roll.lua | 12 | 2895 | -----------------------------------
-- Ability: Gallant's Roll
-- Reduces physical damage taken by party members within area of effect
-- Optimal Job: Paladin
-- Lucky Number: 3
-- Unlucky Number: 7
-- Level: 55
-- Phantom Roll +1 Value: 2.34
--
-- Die Roll |No PLD |With PLD
-- -------- ------- -----------
-- 1... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Newton_Movalpolos/npcs/HomePoint#1.lua | 27 | 1274 | -----------------------------------
-- Area: Newton Movalpolos
-- NPC: HomePoint#1
-- @pos 444 27 -22 12
-----------------------------------
package.loaded["scripts/zones/Newton_Movalpolos/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Newton_Movalpolos/TextIDs");
require("scripts/globa... | gpl-3.0 |
DarkstarProject/darkstar | scripts/zones/Port_Windurst/npcs/Kususu.lua | 12 | 1113 | -----------------------------------
-- Area: Port Windurst
-- NPC: Kususu
-- Standard Merchant NPC
-----------------------------------
local ID = require("scripts/zones/Port_Windurst/IDs")
require("scripts/globals/shop")
function onTrade(player,npc,trade)
end
function onTrigger(player,npc)
local stock =
{
... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Norg/npcs/Verctissa.lua | 7 | 3120 | -----------------------------------
-- Area: Norg
-- NPC: Verctissa
-- Starts Quest: Trial Size Trial By Water
-- @pos -13 1 -20 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/Wajaom_Woodlands/npcs/_1f1.lua | 13 | 1097 | -----------------------------------
-- Area: Wajaom Woodlands
-- NPC: Engraved Tablet
-- @pos -64 -11 -641 51
-----------------------------------
require("scripts/globals/keyitems");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
--... | gpl-3.0 |
Fenix-XI/Fenix | scripts/zones/King_Ranperres_Tomb/npcs/qm1.lua | 13 | 1232 | -----------------------------------
-- Area: King Ranperre's Tomb
-- NPC: ??? (qm1)
-- Notes: Used to teleport down the stairs
-- @pos -81 -1 -97 190
-----------------------------------
package.loaded["scripts/zones/King_Ranperres_Tomb/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/King... | gpl-3.0 |
ungarscool1/HL2RP | hl2rp/gamemode/modules/doorsystem/cl_doors.lua | 1 | 4887 | local meta = FindMetaTable("Entity")
local black = Color(0, 0, 0, 255)
local white = Color(255, 255, 255, 200)
local red = Color(128, 30, 30, 255)
function meta:drawOwnableInfo()
if LocalPlayer():InVehicle() then return end
-- Look, if you want to change the way door ownership is drawn, don't edit this file, ... | agpl-3.0 |
soheildiscover/soheil | 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 |
Fenix-XI/Fenix | scripts/zones/Windurst_Woods/npcs/Retto-Marutto.lua | 27 | 1193 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Retto-Marutto
-- Guild Merchant NPC: Bonecrafting Guild
-- @pos -6.142 -6.55 -132.639 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/s... | gpl-3.0 |
hilllinux/lua-resty-http | lib/resty/http.lua | 6 | 21361 | local http_headers = require "resty.http_headers"
local ngx_socket_tcp = ngx.socket.tcp
local ngx_req = ngx.req
local ngx_req_socket = ngx_req.socket
local ngx_req_get_headers = ngx_req.get_headers
local ngx_req_get_method = ngx_req.get_method
local str_gmatch = string.gmatch
local str_lower = string.lower
local str_u... | bsd-2-clause |
DarkstarProject/darkstar | scripts/globals/items/winterflower.lua | 11 | 1056 | -----------------------------------------
-- ID: 5907
-- Item: Winterflower
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility +3
-- Intelligence +5
-- Charisma -5
-- Resist Virus +20
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/m... | gpl-3.0 |
ungarscool1/HL2RP | hl2rp/gamemode/modules/fadmin/fadmin/playeractions/ignite/cl_init.lua | 4 | 1154 | FAdmin.StartHooks["Ignite"] = function()
FAdmin.Access.AddPrivilege("Ignite", 2)
FAdmin.Commands.AddCommand("Ignite", nil, "<Player>", "[time]")
FAdmin.Commands.AddCommand("unignite", nil, "<Player>")
FAdmin.ScoreBoard.Player:AddActionButton(function(ply) return (ply:FAdmin_GetGlobal("FAdmin_ignited") ... | agpl-3.0 |
dios-game/dios | templates/lua_cocos/resources/src/cocos/framework/extends/UIScrollView.lua | 55 | 2042 |
--[[
Copyright (c) 2011-2014 chukong-inc.com
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, merge, publish, di... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.