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 |
|---|---|---|---|---|---|
AttacqueSuperior/Engine | mods/d2k/maps/harkonnen-07/harkonnen07-AI.lua | 2 | 3574 | --[[
Copyright 2007-2021 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 |
rsergiu2003/Jump-Engine | remote.lua | 1 | 9425 | -- Corona® Remote
--
-- Date: January 31, 2011
--
-- Version: 1.2
--
-- File name: remote.lua
--
-- Author: Matthew Pringle
--
-- Update History: v1.1 Intergrated Compass - v1.2 Intergrated Asynchronous Connection
--
-- Comments: Please see http://www.coronaremote.com/ for more information
--
-- Copyright (C) 2011 Matt... | gpl-3.0 |
ZeroNoFun/The-Aperture | lua/entities/gasl_floor_button_phys.lua | 2 | 4179 | AddCSLuaFile()
DEFINE_BASECLASS("base_anim")
local IsValid = IsValid
local Vector = Vector
local Angle = Angle
local pairs = pairs
local CurTime = CurTime
local tobool = tobool
local istable = istable
local NULL = NULL
local TRANSMIT_PVS = TRANSMIT_PVS
local math = math
local ents = ents
local util = util
local time... | mit |
amenophis1er/prosody-modules | mod_offline_email/mod_offline_email.lua | 32 | 2679 |
local jid_bare = require "util.jid".bare;
local os_time = os.time;
local t_concat = table.concat;
local smtp = require "socket.smtp";
local smtp_server = module:get_option_string("smtp_server", "localhost");
local smtp_user = module:get_option_string("smtp_username");
local smtp_pass = module:get_option_string("smtp_... | mit |
Moe-/RunAway | lib/postshader.lua | 1 | 10482 | --[[
The MIT License (MIT)
Copyright (c) 2014 Marcus Ihde
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, merge,... | mit |
Kthulupwns/darkstar | scripts/zones/Nashmau/npcs/Jajaroon.lua | 34 | 1593 | -----------------------------------
-- Area: Nashmau
-- NPC: Jajaroon
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
require("scripts/globals/shop");
----------... | gpl-3.0 |
FPtje/DarkRP | gamemode/modules/base/sh_gamemode_functions.lua | 1 | 2430 | function GM:SetupMove(ply, mv, cmd)
if ply:isArrested() then
mv:SetMaxClientSpeed(self.Config.arrestspeed)
end
return self.Sandbox.SetupMove(self, ply, mv, cmd)
end
function GM:StartCommand(ply, usrcmd)
-- Used in arrest_stick and unarrest_stick but addons can use it too!
local wep = ply:Ge... | mit |
aa65535/luci | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/apcups.lua | 1 | 2297 | -- Copyright 2015 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.apcups",package.seeall)
function rrdargs( graph, plugin, plugin_instance, dtype )
local voltages = {
title = "%H: Voltages on APC UPS ",
vlabel = "V",
number_... | apache-2.0 |
hj3938/wax | lib/stdlib/ext/http.lua | 19 | 1137 | if not wax.http then return end -- Only load if the wax.http extension has been loaded
function wax.http.post(options)
options["method"] = "POST"
return wax.http.request(options)
end
function wax.http.get(options)
options["method"] = "GET"
return wax.http.request(options)
end
function wax.http.delete(options... | mit |
FPtje/DarkRP | entities/entities/spawned_shipment/commands.lua | 1 | 3105 | --[[---------------------------------------------------------------------------
Create a shipment from a spawned_weapon
---------------------------------------------------------------------------]]
local function createShipment(ply, args)
local id = tonumber(args) or -1
local ent = Entity(id)
ent = IsValid... | mit |
junrw/ember-gsoc2012 | src/components/ogre/widgets/TerrainEditor.lua | 1 | 4650 | TerrainEditor = {}
function TerrainEditor:pickedBasePoint(userObject)
self.currentObject = userObject
local terrainPosition = userObject:getPosition()
self.widget:getWindow("SelectedBasePointInfo"):setText("Selected basepoint: x=" .. terrainPosition:x() .. " y=" .. terrainPosition:y())
self.heightSpinner:... | gpl-3.0 |
kuoruan/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 |
Velkon/DarkRP | gamemode/modules/fadmin/fadmin/playeractions/noclip/sv_init.lua | 4 | 2850 | local sbox_noclip = GetConVar("sbox_noclip")
local function SetNoclip(ply, cmd, args)
if not FAdmin.Access.PlayerHasPrivilege(ply, "SetNoclip") then FAdmin.Messages.SendMessage(ply, 5, "No access!") return false end
if not args[1] then return false end
local targets = FAdmin.FindPlayer(args[1])
if not... | mit |
kuoruan/luci | modules/luci-mod-admin-full/luasrc/controller/admin/uci.lua | 3 | 2597 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2010-2015 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.admin.uci", package.seeall)
function index()
local redir = luci.http.formvalue("redir", true)
or table.concat(luci.dispatcher.... | apache-2.0 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ActionTimeline.lua | 10 | 5314 |
--------------------------------
-- @module ActionTimeline
-- @extend Action
-- @parent_module ccs
--------------------------------
-- Set ActionTimeline's frame event callback function
-- @function [parent=#ActionTimeline] setFrameEventCallFunc
-- @param self
-- @param #function listener
----------------... | mit |
FPtje/DarkRP | gamemode/modules/chat/sv_chat.lua | 1 | 10724 | local function registerCommandDefinition(cmd, callback)
local chatcommands = DarkRP.getChatCommands()
chatcommands[cmd] = chatcommands[cmd] or {}
chatcommands[cmd].callback = callback
chatcommands[cmd].command = chatcommands[cmd].command or cmd
end
function DarkRP.defineChatCommand(cmd, callback)
... | mit |
NonceCents/FFBEAutoZContinued | FFBEAutoZ.lua | 1 | 149721 | -- Final Fantasy Brave Exvius: ffbeAuto - Farming & Exploration
-- by tinotk, modded by Sikat, modded further by NonceCents
-- Memu 960x600 120dpi
-- Nox 960x600 160dpi RECOMMENDED
-- http://ankulua.boards.net/thread/167/brave-exvius-ffbeauto-farming-explorations
-- now at http://ankulua.boards.net/thread/589/ffbeauto... | gpl-3.0 |
ark120202/aabs | game/scripts/vscripts/heroes/hero_poseidon/sea_hole.lua | 1 | 1414 | function DummyThink(keys)
local caster = keys.caster
local dummy = keys.target
local ability = keys.ability
local level = ability:GetLevel() - 1
local think_interval = ability:GetLevelSpecialValueFor("think_interval", level)
local pull_speed = ability:GetLevelSpecialValueFor("pull_per_second", level) * think_inte... | mit |
Kthulupwns/darkstar | scripts/globals/items/forest_carp.lua | 17 | 1334 | -----------------------------------------
-- ID: 4289
-- Item: forest_carp
-- Food Effect: 30Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItem... | gpl-3.0 |
FPtje/DarkRP | gamemode/modules/fadmin/fadmin/cl_interface/cl_scoreboard.lua | 1 | 7033 | local OverrideScoreboard = CreateClientConVar("FAdmin_OverrideScoreboard", 0, true, false) -- Set if it's a scoreboard or not
function FAdmin.ScoreBoard.ChangeView(newView, ...)
if FAdmin.ScoreBoard.CurrentView == newView or not FAdmin.ScoreBoard.Visible then return end
for _, v in pairs(FAdmin.ScoreBoard[FAd... | mit |
amenophis1er/prosody-modules | mod_firewall/actions.lib.lua | 31 | 5187 | local action_handlers = {};
-- Run code through this to allow strings to contain code. e.g.: LOG=Received: $(stanza:top_tag())
local function meta(s, extra)
return (s:gsub("$(%b())", [["..%1.."]])
:gsub("$(%b<>)", [["..stanza:find("%1").."]])
:gsub("$$(%a+)", extra or {}));
end
-- Takes an XML string and return... | mit |
scottcs/wyx | main.lua | 1 | 8373 |
-- common utilities used throughout the program
require 'wyx.util'
require 'random'
local versionFile = love.filesystem.read('VERSION')
VERSION = string.match(versionFile, '.*VERSION=([%d%.]+)') or "UNKNOWN"
GAMENAME = 'Wyx'
LOAD_DELAY = 0.025
--[[--
DEBUG/PROFILING
--]]--
--debug = nil
debug... | mit |
amenophis1er/prosody-modules | mod_pep_vcard_avatar/mod_pep_vcard_avatar.lua | 31 | 4360 | -- Prosody IM
-- Copyright (C) 2008-2014 Matthew Wild
-- Copyright (C) 2008-2014 Waqas Hussain
-- Copyright (C) 2014 Kim Alvefur
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local st = require "util.stanza"
local base64 = require"util.encodings".... | mit |
jamesbrink/sysdig | userspace/sysdig/chisels/v_incoming_connections.lua | 3 | 1835 | --[[
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 |
Kthulupwns/darkstar | scripts/globals/items/bowl_of_sophic_stew.lua | 35 | 1482 | -----------------------------------------
-- ID: 5180
-- Item: bowl_of_sophic_stew
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- Dexterity 6
-- Intelligence 6
-- Mind 6
-- HP Recovered While Healing 3
-- MP Recovered While Healing 3
-----------------------------------------
r... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Periqia/instances/seagull_grounded.lua | 32 | 4662 | -----------------------------------
--
-- Assault: Seagull Grounded
--
-----------------------------------
require("scripts/zones/Periqia/IDs");
-----------------------------------
-- afterInstanceRegister
-----------------------------------
function afterInstanceRegister(player)
local instance = player:getIns... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/lungfish.lua | 18 | 1255 | -----------------------------------------
-- ID: 4315
-- Item: Lungfish
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity -2
-- Mind 4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
----------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Inner_Horutoto_Ruins/npcs/_5cp.lua | 17 | 2436 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: _5cp (Magical Gizmo) #1
-- Involved In Mission: The Horutoto Ruins Experiment
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
davegoopot/mcrcd-minetest-game | games/mcr_coderdojo/mods/Jeija-minetest-mod-mesecons-d19e975/mesecons_hydroturbine/init.lua | 1 | 2766 | -- HYDRO_TURBINE
-- Water turbine:
-- Active if flowing >water< above it
-- (does not work with other liquids)
minetest.register_node("mesecons_hydroturbine:hydro_turbine_off", {
drawtype = "nodebox",
tiles = {"jeija_hydro_turbine_off.png"},
groups = {dig_immediate=2},
description="Water Turbine",
paramtype =... | lgpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Halvung/npcs/qm2.lua | 15 | 1157 | -----------------------------------
-- Area: Halvung
-- NPC: ??? (Spawn Dextrose(ZNM T2))
-- @pos -144 11 464 62
-----------------------------------
package.loaded["scripts/zones/Halvung/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Halvung/TextIDs");
-----------------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/weaponskills/empyreal_arrow.lua | 30 | 1517 | -----------------------------------
-- Empyreal Arrow
-- Archery weapon skill
-- Skill level: 250
-- In order to obtain Empyreal Arrow, the quest From Saplings Grow must be completed.
-- Delivers a single-hit attack. Damage varies with TP.
-- Aligned with the Flame Gorget & Light Gorget.
-- Aligned with the Flam... | gpl-3.0 |
shayanchabok555/tigerantispam007 | plugins/remind.lua | 279 | 1873 | local filename='data/remind.lua'
local cronned = load_from_file(filename)
local function save_cron(msg, text,date)
local origin = get_receiver(msg)
if not cronned[date] then
cronned[date] = {}
end
local arr = { origin, text } ;
table.insert(cronned[date], arr)
serialize_to_file(cronned, filename)
re... | gpl-2.0 |
AGTMADCAT/naev | dat/missions/empire/waste_dump.lua | 11 | 15359 | --[[
MISSION: Waste Dump (dat/empire/waste_dump.lua)
DESCRIPTION: Take toxic waste and dump it over an uninhabited planet.
Mission conceived for the Shakar system.
It would begin at the mission computer on Zembla Shakar
To change the system, just change the mission.xml entry.
NOTES: This mi... | gpl-3.0 |
MmxBoy/Metal-bot-V.2 | plugins/stats.lua | 41 | 3991 | 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 |
dpino/snabb | src/apps/lwaftr/nh_fwd.lua | 9 | 24300 | module(..., package.seeall)
local app = require("core.app")
local basic_apps = require("apps.basic.basic_apps")
local constants = require("apps.lwaftr.constants")
local ethernet = require("lib.protocol.ethernet")
local tcp = require("lib.protocol.tcp")
local udp = require("lib.protocol.udp")
local ipv4 = require("lib.... | apache-2.0 |
GabrielNicolasAvellaneda/luvit-upstream | tests/to-convert/test-windows-long-path.lua | 5 | 5020 | --[[
Copyright 2012 The Luvit Authors. All Rights Reserved.
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 or agre... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5fs.lua | 34 | 2570 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: South Plate
-- @pos 185 -32 -10 195
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
------------------------... | gpl-3.0 |
jlopenwrtluci/luci | applications/luci-app-fwknopd/luasrc/model/cbi/fwknopd.lua | 45 | 3678 | -- Copyright 2015 Jonathan Bennett <jbennett@incomsystems.biz>
-- Licensed to the public under the GNU General Public License v2.
m = Map("fwknopd", translate("Firewall Knock Operator"))
s = m:section(TypedSection, "global", translate("Enable Uci/Luci control")) -- Set uci control on or off
s.anonymous=true
s:option(... | apache-2.0 |
Punchcard123/DMX-AP | Tools/CHDK-Scripts/Cannon S100/3DR_EAI_S100.lua | 178 | 29694 |
--[[
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 |
Kthulupwns/darkstar | scripts/globals/spells/yurin_ichi.lua | 11 | 1593 | -----------------------------------------
-- Spell: Yurin: Ichi
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,... | gpl-3.0 |
dpino/snabb | src/lib/ptree/ptree.lua | 3 | 28817 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(...,package.seeall)
local S = require("syscall")
local ffi = require("ffi")
local C = ffi.C
local app_graph = require("core.config")
local lib = require("core.lib")
local shm = require("core.shm")
local timer = require("core.timer")... | apache-2.0 |
dios-game/dios-cocos-samples | src/lua-fantasy-warrior-3d/Resources/src/LoadingScene.lua | 8 | 5430 | require "ParticleManager"
require "Slime"
local LoadingScene = class("loadingScene",
function ()
return cc.Scene:create()
end
)
local particleRes = {
{"FX/iceTrail.plist","iceTrail"},
{"FX/magic.plist","magic"},
{"FX/pixi.plist","pixi"},
{"FX/puffRing.plist","puffRing"},
{"FX/puffRing2.plist",... | mit |
coinzen/coinage | modules/custom/init.lua | 1 | 2585 | local theme, json, sock = theme, require 'dkjson', require 'socket'
local route_arg, http, ltn12 = route_arg, require 'socket.http', require 'ltn12'
local tconcat, config, header = table.concat, settings.custom, header
local print_r, pairs = seawolf.variable.print_r, pairs
local format_date = format_date
local tonumber... | agpl-3.0 |
marty1885/i-will-survive-game | Player.lua | 1 | 1266 | require "Object"
Player = {}
Player.__index = Player
setmetatable(Player, {
__index = Object,
__call = function (cls, ...)
local self = setmetatable({}, cls)
self:_init(...)
return self
end,
})
function Player:initPlayer(path)
self:initObject(path)
self.x = 200
self.y = 200
self.speed = 200
s... | gpl-3.0 |
ZeroNoFun/The-Aperture | lua/aperture/sounds/paint_sounds.lua | 2 | 4442 | --[[
CATAPULT SOUNDS
]]
AddCSLuaFile()
-- APERTURESCIENCE.GelSplatSmall =
-- {
-- channel = CHAN_WEAPON,
-- name = "GASL.GelSplatSmall",
-- level = 75,
-- sound = { "physics/paint/paint_trickle_01.wav"
-- , "physics/paint/paint_trickle_02.wav"
-- , "physics/paint/paint_trickle_03.wav"
-- , "physics/pain... | mit |
xvaara/kong | kong/plugins/mashape-analytics/schema/migrations.lua | 2 | 1398 | local Migrations = {
{
name = "2015-12-03-161400_mashape-analytics-config",
up = function(options, dao_factory)
local schema = require "kong.plugins.mashape-analytics.schema"
local plugins, err = dao_factory.plugins:find_by_keys {name = "mashape-analytics"}
if err then
return err
... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Crawlers_Nest/npcs/qm11.lua | 57 | 2120 | -----------------------------------
-- Area: Crawlers' Nest
-- NPC: qm11 (??? - Exoray Mold Crumbs)
-- Involved in Quest: In Defiant Challenge
-- @pos 98.081 -38.75 -181.198 197
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
Death15/NormalSwatch | bot/utils.lua | 1 | 23889 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
FPtje/DarkRP | gamemode/modules/fadmin/fadmin/playeractions/message/cl_init.lua | 3 | 2551 | local function MessageGui(ply)
if not FAdmin.Messages or not FAdmin.Messages.MsgTypes then return end
local frame = vgui.Create("DFrame")
frame:SetTitle("Send message")
frame:SetSize(350, 170)
frame:Center()
frame:SetVisible(true)
frame:MakePopup()
local MsgType = 2
local i = 0
... | mit |
FPtje/DarkRP | entities/weapons/weapon_fiveseven2/shared.lua | 1 | 1136 | AddCSLuaFile()
if CLIENT then
SWEP.Author = "DarkRP Developers"
SWEP.Slot = 1
SWEP.SlotPos = 1
SWEP.IconLetter = "u"
killicon.AddFont("weapon_fiveseven2", "CSKillIcons", SWEP.IconLetter, Color(255, 80, 0, 255))
end
SWEP.Base = "weapon_cs_base2"
SWEP.PrintName = "FiveSeven"
SWEP.Spawnable = true
... | mit |
mlody1039/ModernOts | data/npc/scripts/walter.lua | 3 | 2185 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) ... | gpl-3.0 |
FPtje/DarkRP | gamemode/modules/hud/cl_hud.lua | 1 | 16781 | --[[---------------------------------------------------------------------------
HUD ConVars
---------------------------------------------------------------------------]]
local ConVars = {}
local HUDWidth
local HUDHeight
local Color = Color
local CurTime = CurTime
local cvars = cvars
local DarkRP = DarkRP
local draw = ... | mit |
Cadene/torchnet-vision | datasets/upmcfood101.lua | 1 | 2166 | local argcheck = require 'argcheck'
local tnt = require 'torchnet'
local utils = require 'torchnet-vision.datasets.utils'
local lsplit = string.split
local upmcfood101 = {}
upmcfood101.__download = argcheck{
{name='dirname', type='string'},
call =
function(dirname)
os.execute('mkdir -p '..dirname... | bsd-3-clause |
Kthulupwns/darkstar | scripts/globals/items/roast_carp.lua | 35 | 1277 | -----------------------------------------
-- ID: 4537
-- Item: roast_carp
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 1
-- Mind -1
-- Ranged ATT % 14
-----------------------------------------
require("scripts/globals/status");
-----------------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/weaponskills/ground_strike.lua | 30 | 1581 | -----------------------------------
-- Ground Strike
-- Great Sword weapon skill
-- Skill level: 250 QUESTED
-- Delivers a single-hit attack. Damage varies with TP.
-- Modifiers: STR:50% INT:50%
-- 100%TP 200%TP 300%TP
-- 1.5 1.75 3.0
-----------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/loaf_of_steel_bread.lua | 35 | 1198 | -----------------------------------------
-- ID: 4573
-- Item: loaf_of_steel_bread
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 6
-- Vitality 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- ... | gpl-3.0 |
naader1380/n2 | plugins/arabic_lang.lua | 5 | 22611 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
nshafer/AnchorSprite | AnchorSprite.lua | 1 | 5877 | ----------------------------------------
-- AnchorSprite functions
-- https://github.com/nshafer/AnchorSprite
----------------------------------------
-- The MIT License (MIT)
-- Copyright (c) 2013 Nathan Shafer
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this soft... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Dynamis-Xarcabard/Zone.lua | 28 | 2645 | -----------------------------------
--
-- Zone: Dynamis-Xarcabard
--
-----------------------------------
package.loaded["scripts/zones/Dynamis-Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Northern_San_dOria/npcs/Explorer_Moogle.lua | 12 | 2169 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Explorer Moogle
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/teleports");
re... | gpl-3.0 |
aa65535/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/collectd.lua | 68 | 2082 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require("luci.sys")
m = Map("luci_statistics",
translate("Collectd Settings"),
translate(
"Collectd is a small daemon for collecting data from " ..
"various sources through different p... | apache-2.0 |
dios-game/dios-cocos-samples | src/lua-fantasy-warrior-3d/Resources/src/MainMenuScene.lua | 8 | 11258 | require "Helper"
require "GlobalVariables"
--declare a class extends scene
local MainMenuScene = class("MainMenuScene",function()
return cc.Scene:create()
end
)
--constructor init member variable
function MainMenuScene:ctor()
--get win size
self.size = cc.Director:getInstance():getVisibleSize()
self._... | mit |
Kthulupwns/darkstar | scripts/globals/items/blindfish.lua | 18 | 1257 | -----------------------------------------
-- ID: 4313
-- Item: Blindfish
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
---------... | gpl-3.0 |
mlody1039/ModernOts | data/npc/scripts/TP/boat_liberty2.lua | 2 | 2814 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function ... | gpl-3.0 |
FPtje/DarkRP | gamemode/modules/hitmenu/cl_init.lua | 1 | 4419 | local localplayer
local hudText
local textCol1, textCol2 = Color(0, 0, 0, 200), Color(128, 30, 30, 255)
local plyMeta = FindMetaTable("Player")
local activeHitmen = {}
local postPlayerDraw
local minHitDistanceSqr = GM.Config.minHitDistance * GM.Config.minHitDistance
--[[------------------------------------------------... | mit |
Kthulupwns/darkstar | scripts/zones/Balgas_Dais/mobs/Maat.lua | 27 | 1127 | -----------------------------------
-- Area: Balga Dais
-- NPC: Maat
-- Genkai 5 Fight
-----------------------------------
package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Balgas_Dais/TextIDs");
-----------------------------------
-- onM... | gpl-3.0 |
Narthorn/reStrat | profiles/Stormtalon's Lair/aethros.lua | 3 | 1547 | -----------------------------------------------------------------------------
--Debug Profile, only works on easy mobs in Large Training Grounds
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
--Encounter Logic
... | gpl-2.0 |
Ali-2h/aa | plugins/invite.lua | 1111 | 1195 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
ashkan1996/hunter002 | plugins/invite.lua | 1111 | 1195 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
telbbs/luci-0.12 | modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua | 83 | 4608 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.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://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
req... | apache-2.0 |
alioshii/KASBAR | plugins/ar-lock-bot.lua | 10 | 2267 | local function isAntiBotEnabled (chatId)
local hash = 'bot:lock:'..chatId
local lock = redis:get(hash)
return lock
end
local function enableAntiBot (chatId)
local hash = 'bot:lock:'..chatId
redis:set(hash, true)
end
local function disableAntiBot (chatId)
local hash = 'bot:lock:'..chatId
redis:del(hash)
end
local ... | gpl-2.0 |
SkyLothar/lua-resty-jwt | lib/resty/jwt.lua | 1 | 27222 | local cjson = require "cjson.safe"
local aes = require "resty.aes"
local evp = require "resty.evp"
local hmac = require "resty.hmac"
local resty_random = require "resty.random"
local _M = {_VERSION="0.1.11"}
local mt = {__index=_M}
local string_match= string.match
local string_rep = string.rep
local string_format = ... | apache-2.0 |
ToxicFrog/luautil | test/flags.lua | 2 | 5794 | require 'flags'
-- 5.3 compatibility
local unpack = unpack or table.unpack
TestFlags = {}
function TestFlags:setUp()
flags.registered,flags.defaults = {},{}
flags.parsed = flags.defaults
flags.register ('boolean-flag', 'b', 'bool') {
help = "Boolean flag.";
}
flags.register ('number-flag', 'n') {
... | mit |
Kthulupwns/darkstar | scripts/globals/spells/kaustra.lua | 9 | 1191 | --------------------------------------
-- Spell: Kaustra
-- Consumes 20% of your maximum MP. Relentless
-- dark damage slowly devours an enemy.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
--------------... | gpl-3.0 |
alioshii/KASBAR | bot/utils.lua | 62 | 31016 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = (loadfile "./libs/serpent.lua")()
feedparser = (loadfile "./libs/feedparser.lua")()
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.l... | gpl-2.0 |
rohanp/Algorithm-Implementations | Catalan_Numbers/Lua/Yonaba/catalan_test.lua | 26 | 2016 | -- Tests for catalan.lua
local catalan = require 'catalan'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1 end
local... | mit |
carbonsrv/circd | init.d/01_ping.lua | 1 | 1841 | -- Pings
-- localize config to bind to threads
local settings = config
kvstore.set("circd:settings:ping_rate", settings.ping_rate)
event.handle("circd:connect", function(cl)
local event = require("libs.event")
event.fire("circd:ping", cl)
end)
event.handle("circd:ping", function(cl)
thread.run(function()
local... | mit |
rohanp/Algorithm-Implementations | Bellman_Ford_Search/Lua/Yonaba/utils/graph.lua | 26 | 1959 | -- A point graph handler
-- This handler is devised for way-points graphs.
-- Way-points are locations represented via labelled nodes
-- and are connected with edges having a positive or negative weight.
-- It assumes edges are non-symmetric, that is if an edge exists from
-- a to b, it does not mean there is also an ... | mit |
jgpruitt/luahtml | examples/ex01.lua | 1 | 2036 | #!/bin/usr/env lua
--[[
MIT License
Copyright (c) 2016 John Pruitt <jgpruitt@gmail.com>
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 right... | mit |
dios-game/dios-cocos-samples | src/lua-fantasy-warrior-3d/Resources/src/MessageDispatchCenter.lua | 9 | 2331 | MessageDispatchCenter = {}
MessageDispatchCenter.MessageType = {
BLOOD_MINUS = "BLOOD_MINUS",
REDUCE_SCORE = "REDUCE_SCORE",
KNOCKED = "KNOCKED",
KNOCKEDAOE = "KNOCKEDAOE",
SPECIAL_PERSPECTIVE = "SPECIAL_PERSPECTIVE",
SPECIAL_KNIGHT = "SPECIAL_KNIGHT",
SPECIAL_ARCHER = "SPECIAL_ARCHER",
... | mit |
Kthulupwns/darkstar | scripts/zones/Dangruf_Wadi/npcs/Treasure_Chest.lua | 12 | 2567 | -----------------------------------
-- Area: Dangruf Wadi
-- NPC: Treasure Chest
-- @zone 191
-----------------------------------
package.loaded["scripts/zones/Dangruf_Wadi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/treasure");
require("scripts/z... | gpl-3.0 |
dios-game/dios-cocos-samples | src/lua-coin-tree/Resources/src/cocos/init.lua | 17 | 3138 | --[[
Copyright (c) 2011-2015 chukong-incc.com
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, merge, publish, di... | mit |
Bawhoppen/-tg-station | lua/SS13.lua | 4 | 5942 | local SS13 = {}
SS13.SSlua = dm.global_vars.vars.SSlua
SS13.global_proc = "some_magic_bullshit"
for _, state in SS13.SSlua.vars.states do
if state.vars.internal_id == dm.state_id then
SS13.state = state
break
end
end
function SS13.istype(thing, type)
return dm.global_proc("_istype", thing, dm.global_proc("_t... | agpl-3.0 |
fredericjoanis/Argorha-Pathfinding | extern/premake/actions/vstudio/vs2010_vcxproj_filters.lua | 17 | 2473 | --
-- vs2010_vcxproj_filters.lua
-- Generate a Visual Studio 2010 C/C++ filters file.
-- Copyright (c) 2009-2011 Jason Perkins and the Premake project
--
local vc2010 = premake.vstudio.vc2010
local project = premake.project
--
-- The first portion of the filters file assigns unique IDs to each
-- directory or vir... | mit |
slayerrensky/luci | build/luadoc/doc.lua | 78 | 3419 | #!/usr/bin/env lua
-------------------------------------------------------------------------------
-- LuaDoc launcher.
-- @release $Id: luadoc.lua.in,v 1.1 2008/02/17 06:42:51 jasonsantos Exp $
-------------------------------------------------------------------------------
--local source = debug.getinfo(1).source or "... | apache-2.0 |
tboox/xmake | xmake/modules/detect/tools/find_lipo.lua | 1 | 1477 | --!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | apache-2.0 |
disslove3/MAX4-BOT | plugins/lyrics.lua | 695 | 2113 | do
local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs'
local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5'
local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect'
local function getInfo(query)
print('Getting info of ' .. query)
local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY
... | gpl-2.0 |
Oliveryo/Interface | AddOns/aux-addon/core/post.lua | 1 | 1938 | module 'aux.core.post'
include 'T'
include 'aux'
local info = require 'aux.util.info'
local stack = require 'aux.core.stack'
local state
function process()
if state.posted < state.count then
local stacking_complete
local send_signal, signal_received = signal()
when(signal_received, function()
local slot... | gpl-3.0 |
mohammadclashclash/info1 | plugins/leaders.lua | 51 | 12502 |
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 |
Oliveryo/Interface | AddOns/aux-addon/tabs/search/filter.lua | 1 | 12678 | module 'aux.tabs.search'
local info = require 'aux.util.info'
local money = require 'aux.util.money'
local cache = require 'aux.core.cache'
local filter_util = require 'aux.util.filter'
local post_filter = T
local post_filter_index = 0
function valid_level(str)
local level = tonumber(str)
return level and bounded(... | gpl-3.0 |
Oliveryo/Interface | AddOns/AtlasLoot/Content/AL_Factions.lua | 1 | 14069 | AtlasLootRepItems = {
EmptyInstance = {};
Argent1 = {
{ 22689, "INV_Helmet_13", "=q3=Sanctified Leather Helm", "=ds=#a2# #s1#" },
{ 22690, "INV_Pants_03", "=q3=Leggings of the Plague Hunter", "=ds=#a3# #s11#" },
{ 22681, "INV_Jewelry_Ring_33", "=q3=Band of Piety", "=ds=#s13#" },
... | gpl-3.0 |
FlightControl-Master/MOOSE | Moose Development/Moose/AI/AI_A2G_SEAD.lua | 1 | 7272 | --- **AI** - Models the process of air to ground SEAD engagement for airplanes and helicopters.
--
-- This is a class used in the @{AI.AI_A2G_Dispatcher}.
--
-- ===
--
-- ### Author: **FlightControl**
--
-- ===
--
-- @module AI.AI_A2G_SEAD
-- @image AI_Air_To_Ground_Engage.JPG
--- @type AI_A2G_SEAD
-- @ext... | gpl-3.0 |
kvalium/loveGame | lib/anim8.lua | 14 | 8492 | local anim8 = {
_VERSION = 'anim8 v2.3.0',
_DESCRIPTION = 'An animation library for LÖVE',
_URL = 'https://github.com/kikito/anim8',
_LICENSE = [[
MIT LICENSE
Copyright (c) 2011 Enrique García Cota
Permission is hereby granted, free of charge, to any person obtaining a
copy of ... | gpl-3.0 |
Spring-SpringBoard/SpringBoard-Core | scen_edit/view/asset_view.lua | 1 | 7706 | SB.Include(Path.Join(SB.DIRS.SRC, 'view/grid_view.lua'))
AssetView = GridView:extends{}
SB._assetViews = {}
setmetatable(SB._assetViews, { __mode = 'v' })
function AssetView:init(tbl)
table.insert(SB._assetViews, self)
local defaults = {
showDirs = true,
imageFolderUp = nil,
imageFolde... | mit |
codergreen/ValyriaTear | dat/effects/emotes.lua | 4 | 2179 | ------------------------------------------------------------------------------[[
-- Filename: emotes.lua
--
-- Description: This file pre-load the emote animations for the map and battle
-- characters, thus permitting them to express more their feelings.
--
-- See: http://en.wikipedia.org/wiki/Manga_iconography
-------... | gpl-2.0 |
leftbrainstrain/cherts-esp8266-devkit | Espressif/examples/nodemcu-firmware/lua_examples/http_server.lua | 53 | 3696 | --
-- Simple NodeMCU web server (done is a not so nodeie fashion :-)
--
-- Highly modified by Bruce Meacham, based on work by Scott Beasley 2015
-- Open and free to change and use. Enjoy. [Beasley/Meacham 2015]
--
-- Meacham Update: I streamlined/improved the parsing to focus on simple HTTP GET request and their simple... | gpl-3.0 |
satta/companion | bin/integrate_gene_calls.lua | 4 | 4441 | #!/usr/bin/env gt
--[[
Author: Sascha Steinbiss <ss34@sanger.ac.uk>
Copyright (c) 2014-2015 Genome Research Ltd
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in a... | isc |
Spring-SpringBoard/SpringBoard-Core | scen_edit/model/assets_manager.lua | 1 | 3565 | AssetsManager = Observable:extends{}
function AssetsManager:init()
self:loadAll()
end
function AssetsManager:loadAll()
self.assetsFolders = {}
Log.Notice("Scanning asset dirs at: " .. SB.DIRS.ASSETS .. "...")
for _, subDir in ipairs(Path.SubDirs(SB.DIRS.ASSETS)) do
local name = Path.ExtractFil... | mit |
celarco/ardupilot | libraries/AP_Scripting/examples/ahrs-source-gps-wheelencoders.lua | 19 | 7934 | -- This script helps vehicles move between GPS and Non-GPS environments using GPS and Wheel Encoders
--
-- setup RCx_OPTION = 90 (EKF Pos Source) to select the source (low=primary, middle=secondary, high=tertiary)
-- setup RCx_OPTION = 300 (Scripting1). When this switch is pulled high, the source will be automatically... | gpl-3.0 |
NerdWalletOSS/Q | OPERATORS/F1S1OPF2_VAL/lua/expander_f1s1opf2_val.lua | 1 | 4416 | local ffi = require 'Q/UTILS/lua/q_ffi'
local lVector = require 'Q/RUNTIME/lua/lVector'
local qconsts = require 'Q/UTILS/lua/q_consts'
local qc = require 'Q/UTILS/lua/q_core'
local cmem = require 'libcmem'
local get_ptr = require 'Q/UTILS/lua/get_ptr'
local qtils = require 'Q/QTILS/lua/is_sorted'
local sort... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.