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
Johnicholas/ceu
val.lua
1
16581
-- TODO: -- remove V({tag='Var',...}) -- ficar so com rval e usar & qdo necessario local _ceu2c = { ['&&']='&', ['or']='||', ['and']='&&', ['not']='!' } local function ceu2c (op) return _ceu2c[op] or op end local F -- val=[lval,rval] -- evt -- adt_top -- adt_pool -- no_cast function V (me, ...) local CTX = ...
mit
wagonrepairer/Zero-K
lups/ParticleClasses/UnitPieceLight.lua
8
10282
-- $Id: UnitPieceLight.lua 3171 2008-11-06 09:06:29Z det $ ----------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------- local UnitPieceLight = {} UnitPi...
gpl-2.0
lixiantai/barrier_breaker
feeds/luci/applications/luci-asterisk/luasrc/asterisk/cc_idd.lua
92
7735
--[[ LuCI - Asterisk - International Direct Dialing Prefixes and Country Codes Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ]]-- module "luci.asteri...
gpl-2.0
mmusial/prosody-modules
mod_manifesto/mod_manifesto.lua
32
6828
-- mod_manifesto local timer = require "util.timer"; local jid_split = require "util.jid".split; local st = require "util.stanza"; local dm = require "util.datamanager"; local dataforms_new = require "util.dataforms".new; local adhoc_initial = require "util.adhoc".new_initial_data_form; local mm_reload = require "modu...
mit
Illarion-eV/Illarion-Content
triggerfield/ronagan_triggers.lua
2
2393
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
shingenko/darkstar
scripts/globals/mobskills/Binary_Tap.lua
13
1709
--------------------------------------------------- -- Binary Tap -- Attempts to absorb two buffs from a single target, or otherwise steals HP. -- Type: Magical -- Utsusemi/Blink absorb: Ignores Shadows -- Range: Melee -- Notes: Can be any (positive) buff, including food. Will drain about 100HP if it can't take any buf...
gpl-3.0
ArcherSys/ArcherSys
Jawa/luaj/examples/lua/swingapp.lua
6
4403
-- Sample luaj program that presents an animated Swing window. -- -- This basic application handles key, and mouse input, has a basic animation loop, -- and renders double-buffered graphics including the logo image in a swing frame. -- -- bind to classes we need local borderLayout = luajava.bindClass("java.awt.Borde...
mit
newbots/botfire
plugins/bot_manager.lua
89
6427
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(receiver, '...
gpl-2.0
wagonrepairer/Zero-K
LuaUI/Widgets/gui_customcursorsets.lua
3
2738
function widget:GetInfo() return { name = "Custom Cursor Sets", desc = "v1.003 Choose different cursor sets.", author = "CarRepairer", date = "2012-01-11", license = "GNU GPL, v2 or later", layer = -100000, handler = true, experimental = false, enabled ...
gpl-2.0
shingenko/darkstar
scripts/globals/items/kusamochi+1.lua
35
2086
----------------------------------------- -- ID: 6263 -- Item: kusamochi+1 -- Food Effect: 60 Min, All Races ----------------------------------------- -- HP + 30 (Pet & Master) -- Vitality + 4 (Pet & Master) -- Attack + 21% Cap: 77 (Pet & Master) Pet Cap: 120 -- Ranged Attack + 21% Cap: 77 (Pet & Master) Pet Cap: 120 -...
gpl-3.0
Antokolos/NLB
NLBW/res/vnstead/dice/modules/dicegames.lua
1
1534
dicegames = { ['setluck'] = function() return luckStat:setluck(); end; ['getlucky'] = function() return luckStat:getlucky(luckStat._threshold, luckStat._luckyObj, luckStat._unluckyObj); end; } -- If you want to implement your own dice game, you should tell the dice, how to set your roll callback properly -- T...
agpl-3.0
bartvm/nn
Sequential.lua
33
3921
local Sequential, _ = torch.class('nn.Sequential', 'nn.Container') function Sequential:__len() return #self.modules end function Sequential:add(module) if #self.modules == 0 then self.gradInput = module.gradInput end table.insert(self.modules, module) self.output = module.output return self en...
bsd-3-clause
esterkimx/mpvsync
mpvsync_modules/server.lua
1
6497
--[[ Copyright (C) 2017 Maksim Esterkin 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 option) any later version. This program is distributed in the ho...
gpl-2.0
openwayne/chaos_theory
mods/xban2/init.lua
2
9493
xban = { MP = minetest.get_modpath(minetest.get_current_modname()) } dofile(xban.MP.."/serialize.lua") local db = { } local tempbans = { } local DEF_SAVE_INTERVAL = 300 -- 5 minutes local DEF_DB_FILENAME = minetest.get_worldpath().."/xban.db" local DB_FILENAME = minetest.setting_get("xban.db_filename") local SAVE_...
lgpl-2.1
yogome/HeroesSaludables
services/ui.lua
1
21060
local settings = require("settings") local buttons = require("data.buttonlist") local widget = require("widget") local itemlist = require("data.itemlist") local phraselist = require("data.phraselist") local textbox = require("libs.helpers.textbox") local battlefield = require("services.battlefield") local particleList ...
agpl-3.0
shingenko/darkstar
scripts/zones/Windurst_Waters/npcs/Piketo-Puketo.lua
37
2135
----------------------------------- -- Area: Windurst Waters -- NPC: Piketo-Puketo -- Type: Cooking Guild Master -- @pos -124.012 -2.999 59.998 238 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); ...
gpl-3.0
shingenko/darkstar
scripts/globals/items/felicifruit.lua
36
1158
----------------------------------------- -- ID: 5964 -- Item: Felicifruit -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility -7 -- Intelligence 5 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ---...
gpl-3.0
obsy/luci
applications/luci-app-ltqtapi/luasrc/controller/ltqtapi.lua
73
1071
-- Copyright 2019 John Crispin <blogic@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.ltqtapi", package.seeall) function index() if not nixio.fs.access("/etc/config/telephony") then return end page = node("admin", "telephony") page.target = firstchild() page.title...
apache-2.0
shingenko/darkstar
scripts/zones/Southern_San_dOria/npcs/Pourette.lua
30
2210
----------------------------------- -- Area: Southern San d'Oria -- NPC: Pourette -- Only sells when San d'Oria controlls Derfland Region ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/glo...
gpl-3.0
shingenko/darkstar
scripts/zones/Giddeus/Zone.lua
28
1653
----------------------------------- -- -- Zone: Giddeus (145) -- ----------------------------------- package.loaded["scripts/zones/Giddeus/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Giddeus/TextIDs"); ----------------------------------- ...
gpl-3.0
sirinsidiator/ESO-AetheriusBadgeFilter
src/FilterWindow.lua
1
13566
local ABF = AetheriusBadgeFilter local internal = ABF.internal local gettext = internal.gettext local BUTTON_NORMAL_TEXTURE = "EsoUI/Art/TreeIcons/store_indexicon_trophy_up.dds" local BUTTON_PRESSED_TEXTURE = "EsoUI/Art/TreeIcons/store_indexicon_trophy_down.dds" local r, g, b = ZO_TOOLTIP_DEFAULT_COLOR:UnpackRGB...
artistic-2.0
BSpike/MOOSE
Moose Development/Moose/Utilities/Utils.lua
1
12984
--- This module contains derived utilities taken from the MIST framework, -- which are excellent tools to be reused in an OO environment!. -- -- ### Authors: -- -- * Grimes : Design & Programming of the MIST framework. -- -- ### Contributions: -- -- * FlightControl : Rework to OO framework -- -- @module U...
gpl-3.0
shingenko/darkstar
scripts/zones/Spire_of_Dem/npcs/_0j1.lua
51
1321
----------------------------------- -- Area: Spire_of_Dem -- NPC: web of regret ----------------------------------- package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/zones/Spire_of_Dem/TextIDs"); ---------------...
gpl-3.0
shingenko/darkstar
scripts/globals/mobskills/Deadeye.lua
17
1223
--------------------------------------------- -- Deadeye -- Family: Qiqurn -- Description: Lowers the defense and magical defense of enemies within range. -- Type: Magical -- Utsusemi/Blink absorb: Ignores shadows -- Range: Unknown -- Notes: Used only by certain Notorious Monsters. Strong effect. -------...
gpl-3.0
obsy/luci
applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua
17
19842
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. require("luci.ip") require("luci.model.uci") local knownParams = { -- -- Widget Name Default(s) Description Option(s) -- { "Service", { -- initialisation and daemon options { List...
apache-2.0
openwayne/chaos_theory
mods/castle_masonry/stone_wall.lua
1
4645
-- internationalization boilerplate local MP = minetest.get_modpath(minetest.get_current_modname()) local S, NS = dofile(MP.."/intllib.lua") minetest.register_alias("castle:stonewall", "castle_masonry:stonewall") minetest.register_alias("castle:dungeon_stone", "castle_masonry:dungeon_stone") minetest.regis...
lgpl-2.1
shingenko/darkstar
scripts/zones/The_Boyahda_Tree/npcs/Grounds_Tome.lua
34
1137
----------------------------------- -- Area: The Boyahda Tree -- NPC: Grounds Tome ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/groundsofvalor"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrad...
gpl-3.0
FiveM-Scripts/fs_freemode
int/office.lua
1
7481
--[[ fs_freemode - game mode for FiveM. Copyright (C) 2018 FiveM-Scripts This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License...
agpl-3.0
Cyumus/Plugins
crafting/items/base/sh_tools.lua
4
4441
ITEM.name = "Tool" ITEM.desc = "" ITEM.model = "models/twd/weapon/awl.mdl" ITEM.width = 1 ITEM.height = 1 ITEM.price = 0 ITEM.category = "Tools" ITEM.recipe = {["plastic"] = 2, ["metal_piece"] = 3} ITEM.weaponCategory = "melee" -- Inventory drawing if (CLIENT) then function ITEM:paintOver(item, w, h) if (item:getDa...
gpl-3.0
ArcherSys/ArcherSys
Lua/examples/lrexlib/pat2pcre.lua
20
1815
-- See Copyright Notice in the file LICENSE -- Convert Lua regex pattern to its PCRE equivalent. local t_esc = { a = "[:alpha:]", A = "[:^alpha:]", c = "[:cntrl:]", C = "[:^cntrl:]", l = "[:lower:]", L = "[:^lower:]", p = "[:punct:]", P = "[:^punct:]", u = "[:upper:]", U = "[:^upper:]", w = "[:a...
mit
wagonrepairer/Zero-K
effects/gundam_otaplas.lua
50
48727
-- miniotaplas_fireball11 -- otaplas_fireball3 -- otaplas_fireball16 -- otaplas_fireball14 -- ota_plas -- miniotaplas_fireball17 -- otaplas_fireball18 -- otaplas_fireball1 -- otaplas_fireball11 -- miniotaplas_fireball13 -- otaplas_fireball10 -- miniotaplas_fireball16 -- otaplas_fireball13 -- miniotaplas_fireball2 -- ot...
gpl-2.0
openwayne/chaos_theory
mods/animals_modpack/mob_npc/mob_tutor.lua
1
3195
local playerdata = nil local tutor_init = function(entity) if entity.dynamic_data.quest == nil then entity.dynamic_data.quest = { personal_tutor_for = nil, } end end local tutor_prototype = { name="tutor", modname="mob_npc", factions = { member = { "npc", } }, generic = { descri...
lgpl-2.1
shingenko/darkstar
scripts/zones/Xarcabard/npcs/Luck_Rune.lua
34
1062
----------------------------------- -- Area: Xarcabard -- NPC: Luck Rune -- Involved in Quest: Mhaura Fortune -- @pos 576.117 -0.164 -16.935 112 ----------------------------------- package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil; ------------------------------------- require("scripts/zones/Xarcab...
gpl-3.0
Illarion-eV/Illarion-Content
lte/magic_damage.lua
1
2073
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
shingenko/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Animated_Claymore.lua
16
1489
----------------------------------- -- Area: Dynamis Xarcabard -- NPC: Animated Claymore ----------------------------------- require("scripts/globals/status"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- -- onMobEngaged ----------------------------------- func...
gpl-3.0
shingenko/darkstar
scripts/zones/Western_Altepa_Desert/Zone.lua
27
4592
----------------------------------- -- -- Zone: Western_Altepa_Desert (125) -- ----------------------------------- package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil; package.loaded["scripts/globals/chocobo_digging"] = nil; ----------------------------------- require("scripts/zones/Western_Al...
gpl-3.0
shingenko/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Kristen.lua
38
1041
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Kristen -- Type: Standard NPC -- @zone: 94 -- @pos 2.195 -2 60.296 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil; --------...
gpl-3.0
shingenko/darkstar
scripts/globals/effects/sublimation_activated.lua
18
2071
----------------------------------- -- -- -- ----------------------------------- ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) end; ----------------------------------- -- onEffectTick Action -------------------------...
gpl-3.0
ashkanpj/uzzfire
plugins/webshot.lua
919
1473
local helpers = require "OAuth.helpers" local base = 'https://screenshotmachine.com/' local url = base .. 'processor.php' local function get_webshot_url(param) local response_body = {} local request_constructor = { url = url, method = "GET", sink = ltn12.sink.table(response_body), header...
gpl-2.0
shingenko/darkstar
scripts/zones/Quicksand_Caves/npcs/_5s3.lua
17
1275
----------------------------------- -- Area: Quicksand Caves -- NPC: Ornate Door -- Door blocked by Weight system -- @pos -694 0 -420 208 ----------------------------------- package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Quicksand_Cav...
gpl-3.0
shingenko/darkstar
scripts/zones/Castle_Oztroja/npcs/_47v.lua
17
1251
----------------------------------- -- Area: Castle Oztroja -- NPC: _47v (Handle) -- Notes: Opens door _472 from behind -- @pos -61 0 -36 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Castle_O...
gpl-3.0
shingenko/darkstar
scripts/globals/abilities/sentinel.lua
18
1091
----------------------------------- -- Ability: Sentinel -- Reduces physical damage taken and increases enmity. -- Obtained: Paladin Level 30 -- Recast Time: 5:00 -- Duration: 0:30 ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onAbilityCheck ----...
gpl-3.0
ArcherSys/ArcherSys
Lua/lua/oil.lua
1
34185
-------------------------------------------------------------------------------- ------------------------------ ##### ## ------------------------------ ------------------------------ ## ## # ## ------------------------------ ------------------------------ ## ## ## ## ---------------------------...
mit
shingenko/darkstar
scripts/zones/Sacrarium/npcs/_0s8.lua
17
1703
----------------------------------- -- NPC: _0s8 (Wooden Gate) -- Area: Sacrarium -- Involved in Mission: Secrets of Worship -- @pos 45.500 -1.500 10.000 28 ----------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/missions"); ----------------------------------- -- ...
gpl-3.0
fzimmermann89/texlive.js
texlive/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/phylogenetics/PhylogeneticTree.lua
1
2288
-- Copyright 2013 by Sarah Mäusle and Till Tantau -- -- This file may be distributed an/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @release $Header$ local PhylogeneticTree = {} -- ...
gpl-2.0
Illarion-eV/Illarion-Content
monster/race_17_blue_mummy/id_171_mummifiedpriest.lua
3
1209
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
shingenko/darkstar
scripts/globals/items/rolanberry_(864_ce).lua
35
1205
----------------------------------------- -- ID: 4531 -- Item: rolanberry_864_ce) -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility -3 -- Intelligence 1 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- ...
gpl-3.0
shingenko/darkstar
scripts/zones/Selbina/npcs/Wenzel.lua
38
1034
---------------------------------- -- Area: Selbina -- NPC: Wenzel -- Type: Item Deliverer -- @pos 31.961 -14.661 57.997 248 ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Selbina/TextIDs"); --------------------...
gpl-3.0
shingenko/darkstar
scripts/zones/Port_Bastok/npcs/Rosswald.lua
36
1683
----------------------------------- -- Area: Port Bastok -- NPC: Rosswald -- Only sells when Bastok controlls Zulkheim Region -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loaded["scripts/zones/Port_Bastok...
gpl-3.0
ArcherSys/ArcherSys
Lua/examples/penlight/tests/test-pretty.lua
1
1365
local pretty = require 'pl.pretty' local asserteq = require('pl.test').asserteq t1 = { 'one','two','three',{1,2,3}, alpha=1,beta=2,gamma=3,['&']=true,[0]=false, _fred = {true,true}, s = [[ hello dolly you're so fine ]] } s = pretty.write(t1) --,' ',true) t2,err = pretty.read(s) if err then return prin...
mit
fir3element/downgrade
data/movements/scripts/tiles.lua
15
1851
local increasing = {[416] = 417, [426] = 425, [446] = 447, [3216] = 3217, [3202] = 3215, [11062] = 11063} local decreasing = {[417] = 416, [425] = 426, [447] = 446, [3217] = 3216, [3215] = 3202, [11063] = 11062} function onStepIn(creature, item, position, fromPosition) if not increasing[item.itemid] then return tru...
gpl-2.0
shingenko/darkstar
scripts/zones/Eastern_Altepa_Desert/npcs/Daborn_IM.lua
30
3062
----------------------------------- -- Area: Eastern Altepa Desert -- NPC: Daborn, I.M. -- Border Conquest Guards -- @pos 226.493 -12.231 260.194 114 ----------------------------------- package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil; ----------------------------------- require("scripts/globals/co...
gpl-3.0
lixiantai/barrier_breaker
feeds/luci/contrib/luadoc/lua/luadoc/taglet/standard/tags.lua
93
5221
------------------------------------------------------------------------------- -- Handlers for several tags -- @release $Id: tags.lua,v 1.8 2007/09/05 12:39:09 tomas Exp $ ------------------------------------------------------------------------------- local luadoc = require "luadoc" local util = require "luadoc.util"...
gpl-2.0
lixiantai/barrier_breaker
feeds/luci/modules/rpc/luasrc/controller/rpc.lua
70
4443
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
gpl-2.0
wagonrepairer/Zero-K
gamedata/planetwars/pw_structuredefs.lua
11
23927
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- note name and description are obtained from server and modified at runtime ALLOW_SERVER_OVERRIDE_UNIT_TEXT = true structureConfig = { generic_tech = fun...
gpl-2.0
jyggen/lua-parser
tests/Fixtures/c5/ed/a1/9ef11346a307103bd174db55c35f85d157ef5303c5f5e535eacca4300a.lua
1
19089
wlScans = { ["heirlooms"] = "122349:1,122352:1,122366:0,122354:0,122367:0,122385:0,122386:0,122389:0,122351:0,122369:0,122365:0,122363:0,122353:1,122368:0,105690:0,122350:0,122364:0,122391:0,105680:0,122392:0,122387:0,122263:0,122264:0,122388:0,122381:1,122245:1,122251:1,122355:1,127010:0,127012:0,127011:0,122373:0,1...
mit
ioiasff/aer
plugins/moderation.lua
336
9979
do local function check_member(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 local username = v.username data[tostring(m...
gpl-2.0
openwayne/chaos_theory
mods/cottages/nodes_straw.lua
4
18793
--------------------------------------------------------------------------------------- -- straw - a very basic material --------------------------------------------------------------------------------------- -- * straw mat - for animals and very poor NPC; also basis for other straw things -- * straw bale - well, jus...
lgpl-2.1
wagonrepairer/Zero-K
units/armnanotc.lua
4
4107
unitDef = { unitname = [[armnanotc]], name = [[Caretaker]], description = [[Static Constructor, Builds at 10 m/s]], acceleration = 0, brakeRate = 1.5, buildCostEnergy = 220, buildCostMetal ...
gpl-2.0
kveratis/GameCode4
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/socket/src/mime.lua
2
2520
----------------------------------------------------------------------------- -- MIME support for the Lua language. -- Author: Diego Nehab -- Conforming to RFCs 2045-2049 -- RCS ID: $Id: mime.lua,v 1.29 2007/06/11 23:44:54 diego Exp $ ----------------------------------------------------------------------------- ...
lgpl-3.0
ArcherSys/ArcherSys
Jawa/luaj/test/lua/errors/debuglibargs.lua
5
6385
package.path = "?.lua;test/lua/errors/?.lua" require 'args' local alevel = {25,'25'} local afuncorlevel = {afunction,25,'25'} local notafuncorlevel = {nil,astring,aboolean,athread} local notafuncorthread = {nil,astring,aboolean} -- debug.debug() banner('debug.debug - no tests') -- debug.gethook ([thread]) banner('de...
mit
shingenko/darkstar
scripts/globals/items/serving_of_leadafry.lua
35
1203
----------------------------------------- -- ID: 5161 -- Item: serving_of_leadafry -- Food Effect: 240Min, All Races ----------------------------------------- -- Agility 5 -- Vitality 2 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -...
gpl-3.0
Krisis2254/zUI
zUI/Vec2.lua
1
6921
<<<<<<< HEAD local Vec2 = {} Vec2.__index = Vec2 setmetatable(Vec2, { __call = function (_, ...) return Vec2.new(...) end }) function Vec2.roundnum(number) if math.ceil(number) <= number + 0.5 then return math.ceil(number) else return math.floor(number) end end function Vec2.clampnum(numbe...
mit
shingenko/darkstar
scripts/globals/items/serving_of_vermillion_jelly.lua
35
1448
----------------------------------------- -- ID: 5158 -- Item: Vermillion Jelly -- Food Effect: 4 hours, All Races ----------------------------------------- -- MP +12%(Cap: 90@750 Base MP) -- Intelligence +6 -- MP Recovered While Healing +2 ----------------------------------------- require("scripts/globals/s...
gpl-3.0
wagonrepairer/Zero-K
LuaUI/Widgets/cmd_mex_placement.lua
2
23868
function widget:GetInfo() return { name = "Mex Placement Handler", desc = "Places mexes in the correct position DO NOT DISABLE", author = "Google Frog with some from Niobium and Evil4Zerggin.", version = "v1", date = "22 April, 2012", --2 April 2013 license = "GNU GPL, v2 or later", ...
gpl-2.0
psychon/awesome
tests/examples/wibox/widget/progressbar/encapsulation.lua
6
3420
--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_NO_USAGE --DOC_NO_DASH --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local color = require("gears.color") --DOC_HIDE local beautiful = require("beautiful") --DOC_HIDE local grad1 = color{ type = "linear", from = { 0, 0 }, to = { 20, 0 }, --DOC_HIDE stops...
gpl-2.0
wagonrepairer/Zero-K
units/scorpion.lua
2
10240
unitDef = { unitname = [[scorpion]], name = [[Scorpion]], description = [[Cloaked Infiltration Strider]], acceleration = 0.26, brakeRate = 0.26, buildCostEnergy = 3000, buildCostMetal = 3000, builder = false,...
gpl-2.0
openwayne/chaos_theory
mods/nssm/mobs/larva.lua
1
1878
mobs:register_mob("nssm:larva", { type = "monster", hp_max = 12, hp_min = 8, collisionbox = {-0.3, 0, -0.3, 0.3, 0.41, 0.3}, visual = "mesh", mesh = "larva.x", textures = {{"larva.png"}}, visual_size = {x=3, y=3}, makes_footstep_sound = false, view_range = 10, rotate = 90, jump = false, fear_height = 4, j...
lgpl-2.1
master041/tele___master
plugins/id.lua
226
4260
local function user_print_name(user) if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name..' ' end if user.lastname then text = text..user.last_name end return text end local function returnids(cb_extra, success, result) local re...
gpl-2.0
shingenko/darkstar
scripts/zones/Castle_Oztroja/mobs/Tzee_Xicu_the_Manifest.lua
27
1224
----------------------------------- -- Area: Castle Oztroja -- NPC: Tzee Xicu the Manifest ----------------------------------- require("scripts/globals/titles"); require("scripts/zones/Castle_Oztroja/TextIDs"); ----------------------------------- -- onMobSpawn Action ----------------------------------- ...
gpl-3.0
wagonrepairer/Zero-K
gamedata/modularcomms/weapons/hpartillery_napalm.lua
6
1223
local name = "commweapon_hpartillery_napalm" local weaponDef = { name = [[Napalm Artillery]], accuracy = 600, areaOfEffect = 256, craterBoost = 1, craterMult = 2, customParams = { muzzleEffectFire = [[custom:HEAVY_CANNON_MUZZLE]],...
gpl-2.0
shingenko/darkstar
scripts/zones/Ordelles_Caves/npcs/qm2.lua
17
1485
----------------------------------- -- Area: Ordelle's Caves -- NPC: ??? (qm2) -- Involved in Quest: A Squire's Test II -- @pos -94 1 273 193 ------------------------------------- package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil; ------------------------------------- require("scripts/globals/sett...
gpl-3.0
wagonrepairer/Zero-K
units/shiptorp.lua
4
5322
unitDef = { unitname = [[shiptorp]], name = [[Hunter]], description = [[Torpedo Riot Frigate]], acceleration = 0.048, activateWhenBuilt = true, brakeRate = 0.043, buildCostEnergy = 350, buildCostMetal = 350, builder = false, b...
gpl-2.0
jamesward/pubnub-api
lua-corona/example-channel-information/main.lua
2
2285
require "pubnub" multiplayer = pubnub.new({ publish_key = "demo", subscribe_key = "demo", secret_key = nil, ssl = nil, origin = "pubsub.pubnub.com" }) -- -- Player ID (Generated Later) -- me = {} me.id = nil me.name = "John Smith" -- -- Generate Player ID -- multipl...
mit
shingenko/darkstar
scripts/zones/La_Theine_Plateau/npcs/Galaihaurat.lua
17
2430
----------------------------------- -- Area: La Theine Plateau -- NPC: Galaihaurat -- Involved in Mission: The Rescue Drill -- @pos -482 -7 222 102 ----------------------------------- package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil; ----------------------------------- require("scripts/globals...
gpl-3.0
kveratis/GameCode4
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/wxLua/bindings/wxwidgets/wxbase_rules.lua
1
9410
-- ---------------------------------------------------------------------------- -- Rules to build the wxWidgets binding for wxLua -- load using : $lua -e"rulesFilename=\"rules.lua\"" genwxbind.lua -- ---------------------------------------------------------------------------- -- ---------------------------------...
lgpl-3.0
shingenko/darkstar
scripts/zones/Dangruf_Wadi/npcs/qm5.lua
17
1897
----------------------------------- -- NPC: ??? (QM5) -- Type: Eggblix dice roll game part 3 -- @zone: 191 -- Involved in quest "As Thick As Thieves" ----------------------------------- package.loaded["scripts/zones/Dangruf_Wadi/TextIDs"] = nil; ----------------------------------- require("scripts/globals...
gpl-3.0
matinJ/skynet
lualib/snax/hotfix.lua
39
2268
local si = require "snax.interface" local io = io local hotfix = {} local function envid(f) local i = 1 while true do local name, value = debug.getupvalue(f, i) if name == nil then return end if name == "_ENV" then return debug.upvalueid(f, i) end i = i + 1 end end local function collect_uv(f , ...
mit
lixiantai/barrier_breaker
feeds/routing/luci-app-bmx6/files/usr/lib/lua/luci/model/cbi/bmx6/advanced.lua
18
2129
--[[ Copyright (C) 2011 Pau Escrich <pau@dabax.net> 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 option) any later version. Th...
gpl-2.0
shingenko/darkstar
scripts/globals/zone.lua
30
3876
------------------------------------ -- -- Contains global functions and variables -- related to area specific things -- ------------------------------------ ------------------------------------ -- zone related IDs ------------------------------------ -- Zone Types ZONETYPE_NONE = 0 ZONETYPE_CI...
gpl-3.0
psychon/awesome
tests/test-miss-handlers.lua
8
1668
-- Test set_{,new}index_miss_handler local mouse = mouse local class = tag local obj = class({}) local handler = require("gears.object.properties") local wibox = require("wibox") awesome.connect_signal("debug::index::miss", error) awesome.connect_signal("debug::newindex::miss", error) class.set_index_miss_handler(fu...
gpl-2.0
wagonrepairer/Zero-K
scripts/heavyturret.lua
11
1619
include "constants.lua" local spGetUnitRulesParam = Spring.GetUnitRulesParam local base, turret, breech, barrel1, barrel2, flare = piece("base", "turret", "breech", "barrel1", "barrel2", "flare") local smokePiece = {base, turret} -- Signal definitions local SIG_AIM = 1 function script.AimWeapon(num, heading, pitch...
gpl-2.0
fzimmermann89/texlive.js
texlive/texmf-dist/tex/luatex/luaotfload/fontloader-fonts-syn.lua
2
3674
if not modules then modules = { } end modules ['luatex-fonts-syn'] = { version = 1.001, comment = "companion to luatex-*.tex", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } if context then ...
gpl-2.0
lixiantai/barrier_breaker
feeds/packages/net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/interfaceconfig.lua
26
7228
-- ------ extra functions ------ -- function interfaceCheck() metricValue = ut.trim(sys.exec("uci get -p /var/state network." .. arg[1] .. ".metric")) if metricValue == "" then -- no metric errorNoMetric = 1 else -- if metric exists create list of interface metrics to compare against for duplicates uci.cursor()...
gpl-2.0
ArcherSys/ArcherSys
Lua/examples/luabitops/bittest.lua
17
2353
-- Test cases for bit operations library. Public domain. local bit = require"bit" local vb = { 0, 1, -1, 2, -2, 0x12345678, 0x87654321, 0x33333333, 0x77777777, 0x55aa55aa, 0xaa55aa55, 0x7fffffff, 0x80000000, 0xffffffff } local function cksum(name, s, r) local z = 0 for i=1,#s do z = (z + string.byte(s, i)*...
mit
openwayne/chaos_theory
mods/pipeworks/models.lua
4
1621
----------------------------------- -- The various pipe select boxes pipeworks.pipe_selectboxes = { { -32/64, -8/64, -8/64, 8/64, 8/64, 8/64 }, { -8/64 , -8/64, -8/64, 32/64, 8/64, 8/64 }, { -8/64 , -32/64, -8/64, 8/64, 8/64, 8/64 }, { -8/64 , -8/64, -8/64, 8/64, 32/64, 8/64 }, { -8/64 , -8/64, ...
lgpl-2.1
TheAncientGoat/GodheadLips
data/godhead/scripts/client/widgets/skillcontrol.lua
1
4330
Widgets.SkillControl = Class(Widget) Widgets.SkillControl.new = function(clss, args) local self = Widget.new(clss, {cols = 3, rows = 2, margins = {left=100-15}}) -- Buttons. self.button_minus = Widgets.Button{style = "scroll-left", pressed = function(w) if w.enabled then self:changed(math.max(0, self.cap - 1)) en...
gpl-3.0
shingenko/darkstar
scripts/zones/Mhaura/npcs/Rycharde.lua
17
16001
----------------------------------- -- Area: Mhaura -- NPC: Rycharde -- Standard Info NPC -- Starts & Finishes non Repeatable Quest: Rycharde the Chef, -- WAY_OF_THE_COOK, UNENDING_CHASE -- his name is Valgeir (not completed correctly, ferry not implemented) -- the clue (100%) -- the basics (not completed...
gpl-3.0
lixiantai/barrier_breaker
feeds/luci/protocols/ipv6/luasrc/model/network/proto_4x6.lua
63
1522
--[[ LuCI - Network model - 6to4, 6in4 & 6rd protocol extensions Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Copyright 2013 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of ...
gpl-2.0
shingenko/darkstar
scripts/zones/Phomiuna_Aqueducts/npcs/_0rp.lua
17
1628
----------------------------------- -- Area: Phomiuna_Aqueducts -- NPC: Oil lamp -- @pos -60 -23 60 27 ----------------------------------- package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zones/Phomiuna...
gpl-3.0
shingenko/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Zyfhil.lua
34
1031
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Zyfhil -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); -----------...
gpl-3.0
psychon/awesome
tests/examples/wibox/container/arcchart/rounded_edge.lua
6
3019
--DOC_HIDE_ALL --DOC_GEN_IMAGE local parent = ... local wibox = require( "wibox" ) local beautiful = require( "beautiful" ) parent:add(wibox.widget { { { markup = "<b>rounded_edge</b> = <i>false</i>", widget = wibox.widget.textbox ...
gpl-2.0
jyggen/lua-parser
tests/Fixtures/7b/da/b8/8ddbcc8e710a9b8c224b9bbeb2c72eb38850e8d5329a98c09f53906f3c.lua
1
2241
AmrDb = { ["Talents"] = { }, ["LastCharacterImportDate"] = "", ["SendSettings"] = { ["SendTo"] = "", ["SendGems"] = true, ["SendEnchants"] = true, ["SendEnchantMaterials"] = true, ["SendToType"] = "a friend", }, ["CharacterName"] = "Sockervrål", ["Race"] = "NightElf", ["ActiveSpec"] = 1, ["Level"] =...
mit
psychon/awesome
lib/wibox/container/margin.lua
6
6178
--------------------------------------------------------------------------- -- --@DOC_wibox_container_defaults_margin_EXAMPLE@ -- @author Uli Schlachter -- @copyright 2010 Uli Schlachter -- @classmod wibox.container.margin --------------------------------------------------------------------------- local pairs = pairs ...
gpl-2.0
openwayne/chaos_theory
mods/bones/init.lua
8
6776
-- Minetest 0.4 mod: bones -- See README.txt for licensing and other information. local function is_owner(pos, name) local owner = minetest.get_meta(pos):get_string("owner") if owner == "" or owner == name or minetest.check_player_privs(name, "protection_bypass") then return true end return false end local bone...
lgpl-2.1
wagonrepairer/Zero-K
units/slowmort.lua
2
7943
unitDef = { unitname = [[slowmort]], name = [[Moderator]], description = [[Distruptor Skirmisher Walker]], acceleration = 0.2, activateWhenBuilt = true, brakeRate = 0.2, buildCostEnergy = 240, buildCostMetal = 240, builder = fal...
gpl-2.0
soonhokong/travis_test
tests/lua/coe2.lua
1
1270
local env = environment() local l1 = param_univ("l1") local l2 = param_univ("l2") env = add_decl(env, mk_var_decl("functor", {l1, l2}, mk_arrow(mk_sort(l1), mk_sort(l2), mk_sort(imax_univ(l1, l2))))) local A = Local("A", mk_sort(l1)) local B = Local("B", mk_sort(l2)) local functor = Const("fun...
apache-2.0
shingenko/darkstar
scripts/zones/Temple_of_Uggalepih/mobs/Manipulator.lua
16
2110
---------------------------------- -- Area: Temple of Uggalipeh -- NM: Manipulator -- Notes: Paths around the 2 staircases ----------------------------------- local path = { -17.930, -8.500, -93.215, -18.553, -7.713, -91.224, -20.226, -6.250, -89.091, -21.651, -5.005, -87.401, -23.137, -3.917, ...
gpl-3.0
openwayne/chaos_theory
mods/moretrees/date_palm.lua
3
27111
-- Date palms. -- -- Date palms grow in hot and dry desert, but they require water. This makes them -- a bit harder to find. If found in the middle of the desert, their presence -- indicates a water source below the surface. -- -- As an additional feature (which can be disabled), dates automatically regrow after -- har...
lgpl-2.1
shingenko/darkstar
scripts/zones/North_Gustaberg_[S]/npcs/qm1.lua
31
1130
----------------------------------- -- Area: North Gustaberg (S) (F-8) -- NPC: ??? -- Involved in Quests -- @pos -232 41 425 ----------------------------------- package.loaded["scripts/zones/North_Gustaberg_[S]/TextIDs"] = nil; package.loaded["scripts/globals/quests"] = nil; ----------------------------------- require...
gpl-3.0