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 |
|---|---|---|---|---|---|
kitala1/darkstar | scripts/zones/Southern_San_dOria/npcs/Shilah.lua | 36 | 1992 | -----------------------------------
-- Area: Southern San dOria
-- NPC: Shilah
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop")... | gpl-3.0 |
google-code-export/multitheftauto | vendor/lua/src/premake.lua | 38 | 6155 | ----------------------------------------------------
-- The main porpouse of this file is to build linux gcc makefiles.
-- Must have Premake version 3 installed.
-- Original Premake was changed to remove some parameters and add others.
-- Default parameters:
-- premake3s --target gnu --os linux
-- But it can build wi... | gpl-3.0 |
kitala1/darkstar | scripts/globals/abilities/violent_flourish.lua | 8 | 3712 | -----------------------------------
-- Ability: Violent Flourish
-- Stuns target with a low rate of success. Requires one Finishing Move.
-- Obtained: Dancer Level 45
-- Finishing Moves Used: 1
-- Recast Time: 0:20
-- Duration: ??
-----------------------------------
require("scripts/globals/settings");
requi... | gpl-3.0 |
cdettmering/fancyland | math/LineSegment.lua | 2 | 3441 | --- LineSegment ---
-- Setup local access
local Point = require(MATHPATH .. 'Point')
local Vector = require(MATHPATH .. 'Vector')
local LineSegment = {}
local LineSegment_mt = {}
LineSegment_mt.__index = LineSegment
-- Creates a new LineSegment
-- param p1: The start Point of the LineSegment, where Point is created ... | gpl-3.0 |
kaustavha/rackspace-monitoring-agent | tests/check/windows.lua | 4 | 5020 | local math = require('math')
local os = require('os')
local string = require('string')
local helper = require('../helper')
local fixtures = require('/tests/fixtures').checks
local WindowsChecks = require('/check/windows').checks
local exports = {}
exports['test_windowsperfos_check'] = function(test, asserts)
local ... | apache-2.0 |
kitala1/darkstar | scripts/zones/Norg/npcs/Achika.lua | 19 | 1251 | -----------------------------------
-- Area: Norg
-- NPC: Achika
-- Type: Tenshodo Merchant
-- @pos 1.300 0.000 19.259 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop")... | gpl-3.0 |
apletnev/koreader | platform/android/llapp_main.lua | 2 | 1813 | local A = require("android")
A.dl.library_path = A.dl.library_path .. ":" .. A.dir .. "/libs"
A.log_name = 'KOReader'
local ffi = require("ffi")
ffi.cdef[[
char *getenv(const char *name);
int putenv(const char *envvar);
]]
-- check uri of the intent that starts this application
local file = A.jni:context(A.ap... | agpl-3.0 |
Mechaniston/FibaroHC_mechHomeBcfg | old vers/BR_buttonWall-03.lua | 1 | 7078 | --[[
%% properties
201 sceneActivation
%% globals
--]]
--[[
if use "%% properties 201 value" and "norm. open"
- just start scene
[DEBUG] 00:32:56: sceneAct = 20
[DEBUG] 00:32:56: value = 0
- any click
[DEBUG] 00:33:15: sceneAct = 10
[DEBUG] 00:33:15: value = 1
[DEBUG] 00:33:15: sceneAct = 11
[DEBUG] 00:33:15: value = ... | mit |
sylvanaar/IDLua | testdata/non-test-system-files/lua5.1-tests/vararg.lua | 11 | 2665 | print('testing vararg')
_G.arg = nil
function f(a, ...)
assert(type(arg) == 'table')
assert(type(arg.n) == 'number')
for i=1,arg.n do assert(a[i]==arg[i]) end
return arg.n
end
function c12 (...)
assert(arg == nil)
local x = {...}; x.n = table.getn(x)
local res = (x.n==2 and x[1] == 1 and x[2] == 2)
i... | apache-2.0 |
Aeprox/ESPLogger | src/luxTSL2561/i2cutils.lua | 8 | 1135 | -- This code provides some basic helper functions dealing with i2c devices
-- Much of this code was inspired by Santos and others on esp8266.com
-- Adapted by Aeprox@github for use in ESPlogger
local moduleName = "i2cutils"
local M = {}
_G[moduleName] = M
-- read a single byte from register
function M.read_reg(dev_a... | mit |
Aeprox/ESPLogger | release/ESPLogger-v1.0-RC1/i2cutils.lua | 8 | 1135 | -- This code provides some basic helper functions dealing with i2c devices
-- Much of this code was inspired by Santos and others on esp8266.com
-- Adapted by Aeprox@github for use in ESPlogger
local moduleName = "i2cutils"
local M = {}
_G[moduleName] = M
-- read a single byte from register
function M.read_reg(dev_a... | mit |
kitala1/darkstar | scripts/globals/mobskills/Osmosis.lua | 7 | 1245 | ---------------------------------------------
-- Osmosis
--
-- Description: Steals an enemy's HP and one beneficial status effect. Ineffective against undead.
-- Type: Magical
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scri... | gpl-3.0 |
kaustavha/rackspace-monitoring-agent | hostinfo/wordpress.lua | 2 | 6904 | local HostInfo = require('./base').HostInfo
local Apache2 = require('./apache2')
local walk = require('luvit-walk').readdirRecursive
local async = require('async')
local misc = require('./misc')
local safeMerge = misc.safeMerge
local read = misc.read
local path = require('path')
local Transform = require('stream').Tran... | apache-2.0 |
Roblox/Core-Scripts | CoreScriptsRoot/Modules/Settings/Pages/ShareGame/Components/App.lua | 1 | 1363 | local CoreGui = game:GetService("CoreGui")
local CorePackages = game:GetService("CorePackages")
local AppTempCommon = CorePackages.AppTempCommon
local Modules = CoreGui.RobloxGui.Modules
local Roact = require(CorePackages.Roact)
local RoactRodux = require(CorePackages.RoactRodux)
local ShareGame = Modules.Settings.P... | apache-2.0 |
kitala1/darkstar | scripts/globals/spells/bluemagic/frypan.lua | 28 | 1783 | -----------------------------------------
-- Spell: Frypan
-- Delivers an area attack. Additional effect: "Stun." Accuracy varies with TP
-- Spell cost: 65 MP
-- Monster Type: Beastmen
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 3
-- Stat Bonus: DEX+2
-- Level: 63
-- Casting Time: 1 seconds
-- Recas... | gpl-3.0 |
kitala1/darkstar | scripts/globals/weaponskills/viper_bite.lua | 12 | 1673 | -----------------------------------
-- Viper Bite
-- Dagger weapon skill
-- Skill level: 100
-- Deals double damage and Poisons target. Duration of poison varies with TP.
-- Doubles attack and not damage.
-- Despite the animation showing two swings, this is a single-hit weapon skill.
-- Will stack with Sneak Att... | gpl-3.0 |
crabman77/minetest-minetestforfun-server | mods/u_skins/u_skins/init.lua | 10 | 4926 | -- Unified Skins for Minetest - based modified Bags from unfied_inventory and skins from inventory_plus
-- Copyright (c) 2012 cornernote, Dean Montgomery
-- License: GPLv3
u_skins = {}
u_skins.modpath = minetest.get_modpath("u_skins")
u_skins.file = minetest.get_worldpath().."/u_skins.mt"
u_skins.default = "character_... | unlicense |
kitala1/darkstar | scripts/zones/San_dOria-Jeuno_Airship/npcs/Nigel.lua | 12 | 2054 | -----------------------------------
-- Area: San d'Oria-Jeuno Airship
-- NPC: Nigel
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/San_dOria-Jeuno_Airship/TextIDs"] = nil;
require("scripts/zones/San_dOria-Jeuno_Airship/TextIDs");
-----------------------------------
-- onTrade... | gpl-3.0 |
kidaa/MoonGen | examples/l3-multi-destinations.lua | 8 | 2916 | --- Send UDPv4/v6 packets with <numIPs> different destination IPv4/v6 addresses
-- <minIP> decides whether it's IPv4 or IPv6
-- starts sending with <minIP>, increases IP by one for each packet (until <numIPs> reached, restart with <minIP>)
local dpdk = require "dpdk"
local memory = require "memory"
local device = requi... | mit |
fastmailops/prosody | util/stanza.lua | 4 | 11019 | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local t_insert = table.insert;
local t_remove = table.remove;
local t_concat = table.c... | mit |
kitala1/darkstar | scripts/globals/spells/jubaku_ni.lua | 11 | 1694 | -----------------------------------------
-- Spell: Jubaku: Ni
-- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and INT.
-- taken from paralyze
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
---------------------------... | gpl-3.0 |
kitala1/darkstar | scripts/globals/weaponskills/blade_kamu.lua | 12 | 4894 | -----------------------------------
-- Blade Kamu
-- Katana weapon skill
-- Skill Level: N/A
-- Lowers target's params.accuracy. Duration of effect varies with TP. Nagi: Aftermath effect varies with TP.
-- Effect lasts 60 seconds @ 100 TP, 90 seconds @ 200 TP, and 120 seconds @ 300 TP
-- Available only after comp... | gpl-3.0 |
mahdikord/mahdib3 | bot/seedbot.lua | 1 | 10211 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '2'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
return... | gpl-2.0 |
marczych/PeggleDamacy | entities/peg.lua | 1 | 3353 | local possibleSprites = {
love.graphics.newImage("assets/images/peg1.png"),
love.graphics.newImage("assets/images/peg2.png"),
love.graphics.newImage("assets/images/peg3.png"),
love.graphics.newImage("assets/images/peg4.png"),
love.graphics.newImage("assets/images/peg5.png"),
love.graphics.newImage("as... | apache-2.0 |
Roblox/Core-Scripts | CoreScriptsRoot/Modules/Settings/Pages/ReportAbuseMenu.lua | 1 | 12342 | --[[
Filename: ReportAbuseMenu.lua
Written by: jeditkacheff
Version 1.0
Description: Takes care of the report abuse page in Settings Menu
--]]
local CoreGui = game:GetService("CoreGui")
local RobloxGui = CoreGui:WaitForChild("RobloxGui")
local GuiService = game:GetService("GuiService")
local PlayersService = g... | apache-2.0 |
kitala1/darkstar | scripts/zones/RoMaeve/npcs/qm2.lua | 8 | 1917 | -----------------------------------
-- Area: Ro'Maeve
-- NPC: qm2 (???)
-- Involved in Mission: Bastok 7-1
-- @pos 102 -4 -114 122 and <many pos>
-----------------------------------
package.loaded["scripts/zones/RoMaeve/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");... | gpl-3.0 |
kitala1/darkstar | scripts/globals/spells/hunters_prelude.lua | 13 | 1489 | -----------------------------------------
-- Spell: Hunter's Prelude
-- Gives party members ranged attack accuracy
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingChe... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/fuscina.lua | 16 | 1054 | -----------------------------------------
-- ID: 18104
-- Item: Fuscina
-- Additional Effect: Lightning Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-------------------------------... | gpl-3.0 |
mohammads15/new-super | plugins/info.lua | 10 | 9279 | --[[
Add phone by : @WaderTGTeam tnx to : @WaderTGTeam
]]
do
local sudo = 136888679 --put your id here(BOT OWNER ID)
local function setrank(msg, name, value) -- setrank function
local hash = nil
if msg.to.type == 'channel' then
hash = 'rank:variables'
end
if hash then
redis:hset(hash, name, value)
ret... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Cape_Teriggan/npcs/relic.lua | 38 | 1841 | -----------------------------------
-- Area: Cape Terrigan
-- NPC: <this space intentionally left blank>
-- @pos 73 4 -174 113
-----------------------------------
package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Cape_Teriggan/TextIDs");
---------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Port_Bastok/npcs/Talib.lua | 19 | 2852 | -----------------------------------
-- Area: Port Bastok
-- NPC: Talib
-- Starts Quest: Beauty and the Galka
-- Starts & Finishes Quest: Shady Business
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/s... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/carpenters_belt.lua | 30 | 1212 | -----------------------------------------
-- ID: 15444
-- Item: Carpenter's belt
-- Enchantment: Synthesis image support
-- 2Min, All Races
-----------------------------------------
-- Enchantment: Synthesis image support
-- Duration: 2Min
-- Woodworking Skill +3
-----------------------------------------
re... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Port_Windurst/npcs/Taniko-Maniko.lua | 36 | 1836 | -----------------------------------
-- Area: Port Windurst
-- NPC: Taniko-Maniko
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts/zones/Port_Windurst/... | gpl-3.0 |
xsolinsx/AISashaAPI | plugins/anti_spam.lua | 1 | 13068 | -- Empty tables for solving multiple problems(thanks to @topkecleon)
local cronTable = {
-- temp table to warn users if they are spamming too much the keyboards
cbWarns =
{
-- user_id
},
-- temp table to avoid kicking an already kicked user
floodKicks =
{
-- chat_id... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Windurst_Waters/npcs/Zelala.lua | 38 | 1035 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Zelala
-- Type: Map Marker
-- @zone: 238
-- @pos 169.855 -1.295 -3.238
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
--------------... | gpl-3.0 |
kitala1/darkstar | scripts/globals/spells/bluemagic/sheep_song.lua | 8 | 1421 | -----------------------------------------
-- Spell: Sheep Song
-- Puts all enemies within range to sleep
-- Spell cost: 22 MP
-- Monster Type: Beasts
-- Spell Type: Magical (Light)
-- Blue Magic Points: 2
-- Stat Bonus: CHR+1, HP+5
-- Level: 16
-- Casting Time: Casting Time: 3 seconds
-- Recast Time: Recast T... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Mount_Kamihr/Zone.lua | 34 | 1279 | -----------------------------------
--
-- Zone: Mount Kamihr
--
-----------------------------------
package.loaded["scripts/zones/Mount_Kamihr/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Mount_Kamihr/TextIDs");
---------------------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/LaLoff_Amphitheater/mobs/Ark_Angel_GK.lua | 27 | 1373 | -----------------------------------
-- Area: LaLoff Amphitheater
-- NPC: Ark Angel GK
-----------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
-----------------------------------
-- TODO: Allegedly has a 12 hp/sec regen. Determine if true, and add to onMobInitialize if so.... | gpl-3.0 |
JacobFischer/Joueur.lua | games/anarchy/policeDepartment.lua | 2 | 4634 | -- PoliceDepartment: Used to keep cities under control and raid Warehouses.
-- DO NOT MODIFY THIS FILE
-- Never try to directly create an instance of this class, or modify its member variables.
-- Instead, you should only be reading its variables and calling its functions.
local class = require("joueur.utilities.clas... | mit |
rezaph/Nano-bot | bot/bot.lua | 1 | 10280 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '2'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
return... | gpl-2.0 |
dangerrr/dangerrr | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
kidaa/MoonGen | lua/include/utils.lua | 1 | 8301 | ---------------------------------
--- @file utils.lua
--- @brief Defines general utility functions.
--- @todo TODO docu
--- @todo local unpackers ... crashes lua2dox parser
---------------------------------
local bor, band, bnot, rshift, lshift, bswap = bit.bor, bit.band, bit.bnot, bit.rshift, bit.lshift, bit.bswap
lo... | mit |
kitala1/darkstar | scripts/zones/Mhaura/npcs/Numi_Adaligo.lua | 17 | 1403 | -----------------------------------
-- Area: Mhaura
-- NPC: Numi Adaligo
-- Involved In Quest: RYCHARDE_THE_CHEF
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mhaura/TextIDs");
require("scripts/globals/set... | gpl-3.0 |
kitala1/darkstar | scripts/globals/spells/Logical_Etude.lua | 11 | 1613 | -----------------------------------------
-- Spell: Logical Etude
-- Static MND Boost, BRD 64
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
f... | gpl-3.0 |
JacobFischer/Joueur.lua | games/checkers/checker.lua | 1 | 3034 | -- Checker: A checker on the game board.
-- DO NOT MODIFY THIS FILE
-- Never try to directly create an instance of this class, or modify its member variables.
-- Instead, you should only be reading its variables and calling its functions.
local class = require("joueur.utilities.class")
local GameObject = require("gam... | mit |
kitala1/darkstar | scripts/globals/weaponskills/combo.lua | 30 | 1420 | -----------------------------------
-- Combo
-- Hand-to-Hand weapon skill
-- Skill level: 5
-- Delivers a threefold attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Thunder Gorget.
-- Aligned with the Thunder Belt.
-- Element: None
-- Modifiers: STR:20% ; DEX:20%
-- 100%TP ... | gpl-3.0 |
gwx/tome-grayswandir-addon | examples/weaponsmaster-birth.lua | 1 | 1503 | newBirthDescriptor {
type = "subclass",
name = "Weaponsmaster",
desc = {
"A Weaponsmaster hits things. With weapons. A lot.",
"Their most important stats are: Strength and Dexterity",
"#GOLD#Stat modifiers:",
"#LIGHT_BLUE# * +4 Strength, +4 Dexterity, +1 Constitution",
"#LIGHT_BLUE# * +0 Magic, +0 Willpowe... | gpl-3.0 |
frissdiegurke/dotfiles | .config/awesome/utils/tags.lua | 1 | 1330 | local awful = require("awful")
-- Table of layouts to cover with awful.layout.inc, order matters.
layouts = {
awful.layout.suit.tile,
awful.layout.suit.tile.left,
awful.layout.suit.tile.bottom,
awful.layout.suit.tile.top,
--awful.layout.suit.fair,
--awful.layout.suit.fair.horizontal,
--awful.layout.suit.... | apache-2.0 |
kitala1/darkstar | scripts/zones/Southern_San_dOria/npcs/qm3.lua | 31 | 1464 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: The Picture ??? in Vemalpeau's house
-- Involved in Quests: Under Oath
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
... | gpl-3.0 |
hwsyy/Atlas | lib/admin-bak.lua | 37 | 3379 | --[[ $%BEGINLICENSE%$
Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
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 dis... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Northern_San_dOria/npcs/Narcheral.lua | 23 | 3760 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Narcheral
-- Starts and Finishes Quest: Messenger from Beyond, Prelude of Black and White (Finish), Pieuje's Decision (Finish)
-- @zone 231
-- @pos 129 -11 126
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/T... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Kuftal_Tunnel/npcs/qm5.lua | 10 | 1388 | -----------------------------------
-- Area: Kuftal Tunnel
-- NPC: ???
-- Involved in Mission: Bastok 8-2
-----------------------------------
package.loaded["scripts/zones/Kuftal_Tunnel/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
requi... | gpl-3.0 |
zuocheng-liu/spawn-fcgi | deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | mit |
fqrouter/luci | applications/luci-statistics/luasrc/model/cbi/luci_statistics/rrdtool.lua | 80 | 3431 | --[[
Luci configuration model for statistics - collectd rrdtool plugin configuration
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the Licen... | apache-2.0 |
DangerCove/libquvi-scripts | share/lua/website/tvlux.lua | 1 | 2049 |
-- libquvi-scripts
-- Copyright (C) 2011,2013 Toni Gundogdu <legatvs@gmail.com>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library 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 Fr... | lgpl-2.1 |
kitala1/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Pradiulot.lua | 19 | 2403 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Pradiulot
-- Involved in Quest: Unforgiven
-- @zone 26
-- @pos -20.814 -22 8.399
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/zon... | gpl-3.0 |
crabman77/minetest-minetestforfun-server | mods/moreblocks/redefinitions.lua | 8 | 2395 | --[[
More Blocks: redefinitions of default stuff
Copyright (c) 2011-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
-- Redefinitions of some default crafting recipes:
minetest.register_craft({
output = "default:sign_wall 4",
recipe = {
{"group:wood", "gro... | unlicense |
kitala1/darkstar | scripts/zones/Meriphataud_Mountains/npcs/Stone_Monument.lua | 32 | 1308 | -----------------------------------
-- Area: Meriphataud Mountains
-- NPC: Stone Monument
-- Involved in quest "An Explorer's Footsteps"
-- @pos 450.741 2.110 -290.736 119
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
-------------------------------... | gpl-3.0 |
marczych/PeggleDamacy | hump/class.lua | 35 | 2925 | --[[
Copyright (c) 2010-2013 Matthias Richter
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dis... | apache-2.0 |
kitala1/darkstar | scripts/zones/Nashmau/TextIDs.lua | 5 | 1843 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_CANNOT_BE_OBTAINEDX = 6378; -- You cannot obtain the
ITEM_OBTAINED = 6382; -- Obtained: <item>
ITEM_OBTAINEDX = 6391; -- You obtai... | gpl-3.0 |
Roblox/Core-Scripts | PlayerScripts/StarterCharacterScripts/Sound.server.lua | 1 | 3612 | --[[
Author: @spotco
This script creates sounds which are placed under the character head.
These sounds are used by the "LocalSound" script.
To modify this script, copy it to your "StarterPlayer/StarterCharacterScripts" folder keeping the same script name ("Sound").
The default Sound script loaded for every chara... | apache-2.0 |
kitala1/darkstar | scripts/zones/Castle_Oztroja/mobs/Yagudo_Avatar.lua | 29 | 1393 | -----------------------------------
-- Area: Castle Oztroja (151)
-- Mob: Yagudo_Avatar (Tzee Xicu the Manifest PH)
-----------------------------------
require("scripts/zones/Castle_Oztroja/TextIDs");
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(... | gpl-3.0 |
raingloom/thranduil | ui/Draggable.lua | 9 | 4084 | local ui_path = (...):match('(.-)[^%.]+$') .. '.'
local Object = require(ui_path .. 'classic.classic')
local Draggable = Object:extend('Draggable')
function Draggable:draggableNew(settings)
local settings = settings or {}
self.dragging = false
self.drag_hot = false
self.drag_enter = false
self.drag... | mit |
kitala1/darkstar | scripts/globals/items/kaplumbaga.lua | 18 | 1258 | -----------------------------------------
-- ID: 5464
-- Item: Kaplumbaga
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 3
-- Mind -5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
--------... | gpl-3.0 |
apletnev/koreader | frontend/apps/reader/modules/readeractivityindicator.lua | 7 | 2037 | local EventListener = require("ui/widget/eventlistener")
local Device = require("device")
local util = require("ffi/util")
-- lipc
local ReaderActivityIndicator = EventListener:new{}
function ReaderActivityIndicator:init()
local dev_mod = Device.model
if dev_mod == "KindlePaperWhite" or dev_mod == "KindlePape... | agpl-3.0 |
kitala1/darkstar | scripts/zones/FeiYin/npcs/Strange_Apparatus.lua | 31 | 1106 | -----------------------------------
-- Area: FeiYin
-- NPC: Strange Apparatus
-- @pos -94 -15 220 204
-----------------------------------
package.loaded["scripts/zones/FeiYin/TextIDs"] = nil;
require("scripts/zones/FeiYin/TextIDs");
require("scripts/globals/strangeapparatus");
-----------------------------------
--... | gpl-3.0 |
mamadtnt/edit- | plugins/arabic_lock.lua | 11 | 1093 |
antiarabic = {}-- An empty table for solving multiple kicking problem
do
local function run(msg, matches)
if is_momod(msg) then -- Ignore mods,owner,admins
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)]['settings']['lock_arabic'] then
if data[tostring(msg.to.id... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Port_Bastok/npcs/Silver_Owl.lua | 34 | 1328 | -----------------------------------
-- Area: Port Bastok
-- NPC: Silver Owl
-- Type: Tenshodo Merchant
-- @pos -99.155 4.649 23.292 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
requi... | gpl-3.0 |
kitala1/darkstar | scripts/globals/weaponskills/double_thrust.lua | 30 | 1320 | -----------------------------------
-- Double Thrust
-- Polearm weapon skill
-- Skill Level: 5
-- Delivers a two-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Light Gorget.
-- Aligned with the Light Belt.
-- Element: None
-- Modifiers: STR:30%
-- 100%TP 200%TP 3... | gpl-3.0 |
fqrouter/luci | libs/web/luasrc/i18n.lua | 77 | 3182 | --[[
LuCI - Internationalisation
Description:
A very minimalistic but yet effective internationalisation module
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You ... | apache-2.0 |
kitala1/darkstar | scripts/globals/items/loaf_of_homemade_bread.lua | 35 | 1131 | -----------------------------------------
-- ID: 5228
-- Item: loaf_of_homemade_bread
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Agility 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck... | gpl-3.0 |
apletnev/koreader | datastorage.lua | 2 | 1821 | -- need low-level mechnism to detect android to avoid recursive dependency
local isAndroid, android = pcall(require, "android")
local lfs = require("libs/libkoreader-lfs")
local DataStorage = {}
local data_dir
local full_data_dir
function DataStorage:getDataDir()
if data_dir then return data_dir end
if isAn... | agpl-3.0 |
d-o/LUA-LIB | K400Examples/tests/testCSV.lua | 2 | 2371 | #!/usr/bin/env lua
-------------------------------------------------------------------------------
-- testCSV
--
-- Show capabilities of the rinCSV library
--
-------------------------------------------------------------------------------
local csv = require "rinLibrary.rinCSV"
-- Create an empty database
local db = ... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Ifrits_Cauldron/npcs/Grounds_Tome.lua | 34 | 1143 | -----------------------------------
-- Area: Ifrit's Cauldron
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrad... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Valkurm_Dunes/npcs/Stone_Monument.lua | 32 | 1285 | -----------------------------------
-- 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... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Cloister_of_Tremors/bcnms/sugar-coated_directive.lua | 13 | 1704 | ----------------------------------------
-- Area: Cloister of Tremors
-- BCNM: Sugar Coated Directive (ASA-4)
----------------------------------------
package.loaded["scripts/zones/Cloister_of_Tremors/TextIDs"] = nil;
----------------------------------------
require("scripts/globals/keyitems");
require("scripts/global... | gpl-3.0 |
phobus/LuaMetaBalls | main.lua | 1 | 1340 | local grid = require("script.grid")
local circles = require("script.circles")
local points = require("script.points")
local render = require("script.render")
local info = require("script.info")
local screen_width, screen_height
local map_cols, map_rows
local tile_size = 32
local total_cirlces = 10
local bound = 0.8
... | gpl-3.0 |
hanxi/cocos2d-x-v3.1 | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ControlButton.lua | 3 | 8436 |
--------------------------------
-- @module ControlButton
-- @extend Control
--------------------------------
-- @function [parent=#ControlButton] isPushed
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @function [parent=#ControlButton] setSelected
-- @para... | mit |
JacobFischer/Joueur.lua | _creer/games/${lowercase_first(game_name)}/ai.lua | 2 | 5076 | -- This is where you build your AI for the ${game_name} game.
<%include file="functions.noCreer" />
local class = require("joueur.utilities.class")
local BaseAI = require("joueur.baseAI")
${merge("-- ", "requires", "-- you can add additional require(s) here", optional=True)}
--- the AI functions for the ${game_name} ... | mit |
kitala1/darkstar | scripts/globals/spells/absorb-int.lua | 11 | 1199 | --------------------------------------
-- Spell: Absorb-INT
-- Steals an enemy's intelligence.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
--------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Bastok_Markets/npcs/Belizieg.lua | 38 | 1124 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Belizieg
-- Type: Item Deliverer
-- @zone: 235
-- @pos -323.673 -16.001 -49.930
--
-- Auto-Script: Requires Verification. Verified standard dialog - thrydwolf 12/18/2011
-----------------------------------
package.loaded["scripts/zones/Bastok_Mar... | gpl-3.0 |
mahdi1062/avira | libs/lua-redis.lua | 580 | 35599 | local redis = {
_VERSION = 'redis-lua 2.0.4',
_DESCRIPTION = 'A Lua client library for the redis key value storage system.',
_COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri',
}
-- The following line is used for backwards compatibility in order to keep the `Redis`
-- global module name. Using... | gpl-2.0 |
DangerCove/libquvi-scripts | share/lua/website/quvi/util.lua | 2 | 4277 |
-- libquvi-scripts
-- Copyright (C) 2010-2011 Toni Gundogdu <legatvs@gmail.com>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library 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 Fr... | lgpl-2.1 |
kitala1/darkstar | scripts/zones/Crawlers_Nest/Zone.lua | 30 | 1853 | -----------------------------------
--
-- Zone: Crawlers_Nest (197)
--
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Crawlers_Nes... | gpl-3.0 |
CopierTeam/Umbrella-Cp | plugins/Weather.lua | 13 | 5455 | local function temps(K)
local F = (K*1.8)-459.67
local C = K-273.15
return F,C
end
local function run(msg, matches)
local res = http.request("http://api.openweathermap.org/data/2.5/weather?q="..URL.escape(matches[2]).."&appid=269ed82391822cc692c9afd59f4aabba")
local jtab = JSON.decode(res)
if jtab.name then
if... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Upper_Jeuno/npcs/Hinda.lua | 34 | 1370 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Hinda
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Upper_Jeuno/TextIDs");
require("scripts/globals/quests");
---... | gpl-3.0 |
mahdikord/mahdib3 | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
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_print... | gpl-2.0 |
ioiasff/erq | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
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_print... | gpl-2.0 |
parsaalemi/parsa-antispam-bot | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
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_print... | gpl-2.0 |
cokecola8/BolScripts | TristanaMechanics.lua | 1 | 24339 | --[[
_____ _____ __ .__
/ \_______ / _ \________/ |_|__| ____ __ __ ____ ____
/ \ / \_ __ \ / /_\ \_ __ \ __\ |/ ___\| | \/ \ / _ \
/ Y \ | \/ / | \ | \/| | | \ \___| | / | ( <_> )
\____|__ /__| \___... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Lufaise_Meadows/mobs/Splinterspine_Grukjuk.lua | 37 | 1181 | -----------------------------------
-- Area: Lufaise Meadows (24)
-- Mob: Splinterspine_Grukjuk
-----------------------------------
package.loaded["scripts/zones/Lufaise_Meadows/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scri... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/divine_sword_+1.lua | 16 | 1039 | -----------------------------------------
-- ID: 16826
-- Item: Divine Sword +1
-- Additional Effect: Light Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
---------------------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/The_Shrine_of_RuAvitau/mobs/Kirin.lua | 23 | 3674 | -----------------------------------
-- Area: The Shrine of Ru'Avitau
-- NPC: Kirin
-----------------------------------
package.loaded[ "scripts/zones/The_Shrine_of_RuAvitau/TextIDs" ] = nil;
-----------------------------------
require( "scripts/zones/The_Shrine_of_RuAvitau/TextIDs" );
require( "scripts/global... | gpl-3.0 |
JacobFischer/Joueur.lua | joueur/utilities/string.lua | 3 | 8336 | -- extensions/string - add more string functions
-- @author Jacob Fischer, jacob.t.fischer@gmail.com
---
-- splits the string by pattern a maxsplit number of time.
-- @param s string to split
-- @param pattern string pattern to split between, will not be part of returned strings
-- @param maxsplit (Optional) max times... | mit |
kitala1/darkstar | scripts/globals/items/serving_of_salmon_roe.lua | 35 | 1341 | -----------------------------------------
-- ID: 5218
-- Item: serving_of_salmon_roe
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 8
-- Magic 8
-- Dexterity 2
-- Mind -1
-----------------------------------------
require("scripts/globals/status");
-------------------... | gpl-3.0 |
crabman77/minetest-minetestforfun-server | mods/unified_inventory/group.lua | 8 | 4112 | local S = unified_inventory.gettext
function unified_inventory.canonical_item_spec_matcher(spec)
local specname = ItemStack(spec):get_name()
if specname:sub(1, 6) == "group:" then
local group_names = specname:sub(7):split(",")
return function (itemname)
local itemdef = minetest.registered_items[itemname]
f... | unlicense |
crabman77/minetest-minetestforfun-server | mods/mesecons/mesecons_switch/init.lua | 13 | 1208 | -- mesecons_switch
mesecon.register_node("mesecons_switch:mesecon_switch", {
paramtype2="facedir",
description="Switch",
sounds = default.node_sound_stone_defaults(),
on_rightclick = function (pos, node)
if(mesecon.flipstate(pos, node) == "on") then
mesecon.receptor_on(pos)
else
mesecon.receptor_off(pos)... | unlicense |
kitala1/darkstar | scripts/zones/Windurst_Woods/npcs/Tesch_Garanjy.lua | 36 | 4446 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Tesch_Garanjy
-- Armor Storage NPC
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/armorstorage"... | gpl-3.0 |
Nukesor/ShapeRape | src/states/gameOverState.lua | 1 | 1152 | GameOverState = class("GameOverState", State)
function GameOverState:load()
self.engine = Engine()
self.eventmanager = EventManager()
self.eventmanager:addListener("KeyPressed", {MenuNavigationSystem, MenuNavigationSystem.fireEvent})
self.menupoints = {{"Restart", function() stack:popload() end},
... | gpl-3.0 |
d-o/LUA-LIB | src/rinLibrary/display/D840.lua | 2 | 4070 | -------------------------------------------------------------------------------
-- D840 LCD Services
-- Functions to add the D840 LCD to the display fields
-- @module rinLibrary.display.D840
-- @author Merrick Heley
-- @copyright 2015 Rinstrum Pty Ltd
--------------------------------------------------------------------... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.