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
thedraked/darkstar
scripts/globals/items/lizard_egg.lua
18
1161
----------------------------------------- -- ID: 4362 -- Item: lizard_egg -- Food Effect: 5Min, All Races ----------------------------------------- -- Health 5 -- Magic 5 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -------------...
gpl-3.0
Ali-2h/losebot
plugins/img_google.lua
660
3196
do local mime = require("mime") local google_config = load_from_file('data/google.lua') local cache = {} --[[ local function send_request(url) local t = {} local options = { url = url, sink = ltn12.sink.table(t), method = "GET" } local a, code, headers, status = http.request(options) return tabl...
gpl-2.0
vatanambib/yagop
plugins/img_google.lua
660
3196
do local mime = require("mime") local google_config = load_from_file('data/google.lua') local cache = {} --[[ local function send_request(url) local t = {} local options = { url = url, sink = ltn12.sink.table(t), method = "GET" } local a, code, headers, status = http.request(options) return tabl...
gpl-2.0
garage11/kaupunki
build/bin/Data/LuaScripts/23_Water.lua
15
9916
-- Water example. -- This sample demonstrates: -- - Creating a large plane to represent a water body for rendering -- - Setting up a second camera to render reflections on the water surface require "LuaScripts/Utilities/Sample" local reflectionCameraNode = nil local waterNode = nil local waterPlane = Plane() ...
mit
ply/ReaScripts
Items Editing/Source-Destination/ply_Source-Destination configuration.lua
1
4457
--[[ @noindex Source-Destination editing configuration manager This file is a part of "Source-Destination edit" package. Check "ply_Source-Destination edit.lua" for more information. Copyright (C) 2020--2021 Paweł Łyżwa This program is free software: you can redistribute it and/or modify it under the terms of the GN...
mit
master041/tele-master-asli
plugins/domaintools.lua
359
1494
local ltn12 = require "ltn12" local https = require "ssl.https" -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local mashape = load_from_file('data/mashape.lua', { api_key = '' }) local function check(name) local api = "https://domainsearch.p.mashape.com/index.php?"...
gpl-2.0
vatanambib/yagop
plugins/webshot.lua
919
1473
local helpers = require "OAuth.helpers" local base = 'https://screenshotmachine.com/' local url = base .. 'processor.php' local function get_webshot_url(param) local response_body = {} local request_constructor = { url = url, method = "GET", sink = ltn12.sink.table(response_body), header...
gpl-2.0
pexcn/openwrt
extra-master/packages/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan3/mwan3_adv_hotplug.lua
9
2003
-- ------ hotplug script configuration ------ -- fs = require "nixio.fs" sys = require "luci.sys" ut = require "luci.util" script = "/etc/hotplug.d/iface/16-mwan3custom" scriptbak = "/etc/hotplug.d/iface/16-mwan3custombak" if luci.http.formvalue("cbid.luci.1._restorebak") then -- restore button has been clicked luc...
gpl-2.0
thedraked/darkstar
scripts/zones/Sacrarium/Zone.lua
19
3611
----------------------------------- -- -- Zone: Sacrarium (28) -- ----------------------------------- package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); require("scripts/globals/settings"); require("scripts/zones/Sacrarium/TextIDs"); -------...
gpl-3.0
128technology/protobuf_dissector
modules/ast/scoped_identifier.lua
1
3696
---------------------------------------- -- -- Copyright (c) 2015, 128 Technology, Inc. -- -- author: Hadriel Kaplan <hadriel@128technology.com> -- -- This code is licensed under the MIT license. -- -- Version: 1.0 -- ------------------------------------------ -- prevent wireshark loading this file as a plugin if not ...
mit
horizonrz/DBTeam
plugins/moderation.lua
42
30441
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
thedraked/darkstar
scripts/globals/items/wild_pineapple.lua
18
1180
----------------------------------------- -- ID: 4598 -- Item: wild_pineapple -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility -5 -- Intelligence 3 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ...
gpl-3.0
mtroyka/Zero-K
effects/grav.lua
17
3193
-- grav return { ["grav"] = { drag = { air = true, class = [[CSimpleParticleSystem]], ground = true, water = true, properties = { airdrag = 1, colormap = [[1 .5 1 .1 0 0 0 0]], direct...
gpl-2.0
telergybot/1984joorge
plugins/stats.lua
1
3937
do -- Returns a table with `name` and `msgs` 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_prin...
gpl-2.0
yunGit/skynet
lualib/mqueue.lua
115
1798
-- This is a deprecated module, use skynet.queue instead. local skynet = require "skynet" local c = require "skynet.core" local mqueue = {} local init_once local thread_id local message_queue = {} skynet.register_protocol { name = "queue", -- please read skynet.h for magic number 8 id = 8, pack = skynet.pack, u...
mit
fhedberg/ardupilot
libraries/AP_Scripting/examples/param_get_set_test.lua
15
2308
-- This script is a test of param set and get local count = 0 -- for fast param acess it is better to get a param object, -- this saves the code searching for the param by name every time local VM_I_Count = Parameter() if not VM_I_Count:init('SCR_VM_I_COUNT') then gcs:send_text(6, 'get SCR_VM_I_COUNT failed') end -...
gpl-3.0
moomoomoo309/FamiliarFaces
src/love-loader/love-loader.lua
1
7045
require "love.filesystem" require "love.image" require "love.audio" require "love.sound" local loader = { _VERSION = 'love-loader v2.0.2', _DESCRIPTION = 'Threaded resource loading for LÖVE', _URL = 'https://github.com/kikito/love-loader', _LICENSE = [[ MIT LICENSE Copyright (c) 2014 Enrique G...
mit
thedraked/darkstar
scripts/zones/AlTaieu/npcs/_0x0.lua
14
2215
----------------------------------- -- Area: Al'Taieu -- NPC: Crystalline Field -- @pos .1 -10 -464 33 ----------------------------------- package.loaded["scripts/zones/AlTaieu/TextIDs"] = nil; ----------------------------------- require("scripts/zones/AlTaieu/TextIDs"); require("scripts/globals/missions"); ------...
gpl-3.0
NPLPackages/main
script/test/TestIO.lua
1
14139
--[[ Author: LiXizhi Date: 2008-12-7 Desc: testing IO ----------------------------------------------- NPL.load("(gl)script/test/TestIO.lua"); ----------------------------------------------- ]] -- convert everything in a folder to UTF8 encoding -- %TESTCASE{"Test_io_OpenFileDialog", func = "Test_io_OpenFileDialog", in...
gpl-2.0
kaustavha/luvit
deps/utils.lua
6
2726
--[[ Copyright 2014-2015 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 o...
apache-2.0
thedraked/darkstar
scripts/globals/mobskills/Wind_Shear.lua
36
1145
--------------------------------------------- -- Wind Shear -- -- Description: Deals damage to enemies within an area of effect. Additional effect: Knockback -- Type: Physical -- Utsusemi/Blink absorb: 2-3 shadows -- Range: 10' radial -- Notes: The knockback is rather severe. Vulpangue uses an enhanced version th...
gpl-3.0
rjeli/luvit
examples/broken/app/modules/stack.lua
9
2997
--[[ Copyright 2012 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
thedraked/darkstar
scripts/globals/spells/jubaku_ichi.lua
27
1733
----------------------------------------- -- Spell: Jubaku: Ichi -- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and INT. -- taken from paralyze ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); -------------------------...
gpl-3.0
thedraked/darkstar
scripts/zones/Bastok-Jeuno_Airship/TextIDs.lua
22
1080
-- 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 = 6384; -- Obtained: <item> GIL_OBTAINED = 6385; -- Obtained <number> gil KEYITEM_OBTAINED = 6387; -- Obtain...
gpl-3.0
SnabbCo/snabbswitch
lib/ljsyscall/test/osx.lua
5
1757
-- OSX specific tests local function init(S) local helpers = require "test.helpers" local types = S.types local c = S.c local abi = S.abi local bit = require "syscall.bit" local ffi = require "ffi" local t, pt, s = types.t, types.pt, types.s local assert = helpers.assert local function fork_assert(cond, err, ...)...
apache-2.0
Abollfazl2/Robocop
plugins/moderation.lua
336
9979
do local function check_member(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then local username = v.username data[tostring(m...
gpl-2.0
master041/tele-master-asli
plugins/moderation.lua
336
9979
do local function check_member(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then local username = v.username data[tostring(m...
gpl-2.0
mtroyka/Zero-K
lups/ParticleClasses/NanoLasers.lua
11
11424
-- $Id: NanoLasers.lua 3357 2008-12-05 11:08:54Z jk $ ----------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------- local NanoLasers = {} NanoLasers.__in...
gpl-2.0
master041/tele-master-asli
plugins/id.lua
355
2795
local function user_print_name(user) if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name..' ' end if user.lastname then text = text..user.last_name end return text end local function returnids(cb_extra, success, resu...
gpl-2.0
MonkeyFirst/Urho3D
bin/Data/LuaScripts/03_Sprites.lua
24
3509
-- Moving sprites example. -- This sample demonstrates: -- - Adding Sprite elements to the UI -- - Storing custom data (sprite velocity) inside UI elements -- - Handling frame update events in which the sprites are moved require "LuaScripts/Utilities/Sample" local numSprites = 100 local sprites =...
mit
chef/chef-server
src/nginx/habitat/config/route_checks.lua
1
2633
module("route_checks", package.seeall) -- To preserve the ability to run tests locally, please comment out any -- chef templating if statements so that the un-rendered portions run in tests. -- For example: -- local response = {} response[403] = {} response[404] = {} response[503] = {} -- To add checks for a new re...
apache-2.0
thedraked/darkstar
scripts/zones/Selbina/npcs/Torapiont.lua
17
1547
----------------------------------- -- Area: Selbina -- NPC: Torapiont -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Selbina/TextIDs"); require("scripts/globals/shop"); --------------------...
gpl-3.0
thedraked/darkstar
scripts/globals/items/serving_of_mont_blanc.lua
18
1468
----------------------------------------- -- ID: 5557 -- Item: Serving of Mont Blanc -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +8 -- MP +10 -- Intelligence +1 -- HP Recoverd while healing 1 -- MP Recovered while healing 1 -------------------------------------...
gpl-3.0
X-Coder/wire
lua/entities/gmod_wire_egp/lib/objects/linestrip.lua
12
1267
-- Author: sk8 (& Divran) local Obj = EGP:NewObject( "LineStrip" ) Obj.w = nil Obj.h = nil Obj.x = nil Obj.y = nil Obj.vertices = {} Obj.verticesindex = "vertices" Obj.size = 1 Obj.Draw = function( self ) local n = #self.vertices if (self.a>0 and n>0 and self.size>0) then surface.SetDrawColor( self.r, self.g, self....
gpl-3.0
master041/tele-master-asli
plugins/minecraft.lua
624
2605
local usage = { "!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565", "!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.", } local ltn12 = require "ltn12" local function mineSearch(ip, port, receiver) --25565 local responseText = "" l...
gpl-2.0
thedraked/darkstar
scripts/zones/Inner_Horutoto_Ruins/npcs/_5ce.lua
14
1070
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: _5ce (Gate of Earth) -- @pos -228 0 140 192 ----------------------------------- package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Inner_Horutoto_Ruins/TextIDs"); ----...
gpl-3.0
thedraked/darkstar
scripts/zones/Western_Altepa_Desert/Zone.lua
4
4527
----------------------------------- -- -- Zone: Western_Altepa_Desert (125) -- ----------------------------------- package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil; package.loaded["scripts/globals/chocobo_digging"] = nil; ----------------------------------- require("scripts/zones/Western_Altepa_Dese...
gpl-3.0
thedraked/darkstar
scripts/zones/Tavnazian_Safehold/npcs/qm2.lua
14
1680
----------------------------------- -- Area: Tavnazian Safehold -- NPC: ??? -- Involved in Quest: Unforgiven -- @zone 26 -- @pos 110.714 -40.856 -53.154 ----------------------------------- package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil; require("scripts/zones/Tavnazian_Safehold/TextIDs") require("scri...
gpl-3.0
stuta/Luajit-Tcp-Server
ffi_def_linux.lua
1
16233
-- ffi_def_osx.lua module(..., package.seeall) local ffi = require "ffi" -- Lua state - creating a new Lua state to a new thread ffi.cdef[[ // lua.h static const int LUA_GCSTOP = 0; static const int LUA_GCRESTART = 1; static const int LUA_GCCOLLECT = 2; static const int LUA_GCCOUNT = 3; static const int LUA...
bsd-3-clause
thedraked/darkstar
scripts/zones/Giddeus/npcs/HomePoint#1.lua
27
1248
----------------------------------- -- 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
thedraked/darkstar
scripts/zones/Western_Adoulin/npcs/Mastan.lua
14
2128
----------------------------------- -- Area: Western Adoulin -- NPC: Virsaint -- Type: Standard NPC and Quest NPC -- Involved with Quests: 'Order Up' -- 'The Curious Case of Melvien' -- @zone 256 -- @pos -9 0 67 ----------------------------------- package.loaded["scripts/zones/Western_Adoul...
gpl-3.0
alalazo/wesnoth
data/ai/micro_ais/cas/ca_herding_sheep_runs_enemy.lua
2
1721
local H = wesnoth.require "helper" local AH = wesnoth.require "ai/lua/ai_helper.lua" local M = wesnoth.map local function get_next_sheep_enemies(cfg) local sheep = AH.get_units_with_moves { side = wesnoth.current.side, { "and", H.get_child(cfg, "filter_second") } } if (not sheep[1]) then re...
gpl-2.0
thedraked/darkstar
scripts/zones/Port_San_dOria/npcs/Avandale.lua
14
1052
----------------------------------- -- Area: Port San d'Oria -- NPC: Avandale -- Type: Standard NPC -- @zone 232 -- @pos -105.524 -9 -125.274 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ------------...
gpl-3.0
mtroyka/Zero-K
effects/paris.lua
12
4272
-- paris_glow -- paris -- paris_gflash -- paris_sphere return { ["paris_glow"] = { glow = { air = true, class = [[CSimpleParticleSystem]], count = 2, ground = true, water = true, properties = { airdrag ...
gpl-2.0
NPLPackages/main
script/ide/Motion/test/autotips_test.lua
1
4658
--[[ ------------------------------------------------------------ NPL.load("(gl)script/ide/Motion/test/autotips_test.lua"); CommonCtrl.Motion.autotips_test.show(); ------------------------------------------------------------ --]] NPL.load("(gl)script/ide/Motion/AnimativeMenu/AnimativeMenu.lua"); NPL.load("(gl)script/ki...
gpl-2.0
thedraked/darkstar
scripts/zones/East_Ronfaure/npcs/Croteillard.lua
14
1043
----------------------------------- -- Area: East Ronfaure -- NPC: Croteillard -- Type: Gate Guard -- @pos 87.426 -62.999 266.709 101 ----------------------------------- package.loaded["scripts/zones/East_Ronfaure/TextIDs"] = nil; ----------------------------------- require("scripts/zones/East_Ronfaure/TextIDs"); ...
gpl-3.0
thedraked/darkstar
scripts/globals/abilities/ninja_roll.lua
19
2510
----------------------------------- -- Ability: Ninja Roll -- Enhances evasion for party members within area of effect -- Optimal Job: Ninja -- Lucky Number: 4 -- Unlucky Number: 8 -- Jobs: -- Corsair Level 8 -- -- Die Roll |With NIN -- -------- ---------- -- 1 |+4 -- 2 |+6 -- 3 |+8 ...
gpl-3.0
moomoomoo309/FamiliarFaces
src/pl/OrderedMap.lua
1
4523
--- OrderedMap, a map which preserves ordering. -- -- Derived from `pl.Map`. -- -- Dependencies: `pl.utils`, `pl.tablex`, `pl.class`, `pl.List`, `pl.Map` -- @classmod pl.OrderedMap local tablex = require 'pl.tablex' local utils = require 'pl.utils' local List = require 'pl.List' local index_by,tsort,concat = tablex.in...
mit
ukoloff/rufus-lua-win
vendor/lua/lib/lua/oil/compat.lua
6
37401
-------------------------------------------------------------------------------- ------------------------------ ##### ## ------------------------------ ------------------------------ ## ## # ## ------------------------------ ------------------------------ ## ## ## ## ---------------------------...
mit
mrbangi/tele
bot/creed.lua
1
8264
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") VERSION = '1.0' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then retu...
gpl-2.0
mtroyka/Zero-K
scripts/heavyturret.lua
11
1619
include "constants.lua" local spGetUnitRulesParam = Spring.GetUnitRulesParam local base, turret, breech, barrel1, barrel2, flare = piece("base", "turret", "breech", "barrel1", "barrel2", "flare") local smokePiece = {base, turret} -- Signal definitions local SIG_AIM = 1 function script.AimWeapon(num, heading, pitch...
gpl-2.0
ukoloff/rufus-lua-win
vendor/lua/lib/lua/loop/collection/MapWithArrayOfKeys.lua
12
2348
-------------------------------------------------------------------------------- ---------------------- ## ##### ##### ###### ----------------------- ---------------------- ## ## ## ## ## ## ## ----------------------- ---------------------- ## ## ## ## ## ###### --------------------...
mit
eduardoabinader/packages
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/bmx7.lua
76
2091
#!/usr/bin/lua local json = require "cjson" local function interpret_suffix(rate) if rate ~= nil then local value = string.sub(rate, 1, -2) local suffix = string.sub(rate, -1) if suffix == "K" then return tonumber(value) * 10^3 end if suffix == "M" then return tonumber(value) * 10^6 end if suffi...
gpl-2.0
jarvissso3/afshinhr
plugins/banhammer.lua
7
36252
local function pre_process(msg) if msg.to.type ~= 'pv' then chat = msg.to.id user = msg.from.id local function check_newmember(arg, data) test = load_data(_config.moderation.data) lock_bots = test[arg.chat_id]['settings']['lock_bots'] local hash = "gp_lang:"..arg.chat_id local lang = redis:get(hash) if data...
gpl-3.0
thedraked/darkstar
scripts/zones/Apollyon/mobs/Barometz.lua
17
1394
----------------------------------- -- Area: Apollyon NE -- NPC: Barometz ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Apollyon/TextIDs"); ---------------------------------...
gpl-3.0
z3t0/zwm
utilities.lua
1
3518
-- utilities function log(err) -- TODO: log file error(err) end -- return the number of items in a table function table_count(t) local count = 0 for _ in pairs(t) do count = count + 1 end return count end -- recursively prints table function print_r ( t ) local print_r_cache={} local functio...
mit
mtroyka/Zero-K
effects/heatray.lua
17
2758
-- heatray_ceg -- heatray_hit return { ["heatray_hit"] = { usedefaultexplosions = false, cinder = { air = true, class = [[heatcloud]], count = 1, ground = true, water = true, properties = { alwaysvis...
gpl-2.0
thedraked/darkstar
scripts/zones/The_Garden_of_RuHmet/bcnms/when_angels_fall.lua
30
2268
----------------------------------- -- Area: The_Garden_of_RuHmet -- Name: when_angels_fall ----------------------------------- package.loaded["scripts/zones/The_Garden_of_RuHmet/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/keyitems"); require("script...
gpl-3.0
thedraked/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Animated_Spear.lua
17
1486
----------------------------------- -- Area: Dynamis Xarcabard -- MOB: Animated Spear ----------------------------------- require("scripts/globals/status"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- -- onMobEngaged ----------------------------------- function onMobEngag...
gpl-3.0
mtroyka/Zero-K
units/armcybr.lua
2
4675
unitDef = { unitname = [[armcybr]], name = [[Wyvern]], description = [[Singularity Bomber]], --autoheal = 25, brakerate = 0.4, buildCostEnergy = 2000, buildCostMetal = 2000, builder = false, buildPic = [[ARMCYBR.png]], b...
gpl-2.0
thedraked/darkstar
scripts/zones/The_Eldieme_Necropolis/npcs/qm9.lua
57
2181
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: qm9 (??? - Ancient Papyrus Shreds) -- Involved in Quest: In Defiant Challenge -- @pos 92.272 -32 -64.676 195 ----------------------------------- package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil; ----------------------------...
gpl-3.0
thedraked/darkstar
scripts/zones/Gustav_Tunnel/MobIDs.lua
28
1592
----------------------------------- -- Area: Gustav Tunnel (212) -- Comments: -- posX, posY, posZ -- (Taken from 'mob_spawn_points' table) ----------------------------------- Goblinsavior_Heronox = 17645609; Goblinsavior_Heronox_PH = { [17645592] = '1', -- 153.000, -10.000, -53.000 [17645605] = '1', -- 152.325...
gpl-3.0
thedraked/darkstar
scripts/zones/Port_Windurst/npcs/Sheia_Pohrichamaha.lua
17
1503
----------------------------------- -- Area: Port Windurst -- NPC: Sheia Pohrichamaha -- Only sells when Windurst controlls Fauregandi Region -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loaded["scripts/zones/Port...
gpl-3.0
grafi-tt/luabind
examples/glut/glut_bindings.lua
38
1543
quit = false function resize_func(w, h) local ratio = w / h print('====== resize') glMatrixMode(gl.PROJECTION) glLoadIdentity() glViewport(0,0,w,h) gluPerspective(45,ratio,1,1000) glMatrixMode(gl.MODELVIEW) glLoadIdentity() end angle = 0 angle2 = 0 previous_time = 0 function display_func() if quit the...
mit
X-Coder/wire
lua/effects/thruster_ring_grow1.lua
10
1652
EFFECT.Mat = Material( "effects/select_ring" ) /*--------------------------------------------------------- Initializes the effect. The data is a table of data which was passed from the server. ---------------------------------------------------------*/ function EFFECT:Init( data ) local size = 16 self:SetCol...
gpl-3.0
SnabbCo/snabbswitch
src/apps/pcap/tap.lua
7
2543
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(...,package.seeall) local ffi = require("ffi") local app = require("core.app") local lib = require("core.lib") local link = require("core.link") local pcap = require("lib.pcap.pcap") local pf = require("pf") Tap = {} local tap_...
apache-2.0
thedraked/darkstar
scripts/zones/Castle_Oztroja/npcs/_47d.lua
14
1071
----------------------------------- -- Area: Castle Oztroja -- NPC: _47d -- @pos 20.000 24.168 -25.000 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Castle_Oztroja/TextIDs"); -------------------------...
gpl-3.0
mtroyka/Zero-K
LuaUI/Widgets/unit_auto_group.lua
6
11333
local versionNum = '3.031' function widget:GetInfo() return { name = "Auto Group", desc = "v".. (versionNum) .." Alt+0-9 sets autogroup# for selected unit type(s). Newly built units get added to group# equal to their autogroup#. Alt BACKQUOTE (~) remove units. Type '/luaui autogroup help' for help or view setti...
gpl-2.0
thedraked/darkstar
scripts/globals/mobskills/Miasma.lua
33
1139
--------------------------------------------- -- Miasma -- -- Description: Releases a toxic cloud on nearby targets. Additional effects: Slow + Poison + Plague -- Type: Magical -- Utsusemi/Blink absorb: Wipes shadows? -- Range: Less than or equal to 10.0 -- Notes: Only used by Gulool Ja Ja. ----------------------...
gpl-3.0
jhasse/wxFormBuilder
build/premake/4.3/tests/base/test_table.lua
14
1035
-- -- tests/base/test_table.lua -- Automated test suite for the new table functions. -- Copyright (c) 2008-2010 Jason Perkins and the Premake project -- T.table = { } local suite = T.table -- -- table.contains() tests -- function suite.contains_OnContained() t = { "one", "two", "three" } test.istrue( table....
gpl-2.0
ukoloff/rufus-lua-win
vendor/lua/lib/lua/pl/class.lua
12
5169
--- Provides a reuseable and convenient framework for creating classes in Lua. -- Two possible notations: -- -- B = class(A) -- class.B(A) -- -- The latter form creates a named class. -- -- See the Guide for further @{01-introduction.md.Simplifying_Object_Oriented_Programming_in_Lua|discussion} -- @module pl.clas...
mit
thedraked/darkstar
scripts/zones/Metalworks/npcs/Grohm.lua
14
3042
----------------------------------- -- Area: Metalworks -- NPC: Grohm -- Involved In Mission: Journey Abroad -- @pos -18 -11 -27 237 ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/z...
gpl-3.0
rjeli/luvit
tests/test-fs-stat.lua
14
1933
--[[ Copyright 2012 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 agre...
apache-2.0
Shayan123456/ahvaz
bot/utils.lua
646
23489
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() JSON = (loadfile "./libs/...
gpl-2.0
thedraked/darkstar
scripts/zones/Abyssea-Attohwa/npcs/qm10.lua
9
1346
----------------------------------- -- Zone: Abyssea-Attohwa -- NPC: qm10 (???) -- Spawns Nightshade -- @pos ? ? ? 215 ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) --...
gpl-3.0
kaustavha/luvit
deps/childprocess.lua
5
4471
--[[ 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
thedraked/darkstar
scripts/zones/Gusgen_Mines/npcs/Clay.lua
14
1229
----------------------------------- -- Area: Gusgen Mines -- NPC: Clay -- Involved in Quest: A Potter's Preference -- @pos 117 -21 432 196 ----------------------------------- package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); require("scr...
gpl-3.0
thedraked/darkstar
scripts/zones/Ordelles_Caves/npcs/Grounds_Tome.lua
30
1098
----------------------------------- -- Area: Ordelle's Caves -- NPC: Grounds Tome ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/groundsofvalor"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,...
gpl-3.0
thedraked/darkstar
scripts/globals/weaponskills/circle_blade.lua
25
1358
----------------------------------- -- Circle Blade -- Sword weapon skill -- Skill Level: 150 -- Delivers an area of effect attack. Attack radius varies with TP. -- Aligned with the Aqua Gorget & Thunder Gorget. -- Aligned with the Aqua Belt & Thunder Belt. -- Element: None -- Modifiers: STR:35% -- 100%TP 200%TP ...
gpl-3.0
thedraked/darkstar
scripts/globals/spells/bluemagic/feather_tickle.lua
25
1164
----------------------------------------- -- Spell: Feather Tickle -- Reduces an enemy's TP -- Spell cost: 48 MP -- Monster Type: Birds -- Spell Type: Magical (Wind) -- Blue Magic Points: 3 -- Stat Bonus: AGI+1 -- Level: 64 -- Casting Time: 4 seconds -- Recast Time: 26 seconds -- Magic Bursts on: Detonation, Fragmentat...
gpl-3.0
garage11/kaupunki
build/bin/Data/LuaScripts/01_HelloWorld.lua
24
1882
-- This first example, maintaining tradition, prints a "Hello World" message. -- Furthermore it shows: -- - Using the Sample utility functions as a base for the application -- - Adding a Text element to the graphical user interface -- - Subscribing to and handling of update events require "LuaScripts...
mit
thedraked/darkstar
scripts/zones/Northern_San_dOria/npcs/Guilerme.lua
14
2093
----------------------------------- -- Area: Northern San d'Oria -- NPC: Guillerme -- Involved in Quest: Rosel the Armorer -- @zone 231 -- @pos -4.500 0.000 99.000 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scri...
gpl-3.0
thedraked/darkstar
scripts/zones/Windurst_Walls/npcs/Naih_Arihmepp.lua
14
1471
----------------------------------- -- Area: Windurst Walls -- NPC: Naih Arihmepp -- Type: Standard NPC -- @pos -64.578 -13.465 202.147 239 ----------------------------------- package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); requir...
gpl-3.0
garage11/kaupunki
build/bin/Data/LuaScripts/09_MultipleViewports.lua
24
13081
-- Multiple viewports example. -- This sample demonstrates: -- - Setting up two viewports with two separate cameras -- - Adding post processing effects to a viewport's render path and toggling them require "LuaScripts/Utilities/Sample" local rearCameraNode = nil function Start() -- Execute the ...
mit
thedraked/darkstar
scripts/zones/Port_Bastok/npcs/Oggbi.lua
26
3415
----------------------------------- -- 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
brimworks/zile
src/redisplay.lua
1
2999
-- Terminal independent redisplay routines -- -- Copyright (c) 2010 Free Software Foundation, Inc. -- -- This file is part of GNU Zile. -- -- GNU Zile 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 v...
gpl-3.0
moomoomoo309/FamiliarFaces
src/pl/url.lua
4
1028
--- Python-style URL quoting library. -- -- @module pl.url local url = {} local function quote_char(c) return string.format("%%%02X", string.byte(c)) end --- Quote the url, replacing special characters using the '%xx' escape. -- @string s the string -- @bool quote_plus Also escape slashes and replace spaces by p...
mit
thedraked/darkstar
scripts/zones/Southern_San_dOria_[S]/npcs/Nembet.lua
14
1024
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Nembet -- @zone 80 -- @pos 147 -3 110 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil; require("scripts/zones/Southern_San_dOria_[S]/TextIDs"); ----------------------------------- -- onTra...
gpl-3.0
alalazo/wesnoth
data/campaigns/tutorial/lua/character_selection.lua
2
2233
-- #textdomain wesnoth-tutorial -- Allows the player to choose whether they want to play Konrad or Li’sar -- for the tutorial local helper = wesnoth.require "helper" local T = helper.set_wml_tag_metatable {} local wml_actions = wesnoth.wml_actions local _ = wesnoth.textdomain "wesnoth-tutorial" function wml_actions....
gpl-2.0
Devul/DarkRP
gamemode/modules/f1menu/cl_htmlcontrols.lua
12
3854
surface.CreateFont("F1AddressBar", { size = 14, weight = 400, antialias = true, shadow = false, font = "Coolvetica"}) local PANEL = {} -- Remove any Javascript warnings function PANEL:ConsoleMessage() end function PANEL:Init() self.BaseClass.Init(self) self.history = ...
mit
NPLPackages/main
script/ide/Display/Util/ObjectsCreator.lua
1
3704
--[[ Title: ObjectsCreator Author(s): Leio Date: 2009/1/22 Desc: use the lib: ------------------------------------------------------------ NPL.load("(gl)script/ide/Display/Util/ObjectsCreator.lua"); ------------------------------------------------------------ ]] NPL.load("(gl)script/ide/Display/InteractiveObject.lua")...
gpl-2.0
pexcn/openwrt
extra-master/packages/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan3/mwan3_interface.lua
9
9177
-- ------ extra functions ------ -- function iface_check() -- find issues with too many interfaces, reliability and metric uci.cursor():foreach("mwan3", "interface", function (section) local ifname = section[".name"] ifnum = ifnum+1 -- count number of mwan3 interfaces configured -- create list of metrics f...
gpl-2.0
thedraked/darkstar
scripts/zones/Northern_San_dOria/npcs/Macuillie.lua
11
2571
----------------------------------- -- Area: Northern San d'Oria -- NPC: Macuillie -- Type: Guildworker's Union Representative -- @zone 231 -- @pos -191.738 11.001 138.656 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; require("scripts/globals/keyitems"); requ...
gpl-3.0
mtroyka/Zero-K
LuaRules/Gadgets/CAI/astar.lua
9
7268
--------------------------------------------------------------------- --[[ author: quantum GPL v2 or later http://www.policyalmanac.org/games/aStarTutorial.htm http://en.wikipedia.org/wiki/A*_search_algorithm use: override IsBlocked, GetDistance, etc and run aStar.GetPath -- example -----------------------------...
gpl-2.0
thedraked/darkstar
scripts/zones/Port_Windurst/npcs/Ada.lua
14
1043
----------------------------------- -- Area: Port Windurst -- NPC: Ada -- Type: Standard NPC -- @zone 240 -- @pos -79.803 -6.75 168.652 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ---------------------...
gpl-3.0
thedraked/darkstar
scripts/zones/Dynamis-Buburimu/mobs/Serjeant_Tombstone.lua
22
1228
----------------------------------- -- Area: Dynamis Buburimu -- MOB: Serjeant_Tombstone ----------------------------------- package.loaded["scripts/zones/Dynamis-Buburimu/TextIDs"] = nil; ----------------------------------- require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Buburimu/TextIDs"); ----...
gpl-3.0
lipp/zbus
zbus/socket.lua
1
7564
local ev = require'ev' local socket = require'socket' require'pack' local print = print local pairs = pairs local tinsert = table.insert local tconcat = table.concat local ipairs = ipairs local assert = assert local spack = string.pack local error = error local log = print module('zbus.socket') local wrap_sync = ...
mit
thedraked/darkstar
scripts/zones/The_Eldieme_Necropolis/npcs/_5f9.lua
12
1097
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: Shiva's Gate -- @pos 270 -34 -60 195 ----------------------------------- package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil; ----------------------------------- require("scripts/zones/The_Eldieme_Necropolis/TextIDs"); -----...
gpl-3.0
X-Coder/wire
lua/entities/gmod_wire_user.lua
9
1183
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire User" ENT.RenderGroup = RENDERGROUP_BOTH ENT.WireDebugName = "User" function ENT:SetupDataTables() self:NetworkVar( "Float", 0, "BeamLength" ) end if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsIni...
gpl-3.0
stuta/Luajit-Tcp-Server
WTypes.lua
1
13256
local ffi = require"ffi" local bit = require"bit" local bnot = bit.bnot local band = bit.band local bor = bit.bor local lshift = bit.lshift local rshift = bit.rshift ffi.cdef[[ // Basic Data types typedef unsigned char BYTE; typedef long BOOL; typedef BYTE BOOLEAN; typedef char CHAR; typedef wchar_t WCHAR; ...
bsd-3-clause