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 |
|---|---|---|---|---|---|
Ninjistix/darkstar | scripts/globals/abilities/pets/flaming_crush.lua | 4 | 1355 | ---------------------------------------------------
-- Flaming Crush M=10, 2, 2? (STILL don't know)
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/summon");
require("scripts/globals/magic");
require("scripts/globals/mo... | gpl-3.0 |
lilonglai/redis-2.8.7 | deps/lua/test/life.lua | 888 | 2635 | -- life.lua
-- original by Dave Bollinger <DBollinger@compuserve.com> posted to lua-l
-- modified to use ANSI terminal escape sequences
-- modified to use for instead of while
local write=io.write
ALIVE="¥" DEAD="þ"
ALIVE="O" DEAD="-"
function delay() -- NOTE: SYSTEM-DEPENDENT, adjust as necessary
for i=1,10000 do... | bsd-3-clause |
jagu-sayan/42Premake | src/host/lua-5.1.4/test/life.lua | 888 | 2635 | -- life.lua
-- original by Dave Bollinger <DBollinger@compuserve.com> posted to lua-l
-- modified to use ANSI terminal escape sequences
-- modified to use for instead of while
local write=io.write
ALIVE="¥" DEAD="þ"
ALIVE="O" DEAD="-"
function delay() -- NOTE: SYSTEM-DEPENDENT, adjust as necessary
for i=1,10000 do... | bsd-3-clause |
Ninjistix/darkstar | scripts/zones/Nashmau/Zone.lua | 5 | 1623 | -----------------------------------
--
-- Zone: Nashmau (53)
--
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
require("scripts/globals/missions");
require("scripts/globals/settings");
-------------... | gpl-3.0 |
ahmetabdi/JC2-MP-Racing | client/RaceStates/cStateRacing.lua | 1 | 6264 |
function StateRacing:__init(race , args)
self.race = race
self.racePosition = -1
self.currentLap = 1
self.targetCheckpoint = 1
self.targetArrowValue = 1
self.timer = Timer()
self.numTicks = 0
self.sendCheckpointTimer = Timer()
LargeMessage("GO!" , 2)
Utility.EventSubscribe(self , "PostTic... | mit |
Ninjistix/darkstar | scripts/globals/items/bowl_of_brain_stew.lua | 3 | 1214 | -----------------------------------------
-- ID: 4542
-- Item: Bowl of Brain Stew
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Dexterity 5
-- Intelligence 5
-- Mind 5
-- Health Regen While Healing 3
-- Magic Regen While Healing 3
-----------------------------------------
require("scrip... | gpl-3.0 |
badboyam/hfghf | plugins/anti_fosh.lua | 2 | 1681 | local function run(msg, matches)
if is_owner(msg) then
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)] then
if data[tostring(msg.to.id)]['settings'] then
if data[tostring(msg.to.id)]['settings']['antitag'] then
lock_tag ... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Apollyon/mobs/Mountain_Buffalo.lua | 5 | 1196 | -----------------------------------
-- Area: Apollyon NW
-- NPC: Kaiser Behemoth
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Apollyon/TextIDs");
-----------------------------------
function onMobSpawn(mob)
end;... | gpl-3.0 |
BooM-amour/bomb | plugins/boobs.lua | 3 | 1642 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
Ninjistix/darkstar | scripts/globals/spells/bluemagic/death_scissors.lua | 33 | 1802 | -----------------------------------------
-- Spell: Death Scissors
-- Damage varies with TP
-- Spell cost: 51 MP
-- Monster Type: Vermin
-- Spell Type: Physical (Slashing)
-- Blue Magic Points: 5
-- Stat Bonus: MND+2, CHR+2, HP+5
-- Level: 60
-- Casting Time: 0.5 seconds
-- Recast Time: 24.5 seconds
-- Skillchain Prope... | gpl-3.0 |
mandersan/premake-core | modules/vstudio/_preload.lua | 3 | 2454 | --
-- _preload.lua
-- Define the makefile action(s).
-- Copyright (c) Jason Perkins and the Premake project
--
local p = premake
local project = p.project
-- initialize module.
p.modules.vstudio = p.modules.vstudio or {}
p.modules.vstudio._VERSION = p._VERSION
p.vstudio = p.modules.vstudio
-- load actions.
i... | bsd-3-clause |
Ninjistix/darkstar | scripts/globals/items/winterflower.lua | 3 | 1106 | -----------------------------------------
-- ID: 5907
-- Item: Winterflower
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility +3
-- Intelligence +5
-- Charisma -5
-- Resist Virus +20
-----------------------------------------
require("scripts/globals/status");
-------------------------... | gpl-3.0 |
johnsoch/cuberite | Server/Plugins/APIDump/Classes/Geometry.lua | 1 | 53878 |
-- Geometry.lua
-- Defines the documentation for geometry-related classes:
-- cBoundingBox, cCuboid, cLineBlockTracer, cTracer, Vector3X
return
{
cBoundingBox =
{
Desc = [[
Represents two sets of coordinates, minimum and maximum for each direction; thus defining an
axis-aligned cuboid with floating-point ... | apache-2.0 |
Ninjistix/darkstar | scripts/zones/Heavens_Tower/npcs/Rakano-Marukano.lua | 5 | 1939 | -----------------------------------
-- Area: Heavens Tower
-- NPC: Rakano-Marukano
-- Type: Immigration NPC
-- !pos 6.174 -1 32.285 242
-----------------------------------
package.loaded["scripts/zones/Heavens_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
-------------... | gpl-3.0 |
dinodeck/ninety_nine_days_of_dev | 003_combat_numbers/code/Blob.lua | 10 | 6575 | --
-- The important functions here are
-- Blob:Encode([some table]) Returns a string blob of the serialized data.
-- Blob:Decode([some encoded string]) Returns a lua table from a string blob.
--
Blob = {}
function Blob:Error(value)
print('Cannot encode value')
assert(false, 'Cannot encode value')
end... | mit |
eugenesan/openwrt-luci | applications/luci-olsr/luasrc/model/cbi/olsr/olsrd6.lua | 38 | 16502 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://w... | apache-2.0 |
neofob/sile | languages/da.lua | 1 | 9669 | SILE.hyphenator.languages["da"] = {}
SILE.hyphenator.languages["en"].patterns =
{
".ae3",
".an3k",
".an1s",
".be5la",
".be1t",
".bi4tr",
".der3i",
".diagno5",
".her3",
".hoved3",
".ne4t5",
".om1",
".ove4",
".po1",
".til3",
".yd5r",
"ab5le",
"3abst",
"a3c",
"ade5la",
"5adg",
"a1e",
"5afg",
"5a4f1l",
"af3r",
"af4ri",
"5a... | mit |
dafei2015/hugular_cstolua | Client/Assets/Lua/core/text_format.lua | 15 | 2468 | --
--------------------------------------------------------------------------------
-- FILE: text_format.lua
-- DESCRIPTION: protoc-gen-lua
-- Google's Protocol Buffers project, ported to lua.
-- https://code.google.com/p/protoc-gen-lua/
--
-- Copyright (c) 2010 , 林卓毅 (Zhuoyi Lin) netsnail@gmail.com
... | mit |
mohammad25253/persianguard12 | plugins/plugins.lua | 257 | 4732 | 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 |
Ninjistix/darkstar | scripts/zones/Nyzul_Isle/instances/nashmeira's_plea.lua | 7 | 1942 | -----------------------------------
--
-- TOAU-42: Path of Darkness
--
-----------------------------------
require("scripts/globals/instance")
require("scripts/globals/keyitems");
require("scripts/zones/Nyzul_Isle/IDs");
-----------------------------------
function afterInstanceRegister(player)
local instance = pl... | gpl-3.0 |
mandersan/premake-core | tests/project/test_vpaths.lua | 12 | 3602 | --
-- tests/project/test_vpaths.lua
-- Automated test suite for the project support functions.
-- Copyright (c) 2011-2013 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("project_vpaths")
local project = p.project
--
-- Setup and teardown
--
local wks, prj
function suite.... | bsd-3-clause |
Inorizushi/DDR-SN1HD | BGAnimations/ScreenGameplay out/rave/default.lua | 1 | 1178 | local t = Def.ActorFrame {
LoadActor(("../../cleared"))..{
StartTransitioningCommand=cmd(play);
};
---- DOOR OPEN > CLOSE CLOSE > OPEN
LoadActor(THEME:GetPathB("","Door1"))..{
InitCommand=cmd(x,SCREEN_CENTER_X-SCREEN_WIDTH;CenterY;halign,1);
OnCommand=cmd(sleep,1.3;linear,0.75;x,SCREEN_CENTER_X+51);
};
Loa... | gpl-3.0 |
wounds1/zaza2 | plugins/banhammer.lua | 8 | 12647 |
local function pre_process(msg)
local data = load_data(_config.moderation.data)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Che... | gpl-2.0 |
dinodeck/ninety_nine_days_of_dev | 005_bitmap_text/code/EventQueue.lua | 10 | 3535 |
EventQueue = {}
EventQueue.__index = EventQueue
function EventQueue:Create()
local this =
{
mQueue = {},
}
setmetatable(this, self)
return this
end
function EventQueue:Add(event, timePoints)
local queue = self.mQueue
-- Instant event
if timePoints == -1 then
event.mC... | mit |
Ninjistix/darkstar | scripts/globals/mobskills/trample.lua | 33 | 1059 | ---------------------------------------------------
-- Trample
-- Family: Bahamut
-- Description: Deals physical damage to enemies in an area of effect. Additional effect: Knockback + Bind
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range:
-- Notes:
----------------------------------------------... | gpl-3.0 |
abosalah22/zak | libs/feedparser.lua | 543 | 11955 | local LOM = assert(require("lxp.lom"), "LuaExpat doesn't seem to be installed. feedparser kind of needs it to work...")
local XMLElement = (loadfile "./libs/XMLElement.lua")()
local dateparser = (loadfile "./libs/dateparser.lua")()
local URL = (loadfile "./libs/url.lua")()
local tinsert, tremove, tconcat = table.insert... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Marquis_Gamygyn.lua | 7 | 1301 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Marquis Gamygyn
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
function onMobEngaged(mob,target)
end;
function onMobFight(mob,target)... | gpl-3.0 |
sekodev/starter_template_coronasdk | screens/creditScreen.lua | 2 | 3743 | -- screens.creditSceen
local composer = require ("composer") -- Include the Composer library. Please refer to -> http://docs.coronalabs.com/api/library/composer/index.html
local scene = composer.newScene() -- Created a new scene
local mainGroup -- Our main display group. We will add display el... | mit |
Ninjistix/darkstar | scripts/zones/Windurst_Waters/npcs/Puroiko-Maiko_WW.lua | 5 | 2513 | -----------------------------------
-- Area: Windurst Water
-- NPC: Puroiko-Maiko, W.W.
-- X Grant Signet
-- X Recharge Emperor Band, Empress Band, or Chariot Band
-- X Accepts traded Crystals to fill up the Rank bar to open new Missions.
-- X Sells items in exchange for Conquest Points
-- X Start Supply Run Missions... | gpl-3.0 |
ranqingfa/ardupilot | Tools/CHDK-Scripts/Cannon S100/3DR_EAI_S100.lua | 96 | 29695 |
--[[
KAP UAV Exposure Control Script v3.2
-- Released under GPL by waterwingz and wayback/peabody
http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script
3DR EAI 1.0 is a fork of KAP 3.1 with settings specific to Canon cameras triggered off the Pixhawk autopilot.
Changelog:
-Modified Tv, Av, and... | gpl-3.0 |
hvbommel/domoticz | dzVents/runtime/integration-tests/testSystemAndCustomEvents.lua | 6 | 1805 | local dumpfile = '../../../scripts/dzVents/dumps/eventsIntegrationtests.triggers'
describe('Custom events', function()
before_each(function()
end)
after_each(function() end)
describe("Events", function()
it('should log a customEvent triggered by api call', function()
assert.is_true( os.execute('cat ' .. d... | gpl-3.0 |
andrewshadura/omim | 3party/osrm/osrm-backend/profiles/car.lua | 25 | 13033 | -- Begin of globals
--require("lib/access") --function temporarily inlined
barrier_whitelist = { ["cattle_grid"] = true, ["border_control"] = true, ["checkpoint"] = true, ["toll_booth"] = true, ["sally_port"] = true, ["gate"] = true, ["lift_gate"] = true, ["no"] = true, ["entrance"] = true }
access_tag_whitelist = { [... | apache-2.0 |
mandersan/premake-core | modules/vstudio/vs2005_fsproj.lua | 14 | 2611 | --
-- vs2005_fsproj.lua
-- Generate a Visual Studio 2005+ F# project.
-- Copyright (c) Jason Perkins and the Premake project
--
local p = premake
p.vstudio.fs2005 = {}
local vstudio = p.vstudio
local fs2005 = p.vstudio.fs2005
local dotnetbase = p.vstudio.dotnetbase
local project = p.project
local config = p.co... | bsd-3-clause |
mamad-majhol/TeleSecret | plugins/owners.lua | 1467 | 12478 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
rigeirani/seed | plugins/owners.lua | 1467 | 12478 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
blackman1380/antispam | bot/taylor-bot.lua | 1 | 13912 | 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")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()
-- This function is ... | gpl-2.0 |
Ninjistix/darkstar | scripts/globals/items/bowl_of_oceanfin_soup.lua | 3 | 1635 | -----------------------------------------
-- ID: 6070
-- Item: Bowl of Oceanfin Soup
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- Accuracy % 15 Cap 95
-- Ranged Accuracy % 15 Cap 95
-- Attack % 19 Cap 85
-- Ranged Attack % 19 Cap 85
-- Amorph Killer 6
-----------------------------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/items/spirit_sword.lua | 7 | 1266 | -----------------------------------------
-- ID: 16613
-- Spirit Sword
-- Additional effect: Light damage
-- Enchantment: TP+100
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------
function on... | gpl-3.0 |
ASHRAF97/ASHRAFKASPER | bot/TH3BOSS.lua | 1 | 14586 | 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")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()
-- This function is ... | gpl-2.0 |
kazupon/kyototycoon | example/ktscrjsonex.lua | 12 | 3900 | kt = __kyototycoon__
db = kt.db
json = require("json")
-- post a new document
function writedoc(inmap, outmap)
local doc = inmap.doc
if not doc then
return kt.RVEINVALID
end
local doc = json.decode(doc)
local owner = tonumber(doc.owner)
local date = tonumber(doc.date)
local title = tostring(... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/mobskills/seismostomp.lua | 51 | 1154 | ---------------------------------------------
-- Seismostomp
--
-- Description: Damage varies with TP. Additional effect: "Stun."
-- Type: Physical (Blunt)
--
--
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmov... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/items/plate_of_salmon_sushi_+1.lua | 3 | 1224 | -----------------------------------------
-- ID: 5664
-- Item: plate_of_salmon_sushi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Strength 2
-- Accuracy % 15 (cap 72)
-- Ranged ACC % 15 (cap 72)
-- Resist Sleep +2
-----------------------------------------
require("scripts/globals/sta... | gpl-3.0 |
neofob/sile | lua-libraries/repl/plugins/semicolon_suppress_output.lua | 7 | 1408 | -- Copyright (c) 2011-2014 Rob Hoelz <rob@hoelz.ro>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy of
-- this software and associated documentation files (the "Software"), to deal in
-- the Software without restriction, including without limitation the rights to
-- use, copy, modify,... | mit |
TEAMvirus/ViRuS | plugins/Supergroup.lua | 1 | 101744 | --Begin supergrpup.lua
--Check members #Add supergroup
local function check_member_super(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
if success == 0 then
send_large_msg(receiver, "Promote me to admin first!")
end
for k,v in pair... | gpl-2.0 |
copystudy/squish | minify/squish.minify.lua | 3 | 2824 | local optlex = require "optlex"
local optparser = require "optparser"
local llex = require "llex"
local lparser = require "lparser"
local minify_defaults = {
none = {};
debug = { "whitespace", "locals", "entropy", "comments", "numbers" };
default = { "comments", "whitespace", "emptylines", "numbers", "locals" };
b... | mit |
carnalis/Urho3D | Source/ThirdParty/LuaJIT/src/jit/bc.lua | 43 | 5620 | ----------------------------------------------------------------------------
-- LuaJIT bytecode listing module.
--
-- Copyright (C) 2005-2016 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | mit |
ccyphers/kong | spec/03-plugins/02-key-auth/01-api_spec.lua | 1 | 9678 | local cjson = require "cjson"
local helpers = require "spec.helpers"
describe("Plugin: key-auth (API)", function()
local consumer
local admin_client
setup(function()
assert(helpers.dao.apis:insert {
name = "keyauth1",
upstream_url = "http://mockbin.com",
hosts = { "keyauth1.test" },
})
... | apache-2.0 |
DGA-MI-SSI/YaCo | deps/swig-3.0.7/Examples/lua/pointer/runme.lua | 4 | 1242 | ---- importing ----
if string.sub(_VERSION,1,7)=='Lua 5.0' then
-- lua5.0 doesnt have a nice way to do this
lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example')
assert(lib)()
else
-- lua 5.1 does
require('example')
end
-- First create some objects using the pointer library.
prin... | gpl-3.0 |
ehrenbrav/FCEUX_Learning_Environment | output/luaScripts/Subtitler.lua | 9 | 12580 | --FCEUX Subtitler Express v2, by FatRatKnight
-- I find the built-in subtitles for FCEUX's .fm2 is somewhat inconvenient.
-- This script should make the process smoother.
-- Run the script. Type whatever you like. Letters and such will appear at the
-- top of the game display. The script can output a line of text... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Elysia.lua | 5 | 2029 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Elysia
-- Starts Quest: Unforgiven
-- @zone 26
-- !pos -50.410 -22.204 -41.640
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Tavnazi... | gpl-3.0 |
AlexisBRENON/awesome | spec/gears/object_spec.lua | 6 | 1761 | ---------------------------------------------------------------------------
-- @author Uli Schlachter
-- @copyright 2014 Uli Schlachter
---------------------------------------------------------------------------
local object = require("gears.object")
describe("gears.object", function()
local obj
before_each(f... | gpl-2.0 |
dinodeck/ninety_nine_days_of_dev | 007_map_cure/code/fx/CombatSpriteFx.lua | 6 | 1484 | CombatSpriteFx = {}
CombatSpriteFx.__index = CombatSpriteFx
function CombatSpriteFx:Create(x, y, sprite)
local this =
{
mSprite = sprite,
mPriority = 2,
mX = x or 0,
mY = y or 0,
mColor = color or Vector.Create(1,1,1,1),
mGravity = 700, -- pixels per second
... | mit |
dinodeck/ninety_nine_days_of_dev | 003_combat_numbers/code/fx/CombatSpriteFx.lua | 6 | 1484 | CombatSpriteFx = {}
CombatSpriteFx.__index = CombatSpriteFx
function CombatSpriteFx:Create(x, y, sprite)
local this =
{
mSprite = sprite,
mPriority = 2,
mX = x or 0,
mY = y or 0,
mColor = color or Vector.Create(1,1,1,1),
mGravity = 700, -- pixels per second
... | mit |
wangyi0226/skynet | lualib/md5.lua | 62 | 1054 | ----------------------------------------------------------------------------
-- Modify version from https://github.com/keplerproject/md5
----------------------------------------------------------------------------
local core = require "md5.core"
------------------------------------------------------------------------... | mit |
codedash64/Urho3D | Source/ThirdParty/toluapp/src/bin/lua/variable.lua | 24 | 9336 | -- tolua: variable class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance, support, updates,
-- enhancement... | mit |
Ninjistix/darkstar | scripts/globals/spells/bluemagic/sub-zero_smash.lua | 5 | 2015 | -----------------------------------------
-- Spell: Sub-zero Smash
-- Additional Effect: Paralysis. Damage varies with TP
-- Spell cost: 44 MP
-- Monster Type: Aquans
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 4
-- Stat Bonus: HP+10 VIT+3
-- Level: 72
-- Casting Time: 1 second
-- Recast Time: 30 seconds
-- S... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Nashmau/npcs/Awaheen.lua | 5 | 1588 | -----------------------------------
-- Area: Nashmau
-- NPC: Awaheen
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
-----------------------------------
function onTrade(player... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/abilities/pets/knockout.lua | 2 | 1412 | ---------------------------------------------------
-- Knockout
---------------------------------------------------
require("scripts/globals/status")
require("scripts/globals/settings")
require("scripts/globals/automatonweaponskills")
---------------------------------------------------
function onMobSkillCheck(target... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/valor_minuet_iii.lua | 5 | 1539 | -----------------------------------------
-- Spell: Valor Minuet III
-- Grants Attack bonus to all allies.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return ... | gpl-3.0 |
abosalah22/zak | plugins/ar-media.lua | 2 | 2370 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMEDHISHAM (@oOMOOMOo) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ كتم الوسائط ▀▄ ▄▀ ... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/The_Shrine_of_RuAvitau/Zone.lua | 5 | 5014 | -----------------------------------
--
-- Zone: The_Shrine_of_RuAvitau (178)
--
-----------------------------------
package.loaded["scripts/zones/The_Shrine_of_RuAvitau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/missions");
require("scripts/globals... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Windurst_Waters/npcs/Hakeem.lua | 3 | 1491 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Hakeem
-- Type: Cooking Image Support
-- !pos -123.120 -2.999 65.472 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/abilities/pets/aerial_blast.lua | 4 | 1112 | ---------------------------------------------------
-- Aerial Blast
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/monstertpmoves");
--------------------------------------------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Windurst_Waters/npcs/Lago-Charago.lua | 5 | 1130 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Lago-Charago
-- Type: Adventurer's Assistant
-- !pos -57.271 -11.75 92.503 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
r... | gpl-3.0 |
DDDGamer/factorio-dz-softmod | modules/common/floating-health.lua | 1 | 3640 | -- Floating Health Soft Mod
-- Show the health of a player as a small piece of colored text above their head
-- @usage require('modules/common/floating-health')
-- ------------------------------------------------------- --
-- @author Denis Zholob (DDDGamer)
-- github: https://github.com/deniszholob/factorio-softmod-pac... | gpl-3.0 |
ccyphers/kong | spec/03-plugins/17-aws-lambda/01-access_spec.lua | 1 | 5000 | local helpers = require "spec.helpers"
describe("Plugin: AWS Lambda (access)", function()
local client, api_client
setup(function()
local api1 = assert(helpers.dao.apis:insert {
name = "lambda.com",
hosts = { "lambda.com" } ,
upstream_url = "http://httpbin.org"
})
local api2 = asser... | apache-2.0 |
codedash64/Urho3D | bin/Data/LuaScripts/02_HelloGUI.lua | 13 | 6339 | -- A simple 'HelloWorld' GUI created purely from code.
-- This sample demonstrates:
-- - Creation of controls and building a UI hierarchy
-- - Loading UI style from XML and applying it to controls
-- - Handling of global and per-control events
-- For more advanced users (beginners can skip this section... | mit |
tarantool/tarantool-avro | test/ddt_suite/record_large.lua | 1 | 3126 | local large = [[{
"name": "large",
"type": "record",
"fields": [
{"name": "f01", "type": "int", "default": 1001},
{"name": "f02", "type": "int", "default": 1002},
{"name": "f03", "type": "int", "default": 1003},
{"name": "f04", "type": "int", "default": 1004},
{"name"... | bsd-2-clause |
MessiahAndrw/Stereoscopic-VLC | share/lua/sd/icecast.lua | 6 | 1642 | --[[
$Id$
Copyright © 2010 VideoLAN and AUTHORS
Authors: Fabio Ritrovato <sephiroth87 at videolan dot org>
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
... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Abyssea-Altepa/npcs/qm8.lua | 14 | 1346 | -----------------------------------
-- Zone: Abyssea-Altepa
-- NPC: qm8 (???)
-- Spawns Chickcharney
-- @pos ? ? ? 218
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
--... | gpl-3.0 |
stuta/Luajit-Tcp-Server | ffi_def_create_no_cut.lua | 1 | 25559 | -- ffi_def_create.lua
print()
print(" -- ffi_def_create.lua start -- ")
if jit then
print(jit.version)
else
print(_VERSION)
end
print()
local arg = {...}
local util = require "lib_util"
local json = require "dkjson"
local osname
if true then -- keep ffi valid only inside if to make ZeroBrane debugger work
local f... | bsd-3-clause |
mtroyka/Zero-K | LuaUI/Widgets/cmd_customformations2.lua | 6 | 40293 | function widget:GetInfo()
return {
name = "CustomFormations2",
desc = "Allows you to draw a formation line:"..
"\n mouse drag draw various command on ground."..
"\n ALT+Attack draw attack command on the ground.",
author = "Niobium, modified by Skasi", -- Based on 'Custom Formations' by j... | gpl-2.0 |
mtroyka/Zero-K | LuaUI/Widgets/api_draw_mouse_build.lua | 4 | 2562 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Draw Mouse Build",
desc = "Draws build icons at the mouse position.",
author = "GoogleFrog, xp... | gpl-2.0 |
redstormbot/redstormbot | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
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_print... | gpl-2.0 |
adixcompany/ADiX1 | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
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_print... | agpl-3.0 |
NPLPackages/main | script/ide/Director/SpellCameraHelper.lua | 1 | 17658 | --[[
Title: SpellCameraHelper
Author(s): Leio
Date: 2012/07/03
Desc:
------------------------------------------------------------
NPL.load("(gl)script/ide/Director/SpellCameraHelper.lua");
local SpellCameraHelper = commonlib.gettable("Director.SpellCameraHelper");
------------------------------------------------------... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Rakih_Lyhall.lua | 14 | 1063 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Rakih Lyhall
-- Type: Standard NPC
-- @zone 94
-- @pos -48.111 -4.5 69.712
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-... | gpl-3.0 |
ukoloff/rufus-lua-win | vendor/lua/lib/lua/pl/comprehension.lua | 13 | 9071 | --- List comprehensions implemented in Lua.
--
-- See the [wiki page](http://lua-users.org/wiki/ListComprehensions)
--
-- local C= require 'pl.comprehension' . new()
--
-- C ('x for x=1,10') ()
-- ==> {1,2,3,4,5,6,7,8,9,10}
-- C 'x^2 for x=1,4' ()
-- ==> {1,4,9,16}
-- C '{x,x^2} for x=1,4' ()
-- ==... | mit |
OpenNMT/OpenNMT | test/onmt/HookManagerTest.lua | 4 | 2697 | require('onmt.init')
local tester = ...
local hookManagerTest = torch.TestSuite()
function hookManagerTest.nohook()
local hookManager = onmt.utils.HookManager.new({})
tester:eq(hookManager.hooks, {})
hookManager = onmt.utils.HookManager.new({hook_file=''})
tester:eq(hookManager.hooks, {})
end
function hookM... | mit |
thedraked/darkstar | scripts/commands/takexp.lua | 13 | 1199 | ---------------------------------------------------------------------------------------------------
-- func: takexp <amount> <player>
-- desc: Removes experience points from the target player.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permissio... | gpl-3.0 |
mason-larobina/luakit | lib/downloads.lua | 2 | 11013 | --- Downloads for luakit.
--
-- This module adds support for downloading files from websites, and provides a
-- Lua API to monitor and control the file download process.
--
-- Enabling this module is sufficient for starting downloads, but users will
-- probably wish to also enable the `downloads_chrome` module.
--
-- @... | gpl-3.0 |
moomoomoo309/FamiliarFaces | src/object.lua | 1 | 6677 | --- The "object" class, so to speak. Adds callbacks.
--- @classmod object
local object
object = {
type = "object",
class = object,
cancel = setmetatable({}, {
__newindex = function()
end
}),
globalCallback = {}
}
--- Adds a callback to the given property (running the function when ... | mit |
mtroyka/Zero-K | effects/trail_explosions.lua | 25 | 1063 | -- trail_huge0
return {
["trail_huge0"] = {
fireball1 = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
underwater = 1,
useairlos = true,
water = true,
pro... | gpl-2.0 |
herrfz/RIOT-old | dist/tools/wireshark_dissector/riot.lua | 21 | 2130 | -- RIOT native support for Wireshark
-- A Lua implementation for dissection of RIOT native packets in wireshark
-- @Version: 0.0.1
-- @Author: Martine Lenders
-- @E-Mail: mlenders@inf.fu-berlin.de
do
--Protocol name "RIOT"
local p_riot = Proto("RIOT", "RIOT native packet")
--Protocol Fields
local f_le... | lgpl-2.1 |
thedraked/darkstar | scripts/globals/abilities/pets/tidal_wave.lua | 34 | 1116 | ---------------------------------------------------
-- Tidal Wave
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
require("/scripts/globals/magic");
-----------------------------------------------... | gpl-3.0 |
SnabbCo/snabbswitch | lib/ljsyscall/syscall/freebsd/ioctl.lua | 24 | 4451 | -- ioctls, filling in as needed
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string
local function init(types)
l... | apache-2.0 |
thedraked/darkstar | scripts/zones/Abyssea-Tahrongi/npcs/qm11.lua | 14 | 1379 | -----------------------------------
-- Zone: Abyssea-Tahrongi
-- NPC: qm11 (???)
-- Spawns Muscaliet
-- @pos ? ? ? 45
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
--[... | gpl-3.0 |
thedraked/darkstar | scripts/globals/items/bowl_of_nashmau_stew.lua | 18 | 2062 | -----------------------------------------
-- ID: 5595
-- Item: Bowl of Nashmau Stew
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- MP -100
-- Vitality -10
-- Agility -10
-- Intelligence -10
-- Mind -10
-- Charisma -10
-- Accuracy +15% Cap 25
-- Attack +18% Cap 60
-- ... | gpl-3.0 |
thedraked/darkstar | scripts/globals/abilities/drain_samba.lua | 25 | 1429 | -----------------------------------
-- Ability: Drain Samba
-- Inflicts the next target you strike with Drain daze, allowing all those engaged in battle with it to drain its HP.
-- Obtained: Dancer Level 5
-- TP Required: 10%
-- Recast Time: 1:00
-- Duration: 2:00
-----------------------------------
require("scripts/g... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Abyssea-Altepa/npcs/qm7.lua | 14 | 1340 | -----------------------------------
-- Zone: Abyssea-Altepa
-- NPC: qm7 (???)
-- Spawns Waugyl
-- @pos ? ? ? 218
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
--[[
... | gpl-3.0 |
SFML/SFML-glLoadGen | LoadGen.lua | 1 | 1732 | assert(arg and arg[0], "You ran this script incorrectly.")
--Get the location of our modules relative to here.
local baseDir = arg[0]:match("^(.*[\\/])")
baseDir = baseDir or "./"
assert(baseDir, arg[0] .. " No directory")
--Fixup the package path to be relative to this directory.
package.path = baseDir .. "modules/?... | mit |
thedraked/darkstar | scripts/zones/Meriphataud_Mountains_[S]/npcs/Cavernous_Maw.lua | 29 | 1450 | -----------------------------------
-- Area: Meriphataud Mountains [S]
-- NPC: Cavernous Maw
-- @pos 597 -32 279 97
-- Teleports Players to Meriphataud Mountains
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains_[S]/TextIDs"] = nil;
-----------------------------------
require("sc... | gpl-3.0 |
gowadbd/gowad | plugins/tag_english.lua | 2 | 2429 | --[[
_____ ____ ____ ___ _____
|_ _| _ \ | __ ) / _ \_ _|
| | | |_) | | _ \| | | || |
| | | __/ | |_) | |_| || |
|_| |_| |____/ \___/ |_|
KASPER TP (BY @kasper_dev)
_ __ _ ____ ____ _____ ____ _____ ____
| |/ / / \ / ___|| _ \| ... | gpl-2.0 |
NPLPackages/main | script/ide/terrain_editor.lua | 1 | 9590 | --[[
Title: Terrain editing UI ( Editor Function Only) for ParaEngine
Author(s): LiXizhi
Date: 2005/12
Desc: a collection of overridable terrain (ocean) editing functions.
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/ide/terrain_editor.lua");
-------------------------... | gpl-2.0 |
X-Coder/wire | lua/wire/stools/egp.lua | 9 | 13008 | -- Wire EGP by Divran
WireToolSetup.setCategory( "Visuals/Screens" )
WireToolSetup.open( "egp", "EGP v3", "gmod_wire_egp", nil, "EGPs" )
TOOL.ClientConVar["model"] = "models/kobilica/wiremonitorbig.mdl"
TOOL.ClientConVar["type"] = 1
TOOL.ClientConVar["createflat"] = 1
TOOL.ClientConVar["weld"] = 0
TOOL.ClientConVar["w... | gpl-3.0 |
joyhuang-game/OpenRA | mods/cnc/maps/gdi04b/gdi04b.lua | 29 | 5792 | BhndTrigger = { CPos.New(39, 21), CPos.New(40, 21), CPos.New(41, 21) }
Atk1Trigger = { CPos.New(35, 37) }
Atk2Trigger = { CPos.New(9, 44), CPos.New(10, 44), CPos.New(11, 44), CPos.New(12, 44), CPos.New(13, 44) }
AutoTrigger = { CPos.New(5, 30), CPos.New(6, 30), CPos.New(7, 30), CPos.New(8, 30), CPos.New(9, 30), CPos.Ne... | gpl-3.0 |
mtroyka/Zero-K | LuaRules/Gadgets/CAI/AssetTracker.lua | 9 | 5782 | --[[ Handles force composition and position
* Should be used both for the enemies of a CAI and its allyTeam
* Maintains heatmaps for static/mobile units which are anti land/AA.
--]]
local HeatmapUnitDefID, ListUnitDefID, CombatListUnitDefID, EconomyTargetUnitDefID = VFS.Include("LuaRules/Configs/CAI/assetTrackerConfi... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Abyssea-Tahrongi/npcs/Cavernous_Maw.lua | 29 | 1190 | -----------------------------------
-- Area: Abyssea - Tahrongi
-- NPC: Cavernous Maw
-- @pos -31.000, 47.000, -681.000 45
-- Teleports Players to Tahrongi Canyon
-----------------------------------
package.loaded["scripts/zones/Abyssea-Tahrongi/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
mtroyka/Zero-K | LuaUI/Widgets/dbg_chili_inspector.lua | 19 | 4320 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "ChiliInspector",
desc = "",
author = "",
date = "2013",
license = "GPLv2... | gpl-2.0 |
X-Coder/wire | lua/entities/gmod_wire_spawner.lua | 10 | 6966 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Prop Spawner"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.WireDebugName = "Prop Spawner"
if CLIENT then return end -- No more client
local wire_spawner_delay = CreateConVar( "wire_spawner_delay", game.SinglePlayer() and 0 or 0.2 )
local Gl... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.