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/zones/Norg/npcs/Washu.lua | 17 | 3559 | -----------------------------------
-- Area: Norg
-- NPC: Washu
-- Involved in Quest: Yomi Okuri
-- Starts and finishes Quest: Stop Your Whining
-- @pos 49 -6 15 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/g... | gpl-3.0 |
ark120202/aabs | game/scripts/vscripts/heroes/hero_sai/invulnerability.lua | 1 | 2355 | LinkLuaModifier("modifier_sai_invulnerability", "heroes/hero_sai/invulnerability.lua", LUA_MODIFIER_MOTION_NONE)
sai_invulnerability = class({})
if IsServer() then
function sai_invulnerability:OnToggle()
local caster = self:GetCaster()
if self:GetToggleState() then
caster:AddNewModifier(caster, self, "modifie... | mit |
BarrRedKola/cbt | lib/nfpa_traffic.lua | 1 | 10039 | package.path = package.path ..";?.lua;test/?.lua;app/?.lua;"
require "Pktgen";
-- ################### CONFIGURATION PART ########################
-- for config params read from the config file
-- local variables for config parameters (read from nfpa.cfg generated in pktgen's root)
config = {};
-- local variable ... | gpl-2.0 |
StepDevelop/Minetest_Vanilla_Decor | vanilla_decor/tables.lua | 2 | 4123 | --[[
Copyright (C) 2016 Stefano <StepDevelop> Peris <stefanop.dev@gmail.com>
vanilla_decor 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 3 of the License, or
(at your option) any later ver... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/purple_polypore.lua | 36 | 1156 | -----------------------------------------
-- ID: 5682
-- Item: Purple Polypore
-- Food Effect: 5 Min, All Races
-----------------------------------------
-- Strength -6
-- Mind +4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck... | gpl-3.0 |
Velkon/DarkRP | gamemode/modules/fadmin/fadmin/playeractions/giveweapons/cl_init.lua | 14 | 1042 | local function GiveWeaponGui(ply)
local frame = vgui.Create("DFrame")
frame:SetTitle("Give weapon")
frame:SetSize(ScrW() / 2, ScrH() - 50)
frame:Center()
frame:SetVisible(true)
frame:MakePopup()
local WeaponMenu = vgui.Create("FAdmin_weaponPanel", frame)
WeaponMenu:StretchToParent(0,25,... | mit |
jamesbrink/sysdig | userspace/sysdig/chisels/v_mesos_frameworks.lua | 6 | 2586 | --[[
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 |
mlody1039/ModernOts | data/talkactions/scripts/online.lua | 1 | 1990 | local ranks = {
[1] = {"Tutor"},
[2] = {"S-Tutor"},
[3] = {"GM"},
[4] = {"CM"},
[5] = {"God"},
[6] = {"Owner"}
}
local config = {
showGamemasters = getBooleanFromString(getConfigValue('displayGamemastersWithOnlineCommand'))
}
function onSay(cid, words, param, channel)
local players = getPlayersOnline()
local strings ... | gpl-3.0 |
jlopenwrtluci/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/network.lua | 53 | 2738 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("Network Plugin Configuration"),
translate(
"The network plugin provides network based communication between " ..
"different collectd instances. Coll... | apache-2.0 |
Kthulupwns/darkstar | scripts/globals/items/plate_of_dorado_sushi.lua | 21 | 1679 | -----------------------------------------
-- ID: 5178
-- Item: plate_of_dorado_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 5
-- Accuracy % 15
-- Accuracy Cap 75
-- Ranged ACC % 15
-- Ranged ACC Cap 75
-- Sleep Resist 5
----------------------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Empyreal_Paradox/mobs/Selh'teus.lua | 6 | 1571 | -----------------------------------
-- Area: Empyreal Paradox
-- NPC: Selh'teus
-- Chains of Promathia 8-4 BCNM Fight
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("/scripts/zones/Empyreal_Paradox/TextIDs");
function onMobInitialize(mob)
mob:addM... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Riverne-Site_A01/Zone.lua | 15 | 1896 | -----------------------------------
--
-- Zone: Riverne-Site_A01
--
-----------------------------------
package.loaded["scripts/zones/Riverne-Site_A01/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Riverne-Site_A01/TextIDs");
require("scripts/globals/status");
require("scripts/... | gpl-3.0 |
dreamsxin/otclient | modules/corelib/ui/uitextedit.lua | 13 | 2337 | function UITextEdit:onStyleApply(styleName, styleNode)
for name,value in pairs(styleNode) do
if name == 'vertical-scrollbar' then
addEvent(function()
self:setVerticalScrollBar(self:getParent():getChildById(value))
end)
elseif name == 'horizontal-scrollbar' then
addEvent(function()
... | mit |
Kthulupwns/darkstar | scripts/zones/Apollyon/mobs/Fire_Elemental.lua | 119 | 2423 | -----------------------------------
-- Area: Apollyon SW
-- NPC: elemental
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
--------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/dish_of_spaghetti_pescatora_+1.lua | 35 | 1662 | -----------------------------------------
-- ID: 5200
-- Item: dish_of_spaghetti_pescatora_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health % 15
-- Health Cap 160
-- Vitality 3
-- Mind -1
-- Defense % 22
-- Defense Cap 70
-- Store TP 6
---------------------------------... | gpl-3.0 |
dpino/snabb | src/lib/ptree/support.lua | 4 | 8304 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(...,package.seeall)
local app = require("core.app")
local app_graph_mod = require("core.config")
local path_mod = require("lib.yang.path")
local path_data = require("lib.yang.path_data")
local yang = require("lib.yang.yang")
local d... | apache-2.0 |
ningg/Atlas | lib/proxy/balance.lua | 41 | 2807 | --[[ $%BEGINLICENSE%$
Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
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; version 2 of the
License.
This program is dis... | gpl-2.0 |
Kthulupwns/darkstar | scripts/globals/weaponskills/dark_harvest.lua | 29 | 1229 | -----------------------------------
-- Dark Harvest
-- Scythe weapon skill
-- Skill Level: 30
-- Delivers a dark elemental attack. Damage varies with TP.
-- Aligned with the Aqua Gorget.
-- Aligned with the Aqua Belt.
-- Element: Dark
-- Modifiers: STR:20% ; INT:20%
-- 100%TP 200%TP 300%TP
-- 1.00 ... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Zeruhn_Mines/npcs/Zelman.lua | 34 | 1737 | -----------------------------------
-- Area: Zeruhn Mines
-- NPC: Zelman
-- Involved In Quest: Groceries
-----------------------------------
package.loaded["scripts/zones/Zeruhn_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings");
... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Quicksand_Caves/mobs/Centurio_IV-VII.lua | 10 | 1426 | -----------------------------------
-- Area: Quicksand Caves
-- MOB: Centurio IV-VII
-- Pops in Bastok mission 8-1 "The Chains that Bind Us"
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Quicksand_Caves/TextIDs");
-----------------------------------
-- on... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Pashhow_Marshlands/npcs/Cavernous_Maw.lua | 29 | 1512 | -----------------------------------
-- Area: Pashhow Marshlands
-- NPC: Cavernous Maw
-- @pos 418 25 27 109
-- Teleports Players to Pashhow Marshlands [S]
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/porcupine_pie.lua | 35 | 1945 | -----------------------------------------
-- ID: 5156
-- Item: porcupine_pie
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP 55
-- Strength 6
-- Vitality 2
-- Intelligence -3
-- Mind 3
-- MP recovered while healing 2
-- Accuracy 5
-- Attack % 18 (cap 95)
-- Ranged Attack % ... | gpl-3.0 |
xvaara/kong | spec/unit/schemas_spec.lua | 2 | 26762 | local schemas = require "kong.dao.schemas_validation"
local validate_entity = schemas.validate_entity
require "kong.tools.ngx_stub"
describe("Schemas", function()
-- Ok kids, today we're gonna test a custom validation schema,
-- grab a pair of glasses, this stuff can literally explode.
describe("#validate_enti... | apache-2.0 |
ark120202/aabs | game/scripts/vscripts/heroes/hero_saitama/modifier_saitama_limiter.lua | 1 | 1553 | modifier_saitama_limiter = class({
IsPurgable = function() return false end,
RemoveOnDeath = function() return false end,
GetTexture = function() return "arena/modifier_saitama_limiter" end,
})
function modifier_saitama_limiter:DeclareFunctions()
return {
MODIFIER_EVENT_ON_DEATH,
MODIFIER_PROPERTY_BASE_A... | mit |
AttacqueSuperior/Engine | mods/d2k/maps/ordos-02a/ordos02a-AI.lua | 4 | 1137 | --[[
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/Western_Altepa_Desert/Zone.lua | 1 | 2598 | -----------------------------------
--
-- Zone: Western_Altepa_Desert (125)
--
-----------------------------------
package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Western_Altepa_Desert/TextIDs");
require("scripts/globals/icanheara... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/spells/aisha_ichi.lua | 11 | 1595 | -----------------------------------------
-- Spell: Aisha: Ichi
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/serving_of_cilbir.lua | 35 | 1562 | -----------------------------------------
-- ID: 5642
-- Item: serving_of_cilbir
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- HP % 5
-- MP % 5
-- HP recovered while healing 3
-- MP recovered while healing 3
-----------------------------------------
require("scripts/globals/st... | gpl-3.0 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/JumpTiles3D.lua | 10 | 1451 |
--------------------------------
-- @module JumpTiles3D
-- @extend TiledGrid3DAction
-- @parent_module cc
--------------------------------
-- amplitude rate
-- @function [parent=#JumpTiles3D] getAmplitudeRate
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
... | mit |
dpino/snabb | src/lib/yang/data.lua | 3 | 50578 | -- Use of this source code is governed by the Apache 2.0 license; see
-- COPYING.
module(..., package.seeall)
local parser_mod = require("lib.yang.parser")
local schema = require("lib.yang.schema")
local util = require("lib.yang.util")
local value = require("lib.yang.value")
local ffi = require("ffi")
local ctable = r... | apache-2.0 |
Kthulupwns/darkstar | scripts/globals/items/rarab_tail.lua | 35 | 1193 | -----------------------------------------
-- ID: 4444
-- Item: rarab_tail
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility 1
-- Vitality -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCh... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Port_San_dOria/npcs/Answald.lua | 19 | 1451 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Answald
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
require("scripts/zones/Port_San_dOria/TextIDs");
-----------------------------------
-- onTrade Action
--------... | gpl-3.0 |
FPtje/DarkRP | gamemode/modules/fadmin/fadmin/cl_interface/cl_scoreboardMain.lua | 1 | 4679 | local Sorted, SortDown = CreateClientConVar("FAdmin_SortPlayerList", "Team", true), CreateClientConVar("FAdmin_SortPlayerListDown", 1, true)
local allowedSorts = {
["Name"] = true,
["Team"] = true,
["Frags"] = true,
["Deaths"] = true,
["Ping"] = true
}
function FAdmin.ScoreBoard.Main.Show()
loc... | mit |
Kthulupwns/darkstar | scripts/globals/items/butterpear.lua | 36 | 1246 | -----------------------------------------
-- ID: 5908
-- Item: Butterpear
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility +4
-- Vitality +1
-- Resist Amnesia +20
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
... | gpl-3.0 |
dstodev/MC-Fluid-Tank-Controller | lib/configurator.lua | 1 | 1807 | -- OpenComputers Lib
local cm = require("component")
local os = require("os")
-- My Lib
local EventLoop = require("lib/event_loop")
-- Components
local gpu = cm.gpu
-- Internal Variables
local buttons = {}
local max_x, max_y = gpu.maxResolution()
-- Functions
local function create_button(id, callback, x1, y1, x2, y... | mit |
Kthulupwns/darkstar | scripts/zones/Rolanberry_Fields/Zone.lua | 1 | 2304 | -----------------------------------
--
-- Zone: Rolanberry_Fields (110)
--
-----------------------------------
package.loaded["scripts/zones/Rolanberry_Fields/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Rolanberry_Fields/TextIDs");
require("scripts/globals/icanheararainbow");
... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Alzadaal_Undersea_Ruins/npcs/qm1.lua | 15 | 1195 | -----------------------------------
-- Area: Alzadaal Undersea Ruins
-- NPC: ??? (Spawn Ob(ZNM T1))
-- @pos 542 0 -129 72
-----------------------------------
package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Alzadaal_Undersea_Ruins/TextID... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Port_Jeuno/npcs/Challoux.lua | 37 | 1148 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Challoux
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
require("scripts/zones/Port_Jeuno/TextIDs");
-----------------------------------
-... | gpl-3.0 |
rohanp/Algorithm-Implementations | Maximum_Subarray/Lua/Yonaba/maximum_subarray_test.lua | 26 | 1897 | -- Tests for maximum_subarray.lua
local gss = require 'maximum_subarray'
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 +... | mit |
Kthulupwns/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Ranpi-Monpi.lua | 38 | 1048 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Ranpi-Monpi
-- Type: Standard NPC
-- @zone: 94
-- @pos -115.452 -3 43.389
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/cup_of_healing_tea.lua | 35 | 1373 | -----------------------------------------
-- ID: 4286
-- Item: cup_of_healing_tea
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Magic 10
-- Vitality -1
-- Charisma 3
-- Magic Regen While Healing 2
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Mamook/npcs/qm2.lua | 15 | 1163 | -----------------------------------
-- Area: Mamook
-- NPC: ??? (Spawn Iriri Samariri(ZNM T2))
-- @pos -118 7 -80 65
-----------------------------------
package.loaded["scripts/zones/Mamook/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mamook/TextIDs");
--------------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/pot-au-feu_+1.lua | 22 | 1573 | -----------------------------------------
-- ID: 5753
-- Item: Pot-au-feu
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength 4
-- Agility 4
-- Intelligence -2
-- Ranged Attk % 15 Cap 35 ??
-- Ranged ACC % 15 Cap 35 ??
-----------------------------------------
require("scripts/global... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Xarcabard/Zone.lua | 5 | 2802 | -----------------------------------
--
-- Zone: Xarcabard (112)
--
-----------------------------------
package.loaded[ "scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Xarcabard/TextIDs");
require("scripts/globals/icanheararainbow");
require("scripts/global... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/qm1.lua | 34 | 1033 | -----------------------------------
-- Area: Phomiuna Aqueducts
-- NPC: qm1 (???)
-- Notes: Opens east door @ F-7
-- @pos -44.550 -24.601 106.495 27
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,tra... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Temenos/mobs/Airi.lua | 17 | 1277 | -----------------------------------
-- Area: Temenos Central 1floor
-- NPC: Airi
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
----------------------... | gpl-3.0 |
xvaara/kong | kong/cli/utils/luarocks.lua | 2 | 1163 | local constants = require "kong.constants"
local lpath = require "luarocks.path"
local Luarocks = {}
--
-- Luarocks
--
function Luarocks.get_kong_infos()
return { name = constants.NAME, version = constants.ROCK_VERSION }
end
function Luarocks.get_dir()
local cfg = require "luarocks.cfg"
local search = require ... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Quicksand_Caves/npcs/_5sb.lua | 19 | 1272 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Ornate Door
-- Door blocked by Weight system
-- @pos -420 0 735 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Cave... | gpl-3.0 |
Mleaf/mleaf_luci | applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-cdr.lua | 80 | 1878 | --[[
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 |
Kthulupwns/darkstar | scripts/zones/Dynamis-Buburimu/mobs/Goblin_Replica.lua | 17 | 2439 | -----------------------------------
-- Area: Dynamis Buburimu
-- NPC: Goblin Replica
-----------------------------------
package.loaded["scripts/zones/Dynamis-Buburimu/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Buburimu/TextIDs");
... | gpl-3.0 |
kuoruan/luci | applications/luci-app-coovachilli/luasrc/model/cbi/coovachilli_network.lua | 79 | 1459 | -- 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 sys = require"luci.sys"
local ip = require "luci.ip"
m = Map("coovachilli")
-- tun
s1 = m:section(TypedSection, "tun")
s1.anonymous = true
s1:option(... | apache-2.0 |
dpino/snabb | lib/ljsyscall/syscall/openbsd/ffi.lua | 18 | 6838 | -- This are the types for OpenBSD
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 abi = require "syscal... | apache-2.0 |
VanessaE/minetest_game | mods/default/player.lua | 4 | 4700 | -- Minetest 0.4 mod: player
-- See README.txt for licensing and other information.
-- Player animation blending
-- Note: This is currently broken due to a bug in Irrlicht, leave at 0
local animation_blend = 0
default.registered_player_models = { }
-- Local for speed.
local models = default.registered_player_models
... | lgpl-2.1 |
Kthulupwns/darkstar | scripts/zones/Lower_Delkfutts_Tower/npcs/_544.lua | 16 | 1666 | -----------------------------------
-- Area: Lower Delkfutt's Tower
-- NPC: Cermet Door
-- Notes: Door opens when you trade Delkfutt Key to it
-- @pos 345 0.1 20 184
-----------------------------------
package.loaded["scripts/zones/Lower_Delkfutts_Tower/TextIDs"] = nil;
-----------------------------------
... | gpl-3.0 |
Wiladams/LJIT2Win32 | FileSystem.lua | 1 | 2410 |
local ffi = require "ffi"
require "WTypes"
require "WinBase"
local Kernel32 = require "Kernel32"
ffi.cdef[[
struct IODevice {
HANDLE Handle;
};
]]
local IODevice = ffi.typeof("struct IODevice")
local IODevice_mt = {
__gc = function(self)
end,
__index = {
CancelIo = function(self)
end,
Lock = functi... | mit |
mightymadTV/gmod_deathmatch | teamdeathmatch/entities/entities/base_point.lua | 3 | 1127 |
ENT.Base = "base_entity"
ENT.Type = "point"
--[[---------------------------------------------------------
Name: Initialize
Desc: First function called. Use to set up your entity
-----------------------------------------------------------]]
function ENT:Initialize()
end
--[[-------------------------------------... | gpl-2.0 |
telbbs/luci-0.12 | modules/freifunk/luasrc/model/cbi/freifunk/profile.lua | 56 | 2755 | --[[
LuCI - Lua Configuration Interface
Copyright 2011-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
httc://www.apache.org/licenses/LICENSE-2.0
]]... | apache-2.0 |
aa65535/luci | applications/luci-app-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo_mini.lua | 141 | 1031 | --[[
smap_devinfo - SIP Device Information
(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.i18n")
re... | apache-2.0 |
Weuxel/cjdns | contrib/lua/cjdns/addrcalc.lua | 19 | 1888 | -- Cjdns address conversion functions
-- Translated from Cjdns C code to lua code by Alex <alex@portlandmeshnet.org>
--- @module cjdns.addrcalc
local addrcalc = {}
local bit32 = require("bit32")
local sha2 = require("sha2")
function addrcalc.Base32_decode(input)
local numForAscii = {
99,99,99,99,99,99,99,99,99,9... | gpl-3.0 |
dreamsxin/otclient | modules/client_terminal/terminal.lua | 6 | 10799 | -- configs
local LogColors = { [LogDebug] = 'pink',
[LogInfo] = 'white',
[LogWarning] = 'yellow',
[LogError] = 'red' }
local MaxLogLines = 128
local MaxHistory = 1000
local oldenv = getfenv(0)
setfenv(0, _G)
_G.commandEnv = runinsandbox('commands')
setfenv(0,... | mit |
StepDevelop/Minetest_Vanilla_Decor | vanilla_decor/connected_glass.lua | 2 | 1302 | --[[
Copyright (C) 2016 Stefano <StepDevelop> Peris <stefanop.dev@gmail.com>
vanilla_decor 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 3 of the License, or
(at your option) any later ver... | gpl-3.0 |
jamesbrink/sysdig | userspace/sysdig/chisels/stdin.lua | 18 | 1292 | --[[
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/Abyssea-Misareaux/Zone.lua | 32 | 1543 | -----------------------------------
--
-- Zone: Abyssea - Misareaux
--
-----------------------------------
package.loaded["scripts/zones/Abyssea-Misareaux/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/zones/Abysse... | gpl-3.0 |
HaveF/papercrop | mylib_debugger.lua | 15 | 16088 |
function dbg.traceBack(level)
if level==nil then
level=1
end
while true do
local info=debug.getinfo(level)
local k=info.name
if k==nil then
break
else
print('----------------------------------------------------------')
print('Level: ', level)
print(info.short... | gpl-2.0 |
FPtje/DarkRP | gamemode/modules/base/sh_util.lua | 1 | 13528 | --[[---------------------------------------------------------------------------
Utility functions
---------------------------------------------------------------------------]]
local vector = FindMetaTable("Vector")
local meta = FindMetaTable("Player")
--[[--------------------------------------------------------------... | mit |
jwyang/joint-unsupervised-learning | models_def/FRGC.lua | 1 | 1104 | require 'nn'
require 'cunn'
local backend_name = 'nn'
local backend
if backend_name == 'cudnn' then
require 'cudnn'
backend = cudnn
else
backend = nn
end
local net = nn.Sequential()
-- building block
local function ConvBNReLU(module, nInputPlane, nOutputPlane)
module:add(backend.SpatialConvolution(nInputP... | mit |
aa65535/luci | applications/luci-app-pbx/luasrc/model/cbi/pbx-advanced.lua | 18 | 14476 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx 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 3 of the License, or
... | apache-2.0 |
Kthulupwns/darkstar | scripts/globals/spells/bluemagic/head_butt.lua | 3 | 1183 | 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 |
siilaas/TiGER | plugins/info.lua | 21 | 22309 | local function callback_reply(extra, success, result)
--icon & rank ------------------------------------------------------------------------------------------------
userrank = "Member"
if is_vip(msg) then
userrank = "VIP ⭐⭐⭐⭐"
send_document(org_chat_id,"./icons/7.webp", ok_cb, false)
elseif is_sudo(result) then... | gpl-2.0 |
danShumway/Piglet | Piglet/Processors/tests/guessTestRevise.lua | 1 | 1996 | local guessTestRevise = {}
--
function guessTestRevise.iterate()
--If we've reached the end, iterate on the winning formula.
if(Piglet.Memory.Short.strategies.refresh == true) then
Piglet.Memory.Short.strategies.refresh = false --We're doing it.
local bestStrategy = 1
local bestScore = 0
--Find winner
... | agpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Dhima_Polevhia.lua | 34 | 1039 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Dhima Polevhia
-- 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/globals/mobskills/Gusting_Gouge.lua | 6 | 1028 | ---------------------------------------------
-- Gusting Gouge
--
-- Description: Deals Wind damage in a threefold attack to targets in a fan-shaped area of effect.
-- Type: Physical?
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range: Melee?
-- Notes: Used only by Lamia equipped with a one-handed weapon. If t... | gpl-3.0 |
FPtje/DarkRP | gamemode/modules/positions/sv_database.lua | 1 | 5226 | --[[---------------------------------------------------------------------------
Loading
---------------------------------------------------------------------------]]
local teamSpawns = {}
local jailPos = {}
local function onDBInitialized()
local map = MySQLite.SQLStr(string.lower(game.GetMap()))
MySQLite.query(... | mit |
scottcs/wyx | wyx/component/AIInputComponent.lua | 1 | 2831 | local Class = require 'lib.hump.class'
local InputComponent = getClass 'wyx.component.InputComponent'
local message = require 'wyx.component.message'
local property = require 'wyx.component.property'
-- tables to translate direction strings to coordinates
local _x = {l=-1, r=1, u=0, d=0, ul=-1, ur=1, dl=-1, dr=1}
loca... | mit |
Kthulupwns/darkstar | scripts/zones/Labyrinth_of_Onzozo/TextIDs.lua | 5 | 1092 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6382; -- Obtained: <item>.
GIL_OBTAINED = 6383; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6385; -- Obtained... | gpl-3.0 |
dpino/snabb | lib/luajit/src/jit/dis_ppc.lua | 59 | 20301 | ----------------------------------------------------------------------------
-- LuaJIT PPC disassembler module.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- Released under the MIT/X license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------... | apache-2.0 |
ArcadiaGamingNetwork/AGC-DarkRP-Configuration | lua/darkrp_modules/weaponsettings/sh_weaponsettings.lua | 8 | 2227 | -- Ignore these two lines:
local weapon = weapons.GetStored
local function edit()
--[[
---------------------------------------------------------------------------
Weapon setting changer module
---------------------------------------------------------------------------
This module allows you to change the settings of w... | mit |
awhitesong/rspamd | src/plugins/lua/trie.lua | 1 | 4637 | --[[
Copyright (c) 2011-2015, Vsevolod Stakhov <vsevolod@highsecure.ru>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
lis... | bsd-2-clause |
himamm/uzzbot | plugins/face.lua | 641 | 3073 | local https = require("ssl.https")
local ltn12 = require "ltn12"
-- 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(imageUrl)
local api_key = mashape.api_key
if api_key:isempt... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Caedarva_Mire/npcs/Kwadaaf.lua | 23 | 1347 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: Kwadaaf
-- Type: Entry to Alzadaal Undersea Ruins
-- @pos -639.000 12.323 -260.000 79
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitem... | gpl-3.0 |
mlody1039/ModernOts | data/npc/scripts/Eva.lua | 9 | 13057 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local thinkMsg = {
"It's a wise idea to store your money in a bank account."
}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) ... | gpl-3.0 |
ark120202/aabs | game/scripts/vscripts/heroes/hero_saitama/jogging.lua | 1 | 1886 | LinkLuaModifier("modifier_saitama_jogging", "heroes/hero_saitama/jogging.lua", LUA_MODIFIER_MOTION_NONE)
saitama_jogging = class({
GetIntrinsicModifierName = function() return "modifier_saitama_jogging" end,
})
if IsServer() then
function saitama_jogging:OnUpgrade()
local modifier = self:GetCaster():FindModifierB... | mit |
mightymadTV/gmod_deathmatch | teamdeathmatch/gamemode/cl_hudpickup.lua | 3 | 6359 |
GM.PickupHistory = {}
GM.PickupHistoryLast = 0
GM.PickupHistoryTop = ScrH() / 2
GM.PickupHistoryWide = 300
GM.PickupHistoryCorner = surface.GetTextureID( "gui/corner8" )
--[[---------------------------------------------------------
Name: gamemode:HUDWeaponPickedUp( wep )
Desc: The game wants you to draw on the H... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Qufim_Island/npcs/qm3.lua | 17 | 4404 | -----------------------------------
-- Area: Qufim Island
-- NPC: ??? (qm3)
-- Mission: ACP - The Echo Awakens
-- @zone 126
-- @pos -120.342 -19.471 306.661
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-------------------------------------
require("scripts/z... | gpl-3.0 |
aa65535/luci | protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_ppp.lua | 47 | 3692 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local device, username, password
local ipv6, defaultroute, metric, peerdns, dns,
keepalive_failure, keepalive_interval, demand, mtu
device = section:taboption("general", Value... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Temenos/mobs/Temenos_Cleaner.lua | 17 | 1285 | -----------------------------------
-- Area: Temenos Central 1floor
-- NPC: Temenos_Cleaner
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------... | gpl-3.0 |
mlody1039/ModernOts | data/npc/scripts/trainer_quest.lua | 1 | 2543 | 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:onCreatureDisapp... | gpl-3.0 |
aidansmyth/corona_game_template | scene_template.lua | 1 | 4283 | --[[----------------------------------------------------------------------------
SCENE NAME: scene_template.lua
DATE:
AUTHOR:
SCENE NOTES:
------------------------------------------------------------------------------]]
--------------------------------------------------------------------------------
-- SC... | mit |
Kthulupwns/darkstar | scripts/globals/items/thundermelon.lua | 35 | 1199 | -----------------------------------------
-- ID: 4412
-- Item: thundermelon
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -6
-- Intelligence 4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- On... | gpl-3.0 |
awhitesong/rspamd | test/lua/compat_env.lua | 11 | 13692 | --[[
compat_env v$(_VERSION) - Lua 5.1/5.2 environment compatibility functions
SYNOPSIS
-- Get load/loadfile compatibility functions only if using 5.1.
local CL = pcall(load, '') and _G or require 'compat_env'
local load = CL.load
local loadfile = CL.loadfile
-- The following now works in both Lua... | bsd-2-clause |
AGTMADCAT/naev | dat/gui/legacy.lua | 11 | 10515 |
--[[
@brief Obligatory create function.
Run when the GUI is loaded which is caused whenever the player gets in a different ship.
--]]
function create()
-- Get the player
pp = player.pilot()
pfact = pp:faction()
-- Get sizes
screen_w, screen_h = gfx.dim()
deffont_h = gfx.fontSize()
smallfo... | gpl-3.0 |
ark120202/aabs | game/scripts/vscripts/heroes/hero_arthas/modifier_arthas_vsolyanova_active.lua | 1 | 3413 | modifier_arthas_vsolyanova_active = class({
IsPurgable = function() return false end,
IsHidden = function() return true end,
GetEffectName = function() return "particles/units/heroes/hero_terrorblade/terrorblade_metamorphosis.vpcf" end,
GetEffectAttachType = function() return PATTACH_ABSOR... | mit |
mlody1039/ModernOts | data/npc/scripts/Dalbrect.lua | 1 | 1776 | 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 onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) en... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/spells/bluemagic/wild_oats.lua | 3 | 1208 | 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 |
Kthulupwns/darkstar | scripts/globals/abilities/scholars_roll.lua | 2 | 1438 | -----------------------------------
-- Ability: Choral Roll
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- onUseAbility
-----------------------------------
function onAbilityCheck(player,target,ability)
lo... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/spells/bluemagic/bad_breath.lua | 3 | 2661 | ---------------------------------------------
-- Bad Breath
---------------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/bluemagic");
---------------------------------------------
function onMagicCastingCheck(caster,target,spell)
... | gpl-3.0 |
Velkon/DarkRP | entities/weapons/weapon_fiveseven2/shared.lua | 12 | 1108 | AddCSLuaFile()
if CLIENT then
SWEP.PrintName = "FiveSeven"
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.Spawnable = t... | mit |
aidansmyth/corona_game_template | scene_splash.lua | 1 | 5119 | --[[----------------------------------------------------------------------------
SCENE NAME: scene_splash.lua
DATE:
AUTHOR:
SCENE NOTES:
------------------------------------------------------------------------------]]
--------------------------------------------------------------------------------
-- SCEN... | mit |
coinzen/coinage | modules/file/init.lua | 2 | 9075 | local seawolf = require 'seawolf'.__build('fs', 'behaviour', 'variable')
local config, theme, header, _GET = settings.file or {}, theme, header, _GET
local tinsert, tconcat, lfs, env = table.insert, table.concat, lfs, env
local is_dir, is_file, add_js = seawolf.fs.is_dir, seawolf.fs.is_file, add_js
local temp_dir, empt... | agpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Windurst_Waters/npcs/Kopopo.lua | 33 | 1196 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Kopopo
-- Guild Merchant NPC: Cooking Guild
-- @pos -103.935 -2.875 74.304 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.