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 |
|---|---|---|---|---|---|
xiezhen11111/rpgDemo | cocos2d/plugin/luabindings/auto/api/AgentManager.lua | 146 | 1798 |
--------------------------------
-- @module AgentManager
-- @parent_module plugin
--------------------------------
--
-- @function [parent=#AgentManager] getSocialPlugin
-- @param self
-- @return plugin::ProtocolSocial#plugin::ProtocolSocial ret (return value: cc.plugin::ProtocolSocial)
-------------------... | apache-2.0 |
sevenbot/etehadseven | plugins/vote.lua | 615 | 2128 | do
local _file_votes = './data/votes.lua'
function read_file_votes ()
local f = io.open(_file_votes, "r+")
if f == nil then
print ('Created voting file '.._file_votes)
serialize_to_file({}, _file_votes)
else
print ('Values loaded: '.._file_votes)
f:close()
end
return loadfile (_file_votes)()... | gpl-2.0 |
MinetestForFun/server-minetestforfun-creative | mods/random_messages/init.lua | 1 | 4068 | --[[
RandomMessages mod by arsdragonfly.
arsdragonfly@gmail.com
6/19/2013
--]]
--Time between two subsequent messages.
local MESSAGE_INTERVAL = 0
math.randomseed(os.time())
random_messages = {}
random_messages.messages = {} --This table contains all messages.
function table.count( t )
local i = 0
for k in pairs( t... | unlicense |
rpetit3/darkstar | scripts/globals/mobskills/Numbshroom.lua | 50 | 1146 | ---------------------------------------------------
-- Queasyshroom
-- Additional effect: Fires a mushroom cap, dealing damage to a single target. Additional effect: paralysis.
-- Range is 14.7 yalms.
-- Piercing damage Ranged Attack.
-- Secondary modifiers: INT: 20%.
---------------------------------------------------... | gpl-3.0 |
sysuyedong/Renderer | Renderer/lua/Light.lua | 1 | 2929 | LightSample = {}
LightSample.__index = LightSample
function LightSample.new(L, EL)
local self = {}
self.L = L
self.EL = EL
setmetatable(self, LightSample)
return self
end
LightSample.Zero = LightSample.new(Vector.Zero, Color.Black)
-- 方向光源
DirectionLight = {}
DirectionLight.__index = DirectionLight
function Di... | mit |
open3dengineering/laydrop-firmware | src/test/test_urlcode.lua | 2 | 1612 | -- TODO: also test malformed query strings
local urlcode = require("util.urlcode")
local M = {
_is_test = true,
_skip = {},
_wifibox_only = {}
}
-- NOTE: the previous approach using #t1 and #t2 was too naive and only worked for tables with contiguous ranges of numeric keys.
local function compareTables(t1, t2)
lo... | gpl-2.0 |
peterbarker/ardupilot | libraries/AP_Scripting/examples/mission-edit-demo.lua | 18 | 9732 | -- mission editing demo lua script.
-- by Buzz 2020
current_pos = nil
home = 0
a = {}
demostage = 0
eventcounter = 0
function update () -- periodic function that will be called
current_pos = ahrs:get_location()
-- adds new/extra mission item at the end by copying the last one and modifying it
-- get number o... | gpl-3.0 |
wez2020/ss | plugins/spammer.lua | 6 | 75149 | do
function run(msg, matches)
return "".. [[
... | gpl-2.0 |
martinrotter/textilosaurus | src/libtextosaurus/3rd-party/scintilla-lt/lexlua/tex.lua | 2 | 1091 | -- Copyright 2006-2019 Mitchell mitchell.att.foicica.com. See License.txt.
-- Plain TeX LPeg lexer.
-- Modified by Robert Gieseke.
local lexer = require('lexer')
local token, word_match = lexer.token, lexer.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local lex = lexer.new('tex')
-- Whitespace.
lex:add_rule('wh... | gpl-3.0 |
dwmw2/luci | libs/luci-lib-nixio/docsrc/CHANGELOG.lua | 68 | 1043 | --- Changes and improvements.
module "nixio.CHANGELOG"
--- Service Release.
-- <ul>
-- <li>Added getifaddrs() function.</li>
-- <li>Added getsockopt(), setsockopt(), getsockname() and getpeername()
-- directly to TLS-socket objects unifying the socket interface.</li>
-- <li>Added support for CyaSSL as cryptographical ... | apache-2.0 |
vfedoroff/prosody-modules | mod_statistics/top.lua | 32 | 6810 | module("prosodytop", package.seeall);
local array = require "util.array";
local it = require "util.iterators";
local curses = require "curses";
local stats = require "stats".stats;
local time = require "socket".gettime;
local sessions_idle_after = 60;
local stanza_names = {"message", "presence", "iq"};
local top = {... | mit |
tonkah/Browser | lib/lousy/widget/tablist.lua | 8 | 3277 | -------------------------------------------------------------
-- @author Mason Larobina <mason.larobina@gmail.com> --
-- @copyright 2010 Mason Larobina --
-------------------------------------------------------------
-- Grab environment we need
local assert = assert
local setmetatable = ... | gpl-3.0 |
dwmw2/luci | build/luadoc/doc.lua | 78 | 3419 | #!/usr/bin/env lua
-------------------------------------------------------------------------------
-- LuaDoc launcher.
-- @release $Id: luadoc.lua.in,v 1.1 2008/02/17 06:42:51 jasonsantos Exp $
-------------------------------------------------------------------------------
--local source = debug.getinfo(1).source or "... | apache-2.0 |
ahosein243243/teleseed | 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 |
rpetit3/darkstar | scripts/zones/Port_Jeuno/npcs/Veujaie.lua | 13 | 1043 | ----------------------------------
-- Area: Port Jeuno
-- NPC: Veujaie
-- Type: Item Deliverer
-- @zone: 246
-- @pos -20.349 7.999 -2.888
--
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
require("scripts/zones/Port_Jeuno/TextIDs");
---------------------------... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/weaponskills/blade_kamu.lua | 19 | 2081 | -----------------------------------
-- Blade Kamu
-- Katana weapon skill
-- Skill Level: N/A
-- Lowers target's params.accuracy. Duration of effect varies with TP. Nagi: Aftermath effect varies with TP.
-- Effect lasts 60 seconds @ 100 TP, 90 seconds @ 200 TP, and 120 seconds @ 300 TP
-- Available only after completing... | gpl-3.0 |
vlapsley/outback | mods/outback/nodes_misc.lua | 1 | 7705 | --[[
Miscellaneous nodes
--]]
minetest.register_node("outback:salt", {
description = "Salt",
drawtype = "plantlike",
visual_scale = 0.6,
tiles = {"ob_salt.png"},
inventory_image = "ob_salt.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
groups = {fleshy = 3, dig_immediat... | lgpl-2.1 |
rpetit3/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Nadee_Periyaha.lua | 13 | 1456 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Nadee Periyaha
-- Standard Info NPC
-- @pos -10.802 0.000 -1.198 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
re... | gpl-3.0 |
schidler/ionic-luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/admin.lua | 57 | 3150 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
m = Map("system", translate("Router Password"),
translate("Changes the administrator password for accessing the device"))
s = ... | apache-2.0 |
rpetit3/darkstar | scripts/zones/Dynamis-Windurst/Zone.lua | 21 | 2390 | -----------------------------------
--
-- Zone: Dynamis-Windurst
--
-----------------------------------
package.loaded["scripts/zones/Dynamis-Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Dynamis-Windurst/TextIDs");
--------------------------... | gpl-3.0 |
nokizorque/ucd | guieditor/client/mover.lua | 2 | 5568 | --[[--------------------------------------------------
GUI Editor
client
mover.lua
manage the moving of elements within the editor
--]]--------------------------------------------------
Mover = {
items = {},
state = "up",
divideValue = 0,
}
addEventHandler("onClientResourceStart", resourceRoot,
function... | mit |
rpetit3/darkstar | scripts/zones/Temenos/npcs/Scanning_Device.lua | 13 | 1807 | -----------------------------------
-- Area: Temenos
-- NPC: Scanning_Device
-- @pos
-----------------------------------
require("scripts/globals/limbus");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
--------------------------... | gpl-3.0 |
vfedoroff/prosody-modules | mod_stanza_counter/mod_stanza_counter.lua | 32 | 3033 | -- (C) 2011, Marco Cirillo (LW.Org)
-- General Stanzas' Counter.
local jid_bare = require "util.jid".bare
-- Setup, Init functions.
-- initialize function counter table on the global object on start
local function init_counter()
prosody.stanza_counter = {
iq = { incoming=0, outgoing=0 },
message = { incoming=0, ... | mit |
rpetit3/darkstar | scripts/zones/Windurst_Woods/TextIDs.lua | 6 | 5690 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6538; -- Come back after sorting your inventory.
ITEM_OBTAINED = 6543; -- Obtained: <<<Unknown Parameter (Type: 80) 1>>><<<Possible Special Code: 01>>><<<Possible Special Code: 05>>>
GIL_OBTAINED = 6544; -- O... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/The_Garden_of_RuHmet/npcs/_0zs.lua | 13 | 1229 | -----------------------------------
-- Area: The_Garden_of_RuHmet
-- NPC: _0zs
-----------------------------------
package.loaded["scripts/zones/The_Garden_of_RuHmet/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/The_Garden_of_RuHmet/TextIDs");
------... | gpl-3.0 |
padrinoo1/geek | plugins/spammer.lua | 13 | 75165 | local function run(msg)
if msg.text == "spam"
return "".. [[
... | gpl-2.0 |
iRGBit/Dato-Core | src/unity/python/graphlab/lua/pl/types.lua | 26 | 4765 | ---- Dealing with Detailed Type Information
-- Dependencies `pl.utils`
-- @module pl.types
local utils = require 'pl.utils'
local types = {}
--- is the object either a function or a callable object?.
-- @param obj Object to check.
function types.is_callable (obj)
return type(obj) == 'function' or getm... | agpl-3.0 |
rpetit3/darkstar | scripts/zones/Northern_San_dOria/npcs/Pikiki.lua | 13 | 1409 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Pikiki
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require... | gpl-3.0 |
MinetestForFun/server-minetestforfun-creative | mods/cozy/init.lua | 9 | 1888 | minetest.register_globalstep(function(dtime)
local players = minetest.get_connected_players()
for i=1, #players do
local name = players[i]:get_player_name()
if default.player_attached[name] and not players[i]:get_attach() and
(players[i]:get_player_control().up == true or
players[i]:get_player_control().d... | unlicense |
rpetit3/darkstar | scripts/zones/Sea_Serpent_Grotto/Zone.lua | 19 | 1853 | -----------------------------------
--
-- Zone: Sea_Serpent_Grotto (176)
--
-----------------------------------
package.loaded["scripts/zones/Sea_Serpent_Grotto/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Sea_Serpent_... | gpl-3.0 |
rpetit3/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 |
tvandijck/premake-core | tests/oven/test_filtering.lua | 15 | 2830 | --
-- tests/oven/test_filtering.lua
-- Test the project object configuration accessor.
-- Copyright (c) 2011-2014 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("oven_filtering")
--
-- Setup
--
local wks, prj, cfg
function suite.setup()
wks = test.createWorkspace()
end... | bsd-3-clause |
rpetit3/darkstar | scripts/zones/Upper_Jeuno/TextIDs.lua | 15 | 1699 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6538; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6543; -- Obtained: <item>.
GIL_OBTAINED = 6544; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6546; -- Obtained... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Cape_Teriggan/mobs/Greater_Manticore.lua | 14 | 1046 | -----------------------------------
-- Area: Cape Teriggan
-- MOB: Greater Manticore
-- Note: Place Holder for Frostmane
-----------------------------------
require("scripts/zones/Cape_Teriggan/MobIDs");
require("scripts/globals/fieldsofvalor");
-----------------------------------
-- onMobDeath
---------------------... | gpl-3.0 |
spacebuild/spacebuild | lua/entities/generator_ramscoop/init.lua | 5 | 3559 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include('shared.lua')
function ENT:Initialize()
self.BaseClass.Initialize(self)
self.Active = 0
self.damaged = 0
self.sequence = -1
self.thinkcount = 0
self.NscoopSpeed = 0
if not (WireAddon == nil) then
self.WireDebugName = se... | apache-2.0 |
lukego/snabbswitch | lib/ljsyscall/syscall/netbsd/version.lua | 24 | 1319 | -- detect netbsd version
local abi = require "syscall.abi"
local ffi = require "ffi"
require "syscall.ffitypes"
local version, major, minor
local function inlibc_fn(k) return ffi.C[k] end
-- NetBSD ABI version
-- TODO if running rump on NetBSD the version detection is a bit flaky if the host and rump differ
-- no... | apache-2.0 |
tommo/gii | template/game/lib/character/TrackEffect.lua | 2 | 4525 | module 'character'
local function fixpath(p)
p=string.gsub(p,'\\','/')
return p
end
local function stripExt(p)
return string.gsub( p, '%..*$', '' )
end
local function stripDir(p)
p=fixpath(p)
return string.match(p, "[^\\/]+$")
end
--------------------------------------------------------------------
CLASS: Even... | mit |
matinbot/telerobot | 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 |
safavi1381/Extreme-Bot | 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 |
masoudre11/caffebot | 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 |
AMIRUJK/yapop | 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 |
nokizorque/ucd | UCDadmin/punishments/punishments_c.lua | 1 | 5973 | local customTimeOnes = {punish.edit["min"], punish.edit["hour"], punish.edit["day"], punish.radiobutton[1], punish.radiobutton[2], punish.radiobutton[3]}
function processPunish()
local duration, timeMultiplier
if (guiCheckBoxGetSelected(punish.checkbox["custom_duration"])) then
if (guiRadioButtonGetSelected(punish... | mit |
dmccuskey/dmc-objects | examples/Corona-Graphics-Fishies/dmc_corona/lib/dmc_lua/lua_error.lua | 46 | 3628 | --====================================================================--
-- lua_error.lua
--
-- Documentation:
-- * http://github.com/dmccuskey/lua-error
--====================================================================--
--[[
The MIT License (MIT)
Copyright (C) 2014-2015 David McCuskey. All Rights Reserved.
P... | mit |
tvandijck/premake-core | modules/self-test/self-test.lua | 8 | 1739 | ---
-- self-test/self-test.lua
--
-- An automated test framework for Premake and its add-on modules.
--
-- Author Jason Perkins
-- Copyright (c) 2008-2016 Jason Perkins and the Premake project.
---
local p = premake
p.modules.self_test = {}
local m = p.modules.self_test
m._VERSION = p._VERSION
newaction {
... | bsd-3-clause |
rpetit3/darkstar | scripts/globals/mobskills/Purulent_ooze.lua | 31 | 1198 | ---------------------------------------------------
-- Purulent Ooze
-- Family: Slugs
-- Description: Deals Water damage in a fan-shaped area of effect. Additional effect: Bio and Max HP Down
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: Cone
-- Notes:
-------------------------------------... | gpl-3.0 |
sysuyedong/Renderer | Renderer/lua/main.lua | 1 | 3323 | require ("lua.Camera")
require ("lua.Color")
require ("lua.Material")
require ("lua.Plane")
require ("lua.Ray")
require ("lua.Sphere")
require ("lua.Union")
require ("lua.Vector")
require ("lua.Light")
WindowWidth = WindowWidth or 256
WindowHeight = WindowHeight or 256
window_width = WindowWidth
window_height = Windo... | mit |
omidtarh/testbot | plugins/steam.lua | 645 | 2117 | -- See https://wiki.teamfortress.com/wiki/User:RJackson/StorefrontAPI
do
local BASE_URL = 'http://store.steampowered.com/api/appdetails/'
local DESC_LENTH = 200
local function unescape(str)
str = string.gsub( str, '<', '<' )
str = string.gsub( str, '>', '>' )
str = string.gsub( str, '"', '"' )
str... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Xarcabard/npcs/Jeantelas_RK.lua | 13 | 3326 | -----------------------------------
-- Area: Xarcabard
-- NPC: Jeantelas, R.K.
-- Type: Outpost Conquest Guards
-- @pos 207.548 -24.795 -203.694 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
req... | gpl-3.0 |
lexa/awesome | lib/awful/widget/common.lua | 6 | 3530 | ---------------------------------------------------------------------------
-- @author Julien Danjou <julien@danjou.info>
-- @copyright 2008-2009 Julien Danjou
-- @release @AWESOME_VERSION@
-- @classmod awful.widget.common
---------------------------------------------------------------------------
-- Grab enviro... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Windurst_Woods/npcs/Aja-Panja.lua | 13 | 1053 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Aja-Panja
-- Type: Standard NPC
-- @zone: 241
-- @pos -7.251 -6.55 -134.127
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Dynamis-Beaucedine/mobs/Vanguard_Eye.lua | 23 | 1958 | -----------------------------------
-- Area: Dynamis Beaucedine
-- NPC: Vznguard_Eye
-- Map Position: http://images1.wikia.nocookie.net/__cb20090312005233/ffxi/images/thumb/b/b6/Bea.jpg/375px-Bea.jpg
-----------------------------------
package.loaded["scripts/zones/Dynamis-Beaucedine/TextIDs"] = nil;
-----------------... | gpl-3.0 |
schidler/ionic-luci | applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua | 43 | 3728 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local sys = require "luci.sys"
local uci = require "luci.model.uci".cursor()
local testfullps = luci.sys.exec("ps --help 2>&1 | grep BusyBox") --check which ps do we have
local pss... | apache-2.0 |
MHK-BOT/copy | plugins/Groups.lua | 22 | 2731 | local function chat_list(msg)
local data = load_data(_config.moderation.data)
local groups = 'groups'
if not data[tostring(groups)] then
return 'No groups at the moment'
end
local message = 'List of your bot Groups:\n\n '
for k,v in pairs(data[tostring(groups)... | gpl-2.0 |
rpetit3/darkstar | scripts/globals/spells/sleep.lua | 27 | 1086 | -----------------------------------------
-- Spell: Sleep I
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)... | gpl-3.0 |
MinetestForFun/server-minetestforfun-creative | mods/sea/seastone/init.lua | 8 | 5724 | -- NODES
minetest.register_node("seastone:seastone", {
description = "Seastone",
tiles = {"seastone_seastone.png"},
is_ground_content = true,
groups = {cracky=3, stone=1},
drop = 'seacobble:seacobble',
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("seastone:seastone_cyan", {
descript... | unlicense |
rpetit3/darkstar | scripts/zones/Talacca_Cove/npcs/_1l0.lua | 18 | 1586 | -----------------------------------
-- Area: Talacca_Cove
-- NPC: rock slab (corsair job flag quest)
--
-----------------------------------
package.loaded["scripts/zones/Talacca_Cove/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Talacca_Cove/TextIDs");
require("scripts/globals/keyitems"... | gpl-3.0 |
beko99/DEVBEKO | libs/XMLElement.lua | 569 | 4025 | -- Copyright 2009 Leo Ponomarev. Distributed under the BSD Licence.
-- updated for module-free world of lua 5.3 on April 2 2015
-- Not documented at all, but not interesting enough to warrant documentation anyway.
local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, typ... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Rabao/npcs/Irmilant.lua | 13 | 3922 | -----------------------------------
-- Area: Rabao
-- NPC: Irmilant
-- Starts and Ends Quests: The Immortal Lu Shang and Indomitable Spirit
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
require("scripts/globals/titles");
require("scripts/globals/settings");
require("scripts/g... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/abilities/divine_waltz_ii.lua | 19 | 2332 | -----------------------------------
-- Ability: Divine Waltz II
-- Restores the HP of all party members within a small radius.
-- Obtained: Dancer Level 78
-- TP Required: 80%
-- Recast Time: 00:20
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
------------... | gpl-3.0 |
slaubenberger/learn2love | demo004/libraries/LoveFrames/objects/internal/closebutton.lua | 6 | 3492 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2013 Kenny Shields --
--]]------------------------------------------------
-- closebutton class
local newobject = loveframes.NewObject("closebutton", "loveframes_object_closebutton", true)
--[[----------... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Quicksand_Caves/npcs/_5s7.lua | 13 | 1253 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Ornate Door
-- Door blocked by Weight system
-- @pos -259 0 745 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Caves/TextIDs... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Bastok_Markets/npcs/Offa.lua | 13 | 1307 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Offa
-- Type: Quest NPC
-- @pos -281.628 -16.971 -140.607 235
--
-- Auto-Script: Requires Verification. Verified standard dialog - thrydwolf 12/18/2011
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = n... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/spells/anemohelix.lua | 26 | 1689 | --------------------------------------
-- Spell: Anemohelix
-- Deals wind damage that gradually reduces
-- a target's HP. Damage dealt is greatly affected by the weather.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/ma... | gpl-3.0 |
martinrotter/textilosaurus | src/libtextosaurus/3rd-party/scintilla-lt/lexlua/fish.lua | 2 | 2089 | -- Copyright 2015-2019 Jason Schindler. See License.txt.
-- Fish (http://fishshell.com/) script LPeg lexer.
local lexer = require('lexer')
local token, word_match = lexer.token, lexer.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local lex = lexer.new('fish')
-- Whitespace.
lex:add_rule('whitespace', token(lexer... | gpl-3.0 |
gligneul/FastLua | luatests/coroutine.lua | 1 | 22337 | -- $Id: coroutine.lua,v 1.40 2015/10/12 16:38:57 roberto Exp $
print "testing coroutines"
local debug = require'debug'
local f
local main, ismain = coroutine.running()
assert(type(main) == "thread" and ismain)
assert(not coroutine.resume(main))
assert(not coroutine.isyieldable())
assert(not pcall(coroutine.yield))
... | mit |
lexa/awesome | lib/awful/layout/suit/max.lua | 11 | 1156 | ---------------------------------------------------------------------------
--- Maximized and fullscreen layouts module for awful
--
-- @author Julien Danjou <julien@danjou.info>
-- @copyright 2008 Julien Danjou
-- @release @AWESOME_VERSION@
-- @module awful.layout.suit.max
---------------------------------------... | gpl-2.0 |
MHK-BOT/copy | plugins/Sticker_Maker.lua | 2 | 3281 | local function convert_to_sticker(msg, success, result)
local receiver = get_receiver(msg)
local file = 'file/sticker.webp'
os.rename(result, file)
send_document(receiver, file, ok_cb, false)
end
local function convert_to_photo(msg, success, result)
local receiver = get_receiver(msg)
local file = 'file/stconv.pn... | gpl-2.0 |
tommo/gii | template/game/lib/character/TrackFmodSound.lua | 2 | 1641 | module 'character'
local function fixpath(p)
p=string.gsub(p,'\\','/')
return p
end
local function stripExt(p)
return string.gsub( p, '%..*$', '' )
end
local function stripDir(p)
p=fixpath(p)
return string.match(p, "[^\\/]+$")
end
--------------------------------------------------------------------
CLASS: Even... | mit |
rpetit3/darkstar | scripts/zones/Quicksand_Caves/npcs/Grounds_Tome.lua | 30 | 1100 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/eggplant.lua | 18 | 1182 | -----------------------------------------
-- ID: 4388
-- Item: eggplant
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility 3
-- Vitality -5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
----------... | gpl-3.0 |
beko99/DEVBEKO | 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 |
sevenbot/etehadseven | 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 |
rpetit3/darkstar | scripts/zones/Castle_Oztroja/npcs/_47x.lua | 13 | 1269 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _47x (Handle)
-- Notes: Opens door _477
-- @pos -99 -71 -41 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Castle_Oztroja/TextIDs");
req... | gpl-3.0 |
schidler/ionic-luci | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/splash_leases.lua | 68 | 1118 | -- Copyright 2013 Freifunk Augsburg / Michael Wendland <michael@michiwend.com>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.splash_leases", package.seeall)
function rrdargs( graph, plugin, plugin_instance, dtype )
... | apache-2.0 |
dwmw2/luci | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/splash_leases.lua | 68 | 1118 | -- Copyright 2013 Freifunk Augsburg / Michael Wendland <michael@michiwend.com>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.splash_leases", package.seeall)
function rrdargs( graph, plugin, plugin_instance, dtype )
... | apache-2.0 |
lexa/awesome | lib/naughty/dbus.lua | 2 | 9831 | ---------------------------------------------------------------------------
-- DBUS/Notification support
-- Notify
--
-- @author koniu <gkusnierz@gmail.com>
-- @copyright 2008 koniu
-- @release @AWESOME_VERSION@
-- @module naughty.dbus
---------------------------------------------------------------------------
a... | gpl-2.0 |
ddouglascarr/rooset | lfframework/libraries/mondelefant/mondelefant_native.autodoc.lua | 1 | 12828 |
--[[--
db_handle, -- database handle, or nil in case of error
errmsg, -- error message
db_error = -- error object
mondelefant.connect{
conninfo = conninfo, -- string passed directly to PostgreSQL's libpq
host ... | mit |
rpetit3/darkstar | scripts/zones/Hall_of_Transference/npcs/_0e4.lua | 22 | 1715 | -----------------------------------
-- Area: Hall of Transference
-- NPC: Large Apparatus (Right) - Holla
-- @pos -242.301 -1.849 269.867 14
-----------------------------------
package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Hall_of_Transfe... | gpl-3.0 |
nokizorque/ucd | UCDaccounts/exports/s_exports.lua | 1 | 1507 | function getAllLoggedInPlayers()
outputDebugString(sourceResource.name.." is using getAllLoggedInPlayers")
return getLoggedInPlayers()
end
function getLoggedInPlayers()
local loggedIn = {}
for _, plr in ipairs(Element.getAllByType("player")) do
if (not plr.account.guest) then
table.insert(loggedIn, plr)
end
... | mit |
tvandijck/premake-core | src/base/string.lua | 16 | 1838 | --
-- string.lua
-- Additions to Lua's built-in string functions.
-- Copyright (c) 2002-2013 Jason Perkins and the Premake project
--
--
-- Capitalize the first letter of the string.
--
function string.capitalized(self)
return self:gsub("^%l", string.upper)
end
--
-- Returns true if the string has a match for... | bsd-3-clause |
schidler/ionic-luci | applications/luci-app-firewall/luasrc/model/cbi/firewall/rule-details.lua | 44 | 7815 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2010-2012 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local sys = require "luci.sys"
local utl = require "luci.util"
local dsp = require "luci.dispatcher"
local nxo = require "nixio"
local ft = require "luci... | apache-2.0 |
dkogan/notion | contrib/scripts/legacy/nest_ws.lua | 3 | 2133 | -- Authors: Matthieu Moy <matthieu.moy@imag.fr>, Etan Reisner <deryni@gmail.com>
-- License: Public domain
-- Last Changed: 2006-07-03
--
-- Nest workspaces inside Frames.
-- Matthieu Moy <Matthieu.Moy@imag.fr>, February 15th 2005.
-- Made into a function (and to only show valid workspace types) by Etan Reisner <deryni... | lgpl-2.1 |
schidler/ionic-luci | modules/luci-base/luasrc/http/protocol/mime.lua | 68 | 2161 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
-- This class provides functions to guess mime types from file extensions and
-- vice versa.
module("luci.http.protocol.mime", package.seeall)
require("luci.util")
MIME_TYPES = {
["txt"]... | apache-2.0 |
ManStache/PokeBotBad | BizHawk-1.11.6/Lua/socket/url.lua | 148 | 10529 | -----------------------------------------------------------------------------
-- URI parsing, composition and relative URL resolution
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: url.lua,v 1.38 2006/04/03 04:45:42 diego Exp $
-----------------------------------------------------------------------------
... | mit |
Aminkavari/xXD4RKXxBot | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
masoudre11/caffebot | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
yaser1382/BDReborn | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Lufaise_Meadows/npcs/Yoram_IM.lua | 13 | 3323 | -----------------------------------
-- Area: Lufaise Meadows
-- NPC: Yoram, I.M.
-- Outpost Conquest Guards
-- @pos -542.418 -7.124 -53.521 24
-----------------------------------
package.loaded["scripts/zones/Lufaise_Meadows/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
req... | gpl-3.0 |
nokizorque/ucd | UCDvehicleShops/tables.lua | 1 | 8963 | markers =
{
-- Low End
{x = 2131.8516, y = -1149.7815, z = 24.2298, r = 0, t = "Low End", p = Vector3(2125.0593, -1136.9047, 25.3666), c = Vector3(2121.704, -1121.803, 29.597)}, -- Jefferson
{x = 1658.4023, y = 2199.8137, z = 10.8203, r = 270, t = "Low End", p = Vector3(1658.473, 2192.307, 10.616), c = Vector3(1651... | mit |
MinetestForFun/server-minetestforfun-creative | mods/snow/src/sled.lua | 9 | 5998 | --[[
--=================
--======================================
LazyJ's Fork of Splizard's "Snow" Mod
by LazyJ
version: Umpteen and 7/5ths something or another.
2014_04_12
--======================================
--=================
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
THE LIST OF CHANGES I'VE MADE
~~~~~~~~~~~~~~~~~~... | unlicense |
peterbarker/ardupilot | libraries/AP_Scripting/examples/plane-wind-fs.lua | 9 | 15565 | -- Adds a smart failsafe that accounts for how far the plane is from home
-- the average battery consumption, and the wind to decide when to failsafe
--
-- CAUTION: This script only works for Plane
-- store the batt info as { instance, filtered, capacity, margin_mah }
-- instance: the battery monitor instance (zero in... | gpl-3.0 |
disslove7777/Mj.Dl-Bot | plugins/sudo.lua | 359 | 1878 | 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 .. ' yo... | gpl-2.0 |
nokizorque/ucd | [shaders]/shader_skidmarks/c_skidmarks.lua | 1 | 4095 | --
-- c_skidmarks.lua
--
g_Settings = {}
local myShader
local Settings = {}
Settings.var = {}
-----------------------------------------------------------------------------
-- Client start
-----------------------------------------------------------------------------
addEventHandler( "onClientResourceStart", resourceR... | mit |
dwmw2/luci | protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pptp.lua | 45 | 3212 | -- Copyright 2011-2012 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local server, username, password
local defaultroute, metric, peerdns, dns,
keepalive_failure, keepalive_interval, demand, mtu
server = section:taboption("general", Value, "... | apache-2.0 |
rpetit3/darkstar | scripts/zones/Bastok_Markets_[S]/npcs/Engelhart.lua | 31 | 3561 | -----------------------------------
-- Area: Bastok Markets (S)
-- NPC: Engelhart
-- Quest NPC
-- pos -79 -4 -125
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Markets_[S]/TextIDs");
require("scrip... | gpl-3.0 |
dkogan/notion | contrib/statusd/statusd_iwinfo.lua | 6 | 2844 | -- Authors: Relu Patrascu <ikoflexer@gmail.com>
-- License: LGPL, version 2.1 or later
-- Last Changed: 2004-11-17
--
-- statusd_iwinfo.lua
--
-- Copyright (c) Relu Patrascu 2004.
--
-- Ion is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License as publishe... | lgpl-2.1 |
tvandijck/premake-core | modules/vstudio/tests/cs2005/test_files.lua | 14 | 9178 | --
-- tests/actions/vstudio/cs2005/test_files.lua
-- Validate generation of <Files/> block in Visual Studio 2005 .csproj
-- Copyright (c) 2009-2014 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vstudio_cs2005_files")
local dn2005 = p.vstudio.dotnetbase
--
-- Setup
--
loc... | bsd-3-clause |
iRGBit/Dato-Core | src/unity/python/graphlab/lua/pl/MultiMap.lua | 36 | 1458 | --- MultiMap, a Map which has multiple values per key.
--
-- Dependencies: `pl.utils`, `pl.class`, `pl.tablex`, `pl.List`
-- @classmod pl.MultiMap
local classes = require 'pl.class'
local tablex = require 'pl.tablex'
local utils = require 'pl.utils'
local List = require 'pl.List'
local index_by,tsort,concat = tablex.... | agpl-3.0 |
rpetit3/darkstar | scripts/zones/Arrapago_Reef/npcs/qm2.lua | 30 | 1330 | -----------------------------------
-- Area: Arrapago Reef
-- NPC: ??? (Spawn Velionis(ZNM T1))
-- @pos 311 -3 27 54
-----------------------------------
package.loaded["scripts/zones/Arrapago_Reef/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Arrapago_Reef/TextIDs");
require("scripts/glob... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/AlTaieu/npcs/qm1.lua | 18 | 1465 | -----------------------------------
-- Area: Al'Taieu
-- NPC: ??? (Jailer of Hope Spawn)
-- Allows players to spawn the Jailer of Hope by trading the First Virtue, Deed of Placidity and HQ Phuabo Organ to a ???.
-- @pos -693 -1 -62 33
-----------------------------------
package.loaded["scripts/zones/AlTaieu/TextIDs"] ... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.