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 |
|---|---|---|---|---|---|
grbd/premake-core | tests/actions/vstudio/vc2010/test_manifest.lua | 5 | 1111 | --
-- tests/actions/vstudio/vc2010/test_manifest.lua
-- Validate generation of Manifest block in Visual Studio 201x C/C++ projects.
-- Copyright (c) 2009-2013 Jason Perkins and the Premake project
--
local suite = test.declare("vs2010_manifest")
local vc2010 = premake.vstudio.vc2010
local project = premake.... | bsd-3-clause |
SalvationDevelopment/Salvation-Scripts-Production | c698785.lua | 2 | 1203 | --サンダーエンド・ドラゴン
function c698785.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsType,TYPE_NORMAL),8,2)
c:EnableReviveLimit()
--negate activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(698785,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_IGNI... | gpl-2.0 |
SalvationDevelopment/Salvation-Scripts-Production | c76650663.lua | 9 | 1081 | --A・O・J ブラインド・サッカー
function c76650663.initial_effect(c)
--Disable
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(76650663,0))
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_BATTLED)
e1:SetCondition(c76650663.condition)
e1:SetOperation(c76650663.operation)
c:RegisterEffect(... | gpl-2.0 |
dr01d3r/darkstar | scripts/globals/abilities/tabula_rasa.lua | 24 | 1264 | -----------------------------------
-- Ability: Tabula Rasa
-- Optimizes both white and black magic capabilities while allowing charge-free stratagem use.
-- Obtained: Scholar Level 1
-- Recast Time: 1:00:00
-- Duration: 0:03:00
-----------------------------------
require("scripts/globals/settings");
require("scripts/... | gpl-3.0 |
dwmw2/domoticz | scripts/dzVents/examples/simple room heating with hysteresis control.lua | 19 | 3118 | -- assumptions:
-- the setpoint is set by a selector dummy device where the values are numeric temperatures
-- but you can easily change it to a setpoint device
local BOILER_DEVICE = 'Boiler' -- switch device
local SETPOINT_DEVICE = 'Setpoint' -- selector dummy device
local TEMPERATURE_SENSOR = 'Temperature'
local HYS... | gpl-3.0 |
waruqi/xmake | xmake/core/ui/point.lua | 1 | 2267 | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | apache-2.0 |
dr01d3r/darkstar | scripts/zones/Jade_Sepulcher/Zone.lua | 32 | 1271 | -----------------------------------
--
-- Zone: Jade_Sepulcher (67)
--
-----------------------------------
package.loaded["scripts/zones/Jade_Sepulcher/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Jade_Sepulcher/TextIDs");
---------------------------... | gpl-3.0 |
SalvationDevelopment/Salvation-Scripts-Production | c81759748.lua | 5 | 1311 | --ダーク・スパイダー
function c81759748.initial_effect(c)
--lv up
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(81759748,0))
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetTarget(c81759748... | gpl-2.0 |
dr01d3r/darkstar | scripts/zones/Mhaura/npcs/Mololo.lua | 14 | 1157 | -----------------------------------
-- Area: Mhaura
-- NPC: Mololo
-- Guild Merchant NPC: Blacksmithing Guild
-- @pos -64.278 -16.624 34.120 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("... | gpl-3.0 |
SalvationDevelopment/Salvation-Scripts-Production | c61592395.lua | 7 | 1195 | --アルマの魔導書
function c61592395.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,61592395+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c61592395.target)
e1:S... | gpl-2.0 |
miralireza2/star_telegrambot1 | plugins/webshot.lua | 919 | 1473 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
header... | gpl-2.0 |
mehrdad79/hield | plugins/webshot.lua | 919 | 1473 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
header... | gpl-2.0 |
sempiternum/telegram-bot | plugins/webshot.lua | 919 | 1473 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
header... | gpl-2.0 |
BlurryRoots/intergalactic-golf | lib/yanecos/EntityManager.lua | 1 | 4142 | require ("lib.lclass")
class "EntityManager"
function EntityManager:EntityManager ()
-- last assigned id
self.idCounter = 0
-- tags -> list of ids
self.tags = {}
-- id -> list of tags
self.tagMap = {}
-- id -> list of assigned data
self.dataMap = {}
-- datatypename -> list of entities holding this type of da... | mit |
mynameiscraziu/vdsfrewq | 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 |
sempiternum/telegram-bot | 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 |
Herve-M/OpenRA | mods/d2k/maps/atreides-02b/atreides02b-AI.lua | 14 | 1137 | --[[
Copyright 2007-2022 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you 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) any later vers... | gpl-3.0 |
dr01d3r/darkstar | scripts/zones/RuLude_Gardens/npcs/Rainhard.lua | 14 | 1050 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Rainhard
-- Type: Standard NPC
-- @zone 243
-- @pos -2.397 -5.999 68.749
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
--------------... | gpl-3.0 |
HHmmominion/basemmominion | LuaMods/Dev/WayPoint/134.lua | 1 | 1456 | -- Persistent Data
local multiRefObjects = {
} -- multiRefObjects
local obj1 = {
[7] = {
["y"] = 39.217903;
["x"] = -207.574707;
["name"] = "THE DESCENT";
["z"] = -232.909378;
["h"] = -2.451456;
};
[1] = {
["y"] = 113.099991;
["x"] = 222.285187;
["name"] = "Summerford ";
["z"] = -256.265778;
["h... | gpl-2.0 |
chaot4/ardour | share/scripts/synth1.lua | 2 | 2601 | ardour {
["type"] = "dsp",
name = "Simple Synth",
category = "Instrument",
license = "MIT",
author = "Ardour Lua Task Force",
description = [[An Example Synth for Prototyping.]]
}
function dsp_ioconfig ()
return
{
-- { midi_in = 1, audio_in = 0, audio_out = -1}, -- any number of channels... | gpl-2.0 |
thegrb93/wire | lua/entities/gmod_wire_gpu/cl_init.lua | 9 | 13246 | include("cl_gpuvm.lua")
include("shared.lua")
local Monitors = {}
local MonitorLookup = {}
local HUDLookup = {}
--------------------------------------------------------------------------------
-- Update monitors certain GPU is linked to
--------------------------------------------------------------------------------
... | apache-2.0 |
nkgm/hammerspoon | extensions/applescript/init.lua | 13 | 2635 | --- === hs.applescript ===
---
--- Execute AppleScript code
---
--- This module is based primarily on code from the previous incarnation of Mjolnir by [Steven Degutis](https://github.com/sdegutis/).
local module = require("hs.applescript.internal")
-- private variables and methods ------------------------------------... | mit |
dr01d3r/darkstar | scripts/zones/Windurst_Waters/npcs/Paku-Nakku.lua | 14 | 1406 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Paku-Nakku
-- Involved in Quest: Making the Grade
-- Working 100%
-- @zone = 238
-- @pos = 127 -6 165
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("... | gpl-3.0 |
dr01d3r/darkstar | scripts/zones/Port_Bastok/npcs/Mine_Konte.lua | 17 | 1124 | -----------------------------------
-- Area: Port Bastok
-- NPC: Mine Konte
-- Involved in Quest: Out of One's Shell
-----------------------------------
require("scripts/globals/quests");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;... | gpl-3.0 |
SalvationDevelopment/Salvation-Scripts-Production | c77505534.lua | 2 | 1289 | --堕ち影の蠢き
function c77505534.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOGRAVE+CATEGORY_POSITION)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,0x11e8)
e1:SetTarget(c77505534.target)
e1:SetOperation(c77505534.activate)
c:RegisterEffec... | gpl-2.0 |
koreader/koreader | plugins/coverimage.koplugin/main.lua | 4 | 32431 | --[[--
@module koplugin.coverimage
Plugin for saving a cover image to a file and scaling it to fit the screen.
]]
local Device = require("device")
if not (Device.isAndroid() or Device.isEmulator() or Device.isRemarkable() or Device.isPocketBook()) then
return { disabled = true }
end
local A, android = pcall(req... | agpl-3.0 |
koreader/koreader | frontend/ui/network/networklistener.lua | 4 | 9642 | local BD = require("ui/bidi")
local Device = require("device")
local Event = require("ui/event")
local EventListener = require("ui/widget/eventlistener")
local InfoMessage = require("ui/widget/infomessage")
local NetworkMgr = require("ui/network/manager")
local UIManager = require("ui/uimanager")
local logger = require... | agpl-3.0 |
dr01d3r/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 |
SalvationDevelopment/Salvation-Scripts-Production | c48505422.lua | 7 | 1845 | --真六武衆-シナイ
function c48505422.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND)
e1:SetCondition(c48505422.spcon)
c:RegisterEffect(e1)
--to hand
local e2=Effect.Crea... | gpl-2.0 |
SalvationDevelopment/Salvation-Scripts-Production | c77754945.lua | 2 | 1253 | --万能地雷グレイモヤ(EU)
function c77754945.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetCondition(c77754945.condition)
e1:SetTarget(c77754945.target)
e1:SetOperation(c77754945.activate)
c:RegisterE... | gpl-2.0 |
retep998/Vana | scripts/npcs/change_swordman.lua | 2 | 4002 | --[[
Copyright (C) 2008-2016 Vana Development 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; version 2
of the License.
This program is distributed in the hope that it will be useful,
but WITHO... | gpl-2.0 |
rigeirani/uzrep | plugins/rae.lua | 616 | 1312 | do
function getDulcinea( text )
-- Powered by https://github.com/javierhonduco/dulcinea
local api = "http://dulcinea.herokuapp.com/api/?query="
local query_url = api..text
local b, code = http.request(query_url)
if code ~= 200 then
return "Error: HTTP Connection"
end
dulcinea = json:decode(b)
... | gpl-2.0 |
SalvationDevelopment/Salvation-Scripts-Production | c74611888.lua | 2 | 1215 | --手のひら返し
function c74611888.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_POSITION)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,0x1e0)
e1:SetCondition(c74611888.condition)
e1:SetTarget(c74611888.target)
e1:SetOperation(c74611888.activa... | gpl-2.0 |
lf723/mushroom | common/lualib/random.lua | 1 | 2294 |
local Random = {}
-- 此函数用法等价于math.random
-- Random.Get(m,n)
do
local randomtable
local tablesize = 97
function Random.Get(m, n)
-- 初始化随机数与随机数表,生成97个[0,1)的随机数
if not randomtable then
-- 避免种子过小
math.randomseed(tonumber(tostring(os.time()):reverse():sub(1,6)))
randomtable = {}
for i = 1, tablesize do... | gpl-3.0 |
jonathantompson/nn | Parallel.lua | 10 | 3920 | local Parallel, parent = torch.class('nn.Parallel', 'nn.Container')
function Parallel:__init(inputDimension,outputDimension)
parent.__init(self)
self.modules = {}
self.inputDimension = inputDimension
self.outputDimension = outputDimension
end
function Parallel:updateOutput(input)
local nModule=input:si... | bsd-3-clause |
Caduceus/forgottenserver | data/chatchannels/scripts/advertising.lua | 48 | 1220 | function canJoin(player)
return player:getVocation():getId() ~= VOCATION_NONE or player:getAccountType() >= ACCOUNT_TYPE_SENIORTUTOR
end
local CHANNEL_ADVERTISING = 5
local muted = Condition(CONDITION_CHANNELMUTEDTICKS, CONDITIONID_DEFAULT)
muted:setParameter(CONDITION_PARAM_SUBID, CHANNEL_ADVERTISING)
muted:setPara... | gpl-2.0 |
BooM-amour/lol | 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 |
TeleDALAD/dd | 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 |
gmorishere/lastbot | plugins/newstats.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 |
dr01d3r/darkstar | scripts/zones/South_Gustaberg/npcs/qm2.lua | 27 | 2839 | -----------------------------------
-- Area: South Gustaberg
-- NPC: ???
-- Involved in Quest: Smoke on the Mountain
-- @pos 461 -21 -580 107
-----------------------------------
package.loaded["scripts/zones/South_Gustaberg/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/South_Gustaberg/Te... | gpl-3.0 |
dr01d3r/darkstar | scripts/zones/Sacrarium/npcs/qm4.lua | 14 | 1798 | -----------------------------------
-- Area: Sacrarium
-- NPC: qm4 (???)
-- Notes: Used to spawn Old Prof. Mariselle
-- @pos 22.669 -3.111 127.279 28
-----------------------------------
package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Sacrarium/Text... | gpl-3.0 |
SalvationDevelopment/Salvation-Scripts-Production | c75347539.lua | 4 | 2967 | --磁石の戦士マグネット・バルキリオン
function c75347539.initial_effect(c)
c:EnableReviveLimit()
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND)
e1:SetCondition(c75347539.spcon)
e1:SetOperation(c7534... | gpl-2.0 |
smapapurf/jc2mpColorChoice | shared/Commands.lua | 1 | 2820 | --you can make your own custom colors with custom names just change the values of "colors" to Either Color.Premade Or Color(Red,Green,Blue)
--change the corresponding colors names to you chosen name Example:"barf_green" (Dont put spaces in you color names!Use underscores instead)
--setting up the color values for use... | mit |
retep998/Vana | scripts/instances/hakToMuLung.lua | 2 | 1037 | --[[
Copyright (C) 2008-2016 Vana Development 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; version 2
of the License.
This program is distributed in the hope that it will be useful,
but WITHO... | gpl-2.0 |
Ali-2h/linuxw | plugins/Location.lua | 185 | 1565 | -- Implement a command !loc [area] which uses
-- the static map API to get a location image
-- Not sure if this is the proper way
-- Intent: get_latlong is in time.lua, we need it here
-- loadfile "time.lua"
-- Globals
-- If you have a google api key for the geocoding/timezone api
do
local api_key = nil
local base_... | gpl-2.0 |
atarii/Magisk_Kali_Nethunter | system/bin/scripts/mifare_autopwn.lua | 7 | 4892 | local getopt = require('getopt')
local reader = require('read14a')
local cmds = require('commands')
example = "script run mifare_autopwn"
author = "Martin Holst Swende"
desc =
[[
This is a which automates cracking and dumping mifare classic cards. It sets itself into
'listening'-mode, after which it cracks and dump... | gpl-2.0 |
mmmmhack/vblend | gamelib/graphics.lua | 1 | 1162 | -- graphics.lua : graphic util
local modname = ...
local M = {}
_G[modname] = M
package.loaded[modname] = M
--[[
descrip:
Draws param mesh of triangles.
params:
verts: type: table, descrip: 1-based array of 3d vertex coordinates
tris: type: table, descrip: 1-based array of 0-based indices into verts array
]]... | gpl-3.0 |
dr01d3r/darkstar | scripts/zones/Al_Zahbi/npcs/Danaaba.lua | 14 | 1038 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Danaaba
-- Type: Standard NPC
-- @zone 48
-- @pos -17.375 -6.999 59.161
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
--------------------------... | gpl-3.0 |
Mashape/lua-resty-dns-client | src/resty/dns/client.lua | 1 | 51599 | --------------------------------------------------------------------------
-- DNS client.
--
-- Works with OpenResty only. Requires the [`lua-resty-dns`](https://github.com/openresty/lua-resty-dns) module.
--
-- _NOTES_:
--
-- 1. parsing the config files upon initialization uses blocking i/o, so use with
-- care. See `... | apache-2.0 |
SalvationDevelopment/Salvation-Scripts-Production | c100912007.lua | 2 | 4013 | --SRアクマグネ
--Speedroid Fiendmagnet
--Scripted by Eerie Code
function c100912007.initial_effect(c)
--cannot be synchro
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_BE_SYNCHRO_MATERIAL)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCondition(c10091... | gpl-2.0 |
joev/SVUI-Temp | SVUI_Skins/components/blizzard/itemupgrade.lua | 2 | 1682 | --[[
##############################################################################
S V U I By: Munglunch
##############################################################################
--]]
--[[ GLOBALS ]]--
local _G = _G;
local unpack = _G.unpack;
local select = _G.select;
--[[ ADDON ]]--
local SV = _G['SVUI'];
lo... | mit |
mamaddeveloper/uuznew | plugins/id.lua | 355 | 2795 | local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
local function returnids(cb_extra, success, resu... | gpl-2.0 |
SalvationDevelopment/Salvation-Scripts-Production | c10755153.lua | 2 | 2060 | --ガーディアン・シール
function c10755153.initial_effect(c)
--sum limit
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_SUMMON)
e1:SetCondition(c10755153.sumlimit)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode... | gpl-2.0 |
dr01d3r/darkstar | scripts/globals/mobskills/Spike_Flail.lua | 33 | 1247 | ---------------------------------------------------
-- Spike Flail
-- Deals extreme damage in a threefold attack to targets behind the user.
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
----------... | gpl-3.0 |
fenderglass/ABruijn | lib/samtools-1.9/misc/r2plot.lua | 28 | 2877 | #!/usr/bin/env luajit
function string:split(sep, n)
local a, start = {}, 1;
sep = sep or "%s+";
repeat
local b, e = self:find(sep, start);
if b == nil then
table.insert(a, self:sub(start));
break
end
a[#a+1] = self:sub(start, b - 1);
start = e... | bsd-3-clause |
felipebetancur/omim | 3party/osrm/osrm-backend/profiles/testbot.lua | 69 | 3444 | -- Testbot profile
-- Moves at fixed, well-known speeds, practical for testing speed and travel times:
-- Primary road: 36km/h = 36000m/3600s = 100m/10s
-- Secondary road: 18km/h = 18000m/3600s = 100m/20s
-- Tertiary road: 12km/h = 12000m/3600s = 100m/30s
-- modes:
-- 1: normal
-- 2: route
-- 3: river downstream
... | apache-2.0 |
asmagill/hammerspoon-config | utils/_actions/screen_bluetooth_toggle.lua | 1 | 1175 | -- For my setup, when the number of monitors == 1, it's likely that I'm either
-- using the battery and not my external mouse, or that I'm using the computer
-- just far enough from my desk (watching TV, most likely) that the mouse is
-- barely in range and drains it's battery trying to stay connected... so...
-- we tu... | mit |
dr01d3r/darkstar | scripts/zones/Apollyon/mobs/Fir_Bholg.lua | 17 | 1394 | -----------------------------------
-- Area: Apollyon SW
-- NPC: Fir Bholg
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
-----------------------------------
... | gpl-3.0 |
SalvationDevelopment/Salvation-Scripts-Production | c82697249.lua | 2 | 2159 | --No.59 背反の料理人
function c82697249.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,4,2)
c:EnableReviveLimit()
--immune
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_IMMUNE_EFFECT)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(c8... | gpl-2.0 |
dr01d3r/darkstar | scripts/zones/Chamber_of_Oracles/Zone.lua | 30 | 1741 | -----------------------------------
--
-- Zone: Chamber_of_Oracles (168)
--
-----------------------------------
package.loaded["scripts/zones/Chamber_of_Oracles/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Chamber_of_Oracles/TextIDs");
--------------... | gpl-3.0 |
dr01d3r/darkstar | scripts/zones/Windurst_Walls/npcs/Four_of_Diamonds.lua | 14 | 1060 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Four of Diamonds
-- Type: Standard NPC
-- @zone 239
-- @pos -187.184 -3.545 151.092
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
----... | gpl-3.0 |
dr01d3r/darkstar | scripts/zones/Selbina/npcs/Vobo.lua | 14 | 1535 | -----------------------------------
-- Area: Selbina
-- NPC: Vobo
-- Involved in Quest: Riding on the Clouds
-- @pos 37 -14 81 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
require("scripts/... | gpl-3.0 |
PaulBernier/castl | lua/castl/prototype/string.lua | 1 | 14678 | --[[
Copyright (c) 2014, Paul Bernier
CASTL 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 3 of the License, or
(at your option) any later version.
CASTL is dist... | lgpl-3.0 |
sempiternum/telegram-bot | plugins/id.lua | 226 | 4260 | local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
local function returnids(cb_extra, success, result)
local re... | gpl-2.0 |
thegrb93/wire | lua/entities/gmod_wire_simple_explosive.lua | 8 | 2407 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Simple Explosive"
ENT.WireDebugName = "Simple Explosive"
if CLIENT then return end -- No more client
local wire_explosive_delay = CreateConVar( "wire_explosive_delay", 0.2, FCVAR_ARCHIVE )
local wire_explosive_range = CreateConVar( "wir... | apache-2.0 |
SalvationDevelopment/Salvation-Scripts-Production | c74095602.lua | 7 | 1084 | --英雄変化-リフレクター・レイ
function c74095602.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DAMAGE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EVENT_BATTLE_DESTROYED)
e1:SetCondition(c74095602.condition)
e1:SetTarget(c74095602.target)
e1:S... | gpl-2.0 |
waruqi/xmake | xmake/actions/build/cleaner.lua | 1 | 3142 | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | apache-2.0 |
retep998/Vana | scripts/instances/ludiToOrbisTrip.lua | 2 | 1142 | --[[
Copyright (C) 2008-2016 Vana Development 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; version 2
of the License.
This program is distributed in the hope that it will be useful,
but WITHO... | gpl-2.0 |
mynameiscraziu/vdsfrewq | plugins/minecraft.lua | 624 | 2605 | local usage = {
"!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565",
"!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.",
}
local ltn12 = require "ltn12"
local function mineSearch(ip, port, receiver) --25565
local responseText = ""
l... | gpl-2.0 |
SalvationDevelopment/Salvation-Scripts-Production | c95281259.lua | 3 | 1024 | --戦士の生還
function c95281259.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c95281259.target)
e1:SetOperation(c95281259.activate)
c:RegisterEffect(e1)
e... | gpl-2.0 |
SalvationDevelopment/Salvation-Scripts-Production | c80921533.lua | 4 | 2559 | --死皇帝の陵墓
function c80921533.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetValue(SUMMON_TYPE_NORMAL)
c:RegisterEffect(e1)
--summon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(80921533,0))
e2:SetProperty(EFFECT... | gpl-2.0 |
kequanJiang/skynet_start | skynet/service/sharedatad.lua | 8 | 3329 | local skynet = require "skynet"
local sharedata = require "skynet.sharedata.corelib"
local table = table
local cache = require "skynet.codecache"
cache.mode "OFF" -- turn off codecache, because CMD.new may load data file
local NORET = {}
local pool = {}
local pool_count = {}
local objmap = {}
local collect_tick = 10
... | mit |
SalvationDevelopment/Salvation-Scripts-Production | c84472026.lua | 2 | 2375 | --ゴーストリック・イエティ
function c84472026.initial_effect(c)
--summon limit
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_SUMMON)
e1:SetCondition(c84472026.sumcon)
c:RegisterEffect(e1)
--turn set
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(84472026,0))
e2:Se... | gpl-2.0 |
SalvationDevelopment/Salvation-Scripts-Production | c44125452.lua | 4 | 1106 | --薔薇の妖精
function c44125452.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(44125452,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_TO_HAND)
e1:SetCondition(c4412... | gpl-2.0 |
SalvationDevelopment/Salvation-Scripts-Production | c64238008.lua | 7 | 1771 | --リニアキャノン
function c64238008.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DAMAGE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c64238008.cost)
e1:SetTarget(c64238008.target)
e1:SetOperation(c64238008.a... | gpl-2.0 |
asmagill/hammerspoon-config | _scratch/dragging.lua | 1 | 4527 | local module = {}
local canvas = require "hs.canvas"
local pasteboard = require "hs.pasteboard"
local screen = require "hs.screen"
local image = require "hs.image"
local inspect = require "hs.inspect"
local timer = require "hs.timer"
local console = require "hs.console"
local canvas = requir... | mit |
SalvationDevelopment/Salvation-Scripts-Production | c55277252.lua | 4 | 2401 | --魔轟神獣ノズチ
function c55277252.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(55277252,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND)
e1:SetTarget(c55277252.tg)
e1:SetOperation(c55277252.op)
c:RegisterEffect(e1)... | gpl-2.0 |
dr01d3r/darkstar | scripts/globals/spells/cura_ii.lua | 36 | 4121 | -----------------------------------------
-- Spell: Cura
-- Restores hp in area of effect. Self target only
-- From what I understand, Cura's base potency is the same as Cure II's.
-- With Afflatus Misery Bonus, it can be as potent as a Curaga III
-- Modeled after our cure_ii.lua, which was modeled after the below refe... | gpl-3.0 |
SalvationDevelopment/Salvation-Scripts-Production | c75252099.lua | 2 | 1568 | --ローズ・バード
function c75252099.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(75252099,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_BATTLE_DESTROYED)
e1:SetCondition(c75252099.spcon)
e1:SetTarge... | gpl-2.0 |
SalvationDevelopment/Salvation-Scripts-Production | c81167171.lua | 6 | 1836 | --ヒーロースピリッツ
function c81167171.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_END_PHASE)
e1:SetCondition(c81167171.condition)
e1:SetOperation(c81167171.activate)
c:RegisterEffect(e1)
if not c81167171.global_ch... | gpl-2.0 |
ponywolf/ponytiled | maps/objects/sandbox.lua | 1 | 45775 | return {
version = "1.1",
luaversion = "5.1",
tiledversion = "0.17.1",
orientation = "orthogonal",
renderorder = "right-down",
width = 79,
height = 45,
tilewidth = 32,
tileheight = 32,
nextobjectid = 203,
backgroundcolor = { 39, 185, 154 },
properties = {},
tilesets = {
{
name = "obj... | mit |
SalvationDevelopment/Salvation-Scripts-Production | c63630268.lua | 2 | 1363 | --幻蝶の護り
function c63630268.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_POSITION)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c63630268.target)
e1:SetOperation(c63630268.operation)
c:RegisterEffect(e1... | gpl-2.0 |
DerSticher/ACO-love | lib/util.lua | 1 | 1434 | -- Clamps a number to within a certain range, with optional rounding
function math.clamp(val, lower, upper)
assert(val and lower and upper, "not enough arguments provided in math.clamp")
return math.min(math.max(val, lower), upper)
end
-- debug function to pretty print tables recursively
function print_r ( t )... | unlicense |
dr01d3r/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 |
TcT2k/wxFormBuilder | build/premake/4.3/src/base/io.lua | 7 | 1503 | --
-- io.lua
-- Additions to the I/O namespace.
-- Copyright (c) 2008-2009 Jason Perkins and the Premake project
--
--
-- Prepare to capture the output from all subsequent calls to io.printf(),
-- used for automated testing of the generators.
--
function io.capture()
io.captured = ''
end
--
-- Returns the... | gpl-2.0 |
SalvationDevelopment/Salvation-Scripts-Production | c71415349.lua | 2 | 1427 | --ハンプティ・ダンディ
function c71415349.initial_effect(c)
--turn set
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(71415349,0))
e1:SetCategory(CATEGORY_POSITION)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetTarget(c71415349.target)
e1:SetOperation(c71415349.operation)
c:RegisterE... | gpl-2.0 |
Herve-M/OpenRA | mods/ra/maps/soviet-11a/soviet11a-AI.lua | 7 | 6684 | --[[
Copyright 2007-2022 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you 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) any later vers... | gpl-3.0 |
SalvationDevelopment/Salvation-Scripts-Production | c85255550.lua | 2 | 1244 | --異国の剣士
function c85255550.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(85255550,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_BATTLED)
e1:SetCondition(c85255550.condition)
e1:SetOperation(c85255550.operation)
c:Reg... | gpl-2.0 |
thegrb93/wire | lua/wire/stools/textentry.lua | 8 | 1440 | -- Author: mitterdoo (with help from Divran)
WireToolSetup.setCategory("Input, Output/Keyboard Interaction")
WireToolSetup.open("textentry","Text Entry","gmod_wire_textentry",nil,"Text Entries")
if CLIENT then
language.Add( "Tool.wire_textentry.name", "Wire Text Entry" )
language.Add( "Tool.wire_textentry.desc", "In... | apache-2.0 |
dr01d3r/darkstar | scripts/zones/QuBia_Arena/mobs/Death_Clan_Destroyer.lua | 17 | 4261 | -----------------------------------
-- Area: QuBia_Arena
-- MOB: Death Clan Destroyer
-----------------------------------
package.loaded["scripts/zones/QuBia_Arena/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/QuBia_Arena/TextIDs");
require("scripts/globals/missions");
require("scripts/gl... | gpl-3.0 |
dr01d3r/darkstar | scripts/zones/Cloister_of_Gales/mobs/Ogmios.lua | 23 | 1336 | -----------------------------------
-- Area: Cloister of Gales
-- MOB: Ogmios
-- Involved in Quest: Carbuncle Debacle
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
-----------------------------------
-- OnMobSpawn Action
--------------------------------... | gpl-3.0 |
Baylamon/Illarion-Content | npc/base/talk.lua | 1 | 6236 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
g0g0dancer/searework | scripts/hoverdepthcharge.lua | 6 | 4227 | include "constants.lua"
local spGetUnitRulesParam = Spring.GetUnitRulesParam
local base, shield, front, bottom, back = piece('base', 'shield', 'front', 'bottom', 'back')
local rim1, door1, rim2, door2 = piece('rim1', 'door1', 'rim2', 'door2')
local turretbase, turret, gun, pads, flare1, flare2 = piece('turretbase', '... | gpl-2.0 |
GreatBigBushyBeard/PAYDAY-2-BeardLib | Modules/Utils/DependenciesModule.lua | 2 | 4343 | DependenciesModule = DependenciesModule or BeardLib:ModuleClass("Dependencies", ModuleBase)
function DependenciesModule:Load(config)
config = config or self._config
local missing_dep = false
for _, dep in ipairs(config) do
if dep.name then
local meta = dep._meta:lower()
loc... | mit |
lxl1140989/6291-xl | feeds/luci/contrib/luasrcdiet/lua/optlex.lua | 125 | 31588 | --[[--------------------------------------------------------------------
optlex.lua: does lexer-based optimizations
This file is part of LuaSrcDiet.
Copyright (c) 2008 Kein-Hong Man <khman@users.sf.net>
The COPYRIGHT file describes the conditions
under which this software may be distributed.
See the Chan... | gpl-2.0 |
jb1717/Algorithm-Implementations | Breadth_First_Search/Lua/Yonaba/bfs.lua | 26 | 3153 | -- Generic Breadth-First search algorithm implementation
-- See : http://en.wikipedia.org/wiki/Breadth-first_search
-- Notes : this is a generic implementation of Breadth-First search algorithm.
-- It is devised to be used on any type of graph (point-graph, tile-graph,
-- or whatever. It expects to be initialized with... | mit |
salamader/ffxi-a | scripts/zones/Qufim_Island/npcs/Jiwon.lua | 2 | 1808 | -----------------------------------
-- Area: Qufim Island
-- NPC: Jiwon
-- @pos -249 -19 300 126
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
require("... | gpl-3.0 |
salamader/ffxi-a | scripts/globals/effects/chr_down.lua | 19 | 1084 | -----------------------------------
--
-- EFFECT_CHR_DOWN
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
if((target:getStat(MOD_CHR) - effect... | gpl-3.0 |
TeslaRus/OpenTomb | scripts/level/tr1/LEVEL4.lua | 1 | 5538 | -- OPENTOMB LEVEL SCRIPT
-- FOR TOMB RAIDER, LEVEL4
print("level/tr1/level4.st_francis_folly->level_loaded !");
level_PostLoad = function()
end;
level_PreLoad = function()
-- STATIC COLLISION FLAGS ------------------------------------------------------
--------------------------------------------------------... | lgpl-3.0 |
salamader/ffxi-a | scripts/globals/items/felicifruit.lua | 3 | 1097 | -----------------------------------------
-- ID: 5964
-- Item: Felicifruit
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -7
-- Intelligence 5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
---... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.