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
HeavensSword/darkstar
scripts/zones/Abyssea-La_Theine/MobIDs.lua
4
3371
require("scripts/globals/keyitems"); -- [QM] = {'name', {list of required trades}, {list of required KIs}, nmID} -- uncomment lines as NMs are implemented NM_POPS = { -- [17318473] = { 'qm1', {2891}, {}, 17318434}, -- Dozing Dori...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Garlaige_Citadel/npcs/_5kr.lua
5
1193
----------------------------------- -- Area: Garlaige Citadel -- NPC: _5kr (Crematory Hatch) -- Type: Door -- !pos 139 -6 127 200 ----------------------------------- package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); require("scripts/g...
gpl-3.0
crazyhamedboy/bbb
plugins/admin.lua
230
6382
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(rec...
gpl-2.0
yongkangchen/slua
build/luajit-2.1.0/src/jit/v.lua
78
5755
---------------------------------------------------------------------------- -- Verbose mode of the LuaJIT compiler. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
mit
qwook/dpsht
entities_/core/tile.lua
1
3038
Physical = require("entities.core.physical") Tile = class("Tile", Physical) function Tile:initialize(w, h, collisiongroup) self.collisiongroup = collisiongroup or "shared" self.solid = true self.width = w self.height = h self.type = "TILE" self:initPhysics() end function Tile:destroy() ...
mit
xtao/ntopng
scripts/lua/sprobe_hosts_interactions_data.lua
3
1516
-- -- (C) 2013-14 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" sendHTTPHeader('application/json') interface.find(ifname) flows_stats = interface.getFlowsInfo() links = {} processes = {} for key, value in pairs(flows_stats) ...
gpl-3.0
taksetareh12/mojtaba
plugins/ingroup.lua
24
53144
do -- Check Member local function check_member_autorealm(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 -- Group configuration data[tostr...
gpl-2.0
ld-test/lua-lz4
test/3_stream.lua
3
1371
local lz4 = require("lz4") local readfile = require("readfile") local data = { string.rep("0123456789", 100000), "Hello, World!!", readfile("../LICENSE"), readfile("../lua_lz4.c"), "p = lua_newuserdata(L, sizeof(lz4_compress_stream_hc_t));", "static lz4_compress_stream_t *_checkcompressionstream(lua_State ...
apache-2.0
HeavensSword/darkstar
scripts/globals/mobskills/thundris_shriek.lua
3
1355
--------------------------------------------- -- Thundris Shriek -- -- Description: Deals heavy lightning damage to targets in area of effect. Additional effect: Terror -- Type: Magical -- Utsusemi/Blink absorb: Wipes shadows -- Range: Unknown -- Notes: Players will begin to be intimidated by the dvergr after this atta...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Rabao/npcs/Leodarion.lua
5
3272
----------------------------------- -- Area: Rabao -- NPC: Leodarion -- Involved in Quest: 20 in Pirate Years, I'll Take the Big Box, True Will -- !pos -50 8 40 247 ----------------------------------- package.loaded["scripts/zones/Rabao/TextIDs"] = nil; ----------------------------------- require("scripts/globals/sett...
gpl-3.0
HeavensSword/darkstar
scripts/zones/West_Ronfaure/npcs/Vilatroire.lua
5
1247
----------------------------------- -- Area: West Ronfaure -- NPC: Vilatroire -- Involved in Quests: "Introduction To Teamwork", "Intermediate Teamwork", -- "Advanced Teamwork" -- !pos -260.361 -70.999 423.420 100 ----------------------------------- require("scripts/globals/quests"); require("scripts/zones/West_Ronfau...
gpl-3.0
Openarl/PathOfBuilding
Data/3_0/Bases/shield.lua
1
32314
-- This file is automatically generated, do not edit! -- Item data (c) Grinding Gear Games local itemBases = ... itemBases["Splintered Tower Shield"] = { type = "Shield", subType = "Armour", socketLimit = 3, tags = { default = true, armour = true, shield = true, str_armour = true, str_shield = true, }, armour = ...
mit
mohammadclashclash/uzzbot
plugins/meme.lua
637
5791
local helpers = require "OAuth.helpers" local _file_memes = './data/memes.lua' local _cache = {} local function post_petition(url, arguments) local response_body = {} local request_constructor = { url = url, method = "POST", sink = ltn12.sink.table(response_body), headers = {}, red...
gpl-2.0
peymankhanas8487/Horror_Avatar
plugins/meme.lua
637
5791
local helpers = require "OAuth.helpers" local _file_memes = './data/memes.lua' local _cache = {} local function post_petition(url, arguments) local response_body = {} local request_constructor = { url = url, method = "POST", sink = ltn12.sink.table(response_body), headers = {}, red...
gpl-2.0
icrazyboy/-
plugins/meme.lua
637
5791
local helpers = require "OAuth.helpers" local _file_memes = './data/memes.lua' local _cache = {} local function post_petition(url, arguments) local response_body = {} local request_constructor = { url = url, method = "POST", sink = ltn12.sink.table(response_body), headers = {}, red...
gpl-2.0
HeavensSword/darkstar
scripts/zones/Windurst_Woods/npcs/Kuoh_Rhel.lua
5
3655
----------------------------------- -- Area: Windurst Woods -- NPC: Kuoh Rhel -- Type: Standard NPC -- Starts quests: Chocobilious, In a Stew -- !pos 131.437 -6 -102.723 241 -- Note: In a Stew should only repeat once per conquest tally. The tally is not implemented at time of -- writing this quest. Once it is ...
gpl-3.0
cogwerkz/gUI4
gUI4_ActionBars/templates/scaffold.lua
1
4876
local addon,ns = ... local gUI4 = GP_LibStub("GP_AceAddon-3.0"):GetAddon("gUI4", true) if not gUI4 then return end local gUI4_ActionBars = gUI4:GetModule("gUI4_ActionBars", true) if not gUI4_ActionBars then return end local LibWin = GP_LibStub("GP_LibWindow-1.1") local Scaffold = CreateFrame("Button") l...
mit
mohammadclashclash/uzzbot
plugins/search_youtube.lua
674
1270
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end local function searchYoutubeVideos(text) local url = 'https://www.googleapis.com/youtube/v3/search?' u...
gpl-2.0
HeavensSword/darkstar
scripts/zones/QuBia_Arena/mobs/Maat.lua
6
1028
----------------------------------- -- Area: Qu'Bia Arena -- MOB: Maat -- Genkai 5 Fight ----------------------------------- package.loaded["scripts/zones/QuBia_Arena/TextIDs"] = nil; ----------------------------------- require("scripts/zones/QuBia_Arena/TextIDs"); ----------------------------------- function onMobSp...
gpl-3.0
dlannan/webdruino
deps/luasys-master/test/mem/bench.lua
2
1293
#!/usr/bin/env lua local sys = require("sys") local mem = sys.mem -- Copy file local infile = ... local outfile = "bench.out" if not infile then print[[Usage: bench.lua <FILENAME>]] return end local BUFSIZ = 65536 local period = sys.period() period:start() do local fi = assert(io.open(infile, "rb")) lo...
mit
serbyy/MozDef
examples/heka-lua-suricata/eve-json.lua
12
6138
local cjson = require "cjson" -- example of the input JSON from Suricata -- local dt = require "date_time" -- { -- "timestamp": "2009-11-24T21:27:09.534255", -- "event_type": "alert", -- "src_ip": "192.168.2.7", -- "src_port": 1041, -- "dest_ip": "x.x.250.50", -- "dest_port": 80, -- "proto": "TCP"...
mpl-2.0
frango9000/PokeBotBad
action/walk.lua
6
3163
local Walk = {} local Data = require "data.data" local Control = require "ai.control" local Paths = require("data."..Data.gameName..".paths") local Input = require "util.input" local Memory = require "util.memory" local Player = require "util.player" local Pokemon = require "storage.pokemon" local pat...
mit
vmercierfr/kong
kong/plugins/filelog/log.lua
5
1191
-- Copyright (C) Mashape, Inc. local ffi = require "ffi" local cjson = require "cjson" local fd_util = require "kong.plugins.filelog.fd_util" local basic_serializer = require "kong.plugins.log_serializers.basic" ffi.cdef[[ typedef struct { char *fpos; void *base; unsigned short handle; short flags; short un...
mit
HeavensSword/darkstar
scripts/zones/RuAun_Gardens/mobs/Suzaku.lua
5
1710
----------------------------------- -- Area: Ru'Aun Gardens -- NM: Suzaku ----------------------------------- package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil; ----------------------------------- mixins = {require("scripts/mixins/job_special")}; require("scripts/zones/RuAun_Gardens/TextIDs"); require("scri...
gpl-3.0
xtao/ntopng
scripts/lua/index.lua
1
8329
-- -- (C) 2013-14 - ntop.org -- if(ntop.isPro()) then print(ntop.httpRedirect("/lua/pro/dashboard.lua")) return end dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path -- io.write ("Session:".._SESSION["session"].."\n") require "lua_utils" sendHTTPHeader('tex...
gpl-3.0
dkorolev/tarantool
test/box/errinj_index.test.lua
13
2661
errinj = box.error.injection -- Check a failed realloc in tree index. s = box.schema.space.create('tweedledum') index = s:create_index('primary', {type = 'tree'} ) for i = 1,10 do s:insert{i, i, 'test' .. i} end res = {} for i = 1,10 do table.insert(res, s:get{i}) end res res = {} for _, t in s.index[0]:pairs() do t...
bsd-2-clause
msva/LDoc
tests/usage/usage.lua
7
1797
--[[-------- A simple module with examples. Even without markdown formatting, blank lines are respected. @module usage ]] local usage = {} local helper --- a local helper function. -- @local function helper () end ---------- -- A simple vector class. -- -- Supports arithmetic operations. -- @usage -- v = Vector.n...
mit
Dota-2-5v5v5v5/GameFolder
scripts/vscripts/libraries/modmaker.lua
1
10719
MODMAKER_VERSION = "0.80" require('libraries/timers') --[[ ModMaker Library by BMD Installation -"require" this file inside your code in order to make the ModMaker API available in game -Ensure that this file is placed in the vscripts/libraries path -Ensure that you have the modmaker/modmaker.xml...
gpl-3.0
pd2-linux/tina
feeds/luci/applications/luci-diag-devinfo/luasrc/controller/luci_diag/luci_diag_devinfo.lua
76
2144
--[[ Luci diag - Diagnostics controller module (c) 2009 Daniel Dickinson Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ]]-- module("luci.cont...
gpl-2.0
forivall-mirrors/orxonox-game-code
src/external/tolua/lua/package.lua
1
11856
-- 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...
gpl-2.0
404rq/GTW-RPG
[misc]/business/server/updatecheck.lua
3
1653
------------------------------------------------------------------------------------ -- PROJECT: Business System v1.2 -- RIGHTS: All rights reserved by developers -- FILE: business/server/updatecheck.lua -- PURPOSE: Check for released updates for the resource -- DEVELOPERS: JR10 ----------------------------...
bsd-2-clause
HeavensSword/darkstar
scripts/globals/weaponskills/tachi_jinpu.lua
23
1422
----------------------------------- -- Tachi Jinpu -- Great Katana weapon skill -- Skill level: 150 -- Two-hit attack. Deals Physical and wind elemental damage to enemy. Additonal Effect Damage varies with TP. -- Will stack with Sneak Attack and Souleater. -- Aligned with the Breeze Gorget & Shadow Gorget. -- Aligned w...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Tavnazian_Safehold/npcs/Aligi-Kufongi.lua
5
2744
----------------------------------- -- Area: Tavnazian Safehold -- NPC: Aligi-Kufongi -- Title Change NPC -- !pos -23 -21 15 26 ----------------------------------- require("scripts/globals/titles"); local title2 = { TAVNAZIAN_SQUIRE ,PUTRID_PURVEYOR_OF_PUNGENT_PETALS , MONARCH_LINN_PATROL_GUARD , SIN_HUNTER_HUNTER , ...
gpl-3.0
rastin45/webot
plugins/invite.lua
63
1107
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) or is_gbanned(result.id) then -- Ignore bans and globall bans send_large_msg(chat, 'User is banned.') else ...
gpl-2.0
HeavensSword/darkstar
scripts/zones/RuLude_Gardens/npcs/Adolie.lua
5
1159
----------------------------------- -- Area: Ru'Lude Gardens -- NPC: Adolie -- @zone 243 -- !pos -35 2 59 ----------------------------------- package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/zones/RuLude_Gardens/TextID...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Windurst_Woods/npcs/Manyny.lua
5
1124
----------------------------------- -- Area: Windurst Woods -- NPC: Manyny -- Standard Merchant NPC -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("script...
gpl-3.0
HeavensSword/darkstar
scripts/globals/items/jar_of_remedy_ointment.lua
3
1691
----------------------------------------- -- ID: 5356 -- Item: Remedy Ointment -- Item Effect: This potion remedies status ailments. -- Works on paralysis, silence, blindness, poison, and plague. ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- func...
gpl-3.0
HeavensSword/darkstar
scripts/globals/items/chunk_of_sweet_lizard.lua
3
1049
----------------------------------------- -- ID: 5738 -- Item: chunk_of_sweet_lizard -- Food Effect: 30Min, All Races ----------------------------------------- -- HP 5 -- MP 5 -- Dexterity 1 -- hHP +2 -- hMP +2 ----------------------------------------- require("scripts/globals/status"); --------------------------------...
gpl-3.0
yongkangchen/slua
build/luajit-2.0.4/src/jit/dump.lua
84
19509
---------------------------------------------------------------------------- -- LuaJIT compiler dump module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -- -...
mit
HeavensSword/darkstar
scripts/globals/spells/bluemagic/cocoon.lua
5
1215
----------------------------------------- -- Spell: Cocoon -- Enhances defense -- Spell cost: 10 MP -- Monster Type: Vermin -- Spell Type: Magical (Earth) -- Blue Magic Points: 1 -- Stat Bonus: VIT+3 -- Level: 8 -- Casting Time: 1.75 seconds -- Recast Time: 60 seconds -- Duration: 90 seconds -- -- Combos: None --------...
gpl-3.0
cogwerkz/gUI4
gUI4/libs/GP_oUF-Elements/combopoints.lua
1
4189
local addon,ns = ... local oUF = ns.oUF if not oUF then return end local LEGION = tonumber((select(2, GetBuildInfo()))) >= 21996 -- WoW API local GetComboPoints = GetComboPoints local IsPlayerSpell = IsPlayerSpell local UnitBuff = UnitBuff local UnitHasVehicleUI = UnitHasVehicleUI local MAX_COMBO_POINTS...
mit
ignacio/LuaNode
test/simple/test-event-emitter-add-listeners.lua
3
1585
require "lunit" module(..., lunit.testcase, package.seeall) common = dofile("common.lua") local EventEmitter = require "luanode.event_emitter" function test() local e = EventEmitter() local events_new_listener_emited = {} local times_hello_emited = 0 e:addListener("newListener", function (self, event, listene...
mit
404rq/GTW-RPG
[resources]/GTWcore/s_core.lua
2
11281
--[[ ******************************************************************************** Project owner: RageQuit community Project name: GTW-RPG Developers: Mr_Moose Source code: https://github.com/404rq/GTW-RPG/ Bugtracker: https://discuss.404rq.com/t/issues Suggestions: https://discuss.404rq.com/t/deve...
bsd-2-clause
HeavensSword/darkstar
scripts/zones/Southern_San_dOria/npcs/Valeriano.lua
5
1844
----------------------------------- -- Area: Southern_San_dOria -- NPC: Valeriano -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/shop"); requ...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Sauromugue_Champaign/npcs/Cavernous_Maw.lua
4
2570
----------------------------------- -- Area: Sauromugue Champaign -- NPC: Cavernous Maw -- Teleports Players to Sauromugue_Champaign_S -- !pos 369 8 -227 120 ----------------------------------- package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil; ----------------------------------- require("scripts/glob...
gpl-3.0
abbasgh12345/s
bot/utils.lua
473
24167
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
ignacio/LuaNode
lib/luanode/querystring.lua
2
2189
local Url = require "luanode.__private_url" local _M = { _NAME = "luanode.querystring", _PACKAGE = "luanode." } -- Make LuaNode 'public' modules available as globals. luanode.querystring = _M -- -- Encodes the key-value pairs of a table according the application/x-www-form-urlencoded content type. function _M.url_...
mit
Wedmer/luci
applications/luci-app-mwan3/luasrc/model/cbi/mwan/rule.lua
1
3530
-- Copyright 2014 Aedan Renner <chipdankly@gmail.com> -- Copyright 2018 Florian Eckert <fe@dev.tdt.de> -- Licensed to the public under the GNU General Public License v2. dsp = require "luci.dispatcher" function ruleCheck() local rule_error = {} uci.cursor():foreach("mwan3", "rule", function (section) rule_err...
apache-2.0
lhsazevedo/LIKO-12
Engine/events.lua
1
5166
--==Contribution Guide==-- --[[ Events System, used for wiring love events to liko12s peripherals. Event Name: * It's highly recommended to name event as "parent:funcName", for ex: "love:update". Love2D Hooks: * All love2d callbacks are triggered with names "love:callbackName", ex: "love:mousepressed". * There is 2 s...
mit
HeavensSword/darkstar
scripts/globals/items/m&p_doner_kebab.lua
3
1174
----------------------------------------- -- ID: 5717 -- Item: M&P Doner Kabob -- Food Effect: 5Min, All Races ----------------------------------------- -- HP 5% (cap 150) -- MP 5% (cap 150) -- hHP +2 -- hMP +2 ----------------------------------------- require("scripts/globals/status"); --------------------------------...
gpl-3.0
legospacy/rainbow-arena
systems/00_Engine/04_Sound.lua
1
2450
--- Require --- local Class = require("lib.hump.class") local vector = require("lib.hump.vector") local tiny = require("lib.tiny") local util = require("lib.util") --- ==== --- --- System --- local sys_Sound = Class(tiny.processingSystem()) sys_Sound.filter = tiny.requireAll("Position", "Sound") --- ==== --- --- ...
mit
HeavensSword/darkstar
scripts/zones/Northern_San_dOria/npcs/Nouveil.lua
5
1875
----------------------------------- -- Area: Northern San d'Oria -- NPC: Nouveil -- Type: General -- @zone 231 -- !pos 123 0 106 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Northern_San_dOria/TextIDs")...
gpl-3.0
mxOBS/deb-pkg_trusty_chromium-browser
third_party/skia/tools/lua/paths_agg.lua
92
1207
clips = 0 draws = 0 clipPaths = 0 drawPaths = 0 swClipPaths = 0 swDrawPaths = 0 skpsTotal = 0 skpsWithPath = 0 skpsWithSWPath = 0 dofile("/tmp/lua-output") io.write("Number of clips: ", clips, "\n"); io.write("Number of draws: ", draws, "\n"); io.write("Number of clipped paths: ", clipPaths, "\n"); io.write("Number...
bsd-3-clause
Deiz/naev
dat/ai/goddard.lua
6
1467
include("dat/ai/tpl/generic.lua") include("dat/ai/personality/patrol.lua") -- Settings mem.aggressive = true -- Create function function create () -- Credits ai.setcredits( rnd.int(ai.pilot():ship():price()/300, ai.pilot():ship():price()/70) ) -- Bribing bribe_no = { "\"You insult my honour.\"...
gpl-3.0
vmercierfr/kong
spec/integration/dao/cassandra/base_dao_spec.lua
2
24704
local spec_helper = require "spec.spec_helpers" local cassandra = require "cassandra" local constants = require "kong.constants" local DaoError = require "kong.dao.error" local utils = require "kong.tools.utils" local cjson = require "cjson" local uuid = require "uuid" -- Raw session for double-check purposes local se...
mit
HeavensSword/darkstar
scripts/zones/Ordelles_Caves/npcs/Treasure_Chest.lua
5
3900
----------------------------------- -- Area: Ordelles Caves -- NPC: Treasure Chest -- Involved In Quest: Signed In Blood and The Goblin Tailor -- @zone 193 ----------------------------------- package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyi...
gpl-3.0
Openarl/PathOfBuilding
Data/Global.lua
1
6868
-- Path of Building -- -- Module: Global -- Global constants -- colorCodes = { NORMAL = "^xC8C8C8", MAGIC = "^x8888FF", RARE = "^xFFFF77", UNIQUE = "^xAF6025", RELIC = "^x60C060", GEM = "^x1AA29B", PROPHECY = "^xB54BFF", CURRENCY = "^xAA9E82", CRAFTED = "^xB8DAF1", CUSTOM = "^x5CF0BB", SOURCE = "^x88FFFF", ...
mit
yongkangchen/slua
build/luajit-2.0.4/src/jit/dis_ppc.lua
88
20319
---------------------------------------------------------------------------- -- LuaJIT PPC disassembler module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT/X license. See Copyright Notice in luajit.h ----------------------------------------------------------------------------...
mit
cogwerkz/gUI4
gUI4/compatibility/old-api.lua
1
41688
--[[ The MIT License (MIT) Copyright (c) 2017 Lars "Goldpaw" Norberg Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, m...
mit
Deiz/naev
dat/ai/soromid.lua
4
2365
include("dat/ai/tpl/generic.lua") include("dat/ai/personality/patrol.lua") -- Settings mem.armour_run = 40 mem.armour_return = 70 mem.aggressive = true function create () -- Not too many credits. ai.setcredits( rnd.rnd(ai.pilot():ship():price()/300, ai.pilot():ship():price()/70) ) -- Get refuel chance ...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Caedarva_Mire/npcs/Runic_Portal.lua
5
2335
----------------------------------- -- Area: Caedarva Mire -- NPC: Runic Portal -- Caedarva Mire Teleporter Back to Aht Urhgan Whitegate -- !pos -264 -6 -28 79 (Dvucca) -- !pos 524 -28 -503 79 (Azouph) ----------------------------------- package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil; --------------------...
gpl-3.0
Openarl/PathOfBuilding
Export/psg.lua
2
7017
require "imlua" require "imlua_process" local function bits(int, s, e) return bit.band(bit.rshift(int, s), 2 ^ (e - s + 1) - 1) end local function toFloat(int) local s = (-1) ^ bits(int, 31, 31) local e = bits(int, 23, 30) - 127 if e == -127 then return 0 * s end local m = 1 for i = 0, 22 do m = m + bits(in...
mit
icrazyboy/-
plugins/time.lua
771
2865
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
wsmith323/hammerspoon
extensions/grid/init.lua
4
36170
--- === hs.grid === --- --- Move/resize windows within a grid --- --- The grid partitions your screens for the purposes of window management. The default layout of the grid is 3 columns by 3 rows. --- You can specify different grid layouts for different screens and/or screen resolutions. --- --- Windows that are aligne...
mit
HeavensSword/darkstar
scripts/zones/Grand_Palace_of_HuXzoi/npcs/_iya.lua
5
1464
----------------------------------- -- Area: Grand Palace of Hu'Xzoi -- NPC: Gate of the Gods -- !pos -20 0.1 -283 34 ----------------------------------- package.loaded["scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"); --...
gpl-3.0
ld-test/specl
lib/specl/main.lua
1
5605
-- Specification testing framework. -- Written by Gary V. Vaughan, 2013 -- -- Copyright (c) 2013-2015 Gary V. Vaughan -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3, or (...
gpl-3.0
Wedmer/luci
protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_map.lua
32
2615
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Copyright 2013 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local peeraddr, ip6addr local tunlink, defaultroute, metric, ttl, mtu maptype = section:taboption("general", ListValue, "type"...
apache-2.0
lu-zero/vlc
share/lua/meta/art/02_frenchtv.lua
48
2666
--[[ Gets an artwork from amazon $Id$ Copyright © 2007 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version...
gpl-2.0
HeavensSword/darkstar
scripts/globals/mobskills/pelagic_tempest.lua
33
1120
--------------------------------------------- -- Pelagic Tempest -- -- Description: Delivers an area attack that inflicts Shock and Terror. -- Type: Physical? -- Utsusemi/Blink absorb: Ignores shadows -- Range: 10' cone -- Notes: Used by Murex affiliated with lightning element. Shock effect is fairly strong (28/t...
gpl-3.0
cogwerkz/gUI4
gUI4_ActionBars/elements/petbar.lua
1
7433
local addon,ns = ... local gUI4 = GP_LibStub("GP_AceAddon-3.0"):GetAddon("gUI4", true) if not gUI4 then return end local parent = gUI4:GetModule("gUI4_ActionBars", true) if not parent then return end local module = parent:NewModule("PetBar", "GP_AceEvent-3.0") local L = GP_LibStub("GP_AceLocale-3.0"):GetLo...
mit
pd2-linux/tina
feeds/luci/contrib/luadoc/lua/luadoc/taglet/standard/tags.lua
93
5221
------------------------------------------------------------------------------- -- Handlers for several tags -- @release $Id: tags.lua,v 1.8 2007/09/05 12:39:09 tomas Exp $ ------------------------------------------------------------------------------- local luadoc = require "luadoc" local util = require "luadoc.util"...
gpl-2.0
HeavensSword/darkstar
scripts/zones/RoMaeve/npcs/qm2.lua
5
1990
----------------------------------- -- Area: Ro'Maeve -- NPC: qm2 (???) -- Involved in Mission: Bastok 7-1 -- !pos 102 -4 -114 122 and <many pos> ----------------------------------- package.loaded["scripts/zones/RoMaeve/TextIDs"] = nil; ----------------------------------- require("scripts/zones/RoMaeve/TextIDs"); requ...
gpl-3.0
abbasgh12345/s
plugins/stats.lua
866
4001
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
dlannan/webdruino
release/turbo/http_response_codes.lua
14
2456
--- Turbo.lua HTTP Response code list. -- -- Copyright John Abrahamsen 2011, 2012, 2013 < JhnAbrhmsn@gmail.com > -- -- "Permission is hereby granted, free of charge, to any person obtaining a copy of -- this software and associated documentation files (the "Software"), to deal in -- the Software without restriction, in...
mit
HeavensSword/darkstar
scripts/globals/spells/bluemagic/cold_wave.lua
5
2225
----------------------------------------- -- Spell: Cold Wave -- Deals ice damage that lowers Agility and gradually reduces HP of enemies within range -- Spell cost: 37 MP -- Monster Type: Arcana -- Spell Type: Magical (Ice) -- Blue Magic Points: 1 -- Stat Bonus: INT-1 -- Level: 52 -- Casting Time: 4 seconds -- Recast ...
gpl-3.0
shahifaqeer/my-luci-bismark-0.11
libs/nixio/docsrc/nixio.lua
151
15824
--- General POSIX IO library. module "nixio" --- Look up a hostname and service via DNS. -- @class function -- @name nixio.getaddrinfo -- @param host hostname to lookup (optional) -- @param family address family [<strong>"any"</strong>, "inet", "inet6"] -- @param service service name or port (optional) -- @return ...
apache-2.0
icrazyboy/-
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
shahifaqeer/my-luci-bismark-0.11
applications/luci-coovachilli/luasrc/model/cbi/coovachilli_network.lua
11
1695
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
apache-2.0
N3X15/VoxelSim
ODE/OpenDynamicsEngine/build/demos.lua
2
2681
-- Here are the lists of demos to build. Add/remove new -- demos here and everything else should just work local demos = { "boxstack", "buggy", "chain1", "chain2", "collision", "crash", "cylvssphere", "feedback", "friction", "gyroscopic", "heightfield", "hinge", ...
bsd-3-clause
HeavensSword/darkstar
scripts/zones/Riverne-Site_B01/npcs/Spatial_Displacement.lua
7
1055
----------------------------------- -- Area: Riverne Site #B01 -- NPC: Spacial Displacement ----------------------------------- require("scripts/zones/Riverne-Site_B01/MobIDs"); function onTrade(player,npc,trade) end; function onTrigger(player,npc) local offset = npc:getID() - RIV_B_DISPLACEMENT_OFFSET; if (...
gpl-3.0
emadni/bot-e-m-a-d-
plugins/utils.lua
24
23030
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
shaw-tao/Scraps
client.lua
1
28342
--------------------------------------------------------------------------- -- @author Julien Danjou &lt;julien@danjou.info&gt; -- @copyright 2008 Julien Danjou -- @release v3.5.1 --------------------------------------------------------------------------- -- Grab environment we need local util = require("awful.util") ...
unlicense
Wedmer/luci
applications/luci-app-clamav/luasrc/model/cbi/clamav.lua
100
6776
--[[ LuCI ClamAV module Copyright (C) 2015, Itus Networks, Inc. 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 Author: Marko Ratkaj <marko.ratkaj@sar...
apache-2.0
HeavensSword/darkstar
scripts/zones/Heavens_Tower/npcs/Rhy_Epocan.lua
5
1353
----------------------------------- -- Area: Heavens Tower -- NPC: Rhy Epocan -- Involved in Mission 3-1 -- !pos 2 -48 14 242 ----------------------------------- package.loaded["scripts/zones/Heavens_Tower/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zones/...
gpl-3.0
cogwerkz/gUI4
gUI4/libs/GP_Ace3/GP_AceGUI-3.0/widgets/AceGUIWidget-InteractiveLabel.lua
1
2924
--[[----------------------------------------------------------------------------- InteractiveLabel Widget -------------------------------------------------------------------------------]] local Type, Version = "InteractiveLabel", 20 local AceGUI = GP_LibStub and GP_LibStub("GP_AceGUI-3.0", true) if not AceGUI or (...
mit
shahifaqeer/my-luci-bismark-0.11
modules/admin-full/luasrc/controller/admin/system.lua
3
10541
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008-2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at htt...
apache-2.0
HeavensSword/darkstar
scripts/globals/items/smilodon_liver.lua
3
1083
----------------------------------------- -- ID: 5668 -- Item: Smilodon Liver -- Food Effect: 5Min, Galka only ----------------------------------------- -- Strength 5 -- Intelligence -7 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- function onIte...
gpl-3.0
devlaith/DEVLAITH-HL
plugins/withers.lua
3
2006
local BASE_URL = "http://api.openweathermap.org/data/2.5/weather" local function get_weather(location) print("Finding weather in ", location) local url = BASE_URL url = url..'?q='..location..'&APPID=eedbc05ba060c787ab0614cad1f2e12b' url = url..'&units=metric' local b, c, h = http.request(url) if c ~= 200 ...
gpl-2.0
dani-sj/komil
plugins/cpu.lua
244
1893
function run_sh(msg) name = get_name(msg) text = '' -- if config.sh_enabled == false then -- text = '!sh command is disabled' -- else -- if is_sudo(msg) then -- bash = msg.text:sub(4,-1) -- text = run_bash(bash) -- else -- text = name .. ' you...
gpl-2.0
msva/LDoc
ldoc/lang.lua
3
10438
------------ -- Language-dependent parsing of code. -- This encapsulates the different strategies needed for parsing C and Lua -- source code. local class = require 'pl.class' local utils = require 'pl.utils' local List = require 'pl.List' local tools = require 'ldoc.tools' local lexer = require 'ldoc.lexer' local qu...
mit
HeavensSword/darkstar
scripts/zones/Mhaura/npcs/Jikka-Abukka.lua
5
1198
----------------------------------- -- Area: Mhaura -- NPC: Jikka-Abukka -- Involved in Quest: Riding on the Clouds -- !pos -13 -15 58 249 ----------------------------------- package.loaded["scripts/zones/Mhaura/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Caedarva_Mire/mobs/Aynu-Kaysey.lua
7
1206
----------------------------------- -- Area: Caedarva Mire -- MOB: Aynu Kasey ----------------------------------- function onMobSpawn(mob) end; function onMobFight(mob, target) local swapTimer = mob:getLocalVar("swapTime"); if (os.time() > swapTimer) then if (mob:AnimationSub() == 1) then -- swap fr...
gpl-3.0
HeavensSword/darkstar
scripts/globals/spells/bluemagic/grand_slam.lua
33
1713
----------------------------------------- -- Spell: Grand Slam -- Delivers an area attack. Damage varies with TP -- Spell cost: 24 MP -- Monster Type: Beastmen -- Spell Type: Physical (Blunt) -- Blue Magic Points: 2 -- Stat Bonus: INT+1 -- Level: 30 -- Casting Time: 1 seconds -- Recast Time: 14.25 seconds -- Skillchain...
gpl-3.0
clofresh/nadira-story
lib/binary_heap.lua
1
7736
-- Copyright (c) 2012 Roland Yonaba --[[ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribu...
bsd-3-clause
nimaghorbani/user102
plugins/owners.lua
8
12711
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)]['settings'...
gpl-2.0
HeavensSword/darkstar
scripts/globals/items/slice_of_cockatrice_meat.lua
3
1093
----------------------------------------- -- ID: 4435 -- Item: slice_of_cockatrice_meat -- Food Effect: 5Min, Galka only ----------------------------------------- -- Strength 4 -- Intelligence -6 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- func...
gpl-3.0
Deiz/naev
dat/missions/baron/baron_baron.lua
7
12984
--[[ -- This is the first mission in the crazy baron string. --]] -- localization stuff, translators would work here lang = naev.lang() if lang == "es" then else -- default english sysname1 = "Darkstone" sysname2 = "Ingot" planetname = "Varia" title = {} text = {} osd_msg = {} tit...
gpl-3.0
HeavensSword/darkstar
scripts/zones/Xarcabard/npcs/Telepoint.lua
5
1357
----------------------------------- -- Area: Xarcabard -- NPC: Telepoint -- !pos 150.258 -21.047 -37.256 112 ----------------------------------- package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/zones/Xarcabard/TextIDs"); ...
gpl-3.0
jesboat/fbthrift
thrift/tutorial/lua/LuaClient.lua
2
2562
#!/usr/bin/env lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the --...
apache-2.0
HeavensSword/darkstar
scripts/globals/mobskills/dragon_breath.lua
34
1375
--------------------------------------------- -- Dragon Breath -- -- Description: Deals Fire damage to enemies within a fan-shaped area. -- Type: Breath -- Utsusemi/Blink absorb: Ignores shadows -- Range: Unknown cone -- Notes: Used only by Fafnir, Nidhogg, Cynoprosopi, and Wyrm. Because of the high damage output...
gpl-3.0