repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
mlody1039/ModernOts | data/npc/scripts/Captain Waverider.lua | 1 | 1268 | 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) ... | gpl-3.0 |
dpino/snabb | lib/pflua/src/pf.lua | 11 | 3562 | module("pf",package.seeall)
local savefile = require("pf.savefile")
local types = require("pf.types")
local libpcap = require("pf.libpcap")
local bpf = require("pf.bpf")
local parse = require('pf.parse')
local expand = require('pf.expand')
local optimize = require('pf.optimize')
local anf = require('pf.anf')
local ssa... | apache-2.0 |
amenophis1er/prosody-modules | mod_idlecompat/mod_idlecompat.lua | 35 | 1149 | -- Last User Interaction in Presence via Last Activity compatibility module
-- http://xmpp.org/extensions/xep-0319.html
-- http://xmpp.org/extensions/xep-0012.html
-- Copyright (C) 2014 Tobias Markmann
--
-- This file is MIT/X11 licensed.
local st = require "util.stanza";
local datetime = require "util.datetime";
loc... | mit |
hxa7241/minilight-lua | Triangle.lua | 1 | 6282 | --------------------------------------------------------------------------------
-- --
-- MiniLight Lua : minimal global illumination renderer --
-- Harrison Ainsworth / HXA7241 : 2007-2008, 2013. ... | cc0-1.0 |
Kthulupwns/darkstar | scripts/zones/Port_Windurst/npcs/Yafa_Yaa.lua | 36 | 2750 | -----------------------------------
-- Area: Port Windurst
-- NPC: Yafa Yaa
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scripts/zones/Port_W... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Halvung/npcs/qm3.lua | 15 | 1151 | -----------------------------------
-- Area: Halvung
-- NPC: ??? (Spawn Reacton(ZNM T2))
-- @pos 18 -9 213 62
-----------------------------------
package.loaded["scripts/zones/Halvung/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Halvung/TextIDs");
-----------------------------------
--... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/bunch_of_san_dorian_grapes.lua | 35 | 1213 | -----------------------------------------
-- ID: 4431
-- Item: Bunch of San Dorian Grapes
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -5
-- Intelligence 3
-----------------------------------------
require("scripts/globals/status");
----------------------------------... | gpl-3.0 |
GreenFaith/Topics | model/field.lua | 1 | 1245 | local Field = {}
local mt = {__call = function (t, args) return t.new(args) end }
setmetatable(Field, mt)
function Field.new(args)
local type_str, default, min, max =
args._, args.default, args.min, args.max
if not type_str then return end
if type_str == "number" then
--int(11)
if ... | mit |
dios-game/dios-cocos-samples | src/lua-earth-warrior-3d/Resources/src/Fodder.lua | 2 | 1974 | require("AirCraft")
require("GameLayer")
require("const")
local AirCraft = class("Foldder", function()
return require("AirCraft").new()
end)
---------------------------
--@return #boolean true if init success
function Foldder:init()
self._score = 10
self._alive = true
self._model = cc.EffectSprite3D:c... | mit |
dpino/snabb | lib/ljsyscall/syscall/linux/ppc/constants.lua | 48 | 6400 | -- ppc specific constants
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 h = require "syscall.helpers"... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Qufim_Island/npcs/Hieroglyphics.lua | 17 | 2168 | -----------------------------------
-- Area: Qufim_Island
-- NPC: Hieroglyphics
-- Dynamis Qufim Entrance
-- @pos 117 -10 133 172 118
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
requi... | gpl-3.0 |
Velkon/DarkRP | gamemode/config/addentities.lua | 9 | 4975 | DarkRP.createShipment("Desert eagle", {
model = "models/weapons/w_pist_deagle.mdl",
entity = "weapon_deagle2",
price = 215,
amount = 10,
separate = true,
pricesep = 215,
noship = true,
allowed = {TEAM_GUN},
category = "Pistols",
})
DarkRP.createShipment("Fiveseven", {
model = "m... | mit |
mlody1039/ModernOts | data/actions/scripts/other/doors.lua | 4 | 5268 | local function checkStackpos(item, position)
position.stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE
local thing = getThingFromPos(position)
position.stackpos = STACKPOS_TOP_FIELD
local field = getThingFromPos(position)
return (item.uid == thing.uid or thing.itemid < 100 or field.itemid == 0)
end
local funct... | gpl-3.0 |
Eyedema/taytay | plugins/giphy.lua | 3 | 1783 | -- Idea by https://github.com/asdofindia/telegram-bot/
-- See http://api.giphy.com/
do
local BASE_URL = 'http://api.giphy.com/v1'
local API_KEY = 'dc6zaTOxFJmzC' -- public beta key
function get_image(response)
local images = json:decode(response).data
if #images == 0 then return nil end -- No images
local i = ... | gpl-2.0 |
pfirsich/andross | examples/lowlevelapi.lua | 1 | 2768 | andross = require "andross"
andross.backend = require "andross.love"
dragonBones = require "andross.dragonbones"
-- excuse all the globals and such, but I just want to get this out there and don't think at all if possible
function love.load(args)
--local attachmentMgr = andross.backend.AttachmentManager("media/du... | mit |
aliwar/migmig | 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... | agpl-3.0 |
Nehmulos/knight-game | cocos2d/external/lua/luajit/src/dynasm/dasm_mips.lua | 74 | 28080 | ------------------------------------------------------------------------------
-- DynASM MIPS module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _i... | gpl-3.0 |
aa65535/luci | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/splash_leases.lua | 68 | 1118 | -- Copyright 2013 Freifunk Augsburg / Michael Wendland <michael@michiwend.com>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.splash_leases", package.seeall)
function rrdargs( graph, plugin, plugin_instance, dtype )
... | apache-2.0 |
azukiapp/luasocket | src/mime.lua | 149 | 2487 | -----------------------------------------------------------------------------
-- MIME support for the Lua language.
-- Author: Diego Nehab
-- Conforming to RFCs 2045-2049
-----------------------------------------------------------------------------
----------------------------------------------------------------------... | mit |
ArcadiaGamingNetwork/AGC-DarkRP-Configuration | lua/darkrp_modules/tcb_f4menu/cl_panel_commands.lua | 1 | 6515 | /*---------------------------------------------------------------------------
Creator: TheCodingBeast - TheCodingBeast.com
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
To view a copy of this license, visit http://creativecommons.org/licenses/by-n... | mit |
dreamsxin/otclient | modules/gamelib/protocollogin.lua | 4 | 7154 | -- @docclass
ProtocolLogin = extends(Protocol, "ProtocolLogin")
LoginServerError = 10
LoginServerTokenSuccess = 12
LoginServerTokenError = 13
LoginServerUpdate = 17
LoginServerMotd = 20
LoginServerUpdateNeeded = 30
LoginServerSessionKey = 40
LoginServerCharacterList = 100
LoginServerExtendedCharacterList = 101
-- Sin... | mit |
GabrielNicolasAvellaneda/luvit-upstream | deps/https.lua | 2 | 2153 | --[[
Copyright 2015 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 |
amenophis1er/prosody-modules | mod_flash_policy/mod_flash_policy.lua | 32 | 1329 | local filters = require "util.filters";
local config = {}
config.file = module:get_option_string("crossdomain_file", "");
config.string = module:get_option_string("crossdomain_string", [[<?xml version="1.0"?><!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd"><cross-domain-policy><site-control perm... | mit |
ZeroNoFun/The-Aperture | lua/entities/ent_catapult.lua | 2 | 7274 | AddCSLuaFile( )
ENT.Base = "gasl_base_ent"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.AutomaticFrameAdvance = true
function ENT:SpawnFunction( ply, trace, ClassName )
if ( !trace.Hit ) then return end
if ( !APERTURESCIENCE.ALLOWING.catapult && !ply:IsSuperAdmin() ) then ply:PrintMessage( HUD_PRINTTALK, "This entity ... | mit |
FlightControl-Master/DCS-API | DCSController.lua | 1 | 5639 | -------------------------------------------------------------------------------
-- @module DCSController
--- Controller is an object that performs A.I.-routines. Other words controller is an instance of A.I.. Controller stores current main task, active enroute tasks and behavior options. Controller performs command... | gpl-3.0 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/PhysicsJointRotaryLimit.lua | 10 | 1172 |
--------------------------------
-- @module PhysicsJointRotaryLimit
-- @extend PhysicsJoint
-- @parent_module cc
--------------------------------
--
-- @function [parent=#PhysicsJointRotaryLimit] getMax
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
--
-- ... | mit |
iver56/csound | examples/lua/csound_ffi.lua | 5 | 4871 | print [[
U S I N G C S O U N D 6 V I A L U A J I T F F I
Copyright (C) 2013 by Michael Gogins.
This software is licensed under the terms of the
GNU Lesser General Public License.
This script requires LuaJIT from luajit.org.
This script demonstrates how to generate a Csound score in
Lua, and th... | lgpl-2.1 |
moltafet35/seeh | 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 |
Omar-Real/RealBot | 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 |
matinbot/antispamgram | 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 |
ashkan1996/hunter002 | 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 |
ASHRAF97/ASHRAFKASPERV3 | 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 |
Kthulupwns/darkstar | scripts/zones/Halvung/npcs/Mining_Point.lua | 29 | 1078 | -----------------------------------
-- Area: Halvung
-- NPC: Mining Point
-----------------------------------
package.loaded["scripts/zones/Halvung/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/mining");
require("scripts/zones/Halvung/TextIDs");
-------------------------... | gpl-3.0 |
JamesWilko/Payday-2-BLT-Lua | mods/base/req/core/DelayedCalls.lua | 1 | 1289 |
DelayedCalls = DelayedCalls or {}
DelayedCalls._calls = DelayedCalls._calls or {}
Hooks:Add("MenuUpdate", "MenuUpdate_Queue", function( t, dt )
DelayedCalls:Update(t, dt)
end)
Hooks:Add("GameSetupUpdate", "GameSetupUpdate_Queue", function( t, dt )
DelayedCalls:Update(t, dt)
end)
function DelayedCalls:Update( time... | mit |
Kthulupwns/darkstar | scripts/zones/Port_Bastok/npcs/Agapito.lua | 18 | 1866 | -----------------------------------
-- Area: Port Bastok
-- NPC: Agapito
-- Start & Finishes Quest: The Stars of Ifrit
-- @zone: 236
-- @pos -72.093 -3.097 9.309
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/s... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Yuhtunga_Jungle/npcs/Cermet_Headstone.lua | 9 | 3909 | -----------------------------------
-- Area: Yuhtunga Jungle
-- NPC: Cermet Headstone
-- Involved in Mission: ZM5 Headstone Pilgrimage (Fire Fragment)
-- @pos 491 20 301 123
-----------------------------------
package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil;
-----------------------------------
... | gpl-3.0 |
Velkon/DarkRP | gamemode/modules/hungermod/sh_interface.lua | 14 | 2104 | DarkRP.createFood = DarkRP.stub{
name = "createFood",
description = "Create food for DarkRP.",
parameters = {
{
name = "name",
description = "The name of the food.",
type = "string",
optional = false
},
{
name = "tbl",
... | mit |
CadishShank/Ardour-5.0.2.0-Cad | scripts/synth1.lua | 3 | 2631 | ardour {
["type"] = "dsp",
name = "Simple Synth",
category = "Instrument",
license = "MIT",
author = "Ardour Lua Task Force",
description = [[An Example Synth for Prototyping.]]
}
function dsp_ioconfig ()
return
{
-- { midi_in = 1, audio_in = 0, audio_out = -1}, -- any number of channels... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5fa.lua | 34 | 1105 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Odin's Gate
-- @pos 260 -34 -49 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs");... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Kazham/npcs/Pahya_Lolohoiv.lua | 35 | 1341 | -----------------------------------
-- Area: Kazham
-- NPC: Pahya Lolohoiv
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTr... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/weaponskills/shoulder_tackle.lua | 12 | 1561 | -----------------------------------
-- Shoulder Tackle
-- Hand-to-Hand weapon skill
-- Skill Level: 40
-- Stuns target. Chance of stunning varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Aqua Gorget & Thunder Gorget.
-- Aligned with the Aqua Belt & Thunder Belt.
-- Element: None
-- Modifie... | gpl-3.0 |
Velkon/DarkRP | gamemode/modules/base/sh_gamemode_functions.lua | 4 | 2277 | function GM:SetupMove(ply, mv, cmd)
if ply:isArrested() then
mv:SetMaxClientSpeed(self.Config.arrestspeed)
end
return self.BaseClass:SetupMove(ply, mv, cmd)
end
function GM:StartCommand(ply, usrcmd)
-- Used in arrest_stick and unarrest_stick but addons can use it too!
local wep = ply:GetAct... | mit |
Kthulupwns/darkstar | scripts/zones/Sacrarium/npcs/Stale_Draft.lua | 9 | 3448 | -----------------------------------
-- NPC: Stale Draft
-- Area: Sacrarium
-- Notes: Used to spawn Swift Belt NM's
-----------------------------------
package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Sacrarium/TextIDs");
---------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/block_of_stone_cheese.lua | 35 | 1240 | -----------------------------------------
-- ID: 4460
-- Item: Block of Stone Cheese
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health % 5.5
-- Health Cap 40
-----------------------------------------
require("scripts/globals/status");
-------------------------------------... | gpl-3.0 |
cedlemo/blingbling | task_warrior.lua | 6 | 5452 | -- @author cedlemo
local helpers = require("blingbling.helpers")
local awful = require("awful")
local naughty = require("naughty")
local wibox = require("wibox")
local superproperties = require("blingbling.superproperties")
local string = string
local math = math
local ipairs = ipairs
local next = next
local pairs =... | gpl-2.0 |
davegoopot/mcrcd-minetest-game | games/mcr_coderdojo/mods/Jeija-minetest-mod-mesecons-d19e975/mesecons/init.lua | 1 | 4288 | -- |\ /| ____ ____ ____ _____ ____ _____
-- | \ / | | | | | | | |\ | |
-- | \/ | |___ ____ |___ | | | | \ | |____
-- | | | | | | | | | \ | |
-- | | |___ ____| |___ |____ |____| | \| ____|
-- by Jeija, Uberi (Temperest), sfan5, VanessaE
-... | lgpl-3.0 |
limelime/xmpv | xmpv/xmpv-asst.lua | 1 | 1374 | -----------------------------------------------------------------------------
-- ASS tag class: http://docs.aegisub.org/latest/ASS_Tags/
-- -Simplify display of ASS tag.
-----------------------------------------------------------------------------
Asst = {
}
-- 'Constructor'
function Asst:new(o)
o = o or {}
set... | gpl-2.0 |
Kthulupwns/darkstar | scripts/globals/items/dhalmel_pie.lua | 35 | 1879 | -----------------------------------------
-- ID: 4411
-- Item: dhalmel_pie
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 25
-- Strength 4
-- Agility 2
-- Vitality 1
-- Intelligence -2
-- Mind 1
-- Attack % 25
-- Attack Cap 45
-- Ranged ATT % 25
-- Ranged ATT Cap 45
... | gpl-3.0 |
FPtje/DarkRP | entities/entities/money_printer/shared.lua | 13 | 2510 | --Static Vars
ENT.Type = "anim"
ENT.Base = "base_gmodentity"
ENT.PrintName = "Money Printer"
ENT.Author = "DarkRP Developers"
ENT.Spawnable = false
ENT.sparking = false
ENT.IsMoneyPrinter = true
function ENT:initVars()
self.MoneyCount = GAMEMODE.Config.mprintamount
self.OverheatChance = GAMEMODE.Config.printer... | mit |
dpino/snabb | src/lib/virtio/virtio_pci.lua | 15 | 5179 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
-- Application to connect to a virtio-net driver implementation
--
-- Copyright (c) 2015 Virtual Open Systems
--
module(..., package.seeall)
local debug = _G.developer_debug
local ffi = require("ffi")
local C = ffi.C
local ... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Illeuse.lua | 14 | 1458 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Illeuse
-- @zone 80
-- @pos -44.203 2 -36.216
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
require("scripts/globals/que... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/spells/bluemagic/hysteric_barrage.lua | 3 | 1036 | 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/mobskills/Oblivion_Smash.lua | 6 | 1243 | ---------------------------------------------
-- Oblivion Smash
--
-- Description: Deals damage to players within area of effect and inflicts blind, silence, bind, and weight.
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range: Unknown radial
-- Notes:
--------------------------------------... | gpl-3.0 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/script/ui/DeprecatedUIEnum.lua | 39 | 4928 |
LAYOUT_COLOR_NONE = ccui.LayoutBackGroundColorType.none
LAYOUT_COLOR_SOLID = ccui.LayoutBackGroundColorType.solid
LAYOUT_COLOR_GRADIENT = ccui.LayoutBackGroundColorType.gradient
LAYOUT_ABSOLUTE = ccui.LayoutType.ABSOLUTE
LAYOUT_LINEAR_VE... | mit |
Kthulupwns/darkstar | scripts/zones/Yhoator_Jungle/npcs/Mintoo_IM.lua | 30 | 3045 | -----------------------------------
-- Area: Yhoator Jungle
-- NPC: Mintoo, I.M.
-- Outpost Conquest Guards
-- @pos 200.254 -1 -80.324 124
-----------------------------------
package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
require(... | gpl-3.0 |
MmxBoy/Metal-bot-V.2 | plugins/banhammer.lua | 33 | 12751 | 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 =... | gpl-2.0 |
FPtje/DarkRP | gamemode/modules/police/sh_interface.lua | 1 | 5642 | DarkRP.PLAYER.isWanted = DarkRP.stub{
name = "isWanted",
description = "Whether this player is wanted",
parameters = {
},
returns = {
{
name = "answer",
description = "Whether this player is wanted",
type = "boolean"
}
},
metatable = DarkRP... | mit |
Kthulupwns/darkstar | scripts/globals/items/persikos.lua | 35 | 1195 | -----------------------------------------
-- ID: 4274
-- Item: persikos
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -7
-- Intelligence 5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItem... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Outer_Horutoto_Ruins/TextIDs.lua | 4 | 2183 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6584; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6587; -- Obtained: <item>.
GIL_OBTAINED = 6588; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6590; -- Obtained... | gpl-3.0 |
bdube/infrastructure-puppet | modules/kibana_asf/files/JSON.lua | 5 | 19816 | local VERSION = 20111207.5
local OBJDEF = { VERSION = VERSION }
local isArray = { __tostring = function() return "JSON array" end } isArray.__index = isArray
local isObject = { __tostring = function() return "JSON object" end } isObject.__index = isObject
function OBJDEF:newArray(tbl)
return setmetatable... | apache-2.0 |
jamesbrink/sysdig | userspace/sysdig/chisels/httptop.lua | 10 | 4743 | --[[
Copyright (C) 2015 Luca Marturana
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 ev... | gpl-2.0 |
Death15/NormalSwatch | plugins/STATS.lua | 1 | 4021 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Monastic_Cavern/npcs/Treasure_Coffer.lua | 12 | 3961 | -----------------------------------
-- Area: Monastic Cavern
-- NPC: Treasure Coffer
-- @zone 150
-----------------------------------
package.loaded["scripts/zones/Monastic_Cavern/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
r... | gpl-3.0 |
kuoruan/luci | applications/luci-app-ocserv/luasrc/model/cbi/ocserv/main.lua | 10 | 6871 | -- Copyright 2014 Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local has_ipv6 = fs.access("/proc/net/ipv6_route")
m = Map("ocserv", translate("OpenConnect VPN"))
s = m:section(TypedSection, "ocserv", "OpenConnect")
s.ano... | apache-2.0 |
telbbs/luci-0.12 | modules/admin-full/luasrc/controller/admin/network.lua | 55 | 11556 | --[[
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/weaponskills/tachi_kasha.lua | 30 | 1971 | -----------------------------------
-- Tachi Kasha
-- Great Katana weapon skill
-- Skill Level: 250
-- Paralyzes target. Damage varies with TP.
-- Paralyze effect duration is 60 seconds when unresisted.
-- In order to obtain Tachi: Kasha, the quest The Potential Within must be completed.
-- Will stack with Sneak... | gpl-3.0 |
GabrielNicolasAvellaneda/luvit-upstream | tests/test-timer.lua | 14 | 1636 | --[[
Copyright 2012-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 o... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Giddeus/npcs/Altar_of_Offerings.lua | 36 | 1696 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Alter Of Offering
-- Involved in Quest: A Crisis in the Making
-- Working 100%
-- @zone = 145
-- @pos = -137 17 177
-----------------------------------
package.loaded["scripts/zones/Giddeus/TextIDs"] = nil;
--------------------------------... | gpl-3.0 |
awhitesong/rspamd | src/plugins/lua/forged_recipients.lua | 1 | 3423 | --[[
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 |
dpino/snabb | lib/ljsyscall/syscall/netbsd/constants.lua | 24 | 31397 | -- tables of constants for NetBSD
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 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/script/cocosdenshion/AudioEngine.lua | 39 | 2616 |
--Encapsulate SimpleAudioEngine to AudioEngine,Play music and sound effects.
local M = {}
function M.stopAllEffects()
cc.SimpleAudioEngine:getInstance():stopAllEffects()
end
function M.getMusicVolume()
return cc.SimpleAudioEngine:getInstance():getMusicVolume()
end
function M.isMusicPlaying()
return cc.S... | mit |
Velkon/DarkRP | entities/weapons/med_kit/shared.lua | 4 | 2262 | if SERVER then
AddCSLuaFile("shared.lua")
end
SWEP.PrintName = "Medic Kit"
SWEP.Author = "DarkRP Developers"
SWEP.Slot = 4
SWEP.SlotPos = 0
SWEP.Description = "Heals the wounded."
SWEP.Contact = ""
SWEP.Purpose = ""
SWEP.Instructions = "Left click to heal someone\nRight click to heal yourself"
SWEP.Spawnable = tr... | mit |
Kthulupwns/darkstar | scripts/zones/Beaucedine_Glacier/npcs/Leaufetie_RK.lua | 30 | 3066 | -----------------------------------
-- Area: Beaucedine Glacier
-- NPC: Leaufetie, R.K.
-- Type: Conquest Overseer
-- @pos -227.956 -81.475 260.442 111
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/con... | gpl-3.0 |
hj3938/wax | examples/States/scripts/StatesTable.lua | 34 | 1447 |
waxClass{"StatesTable", UITableViewController, protocols = {"UITableViewDataSource", "UITableViewDelegate"}}
function init(self)
self.super:init()
-- Loads plist from bundle
self.states = NSArray:arrayWithContentsOfFile("states.plist")
self:setTitle("States")
return self
end
function viewDidLoad(self)
... | mit |
Eyedema/taytay | plugins/quotes.lua | 8 | 1631 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
Wiladams/LJIT2Win32 | WinNT.lua | 1 | 4445 | local ffi = require("ffi")
local _WIN64 = ffi.os == "Windows" and ffi.abi("64bit");
ffi.cdef[[
static const int IMAGE_NUMBEROF_DIRECTORY_ENTRIES = 16;
static const int MAX_PATH = 260;
typedef struct _IMAGE_FILE_HEADER {
WORD Machine;
WORD NumberOfSections;
DWORD TimeDateStamp;
DWORD P... | mit |
Kthulupwns/darkstar | scripts/zones/Windurst_Waters/npcs/Fomina.lua | 36 | 1701 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Fomina
-- Only sells when Windurst controlls Elshimo Lowlands
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Windu... | gpl-3.0 |
aa65535/luci | modules/luci-base/luasrc/sys.lua | 1 | 11352 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local io = require "io"
local os = require "os"
local table = require "table"
local nixio = require "nixio"
local fs = require "nixio.fs"
local uci = require "luci.model.uci"
local luci = {}
l... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Port_San_dOria/npcs/Ufanne.lua | 17 | 1580 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Ufanne
-- Type: Standard NPC
-- @zone: 232
-- @pos -15.965 -3 -47.748
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
----... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/spells/kurayami_san.lua | 11 | 1139 | -----------------------------------------
-- Spell: Kurayami: San
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,targe... | gpl-3.0 |
mlody1039/ModernOts | data/npc/scripts/Sell/food.lua | 4 | 2315 | 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:onCreatureDisap... | gpl-3.0 |
mlody1039/ModernOts | data/npc/scripts/barbarian.lua | 1 | 4604 | 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 onCr... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/LaLoff_Amphitheater/bcnms/ark_angels_1.lua | 13 | 3031 | -----------------------------------
-- Area: LaLoff Amphitheater
-- Name: Ark Angels 1 (Hume)
-----------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
require("scripts/globals/mission... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/ear_of_roasted_corn.lua | 35 | 1275 | -----------------------------------------
-- ID: 4415
-- Item: ear_of_roasted_corn
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 6
-- Dexterity -1
-- Vitality 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------... | gpl-3.0 |
AGTMADCAT/naev | dat/missions/empire/collective/ec02.lua | 11 | 6561 | --[[
Collective Espionage II
Author: bobbens
minor edits by Infiltrator
Third mission in the collective mini campaign.
You must land on an ex-empire planet in collective territory and return.
]]--
lang = naev.lang()
if lang == "es" then
-- not translated atm
else -- default english
bar_des... | gpl-3.0 |
xcitehub/classic | tools/item_merge.lua | 45 | 22377 | -- Copyright (c) Hercules Dev Team, licensed under GNU GPL.
-- See the LICENSE file
-- Base Author: Dastgir @ http://hercules.ws
--
-- This script requires lua 5.1 to run.
getmetatable('').__call = string.sub
require('math')
--Bit Operators
local tab = { -- tab[i][j] = xor(i-1, j-1)
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/The_Garden_of_RuHmet/npcs/_0zt.lua | 17 | 1385 | -----------------------------------
-- Area: The_Garden_of_RuHmet
-- NPC: Luminus convergence
-----------------------------------
package.loaded["scripts/zones/The_Garden_of_RuHmet/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/The_Garden... | gpl-3.0 |
Mleaf/mleaf_luci | libs/rpcc/luasrc/rpcc.lua | 93 | 2227 | --[[
LuCIRPCc
(c) 2009 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
local util = require "luci.ut... | apache-2.0 |
Godfather021/tg | plugins/isup.lua | 741 | 3095 | do
local socket = require("socket")
local cronned = load_from_file('data/isup.lua')
local function save_cron(msg, url, delete)
local origin = get_receiver(msg)
if not cronned[origin] then
cronned[origin] = {}
end
if not delete then
table.insert(cronned[origin], url)
else
for k,v in pairs(cronned[... | gpl-2.0 |
Sakura-Winkey/packages | lang/luaexpat/files/compat-5.1r5/compat-5.1.lua | 251 | 6391 | --
-- Compat-5.1
-- Copyright Kepler Project 2004-2006 (http://www.keplerproject.org/compat)
-- According to Lua 5.1
-- $Id: compat-5.1.lua,v 1.22 2006/02/20 21:12:47 carregal Exp $
--
_COMPAT51 = "Compat-5.1 R5"
local LUA_DIRSEP = '/'
local LUA_OFSEP = '_'
local OLD_LUA_OFSEP = ''
local POF = 'luaopen_'
local LUA_PA... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Inner_Horutoto_Ruins/npcs/_5cb.lua | 11 | 1079 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: _5cb (Gate of Darkness)
-- @pos -228 0 99 192
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Inner_Horutoto_Ruins/TextI... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/South_Gustaberg/mobs/Tococo.lua | 33 | 1114 | -----------------------------------
-- Area: South Gustaberg
-- NM: Tococo
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-----------------------------------
-- onMobInitialize
-----------------------------------
function onMobInitialize(mob)
... | gpl-3.0 |
merlinblack/oyunum | scripts/test.lua | 1 | 2492 | print 'Lua Script'
package.path = './scripts/?.lua;./scripts/zzlib/?.lua;' .. package.path
require( 'events' )
require( 'misc' )
require( 'sprite' )
require( 'tasks' )
require( 'autocomplete' )
require( 'gui/gui' )
map_data = dozipfile( './data/map.lua.gz' )
pulse = coroutine.create( function()
local c = AllegroC... | mit |
Kthulupwns/darkstar | scripts/globals/items/loach_slop.lua | 35 | 1529 | -----------------------------------------
-- ID: 5669
-- Item: loach_slop
-- Food Effect: 3Hour,Group Food, All Races
-----------------------------------------
-- Accuracy % 7
-- Accuracy Cap 15
-- HP % 7
-- HP Cap 15
-- Evasion 3
-- (Did Not Add Group Food Effect)
-----------------------------------------
... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Kleh_Engyumoh.lua | 38 | 1051 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Kleh Engyumoh
-- Type: Standard NPC
-- @zone: 94
-- @pos -54.962 -4.5 57.701
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Northern_San_dOria/npcs/Antonian.lua | 13 | 2156 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Antonian
-- Regional Marchant NPC
-- Only sells when San d'Oria controlls Aragoneu.
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("script... | gpl-3.0 |
mlody1039/ModernOts | data/npc/scripts/Ferryman Kamil.lua | 5 | 1314 | 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 |
dios-game/dios-cocos-samples | src/lua-coin-tree/Resources/src/cocos/framework/extends/LayerEx.lua | 44 | 2603 | --[[
Copyright (c) 2011-2014 chukong-inc.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dis... | mit |
FPtje/DarkRP | gamemode/modules/hungermod/cl_init.lua | 1 | 3425 | local cvars = cvars
local draw = draw
local hook = hook
local math = math
local table = table
local timer = timer
local Color = Color
local ColorAlpha = ColorAlpha
local CreateClientConVar = CreateClientConVar
local GetConVar = GetConVar
local ipairs = ipairs
local pairs = pairs
local unpack = unpack
local ConVars = {... | mit |
dpino/snabb | lib/ljsyscall/test/linux-structures.lua | 18 | 6451 | -- test Linux structures against standard headers
-- Need to cross compile on correct 32/64 bits
--[[
luajit test/linux-structures.lua x64 > ./obj/s.c && cc -U__i386__ -DBITS_PER_LONG=64 -I./include/linux-kernel-headers/x86_64/include -o ./obj/s ./obj/s.c && ./obj/s
luajit32 test/linux-structures.lua x86 > ./obj/s.c ... | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.