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
BlackMesaRP/NS-Black-Mesa
plugins/m9k/entities/weapons/m9k_winchester73/shared.lua
2
3523
-- Variables that are used on both client and server SWEP.Gun = ("m9k_winchester73") -- must be the name of your swep but NO CAPITALS! SWEP.Category = "M9K Assault Rifles" SWEP.Author = "" SWEP.Contact = "" SWEP.Purpose = "" SWEP.Instructions = "" SWEP.MuzzleAttachment = "1" -- Should be "1" for CSS m...
gpl-3.0
czfshine/UpAndAway
code/prefabs/cumulostone.lua
2
1058
BindGlobal() local CFG = TheMod:GetConfig() local assets = { Asset("ANIM", "anim/cumulostone.zip"), Asset( "ATLAS", inventoryimage_atlas("cumulostone") ), Asset( "IMAGE", inventoryimage_texture("cumulostone") ), } local function fn(Sim) local inst = CreateEntity() inst.entity:AddTransform() ...
gpl-2.0
eiffelqiu/candle
lib/candle/generators/lua/wax/lib/stdlib/luaspec/luaspec.lua
19
9172
spec = { contexts = {}, passed = 0, failed = 0, pending = 0, current = nil } Report = {} Report.__index = Report function Report:new(spec) local report = { num_passed = spec.passed, num_failed = spec.failed, num_pending = spec.pending, total = spec.passed + spec.failed + spec.pending, resu...
mit
xdemolish/darkstar
scripts/zones/Kazham/npcs/Thali_Mhobrum.lua
19
1540
----------------------------------- -- Area: Kazham -- NPC: Thali Mhobrum -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); local path = { 55.816410, -11.000000, -43.992680, 54.761787, -11.000000, -44.0461...
gpl-3.0
xdemolish/darkstar
scripts/zones/Norg/TextIDs.lua
4
2240
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6393; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6396; -- Obtained: <item>. GIL_OBTAINED = 6397; -- Obtained <number> gil. KEYITEM_OBTAINED = 6399; -- Obtai...
gpl-3.0
chris5560/openwrt-luci
protocols/luci-proto-ppp/luasrc/model/network/proto_ppp.lua
4
2167
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local netmod = luci.model.network local _, p for _, p in ipairs({"ppp", "pptp", "pppoe", "pppoa", "l2tp", "pppossh"}) do local proto = netmod:register_protocol(p) function proto.get_i18n(self) if p == "pp...
apache-2.0
ln-zookeeper/wesnoth
data/ai/micro_ais/cas/ca_messenger_escort_move.lua
2
3437
local H = wesnoth.require "helper" local AH = wesnoth.require "ai/lua/ai_helper.lua" local LS = wesnoth.require "location_set" local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua" local M = wesnoth.map local messenger_next_waypoint = wesnoth.require "ai/micro_ais/cas/ca_messenger_f_next_waypoint.lu...
gpl-2.0
hacker44-h44/mmmmmm
plugins/gpmanager2.lua
39
11325
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if not is_admin(msg) then return "This service is private for SUDO (@shayansoft)" end local group_creator = msg.from.print_name ...
gpl-2.0
xdemolish/darkstar
scripts/zones/Bastok_Markets/npcs/Yafafa.lua
36
1619
----------------------------------- -- Area: Bastok Markets -- NPC: Yafafa -- Only sells when Bastok controls Kolshushu -- -- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loade...
gpl-3.0
hsiaoyi/Melo
cocos2d/cocos/scripting/lua-bindings/auto/api/ParticleMeteor.lua
11
1380
-------------------------------- -- @module ParticleMeteor -- @extend ParticleSystemQuad -- @parent_module cc -------------------------------- -- -- @function [parent=#ParticleMeteor] init -- @param self -- @return bool#bool ret (return value: bool) -------------------------------- -- -- @function [parent...
apache-2.0
deepmind/lab2d
dmlab2d/lib/game_scripts/levels/clean_up/avatar_list.lua
1
4487
--[[ Copyright (C) 2019 The DMLab2D Authors. 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writ...
apache-2.0
xasw5632/-ADOLF_HITLER
tg/test.lua
210
2571
started = 0 our_id = 0 function vardump(value, depth, key) local linePrefix = "" local spaces = "" if key ~= nil then linePrefix = "["..key.."] = " end if depth == nil then depth = 0 else depth = depth + 1 for i=1, depth do spaces = spaces .. " " end end if type(value) == 'tab...
gpl-2.0
cmotc/awesome
lib/menubar/icon_theme.lua
1
8669
--------------------------------------------------------------------------- --- Class module for icon lookup for menubar -- -- @author Kazunobu Kuriyama -- @copyright 2015 Kazunobu Kuriyama -- @classmod menubar.icon_theme --------------------------------------------------------------------------- -- This implementatio...
gpl-2.0
kidanger/LD27
turret.lua
1
3455
local physic = require 'physic' local particle = require 'particle' local Turret = { range = 45, last_fire = -9, reload = 2, tick = 0, rockets = {}, } Turret.__index = Turret function Turret:on_attach() self.offangle = math.random() * math.pi * 2 self.rockets = {} end function Turret:draw() local ct = requir...
gpl-2.0
xdemolish/darkstar
scripts/zones/Silver_Sea_route_to_Nashmau/Zone.lua
17
1444
----------------------------------- -- -- Zone: Silver_Sea_route_to_Nashmau -- ----------------------------------- package.loaded["scripts/zones/Silver_Sea_route_to_Nashmau/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Silver_Sea_route_to_Nashmau/TextIDs"); require("scripts/glo...
gpl-3.0
xdemolish/darkstar
scripts/zones/Inner_Horutoto_Ruins/npcs/_5c5.lua
17
1979
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: Gate: Magical Gizmo -- Involved In Mission: The Horutoto Ruins Experiment -- @pos 419 0 -27 192 ----------------------------------- package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil; ----------------------------------- ...
gpl-3.0
peymankhanas84877/Horror_Avatar_bot
plugins/plugins.lua
325
6164
do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( ...
gpl-2.0
dmccuskey/dmc-events-mixin
dmc_corona/dmc_events_mix.lua
2
3816
--====================================================================-- -- dmc_corona/dmc_events_mix.lua -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright (c) 2015 David McCuskey Permission is hereby gra...
mit
cfanzp008/skynet-note
service/service_mgr.lua
3
1386
local skynet = require "skynet" local cmd = {} local service = {} function cmd.LAUNCH(service_name, ...) local s = service[service_name] if type(s) == "number" then return s end if s == nil then s = { launch = true } service[service_name] = s elseif s.launch then assert(type(s) == "table") local co = ...
mit
czfshine/UpAndAway
code/prefabs/gnome_decor.lua
2
1248
BindGlobal() local assets = { Asset("ANIM", "anim/gnome_decor.zip"), } local function makefn(bankname, buildname, animname) local function fn(Sim) local inst = CreateEntity() local trans = inst.entity:AddTransform() local anim = inst.entity:AddAnimState() inst:AddTag("DECOR") ...
gpl-2.0
grmss214/SHATELTEAM
plugins/inrealm.lua
1
25481
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if is_sudo(msg) or is_realm(msg) and is_admin(msg) then local group_creator = msg.from.print_name create_g...
gpl-2.0
xdemolish/darkstar
scripts/zones/East_Sarutabaruta/npcs/Sama_Gohjima.lua
17
1491
----------------------------------- -- Area: East Sarutabaruta -- NPC: Sama Gohjima -- Involved in Mission: The Horutoto Ruins Experiment (optional) -- @pos 377 -13 98 116 ----------------------------------- package.loaded["scripts/zones/East_Sarutabaruta/TextIDs"] = nil; ----------------------------------- ...
gpl-3.0
kaadmy/pixture
mods/default/tools.lua
1
19500
-- -- Tool definitions -- local creative_digtime = 0.15 local tool_levels = nil -- Creative mode/hand defs if minetest.settings:get_bool("creative_mode") == true then tool_levels = { wood = { crumbly = { [3] = creative_digtime, [2] = creative_digtime, [1] = crea...
lgpl-2.1
xdemolish/darkstar
scripts/zones/Bastok_Markets/npcs/Reinberta.lua
11
1970
----------------------------------- -- Area: Bastok Markets -- NPC: Reinberta -- Type: Goldsmithing Guild Master -- @pos -190.605 -7.814 -59.432 235 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scripts/globals/crafting")...
gpl-3.0
kissthink/OpenRA
mods/cnc/maps/gdi05a/gdi05a.lua
19
6681
RepairThreshold = { Easy = 0.3, Normal = 0.6, Hard = 0.9 } ActorRemovals = { Easy = { Actor167, Actor168, Actor190, Actor191, Actor193, Actor194, Actor196, Actor198, Actor200 }, Normal = { Actor167, Actor194, Actor196, Actor197 }, Hard = { }, } GdiTanks = { "mtnk", "mtnk" } GdiApc = { "apc" } GdiInfantry = { "e1",...
gpl-3.0
xdemolish/darkstar
scripts/zones/Toraimarai_Canal/npcs/qm10.lua
23
1509
----------------------------------- -- Area: Toraimarai Canal -- NPC: ??? -- Involved In Quest: Wild Card -- @zone 169 // not accurate -- @pos 220 16 -50 // not accurate ----------------------------------- package.loaded["scripts/zones/Toraimarai_Canal/TextIDs"] = nil; ----------------------------------- require("scr...
gpl-3.0
czfshine/UpAndAway
code/prefabs/cloud_coral.lua
2
3053
BindGlobal() local CFG = TheMod:GetConfig() local assets = { Asset("ANIM", "anim/cloud_coral.zip"), } local prefabs = CFG.CLOUD_CORAL.PREFABS local function grow(inst, dt) if inst.components.scaler.scale < 2 then local new_scale = math.min(inst.components.scaler.scale + CFG.CLOUD_CORAL.GRO...
gpl-2.0
xdemolish/darkstar
scripts/zones/Konschtat_Highlands/npcs/qm1.lua
34
1376
----------------------------------- -- Area: Konschtat Highlands -- NPC: qm1 (???) -- Continues Quests: Past Perfect -- @pos -201 16 80 108 ----------------------------------- package.loaded["scripts/zones/Konschtat_Highlands/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quest...
gpl-3.0
xdemolish/darkstar
scripts/zones/Upper_Jeuno/npcs/Migliorozz.lua
38
1033
----------------------------------- -- Area: Upper Jeuno -- NPC: Migliorozz -- Type: Standard NPC -- @zone: 244 -- @pos -37.760 -2.499 12.924 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; ----------------...
gpl-3.0
snegovick/luasocket
etc/forward.lua
43
2066
-- load our favourite library local dispatch = require("dispatch") local handler = dispatch.newhandler() -- make sure the user knows how to invoke us if #arg < 1 then print("Usage") print(" lua forward.lua <iport:ohost:oport> ...") os.exit(1) end -- function to move data from one socket to the other lo...
mit
xdemolish/darkstar
scripts/globals/spells/poisonga_iii.lua
2
1216
----------------------------------------- -- Spell: Poisonga III ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,targe...
gpl-3.0
xdemolish/darkstar
scripts/zones/Waughroon_Shrine/npcs/Burning_Circle.lua
1
2214
----------------------------------- -- Area: Waughroon Shrine -- NPC: Burning Circle -- Waughroon Shrine Burning Circle -- @pos -345 104 -260 144 ------------------------------------- package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil; ------------------------------------- require("scripts/global...
gpl-3.0
chris5560/openwrt-luci
modules/luci-base/luasrc/model/firewall.lua
17
10704
-- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local type, pairs, ipairs, table, luci, math = type, pairs, ipairs, table, luci, math local tpl = require "luci.template.parser" local utl = require "luci.util" local uci = require "luci.model.uci" module "lu...
apache-2.0
czfshine/UpAndAway
code/prefabs/vine.lua
2
3266
BindGlobal() local CFG = TheMod:GetConfig() local brain = require "brains/vinebrain" local assets= { Asset("ANIM", "anim/vine.zip"), Asset("SOUND", "sound/tentacle.fsb"), } local prefabs = CFG.VINE.PREFABS SetSharedLootTable( "vine", CFG.VINE.LOOT) local function OnHit(inst, attacker, damage) if attac...
gpl-2.0
xdemolish/darkstar
scripts/globals/items/earth_wand.lua
16
1034
----------------------------------------- -- ID: 17076 -- Item: Earth Wand -- Additional Effect: Earth Damage ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- onAdditionalEffect Action --------------------------------...
gpl-3.0
CNSRE/ABTestingGateway
lib/lua-resty-core/lib/resty/core/uri.lua
7
1524
-- Copyright (C) Yichun Zhang (agentzh) local ffi = require 'ffi' local ffi_string = ffi.string local C = ffi.C local ngx = ngx local type = type local tostring = tostring local base = require "resty.core.base" local get_string_buf = base.get_string_buf ffi.cdef[[ size_t ngx_http_lua_ffi_uri_escaped_length(cons...
mit
henrythasler/nodemcu
rc-car/scripts/status.lua
1
2459
return function(sck, request) local majorVer, minorVer, devVer, chipid, flashid, flashsize, flashmode, flashspeed = node.info() local remaining, used, total = file.fsinfo() local _, reset_reason = node.bootreason() local total_allocated, estimated_used = node.egc.meminfo() local addr, netmask, gatew...
mit
czfshine/UpAndAway
wicker/plugins/addworldgenparameterspostconstruct.lua
6
1101
local Lambda = wickerrequire "paradigms.functional" local FunctionQueue = wickerrequire "gadgets.functionqueue" local postconstructs = FunctionQueue() local function AddParamsPostConstruct(fn) table.insert(postconstructs, fn) end local function PatchJsonEncode(encode) local type = type local depth = 0 local fu...
gpl-2.0
lailongwei/llbc
tools/premake/premake5.lua
1
21190
-- @file premake5.lua -- @author Longwei Lai<lailongwei@126.com> -- @brief The llbc library(included all wrap libraries) premake script define. -- ######################################################################### -- Global compile settings -- flags. IS_WINDOWS = string.match(_ACTION, 'vs') ~= nil -- so...
mit
xdemolish/darkstar
scripts/globals/spells/bluemagic/magic_hammer.lua
3
1216
----------------------------------------- -- -- Magic Hammer -- ----------------------------------------- require("scripts/globals/magic"); require("scripts/globals/status"); require("scripts/globals/bluemagic"); ----------------------------------------- -- OnSpellCast ----------------------------------...
gpl-3.0
simonswine/chdkptp
lua/gui_user.lua
1
2876
--[[ 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 the implied warra...
gpl-2.0
nalidixic/OpenRA
mods/cnc/maps/nod06a/nod06a.lua
19
7647
NodStartUnitsRight = { 'ltnk', 'bike', 'e1', 'e1', 'e3', 'e3' } NodStartUnitsLeft = { 'ltnk', 'ltnk', 'bggy', 'e1', 'e1', 'e1', 'e1', 'e3', 'e3', 'e3', 'e3' } Chn1Units = { 'e1', 'e1', 'e1', 'e1', 'e1' } Chn2Units = { 'e2', 'e2', 'e2', 'e2', 'e2' } Obj2Units = { 'ltnk', 'bike', 'e1', 'e1', 'e1' } Chn3CellTriggerActiva...
gpl-3.0
jarvissso3/jokerblue
tools.lua
6
23182
--Begin Tools.lua :) local SUDO = 157059515 -- put Your ID here! <=== local function index_function(user_id) for k,v in pairs(_config.admins) do if user_id == v[1] then print(k) return k end end -- If not found return false end local function getindex(t,id) for i,v in pairs(t) do if v == i...
gpl-2.0
hfjgjfg/mohammad
plugins/wiki.lua
735
4364
-- http://git.io/vUA4M local socket = require "socket" local JSON = require "cjson" local wikiusage = { "!wiki [text]: Read extract from default Wikipedia (EN)", "!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola", "!wiki search [text]: Search articles on default Wikipedia (EN)", "!...
gpl-2.0
hsiaoyi/Melo
cocos2d/cocos/scripting/lua-bindings/auto/api/TurnOffTiles.lua
11
2477
-------------------------------- -- @module TurnOffTiles -- @extend TiledGrid3DAction -- @parent_module cc -------------------------------- -- brief Show the tile at specified position.<br> -- param pos The position index of the tile should be shown. -- @function [parent=#TurnOffTiles] turnOnTile -- @param self -- @...
apache-2.0
czfshine/UpAndAway
code/map/static_layouts/strix_shrine.lua
2
2173
return { version = "1.1", luaversion = "5.1", orientation = "orthogonal", width = 6, height = 6, tilewidth = 64, tileheight = 64, properties = {}, tilesets = { { name = "ground", firstgid = 1, filename = "../../../../../../../../../Don't Starve Mod Tools/mod_tools/Tiled/samplelay...
gpl-2.0
samael65535/quick-ng
cocos/scripting/lua-bindings/auto/api/FadeOut.lua
7
1047
-------------------------------- -- @module FadeOut -- @extend FadeTo -- @parent_module cc -------------------------------- -- js NA -- @function [parent=#FadeOut] setReverseAction -- @param self -- @param #cc.FadeTo ac -- @return FadeOut#FadeOut self (return value: cc.FadeOut) -----------------------------...
mit
CodedBrandon/BuildingWithFriends
ClientSide.lua
1
6512
local player = game.Players.LocalPlayer local mouse = player:GetMouse() local camera = game.Workspace.CurrentCamera local screen = player.PlayerGui:WaitForChild("Screen") do -- Visual Renders holo = Instance.new("Part", camera) do holo.Anchored = true holo.FormFactor = Enum.FormFactor.Custom do holo.BackSurf...
gpl-2.0
Javaxio/BadRotations
System/UI/Toggles/ToggleFunctions.lua
5
11020
-- when we find a match, we reset tooltip function ResetTip(toggleValue,thisValue) GameTooltip:SetOwner(_G["button"..toggleValue], mainButton, 0 , 0) GameTooltip:SetText(_G[toggleValue.. "Modes"][thisValue].tip, 225/255, 225/255, 225/255, nil, true) GameTooltip:Show() end function GarbageButtons() if buttonsTable ...
gpl-3.0
hfjgjfg/armanarman
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
xdemolish/darkstar
scripts/zones/The_Ashu_Talif/Zone.lua
34
1119
----------------------------------- -- -- Zone: The_Ashu_Talif -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/The_Ashu_Talif/TextIDs"] = nil; require("scripts/zones/The_Ashu_Talif/TextIDs"); ----------------------------------- -- onInitialize -...
gpl-3.0
xdemolish/darkstar
scripts/zones/The_Eldieme_Necropolis_[S]/npcs/Layton.lua
34
1914
----------------------------------- -- Area: The Eldieme Necropolis (S) -- NPC: Layton -- Type: Standard Merchant NPC -- Note: Available during Campaign battles -- @pos 382.679 -39.999 3.541 175 ----------------------------------- package.loaded["scripts/zones/The_Eldieme_Necropolis_[S]/TextIDs"] = nil; ------...
gpl-3.0
hostingrust-ru/rust-shop
plugins/shop.lua
1
18974
--[[ © 2014 HostingRust.ru Plugin for implementation the web-api requests for service: shop.hostingrust.ru --]] -- Be safe, your config :) local MARKET_ID = 0; local SECRET_KEY = 'YOUR SECRET_KEY'; -- DO NOT EDIT BELOW THIS LINE PLUGIN.Title = "Shop System"; PLUGIN.Description = "The shop system for human"; PLUGIN...
mpl-2.0
generalistr6/Radeon_Rays
Tools/deploy/App.lua
5
1721
project "App" kind "ConsoleApp" location "../App" links {"CLW"} files { "../App/**.h", "../App/**.cpp", "../App/**.cl", "../App/**.fsh", "../App/**.vsh" } includedirs{ "../FireRays/include", "../CLW" } configuration {"x64"} links { "FireRays64" } libdirs { "../FireRays...
mit
xdemolish/darkstar
scripts/zones/RuLude_Gardens/npcs/Archanne.lua
38
1047
----------------------------------- -- Area: Ru'Lude Gardens -- NPC: Archanne -- Type: Event Scene Replayer -- @zone: 243 -- @pos -54.104 10.999 -34.144 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil; --...
gpl-3.0
xdemolish/darkstar
scripts/zones/Cloister_of_Tides/Zone.lua
32
1658
----------------------------------- -- -- Zone: Cloister_of_Tides (211) -- ----------------------------------- package.loaded["scripts/zones/Cloister_of_Tides/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Cloister_of_Tides/TextIDs"); ------...
gpl-3.0
xdemolish/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Dhea_Prandoleh.lua
16
1048
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Dhea Prandoleh -- Type: Standard NPC -- @zone: 94 -- @pos 3.167 -2 15.545 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil; -...
gpl-3.0
hsiaoyi/Melo
cocos2d/cocos/scripting/lua-bindings/auto/api/Slider.lua
4
9240
-------------------------------- -- @module Slider -- @extend Widget -- @parent_module ccui -------------------------------- -- Changes the progress direction of slider.<br> -- param percent Percent value from 1 to 100. -- @function [parent=#Slider] setPercent -- @param self -- @param #int percent -- @return Slider...
apache-2.0
mrbangi/mrbangi
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
xdemolish/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/King_Zagan.lua
19
1251
----------------------------------- -- Area: Dynamis Xarcabard -- NPC: King Zagan ----------------------------------- require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- -- onMobEngaged ----------------------------------- function o...
gpl-3.0
xdemolish/darkstar
scripts/zones/Oldton_Movalpolos/TextIDs.lua
5
1146
-- 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
xdemolish/darkstar
scripts/globals/items/galkan_sausage_-1.lua
35
1586
----------------------------------------- -- ID: 5862 -- Item: galkan_sausage_-1 -- Food Effect: 30Min, All Races ----------------------------------------- -- Strength -3 -- Dexterity -3 -- Vitality -3 -- Agility -3 -- Mind -3 -- Intelligence -3 -- Charisma -3 ----------------------------------------- re...
gpl-3.0
hsiaoyi/Melo
cocos2d/tests/lua-empty-test/src/mobdebug.lua
23
57276
-- -- MobDebug 0.542 -- Copyright 2011-13 Paul Kulchenko -- Based on RemDebug 1.0 Copyright Kepler Project 2005 -- local mobdebug = { _NAME = "mobdebug", _VERSION = 0.542, _COPYRIGHT = "Paul Kulchenko", _DESCRIPTION = "Mobile Remote Debugger for the Lua programming language", port = os and os.getenv and os.g...
apache-2.0
lighter-cd/premake4-mobile
src/tools/ow.lua
25
2158
-- -- ow.lua -- Provides Open Watcom-specific configuration strings. -- Copyright (c) 2008 Jason Perkins and the Premake project -- premake.ow = { } premake.ow.namestyle = "windows" -- -- Set default tools -- premake.ow.cc = "WCL386" premake.ow.cxx = "WCL386" premake.ow.ar = "ar" -- -- Transla...
mit
HybridDog/minetest-skyblock
skyblock/register_misc.lua
1
2191
--[[ Skyblock for Minetest Copyright (c) 2015 cornernote, Brett O'Donnell <cornernote@gmail.com> Source Code: https://github.com/cornernote/minetest-skyblock License: GPLv3 ]]-- -- set mapgen to singlenode minetest.register_on_mapgen_init(function(mgparams) minetest.set_mapgen_params({mgname='singlenode', water_le...
gpl-3.0
Javaxio/BadRotations
System/UI/Windows/Config.lua
1
9250
-- This creates the normal BadBay Configuration Window br.ui.window.config = {} function br.ui:createConfigWindow() br.ui.window.config = br.ui:createWindow("config", 275, 400,"Configuration") local section local function callGeneral() -- General section = br.ui:createSection(br.ui.window....
gpl-3.0
xdemolish/darkstar
scripts/globals/mobskills/Thundris_Shriek.lua
6
1047
--------------------------------------------- -- Thundris Shriek -- -- Description: Deals heavy lightning damage to targets in area of effect. Additional effect: Terror -- Type: Magical -- Utsusemi/Blink absorb: Wipes shadows -- Range: Unknown -- Notes: Players will begin to be intimidated by the dvergr af...
gpl-3.0
kozinalexey/ardupilot_f4by_12out
Tools/CHDK-Scripts/kap_uav.lua
183
28512
--[[ KAP UAV Exposure Control Script v3.1 -- Released under GPL by waterwingz and wayback/peabody http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script @title KAP UAV 3.1 @param i Shot Interval (sec) @default i 15 @range i 2 120 @param s Total Shots (0=infinite) @default s 0 @range ...
gpl-3.0
xdemolish/darkstar
scripts/globals/items/eggplant.lua
35
1203
----------------------------------------- -- ID: 4388 -- Item: eggplant -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility 3 -- Vitality -5 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemChec...
gpl-3.0
garious/flake
luau/qtest_q.lua
2
3089
local qt = require "qtest" local testCount = 0 function qt.tests.describe() testCount = testCount + 1 local function exd(a,...) local s = qt.describe(...) if a ~= s then print(a, "~=", s) error("assertion failed", 2) end end -- primitive types exd( '"abc"', 'ab...
mit
lukego/snabb
src/apps/ipv6/ns_responder.lua
7
3495
-- This app acts as a responder for neighbor solicitaions for a -- specific target address and as a relay for all other packets. It -- has two ports, north and south. The south port attaches to a port -- on which NS messages are expected. Non-NS packets are sent on -- north. All packets received on the north port a...
apache-2.0
garious/flake
luau/thread.lua
2
7021
-- thread.lua -- -- Thread.lua exports a number of functions that deal with "threads". A -- "thread" consists of a *task* and a *coroutine*. -- -- Task Objects -- ------------- -- -- Task objects represent a pending operation, and store the following: -- -- * the dispatch context [needed to schedule a coroutine] -- ...
mit
cmotc/awesome
themes/sky/theme.lua
1
5144
------------------------------- -- "Sky" awesome theme -- -- By Andrei "Garoth" Thorp -- ------------------------------- -- If you want SVGs and extras, get them from garoth.com/awesome/sky-theme local theme_assets = require("beautiful.theme_assets") local xresources = require("beautiful.xresources") local dpi ...
gpl-2.0
yylangchen/Sample_Lua
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/AudioEngine.lua
10
6277
-------------------------------- -- @module AudioEngine -- @parent_module ccexp -------------------------------- -- -- @function [parent=#AudioEngine] lazyInit -- @param self -- @return bool#bool ret (return value: bool) -------------------------------- -- Sets the current playback position of an audio in...
mit
hfjgjfg/mohammad
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
lukego/snabb
src/lib/lua/class.lua
7
3507
-- Support for basic OO programming. Apart from the usual -- incantations of setmetatable(), it implements a simple mechanism to -- avoid table allocations by recycling objects that have been -- explicitely declared to no longer be in use. An object can also be -- reused immediately by invoking the new() method on it...
apache-2.0
blockplanet/blockplanet
games/blockplanet/mods/default/nodes/saplings.lua
1
2215
minetest.register_node("default:sapling", { description = "Sapling", drawtype = "plantlike", visual_scale = 1.0, tiles = {"default_sapling.png"}, inventory_image = "default_sapling.png", wield_image = "default_sapling.png", paramtype = "light", sunlight_propagates = true, walkable = false, selection_box = { ...
gpl-3.0
czfshine/UpAndAway
code/prefabs/skyflies.lua
2
6520
BindGlobal() local assets = { Asset("ANIM", "anim/skyflies.zip"), Asset( "ATLAS", inventoryimage_atlas("skyflies") ), Asset( "IMAGE", inventoryimage_texture("skyflies") ), Asset( "ATLAS", inventoryimage_atlas("skyflies_pink") ), Asset( "IMAGE", inventoryimage_texture("skyflies_pink") ), Asset...
gpl-2.0
czfshine/UpAndAway
wicker/game/searching.lua
5
5456
--[[ Copyright (C) 2013 simplex This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that ...
gpl-2.0
Andreas-Kreuz/ak-lua-skripte-fuer-eep
lua/LUA/ak/public-transport/models/SimpleStructure.lua
1
2002
local Line = require("ak.public-transport.Line") -- Simple Structure - works with any model local SimpleStructure = {} SimpleStructure.name = "SimpleStructure" SimpleStructure.initStation = function(displayStructure, stationName, platform) assert(type(displayStructure) == "string", "Need 'displayStructure' as st...
mit
xdemolish/darkstar
scripts/globals/items/broiled_trout.lua
35
1292
----------------------------------------- -- ID: 4587 -- Item: Broiled Trout -- Food Effect: 60Min, All Races ----------------------------------------- -- Dexterity 4 -- Mind -1 -- Ranged ATT % 14 ----------------------------------------- require("scripts/globals/status"); --------------------------------...
gpl-3.0
xdemolish/darkstar
scripts/zones/Lower_Jeuno/npcs/Chululu.lua
15
5635
----------------------------------- -- Area: Lower Jeuno -- NPC: Chululu -- Starts and Finishes Quests: Collect Tarut Cards, Rubbish Day -- Optional Cutscene at end of Quest: Searching for the Right Words -- @pos -13 -6 -42 245 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextID...
gpl-3.0
xdemolish/darkstar
scripts/zones/Lower_Delkfutts_Tower/mobs/Disaster_Idol.lua
13
1223
----------------------------------- -- Area: Lower_Delkfutts_tower -- Mob: Disaster_Idol ----------------------------------- require("scripts/globals/missions"); ----------------------------------- -- onMobEngaged Action ----------------------------------- function onMobEngaged(mob,target) local Day...
gpl-3.0
Arcscion/Shadowlyre
scripts/globals/items/serving_of_leadafry.lua
12
1190
----------------------------------------- -- ID: 5161 -- Item: serving_of_leadafry -- Food Effect: 240Min, All Races ----------------------------------------- -- Agility 5 -- Vitality 2 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemChec...
gpl-3.0
jono659/enko
scripts/globals/spells/absorb-str.lua
11
1195
-------------------------------------- -- Spell: Absorb-STR -- Steals an enemy's strength. -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast -----------...
gpl-3.0
jono659/enko
scripts/zones/Heavens_Tower/npcs/_6q1.lua
17
1376
----------------------------------- -- Area: Heaven's Tower -- NPC: Starway Stairway -- @pos -10 0.1 30 242 ----------------------------------- package.loaded["scripts/zones/Heavens_Tower/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/zones/Heavens_...
gpl-3.0
N0U/Zero-K
scripts/gunshipheavyskirm.lua
8
4214
include 'constants.lua' local base, body, rfjet, lfjet, rffan, lffan, rgun, rbarrel, rflare1, rflare2, lgun, lbarrel, lflare1, lflare2, eye, rthruster, rrjet, rrfanbase, rrfan, lthruster, lrjet, lrfanbase, lrfan = piece('base', 'body', 'rfjet', 'lfjet', 'rffan', 'lffan', 'rgun', 'rbarrel', 'rflare1', 'rflare2', 'lgun'...
gpl-2.0
LouisK130/Orange-Cosmos-Roleplay
ocrp/gamemode/client/professions.lua
1
27624
local vgui = vgui local surface = surface local draw = draw function CL_UpdateProf( umsg ) local Prof = umsg:ReadString() local Exp = umsg:ReadLong() local ExpM = umsg:ReadLong() local ExpP = umsg:ReadLong() if Prof == "Pro_Crafting" then OCRP_Professions[Prof] = {Exp = {Skill = Exp,Mechanical = ExpM,Practical...
mit
Arcscion/Shadowlyre
scripts/zones/Batallia_Downs/npcs/qm4.lua
17
1589
----------------------------------- -- Area: Batallia Downs -- NPC: qm4 (???) -- ----------------------------------- package.loaded["scripts/zones/Batallia_Downs/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Batallia_Downs/TextIDs"); require("scripts/globals/keyitems"); require("scrip...
gpl-3.0
Arcscion/Shadowlyre
scripts/globals/spells/choke.lua
5
2062
----------------------------------------- -- Spell: Choke -- Deals wind damage that lowers an enemy's vitality and gradually reduces its HP. ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg");...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Boneyard_Gully/npcs/_081.lua
22
1453
----------------------------------- -- Area: Boneyard_Gully -- NPC: _081 (Dark Miasma) ----------------------------------- package.loaded["scripts/zones/Boneyard_Gully/TextIDs"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/globals/quests"); require("scripts/globals/miss...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Phomiuna_Aqueducts/npcs/_0rm.lua
3
1338
----------------------------------- -- Area: Phomiuna_Aqueducts -- NPC: _0rm (Oil lamp) -- Notes: Opens South door at J-7 from inside. -- !pos -63.703 -26.227 83.000 27 ----------------------------------- package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil; ----------------------------------- require("sc...
gpl-3.0
jono659/enko
scripts/globals/abilities/pets/flaming_crush.lua
6
1348
--------------------------------------------------- -- Flaming Crush M=10, 2, 2? (STILL don't know) --------------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); require("/scripts/globals/summon"); require("/scripts/globals/magic"); require("/scri...
gpl-3.0
MRunFoss/skynet
examples/login/client.lua
67
3950
package.cpath = "luaclib/?.so" local socket = require "clientsocket" local crypt = require "crypt" if _VERSION ~= "Lua 5.3" then error "Use lua 5.3" end local fd = assert(socket.connect("127.0.0.1", 8001)) local function writeline(fd, text) socket.send(fd, text .. "\n") end local function unpack_line(text) loca...
mit
Arcscion/Shadowlyre
scripts/zones/Arrapago_Reef/TextIDs.lua
3
1225
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6386; -- Obtained: <item> GIL_OBTAINED = 6387; -- Obtained <number> gil KEYITEM_OBTAINED = 6389; -- Obtain...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Xarcabard/npcs/Tememe_WW.lua
3
3321
----------------------------------- -- Area: Xarcabard -- NPC: Tememe, W.W. -- Type: Border Conquest Guards -- !pos -133.678 -22.517 112.224 112 ----------------------------------- package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest"); require...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Cape_Teriggan/mobs/Tegmine.lua
3
1997
---------------------------------- -- Area: Cape Teriggan -- NM: Tegmine ----------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------- -- onMobInitialize ----------------------------------- function onMob...
gpl-3.0
jono659/enko
scripts/zones/Chateau_dOraguille/npcs/Chalvatot.lua
9
4390
----------------------------------- -- Area: Chateau d'Oraguille -- NPC: Chalvatot -- Finish Mission "The Crystal Spring" -- Start & Finishes Quests: Her Majesty's Garden -- Involved in Quest: Lure of the Wildcat (San d'Oria) -- @pos -105 0.1 72 233 ----------------------------------- package.loaded["scripts/zones/Cha...
gpl-3.0
jono659/enko
scripts/zones/Bastok_Mines/npcs/Aulavia.lua
30
1603
----------------------------------- -- Area: Bastok Mines -- NPC: Aulavia -- Regional Marchant NPC -- Only sells when Bastok controls Vollbow. ----------------------------------- require("scripts/globals/events/harvest_festivals"); require("scripts/globals/shop"); require("scripts/globals/conquest"); package...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Upper_Jeuno/npcs/Sibila-Mobla.lua
17
1382
----------------------------------- -- Area: Upper Jeuno -- NPC: Sibila-Mobla -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Upper_Jeuno/TextIDs"); require("scripts/globals/quests"); -------...
gpl-3.0