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 |
|---|---|---|---|---|---|
MOSAVI17/Mosavi3 | bot/seedbot.lua | 1 | 10051 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '1.0'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
retu... | gpl-2.0 |
b03605079/darkstar | scripts/globals/spells/bluemagic/1000_needles.lua | 3 | 1147 | -----------------------------------------
-- 1000 Needles
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/bluemagic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
f... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Horlais_Peak/bcnms/hostile_herbivores.lua | 13 | 1701 | -----------------------------------
-- Area: Horlias peak
-- Name: Hostile Herbivores
-- BCNM50
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Horlais_Peak/TextIDs");
-----------------------------------
-- EXAM... | gpl-3.0 |
b03605079/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/Hume_Bones.lua | 9 | 1983 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Hume Bones
-- Involved in Quests: Blue Ribbon Blues
-- @pos 299 0.1 19 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
Naftoreiclag/Genre-Entities | run/test/more/gensys_genview.lua | 1 | 1846 | return function(sample_size)
sample_size = sample_size or 100000
pegr.add_component('position.cp', {
x = {'f64', 17},
y = {'f64', 19},
})
pegr.add_component('flavor.cp', {
flavor = {'str', 'sweet'},
strength = {'f64', 1.0},
})
pegr.add_archetype('fruit.at', {
location = {
__is = 'position.cp',
},
t... | apache-2.0 |
DI3HARD139/dcb-everamzah- | mods/mobs/spawner.lua | 1 | 3813 |
-- mob spawner
local spawner_default = "mobs:pumba 10 15 0 0"
minetest.register_node("mobs:spawner", {
tiles = {"mob_spawner.png"},
drawtype = "glasslike",
paramtype = "light",
walkable = true,
description = "Mob Spawner",
groups = {cracky = 1},
on_construct = function(pos)
local meta = minetest.get_meta(... | gpl-3.0 |
thesrinivas/rakshak | rakshak-probe/userspace/sysdig/chisels/v_marathon_groups.lua | 6 | 2458 | --[[
Copyright (C) 2013-2014 Draios inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without... | gpl-2.0 |
PicassoCT/Journeywar | scripts/mtw.lua | 1 | 13219 | include "createCorpse.lua"
--Define the wheel pieces
--Define the pieces of the weapon
local spawn = piece "spawn"
local mtwteletur = piece "mtwteletur"
local turret = piece "mtwmgsmoke"
local flare01 = piece "flare01"
local flare02 = piece "flare02"
local flare03 = piece "flare03"
local flare = piece "flare"
--define... | gpl-3.0 |
b03605079/darkstar | scripts/globals/weaponskills/full_swing.lua | 30 | 1260 | -----------------------------------
-- Full Swing
-- Staff weapon skill
-- Skill Level: 200
-- Delivers a single-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Flame Gorget & Thunder Gorget.
-- Aligned with the Flame Belt & Thunder Belt.
-- Element: None
-- Modifiers: S... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Mhaura/npcs/Jikka-Abukka.lua | 17 | 1508 | -----------------------------------
-- Area: Mhaura
-- NPC: Jikka-Abukka
-- Involved in Quest: Riding on the Clouds
-- @pos -13 -15 58 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
requir... | gpl-3.0 |
xpol/luarocks | src/luarocks/fetch/git_ssh.lua | 15 | 1382 | --- Fetch back-end for retrieving sources from Git repositories
-- that use ssh:// transport. For example, for fetching a repository
-- that requires the following command line:
-- `git clone ssh://git@example.com/path/foo.git
-- you can use this in the rockspec:
-- source = { url = "git+ssh://git@example.com/path/foo.... | mit |
b03605079/darkstar | scripts/zones/North_Gustaberg/npcs/Stone_Monument.lua | 32 | 1291 | -----------------------------------
-- Area: North Gustaberg
-- NPC: Stone Monument
-- Involved in quest "An Explorer's Footsteps"
-- @pos -199.635 96.106 505.624 106
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil;
-----------------------------------
req... | gpl-3.0 |
PicassoCT/Journeywar | units/journey/jmadmax.lua | 1 | 1450 | initializeRaiderWeapons = function ()
local T= {}
for i=1, 11 do
if i ==3 or i== 4 then
T[i] = {
name = "raiderarrow",
onlyTargetCategory = [[ LAND ]],
}
elseif i == 8 or i==9 then
T[i] = {
name = "raiderflak",
onlyTargetCategory = [[ AIR ]],
}
elseif i >9 then
T[i] = {
... | gpl-3.0 |
b03605079/darkstar | scripts/zones/West_Ronfaure/npcs/Harvetour.lua | 17 | 1862 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Harvetour
-- Type: Outpost Vendor
-- @pos -448 -19 -214 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("script... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Palborough_Mines/npcs/Old_Toolbox.lua | 19 | 1408 | -----------------------------------
-- Area: Palborough Mines
-- NPC: Old Toolbox
-- Continues Quest: The Eleventh's Hour
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("script... | gpl-3.0 |
PicassoCT/Journeywar | gamedata/explosions/SliceGunHit.lua | 1 | 2040 | return {
["slicegunhit"] = {
alwaysvisible = true,
usedefaultexplosions = false,
backwards = {
air = true,
class = [[CBitmapMuzzleFlame]],
count = 1,
ground = true,
underwater = 1,
water ... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Windurst_Woods/npcs/Rakoh_Buuma.lua | 19 | 2699 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Rakoh Buuma
-- Starts Windurst Missions
-- @pos 106 -5 -23 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
package.loaded["scripts/globals/missions"] = nil;
--------------------------------... | gpl-3.0 |
b03605079/darkstar | scripts/globals/abilities/stutter_step.lua | 3 | 6105 | -----------------------------------
-- Ability: Stutter Step
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/weaponskills");
-----------------------------------
-- onUseAbility
-----------------------------------
--Unco... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Castle_Zvahl_Baileys/npcs/Treasure_Coffer.lua | 12 | 4195 | -----------------------------------
-- Area: Castle Zvahl Baileys
-- NPC: Treasure Coffer
-- @zone 161
-- @pos -75 0 19
-----------------------------------
package.loaded["scripts/zones/Castle_Zvahl_Baileys/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("sc... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Spire_of_Mea/npcs/_0l0.lua | 12 | 1455 | -----------------------------------
-- Area: Spire of Mea
-- NPC: Web of Recollection
-----------------------------------
package.loaded["scripts/zones/Spire_of_Mea/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/quests");
require("scripts/global... | gpl-3.0 |
errorscode/code | plugins/name-maker.lua | 1 | 28800 | local function run(msg, matches)
if #matches < 2 then
return "بعد از این دستور، با قید یک فاصله کلمه یا جمله ی مورد نظر را جهت زیبا نویسی وارد کنید"
end
if string.len(matches[2]) > 20 then
return "حداکثر حروف مجاز 20 کاراکتر انگلیسی و عدد است"
end
local font_base = "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,... | gpl-2.0 |
thesrinivas/rakshak | rakshak-probe.bkup/userspace/sysdig/chisels/proc_exec_time.lua | 6 | 4406 | --[[
USAGE: sysdig -c proc_exec_time
eg,
sysdig -c proc_exec_time # show processes that have finished
sysdig -c proc_exec_time disable_colors" # show processes that have finished w/ no colors
sysdig -pc -c proc_exec_time # show processes that have finished and container output
Copyright (C) 2014 Dr... | gpl-2.0 |
xpol/luarocks | src/luarocks/build/make.lua | 8 | 3417 |
--- Build back-end for using Makefile-based packages.
local make = {}
local unpack = unpack or table.unpack
local fs = require("luarocks.fs")
local util = require("luarocks.util")
local cfg = require("luarocks.cfg")
--- Call "make" with given target and variables
-- @param make_cmd string: the make command to be us... | mit |
PicassoCT/Journeywar | gamedata/explosions/green_electric_explosion.lua | 1 | 2173 | -- electric_explosion
return {
["green_electric_explosion"] = {
electric1 = {
air = true,
class = [[heatcloud]],
count = 3,
ground = true,
water = true,
properties = {
alwaysvisible = true,
... | gpl-3.0 |
Astraalivankila/TF416 | game/dota_addons/map_terrain/scripts/vscripts/events.lua | 3 | 10303 | -- This file contains all barebones-registered events and has already set up the passed-in parameters for your use.
-- Do not remove the GameMode:_Function calls in these events as it will mess with the internal barebones systems.
-- Cleanup a player when they leave
function GameMode:OnDisconnect(keys)
DebugPrint('[... | gpl-2.0 |
b03605079/darkstar | scripts/zones/LaLoff_Amphitheater/bcnms/ark_angels_5.lua | 13 | 3269 | -----------------------------------
-- Area: LaLoff Amphitheater
-- Name: Ark Angels 5 (Galka)
-----------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
require("scripts/globals/missio... | gpl-3.0 |
Aquanim/Zero-K | shaders/GLSL/infoLOS.lua | 7 | 2288 | local Spring = Spring
local alwaysColor, losColor, radarColor, jamColor, radarColor2 = Spring.GetLosViewColors()
return {
definitions = {
Spring.GetConfigInt("HighResInfoTexture") and "#define HIGH_QUALITY" or "",
},
vertex = [[#version 130
varying vec2 texCoord;
void main() {
texCoord = gl_MultiTexCoord0.... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Port_Jeuno/npcs/Gaura.lua | 12 | 1307 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Guara
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
require("scripts/zones/Port_Jeuno/TextIDs");
-----------------------------------
-- onTrade Action
---------------------... | gpl-3.0 |
BlindGarret/gamecode4 | Assets/Scripts/DecisionTreeBrain.lua | 44 | 6660 | --========================================================================
-- DecisionTreeBrain.lua : A brain implemented using a simple decision tree
--
-- Part of the GameCode4 Application
--
-- GameCode4 is the sample application that encapsulates much of the source code
-- discussed in "Game Coding Complete -... | lgpl-3.0 |
b03605079/darkstar | scripts/globals/items/bunch_of_buburimu_grapes.lua | 35 | 1223 | -----------------------------------------
-- ID: 4503
-- Item: Bunch of Buburimu Grapes
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -6
-- Intelligence 4
-----------------------------------------
require("scripts/globals/status");
------------------------------------... | gpl-3.0 |
b03605079/darkstar | scripts/globals/effects/aftermath_lv1.lua | 17 | 1099 | -----------------------------------
--
-- EFFECT_AFTERMATH_LV1
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
local power = effect:getPower();
if... | gpl-3.0 |
PicassoCT/Journeywar | units/gaia/cdecStreetPlaza.lua | 1 | 1238 | local unitName = "cdecPlaza"
local unitDef = {
name = "cdecFactoryStreetSmall",
Description = "ThereForTheDecal",
objectName = "emptyObjectIsEmpty.s3o",
script = "decalFactory.lua",
buildPic = "placeholder.png",
--cost
buildCostMetal = 0,
buildCostEnergy = 0,
buildTime =1,
--Health
maxDamage = 1200,
idleAutoHeal = 0,
... | gpl-3.0 |
krattai/noo-ebs | docs/zeroMQ-guide2/examples/Lua/taskwork2.lua | 2 | 1176 | --
-- Task worker - design 2
-- Adds pub-sub flow to receive and respond to kill signal
--
-- Author: Robert G. Jakabosky <bobby@sharedrealm.com>
--
require"zmq"
require"zmq.poller"
require"zhelpers"
local context = zmq.init(1)
-- Socket to receive messages on
local receiver = context:socket(zmq.PULL)
receiver:co... | bsd-2-clause |
felipeprov/premake-core | tests/base/test_detoken.lua | 2 | 3288 | --
-- tests/base/test_detoken.lua
-- Test suite for the token expansion API.
-- Copyright (c) 2011-2014 Jason Perkins and the Premake project
--
local suite = test.declare("detoken")
local detoken = premake.detoken
--
-- Setup
--
local x, action
local environ = {}
function suite.setup()
action = premake.ac... | bsd-3-clause |
Anubhav652/GTW-RPG | [resources]/GTWgroups/c_gui.lua | 2 | 12332 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Sebbe (smart), Mr_Moose
Source code: https://github.com/GTWCode/GTW-RPG/
Bugtracker: http://forum.404rq.com/bug-reports/
Suggestions: http://forum.4... | gpl-3.0 |
thesrinivas/rakshak | rakshak-probe/userspace/elasticsearch-lua/src/elasticsearch/endpoints/Nodes/Info.lua | 2 | 1953 | -------------------------------------------------------------------------------
-- Importing modules
-------------------------------------------------------------------------------
local NodesEndpoint = require "elasticsearch.endpoints.Nodes.NodesEndpoint"
--------------------------------------------------------------... | gpl-2.0 |
andersoneves/projetos | lua/ran.lua | 1 | 1998 | function mrand(i,f)
return math.random(i,f);
end
function tableHasKey(table,key)
return table[key] ~= nil
end
function groups(i)
groups={};
math.randomseed(os.time());
for a=1,i do
gr='grupo'..a;
c=mrand(1,i);
while(tableHasKey(groups,c)~= false)do
c=mrand(1,i);
end
groups[c]=gr;
end
for a=1,i... | unlicense |
AdventureZ/mta_dayz_new_gamemode2015 | DayZ/weather.lua | 1 | 1083 | function setWeatherConfig()
local hour,minute = getTime()
if hour >= 12 and hour <= 14 then
setWeather(4)
elseif hour >= 14 and hour <= 17 then
setWeather(8)
elseif hour >= 17 and hour <= 20 then
setWeather(7)
elseif hour >= 20 and hour <= 21 then
setWeather(7)
elseif hour >= 21 and hour <= 23 then
s... | epl-1.0 |
b03605079/darkstar | scripts/globals/items/slice_of_hare_meat.lua | 17 | 1320 | -----------------------------------------
-- ID: 4358
-- Hare Meat
-- 5 Minutes, food effect, Galka Only
-----------------------------------------
-- Strength +1
-- Intelligence -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnI... | gpl-3.0 |
b03605079/darkstar | scripts/globals/items/bowl_of_tomato_soup.lua | 35 | 1498 | -----------------------------------------
-- ID: 4420
-- Item: bowl_of_tomato_soup
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- Agility 3
-- Vitality -1
-- HP Recovered While Healing 5
-- Ranged Accuracy % 9 (cap 15)
-----------------------------------------
require("scripts/... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Bastok_Markets/npcs/HomePoint#3.lua | 12 | 1250 | -----------------------------------
-- Area: Bastok Markets
-- NPC: HomePoint#3
-- @pos -189 -8 26 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Bastok_Markets/TextIDs");
require("scripts/glo... | gpl-3.0 |
stone-jin/avbot | extension/luascript/libs/luascript/tishen.lua | 3 | 7141 | n=1
table.insert(main_help_table,".tishen 得知自己的替身 测试中")
t1={
"近距离力量型",
"近距离力量型",
"近距离力量型",
"远距离操纵型",
"远距离操纵型",
"远距离操纵型",
"远距离自动操纵型",
"远距离自动操纵型",
"远距离自动操纵型",
""
}
--say_qun=print
function tishen(msg,msg_time,buddy_name,buddy_num,qun_name,qun_num)
l_msg=string.lower(msg)
l_msg=string.gsub(l_msg,"%[im... | agpl-3.0 |
b03605079/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/HomePoint#2.lua | 12 | 1219 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: HomePoint#2
-- @pos -130 0.001 -16 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
require(... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Rakh_Mhappyoh.lua | 38 | 1051 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Rakh Mhappyoh
-- Type: Standard NPC
-- @zone: 94
-- @pos -55.989 -4.5 48.365
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil... | gpl-3.0 |
b03605079/darkstar | scripts/globals/items/salmon_sub_sandwich.lua | 35 | 1501 | -----------------------------------------
-- ID: 4355
-- Item: salmon_sub_sandwich
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 2
-- Agility 1
-- Vitality 1
-- Intelligence 2
-- Mind -2
-- Ranged ACC 2
-----------------------------------------
require("scripts/gl... | gpl-3.0 |
immibis/wiremod | lua/entities/gmod_wire_simple_explosive.lua | 9 | 2037 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Simple Explosive"
ENT.WireDebugName = "Simple Explosive"
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
... | apache-2.0 |
technomancy/orb | init.lua | 1 | 2173 | -- a fake lil' OS
assert(setfenv, "Needs lua 5.1; sorry.")
orb = { dir = (minetest and minetest.get_modpath("orb")) or ... }
dofile(orb.dir .. "/utils.lua")
dofile(orb.dir .. "/fs.lua")
dofile(orb.dir .. "/shell.lua")
dofile(orb.dir .. "/process.lua")
-- for interactive use, but also as a sample of how the API work... | gpl-3.0 |
larsnorbergofficial/DiabolicUI | modules/blizzard/containers.lua | 2 | 11244 | local ADDON, Engine = ...
local Module = Engine:NewModule("Blizzard: Containers")
local C = Engine:GetDB("Data: Colors")
Module:SetIncompatible("BlizzardBagsPlus")
Module:SetIncompatible("Backpacker")
-- Lua API
local _G = _G
local string_find = string.find
local string_gsub = string.gsub
local string_match = string.... | mit |
b03605079/darkstar | scripts/zones/Selbina/npcs/Yulon-Polon.lua | 16 | 3638 | -----------------------------------
-- Area: Selbina
-- NPC: Yulon-Polon
-- Type: Title Change NPC
-- @pos 45.998 -16.273 15.739 248
-----------------------------------
require("scripts/globals/titles");
local title2 = { CORDON_BLEU_FISHER , ECOLOGIST , LIL_CUPID , ACE_ANGLER , GOLD_HOOK , MYTHRIL_HOOK , SILVER_... | gpl-3.0 |
ntrischi/dotfiles | .config/awesome/themes/copland/theme.lua | 4 | 6973 | --[[
Copland Awesome WM config
github.com/copycat-killer
--]]
theme = {}
theme.dir = os.getenv("HOME") .. "/.config/awesome/themes/copland"
theme.wallpaper ... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Windurst_Woods/npcs/Mocchi_Katsartbih.lua | 38 | 1048 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Mocchi Katsartbih
-- Type: Standard NPC
-- @zone: 241
-- @pos -13.225 -4.888 -164.108
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-... | gpl-3.0 |
immibis/wiremod | lua/wire/default_data_files.lua | 6 | 112462 | //{"expression2/":{"expression2/_helloworld_.txt":"@name Hello World\r\n@inputs A B\r\n@outputs Add Sub Mul Div\r\n@outputs GreaterThan Highest Lowest\r\n@outputs Vector:vector\r\n@persist D\r\n@trigger all\r\n\r\nAdd = A + B\r\nSub = A - B\r\nMul = A * B\r\nDiv = A / B\r\n\r\nGreaterThan = A > B\r\n\r\nif(A > B) {\r\n... | apache-2.0 |
b03605079/darkstar | scripts/zones/Spire_of_Dem/npcs/_0j0.lua | 12 | 1421 | -----------------------------------
-- Area: Spire_of_Dem
-- NPC: Web of Recollections
-- @pos 0.000 -2.0 247.992 19
-----------------------------------
package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/quests");
r... | gpl-3.0 |
b03605079/darkstar | scripts/globals/spells/bluemagic/chaotic_eye.lua | 2 | 1257 | -----------------------------------------
-- Spell: Chaoctic Eye
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster... | gpl-3.0 |
PicassoCT/Journeywar | LuaIntro/LuaGadgets/Gadgets/unit_script.lua | 1 | 32025 |
-- Author: Tobi Vollebregt
--[[
Please, think twice before editing this file. Compared to most gadgets, there
are some complex things going on. A good understanding of Lua's coroutines is
required to make nontrivial modifications to this file.
In other words, HERE BE DRAGONS =)
Known issues:
- {Query,AimFrom,Aim,... | gpl-3.0 |
PicassoCT/Journeywar | LuaRules/Gadgets/jw_ecologicRedux.lua | 1 | 3583 | function gadget:GetInfo()
function isPlanetFlammeable()
if Game.mapHardness > 0 and Game.windMin > 0 and Game.gravity > 30 then
badwordsTable = { "cold", "ice", "frost", "dessert", "sand", "dune", "snow", "moon", "glacier", "comet", "red", "planet" }
for i = 1, #badwordsTable, 1 do
... | gpl-3.0 |
stevedonovan/Penlight | lua/pl/config.lua | 1 | 6734 | --- Reads configuration files into a Lua table.
-- Understands INI files, classic Unix config files, and simple
-- delimited columns of values. See @{06-data.md.Reading_Configuration_Files|the Guide}
--
-- # test.config
-- # Read timeout in seconds
-- read.timeout=10
-- # Write timeout in seconds
-- wri... | mit |
Aquanim/Zero-K | units/chickenflyerqueen.lua | 2 | 9834 | return { chickenflyerqueen = {
unitname = [[chickenflyerqueen]],
name = [[Chicken Queen]],
description = [[Clucking Hell!]],
acceleration = 1.2,
activateWhenBuilt = true,
airHoverFactor = 0,
brakeRate = 0.8,
buildCostEnergy = 0,
buildCostMe... | gpl-2.0 |
PicassoCT/Journeywar | weapons/cChainLightning.lua | 1 | 1151 | local weaponName = "cchainlightning"
local weaponDef = {
name = "LightninBolt",
weaponType = [[MissileLauncher]],
Accuracy = 1000,
--Physic/flight path
range = 1200,
reloadtime = 3,
weaponVelocity = 250,
startVelocity = 5,
weaponAcceleration = 50,
flightTime = 18.5,
BurnBlow... | gpl-3.0 |
PicassoCT/Journeywar | gamedata/explosions/unitrupture.lua | 1 | 3298 | -- unitrupture
return {
["unitrupture"] = {
dirtg = {
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
properties = {
airdrag = 0.7,
alwaysvisible = true,
colormap = [[0.1 0.1 0.1 1.0 0.5 0... | gpl-3.0 |
tst2005/LuaMinify | CommandLineBeautify.lua | 2 | 2714 | --
-- beautify
--
-- A command line utility for beautifying lua source code using the beautifier.
--
local util = require'Util'
local Parser = require'ParseLua'
local Format_Beautify = require'FormatBeautiful'
local ParseLua = Parser.ParseLua
local PrintTable = util.PrintTable
local function splitFilename(name)
--ta... | mit |
Aquanim/Zero-K | LuaRules/Gadgets/CAI/ScoutHeatmapHandler.lua | 8 | 2452 | --[[ Handles the scouting unit job
* Add units to this handler to have them controled by it.
* Maintains a heatmap of locations to scout.
* Requires perdiodic UpdateHeatmap and RunJobHandler.
* Only one of these is needed per teamID.
--]]
local HeatmapHandler = VFS.Include("LuaRules/Gadgets/CAI/HeatmapHandler.lua")... | gpl-2.0 |
b03605079/darkstar | scripts/globals/items/cougar_baghnakhs.lua | 16 | 1027 | -----------------------------------------
-- ID: 16702
-- Item: Cougar Baghnakhs
-- Additional Effect: Ice Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
----------------------------... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Norg/npcs/Solby-Maholby.lua | 30 | 1423 | -----------------------------------
-- Area: Norg
-- NPC: Solby-Maholby
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
require("scripts/zones/Norg/TextIDs");
-----------------------------------
-- onTrade Act... | gpl-3.0 |
immibis/wiremod | lua/entities/gmod_wire_hdd.lua | 9 | 8356 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Flash EEPROM"
ENT.WireDebugName = "WireHDD"
if CLIENT then return end -- No more client
function ENT:OnRemove()
for k,v in pairs(self.CacheUpdated) do
file.Write(self:GetStructName(k),self:MakeFloatTable(self.Cache[k]))
end
end
functio... | apache-2.0 |
DebugBill/domoticz | dzVents/runtime/Device.lua | 4 | 1618 | local utils = require('Utils')
local Adapters = require('Adapters')
local TimedCommand = require('TimedCommand')
local TIMED_OPTIONS = require('TimedCommandOptions')
local function Device(domoticz, data, dummyLogger)
local self = {}
local state
local adapterManager = Adapters(dummyLogger)
function self.update(n... | gpl-3.0 |
codedustgames/caress-framework | benchmarks/classes/method_calling.lua | 1 | 1325 | -- Caress, a small framework for games in lua and love.
-- Copyright (C) 2016 Erivaldo Filho "desadoc@gmail.com"
-- 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 3 of t... | gpl-3.0 |
thesrinivas/rakshak | rakshak-probe/userspace/elasticsearch-lua/tests/lib/operations.lua | 2 | 7699 | -- A collection of individual operations that will be tested with other components
-- Importing modules
local elasticsearch = require "elasticsearch"
local util = require "lib.util"
-- Setting up environment
local _ENV = lunit.TEST_CASE "tests.integration.operations"
-- Declaring module
local operations = {}
local ... | gpl-2.0 |
chanko08/KillerLibrarian | winleveldialog.lua | 2 | 1551 | local class = require 'lib/hump/class'
local WinLevelDialog = class({})
function WinLevelDialog:init()
self.title_font = love.graphics.newFont('assets/ohwhy.ttf', 48)
self.font = love.graphics.newFont('assets/ohwhy.ttf', 24)
end
function WinLevelDialog:enter(prev)
local js = love.joystick.getJoysticks()
... | mit |
b03605079/darkstar | scripts/zones/PsoXja/npcs/_i94.lua | 17 | 1259 | -----------------------------------
-- Area: Pso'Xja
-- NPC: _i94 (Stone Gate)
-- Notes: Blue Bracelet Door
-- @pos -330.000 14.074 -261.600 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/PsoXja/TextIDs"... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Qulsun.lua | 34 | 1031 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Qulsun
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
-----------... | gpl-3.0 |
immibis/wiremod | lua/wire/stools/keyboard.lua | 8 | 2189 | WireToolSetup.setCategory( "Input, Output/Keyboard Interaction", "Vehicle Control" )
WireToolSetup.open( "keyboard", "Keyboard", "gmod_wire_keyboard", nil, "Keyboards" )
if ( CLIENT ) then
language.Add( "Tool.wire_keyboard.name", "Wired Keyboard Tool (Wire)" )
language.Add( "Tool.wire_keyboard.desc", "Spawns a... | apache-2.0 |
b03605079/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Zabahf.lua | 19 | 1646 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Zabahf
-- Type: Standard NPC
-- @pos -90.070 -1 10.140 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
requi... | gpl-3.0 |
Aquanim/Zero-K | LuaRules/actions.lua | 8 | 7100 | -- $Id: actions.lua 2491 2008-07-17 13:36:51Z det $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: actions
-- brief: hooks for GotChatMsg() and RecvFromSynced() calls
-- author: Dave R... | gpl-2.0 |
Wiladams/schedlua | testy/lookupsite.lua | 2 | 1568 | --lookupsite.lua
package.path = package.path..";../?.lua"
local ffi = require("ffi")
local net = require("linux_net")
local sites = require("sites")
--[[
struct addrinfo {
int ai_flags; // AI_PASSIVE, AI_CANONNAME, ...
int ai_family; // AF_xxx
int ai_socktype; // SOCK_xxx
in... | mit |
Anubhav652/GTW-RPG | [resources]/GTWturf/server.lua | 1 | 22117 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/GTWCode/GTW-RPG/
Bugtracker: http://forum.404rq.com/bug-reports/
Suggestions: http://forum.404rq.com/mta-se... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Port_Windurst/npcs/Janshura-Rashura.lua | 19 | 2704 | -----------------------------------
-- Area: Port Windurst
-- NPC: Janshura Rashura
-- Starts Windurst Missions
-- @pos -227 -8 184 240
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
package.loaded["scripts/globals/missions"] = nil;
----------------------------... | gpl-3.0 |
witgo/nn | ParallelCriterion.lua | 28 | 1355 | local ParallelCriterion, parent = torch.class('nn.ParallelCriterion', 'nn.Criterion')
function ParallelCriterion:__init(repeatTarget)
parent.__init(self)
self.criterions = {}
self.weights = {}
self.gradInput = {}
self.repeatTarget = repeatTarget
end
function ParallelCriterion:add(criterion, weight)
... | bsd-3-clause |
witgo/nn | Mean.lua | 4 | 1297 | local Mean, parent = torch.class('nn.Mean', 'nn.Module')
function Mean:__init(dimension, nInputDims)
parent.__init(self)
dimension = dimension or 1
self.dimension = dimension
-- do not assign default value to nInputDims or it will break backward compatibility
self.nInputDims = nInputDims
self._gradIn... | bsd-3-clause |
b03605079/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Ugrihd.lua | 12 | 10675 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Ugrihd
-- Coin Exchange Vendor
-- @pos -63.079 -6 -28.571 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");... | gpl-3.0 |
b03605079/darkstar | scripts/zones/West_Sarutabaruta_[S]/npcs/Cavernous_Maw.lua | 29 | 1486 | -----------------------------------
-- Area: West Sarutabaruta [S]
-- NPC: Cavernous Maw
-- @pos 0 0 -165 95
-- Teleports Players to West Sarutabaruta
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/... | gpl-3.0 |
Sakura-Winkey/LuCI | applications/luci-app-asterisk/luasrc/model/cbi/asterisk/voicemail_settings.lua | 68 | 2203 | -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require "luci.sys.zoneinfo"
cbimap = Map("asterisk", "Voicemail - Common Settings")
voicegeneral = cbimap:section(TypedSection, "voicegeneral",
"General Voicemail Options", "Common settings for all mailboxes... | apache-2.0 |
qweru/Telebits | plugins/admin.lua | 381 | 7085 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(rec... | gpl-2.0 |
Aquanim/Zero-K | scripts/bomberstrike.lua | 6 | 4559 | include "constants.lua"
include "bombers.lua"
include "fixedwingTakeOff.lua"
local fuselage = piece 'fuselage'
local wingl = piece 'wingl'
local wingr = piece 'wingr'
local wingtipl = piece 'wingtipl'
local wingtipr = piece 'wingtipr'
local enginel = piece 'enginel'
local enginer = piece 'enginer'
local head = piece '... | gpl-2.0 |
stars2014/quick-ng | cocos/scripting/lua-bindings/auto/api/PointLight.lua | 8 | 1061 |
--------------------------------
-- @module PointLight
-- @extend BaseLight
-- @parent_module cc
--------------------------------
-- get or set range
-- @function [parent=#PointLight] getRange
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
--
-- @function... | mit |
centaure/S4 | examples/Liu_OE_17_21897_2009/fig4e.lua | 7 | 1853 | -- Fig. 4e of
-- Victor Liu, Michelle Povinelli, and Shanhui Fan,
-- "Resonance-enhanced optical forces between coupled photonic crystal slabs",
-- Optics Express, Vol. 17, No. 24, 2009
-- The high-Q resonances are not fully resolved with the provided sampling.
S = S4.NewSimulation()
S:SetLattice({1,0}, {0,0}) ... | gpl-2.0 |
BlindGarret/gamecode4 | Assets/Scripts/test.lua | 44 | 2849 | --========================================================================
-- tests.lua : General testing & debugging functions
--
-- Part of the GameCode4 Application
--
-- GameCode4 is the sample application that encapsulates much of the source code
-- discussed in "Game Coding Complete - 4th Edition" by Mike M... | lgpl-3.0 |
PicassoCT/Journeywar | weapons/cHarvestRocket.lua | 1 | 1116 | local weaponName = "charvest"
local weaponDef = {
name = "Harvest Drone",
weaponType = [[MissileLauncher]],
Accuracy = 2000,
--Physic/flight path
range = 1800,
reloadtime = 9000,
weaponVelocity = 250,
startVelocity = 150,
weaponAcceleration = 250,
flightTime = 12.5,
BurnBlow... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Giddeus/Zone.lua | 2 | 1626 | -----------------------------------
--
-- Zone: Giddeus (145)
--
-----------------------------------
package.loaded["scripts/zones/Giddeus/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Giddeus/TextIDs");
-----------------------------------
-- onInitialize
-------------------... | gpl-3.0 |
kostik1337/Urho3D | bin/Data/LuaScripts/32_Urho2DConstraints.lua | 21 | 23031 | -- Urho2D physics Constraints sample.
-- This sample is designed to help understanding and chosing the right constraint.
-- This sample demonstrates:
-- - Creating physics constraints
-- - Creating Edge and Polygon Shapes from vertices
-- - Displaying physics debug geometry and constraints' joints
-- ... | mit |
b03605079/darkstar | scripts/zones/La_Theine_Plateau/npcs/Stone_Monument.lua | 32 | 1296 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Stone Monument
-- Involved in quest "An Explorer's Footsteps"
-- @pos 334.133 50.623 141.163 102
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
... | gpl-3.0 |
fededim/packages | utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/wifi_stations.lua | 58 | 2753 | local ubus = require "ubus"
local iwinfo = require "iwinfo"
local function scrape()
local metric_wifi_stations = metric("wifi_stations", "gauge")
local metric_wifi_station_signal = metric("wifi_station_signal_dbm","gauge")
local metric_wifi_station_inactive = metric('wifi_station_inactive_milliseconds', 'gauge... | gpl-2.0 |
Aquanim/Zero-K | effects/torpedolauncher.lua | 25 | 1343 | -- placeholder
return {
["placeholder"] = {
bubbles = {
air = false,
class = [[CSimpleParticleSystem]],
count = 1,
ground = false,
water = true,
properties = {
airdrag = 0.6,
colormap ... | gpl-2.0 |
PicassoCT/Journeywar | gamedata/explosions/citlightpillar.lua | 1 | 2853 | -- redlight
return {
["citlightpillar"] = {
alwaysvisible = true,
usedefaultexplosions = false,
bitmapmuzzleflamess = {
air = true,
class = [[CBitmapMuzzleFlame]],
count = 1,
ground = true,
underwat... | gpl-3.0 |
Aquanim/Zero-K | LuaUI/Widgets/chili/Handlers/texturehandler.lua | 6 | 3897 | --// =============================================================================
--//
TextureHandler = {}
--// =============================================================================
--//TWEAKING
local timeLimit = 0.2/15 --//time per second / desiredFPS
--// ===============================================... | gpl-2.0 |
thesrinivas/rakshak | rakshak-probe/userspace/elasticsearch-lua/src/elasticsearch/endpoints/Cluster/PendingTasks.lua | 2 | 1733 | -------------------------------------------------------------------------------
-- Importing modules
-------------------------------------------------------------------------------
local Endpoint = require "elasticsearch.endpoints.Endpoint"
------------------------------------------------------------------------------... | gpl-2.0 |
Aquanim/Zero-K | effects/gundam_dodaibombexplode.lua | 25 | 6586 | -- dodaibomb
return {
["dodaibomb"] = {
dirta = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
properties = {
airdrag = 0.7,
alwaysvisible = true,
colormap = [[0.1 0.1 0.1 1.0 0.5 0.5 0... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Cirdas_Caverns_U/Zone.lua | 36 | 1125 | -----------------------------------
--
-- Zone: Cirdas Caverns U
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Cirdas_Caverns_U/TextIDs"] = nil;
require("scripts/zones/Cirdas_Caverns_U/TextIDs");
-----------------------------------
-- onInitial... | gpl-3.0 |
Aquanim/Zero-K | LuaUI/actions.lua | 5 | 8479 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: actions.lua
-- brief: action interface for text commands, and bound commands
-- author: Dave Rodgers, jK
--
-- Copyright (C) 2007-2011.
... | gpl-2.0 |
b03605079/darkstar | scripts/globals/spells/plenilune_embrace.lua | 13 | 1954 | -----------------------------------------
-- Spell: Plenilune Embrace
-- Restores target party member's HP and enhances attack and magic attack..
-- Shamelessly stolen from http://members.shaw.ca/pizza_steve/cure/Cure_Calculator.html
-----------------------------------------
require("scripts/globals/settings");
... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.