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
Colettechan/darkstar
scripts/zones/Bastok_Markets_[S]/npcs/Silke.lua
13
1217
----------------------------------- -- Area: Bastok Markets (S) -- NPC: Silke -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Bastok_Markets_[S]/TextIDs"); require("scripts/globals/...
gpl-3.0
lpenz/ansible-playbooks
roles/user-x/files/notion/look_clean.lua
7
1838
-- look_clean.lua drawing engine configuration file for Notion. if not gr.select_engine("de") then return end de.reset() de.defstyle("*", { shadow_colour = "grey", highlight_colour = "grey", background_colour = "#545d75", foreground_colour = "grey", padding_pixels = 1, highlight_pixels = 1, ...
apache-2.0
Colettechan/darkstar
scripts/zones/Castle_Oztroja/npcs/_47m.lua
13
1612
----------------------------------- -- Area: Castle Oztroja -- NPC: _47m (Torch Stand) -- Notes: Opens door _471 near password #3 -- @pos -45.230 -17.832 17.668 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require("scripts/...
gpl-3.0
zhaijialong/skynet
examples/login/client.lua
6
3962
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
Colettechan/darkstar
scripts/zones/Misareaux_Coast/npcs/qm1.lua
13
1339
----------------------------------- -- Area: Misareaux_Coast -- NPC: ??? (Spawn Gration) -- @pos 113.563 -16.302 38.912 25 ----------------------------------- package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Misareaux_Coast/TextIDs"); ---------...
gpl-3.0
Vadavim/jsr-darkstar
scripts/zones/The_Sanctuary_of_ZiTah/Zone.lua
4
4466
----------------------------------- -- -- Zone: The_Sanctuary_of_ZiTah (121) -- ----------------------------------- package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil; package.loaded["scripts/globals/chocobo_digging"] = nil; ----------------------------------- require("scripts/zones/The_Sanctuary_of_...
gpl-3.0
82488059/QSanguosha
lua/config.lua
5
3947
--[[******************************************************************** Copyright (c) 2013-2014 - QSanguosha-Rara This file is part of QSanguosha-Hegemony. This game 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...
gpl-3.0
Vadavim/jsr-darkstar
scripts/zones/Xarcabard_[S]/npcs/HomePoint#1.lua
27
1267
----------------------------------- -- Area: Xarcabard [S] -- NPC: HomePoint#1 -- @pos 223 -13 -254 137 ----------------------------------- package.loaded["scripts/zones/Xarcabard_[S]/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Xarcabard_[S]/TextIDs"); require("scripts/globals/homep...
gpl-3.0
ridrogo/ModeradorBot
lang/en.lua
2
195023
return { en = { status = { kicked = '&&&1 is banned from this group', left = '&&&1 left the group or has been kicked and unbanned', administrator = '&&&1 is an Admin', creator = '&&&1 is the group creator', unknown = 'This user has nothing to do wi...
gpl-3.0
Vadavim/jsr-darkstar
scripts/globals/weaponskills/armor_break.lua
1
1949
----------------------------------- -- Armor Break -- Great Axe weapon skill -- Skill level: 100 -- Lowers enemy's defense. Duration of effect varies with TP. -- Lowers defense by as much as 25% if unresisted. -- Strong against: Antica, Bats, Cockatrice, Dhalmel, Lizards, Mandragora, Worms. -- Immune: Ahriman. -- Will ...
gpl-3.0
ncoe/rosetta
Cuban_primes/Lua/cuban.lua
1
1824
local primes = {3, 5} local cutOff = 200 local bigUn = 100000 local chunks = 50 local little = math.floor(bigUn / chunks) local tn = " cuban prime" print(string.format("The first %d%ss", cutOff, tn)) local showEach = true local c = 0 local u = 0 local v = 1 for i=1,10000000000000 do local found = false u = u + ...
mit
Colettechan/darkstar
scripts/zones/Port_Windurst/npcs/Boronene.lua
13
1051
----------------------------------- -- Area: Port Windurst -- NPC: Boronene -- Type: Moghouse Renter -- @zone: 240 -- @pos 201.651 -13 229.584 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; -------------...
gpl-3.0
Colettechan/darkstar
scripts/zones/Southern_San_dOria/npcs/Exoroche.lua
13
3065
----------------------------------- -- Area: Southern San d'Oria -- NPC: Exoroche -- Involved in Quests: Father and Son, A Boy's Dream -- @zone 230 -- @pos 72 -1 60 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scrip...
gpl-3.0
82488059/QSanguosha
extension-doc/4-OtherSkill.lua
7
3508
--技能详解4:其他技能 --距离技(sgs.CreateDistanceSkill) --顾名思义,修改自己与其他玩家的距离用的,可以加也可以减。 --国战中只有马术和飞影用到了距离技 --注意距离技一经声明全场生效,即使不附加给玩家 --锁定与单一玩家的距离不用距离技,用setFixedDistance --国战中同名的距离技也要区分开 --马术实现: function sgs.CreateMashuSkill(name) --创建马术技能,在CreateDistanceSkill函数基础上建立的函数,啦啦版中的CreateFakeMoveSkill就是这样实现的 local mashu_skill = {} mash...
gpl-3.0
Colettechan/darkstar
scripts/globals/items/plate_of_homemade_salad.lua
18
1107
----------------------------------------- -- ID: 5227 -- Item: plate_of_homemade_salad -- Food Effect: 30Min, All Races ----------------------------------------- -- Magic 10 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ----------...
gpl-3.0
Colettechan/darkstar
scripts/zones/Castle_Oztroja/npcs/_47p.lua
13
1286
----------------------------------- -- Area: Castle Oztroja -- NPC: _47p (Handle) -- Notes: Opens door _471 from behind -- @pos -190.294 -15.750 -18.491 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Ca...
gpl-3.0
Colettechan/darkstar
scripts/globals/items/prized_angler_stewpot.lua
18
2003
----------------------------------------- -- ID: 5613 -- Item: Prized Angler's Stewpot -- Food Effect: 4 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +10% -- MP +20 -- Dexterity 4 -- Agility 2 -- Mind 2 -- HP Recovered while healing 9 -- MP Recovered while healing 3 -- Accuracy 1...
gpl-3.0
reaperrr/OpenRA
mods/ra/maps/soviet-05/soviet05-reinforcements_teams.lua
7
6202
--[[ Copyright 2007-2022 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later vers...
gpl-3.0
Vadavim/jsr-darkstar
scripts/zones/RuAun_Gardens/mobs/Groundskeeper.lua
14
1481
----------------------------------- -- Area: RuAun Gardens -- MOB: Groundskeeper -- Note: Place holder Despot ----------------------------------- require("scripts/zones/RuAun_Gardens/MobIDs"); require("scripts/globals/fieldsofvalor"); ----------------------------------- -- onMobDeath --------------------------------...
gpl-3.0
Vadavim/jsr-darkstar
scripts/zones/Apollyon/npcs/Sentinel_Column.lua
14
1170
----------------------------------- -- Area: Appolyon -- NPC: Sentinel_Column -- @pos ----------------------------------- require("scripts/globals/limbus"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; -------------------------...
gpl-3.0
alexandergall/snabbswitch
src/apps/lwaftr/constants.lua
10
2283
module(..., package.seeall) local ffi = require("ffi") local C = ffi.C -- IPv6 next-header values -- http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml proto_icmp = 1 proto_ipv4 = 4 proto_tcp = 6 proto_udp = 17 ipv6_frag = 44 proto_icmpv6 = 58 -- Ethernet types -- http://www.iana.org/assignments...
apache-2.0
Vermeille/kong
kong/plugins/log-serializers/basic.lua
7
1150
local _M = {} function _M.serialize(ngx) local authenticated_entity if ngx.ctx.authenticated_credential ~= nil then authenticated_entity = { id = ngx.ctx.authenticated_credential.id, consumer_id = ngx.ctx.authenticated_credential.consumer_id } end return { request = { uri = ngx.v...
apache-2.0
LuaDist2/nginx-metrix
tests/collectors_spec.lua
2
6674
require('tests.bootstrap')(assert) describe('collectors', function() local collectors setup(function() collectors = require 'nginx-metrix.collectors'; end) teardown(function() package.loaded['nginx-metrix.collectors'] = nil end) after_each(function() collectors.__private__.collectors({}) ...
mit
pablo93/TrinityCore
Data/Interface/FrameXML/SpellBookFrame.lua
1
19969
MAX_SPELLS = 1024; MAX_SKILLLINE_TABS = 8; SPELLS_PER_PAGE = 12; MAX_SPELL_PAGES = ceil(MAX_SPELLS / SPELLS_PER_PAGE); BOOKTYPE_SPELL = "spell"; BOOKTYPE_PET = "pet"; SPELLBOOK_PAGENUMBERS = {}; function ToggleSpellBook(bookType, isTabbing) local doToggle = 1; -- If has no pet spells and is trying to open the corres...
gpl-2.0
pablo93/TrinityCore
Data/Interface/FrameXML/ChatFrame.lua
1
93452
MESSAGE_SCROLLBUTTON_INITIAL_DELAY = 0; MESSAGE_SCROLLBUTTON_SCROLL_DELAY = 0.05; CHAT_BUTTON_FLASH_TIME = 0.5; CHAT_TELL_ALERT_TIME = 300; NUM_CHAT_WINDOWS = 7; DEFAULT_CHAT_FRAME = ChatFrame1; NUM_REMEMBERED_TELLS = 10; CHAT_SHOW_ICONS = "0"; -- Table for event indexed chatFilters. -- Format ["CHAT_MSG_SYSTEM"] = {...
gpl-2.0
xponen/Zero-K
LuaRules/Gadgets/lups_napalm.lua
17
2458
-- $Id: lups_napalm.lua 3171 2008-11-06 09:06:29Z det $ function gadget:GetInfo() return { name = "Napalm", desc = "", author = "jK", date = "Sep. 2008", license = "GNU GPL, v2 or later", layer = 0, enabled = false, } end if (gadgetHandler:IsSyncedCode()) the...
gpl-2.0
xponen/Zero-K
scripts/corcom_alt.lua
1
8885
include "constants.lua" local spSetUnitShieldState = Spring.SetUnitShieldState -------------------------------------------------------------------------------- -- pieces -------------------------------------------------------------------------------- local torso = piece 'torso' local lfirept = piece 'lfirept' local...
gpl-2.0
lambd0x/Awesome-wm-Funtoo-GreenInfinity
awesome/lain/util/dkjson.lua
20
22415
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 Version 2.5 For the documentation see the corresponding readme.txt or visit <http://dkolf.de/src/dkjson-lua.fsl/>. You can contact the ...
gpl-2.0
rxi/lume
lume.lua
3
15772
-- -- lume -- -- Copyright (c) 2020 rxi -- -- 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, publ...
mit
pborky/openvibe
openvibe-scenarios/trunc/share/openvibe-scenarios/bci/p300-speller-xDAWN/p300-speller-target.lua
1
2340
-- This Lua script generates target stimulations for the P300 visualisation -- box based on the matrix of letters / numbers a P300 speller has -- -- Author : Yann Renard, INRIA -- Date : 2011-03-15 grid = { { 'a', 'b', 'c', 'd', 'e', 'f' }, { 'g', 'h', 'i', 'j', 'k', 'l' }, { 'm', 'n', 'o', 'p', 'q', 'r...
lgpl-2.1
xponen/Zero-K
units/bomberassault.lua
4
5875
unitDef = { unitname = [[bomberassault]], name = [[Eclipse]], description = [[Assault Bomber (Anti-Static)]], amphibious = true, --autoheal = 25, buildCostEnergy = 1000, buildCostMetal = 1000, builder = false, buildPic = [[...
gpl-2.0
sandsmark/vlc-kio
share/lua/playlist/dailymotion.lua
19
3036
--[[ Translate Daily Motion video webpages URLs to the corresponding FLV URL. $Id$ Copyright © 2007-2011 the VideoLAN team 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 versio...
gpl-2.0
CovertOwl/IncreasedRates
data-updates.lua
1
1053
--Increase all pollution for key, prototype_type in pairs(data.raw) do for name, prototype in pairs(prototype_type) do --Scaling mining speed if prototype.mining_speed then prototype.mining_speed = prototype.mining_speed * settings.startup["ir-MiningSpeed"].value end --Scale crafting speed ...
mit
Elanis/SciFi-Pack-Addon-Gamemode
lua/entities/halo_covcapship/init.lua
1
4437
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include('shared.lua') function ENT:SpawnFunction( ply,tr ) local ent = ents.Create("halo_covcapship") --SpaceShip entity ent:SetPos( tr.HitPos + Vector(0,0,10)) ent:Spawn() ent:Activate() return ent end function ENT:Initialize() self.MaxHealth = 10000 s...
gpl-2.0
rogerpueyo/luci
modules/luci-mod-rpc/luasrc/controller/rpc.lua
10
6510
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.rpc", package.seeall) function session_retrieve(sid, allowed_users) local util = require "luci.util" local sdat = util.ubus("sessio...
apache-2.0
Schaka/gladdy
Libs/AceHook-3.0/AceHook-3.0.lua
3
11043
--[[ $Id: AceHook-3.0.lua 69511 2008-04-13 10:10:53Z nevcairiel $ ]] local ACEHOOK_MAJOR, ACEHOOK_MINOR = "AceHook-3.0", 4 local AceHook, oldminor = LibStub:NewLibrary(ACEHOOK_MAJOR, ACEHOOK_MINOR) if not AceHook then return end -- No upgrade needed AceHook.embeded = AceHook.embeded or {} AceHook.registry = AceHook.r...
mit
regneq/Server-1
utils/mods/classic_wow_experience.lua
4
2075
--Mod file to demo changing the experience tables --In this case I used some old wow tables (roughly it's not 100%) function GetRequiredAAExperience(e) e.level = 51; return GetEXPForLevel(e); end function GetExperienceForKill(e) local ML = e.other:GetLevel(); local CL = e.self:GetLevel(); if(ML > CL) then lo...
gpl-3.0
gpedro/forgottenserver
data/spells/scripts/party/train.lua
11
1837
local combat = createCombatObject() local area = createCombatArea(AREA_CROSS5X5) setCombatArea(combat, area) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, COND...
gpl-2.0
alexandergall/snabbswitch
lib/luajit/testsuite/test/lib/coroutine/yield.lua
6
2670
local create = coroutine.create local wrap = coroutine.wrap local resume = coroutine.resume local yield = coroutine.yield do --- Stack overflow on return (create) wrap(function() local co = create(function() yield(string.byte(string.rep(" ", 100), 1, 100)) end) assert(select('#', resume(co)) == 101...
apache-2.0
alastair-robertson/awesome
tests/test-awful-client.lua
2
1686
local awful = require("awful") awful.util.deprecate = function() end local has_spawned = false local steps = { function(count) if count <= 1 and not has_spawned and #client.get() < 2 then awful.spawn("xterm") awful.spawn("xterm") has_spawned = true elseif #client.get() >= 2 then -- Test properties clie...
gpl-2.0
kernelsauce/turbo
spec/util_spec.lua
5
1580
--- Turbo.lua Unit test -- -- Copyright 2013 John Abrahamsen -- -- 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 appl...
apache-2.0
sullome/km-freeminer-mods
mods/kmchat/init.lua
2
5010
kmchat = {} dofile(minetest.get_modpath("kmchat").."/config.lua") dofile(minetest.get_modpath("kmchat").."/ranges.lua") dofile(minetest.get_modpath("kmchat").."/chat_string.lua") local function get_message_type_and_text(message) local substrings; for rexp, mtype in pairs(kmchat.rexps) do substrings ...
gpl-3.0
MCFunRide/MCOS-Beta-2
src/welcome.lua
1
2269
--[[ Copyright (c) 2015, The CubeSpaceCC Team Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL ...
isc
alexandergall/snabbswitch
src/core/main.lua
1
8410
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(...,package.seeall) -- Default to not using any Lua code on the filesystem. -- (Can be overridden with -P argument: see below.) package.path = '' local STP = require("lib.lua.StackTracePlus") local ffi = require("ffi") local vmprof...
apache-2.0
xponen/Zero-K
LuaUI/Widgets/unit_auto_patrol_nanos.lua
1
5331
-- $Id$ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: unit_immobile_buider.lua -- brief: sets immobile builders to ROAMING, and gives them a PATROL order -- author: Dave Rodgers -- --...
gpl-2.0
KayRat/glua-nwvars
lua/autorun/sh_nwvars.lua
1
3436
nwvars = nwvars or {} nwvars.data = nwvars.data or {} nwvars.privacy = { SHARED, PRIVATE, } local meta = FindMetaTable("Player") -- TODO: support all entities, not just players if(SERVER) then util.AddNetworkString("nwvars.set") util.AddNetworkString("nwvars.remove") util.AddNetworkString("nwvars.fullUpdate"...
mit
xuejian1354/barrier_breaker
feeds/luci/applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-format.lua
80
3636
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
gpl-2.0
wcjscm/JackGame
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Blink.lua
11
1691
-------------------------------- -- @module Blink -- @extend ActionInterval -- @parent_module cc -------------------------------- -- initializes the action <br> -- param duration in seconds -- @function [parent=#Blink] initWithDuration -- @param self -- @param #float duration -- @param #int blinks -- @return bool#bo...
gpl-3.0
payday-restoration/restoration-mod
lua/managers/hud/HUDTeammate.lua
1
27470
if _G.IS_VR then return end if not restoration:all_enabled("HUD/MainHUD", "HUD/Teammate") then return end function HUDTeammate:init(i, teammates_panel, is_player, width) self._id = i local small_gap = 8 local gap = 0 local pad = 4 local main_player = i == HUDManager.PLAYER_PANEL self._main_player = main_player...
agpl-3.0
payday-restoration/restoration-mod
lua/sc/units/enemies/copdamage.lua
1
126613
local math_random = math.random local mvec_1 = Vector3() local mvec_2 = Vector3() local ids_func = Idstring local table_contains = table.contains local enemies_visor = { ids_func("units/payday2/characters/ene_city_guard_3/ene_city_guard_3"), ids_func("units/payday2/characters/ene_city_guard_3/ene_city_guard_3_husk"...
agpl-3.0
AntonioModer/GridCars
lib/hump/signal.lua
27
2769
--[[ Copyright (c) 2012-2013 Matthias Richter 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
kjoenth/naev
dat/factions/equip/empire.lua
13
5297
-- Generic equipping routines, helper functions and outfit definitions. include("dat/factions/equip/generic.lua") --[[ -- @brief Does empire pilot equipping -- -- @param p Pilot to equip --]] function equip( p ) -- Start with an empty ship p:rmOutfit("all") p:rmOutfit("cores") -- Get ship info local...
gpl-3.0
parsa13881/serverbot
plugins/azan.lua
1
3115
do function run_bash(str) local cmd = io.popen(str) local result = cmd:read('*all') return result end local api_key = nil local base_api = "https://maps.googleapis.com/maps/api" function get_latlong(area) local api = base_api .. "/geocode/json?" local parameters = "address=".. (URL.escape(area) or ...
gpl-2.0
pirate/snabbswitch
src/lib/protocol/gre.lua
7
4427
module(..., package.seeall) local ffi = require("ffi") local C = ffi.C local header = require("lib.protocol.header") local lib = require("core.lib") local bitfield = lib.bitfield local ipsum = require("lib.checksum").ipsum -- GRE uses a variable-length header as specified by RFCs 2784 and -- 2890. The actual size is ...
apache-2.0
bkuebler/openshift-apache-http-cartridge
src/httpd-2.4.6/modules/lua/test/htdocs/test.lua
5
2990
-- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may not...
apache-2.0
adan830/wicker
init/kernel_components/basic_importers.lua
5
2987
--[[ 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
dmccuskey/dmc-gestures
examples/gesture-longpress-basic/dmc_corona/lib/dmc_lua/lua_objects.lua
44
4827
--====================================================================-- -- dmc_lua/lua_objects.lua -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright (c) 2011-2015 David McCuskey Permission is hereby gran...
mit
litmus4/sejx3
seSimpleCombatLog/seSimpleCombatLog.lua
1
46094
local function print(...) local a = {...} for i, v in ipairs(a) do a[i] = tostring(v) end OutputMessage("MSG_SYS", "[seSimpleCombatLog] " .. table.concat(a, "\t").. "\n" ) end local function GetCharacterTipInfo(dwCharacter) local Player = GetClientPlayer() local szCharacter = g_tStrings.STR_NAME_UNKNOWN; ...
mit
pydsigner/naev
dat/missions/neutral/crimelord.lua
5
6838
--[[ Test for a chase mission In this mission, you will be chased by a pirate fleet across several systems. MISSION: Chase Test DESCRIPTION: Pirates chase you to Ogat. ]]-- include "fleethelper.lua" lang = naev.lang() if lang == "es" then else --I guess you know this ...
gpl-3.0
Djabbz/nn
LookupTable.lua
8
2628
local LookupTable, parent = torch.class('nn.LookupTable', 'nn.Module') LookupTable.__version = 4 function LookupTable:__init(nIndex, nOutput) parent.__init(self) self.weight = torch.Tensor(nIndex, nOutput) self.gradWeight = torch.Tensor(nIndex, nOutput):zero() self:reset() end function LookupTable:back...
bsd-3-clause
xingshuo/frame_sync_model
skynet/service/gate.lua
8
1934
local skynet = require "skynet" local gateserver = require "snax.gateserver" local netpack = require "netpack" local watchdog local connection = {} -- fd -> connection : { fd , client, agent , ip, mode } local forwarding = {} -- agent -> connection skynet.register_protocol { name = "client", id = skynet.PTYPE_CLIEN...
mit
dmccuskey/dmc-gestures
examples/gesture-pan-move/dmc_corona/dmc_gestures/pan_gesture.lua
10
10250
--====================================================================-- -- dmc_corona/dmc_gesture/pan_gesture.lua -- -- Documentation: http://docs.davidmccuskey.com/dmc-gestures --====================================================================-- --[[ The MIT License (MIT) Copyright (c) 2015 David McCuskey Per...
mit
SLAPaper/MCGC
MCGC/c84130845.lua
2
3458
-- MC群的笨蛋 ⑨ function c84130845.initial_effect(c) -- 超量 aux.AddXyzProcedure(c, aux.FilterBoolFunction(Card.IsSetCard, 0x2222), 3, 2, c84130845.ovfilter, aux.Stringid(84130845, 0)) c:EnableReviveLimit() -- 无效并获得效果 local e1 = Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(84130845, 1)) ...
mit
QuiQiJingFeng/skynet
lualib/skynet/sharemap.lua
30
1503
local stm = require "skynet.stm" local sprotoloader = require "sprotoloader" local sproto = require "sproto" local setmetatable = setmetatable local sharemap = {} function sharemap.register(protofile) -- use global slot 0 for type define sprotoloader.register(protofile, 0) end local sprotoobj local function loadsp...
mit
MrCerealGuy/Stonecraft
games/stonecraft_game/mods/flowers/mapgen.lua
2
3952
-- -- Mgv6 -- local function register_mgv6_flower(flower_name) minetest.register_decoration({ name = "flowers:"..flower_name, deco_type = "simple", place_on = {"default:dirt_with_grass"}, sidelen = 16, noise_params = { offset = 0, scale = 0.006, spread = {x = 100, y = 100, z = 100}, seed = 436, ...
gpl-3.0
bildzeitung/hind
lua/drawable.lua
1
2718
--[[ drawable.lua Created JUL-11-2012 ]] local Object = (require 'object').Object require 'animation' local pairs, math = pairs, math module('objects') Drawable = Object{} -- -- Drawable constructor -- function Drawable:_clone(values) local o = Object._clone(self,values) o._screenPos = values._screenPo...
gpl-3.0
dmccuskey/dmc-gestures
examples/gesture-multigesture-basic/dmc_corona/dmc_gestures.lua
10
11188
--===================================================================-- -- dmc_corona/dmc_gestures.lua -- -- Documentation: http://docs.davidmccuskey.com/dmc-gestures --===================================================================-- --[[ The MIT License (MIT) Copyright (C) 2012-2015 David McCuskey. All Rights ...
mit
5620j/taylor-bot
plugins/translate.lua
13
1365
do function translate(source_lang, target_lang, text) local path = "http://translate.google.com/translate_a/single" — URL query parameters local params = { client = "gtx", ie = "UTF-8", oe = "UTF-8", hl = "en", dt = "t", tl = target_lang or "en", sl = source_lang or "auto", q = UR...
gpl-2.0
oUF-wow/oUF
ouf.lua
1
26251
local parent, ns = ... local global = GetAddOnMetadata(parent, 'X-oUF') local _VERSION = '@project-version@' if(_VERSION:find('project%-version')) then _VERSION = 'devel' end local oUF = ns.oUF local Private = oUF.Private local argcheck = Private.argcheck local error = Private.error local print = Private.print --lua...
mit
salorium/awesome
tests/test-awful-client.lua
2
1686
local awful = require("awful") awful.util.deprecate = function() end local has_spawned = false local steps = { function(count) if count <= 1 and not has_spawned and #client.get() < 2 then awful.spawn("xterm") awful.spawn("xterm") has_spawned = true elseif #client.get() >= 2 then -- Test properties clie...
gpl-2.0
MrCerealGuy/Stonecraft
games/stonecraft_game/mods/nssm/mobs/mese_dragon.lua
1
2709
--[[ 2017-09-21 modified by MrCerealGuy <mrcerealguy@gmx.de> replaced nodeupdate(pos) (deprecated) with minetest.check_for_falling(pos) --]] mobs:register_mob("nssm:mese_dragon", { type = "monster", hp_max = 666, hp_min = 666, collisionbox = {-1, 0, -1, 1, 5, 1}, visual = "mesh", mesh = "mese_dragon.x", text...
gpl-3.0
MrCerealGuy/Stonecraft
games/stonecraft_game/mods/ethereal/schematics/pinetree.lua
1
1188
local _ = {name = "air", prob = 0} local L = {name = "ethereal:pineleaves", prob = 255} local T = {name = "default:pinetree", prob = 255} ethereal.pinetree = { size = {x = 7, y = 8, z = 7}, yslice_prob = { {ypos = 0, prob = 127}, {ypos = 4, prob = 127}, }, data = { _,_,_,_,_,_,_, _,_,_,_,_,_,_, _,_,_,_...
gpl-3.0
payday-restoration/restoration-mod
lua/sc/managers/mission/elementspawnenemygroup.lua
1
102842
-- Remove some dodgy code for forced group spawns, forcing spawn groups has been fixed in GroupAIStateBesiege:force_spawn_group Hooks:OverrideFunction(ElementSpawnEnemyGroup, "on_executed", function (self, instigator) if not self._values.enabled then return end self:_check_spawn_points() if #self._spawn_points ...
agpl-3.0
MrCerealGuy/Stonecraft
games/stonecraft_game/mods/technic/technic/machines/HV/forcefield.lua
1
11894
--- Forcefield generator. -- @author ShadowNinja -- -- Forcefields are powerful barriers but they consume huge amounts of power. -- The forcefield Generator is an HV machine. -- How expensive is the generator? -- Leaves room for upgrades lowering the power drain? local digilines_path = minetest.get_modpath("digilines"...
gpl-3.0
dieg0vb/sysdig
userspace/sysdig/chisels/v_directories.lua
8
2977
--[[ Copyright (C) 2013-2015 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
pydsigner/naev
dat/missions/neutral/oldwoman.lua
9
6257
--[[ -- -- MISSION: The complaining grandma -- DESCRIPTION: The player is taking an old woman from Dvaered space to Sirius space. -- The old woman keeps muttering about how the times have changed and how it used to be when she was young. -- --]] include "dat/scripts/cargo_common.lua" -- Localization, choosing a langu...
gpl-3.0
nimaghorbani/dozdi5
plugins/Member_Moderator.lua
20
10430
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) local group_creator = msg.from.print_name create_group_chat (group_creator, group_name, ok_cb, false) return 'Group '..string.gsub(group_name, '...
gpl-2.0
zloster/FrameworkBenchmarks
frameworks/Lua/openresty/app.lua
25
2311
local mysql = mysql local encode = encode local random = math.random local min = math.min local insert = table.insert local sort = table.sort local template = require'resty.template' local ngx = ngx local ngx_print = ngx.print template.caching(false) -- Compile template, disable cache, enable plain text view to skip f...
bsd-3-clause
kjoenth/naev
dat/ai/proteron.lua
5
2613
include("dat/ai/tpl/generic.lua") include("dat/ai/personality/patrol.lua") -- Settings mem.armour_run = 40 mem.armour_return = 70 mem.aggressive = true function create () -- Not too many credits. ai.setcredits( rnd.rnd(ai.shipprice()/300, ai.shipprice()/70) ) -- Get refuel chance p = ai.getPlayer() ...
gpl-3.0
badboyam/crazy_bot
plugins/gnuplot.lua
622
1813
--[[ * Gnuplot plugin by psykomantis * dependencies: * - gnuplot 5.00 * - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html * ]] -- Gnuplot needs absolute path for the plot, so i run some commands to find where we are local outputFile = io.popen("pwd","r") io.input(outputFile...
gpl-2.0
emadni/launcherlord
plugins/gnuplot.lua
622
1813
--[[ * Gnuplot plugin by psykomantis * dependencies: * - gnuplot 5.00 * - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html * ]] -- Gnuplot needs absolute path for the plot, so i run some commands to find where we are local outputFile = io.popen("pwd","r") io.input(outputFile...
gpl-2.0
dieg0vb/sysdig
userspace/sysdig/chisels/v_page_faults.lua
1
2563
--[[ Copyright (C) 2013-2015 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
wcjscm/JackGame
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ReuseGrid.lua
8
1637
-------------------------------- -- @module ReuseGrid -- @extend ActionInstant -- @parent_module cc -------------------------------- -- brief Initializes an action with the number of times that the current grid will be reused.<br> -- param times Specify times the grid will be reused.<br> -- return If the initializati...
gpl-3.0
amirkingred/telejian
plugins/quotes.lua
651
1630
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
pydsigner/naev
dat/events/start.lua
11
4841
include "dat/events/tutorial/tutorial-common.lua" -- localization stuff, translators would work here lang = naev.lang() if lang == "es" then else -- default english title = {} text = {} title[1] = "Flying License Acquired!" text[1] = [["Congratulations, %s," your flying instructor says through the radio...
gpl-3.0
Hello23-Ygopro/ygopro-kaijudo
expansions/script/c25100015.lua
1
1363
--Old Man Winter local ka=require "expansions.utility_ktcg" local scard,sid=ka.GetID() function scard.initial_effect(c) ka.EnableCreatureAttribute(c) --double breaker ka.EnableBreaker(c,KA_ABILITY_DOUBLE_BREAKER) --draw & to battle ka.AddSingleComeIntoPlayAbility(c,0,nil,scard.drtg,scard.drop) end scard.kaijudo_ca...
gpl-3.0
Natsirtt/superArena
controllers/iaController.lua
1
2284
local mt = {} mt.__index = mt local ATTACK_COOLDOWN = 0.5 local ATTACK_DISTANCE = 50 local ENNEMY_DETECTION = 200 function newIAController(player) local this = {} this.player = player this.attackTimer = 0 this.nearest = nil player.life = 2 player.speed = player.speed / 2 return setmetatable...
mit
MrCerealGuy/Stonecraft
games/stonecraft_game/mods/areas/api.lua
2
5075
local hudHandlers = {} areas.registered_on_adds = {} areas.registered_on_removes = {} areas.registered_on_moves = {} function areas:registerOnAdd(func) table.insert(areas.registered_on_adds, func) end function areas:registerOnRemove(func) table.insert(areas.registered_on_removes, func) end function areas:register...
gpl-3.0
dreadmullet/JC2-MP-Racing
client/RaceMenu/cRaceMenu.lua
1
4172
class("RaceMenu") -- Static constants RaceMenu.command = "/racemenu" RaceMenu.requestLimitSeconds = 3.5 RaceMenu.requestLimitCount = 5 -- Helps with requesting courses and votes only once. RaceMenu.cache = {} RaceMenu.allowedActions = { Action.Accelerate , Action.Reverse , Action.TurnLeft , Action.TurnRight , ...
mit
MrCerealGuy/Stonecraft
games/stonecraft_game/mods/mesecons/mesecons_delayer/init.lua
1
4933
--[[ 2017-01-06 modified by MrCerealGuy <mrcerealguy@gmx.de> exit if mod is deactivated --]] if core.skip_mod("mesecons") then return end -- Function that get the input/output rules of the delayer local delayer_get_output_rules = function(node) local rules = {{x = 0, y = 0, z = 1}} for i = 0, node.param2 do ru...
gpl-3.0
dieg0vb/sysdig
userspace/sysdig/chisels/lscontainers.lua
10
2456
--[[ 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
spixi/wesnoth
data/campaigns/tutorial/lua/character_selection.lua
3
2290
-- #textdomain wesnoth-tutorial -- Allows the player to choose whether they want to play Konrad or Li’sar -- for the tutorial local T = wml.tag local wml_actions = wesnoth.wml_actions local _ = wesnoth.textdomain "wesnoth-tutorial" function wml_actions.select_character() local character_selection_dialog = { maxim...
gpl-2.0
spixi/wesnoth
data/ai/lua/ai_helper.lua
2
82704
local H = wesnoth.require "helper" local LS = wesnoth.require "location_set" local F = wesnoth.require "functional" local M = wesnoth.map -- This is a collection of Lua functions used for custom AI development. -- Note that this is still work in progress with significant changes occurring -- frequently. Backward compa...
gpl-2.0
litmus4/sejx3
seCoolLine/seCoolLine.lua
1
17282
local function print(...) local a = {...} for i, v in ipairs(a) do a[i] = tostring(v) end OutputMessage("MSG_SYS", "[seCoolLine] " .. table.concat(a, "\t").. "\n" ) end seCoolLine = { bOn = true, bDragable = true, nRemainTime = 700, n_BoxSize = 30, time_compression = 0.4, nTimeMax = 2 * 60 * 1000, nLastS...
mit
nimaghorbani/dozdi5
plugins/chat.lua
28
1195
local function run(msg) if msg.text == "hi" then return "Hello bb" end if msg.text == "Hi" then return "Hello honey" end if msg.text == "Hello" then return "Hi bb" end if msg.text == "hello" then return "Hi honey" end if msg.text == "Salam" then return "Salam aleykom" end if msg.text == "salam" then return "و علی...
gpl-2.0
Djabbz/nn
CMulTable.lua
31
1238
local CMulTable, parent = torch.class('nn.CMulTable', 'nn.Module') function CMulTable:__init() parent.__init(self) self.gradInput = {} end function CMulTable:updateOutput(input) self.output:resizeAs(input[1]):copy(input[1]) for i=2,#input do self.output:cmul(input[i]) end return self.output e...
bsd-3-clause
domny/redis_src
deps/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
bsd-3-clause
T3hArco/skeyler-gamemodes
Sassilization/entities/entities/building_wall/cl_init.lua
1
15690
---------------------------------------- -- Sassilization -- http://sassilization.com -- By Sassafrass / Spacetech ---------------------------------------- include("shared.lua") local nSegmentSize = SA.WallSpacing local iSegsPerFloat = 24 -- Rest is given to mantissa and we can't use it ENT.Rend...
bsd-3-clause
xing634325131/Luci-0.11.1
applications/luci-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua
76
3146
--[[ Luci diag - Diagnostics controller module (c) 2009 Daniel Dickinson Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ]]-- module("luci.cont...
apache-2.0
MrCerealGuy/Stonecraft
games/stonecraft_game/mods/farming/lucky_block.lua
1
2642
-- add lucky blocks if minetest.get_modpath("lucky_block") and not core.skip_mod("lucky_block") then lucky_block:add_blocks({ {"dro", {"farming:corn"}, 5}, {"dro", {"farming:coffee_cup_hot"}, 1}, {"dro", {"farming:bread"}, 5}, {"nod", "farming:jackolantern", 0}, {"tro", "farming:jackolantern_on"}, {"nod...
gpl-3.0