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 |
|---|---|---|---|---|---|
dmccuskey/dmc-objects | examples/DMC-Arch-ufo2/dmc_corona/lib/dmc_lua/lua_error.lua | 46 | 3628 | --====================================================================--
-- lua_error.lua
--
-- Documentation:
-- * http://github.com/dmccuskey/lua-error
--====================================================================--
--[[
The MIT License (MIT)
Copyright (C) 2014-2015 David McCuskey. All Rights Reserved.
P... | mit |
sysuyedong/Renderer | Renderer/lua/Color.lua | 1 | 1180 | Color = {}
Color.__index = Color
function Color.new(red, green, blue)
local self = { r = red, g = green, b = blue }
local r = red > 1 and 1 or red
local g = green > 1 and 1 or green
local b = blue > 1 and 1 or blue
self.value = math.floor(255 * b )* math.pow(2, 16) + math.floor(255 * g) * math.pow(2, 8) + math.f... | mit |
BooM-amour/TM_VIRUS | plugins/banhammer.lua | 1085 | 11557 |
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 |
wez2020/ss | plugins/banhammer.lua | 1085 | 11557 |
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 |
gligneul/FastLua | luatests/goto.lua | 1 | 5120 | -- $Id: goto.lua,v 1.12 2016/03/07 19:26:18 roberto Exp $
collectgarbage()
local function errmsg (code, m)
local st, msg = load(code)
assert(not st and string.find(msg, m))
end
-- cannot see label inside block
errmsg([[ goto l1; do ::l1:: end ]], "label 'l1'")
errmsg([[ do ::l1:: end goto l1; ]], "label 'l1'")
... | mit |
rpetit3/darkstar | scripts/zones/Kuftal_Tunnel/mobs/Guivre.lua | 2 | 14740 | ----------------------------------
-- Area: Gustav Tunnel
-- NM: Guivre
-----------------------------------
local path =
{
106.836830, 0.753614, -3.944333,
106.991020, 0.588184, -4.941793,
107.207207, 0.424275, -5.923915,
107.583046, 0.424275, -6.866960,
108.040382, 0.424275, -7.778655,
108.4... | gpl-3.0 |
dwmw2/luci | libs/luci-lib-nixio/docsrc/nixio.TLSSocket.lua | 173 | 2926 | --- TLS Socket Object.
-- TLS Sockets contain the underlying socket and context in the fields
-- "socket" and "context".
-- @cstyle instance
module "nixio.TLSSocket"
--- Initiate the TLS handshake as client with the server.
-- @class function
-- @name TLSSocket.connect
-- @usage This function calls SSL_connect().
-- @... | apache-2.0 |
rpetit3/darkstar | scripts/zones/Port_Windurst/npcs/Rottata.lua | 12 | 1940 | -----------------------------------
-- Area: Port Windurst
-- NPC: Rottata
-- Outpost Teleporter NPC
-- @pos 193.111 -12.999 215.638 240
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
require("sc... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Suzel.lua | 13 | 1060 | ----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Suzel
-- Type: Item Deliverer
-- @zone: 26
-- @pos -72.701 -20.25 -64.058
--
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
require("scripts/zones/Tavnazian_Safehold/TextIDs");
----------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Castle_Zvahl_Baileys/npcs/Treasure_Chest.lua | 13 | 3750 | -----------------------------------
-- Area: Castle Zvahl Baileys
-- NPC: Treasure Chest
-- @zone 161
-----------------------------------
package.loaded["scripts/zones/Castle_Zvahl_Baileys/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
re... | gpl-3.0 |
ddouglascarr/rooset | lffrontend/app/main/area/_list_entry.lua | 1 | 1736 | local area = param.get("area", "table")
local member = param.get("member", "table")
ui.container{ attr = { class = "area" }, content = function()
execute.view{ module = "area", view = "_head", params = { area = area, hide_unit = true, show_content = true, member = member } }
ui.container{ attr = { class = "con... | mit |
rpetit3/darkstar | scripts/zones/Windurst_Woods/npcs/Shih_Tayuun.lua | 27 | 1188 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Shih Tayuun
-- Guild Merchant NPC: Bonecrafting Guild
-- @pos -3.064 -6.25 -131.374 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/set... | gpl-3.0 |
prances/robo | plugins/tools.lua | 1 | 21371 | --Begin Tools.lua :)
local SUDO = 298854253--370968598 -- put Your ID here! <===
local function index_function(user_id)
for k,v in pairs(_config.admins) do
if user_id == v[1] then
print(k)
return k
end
end
-- If not found
return false
end
local function getindex(t,id)
for i,v in pairs(t) do... | gpl-3.0 |
i32ropie/telegram-bot | plugins/steam.lua | 645 | 2117 | -- See https://wiki.teamfortress.com/wiki/User:RJackson/StorefrontAPI
do
local BASE_URL = 'http://store.steampowered.com/api/appdetails/'
local DESC_LENTH = 200
local function unescape(str)
str = string.gsub( str, '<', '<' )
str = string.gsub( str, '>', '>' )
str = string.gsub( str, '"', '"' )
str... | gpl-2.0 |
esguk811/DarkRP | gamemode/modules/fadmin/fadmin/playeractions/ragdoll/cl_init.lua | 11 | 2236 | FAdmin.StartHooks["Ragdoll"] = function()
FAdmin.Access.AddPrivilege("Ragdoll", 2)
FAdmin.Commands.AddCommand("Ragdoll", nil, "<Player>", "[normal/hang/kick]")
FAdmin.Commands.AddCommand("UnRagdoll", nil, "<Player>")
FAdmin.ScoreBoard.Player:AddActionButton(function(ply)
if ply:FAdmin_GetGlobal... | mit |
spudgy/IntWars | BinWars/Scripts/Heroes/Leesin.lua | 3 | 2817 | function LeesinQHit(projectile,target)
if target then
print(target.model..' - LEESIN Q HIT !')
--apply Q to target
--76 ??
--23 vision spawn
--23 vision spawn
--65 load hero?
projectile:Destroy() --5A NETID, destroy missile?
--projectile.owner:SetT... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/boiled_tuna_head.lua | 18 | 1596 | -----------------------------------------
-- ID: 4540
-- Item: Boiled Tuna Head
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Magic 20
-- Dexterity 3
-- Intelligence 4
-- Mind -3
-- Magic Regen While Healing 2
-- Accuracy 5
-- Evasion 5
-----------------------------------------
require... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Hall_of_Transference/npcs/_0e3.lua | 15 | 1342 | -----------------------------------
-- Area: Hall of Transference
-- NPC: Large Apparatus (Left) - Holla
-- @pos -239 -1 290 14
-----------------------------------
package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scri... | gpl-3.0 |
tvandijck/premake-core | tests/config/test_targetinfo.lua | 3 | 5365 | --
-- tests/config/test_targetinfo.lua
-- Test the config object's build target accessor.
-- Copyright (c) 2011-2013 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("config_targetinfo")
local config = p.config
--
-- Setup and teardown
--
local wks, prj
function suite.setu... | bsd-3-clause |
rpetit3/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Pihra_Rhebenslo.lua | 14 | 4346 | -----------------------------------
-- Area: Windurst Waters [S]
-- NPC: Pihra_Rhebenslo
-- Armor Storage NPC
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/armorstora... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Korroloka_Tunnel/Zone.lua | 17 | 3394 | -----------------------------------
--
-- Zone: Korroloka_Tunnel (173)
--
-----------------------------------
package.loaded["scripts/zones/Korroloka_Tunnel/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Korroloka_Tunnel... | gpl-3.0 |
lukego/snabbswitch | lib/pflua/src/pf/optimize.lua | 25 | 33625 | module(...,package.seeall)
local bit = require('bit')
local utils = require('pf.utils')
local verbose = os.getenv("PF_VERBOSE");
local expand_arith, expand_relop, expand_bool
local set, concat, dup, pp = utils.set, utils.concat, utils.dup, utils.pp
-- Pflang's numbers are unsigned 32-bit integers, but sometimes we... | apache-2.0 |
rpetit3/darkstar | scripts/globals/spells/bluemagic/digest.lua | 20 | 1695 | -----------------------------------------
-- Spell: Digest
-- Steals an enemy's HP. Ineffective against undead
-- Spell cost: 20 MP
-- Monster Type: Amorphs
-- Spell Type: Magical (Dark)
-- Blue Magic Points: 2
-- Stat Bonus: HP-5, MP+5
-- Level: 36
-- Casting Time: 4 seconds
-- Recast Time: 90 seconds
-- Magic Bursts ... | gpl-3.0 |
vseledkin/april-ann | tools/nbest/extract_features.lua | 3 | 1997 | opt = cmdOpt{
program_name = string.basename(arg[0]),
argument_description = "",
main_description = "NBest feature extractor",
{
index_name="nbest",
description="Nbest lists.",
short="n",
argument="yes",
},
{
index_name="feats",
description="Output features.",
short="F",
argu... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/bowl_of_turtle_soup.lua | 18 | 1544 | -----------------------------------------
-- ID: 4418
-- Item: Turtle Soup
-- Food Effect: 3hours, All Races
-----------------------------------------
-- HP + 10% (200 Cap)
-- Dexterity +4
-- Vitality +6
-- Mind -3
-- HP Recovered While Healing +5
-----------------------------------------
require("scripts/globals/stat... | gpl-3.0 |
streetturtle/awesome-wm-widgets | cmus-widget/cmus.lua | 1 | 4244 | -------------------------------------------------
-- Cmus Widget for Awesome Window Manager
-- Show what's playing, play/pause, etc
-- @author Augusto Gunsch
-- @copyright 2022 Augusto Gunsch
-------------------------------------------------
local awful = require("awful")
local wibox = require("wibox")
local watch = ... | mit |
rpetit3/darkstar | scripts/globals/abilities/pets/somnolence.lua | 36 | 1072 | ---------------------------------------------------
-- Somnolence
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/globals/magic");
---------------------------------------------------... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/armorstorage.lua | 37 | 9080 | -----------------------------------
--
-- Armor Storage
--
-----------------------------------
require("scripts/globals/keyitems");
-- Initialize StorageArray
-- {SetId,SetGroup,SetMask,SetCount,Head,Body,Hands,Legs,Feet,StorageCost,KeyItem}
StorageArray = {0x01,0x04,0x000001,0x05,0x30DF,0x315E,0x3689,0x3786,0x370... | gpl-3.0 |
Endika/Algorithm-Implementations | Knapsack/Lua/Yonaba/knapsack.lua | 26 | 2985 | -- Knapsack problem algorithm implementation
-- See: http://en.wikipedia.org/wiki/Knapsack_problem
-- Pops value at the head of an array
local function pop(s)
local head = s[1]
table.remove(s, 1)
return head
end
-- Note: the items to be passed should be represented this way
-- items = {
-- {name = 'item_name'... | mit |
rpetit3/darkstar | scripts/globals/mobskills/Dark_mist.lua | 34 | 1081 | ---------------------------------------------
-- Dark Mist
-- Family: Gargouille
-- Description: Deals dark damage to an enemy. Additional effect: Weight
-- Type: Magical (dark)
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Radial
-- Notes: Only used when flying
-------------------------------------------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Bastok_Markets/npcs/Aquillina.lua | 12 | 2533 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Aquillina
-- Starts & Finishes Repeatable Quest: A Flash In The Pan
-- Note: Reapeatable every 15 minutes.
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("sc... | gpl-3.0 |
davidyu/mld49 | src/art/levels/seashell.lua | 1 | 2877 | return {
width = 11,
height = 11,
tilewidth = 64,
tileheight = 64,
orientation = "orthogonal",
properties = {
},
tilesets = {
{
name = "main_tiles",
tilewidth = 64,
tileheight = 64,
spacing = 0,
margin = 0,
image = {
source = "art/tiles/main_tiles.png",
... | mit |
rpetit3/darkstar | scripts/zones/Port_Jeuno/npcs/_6ua.lua | 13 | 1395 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Door: Departures Exit (for Bastok)
-- @zone 246
-- @pos -61 7 -54
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/glob... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Quicksand_Caves/mobs/Centurio_IV-VII.lua | 10 | 1351 | -----------------------------------
-- Area: Quicksand Caves
-- MOB: Centurio IV-VII
-- Pops in Bastok mission 8-1 "The Chains that Bind Us"
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Caves/Text... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/qm1.lua | 13 | 1627 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: ???
-- Involved in Quests: Acting in Good Faith
-- @zone 195
-- @pos -17 0 59 (I-10)
-- @pos
-- @pos
-- @pos
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-------------------------... | gpl-3.0 |
lexa/awesome | lib/awful/wibox.lua | 6 | 10167 | ---------------------------------------------------------------------------
--- Wibox module for awful.
-- This module allows you to easily create wibox and attach them to the edge of
-- a screen.
--
-- @author Julien Danjou <julien@danjou.info>
-- @copyright 2009 Julien Danjou
-- @release @AWESOME_VERSION@
-- @m... | gpl-2.0 |
esguk811/DarkRP | gamemode/libraries/mysqlite/mysqlite.lua | 5 | 13896 | --[[
MySQLite - Abstraction mechanism for SQLite and MySQL
Why use this?
- Easy to use interface for MySQL
- No need to modify code when switching between SQLite and MySQL
- Queued queries: execute a bunch of queries in order an run the callback when all queries are done
License: L... | mit |
Endika/Algorithm-Implementations | Josephus_Problem/Lua/Yonaba/josephus_test.lua | 26 | 1233 | -- Tests for josephus.lua
local j = require 'josephus'
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 sta... | mit |
sys4-fr/server-minetestforfun | mods/spears/tools.lua | 5 | 1840 | function spears_register_spear(kind, desc, eq, toughness, material)
minetest.register_tool("spears:spear_" .. kind, {
description = desc .. " spear",
inventory_image = "spears_spear_" .. kind .. ".png",
wield_scale= {x=2,y=1,z=1},
on_drop = function(itemstack, user, pointed_thing)
spears_shot(itemstack, us... | unlicense |
rpetit3/darkstar | scripts/zones/West_Ronfaure/npcs/Molting_Moth_IM.lua | 13 | 3320 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Molting Moth, I.M.
-- Border Conquest Guards
-- @pos -560.292 -0.961 -576.655 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/pumpkin_pie.lua | 18 | 1332 | -----------------------------------------
-- ID: 4446
-- Item: pumpkin_pie
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Magic 40
-- Agility -1
-- Intelligence 3
-- Charisma -2
-----------------------------------------
require("scripts/globals/status");
--------------------------------... | gpl-3.0 |
vfedoroff/prosody-modules | mod_flash_policy/mod_flash_policy.lua | 32 | 1329 | local filters = require "util.filters";
local config = {}
config.file = module:get_option_string("crossdomain_file", "");
config.string = module:get_option_string("crossdomain_string", [[<?xml version="1.0"?><!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd"><cross-domain-policy><site-control perm... | mit |
dmattp/nylon | nylon/scheduler.lua | 1 | 1372 | -- Nylon Copyright (c) 2013 David M. Placek see [doc/license.txt]
--
-- Loads the 'silk' core module with an idle scheduler based
-- on the "NylonSysCore" scheduling backend
--
local debug_mode = false
require 'nylon.syscore'
--print 'LOAD SCHEDULER'
local function createIdleLoopScheduler( silkScheduleFun )
loc... | mit |
AMIRUJK/yapop | plugins/ingroup.lua | 1 | 56942 | do
-- Check Member
local function check_member_autorealm(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostr... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Rabao/npcs/HomePoint#2.lua | 27 | 1242 | -----------------------------------
-- Area: Rabao
-- NPC: HomePoint#2
-- @pos -21 8.13 110 247
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Rabao/TextIDs");
require("scripts/globals/homepoint");
----------------... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/akamochi.lua | 35 | 2064 | -----------------------------------------
-- ID: 6260
-- Item: akamochi
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- HP + 20 (Pet & Master)
-- Vitality + 3 (Pet & Master)
-- Attack + 16% Cap: 50 (Pet & Master) Pet Cap: 75
-- Accuracy + 10% Cap: 50 (Pet & Master) Pet Cap: 75
-----------... | gpl-3.0 |
aradml/- | 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 |
rigeirani/as | 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 |
kossher/kossherbot | 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 |
tohidbiparva/priest-sheild | 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 |
fegimanam/mer | 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 |
rpetit3/darkstar | scripts/zones/Al_Zahbi/npcs/Salaifa.lua | 13 | 1037 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Salaifa
-- Type: Standard NPC
-- @zone: 48
-- @pos -37.462 -7 -41.665
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
---------------------------... | gpl-3.0 |
dwmw2/luci | modules/luci-base/luasrc/ccache.lua | 81 | 1651 | -- 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.
local io = require "io"
local fs = require "nixio.fs"
local util = require "luci.util"
local nixio = require "nixio"
local debug = require "debug"
local string... | apache-2.0 |
rpetit3/darkstar | scripts/globals/spells/sleep_ii.lua | 27 | 1112 | -----------------------------------------
-- Spell: Sleep II
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,spell... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/spells/water_carol.lua | 27 | 1535 | -----------------------------------------
-- Spell: Water Carol
-- Increases water resistance for party members within the area of effect.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/bowl_of_wisdom_soup.lua | 18 | 1809 | -----------------------------------------
-- ID: 4592
-- Item: bowl_of_wisdom_soup
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- HP 3
-- MP 3
-- Strength 1
-- Dexterity 1
-- Agility 1
-- Vitality 1
-- Intelligence 1
-- Mind 1
-- Charisma 1
-- HP Recovered While Healing 3
-----------------... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/spells/bluemagic/plasma_charge.lua | 26 | 1394 | -----------------------------------------
-- Spell: Plasma Charge
-- Covers you with magical lightning spikes. Enemies that hit you take lightning damage
-- Spell cost: 24 MP
-- Monster Type: Luminians
-- Spell Type: Magical (Lightning)
-- Blue Magic Points: 5
-- Stat Bonus: STR+3 DEX+3
-- Level: 75
-- Casting Time: 3 ... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/abilities/pets/meteor_strike.lua | 28 | 1332 | ---------------------------------------------------
-- Geocrush
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/globals/magic");
---------------------------------------------------
... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/LaLoff_Amphitheater/mobs/Ark_Angel_s_Wyvern.lua | 23 | 1024 | -----------------------------------
-- Area: LaLoff Amphitheater
-- MOB: Ark Angel's Wyvern
-----------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
require("scripts/globals/status");... | gpl-3.0 |
ddouglascarr/rooset | lffrontend/app/main/suggestion/_action/add.lua | 1 | 2127 | local tmp = db:query({ "SELECT text_entries_left FROM member_contingent_left WHERE member_id = ? AND NOT polling", app.session.member.id }, "opt_object")
if not tmp or tmp.text_entries_left < 1 then
slot.put_into("error", _"Sorry, you have reached your personal flood limit. Please be slower...")
return false
end
l... | mit |
nokizorque/ucd | UCDphone/apps/housing/housing_c.lua | 1 | 5933 | Housing = {}
Housing.cache = {}
Housing.blips = {}
Housing.open = false
function Housing.create()
phone.housing = {label = {}}
phone.housing.gridlist = guiCreateGridList(27, 96, 254, 207, false, phone.image["phone_window"])
phone.housing.gridlist:addColumn("House ID", 0.2)
phone.housing.gridlist:addColumn("House... | mit |
rpetit3/darkstar | scripts/zones/Aydeewa_Subterrane/mobs/Pandemonium_Warden.lua | 6 | 11869 | -----------------------------------
-- Area: Aydeewa Subterrane
-- ZNM: Pandemonium_Warden
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onMobInitialize Action
------------------------... | gpl-3.0 |
legoktm/wesnoth | data/campaigns/The_Hammer_of_Thursagan/lua/spawns.lua | 27 | 1324 | -- Used for the bandit spawns in scenario 5
local helper = wesnoth.require "lua/helper.lua"
local wml_actions = wesnoth.wml_actions
local T = helper.set_wml_tag_metatable {}
function wml_actions.spawn_units(cfg)
local x = cfg.x or helper.wml_error("[spawn_units] missing required x= attribute.")
local y = cfg.y or h... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/The_Shrine_of_RuAvitau/mobs/Defender.lua | 19 | 2481 | -----------------------------------
-- Area: The Shrine of Ru'Avitau
-- MOB: Defender
-----------------------------------
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize(mob)
end;
-----------------... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/rolanberry_(864_ce).lua | 18 | 1184 | -----------------------------------------
-- ID: 4531
-- Item: rolanberry_864_ce)
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -3
-- Intelligence 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCh... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Windurst_Waters/npcs/Ten_of_Hearts.lua | 13 | 1060 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Ten of Hearts
-- Type: Standard NPC
-- @zone: 238
-- @pos -49.441 -5.909 226.524
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
----... | gpl-3.0 |
vlapsley/outback | mods/mesecons/mesecons/presets.lua | 1 | 2536 | mesecon.rules = {}
mesecon.state = {}
mesecon.rules.default = {
{x = 0, y = 0, z = -1},
{x = 1, y = 0, z = 0},
{x = -1, y = 0, z = 0},
{x = 0, y = 0, z = 1},
{x = 1, y = 1, z = 0},
{x = 1, y = -1, z = 0},
{x = -1, y = 1, z = 0},
{x = -1, y = -1, z = 0},
{x = 0, y = 1, z = 1},
{x = 0, y ... | lgpl-2.1 |
schidler/ionic-luci | applications/luci-app-asterisk/luasrc/asterisk.lua | 68 | 17804 | -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.asterisk", package.seeall)
require("luci.asterisk.cc_idd")
local _io = require("io")
local uci = require("luci.model.uci").cursor()
local sys = require("luci.sys")
local util = require("luci.uti... | apache-2.0 |
vseledkin/april-ann | packages/ann/autoencoders/test/test_on_the_fly.lua | 3 | 8340 | m1 = ImageIO.read(string.get_path(arg[0]) .. "digits.png"):to_grayscale():invert_colors():matrix()
bunch_size = 32
dropout_factor = 0.5
dropout_random = random(123242)
train_input = dataset.matrix(m1,
{
patternSize = {16,16},
offset = {0,0},
numSteps = {80,10},
... | gpl-3.0 |
Rodeo314/tim-vlc-2.1 | share/lua/sd/assembleenationale.lua | 91 | 8388 | --[[
$Id$
Copyright © 2012 VideoLAN and AUTHORS
Authors: François Revol <revol at free dot fr>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your op... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Northern_San_dOria/npcs/Vamorcote.lua | 12 | 2692 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Vamorcote
-- Starts and Finishes Quest: The Setting Sun
-- @zone: 231
-- @pos -137.070 10.999 161.855
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Northern_San... | gpl-3.0 |
MinetestForFun/server-minetestforfun-creative | mods/markers/init.lua | 9 | 19185 |
-- markers are useful for measuring distances and for marking areas
-- markers are protected from digging by other players for one day
-- (the protection for the *marker* auto-expires then, and it can be digged)
markers = {}
dofile(minetest.get_modpath("markers").."/config.lua");
dofile(minetest.get_modpath("markers... | unlicense |
rpetit3/darkstar | scripts/zones/Lower_Jeuno/npcs/Treasure_Coffer.lua | 15 | 73004 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Treasure Coffer
-- Type: Add-on NPC
-- @pos 41.169 3.899 -51.005 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("script... | gpl-3.0 |
TakingInitiative/wesnoth | data/lua/wml/objectives.lua | 4 | 6750 | local helper = wesnoth.require "lua/helper.lua"
local wml_actions = wesnoth.wml_actions
local game_events = wesnoth.game_events
local function color_prefix(r, g, b)
return string.format('<span foreground="#%02x%02x%02x">', r, g, b)
end
local function insert_before_nl(s, t)
return string.gsub(tostring(s), "[^\n]*", ... | gpl-2.0 |
schidler/ionic-luci | modules/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... | apache-2.0 |
dwmw2/luci | modules/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... | apache-2.0 |
rpetit3/darkstar | scripts/globals/mobskills/Wild_Rage.lua | 32 | 1142 | ---------------------------------------------
-- Wild Rage
--
-- Description: Deals physical damage to enemies within area of effect.
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range: 15' radial
-- Notes: Has additional effect of Poison when used by King Vinegarroon.
------------------------------... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/weaponskills/tachi_kaiten.lua | 19 | 2047 | -----------------------------------
-- Tachi Kaiten
-- Great Katana weapon skill
-- Skill level: N/A
-- Additional effect: temporarily increases amount of TP stored with each hit.
-- Grants Store TP+7 for the duration of time that it is active. Length of time depends on TP.
-- 100 TP = 20s
-- 200 TP = 40s
-- 300 TP = 6... | gpl-3.0 |
vfedoroff/prosody-modules | mod_onions/mod_onions.lua | 27 | 7617 | local wrapclient = require "net.server".wrapclient;
local s2s_new_outgoing = require "core.s2smanager".new_outgoing;
local initialize_filters = require "util.filters".initialize;
local st = require "util.stanza";
local portmanager = require "core.portmanager";
local softreq = require "util.dependencies".softreq;
loc... | mit |
esguk811/DarkRP | gamemode/modules/base/sv_entityvars.lua | 5 | 9485 | local meta = FindMetaTable("Player")
--[[---------------------------------------------------------------------------
Pooled networking strings
---------------------------------------------------------------------------]]
util.AddNetworkString("DarkRP_InitializeVars")
util.AddNetworkString("DarkRP_PlayerVar")
util.AddN... | mit |
msva/verse | net/connlisteners.lua | 1 | 2232 | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local listeners_dir = (CFG_SOURCEDIR or ".").."/net/";
local server = require "net.server";
local log =... | mit |
rpetit3/darkstar | scripts/globals/items/crab_stewpot.lua | 18 | 1738 | -----------------------------------------
-- ID: 5544
-- Item: Crab Stewpot
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% Cap 50
-- MP +10
-- HP Recoverd while healing 5
-- MP Recovered while healing 1
-- Defense +15% Cap 50
-- Evasion +5
-------------------... | gpl-3.0 |
bcsanches/phobos_deps | bullet-2.82-r2704/build/findOpenCL.lua | 16 | 1837 | -- todo: add Apple OpenCL environment vars
function findOpenCL_AMD()
local amdopenclpath = os.getenv("AMDAPPSDKROOT")
if (amdopenclpath) then
return true
end
return false
end
function findOpenCL_NVIDIA()
local nvidiaopenclpath = os.getenv("CUDA_PATH")
if (nvidiaopenclpath) then
return true
end... | apache-2.0 |
emoon/docking_system | bin/macosx/tundra/scripts/tundra/tools/dotnet.lua | 28 | 1125 | module(..., package.seeall)
local frameworkDir = "c:\\Windows\\Microsoft.NET\\Framework"
local defaultFrameworkVersion = "v3.5"
function apply(env, options)
tundra.unitgen.load_toolset("generic-dotnet", env)
local version = options and assert(options.Version) or defaultFrameworkVersion
env:set_external_env_var... | bsd-3-clause |
dkogan/notion | etc/look_ios.lua | 6 | 1840 | -- look_ios.lua drawing engine configuration file for Notion.
if not gr.select_engine("de") then return end
de.reset()
de.defstyle("*", {
shadow_colour = "#606060",
highlight_colour = "#ffffff",
background_colour = "#d8d8d8",
foreground_colour = "#000000",
padding_pixels = 1,
highlight_pixels... | lgpl-2.1 |
aradml/- | plugins/inrealm.lua | 183 | 36473 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin1(msg) then
local group_creator = msg.from.print_name
create_group_chat (group_creator, group_na... | gpl-2.0 |
vlapsley/outback | mods/technic/wrench/technic.lua | 4 | 8178 |
local INT, STRING, FLOAT =
wrench.META_TYPE_INT,
wrench.META_TYPE_STRING,
wrench.META_TYPE_FLOAT
wrench:register_node("technic:iron_chest", {
lists = {"main"},
})
wrench:register_node("technic:iron_locked_chest", {
lists = {"main"},
metas = {infotext = STRING,
owner = STRING},
owned = true,
})
wrench:regis... | lgpl-2.1 |
githubmereza/sargarme.lua | bot/utils.lua | 494 | 23873 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
mahdib9/mah9 | bot/utils.lua | 494 | 23873 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/La_Theine_Plateau/npcs/qm2.lua | 13 | 1908 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: ??? (qm2)
-- Involved in Quest: HITTING_THE_MARQUISATE (THF AF3)
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require(... | gpl-3.0 |
epwalsh/dotfiles | neovim/ftplugin/python.lua | 1 | 1546 | -- Configure auto formatting using isort and black.
-- Adapted from stylua-nvim:
-- https://github.com/ckipp01/stylua-nvim/blob/main/lua/stylua-nvim.lua
local function buf_get_full_text(bufnr)
local text = table.concat(vim.api.nvim_buf_get_lines(bufnr, 0, -1, true), "\n")
if vim.api.nvim_buf_get_option(bufnr, "eol")... | mit |
Dejvino/nodemcu-firmware | lua_examples/webap_toggle_pin.lua | 70 | 1202 | wifi.setmode(wifi.SOFTAP);
wifi.ap.config({ssid="test",pwd="12345678"});
gpio.mode(1, gpio.OUTPUT)
srv=net.createServer(net.TCP)
srv:listen(80,function(conn)
conn:on("receive", function(client,request)
local buf = "";
local _, _, method, path, vars = string.find(request, "([A-Z]+) (.+)?(.+) HTTP")... | mit |
slaubenberger/learn2love | demo005/main.lua | 1 | 2222 | local objects = {}
function love.load()
for id=0, 40 do
local object
if id % 2 == 0 then
object = createBox()
object.base.startX = 32 * id
object.base.x = 32 * id
else
object = createCircle()
object.base.startX = 32 * id
object.base.x = 32 * id
end
objects[id] = object
... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/PsoXja/npcs/_09h.lua | 13 | 1196 | -----------------------------------
-- Area: Pso'Xja
-- NPC: Avatars Gate
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/PsoXja/TextIDs");
require("scripts/globals/keyitems");
--... | gpl-3.0 |
imashkan/sedfire | plugins/admin.lua | 4 | 6279 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(rec... | gpl-2.0 |
vseledkin/april-ann | packages/ann/autoencoders/test/test-train-full-sdae.lua | 3 | 3134 | m1 = ImageIO.read(string.get_path(arg[0]).."digits.png"):to_grayscale():invert_colors():matrix()
bunch_size = 256
train_input = dataset.matrix(m1,
{
patternSize = {16,16},
offset = {0,0},
numSteps = {80,10},
stepSize = {16,16},
orderStep = {1,0}
... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Southern_San_dOria/npcs/Melledanne.lua | 13 | 1496 | -----------------------------------
-- Area: Southern San dOria
-- NPC: Melledanne
-- Type: Melody Minstrel NPC
-- @zone: 230
-- @pos -33.194 0.000 34.662
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/s... | gpl-3.0 |
martinrotter/textilosaurus | src/libtextosaurus/3rd-party/scintilla-lt/lexlua/dockerfile.lua | 2 | 1280 | -- Copyright 2016-2019 Alejandro Baez (https://keybase.io/baez). See License.txt.
-- Dockerfile LPeg lexer.
local lexer = require('lexer')
local token, word_match = lexer.token, lexer.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local lex = lexer.new('dockerfile', {fold_by_indentation = true})
-- Whitespace
lex... | gpl-3.0 |
d4rkboy/.... | plugins/banhammer.lua | 6 | 18135 | -- data saved to moderation.json
-- data saved to moderation.json
do
-- make sure to set with value that not higher than stats.lua
local NUM_MSG_MAX = 4 -- Max number of messages per TIME_CHECK seconds
local TIME_CHECK = 4
local function kick_user(user_id, chat_id)
-- check if user was kicked in the la... | gpl-2.0 |
ManStache/PokeBotBad | storage/pokemon.lua | 6 | 6837 | local Pokemon = {}
local Bridge = require "util.bridge"
local Input = require "util.input"
local Memory = require "util.memory"
local Menu = require "util.menu"
local pokeIDs = {
rhydon = 1,
kangaskhan = 2,
nidoran = 3,
spearow = 5,
voltorb = 6,
nidoking = 7,
ivysaur = 9,
exeggutor = 10,
gengar = 14,
nidora... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.