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 |
|---|---|---|---|---|---|
hooram/ownphotos-backend | densecap/densecap/modules/BoxSamplerHelper.lua | 4 | 6567 | require 'densecap.modules.BoxSampler'
local helper, parent = torch.class('nn.BoxSamplerHelper', 'nn.Module')
function helper:__init(options)
parent.__init(self)
if options and options.box_sampler then
-- Optional dependency injection for testing
self.box_sampler = options.box_sampler
else
self.box_... | mit |
TeddyEngel/Loogine | testing/test.lua | 1 | 4866 | -----------------------------------------------------------------------------------------
--
-- test.lua
--
-----------------------------------------------------------------------------------------
-- Author: Teddy Engel <engel.teddy[at]gmail.com> / @Teddy_Engel
-- Copyright (c) 2013-2014 Teddy Engel ... | mit |
AlexandreCA/darkstar | scripts/globals/spells/dia.lua | 27 | 2184 | -----------------------------------------
-- Spell: Dia
-- Lowers an enemy's defense and gradually deals light elemental damage.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------... | gpl-3.0 |
paly2/minetest-minetestforfun-server | mods/more_chests/wifi.lua | 1 | 1701 | minetest.register_node("more_chests:wifi", {
description = "Wifi Chest",
tiles = {"wifi_top.png", "wifi_top.png", "wifi_side.png",
"wifi_side.png", "wifi_side.png",
{name="wifi_front_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.0}}
},
paramtype2 = "facedir",
groups = {snapp... | unlicense |
AlexandreCA/darkstar | scripts/globals/mobskills/glittering_ruby.lua | 27 | 1144 | ---------------------------------------------------
-- Glittering Ruby
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
function onMobSkillCheck(ta... | gpl-3.0 |
AlexandreCA/update | scripts/globals/items/bunch_of_pamamas.lua | 36 | 2212 | -----------------------------------------
-- ID: 4468
-- Item: Bunch of Pamamas
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength -3
-- Intelligence 1
-- Additional Effect with Opo-Opo Crown
-- HP 50
-- MP 50
-- CHR 14
-- Additional Effect with Kinkobo or
-- Primate Staff
-- DELAY ... | gpl-3.0 |
Maxsteam/MEGASATAN | plugins/setphotobot.lua | 1 | 1161 | ocal function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(receiver, 'P... | gpl-2.0 |
AlexandreCA/darkstar | scripts/zones/Wajaom_Woodlands/npcs/Harvesting_Point.lua | 13 | 1138 | -----------------------------------
-- Area: Wajaom Woodlands
-- NPC: Harvesting Point
-----------------------------------
package.loaded["scripts/zones/Wajaom_Woodlands/TextIDs"] = nil;
package.loaded["scripts/globals/harvesting"] = nil;
-------------------------------------
require("scripts/globals/harvesting");
... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Rabao/npcs/HomePoint#1.lua | 27 | 1250 | -----------------------------------
-- Area: Rabao
-- NPC: HomePoint#1
-- @pos -29.276 0.001 -76.585 247
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Rabao/TextIDs");
require("scripts/globals/homepoint");
-------... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Wajaom_Woodlands/mobs/Zoraal_Ja_s_Pkuucha.lua | 4 | 1536 | -----------------------------------
-- Area: Wajaom Woodlands
-- Mob: Zoraal Ja's Pkuucha
-----------------------------------
require("scripts/zones/Wajaom_Woodlands/MobIDs");
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
mob:setLocalVar("P... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Bastok_Markets/npcs/Porter_Moogle.lua | 41 | 1536 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- @zone 235
-- @pos TODO
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Markets/Tex... | gpl-3.0 |
jstewart-amd/premake-core | src/_premake_init.lua | 2 | 26026 | --
-- _premake_init.lua
--
-- Prepares the runtime environment for the add-ons and user project scripts.
--
-- Copyright (c) 2012-2015 Jason Perkins and the Premake project
--
local p = premake
local api = p.api
local DOC_URL = "See https://github.com/premake/premake-core/wiki/"
---------------------------------... | bsd-3-clause |
AlexandreCA/darkstar | scripts/zones/Southern_San_dOria/npcs/HomePoint#1.lua | 27 | 1288 | -----------------------------------
-- Area: Southern San dOria
-- NPC: HomePoint#1
-- @pos -85.468 1.000 -66.454 230
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Southern_San_dOria/TextIDs");
require... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Bhaflau_Thickets/Zone.lua | 30 | 3596 | -----------------------------------
--
-- Zone: Bhaflau_Thickets (52)
--
-----------------------------------
package.loaded["scripts/zones/Bhaflau_Thickets/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Achtelle1.lua | 38 | 1029 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Achtelle
-- @zone 80
-- @pos 108 2 -11
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Outer_RaKaznar/npcs/Liseran_Door_Exit.lua | 17 | 1227 | -----------------------------------
-- Area: Outer Ra'Kaznar
-- NPC: Liseran Door Exit
-- Zones out to Kamihr Drifts (zone 267)
-- @zone 274
-- @pos -34.549 -181.334 -20.031
-----------------------------------
package.loaded["scripts/zones/Outer_RaKaznar/TextIDs"] = nil;
-----------------------------------
r... | gpl-3.0 |
smikail/yvigeo | plugins/admin.lua | 230 | 6382 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(rec... | gpl-2.0 |
AlexandreCA/update | scripts/commands/takexp.lua | 26 | 1232 | ---------------------------------------------------------------------------------------------------
-- func: @takexp <amount> <player>
-- desc: Removes experience points from the target player.
---------------------------------------------------------------------------------------------------
cmdprops =
{
p... | gpl-3.0 |
martolini/Vana | scripts/utils/miscHelper.lua | 1 | 1221 | --[[
Copyright (C) 2008-2015 Vana Development 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; version 2
of the License.
This program is distributed in the hope that it will be useful,
but WITHO... | gpl-2.0 |
AlexandreCA/update | scripts/zones/Phomiuna_Aqueducts/npcs/Wooden_Ladder.lua | 17 | 3196 | -----------------------------------
-- Area: Phomiuna Aqueducts
-- NPC: Wooden Ladder
-- @pos 101.9 -1.5 -101.9
-- @pos 101.948 -1.5 -18.016
-- @pos -61.888 -1.5 -18.079
-- @pos -218.109 -1.499 18.081
-- @pos -61.903 -1.5 138.099
-- @pos 21.901 -1.5 138.096
-- @pos 101.902 -1.5 181.902
-- @pos -159.32 -2.5 ... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Maze_of_Shakhrami/npcs/Rockwell.lua | 13 | 2270 | -----------------------------------
-- Area: Maze of Shakhrami
-- Quest: Your Crystal Ball
-- @pos -18 -13 181 198
-----------------------------------
package.loaded["scripts/zones/Maze_of_Shakhrami/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/title... | gpl-3.0 |
samboy/Oblige | games/quake/pickups.lua | 1 | 2401 | ------------------------------------------------------------------------
-- QUAKE PICKUPS
------------------------------------------------------------------------
--
-- Copyright (C) 2006-2012 Andrew Apted
-- Copyright (C) 2011 Chris Pisarczyk
--
-- This program is free software; you can redistribute it and/or... | gpl-2.0 |
AlexandreCA/darkstar | scripts/globals/items/serving_of_herb_crawler_eggs.lua | 18 | 1526 | -----------------------------------------
-- ID: 4552
-- Item: serving_of_herb_crawler_eggs
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health % 6
-- Health Cap 80
-- Magic 10
-- Agility 3
-- Vitality -1
-- Evasion 8
-----------------------------------------
require("scripts/globals/... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Quicksand_Caves/mobs/Triarius_IV-XIV.lua | 16 | 1503 | -----------------------------------
-- Area: Quicksand Caves
-- MOB: Tribunus_IV-XIV
-- Pops in Bastok mission 8-1 "The Chains that Bind Us"
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Quicksand_Caves/TextIDs");
-----------------------------------
-- on... | gpl-3.0 |
mobinantispam/test-bot | plugins/meme.lua | 637 | 5791 | local helpers = require "OAuth.helpers"
local _file_memes = './data/memes.lua'
local _cache = {}
local function post_petition(url, arguments)
local response_body = {}
local request_constructor = {
url = url,
method = "POST",
sink = ltn12.sink.table(response_body),
headers = {},
red... | gpl-2.0 |
testprmagma/ultra-bot | plugins/meme.lua | 637 | 5791 | local helpers = require "OAuth.helpers"
local _file_memes = './data/memes.lua'
local _cache = {}
local function post_petition(url, arguments)
local response_body = {}
local request_constructor = {
url = url,
method = "POST",
sink = ltn12.sink.table(response_body),
headers = {},
red... | gpl-2.0 |
AlexandreCA/darkstar | scripts/zones/Promyvion-Holla/Zone.lua | 13 | 8017 | -----------------------------------
--
-- Zone: Promyvion-Holla (16)
--
-----------------------------------
package.loaded["scripts/zones/Promyvion-Holla/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/missions");
req... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Bastok_Mines/npcs/Neigepance.lua | 16 | 1571 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Neigepance
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scripts/zones/Bastok_Mines/TextIDs");
-----------------------------------
-- o... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Al_Zahbi/npcs/Gajaad.lua | 18 | 2556 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Gajaad
-- Type: Donation Taker
-- @pos 40.781 -1.398 116.261 48
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
AlexandreCA/update | scripts/globals/items/slice_of_lynx_meat.lua | 18 | 1293 | -----------------------------------------
-- ID: 5667
-- Item: Slice of Lynx Meat
-- Food Effect: 5 Min, Galka only
-----------------------------------------
-- Strength 5
-- Intelligence -7
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIte... | gpl-3.0 |
yasharsa/yashartg | plugins/search_youtube.lua | 674 | 1270 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
paly2/minetest-minetestforfun-server | mods/3d_armor/3d_armor/init.lua | 1 | 7992 | ARMOR_MOD_NAME = minetest.get_current_modname()
dofile(minetest.get_modpath(ARMOR_MOD_NAME).."/armor.lua")
dofile(minetest.get_modpath(ARMOR_MOD_NAME).."/admin.lua")
if ARMOR_MATERIALS.wood then
minetest.register_tool("3d_armor:helmet_wood", {
description = "Wood Helmet",
inventory_image = "3d_armor_inv_helmet_wo... | unlicense |
AlexandreCA/update | scripts/zones/Sacrarium/Zone.lua | 28 | 3727 | -----------------------------------
--
-- Zone: Sacrarium (28)
--
-----------------------------------
package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/settings");
require("scripts/zones/Sacrarium/TextIDs")... | gpl-3.0 |
AlexandreCA/update | scripts/globals/weaponskills/tachi_yukikaze.lua | 30 | 1722 | -----------------------------------
-- Tachi Yukikaze
-- Great Katana weapon skill
-- Skill Level: 200 (Samurai only.)
-- Blinds target. Damage varies with TP.
-- Blind effect duration is 60 seconds when unresisted.
-- Will stack with Sneak Attack.
-- Tachi: Yukikaze appears to have an attack bonus of 50%. http:... | gpl-3.0 |
Phrozyn/MozDef | examples/heka-lua-suricata/eve-json.lua | 12 | 6138 | local cjson = require "cjson"
-- example of the input JSON from Suricata
-- local dt = require "date_time"
-- {
-- "timestamp": "2009-11-24T21:27:09.534255",
-- "event_type": "alert",
-- "src_ip": "192.168.2.7",
-- "src_port": 1041,
-- "dest_ip": "x.x.250.50",
-- "dest_port": 80,
-- "proto": "TCP"... | mpl-2.0 |
AlexandreCA/darkstar | scripts/zones/Ordelles_Caves/npcs/Ruillont.lua | 13 | 2298 | -----------------------------------
-- Area: Ordelles Caves
-- NPC: Ruillont
-- Involved in Mission: The Rescue Drill
-- @pos -70 1 607 193
-----------------------------------
package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require... | gpl-3.0 |
mcclure/old-Polycode | Bindings/Contents/LUA/API/Polycode/Bone.lua | 1 | 6265 | require "Polycode/SceneEntity"
class "Bone" (SceneEntity)
function Bone:__index__(name)
if name == "parentBoneId" then
return Polycore.Bone_get_parentBoneId(self.__ptr)
elseif name == "boneMatrix" then
retVal = Polycore.Bone_get_boneMatrix(self.__ptr)
if Polycore.__ptr_lookup[retVal] ~= nil then
return P... | mit |
chourobin/kong | kong/plugins/filelog/log.lua | 5 | 1191 | -- Copyright (C) Mashape, Inc.
local ffi = require "ffi"
local cjson = require "cjson"
local fd_util = require "kong.plugins.filelog.fd_util"
local basic_serializer = require "kong.plugins.log_serializers.basic"
ffi.cdef[[
typedef struct {
char *fpos;
void *base;
unsigned short handle;
short flags;
short un... | mit |
AlexandreCA/update | scripts/zones/Bhaflau_Thickets/npcs/qm1.lua | 30 | 1349 | -----------------------------------
-- Area: Bhaflau Thickets
-- NPC: ??? (Spawn Lividroot Amooshah(ZNM T2))
-- @pos 334 -10 184 52
-----------------------------------
package.loaded["scripts/zones/Bhaflau_Thickets/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bhaflau_Thickets/TextIDs");
... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Temenos/bcnms/Temenos_Northern_Tower.lua | 35 | 1173 | -----------------------------------
-- Area: Temenos
-- Name:
-----------------------------------
require("scripts/globals/limbus");
require("scripts/globals/keyitems");
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[Temenos_N_Tower]UniqueID",G... | gpl-3.0 |
zhoukk/skynet | lualib/skynet/debug.lua | 3 | 1689 | local table = table
return function (skynet, export)
local internal_info_func
function skynet.info_func(func)
internal_info_func = func
end
local dbgcmd
local function init_dbgcmd()
dbgcmd = {}
function dbgcmd.MEM()
local kb, bytes = collectgarbage "count"
skynet.ret(skynet.pack(kb,bytes))
end
function dbgcmd... | mit |
samboy/Oblige | games/quake/materials.lua | 1 | 17711 | ------------------------------------------------------------------------
-- QUAKE MATERIALS
------------------------------------------------------------------------
--
-- Copyright (C) 2006-2012 Andrew Apted
-- Copyright (C) 2011 Chris Pisarczyk
--
-- This program is free software; you can redistribute it and/... | gpl-2.0 |
ztesbot/ztesrobot | plugins/owners.lua | 284 | 12473 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
AlexandreCA/darkstar | scripts/globals/abilities/chaos_roll.lua | 2 | 4461 | -----------------------------------
-- Ability: Chaos Roll
-- Enhances attack for party members within area of effect
-- Optimal Job: Dark Knight
-- Lucky Number: 4
-- Unlucky Number: 8
-- Level: 14
--
-- Die Roll |No DRK |With DRK
-- -------- -------- -----------
-- 1 |6% |16%
-- 2 |8... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/_ir7.lua | 12 | 1871 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: _ir7 (Iron Gate)
-- @pos -70.800 -1.500 60.000 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zone... | gpl-3.0 |
AlexandreCA/update | scripts/globals/items/bowl_of_riverfin_soup.lua | 36 | 1822 | -----------------------------------------
-- ID: 6069
-- Item: Bowl of Riverfin Soup
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- Accuracy % 14 Cap 90
-- Ranged Accuracy % 14 Cap 90
-- Attack % 18 Cap 80
-- Ranged Attack % 18 Cap 80
-- Amorph Killer 5
-----------------------------------... | gpl-3.0 |
niedzielski/premake-4.4-beta4 | src/actions/vstudio/vs2003_solution.lua | 16 | 1905 | --
-- vs2003_solution.lua
-- Generate a Visual Studio 2003 solution.
-- Copyright (c) 2009-2011 Jason Perkins and the Premake project
--
premake.vstudio.sln2003 = { }
local vstudio = premake.vstudio
local sln2003 = premake.vstudio.sln2003
function sln2003.generate(sln)
io.eol = '\r\n'
-- Precompute Visual S... | bsd-3-clause |
gaodayihao/XBurner | Libs/DiesalMenu-1.0/Objects/Menu.lua | 6 | 4909 | -- $Id: Menu.lua 53 2016-07-12 21:56:30Z diesal2010 $
local DiesalMenu = LibStub('DiesalMenu-1.0')
-- ~~| Libraries |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
local DiesalGUI = LibStub('DiesalGUI-1.0')
local DiesalTools = LibStub... | mit |
bmharper/tundra | scripts/tundra/test/t_path.lua | 28 | 2760 | module(..., package.seeall)
local path = require "tundra.path"
local native = require "tundra.native"
local function check_path(t, p, expected)
p = p:gsub('\\', '/')
t:check_equal(p, expected)
end
unit_test('path.normalize', function (t)
check_path(t, path.normalize("foo"), "foo")
check_path(t, path.normaliz... | mit |
AlexandreCA/darkstar | scripts/zones/Northern_San_dOria/npcs/Excenmille.lua | 13 | 1072 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Excenmille
-- Type: Ballista Pursuivant
-- @zone: 231
-- @pos -229.344 6.999 22.976
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"]... | gpl-3.0 |
niedzielski/premake-4.4-beta4 | src/actions/example/example_project.lua | 71 | 2633 | -- An example project generator; see _example.lua for action description
--
-- The project generation function, attached to the action in _example.lua.
-- By now, premake.generate() has created the project file using the name
-- provided in _example.lua, and redirected input to this new file.
--
function premake.ex... | bsd-3-clause |
AlexandreCA/darkstar | scripts/zones/The_Garden_of_RuHmet/npcs/qm1.lua | 15 | 2233 | -----------------------------------
-- Area: The_Garden_of_RuHmet
-- NPC: ??? (Jailer of Fortitude Spawn)
-- Allows players to spawn the Jailer of Fortitude by trading 12 Ghrah M Chips to a ???.
-- @pos random ,-420 0 755, -43,0.00,460, -260,0.00,44.821, -580,0.00,43, -796,0.00,460
-----------------------------------
... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Lower_Delkfutts_Tower/npcs/_545.lua | 17 | 1599 | -----------------------------------
-- Area: Lower Delkfutt's Tower
-- NPC: Cermet Door
-- Notes: Involved in Missions: THREE_PATHS
-----------------------------------
package.loaded["scripts/zones/Lower_Delkfutts_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems")... | gpl-3.0 |
martolini/Vana | scripts/npcs/sell_ticket.lua | 1 | 9617 | --[[
Copyright (C) 2008-2015 Vana Development 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; version 2
of the License.
This program is distributed in the hope that it will be useful,
but WITHO... | gpl-2.0 |
AlexandreCA/darkstar | scripts/zones/Yhoator_Jungle/npcs/Etaj-Pohtaj_WW.lua | 13 | 3327 | -----------------------------------
-- Area: Yhoator Jungle
-- NPC: Etaj-Pohtaj, W.W.
-- Outpost Conquest Guards
-- @pos 200.254 -1 -80.324 124
-----------------------------------
package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
req... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Mhaura/npcs/Celestina.lua | 17 | 2605 | -----------------------------------
-- Area: Mhaura
-- NPC: Celestina
-- Finish Quest: The Sand Charm
-- Involved in Quest: Riding on the Clouds
-- Guild Merchant NPC: Goldsmithing Guild
-- @pos -37.624 -16.050 75.681 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Southern_San_dOria/npcs/Ceraule.lua | 13 | 1460 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Ceraule
-- General Info NPC
-- @zone 230
-- @pos -86 2 -35
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings... | gpl-3.0 |
erfan7/bot1000 | plugins/kickme.lua | 6 | 1180 | local function run(msg, matches)
if matches[1] == 'kickme' then
local hash = 'kick:'..msg.to.id..':'..msg.from.id
redis:set(hash, "waite")
return '🔖کاربر عزیز ('..msg.from.username..')\nشما درخواست اخراج خود از گروه را ارسال کردید\nاگر با این درخواست موافقت دارید عبارت yes را ارسال کنید'
end
if ms... | agpl-3.0 |
testprmagma/ultra-bot | plugins/get.lua | 613 | 1067 | local function get_variables_hash(msg)
if msg.to.type == 'chat' then
return 'chat:'..msg.to.id..':variables'
end
if msg.to.type == 'user' then
return 'user:'..msg.from.id..':variables'
end
end
local function list_variables(msg)
local hash = get_variables_hash(msg)
if hash then
local names =... | gpl-2.0 |
AlexandreCA/darkstar | scripts/zones/Castle_Zvahl_Baileys/TextIDs.lua | 22 | 1092 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6538; -- You cannot obtain the item <item>. come back after sorting your inventory.
ITEM_OBTAINED = 6543; -- Obtained: <item>.
GIL_OBTAINED = 6544; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6546; -- Obtained... | gpl-3.0 |
paly2/minetest-minetestforfun-server | mods/unified_inventory/callbacks.lua | 1 | 5996 | local function default_refill(stack)
stack:set_count(stack:get_stack_max())
local itemdef = minetest.registered_items[stack:get_name()]
if itemdef and (itemdef.wear_represents or "mechanical_wear") == "mechanical_wear" and stack:get_wear() ~= 0 then
stack:set_wear(0)
end
return stack
end
minetest.register_on_jo... | unlicense |
rigeirani/smp | plugins/sp.lua | 42 | 75166 | local function run(msg)
if msg.text == "[!/]spam" then
return "".. [[
... | gpl-2.0 |
AlexandreCA/darkstar | scripts/globals/mobskills/Mijin_Gakure.lua | 32 | 1342 | ---------------------------------------------------
-- Mijin Gakure
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
function onMobSkillCheck(targe... | gpl-3.0 |
H4mlet/hidden_doors | intllib.lua | 53 | 1122 |
-- Fallback functions for when `intllib` is not installed.
-- Code released under Unlicense <http://unlicense.org>.
-- Get the latest version of this file at:
-- https://raw.githubusercontent.com/minetest-mods/intllib/master/lib/intllib.lua
local function format(str, ...)
local args = { ... }
local function repl... | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/items/serving_of_bavarois.lua | 18 | 1192 | -----------------------------------------
-- ID: 5729
-- Item: serving_of_bavarois
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- HP 20
-- Intelligence 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Monastic_Cavern/Zone.lua | 17 | 1771 | -----------------------------------
--
-- Zone: Monastic_Cavern (150)
--
-----------------------------------
package.loaded["scripts/zones/Monastic_Cavern/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Monastic_Cavern/TextIDs");
-----------------------... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Northern_San_dOria/npcs/Chaupire.lua | 17 | 1260 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Chaupire
-- Guild Merchant NPC: Woodworking Guild
-- @pos -174.476 3.999 281.854 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
AlexandreCA/update | scripts/globals/spells/bluemagic/maelstrom.lua | 18 | 1850 | -----------------------------------------
-- Spell: Maelstrom
-- Deals water damage to enemies within range. Additional effect: STR Down
-- Spell cost: 162 MP
-- Monster Type: Aquans
-- Spell Type: Magical (Water)
-- Blue Magic Points: 5
-- Stat Bonus: Mind +2
-- Level: 61
-- Casting Time: 6 seconds
-- Recast... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Valkurm_Dunes/npcs/qm3.lua | 17 | 1900 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: qm3 (???)
-- Involved In Quest: Yomi Okuri
-- @pos -767 -4 192 103
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
requ... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Beaucedine_Glacier/npcs/relic.lua | 13 | 1862 | -----------------------------------
-- Area: Beaucedine Glacier
-- NPC: <this space intentionally left blank>
-- @pos -89 0 -374 111
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Beaucedine_Glacier/TextI... | gpl-3.0 |
jessevanherk/irogamelib | systemmanager.lua | 1 | 1904 | --------------------------------
-- System Manager , takes care of all creation/update of systems
-- entities and components are JUST DATA - think of this like a DB Model,
-- returning resultsets, NOT objects. Performance matters, so don't split
-- things into sub classes.
-- should NOT know about rendering engine or s... | mit |
Whit3Tig3R/Alfred | plugins/admin.lua | 60 | 6680 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(rec... | gpl-2.0 |
Phrozyn/MozDef | examples/heka-lua-bro/bro_x509.lua | 2 | 3090 | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
-- Copyright (c) 2014 Mozilla Corporation
local l=require "lpeg"
local string=require "string"
l.locale(l) --add loca... | mpl-2.0 |
AlexandreCA/darkstar | scripts/globals/spells/dia_ii.lua | 26 | 2226 | -----------------------------------------
-- Spell: Dia II
-- Lowers an enemy's defense and gradually deals light elemental damage.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
--------------------------------------... | gpl-3.0 |
jstewart-amd/premake-core | src/actions/make/make_csharp.lua | 7 | 7768 | --
-- make_csharp.lua
-- Generate a C# project makefile.
-- Copyright (c) 2002-2013 Jason Perkins and the Premake project
--
premake.make.cs = {}
local make = premake.make
local cs = premake.make.cs
local project = premake.project
local config = premake.config
local fileconfig = premake.fileconfig
--
-- Add na... | bsd-3-clause |
jstewart-amd/premake-core | tests/actions/make/cs/test_embed_files.lua | 16 | 1307 | --
-- tests/actions/make/cs/test_embed_files.lua
-- Tests embedded file listings for C# Makefiles.
-- Copyright (c) 2013-2014 Jason Perkins and the Premake project
--
local suite = test.declare("make_cs_embed_files")
local make = premake.make
local cs = premake.make.cs
local project = premake.project
--
-- Setup... | bsd-3-clause |
samboy/Oblige | attic/old_fabs.lua | 1 | 17049 | Start_ledge =
{
_prefab = "START_LEDGE"
_where = "edge"
_long = 192
_deep = 64
wall = "CRACKLE2"
}
Exit_switch =
{
_prefab = "WALL_SWITCH"
_where = "edge"
_long = 192
_deep = 64
wall = "EXITSTON"
switch="SW1HOT"
special=11
x_offset=0
y_offset=0
}
Exit_Pillar_tech =
{
_prefa... | gpl-2.0 |
AlexandreCA/darkstar | scripts/zones/Bastok_Mines/npcs/Arva.lua | 13 | 1290 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Arva
-- Adventurer's Assistant
-- Working 100%
-------------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scripts/zones/Bastok_Mines/TextIDs");
-----------... | gpl-3.0 |
LSBOSS/bgfx | scripts/shaderc.lua | 11 | 2974 | --
-- Copyright 2010-2015 Branimir Karadzic. All rights reserved.
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
project "shaderc"
uuid "f3cd2e90-52a4-11e1-b86c-0800200c9a66"
kind "ConsoleApp"
local GLSL_OPTIMIZER = path.join(BGFX_DIR, "3rdparty/glsl-optimizer")
local FCPP_DIR = path.join(BGFX_DIR... | bsd-2-clause |
nwf/openwrt-luci | applications/luci-app-ltqtapi/luasrc/controller/ltqtapi.lua | 73 | 1071 | -- Copyright 2019 John Crispin <blogic@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.ltqtapi", package.seeall)
function index()
if not nixio.fs.access("/etc/config/telephony") then
return
end
page = node("admin", "telephony")
page.target = firstchild()
page.title... | apache-2.0 |
lucgagnon/ntopng | scripts/lua/examples/interface.lua | 11 | 11177 | --
-- (C) 2013 - ntop.org
--
-- Ntop lua class example
-- Set package.path information to be able to require lua module
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
function printTable(table,key)
-- traceError(TRACE_DEBUG,TRACE_CONSOLE, "Extern\n")
if ... | gpl-3.0 |
AlexandreCA/update | scripts/globals/items/pot_of_royal_tea.lua | 35 | 1204 | -----------------------------------------
-- ID: 4524
-- Item: pot_of_royal_tea
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Vitality -1
-- Charisma 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
--... | gpl-3.0 |
boundary/luvit | lib/luvit/mime.lua | 3 | 5900 | --[[
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 agr... | apache-2.0 |
AlexandreCA/update | scripts/zones/Metalworks/npcs/Hugues.lua | 24 | 1864 | -----------------------------------
-- Area: Metalworks
-- NPC: Hugues
-- Type: Smithing Synthesis Image Support
-- @pos -106.336 2.000 26.117 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status"... | gpl-3.0 |
elfinlazz/melia | system/scripts/npc/field/f_siauliai_2.lua | 1 | 17131 | addnpc(45132, "QUEST_LV_0200_20150317_000504", "f_siauliai_2", -1110, 130, 26, -45, "npc_dummy")
addnpc(45132, "QUEST_LV_0200_20150317_000504", "f_siauliai_2", -825, 130, 63, -45, "npc_dummy")
addnpc(45132, "QUEST_LV_0200_20150317_000504", "f_siauliai_2", -873, 130, 284, -45, "npc_dummy")
addnpc(45132, "QUEST_LV_0200_2... | gpl-3.0 |
AlexandreCA/update | scripts/globals/mobskills/Deadeye.lua | 17 | 1223 | ---------------------------------------------
-- Deadeye
-- Family: Qiqurn
-- Description: Lowers the defense and magical defense of enemies within range.
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Unknown
-- Notes: Used only by certain Notorious Monsters. Strong effect.
-------... | gpl-3.0 |
TalDahan3/Text_Unifier | VanillaRNN.lua | 14 | 5754 | require 'torch'
require 'nn'
local layer, parent = torch.class('nn.VanillaRNN', 'nn.Module')
--[[
Vanilla RNN with tanh nonlinearity that operates on entire sequences of data.
The RNN has an input dim of D, a hidden dim of H, operates over sequences of
length T and minibatches of size N.
On the forward pass we acc... | mit |
AlexandreCA/update | scripts/globals/mobskills/Sand_Blast.lua | 25 | 1241 | ---------------------------------------------------
-- Sand Blast
-- Deals Earth damage to targets in a fan-shaped area of effect. Additional effect: Blind
-- Range: 8' cone
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scri... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Nashmau/npcs/Yohj_Dukonlhy.lua | 24 | 1449 | -----------------------------------
-- Area: Nashmau
-- NPC: Yohj Dukonlhy
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
-----------------------------------
-- onT... | gpl-3.0 |
incinirate/Riko4 | scripts/home/sim/solo/explode.lua | 1 | 1604 | local running = true
local sw, sh = gpu.width, gpu.height
local class = require("class")
local Particle = class(nil, "part")
function Particle:__init(x, y)
self.x = x
self.y = y
self.life = math.random(30, 40)
local ang = math.pi * math.random(0, 1000) / 500
local mag = 2 * math.random(0, 1000) / 1000
... | mit |
KingRaptor/Zero-K-Infrastructure | PlanetWars.old/Mods/BA66PW.sdd/LuaUI/Widgets/gui_xp.lua | 9 | 7224 | -- $Id: gui_xp.lua 3395 2008-12-09 16:28:55Z lurker $
-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Rank Icons",
desc = "Sh... | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/items/coeurl_sub.lua | 18 | 1832 | -----------------------------------------
-- ID: 5166
-- Item: coeurl_sub
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Magic 10
-- Strength 5
-- Agility 1
-- Intelligence -2
-- Health Regen While Healing 1
-- Attack % 20
-- Attack Cap 75
-- Ranged ATT % 20
-- Ranged ATT Cap 75
---------... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Lower_Jeuno/npcs/Caruvinda.lua | 37 | 4526 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Caruvinda
-- Armor Storage NPC
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
package.loaded["scripts/globals/armorstorage"] = nil;
-----------------------------------
require("scripts/globals/sett... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Garlaige_Citadel/npcs/qm19.lua | 57 | 2137 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: qm19 (??? - Bomb Coal Fragments)
-- Involved in Quest: In Defiant Challenge
-- @pos -50.175 6.264 251.669 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
re... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Al_Zahbi/npcs/Gidappa.lua | 53 | 2317 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Gidappa
-- Type: Clothcraft Normal/Adv. Image Support
-- @pos 70.228 -7 -54.089 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("s... | gpl-3.0 |
elfinlazz/melia | system/scripts/npc/dungeon/d_thorn_39_2.lua | 1 | 1633 | addnpc(147405, "QUEST_LV_0200_20150714_007052", "d_thorn_39_2", 14.35386, -78.29043, 864.4207, -52, "npc_dummy")
addnpc(155043, "QUEST_LV_0200_20150714_007063", "d_thorn_39_2", -1331.267, -119.5394, 259.0499, 28, "npc_dummy")
addnpc(155044, "QUEST_LV_0200_20150714_007070", "d_thorn_39_2", -1369.406, -119.5394, 461.5731... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Sealions_Den/npcs/Sueleen.lua | 13 | 2010 | -----------------------------------
-- Area: Sealion's Den
-- NPC: Sueleen
-- @pos 612 132 774 32
-----------------------------------
package.loaded["scripts/zones/Sealions_Den/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Sealions_Den/TextIDs");
requ... | gpl-3.0 |
boundary/luvit | lib/luvit/zlib.lua | 3 | 1238 | --[[
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 agr... | apache-2.0 |
martolini/Vana | scripts/npcs/archer4.lua | 1 | 4029 | --[[
Copyright (C) 2008-2015 Vana Development 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; version 2
of the License.
This program is distributed in the hope that it will be useful,
but WITHO... | gpl-2.0 |
AlexandreCA/darkstar | scripts/zones/Sacrarium/Zone.lua | 19 | 3611 | -----------------------------------
--
-- Zone: Sacrarium (28)
--
-----------------------------------
package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/settings");
require("scripts/zones/Sacrarium/TextIDs");
-------... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.