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 |
|---|---|---|---|---|---|
Kthulupwns/darkstar | scripts/globals/items/sis_kebabi_+1.lua | 35 | 1659 | -----------------------------------------
-- ID: 5599
-- Item: sis_kebabi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Strength 6
-- Vitality -1
-- Intelligence -1
-- Attack % 20
-- Attack Cap 75
-- Ranged ATT % 20
-- Ranged ATT Cap 75
------------------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Outer_Horutoto_Ruins/npcs/_ne4.lua | 12 | 2629 | -----------------------------------
-- Area: Outer Horutoto Ruins
-- NPC: Strange Apparatus
-- @pos: -574 0 739 194
-----------------------------------
package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil;
require("scripts/zones/Outer_Horutoto_Ruins/TextIDs");
require("scripts/globals/strangeapparatus")... | gpl-3.0 |
xvaara/kong | kong/plugins/oauth2/schema.lua | 3 | 1322 | local utils = require "kong.tools.utils"
local stringy = require "stringy"
local function generate_if_missing(v, t, column)
if not v or stringy.strip(v) == "" then
return true, nil, { [column] = utils.random_string()}
end
return true
end
local function check_mandatory_scope(v, t)
if v and not t.scopes the... | apache-2.0 |
GabrielNicolasAvellaneda/luvit-upstream | deps/codec.lua | 2 | 4959 | --[[
Copyright 2014 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 agr... | apache-2.0 |
Big-B/dotfiles | awesome/wi.lua | 1 | 4821 | local awful = require("awful")
local wibox = require("wibox")
local beautiful = require("beautiful")
local vicious = require("vicious")
local naughty = require("naughty")
-- Spacers
volspace = wibox.widget.textbox()
volspace:set_text(" ")
-- {{{ BATTERY
-- Battery attributes
local bat_state = ""
local bat_charge = 0... | mit |
Kthulupwns/darkstar | scripts/zones/Metalworks/npcs/Kaela.lua | 38 | 1389 | -----------------------------------
-- Area: Metalworks
-- NPC: Kaela
-- Type: Adventurer's Assistant
-- @pos 40.167 -14.999 16.073 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scri... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Kazham/npcs/Ronta-Onta.lua | 23 | 4041 | -----------------------------------
-- Area: Kazham
-- NPC: Ronta-Onta
-- Starts and Finishes Quest: Trial by Fire
-- @pos 100 -15 -97 250
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts... | gpl-3.0 |
Sakura-Winkey/packages | net/smartsnmpd/files/mibs/system.lua | 158 | 6428 | --
-- This file is part of SmartSNMP
-- Copyright (C) 2014, Credo Semiconductor Inc.
--
-- 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 optio... | gpl-2.0 |
AttacqueSuperior/Engine | mods/cnc/maps/nod07b/nod07b.lua | 2 | 8622 | --[[
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 |
Kthulupwns/darkstar | scripts/globals/items/block_of_rock_cheese.lua | 36 | 1279 | -----------------------------------------
-- ID: 4593
-- Item: Block of Rock Cheese
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health % 5.5
-- Health Cap 45
-- HP Recovered while healing 1
-----------------------------------------
require("scripts/globals/status");
-----------------... | gpl-3.0 |
amenophis1er/prosody-modules | mod_latex/mod_latex.lua | 32 | 1552 | local st = require "stanza";
local urlencode = require "net.http".urlencode;
local xmlns_xhtmlim = "http://jabber.org/protocol/xhtml-im";
local xmlns_xhtml = "http://www.w3.org/1999/xhtml";
local function replace_latex(data)
local origin, stanza = data.origin, data.stanza;
local body = stanza:get_child_text("body")... | mit |
rohanp/Algorithm-Implementations | Roman_Numerals/Lua/Yonaba/roman_test.lua | 26 | 1056 | -- Tests for roman.lua
local roman = require 'roman'
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 statu... | mit |
dreamsxin/otclient | modules/corelib/globals.lua | 14 | 1358 | -- @docvars @{
-- root widget
rootWidget = g_ui.getRootWidget()
modules = package.loaded
-- G is used as a global table to save variables in memory between reloads
G = G or {}
-- @}
-- @docfuncs @{
function scheduleEvent(callback, delay)
local event = g_dispatcher.scheduleEvent(callback, delay)
-- must hold a ... | mit |
hamed9898/uzzbott | plugins/exchange.lua | 352 | 2076 | local ltn12 = require "ltn12"
local https = require "ssl.https"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local function comma_value(n) -- credit http://richard.warburton.it
local left,num,right = string.match(n,'^([^%d]*%d)(%d*)(.-)$')
return left..(num:reverse():gsub('... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Kilhwch1.lua | 36 | 1123 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Kilhwch
-- @zone 80
-- @pos -63 2 -50
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
--------------------------------... | gpl-3.0 |
telbbs/luci-0.12 | applications/luci-firewall/luasrc/tools/firewall.lua | 59 | 6016 | --[[
LuCI - Lua Configuration Interface
Copyright 2011-2012 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
]]--
mo... | apache-2.0 |
shayanchabok555/tigerantispam007 | plugins/yoda.lua | 642 | 1199 | local ltn12 = require "ltn12"
local https = require "ssl.https"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function request(text)
local api = "https://yoda.p.mashape.com/yoda?"
text = ... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Northern_San_dOria/npcs/Kuu_Mohzolhi.lua | 37 | 3233 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Kuu Mohzolhi
-- Starts and Finishes Quest: Growing Flowers
-- @zone 231
-- @pos -123 0 80
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require(... | gpl-3.0 |
dios-game/dios-cocos-samples | src/lua-earth-warrior-3d/Resources/src/cocos/cocos2d/Cocos2dConstants.lua | 35 | 15728 |
cc = cc or {}
cc.SPRITE_INDEX_NOT_INITIALIZED = 0xffffffff
cc.TMX_ORIENTATION_HEX = 0x1
cc.TMX_ORIENTATION_ISO = 0x2
cc.TMX_ORIENTATION_ORTHO = 0x0
cc.Z_COMPRESSION_BZIP2 = 0x1
cc.Z_COMPRESSION_GZIP = 0x2
cc.Z_COMPRESSION_NONE = 0x3
cc.Z_COMPRESSION_ZLIB = 0x0
cc.BLEND_DST = 0x303
cc.BLEND_SRC = 0x1... | mit |
mlody1039/ModernOts | data/npc/scripts/Tim, The Guard.lua | 1 | 2441 | 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 |
aa65535/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi_add.lua | 11 | 4909 | -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local nw = require "luci.model.network"
local fw = require "luci.model.firewall"
local uci = require "luci.model.uci".cursor()
local http = require "luci.http"
local iw = lu... | apache-2.0 |
Kthulupwns/darkstar | scripts/globals/weaponskills/catastrophe.lua | 12 | 2218 | -----------------------------------
-- Catastrophe
-- Scythe weapon skill
-- Skill Level: N/A
-- Drain target's HP. Bec de Faucon/Apocalypse: Additional effect: Haste
-- This weapon skill is available with the stage 5 relic Scythe Apocalypse or within Dynamis with the stage 4 Bec de Faucon.
-- Also available with... | gpl-3.0 |
dios-game/dios-cocos-samples | src/lua-earth-warrior-3d/src/custom/api/Effect3DOutline.lua | 9 | 1229 |
--------------------------------
-- @module Effect3DOutline
-- @extend Effect3D
-- @parent_module cc
--------------------------------
--
-- @function [parent=#Effect3DOutline] setOutlineWidth
-- @param self
-- @param #float width
-- @return Effect3DOutline#Effect3DOutline self (return value: cc.Effect3DOutline)
... | mit |
ToxicFrog/luautil | misc.lua | 2 | 2192 | -- Assorted global functions that don't belong in their own file.
-- 5.3 compatibility
local unpack = unpack or table.unpack
local loadstring = loadstring or load
-- "safe require", returns nil,error if require fails rather than
-- throwing an error
function srequire(...)
local s,r = pcall(require, ...)
if s then
... | mit |
Kthulupwns/darkstar | scripts/zones/La_Theine_Plateau/npcs/qm2.lua | 17 | 1843 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: ??? (qm2)
-- Involved in Quest: HITTING_THE_MARQUISATE (THF AF3)
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
... | gpl-3.0 |
Kthulupwns/darkstar | scripts/commands/setmerits.lua | 3 | 1057 | ---------------------------------------------------------------------------------------------------
-- func: @setmerits <amount> <player>
-- auth: Unknown (setmerits), Link (setplayermerits), merged by TeoTwawki
-- desc: Sets the target players merit count.
----------------------------------------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Kazham/npcs/Beyzen.lua | 38 | 1031 | -----------------------------------
-- Area: Kazham
-- NPC: Beyzen
-- Type: Event Scene Replayer
-- @zone: 250
-- @pos -53.976 -10.769 -74.771
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
------------------... | gpl-3.0 |
AGTMADCAT/naev | dat/missions/empire/emp_cargo00.lua | 11 | 3772 | --[[
Simple cargo mission that opens up the Empire cargo missions.
Author: bobbens
minor edits by Infiltrator
]]--
include "dat/scripts/numstring.lua"
include "dat/scripts/jumpdist.lua"
lang = naev.lang()
if lang == "es" then
-- not translated atm
else -- default english
bar_desc = "You see an Em... | gpl-3.0 |
ASHRAF97/ASHRAFKASPERV3 | plugins/tagall.lua | 2 | 1476 | --[[
$ :)
-- - ( #MASCO_ماسكو ) - --
$ :)
-- - ( @IQ_ABS ) - --
$ :)
--Channel-( @DEV_PROX )--
$ :)
]]--
local function tagall(cb_extra, success, result)
local receiver = cb_extra.receiver
local text = ''
local msgss = 0
for k,v in pairs(result.members) do
if v.username then
ms... | gpl-2.0 |
mlody1039/ModernOts | data/npc/scripts/TP/Bruce.lua | 2 | 1283 | 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... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Windurst_Walls/npcs/_6n2.lua | 11 | 5271 | -----------------------------------
-- Area: Windurst Walls
-- Door: House of the Hero
-- Involved in Mission 2-1
-- Involved In Quest: Know One's Onions, Onion Rings, The Puppet Master, Class Reunion
-- @pos -26 -13 260 239
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs... | gpl-3.0 |
jlopenwrtluci/luci | modules/luci-mod-admin-full/luasrc/controller/admin/network.lua | 7 | 10708 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2011-2015 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.admin.network", package.seeall)
function index()
local uci = require("luci.model.uci").cursor()
local page
page = node("admin... | apache-2.0 |
dios-game/dios-cocos-samples | src/lua-coin-tree/Resources/src/cocos/cocosbuilder/DeprecatedCocosBuilderClass.lua | 60 | 1176 | if nil == cc.CCBProxy then
return
end
-- This is the DeprecatedCocosBuilderClass
DeprecatedCocosBuilderClass = {} or DeprecatedCocosBuilderClass
--tip
local function deprecatedTip(old_name,new_name)
print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********")
end
--CCB... | mit |
Kthulupwns/darkstar | scripts/zones/Port_Bastok/npcs/Argus.lua | 23 | 3416 | -----------------------------------
-- Area: Port Bastok
-- NPC: Argus
-- Type: Mission Giver
-- @pos 132.157 7.496 -2.187 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/global... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Upper_Jeuno/npcs/Olgald.lua | 38 | 1028 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Olgald
-- Type: Standard NPC
-- @zone: 244
-- @pos -53.072 -1 103.380
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
---------------------... | gpl-3.0 |
amenophis1er/prosody-modules | mod_conformance_restricted/mod_conformance_restricted.lua | 32 | 1030 | -- Prosody IM
-- Copyright (C) 2012 Florian Zeitz
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local st = require "util.stanza";
local jid = require "util.jid";
module:hook("message/host", function (event)
local origin, stanza = event.origin, e... | mit |
mlody1039/ModernOts | data/movements/scripts/swimming.lua | 2 | 1649 | local outfit = {lookType = 267, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
local BORDERS = {
[7943] = {x = 0, y = -2, back = SOUTH},
[7944] = {x = -2, y = 0, back = EAST},
[7945] = {x = 0, y = 2, back = NORTH},
[7946] = {x = 2, y = 0, back = WEST},
[7947] = {x = 2, y =... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Windurst_Waters/npcs/Sohdede.lua | 38 | 1039 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Sohdede
-- Type: Standard NPC
-- @zone: 238
-- @pos -60.601 -7.499 111.639
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
----------... | gpl-3.0 |
telbbs/luci-0.12 | applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo_config_mini.lua | 80 | 1150 | --[[
LuCI - Lua Configuration Interface
(c) 2009 Daniel Dickinson
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$
]]--
require("luci.controller.l... | apache-2.0 |
FPtje/DarkRP | gamemode/modules/voting/sv_votes.lua | 3 | 4800 | local Vote = {}
local Votes = {}
local function ccDoVote(ply, cmd, args)
if ply:EntIndex() == 0 then
print(DarkRP.getPhrase("cmd_cant_be_run_server_console"))
return
end
local vote = Votes[tonumber(args[1] or 0)]
if not vote then return end
if args[2] ~= "yea" and args[2] ~= "nay"... | mit |
Kthulupwns/darkstar | scripts/zones/Konschtat_Highlands/npcs/Telepoint.lua | 17 | 1666 | -----------------------------------
-- Area: Konschtat Highlands
-- NPC: Telepoint
-- @pos 220.000 19.104 300.000 106
-----------------------------------
package.loaded["scripts/zones/Konschtat_Highlands/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("script... | gpl-3.0 |
LubyRuffy/haka | src/hakactl/lua/thread.lua | 5 | 1104 | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
local list = require('list')
local ThreadInfo = list.new('thread_info')
ThreadInfo.field = {
'id', 'status', 'recv... | mpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Buburimu_Peninsula/TextIDs.lua | 2 | 1394 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6406; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6409; -- Obtained: <item>.
GIL_OBTAINED = 6410; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6412; -- Obtained... | gpl-3.0 |
AttacqueSuperior/Engine | mods/cnc/maps/gdi04a/gdi04a.lua | 2 | 4446 | --[[
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 |
Kthulupwns/darkstar | scripts/zones/Norg/npcs/Aeka.lua | 18 | 3050 | -----------------------------------
-- Area: Norg
-- NPC: Aeka
-- Involved in Quest: Forge Your Destiny
-- @zone 252
-- @pos 4 0 -4
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("script... | gpl-3.0 |
amenophis1er/prosody-modules | mod_private_adhoc/mod_private_adhoc.lua | 32 | 1516 | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-- Module by Thomas Raschbacher 2014
-- lordvan@lordvan.com
module:depends"adhoc";
local dataforms_new = ... | mit |
AttacqueSuperior/Engine | mods/ra/maps/fall-of-greece-2-evacuation/evacuation-AI.lua | 2 | 3468 | --[[
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 |
jamesbrink/sysdig | userspace/sysdig/chisels/v_threads.lua | 3 | 3017 | --[[
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 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ComAudio.lua | 10 | 4856 |
--------------------------------
-- @module ComAudio
-- @extend Component
-- @parent_module ccs
--------------------------------
--
-- @function [parent=#ComAudio] stopAllEffects
-- @param self
--------------------------------
--
-- @function [parent=#ComAudio] getEffectsVolume
-- @param self
-- @return ... | mit |
Kthulupwns/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/_0rv.lua | 17 | 1336 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: _0rv (Oil lamp)
-- Notes: Opens north door at J-9 from inside.
-- @pos -63.703 -26.227 37.000 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
re... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Alzadaal_Undersea_Ruins/TextIDs.lua | 5 | 1261 | -- 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/globals/mobskills/Snatch_Morsel.lua | 56 | 1530 | ---------------------------------------------------
-- Snatch Morsel
-- Steals food effect
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
functio... | gpl-3.0 |
BooM-amour/test | plugins/moderation.lua | 25 | 30112 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
Velkon/DarkRP | entities/weapons/ls_sniper/shared.lua | 5 | 2600 | AddCSLuaFile()
if SERVER then
AddCSLuaFile("cl_init.lua")
end
if CLIENT then
SWEP.PrintName = "Silenced Sniper"
SWEP.Author = "DarkRP Developers"
SWEP.Slot = 0
SWEP.SlotPos = 0
SWEP.IconLetter = "n"
killicon.AddFont("ls_sniper", "CSKillIcons", SWEP.IconLetter, Color(200, 200, 200, 255))
e... | mit |
Godfather021/tg | plugins/youtube.lua | 644 | 1722 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
function get_yt_data (yt_code)
local url = 'https://www.googleapis.com/yo... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Yahse_Hunting_Grounds/Zone.lua | 34 | 1266 | -----------------------------------
--
-- Zone: Yahse Hunting Grounds
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Yahse_Hunting_Grounds/TextIDs"] = nil;
require("scripts/zones/Yahse_Hunting_Grounds/TextIDs");
-----------------------------------... | gpl-3.0 |
Alig96/nzombies | nzombies3/gamemode/round_handler/sv_player.lua | 1 | 2482 | //
//Player Functions
function nz.Rounds.Functions.ReadyUp(ply)
if ply.Ready == nil then ply.Ready = 0 end
if ply:IsPermSpec() then
ply:PrintMessage( HUD_PRINTTALK, "You can't ready up because you are a perm spectator!" )
return
end
if nz.Rounds.Data.CurrentState == ROUND_INIT then
if ply.Ready == 0 then
... | gpl-3.0 |
xvaara/kong | kong/plugins/response-transformer/body_transformer.lua | 2 | 2596 | local stringy = require "stringy"
local cjson = require "cjson"
local table_insert = table.insert
local pcall = pcall
local string_find = string.find
local unpack = unpack
local type = type
local _M = {}
local function read_json_body(body)
if body then
local status, res = pcall(cjson.decode, body)
if statu... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Giehnz.lua | 34 | 1031 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Giehnz
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
-----------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Windurst_Woods/npcs/Erpolant.lua | 38 | 1038 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Erpolant
-- Type: Standard NPC
-- @zone: 241
-- @pos -63.224 -0.749 -33.424
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------... | gpl-3.0 |
aa65535/luci | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/olsrd.lua | 68 | 3418 | -- Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.olsrd", package.seeall)
function rrdargs( graph, plugin, plugin_instance, dtype )
local g = { }
if plugin_instance == "routes" then
g[#g+1] = {
... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Western_Altepa_Desert/npcs/_3h7.lua | 17 | 1888 | -----------------------------------
-- Area: Western Altepa Desert
-- NPC: _3h7 (Emerald Column)
-- Notes: Mechanism for Altepa Gate
-- @pos -775 2 -460 125
-----------------------------------
package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("... | gpl-3.0 |
mehran-best-team/bot | plugins/inpm.lua | 1 | 9194 | local function pre_process(msg)
local to = msg.to.type
local service = msg.service
if to == 'user' and msg.fwd_from then
if not is_support(msg.from.id) and not is_admin1(msg) then
return
end
local user = 'user#id'..msg.from.id
local from_id = msg.fwd_from.peer_id
if msg.fwd_from.first_name then
from_f... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Temenos/mobs/Water_Elemental.lua | 17 | 1709 | -----------------------------------
-- Area: Temenos E T
-- NPC: Water_Elemental
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
----------------------... | gpl-3.0 |
ToxicFrog/luautil | test/luaunit.lua | 6 | 77506 | --[[
luaunit.lua
Description: A unit testing framework
Homepage: https://github.com/bluebird75/luaunit
Development by Philippe Fremy <phil@freehackers.org>
Based on initial work of Ryu, Gwang (http://www.gpgstudy.com/gpgiki/LuaUnit)
License: BSD License, see LICENSE.txt
Version: 3.2
]]--
require("math")
local... | mit |
Kthulupwns/darkstar | scripts/zones/Windurst_Walls/npcs/Zokima-Rokima.lua | 19 | 2705 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Zokima-Rokima
-- Starts Windurst Missions
-- @pos 0 -16 124 239
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
package.loaded["scripts/globals/missions"] = nil;
-------------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Fiaudie.lua | 36 | 1135 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Fiaudie
-- @zone 80
-- @pos -10 1 35
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
---------------------------------... | gpl-3.0 |
telbbs/luci-0.12 | modules/freifunk/luasrc/model/cbi/freifunk/profile_expert.lua | 38 | 1104 | --[[
LuCI - Lua Configuration Interface
Copyright 2011 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
httc://www.apache.org/licenses/LICENSE-2.0
]]--
l... | apache-2.0 |
Velkon/DarkRP | gamemode/modules/fadmin/fadmin/changelevel/sv_init.lua | 6 | 10104 | util.AddNetworkString("FAdmin_ChangelevelInfo")
local function ChangeLevel(ply, cmd, args)
if not FAdmin.Access.PlayerHasPrivilege(ply, "changelevel") then FAdmin.Messages.SendMessage(ply, 5, "No access!") return false end
local map = args[2] or args[1] -- Changelevel gamemode map OR changelevel map
local... | mit |
mlody1039/ModernOts | data/npc/scripts/Rabaz.lua | 1 | 13004 | 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 |
asandroq/virtuality | tests/cylinder.lua | 1 | 1101 | -- Scene with tree balls
-- Alex Sandro Queiroz e Silva
Frame {
format = FB_PNG,
name = "cylinder.png",
width = 800,
height = 600,
ambient = Colour { red = 0.2, green = 0.2, blue = 0.2 };
-- creating camera
Camera {
direction = z
},
-- creating light
Light {
colour = White,
position = Point { y = 30.... | gpl-2.0 |
dios-game/dios-cocos-samples | src/lua-fantasy-warrior-3d/Resources/src/Helper.lua | 8 | 4136 | --global var
camera =nil
CC_CONTENT_SCALE_FACTOR = function()
return cc.Director:getInstance():getContentScaleFactor()
end
CC_POINT_PIXELS_TO_POINTS = function(pixels)
return cc.p(pixels.x/CC_CONTENT_SCALE_FACTOR(), pixels.y/CC_CONTENT_SCALE_FACTOR())
end
CC_POINT_POINTS_TO_PIXELS = function(points)
re... | mit |
pengzj/skynet | lualib/http/internal.lua | 4 | 2424 | local M = {}
local LIMIT = 8192
local function chunksize(readbytes, body)
while true do
if #body > 128 then
return
end
body = body .. readbytes()
local f,e = body:find("\r\n",1,true)
if f then
return tonumber(body:sub(1,f-1),16), body:sub(e+1)
end
end
end
local function readcrln(readbytes, body)
... | mit |
Kthulupwns/darkstar | scripts/globals/weaponskills/apex_arrow.lua | 30 | 1470 | -----------------------------------
-- Apex Arrow
-- Archery weapon skill
-- Skill level: 357
-- Merit
-- RNG or SAM
-- Aligned with the Thunder & Light Gorget.
-- Aligned with the Thunder Belt & Light Belt.
-- Element: None
-- Modifiers: AGI:73~85%
-- 100%TP 200%TP 300%TP
-- 3.00 3.00 3.00
... | gpl-3.0 |
dreamsxin/otclient | modules/gamelib/creature.lua | 5 | 4134 | -- @docclass Creature
-- @docconsts @{
SkullNone = 0
SkullYellow = 1
SkullGreen = 2
SkullWhite = 3
SkullRed = 4
SkullBlack = 5
SkullOrange = 6
ShieldNone = 0
ShieldWhiteYellow = 1
ShieldWhiteBlue = 2
ShieldBlue = 3
ShieldYellow = 4
ShieldBlueSharedExp = 5
ShieldYellowSharedExp = 6
ShieldBlueNoSharedExpBlink = 7
Shie... | mit |
ytagga/tuit-lazy | tuit/tap.lua | 1 | 10169 | --- tuit/tap.lua - simple test harness for the Test Anything Protocol
---------------------------------------------------------------------
-- Copyright (C) 2013-2014 TAGA Yoshitaka <tagga@tsuda.ac.jp>
-- Permission is hereby granted, free of charge, to any person
-- obtaining a copy of this software and associated do... | mit |
Kthulupwns/darkstar | scripts/zones/Bibiki_Bay/npcs/Tswe_Panipahr.lua | 19 | 1862 | -----------------------------------
-- Area: Bibiki Bay
-- NPC: Tswe Panipahr
-- Type: Manaclipper
-- @pos 484.604 -4.035 729.671 4
-----------------------------------
package.loaded["scripts/zones/Bibiki_Bay/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bibiki_Bay/TextIDs");
require... | gpl-3.0 |
TheRowanA/DarkRPSk-MoneyPrinters | lua/entities/gold_printer/cl_init.lua | 1 | 4924 | include("shared.lua")
function ENT:Initialize()
end
function ENT:Draw()
self:DrawModel()
local Pos = self:GetPos()
local Ang = self:GetAngles()
local num = 10
local owner = self:Getowning_ent()
owner = (IsValid(owner) and owner:Nick()) or "Unowned"
surface.SetFont("HUDNumber5")
local text = "Gold Money Pr... | gpl-2.0 |
jlopenwrtluci/luci | applications/luci-app-ddns/luasrc/model/cbi/ddns/detail.lua | 5 | 53977 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2013 Manuel Munz <freifunk at somakoma dot de>
-- Copyright 2014-2016 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
-- Licensed to the public under the Apache License 2.0.
local NX ... | apache-2.0 |
Kthulupwns/darkstar | scripts/globals/spells/bluemagic/enervation.lua | 3 | 1037 | ---------------------------------------------
-- Enervation
---------------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/bluemagic");
-----------------------------------------
-- OnSpellCast
--------------------------------------... | gpl-3.0 |
rohanp/Algorithm-Implementations | Burrows_Wheeler_Transform/Lua/Yonaba/bwt.lua | 26 | 1501 | -- Burrows-Wheeler Transform algorithm implementation
-- See: http://en.wikipedia.org/wiki/Burrows%E2%80%93Wheeler_transform#Sample_implementation
-- Returns the Burrows-Wheeler transform of an input string
-- @str : the original string to be encoded
-- returns : the transform
-- returns : an index to be used for d... | mit |
Kthulupwns/darkstar | scripts/zones/Northern_San_dOria/TextIDs.lua | 2 | 7659 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6579; -- Come back after sorting your inventory.
ITEM_OBTAINED = 6582; -- Obtained: <<<Unknown Parameter (Type: 80) 1>>><<<Possible Special Code: 01>>><<<Possible Special Code: 05>>>
GIL_OBTAINED = 6583;... | gpl-3.0 |
Velkon/DarkRP | entities/entities/money_printer/init.lua | 4 | 4168 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
local function PrintMore(ent)
if not IsValid(ent) then return end
ent.sparking = true
timer.Simple(3, function()
if not IsValid(ent) then return end
ent:CreateMoneybag()
end)
end
function ENT:StartSound()
... | mit |
ikoryakovskiy/grl | addons/muscod/cfg/nmpc_mhe_cartpole/cartpole_m1.lua | 12 | 5116 | --[[
-- RBDL cart-pole simulation
--
-- Author:
-- Manuel Kudruss, UHEI
--]]
-- define some convenience functions
function control(state, action)
-- mprl uses different parameters, multiply controls.
return {action[0], 0}
end
function get_point_by_name (container, name)
for key, value in ipairs(cont... | lgpl-3.0 |
ikoryakovskiy/grl | addons/muscod/cfg/inmpc_mhe_cartpole/cartpole_m1.lua | 12 | 5116 | --[[
-- RBDL cart-pole simulation
--
-- Author:
-- Manuel Kudruss, UHEI
--]]
-- define some convenience functions
function control(state, action)
-- mprl uses different parameters, multiply controls.
return {action[0], 0}
end
function get_point_by_name (container, name)
for key, value in ipairs(cont... | lgpl-3.0 |
hj3938/wax | tools/Tests/scripts/tests/base64Test.lua | 17 | 1466 |
describe["Base64 encoding"] = function()
it["should be able to round trip tricky combinations of two bytes"] = function()
for a = 0,255 do
for _,b in ipairs({0,1,2,252,253,254}) do
local s = string.char(a)..string.char(b)
expect(wax.base64.decode(wax.base64.encode(s))).should_be(s)
... | mit |
Velkon/DarkRP | gamemode/config/jobrelated.lua | 4 | 12538 | -- People often copy jobs. When they do, the GM table does not exist anymore.
-- This line makes the job code work both inside and outside of gamemode files.
-- You should not copy this line into your code.
local GAMEMODE = GAMEMODE or GM
/*--------------------------------------------------------
Default teams. Please ... | mit |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/DirectionLight.lua | 10 | 1297 |
--------------------------------
-- @module DirectionLight
-- @extend BaseLight
-- @parent_module cc
--------------------------------
-- Returns the Direction in parent.
-- @function [parent=#DirectionLight] getDirection
-- @param self
-- @return vec3_table#vec3_table ret (return value: vec3_table)
--------... | mit |
dpino/snabb | src/program/snabbnfv/nfvconfig.lua | 7 | 6819 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(...,package.seeall)
local VhostUser = require("apps.vhost.vhost_user").VhostUser
local PcapFilter = require("apps.packet_filter.pcap_filter").PcapFilter
local RateLimiter = require("apps.rate_limiter.rate_limiter").RateLimiter
local... | apache-2.0 |
dpino/snabb | lib/luajit/dynasm/dasm_arm64.lua | 30 | 34807 | ------------------------------------------------------------------------------
-- DynASM ARM64 module.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Chateau_dOraguille/npcs/Rahal.lua | 17 | 5968 | -----------------------------------
-- Area: Chateau d'Oraguille
-- NPC: Rahal
-- Involved in Quests: The Holy Crest, Lure of the Wildcat (San d'Oria)
-- @pos -28 0.1 -6 233
-----------------------------------
package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil;
-----------------------------------
... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Chamber_of_Oracles/bcnms/shattering_stars.lua | 13 | 1933 | -----------------------------------
-- Area: Qu'Bia Arena
-- Name: Shattering stars - Maat Fight
-- @pos -221 -24 19 206
-----------------------------------
package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Sacrificial_Chamber/TextIDs");
--... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/mobskills/Cyclone_Wing.lua | 6 | 1142 | ---------------------------------------------
-- Tebbad Wing
--
-- Description: Deals darkness damage to enemies within a very wide area of effect. Additional effect: Sleep
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: 30' radial.
-- Notes: Used only by Vrtra and Azdaja
--------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Windurst_Woods/npcs/Nalta.lua | 38 | 1033 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Nalta
-- Type: Conquest Troupe
-- @zone: 241
-- @pos 19.140 1 -51.297
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
----------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Beaucedine_Glacier/npcs/Parledaire_RK.lua | 30 | 3067 | -----------------------------------
-- Area: Beaucedine Glacier
-- NPC: Parledaire, R.K.
-- Type: Conquest Overseer
-- @pos -24.351 -60.421 -114.215 111
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/co... | gpl-3.0 |
AttacqueSuperior/Engine | mods/cnc/maps/nod06a/nod06a.lua | 2 | 7221 | --[[
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 |
Kthulupwns/darkstar | scripts/globals/items/pepperoni_pizza.lua | 35 | 1643 | -----------------------------------------
-- ID: 5697
-- Item: pepperoni_pizza
-- Food Effect: 3hours, All Races
-----------------------------------------
-- Health Points 30
-- Strength 1
-- Accuracy 5% (caps @ 10) **wiki doesnt have information on %, so guessed it to be 5%
-- Attack 10% (caps @ 25)
---------... | gpl-3.0 |
kuoruan/luci | applications/luci-app-watchcat/luasrc/model/cbi/watchcat/watchcat.lua | 2 | 1923 | -- Copyright 2012 Christian Gagneraud <chris@techworks.ie>
-- Licensed to the public under the Apache License 2.0.
m = Map("system",
translate("Watchcat"),
translate("Watchcat allows configuring a periodic reboot when the " ..
"Internet connection has been lost for a certain period of time."
))
s = m:secti... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Port_Bastok/npcs/Ominous_Cloud.lua | 19 | 5262 | -----------------------------------
-- Area: Port Bastok
-- NPC: Ominous Cloud
-- Type: Traveling Merchant NPC
-- @zone: 236
-- @pos 146.962 7.499 -63.316
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
--... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/spells/blind.lua | 11 | 1423 | -----------------------------------------
-- Spell: Blind
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,ta... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.