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
yimogod/boom
trunk/t-engine4/game/engines/engine/Level.lua
1
7382
-- TE4 - T-Engine 4 -- Copyright (C) 2009 - 2015 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later version....
apache-2.0
Afforess/LogisticsMining
libs/array_pair.lua
1
1756
array_pair = {} array_pair.__index = array_pair function array_pair.new() return {table_a = {}, table_b = {}} end function array_pair.reset(list) list.table_a = {} list.table_b = {} end function array_pair.insert(list, tuple) table.insert(list.table_a, tuple.x) table.insert(list.table_b, tuple.y)...
isc
excessive/obtuse-tanuki
libs/quickie/keyboard.lua
14
3194
--[[ Copyright (c) 2012 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, distribu...
mit
LuaDist2/i18n
i18n/variants.lua
36
1195
local variants = {} local function reverse(arr, length) local result = {} for i=1, length do result[i] = arr[length-i+1] end return result, length end local function concat(arr1, len1, arr2, len2) for i = 1, len2 do arr1[len1 + i] = arr2[i] end return arr1, len1 + len2 end function variants.ancestry(...
mit
TheLazar42/Reign-of-Darkness
games/Reign of Darkness/mods/hand/init.lua
1
1205
local hand = "wield_dummy.png^[combine:16x16:2,2=wield_dummy.png:-52,-23=character.png^[transformfy" local tool_cap = { full_punch_interval = 1.0, max_drop_level = 0, groupcaps = { fleshy = {times={[2]=2.00, [3]=1.00}, uses=0, maxlevel=1}, crumbly = {times={[2]=3.00, [3]=0.70}, uses=0, maxlevel=1}, ...
lgpl-2.1
Blizzard/premake-core
modules/vstudio/tests/vc2010/test_item_def_group.lua
14
1930
-- -- tests/actions/vstudio/vc2010/test_item_def_group.lua -- Check the item definition groups, containing compile and link flags. -- Copyright (c) 2013 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("vs2010_item_def_group") local vc2010 = p.vstudio.vc2010 local project = p.p...
bsd-3-clause
TylerL-uxai/SamsBday
cocos2d/cocos/scripting/lua/script/DeprecatedClass.lua
15
74670
-- This is the DeprecatedClass DeprecatedClass = {} or DeprecatedClass --tip local function deprecatedTip(old_name,new_name) print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********") end --CCProgressTo class will be Deprecated,begin function DeprecatedClass.CCProgres...
mit
TylerL-uxai/SamsBday
Resources/DeprecatedClass.lua
15
74670
-- This is the DeprecatedClass DeprecatedClass = {} or DeprecatedClass --tip local function deprecatedTip(old_name,new_name) print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********") end --CCProgressTo class will be Deprecated,begin function DeprecatedClass.CCProgres...
mit
moonlight/cave-adventure
data/scripts/EnemyGuard.lua
1
1294
import("Player.lua") EnemyGuard = Enemy:subclass { name = "EnemyGuard"; bPlaceable = true; defaultproperties = { speed = 3, draw_mode = DM_MASKED, charAnim = extr_char_anim(m_get_bitmap("cop.bmp"), 23, 40), experience = 0, attackTime = 50, chargeTime = 100, charging = 0, attackMinDam = 0, attac...
gpl-2.0
Chilastra-Reborn/Chilastra-source-code
bin/scripts/commands/overChargeShot2.lua
2
2416
--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. ...
agpl-3.0
bingo235/skynet
lualib/http/internal.lua
95
2613
local table = table local type = type local M = {} local LIMIT = 8192 local function chunksize(readbytes, body) while true do local f,e = body:find("\r\n",1,true) if f then return tonumber(body:sub(1,f-1),16), body:sub(e+1) end if #body > 128 then -- pervent the attacker send very long stream without ...
mit
bluegr/scummvm
devtools/create_ultima/files/ultima6/scripts/md/look.lua
18
9304
function look_pocketwatch(obj) printl("THE_TIME_IS") local am = true local hour = clock_get_hour() local minute = clock_get_minute() if hour >= 12 then am = false end if hour > 12 then hour = hour - 12 end local time = "TIME_AM" if am == false then time = "TIME_PM" end prin...
gpl-3.0
amirhoseinkarimi2233/uzzbot
plugins/bugzilla.lua
611
3983
do local BASE_URL = "https://bugzilla.mozilla.org/rest/" local function bugzilla_login() local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password print("accessing " .. url) local res,code = https.request( url ) local data = json:decode(res) return data ...
gpl-2.0
alireza1998/gfx1
plugins/stats.lua
1
3934
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
Chilastra-Reborn/Chilastra-source-code
bin/scripts/loot/items/wearables/jacket/jacket_s22.lua
4
1251
jacket_s22 = { -- Dress Robe minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/tangible/wearables/jacket/jacket_s22.iff", craftingValues = {}, skillMods = {}, customizationStringNames = {"/private/index_color_1","/private/index_color_2"}, customi...
agpl-3.0
braydondavis/Nerd-Gaming-Public
resources/NGPlayerFunctions/server/teams.lua
2
1349
local teams = { { "Staff", 255, 140, 0 }, { "Criminals", 255, 0, 0 }, { "Law Enforcement", 0, 100, 255 }, { "Services", 255, 255, 0 }, { "Emergency", 0, 255, 255 }, { "Unemployed", 255, 92, 0 }, } local lawTeams = { ['Law Enforcement'] = true } local team = { } for i, v in ipairs ( teams ) do team[v[1]] = c...
mit
yimogod/boom
trunk/t-engine4/game/engines/engine/Module.lua
1
36532
-- TE4 - T-Engine 4 -- Copyright (C) 2009 - 2015 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later version...
apache-2.0
Chilastra-Reborn/Chilastra-source-code
bin/scripts/commands/headShot3.lua
1
2448
--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. ...
agpl-3.0
amirjoker/Telecloner
plugins/lock_chat.lua
13
2802
local function run(msg, matches) if msg.to.type == 'chat' then if is_momod(msg) then return end local data = load_data(_config.moderation.data) if data[tostring(msg.to.id)] then if data[tostring(msg.to.id)]['settings'] then if data[tostring(msg.to.id)]['settings']['lock_chat...
gpl-2.0
LeMagnesium/minetest-minetestforfun-server
mods/mobs/mese_dragon.lua
5
3673
mobs:register_mob("mobs:mese_dragon", { type = "monster", -- agressive, deals 13 damage to player when hit passive = false, damage = 13, attack_type = "dogshoot", reach = 4, shoot_interval = 2, arrow = "mobs:mese_dragon_fireball", shoot_offset = -0.5, -- health & armor hp_min = 175, hp_max = 225, armor = 7...
unlicense
Chilastra-Reborn/Chilastra-source-code
bin/scripts/commands/setExperience.lua
4
2132
--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. ...
agpl-3.0
ThorsCrafter/Reactor-and-Turbine-control-program
turbineControl_v2/src/start/start.lua
1
8944
-- Reactor- and Turbine control by Thor_s_Crafter -- -- Version 2.6 -- -- Start program -- --========== Global variables for all program parts ========== --All options optionList = {} version = 0 rodLevel = 0 backgroundColor = 0 textColor = 0 reactorOffAt = 0 reactorOnAt = 0 mainMenu = "" lang = "" overallMode = "" p...
mit
TheLazar42/Reign-of-Darkness
games/MechCraft/mods/bucket/init.lua
4
5189
-- Minetest 0.4 mod: bucket -- See README.txt for licensing and other information. local LIQUID_MAX = 8 --The number of water levels when liquid_finite is enabled minetest.register_alias("bucket", "bucket:bucket_empty") minetest.register_alias("bucket_water", "bucket:bucket_water") minetest.register_alias("bucket_la...
lgpl-2.1
Chilastra-Reborn/Chilastra-source-code
bin/scripts/mobile/faction/imperial/crackdown_imperial_corporal.lua
2
1373
crackdown_imperial_corporal = Creature:new { objectName = "@mob/creature_names:crackdown_imperial_corporal", randomNameType = NAME_GENERIC_TAG, socialGroup = "imperial", faction = "imperial", level = 1, chanceHit = 0.31, damageMin = 170, damageMax = 180, baseXp = 40, baseHAM = 2900, baseHAMmax = 3500, armor...
agpl-3.0
tchapeaux/love-rymdkapsel-clone
thirdparty/lib/lgm/lgm-entity.lua
1
2103
local base = require(tostring(lgm_path) .. "lgm-base") local vector = require(tostring(lgm_path) .. "lgm-vector") local entity = { } local Entity do local _base_0 = { getX = function(self) return self.x end, getY = function(self) return self.y end, __tostring = function(self) ret...
mit
MikeMcShaffry/gamecode3
Dev/Source/3rdParty/LuaPlus/Src/Modules/wxLua/Import/utils/tags/ParseTheTags.lua
1
20802
----------------------------------------------------------------------------- -- Name: ParseTheTags.lua, based on ParseTags.lua -- Purpose: Lua routine to process the output from 'ctags' and the -- original header files to extract classes, definitions, etc. -- Author: J Winwood -- Modified ...
lgpl-2.1
StephenZhuang/qdkpv2
QDKP_V2/QDKP_V2/Code/Core/Raid.lua
1
11455
-- Copyright 2012 Akhaan & Honesty Hyj (www.quickdkp.com) -- This file is a part of QDKP_V2 (see about.txt in the Addon's root folder) -- ## CORE FUNCTIONS ## -- Raid Functions -- -- The common interface to the ongoing raid/party. Gives a updater tool to parse the data and -- ...
gpl-3.0
edge2054/Fae
load.lua
1
5738
-- Fae -- Copyright (C) 2012 Eric Wykoff -- -- 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 3 of the License, or -- (at your option) any later version. -- -- This program is di...
gpl-3.0
xztraz/domoticz
dzVents/runtime/device-adapters/scene_device.lua
6
1104
local TimedCommand = require('TimedCommand') return { baseType = 'scene', name = 'Scene device adapter', matches = function(device, adapterManager) local res = (device.baseType == 'scene') if (not res) then adapterManager.addDummyMethod(device, 'switchOn') adapterManager.addDummyMethod(device, 'switchO...
gpl-3.0
Chilastra-Reborn/Chilastra-source-code
bin/scripts/mobile/lair/npc_theater/corellia_drall_patriot_camp_neutral_medium_theater.lua
2
1093
corellia_drall_patriot_camp_neutral_medium_theater = Lair:new { mobiles = {{"drall_patriot",2},{"drall_patriot_foot_soldier",1},{"drall_patriot_legionnaire",1}}, spawnLimit = 10, buildingsVeryEasy = {"object/building/poi/corellia_drall_patriot_small1.iff","object/building/poi/corellia_drall_patriot_small2.iff"}, bu...
agpl-3.0
hfjgjfg/sx
plugins/inrealm.lua
850
25085
-- 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
xztraz/domoticz
dzVents/runtime/TimedCommand.lua
9
5050
local scriptPath = _G.globalvariables['script_path'] package.path = package.path .. ';' .. scriptPath .. '?.lua' local TIMED_OPTIONS = require('TimedCommandOptions') local utils = require('Utils') local function TimedCommand(domoticz, commandName, value, mode, currentState) if (type(mode) == 'string') then mo...
gpl-3.0
jchuang1977/my_packages
net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/interface.lua
28
9746
-- ------ extra functions ------ -- function interfaceCheck() -- find issues with too many interfaces, reliability and metric uci.cursor():foreach("mwan3", "interface", function (section) local interfaceName = section[".name"] interfaceNumber = interfaceNumber+1 -- count number of mwan interfaces configured ...
gpl-2.0
excessive/obtuse-tanuki
libs/winapi/comboboxex.lua
2
6885
--proc/comboboxex: standard (new, from comctl32) combobox control. --Written by Cosmin Apreutesei. Public Domain. setfenv(1, require'winapi') require'winapi.combobox' require'winapi.comctl' require'winapi.itemlist' InitCommonControlsEx(ICC_USEREX_CLASSES) --creation WC_COMBOBOXEX = 'ComboBoxEx32' CBES_EX_NOEDITIM...
mit
excessive/obtuse-tanuki
libs/winapi/listview.lua
2
33972
--proc/listview: standard listview control. --Written by Cosmin Apreutesei. Public Domain. setfenv(1, require'winapi') require'winapi.window' require'winapi.comctl' InitCommonControlsEx(ICC_LISTVIEW_CLASSES) --creation WC_LISTVIEW = 'SysListView32' LVS_ICON = 0x0000 LVS_REPORT = 0x00...
mit
TheLazar42/Reign-of-Darkness
games/MechCraft/mods/default/player.lua
2
5586
-- Minetest 0.4 mod: player -- See README.txt for licensing and other information. --[[ API --- default.player_register_model(name, def) ^ Register a new model to be used by players. ^ <name> is the model filename such as "character.x", "foo.b3d", etc. ^ See Model Definition below for format of <def>. default.regis...
lgpl-2.1
LeMagnesium/minetest-minetestforfun-server
mods/homedecor_modpack/itemframes/init.lua
9
9746
local tmp = {} itemframes = {} screwdriver = screwdriver or {} minetest.register_entity("itemframes:item",{ hp_max = 1, visual="wielditem", visual_size={x=.33,y=.33}, collisionbox = {0,0,0,0,0,0}, physical=false, textures={"air"}, on_activate = function(self, staticdata) if tmp.nodename ~= nil and tmp.texture...
unlicense
MikeMcShaffry/gamecode3
Dev/Source/3rdParty/LuaPlus/Src/Modules/luacom/demo/date/testdate.lua
1
1119
require("luacom") teste = {} function print_date(date) if type(date)=="table" then for key, val in pairs(date) do print(key .. "=" .. val) end else print(date) end end teste.Test = function(self, in_param, in_out_param, out_param) print_date(in_param) print_date(in_out_param) return in_...
lgpl-2.1
ddtm/deep-smile-warp
deepwarp/TVLoss.lua
1
1143
local TVLoss, parent = torch.class('deepwarp.TVLoss', 'nn.Module') function TVLoss:__init(strength) parent.__init(self) self.strength = strength self.x_diff = torch.Tensor() self.y_diff = torch.Tensor() end function TVLoss:updateOutput(input) self.output = input return self.output end -- TV loss backward...
mit
Chilastra-Reborn/Chilastra-source-code
bin/scripts/loot/items/wearables/ithorian/ith_necklace_s12.lua
4
1300
ith_necklace_s12 = { -- Ithorian Elegant Gemstone Necklace minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/tangible/wearables/ithorian/ith_necklace_s12.iff", craftingValues = {}, skillMods = {}, customizationStringNames = {"/private/index_color_1",...
agpl-3.0
excessive/obtuse-tanuki
libs/winapi/panelclass.lua
2
1522
--oo/panel: custom frameless child window. --Written by Cosmin Apreutesei. Public Domain. setfenv(1, require'winapi') require'winapi.controlclass' require'winapi.cursor' require'winapi.color' require'winapi.winbase' --GetCurrentThreadId Panel = subclass({ __class_style_bitmask = bitmask{ --only static, frame styles...
mit
alzaen/al-zaen
plugins/wphoto.lua
1
2356
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ by member oscar team @ahmed_al_zaen -----OSCAR TEAM please join to Channel Oscar Team @ahmed_al_zaen Plugin ; lock audio with warn tnx @ahmed_al_zaen for help :) ▀▄ ▄▀ ...
gpl-2.0
Chilastra-Reborn/Chilastra-source-code
bin/scripts/commands/remote.lua
4
2111
--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. ...
agpl-3.0
DBarney/luvit
tests/to-convert/test-tls-remote.lua
5
1493
--[[ Copyright 2012 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
apache-2.0
MonkeyZZZZ/platform_external_skia
resources/test.lua
68
1921
local r = { left = 10, top = 10, right = 100, bottom = 80 } local x = 0; local paint = Sk.newPaint(); paint:setAntiAlias(true); local image -- = Sk.loadImage('/skia/sailboat.jpg'); function setImageFilename(filename) image = Sk.loadImage(filename) end local color = {a = 1, r = 1, g = 0, b = 0}; function r...
bsd-3-clause
MikeMcShaffry/gamecode3
Dev/Source/3rdParty/LuaPlus/Src/Modules/socket/etc/dict.lua
59
4652
----------------------------------------------------------------------------- -- Little program to download DICT word definitions -- LuaSocket sample files -- Author: Diego Nehab -- RCS ID: $Id: dict.lua,v 1.22 2005/11/22 08:33:29 diego Exp $ -----------------------------------------------------------------------------...
lgpl-2.1
LeMagnesium/minetest-minetestforfun-server
mods/snow/src/mapgen_v6.lua
9
14374
-- https://github.com/paramat/meru/blob/master/init.lua#L52 -- Parameters must match mgv6 biome noise local np_default = { offset = 0, scale = 1, spread = {x=250, y=250, z=250}, seed = 9130, octaves = 3, persist = 0.5 } -- 2D noise for coldness local mg = snow.mapgen local scale = mg.perlin_scale local np_col...
unlicense
LeMagnesium/minetest-minetestforfun-server
mods/mesecons/mesecons_alias/init.lua
22
3047
-- This file registers aliases for the /give /giveme commands. minetest.register_alias("mesecons:removestone", "mesecons_random:removestone") minetest.register_alias("mesecons:power_plant", "mesecons_powerplant:power_plant") minetest.register_alias("mesecons:powerplant", "mesecons_powerplant:power_plant") minetest.reg...
unlicense
qyh/login_server
server/logservice.lua
1
2404
local skynet = require "skynet" require "skynet.manager" local const = require "const" local loglevel = const.loglevel local logfile = nil local log_file_name = skynet.getenv("log_file_name") or "skynet.log" local log_dir = skynet.getenv("log_dir") or "../log" local daemon = skynet.getenv("daemon") or nil local comman...
mit
helling34/skynet
service/multicastd.lua
47
5408
local skynet = require "skynet" local mc = require "multicast.core" local datacenter = require "datacenter" local harbor_id = skynet.harbor(skynet.self()) local command = {} local channel = {} local channel_n = {} local channel_remote = {} local channel_id = harbor_id local NORET = {} local function get_address(t, i...
mit
Chilastra-Reborn/Chilastra-source-code
bin/scripts/mobile/dungeon/death_watch_bunker/death_watch_black_sun_henchman.lua
2
1068
death_watch_black_sun_henchman = Creature:new { objectName = "@mob/creature_names:mand_bunker_blksun_henchman", randomNameType = NAME_GENERIC_TAG, socialGroup = "death_watch", faction = "", level = 76, chanceHit = 0.75, damageMin = 520, damageMax = 750, baseXp = 7207, baseHAM = 15000, baseHAMmax = 15000, ar...
agpl-3.0
LeMagnesium/minetest-minetestforfun-server
mods/runes/api.lua
8
10862
-- API of the rune mod -- -- Global namespace runes = {} runes.datas = {} runes.datas.handlers = {} runes.datas.items = {} runes.datas.amulets = {} runes.functions = {} -- Simple rune register function runes.functions.register_rune = function(parameters) local runedef = {} if not parameters.name then minetest.lo...
unlicense
LeMagnesium/minetest-minetestforfun-server
mods/WorldEdit/worldedit_limited/init.lua
26
3114
do return end do local MAX_VOLUME = 30 * 30 * 30 local we = worldedit local volume = we.volume local safewrap = function(func) return function(pos1, pos2, ...) if validbox(pos1, pos2) then return func(pos1, pos2, ...) end return 0, pos1, pos2 end end local validbox = function(pos1, pos2) tpos...
unlicense
tst2005/lua-luassert
luassert/languages/ar.lua
7
1694
local s = require('say') s:set_namespace("ar") s:set("assertion.same.positive", "تُوُقِّعَ تَماثُلُ الكائِنات.\nتَمَّ إدخال:\n %s.\nبَينَما كانَ مِن المُتَوقَّع:\n %s.") s:set("assertion.same.negative", "تُوُقِّعَ إختِلافُ الكائِنات.\nتَمَّ إدخال:\n %s.\nبَينَما كانَ مِن غَيرِ المُتَوقَّع:\n %s.") s:set("assertion.e...
mit
yimogod/boom
trunk/t-engine4/game/engines/engine/Shader.lua
1
7701
-- TE4 - T-Engine 4 -- Copyright (C) 2009 - 2015 Nicolas Casalini -- -- 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 3 of the License, or -- (at your option) any later version....
apache-2.0
LeMagnesium/minetest-minetestforfun-server
mods/homedecor_modpack/homedecor_3d_extras/init.lua
8
2497
minetest.override_item("default:bookshelf", { drawtype = "mesh", mesh = "3dbookshelf.obj", tiles = { "default_wood.png", "default_wood.png^3dbookshelf_inside_back.png", "3dbookshelf_books.png", }, paramtype = "light", paramtype2 = "facedir", }) if minetest.get_modpath("vessels") and minetest.registered_no...
unlicense
bokonshakh/NOVA2-BOT
plugins/stats.lua
49
3698
do local NUM_MSG_MAX = 4 local TIME_CHECK = 4 -- seconds local function user_print_name(user) if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name..' ' end if user.lastname then text = text..user.last_name end return text end -- Returns a table with `...
gpl-2.0
Chilastra-Reborn/Chilastra-source-code
bin/scripts/loot/items/wearables/ithorian/ith_skirt_s01.lua
4
1276
ith_skirt_s01 = { -- Ithorian Striped Skirt minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/tangible/wearables/ithorian/ith_skirt_s01.iff", craftingValues = {}, skillMods = {}, customizationStringNames = {"/private/index_color_1","/private/index_co...
agpl-3.0
githabbot/Quick-V2.7
plugins/Filter_word2.lua
3
4195
local function save_filter(msg, name, value) local hash = nil if msg.to.type == 'chat' then hash = 'chat:'..msg.to.id..':filters' end if msg.to.type == 'user' then return 'فقط در گروه' end if hash then redis:hset(hash, name, value) return "انجام شد" end end local function get_filter_hash(...
gpl-2.0
amirjoker/Telecloner
plugins/set_type.lua
11
2548
local function run(msg, matches, callback, extra) local data = load_data(_config.moderation.data) local group_type = data[tostring(msg.to.id)]['group_type'] if matches[1] and is_sudo(msg) then data[tostring(msg.to.id)]['group_type'] = matches[1] save_data(_config.moderation.data, data) ...
gpl-2.0
Blizzard/premake-core
tests/config/test_targetinfo.lua
4
5086
-- -- tests/config/test_targetinfo.lua -- Test the config object's build target accessor. -- Copyright (c) 2011-2013 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("config_targetinfo") local config = p.config -- -- Setup and teardown -- local wks, prj function suite.setu...
bsd-3-clause
Inquiryel/HPW_Rewrite-SBS
lua/hpwrewrite/spells/special/legimmio.lua
2
1072
local Spell = { } Spell.LearnTime = 60 Spell.ApplyFireDelay = 0.6 Spell.Category = { HpwRewrite.CategoryNames.Protecting, HpwRewrite.CategoryNames.Special } Spell.Description = [[ Blocks fall damage for a while. ]] Spell.ForceAnim = { ACT_VM_PRIMARYATTACK_3 } Spell.NodeOffset = Vector(372, -805, 0) Spell.ShouldReve...
mit
theunknownxy/opencomputers-base
uHUD/middleclass.lua
15
5301
-- middleclass.lua - v2.0 (2011-09) -- Copyright (c) 2011 Enrique García Cota -- 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,...
mit
Chilastra-Reborn/Chilastra-source-code
bin/scripts/commands/polearmLegHit2.lua
2
2446
--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. ...
agpl-3.0
Chilastra-Reborn/Chilastra-source-code
bin/scripts/commands/placeBattlefieldStructure.lua
4
2168
--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. ...
agpl-3.0
Chilastra-Reborn/Chilastra-source-code
bin/scripts/mobile/dantooine/janta_herbalist.lua
2
1070
janta_herbalist = Creature:new { objectName = "@mob/creature_names:janta_herbalist", randomNameType = NAME_GENERIC_TAG, socialGroup = "janta_tribe", faction = "janta_tribe", level = 27, chanceHit = 0.39, damageMin = 305, damageMax = 320, baseXp = 2730, baseHAM = 8200, baseHAMmax = 10000, armor = 0, resists...
agpl-3.0
ycaihua/QSanguosha
extension-doc/18-Beta.lua
15
3217
--[[ 本文档用于介绍在 beta 版中引入的更新 本文档针对的 beta 版本为 20120203(V0.7 Beta 1) 本文档假定阅读者已经有一定的编写 AI 的基础,仅作十分简略的介绍。 新的函数与表使得 AI 的可扩展性大大增强。 * sgs.ai_slash_prohibit:表,由 SmartAI.slashProhibit 载入 % 元素名称:技能名 % 元素:function(self, to, card) %% self: SmartAI %% to: ServerPlayer*,拥有元素名称所描述的技能 %% card: Card* %% 返回值:布尔值,true表明在策略上不宜对 to 使用【杀】 ca...
gpl-3.0
xztraz/domoticz
dzVents/runtime/device-adapters/temperature_humidity_device.lua
14
1051
local humidityMapping = { ['dry'] = 2, ['normal'] = 0, ['comfortable'] = 1, ['wet'] = 3 } return { baseType = 'device', name = 'Temperature+humidity device adapter', matches = function (device, adapterManager) local res = (device.deviceType == 'Temp + Humidity') if (not res) then adapterManager.addDum...
gpl-3.0
mabotech/mabo.io
py/opcda/lua/update3.lua
2
1416
-- -- key1,argv1,argv2 -- -- -- ttl : ARGV[4] local payload = redis.call("HGET", KEYS[1],"val") local heartbeat_key = string.format("%s_%s", KEYS[1], "heartbeat") redis.call("SET", heartbeat_key, "1","EX", 20) -- ARGV[4] if payload == ARGV[1] then -- redis.call("LPUSH", "c1","chan2") redis.call("HSET"...
mit
Chilastra-Reborn/Chilastra-source-code
bin/scripts/mobile/faction/rebel/rebel_resistance_anarchist.lua
2
1392
rebel_resistance_anarchist = Creature:new { objectName = "@mob/creature_names:rebel_resistance_anarchist", randomNameType = NAME_GENERIC_TAG, socialGroup = "rebel", faction = "rebel", level = 9, chanceHit = 0.27, damageMin = 80, damageMax = 90, baseXp = 292, baseHAM = 675, baseHAMmax = 825, armor = 0, resi...
agpl-3.0
kidaa/Algorithm-Implementations
Newton_Raphson/Lua/Yonaba/newtonraphson_test.lua
26
1041
-- Tests for derivative.lua local nrsolver = require 'newtonraphson' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function run(message, f) total = total + 1 local ok, err = pcall(f) if ok then pass = pass + 1 e...
mit
mangoszero/LuaScripts
lua_scripts/eastern_kingdoms/elwynn_forest/stormwind/Creature_466_GeneralMarcusJonathan.lua
1
1367
--[[ EmuDevs <http://emudevs.com/forum.php> Eluna Lua Engine <https://github.com/ElunaLuaEngine/Eluna> Eluna Scripts <https://github.com/ElunaLuaEngine/Scripts> Eluna Wiki <http://wiki.emudevs.com/doku.php?id=eluna> -= Script Information =- * Zone: Stormwind * Script Type: Creature * Cr...
gpl-2.0
LeMagnesium/minetest-minetestforfun-server
mods/mobs/wolf.lua
7
2082
-- Wolf by KrupnoPavel mobs:register_mob("mobs:wolf", { -- animal, monster, npc, barbarian type = "monster", -- agressive, does 4 damage to player when hit passive = false, attack_type = "dogfight", pathfinding = false, reach = 2, damage = 3, -- 2 damages if tamed -- health & armor hp_min = 15, hp_max =...
unlicense
szagoruyko/nn
Reshape.lua
42
1801
local Reshape, parent = torch.class('nn.Reshape', 'nn.Module') function Reshape:__init(...) parent.__init(self) local arg = {...} self.size = torch.LongStorage() self.batchsize = torch.LongStorage() if torch.type(arg[#arg]) == 'boolean' then self.batchMode = arg[#arg] table.remove(arg, #arg...
bsd-3-clause
Chilastra-Reborn/Chilastra-source-code
bin/scripts/loot/items/wearables/dress/dress_s34.lua
4
1250
dress_s34 = { -- Luxurious Gown minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/tangible/wearables/dress/dress_s34.iff", craftingValues = {}, skillMods = {}, customizationStringNames = {"/private/index_color_1","/private/index_color_2"}, custom...
agpl-3.0
NYRDS/pixel-dungeon-remix
RemixedDungeon/src/main/assets/scripts/traps/DemoTransmute.lua
1
1422
-- -- User: mike -- Date: 18.11.2017 -- Time: 23:27 -- This file is part of Remixed Pixel Dungeon. -- local RPD = require "scripts/lib/commonClasses" local trap = require"scripts/lib/trap" return trap.init( function (cell, char, data) local recipe = {} recipe["RatHide"] = false recipe["C...
gpl-3.0
xztraz/domoticz
dzVents/runtime/dzVents.lua
1
2384
local TESTMODE = false globalvariables['testmode'] = false --globalvariables['dzVents_log_level'] = 4 --debug if (_G.TESTMODE) then TESTMODE = false globalvariables['testmode'] = false end local currentPath = globalvariables['script_path'] -- should be path/to/domoticz/scripts/dzVents _G.scriptsFolderPath = curre...
gpl-3.0
Chilastra-Reborn/Chilastra-source-code
bin/scripts/commands/wookieeRoar.lua
3
2661
--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. ...
agpl-3.0
lidaohang/luajson
tests/lunit-calls.lua
4
3715
local lpeg = require("lpeg") local json = require("json") local lunit = require("lunit") local math = require("math") local testutil = require("testutil") local encode = json.encode -- DECODE NOT 'local' due to requirement for testutil to access it decode = json.decode.getDecoder(false) module("lunit-calls", lunit.te...
mit
braydondavis/Nerd-Gaming-Public
resources/[no_ng_tag]/admin/server/admin_ACL.lua
7
2730
--[[********************************** * * Multi Theft Auto - Admin Panel * * admin_ACL.lua * * Original File by lil_Toady * **************************************]] function aSetupACL () local temp_acl_nodes = {} local node = xmlLoadFile ( "conf\\ACL.xml" ) if ( node ) then --Get ACLs local acls = 0 while (...
mit
MildSpringLLC/JumpyGame
JumpyGame/menu.lua
1
3807
----------------------------------------------------------------------------------------- -- -- menu.lua -- ----------------------------------------------------------------------------------------- local storyboard = require( "storyboard" ) local scene = storyboard.newScene() -- include Corona's "widget" library loca...
apache-2.0
bokonshakh/NOVA2-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
braydondavis/Nerd-Gaming-Public
resources/NGPlayerFunctions/server/headtags.lua
2
1063
local playerTag = { } addEventHandler ( "onPlayerMute", root, function ( ) if ( isElement ( playerTag[source] ) ) then destroyElement ( playerTag[source] ) playerTag[source] = nil end playerTag[source] = exports['NGJobs']:create3DText ( "[MUTED]", { 0, 0, 0 }, { 255, 0, 0 }, source, { 5 } ) end ) addEventHa...
mit
Chilastra-Reborn/Chilastra-source-code
bin/scripts/mobile/lair/npc_theater/global_imperial_warrant_officer_camp_imperial_medium_theater.lua
2
1028
global_imperial_warrant_officer_camp_imperial_medium_theater = Lair:new { mobiles = { {"imperial_warrant_officer_i",1}, {"imperial_warrant_officer_ii",2} }, spawnLimit = 12, buildingsVeryEasy = {"object/building/poi/lok_imperial_medium4.iff","object/building/poi/lok_imperial_medium5.iff"}, buildingsEasy = {"ob...
agpl-3.0
tfagit/telegram-bot
plugins/btc.lua
289
1375
-- See https://bitcoinaverage.com/api local function getBTCX(amount,currency) local base_url = 'https://api.bitcoinaverage.com/ticker/global/' -- Do request on bitcoinaverage, the final / is critical! local res,code = https.request(base_url..currency.."/") if code ~= 200 then return nil end local data = j...
gpl-2.0
Chilastra-Reborn/Chilastra-source-code
bin/scripts/commands/saber1hHit1.lua
2
2419
--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. ...
agpl-3.0
Chilastra-Reborn/Chilastra-source-code
bin/scripts/mobile/faction/rebel/lesser_prophet_of_the_light_side.lua
2
1449
lesser_prophet_of_the_light_side = Creature:new { objectName = "@mob/creature_names:lesser_prophet_of_the_dark_side", randomNameType = NAME_GENERIC_TAG, socialGroup = "rebel", faction = "rebel", level = 85, chanceHit = 0.85, damageMin = 570, damageMax = 850, baseXp = 8130, baseHAM = 13000, baseHAMmax = 16000...
agpl-3.0
Blizzard/premake-core
modules/vstudio/vstudio.lua
1
15953
-- -- vstudio.lua -- Define the Visual Studio 200x actions. -- Copyright (c) Jason Perkins and the Premake project -- local p = premake p.modules.vstudio = p.modules.vstudio or {} p.modules.vstudio._VERSION = p._VERSION -- for backwards compatibility. p.vstudio = p.modules.vstudio local vstudio = p.vstudio l...
bsd-3-clause
excessive/obtuse-tanuki
systems/mesh_loader.lua
2
1028
local tiny = require "tiny" local iqm = require "iqm" return function(world) local ml = tiny.processingSystem() ml.filter = tiny.requireAll("needs_reload", "model") ml.world = assert(world) ml.mesh_cache = {} -- if we process things here it crashes tiny... -- function ml:onAdd(entity) end -- happens late, b...
mit
Inquiryel/HPW_Rewrite-SBS
lua/hpwrewrite/spelltree.lua
2
14835
if SERVER then return end local PANEL = { } local Scale = 0.5 local NewScale = 0.4 local BackgroundAdd = Vector(0, 0) local BackgroundDiff = BackgroundAdd local AddDiff = Vector(0, 0) local Diff = nil local glow = Material("hpwrewrite/sprites/magicsprite") local beam = Material("sprites/physbeama") local backgroun...
mit
Chilastra-Reborn/Chilastra-source-code
bin/scripts/mobile/dungeon/corellian_corvette/rebel/novatrooper_captain.lua
2
1513
novatrooper_captain = Creature:new { objectName = "@mob/creature_names:stormtrooper_novatrooper_captain", randomNameType = NAME_STORMTROOPER_TAG, socialGroup = "imperial", faction = "imperial", level = 142, chanceHit = 7, damageMin = 845, damageMax = 1400, baseXp = 13462, baseHAM = 68000, baseHAMmax = 83000,...
agpl-3.0
Alireza5928/abedzadeh
TeleDiamond/libs/fakeredis.lua
650
40405
local unpack = table.unpack or unpack --- Bit operations local ok,bit if _VERSION == "Lua 5.3" then bit = (load [[ return { band = function(x, y) return x & y end, bor = function(x, y) return x | y end, bxor = function(x, y) return x ~ y end, bnot = function(x) return ~x end, rshift = function(x...
agpl-3.0
alinofel/zooz11
libs/fakeredis.lua
650
40405
local unpack = table.unpack or unpack --- Bit operations local ok,bit if _VERSION == "Lua 5.3" then bit = (load [[ return { band = function(x, y) return x & y end, bor = function(x, y) return x | y end, bxor = function(x, y) return x ~ y end, bnot = function(x) return ~x end, rshift = function(x...
gpl-2.0
Chilastra-Reborn/Chilastra-source-code
bin/scripts/commands/fullAutoSingle1.lua
2
2905
--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. ...
agpl-3.0
lolleko/guesswho
gamemodes/guesswho/gamemode/lang/en.lua
1
1386
local en = { --Language label language_name = "English", --Round states round_pre_game = "Preparing Game", round_waiting_players = "Waiting for Players", round_creating = "Creating NPCs", round_hide = "Hide", round_seek = "Seek", round_post = "Next round soon", round_nav_gen = "...
mit
amirhoseinkarimi2233/uzzbot
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
Chilastra-Reborn/Chilastra-source-code
bin/scripts/mobile/lair/npc_theater/rori_spice_collective_miner_base_neutral_large_theater.lua
2
1070
rori_spice_collective_miner_base_neutral_large_theater = Lair:new { mobiles = {{"spice_collective_workchief",1},{"spice_collective_miner",1},{"spice_collective_foreman",1},{"spice_collective_sentry",1}}, spawnLimit = 15, buildingsVeryEasy = {"object/building/poi/naboo_gungtrad_large1.iff","object/building/poi/naboo_...
agpl-3.0
helling34/skynet
test/testmongodb.lua
62
2661
local skynet = require "skynet" local mongo = require "mongo" local bson = require "bson" local host, db_name = ... function test_insert_without_index() local db = mongo.client({host = host}) db[db_name].testdb:dropIndex("*") db[db_name].testdb:drop() local ret = db[db_name].testdb:safe_insert({test_key = 1}); ...
mit
szagoruyko/nn
SpatialAveragePooling.lua
37
1063
local SpatialAveragePooling, parent = torch.class('nn.SpatialAveragePooling', 'nn.Module') function SpatialAveragePooling:__init(kW, kH, dW, dH) parent.__init(self) self.kW = kW self.kH = kH self.dW = dW or 1 self.dH = dH or 1 self.divide = true end function SpatialAveragePooling:updateOutput(input...
bsd-3-clause
kidaa/Algorithm-Implementations
Bubble_Sort/Lua/Yonaba/bubble_sort_test.lua
27
2172
-- Tests for bubble_sort.lua local bubble_sort = require 'bubble_sort' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function run(message, f) total = total + 1 local ok, err = pcall(f) if ok then pass = pass + 1 end l...
mit