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 |
|---|---|---|---|---|---|
yrmvgh/Great-Repository-Name | Colors.lua | 1 | 129548 | #########################
# Aliases and Variables #
#########################
# Set Alias
menu := menu_colour
# Clear defaults
menu =
# Variables (Worst to Best)
$evil := red
$negative := brown
$danger := lightred
$warning := yellow
$boring := darkgrey
$decent := lightyellow
$good := lightblue
$positive := green
$ver... | gpl-2.0 |
AlexandreCA/update | scripts/zones/Northern_San_dOria/npcs/Castilchat.lua | 17 | 3336 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Castilchat
-- Starts Quest: Trial Size Trial by Ice
-- @pos -186 0 107 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/global... | gpl-3.0 |
niedzielski/premake-4.4-beta4 | src/base/option.lua | 11 | 2145 | --
-- option.lua
-- Work with the list of registered options.
-- Copyright (c) 2002-2009 Jason Perkins and the Premake project
--
premake.option = { }
--
-- The list of registered options.
--
premake.option.list = { }
--
-- Register a new option.
--
-- @param opt
-- The new option object.
--
function pre... | bsd-3-clause |
AlexandreCA/darkstar | scripts/zones/La_Theine_Plateau/npcs/Laurisse.lua | 13 | 1775 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Laurisse
-- Involved in Mission: The Rescue Drill
-- @pos -292 28 143 102
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Upper_Jeuno/npcs/Kasra.lua | 13 | 1044 | ----------------------------------
-- Area: Upper Jeuno
-- NPC: Kasra
-- Type: Item Deliverer
-- @zone: 244
-- @pos -34.555 7.999 90.702
--
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
require("scripts/zones/Upper_Jeuno/TextIDs");
--------------------------... | gpl-3.0 |
AlexandreCA/update | scripts/globals/items/rolanberry_(864_ce).lua | 35 | 1205 | -----------------------------------------
-- ID: 4531
-- Item: rolanberry_864_ce)
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -3
-- Intelligence 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
... | gpl-3.0 |
nwf/openwrt-luci | modules/luci-mod-admin-full/luasrc/controller/admin/uci.lua | 40 | 1769 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.admin.uci", package.seeall)
function index()
local redir = luci.http.formvalue("redir", true) or
luci.dispatcher.build_url(unpack(... | apache-2.0 |
AlexandreCA/update | scripts/zones/Crawlers_Nest/npcs/qm3.lua | 14 | 1043 | -----------------------------------
-- Area: Crawlers' Nest
-- NPC: ??? - Drown Crawler (Spawn area 1)
-- @pos 4.045 -2.703 285.026 197
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Crawlers_Nest/Text... | gpl-3.0 |
AlexandreCA/update | scripts/globals/mobskills/Emetic_Discharge.lua | 44 | 2025 | ---------------------------------------------
-- Emetic Discharge
-- Family: Bloodlapper and Brummbar
-- Description: Transfers all ailments to target
-- Type: Enfeebling
-- Utsusemi/Blink absorb: 2-3 shadows
-- Notes:
---------------------------------------------
require("scripts/globals/settings");
require("scr... | gpl-3.0 |
TeddyEngel/Loogine | core/array.lua | 1 | 9483 | -----------------------------------------------------------------------------------------
--
-- Array.lua
--
-----------------------------------------------------------------------------------------
-- Author: Teddy Engel <engel.teddy[at]gmail.com> / @Teddy_Engel
-- Copyright (c) 2013-2014 Teddy Engel ... | mit |
AlexandreCA/update | scripts/zones/QuBia_Arena/bcnms/heir_to_the_light.lua | 18 | 1805 | -----------------------------------
-- Name: Mission 9-2 SANDO
-----------------------------------
package.loaded["scripts/zones/Qubia_arena/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("scripts/zones/QuBia_Arena/TextIDs");
--... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Bastok_Mines/npcs/Azima.lua | 29 | 1886 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Azima
-- Alchemy Adv. Synthesis Image Support
-- @pos 123.5 2 1 234
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/... | gpl-3.0 |
AlexandreCA/update | scripts/globals/abilities/addendum_black.lua | 28 | 1632 | -----------------------------------
-- Ability: Addendum: Black
-- Allows access to additional Black Magic spells while using Dark Arts.
-- Obtained: Scholar Level 30
-- Recast Time: Stratagem Charge
-- Duration: 2 hours
--
-- Level |Charges |Recharge Time per Charge
-- ----- -------- ---------------
-- 10... | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/spells/bluemagic/soporific.lua | 27 | 1377 | -----------------------------------------
-- Spell: Soporific
-- Puts all enemies within range to sleep
-- Spell cost: 38 MP
-- Monster Type: Plantoids
-- Spell Type: Magical (Dark)
-- Blue Magic Points: 4
-- Stat Bonus: HP-5, MP+5
-- Level: 24
-- Casting Time: 3 seconds
-- Recast Time: 90 seconds
-- Duration: 90 secon... | gpl-3.0 |
treytomes/mgreboot | mods/nether/init.lua | 1 | 18013 | -- Parameters
local NETHER_DEPTH = -5000
local TCAVE = 0.6
local BLEND = 128
local DEBUG = false
-- 3D noise
local np_cave = {
offset = 0,
scale = 1,
spread = {x = 384, y = 128, z = 384}, -- squashed 3:1
seed = 59033,
octaves = 5,
persist = 0.7,
lacunarity = 2.0,
--flags = ""
}
-- Stuff
local yblmax = NE... | mit |
AlexandreCA/darkstar | scripts/zones/West_Sarutabaruta/npcs/Darumomo_WW.lua | 13 | 3341 | -----------------------------------
-- Area: West Sarutabaruta
-- NPC: Darumomo, W.W.
-- Type: Border Conquest Guards
-- @pos 399.450 -25.858 727.545 115
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/co... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Mount_Zhayolm/Zone.lua | 11 | 1794 | -----------------------------------
--
-- Zone: Mount_Zhayolm (61)
--
-----------------------------------
package.loaded["scripts/zones/Mount_Zhayolm/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Mount_Zhayolm/TextIDs");
------------------------------... | gpl-3.0 |
ztesbot/ztesrobot | plugins/Location.lua | 185 | 1565 | -- Implement a command !loc [area] which uses
-- the static map API to get a location image
-- Not sure if this is the proper way
-- Intent: get_latlong is in time.lua, we need it here
-- loadfile "time.lua"
-- Globals
-- If you have a google api key for the geocoding/timezone api
do
local api_key = nil
local base_... | gpl-2.0 |
AlexandreCA/darkstar | scripts/zones/Port_Bastok/npcs/Sawyer.lua | 17 | 1551 | -----------------------------------
-- Area: Port Bastok
-- NPC: Sawyer
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/zones/Port_Bastok/TextIDs");
----------... | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/items/dish_of_spaghetti_arrabbiata_+1.lua | 18 | 1754 | -----------------------------------------
-- ID: 5212
-- Item: dish_of_spaghetti_arrabbiata_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health % 15
-- Health Cap 150
-- Strength 5
-- Vitality 2
-- Intelligence -7
-- Attack % 22
-- Attack Cap 120
-- Store TP 5
-----------------------... | gpl-3.0 |
niedzielski/premake-4.4-beta4 | tests/actions/vstudio/vc2010/test_debugdir.lua | 10 | 3216 | --
-- tests/actions/vstudio/vc2010/test_debugdir.lua
-- Validate handling of the working directory for debugging.
-- Copyright (c) 2011 Jason Perkins and the Premake project
--
T.vstudio_vs2010_debugdir = { }
local suite = T.vstudio_vs2010_debugdir
local vc2010 = premake.vstudio.vc2010
--
-- Setup
-... | bsd-3-clause |
AlexandreCA/update | scripts/zones/Dynamis-Buburimu/mobs/Manifest_Icon.lua | 4 | 1215 | -----------------------------------
-- Area: Dynamis Buburimu
-- NPC: Manifest_Icon
-----------------------------------
package.loaded["scripts/zones/Dynamis-Buburimu/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Buburimu/TextIDs");
----... | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/items/blackened_frog.lua | 18 | 1738 | -----------------------------------------
-- ID: 4536
-- Item: Blackened Frog
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 2
-- Agility 2
-- Mind -2
-- Attack % 14
-- Attack Cap 60
-- Ranged ATT % 14
-- Ranged ATT Cap 60
-- Enmity -5
-----------------------------------------
... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Mamook/npcs/qm2.lua | 30 | 1323 | -----------------------------------
-- Area: Mamook
-- NPC: ??? (Spawn Iriri Samariri(ZNM T2))
-- @pos -118 7 -80 65
-----------------------------------
package.loaded["scripts/zones/Mamook/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mamook/TextIDs");
require("scripts/globals/status");
... | gpl-3.0 |
samboy/Oblige | attic/prefabs_V5/room/pillars.lua | 1 | 1101 | --
-- Big tech pillar
--
DOOM.SKINS.Room_pillar_big =
{
file = "room/pillar1.wad"
prob = 100
seed_w = 3
seed_h = 3
north = "..."
east = "..."
south = "..."
west = "..."
theme = "tech"
}
--
-- Urban wood + four pillars + height diff
--
DOOM.SKINS.Room_pillar2 =
{
file = "room/pil... | gpl-2.0 |
nwf/openwrt-luci | applications/luci-app-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo.lua | 141 | 1038 | --[[
smap_devinfo - SIP Device Information
(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
$Id$
]]--
require("luci.i18n")
re... | apache-2.0 |
AlexandreCA/darkstar | scripts/globals/weaponskills/victory_smite.lua | 11 | 1661 | -----------------------------------
-- Victory Smite
-- Hand-to-Hand Weapon Skill
-- Skill Level: N/A
-- Description: Delivers a fourfold attack. Chance of params.critical hit varies with TP.
-- Must have Verethragna (85)/(90)/(95)/(99)/(99-2) or Revenant Fists +1/+2/+3 equipped.
-- Aligned with the Light Gorget, Breez... | gpl-3.0 |
dobriy-eeh/omim | 3party/osrm/osrm-backend/profiles/testbot.lua | 69 | 3444 | -- Testbot profile
-- Moves at fixed, well-known speeds, practical for testing speed and travel times:
-- Primary road: 36km/h = 36000m/3600s = 100m/10s
-- Secondary road: 18km/h = 18000m/3600s = 100m/20s
-- Tertiary road: 12km/h = 12000m/3600s = 100m/30s
-- modes:
-- 1: normal
-- 2: route
-- 3: river downstream
... | apache-2.0 |
jstewart-amd/premake-core | src/base/json.lua | 23 | 55197 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2016 Jeffrey Friedl
-- http://regex.info/blog/
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses/by... | bsd-3-clause |
AlexandreCA/darkstar | scripts/zones/Xarcabard/TextIDs.lua | 13 | 1203 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6392; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6397; -- Obtained: <item>.
GIL_OBTAINED = 6398; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6400; -- Obtained... | gpl-3.0 |
elfinlazz/melia | system/scripts/npc/dungeon/d_abbey_35_3.lua | 1 | 3619 | addnpc(147311, "ETC_20151001_015225", "d_abbey_35_3", -1670.257, -7.629395E-06, -143.4527, 85, "npc_dummy")
addnpc(147311, "ETC_20151001_015225", "d_abbey_35_3", 937.6669, -7.629395E-06, -236.0967, 65, "npc_dummy")
addnpc(147311, "ETC_20151001_015225", "d_abbey_35_3", -75.60907, -7.629395E-06, 410.04... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/The_Boyahda_Tree/npcs/qm2.lua | 13 | 2453 | -----------------------------------
-- Area: The Boyahda Tree
-- NPC: qm2 (???)
-- Involved in Quest: Searching for the Right Words
-- @pos 34.651 -20.183 -61.647 153
-----------------------------------
package.loaded["scripts/zones/The_Boyahda_Tree/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
paly2/minetest-minetestforfun-server | mods/plantlife_modpack/trunks/generating.lua | 1 | 21079 | -- Code by Mossmanikin, Neuromancer, and others
local function clone_node(name)
local node2 = {}
local node = minetest.registered_nodes[name]
for k,v in pairs(node) do
node2[k]=v
end
return node2
end
-----------------------------------------------------------------------------------------------
-- TWiGS
------... | unlicense |
AlexandreCA/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Nilerouche.lua | 13 | 1300 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Nilerouche
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
require("scripts/zones/Tavnazian_Safehold/TextIDs");
----------------------... | gpl-3.0 |
AlexandreCA/update | scripts/globals/items/crayfish.lua | 18 | 1409 | -----------------------------------------
-- ID: 4472
-- Item: crayfish
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity -3
-- Vitality 1
-- defense 10
-----------------------------------------
require("scripts/globals/status");
-------------------------------------... | gpl-3.0 |
adamsumm/ZeldANN | Torch/train.lua | 2 | 14591 |
--[[
This file trains a character-level multi-layer RNN on text data
Code is based on implementation in
https://github.com/oxford-cs-ml-2015/practical6
but modified to have multi-layer support, GPU support, as well as
many other common model/optimization bells and whistles.
The practical6 code is in turn based on
... | mit |
AlexandreCA/update | scripts/zones/Cloister_of_Gales/bcnms/trial_by_wind.lua | 19 | 1769 | -----------------------------------
-- Area: Cloister of Gales
-- BCNM: Trial by Wind
-- @zone -361 1 -381 201
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Gales/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/quests"... | gpl-3.0 |
yasharsa/yashartg | plugins/banhammer.lua | 3 | 6066 | local function is_user_whitelisted(id)
local hash = 'whitelist:user#id'..id
local white = redis:get(hash) or false
return white
end
local function is_chat_whitelisted(id)
local hash = 'whitelist:chat#id'..id
local white = redis:get(hash) or false
return white
end
local function kick_user(user_id, chat_id)... | gpl-2.0 |
AlexandreCA/update | scripts/globals/mobskills/Dispelling_Wind.lua | 18 | 1037 | ---------------------------------------------
-- Dispelling Wind
--
-- Description: Dispels two effects from targets in an area of effect.
-- Type: Enfeebling
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: 10' radial
-- Notes:
---------------------------------------------
require("scripts/globals/se... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Southern_San_dOria/npcs/Helbort.lua | 17 | 2420 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Helbort
-- Starts and Finished Quest: A purchase of Arms
-- @zone 230
-- @pos 71 -1 65
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
requi... | gpl-3.0 |
adamsumm/ZeldANN | Torch/util/CharSplitLMMinibatchLoader.lua | 2 | 7448 |
-- Modified from https://github.com/oxford-cs-ml-2015/practical6
-- the modification included support for train/val/test splits
local CharSplitLMMinibatchLoader = {}
CharSplitLMMinibatchLoader.__index = CharSplitLMMinibatchLoader
function CharSplitLMMinibatchLoader.create(data_dir, batch_size, seq_length, split_frac... | mit |
elfinlazz/melia | system/scripts/npc/field/f_flash_59.lua | 1 | 4870 | addnpc(10033, "ETC_20150714_013143", "f_flash_59", -380.7502, 109.4169, 686.1335, 35, "npc_dummy")
addnpc(147416, "ETC_20150714_013144", "f_flash_59", -200.8266, 109.3169, 726.7344, 215, "npc_dummy")
addnpc(20117, "ETC_20150714_013145", "f_flash_59", -843.2796, 188.837, -382.094, 45, "npc_dummy")
addnpc(10033, "ETC_201... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Mamook/Zone.lua | 28 | 1299 | -----------------------------------
--
-- Zone: Mamook (65)
--
-----------------------------------
package.loaded["scripts/zones/Mamook/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Mamook/TextIDs");
-----------------------------------
-- ... | gpl-3.0 |
abbasgh12345/extremenewedit | plugins/location.lua | 93 | 1704 | -- Implement a command !loc [area] which uses
-- the static map API to get a location image
-- Not sure if this is the proper way
-- Intent: get_latlong is in time.lua, we need it here
-- loadfile "time.lua"
-- Globals
-- If you have a google api key for the geocoding/timezone api
do
local api_key = nil
local base_... | gpl-2.0 |
AlexandreCA/darkstar | scripts/globals/spells/cura_ii.lua | 36 | 4121 | -----------------------------------------
-- Spell: Cura
-- Restores hp in area of effect. Self target only
-- From what I understand, Cura's base potency is the same as Cure II's.
-- With Afflatus Misery Bonus, it can be as potent as a Curaga III
-- Modeled after our cure_ii.lua, which was modeled after the below refe... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Garlaige_Citadel/npcs/qm13.lua | 13 | 1364 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: qm13 (???)
-- Involved in Quest: Hitting the Marquisate (THF AF3)
-- @pos -194.166 -5.500 139.969 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("s... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Valkurm_Dunes/npcs/Stone_Monument.lua | 13 | 1273 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: Stone Monument
-- Involved in quest "An Explorer's Footsteps"
-- @pos -311.299 -4.420 -138.878 103
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Cloister_of_Storms/bcnms/trial_by_lightning.lua | 30 | 2230 | -----------------------------------
-- Area: Cloister of Storms
-- BCNM: Trial by Lightning
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Storms/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("script... | gpl-3.0 |
adiyoss/DeepSegmentor | common/data.lua | 1 | 2537 | -------------------------------
require 'torch'
require 'nn'
require 'xlua'
utils = dofile('common/utils.lua')
logger = dofile('common/logger.lua')
-------------------------------
-------------------------------
local data = {}
-- C'Tor
function data:new()
self.x_suffix = '.txt'
self.y_suffix = '.labels'
end
fun... | mit |
lucgagnon/ntopng | scripts/lua/hosts_comparison_bubble.lua | 7 | 4450 | --
-- (C) 2014-15-15 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
sendHTTPHeader('text/html; charset=iso-8859-1')
local debug = false
------------------------
function setAggregationValue(p_type,p_flow,p_key)
l_array = {}
... | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/abilities/fire_maneuver.lua | 35 | 1604 | -----------------------------------
-- Ability: Fire Maneuver
-- Enhances the effect of fire attachments. Must have animator equipped.
-- Obtained: Puppetmaster level 1
-- Recast Time: 10 seconds (shared with all maneuvers)
-- Duration: 1 minute
-----------------------------------
require("scripts/globals/status");
re... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Dangruf_Wadi/npcs/qm5.lua | 17 | 1897 | -----------------------------------
-- NPC: ??? (QM5)
-- Type: Eggblix dice roll game part 3
-- @zone: 191
-- Involved in quest "As Thick As Thieves"
-----------------------------------
package.loaded["scripts/zones/Dangruf_Wadi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
gaodayihao/XBurner | Libs/LibSpellRange-1.0/libs/LibStub/tests/test2.lua | 100 | 1112 | debugstack = debug.traceback
strmatch = string.match
loadfile("../LibStub.lua")()
for major, library in LibStub:IterateLibraries() do
-- check that MyLib doesn't exist yet, by iterating through all the libraries
assert(major ~= "MyLib")
end
assert(not LibStub:GetLibrary("MyLib", true)) -- check that MyLib doesn't ... | mit |
AlexandreCA/darkstar | scripts/zones/Bastok_Markets/npcs/Rothais.lua | 13 | 1040 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Rothais
-- Involved in Quest: Gourmet
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTr... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Morangeart.lua | 13 | 1072 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Morangeart
-- Type: ENM Quest Activator
-- @zone: 26
-- @pos -74.308 -24.782 -28.475
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"]... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Upper_Jeuno/npcs/Mailloquetat.lua | 13 | 1398 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Mailloquetat
-- Involved in Quests: Save my Sister
-- @zone 244
-- @pos -31 -1 8
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
requi... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Altar_Room/Zone.lua | 32 | 1558 | -----------------------------------
--
-- Zone: Altar_Room (152)
--
-----------------------------------
package.loaded["scripts/zones/Altar_Room/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Altar_Room/TextIDs");
-----------------------------------
--... | gpl-3.0 |
Dugy/wesnoth-names | data/ai/micro_ais/cas/ca_herding_attack_close_enemy.lua | 4 | 4824 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local function get_sheep(cfg)
local sheep = wesnoth.get_units {
side = wesnoth.current.side,
{ "and", H.get_child(cfg, "filter_second") }
}
return sheep
end
local function get_dogs(cfg)
local d... | gpl-2.0 |
elfinlazz/melia | system/scripts/npc/field/f_pilgrimroad_46.lua | 1 | 2652 | addnpc(20026, "ETC_20150317_009385", "f_pilgrimroad_46", 362.91, 190.67, -511.62, 45, "npc_dummy")
addnpc(47201, "ETC_20150317_009386", "f_pilgrimroad_46", 25.92, 170.74, -277.28, 45, "npc_dummy")
addnpc(47201, "ETC_20150317_009386", "f_pilgrimroad_46", 29.98, 170.74, 67.4, 45, "npc_dummy")
addnpc(47201, "ETC_20150317_... | gpl-3.0 |
techtonik/wesnoth | data/ai/micro_ais/cas/ca_messenger_f_next_waypoint.lua | 25 | 2603 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua"
return function(cfg)
-- Calculate next waypoint and rating for all messengers
-- Return next messenger to move and waypoint toward which it shoul... | gpl-2.0 |
AlexandreCA/update | scripts/globals/mobskills/PW_Groundburst.lua | 25 | 1068 | ---------------------------------------------
-- Groundburst
--
-- Description: Expels a fireball on targets in an area of effect.
-- Type: Physical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: Unknown radial
-- Notes: Only used by notorious monsters, and from any Mamool Ja in besieged.
-------------------... | gpl-3.0 |
AlexandreCA/update | scripts/zones/Apollyon/mobs/Light_Elemental.lua | 112 | 2441 | -----------------------------------
-- Area: Apollyon SW
-- NPC: elemental
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
--------------------------... | gpl-3.0 |
AlexandreCA/update | scripts/globals/spells/bewitching_etude.lua | 18 | 1619 | -----------------------------------------
-- Spell: Bewitching Etude
-- Static CHR Boost, BRD 62
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
... | gpl-3.0 |
kynesim/wireshark | test/lua/proto.lua | 32 | 31020 | ----------------------------------------
-- script-name: proto.lua
-- This is based on the dissector.lua example script, which is also used for testing.
-- Unlike that one, this one is purely for testing even more things, notably
-- the Proto/ProtoField API.
----------------------------------------
------------- gener... | gpl-2.0 |
AlexandreCA/update | scripts/zones/Windurst_Waters/npcs/Akkeke.lua | 36 | 1418 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Akkeke
-- Involved in Quest: Making the Grade
-- Working 100%
-- @zone = 238
-- @pos = 135 -6 165
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
r... | gpl-3.0 |
incinirate/Riko4 | scripts/usr/bin/edit/widgets/goto.lua | 1 | 1327 | return function(context)
local gotoWidget = {}
local mediator = context:get "mediator"
local popout = require("popout")
local input = require("widgets/input")
local fontH = gpu.font.data.h
function gotoWidget.new()
local self = setmetatable({
popout = popout.new(80, fontH + 2),
input = i... | mit |
AlexandreCA/update | scripts/globals/items/slice_of_buffalo_meat.lua | 18 | 1424 | -----------------------------------------
-- ID: 5152
-- Item: slice_of_buffalo_meat
-- Food Effect: 5Min, Galka only
-----------------------------------------
-- Strength 4
-- Agility -5
-- Intelligence -7
-----------------------------------------
require("scripts/globals/status");
----------------------... | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/effects/int_boost.lua | 34 | 1027 | -----------------------------------
--
-- EFFECT_INT_BOOST
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_INT,effect:getPower());
end;
... | gpl-3.0 |
annulen/premake-annulen | tests/base/test_tree.lua | 63 | 2786 | --
-- tests/base/test_tree.lua
-- Automated test suite source code tree handling.
-- Copyright (c) 2009 Jason Perkins and the Premake project
--
T.tree = { }
local suite = T.tree
local tree = premake.tree
--
-- Setup/teardown
--
local tr, nodes
function suite.setup()
tr = tree.new()
nodes = { }
end
... | bsd-3-clause |
martolini/Vana | scripts/npcs/con2.lua | 1 | 1041 | --[[
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/globals/weaponskills/shattersoul.lua | 9 | 2348 | -----------------------------------
-- Skill Level: 357
-- Description: Delivers a threefold attack. Decreases target's magic defense. Duration of effect varies with TP.
-- To obtain Shattersoul, the quest Martial Mastery must be completed and it must be purchased from the Merit Points menu.
-- Target's magic defense i... | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/spells/firestorm.lua | 32 | 1180 | --------------------------------------
-- Spell: Firestorm
-- Changes the weather around target party member to "hot."
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- ... | gpl-3.0 |
mountainwalker/progams | startup_1.lua | 1 | 2060 | local cube_0 = "Ultimate Energy Cube_0"
local cube_1 = "Ultimate Energy Cube_1"
local cube_2 = "Ultimate Energy Cube_2"
local level_0,level_1,level_2 = 0
local mode = 0
local message = ""
modem = peripheral.wrap("back")
monitor = peripheral.wrap("left")
monitor.clear()
rednet.open("back")
--mode 0 mode normal
--mode 2 ... | gpl-2.0 |
techtonik/wesnoth | data/ai/micro_ais/cas/ca_protect_unit_move.lua | 26 | 3509 | local H = wesnoth.require "lua/helper.lua"
local LS = wesnoth.require "lua/location_set.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local BC = wesnoth.require "ai/lua/battle_calcs.lua"
local function get_protected_units(cfg)
local units = {}
for _,id in ipairs(cfg.id) do
table.insert(units, ... | gpl-2.0 |
syhunt/hybrid-scx | src/SyHybrid/code/scantask.lua | 1 | 3309 | require "SyMini"
task.caption = 'Syhunt Code Task'
task.tag = params.sessionname
task:setscript('ondblclick',"browser.showbottombar('task messages')")
task:setscript('onstop',"SessionManager:setsessionstatus([["..params.sessionname.."]], 'Canceled')")
runtabcmd('seticon','@ICON_LOADING')
runtabcmd('runtbtis','MarkAsSc... | bsd-3-clause |
yasharsa/yashartg | plugins/twitter_send.lua | 627 | 1555 | do
local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local client = OAuth.new(consumer_key, consumer_secret, {
RequestToken = "https://api.twitter.com/oauth/request_token",
AuthorizeUser = {"https://api.twitter.com/oauth/autho... | gpl-2.0 |
AlexandreCA/darkstar | scripts/globals/spells/sneak.lua | 27 | 1269 | -----------------------------------------
-- Spell: Sneak
-- Lessens chance of being detected by sound
-- Duration is random number between 30 seconds and 5 minutes
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
---------------------------------------... | gpl-3.0 |
lancehilliard/TGNS | mods/tgns/output/lua/shine/extensions/voicecommreminder.lua | 1 | 5542 | local md
local reminderLastSentWhen = {}
local Plugin = {}
function Plugin:SendVoicecommReminder(sourceClient, targetPlayer)
if targetPlayer ~= nil then
local targetClient = TGNS.GetClient(targetPlayer)
local sourcePlayer = TGNS.GetPlayer(sourceClient)
if Shared.GetTime() - (reminderLastSentWhen[targetClient] ... | mit |
AlexandreCA/update | scripts/zones/Jade_Sepulcher/Zone.lua | 28 | 1324 | -----------------------------------
--
-- Zone: Jade_Sepulcher (67)
--
-----------------------------------
package.loaded["scripts/zones/Jade_Sepulcher/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Jade_Sepulcher/TextIDs");
----------------... | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/items/magma_steak_+1.lua | 18 | 1597 | -----------------------------------------
-- ID: 6072
-- Item: Magma Steak +1
-- Food Effect: 240 Min, All Races
-----------------------------------------
-- Strength +9
-- Attack +24% Cap 185
-- Ranged Attack +24% Cap 185
-- Vermin Killer +6
-----------------------------------------
require("scripts/globals/status");... | gpl-3.0 |
AlexandreCA/darkstar | scripts/globals/spells/bluemagic/feather_tickle.lua | 25 | 1164 | -----------------------------------------
-- Spell: Feather Tickle
-- Reduces an enemy's TP
-- Spell cost: 48 MP
-- Monster Type: Birds
-- Spell Type: Magical (Wind)
-- Blue Magic Points: 3
-- Stat Bonus: AGI+1
-- Level: 64
-- Casting Time: 4 seconds
-- Recast Time: 26 seconds
-- Magic Bursts on: Detonation, Fragmentat... | gpl-3.0 |
lancehilliard/TGNS | specs/tgns/spoofs/spec_TGNS.lua | 1 | 3164 | module(context("TGNS spoofs network messages", "one is registered, hooked, and called"), lunity)
function arrange()
dofile("spoofs/TGNS.lua")
return TGNS
end
function act(sut)
local mSpy = spy.new(function() end)
sut.RegisterNetworkMessage("test message")
sut.HookNetworkMessage("test message", mSpy)
s... | mit |
AlexandreCA/darkstar | scripts/globals/items/plate_of_squid_sushi.lua | 17 | 1612 | -----------------------------------------
-- ID: 5148
-- Item: plate_of_squid_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 30
-- Dexterity 6
-- Agility 5
-- Mind -1
-- Accuracy % 15
-- Ranged ACC % 15
-- Sleep Resist 5
-----------------------------------------
require("scr... | gpl-3.0 |
paly2/minetest-minetestforfun-server | mods/plantlife_modpack/flowers_plus/init.lua | 1 | 15591 | local S = biome_lib.intllib
-- This file supplies a few additional plants and some related crafts
-- for the plantlife modpack. Last revision: 2013-04-24
flowers_plus = {}
local SPAWN_DELAY = 1000
local SPAWN_CHANCE = 200
local flowers_seed_diff = 329
local lilies_max_count = 320
local lilies_rarity = 33
local sea... | unlicense |
AlexandreCA/update | scripts/zones/Norg/npcs/Quntsu-Nointsu.lua | 17 | 2848 | -----------------------------------
-- Area: Norg
-- NPC: Quntsu-Nointsu
-- Title Change NPC
-- @pos -67 -1 34 252
-----------------------------------
require("scripts/globals/titles");
local title2 = { HONORARY_DOCTORATE_MAJORING_IN_TONBERRIES , BUSHIDO_BLADE , BLACK_MARKETEER , CRACKER_OF_THE_SECRET_CODE ,... | gpl-3.0 |
bigcrush/luasocket | test/smtptest.lua | 44 | 5376 | local sent = {}
local from = "diego@localhost"
local server = "localhost"
local rcpt = "luasocket@localhost"
local files = {
"/var/spool/mail/luasocket",
"/var/spool/mail/luasock1",
"/var/spool/mail/luasock2",
"/var/spool/mail/luasock3",
}
local t = socket.time()
local err
dofile("mbox.lua")
local p... | mit |
AlexandreCA/update | scripts/zones/Valkurm_Dunes/npcs/Nyata-Mobuta_WW.lua | 30 | 3056 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: Nyata-Mobuta, W.W.
-- Type: Outpost Conquest Guards
-- @pos 139.394 -7.885 100.384 103
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conque... | gpl-3.0 |
paly2/minetest-minetestforfun-server | mods/fishing/baits.lua | 1 | 1479 |
--fish bait
--bait_corn
minetest.register_craftitem("fishing:bait_corn", {
description = fishing_setting.func.S("Bait Corn"),
inventory_image = "fishing_bait_corn.png",
})
fishing_setting.baits["fishing:bait_corn"] = { ["bait"] = "fishing:bait_corn", ["bobber"] = "fishing:bobber_fish_entity",["texture"] = "fishing_... | unlicense |
AlexandreCA/update | scripts/zones/Kuftal_Tunnel/MobIDs.lua | 36 | 2913 | -----------------------------------
-- Area: Kuftal Tunnel
-- Comments: -- posX, posY, posZ
--(Taken from 'mob_spawn_points' table)
-----------------------------------
-- Amemet
Amemet=17490016;
Amemet_PH={
[17490000] = '1', -- 123.046, 0.250, 18.642
[17489994] = '1', -- 112.135, -0.278, 38.281
[1749... | gpl-3.0 |
lancehilliard/TGNS | specs/lib/lemock.lua | 1 | 17270 | ------ THIS FILE IS TANGLED FROM LITERATE SOURCE FILES ------
-- Copyright (C) 2009 Tommy Pettersson <ptp@lysator.liu.se>
-- See terms in file COPYRIGHT, or at http://lemock.luaforge.net
module( 'lemock', package.seeall )
_VERSION = "LeMock 0.6"
_COPYRIGHT = "Copyright (C) 2009 Tommy Pettersson <ptp@lysator.liu.se>"
... | mit |
AlexandreCA/darkstar | scripts/zones/Riverne-Site_A01/npcs/_0u1.lua | 13 | 1347 | -----------------------------------
-- Area: Riverne Site #A01
-- NPC: Unstable Displacement
-----------------------------------
package.loaded["scripts/zones/Riverne-Site_A01/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Riverne-Site_A01/TextIDs");
... | gpl-3.0 |
AlexandreCA/update | scripts/globals/spells/dark_carol.lua | 18 | 1502 | -----------------------------------------
-- Spell: Dark Carol
-- Increases dark resistance for party members within the area of effect.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-------------... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Ifrits_Cauldron/Zone.lua | 13 | 2695 | -----------------------------------
--
-- Zone: Ifrits_Cauldron (205)
--
-----------------------------------
package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Ifrits_Cauldron/Te... | gpl-3.0 |
AlexandreCA/darkstar | scripts/zones/Carpenters_Landing/npcs/qm8.lua | 13 | 2803 | -----------------------------------
-- Area: Carpenters' Landing
-- NPC: ??? (qm2)
-- Involved in Missions: Calm Before the Storm (CoP 7-4)
-- @pos 120.615 -5.457 -390.133 2
-----------------------------------
package.loaded["scripts/zones/Carpenters_Landing/TextIDs"] = nil;
-----------------------------------
--... | gpl-3.0 |
willshion/h2o | deps/klib/lua/bio.lua | 42 | 5250 | -- bioinformatics routines
-- Description: read a fasta/fastq file
local function readseq(fp)
local finished, last = false, nil;
return function()
local match;
if finished then return nil end
if (last == nil) then -- the first record or a record following a fastq
for l in fp:lines() do
if l:byte(1) == 6... | mit |
hidaruma/micro-textlint-plugin | textlint.lua | 1 | 1164 | VERSION = "0.2.0"
if GetOption("textlint") == nil then
AddOption("textlint", true)
end
MakeCommand("textlint", "textlint.textlintCommand", 0)
function textlintCommand()
CurView():Save(false)
runTextlint()
end
function runTextlint()
CurView():ClearGutterMessages("textlint")
JobSpawn("textlint", {"--no... | mit |
elfinlazz/melia | system/scripts/npc/dungeon/d_zachariel_33.lua | 1 | 7040 | addnpc(47252, "QUEST_LV_0100_20150317_002103", "d_zachariel_33", 31.75231, 720.204, 1219.775, -45, "npc_dummy")
addnpc(147469, "ETC_20150317_009306", "d_zachariel_33", -1671, 720, 173, -45, "npc_dummy")
addnpc(147469, "ETC_20150317_009306", "d_zachariel_33", -562, 716, 111, -45, "npc_dummy")
addnpc(147469, "ETC_2015031... | gpl-3.0 |
xinran505982/videolan_vlc | share/lua/playlist/mpora.lua | 97 | 2565 | --[[
$Id$
Copyright © 2009 the VideoLAN team
Authors: Konstantin Pavlov (thresh@videolan.org)
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 opt... | gpl-2.0 |
lancehilliard/TGNS | mods/tgns/output/lua/shine/extensions/captains/captains.lua | 1 | 132579 | Event.Hook("MapPostLoad", function()
if false then
TGNS.ModifyAlienMaxSpeeds(function(maxSpeed) return maxSpeed + (kCelerityAddSpeed or 1.5) end)
kStompEnergyCost = kStompEnergyCost * 2
end
end)
if Server or Client then
local Plugin = {}
local MAX_NON_CAPTAIN_PLAYERS = 14
local OnClientInitialise = functio... | mit |
AlexandreCA/update | scripts/zones/Dynamis-Beaucedine/mobs/Adamantking_Effigy.lua | 4 | 1836 | -----------------------------------
-- Area: Dynamis Beaucedine
-- NPC: Adamantking Effigy
-- Map Position: http://images1.wikia.nocookie.net/__cb20090312005233/ffxi/images/thumb/b/b6/Bea.jpg/375px-Bea.jpg
-----------------------------------
package.loaded["scripts/zones/Dynamis-Beaucedine/TextIDs"] = nil;
-----... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.