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
TheAnswer/FirstTest
bin/scripts/object/static/space/ship/objects.lua
1
5080
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later ve...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/corellia/npcs/lordNyax/lordNyaxServant.lua
1
4683
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later versio...
lgpl-3.0
wincent/wincent
aspects/nvim/files/.config/nvim/lua/wincent/autocmds.lua
1
9470
local leader = wincent.mappings.leader local autocmds = {} local ownsyntax_flag = 'wincent_ownsyntax' local number_flag = leader.number_flag -- stylua: ignore local focused_colorcolumn = '+' .. table.concat({ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', ...
unlicense
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/tailor/formalWearIvHighFashion/dignifiedBelt.lua
1
3955
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any lat...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/object/static/flora/objects.lua
1
40659
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later ve...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/slashcommands/admin/wipeItems.lua
1
2433
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later version. ...
lgpl-3.0
Modified-MW-DF/modified-MDF
MWDF Project/Dwarf Fortress/hack/scripts/modtools/spawn-flow.lua
2
2082
-- spawns flows at locations --author expwnent local usage = [====[ modtools/spawn-flow =================== Creates flows at the specified location. Arguments:: -material mat specify the material of the flow, if applicable examples: INORGANIC:IRON CREATURE_MA...
mit
TheAnswer/FirstTest
bin/scripts/creatures/objects/endor/npcs/donkuwah/frenziedDonkuwah.lua
1
4610
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later versio...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/npcs/missionNpcs/questCrowdPleaserJudge.lua
1
4767
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --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 of the License, --or (at your option) any later versio...
lgpl-3.0
Invertika/data
scripts/maps/ow-n0002-n0015-o0000.lua
1
1400
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
mendsley/premake-core
modules/vstudio/tests/sln2005/test_dependencies.lua
15
2331
-- -- tests/actions/vstudio/sln2005/test_dependencies.lua -- Validate generation of Visual Studio 2005+ solution project dependencies. -- Copyright (c) 2009-2012 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("vstudio_sln2005_dependencies") local sln2005 = p.vstudio.sln2005 ...
bsd-3-clause
metakermit/vlc
share/lua/sd/jamendo.lua
58
6732
--[[ $Id$ Copyright © 2010 VideoLAN and AUTHORS Authors: Fabio Ritrovato <sephiroth87 at videolan dot org> Rémi Duraffort <ivoire at videolan dot org> 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 So...
gpl-2.0
zjohn4/PD2-lua-src
lib/units/weapons/trip_mine/tripminebase.lua
1
20316
TripMineBase = TripMineBase or class( UnitBase ) TripMineBase.EVENT_IDS = {} TripMineBase.EVENT_IDS.sensor_beep = 1 TripMineBase.EVENT_IDS.explosion_beep = 2 function TripMineBase.spawn( pos, rot, sensor_upgrade ) -- Only called from server --[[local brush = Draw:brush( Color.red:with_alpha( 0.5 ) ) brush:set_persi...
gpl-2.0
beatgammit/luasocket
test/mimetest.lua
44
8413
local socket = require("socket") local ltn12 = require("ltn12") local mime = require("mime") local unpack = unpack or table.unpack dofile("testsupport.lua") local qptest = "qptest.bin" local eqptest = "qptest.bin2" local dqptest = "qptest.bin3" local b64test = "b64test.bin" local eb64test = "b64test.bin2" local db6...
mit
zjohn4/PD2-lua-src
core/lib/utils/dev/smoketest/suites/coresmoketesteditorsuite.lua
1
1844
core:module("CoreSmoketestEditorSuite") core:import("CoreClass") core:import("CoreSmoketestCommonSuite") EditorSuite = EditorSuite or class(CoreSmoketestCommonSuite.CommonSuite) function EditorSuite:init() EditorSuite.super.init(self) self:add_step( "load_editor", CoreSmoketestCommonSuite.WaitEventSubstep, ...
gpl-2.0
zjohn4/PD2-lua-src
lib/managers/menu/circleguiobject.lua
1
5000
CircleGuiObject = CircleGuiObject or class() function CircleGuiObject:init( panel, config ) -- config.total, config.current, config.radius --[[local name = config.name or "" local color = config.color or Color.white local layer = config.layer or 0 local visible = config.visible or true local rotatio...
gpl-2.0
zjohn4/PD2-lua-src
core/lib/utils/dev/ews/corepointpickerpanel.lua
1
3958
core:module "CorePointPickerPanel" core:import "CorePointPicker" core:import "CorePointerDraw" core:import "CoreClass" core:import "CoreEvent" core:import "CoreDebug" PointPickerPanel = PointPickerPanel or CoreClass.class() function PointPickerPanel:init(parent_frame, title) assert(managers.viewport) self.__point...
gpl-2.0
GoogleFrog/Zero-K
scripts/corvamp.lua
9
3396
include "constants.lua" --pieces local base = piece "base" local wingR, wingL, wingtipR, wingtipL = piece("wingr", "wingl", "wingtip1", "wingtip2") local engineR, engineL, thrust1, thrust2, thrust3 = piece("jetr", "jetl", "thrust1", "thrust2", "thrust3") local missR, missL = piece("m1", "m2") local smokePiece = {base...
gpl-2.0
remakeelectric/luci
modules/luci-base/luasrc/model/firewall.lua
17
10704
-- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local type, pairs, ipairs, table, luci, math = type, pairs, ipairs, table, luci, math local tpl = require "luci.template.parser" local utl = require "luci.util" local uci = require "luci.model.uci" module "lu...
apache-2.0
linxiulei/sysdig
userspace/sysdig/chisels/topcontainers_cpu.lua
16
2796
--[[ Copyright (C) 2013-2015 Draios inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without e...
gpl-2.0
Ninjistix/darkstar
scripts/zones/Waughroon_Shrine/npcs/Burning_Circle.lua
8
2249
----------------------------------- -- Area: Waughroon Shrine -- NPC: Burning Circle -- Waughroon Shrine Burning Circle -- !pos -345 104 -260 144 ------------------------------------- package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil; ------------------------------------- require("scripts/globals/bcnm");...
gpl-3.0
kbullaughey/lstm-play
toys/lstm/model-1_layer-variable-one.lua
1
6992
#!/usr/bin/env th toy = require '../toy/toy' check = require '../scripts/check_gradients' require 'lstm' -- Allow for command-line control over the seed and number of examples. cmd = torch.CmdLine() cmd:text() cmd:text('Train single-layer LSTM model using toy data.') cmd:text() cmd:text('Options') cmd:option('-seed',...
mit
Ninjistix/darkstar
scripts/globals/weaponskills/blade_retsu.lua
3
2053
----------------------------------- -- Blade Retsu -- Katana weapon skill -- Skill Level: 30 -- Delivers a two-hit attack. Paralyzes enemy. Duration of paralysis varies with TP. -- Proc rate of Paralyze seems to be based on your level in comparison to the targets level. The higher level you are compared to your target,...
gpl-3.0
galtek/c4pr-maltrato
App_WIP/utility.lua
1
1163
local m = {} function m.print_r ( t ) local print_r_cache={} local function sub_print_r(t,indent) if (print_r_cache[tostring(t)]) then print(indent.."*"..tostring(t)) else print_r_cache[tostring(t)]=true if (type(t)=="table") then for pos,va...
gpl-2.0
Ninjistix/darkstar
scripts/zones/Buburimu_Peninsula/npcs/Cavernous_Maw.lua
4
1555
----------------------------------- -- Area: Buburimu Peninsula -- NPC: Cavernous Maw -- !pos -334 -24 52 -- Teleports Players to Abyssea - Attohwa ----------------------------------- package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings...
gpl-3.0
chroteus/clay
misc/msgBox.lua
1
2563
local PADDING = 5 msgBox = { x = PADDING, y = PADDING, width = 350, height = 120, headSize = 18, bodySize = 16, } local Msg = class("Msg") function Msg:initialize(str) self.str = str self.x = PADDING if love.graphics.getFont():getWidth(self.str) > msgBox.width then -- double-line self...
gpl-2.0
Ninjistix/darkstar
scripts/zones/Abyssea-Grauberg/npcs/Dominion_Tactician.lua
5
4326
----------------------------------- -- Area: Abyssea - Grauberg -- NPC: Dominion Tactician -- ----------------------------------- package.loaded["scripts/zones/Abyssea-Grauberg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/abyssea"); require("scripts...
gpl-3.0
TRex22/hawkthorne-journey
src/nodes/activenpc.lua
1
4512
--MUST READ: -- to use this file do the following -- 1)find and replace each capitalized instance of Activenpc -- with a capitalized version of your node's name -- 2) find and replace each lowercase instance of activenpc -- with a lowercase version of your node's name(this should be the same as the filename) -- 3) sta...
mit
DDDGamer/factorio-dz-softmod
util/Time.lua
1
1867
-- Time Helper Module -- Common Time functions -- @usage local Time = require('util/Time') -- ------------------------------------------------------- -- -- @author Denis Zholob (DDDGamer) -- github: https://github.com/deniszholob/factorio-softmod-pack -- ======================================================= -- Time ...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Maze_of_Shakhrami/npcs/_5ia.lua
5
2882
----------------------------------- -- Area: Maze of Shakhrami -- NPC: Strange Apparatus -- !pos 375 20 -259 198 ----------------------------------- package.loaded["scripts/zones/Maze_of_Shakhrami/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Maze_of_Shakhrami/TextIDs"); require("scripts/...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Port_Bastok/npcs/Oggbi.lua
5
3051
----------------------------------- -- Area: Port Bastok -- NPC: Oggbi -- Starts and Finishes: Ghosts of the Past, The First Meeting -- @zone 236 -- !pos -159 -7 5 ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("scripts/globals...
gpl-3.0
EliasOenal/blobby
data/scripts/hyp014.lua
1
12001
g= -CONST_BALL_GRAVITY pg= -CONST_BLOBBY_GRAVITY v0=14.5 v_p=4.5 pj= pg/2 r1= CONST_BALL_RADIUS h=31.5+19+25 estt=0 p=0.654 s=math.random() function reset() est=0 imp,imp1,imp2=0,0,0 nettime=0 touch=0 esto1=0 esto2=0 esto3=0 esto4=0 esto5=0 esto6=0 phase=0 valid=1 active=1 nettime=0 y1p=posy() end fu...
gpl-2.0
blackman1380/antispam
libs/fakeredis.lua
650
40405
local unpack = table.unpack or unpack --- Bit operations local ok,bit if _VERSION == "Lua 5.3" then bit = (load [[ return { band = function(x, y) return x & y end, bor = function(x, y) return x | y end, bxor = function(x, y) return x ~ y end, bnot = function(x) return ~x end, rshift = function(x...
gpl-2.0
DEVll190ll/DEV_HR
libs/fakeredis.lua
650
40405
local unpack = table.unpack or unpack --- Bit operations local ok,bit if _VERSION == "Lua 5.3" then bit = (load [[ return { band = function(x, y) return x & y end, bor = function(x, y) return x | y end, bxor = function(x, y) return x ~ y end, bnot = function(x) return ~x end, rshift = function(x...
gpl-2.0
ccyphers/kong
kong/plugins/basic-auth/migrations/postgres.lua
8
1152
return { { name = "2015-08-03-132400_init_basicauth", up = [[ CREATE TABLE IF NOT EXISTS basicauth_credentials( id uuid, consumer_id uuid REFERENCES consumers (id) ON DELETE CASCADE, username text, password text, created_at timestamp without time zone default (CUR...
apache-2.0
EliasOenal/blobby
data/scripts/old/hyperion03.lua
4
4150
-- Hyperion v0.3 by Hyperion -- Ein paar Ideen stammen von anderen Bots, z.B. vom Combot -- Playtesting hauptsächlich gegen Combot und Dumpjump -- Bot hat noch einige Schwierigkeiten bei Netzbällen, der Aufschlag ist zu variabel und dadurch nicht gut genug -- Die Spielweise ist nicht berechnet, sondern durch Playtestin...
gpl-2.0
scan-bot/scan-bot
plugins/wiki.lua
735
4364
-- http://git.io/vUA4M local socket = require "socket" local JSON = require "cjson" local wikiusage = { "!wiki [text]: Read extract from default Wikipedia (EN)", "!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola", "!wiki search [text]: Search articles on default Wikipedia (EN)", "!...
gpl-2.0
area31/telegram-bot
plugins/wiki.lua
735
4364
-- http://git.io/vUA4M local socket = require "socket" local JSON = require "cjson" local wikiusage = { "!wiki [text]: Read extract from default Wikipedia (EN)", "!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola", "!wiki search [text]: Search articles on default Wikipedia (EN)", "!...
gpl-2.0
mohammad25253/persianguard12
plugins/wiki.lua
735
4364
-- http://git.io/vUA4M local socket = require "socket" local JSON = require "cjson" local wikiusage = { "!wiki [text]: Read extract from default Wikipedia (EN)", "!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola", "!wiki search [text]: Search articles on default Wikipedia (EN)", "!...
gpl-2.0
kbullaughey/lstm-play
lstm/ReverseSequenceEven.lua
1
1732
local ReverseSequenceEven, parent = torch.class('lstm.ReverseSequenceEven', 'nn.Module') -- This unit takes as input a tensor with the shape BxLxK and it reverses -- the L direction. This is appropriate for batches of sequences that are -- all the same length. -- -- lstm.ReverseSequenceEven(timeDim)(inputs) -- -- T...
mit
Ninjistix/darkstar
scripts/zones/Western_Adoulin/npcs/Zaoso.lua
7
1244
----------------------------------- -- Area: Western Adoulin -- NPC: Zaoso -- Type: Standard NPC and Quest NPC -- Involved with Quest: 'A Certain Substitute Patrolman' -- @zone 256 -- !pos -94 3 -11 ----------------------------------- require("scripts/globals/missions"); require("scripts/globals/quests"); ----------...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Lower_Jeuno/npcs/Hasim.lua
2
1530
----------------------------------- -- Area: Lower Jeuno -- NPC: Hasim -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Lower_Jeuno/TextIDs"); -------------...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Apollyon/npcs/Sentinel_Column.lua
5
1157
----------------------------------- -- Area: Appolyon -- NPC: Sentinel_Column -- !pos ----------------------------------- require("scripts/globals/limbus"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; ------------------------------...
gpl-3.0
Ninjistix/darkstar
scripts/globals/abilities/pets/attachments/strobe.lua
4
1255
----------------------------------- -- Attachment: Strobe -- http://forum.square-enix.com/ffxi/threads/49065?p=565264#post565264 -- Values are currently PRIOR TO NOVEMBER 2015 UPDATE! ----------------------------------- require("scripts/globals/status"); function onEquip(pet) pet:addMod(MOD_ENMITY, 10) pet:add...
gpl-3.0
SHIELDTM/shieldbot
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
Ninjistix/darkstar
scripts/globals/weaponskills/calamity.lua
25
1516
----------------------------------- -- Calamity -- Axe weapon skill -- Skill level: 200 (Beastmasters and Warriors only.) -- Delivers a single-hit attack. Damage varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Soil Gorget & Thunder Gorget. -- Aligned with the Soil Belt & Thunder Belt. -- Element: N...
gpl-3.0
abosalah22/zak
plugins/info.lua
3
1116
--[[ $ :) -- - ( #ابو_شهوده) - -- $ :) -- - ( @abo_shosho98) - -- $ :) --Channel-( @aboaloshbot )-- $ :) ]]-- do function run(msg, matches) local reply_id = msg['id'] local info = '🈷 - ٱيـۧډيک : '..msg.from.id..'\n' ..'🈶 - مۘعرفک : @'..msg.from.username..'\n' ..'🈸 - ٱسـۧمـک ٲلٲول : '..(msg.from.first_na...
gpl-2.0
Ninjistix/darkstar
scripts/globals/items/annihilator.lua
3
2887
----------------------------------------- -- ID: 18336, 18337, 18649, 18663, 18677, 19758, 19851, 21260, 21261, 21267 -- Item: Annihilator ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/msg"); require("scripts/globals/weaponskills"); require("scripts/globals/weapon...
gpl-3.0
abosalah22/zak
libs/redis.lua
566
1214
local Redis = require 'redis' local FakeRedis = require 'fakeredis' local params = { host = os.getenv('REDIS_HOST') or '127.0.0.1', port = tonumber(os.getenv('REDIS_PORT') or 6379) } local database = os.getenv('REDIS_DB') local password = os.getenv('REDIS_PASSWORD') -- Overwrite HGETALL Redis.commands.hgetall = ...
gpl-2.0
Ninjistix/darkstar
scripts/zones/The_Eldieme_Necropolis/Zone.lua
7
1263
----------------------------------- -- -- Zone: The_Eldieme_Necropolis (195) -- ----------------------------------- package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil; ----------------------------------- require("scripts/zones/The_Eldieme_Necropolis/TextIDs"); require("scripts/zones/The_Eldieme_Necrop...
gpl-3.0
Ninjistix/darkstar
scripts/zones/North_Gustaberg_[S]/npcs/Gebhardt.lua
5
1060
----------------------------------- -- Area: North Gustaberg (S) (I-6) -- NPC: Gebhardt -- Involved in Quests: The Fighting Fourth ----------------------------------- package.loaded["scripts/zones/North_Gustaberg_[S]/TextIDs"] = nil; package.loaded["scripts/globals/quests"] = nil; ----------------------------------- r...
gpl-3.0
Ninjistix/darkstar
scripts/globals/abilities/naturalists_roll.lua
1
2609
----------------------------------- -- Ability: Naturalists's Roll -- Increases the duration of enhancing magic effects received for party members within area of effect. -- Optimal Job: Geomancer -- Lucky Number: 3 -- Unlucky Number: 7 -- Level: 67 -- -- Die Roll | Duration % -- -------- ------- -- 1 ...
gpl-3.0
Ninjistix/darkstar
scripts/globals/items/grape_daifuku.lua
3
1845
----------------------------------------- -- ID: 6343 -- Item: grape_daifuku -- Food Effect: 30 Min, All Races ----------------------------------------- -- HP + 20 (Pet & Master) -- Vitality + 3 (Pet & Master) -- Master MAB + 3 , Pet MAB + 14 -- Accuracy/Ranged Accuracy +10% (cap 50 on master, cap 75 on pet) ----------...
gpl-3.0
neofob/sile
lua-libraries/std/debug.lua
6
2518
--[[-- Additions to the debug module @module std.debug ]] local init = require "std.debug_init" local io = require "std.io" local list = require "std.list" local string = require "std.string" --- To activate debugging set _DEBUG either to any true value -- (equivalent to {level = 1}), or as documented below...
mit
DEVll190ll/DEV_HR
plugins/help.lua
1
6246
--[[ BY ADOLF_HITLER (@LL190LL) BY:حسين محمد BY ADOLF_HITLER (@LLSNLL) --]] do function run(msg, matches) if matches[1] == "الاوامر" and is_momod(msg) then return "اهلا وسهلا بك 😻🎈 "..msg.from.first_name.."\n" .." ".."\n" ..[[ 💯اهلا بكم هناك 4 اوامر في البوت🤗 🔶🔻🔺🔻🔺🔻🔺🔷 🐉م1⃣ : ل...
gpl-2.0
neofob/sile
languages/af.lua
3
110964
SILE.hyphenator.languages["af"] = {} SILE.hyphenator.languages["af"].patterns = { ".aan5s4", ".aä7lawa", ".a6bc-b", ".a4b5la", ".ab7salo", ".a6b-ja", ".ac7cra.", ".a6farm", ".af7arm.", ".a6feet", ".af7eet.", ".a4f5en", ".a6fets", ".af7ets.", ".a6foes", ".af7oes.", ".a4f5oo", ".a4f5ra", ".af6ro'", ".a7fro's", ".af6ro-",...
mit
Ninjistix/darkstar
scripts/zones/Bhaflau_Thickets/mobs/Greater_Colibri.lua
3
1411
----------------------------------- -- Area: Bhaflau Thickets -- MOB: Greater Colibri ----------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- function onMobFight(mob, target) local delay = mob:getLocalVar("delay"); local Last...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Upper_Jeuno/npcs/Leillaine.lua
5
1033
----------------------------------- -- Area: Upper Jeuno -- NPC: Leillaine -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Upper_Jeuno/TextIDs"); ---------...
gpl-3.0
codedash64/Urho3D
bin/Data/LuaScripts/31_MaterialAnimation.lua
15
7449
-- Material animation example. -- This sample is base on StaticScene, and it demonstrates: -- - Usage of material shader animation for mush room material require "LuaScripts/Utilities/Sample" function Start() -- Execute the common startup for samples SampleStart() -- Create the scene content Crea...
mit
lukego/ljsyscall
include/constants.lua
1
44415
-- tables of constants -- so far almost all the single flag options have been converted to seperate tables with metamethods but still TODO -- are the multi flag ones -- TODO add test that we do not reallocate local ffi = require "ffi" local bit = require "bit" local arch = require("include.constants-" .. ffi.arch) ...
mit
s-d-a/DCS-ExportScripts
Scripts/DCS-ExportScript/ExportsModules/Su-25T.lua
1
20181
-- Su-25T Export ExportScript.FoundFCModule = true ExportScript.Version.Su25T = "1.2.1" -- auxiliary function dofile(ExportScript.Config.ExportModulePath.."FC_AuxiliaryFuntions.lua") ----------------------------------------- -- FLAMING CLIFFS AIRCRAFT / Su-25T -- -- FC aircraft don't support GetDevice -- --------...
lgpl-3.0
Ninjistix/darkstar
scripts/zones/Tahrongi_Canyon/npcs/qm2.lua
7
2137
----------------------------------- -- Area: Tahrongi Canyon -- NPC: qm2 (???) -- Note: Used to spawn Yara Ma Yha Who -- !pos 271 0.001 -334 117 ----------------------------------- package.loaded["scripts/zones/Tahrongi_Canyon/TextIDs"] = nil; ------------------------------------- require("scripts/zones/Tahrongi_Ca...
gpl-3.0
ThomasSFL/ardupilot-solo
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
istarIQ/Source
ar-map.lua
6
1868
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ map : طقس ▀▄ ▄▀ ▀▄▀...
gpl-2.0
Ninjistix/darkstar
scripts/zones/Lower_Jeuno/npcs/Zauko.lua
3
5417
----------------------------------- -- Area: Lower Jeuno -- NPC: Zauko -- Involved in Quests: Save the Clock Tower, Community Service -- @zone 245 -- !pos -3 0 11 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Selbina/npcs/Zaldon.lua
5
72546
----------------------------------- -- Area: Selbina -- NPC: Zaldon -- Involved in Quests: Under the sea, A Boy's Dream -- Starts and Finishes: Inside the Belly -- !pos -13 -7 -5 248 ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; ----------------------------------- require("...
gpl-3.0
istarIQ/Source
anti_spam.lua
21
5248
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id == our_id then return msg end -- Save...
gpl-2.0
TRex22/hawkthorne-journey
src/nodes/dealer.lua
1
1465
local Gamestate = require 'vendor/gamestate' local Prompt = require 'prompt' local fonts = require 'fonts' local Dealer = {} Dealer.__index = Dealer function Dealer.new(node, collider) local dealer = {} setmetatable(dealer, Dealer) dealer.x = node.x dealer.y = node.y dealer.height = node.height ...
mit
eugenesan/openwrt-luci
modules/base/luasrc/http/protocol/date.lua
88
2760
--[[ HTTP protocol implementation for LuCI - date handling (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
EliasOenal/blobby
data/scripts/old/hyp011.lua
4
11754
g=0.28 pg=0.88 v0=14.5 v_p=4.5 pj=0.44 r1=31.5 p0=0 p1=0.5 p2=1 h=31.5+19+25 estt=0 nettime=0 touch=0 est=0 p=0.4 esto1=10 esto2=10 esto3=10 function yb(y,vy,t) return y+(vy-g/10)*t-1/2*g*t^2 end function move(x) if (posx()<x) and (math.abs(posx()-x)>2.26) then right() elseif (posx()>x) and (math.abs(posx()-...
gpl-2.0
ahmetabdi/JC2-MP-Racing
client/cRaceGUIUtility.lua
2
1265
NormX = function(x) return (x * 0.5 + 0.5) * Render.Width end NormY = function(y) return (y * 0.5 + 0.5) * Render.Height end -- Normalized coords to pixels. From -1 to 1. NormVector2 = function(x , y) return Vector2( (x * 0.5 + 0.5) * Render.Width , (y * 0.5 + 0.5) * Render.Height ) end -- Draws...
mit
NeCarbon/vice-players
Vendor/CEGUI/cegui/src/ScriptingModules/LuaScriptModule/support/tolua++bin/lua/feature.lua
7
2631
-- tolua: abstract feature class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id: feature.lua 1004 2006-02-27 13:03:20Z lindquist $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation ...
gpl-3.0
Ninjistix/darkstar
scripts/zones/QuBia_Arena/mobs/Archlich_Taber_quoan.lua
5
1043
----------------------------------- -- Area: Qu'Bia Arena -- NM: Archlich Taber'quoan -- Mission 5-1 BCNM Fight ----------------------------------- mixins = {require("scripts/mixins/job_special")}; require("scripts/globals/status"); function onMobInitialize(mob) mob:setMobMod(MOBMOD_SOUND_RANGE, 32); end; funct...
gpl-3.0
moksha11/likwid
src/applications/likwid-topology.lua
2
11761
#!<PREFIX>/bin/likwid-lua --[[ * ======================================================================================= * * Filename: likwid-topology.lua * * Description: A application to determine the thread and cache topology * on x86 processors. * * Version: <VERSION> ...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Horlais_Peak/mobs/Maat.lua
6
1031
----------------------------------- -- Area: Horlais Peak -- MOB: Maat -- Genkai 5 Fight ----------------------------------- package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Horlais_Peak/TextIDs"); ----------------------------------- function onMob...
gpl-3.0
DGA-MI-SSI/YaCo
deps/swig-3.0.7/Examples/lua/funcptr3/runme.lua
4
1428
---- importing ---- if string.sub(_VERSION,1,7)=='Lua 5.0' then -- lua5.0 doesnt have a nice way to do this lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example') assert(lib)() else -- lua 5.1 does require('example') end a = 37 b = 42 -- Now call our C function print("Trying som...
gpl-3.0
chroteus/clay
class/country.lua
1
9637
require "class.region" Country = Base:subclass("Country") -- WARNING! The name of miniature and ball image should be the same as Country's name! -- Example: If we have an instance of Country with name variable "Ukraine", -- both balls and miniatures folder should have a Ukraine.png image. local lg = love.graphics f...
gpl-2.0
Ninjistix/darkstar
scripts/globals/items/caladbolg.lua
3
3310
----------------------------------------- -- ID: 19459 -- Item: Caladbolg ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/msg"); require("scripts/globals/weaponskills"); require("scripts/globals/weaponskillids"); ----------------------------------- local NAME_WEAPO...
gpl-3.0
DGA-MI-SSI/YaCo
deps/swig-3.0.7/Examples/lua/owner/runme.lua
2
3263
-- Operator overloading example ---- importing ---- if string.sub(_VERSION,1,7)=='Lua 5.0' then -- lua5.0 doesnt have a nice way to do this lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example') assert(lib)() else -- lua 5.1 does require('example') end print "ok, let's test Lua's ...
gpl-3.0
mandersan/premake-core
tests/base/test_aliasing.lua
12
1354
-- -- tests/base/test_aliasing.lua -- Verify handling of function aliases. -- Copyright (c) 2015 Jason Perkins and the Premake project -- local suite = test.declare("premake_alias") local m = {} local p = premake function suite.setup() m.testfunc = function() return 48 end m.aliased = nil m.aliased2 ...
bsd-3-clause
Ninjistix/darkstar
scripts/zones/Northern_San_dOria/npcs/Andreas.lua
5
2530
----------------------------------- -- Area: Northern San d'Oria -- NPC: Andreas -- Type: Guildworker's Union Representative -- @zone 231 -- !pos -189.282 10.999 262.626 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("s...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Bastok_Mines/npcs/Tibelda.lua
5
1103
----------------------------------- -- Area: Bastok Mines -- NPC: Tibelda -- Only sells when Bastok controlls Valdeaunia Region ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Bastok_Mines/TextIDs"); require("scr...
gpl-3.0
scan-bot/scan-bot
plugins/lyrics.lua
695
2113
do local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs' local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5' local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect' local function getInfo(query) print('Getting info of ' .. query) local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY ...
gpl-2.0
Ninjistix/darkstar
scripts/globals/items/ulbukan_lobster.lua
3
1055
----------------------------------------- -- ID: 5960 -- Item: Ulbukan Lobster -- Food Effect: 5 Min, Mithra only ----------------------------------------- -- Dexterity -3 -- Vitality 1 -- Defense +9% ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- ...
gpl-3.0
dinodeck/ninety_nine_days_of_dev
007_map_cure/code/combat_events/CEFlee.lua
10
2900
CEFlee = {} CEFlee.__index = CEFlee function CEFlee:Create(state, actor) local this = { mState = state, mOwner = actor, mCharacter = state.mActorCharMap[actor], mFleeParams = { dir = 1, distance = 180, time = 0.6 }, mIsFinished = false, } -- Decide if flee succe...
mit
SvenRoederer/openwrt-packages
net/prosody/files/prosody.cfg.lua
65
9428
-- Prosody Example Configuration File -- -- Information on configuring Prosody can be found on our -- website at https://prosody.im/doc/configure -- -- Tip: You can check that the syntax of this file is correct -- when you have finished by running this command: -- prosodyctl check config -- If there are any errors,...
gpl-2.0
wangyi0226/skynet
examples/wsclient.lua
2
1792
package.cpath = "luaclib/?.so" package.path = "lualib/?.lua;examples/?.lua" if _VERSION ~= "Lua 5.3" then error "Use lua 5.3" end local socket = require "clientwebsocket" local proto = require "proto" local sproto = require "sproto" local host = sproto.new(proto.s2c):host "package" local request = host:attach(sprot...
mit
neofob/sile
lua-libraries/lunamark/writer/latex.lua
4
7754
-- (c) 2009-2011 John MacFarlane. Released under MIT license. -- See the file LICENSE in the source for details. --- LaTeX writer for lunamark. -- Extends the [lunamark.writer.tex]. local M = {} local tex = require("lunamark.writer.tex") local util = require("lunamark.util") local format = string.format --- Returns...
mit
PetarTilevRusev/EndlessWar
game/scripts/vscripts/libraries/modifiers/modifier_animation.lua
24
10825
modifier_animation = class({}) local _CODE_TO_ANIMATION_TRANSLATE = { [0]= "loadout", [1]= "split_shot", [2]= "chemical_rage", [3]= "agedspirit", [4]= "aggressive", [5]= "injured", [6]= "ancient_armor", [7]= "anvil", [8]= "arcana", [9]= "techies_arcana", [10]= "fast", [11]= "faster", [12]= "f...
mit
Ninjistix/darkstar
scripts/zones/Western_Adoulin/npcs/Nylene.lua
7
1244
----------------------------------- -- Area: Western Adoulin -- NPC: Nylene -- Type: Standard NPC and Quest NPC -- Involved with Quest: 'A Certain Substitute Patrolman' -- @zone 256 -- !pos 12 0 -82 ----------------------------------- require("scripts/globals/missions"); require("scripts/globals/quests"); ----------...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Al_Zahbi/npcs/Zafif.lua
5
1524
----------------------------------- -- Area: Al Zahbi -- NPC: Zafif -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Al_Zahbi/TextIDs"); ----------------------...
gpl-3.0
jamiepg1/MCServer
lib/tolua++/src/bin/lua/package.lua
16
10650
-- tolua: package class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id: $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation to provide maintenance, support, updates, -- enhancements...
apache-2.0
Ninjistix/darkstar
scripts/zones/Nashmau/npcs/Dnegan.lua
5
1843
----------------------------------- -- Area: Nashmau -- NPC: Dnegan -- Standard Info NPC -- Involved in quest: Wayward Automation -- !pos 29.89 -6 55.83 53 ----------------------------------- require("scripts/globals/quests"); function onTrade(player,npc,trade) end; function onTrigger(player,npc) local TheWayw...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Beadeaux/npcs/qm2.lua
5
1119
-------------------------- -- Area: Beadeaux -- NPC: ??? (qm2) -- Type: Quest NPC -- !pos -79 1 -99 147 -------------------------- package.loaded["scripts/zones/Beadeaux/TextIDs"] = nil; -------------------------- require("scripts/zones/Beadeaux/TextIDs"); require("scripts/globals/keyitems"); require("scripts/globals...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Inner_Horutoto_Ruins/npcs/_5ct.lua
5
2222
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: _5ct (Magical Gizmo) #5 -- Involved In Mission: The Horutoto Ruins Experiment ----------------------------------- package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil; ----------------------------------- require("scripts/globals/m...
gpl-3.0
davidbuzz/ardupilot
libraries/AP_Scripting/examples/set-target-velocity.lua
18
3704
-- command a Copter to takeoff to 10m and fly a square pattern -- -- CAUTION: This script only works for Copter -- this script waits for the vehicle to be armed and RC6 input > 1800 and then: -- a) switches to Guided mode -- b) takeoff to 10m -- c) flies a 20m x 20m square pattern using the velocity controller...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Caedarva_Mire/TextIDs.lua
5
1405
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6386; -- Obtained: <item>. GIL_OBTAINED = 6387; -- Obtained <number> gil. KEYITEM_OBTAINED = 6389; -- Obta...
gpl-3.0
wounds1/zaza2
plugins/kickbot.lua
5
1372
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY OmarReal ▀▄ ▄▀ ▀▄ ▄▀ BY OmarReal (Omar_Real7) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY OmarReal ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄▀▀...
gpl-2.0
davidbuzz/ardupilot
libraries/AP_Scripting/examples/ahrs-source-gps-optflow.lua
11
11422
-- switches between AHRS/EKF sources based on the pilot's source selection switch or using an automatic source selection algorithm -- this script is intended to help vehicles automatically switch between GPS and optical flow -- -- configure a forward or downward facing lidar with a range of at least 5m -- setup RCx_OPT...
gpl-3.0
Ninjistix/darkstar
scripts/globals/spells/bluemagic/claw_cyclone.lua
35
1772
----------------------------------------- -- Spell: Claw Cyclone -- Damages enemies within area of effect with a twofold attack. Damage varies with TP -- Spell cost: 24 MP -- Monster Type: Beasts -- Spell Type: Physical (Slashing) -- Blue Magic Points: 2 -- Stat Bonus: VIT+1 -- Level: 20 -- Casting Time: 1 seconds -- R...
gpl-3.0