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 |
|---|---|---|---|---|---|
chrisdugne/ludum-dare-36 | src/components/Background.lua | 1 | 1247 |
--------------------------------------------------------------------------------
local Background = {}
--------------------------------------------------------------------------------
function Background:darken()
self:setDarkBGAplha(1)
end
function Background:lighten()
self:setDarkBGAplha(0)
end
function ... | bsd-3-clause |
weiDDD/WSSParticleSystem | cocos2d/external/lua/luasocket/script/socket/http.lua | 1 | 12697 | -----------------------------------------------------------------------------
-- HTTP/1.1 client support for the Lua language.
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
---------------------------------------------------------------... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/weapons/1H/ryykBlade.lua | 1 | 2401 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
sk89q/Photocopy | lua/includes/modules/photocopy.lua | 1 | 44265 | -- Photocopy
-- Copyright (c) 2010 sk89q <http://www.sk89q.com>
--
-- 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 ver... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/naboo/citys/emperorRetreat.lua | 1 | 9818 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | lgpl-3.0 |
weiDDD/WSSParticleSystem | cocos2d/external/lua/luasocket/script/socket/tp.lua | 1 | 3753 | -----------------------------------------------------------------------------
-- Unified SMTP/FTP subsystem
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- ... | apache-2.0 |
Andrettin/Wyrmsun | scripts/species/mammal/perissodactyl/rhinocerotid.lua | 1 | 3972 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/lair/salt_mynock/objects.lua | 1 | 6064 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/entities/weapons/weapon_zs_boardpack/cl_init.lua | 1 | 2564 | include("shared.lua")
SWEP.PrintName = "Junk Pack"
SWEP.Description = "It's simply a pack of wooden junk kept together with some duct tape.\nVery useful for making barricades when no materials are around.\nNeeds something like a hammer and nails to keep the things in place."
SWEP.ViewModelFOV = 45
SWEP.ViewModelFlip =... | gpl-2.0 |
nullifye/tg-bot-pi | tg_bot/utils.lua | 1 | 4359 | function vardump(value, depth, key)
local linePrefix = ""
local spaces = ""
if key ~= nil then
linePrefix = "["..key.."] = "
end
if depth == nil then
depth = 0
else
depth = depth + 1
for i=1, depth do spaces = spaces .. " " end
end
if type(value) == 'table' then
m... | apache-2.0 |
perusio/lua-uri | lunit-console.lua | 20 | 3449 |
--[[--------------------------------------------------------------------------
This file is part of lunit 0.5.
For Details about lunit look at: http://www.mroth.net/lunit/
Author: Michael Roth <mroth@nessie.de>
Copyright (c) 2006-2008 Michael Roth <mroth@nessie.de>
Permission is hereby granted... | mit |
zhityer/zhityer | plugins/google.lua | 722 | 1037 | local function googlethat(query)
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&"
local parameters = "q=".. (URL.escape(query) or "")
-- Do the request
local res, code = https.request(api..parameters)
if code ~=200 then return nil end
local data = json:decode(res)
local r... | gpl-2.0 |
GoogleFrog/Zero-K | LuaUI/utility_two.lua | 17 | 1410 | -- Utility function for ZK
-- Will try to read LUA content from target file and create BACKUP if have a successful read (in user's Spring folder) OR DELETE them if have a failure read
-- This prevent corrupted file from being used.
-- Note: currently only a "table" is considered a valid file
function CheckLUAFileAndBa... | gpl-2.0 |
TheSuperAlaa/TheSuperBot | tg/test.lua | 210 | 2571 | started = 0
our_id = 0
function vardump(value, depth, key)
local linePrefix = ""
local spaces = ""
if key ~= nil then
linePrefix = "["..key.."] = "
end
if depth == nil then
depth = 0
else
depth = depth + 1
for i=1, depth do spaces = spaces .. " " end
end
if type(value) == 'tab... | gpl-2.0 |
Invertika/data | scripts/maps/ow-p0003-o0000-o0000.lua | 1 | 1395 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
StaymanHou/Hacking-the-Pentest-Tutor-Game | lib/LoveFrames/objects/multichoice.lua | 7 | 10857 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- multichoice object
local newobject = loveframes.NewObject("multichoice", "loveframes_object_multichoice", true)
--[[----... | apache-2.0 |
USABOT6/usabot | plugins/plugins.lua | 325 | 6164 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
Invertika/data | scripts/maps/ow-n0013-p0023-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
Invertika/data | scripts/maps/ow-n0015-p0007-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
tehran980/Telehsn | plugins/btc.lua | 289 | 1375 | -- See https://bitcoinaverage.com/api
local function getBTCX(amount,currency)
local base_url = 'https://api.bitcoinaverage.com/ticker/global/'
-- Do request on bitcoinaverage, the final / is critical!
local res,code = https.request(base_url..currency.."/")
if code ~= 200 then return nil end
local data = j... | gpl-2.0 |
GoogleFrog/Zero-K | units/corsumo.lua | 1 | 15954 | unitDef = {
unitname = [[corsumo]],
name = [[Sumo]],
description = [[Heavy Assault Jumper - On to Repulse, Off to Attract]],
acceleration = 0.1,
activateWhenBuilt = true,
brakeRate = 0.1,
buildCostEnergy = 1700,
buildCostMetal = 1700,
build... | gpl-2.0 |
remakeelectric/luci | protocols/luci-proto-relay/luasrc/model/cbi/admin_network/proto_relay.lua | 70 | 1945 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local ipaddr, network
local forward_bcast, forward_dhcp, gateway, expiry, retry, table
ipaddr = section:taboption("general", Value, "ipaddr",
translate("Local IPv4 address"),
t... | apache-2.0 |
teleofis/OpenWRT | feeds/routing/cjdns/lua/cjdns/admin.lua | 9 | 2664 | -- Cjdns admin module for Lua
-- Written by Philip Horger
common = require 'cjdns/common'
AdminInterface = {}
AdminInterface.__index = AdminInterface
common.AdminInterface = AdminInterface
function AdminInterface.new(properties)
properties = properties or {}
properties.host = properties.host or "127.0.0... | gpl-2.0 |
fliping/flip | lib/lmmdb.lua | 2 | 12030 | -- -*- mode: lua; tab-width: 2; indent-tabs-mode: 1; st-rulers: [70] -*-
-- vim: ts=4 sw=4 ft=lua noet
---------------------------------------------------------------------
-- @author Daniel Barney <daniel@pagodabox.com>
-- @copyright 2014, Pagoda Box, Inc.
-- @doc
--
-- @end
-- Created : 6 Feb 2015 by Daniel Barney ... | mit |
Invertika/data | scripts/maps/ow-n0010-n0024-o0000.lua | 1 | 1400 | ----------------------------------------------------------------------------------
-- Map File --
-- --
-- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un... | gpl-3.0 |
GoogleFrog/Zero-K | LuaRules/Gadgets/unit_fix_dropped_startpos.lua | 4 | 2103 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
bagobor/cpp2lua-buindings-battle | external/LuaJIT-2.0.4/src/jit/dis_x86.lua | 89 | 29330 | ----------------------------------------------------------------------------
-- LuaJIT x86/x64 disassembler module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
--------------------------------------------------------------------------... | mit |
Ninjistix/darkstar | scripts/zones/Promyvion-Vahzl/npcs/_0md.lua | 7 | 1058 | -----------------------------------
-- Area: Promyvion vahzl
-- NPC: Memory flux (2)
-----------------------------------
package.loaded["scripts/zones/Promyvion-Vahzl/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Promyvion-Vahzl/TextIDs");
require("scripts/zones/Promyvion-Vahzl/MobIDs");
... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Port_Windurst/npcs/Kohlo-Lakolo.lua | 5 | 10978 | -----------------------------------
-- Area: Port Windurst
-- NPC: Kohlo-Lakolo
-- Invloved In Quests: Truth, Justice, and the Onion Way!,
-- Know One's Onions,
-- Inspector's Gadget,
-- Onion Rings,
-- Crying Over Onions,
-- ... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/mobskills/tourbillion.lua | 31 | 1404 | ---------------------------------------------
-- Tourbillion
--
-- Description: Delivers an area attack. Additional effect duration varies with TP. Additional effect: Weakens defense.
-- Type: Physical
-- Shadow per hit
-- Range: Unknown range
---------------------------------------------
require("scripts/globals/... | gpl-3.0 |
Ninjistix/darkstar | scripts/commands/delitem.lua | 8 | 1602 | ---------------------------------------------------------------------------------------------------
-- func: delitem
-- desc: Deletes a single item held by a player, if they have it.
---------------------------------------------------------------------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/abilities/ice_shot.lua | 2 | 3225 | -----------------------------------
-- Ability: Ice Shot
-- Consumes a Ice Card to enhance ice-based debuffs. Deals ice-based magic damage
-- Frost Effect: Enhanced DoT and AGI-
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Dragons_Aery/npcs/relic.lua | 5 | 1535 | -----------------------------------
-- Area: Dragon's Aery
-- NPC: <this space intentionally left blank>
-- !pos -20 -2 61 154
-----------------------------------
package.loaded["scripts/zones/Dragons_Aery/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Dragons_Aery/TextIDs");
-------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Temenos/npcs/Armoury_Crate.lua | 21 | 8373 | -----------------------------------
-- Area: Temenos
-- NPC: Armoury Crate
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/zones/Temenos/TextIDs");
re... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Bastok_Markets/npcs/Aquillina.lua | 5 | 1544 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Aquillina
-- Starts & Finishes Repeatable Quest: A Flash In The Pan
-- Note: Reapeatable every 15 minutes.
-- !pos -97 -5 -81 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
------------------------... | gpl-3.0 |
wangyi0226/skynet | test/cluster/cluster_sender_base.lua | 1 | 6015 | ---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by jjq.
--- DateTime: 2022/8/30 15:52
--- 用户自定义cluster_sender基类
--- 只是一个简单的替代原生sender的例子,不做为标准
local skynet = require "skynet"
local sc = require "skynet.socketchannel"
local socket = require "skynet.s... | mit |
Ninjistix/darkstar | scripts/zones/Cloister_of_Gales/Zone.lua | 5 | 1074 | -----------------------------------
--
-- Zone: Cloister_of_Gales (201)
--
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Gales/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Cloister_of_Gales/TextIDs");
-------------------... | gpl-3.0 |
johnsoch/cuberite | Server/Plugins/APIDump/Hooks/OnHopperPullingItem.lua | 44 | 1336 | return
{
HOOK_HOPPER_PULLING_ITEM =
{
CalledWhen = "A hopper is pulling an item from another block entity.",
DefaultFnName = "OnHopperPullingItem", -- also used as pagename
Desc = [[
This callback is called whenever a {{cHopperEntity|hopper}} transfers an {{cItem|item}} from another
block entity into its... | apache-2.0 |
Ninjistix/darkstar | scripts/zones/Monarch_Linn/Zone.lua | 5 | 1057 | -----------------------------------
--
-- Zone: Monarch_Linn
--
-----------------------------------
package.loaded["scripts/zones/Monarch_Linn/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Monarch_Linn/TextIDs");
require("scripts/globals/settings");
-----------------------------------
fun... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Port_Jeuno/Zone.lua | 5 | 3115 | -----------------------------------
--
-- Zone: Port_Jeuno (246)
--
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_Jeuno/TextIDs");
require("scripts/globals/settings");
-----------------------------------
fun... | gpl-3.0 |
ld-test/dromozoa-http | test/test_twitter.lua | 3 | 2283 | -- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com>
--
-- This file is part of dromozoa-http.
--
-- dromozoa-http 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 of the License, or
-... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Upper_Delkfutts_Tower/mobs/Autarch.lua | 3 | 1375 | -----------------------------------
-- Area: Upper Delkfutt's Tower
-- NM: Autarch
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
function onMobInitialize(mob)
mob:setMobMod(MOBMOD_AUTO_SPIKES,mob:getShortID());
mob... | gpl-3.0 |
mandersan/premake-core | modules/android/vsandroid_vcxproj.lua | 4 | 17615 | --
-- android/vsandroid_vcxproj.lua
-- vs-android integration for vstudio.
-- Copyright (c) 2012-2015 Manu Evans and the Premake project
--
local p = premake
p.modules.vsandroid = { }
local android = p.modules.android
local vsandroid = p.modules.vsandroid
local vc2010 = p.vstudio.vc2010
local vstudio = p.vstud... | bsd-3-clause |
Ninjistix/darkstar | scripts/globals/items/kenkonken.lua | 3 | 4657 | -----------------------------------------
-- ID: 19008
-- Item: Kenkonken
-----------------------------------------
require("scripts/globals/msg");
require("scripts/globals/status");
require("scripts/globals/weaponskills");
require("scripts/globals/weaponskillids");
-----------------------------------
local NAME_WEAPO... | gpl-3.0 |
SharpWoW/Chocobo | Broker_Chocobo.lua | 1 | 1931 | --[[
Copyright (c) 2010-2020 by Adam Hellberg
This file is part of Chocobo.
Chocobo 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 of the License, or
(at your option) an... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/abilities/spectral_jig.lua | 2 | 1183 | -----------------------------------
-- Ability: Spectral jig
-- Allows you to evade enemies by making you undetectable by sight and sound.
-- Obtained: Dancer Level 25
-- TP Required: 0
-- Recast Time: 30 seconds
-- Duration: 3 minutes
-----------------------------------
require("scripts/globals/settings");
require("sc... | gpl-3.0 |
SPARKTEA/sparkteam1 | 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-3.0 |
saecoiq/Spam-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 |
Ninjistix/darkstar | scripts/globals/abilities/maintenance.lua | 2 | 2478 | -----------------------------------
-- Ability: Maintenance
-- Cures your automaton of status ailments. Special items required
-- Obtained: Puppetmaster Level 30
-- Recast Time: 1:30
-- Duration: Instant
-----------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("s... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/items/green_quiche.lua | 3 | 1098 | -----------------------------------------
-- ID: 5170
-- Item: green_quiche
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Magic 10
-- Agility 1
-- Vitality -1
-- Ranged ACC % 7
-- Ranged ACC Cap 15
-----------------------------------------
require("scripts/globals/status");
-------------... | gpl-3.0 |
yuna98/dbteam | libs/redis.lua | 566 | 1214 | local Redis = require 'redis'
local FakeRedis = require 'fakeredis'
local params = {
host = os.getenv('REDIS_HOST') or '127.0.0.1',
port = tonumber(os.getenv('REDIS_PORT') or 6379)
}
local database = os.getenv('REDIS_DB')
local password = os.getenv('REDIS_PASSWORD')
-- Overwrite HGETALL
Redis.commands.hgetall = ... | gpl-2.0 |
Xagul/forgottenserver | data/talkactions/scripts/buyhouse.lua | 16 | 1163 | function onSay(player, words, param)
local housePrice = configManager.getNumber(configKeys.HOUSE_PRICE)
if housePrice == -1 then
return true
end
if not player:isPremium() then
player:sendCancelMessage("You need a premium account.")
return false
end
local position = player:getPosition()
position:getNextPo... | gpl-2.0 |
gmorishere/s | plugins/google.lua | 336 | 1323 | do
local function googlethat(query)
local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&'
local parameters = 'q='..(URL.escape(query) or '')
-- Do the request
local res, code = https.request(url..parameters)
if code ~=200 then return nil end
loca... | gpl-2.0 |
davidbuzz/ardupilot | libraries/AP_Scripting/tests/math.lua | 26 | 25303 | -- $Id: math.lua,v 1.77 2016/06/23 15:17:20 roberto Exp roberto $
--[[
*****************************************************************************
* Copyright (C) 1994-2016 Lua.org, PUC-Rio.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentati... | gpl-3.0 |
mandersan/premake-core | binmodules/luasocket/src/mbox.lua | 51 | 2654 | local _M = {}
if module then
mbox = _M
end
function _M.split_message(message_s)
local message = {}
message_s = string.gsub(message_s, "\r\n", "\n")
string.gsub(message_s, "^(.-\n)\n", function (h) message.headers = h end)
string.gsub(message_s, "^.-\n\n(.*)", function (b) message.body = b end)
... | bsd-3-clause |
backburn/Probably | interface/buttons.lua | 1 | 7563 | -- ProbablyEngine Rotations - https://probablyengine.com/
-- Released under modified BSD, see attached LICENSE.
ProbablyEngine.buttons = {
frame = CreateFrame("Frame", "PE_Buttons", UIParent),
buttonFrame = CreateFrame("Frame", "PE_Buttons_Container", UIParent),
buttons = { },
size = 36,
scale = 1,
paddin... | bsd-3-clause |
Ninjistix/darkstar | scripts/zones/Cloister_of_Flames/bcnms/trial-size_trial_by_fire.lua | 7 | 2141 | -----------------------------------
-- Area: Cloister of Flames
-- BCNM: Trial-size Trial by Fire
-- !pos -721 0 -598 207
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Flames/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/keyitems");
require("scripts/glo... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/abilities/aspir_samba.lua | 2 | 1316 | -----------------------------------
-- Ability: Aspir Samba
-- Inflicts the next target you strike with Aspir daze, allowing all those engaged in battle with it to drain its MP.
-- Obtained: Dancer Level 25
-- TP Required: 10%
-- Recast Time: 1:00
-- Duration: 2:00
-----------------------------------
require("scripts/g... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Port_Bastok/npcs/Tilian.lua | 5 | 1080 | -----------------------------------
-- Area: Port Bastok
-- NPC: Tilian
-- Type: Quest NPC
-- !pos -118.460 4.999 -68.090 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_Bastok/TextIDs");
require("scripts... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/abilities/building_flourish.lua | 2 | 2641 | -----------------------------------
-- Ability: Building Flourish
-- Enhances potency of your next weapon skill. Requires at least one Finishing Move.
-- Obtained: Dancer Level 50
-- Finishing Moves Used: 1-3
-- Recast Time: 00:10
-- Duration: 01:00
--
-- Using one Finishing Move boosts the Accuracy of your next weapon... | gpl-3.0 |
dinodeck/ninety_nine_days_of_dev | 001_cancel_textboxes/code/ShopState.lua | 3 | 12714 |
ShopState = {}
ShopState.__index = ShopState
function ShopState:Create(stack, world, def)
def = def or {}
local this
this =
{
mStack = stack,
mWorld = world,
mDef = def,
mPanels = {},
mName = def.name or "Shop",
mActors = {},
mActorCharMap = {},... | mit |
mandersan/premake-core | src/base/semver.lua | 22 | 6948 | local semver = {
_VERSION = '1.2.1',
_DESCRIPTION = 'semver for Lua',
_URL = 'https://github.com/kikito/semver.lua',
_LICENSE = [[
MIT LICENSE
Copyright (c) 2015 Enrique García Cota
Permission is hereby granted, free of charge, to any person obtaining a
copy of tother software ... | bsd-3-clause |
codedash64/Urho3D | bin/Data/LuaScripts/46_RaycastVehicleDemo.lua | 12 | 17493 | -- Vehicle example.
-- This sample demonstrates:
-- - Creating a heightmap terrain with collision
-- - Constructing a physical vehicle with rigid bodies for the hull and the wheels, joined with constraints
-- - Saving and loading the variables of a script object, including node & component references
requi... | mit |
Ninjistix/darkstar | scripts/zones/Davoi/npcs/_45d.lua | 5 | 1258 | -----------------------------------
-- Area: Davoi
-- NPC: Wall of Banishing
-- Used In Quest: Whence Blows the Wind
-- !pos 181 0.1 -218 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("script... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/absorb-tp.lua | 6 | 1469 | --------------------------------------
-- Spell: Absorb-TP
-- Steals an enemy's TP.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagic... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/mobskills/absolute_terror.lua | 5 | 1357 | ---------------------------------------------
-- Absolute Terror
-- Causes Terror, which causes the victim to be stunned for the duration of the effect, this can not be removed.
---------------------------------------------
require("scripts/globals/monstertpmoves");
require("scripts/globals/settings");
require("scripts... | gpl-3.0 |
area31/telegram-bot | 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 |
amir1213/tamir | 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 |
s-d-a/DCS-ExportScripts | Scripts/DCS-ExportScript/ExportsModules/F-5E-3.lua | 1 | 41216 | -- F-5E-3
ExportScript.FoundDCSModule = true
ExportScript.Version.F5E3 = "1.2.1"
ExportScript.ConfigEveryFrameArguments =
{
--[[
every frames arguments
based of "mainpanel_init.lua"
Example (http://www.lua.org/manual/5.1/manual.html#pdf-string.format)
[DeviceID] = "Format"
[4] = "%.4f", <- float... | lgpl-3.0 |
Ninjistix/darkstar | scripts/zones/Ilrusi_Atoll/npcs/Excaliace.lua | 5 | 4147 | -----------------------------------
-- Area: Periqia
-- NPC: Excaliace
-----------------------------------
require("scripts/zones/Periqia/IDs");
require("scripts/globals/pathfind");
local start = {-322,-16.5,380};
local startToChoice1 = {
-320.349548, -16.046591, 379.684570
-318.312317, -16.046591, 379.57986... | gpl-3.0 |
TRex22/hawkthorne-journey | src/nodes/info.lua | 1 | 1163 | local Dialog = require 'dialog'
local Info = {}
Info.__index = Info
function Info.new(node, collider)
local info = {}
setmetatable(info, Info)
info.bb = collider:addRectangle(node.x, node.y, node.width, node.height)
info.bb.node = info
info.info = split( node.properties.info, '|' )
info.x = ... | mit |
ccyphers/kong | spec/03-plugins/007-loggly/01-log_spec.lua | 3 | 4995 | local helpers = require "spec.helpers"
local cjson = require "cjson"
local UDP_PORT = 20000
describe("Plugin: loggly (log)", function()
local client
setup(function()
local api1 = assert(helpers.dao.apis:insert {
name = "api-1",
hosts = { "logging.com" },
upstream_url = "http://mockbin.com"
... | apache-2.0 |
Ninjistix/darkstar | scripts/zones/Norg/npcs/Fouvia.lua | 5 | 1292 | -----------------------------------
-- Area: Norg
-- NPC: Fouvia
-- Type: Wyvern Name Changer
-- @zone 252
-- !pos -84.066 -6.414 47.826
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globa... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Northern_San_dOria/npcs/Vavegallet.lua | 5 | 1122 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Vavegallet
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Northern_San_dOria/TextIDs");
require("scripts/global... | gpl-3.0 |
fgeorgatos/bic | lmodrc.lua | 3 | 1829 | # -*- lua -*-
propT = {
state = {
validT = { experimental = 1, testing = 1, obsolete = 1 },
displayT = {
experimental = { short = "(E)", long = "(E)", color = "blue", doc = "Experimental", },
testing = { short = "(T)", long = "(T)", color = "green", doc = "Testing", },... | gpl-2.0 |
davidbuzz/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 |
wangyi0226/skynet | test/testsmg.lua | 1 | 2233 | local skynet = require "skynet"
local snax = require "skynet.smg"
skynet.start(function()
--skynet.trace()
local ps = snax.newservice ("pingserver_smg", "hello world")
print(ps.req.ping("foobar"))
print("AAAAAAAAAAAAAAAAAAAAAAAAAAA:",ps.wait.ping2("foobar"))
print(ps.post.hello())
--print(pcall(ps.req.e... | mit |
DEVll190ll/DEV_HR | plugins/DEV_2.lua | 1 | 2657 | --[[
BY-@ll190ll
BY_CH : @llSNLL
]]
local function get_variables_hash(msg)
if msg.to.type == 'chat' or msg.to.type == 'channel' then
return 'chat:bot:variables'
end
end
local function get_value(msg, var_name)
local hash = get_variables_hash(msg)
if hash then
local value = redis:hget(hash, var_name)
... | gpl-2.0 |
THEGENRRAL/GENERAL | plugins/me.lua | 2 | 3447 | --[[ -- تم التعديل و التعريب بواسطه @KNSLTHM
--[[
Dev @KNSLTHM
Dev @NAHAR2_BOT
CH > @NENO_CH
--]]
do
local function mohammedboss(msg, matches)
if matches[1] == 'موقعي' then
if is_sudo(msg) then
... | gpl-3.0 |
premake/premake-4.x | src/actions/vstudio/vs2010_vcxproj_filters.lua | 17 | 2473 | --
-- vs2010_vcxproj_filters.lua
-- Generate a Visual Studio 2010 C/C++ filters file.
-- Copyright (c) 2009-2011 Jason Perkins and the Premake project
--
local vc2010 = premake.vstudio.vc2010
local project = premake.project
--
-- The first portion of the filters file assigns unique IDs to each
-- directory or vir... | bsd-3-clause |
Ninjistix/darkstar | scripts/zones/Kazham/npcs/Magriffon.lua | 5 | 3966 | -----------------------------------
-- Area: Kazham
-- NPC: Magriffon
-- Involved in Quest: Gullible's Travels, Even More Gullible's Travels,
-- Location: (I-7)
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/setting... | gpl-3.0 |
kazupon/kyototycoon | example/ktscrex.lua | 11 | 6137 | kt = __kyototycoon__
db = kt.db
-- log the start-up message
if kt.thid == 0 then
kt.log("system", "the Lua script has been loaded")
end
-- echo back the input data as the output data
function echo(inmap, outmap)
for key, value in pairs(inmap) do
outmap[key] = value
end
return kt.RVSUCCESS
end
-- re... | gpl-3.0 |
gmorishere/s | plugins/lyrics.lua | 695 | 2113 | do
local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs'
local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5'
local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect'
local function getInfo(query)
print('Getting info of ' .. query)
local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY
... | gpl-2.0 |
jinks/LuaMeat | luameat.lua | 1 | 2066 | require "luarocks.loader"
local irc = require 'irc'
sqlite3 = require "lsqlite3"
plugin = {}
callback = {}
on_join = {}
on_part = {}
DB = sqlite3.open("bot.db")
require('config')
irc.DEBUG = true
irc.register_callback("connect", function()
irc.send("CAP REQ :twitch.tv/membership") -- request twitch to send j... | apache-2.0 |
premake/premake-4.x | tests/actions/vstudio/cs2005/projectelement.lua | 51 | 1664 | --
-- tests/actions/vstudio/cs2005/projectelement.lua
-- Validate generation of <Project/> element in Visual Studio 2005+ .csproj
-- Copyright (c) 2009-2011 Jason Perkins and the Premake project
--
T.vstudio_cs2005_projectelement = { }
local suite = T.vstudio_cs2005_projectelement
local cs2005 = premake.vstudio.cs2... | bsd-3-clause |
Ninjistix/darkstar | scripts/zones/Promyvion-Holla/Zone.lua | 3 | 3052 | -----------------------------------
--
-- Zone: Promyvion-Holla (16)
--
-----------------------------------
package.loaded["scripts/zones/Promyvion-Holla/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Promyvion-Holla/TextIDs");
require("scripts/zones/Promyvion-Holla/MobIDs");
require("scrip... | gpl-3.0 |
dinodeck/ninety_nine_days_of_dev | 002_bitmap_numbers/code/fx/CombatTextFx.lua | 6 | 1579 | -- Used to display "miss", "critical", "posioned", etc
CombatTextFx = {}
CombatTextFx.__index = CombatTextFx
function CombatTextFx:Create(x, y, text, color)
local this =
{
mX = x or 0,
mY = y or 0,
mText = text or "", -- to display
mColor = color or Vector.Create(1,1,1,1),
... | mit |
Ninjistix/darkstar | scripts/zones/Port_Windurst/npcs/Kucha_Malkobhi.lua | 5 | 1199 | -----------------------------------
-- Area: Port Windurst
-- NPC: Kucha Malkobhi
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("... | gpl-3.0 |
karczewa/BolScripts | TristanaMechanics.lua | 3 | 24290 | --[[
_____ _____ __ .__
/ \_______ / _ \________/ |_|__| ____ __ __ ____ ____
/ \ / \_ __ \ / /_\ \_ __ \ __\ |/ ___\| | \/ \ / _ \
/ Y \ | \/ / | \ | \/| | | \ \___| | / | ( <_> )
\____|__ /__| \___... | gpl-2.0 |
premake/premake-4.x | src/base/project.lua | 4 | 18379 | --
-- project.lua
-- Functions for working with the project data.
-- Copyright (c) 2002 Jason Perkins and the Premake project
--
premake.project = { }
--
-- Create a tree from a project's list of files, representing the filesystem hierarchy.
--
-- @param prj
-- The project containing the files to map.
-- @return... | bsd-3-clause |
tele911/xy-test | plugins/inrealm.lua | 71 | 25005 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
Inorizushi/DDR-SN1HD | BGAnimations/ScreenGameplay next course song.lua | 1 | 2731 | -- BeforeLoadingNextCourseSongMessageCommand
-- StartCommand
-- ChangeCourseSongInMessageCommand
-- ChangeCourseSongOutMessageCommand
-- FinishCommand
local sStage = GAMESTATE:GetCurrentStage();
local tRemap = {
Stage_1st = 1,
Stage_2nd = 2,
Stage_3rd = 3,
Stage_4th = 4,
Stage_5th = 5,
Stage_6t... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Upper_Jeuno/npcs/Turlough.lua | 5 | 1148 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Turlough
-- Mission NPC
-- !pos
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Upper_Jeuno/TextIDs");
require("scripts/globals/quests");
require("s... | gpl-3.0 |
torch/vector | test/test.lua | 1 | 7513 | -- dependencies:
require 'fb.luaunit'
require 'fbtorch'
local vector = require 'vector'
-- set up tester:
local tester = torch.Tester()
local test = {}
function test.tensorvector()
-- fill and read tensorvector:
local limit = 6
local b = vector.tensor.new_double()
for n = 1,limit do b[n] = n end
... | bsd-3-clause |
garlick/flux-sched | rdl/test/test-jansson.lua | 2 | 2561 | #!/usr/bin/env lua
-- require 'fluxometer' so that we use fluxometer Test.More
require 'fluxometer'
require 'Test.More'
package.cpath="./.libs/?.so;"..package.cpath
j = require 'janssontest'
local function equals(t1, t2)
if t1 == t2 then
return true
end
if type(t1) ~= "table" or type(t2) ~= "table" th... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/RuLude_Gardens/npcs/Trail_Markings.lua | 3 | 2702 | -----------------------------------
-- Area: Rulude Gardens
-- NPC: Trail Markings
-- Dynamis-Jeuno Enter
-- !pos 35 9 -51 243
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/glob... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/mobskills/smoke_discharger.lua | 33 | 1301 | ---------------------------------------------------
-- Smoke_Discharger
-- Description:
-- Type: Magical
-- additional effect : Petrification.
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
-----... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/LaLoff_Amphitheater/mobs/Ark_Angel_MR.lua | 7 | 1258 | -----------------------------------
-- Area: LaLoff Amphitheater
-- MOB: Ark Angel MR
-----------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
require("scripts/globals/status");
-----... | gpl-3.0 |
hfjgjfg/hhh | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Northern_San_dOria/npcs/Boncort.lua | 5 | 1815 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Boncort
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Northern_San_dOria/TextIDs");
require("scripts/globa... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.