repo_name
stringlengths
6
78
path
stringlengths
4
206
copies
stringclasses
281 values
size
stringlengths
4
7
content
stringlengths
625
1.05M
license
stringclasses
15 values
perky/factorio-circuitgui
helpers/helpers.lua
1
3262
function ModuloTimer( ticks ) return (game.tick % ticks) == 0 end function PrintToAllPlayers( text ) for playerIndex = 1, #game.players do if game.players[playerIndex] ~= nil then game.players[playerIndex].print(text) end end end function FormatTicksToTime( ticks ) local seconds = ticks / 60 local minutes...
mit
atosatto/kubernetes-contrib
ingress/controllers/nginx/lua/vendor/lua-resty-http/lib/resty/http_headers.lua
69
1716
local rawget, rawset, setmetatable = rawget, rawset, setmetatable local str_gsub = string.gsub local str_lower = string.lower local _M = { _VERSION = '0.01', } -- Returns an empty headers table with internalised case normalisation. -- Supports the same cases as in ngx_lua: -- -- headers.content_lengt...
apache-2.0
federicodotta/proxmark3
client/scripts/dumptoemul.lua
8
2920
-- The getopt-functionality is loaded from pm3/getopt.lua -- Have a look there for further details getopt = require('getopt') bin = require('bin') example = "script run dumptoemul -i dumpdata-foobar.bin" author = "Martin Holst Swende" usage = "script run dumptoemul [-i <file>] [-o <file>]" desc =[[ This script takes a...
gpl-2.0
harisankarma/Ardupilot
Tools/CHDK-Scripts/kap_uav.lua
183
28512
--[[ KAP UAV Exposure Control Script v3.1 -- Released under GPL by waterwingz and wayback/peabody http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script @title KAP UAV 3.1 @param i Shot Interval (sec) @default i 15 @range i 2 120 @param s Total Shots (0=infinite) @default s 0 @range ...
gpl-3.0
ffxiphoenix/darkstar
scripts/globals/items/uberkuchen.lua
35
1465
----------------------------------------- -- ID: 5615 -- Item: uberkuchen -- Food Effect: 4Hrs, All Races ----------------------------------------- -- HP 10 -- MP % 3 (cap 13) -- Intelligence 3 -- MP Recovered While Healing 1 ----------------------------------------- require("scripts/globals/status"); --...
gpl-3.0
elixboyBW/elixboySPM
plugins/vote.lua
615
2128
do local _file_votes = './data/votes.lua' function read_file_votes () local f = io.open(_file_votes, "r+") if f == nil then print ('Created voting file '.._file_votes) serialize_to_file({}, _file_votes) else print ('Values loaded: '.._file_votes) f:close() end return loadfile (_file_votes)()...
gpl-2.0
ffxiphoenix/darkstar
scripts/zones/Windurst_Woods/npcs/Forine.lua
42
1106
----------------------------------- -- Area: Windurst Woods -- NPC: Forine -- Involved In Mission: Journey Abroad -- @zone 241 -- @pos -52.677 -0.501 -26.299 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/globals/k...
gpl-3.0
usstwxy/luarocks
src/luarocks/tools/tar.lua
11
4827
--- A pure-Lua implementation of untar (unpacking .tar archives) --module("luarocks.tools.tar", package.seeall) local tar = {} local fs = require("luarocks.fs") local dir = require("luarocks.dir") local util = require("luarocks.util") local blocksize = 512 local function get_typeflag(flag) if flag == "0" or flag...
mit
ffxiphoenix/darkstar
scripts/globals/items/love_chocolate.lua
35
1149
----------------------------------------- -- ID: 5230 -- Item: love_chocolate -- Food Effect: 180Min, All Races ----------------------------------------- -- Magic Regen While Healing 4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- ...
gpl-3.0
Phrohdoh/OpenRA
mods/d2k/maps/ordos-03b/ordos03b-AI.lua
8
1862
--[[ Copyright 2007-2020 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you 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) any later vers...
gpl-3.0
Quenty/NevermoreEngine
src/pillbacking/src/Client/PillBackingBuilder.lua
1
11169
--[=[ Builds a pill backing for Guis @class PillBackingBuilder ]=] local require = require(script.Parent.loader).load(script) local Table = require("Table") local PillBackingBuilder = {} PillBackingBuilder.__index = PillBackingBuilder PillBackingBuilder.ClassName = "PillBackingBuilder" PillBackingBuilder.CIRCLE_IM...
mit
Shulyaka/packages
net/wifidog-ng/files/wifidog-ng/auth.lua
22
6175
--[[ Copyright (C) 2018 Jianhui Zhao <jianhuizhao329@gmail.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later vers...
gpl-2.0
ffxiphoenix/darkstar
scripts/zones/Lower_Jeuno/npcs/Aldo.lua
17
1938
----------------------------------- -- Area: Lower Jeuno -- NPC: Aldo -- Involved in Mission: Magicite, Return to Delkfutt's Tower (Zilart) -- @pos 20 3 -58 245 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/...
gpl-3.0
moonlight/blues-brothers-rpg
data/scripts/PlayerController.lua
2
2126
-- -- PlayerControllers are used by human players to control pawns. -- -- By Bjorn Lindeijer import("Controller.lua") PlayerController = Controller:subclass { name = "PlayerController"; -- This is where the input handling takes place. When the player is not -- allowed to move (ie. in a cutscene), this function ...
gpl-2.0
ffxiphoenix/darkstar
scripts/globals/spells/frost.lua
18
1587
----------------------------------------- -- Spell: Frost -- Deals ice damage that lowers an enemy's agility and gradually reduces its HP. ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------...
gpl-3.0
ffxiphoenix/darkstar
scripts/globals/abilities/pets/meteor_strike.lua
25
1296
--------------------------------------------------- -- Geocrush --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); require("scripts/globals/magic"); --------------------------------------------...
gpl-3.0
ffxiphoenix/darkstar
scripts/globals/mobskills/Havoc_Spiral.lua
25
1095
--------------------------------------------- -- Havoc Spiral -- -- Description: Deals damage to players in an area of effect. Additional effect: Sleep -- Type: Physical -- 2-3 Shadows -- Range: Unknown -- Special weaponskill unique to Ark Angel MR. Deals ~100-300 damage. -----------------------------------------...
gpl-3.0
ffxiphoenix/darkstar
scripts/zones/Port_Bastok/npcs/Blabbivix.lua
17
1227
----------------------------------- -- Area: Port Bastok -- NPC: Blabbivix -- Standard merchant, though he acts like a guild merchant -- @pos -110.209 4.898 22.957 236 ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("sc...
gpl-3.0
RodneyMcKay/x_hero_siege
game/scripts/vscripts/abilities/heroes/hero_enchantress.lua
1
4504
LinkLuaModifier("modifier_tyrande_multiple_arrows", "abilities/heroes/hero_enchantress", LUA_MODIFIER_MOTION_NONE) tyrande_multiple_arrows = tyrande_multiple_arrows or class({}) function tyrande_multiple_arrows:GetIntrinsicModifierName() return "modifier_tyrande_multiple_arrows" end modifier_tyrande_multiple_arrows...
gpl-2.0
vilarion/Illarion-Content
quest/rutrus_67_cadomyr_wilderness.lua
3
5143
--[[ 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
ffxiphoenix/darkstar
scripts/globals/keyitems.lua
32
120326
--------------------------------------------- -- -- KEYITEMS IDS -- --------------------------------------------- ZERUHN_REPORT = 1; PALBOROUGH_MINES_LOGS = 2; BLUE_ACIDITY_TESTER = 3; RED_ACIDITY_TESTER = 4; LETTER_TO_...
gpl-3.0
degarashi/resonant
resource/sys_script/Camera3D.lua
1
1164
require("sysfunc") return { -- 実行時調整可能な値定義 _variable = { -- 変数名 fov = { -- 値をどのように適用するか -- self: ターゲットオブジェクトハンドル -- value: セットする値 (number or Vec[2-4]) apply = function(self, value) self:setFov(Degree.New(value)) end, -- 値操作の方式 manip = "linear", -- 一回の操作で加える量 step = 1, -- デフォルト値 ...
mit
dromozoa/dromozoa-json
dromozoa/json/is_array.lua
4
1067
-- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com> -- -- This file is part of dromozoa-json. -- -- dromozoa-json 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 -...
gpl-3.0
ffxiphoenix/darkstar
scripts/zones/Southern_San_dOria/npcs/Phamelise.lua
30
2057
----------------------------------- -- Area: Southern San d'Oria -- NPC: Phamelise -- Only sells when San d'Oria controlls Zulkheim Region ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/gl...
gpl-3.0
vilarion/Illarion-Content
monster/race_0_human/base.lua
5
2448
--[[ 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
vilarion/Illarion-Content
npc/base/basic.lua
1
19153
--[[ 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
ffxiphoenix/darkstar
scripts/zones/Apollyon/mobs/Carnagechief_Jackbodokk.lua
16
2435
----------------------------------- -- Area: Apollyon CS -- NPC: Carnagechief_Jackbodokk ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Apollyon/TextIDs"); ------------...
gpl-3.0
Quenty/NevermoreEngine
src/meshutils/src/Shared/MeshUtils.lua
1
1483
--[=[ Mesh utility methods @class MeshUtils ]=] local MeshUtils = {} --[=[ Get or create a mesh object for a part @param part BasePart @return Mesh? ]=] function MeshUtils.getOrCreateMesh(part) local dataModelMesh = part:FindFirstChildWhichIsA("DataModelMesh") if dataModelMesh then return dataModelMesh end...
mit
ffxiphoenix/darkstar
scripts/zones/South_Gustaberg/TextIDs.lua
8
1292
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6393; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6398; -- Obtained: <item>. GIL_OBTAINED = 6399; -- Obtained <number> gil. KEYITEM_OBTAINED = 6401; -- Ob...
gpl-3.0
ffxiphoenix/darkstar
scripts/globals/items/dish_of_spag_vongole_rosso_+1.lua
35
1658
----------------------------------------- -- ID: 5198 -- Item: dish_of_spag_vongole_rosso_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Health % 20 -- Health Cap 95 -- Vitality 2 -- Mind -1 -- Defense % 25 -- Defense Cap 35 -- Store TP 6 -----------------------------------...
gpl-3.0
lxl1140989/sdk-for-tb
feeds/luci/modules/admin-full/luasrc/model/cbi/admin_system/admin.lua
79
3356
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 Jo-Philipp Wich <xm@subsignal.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 the License at http://w...
gpl-2.0
dail8859/ScintilluaPlusPlus
ext/scintillua/lexers/cpp.lua
4
2938
-- Copyright 2006-2017 Mitchell mitchell.att.foicica.com. See LICENSE. -- C++ LPeg lexer. local l = require('lexer') local token, word_match = l.token, l.word_match local P, R, S = lpeg.P, lpeg.R, lpeg.S local M = {_NAME = 'cpp'} -- Whitespace. local ws = token(l.WHITESPACE, l.space^1) -- Comments. local line_comme...
gpl-2.0
ffxiphoenix/darkstar
scripts/zones/Norg/npcs/HomePoint#2.lua
19
1167
----------------------------------- -- Area: Norg -- NPC: HomePoint#2 -- @pos -65 -5 54 252 ----------------------------------- package.loaded["scripts/zones/Norg/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Norg/TextIDs"); require("scripts/globals/homepoint"); ----------------------...
gpl-3.0
zeliklil/zplayer
zplay.lua
1
2133
#! /usr/bin/env lua -- ZPlayer local lgi = require 'lgi' local GLib = lgi.GLib local Gtk = lgi.Gtk local Gdk = lgi.Gdk local GdkX11 = lgi.GdkX11 local Gio = lgi.Gio local gstPlayer = require 'gst_backend' local app = Gtk.Application.new ('org.zplayer',Gio.ApplicationFlags.HANDLES_OPEN) window = nil local player...
mit
ffxiphoenix/darkstar
scripts/zones/Hall_of_Transference/npcs/_0e2.lua
32
1335
----------------------------------- -- Area: Hall of Transference -- NPC: Cermet Gate - Mea -- @pos 280 -86 -19 ----------------------------------- package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zones/Hall_o...
gpl-3.0
ffxiphoenix/darkstar
scripts/zones/Buburimu_Peninsula/TextIDs.lua
9
1577
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6406; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6411; -- Obtained: <item>. GIL_OBTAINED = 6412; -- Obtained <number> gil. KEYITEM_OBTAINED = 6414; -- Obtained...
gpl-3.0
ffxiphoenix/darkstar
scripts/zones/Bastok_Mines/npcs/Pavvke.lua
36
2173
----------------------------------- -- Area: Bastok Mines -- NPC: Pavvke -- Starts Quests: Fallen Comrades (100%) ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/sett...
gpl-3.0
ffxiphoenix/darkstar
scripts/globals/weaponskills/backhand_blow.lua
30
1352
----------------------------------- -- 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 ...
gpl-3.0
Phrohdoh/OpenRA
mods/ra/maps/allies-08a/allies08a.lua
3
6462
--[[ Copyright 2007-2020 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you 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) any later vers...
gpl-3.0
lxl1140989/sdk-for-tb
feeds/luci/applications/luci-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/widget.lua
78
1243
--[[ LuCI - Lua Configuration Interface Copyright 2012 Manuel Munz <freifunk at somakoma dot de> 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 ]]-- ...
gpl-2.0
ffxiphoenix/darkstar
scripts/globals/spells/sandstorm.lua
31
1153
-------------------------------------- -- Spell: Sandstorm -- Changes the weather around target party member to "dusty." -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------...
gpl-3.0
RodneyMcKay/x_hero_siege
game/scripts/vscripts/components/battlepass/modifiers/modifier_patreon_donator.lua
1
1442
modifier_patreon_donator = class({}) function modifier_patreon_donator:IsHidden() return true end function modifier_patreon_donator:IsPurgable() return false end function modifier_patreon_donator:OnCreated() if IsServer() then self:SetStackCount(api:GetDonatorStatus(self:GetParent():GetPlayerID())) self:StartInt...
gpl-2.0
DrayChou/telegram-bot
plugins/bot_tuling123.lua
1
3504
do local tuling_config = load_from_file('data/tuling.lua') -- 图灵机器人的KEY local tuling_url = "http://www.tuling123.com/openapi/api" local consumer_key = tuling_config.consumer_key local function getTuling(user_id,info) local url = tuling_url.."?key="..consumer_key url = url.."&info="..info url = url.."&use...
gpl-2.0
ffxiphoenix/darkstar
scripts/zones/Selbina/npcs/Lombaria.lua
32
1031
----------------------------------- -- Area: Selbina -- NPC: Lombaria -- Map Seller NPC ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Selbina/TextIDs"); require("scripts/globals/magic_maps"); ------------...
gpl-3.0
ffxiphoenix/darkstar
scripts/zones/Abyssea-Grauberg/Zone.lua
32
1549
----------------------------------- -- -- Zone: Abyssea - Grauberg -- ----------------------------------- package.loaded["scripts/zones/Abyssea-Grauberg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/quests"); require("scripts/zones/Abysse...
gpl-3.0
ffxiphoenix/darkstar
scripts/zones/Bastok_Markets_[S]/npcs/Weldon.lua
34
1109
---------------------------------- -- Area: Bastok Markets [S] -- NPC: Weldon -- Type: Item Deliverer -- @pos -191.575 -8 36.688 87 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Bastok_Marke...
gpl-3.0
ffxiphoenix/darkstar
scripts/zones/Port_Windurst/npcs/Puo_Rhen.lua
38
1037
----------------------------------- -- Area: Port Windurst -- NPC: Puo Rhen -- Type: Mission Starter -- @zone: 240 -- @pos -227.964 -9 187.087 -- -- Auto-Script: Requires Verification (Verfied By Brawndo) ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ------------...
gpl-3.0
azukiapp/busted
src/languages/en.lua
1
1222
local s = require('say') s:set_namespace("en") -- "Pending: test.lua @ 12 \n description s:set("output.pending", "Pending") s:set("output.failure", "Failure") s:set("output.success", "Success") s:set("output.pending_plural", "pending") s:set("output.failure_plural", "failures") s:set("output.success_plural", "succes...
mit
ffxiphoenix/darkstar
scripts/zones/Port_San_dOria/npcs/Liloune.lua
36
1373
----------------------------------- -- Area: Port San d'Oria -- NPC: Liloune -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/zones/Port_San_dOria/TextI...
gpl-3.0
jacks0nX/cqui
PQ/StrategicView_MapPlacement.lua
3
20766
-- =========================================================================== -- Input for placing items on the world map. -- Copyright 2015-2016, Firaxis Games -- -- To hot-reload, save this then re-save the file that imports the file -- (e.g., WorldInput) -- ==========================================================...
mit
ld-test/argparse
src/argparse.lua
5
29166
-- The MIT License (MIT) -- Copyright (c) 2013 - 2015 Peter Melnichenko -- Permission is hereby granted, free of charge, to any person obtaining a copy of -- this software and associated documentation files (the "Software"), to deal in -- the Software without restriction, including without limitation the rights to --...
mit
ffxiphoenix/darkstar
scripts/globals/mobskills/Tebbad_Wing.lua
18
1240
--------------------------------------------- -- Tebbad Wing -- -- Description: A hot wind deals Fire damage to enemies within a very wide area of effect. Additional effect: Plague -- Type: Magical -- Utsusemi/Blink absorb: Wipes shadows -- Range: 30' radial. -- Notes: Used only by Tiamat, Smok and Ildebra...
gpl-3.0
steplebr/domoticz
scripts/lua/JSON.lua
28
50533
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2016 Jeffrey Friedl -- http://regex.info/blog/ -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses/by...
gpl-3.0
brianchenito/PartyHud
modinfo.lua
1
1203
name="PartyHUD" description= "A DST mod that displays the health status of other players. Set Position and layout in config." author= "Brian Chen (Chenito)" version="0.985" forumthread="" api_version = 10-- the current version of the modding api dont_starve_compatible = true reign_of_giants_compatible = true dst_c...
unlicense
damnever/dotfiles
config/nvim/lua/lib.lua
1
3081
local vim = vim local function dump(o) if type(o) == 'table' then local s = '{ ' for k, v in pairs(o) do if type(k) ~= 'number' then k = '"' .. k .. '"' end s = s .. '[' .. k .. '] = ' .. dump(v) .. ',' end return s .. '} ' else return tostring(o)...
mit
ffxiphoenix/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Yafaaf.lua
38
1080
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Yafaaf -- Type: Standard Merchant -- @pos 76.889 -7 -140.379 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); req...
gpl-3.0
noooway/love2d_arkanoid_tutorial
3-03_MouseControls/bricks.lua
3
5102
local vector = require "vector" local bricks = {} bricks.image = love.graphics.newImage( "img/800x600/bricks.png" ) bricks.tile_width = 64 bricks.tile_height = 32 bricks.tileset_width = 384 bricks.tileset_height = 160 bricks.rows = 11 bricks.columns = 8 bricks.top_left_position = vector( 47, 34 ) bricks.brick_width = ...
mit
dail8859/ScintilluaPlusPlus
ext/scintillua/lexers/wsf.lua
3
3236
-- Copyright 2006-2017 Mitchell mitchell.att.foicica.com. See LICENSE. -- WSF LPeg lexer (based on XML). -- Contributed by Jeff Stone. local l = require('lexer') local token, word_match = l.token, l.word_match local P, R, S, V = lpeg.P, lpeg.R, lpeg.S, lpeg.V local M = {_NAME = 'wsf'} -- Whitespace. local ws = token...
gpl-2.0
ffxiphoenix/darkstar
scripts/zones/East_Ronfaure/npcs/Logging_Point.lua
29
1101
----------------------------------- -- Area: East Ronfaure -- NPC: Logging Point ----------------------------------- package.loaded["scripts/zones/East_Ronfaure/TextIDs"] = nil; ------------------------------------- require("scripts/globals/logging"); require("scripts/zones/East_Ronfaure/TextIDs"); -----...
gpl-3.0
ffxiphoenix/darkstar
scripts/zones/Monarch_Linn/bcnms/savage.lua
17
1700
----------------------------------- -- Area: Monarch Linn -- Name: savage ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/missions"); -- After registering the BCNM via bcnmRegister(bcnmid) function onBcnmRegister(player,instance) end; -- Physically entering...
gpl-3.0
Quenty/NevermoreEngine
src/scrollingframe/src/Client/Scrollbar.lua
1
2485
--[=[ @class Scrollbar ]=] local require = require(script.Parent.loader).load(script) local Maid = require("Maid") local SCROLL_TYPE = require("SCROLL_TYPE") local Signal = require("Signal") local Table = require("Table") local Scrollbar = {} Scrollbar.ClassName = "Scrollbar" Scrollbar.__index = Scrollbar function...
mit
vilarion/Illarion-Content
quest/valandil_elensar_69_wilderness.lua
2
5177
--[[ 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
bgarrels/vlc-2.1
share/lua/intf/modules/common.lua
48
4964
--[[ This code is public domain (since it really isn't very interesting) ]]-- module("common",package.seeall) -- Iterate over a table in the keys' alphabetical order function pairs_sorted(t) local s = {} for k,_ in pairs(t) do table.insert(s,k) end table.sort(s) local i = 0 return function () i = ...
gpl-2.0
kitala1/darkstar
scripts/zones/Cloister_of_Frost/TextIDs.lua
4
1042
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6382; -- Obtained: <item> GIL_OBTAINED = 6383; -- Obtained <number> gil KEYITEM_OBTAINED = 6385; -- Obtain...
gpl-3.0
kitala1/darkstar
scripts/globals/items/coral_fungus.lua
35
1204
----------------------------------------- -- ID: 4450 -- Item: coral_fungus -- Food Effect: 5Min, All Races ----------------------------------------- -- Strength -4 -- Mind 2 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemChe...
gpl-3.0
kitala1/darkstar
scripts/zones/Giddeus/npcs/HomePoint#1.lua
11
1233
----------------------------------- -- Area: Giddeus -- NPC: HomePoint#1 -- @pos -132 -3 -303 145 ----------------------------------- package.loaded["scripts/zones/Giddeus/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Giddeus/TextIDs"); require("scripts/globals/homepoint"); ...
gpl-3.0
apletnev/koreader
frontend/ui/elements/refresh_menu_table.lua
11
2516
local UIManager = require("ui/uimanager") local util = require("ffi/util") local _ = require("gettext") local function custom_1() return G_reader_settings:readSetting("refresh_rate_1") or 12 end local function custom_2() return G_reader_settings:readSetting("refresh_rate_2") or 22 end local function custom_3() retur...
agpl-3.0
kitala1/darkstar
scripts/globals/weaponskills/impulse_drive.lua
30
1509
----------------------------------- -- Impulse Drive -- Polearm weapon skill -- Skill Level: 240 -- Delivers a two-hit attack. Damage varies with TP. -- In order to obtain Impulse Drive, the quest Methods Create Madness must be completed. -- Will stack with Sneak Attack. -- Aligned with the Shadow Gorget, Soil G...
gpl-3.0
kitala1/darkstar
scripts/zones/Windurst_Woods/npcs/Bopa_Greso.lua
19
1724
----------------------------------- -- Area: Windurst Woods -- NPC: Bopa Greso -- Type: Standard NPC -- @zone: 241 -- @pos 59.773 -6.249 216.766 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------...
gpl-3.0
kidaa/MoonGen
lua/include/error.lua
5
4941
--------------------------------- --- @file error.lua --- @brief Error ... --- @todo TODO docu --------------------------------- local mod = {} mod.errors = { [1] = "Operation not permitted", [2] = "No such file or directory", [3] = "No such process", [4] = "Interrupted system call", [5] = "I/O error", [6]...
mit
fastmailops/prosody
tests/test_util_ip.lua
1
3257
function match(match, _M) local _ = _M.new_ip; local ip = _"10.20.30.40"; assert_equal(match(ip, _"10.0.0.0", 8), true); assert_equal(match(ip, _"10.0.0.0", 16), false); assert_equal(match(ip, _"10.0.0.0", 24), false); assert_equal(match(ip, _"10.0.0.0", 32), false); assert_equal(match(ip, _"10.20.0.0", 8), tr...
mit
kitala1/darkstar
scripts/zones/Meriphataud_Mountains/npcs/Three_Steps_IM.lua
30
3077
----------------------------------- -- Area: Meriphataud Mountains -- NPC: Three Steps, I.M. -- Type: Border Conquest Guards -- @pos -120.393 -25.822 -592.604 119 ----------------------------------- package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil; ----------------------------------- require("scrip...
gpl-3.0
kitala1/darkstar
scripts/zones/Cape_Teriggan/npcs/Salimardi_RK.lua
28
3126
----------------------------------- -- Area: Cape Teriggan -- NPC: Bright Moon -- Type: Outpost Conquest Guards -- @pos -185 7 -63 113 ----------------------------------- package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest"); req...
gpl-3.0
crabman77/minetest-minetestforfun-server
mods/whoison/init.lua
4
3880
whoison = {} whoison.lastrun = os.time() whoison.lastseen = {} local filename = minetest.get_worldpath().."/online-players" local seenfile = minetest.get_worldpath().."/last-seen" function whoison.createFile(loopit) local file = io.open(filename, "w") file:write(os.time().."\n") file:write(minetest.get_server_stat...
unlicense
kitala1/darkstar
scripts/zones/Lower_Jeuno/npcs/_l05.lua
36
1559
----------------------------------- -- Area: Lower Jeuno -- NPC: Streetlamp -- Involved in Quests: Community Service -- @zone 245 -- @pos -61.132 6 -75.010 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/glob...
gpl-3.0
cjkoenig/packages
net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/member.lua
111
1535
-- ------ member configuration ------ -- ds = require "luci.dispatcher" m5 = Map("mwan3", translate("MWAN Member Configuration")) m5:append(Template("mwan/config_css")) mwan_member = m5:section(TypedSection, "member", translate("Members"), translate("Members are profiles attaching a metric and weight to an MWAN ...
gpl-2.0
d-o/LUA-LIB
src/autostart.lua
2
5603
------------------------------------------------------------------------------- --- Autostart support and failure recovery. -- -- This can never be called from an application, it exists to start applications -- only. -- -- @module autostart -- @author Pauli -- @copyright 2014 Rinstrum Pty Ltd --------------------------...
gpl-3.0
raingloom/thranduil
examples/chatbox/ui/init.lua
5
3194
local ui_path = ... .. '.' local UI = {} require(ui_path .. 'utf8-l') UI.Object = require(ui_path .. 'classic.classic') UI.Input = require(ui_path .. 'Input.Input') UI.Text = require(ui_path .. 'popo.Text') UI.Math = require(ui_path .. 'mlib.mlib') UI.keypressed = function(key) for _, t in ipairs(UI.elements) do ...
mit
kaustavha/rackspace-monitoring-agent
runners/hostinfo_runner.lua
3
2931
--[[ Copyright 2015 Rackspace 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 Unless required by applicable law or agreed to in writing, software dis...
apache-2.0
Pulse-Eight/drivers
Control4/cec_source_pulse-eight/p8system.lua
2
1526
require "lib.json" function P8INT:GET_DETAILS(idBinding) LogTrace("Updating System Details") local uri = P8INT:GET_MATRIX_URL() .. "/System/Details" C4:urlGet(uri, {}, false, function(ticketId, strData, responseCode, tHeaders, strError) if responseCode ~= 200 or strError ~= nil then LogWarn("U...
apache-2.0
kitala1/darkstar
scripts/globals/abyssea.lua
15
8651
----------------------------------- -- Abyssea functions, vars, tables -- DO NOT mess with the order -- or change things to "elseif"! ----------------------------------- require("scripts/globals/keyitems"); ----------------------------------- -- getMaxTravStones -- returns Traverser Stone KI cap -------...
gpl-3.0
fqrouter/luci
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/processes.lua
78
2188
--[[ Luci statistics - processes plugin diagram definition (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www....
apache-2.0
Roblox/Core-Scripts
CoreScriptsRoot/Modules/DevConsole/Components/Log/LogOutput.lua
1
5819
local CorePackages = game:GetService("CorePackages") local TextService = game:GetService("TextService") local Roact = require(CorePackages.Roact) local Constants = require(script.Parent.Parent.Parent.Constants) local FONT_SIZE = Constants.DefaultFontSize.MainWindow local FONT = Constants.Font.Log local ICON_PADDING = ...
apache-2.0
kitala1/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Count_Vine.lua
19
1287
----------------------------------- -- Area: Dynamis Xarcabard -- NPC: Count Vine ----------------------------------- require("scripts/globals/status"); require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- -- onMobEngaged -------------...
gpl-3.0
JacobFischer/Joueur.lua
games/pirates/player.lua
2
3140
-- Player: A player in this game. Every AI controls one player. -- DO NOT MODIFY THIS FILE -- Never try to directly create an instance of this class, or modify its member variables. -- Instead, you should only be reading its variables and calling its functions. local class = require("joueur.utilities.class") local Ga...
mit
apletnev/koreader
spec/unit/readerdictionary_spec.lua
5
1138
describe("Readerdictionary module", function() local DocumentRegistry, ReaderUI, UIManager, Screen setup(function() require("commonrequire") DocumentRegistry = require("document/documentregistry") ReaderUI = require("apps/reader/readerui") UIManager = require("ui/uimanager") ...
agpl-3.0
kitala1/darkstar
scripts/zones/Metalworks/npcs/Takiyah.lua
17
1291
----------------------------------- -- Area: Metalworks -- NPC: Takiyah -- Type: Regional Merchant ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); require(...
gpl-3.0
apletnev/koreader
plugins/evernote.koplugin/slt2.lua
6
5442
--[[ -- slt2 - Simple Lua Template 2 -- -- Project page: https://github.com/henix/slt2 -- -- @License -- MIT License --]] local slt2 = {} -- a tree fold on inclusion tree -- @param init_func: must return a new value when called local function include_fold(template, start_tag, end_tag, fold_func, init_func) local ...
agpl-3.0
Taracque/epgp
LibGuildStorage-1.2.lua
1
13860
-- This library handles storing information in officer notes. It -- streamlines and optimizes access to these notes. It should be noted -- that the library does not have correct information until -- PLAYER_ENTERING_WORLD is fired (for Ace authors this is after OnInitialize -- is called). The API is as follows: -- ...
bsd-3-clause
hanxi/cocos2d-x-v3.1
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/PhysicsJoint.lua
6
1960
-------------------------------- -- @module PhysicsJoint -------------------------------- -- @function [parent=#PhysicsJoint] getBodyA -- @param self -- @return PhysicsBody#PhysicsBody ret (return value: cc.PhysicsBody) -------------------------------- -- @function [parent=#PhysicsJoint] getBodyB -- @param...
mit
kitala1/darkstar
scripts/zones/Xarcabard/npcs/Telepoint.lua
17
1637
----------------------------------- -- Area: Xarcabard -- NPC: Telepoint -- @pos 150.258 -21.047 -37.256 112 ----------------------------------- package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/zones/Xarcabard/T...
gpl-3.0
kitala1/darkstar
scripts/globals/items/plate_of_friture_de_la_misareaux.lua
35
1636
----------------------------------------- -- ID: 5159 -- Item: plate_of_friture_de_la_misareaux -- Food Effect: 240Min, All Races ----------------------------------------- -- Health 3 -- Dexterity 3 -- Vitality 3 -- Mind -3 -- Defense 5 -- Ranged ATT % 7 -- Ranged ATT Cap 15 --------------------------------...
gpl-3.0
kitala1/darkstar
scripts/zones/Sauromugue_Champaign/npcs/Tiger_Bones.lua
17
1726
----------------------------------- -- Area: Sauromugue Champaign -- NPC: Tiger Bones -- Involed in Quest: The Fanged One. -- @pos 666 -8 -379 120 ------------------------------------- package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil; ------------------------------------- require("scripts/g...
gpl-3.0
kitala1/darkstar
scripts/globals/items/roast_trout.lua
35
1278
----------------------------------------- -- ID: 4404 -- Item: roast_trout -- Food Effect: 30Min, All Races ----------------------------------------- -- Dexterity 3 -- Mind -1 -- Ranged ATT % 14 ----------------------------------------- require("scripts/globals/status"); ----------------------------------...
gpl-3.0
apletnev/koreader
frontend/ui/trapper.lua
3
28279
--[[-- Trapper module: provides methods for simple interaction with UI, without the need for explicit callbacks, for use by linear jobs between their steps. Allows code to trap UI (give progress info to UI, ask for user choice), or get trapped by UI (get interrupted). Mostly done with coroutines, but hides their usage...
agpl-3.0
leezhongshan/skynet
lualib/skynet/inject.lua
61
1373
local function getupvaluetable(u, func, unique) local i = 1 while true do local name, value = debug.getupvalue(func, i) if name == nil then return end local t = type(value) if t == "table" then u[name] = value elseif t == "function" then if not unique[value] then unique[value] = true getu...
mit
xyproto/wordsworth
login/data.lua
1
1335
title = "Chat" local active = Set("active") local said = List("said") local userInfo = HashMap("userInfo") function setlines(username, lines) userInfo:set(username, "lines", tostring(lines)) end function getlines(username) local val = userInfo:get(username, "lines") if val == "" then -- The default number ...
mit
kitala1/darkstar
scripts/globals/items/slice_of_coeurl_meat.lua
17
1347
----------------------------------------- -- ID: 4377 -- Item: slice_of_coeurl_meat -- Food Effect: 5Min, Galka only ----------------------------------------- -- Strength 5 -- Intelligence -7 ----------------------------------------- require("scripts/globals/status"); --------------------------------------...
gpl-3.0
kitala1/darkstar
scripts/zones/Waughroon_Shrine/Zone.lua
15
1871
----------------------------------- -- -- Zone: Waughroon_Shrine (144) -- ----------------------------------- package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Waughroon_Shrine/TextIDs"); ---------...
gpl-3.0
Elv2/imageGeneration
clothDataset.lua
1
2909
require 'nn' require 'image' require 'xlua' local DataSet = torch.class 'DataSet' function DataSet:__init(full) local source = '/home/caoqingxing/crawler/cloth_test/female_images/female_formatted_attributes_part_random_index.txt' local impath = {} local attri = {} local sampleCount = 0 local attriCount = -1...
mit