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 |
|---|---|---|---|---|---|
extreme01/extreme | plugins/plugins.lua | 62 | 5964 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
fgielow/devenserver | data/actions/scripts/quests/arenareward.lua | 2 | 3691 | function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if item.actionid >= 42361 and item.actionid <= 42365 then
if player:getStorageValue(42361) ~= 1 then
if item.actionid == 42361 then
player:sendTextMessage(MESSAGE_INFO_DESCR, 'You found a present.')
local reward = player:addItem(1990... | gpl-2.0 |
Squ34k3rZ/SamsBday | cocos2d/external/lua/luajit/src/dynasm/dasm_mips.lua | 74 | 28080 | ------------------------------------------------------------------------------
-- DynASM MIPS module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _i... | mit |
dacrybabysuck/darkstar | scripts/zones/Valkurm_Dunes/npcs/qm3.lua | 9 | 1421 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: qm3 (???)
-- Involved In Quest: Yomi Okuri
-- !pos -767 -4 192 103
-----------------------------------
local ID = require("scripts/zones/Valkurm_Dunes/IDs");
require("scripts/globals/keyitems");
function onTrade(player,npc,trade)
end;
function onTrig... | gpl-3.0 |
Suprcheese/Red-Alerts | config.lua | 1 | 1680 | -- Choose which announcer voice you would like. Your options are:
--
-- "CommandAndConquer" - the original C&C from 1995.
-- "RedAlert" - C&C: Red Alert from 1996
-- "TiberianSunEVA" - C&C: Tiberian Sun EVA
-- "TiberianSunCABAL" - C&C: Tiberian Sun CABAL
-- "SFX_daydev" - non-verbal sound notifications (probably,... | mit |
arsjac/DotaClassic | game/dota_addons/dotaclassic/scripts/vscripts/meteor.lua | 1 | 6616 | --adapted by arsjac from original code by:
--[[ ============================================================================================================
Author: Rook
Date: April 06, 2015
Called when Chaos Meteor is cast.
Additional parameters: keys.LandTime, keys.TravelSpeed, keys.VisionDistance, keys.EndVision... | gpl-3.0 |
cmusatyalab/openface | training/util.lua | 8 | 2973 | -- Source: https://github.com/soumith/imagenet-multiGPU.torch/blob/master/util.lua
local ffi=require 'ffi'
------ Some FFI stuff used to pass storages between threads ------------------
ffi.cdef[[
void THFloatStorage_free(THFloatStorage *self);
void THLongStorage_free(THLongStorage *self);
]]
local function setFloatS... | apache-2.0 |
ralucah/splay-daemon-lua5.2 | settings.lua | 1 | 2722 | --[[
Splay ### v1.2 ###
Copyright 2006-2011
http://www.splay-project.org
]]
--[[
This file is part of Splay.
Splay 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 L... | gpl-3.0 |
mehrpouya81/gamermir | plugins/invite.lua | 10 | 2350 | --[[
Invite other user to the chat group.
Use !invite 1234567890 (where 1234567890 is id_number) to invite a user by id_number.
This is the most reliable method.
Use !invite @username to invite a user by @username.
Less reliable. Some users don't have @username.
Use !invite Type print_name Here to invite a user by p... | gpl-2.0 |
dcourtois/premake-core | src/base/string.lua | 16 | 1838 | --
-- string.lua
-- Additions to Lua's built-in string functions.
-- Copyright (c) 2002-2013 Jason Perkins and the Premake project
--
--
-- Capitalize the first letter of the string.
--
function string.capitalized(self)
return self:gsub("^%l", string.upper)
end
--
-- Returns true if the string has a match for... | bsd-3-clause |
dacrybabysuck/darkstar | scripts/globals/spells/silencega.lua | 12 | 1342 | -----------------------------------------
-- Spell: Silence
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0
end
function ... | gpl-3.0 |
AbolDalton/Abolbot | plugins/setbye.lua | 7 | 2274 | do
local function run(msg, matches, callback, extra)
local data = load_data(_config.moderation.data)
local rules = data[tostring(msg.to.id)]['rules']
local about = data[tostring(msg.to.id)]['description']
local hash = 'group:'..msg.to.id
local group_bye = redis:hget(hash,'bye')
if matches[1] == 'delbye' and not matche... | gpl-2.0 |
dacrybabysuck/darkstar | scripts/zones/Crawlers_Nest/mobs/Aqrabuamelu.lua | 11 | 1468 | -----------------------------------
-- Area: Crawlers' Nest
-- NM: Aqrabuamelu
-----------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------
function onMobInitialize(mob)
mob:setMobMod(dsp.mobMod.AUTO_SPIK... | gpl-3.0 |
NielsH/FindYourHealers | Libs/GeminiGUI/examples/Demo/GeminiGUI.lua | 6 | 46270 | -----------------------------------------------------------------------------------------------------------------------
-- GeminiGUI
-- Formerly DaiGUI
-- @author daihenka
-- GUI Widget Creation Library for WildStar.
-------------------------------------------------------------------------------------------------------... | gpl-3.0 |
StewEsho/LudumDare38 | levels/descent.lua | 1 | 22015 | return {
version = "1.1",
luaversion = "5.1",
tiledversion = "0.18.2",
orientation = "orthogonal",
renderorder = "right-down",
width = 80,
height = 75,
tilewidth = 64,
tileheight = 64,
nextobjectid = 1,
properties = {},
tilesets = {
{
name = "Platforms",
firstgid = 1,
tilew... | mit |
mosy210/shadow-bot | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
AbolDalton/Abolbot | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
shahabsaf12/x | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
ArIaNDeVeLoPeR/IDsearcher | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
juanchanco/lua-xcb | swig/ft/hello_pango.lua | 1 | 2072 | local pango = require("pango")
local cairo = require("cairo")
local RADIUS = 200
local N_WORDS = 8
local FONT_WITH_MANUAL_SIZE = "Times new roman,Sans"
local FONT_SIZE = 36
local DEVICE_DPI = 72
--local TWEAKABLE_SCALE = 0.1
local PANGO_SCALE = 1024
local draw_text = function(cr)
--cr:translate (RADIUS, RADIUS)
loc... | mit |
dacrybabysuck/darkstar | scripts/zones/Northern_San_dOria/npcs/Olbergieut.lua | 11 | 1887 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Olbergieut
-- Type: Quest NPC
-- !pos 91 0 121 231
--
-- Starts and Finishes Quest: Gates of Paradise
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/globals/keyitems");... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/items/pear_crepe.lua | 11 | 1177 | -----------------------------------------
-- ID: 5777
-- Item: Pear Crepe
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- Intelligence +2
-- MP Healing +2
-- Magic Accuracy +20% (cap 45)
-- Magic Defense +1
-----------------------------------------
require("scripts/globals/status")
requir... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Ezura-Romazura.lua | 12 | 1063 | -----------------------------------
-- Area: Windurst Waters [S]
-- NPC: Ezura-Romazura
-- Standard Merchant NPC
-----------------------------------
local ID = require("scripts/zones/Windurst_Waters_[S]/IDs")
require("scripts/globals/shop")
-----------------------------------
function onTrade(player,npc,trade)
end
f... | gpl-3.0 |
wizardbottttt/powerplus | plugins/spammer.lua | 86 | 65983 | local function run(msg)
if msg.text == "[!/]killwili" then
return "".. [[
kose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack sh... | gpl-2.0 |
turingbot/B1 | plugins/ping.lua | 1 | 1043 | local datebase = {
"اگه با منی که من آنلاینم 😐❤️ ",
"آنلاین بودم وقتی آنلاین بودن مد نبود 😐❤️ ",
"گفتم که آنلاینم 😐❤️ ",
"کار و زندگی نداری تو گیر میدی به من 😐❤️ ",
"عجب گیری کردیم از دست این 😐❤️ ",
"چقد بدم بیخیال من شی 😐❤️ ",
"عجب داستانی دارم من با تو 😐❤️ ",
"خوشت میاد منو اذیت کنی 😐❤️ ",
... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/items/pork_cutlet_rice_bowl.lua | 11 | 1782 | -----------------------------------------
-- ID: 6406
-- Item: pork_cutlet_rice_bowl
-- Food Effect: 180Min, All Races
-----------------------------------------
-- HP +60
-- MP +60
-- STR +7
-- VIT +3
-- AGI +5
-- INT -7
-- Fire resistance +20
-- Attack +23% (cap 125)
-- Ranged Attack +23% (cap 125)
-- Store TP +4
----... | gpl-3.0 |
andeandr100/Crumbled-World | Lua/MapEditor/Tools/ModelPlaceTool.lua | 1 | 7885 | require("MapEditor/Tools/Tool.lua")
require("MapEditor/Tools/ModelPlaceToolMenu.lua")
--this = SceneNode()
local firstUpdateOfSelectedModel = false
setttings = {}
function setModel(panel)
toolManager = this:getRootNode():findNodeByTypeTowardsLeafe(NodeId.toolManager)
if toolManager then
toolManager:setT... | mit |
dacrybabysuck/darkstar | scripts/globals/items/sausage_roll.lua | 11 | 1482 | -----------------------------------------
-- ID: 4396
-- Item: sausage_roll
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health % 6 (cap 160)
-- Vitality 3
-- Intelligence -1
-- Attack % 27
-- Attack Cap 30
-- Ranged ATT % 27
-- Ranged ATT Cap 30
----------------------------------------... | gpl-3.0 |
sk89q/saitohud | src/SaitoHUD/lua/saitohud/geom.lua | 3 | 6250 | -- SaitoHUD
-- Copyright (c) 2009-2010 sk89q <http://www.sk89q.com>
-- Copyright (c) 2010 BoJaN
--
-- 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
... | gpl-2.0 |
kikito/Algorithm-Implementations | Bresenham_Line/Lua/Yonaba/bresenham_test.lua | 27 | 1097 | -- Tests for bresenham.lua
local bresenham = require 'bresenham'
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 end
local s... | mit |
dcourtois/premake-core | modules/vstudio/vs2008.lua | 14 | 1387 | --
-- vs2008.lua
-- Add support for the Visual Studio 2008 project formats.
-- Copyright (c) Jason Perkins and the Premake project
--
local p = premake
p.vstudio.vs2008 = {}
local vs2008 = p.vstudio.vs2008
local vstudio = p.vstudio
---
-- Define the Visual Studio 2008 export action.
---
newaction {
-- Metada... | bsd-3-clause |
dcourtois/premake-core | modules/vstudio/tests/cs2005/test_files.lua | 14 | 9178 | --
-- tests/actions/vstudio/cs2005/test_files.lua
-- Validate generation of <Files/> block in Visual Studio 2005 .csproj
-- Copyright (c) 2009-2014 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vstudio_cs2005_files")
local dn2005 = p.vstudio.dotnetbase
--
-- Setup
--
loc... | bsd-3-clause |
andeandr100/Crumbled-World | Lua/Tower/supportManager.lua | 1 | 6858 | require("Tower/upgrade.lua")
SupportManager = {}
function SupportManager.new()
local self = {}
local upgrade --upgrade = Upgrade.new()
local comUnitTable
local comUnit = Core.getComUnit()
local onChangeCallback
--
local PERUNITDAMGINCPERLEVEL = 10
local PERDAMGINCPERLEVEL = 0.10
--
local restartListenerSupp... | mit |
gpedro/otclient | modules/gamelib/protocol.lua | 4 | 8464 | GameServerOpcodes = {
GameServerInitGame = 10,
GameServerGMActions = 11,
GameServerEnterGame = 15,
GameServerLoginError = 20,
GameServerLoginAdvice = 21,
GameServerLoginWait = 22,
GameServerAddCreat... | mit |
branden/dcos | packages/adminrouter/extra/src/lib/cache.lua | 1 | 23176 | local cjson_safe = require "cjson.safe"
local shmlock = require "resty.lock"
local http = require "resty.http"
local resolver = require "resty.resolver"
local util = require "util"
-- In order to make caching code testable, these constants need to be
-- configurable/exposed through env vars.
--
-- Values assigned to t... | apache-2.0 |
ovh/overthebox-feeds | luci-mod-admin-full/luasrc/model/cbi/admin_system/fstab.lua | 39 | 5639 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
require("luci.tools.webadmin")
local fs = require "nixio.fs"
local util = require "nixio.util"
local tp = require "luci.template.parser"
local block = io.popen("block info", "r")
local ln, dev, devices = n... | gpl-3.0 |
andeandr100/Crumbled-World | Lua/Game/spirits.lua | 1 | 5571 | SpiritsParticleEffect = {
endCrystalSpirit1 = {
WallboardParticle = true,
airResistance = 0,
color = {
color1 = {r = 0.65,g = 0.33,b = 0.05,a = 0.25,per = 0,size = 0.025},
color2 = {r = 1.20,g = 1.20,b = 0.15,a = 0.65,per = 0.25,size = 0.05},
color3 = {r = 0.80,g = 0.80,b = 0.80,a = 0.25,per... | mit |
MrTheSoulz/NerdPack | Libs/DiesalGUI-1.0/Objects/CheckBox.lua | 3 | 5705 | -- $Id: CheckBox.lua 60 2016-11-04 01:34:23Z diesal2010 $
local DiesalGUI = LibStub("DiesalGUI-1.0")
-- ~~| Libraries |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
local DiesalTools = LibStub("DiesalTools-1.0")
local Diesa... | mit |
Flatlander57/TheImaginedOTClient | modules/corelib/ui/uicombobox.lua | 3 | 3606 | -- @docclass
UIComboBox = extends(UIWidget)
function UIComboBox.create()
local combobox = UIComboBox.internalCreate()
combobox:setFocusable(false)
combobox.options = {}
combobox.currentIndex = -1
combobox.mouseScroll = true
return combobox
end
function UIComboBox:clearOptions()
self.options = {}
self.... | mit |
opensourcechipspark/platform_external_skia | tools/lua/bbh_filter.lua | 207 | 4407 | -- bbh_filter.lua
--
-- This script outputs info about 'interesting' skp files,
-- where the definition of 'interesting' changes but is roughly:
-- "Interesting for bounding box hierarchy benchmarks."
--
-- Currently, the approach is to output, in equal ammounts, the names of the files that
-- have most commands, and t... | bsd-3-clause |
MrTheSoulz/NerdPack | onload/apis.lua | 1 | 1698 | local NeP = NeP
local g = NeP.Globals
g.Actions = NeP.Actions
g.RegisterCommand = NeP.Commands.Register
g.Core = NeP.Core
g._G = NeP._G
g.FakeUnits = NeP.FakeUnits
g.Listener = NeP.Listener
g.Queue = NeP.Queuer.Add
g.Tooltip = NeP.Tooltip
g.Protected = NeP.Protected
g.Artifact = NeP.Artifact
g.DBM = NeP.DBM
g.ClassTab... | mit |
wangxing1517/kubernetes | test/images/echoserver/template.lua | 195 | 17200 | -- vendored from https://raw.githubusercontent.com/bungle/lua-resty-template/1f9a5c24fc7572dbf5be0b9f8168cc3984b03d24/lib/resty/template.lua
-- only modification: remove / from HTML_ENTITIES to not escape it, and fix the appropriate regex.
--[[
Copyright (c) 2014 - 2017 Aapo Talvensaari
All rights reserved.
Redistribu... | apache-2.0 |
dacrybabysuck/darkstar | scripts/zones/Sealions_Den/Zone.lua | 9 | 1216 | -----------------------------------
--
-- Zone: Sealions_Den (32)
--
-----------------------------------
local ID = require("scripts/zones/Sealions_Den/IDs")
require("scripts/globals/conquest")
require("scripts/globals/missions")
-----------------------------------
function onInitialize(zone)
end;
function onConquest... | gpl-3.0 |
soveran/stal | stal.lua | 2 | 1594 | -- Copyright (c) 2016 Michel Martens
local expr = cjson.decode(ARGV[1])
local tr = {
SDIFF = "SDIFFSTORE",
SINTER = "SINTERSTORE",
SUNION = "SUNIONSTORE",
ZINTER = "ZINTERSTORE",
ZUNION = "ZUNIONSTORE",
}
local function append(t1, t2)
for _, item in ipairs(t2) do
table.insert(t1, item)
end
end
lo... | mit |
dacrybabysuck/darkstar | scripts/globals/weaponskills/scourge.lua | 10 | 2112 | -----------------------------------
-- Scourge
-- Great Sword weapon skill
-- Skill level: N/A
-- Additional effect: temporarily improves params.critical hit rate.
-- params.critical hit rate boost duration is based on TP when the weapon skill is used. 100% TP will give 20 seconds of params.critical hit rate boost ... | gpl-3.0 |
pSyChOoOo/TeleSeed | .luarocks/share/lua/5.2/luarocks/make.lua | 18 | 3687 |
--- Module implementing the LuaRocks "make" command.
-- Builds sources in the current directory, but unlike "build",
-- it does not fetch sources, etc., assuming everything is
-- available in the current directory.
--module("luarocks.make", package.seeall)
local make = {}
package.loaded["luarocks.make"] = make
local... | gpl-2.0 |
skogler/GearHelper | libs/LibDataBroker-1.1/LibDataBroker-1.1.lua | 12 | 3229 |
assert(LibStub, "LibDataBroker-1.1 requires LibStub")
assert(LibStub:GetLibrary("CallbackHandler-1.0", true), "LibDataBroker-1.1 requires CallbackHandler-1.0")
local lib, oldminor = LibStub:NewLibrary("LibDataBroker-1.1", 4)
if not lib then return end
oldminor = oldminor or 0
lib.callbacks = lib.callbacks ... | mit |
p00ria/Blacklife-Pouria | plugins/Abjad.lua | 2 | 3981 | local numbers = {}
numbers['ا'] = 1
numbers['ب'] = 2
numbers['ج'] = 3
numbers['د'] = 4
numbers['ه'] = 5
numbers['و'] = 6
numbers['ز'] = 7
numbers['ح'] = 8
numbers['ط'] = 9
numbers['ی'] = 10
numbers['ک'] = 20
numbers['ل'] = 30
numbers['م'] = 40
numbers['ن'] = 50
numbers['س'] = 60
numbers['ع'] = 70
numbers['ف'] = 80
numb... | gpl-2.0 |
dacrybabysuck/darkstar | scripts/globals/items/moorish_idol.lua | 11 | 1051 | -----------------------------------------
-- ID: 5121
-- Item: Moorish Idol
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
-----------------------------------... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/mobskills/ion_shower.lua | 11 | 1056 | ---------------------------------------------
-- Ion Shower
--
-- Description: Calls forth an ion storm, dealing Lightning damage to all nearby targets. Additional effect: Stun
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: Unknown radial
-- Notes:
---------------------------------------------... | gpl-3.0 |
keviner2004/shoot-em-up | scenes/start.lua | 1 | 9269 | local composer = require("composer")
local MenuScene = require("scenes.templates.MenuScene")
local Sprite = require("Sprite")
local logger = require("logger")
local gameConfig = require("gameConfig")
local sfx = require("sfx")
local TAG = "START MENU"
local navigator = require("navigator")
local dbHelper = require("dbH... | mit |
dacrybabysuck/darkstar | scripts/zones/Lower_Jeuno/npcs/Bki_Tbujhja.lua | 9 | 4220 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Bki Tbujhja
-- Involved in Quest: The Old Monument
-- Starts and Finishes Quests: Path of the Bard (just start), The Requiem (BARD AF2)
-- !pos -22 0 -60 245
-----------------------------------
require("scripts/globals/settings");
require("scripts/global... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/items/butter_crepe.lua | 11 | 1187 | -----------------------------------------
-- ID: 5766
-- Item: Butter Crepe
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- HP +10% (cap 10)
-- Magic Accuracy +20% (cap 25)
-- Magic Defense +1
-----------------------------------------
require("scripts/globals/status")
require("scripts/glo... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Kemha_Flasehp.lua | 12 | 1754 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Kemha Flasehp
-- Type: Fishing Normal/Adv. Image Support
-- !pos -28.4 -6 -98 50
-----------------------------------
require("scripts/globals/status")
require("scripts/globals/crafting")
require("scripts/globals/npc_util")
local ID = require("sc... | gpl-3.0 |
myself1185/self | plugins/member.lua | 1 | 23879 | local function is_spromoted(chat_id, user_id)
local hash = 'sprom:'..chat_id..':'..user_id
local spromoted = redis:get(hash)
return spromoted or false
end
local function kick_user(user_id, chat_id)
local chat = 'chat#id'..chat_id
local user = 'user#id'..user_id
chat_del_user(chat, user, ok_cb, true)
end
... | gpl-3.0 |
simoncozens/lunamark | lunamark/writer/man.lua | 4 | 3084 | -- (c) 2009-2011 John MacFarlane. Released under MIT license.
-- See the file LICENSE in the source for details.
--- Groff man writer for lunamark.
-- Extends [lunamark.writer.groff].
--
-- Note: continuation paragraphs in lists are not
-- handled properly.
local M = {}
local groff = require("lunamark.writer.groff")... | mit |
xnyhps/luasec | src/https.lua | 4 | 3983 | ----------------------------------------------------------------------------
-- LuaSec 0.6a
-- Copyright (C) 2009-2015 PUC-Rio
--
-- Author: Pablo Musa
-- Author: Tomas Guisasola
---------------------------------------------------------------------------
local socket = require("socket")
local ssl = require("ssl")
l... | mit |
fgielow/devenserver | data/npc/scripts/soft.lua | 2 | 1514 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCrea... | gpl-2.0 |
22333322/i4bot | plugins/isup.lua | 741 | 3095 | do
local socket = require("socket")
local cronned = load_from_file('data/isup.lua')
local function save_cron(msg, url, delete)
local origin = get_receiver(msg)
if not cronned[origin] then
cronned[origin] = {}
end
if not delete then
table.insert(cronned[origin], url)
else
for k,v in pairs(cronned[... | gpl-2.0 |
dacrybabysuck/darkstar | scripts/commands/setmobflags.lua | 22 | 1334 | ---------------------------------------------------------------------------------------------------
-- func: setmobflags <flags> <optional MobID>
-- desc: Used to manipulate a mob's nameflags for testing.
-- MUST either target a mob first or else specify a Mob ID.
-------------------------------------------------... | gpl-3.0 |
fakechris/Atlas | tests/suite/base/t/bug_46141-test.lua | 4 | 1799 | --[[ $%BEGINLICENSE%$
Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; version 2 of the
License.
This program is distribut... | gpl-2.0 |
fetchbot/nodemcu-firmware | lua_modules/email/imap.lua | 81 | 6275 | ---
-- Working Example: https://www.youtube.com/watch?v=PDxTR_KJLhc
-- IMPORTANT: run node.compile("imap.lua") after uploading this script
-- to create a compiled module. Then run file.remove("imap.lua")
-- @name imap
-- @description An IMAP 4rev1 module that can be used to read email.
-- Tested on NodeMCU 0.9.5 buil... | mit |
dacrybabysuck/darkstar | scripts/globals/spells/bluemagic/zephyr_mantle.lua | 12 | 1175 | -----------------------------------------
-- Spell: Zephyr Mantle
-- Creates shadow images that each absorb a single attack directed at you
-- Spell cost: 31 MP
-- Monster Type: Dragons
-- Spell Type: Magical (Wind)
-- Blue Magic Points: 2
-- Stat Bonus: AGI+2
-- Level: 65
-- Casting Time: 7 seconds
-- Recast Time: 60 ... | gpl-3.0 |
cmingjian/skynet | service/service_mgr.lua | 8 | 3860 | local skynet = require "skynet"
require "skynet.manager" -- import skynet.register
local snax = require "skynet.snax"
local cmd = {}
local service = {}
local function request(name, func, ...)
local ok, handle = pcall(func, ...)
local s = service[name]
assert(type(s) == "table")
if ok then
service[name] = handle... | mit |
disslove2-bot/MAX-BOT | plugins/groupmanager.lua | 5 | 15183 | -- data saved to data/moderation.json
do
local function gpadd(msg)
-- because sudo are always has privilege
if not is_sudo(msg) then
return nil
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)] then
return 'Group is already added.'
end
-- create data array in mode... | gpl-2.0 |
dacrybabysuck/darkstar | scripts/zones/Bastok_Mines/npcs/Virnage.lua | 11 | 1920 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Virnage
-- Starts Quest: Altana's Sorrow
-- !pos 0 0 51 234
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/shop");
require("scripts/globals/quests");
local ID = requ... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Southern_San_dOria/npcs/Miogique.lua | 11 | 1523 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Miogique
-- Standard Merchant NPC
-----------------------------------
local ID = require("scripts/zones/Southern_San_dOria/IDs")
require("scripts/globals/npc_util")
require("scripts/globals/quests")
require("scripts/globals/shop")
function onTra... | gpl-3.0 |
Flatlander57/TheImaginedOTClient | modules/game_spelllist/spelllist.lua | 1 | 13272 | local SpelllistProfile = 'Default'
spelllistWindow = nil
spelllistButton = nil
spellList = nil
nameValueLabel = nil
formulaValueLabel = nil
vocationValueLabel = nil
groupValueLabel = nil
typeValueLabel = nil
cooldownValueLabel = nil
levelValueLabel = nil
mana... | mit |
francoiscote/dotfiles | hammerspoon/.hammerspoon/window-management/grid.lua | 1 | 2843 | helpers = require("window-management/helpers")
-- SETTINGS
-------------------------------------------------------------------------------
local gapSize = 10
local menuGapSize = 0
-- GRID
-------------------------------------------------------------------------------
local mainScreen = hs.screen.mainScreen()
local fr... | mit |
dacrybabysuck/darkstar | scripts/zones/Fort_Ghelsba/npcs/_3x1.lua | 14 | 1183 | -----------------------------------
-- Area: Fort Ghelsba
-- NPC: Elevator Lever (lower)
-- !pos -0.652 -28.996 100.445 141
-----------------------------------
require("scripts/globals/status")
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
-- local va... | gpl-3.0 |
CCAAHH/pm | plugins/bot_on_off.lua | 292 | 1641 | -- Checks if bot was disabled on specific chat
local function is_channel_disabled( receiver )
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local function enable_channel(receiver)
if... | gpl-2.0 |
keviner2004/shoot-em-up | sprites/tiles.lua | 1 | 1346 | --
-- created with TexturePacker (http://www.codeandweb.com/texturepacker)
--
-- $TexturePacker:SmartUpdate:53496ed08f6b65acc16dda6fa974ed8c:c8b1774d0c0e7018596b0041ca2be5c5:f4492607ea55a754477543692c89a688$
--
-- local sheetInfo = require("mysheet")
-- local myImageSheet = graphics.newImageSheet( "mysheet.png", sheetI... | mit |
dacrybabysuck/darkstar | scripts/zones/LaLoff_Amphitheater/bcnms/divine_might.lua | 9 | 2685 | -----------------------------------
-- Area: LaLoff Amphitheater
-- Name: Divine Might
--[[ caps:
7d01, 0, 529, 1, 950, 180, 6, 0, 0 --Neo AA HM
7d01, 0, 1400, 5, 1400, 180, 11, 0, 0 --Neo DM
7d01, 1, 405, 1, 1599, 180, 7, 0, 0 -- Neo AA TT
7d01, 1, 378, 3, 903, 180, 8, 0, 0 -- Neo AA MR
7d02, 0, 8... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/globals/abilities/pets/magic_mortar.lua | 11 | 1395 | ---------------------------------------------------
-- Magic Mortar
---------------------------------------------------
require("scripts/globals/status")
require("scripts/globals/settings")
require("scripts/globals/automatonweaponskills")
---------------------------------------------------
function onMobSkillCheck(ta... | gpl-3.0 |
kikito/Algorithm-Implementations | A_Star_Search/Lua/Yonaba/bheap.lua | 2 | 2404 | -- Binary Heap data structure implementation
-- See: http://www.policyalmanac.org/games/binaryHeaps.htm
-- Adapted from: https://github.com/Yonaba/Binary-Heaps
local class = require 'class'
-- Looks for item in an array
local function findIndex(array, item)
for k,v in ipairs(array) do
if v == item then return k... | mit |
dacrybabysuck/darkstar | scripts/globals/mobskills/digest.lua | 11 | 1112 | ---------------------------------------------
-- Digest
-- Deals dark damage to a single target. Additional effect: Drain
-- Type: Magical
-- Utsusemi/Blink absorb: 1 shadow
-- Range: Melee
-- Notes: If used against undead, it will simply do damage and not drain HP.
---------------------------------------------
require... | gpl-3.0 |
dcourtois/premake-core | modules/d/tools/gdc.lua | 4 | 7302 | --
-- d/tools/gdc.lua
-- Provides GDC-specific configuration strings.
-- Copyright (c) 2013-2015 Andrew Gough, Manu Evans, and the Premake project
--
local p = premake
p.tools.gdc = { }
local gdc = p.tools.gdc
local project = p.project
local config = p.config
local d = p.modules.d
--
-- Set default tools
--... | bsd-3-clause |
tung/doomrl | bin/core/level.lua | 2 | 10040 | function level:get_being_table( dlevel, weights, reqs, dmod )
local dmod = dmod or math.clamp( (DIFFICULTY-2)*3, 0, 6 )
local danger = dlevel or self.danger_level
local list = weight_table.new()
for _,b in ipairs(beings) do
if b.weight > 0 and danger+dmod >= b.min_lev and danger <= b.max_lev then
if core.... | gpl-2.0 |
Dingf/Icewrack | game/dota_addons/icewrack/scripts/vscripts/link_ext_ability.lua | 1 | 31419 | --[[
Icewrack Extended Ability Linker
]]
--TODO: Investigate whether we can stop the game from generating a dozen CastFilterResult calls
--There was a similar problem a while back with modifiers, see http://dev.dota2.com/showthread.php?t=172252&p=1247001&viewfull=1#post1247001
--However we don't have any identifyi... | mit |
aqasaeed/hesamsharr | plugins/banhammer.lua | 10 | 12148 |
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 |
aircross/OpenWrt-Firefly-LuCI | applications/luci-statistics/luasrc/model/cbi/luci_statistics/dns.lua | 78 | 1344 | --[[
Luci configuration model for statistics - collectd dns plugin configuration
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License a... | apache-2.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/endor/gnarled_donkuwah_spiritmaster.lua | 1 | 1095 | gnarled_donkuwah_spiritmaster = Creature:new {
objectName = "@mob/creature_names:gnarled_donkuwah_spiritmaster",
randomNameType = NAME_GENERIC,
randomNameTag = true,
socialGroup = "donkuwah_tribe",
faction = "donkuwah_tribe",
level = 35,
chanceHit = 0.41,
damageMin = 320,
damageMax = 350,
baseXp = 3551,
base... | agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/medicine/crafted/medpack_enhance_action_a.lua | 2 | 3072 | --Copyright (C) 2010 <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... | agpl-3.0 |
motoschifo/mame | plugins/inputmacro/init.lua | 12 | 3651 | -- license:BSD-3-Clause
-- copyright-holders:Vas Crabb
local exports = {
name = 'inputmacro',
version = '0.0.1',
description = 'Input macro plugin',
license = 'BSD-3-Clause',
author = { name = 'Vas Crabb' } }
local inputmacro = exports
function inputmacro.startplugin()
--[[
Configuration data:
* name: di... | gpl-2.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/particle/particle_test_20.lua | 3 | 2216 | --Copyright (C) 2010 <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... | agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/rori/garyns_thief.lua | 1 | 1251 | garyns_thief = Creature:new {
objectName = "@mob/creature_names:garyn_thief",
randomNameType = NAME_GENERIC,
randomNameTag = true,
socialGroup = "garyn",
faction = "garyn",
level = 15,
chanceHit = 0.31,
damageMin = 160,
damageMax = 170,
baseXp = 831,
baseHAM = 2400,
baseHAMmax = 3000,
armor = 0,
resists =... | agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/intangible/ship/tieadvanced_pcd.lua | 3 | 2212 | --Copyright (C) 2010 <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... | agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/intangible/pet/nuna_hue.lua | 3 | 2180 | --Copyright (C) 2010 <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... | agpl-3.0 |
lo7err/khodemuni | plugins/setrank.lua | 40 | 8897 | do
local Dev = 122774063 --put your id here(BOT OWNER ID)
local function setrank(msg, name, value) -- setrank function
local hash = nil
if msg.to.type == 'chat' then
hash = 'rank:'..msg.to.id..':variables'
end
if hash then
redis:hset(hash, name, value)
return send_msg('chat#id'..msg.to.id, 'مقام کاربر... | gpl-2.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/building/general/cave_02_ice.lua | 3 | 2200 | --Copyright (C) 2010 <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... | agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/event_perk/dant_imprv_flagpole_s01.lua | 1 | 2418 | --Copyright (C) 2010 <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... | agpl-3.0 |
jbeley/packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan3/mwan3_policy.lua | 9 | 2668 | -- ------ extra functions ------ --
function policy_check() -- check to see if any policy names exceed the maximum of 15 characters
uci.cursor():foreach("mwan3", "policy",
function (section)
if string.len(section[".name"]) > 15 then
toolong = 1
err_name_list = err_name_list .. section[".name"] .. " "
... | gpl-2.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/space/booster/fast_charge_fuel_cell_mk1.lua | 1 | 3328 | --Copyright (C) 2010 <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... | agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/mobile/dressed_draya_korbinari.lua | 3 | 2208 | --Copyright (C) 2010 <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... | agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/tangible/ship/attachment/weapon/bwing_weapon1_s05.lua | 3 | 2284 | --Copyright (C) 2010 <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... | agpl-3.0 |
istayping/istyping | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/loot/items/armor/bone_armor_bicep_l.lua | 4 | 1129 | bone_armor_bicep_l = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "Bone Armor Left Bicep",
directObjectTemplate = "object/tangible/wearables/armor/bone/armor_bone_s01_bicep_l.iff",
craftingValues = {
{"armor_rating",1,1,0},
{"energyeffectiveness",10,35,10},
{"armor_effectiveness",4,19,10},
{"a... | agpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/static/structure/general/prp_junk_s5.lua | 3 | 2232 | --Copyright (C) 2010 <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... | agpl-3.0 |
TerraME/terrame | test/packages/depend/tests/Tube.lua | 30 | 1562 | -------------------------------------------------------------------------------------------
-- TerraME - a software platform for multiple scale spatially-explicit dynamic modeling.
-- Copyright (C) 2001-2014 INPE and TerraLAB/UFOP.
--
-- This code is part of the TerraME framework.
-- This framework is free software; yo... | lgpl-3.0 |
Tatwi/legend-of-hondo | MMOCoreORB/bin/scripts/object/draft_schematic/clothing/clothing_ith_shirt_formal_10.lua | 1 | 3307 | --Copyright (C) 2010 <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... | agpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.