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 |
|---|---|---|---|---|---|
TheAnswer/FirstTest | bin/scripts/object/tangible/shipcontrol/objects.lua | 1 | 10147 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/entities/entities/logic_startingloadout/init.lua | 1 | 1246 | ENT.Type = "point"
function ENT:Initialize()
end
function ENT:Think()
end
function ENT:AcceptInput(name, activator, caller, args)
name = string.lower(name)
if name == "setstartingloadout" then
self:SetKeyValue("startingloadout", args)
return true
elseif name == "setredeemloadout" then
self:S... | gpl-2.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/entities/weapons/weapon_zs_owens.lua | 1 | 1760 | AddCSLuaFile()
if CLIENT then
SWEP.PrintName = "Classic Pistol"
SWEP.Slot = 1
SWEP.SlotPos = 0
SWEP.ViewModelFlip = false
SWEP.ViewModelFOV = 50
SWEP.HUD3DBone = "ValveBiped.square"
SWEP.HUD3DPos = Vector(1.1, 0.25, -2)
SWEP.HUD3DScale = 0.015
end
SWEP.Base = "weapon_zs_base"
SWEP.HoldTyp... | gpl-2.0 |
PAPAGENO-devels/papageno | test/benchmarks/Lua/lua-regression-test/grim/su.lua | 1 | 26221 | CheckFirstTime("su.lua")
su = Set:create("su.set", "sunken lola", { su_chews = 0, su_ovrhd = 1 })
dofile("chepito.lua")
dofile("mn_ctm.lua")
dofile("mn_ctc.lua")
su.chepito_to_manny = function(arg1) -- line 16
local local1 = manny:getpos()
local local2 = chepito:getpos()
while TurnActorTo(chepito.hActor, lo... | gpl-2.0 |
mkwia/jc2atc | scripts/buy/server/AdvancedBuyMenu-Server.lua | 1 | 28720 | -- Player extension methods
function Player:SendErrorMessage( str )
self:SendChatMessage( str, Color( 255, 0, 0 ) )
end
function Player:SendSuccessMessage( str )
self:SendChatMessage( str, Color( 0, 255, 0 ) )
end
-- Buy Menu
function BuyMenu:__init()
self.items = {}
self.vehicles = {}
self... | mit |
TheAnswer/FirstTest | bin/scripts/creatures/objects/dathomir/creatures/rhoaKwiGuardian.lua | 1 | 4809 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
ludi1991/skynet | 3rd/lpeg/re.lua | 160 | 6286 | -- $Id: re.lua,v 1.44 2013/03/26 20:11:40 roberto Exp $
-- imported functions and modules
local tonumber, type, print, error = tonumber, type, print, error
local setmetatable = setmetatable
local m = require"lpeg"
-- 'm' will be used to parse expressions, and 'mm' will be used to
-- create expressions; that is, 're' ... | mit |
aminbotmaker/1283 | plugins/media.lua | 297 | 1590 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
technomancy/ss-calandria | mods/mesecons/mesecons/legacy.lua | 13 | 1399 | -- Ugly hack to prevent breaking compatibility with other mods
-- Just remove the following two functions to delete the hack, to be done when other mods have updated
function mesecon.receptor_on(self, pos, rules)
if (self.receptor_on) then
print("[Mesecons] Warning: A mod with mesecon support called mesecon:receptor... | gpl-3.0 |
ruphy/tagua | data/scripts/hllib.lua | 1 | 3466 | -------------------------------------------------------------------------------
-- Copyright (c) 2006 Paolo Capriotti <p.capriotti@sns.it>
-- (c) 2006 Maurizio Monge <maurizio.monge@kdemail.net>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the ter... | gpl-2.0 |
GeekWithALife/love-bone | lovebone/animation.lua | 2 | 7363 | --[[
Animation
Animations are basically keyframe data containers.
They also come with utility methods for finding keyframe ranges and interpolating between them.
--]]
local util = RequireLibPart("util");
local lerp = util.lerp;
local MAnimation = util.Meta.Animation;
MAnimation.__index = MAnimation;
local function... | mit |
TheAnswer/FirstTest | bin/scripts/object/SharedWeaponObjectTemplate.lua | 1 | 2219 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/sceneobjects/objects/lairs/dantooine/bileDrenchedQuenkerLair.lua | 1 | 2589 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/ParticleSystemQuad.lua | 1 | 2429 |
--------------------------------
-- @module ParticleSystemQuad
-- @extend ParticleSystem
-- @parent_module cc
--------------------------------
-- Sets a new SpriteFrame as particle.<br>
-- WARNING: this method is experimental. Use setTextureWithRect instead.<br>
-- param spriteFrame A given sprite frame as ... | apache-2.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/entities/weapons/weapon_zs_pulsesmg.lua | 1 | 5035 | -- © Limetric Studios ( www.limetricstudios.com ) -- All rights reserved.
-- See LICENSE.txt for license information
AddCSLuaFile()
if CLIENT then
SWEP.PrintName = "Pulse SMG"
SWEP.Author = "NECROSSIN and Deluvas"
SWEP.Slot = 5
SWEP.SlotPos = 14
SWEP.ViewModelFlip = false
SWEP.ViewModelFOV = 60
SWEP... | gpl-2.0 |
dani-sj/danyal01 | plugins/google.lua | 336 | 1323 | do
local function googlethat(query)
local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&'
local parameters = 'q='..(URL.escape(query) or '')
-- Do the request
local res, code = https.request(url..parameters)
if code ~=200 then return nil end
loca... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/tailor/formalWearIFashionBasics/ithorianEmeraldPendant.lua | 1 | 3784 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/gamemode/buffthefps.lua | 1 | 7864 | -- This rewrites a few drawing methods to be slightly faster.
-- This file is to be included before everything else.
-- WARNING: Removes the functionality of any drawing functions returning values (except GetFontHeight).
-- This doesn't really matter in most cases because A: nobody uses it and B: they were returni... | gpl-2.0 |
hamode-Aliraq/HAMODE_ALIRAQE | plugins/azan.lua | 5 | 3699 | --[[
#
#ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#:((
# For More Information ....!
# Developer : Aziz < @TH3_GHOST >
# our channel: @DevPointTeam
# Version: 1.1
#:))
#ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#
]]
do... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/endor/creatures/bloodseekerMiteDrone.lua | 1 | 4633 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
Xeltor/ovale | libs/AceGUI-3.0/AceGUI-3.0.lua | 7 | 31070 | --- **AceGUI-3.0** provides access to numerous widgets which can be used to create GUIs.
-- AceGUI is used by AceConfigDialog to create the option GUIs, but you can use it by itself
-- to create any custom GUI. There are more extensive examples in the test suite in the Ace3
-- stand-alone distribution.
--
-- **Note**:... | mit |
LuaDist/sputnik_tickets | lua/sputnik/node_defaults/icons/bug.lua | 1 | 1594 | -----------------------------------------------------------------------------
-- An icon representing an bug.
--
-- Image (c) Mark James (http://famfamfam.com), 2008
-- Creative Commons Attribution 2.5 License.
-----------------------------------------------------------------------------
module(..., package.seeall)
... | mit |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/ArmatureDataManager.lua | 1 | 5926 |
--------------------------------
-- @module ArmatureDataManager
-- @extend Ref
-- @parent_module ccs
--------------------------------
-- brief remove animation data<br>
-- param id the id of the animation data
-- @function [parent=#ArmatureDataManager] removeAnimationData
-- @param self
-- @param #string... | apache-2.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/gamemode/cl_draw.lua | 1 | 1771 | local draw_SimpleText = draw.SimpleText
local draw_DrawText = draw.DrawText
local FontBlurX = 0
local FontBlurX2 = 0
local FontBlurY = 0
local FontBlurY2 = 0
timer.Create("fontblur", 0.1, 0, function()
FontBlurX = math.random(-8, 8)
FontBlurX2 = math.random(-8, 8)
FontBlurY = math.random(-8, 8)
FontBl... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/loot/collectible/objects.lua | 54 | 2058 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/destructible/objects.lua | 54 | 2058 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/object/universe/objects.lua | 54 | 2058 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/space/objects.lua | 54 | 2058 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/object/intangible/objects.lua | 54 | 2058 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/deed/corellia/objects.lua | 54 | 2058 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/travel/objects.lua | 54 | 2058 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/wearables/objects.lua | 54 | 2058 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/poi/objects.lua | 54 | 2058 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
dani-sj/xy | plugins/stats.lua | 81 | 4126 | 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 |
TheAnswer/FirstTest | bin/scripts/object/tangible/travel/travel_ticket/objects.lua | 1 | 3360 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/gamemode/cl_init.lua | 1 | 76370 | -- © Limetric Studios ( www.limetricstudios.com ) -- All rights reserved.
-- See LICENSE.txt for license information
-- Sometimes persistent ones don't get created.
-- Sometimes persistent ones don't get created.
local dummy = CreateClientConVar("_zs_dummyconvar", 1, false, false)
local oldCreateClientConVar = C... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/tailor/formalWearIiJewelry/ithorianBucklePants.lua | 1 | 4501 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
funkyvisions/Heartbeat | main.lua | 1 | 5357 | --
-- Project: heartbeat
--
-- Description: Use a beating heart as a life meter
-- Also shows how to change the pitch of a backing
-- track and keep the animation in synch with it
--
-- Version: 0.1
--
-- Copyright 2013 Doug Davies. All Rights Reserved.
-- MIT License. Feel free to use this however you want!
-- https:... | mit |
RockySeven3161/Unknown | bot/utils.lua | 356 | 14963 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/endor/creatures/blurrg.lua | 1 | 4747 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
devilrap97/alirap97 | plugins/ar-map.lua | 6 | 1868 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ map : طقس ▀▄ ▄▀
▀▄▀... | gpl-2.0 |
fkaa/iceball | pkg/base/commands.lua | 3 | 13519 | --[[
This file is part of Ice Lua Components.
Ice Lua Components is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
... | gpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/naboo/creatures/veermokSentryCave.lua | 1 | 4722 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
ArashFaceBook/Virus | plugins/vote.lua | 615 | 2128 | do
local _file_votes = './data/votes.lua'
function read_file_votes ()
local f = io.open(_file_votes, "r+")
if f == nil then
print ('Created voting file '.._file_votes)
serialize_to_file({}, _file_votes)
else
print ('Values loaded: '.._file_votes)
f:close()
end
return loadfile (_file_votes)()... | gpl-2.0 |
devilrap97/alirap97 | plugins/anti_spam.lua | 21 | 5248 | --An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id == our_id then
return msg
end
-- Save... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/slashcommands/generic/bet.lua | 1 | 2461 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/smuggler/spicesIiiStims/thrusterHead.lua | 1 | 3724 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/sceneobjects/objects/lairs/endor/lanternBirdLair.lua | 1 | 2535 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/wearables/shirt/objects.lua | 1 | 44933 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
thkhxm/TGame | Assets/StreamingAssets/lua/UnityEngine/Time.lua | 5 | 2833 | --------------------------------------------------------------------------------
-- Copyright (c) 2015 - 2016 , 蒙占志(topameng) topameng@gmail.com
-- All rights reserved.
-- Use, modification and distribution are subject to the "MIT License"
-----------------------------------------------------------------... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/wearables/armor/tantel/objects.lua | 1 | 11034 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/yavin4/creatures/kliknikDefender.lua | 1 | 4756 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
Modified-MW-DF/modified-MDF | MWDF Project/Dwarf Fortress/hack/scripts/masterwork/functions/item.lua | 2 | 15922 | -- Item based functions, version 42.06a
--[[
trackMaterial(itemID,change,dur,alter) - Tracks the changes to an items material, can track multiple changes
trackQuality(itemID,change,dur,alter) - Tracks the changes to an items quality, can track multiple changes
trackSubtype(itemID,change,dur,alter) - Tracks the c... | mit |
TheAnswer/FirstTest | bin/scripts/items/bluefrog/statePackSet.lua | 1 | 2221 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/object/static/particle/base/objects.lua | 1 | 3016 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/entities/entities/status_shadeambience/cl_init.lua | 1 | 1376 | include("shared.lua")
ENT.NextEmit = 0
function ENT:Initialize()
self:DrawShadow(false)
self.AmbientSound = CreateSound(self, "npc/antlion_guard/growl_idle.wav")
self.AmbientSound:PlayEx(0.55, 130)
self:GetOwner().status_shadeambience = self
end
function ENT:OnRemove()
self.AmbientSound:Stop()
... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/dantooine/creatures/piketLonghorn.lua | 1 | 4724 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/spawns/corellia/citys/doaba.lua | 1 | 10880 | spawnCreature(doabaNpc1, 0, 3300.28, 5496.49)
spawnCreatureInCell(doabaNpc2, 0, -62.5737, 2.63942, 40.0043, 9665364)
spawnCreatureInCell(doabaNpc3, 0, -62.5737, 2.63942, 41.0043, 9665364)
spawnCreatureInCell(doabaNpc4, 0, 47.5747, 0.974633, 22.0108, 9665365)
spawnCreatureInCell(doabaNpc5, 0, 52.3124, 0.639417, 48.2148,... | lgpl-3.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/entities/entities/status_revive_slump/init.lua | 1 | 1288 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
function ENT:PlayerSet(pPlayer, bExists)
self.HealCarryOver = self.HealCarryOver or 0
pPlayer.Revive = self
pPlayer:Freeze(true)
if not bExists then
pPlayer:GodEnable()
self.GodDisableTime = CurTime() + 0.1
end
pPl... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/traps/lecepaninDart.lua | 1 | 2364 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versi... | lgpl-3.0 |
fischerling/lumail2 | t/test.logger.lua | 4 | 2208 | --
-- Configure a sane load-path
--
package.path = package.path .. ";t/?.lua;../lib/?.lua;lib/?.lua"
--
-- Require our unit-testing framework.
--
luaunit = require 'luaunit'
--
-- File-helper
--
TestLogger = {}
--
-- Test with no level set.
--
function TestLogger:test_no_log ()
-- Ensure there is no log set
C... | gpl-2.0 |
Andrettin/Wyrmsun | scripts/map_templates/nidavellir/island_of_the_lizard_god/mount_sacrifice.lua | 1 | 5023 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
Modified-MW-DF/modified-MDF | MWDF Project/Dwarf Fortress/hack/scripts/masterwork/succubus/corrupt.lua | 2 | 15228 | -- Sets the units within line of sight of the unit as non hostiles, members of your civ and transform them
--[[
This script is called by the conversion dens.
It will perform makeown on the target unit and perform some more fix to prevent loyalty cascades.
It will also remove flags related to invasions and mounti... | mit |
TheAnswer/FirstTest | bin/scripts/sceneobjects/objects/lairs/tatooine/greaterWompRatLair.lua | 1 | 2559 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
yunfan/packages | net/luci-app-e2guardian/files/e2guardian-cbi.lua | 39 | 18596 | --[[
LuCI E2Guardian module
Copyright (C) 2015, Itus Networks, Inc.
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
Author: Marko Ratkaj <marko.ratkaj... | gpl-2.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/entities/entities/gmod_player_start/init.lua | 1 | 1604 | -- This makes old gmod9 ZS maps playable
ENT.Type = "point"
function ENT:Initialize()
if self.RedTeam or self.GreenTeam or self.YellowTeam or self.BlueTeam then
self.BlueTeam = self.BlueTeam or false
self.GreenTeam = self.GreenTeam or false
self.YellowTeam = self.YellowTeam or false
self.RedTeam = s... | gpl-2.0 |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/TMXTiledMap.lua | 1 | 5417 |
--------------------------------
-- @module TMXTiledMap
-- @extend Node
-- @parent_module ccexp
--------------------------------
-- Set object groups. <br>
-- param groups An object groups.
-- @function [parent=#TMXTiledMap] setObjectGroups
-- @param self
-- @param #array_table groups
-- @return experim... | apache-2.0 |
thkhxm/TGame | Assets/LuaFramework/ToLua/Lua/lpeg/re.lua | 15 | 6365 | -- $Id: re.lua,v 1.44 2013/03/26 20:11:40 roberto Exp $
-- imported functions and modules
local tonumber, type, print, error = tonumber, type, print, error
local setmetatable = setmetatable
local m = require"lpeg"
-- 'm' will be used to parse expressions, and 'mm' will be used to
-- create expressions; that is, 're' ... | apache-2.0 |
Andrettin/Wyrmsun | scripts/civilizations/dwarf/scenarios/a_bargain_is_struck.lua | 1 | 42760 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
Modified-MW-DF/modified-MDF | MWDF Project/Dwarf Fortress/hack/scripts/masterwork/flow/random-pos.lua | 2 | 4608 | --flow/random-pos.lua version 42.06a
local utils = require 'utils'
flowtypes = {
miasma = 0,
mist = 1,
mist2 = 2,
dust = 3,
lavamist = 4,
smoke = 5,
dragonfire = 6,
firebreath = 7,
web = 8,
undirectedgas = 9,
undirectedvapor = 10,
oceanwave = 11,
seafoam = 12
}
validArgs = validArgs or utils.inve... | mit |
amirfo18/Star-Queen | bot/utils.lua | 1 | 18266 | --Begin Utils.lua By #BeyondTeam :)
function serialize_to_file(data, file, uglify)
file = io.open(file, 'w+')
local serialized
if not uglify then
serialized = serpent.block(data, {
comment = false,
name = '_'
})
else
serialized = serpent.dump(data)
end
file:write(serialized)
... | gpl-3.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/artisan/masterArtisan/nemoidianBirdCage.lua | 1 | 3845 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/endor/npcs/panshee/proficientPansheeWorker.lua | 1 | 4618 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
alejandrogallo/dotfiles | link_config/luakit/plugins/uaswitch/init.lua | 2 | 2218 | ------------------------------------------------------------
-- Simple User Agent string changer v0.1.0 --
-- © 2012 Plaque FCC <Reslayer@ya.ru> --
------------------------------------------------------------
local globals = globals
local string = string
local type = type
l... | unlicense |
TheAnswer/FirstTest | bin/scripts/object/installation/generators/base/objects.lua | 1 | 3448 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
frioux/sysdig | userspace/sysdig/chisels/spy_syslog.lua | 16 | 5793 | --[[
Copyright (C) 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 even t... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/hopper/objects.lua | 1 | 6017 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
frioux/sysdig | userspace/sysdig/chisels/v_file_opens.lua | 8 | 2160 | --[[
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 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/endor/npcs/panshee/pansheeShaman.lua | 1 | 4568 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/ActionTimelineCache.lua | 1 | 2932 |
--------------------------------
-- @module ActionTimelineCache
-- @parent_module ccs
--------------------------------
-- Clone a action with the specified name from the container.
-- @function [parent=#ActionTimelineCache] createActionFromJson
-- @param self
-- @param #string fileName
-- @return ActionT... | apache-2.0 |
judos/rocketAutoStarter | source/control.lua | 1 | 3658 | require "config"
require "libs.functions"
require "libs.entities"
---------------------------------------------------
-- Loading
---------------------------------------------------
script.on_init(function()
migration()
end)
script.on_configuration_changed(function()
migration()
end)
script.on_load(function()
info... | gpl-3.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/pharmaceutical/areastimpacks/areaStimPackA.lua | 1 | 2449 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
mkwia/jc2atc | scripts/utilities/client/guiclass.lua | 1 | 6129 | class "GUI"
local sx, sy = Game:GetSetting ( 30 ), Game:GetSetting ( 31 )
local textBoxTypes =
{
[ "text" ] = TextBox,
[ "numeric" ] = TextBoxNumeric,
[ "multiline" ] = TextBoxMultiline,
[ "password" ] = PasswordTextBox
}
local protected = { }
function GUI:Window ( title, pos, size )
local window = Window.... | mit |
yannayl/packages | net/wifidog-ng/files/wifidog-ng/util.lua | 22 | 2116 | --[[
Copyright (C) 2018 Jianhui Zhao <jianhuizhao329@gmail.com>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later vers... | gpl-2.0 |
EMCTeamIR/EMC | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
asmagill/hammerspoon | extensions/battery/battery.lua | 4 | 12148 | --- === hs.battery ===
---
--- Battery/power information
--- All functions here may return nil, if the information requested is not available.
---
--- This module is based primarily on code from the previous incarnation of Mjolnir by [Steven Degutis](https://github.com/sdegutis/).
local module = require("hs.libbatter... | mit |
TheAnswer/FirstTest | bin/scripts/items/objects/traps/sharpBoneSpur.lua | 1 | 2370 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versi... | lgpl-3.0 |
devilrap97/alirap97 | plugins/en-ASD_KARBALA2.lua | 2 | 1574 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ help2 : مساعدة2 ▀▄ ▄▀
▀▄▀... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/npcs/rebel/rebelTrooper.lua | 1 | 4582 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
hamode-Aliraq/HAMODE_ALIRAQE | plugins/lock_tag.lua | 14 | 1109 | --[[
#
#ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#:((
# For More Information ....!
# Developer : Aziz < @TH3_GHOST >
# our channel: @DevPointTeam
# Version: 1.1
#:))
#ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#
]]
lo... | gpl-2.0 |
shahabsaf1/qqqq | plugins/banhammer.lua | 1085 | 11557 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/lair/pufferfish/objects.lua | 1 | 4710 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/naboo/creatures/frightenedYoungFlewt.lua | 1 | 4654 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
technomancy/ss-calandria | mods/mesecons/mesecons_switch/init.lua | 2 | 1258 | -- MESECON_SWITCH
mesecon.register_node("mesecons_switch:mesecon_switch", {
paramtype2="facedir",
description="Switch",
sounds = default.node_sound_stone_defaults(),
on_punch = function (pos, node)
if(mesecon.flipstate(pos, node) == "on") then
mesecon.receptor_on(pos)
else
mesecon.receptor_off(pos)
end... | gpl-3.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/clothing/shirts/shirt5.lua | 1 | 2278 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
Wargus/stargus | scripts/protoss/unit-protoss-observatory.lua | 1 | 1353 | --
-- -- unit-protoss-observatory
--
DefineAnimations("animations-protoss-observatory", {
Still = {
"frame 0", "wait 125",
},
Train = {
"frame 0", "wait 125",
},
})
DefineConstruction("construction-protoss-observatory", {
Files = image_325_terran_tbldlrg_var,
ShadowFiles = image_325_terran_tbldlrg_... | gpl-2.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/gamemode/modules/admin_mod/sv_admin.lua | 1 | 25456 | -- © Limetric Studios ( www.limetricstudios.com ) -- All rights reserved.
-- See LICENSE.txt for license information
function GM:PlayerNoClip(pl, on)
if pl:IsAdmin() then
if pl:GetMoveType() ~= MOVETYPE_NOCLIP then
for k, v in pairs( player.GetAll() ) do
if pl:SteamID() == "STEAM_0:0:59565612"then --Duby: I... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/skills/creatureSkills/endor/npcs/donkuwahAttacks.lua | 1 | 2841 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any lat... | lgpl-3.0 |
ajauhri/evol-ant-placement | luas/tc2_ga.lua | 1 | 5941 | load_platform("input/S6 - 4ft square plate w box and sides sloped front fixed.nec")
add_antenna("input/A1 - 75mono fixed.nec")
add_point( -0.508000, 0.508000, 0.000000)
add_point( -0.406400, 0.508000, 0.000000)
add_point( -0.304800, 0.508000, 0.000000)
add_point( -0.304800, 0.406400, 0.000000)
add... | bsd-3-clause |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/FadeIn.lua | 1 | 1116 |
--------------------------------
-- @module FadeIn
-- @extend FadeTo
-- @parent_module cc
--------------------------------
-- js NA
-- @function [parent=#FadeIn] setReverseAction
-- @param self
-- @param #cc.FadeTo ac
-- @return FadeIn#FadeIn self (return value: cc.FadeIn)
---------------------... | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.