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 |
|---|---|---|---|---|---|
nesstea/darkstar | scripts/zones/Dynamis-San_dOria/bcnms/dynamis_sandoria.lua | 22 | 1331 | -----------------------------------
-- Area: Dynamis San d'Oria
-- Name: Dynamis San d'Oria
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[DynaSandoria]UniqueID",player:getDynamisUniqueID(1281));
SetSe... | gpl-3.0 |
JulioC/telegram-bot | 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 |
magnan/cordova-cef | 3rdparty/pugixml/scripts/premake4.lua | 128 | 2376 | -- Reset RNG seed to get consistent results across runs (i.e. XCode)
math.randomseed(12345)
local static = _ARGS[1] == 'static'
local action = premake.action.current()
if string.startswith(_ACTION, "vs") then
if action then
-- Disable solution generation
function action.onsolution(sln)
sln.vstudio_configs = p... | apache-2.0 |
nesstea/darkstar | scripts/zones/Qufim_Island/npcs/Numumu_WW.lua | 13 | 3323 | -----------------------------------
-- Area: Qufim Island
-- NPC: Numumu, W.W.
-- Type: Border Conquest Guards
-- @pos 179.093 -21.575 -15.282 126
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
re... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Promyvion-Vahzl/npcs/_0md.lua | 13 | 1390 | -----------------------------------
-- Area: Promyvion vahzl
-- NPC: Memory flux (2)
-----------------------------------
package.loaded["scripts/zones/Promyvion-Vahzl/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Promyvion-Vahzl/TextIDs");
require("sc... | gpl-3.0 |
malortie/gmod-addons | th_weapons/lua/weapons/weapon_th_chaingun/shared.lua | 1 | 14213 | -- Only enable this addon if HL:S is mounted.
if !IsHL1Mounted() then return end
-- Define a global variable to ease calling base class methods.
DEFINE_BASECLASS( 'weapon_th_base' )
SWEP.Base = 'weapon_th_base'
SWEP.PrintName = 'Chaingun'
SWEP.Author = 'Marc-Antoine (malortie) Lortie'
SWEP.Contact = ''
SWEP.Purpose =... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/items/loach_slop.lua | 35 | 1529 | -----------------------------------------
-- ID: 5669
-- Item: loach_slop
-- Food Effect: 3Hour,Group Food, All Races
-----------------------------------------
-- Accuracy % 7
-- Accuracy Cap 15
-- HP % 7
-- HP Cap 15
-- Evasion 3
-- (Did Not Add Group Food Effect)
-----------------------------------------
... | gpl-3.0 |
slawekb/domoticz-scripts | script_time_thermostat.lua | 1 | 4828 | -- A thermostat script that I use to control my gas boiler. It uses data
-- from a 433,92MHz temperature sensor and a few other inputs to regulate temperature
-- It is based on a script by Martin Rourke:
-----------------------------------------------------------------------------------------------
-- Heating Control
-... | gpl-3.0 |
vanish87/skia | tools/lua/glyph-counts.lua | 91 | 2733 | function tostr(t)
local str = ""
for k, v in next, t do
if #str > 0 then
str = str .. ", "
end
if type(k) == "number" then
str = str .. "[" .. k .. "] = "
else
str = str .. tostring(k) .. " = "
end
if type(v) == "table" then
... | bsd-3-clause |
hamed9898/maxbot | plugins/channels.lua | 356 | 1732 | -- 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 |
nesstea/darkstar | scripts/globals/settings.lua | 4 | 11935 | -----------------------------------------------
------------- GLOBAL SETTINGS -------------
-----------------------------------------------
-- This is to allow server operators to further customize their servers. As more features are added to pXI, the list will surely expand.
-- Anything scripted can be customize... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Port_San_dOria/npcs/Dabbio.lua | 13 | 1051 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Dabbio
-- Type: Standard NPC
-- @zone: 232
-- @pos -7.819 -15 -106.990
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-------------... | gpl-3.0 |
nesstea/darkstar | scripts/globals/mobskills/Hydro_Canon.lua | 33 | 1323 | ---------------------------------------------------
-- Hydro_Canon
-- Description:
-- Type: Magical
-- additional effect : 40hp/tick Poison
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
-------... | gpl-3.0 |
gabri94/packages-2 | net/acme/files/acme-cbi.lua | 27 | 2719 | --[[
LuCI - Lua Configuration Interface
Copyright 2016 Toke Høiland-Jørgensen <toke@toke.dk>
# 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 your option... | gpl-2.0 |
UnfortunateFruit/darkstar | scripts/globals/spells/bluemagic/regeneration.lua | 9 | 1147 | -----------------------------------------
-- Spell: Regeneration
-- Gradually restores HP
-- Spell cost: 36 MP
-- Monster Type: Aquans
-- Spell Type: Magical (Light)
-- Blue Magic Points: 2
-- Stat Bonus: MND+2
-- Level: 78
-- Casting Time: 2 Seconds
-- Recast Time: 60 Seconds
-- Spell Duration: 30 ticks, 90 Seconds
--... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Castle_Oztroja/npcs/Brass_Statue.lua | 19 | 1375 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: Brass Statue
-- Type: Passageway Machine
-- @pos -60.061 -4.348 -61.538 151 (1)
-- @pos -18.599 -19.307 20.024 151 (2)
-- @pos -60 22 -100 151 (3)
-- @pos -100 -72 -19 151 (4)
-----------------------------------
package.loaded["scripts/zones/Cast... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Fort_Karugo-Narugo_[S]/npcs/Logging_Point.lua | 29 | 1128 | -----------------------------------
-- Area: Fort Karugo-Narugo [S]
-- NPC: Logging Point
-----------------------------------
package.loaded["scripts/zones/Fort_Karugo-Narugo_[S]/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/logging");
require("scripts/zones/Fort_Karugo-Nar... | gpl-3.0 |
VurtualRuler98/kswep2-NWI | lua/ins_sounds/sounds_ppk.lua | 1 | 1600 | if (SERVER) then
AddCSLuaFile()
end
--ppk
sound.Add({
name="Weapon_ppk.Single",
volume = 1.0,
pitch = {100,105},
sound = "weapons/ppk/ppk_fp.wav",
level = 142,
channel = CHAN_STATIC
})
sound.Add({
name="Weapon_ppk.Magrelease",
volume = 0.2,
sound = "weapons/ppk/handling/ppk_magrelease.wav",
level = 65,
chan... | apache-2.0 |
nesstea/darkstar | scripts/globals/spells/bluemagic/sprout_smack.lua | 26 | 1859 | -----------------------------------------
-- Spell: Sprout Smack
-- Additional effect: Slow. Duration of effect varies with TP
-- Spell cost: 6 MP
-- Monster Type: Plantoids
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 2
-- Stat Bonus: MND+1
-- Level: 4
-- Casting Time: 0.5 seconds
-- Recast Time: 7.25 seconds... | gpl-3.0 |
vonflynee/opencomputersserver | world/opencomputers/6d437cc7-8fe8-4147-8a29-4c8b62fcedc7/bin/ls.lua | 15 | 2632 | local component = require("component")
local fs = require("filesystem")
local shell = require("shell")
local text = require('text')
local dirs, options = shell.parse(...)
if #dirs == 0 then
table.insert(dirs, ".")
end
local function formatOutput()
return component.isAvailable("gpu") and io.output() == io.stdout
e... | mit |
Spartan322/finalfrontier | gamemode/sgui/slider.lua | 2 | 4431 | -- Copyright (c) 2014 James King [metapyziks@gmail.com]
--
-- This file is part of Final Frontier.
--
-- Final Frontier 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 3 of
-- the Lic... | lgpl-3.0 |
Olipro/Payday-2-BLT_Club-Sandwich-Edition | mods/base/req/download_progress_dialog.lua | 2 | 3355 |
local LuaModUpdates = _G.LuaModUpdates
core:module("SystemMenuManager")
require("lib/managers/dialogs/GenericDialog")
DownloadProgressDialog = DownloadProgressDialog or class(GenericDialog)
function DownloadProgressDialog:init(manager, data, is_title_outside)
Dialog.init(self, manager, data)
if not self._data.focu... | mit |
nesstea/darkstar | scripts/globals/abilities/konzen-ittai.lua | 27 | 1660 | -----------------------------------
-- Ability: Konzen-Ittai
-- Readies target for a skillchain.
-- Obtained: Samurai Level 65
-- Recast Time: 0:03:00
-- Duration: 1:00 or until next Weapon Skill
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("script... | gpl-3.0 |
0xd4d/iced | src/rust/iced-x86-lua/lua/types/iced_x86/MemorySizeInfo.lua | 1 | 6064 | -- SPDX-License-Identifier: MIT
-- Copyright (C) 2018-present iced project and contributors
-- ⚠️This file was generated by GENERATOR!🦹♂️
---@meta
---@diagnostic disable unused-local
---`MemorySize` enum info, see also `MemorySizeExt`
---
---@class MemorySizeInfo
local MemorySizeInfo = {}
---`MemorySize` enum inf... | mit |
nesstea/darkstar | scripts/globals/weaponskills/backhand_blow.lua | 11 | 1348 | -----------------------------------
-- Backhand Blow
-- Hand-to-Hand weapon skill
-- Skill Level: 100
-- Deals params.critical damage. Chance of params.critical hit varies with TP.
-- Aligned with the Breeze Gorget.
-- Aligned with the Breeze Belt.
-- Element: None
-- Modifiers: STR:30% ; DEX:30%
-- 100%TP 200%TP ... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/commands/additem.lua | 27 | 1341 | ---------------------------------------------------------------------------------------------------
-- func: @additem <itemId> <quantity> <aug1> <v1> <aug2> <v2> <aug3> <v3> <aug4> <v4> <trial>
-- desc: Adds an item to the GMs inventory.
-------------------------------------------------------------------------------... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Outer_RaKaznar/npcs/Liseran_Door_Exit.lua | 15 | 1226 | -----------------------------------
-- Area: Outer Ra'Kaznar
-- NPC: Liseran Door Exit
-- Zones out to Kamihr Drifts (zone 267)
-- @zone 274
-- @pos -34.549 -181.334 -20.031
-----------------------------------
package.loaded["scripts/zones/Outer_RaKaznar/TextIDs"] = nil;
-----------------------------------
r... | gpl-3.0 |
nesstea/darkstar | scripts/globals/spells/bluemagic/battery_charge.lua | 28 | 1450 | -----------------------------------------
-- Spell: Battery Charge
-- Gradually restores MP
-- Spell cost: 50 MP
-- Monster Type: Arcana
-- Spell Type: Magical (Light)
-- Blue Magic Points: 3
-- Stat Bonus: MP+10, MND+1
-- Level: 79
-- Casting Time: 5 seconds
-- Recast Time: 75 seconds
-- Spell Duration: 100 ticks, 300... | gpl-3.0 |
jballanc/aydede | src/grammar.lua | 1 | 12269 | --[[ grammar.lua
A simple LPeg grammar for scheme.
In order to be as flexible as possible, this grammar only parses tokens from
input. All interpretation and evaluation tasks are handled by the interpreter
which is provided as an argument to the main function returned by this
module.
Copyright (c) 2014, ... | bsd-2-clause |
UnfortunateFruit/darkstar | scripts/zones/RoMaeve/Zone.lua | 6 | 2425 | -----------------------------------
--
-- Zone: RoMaeve (122)
--
-----------------------------------
package.loaded["scripts/zones/RoMaeve/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/RoMaeve/TextIDs");
require("scripts/globals/zone");
--... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Port_San_dOria/npcs/Vounebariont.lua | 27 | 2108 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Vounebariont
-- Starts and Finishes Quest: Thick Shells
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals... | gpl-3.0 |
e7/latasia | lua_app/lib/lua/proto_sjsonb.lua | 1 | 1239 | local ltspack = require "ltspack"
local _M = {_VERSION = '0.01'}
function _M.encode(proto_type, content)
local rslt = string.pack(">I2S2I2A",
0xE78F8A9D, 1000, proto_type, 20, #content, 0, content)
return rslt
end
-- 返回未决数据偏移,内容类型,内容数据,错误信息
function _M.decode(bytebuffer, ofst)
local find_pack =... | gpl-2.0 |
nesstea/darkstar | scripts/zones/Xarcabard_[S]/Zone.lua | 32 | 1259 | -----------------------------------
--
-- Zone: Xarcabard_[S] (137)
--
-----------------------------------
package.loaded["scripts/zones/Xarcabard_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Xarcabard_[S]/TextIDs");
-----------------------------... | gpl-3.0 |
aminsa2000/create-me | plugins/arabic_lang.lua | 12 | 22231 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
UnfortunateFruit/darkstar | scripts/zones/LaLoff_Amphitheater/Zone.lua | 32 | 1666 | -----------------------------------
--
-- Zone: LaLoff_Amphitheater (180)
--
-----------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Outer_Horutoto_Ruins/npcs/_5eh.lua | 19 | 3309 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Ancient Magical Gizmo #4 (H out of E, F, G, H, I, J)
-- Involved In Mission: The Heart of the Matter
-----------------------------------
package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Balgas_Dais/Zone.lua | 30 | 1783 | -----------------------------------
--
-- Zone: Balgas_Dais (146)
--
-----------------------------------
package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Balgas_Dais/TextIDs");
-----------------------------------... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/abilities/charm.lua | 28 | 1164 | -----------------------------------
-- Ability: Charm a monster
-- Tames a monster to fight by your side.
-- Obtained: Beastmaster Level 1
-- Recast Time: 0:15
-- Duration: Varies
-- Check |Duration
-- ---------------- |--------------
-- Too Weak |30 Minutes
-- Easy Prey |20 Minutes
... | gpl-3.0 |
nesstea/darkstar | scripts/globals/spells/bluemagic/corrosive_ooze.lua | 25 | 1991 | -----------------------------------------
-- Spell: Corrosive Ooze
-- Deals water damage to an enemy. Additional Effect: Attack Down and Defense Down
-- Spell cost: 55 MP
-- Monster Type: Amorphs
-- Spell Type: Magical (Water)
-- Blue Magic Points: 4
-- Stat Bonus: HP-10 MP+10
-- Level: 66
-- Casting Time: 5 seconds
--... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Windurst_Waters/npcs/Ensasa.lua | 13 | 1810 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Ensasa
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/events/harvest_festivals")
require("scripts/globals/shop");
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = n... | gpl-3.0 |
Xileck/forgottenserver | data/migrations/7.lua | 58 | 2518 | function onUpdateDatabase()
print("> Updating database to version 8 (account viplist with description, icon and notify server side)")
db.query("RENAME TABLE `player_viplist` TO `account_viplist`")
db.query("ALTER TABLE `account_viplist` DROP FOREIGN KEY `account_viplist_ibfk_1`")
db.query("UPDATE `account_viplist` ... | gpl-2.0 |
UnfortunateFruit/darkstar | scripts/commands/promote.lua | 26 | 1214 | ---------------------------------------------------------------------------------------------------
-- func: promote
-- desc: Promotes the player to a new GM level.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameter... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Dynamis-Qufim/bcnms/dynamis_Qufim.lua | 22 | 1270 | -----------------------------------
-- Area: dynamis_Qufim
-- Name: dynamis_Qufim
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[DynaQufim]UniqueID",player:getDynamisUniqueID(1288));
SetServerVariabl... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Port_San_dOria/npcs/Louis.lua | 12 | 1266 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Louis
-- Type: Standard NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
require("scripts/zones/Port_San_dOria/TextIDs");
-----------------------------------
-- onTrade Action
---------------... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/spells/holy.lua | 31 | 1129 | -----------------------------------------
-- Spell: Holy
-- Deals light damage to an enemy.
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
fun... | gpl-3.0 |
dpino/snabbswitch | lib/ljsyscall/syscall/linux/x86/nr.lua | 18 | 7167 | -- x86 syscall numbers
local nr = {
SYS = {
restart_syscall = 0,
exit = 1,
fork = 2,
read = 3,
write = 4,
open = 5,
close = 6,
waitpid = 7,
creat = 8,
link = 9,
unlink = 10,
execve = 11,
chdir = 12,
time = 13,
mknod = 14,
chmod = 15,
lchown ... | apache-2.0 |
UnfortunateFruit/darkstar | scripts/zones/Port_Windurst/npcs/Ohruru.lua | 19 | 4677 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Ohruru
-- Starts & Finishes Repeatable Quest: Catch me if you can
-- Working 90%
-- Involved in Quest: Wonder Wands
-- Note: Animation for his "Cure" is not functioning. Unable to capture option 1, so if the user says no, he heals them anyway... | gpl-3.0 |
tectronics/afrimesh | package-scripts/openwrt/afrimesh/files.provision/www/cgi-bin/provision.lua | 5 | 4062 | #!/usr/bin/lua
--[[ includes ]]------------------------------------------------------------
require "luarocks.require"
require "json"
-- http://wiki.openwrt.org/doc/devel/uci-lua
package.cpath = package.cpath .. ";/Users/antoine/afrimesh/ext/darwin/lib/lua5.1/?.so"
package.cpath = package.cpath .. ";/usr/share/lua/5.1... | bsd-3-clause |
vonflynee/opencomputersserver | world/opencomputers/6d437cc7-8fe8-4147-8a29-4c8b62fcedc7/bin/cp.lua | 13 | 3960 | local fs = require("filesystem")
local shell = require("shell")
local args, options = shell.parse(...)
if #args < 2 then
io.write("Usage: cp [-inrv] <from...> <to>\n")
io.write(" -i: prompt before overwrite (overrides -n option).\n")
io.write(" -n: do not overwrite an existing file.\n")
io.write(" -r: copy dir... | mit |
vonflynee/opencomputersserver | world/opencomputers/05fe03dc-84c6-416b-a304-6f79787f6411/bin/cp.lua | 13 | 3960 | local fs = require("filesystem")
local shell = require("shell")
local args, options = shell.parse(...)
if #args < 2 then
io.write("Usage: cp [-inrv] <from...> <to>\n")
io.write(" -i: prompt before overwrite (overrides -n option).\n")
io.write(" -n: do not overwrite an existing file.\n")
io.write(" -r: copy dir... | mit |
ystk/tools-yocto1-rpm | syck/ext/lua/test.lua | 1 | 2332 |
require "yaml"
require "lunit"
lunit.import "all"
local testcase = lunit.TestCase("LuaYAML Testcases")
function testcase.test_load()
assert_error(function() syck.load() end)
assert_nil(syck.load("--- "))
assert_true(syck.load("--- true"))
assert_false(syck.load("--- false"))
assert_equal(10, syck.load("--- 10"... | lgpl-2.1 |
nesstea/darkstar | scripts/globals/pets.lua | 15 | 34924 | -----------------------------------
--
-- PETS ID
--
-----------------------------------
-----------------------------------
-- PETTYPE
-----------------------------------
PETTYPE_AVATAR = 0;
PETTYPE_WYVERN = 1;
PETTYPE_JUGPET = 2;
PETTYPE_CHARMED_MOB = 3;
PETTYPE_AUTOMATON ... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/spells/dia_iii.lua | 5 | 2715 | -----------------------------------------
-- Spell: Dia III
-- Lowers an enemy's defense and gradually deals light elemental damage.
-- caster:getMerit() returns a value which is equal to the number of merit points TIMES the value of each point
-- Dia III value per point is '30' This is a constant set in the table ... | gpl-3.0 |
hamed9898/maxbot | plugins/pokedex.lua | 626 | 1668 | do
local images_enabled = true;
local function get_sprite(path)
local url = "http://pokeapi.co/"..path
print(url)
local b,c = http.request(url)
local data = json:decode(b)
local image = data.image
return image
end
local function callback(extra)
send_msg(extra.receiver, extra.text, ok_cb, false)
end
lo... | gpl-2.0 |
kidanger/Drystal | src/particle/particle.lua | 1 | 2143 | local drystal = require 'drystal'
local System = drystal.System
local function is_getset(funcname)
if funcname:sub(1, string.len('set_min_')) == 'set_min_' then
return true
end
return false
end
local funcs = {}
for k, v in pairs(System) do
if is_getset(k) then
local attr = k:sub(string.len('get_min_') + 1)
... | gpl-3.0 |
plajjan/snabbswitch | src/lib/hash/base.lua | 15 | 2923 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
-- Abstract base class for hash functions.
--
-- A subclass must define the instance variable "_size" as the number
-- of bits in the output of the hash function. The standard
-- constructor expects that the hash size is at least 32 and is... | apache-2.0 |
vonflynee/opencomputersserver | world/opencomputers/f6b12c72-550e-4c86-b7bc-3a72d250d375/lib/text.lua | 16 | 3341 | local unicode = require("unicode")
local text = {}
function text.detab(value, tabWidth)
checkArg(1, value, "string")
checkArg(2, tabWidth, "number", "nil")
tabWidth = tabWidth or 8
local function rep(match)
local spaces = tabWidth - match:len() % tabWidth
return match .. string.rep(" ", spaces)
end
... | mit |
vonflynee/opencomputersserver | world/opencomputers/6d437cc7-8fe8-4147-8a29-4c8b62fcedc7/lib/text.lua | 16 | 3341 | local unicode = require("unicode")
local text = {}
function text.detab(value, tabWidth)
checkArg(1, value, "string")
checkArg(2, tabWidth, "number", "nil")
tabWidth = tabWidth or 8
local function rep(match)
local spaces = tabWidth - match:len() % tabWidth
return match .. string.rep(" ", spaces)
end
... | mit |
UnfortunateFruit/darkstar | scripts/zones/Kazham/npcs/Mamerie.lua | 37 | 1372 | -----------------------------------
-- Area: Kazham
-- NPC: Mamerie
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Act... | gpl-3.0 |
nesstea/darkstar | scripts/globals/items/red_curry_bun.lua | 18 | 2193 | -----------------------------------------
-- ID: 5759
-- Item: red_curry_bun
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- Health 25
-- Strength 7
-- Agility 1
-- Intelligence -2
-- Attack % 23
-- Attack Cap 150 (cap 150)
-- Ranged Atk % 23 (cap 150)
-- Demon Killer 4
-- HP recovered wh... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/items/dish_of_spaghetti_carbonara.lua | 35 | 1821 | -----------------------------------------
-- ID: 5190
-- Item: dish_of_spaghetti_carbonara
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health % 14
-- Health Cap 175
-- Magic 10
-- Strength 4
-- Vitality 2
-- Intelligence -3
-- Attack % 18
-- Attack Cap 65
-- Store TP 6
--... | gpl-3.0 |
DevCobra/Cobra.iraq | plugin/kick.lua | 1 | 1112 |
do
local function run(msg, matches)
if matches[1] == 'زحلك' and is_momod(msg) then
if type(msg.reply_id) ~= "nil" then
local cbreply_extra = {
get_cmd = 'channel_block',
msg = msg
}
get_message(msg.reply_id, get_message_callback, cbrep... | gpl-2.0 |
nesstea/darkstar | scripts/globals/mobskills/Ill_Wind.lua | 33 | 1407 | ---------------------------------------------
-- Ill Wind
-- Description: Deals Wind damage to enemies within an area of effect. Additional effect: Dispel
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes Shadows
-- Range: Unknown radial
-- Notes: Only used by Puks in Mamook, Besieged, and the following Notorious ... | gpl-3.0 |
nesstea/darkstar | scripts/zones/FeiYin/npcs/Strange_Apparatus.lua | 27 | 1124 | -----------------------------------
-- Area: FeiYin
-- NPC: Strange Apparatus
-- @pos -94 -15 220 204
-----------------------------------
package.loaded["scripts/zones/FeiYin/TextIDs"] = nil;
require("scripts/zones/FeiYin/TextIDs");
require("scripts/globals/strangeapparatus");
-----------------------------------
--... | gpl-3.0 |
Cyumus/NutScript | gamemode/core/derma/cl_tooltip.lua | 3 | 2317 | local tooltip_delay = CreateClientConVar( "tooltip_delay", "0.5", true, false )
local PANEL = {}
function PANEL:Init()
self:SetDrawOnTop( true )
self.DeleteContentsOnClose = false
self:SetText( "" )
self:SetFont( "nutToolTipText" )
end
function PANEL:UpdateColours(skin)
return self:SetTextStyleColor(color_blac... | mit |
vonflynee/opencomputersserver | world/opencomputers/6d437cc7-8fe8-4147-8a29-4c8b62fcedc7/lib/shell.lua | 15 | 5213 | local fs = require("filesystem")
local text = require("text")
local unicode = require("unicode")
local shell = {}
local aliases = {}
-- Cache loaded shells for command execution. This puts the requirement on
-- shells that they do not keep a global state, since they may be called
-- multiple times, but reduces memory... | mit |
vonflynee/opencomputersserver | world/opencomputers/05fe03dc-84c6-416b-a304-6f79787f6411/lib/shell.lua | 15 | 5213 | local fs = require("filesystem")
local text = require("text")
local unicode = require("unicode")
local shell = {}
local aliases = {}
-- Cache loaded shells for command execution. This puts the requirement on
-- shells that they do not keep a global state, since they may be called
-- multiple times, but reduces memory... | mit |
UnfortunateFruit/darkstar | scripts/globals/mobskills/Panzerfaust.lua | 25 | 1285 | ---------------------------------------------
-- Panzerfaust
--
-- Description: Strikes a target twice with an armored fist. Additional effect: Knockback
-- Type: Physical
-- Utsusemi/Blink absorb: 2 shadows
-- Range: Melee
-- Notes:
---------------------------------------------
require("scripts/global... | gpl-3.0 |
NezzKryptic/Wire-Extras | lua/autorun/server/lib-gui-panel-server.lua | 1 | 13612 | AddCSLuaFile ("autorun/shared/lib-gui-panel-shared.lua")
AddCSLuaFile ("autorun/client/lib-gui-panel-client.lua")
include ("autorun/shared/lib-gui-panel-shared.lua")
guiP_schemeTable = {}
local nVal = 1
for k,sch in pairs(guiP_colourScheme) do
--Msg("found scheme "..k.."\n")
guiP_schemeTable[k] = nVal
nVal = nVal ... | gpl-3.0 |
morganzhh/sysrepo | swig/lua/tests/changes.lua | 1 | 4673 | local sr = require("libsysrepoLua")
local lu = require('luaunit')
local MODULE_NAME = 'swig-test' -- name of module used for testing
local LOW_BOUND = 10 -- for testing purposes, index of lowest 'eth' interface name
local HIGH_BOUND = 20 -- for testing purposes, index of highest 'e... | apache-2.0 |
vonflynee/opencomputersserver | world/opencomputers/a3abb948-eba5-4c6b-9388-1bb1f150ed2b/lib/event.lua | 16 | 6257 | local computer = require("computer")
local keyboard = require("keyboard")
local event, listeners, timers = {}, {}, {}
local lastInterrupt = -math.huge
local function call(callback, ...)
local result, message = pcall(callback, ...)
if not result and type(event.onError) == "function" then
pcall(event.onError, m... | mit |
vonflynee/opencomputersserver | world/opencomputers/c0a0157a-e685-4d05-9dc9-9340cf29f413/lib/event.lua | 16 | 6257 | local computer = require("computer")
local keyboard = require("keyboard")
local event, listeners, timers = {}, {}, {}
local lastInterrupt = -math.huge
local function call(callback, ...)
local result, message = pcall(callback, ...)
if not result and type(event.onError) == "function" then
pcall(event.onError, m... | mit |
inmation/library | inmation/dropzone-file-parser.lua | 1 | 2427 | -- inmation.dropzone-file-parser
-- inmation Script Library Lua Script
--
-- (c) 2017 inmation
--
-- Version history:
--
-- 20161017.1 Initial release.
--
local ioLib = require('io')
local DropzoneFileParser = {
onListeners = {}, -- Array of objects with { action, callback }
}
DropzoneFileParser.__index = ... | mit |
Spartan322/finalfrontier | gamemode/sgui/securitypage.lua | 3 | 4099 | -- Copyright (c) 2014 James King [metapyziks@gmail.com]
--
-- This file is part of Final Frontier.
--
-- Final Frontier 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 3 of
-- the Lic... | lgpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/items/blackened_newt.lua | 35 | 1569 | -----------------------------------------
-- ID: 4581
-- Item: Blackened Newt
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Dexterity 4
-- Mind -3
-- Attack % 18
-- Attack Cap 60
-- Virus Resist 5
-- Charm Resist 5
-----------------------------------------
require("scripts... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/items/jar_of_ground_wasabi.lua | 35 | 1587 | -----------------------------------------
-- ID: 5164
-- Item: jar_of_ground_wasabi
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Strength -1
-- Dexterity -1
-- Agility -1
-- Vitality -1
-- Intelligence -1
-- Mind -1
-- Charisma -1
-----------------------------------------
... | gpl-3.0 |
microbang/luasocket | etc/tftp.lua | 59 | 4718 | -----------------------------------------------------------------------------
-- TFTP support for the Lua language
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: tftp.lua,v 1.16 2005/11/22 08:33:29 diego Exp $
-----------------------------------------------------------------------------
-----------------... | mit |
nesstea/darkstar | scripts/zones/RuLude_Gardens/npcs/Nomad_Moogle.lua | 25 | 6265 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Nomad Moogle
-- Type: Adventurer's Assistant
-- @pos 10.012 1.453 121.883 243
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Port_Jeuno/npcs/Guddal.lua | 19 | 2156 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Guddal
-- Starts and Finishes Quest: Kazham Airship Pass (This quest does not appear in your quest log)
-- @zone 246
-- @pos -14 8 44
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
-------------------... | gpl-3.0 |
alirezanile/LaSt-GaMfg | plugins/id.lua | 30 | 5808 | --[[
Print user identification/informations by replying their post or by providing
their username or print_name.
!id <text> is the least reliable because it will scan trough all of members
and print all member with <text> in their print_name.
chat_info can be displayed on group, send it into PM, or save as file then... | gpl-2.0 |
nesstea/darkstar | scripts/zones/Windurst_Waters/npcs/Bondada.lua | 13 | 1964 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Bondada
-- Involved in Quests: Hat in Hand
-- Working 100%
-- @zone = 238
-- @pos = -66 -3 -148
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-----------------------------------
requir... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Riverne-Site_B01/Zone.lua | 15 | 1799 | -----------------------------------
--
-- Zone: Riverne-Site_B01
--
-----------------------------------
package.loaded["scripts/zones/Riverne-Site_B01/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Riverne-Site_B01/TextIDs");
require("scripts/globals/status");
require("scripts/... | gpl-3.0 |
Cyumus/NutScript | plugins/propprotect.lua | 4 | 3829 | PLUGIN.name = "Basic Prop Protection"
PLUGIN.author = "Chessnut"
PLUGIN.desc = "Adds a simple prop protection system."
local PROP_BLACKLIST = {
["models/props_combine/combinetrain02b.mdl"] = true,
["models/props_combine/combinetrain02a.mdl"] = true,
["models/props_combine/combinetrain01.mdl"] = true,
["models/cran... | mit |
Mashape/kong | spec/03-plugins/18-acl/03-invalidations_spec.lua | 2 | 7126 | local helpers = require "spec.helpers"
for _, strategy in helpers.each_strategy() do
describe("Plugin: ACL (invalidations) [#" .. strategy .. "]", function()
local admin_client
local proxy_client
local consumer
local acl
local db
before_each(function()
local bp
bp, db = helpers.g... | apache-2.0 |
nesstea/darkstar | scripts/zones/Attohwa_Chasm/mobs/Tiamat.lua | 6 | 3294 | -----------------------------------
-- Area: Attohwa Chasm
-- MOB: Tiamat
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize(mob)
end;
--... | gpl-3.0 |
hussian/hell_iraq | plugins/writer.lua | 13 | 15918 | --[[
#
#ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#:((
# For More Information ....!
# Developer : Aziz < @TH3_GHOST >
# our channel: @DevPointTeam
# Version: 1.1
#:))
#ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#
]]
lo... | gpl-2.0 |
UnfortunateFruit/darkstar | scripts/zones/The_Garden_of_RuHmet/npcs/Ebon_Panel.lua | 19 | 3707 | -----------------------------------
-- Area: The Garden of RuHmet
-- NPC: Ebon_Panel
-- @pos 100.000 -5.180 -337.661 35 | Mithra Tower
-- @pos 740.000 -5.180 -342.352 35 | Elvaan Tower
-- @pos 257.650 -5.180 -699.999 35 | Tarutaru Tower
-- @pos 577.648 -5.180 -700.000 35 | Galka Tower
---------------------------... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/items/plate_of_fin_sushi.lua | 35 | 1483 | -----------------------------------------
-- ID: 5665
-- Item: plate_of_fin_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Intelligence 5
-- Accuracy % 16
-- Ranged Accuracy % 16
-----------------------------------------
require("scripts/globals/status");
-------------... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Temple_of_Uggalepih/npcs/_4fv.lua | 13 | 1696 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: Granite Door
-- Involved in Missions: San dOria Mission 8-2
-- @pos -50 -17 -154
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/T... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Pashhow_Marshlands/npcs/Shikoko_WW.lua | 30 | 3064 | -----------------------------------
-- Area: Pashhow Marshlands
-- NPC: Shikoko, W.W.
-- Type: Border Conquest Guards
-- @pos 536.291 23.517 694.063 109
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/co... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Lower_Jeuno/npcs/Porter_Moogle.lua | 41 | 1537 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- @zone 245
-- @pos TODO
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Lower_Jeuno/TextIDs");
r... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Lower_Jeuno/npcs/Porter_Moogle.lua | 41 | 1537 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- @zone 245
-- @pos TODO
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Lower_Jeuno/TextIDs");
r... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Buburimu_Peninsula/npcs/Ganemu-Punnemu_WW.lua | 13 | 3342 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Ganemu-Punnemu, W.W.
-- Outpost Conquest Guards
-- @pos -481.164 -32.858 49.188 118
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Temenos/mobs/Enhanced_Lizard.lua | 7 | 1028 | -----------------------------------
-- Area: Temenos W T
-- NPC: Enhanced_Lizard
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------------------------... | gpl-3.0 |
DigiTechs/ROBLOX-Wiki-Backend | src/Module/API/Util/Util.lua | 1 | 7177 | -- Module:API/Util
-- Utilities for Module:API.
-- Essentially, the back-end of the back-end.
-- Warning: DO NOT USE THIS MODULE BY ITSELF! It will break and you will be sad - Use Module:API instead!
local LUNQ = require("Module:API/Util/LUNQ")
local ReflectionMetadata = mw.loadData("Module:API/Data/Reflec... | mit |
vonflynee/opencomputersserver | world/opencomputers/3f9e70c3-6961-48bd-bbb9-5c4b3888a254/boot/04_component.lua | 15 | 4131 | local component = require("component")
local computer = require("computer")
local event = require("event")
local adding = {}
local removing = {}
local primaries = {}
-------------------------------------------------------------------------------
-- This allows writing component.modem.open(123) instead of writing
-- ... | mit |
FailcoderAddons/supervillain-ui | SVUI_!Core/libs/AceVillain-1.0/widgets/AceGUIWidget-Keybinding.lua | 4 | 6538 | --[[-----------------------------------------------------------------------------
Keybinding Widget
Set Keybindings in the Config UI.
-------------------------------------------------------------------------------]]
local Type, Version = "Keybinding", 999999
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not... | mit |
nesstea/darkstar | scripts/zones/Al_Zahbi/npcs/Dahaaba.lua | 55 | 1752 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Dahaaba
-- Type: Chocobo Renter
-- @pos -65.309 -1 -39.585
-----------------------------------
require("scripts/globals/chocobo");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
require("scripts/globals/status");
---------------... | gpl-3.0 |
Mashape/kong | kong/cmd/migrations.lua | 1 | 6503 | local DB = require "kong.db"
local log = require "kong.cmd.utils.log"
local tty = require "kong.cmd.utils.tty"
local meta = require "kong.meta"
local conf_loader = require "kong.conf_loader"
local kong_global = require "kong.global"
local migrations_utils = require "kong.cmd.utils.migrations"
local lapp = [[
Usage: k... | apache-2.0 |
nesstea/darkstar | scripts/globals/items/salty_bretzel.lua | 18 | 1278 | -----------------------------------------
-- ID: 5182
-- Item: salty_bretzel
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Magic % 8
-- Magic Cap 60
-- Vitality 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- On... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.