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
Banderi/OpenTomb
scripts/gameflow/gameflow.lua
2
6873
-- Gameflow Script for OpenTomb -- General script extraction module -- Version: 1.0 -- By: Lwmte -- Rewritten by: TeslaRus --------------------------------------------------------------------------------------------------------------------------------------- -- 1 - Define global constants -----------------------------...
lgpl-3.0
xianjiec/nn
ClassSimplexCriterion.lua
10
3822
local ClassSimplexCriterion, parent = torch.class('nn.ClassSimplexCriterion', 'nn.MSECriterion') --[[ This file implements a criterion for multi-class classification. It learns an embedding per class, where each class' embedding is a point on an (N-1)-dimensional simplex, where N is the number of c...
bsd-3-clause
mega9/GTW-RPG
[resources]/GTWgui/c_window.lua
1
1392
--[[ ******************************************************************************** Project owner: GTWGames Project name: GTW-RPG Developers: GTWCode Source code: https://github.com/GTWCode/GTW-RPG/ Bugtracker: http://forum.albonius.com/bug-reports/ Suggestions: http://forum.albonius.com/...
gpl-3.0
Brajanowski/Behind-Society
assets/gameplay/hud.lua
1
88036
Hud = {} local current_tray_position_x = -400 local tray_window_size = Math.Vector2f(400, 480) local show_logs = false local current_tray_tab = "Hackers" local current_window = "nowindow" local computer_id = -1 local task_to_assign_id = -1 local show_hire_window = false local notifications = {} local confirmati...
apache-2.0
trompetin17/wxFormBuilder-Atlas
build/premake/4.3/src/host/lua-5.1.4/test/life.lua
888
2635
-- life.lua -- original by Dave Bollinger <DBollinger@compuserve.com> posted to lua-l -- modified to use ANSI terminal escape sequences -- modified to use for instead of while local write=io.write ALIVE="¥" DEAD="þ" ALIVE="O" DEAD="-" function delay() -- NOTE: SYSTEM-DEPENDENT, adjust as necessary for i=1,10000 do...
gpl-2.0
ayyucedemirbas/Minix-Source-Code
minix-master/external/mit/lua/dist/test/life.lua
888
2635
-- life.lua -- original by Dave Bollinger <DBollinger@compuserve.com> posted to lua-l -- modified to use ANSI terminal escape sequences -- modified to use for instead of while local write=io.write ALIVE="¥" DEAD="þ" ALIVE="O" DEAD="-" function delay() -- NOTE: SYSTEM-DEPENDENT, adjust as necessary for i=1,10000 do...
apache-2.0
Miigon/luvit
tests/test-emitter.lua
6
2343
--[[ Copyright 2014 The Luvit Authors. All Rights Reserved. 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 agr...
apache-2.0
alexmchale/redis-diff_match_patch
lib/diff_match_patch-patch.lua
1
76186
--[[ * Diff Match and Patch * * Copyright 2006 Google Inc. * http://code.google.com/p/google-diff-match-patch/ * * Based on the JavaScript implementation by Neil Fraser. * Ported to Lua by Duncan Cross. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance ...
mit
lemones/dotfiles
home/.config/awesome/lain/widget/mpd.lua
2
6155
--[[ Licensed under GNU General Public License v2 * (c) 2013, Luke Bonham * (c) 2010, Adrian C. <anrxc@sysphere.org> --]] local helpers = require("lain.helpers") local shell = require("awful.util").shell local escape_f = require("awful.util").escape local focused = require("awfu...
gpl-3.0
maikerumine/aftermath
mods/cottages/UNUSED/nodes_historic.lua
4
9018
--------------------------------------------------------------------------------------- -- decoration and building material --------------------------------------------------------------------------------------- -- * includes a wagon wheel that can be used as decoration on walls or to build (stationary) wagons -- * dir...
lgpl-2.1
ntop/ntopng
scripts/lua/modules/alert_definitions/host/host_alert_p2p_traffic.lua
1
3282
-- -- (C) 2019-22 - ntop.org -- -- ############################################## local host_alert_keys = require "host_alert_keys" local json = require("dkjson") local alert_creators = require "alert_creators" -- Import the classes library. local classes = require "classes" -- Make sure to import the Superclass! lo...
gpl-3.0
lizh06/premake-4.x
src/actions/vstudio/vs2010_vcxproj.lua
3
19535
-- -- vs2010_vcxproj.lua -- Generate a Visual Studio 2010 C/C++ project. -- Copyright (c) 2009-2011 Jason Perkins and the Premake project -- premake.vstudio.vc2010 = { } local vc2010 = premake.vstudio.vc2010 local vstudio = premake.vstudio local function vs2010_config(prj) _p(1,'<ItemGroup Label="ProjectConfig...
bsd-3-clause
ntop/ntopng
scripts/lua/modules/alert_definitions/flow/alert_binary_application_transfer.lua
1
2623
-- -- (C) 2019-22 - ntop.org -- -- ############################################## local flow_alert_keys = require "flow_alert_keys" -- Import the classes library. local classes = require "classes" -- Make sure to import the Superclass! local alert = require "alert" -- ############################################## ...
gpl-3.0
GSRMOHAMMAD/fortg
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 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...
gpl-2.0
nyczducky/darkstar
scripts/zones/Cloister_of_Flames/mobs/Ifrit_Prime.lua
23
1783
----------------------------------------------------- -- Area: Cloister of Flames -- MOB: Ifrit Prime -- Involved in Quest: Trial by Fire -- Involved in Mission: ASA-4 Sugar Coated Directive ----------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems");...
gpl-3.0
AquariaOSE/Aquaria
files/scripts/entities/piranha.lua
6
4700
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 vers...
gpl-2.0
nyczducky/darkstar
scripts/globals/weaponskills/blade_kamu.lua
19
2081
----------------------------------- -- Blade Kamu -- Katana weapon skill -- Skill Level: N/A -- Lowers target's params.accuracy. Duration of effect varies with TP. Nagi: Aftermath effect varies with TP. -- Effect lasts 60 seconds @ 100 TP, 90 seconds @ 200 TP, and 120 seconds @ 300 TP -- Available only after completing...
gpl-3.0
melfi19/OpenRA
mods/d2k/maps/atreides-01a/atreides01a.lua
18
4791
HarkonnenReinforcements = { } HarkonnenReinforcements["Easy"] = { { "rifle", "rifle" } } HarkonnenReinforcements["Normal"] = { { "rifle", "rifle" }, { "rifle", "rifle", "rifle" }, { "rifle", "trike" }, } HarkonnenReinforcements["Hard"] = { { "rifle", "rifle" }, { "trike", "trike" }, { "rifle", "rifle", "rifle...
gpl-3.0
wenhulove333/ScutServer
Sample/ClientSource/samples/Lua/TestLua/Resources/luaScript/ActionManagerTest/ActionManagerTest.lua
1
6651
local kTagNode = 0 local kTagGrossini = 1 local kTagSequence = 2 local scheduler = CCDirector:sharedDirector():getScheduler() -------------------------------------------------------------------- -- -- Test1 -- -------------------------------------------------------------------- local function CrashT...
mit
nyczducky/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Mearuru.lua
14
1057
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Mearuru -- Type: Standard NPC -- @zone 94 -- @pos 153.798 -1 153.712 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil; -------...
gpl-3.0
Sojerbot/new
plugins/leders.lua
51
12502
local function lock_group_namemod(msg, data, target) local group_name_set = data[tostring(target)]['settings']['set_name'] local group_name_lock = data[tostring(target)]['settings']['lock_name'] if group_name_lock == 'yes' then return 'Group name is already locked' else data[tostring(target)]['setting...
gpl-2.0
Sojerbot/new
plugins/leaders.lua
51
12502
local function lock_group_namemod(msg, data, target) local group_name_set = data[tostring(target)]['settings']['set_name'] local group_name_lock = data[tostring(target)]['settings']['lock_name'] if group_name_lock == 'yes' then return 'Group name is already locked' else data[tostring(target)]['setting...
gpl-2.0
lumail/lumail
lib/life.lua
4
4088
-- -- Simple implementation of life, in pure Lua. -- ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- -- -- Object setup -- Life = {} local mt = { __index = Life, } -- -- Copy the object we're given. -- fu...
gpl-2.0
medoo3131/NEW-BOT3
plugins/short_link.lua
2
1076
--[[ # #ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ #:(( # For More Information ....! # Developer : Aziz < @TH3_GHOST > # our channel: @DevPointTeam # Version: 1.1 #:)) #ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ # ]] lo...
gpl-2.0
sjznxd/lc-20121231
libs/nixio/axTLS/samples/lua/axssl.lua
176
19286
#!/usr/local/bin/lua -- -- Copyright (c) 2007, Cameron Rich -- -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- * Redistributions of source code must retain the above copyright notice, -...
apache-2.0
ahmedjabbar/uor
plugins/bye.lua
16
1406
local function run(msg, matches, callback, extra) local data = load_data(_config.moderation.data) local group_bye = data[tostring(msg.to.id)]['group_bye'] -------------------------- Data Will be save on Moderetion.json if matches[1] == 'delbye' and not matches[2] and is_owner(msg) then data[tostring(msg...
gpl-2.0
nyczducky/darkstar
scripts/zones/Leujaoam_Sanctum/Zone.lua
32
1488
----------------------------------- -- -- Zone: Leujaoam_Sanctum -- ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Leujaoam_Sanctum/IDs"); ----------------------------------- -- onInitialize ----------------------------------- function onInitialize(zone) end; ------...
gpl-3.0
nyczducky/darkstar
scripts/globals/items/slice_of_cockatrice_meat.lua
12
1357
----------------------------------------- -- ID: 4435 -- Item: slice_of_cockatrice_meat -- Food Effect: 5Min, Galka only ----------------------------------------- -- Strength 4 -- Intelligence -6 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- ...
gpl-3.0
sevu/wesnoth
data/lua/wml/micro_ai.lua
5
2093
local MAIH = wesnoth.require("ai/micro_ais/micro_ai_helper.lua") ---@class ca_info ---@field ca_id string The base ID used for the candidate action ---@field location string Path to the Lua file that defines the candidate action ---@field score number The maximum score the candidate action can return ---@type table<s...
gpl-2.0
aroig/awesome
spec/gears/sort_spec.lua
13
1182
--------------------------------------------------------------------------- -- @author Uli Schlachter -- @copyright 2014 Uli Schlachter --------------------------------------------------------------------------- local sort = require("gears.sort") describe("gears.sort", function() local function test(expected, inp...
gpl-2.0
nyczducky/darkstar
scripts/zones/Southern_San_dOria/npcs/Cahaurme.lua
14
1988
----------------------------------- -- Area: Southern San d'Oria -- NPC: Cahaurme -- Involved in Quest: A Knight's Test, Lost Chick -- @zone 230 -- @pos 55.749 -8.601 -29.354 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- req...
gpl-3.0
hadess/libquvi-scripts-iplayer
share/lua/website/academicearth.lua
2
2187
-- libquvi-scripts -- Copyright (C) 2010-2011 Toni Gundogdu <legatvs@gmail.com> -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This library 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 Fr...
lgpl-2.1
jbeich/Aquaria
files/scripts/entities/brokenpiece.lua
6
2461
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 vers...
gpl-2.0
crazyboy11/botspamm
plugins/spammer.lua
13
75165
local function run(msg) if msg.text == "spam" return "".. [[ ...
gpl-2.0
jbeich/Aquaria
files/scripts/maps/node_secret01.lua
5
1916
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 vers...
gpl-2.0
nyczducky/darkstar
scripts/zones/AlTaieu/npcs/Swirling_Vortex.lua
29
1413
----------------------------------- -- Area: Al'Taieu -- NPC: Swirling_Vortex -- Type: Standard NPC -- @zone 33 ----------------------------------- package.loaded["scripts/zones/AlTaieu/TextIDs"] = nil; ----------------------------------- require("scripts/zones/AlTaieu/TextIDs"); require("scripts/globals/limbus")...
gpl-3.0
dtrip/awesome
tests/examples/awful/widget/launcher/default.lua
4
2211
--DOC_NO_USAGE --DOC_GEN_IMAGE local awful = require("awful") --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local beautiful = require("beautiful") --DOC_HIDE screen[1]._resize {width = 480, height = 100} --DOC_HIDE local wb = awful.wibar { position = "top", } --DOC_HIDE --DOC_HIDE Create the same ...
gpl-2.0
moltafet35/senatorv2
plugins/anti-spam.lua
102
3744
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds local data = load_data(_config.moderation.data) -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id =...
gpl-2.0
abcdefg30/OpenRA
mods/d2k/maps/harkonnen-08/harkonnen08-AI.lua
7
4109
--[[ Copyright 2007-2022 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
lgeek/koreader
frontend/luxl.lua
14
17271
--[[ This code was derived from the pico_xml project which can be found here: http://kd7yhr.org/bushbo/pico_xml.md The original C code, written by: Brian O. Bush Pure Lua Version written by: William A Adams Dramatic Speed Improvements by: Robert G Jakabosky References http://www.faq...
agpl-3.0
alirezafodaji/tele-IR
plugins/all.lua
88
4791
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
jamesbdunlop/iction
Libs/LibSharedMedia-3.0/LibSharedMedia-3.0.lua
34
11935
--[[ Name: LibSharedMedia-3.0 Revision: $Revision: 91 $ Author: Elkano (elkano@gmx.de) Inspired By: SurfaceLib by Haste/Otravi (troeks@gmail.com) Website: http://www.wowace.com/projects/libsharedmedia-3-0/ Description: Shared handling of media data (fonts, sounds, textures, ...) between addons. Dependencies: LibStub, C...
apache-2.0
cliffano/swaggy-jenkins
clients/lua/generated/spec/remote_access_api_spec.lua
1
4535
--[[ Swaggy Jenkins Jenkins API clients generated from Swagger / Open API specification The version of the OpenAPI document: 1.5.1-pre.0 Contact: blah@cliffano.com Generated by: https://openapi-generator.tech ]] --[[ Unit tests for openapiclient.api.remote_access_api Automatically generated by openapi-gene...
mit
MOSAVI17/Generalbot
plugins/gSearch.lua
8
1943
local command = 'google <query>' local doc = [[``` /google <query> Returns four (if group) or eight (if private message) results from Google. Safe search is enabled by default, use "/gnsfw" to disable it. Alias: /g ```]] local triggers = { '^/g[@'..bot.username..']*$', '^/g[@'..bot.username..']* ', '^/google[@'..bo...
gpl-2.0
benloz10/FinalFrontier
gamemodes/finalfrontier/entities/entities/info_ff_moduleslot/init.lua
3
4666
-- Copyright (c) 2014 James King [metapyziks@gmail.com] -- -- This file is part of Final Frontier. -- -- Final Frontier is free software: you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as -- published by the Free Software Foundation, either version 3 of -- the Lic...
lgpl-3.0
nyczducky/darkstar
scripts/zones/Selbina/npcs/Thunder_Hawk.lua
14
2522
----------------------------------- -- Area: Selbina -- NPC: Thunder Hawk -- Starts and Finishes Quest: The Rescue -- @pos -58 -10 6 248 ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Selbina/TextIDs"); require("scr...
gpl-3.0
nyczducky/darkstar
scripts/zones/Quicksand_Caves/npcs/_5s1.lua
14
1271
----------------------------------- -- Area: Quicksand Caves -- NPC: Ornate Door -- Door blocked by Weight system -- @pos 21 0 -180 208 ----------------------------------- package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Quicksand_Caves/TextIDs"...
gpl-3.0
bitborn/awesome
themes/default/theme.lua
5
5044
--------------------------- -- Default awesome theme -- --------------------------- theme = {} theme.font = "sans 8" theme.bg_normal = "#222222" theme.bg_focus = "#535d6c" theme.bg_urgent = "#ff0000" theme.bg_minimize = "#444444" theme.bg_systray = theme.bg_normal theme.fg_normal = "#...
mit
AquariaOSE/Aquaria
files/scripts/maps/node_enter_homecave.lua
6
1113
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 vers...
gpl-2.0
teleblue/teleblue2
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 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...
gpl-2.0
pouria346/selfbot2
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 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...
gpl-2.0
nyczducky/darkstar
scripts/zones/Windurst_Woods/npcs/Quesse.lua
17
1638
----------------------------------- -- Area: Windurst Woods -- NPC: Quesse -- Standard Merchant NPC -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; require("scripts/zones/Windurst_Woods/TextIDs"); ...
gpl-3.0
nyczducky/darkstar
scripts/zones/Bastok_Mines/npcs/Faustin.lua
17
1573
----------------------------------- -- Area: Bastok_Mines -- NPC: Faustin -- Only sells when Bastok controlls Ronfaure Region ----------------------------------- require("scripts/globals/events/harvest_festivals"); require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loaded["scripts/zones/Bast...
gpl-3.0
sjznxd/lc-20121231
protocols/6x4/luasrc/model/cbi/admin_network/proto_6rd.lua
24
2242
--[[ LuCI - Lua Configuration Interface Copyright 2011-2012 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://www.apache.org/licenses/LICENSE-2.0 ]]-- loc...
apache-2.0
abeschneider/nn
hessian.lua
33
15791
---------------------------------------------------------------------- -- hessian.lua: this file appends extra methods to modules in nn, -- to estimate diagonal elements of the Hessian. This is useful -- to condition learning rates individually. ---------------------------------------------------------------------- nn....
bsd-3-clause
master00041/maximus_bot
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 ...
agpl-3.0
abeschneider/nn
SpatialUpSamplingNearest.lua
36
1914
local SpatialUpSamplingNearest, parent = torch.class('nn.SpatialUpSamplingNearest', 'nn.Module') --[[ Applies a 2D up-sampling over an input image composed of several input planes. The upsampling is done using the simple nearest neighbor technique. The Y and X dimensions are assumed to be the last 2 tensor dimension...
bsd-3-clause
AquariaOSE/Aquaria
files/scripts/entities/_unused/collectiblebabycrib.lua
6
1319
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 vers...
gpl-2.0
ichiinisanshi/Learning-with-Penny-the-Pony
tagalog_identifyShapes.lua
1
15206
local storyboard = require("storyboard") local widget = require("widget") local scene = storyboard.newScene() local external = require("external") function scene:willEnterScene( event ) local group = self.view storyboard.removeAll() end function scene:createScene( event ) local screenGroup = self.view ...
mit
AquariaOSE/Aquaria
files/scripts/maps/node_ingredients.lua
6
1072
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 vers...
gpl-2.0
rpav-eso/ThiefsKnapsack
libs/LibAddonMenu-2.0/controls/texture.lua
6
1652
--[[textureData = { type = "texture", image = "file/path.dds", imageWidth = 64, --max of 250 for half width, 510 for full imageHeight = 32, --max of 100 tooltip = "Image's tooltip text.", --(optional) width = "full", --or "half" (optional) reference = "MyAddonTexture" --(optional) unique global reference to cont...
bsd-2-clause
TheHipster/cwlourp
plugins/books/plugin/items/sh_book_va.lua
1
6899
--[[ © 2013 CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). --]] ITEM = Clockwork.item:New("book_base"); ITEM.name = "Vortigaunt Anatomy"; ITEM.cost = 10; ITEM.model = "models/props_lab/bindergreenlabel.mdl"; ITEM.uniqueID = "book_va"; ITEM.busi...
unlicense
jbeich/Aquaria
game_scripts/_mods/jukebox/scripts/node_jukebox-quit.lua
6
1847
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 vers...
gpl-2.0
AquariaOSE/Aquaria
game_scripts/_mods/jukebox/scripts/node_jukebox-quit.lua
6
1847
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 vers...
gpl-2.0
nyczducky/darkstar
scripts/zones/FeiYin/npcs/Rukususu.lua
14
1846
----------------------------------- -- Area: Fei'Yin -- NPC: Rukususu (talk to Cermet Door _no5 to trigger) -- Type: Quest NPC -- @pos -194.133 -0.986 191.077 204 -- Involved in quests: Curses, Foiled A-Golem!?,SMN AF2: Class Reunion, SMN AF3: Carbuncle Debacle -- Involved in Missions: Windurst 5-1/7-2/8-2 --...
gpl-3.0
nyczducky/darkstar
scripts/zones/Selbina/npcs/Humilitie.lua
14
1475
----------------------------------- -- Area: Selbina -- NPC: Humilitie -- Reports the time remaining before boat arrival. -- @pos 17.979 -2.39 -58.800 248 ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Selbina/TextI...
gpl-3.0
jbeich/Aquaria
files/scripts/entities/collectiblewalkerbaby.lua
6
1291
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 vers...
gpl-2.0
IsaacHart/sbmod-grandarm
items/buildscripts/buildrandbow.lua
1
9769
require "/scripts/util.lua" require "/scripts/vec2.lua" require "/scripts/versioningutils.lua" require "/scripts/staticrandom.lua" require "/items/buildscripts/abilities.lua" function build(directory, config, parameters, level, seed) local configParameter = function(keyName, defaultValue) if parameters[keyName] ...
gpl-3.0
mehrpouya81/giantbot
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, '&lt;', '<' ) str = string.gsub( str, '&gt;', '>' ) str = string.gsub( str, '&quot;', '"' ) str...
gpl-2.0
moltafet35/senatorv2
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, '&lt;', '<' ) str = string.gsub( str, '&gt;', '>' ) str = string.gsub( str, '&quot;', '"' ) str...
gpl-2.0
ld-test/xlsxwriter
test/comparison/lua/test_defined_name04.lua
2
1648
---- -- Test cases for xlsxwriter.lua. -- -- Test defined names in the workbook. -- -- Copyright 2014, John McNamara, jmcnamara@cpan.org -- local Workbook = require "xlsxwriter.workbook" local workbook = Workbook:new("test_defined_name04.xlsx") local worksheet = workbook:add_worksheet() -- Test for valid Excel defi...
mit
alinoroz/pop_tm
plugins/welcome.lua
7
3576
local add_user_cfg = load_from_file('data/add_user_cfg.lua') local function template_add_user(base, to_username, from_username, chat_name, chat_id) base = base or '' to_username = '@' .. (to_username or '') from_username = '@' .. (from_username or '') chat_name = string.gsub(chat_name, '_', ' ') or '' c...
gpl-2.0
sevu/wesnoth
data/ai/micro_ais/mai-defs/misc.lua
4
2100
function wesnoth.micro_ais.assassin(cfg) local required_keys = { filter = 'tag', filter_second = 'tag' } local optional_keys = { prefer = 'tag' } local CA_parms = { ai_id = 'mai_assassin', { ca_id = 'attack', location = 'ca_simple_attack.lua', score = 110001 }, { ca_id = 'move', location = 'ca_assassin_move.lu...
gpl-2.0
HalosGhost/irc_bot
src/plugins/eval.lua
1
2861
local modules = modules local plugin = {} plugin.help = 'eval <lua-expr>' -- Thouroughly copy tables to the safe env so that the -- sandbox can't change code outside of its environment. plugin.deepcopy = function (orig) local orig_type = type(orig) local copy if orig_type == 'table' then copy = {...
gpl-2.0
nyczducky/darkstar
scripts/globals/items/serving_of_flint_caviar.lua
12
1430
----------------------------------------- -- ID: 4276 -- Item: serving_of_flint_caviar -- Food Effect: 30Min, All Races ----------------------------------------- -- Health 10 -- Magic 10 -- Dexterity 4 -- Mind -1 -- Charisma 4 ----------------------------------------- require("scripts/globals/status"); --------------...
gpl-3.0
nyczducky/darkstar
scripts/zones/The_Garden_of_RuHmet/Zone.lua
10
12490
----------------------------------- -- -- Zone: The_Garden_of_RuHmet (35) -- ----------------------------------- package.loaded["scripts/zones/The_Garden_of_RuHmet/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/zones/The_Gar...
gpl-3.0
nyczducky/darkstar
scripts/zones/Waughroon_Shrine/bcnms/prehistoric_pigeons.lua
30
1823
----------------------------------- -- Area: Waughroon_Shrine -- Name: Prehistoric Pigeons -- KSNM30 ----------------------------------- package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/quests"); require("scr...
gpl-3.0
ahmedjabbar/uor
libs/XMLElement.lua
569
4025
-- Copyright 2009 Leo Ponomarev. Distributed under the BSD Licence. -- updated for module-free world of lua 5.3 on April 2 2015 -- Not documented at all, but not interesting enough to warrant documentation anyway. local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, typ...
gpl-2.0
nyczducky/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Prince_Seere.lua
23
1566
----------------------------------- -- Area: Dynamis Xarcabard -- MOB: Prince Seere ----------------------------------- require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- -- onMobEngaged ----------------------------------- function onMobEngage...
gpl-3.0
nyczducky/darkstar
scripts/globals/items/talaria.lua
30
1040
----------------------------------------- -- ID: 11403 -- Item: Talaria -- Enchantment: Increases movement speed. -- Durration: 60 Mins ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -----------...
gpl-3.0
wenhulove333/ScutServer
Sample/Doudizhu/Client/lua/lib/ZyFont.lua
1
8322
module("ZyFont", package.seeall) -- ¼ÇÒ䳨 mWideWordWidth = {} mUnwideWordWidth = {} mUnwideWordWidth2 = {} mSpaceWidth = {} mLineHeight = {} mCharSize={}; -- »ñÈ¡×ÖÌåÐÐ¸ß function lineHeightOfFont(fontName, fontSize) local key = generateKey(fontName, fontSize) if mLineHeight[key] == nil then loca...
mit
nyczducky/darkstar
scripts/zones/Abyssea-Konschtat/npcs/qm18.lua
10
1761
----------------------------------- -- Zone: Abyssea-Konschtat -- NPC: qm18 (???) -- Spawns Kukulkan -- @pos ? ? ? 15 ----------------------------------- require("scripts/globals/status"); require("scripts/globals/keyitems"); ----------------------------------- -- onTrigger Action -----------------------------------...
gpl-3.0
nyczducky/darkstar
scripts/globals/items/plate_of_coeurl_sautee.lua
12
1868
----------------------------------------- -- ID: 4548 -- Item: plate_of_coeurl_sautee -- Food Effect: 180Min, All Races ----------------------------------------- -- Strength 5 -- Agility 1 -- Intelligence -2 -- Attack % 20 -- Attack Cap 75 -- Ranged ATT % 20 -- Ranged ATT Cap 75 -- Stun Resist 4 -- HP recovered while h...
gpl-3.0
abeschneider/nn
Concat.lua
40
3881
local Concat, parent = torch.class('nn.Concat', 'nn.Container') function Concat:__init(dimension) parent.__init(self) self.size = torch.LongStorage() self.dimension = dimension end function Concat:updateOutput(input) local outs = {} for i=1,#self.modules do local currentOutput = self.modules[i]:u...
bsd-3-clause
nyczducky/darkstar
scripts/zones/East_Ronfaure_[S]/npcs/qm3.lua
29
1569
----------------------------------- -- Area: East Ronfaure [S] -- NPC: qm3 "???" -- Involved in Quests: Steamed Rams -- @pos 312.821 -30.495 -67.15 ----------------------------------- package.loaded["scripts/zones/East_Ronfaure_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems...
gpl-3.0
nyczducky/darkstar
scripts/zones/Throne_Room/npcs/_4l3.lua
66
1207
----------------------------------- -- Area: Throne Room -- NPC: Ore Door ------------------------------------- require("scripts/globals/bcnm"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) if (TradeBCNM(player,player:getZoneID...
gpl-3.0
masterfeizz/EDuke3D
source/lunatic/util/cmpart.lua
1
2398
#!/usr/bin/env luajit local io = require("io") local os = require("os") local string = require("string") local format = string.format local table = require("table") local B = require("build") local ffi = require("ffi") local C = ffi.C ffi.cdef[[ int memcmp(const void *s1, const void *s2, size_t n); ]] local fn1, f...
gpl-2.0
weissj3/milkywayathome_client
separation/tests/stripe_23.lua
4
1148
wedge = 23 background = { q = 0.47317909143792647, r0 = 1.0 } streams = { { epsilon = -1.8567637141825544, mu = 138.19766082061764, r = 14.078293208405036, theta = -2.2, phi = -2.1, sigma = 0.9000949479309548 }, { epsilon = 1.25447721051769...
gpl-3.0
nyczducky/darkstar
scripts/zones/Port_San_dOria/npcs/Fiva.lua
17
1912
----------------------------------- -- Area: Port San d'Oria -- NPC: Fiva -- Only sells when San d'Oria controls Kolshushu ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Port_San_dOria/TextIDs"); require("scr...
gpl-3.0
nyczducky/darkstar
scripts/zones/Grand_Palace_of_HuXzoi/npcs/_iyc.lua
14
1036
----------------------------------- -- Area: Grand Palace of Hu'Xzoi -- NPC: Particle Gate -- @pos -39 0 -319 34 ----------------------------------- package.loaded["scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"); ---...
gpl-3.0
ashkan1996/hunter001
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 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...
gpl-2.0
SamOatesPlugins/cuberite
Server/Plugins/APIDump/Hooks/OnTakeDamage.lua
44
1214
return { HOOK_TAKE_DAMAGE = { CalledWhen = "An {{cEntity|entity}} is taking any kind of damage", DefaultFnName = "OnTakeDamage", -- also used as pagename Desc = [[ This hook is called when any {{cEntity}} descendant, such as a {{cPlayer|player}} or a {{cMonster|mob}}, takes any kind of damage. The plugin...
apache-2.0
nyczducky/darkstar
scripts/zones/Hall_of_the_Gods/npcs/_6z0.lua
14
1780
----------------------------------- -- Area: Hall of the Gods -- NPC: Cermet Gate -- Gives qualified players access to Ru'Aun Gardens. -- @pos 0 -12 48 251 ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/keyitems"); require("scripts/globals/missions"); ----------------...
gpl-3.0
wenhulove333/ScutServer
Sample/Doudizhu/Client/lua/datapool/MainSceneNetCallback.lua
1
3092
-- -- MainSceneNetCallback.lua.lua -- 91War -- -- Created by LinKequn on 8/30/2011. -- Copyright 2008 ND, Inc. All rights reserved. -- module("MainSceneNetCallback", package.seeall) -- ³¡¾°ÖÐÓõ½µÄ³ÉÔ±±äÁ¿ÒªÔÚÎļþÍ·²¿ÏÈÉêÃ÷£¬²¢¸½¼Ó±ØÒªµÄ˵Ã÷ -- ³ÉÔ±±äÁ¿Í³Ò»ÒÔÏ»®Ïß¿ªÊ¼£¬½ô½ÓµÄÊ××ÖĸҪСд ------------...
mit
nyczducky/darkstar
scripts/zones/Northern_San_dOria/npcs/Anilla.lua
14
1745
----------------------------------- -- Area: Northern San d'Oria -- NPC: Anilla -- Involved in Quest: Lure of the Wildcat (San d'Oria) -- @pos 8 0.1 61 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/No...
gpl-3.0
wenhulove333/ScutServer
Sample/ClientSource/scripting/lua/luajit/LuaJIT-2.0.1/dynasm/dasm_ppc.lua
2
38313
------------------------------------------------------------------------------ -- DynASM PPC module. -- -- Copyright (C) 2005-2013 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ -- Module information: l...
mit
lgeek/koreader
plugins/coverbrowser.koplugin/listmenu.lua
1
32948
local Blitbuffer = require("ffi/blitbuffer") local CenterContainer = require("ui/widget/container/centercontainer") local Device = require("device") local DocSettings = require("docsettings") local Font = require("ui/font") local FrameContainer = require("ui/widget/container/framecontainer") local Geom = require("ui/ge...
agpl-3.0
abcdefg30/OpenRA
mods/ra/maps/exodus/exodus.lua
7
9033
--[[ Copyright 2007-2022 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
hadess/libquvi-scripts-iplayer
share/lua/website/tnaflix.lua
4
2124
-- libquvi-scripts -- Copyright (C) 2012 Paul Kocialkowski <contact@paulk.fr> -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This library 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 ...
lgpl-2.1
nyczducky/darkstar
scripts/zones/Metalworks/npcs/Lexun-Marixun_WW.lua
13
5588
----------------------------------- -- Area: Metalworks -- NPC: Lexun-Maxirun, W.W. -- @pos 28 -16 28 237 -- X Grant Signet -- X Recharge Emperor Band, Empress Band, or Chariot Band -- X Accepts traded Crystals to fill up the Rank bar to open new Missions. -- X Sells items in exchange for Conquest Points -- X Start Su...
gpl-3.0