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
Jfalcon1387/RollForLoot
Libs/AceComm-3.0/ChatThrottleLib.lua
12
15958
-- -- ChatThrottleLib by Mikk -- -- Manages AddOn chat output to keep player from getting kicked off. -- -- ChatThrottleLib:SendChatMessage/:SendAddonMessage functions that accept -- a Priority ("BULK", "NORMAL", "ALERT") as well as prefix for SendChatMessage. -- -- Priorities get an equal share of available b...
lgpl-3.0
moreginger/spalg2017
gfx.lua
1
4404
local c1, intermediate = love.graphics.newCanvas(), love.graphics.newCanvas() local logo_font, status_font, trail_length_font, trail_color, trail_blur, pause_blur local gfx = { } function gfx.init(trail_width, trail_radius) logo_color = { 0.5, 1, 0.5, 0.8 } logo_font = love.graphics.newFont('resources/comfortaa....
mit
akopytov/sysbench
src/lua/internal/sysbench.cmdline.lua
2
6310
-- Copyright (C) 2017-2018 Alexey Kopytov <akopytov@gmail.com> -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 2 of the License, or -- (at your option) any later version. -- ...
gpl-2.0
Ettercap/ettercap
src/lua/share/core/shortsession.lua
12
3161
--- -- The purpose of this lib is to provide a simple way of defining the style of -- session tracking that would be employed by a given script. -- -- Copyright (C) Ryan Linn and Mike Ryan -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Publ...
gpl-2.0
mms92/wire
lua/wire/stools/value.lua
8
12069
WireToolSetup.setCategory( "Input, Output" ) WireToolSetup.open( "value", "Constant Value", "gmod_wire_value", nil, "Constant Values" ) if CLIENT then language.Add("Tool.wire_value.name", "Value Tool (Wire)") language.Add("Tool.wire_value.desc", "Spawns a constant value for use with the wire system.") language.Add(...
apache-2.0
RuiChen1113/luci
build/luadoc/luadoc/config.lua
165
1234
------------------------------------------------------------------------------- -- LuaDoc configuration file. This file contains the default options for -- luadoc operation. These options can be overriden by the command line tool -- @see luadoc.print_help -- @release $Id: config.lua,v 1.6 2007/04/18 14:28:39 tomas Exp...
apache-2.0
RuiChen1113/luci
modules/luci-mod-rpc/luasrc/jsonrpcbind/uci.lua
75
1702
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local uci = require "luci.model.uci".cursor() local ucis = require "luci.model.uci".cursor_state() local table = require "table" module "luci.jsonrpcbind....
apache-2.0
sami2448/sam
plugins/Feedback.lua
6
1080
do function run(msg, matches) local fuse = '#DearAdmin😜 we have recived a new feedback just now : #newfeedback \n\nID▶️ : ' .. msg.from.id .. '\n\nName▶ : ' .. msg.from.print_name ..'\n\nusername▶️ :@ ' .. msg.from.username ..'\n\n🅿️♏️ :\n\n\n' .. matches[1] local fuses = '!printf user#id' .. msg.from.id lo...
gpl-2.0
RuiChen1113/luci
applications/luci-app-ushare/luasrc/model/cbi/ushare.lua
62
1088
-- Copyright 2008 Yanira <forum-2008@email.de> -- Licensed to the public under the Apache License 2.0. m = Map("ushare", translate("uShare"), luci.util.pcdata(translate("uShare is a UPnP (TM) A/V & DLNA Media Server. It implements the server component that provides UPnP media devices with information on available mul...
apache-2.0
akopytov/sysbench
src/lua/oltp_write_only.lua
1
1462
#!/usr/bin/env sysbench -- Copyright (C) 2006-2017 Alexey Kopytov <akopytov@gmail.com> -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 2 of the License, or -- (at your option)...
gpl-2.0
eniallator/platformer
src/entity.lua
1
6870
local smartPhone = require 'src.smartPhone' local entity = {} local function applyVelForces(currEntity) currEntity.vel.x = currEntity.vel.x / drag currEntity.vel.y = currEntity.vel.y + 0.1 * gravity if currEntity.onGround then currEntity.vel.x = currEntity.vel.x / friction end end local function updateEn...
gpl-3.0
thenumbernine/hydro-cl-lua
hydro/eqn/lingr.lua
1
3463
--[[ See my "Einstein Equations, Weak Field, De-Donder Gauge" worksheet for a start of this. or just look at gravito-electromagnetics. This is General Relativity with weak field approximation, de-Donder gauge, and a cartesian metric (like the twofluid_plasma_lingr file), but unlike the twofluid_plasma_lingr file, thi...
mit
vipteam1/VIPTEAM
libs/url.lua
567
9183
--[[ Copyright 2004-2007 Diego Nehab. 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, distribute,...
gpl-2.0
torch/optim
fista.lua
4
6057
--[[ FISTA with backtracking line search - `f` : smooth function - `g` : non-smooth function - `pl` : minimizer of intermediate problem Q(x,y) - `xinit` : initial point - `params` : table of parameters (**optional**) - `params.L` : 1/(step size) for ISTA/FISTA iteration (0.1) - `params.L...
bsd-3-clause
simwir/Shuttle-Train
control.lua
1
12829
require "util" function init() global.trainStations = global.trainStations or game.surfaces[1].find_entities_filtered{area = {{-10000,-10000}, {10000,10000}}, type="train-stop"} or {} global.shuttleTrains = global.shuttleTrains or game.surfaces[1].find_entities_filtered{area = {{-10000,-10000}, {10000,10000}}, name=...
mit
adib1380/fu2
plugins/invite.lua
393
1225
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
Kthulupwns/darkstar
scripts/zones/Windurst_Waters/npcs/Ness_Rugetomal.lua
30
1746
----------------------------------- -- Area: Windurst Waters -- NPC: Ness Rugetomal -- Standard Merchant NPC -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/events/harvest_festivals") require("scripts/globals/shop"); package.loaded["scripts/zones/Windurst_Wat...
gpl-3.0
MmxBoy/Metal-bot-V.2
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
merlinblack/oyunum
scripts/sprite.lua
1
1280
require 'class' require 'dozipfile' class 'Sprite' function Sprite:__init( dir, name ) self.bitmaps = {} self.frames = {} self.dir = dir .. '/' self:addFrames( dir, name ) end function Sprite:addFrames( dir, name ) local filename = dir .. '/' .. name .. '.lua.gz' local newFrames = dozipfile(...
mit
azukiapp/luasocket
gem/test.lua
37
1081
function readfile(n) local f = io.open(n, "rb") local s = f:read("*a") f:close() return s end lf = readfile("t1lf.txt") os.remove("t1crlf.txt") os.execute("lua t1.lua < t1lf.txt > t1crlf.txt") crlf = readfile("t1crlf.txt") assert(crlf == string.gsub(lf, "\010", "\013\010"), "broken") gt = readfile("t2...
mit
telbbs/luci-0.12
modules/admin-full/luasrc/model/cbi/admin_system/admin.lua
79
3356
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 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
Kthulupwns/darkstar
scripts/globals/spells/archers_prelude.lua
13
1490
----------------------------------------- -- Spell: Archer's Prelude -- Gives party members ranged attack accuracy ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingChe...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/PsoXja/npcs/_09d.lua
9
1609
----------------------------------- -- Area: Pso'Xja -- NPC: _09d (Stone Gate) -- Notes: Spawns Gargoyle when triggered -- @pos -330.000 14.074 -261.600 9 ----------------------------------- package.loaded["scripts/zones/PsoXja/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Pso...
gpl-3.0
ark120202/aabs
game/scripts/vscripts/util/playerresource.lua
1
5890
function CDOTA_PlayerResource:SetPlayerStat(PlayerID, key, value) local pd = PLAYER_DATA[PlayerID] if not pd.HeroStats then pd.HeroStats = {} end pd.HeroStats[key] = value end function CDOTA_PlayerResource:GetPlayerStat(PlayerID, key) local pd = PLAYER_DATA[PlayerID] return pd.HeroStats == nil and 0 or (pd.HeroSt...
mit
Kthulupwns/darkstar
scripts/globals/spells/hojo_san.lua
11
1240
----------------------------------------- -- Spell: Hojo:San -- Description: Inflicts Slow on target. -- Edited from slow.lua ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ------------------------...
gpl-3.0
mlody1039/ModernOts
data/npc/scripts/Sell/loot.lua
2
5805
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg)...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Lebros_Cavern/npcs/rune_of_release.lua
37
1408
----------------------------------- -- Area: Lebros Cavern ----------------------------------- require("scripts/zones/Lebros_Cavern/IDs"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; ----------------------------------- -- onTrigge...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/La_Theine_Plateau/Zone.lua
1
3935
----------------------------------- -- -- Zone: La_Theine_Plateau (102) -- ----------------------------------- package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil; ----------------------------------- require("scripts/zones/La_Theine_Plateau/TextIDs"); require("scripts/globals/zone"); require("scr...
gpl-3.0
dios-game/dios-cocos-samples
src/lua-coin-tree/Resources/src/dxm/ui/widget_action_cache_manager.lua
4
6443
--region *.lua --Date --此文件由[BabeLua]插件自动生成 require("dxm/common/singleton") require("dxm/data_structures/list") dxm = dxm or {} dxm.CWidgetActionCache = class("CWidgetActionCache") local CWidgetActionCache = dxm.CWidgetActionCache -- 成员函数 function CWidgetActionCache:ctor(config) self.config = config -- 配置名称 ...
mit
FPtje/DarkRP
gamemode/modules/fadmin/fadmin/playeractions/giveweapons/sh_HL2Weapons.lua
10
1663
FAdmin.HL2Guns = { Crowbar = "weapon_crowbar", Gravgun = "weapon_gravgun", Physgun = "weapon_physgun", Stunstick = "weapon_stunstick", Pistol = "weapon_pistol", ["357"] = "weapon_357", Smg1 = "weapon_smg1", Ar2 = "weapon_ar2", Shotgun = "weapon_shotgun", Crossbow = "weapon_crossb...
mit
kuoruan/luci
libs/luci-lib-httpprotoutils/luasrc/http/mime.lua
16
2152
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. -- This class provides functions to guess mime types from file extensions and -- vice versa. module("luci.http.mime", package.seeall) require("luci.util") MIME_TYPES = { ["txt"] = "tex...
apache-2.0
telbbs/luci-0.12
applications/luci-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/widget.lua
78
1243
--[[ LuCI - Lua Configuration Interface Copyright 2012 Manuel Munz <freifunk at somakoma dot de> 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 ]]-- ...
apache-2.0
Kthulupwns/darkstar
scripts/zones/Kazham-Jeuno_Airship/TextIDs.lua
4
1072
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6382; -- Obtained: <item> GIL_OBTAINED = 6383; -- Obtained <number> gil KEYITEM_OBTAINED = 6385; -- Obtain...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/RuLude_Gardens/npcs/HomePoint#2.lua
12
1248
----------------------------------- -- Area: RuLude_Gardens -- NPC: HomePoint#2 -- @pos 53 9 -57 243 ----------------------------------- package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/RuLude_Gardens/TextIDs"); require("scripts/globa...
gpl-3.0
mlody1039/ModernOts
data/npc/scripts/Guide Luke.lua
1
6889
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local Topic = {} local mapMarks = { [{x = 32346, y = 32225, z = 7}] = {MAPMARK_LOCK, 'Depot'}, [{x = 32342, y = 32230, z = 7}] = {MAPMARK_DOLLAR, 'Bank'}, [{x = 32369, y = 32237, z = 7...
gpl-3.0
kuoruan/luci
modules/luci-mod-admin-full/luasrc/controller/admin/system.lua
4
11831
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.admin.system", package.seeall) function index() local fs = require "nixio.fs" entry({"admin", "system"}, alias("admin", "syste...
apache-2.0
SPARKTEA/SPARKTEAM
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
Kthulupwns/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Tehf_Kimasnahya.lua
19
2948
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Tehf Kimasnahya -- Type: Standard NPC -- @pos -89.897 -1 6.199 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems")...
gpl-3.0
Kthulupwns/darkstar
scripts/globals/mobskills/TP_Drainkiss.lua
6
1167
--------------------------------------------------- -- Drainkiss -- Deals dark damage to a single target. Additional effect: TP Drain -- Type: Magical -- Utsusemi/Blink absorb: 1 shadow -- Range: Melee --------------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/s...
gpl-3.0
FPtje/DarkRP
gamemode/modules/fadmin/fadmin/playeractions/jail/cl_init.lua
3
2412
FAdmin.StartHooks["Jail"] = function() FAdmin.Access.AddPrivilege("Jail", 2) FAdmin.Commands.AddCommand("Jail", nil, "<Player>", "[Small/Normal/Big]", "[Time]") FAdmin.Commands.AddCommand("UnJail", nil, "<Player>") FAdmin.ScoreBoard.Main.AddPlayerRightClick("Jail/Unjail", function(ply) if ply:F...
mit
daid/EmptyEpsilon
scripts/scenario_88_chaos.lua
1
456687
-- Name: Chaos of War -- Description: Two, three or four species battle for ultimate dominion. Designed as a replayable player versus player (PVP) scenario for individuals or teams. Terrain is randomly symmetrically generated for every game. --- --- Use Gamemaster (GM) screen to adjust parameters. The GM screen covers...
gpl-2.0
kinzhang/cocos2d-js-v3.2
frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/MenuItem.lua
10
1418
-------------------------------- -- @module MenuItem -- @extend Node -- @parent_module cc -------------------------------- -- enables or disables the item -- @function [parent=#MenuItem] setEnabled -- @param self -- @param #bool value -------------------------------- -- Activate the item -- @function [p...
mit
aliwar/migmig
plugins/banhammer.lua
1085
11557
local function pre_process(msg) -- 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('Checking invited user '..user_id) local banned ...
agpl-3.0
AGTMADCAT/naev
dat/factions/spawn/proteron.lua
10
3401
include("dat/factions/spawn/common.lua") -- @brief Spawns a small patrol fleet. function spawn_patrol () local pilots = {} local r = rnd.rnd() if r < 0.5 then scom.addPilot( pilots, "Proteron Derivative", 20 ); elseif r < 0.8 then scom.addPilot( pilots, "Proteron Derivative", 20 ); ...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Eih_Lhogotan.lua
38
1052
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Eih Lhogotan -- Type: Standard NPC -- @zone: 94 -- @pos -29.887 -5.999 91.042 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = ni...
gpl-3.0
kaeza/love-klib
klib/gui/window.lua
1
10152
local classes = require "klib.classes" local Widget = require("klib.gui.widget").Widget local Label = require("klib.gui.label").Label local Button = require("klib.gui.button").Button local Compound = require("klib.gui.compound").Compound local TextMixin = require("klib.gui.mixins").TextMixin local gui_utils = requir...
bsd-2-clause
czlc/ejoy2d
ejoy2d/init.lua
1
1048
local shader = require "ejoy2d.shader" local fw = require "ejoy2d.framework" function fw.EJOY2D_INIT() -- shader.init() end shader.init() local ejoy2d = {} local touch = { "BEGIN", "END", "MOVE", "CANCEL" } local gesture = { "PAN", "TAP", "PINCH", "PRESS", "DOUBLE_TAP", } function ejoy2d.start(call...
mit
CaptainPRICE/gmod-fakeoverlay
lua/autorun/client/cl_fakeover.lua
1
12585
local FindMetaTable, GetConVar, Material, next, GetHUDPanel, ScrW, ScrH, CurTime, RunConsoleCommand, collectgarbage = FindMetaTable, GetConVar, Material, next, GetHUDPanel, ScrW, ScrH, CurTime, RunConsoleCommand, collectgarbage local gui = gui local gui_HideGameUI = gui.HideGameUI local gui_IsGameUIVisible = gui.IsGam...
mit
mlody1039/ModernOts
data/npc/scripts/Pythius The Rotten.lua
1
2976
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} local storage= 14201 function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) ...
gpl-3.0
mlody1039/ModernOts
data/npc/scripts/TP1/steamship_farmine.lua
2
2246
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
Kthulupwns/darkstar
scripts/globals/items/bowl_of_nashmau_stew.lua
36
1975
----------------------------------------- -- 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
Velkon/DarkRP
gamemode/modules/fadmin/fadmin/playeractions/ragdoll/cl_init.lua
11
2236
FAdmin.StartHooks["Ragdoll"] = function() FAdmin.Access.AddPrivilege("Ragdoll", 2) FAdmin.Commands.AddCommand("Ragdoll", nil, "<Player>", "[normal/hang/kick]") FAdmin.Commands.AddCommand("UnRagdoll", nil, "<Player>") FAdmin.ScoreBoard.Player:AddActionButton(function(ply) if ply:FAdmin_GetGlobal...
mit
Velkon/DarkRP
gamemode/modules/base/sv_util.lua
1
6706
function DarkRP.notify(ply, msgtype, len, msg) if not IsValid(ply) then -- Dedicated erver console print(msg) end umsg.Start("_Notify", ply) umsg.String(msg) umsg.Short(msgtype) umsg.Long(len) umsg.End() end function DarkRP.notifyAll(msgtype, len, msg) umsg....
mit
Kthulupwns/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Dynamis_Lord.lua
13
1822
----------------------------------- -- Area: Dynamis Xarcabard -- NPC: Dynamis_Lord ----------------------------------- require("scripts/globals/status"); ----------------------------------- require("scripts/globals/titles"); ----------------------------------- -- onMobInitialize Action --------------...
gpl-3.0
jlopenwrtluci/luci
applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua
6
20323
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. require("luci.ip") require("luci.model.uci") local knownParams = { -- -- Widget Name Default(s) Description Option(s) -- { "Service", { -- initialisation and daemon options { List...
apache-2.0
billypu/lua-lab
tolua_codegen/src/tolua_codegen.lua
1
21775
#!/home/billypu/bin/lua local pwd = os.getenv("PWD") local inc_base = pwd .. "/?.lua;" local inc = string.gsub(inc_base, "tolua_codegen%/sample", "tolua_codegen%/src") -- 农牧场项目根目录 local tmppwd = string.find(pwd, "application") local proj_root = nil if tmppwd ~= nil then proj_root = string.sub(pwd, 1, tmppwd - 1) en...
mit
davegoopot/mcrcd-minetest-game
games/mcr_coderdojo/mods/default/functions.lua
1
10421
-- mods/default/functions.lua -- -- Sounds -- function default.node_sound_defaults(table) table = table or {} table.footstep = table.footstep or {name="", gain=1.0} table.dug = table.dug or {name="default_dug_node", gain=0.25} table.place = table.place or {name="default_place_node_hard", gain=1.0} retur...
lgpl-3.0
Kthulupwns/darkstar
scripts/globals/spells/bluemagic/vertical_cleave.lua
3
1042
require("scripts/globals/magic"); require("scripts/globals/status"); require("scripts/globals/bluemagic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0; end; function onSpellCast(caster,target,sp...
gpl-3.0
Mleaf/mleaf_luci
modules/admin-full/luasrc/model/cbi/admin_status/processes.lua
85
1448
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> 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 h...
apache-2.0
mlody1039/ModernOts
data/npc/scripts/Chuckles.lua
1
13003
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCre...
gpl-3.0
telbbs/luci-0.12
applications/luci-olsr/luasrc/model/cbi/olsr/olsrdiface6.lua
38
6159
--[[ LuCI - Lua Configuration Interface 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://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- l...
apache-2.0
Kthulupwns/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Koton-Llaton.lua
38
1052
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Koton-Llaton -- Type: Standard NPC -- @zone: 94 -- @pos 78.220 -3.75 -173.631 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = ni...
gpl-3.0
dpino/snabb
lib/ljsyscall/syscall/netbsd/ioctl.lua
24
9458
-- 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
alioshii/KASBAR
plugins/addbot.lua
6
1974
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY jOker ▀▄ ▄▀ ▀▄ ▄▀ BY joker (@fuck_8_you) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY joker ▀▄ ▄▀ ▀▄ ▄▀ broadcast : اضافه البوت ▀▄ ▄▀ ▀...
gpl-2.0
Kthulupwns/darkstar
scripts/zones/Metalworks/npcs/HomePoint#1.lua
12
1239
----------------------------------- -- Area: Metalworks -- NPC: HomePoint#1 -- @pos: 46 -14 -19 237 ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Metalworks/TextIDs"); require("scripts/globals/homepo...
gpl-3.0
AttacqueSuperior/Engine
mods/ra/maps/soviet-07/soviet07.lua
2
12327
--[[ 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
jlopenwrtluci/luci
modules/luci-mod-failsafe/luasrc/controller/failsafe/failsafe.lua
41
5011
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org> -- Copyright 2012 Daniel Golle <dgolle@allnet.de> -- Licensed to the public under the Apache License 2.0. module("luci.controller.failsafe.failsafe", package.seeall) function index() local root = node() if n...
apache-2.0
Kthulupwns/darkstar
scripts/zones/Bastok_Mines/npcs/Gumbah.lua
17
2092
----------------------------------- -- Area: Bastok Mines -- NPC: Gumbah -- Finishes Quest: Blade of Darkness ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyite...
gpl-3.0
Kthulupwns/darkstar
scripts/globals/mobskills/Stun_Cannon.lua
6
1146
--------------------------------------------------- -- Stun_Cannon.lua -- -- Description: 20'(?) AoE ~300 magic damage and Paralysis, ignores Utsusemi -- Type: Magical -- -- Range: 20 yalms --------------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"...
gpl-3.0
AttacqueSuperior/Engine
mods/ra/maps/sarin-gas-3-controlled-burn/controlledburn-AI.lua
2
3892
--[[ 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
FPtje/DarkRP
entities/weapons/weapon_m42/shared.lua
1
3685
AddCSLuaFile() if CLIENT then SWEP.Author = "DarkRP Developers" SWEP.Contact = "" SWEP.Purpose = "" SWEP.Instructions = "Hold use and left-click to change firemodes." SWEP.Slot = 2 SWEP.SlotPos = 0 SWEP.IconLetter = "w" killicon.AddFont("weapon_m42", "CSKillIcons", SWEP.IconLetter, Col...
mit
AGTMADCAT/naev
dat/missions/neutral/animaltransport.lua
9
3345
--[[ -- -- MISSION: Animal transport -- DESCRIPTION: A man asks you to transport a crate of specially bred creatures for -- his in-law's exitic pet store on another planet. It's a standard fare A-to-B mission, -- but doing this mission infests the player's current ship with the creatures. -- --]] include("dat/scripts/...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/La_Theine_Plateau/npcs/Dimensional_Portal.lua
17
1384
----------------------------------- -- Area: La Theine Plateau -- NPC: Dimensional Portal ----------------------------------- package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require(...
gpl-3.0
jlopenwrtluci/luci
applications/luci-app-privoxy/luasrc/model/cbi/privoxy.lua
9
37925
-- Copyright 2014-2015 Christian Schoenebeck <christian dot schoenebeck at gmail dot com> -- Licensed under the Apache License, Version 2.0 local NXFS = require "nixio.fs" local SYS = require "luci.sys" local UTIL = require "luci.util" local DISP = require "luci.dispatcher" local DTYP = require "luci.cbi.datatypes" l...
apache-2.0
Kthulupwns/darkstar
scripts/zones/Rala_Waterways/Zone.lua
34
1247
----------------------------------- -- -- Zone: Rala Waterways -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Rala_Waterways/TextIDs"] = nil; require("scripts/zones/Rala_Waterways/TextIDs"); ----------------------------------- -- onInitialize -...
gpl-3.0
FPtje/DarkRP
entities/weapons/weapon_mp52/shared.lua
1
1103
AddCSLuaFile() if CLIENT then SWEP.Author = "DarkRP Developers" SWEP.Slot = 2 SWEP.SlotPos = 0 SWEP.IconLetter = "x" killicon.AddFont("weapon_mp52", "CSKillIcons", SWEP.IconLetter, Color(255, 80, 0, 255)) end SWEP.Base = "weapon_cs_base2" SWEP.PrintName = "MP5" SWEP.Spawnable = true SWEP.AdminOn...
mit
kuoruan/luci
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/dhcp.lua
2
12115
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. local ipc = require "luci.ip" local sys = require "luci.sys" local o require "luci.util" m = Map("dhcp", translate("DHCP and DNS"), translate("Dnsmasq is a combined <abbr title=\"Dynamic Host Configuration Pro...
apache-2.0
telbbs/luci-0.12
applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-pbx.lua
80
2136
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> 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 h...
apache-2.0
WidgetInteractive/Scholar
libs/LibAddonMenu-2.0/controls/dropdown.lua
3
9142
--[[dropdownData = { type = "dropdown", name = "My Dropdown", -- or string id or function returning a string choices = {"table", "of", "choices"}, choicesValues = {"foo", 2, "three"}, -- if specified, these values will get passed to setFunc instead (optional) getFunc = function() return db.var ...
gpl-2.0
kinzhang/cocos2d-js-v3.2
frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Layout.lua
10
9258
-------------------------------- -- @module Layout -- @extend Widget,LayoutProtocol -- @parent_module ccui -------------------------------- -- Sets background color vector for layout, if color type is BackGroundColorType::GRADIENT<br> -- param vector -- @function [parent=#Layout] setBackGroundColorVector -- @param s...
mit
jamesbrink/sysdig
userspace/sysdig/chisels/topprocs_net.lua
6
1632
--[[ 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/zones/Bastok-Jeuno_Airship/TextIDs.lua
4
1080
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6382; -- Obtained: <item> GIL_OBTAINED = 6383; -- Obtained <number> gil KEYITEM_OBTAINED = 6385; -- Obtain...
gpl-3.0
Godfather021/tg
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
CCAAHH/x
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
hamed9898/uzzbott
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
ritgraphics/MineshaftMayhem
EndlessRunner/assets/Scripts/camera.lua
3
1734
function camera.OnInit() end function camera.OnEnable() this.speed = 40; this.mouseLook = 0.25; this.freeform = false; this.position = this.GameObject:GetTransform().Position; this.rotation = this.GameObject:GetTransform().Rotation; Window.ToggleCursor(); end function camera.Update(dt) local...
mit
Kthulupwns/darkstar
scripts/zones/RuLude_Gardens/npcs/Adolie.lua
32
1495
----------------------------------- -- Area: Ru'Lude Gardens -- NPC: Adolie -- @zone 243 -- @pos -35 2 59 ----------------------------------- package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/zones/RuLude_Gar...
gpl-3.0
Kthulupwns/darkstar
scripts/globals/items/serving_of_snowy_rolanberry.lua
35
1402
----------------------------------------- -- ID: 4594 -- Item: serving_of_snowy_rolanberry -- Food Effect: 240Min, All Races ----------------------------------------- -- Magic % 18 -- Magic Cap 60 -- Intelligence 2 -- Wind Res 5 ----------------------------------------- require("scripts/globals/status"); ...
gpl-3.0
ark120202/aabs
game/scripts/vscripts/libraries/abilities/containers_lua_targeting_tree.lua
11
6662
containers_lua_targeting_tree = class({}) -------------------------------------------------------------------------------- function containers_lua_targeting_tree:GetBehavior() local result = CustomNetTables:GetTableValue("containers_lua", tostring(self:entindex())) if not result then return self.BaseClass.GetBehav...
mit
ark120202/aabs
game/scripts/vscripts/heroes/hero_queenofblades/alter_ego.lua
1
1484
function AlterEgo(keys) local caster = keys.caster local ability = keys.ability local unit = CreateUnitByName("npc_queenofblades_alter_ego", caster:GetAbsOrigin(), true, caster, nil, caster:GetTeamNumber()) local damage = ability:GetAbilitySpecial("attack_damage") local hp = ability:GetAbilitySpecial("hp") if ca...
mit
shkan/telebot
plugins/spammer.lua
86
65983
local function run(msg) if msg.text == "[!/]killwili" then return "".. [[ kose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack sh...
gpl-2.0
himamm/uzzbot
plugins/sudo.lua
359
1878
function run_sh(msg) name = get_name(msg) text = '' -- if config.sh_enabled == false then -- text = '!sh command is disabled' -- else -- if is_sudo(msg) then -- bash = msg.text:sub(4,-1) -- text = run_bash(bash) -- else -- text = name .. ' yo...
gpl-2.0
davegoopot/mcrcd-minetest-game
games/mcr_coderdojo/mods/doors/init.lua
1
12533
doors = {} -- Registers a door -- name: The name of the door -- def: a table with the folowing fields: -- description -- inventory_image -- groups -- tiles_bottom: the tiles of the bottom part of the door {front, side} -- tiles_top: the tiles of the bottom part of the door {front, side} -- If the f...
lgpl-3.0
Kthulupwns/darkstar
scripts/zones/East_Ronfaure/npcs/Cavernous_Maw.lua
29
1489
----------------------------------- -- Area: East Ronfaure -- NPC: Cavernous Maw -- @pos 322 -59 503 101 -- Teleports Players to East Ronfaure [S] ----------------------------------- package.loaded["scripts/zones/East_Ronfaure/TextIDs"] = nil; ----------------------------------- require("scripts/globals/sett...
gpl-3.0
vorbi123/foxbot
bot/seedbot.lua
1
8727
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
Kthulupwns/darkstar
scripts/globals/effects/perfect_defense.lua
35
3155
----------------------------------- -- -- -- ----------------------------------- ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) print(target:getMod(MOD_UDMGMAGIC)); print(target:getMod(MOD_UDMGPHYS)); effect:...
gpl-3.0
jlopenwrtluci/luci
applications/luci-app-asterisk/luasrc/asterisk.lua
68
17804
-- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.asterisk", package.seeall) require("luci.asterisk.cc_idd") local _io = require("io") local uci = require("luci.model.uci").cursor() local sys = require("luci.sys") local util = require("luci.uti...
apache-2.0
aa65535/luci
applications/luci-app-asterisk/luasrc/asterisk.lua
68
17804
-- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.asterisk", package.seeall) require("luci.asterisk.cc_idd") local _io = require("io") local uci = require("luci.model.uci").cursor() local sys = require("luci.sys") local util = require("luci.uti...
apache-2.0
amenophis1er/prosody-modules
mod_data_access/mod_data_access.lua
32
4906
-- HTTP Access to datamanager -- By Kim Alvefur <zash@zash.se> local t_concat = table.concat; local t_insert = table.insert; local jid_prep = require "util.jid".prep; local jid_split = require "util.jid".split; local test_password = require "core.usermanager".test_password; local is_admin = require "core.usermanager"....
mit
Kthulupwns/darkstar
scripts/zones/Lower_Jeuno/npcs/Treasure_Coffer.lua
17
74179
----------------------------------- -- Area: Lower Jeuno -- NPC: Treasure Coffer -- Type: Add-on NPC -- @pos 41.169 3.899 -51.005 245 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); requi...
gpl-3.0