repo_name stringlengths 6 69 | path stringlengths 6 178 | copies stringclasses 278
values | size stringlengths 4 7 | content stringlengths 671 917k | license stringclasses 15
values |
|---|---|---|---|---|---|
Ninjistix/darkstar | scripts/zones/West_Ronfaure/npcs/Phairet.lua | 5 | 2269 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Phairet
-- Involved in Quest: The Trader in the Forest
-- !pos -57 -1 -501 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
requi... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Newton_Movalpolos/npcs/Furnace_Hatch.lua | 4 | 1279 | -----------------------------------
-- Area: Newton Movalpolos
-- NPC: Furnace_Hatch
-----------------------------------
package.loaded["scripts/zones/Newton_Movalpolos/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Newton_Movalpolos/TextIDs");
require("scripts/zones/Newton_Movalpolos/MobI... | gpl-3.0 |
chroteus/clay | misc/dialogBox.lua | 1 | 6631 | DialogBox = Base:subclass("DialogBox")
local padding = 5
function DialogBox:initialize(text, ...)
local argFunc = {...}
self.width = 350
self.height = 150
self.x = the.screen.width/2-self.width/2
self.y = the.screen.height/2-self.height/2
self.hideFunc = nil -- Defined in show() metho... | gpl-2.0 |
Ninjistix/darkstar | scripts/globals/items/elshimo_frog.lua | 3 | 1225 | -----------------------------------------
-- ID: 4290
-- Item: elshimo_frog
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Agility 2
-- Mind -4
-- Evasion 5
-----------------------------------------
require("scripts/globals/status");
---------------------------------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Northern_San_dOria/npcs/Ailbeche.lua | 5 | 7405 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Ailbeche
-- Starts and Finishes Quest: Father and Son, Sharpening the Sword, A Boy's Dream (start)
-- @zone 231
-- !pos 4 -1 24
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
----------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/foe_requiem_ii.lua | 5 | 1801 | -----------------------------------------
-- Spell: Foe Requiem II
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end... | gpl-3.0 |
shadobaker/tabchi- | 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-3.0 |
wounds1/zaza2 | plugins/kickme.lua | 5 | 1221 | local function run(msg, matches)
if matches[1] == 'مغادره' then
local hash = 'kick:'..msg.to.id..':'..msg.from.id
redis:set(hash, "waite")
return '😐 يا حبيبي ('..msg.from.print_name..')\nاذا تريد تطلع من المجموعه\nدز نعم حتى اطردك لو دز لا حتى اعوفك هنا اوكك 🖖🏿🌚'
end
if msg.text then
l... | gpl-2.0 |
premake/premake-4.x | src/actions/vstudio/vs2013.lua | 4 | 1490 | --
-- vs2013.lua
-- Baseline support for Visual Studio 2013.
-- Copyright (c) 2013 Jason Perkins and the Premake project
--
premake.vstudio.vc2013 = {}
local vc2013 = premake.vstudio.vc2013
local vstudio = premake.vstudio
---
-- Register a command-line action for Visual Studio 2013.
---
newaction
{
trigger... | bsd-3-clause |
Ninjistix/darkstar | scripts/zones/Southern_San_dOria/npcs/Nenne.lua | 5 | 1795 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Nenne
-- Starts and Finishes Quest: To Cure a Cough
-- @zone 230
-- !pos -114 -6 102
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/global... | gpl-3.0 |
shahin7aj/shxt | bot/permissions.lua | 43 | 1333 | local sudos = {
"plugins",
"rank_admin",
"bot",
"lang_install",
"set_lang",
"tosupergroup",
"gban_installer"
}
local admins = {
"rank_mod",
"gban",
"ungban",
"setrules",
"setphoto",
"creategroup",
"setname",
"addbots",
"setlink",
"rank_guest",
"description",
"export_... | gpl-2.0 |
premake/premake-4.x | src/base/validate.lua | 70 | 2531 | --
-- validate.lua
-- Tests to validate the run-time environment before starting the action.
-- Copyright (c) 2002-2009 Jason Perkins and the Premake project
--
--
-- Performs a sanity check of all of the solutions and projects
-- in the session to be sure they meet some minimum requirements.
--
function premake.c... | bsd-3-clause |
LuaDist2/llui | src/evdev.lua | 3 | 4883 |
local LIB_libevdev = require("evdev_ffi")
local exports = {
LIB_libevdef = LIB_libevdev;
libevdev_new = LIB_libevdev.libevdev_new;
libevdev_new_from_fd = LIB_libevdev.libevdev_new_from_fd;
libevdev_free = LIB_libevdev.libevdev_free;
libevdev_set_log_function = LIB_libevdev.libevdev_set_log_funct... | mit |
Ninjistix/darkstar | scripts/zones/Zeruhn_Mines/Zone.lua | 5 | 2001 | -----------------------------------
--
-- Zone: Zeruhn_Mines (172)
--
-----------------------------------
package.loaded["scripts/zones/Zeruhn_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/zone");
require("scripts/zones/Zeruhn_Mines/TextIDs");
---... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Davoi/npcs/!.lua | 5 | 2302 | -----------------------------------
-- Area: Davoi
-- NPC: !
-- Involved in Mission: The Davoi Report
-- !pos 164 0.1 -21 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/globals/keyite... | gpl-3.0 |
fmassa/torch7 | Tensor.lua | 1 | 16197 | -- additional methods for Storage
local Storage = {}
-- additional methods for Tensor
local Tensor = {}
-- types
local types = {'Byte', 'Char', 'Short', 'Int', 'Long', 'Float', 'Double'}
-- tostring() functions for Tensor and Storage
local function Storage__printformat(self)
local intMode = true
local type = t... | bsd-3-clause |
silky/dream-art | deepdream.lua | 1 | 4796 | #!/usr/bin/env th
-- Original by @eladhoffer at https://github.com/eladhoffer/DeepDream.torch.
-- Modifications by @bamos at https://github.com/bamos/dream-art.
-- Both licensed under the MIT license.
require 'torch'
require 'nn'
require 'image'
require 'optim'
torch.setdefaulttensortype('torch.DoubleTensor')
local ... | mit |
ASHRAF97/ASHRAFKASPER | plugins/setwelcome.lua | 20 | 1696 |
local function run(msg, matches, callback, extra)
local data = load_data(_config.moderation.data)
local group_welcome = data[tostring(msg.to.id)]['group_welcome']
-------------------------- Data Will be save on Moderetion.json
if matches[1] == 'حذف الترحيب' and not matches[2] and is_owner(msg) then
dat... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Sacrificial_Chamber/bcnms/jungle_boogymen.lua | 5 | 1757 | -----------------------------------
-- Area: Sacrificial Chamber
-- Name: jungle_boogymen
-- BCNM60
-----------------------------------
package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Sacrificial_Chamber/TextIDs");
-----------------------... | gpl-3.0 |
ahmetabdi/JC2-MP-Racing | server/sStatsCompatibility.lua | 2 | 3047 | ----------------------------------------------------------------------------------------------------
-- Manages backward compatibility. If a database from an old Racing version is loaded, it is
-- converted to use the new version. In theory, /all/ database versions are compatible with the
-- newest version of Racing.
-... | mit |
Ninjistix/darkstar | scripts/zones/Eastern_Altepa_Desert/npcs/Eaulevisat_RK.lua | 3 | 2978 | -----------------------------------
-- Area: Eastern Altepa desert
-- NPC: Eaulevisat, R.K.
-- Outpost Conquest Guards
-- !pos -257 8 -249 114
------------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
--------------------------------------
require("scripts/globals/conque... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Mhaura/npcs/Pikini-Mikini.lua | 5 | 1178 | -----------------------------------
-- Area: Mhaura
-- NPC: Pikini-Mikini
-- Standard Merchant NPC
-- !pos -48 -4 30 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/Mhaura/TextIDs")... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Sauromugue_Champaign/npcs/qm2.lua | 5 | 2542 | -----------------------------------
-- Area: Sauromugue Champaign
-- NPC: qm2 (???) (Tower 2)
-- Involved in Quest: THF AF "As Thick As Thieves"
-- !pos 196.830 31.300 206.078 120
-----------------------------------
package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
premake/premake-4.x | tests/actions/make/test_make_pch.lua | 3 | 2376 | --
-- tests/actions/make/test_make_pch.lua
-- Validate the setup for precompiled headers in makefiles.
-- Copyright (c) 2010 Jason Perkins and the Premake project
--
T.make_pch = { }
local suite = T.make_pch
local _ = premake.make.cpp
--
-- Setup and teardown
--
local sln, prj, cfg
function suite.setup()
sln... | bsd-3-clause |
Ninjistix/darkstar | scripts/globals/spells/bluemagic/blank_gaze.lua | 4 | 1415 | -----------------------------------------
-- Spell: Blank Gaze
-- Removes one beneficial magic effect from an enemy
-- Spell cost: 25 MP
-- Monster Type: Beasts
-- Spell Type: Magical (Light)
-- Blue Magic Points: 2
-- Stat Bonus: None
-- Level: 38
-- Casting Time: 3 seconds
-- Recast Time: 10 seconds
-- Magic Bursts o... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Meriphataud_Mountains/npcs/qm1.lua | 5 | 1061 | -----------------------------------
-- Area: Meriphataud Mountains
-- NPC: qm1 (???)
-- Involved in Quest: The Holy Crest
-- !pos 641 -15 7 119
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Meriphataud... | gpl-3.0 |
premake/premake-4.x | tests/baking/test_merging.lua | 57 | 2096 | --
-- tests/baking/test_merging.lua
-- Verifies different field types are merged properly during baking.
-- Copyright (c) 2011 Jason Perkins and the Premake project
--
T.baking_merging = { }
local suite = T.baking_merging
--
-- Setup code
--
local sln, prj, cfg
function suite.setup()
sln = solution "MySolution... | bsd-3-clause |
TRex22/hawkthorne-journey | src/vendor/hardoncollider/vector-light.lua | 4 | 3067 | --[[
Copyright (c) 2012 Matthias Richter
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribu... | mit |
TEAMvirus/ViRuS | plugins/Owners.lua | 20 | 23763 | 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)]['settings'... | gpl-2.0 |
dmekersa/create2Dmobilegames | PhysicBalls/main.lua | 1 | 1894 | -----------------------------------------------------------------------------------------
--
-- main.lua
--
-----------------------------------------------------------------------------------------
-- Your code here
-----------------------------------------------------------------------------------------
--
-- main.l... | unlicense |
wangyi0226/skynet | lualib/skynet/inject.lua | 21 | 1445 | local function getupvaluetable(u, func, unique)
local i = 1
while true do
local name, value = debug.getupvalue(func, i)
if name == nil then
return
end
local t = type(value)
if t == "table" then
u[name] = value
elseif t == "function" then
if not unique[value] then
unique[value] = true
getu... | mit |
Ninjistix/darkstar | scripts/zones/Southern_San_dOria/npcs/Diary.lua | 5 | 1814 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Diary
-- Involved in Quest: To Cure a Cough
-- @zone 230
-- !pos -75 -12 65
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/setting... | gpl-3.0 |
chroteus/clay | lib/gui.lua | 1 | 9181 | -- Small GUI lib.
require("lib.middleclass")
Button = class("Button")
-- Button class: Base class for other buttons.
-- Not to be used by itself.
guiColors = {
bg = {255,255,255,200},
fg = {20,20,20}
}
function guiRect(x,y,width,height)
love.graphics.setColor(guiColors.bg)
love.graphics.rectangle("f... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/West_Ronfaure/npcs/Vilatroire.lua | 5 | 1247 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Vilatroire
-- Involved in Quests: "Introduction To Teamwork", "Intermediate Teamwork",
-- "Advanced Teamwork"
-- !pos -260.361 -70.999 423.420 100
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/West_Ronfau... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/items/inferno_sword.lua | 7 | 1036 | -----------------------------------------
-- ID: 16594
-- Item: Inferno Sword
-- Additional Effect: Fire Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------
function onAdditionalEffect(... | gpl-3.0 |
backburn/Probably | system/core/dsl.lua | 1 | 7797 | -- ProbablyEngine Rotations - https://probablyengine.com/
-- Released under modified BSD, see attached LICENSE.
ProbablyEngine.dsl = {
}
local comparator_table = { }
local parse_table = { }
ProbablyEngine.dsl.getConditionalSpell = function(dsl, spell)
-- check if we are passing a spell with the conditional
if s... | bsd-3-clause |
Ninjistix/darkstar | scripts/zones/Grand_Palace_of_HuXzoi/npcs/_iyq.lua | 5 | 1182 | -----------------------------------
-- Area: Grand Palace of Hu'Xzoi
-- NPC: cermet portal
-- !pos 440 0 401 34
-----------------------------------
package.loaded["scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Grand_Palace_of_HuXzoi/TextIDs");
require(... | gpl-3.0 |
scan-bot/scan-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 |
amir1213/tamir | 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 |
mamad-ali/xilibot | 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 |
MoltenPlastic/nersis | luajit/src/jit/p.lua | 65 | 9092 | ----------------------------------------------------------------------------
-- LuaJIT profiler.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
-- This modul... | mit |
Ninjistix/darkstar | scripts/globals/weaponskills/wheeling_thrust.lua | 25 | 1603 | -----------------------------------
-- Wheeling Thrust
-- Polearm weapon skill
-- Skill Level: 225
-- Ignores enemy's defense. Amount ignored varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Flame Gorget & Light Gorget.
-- Aligned with the Flame Belt & Light Belt.
-- Element: None
-- Modifiers: STR:... | gpl-3.0 |
SharpWoW/Chocobo | ChocoboSoundControl.lua | 1 | 13296 | --[[
Copyright (c) 2010-2020 by Adam Hellberg
This file is part of Chocobo.
Chocobo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your op... | gpl-3.0 |
scan-bot/scan-bot | 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 |
area31/telegram-bot | 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 |
mt246/mt24679 | 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 |
Ninjistix/darkstar | scripts/zones/Jugner_Forest/npcs/Geruru_WW.lua | 3 | 2965 | -----------------------------------
-- Area: Jugner Forest
-- NPC: Geruru, W.W.
-- Type: Border Conquest Guards
-- !pos 570.732 -2.637 553.508 104
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
re... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/temper.lua | 5 | 1132 | -----------------------------------------
--
-- Spell: Temper
--
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
... | gpl-3.0 |
dafei2015/hugular_cstolua | Client/Assets/Lua/core/containers.lua | 15 | 2284 | --
--------------------------------------------------------------------------------
-- FILE: containers.lua
-- DESCRIPTION: protoc-gen-lua
-- Google's Protocol Buffers project, ported to lua.
-- https://code.google.com/p/protoc-gen-lua/
--
-- Copyright (c) 2010 , 林卓毅 (Zhuoyi Lin) netsnail@gmail.com
-... | mit |
TRex22/hawkthorne-journey | src/positions/vicki.lua | 2 | 4173 | return {
hand_right = {
{ {-8, 40}, {-6, 34}, {-6, 35}, {-6, 34}, {0, 0}, {-8, 40}, {-8, 40}, {-8, 39}, {-8, 39}, {-9, 39}, {-4, 38}, {6, 35}, },
{ {-8, 40}, {-5, 35}, {-5, 36}, {-5, 35}, {0, 0}, {-8, 40}, {-8, 40}, {11, 37}, {11, 37}, {10, 37}, {2, 38}, {9, 39}, },
{ {-6, 38}, {0, 0}, {0, 0}, {-16,... | mit |
neofob/sile | lua-libraries/repl/console.lua | 7 | 1954 | -- Copyright (c) 2011-2014 Rob Hoelz <rob@hoelz.ro>
--
-- 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,... | mit |
Moe-/shootris | level.lua | 1 | 15544 | require('particle')
class "Level" {
width = 10;
height = 17;
shipHitPerSec = 0.667;
shotHit = 0.2;
particles = {};
rowParticles = {};
particleSystemCount = 15;
rowParticleSystemCount = 20;
par = nil;
}
function Level:__init(tileWidth, tileHeight)
self.tileWidth = tileWidth
self.tileHeight = tile... | gpl-2.0 |
Armin041/antiflood | 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 |
spam999/teleanony | 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 |
scan-bot/scan-bot | plugins/boobs.lua | 731 | 1601 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
hamrah12/hamrah_shoma | plugins/boobs.lua | 731 | 1601 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Windurst_Woods/npcs/Ponono.lua | 5 | 1810 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Ponono
-- Type: Clothcraft Guild Master
-- !pos -38.243 -2.25 -120.954 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Windurst_Woods/Text... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/items/bowl_of_quadav_stew.lua | 3 | 1026 | -----------------------------------------
-- ID: 4569
-- Item: Bowl of Quadav Stew
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Agility -4
-- Vitality 2
-- Defense % 17
-- Defense Cap 60
-----------------------------------------
require("scripts/globals/status");
----------------------... | gpl-3.0 |
mandersan/premake-core | modules/d/tools/gdc.lua | 3 | 7270 | --
-- d/tools/gdc.lua
-- Provides GDC-specific configuration strings.
-- Copyright (c) 2013-2015 Andrew Gough, Manu Evans, and the Premake project
--
local p = premake
p.tools.gdc = { }
local gdc = p.tools.gdc
local project = p.project
local config = p.config
local d = p.modules.d
--
-- Set default tools
--... | bsd-3-clause |
otservme/global1051 | data/talkactions/scripts/kills.lua | 14 | 1396 | function onSay(cid, words, param)
local player = Player(cid)
local fragTime = configManager.getNumber(configKeys.FRAG_TIME)
if fragTime <= 0 then
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You do not have any unjustified kill.")
return false
end
local skullTime = player:getSkullTime()
if skullTime... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Aligi-Kufongi.lua | 5 | 2744 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Aligi-Kufongi
-- Title Change NPC
-- !pos -23 -21 15 26
-----------------------------------
require("scripts/globals/titles");
local title2 = { TAVNAZIAN_SQUIRE ,PUTRID_PURVEYOR_OF_PUNGENT_PETALS , MONARCH_LINN_PATROL_GUARD , SIN_HUNTER_HUNTER , ... | gpl-3.0 |
dinodeck/ninety_nine_days_of_dev | 006_magic_menu/code/Stats.lua | 10 | 1057 | Stats = {}
Stats.__index = Stats
function Stats:Create(stats)
local this =
{
mBase = {},
mModifiers = {}
}
-- Shallow copy
for k, v in pairs(stats) do
this.mBase[k] = v
end
setmetatable(this, self)
return this
end
function Stats:GetBase(id)
return self.mBas... | mit |
mandersan/premake-core | tests/base/test_os.lua | 8 | 9046 | ---
-- tests/base/test_os.lua
-- Automated test suite for the new OS functions.
-- Copyright (c) 2008-2017 Jason Perkins and the Premake project
---
local suite = test.declare("base_os")
local cwd
function suite.setup()
cwd = os.getcwd()
os.chdir(_TESTS_DIR)
end
function suite.teardown()
... | bsd-3-clause |
labjack/I2C-AppNotes | LJM_Library/Gyro-L3GD20H/lua/L3GD20H Gyro .1.lua | 1 | 4278 | --This is an example that uses the LSM303DLHC Accelerometer & Magnetometer on the I2C Bus on EIO4(SCL) and EIO5(SDA)
--outputs data to:
--X accel = 46006
--Y accel = 46008
--Z accel = 46010
I2C_Utils= {}
function I2C_Utils.configure(self, sda, scl, speed, options, slave, debug)--Returns nothing
self.sda = sda --FIO0:... | mit |
wendlers/edubot-nodemcu-fw | firmware/lua/robot.lua | 1 | 1366 | -- EDU Bot NodeMCU Lua firmware, 2016 sw@kaltpost.de
-- MIT License (MIT)
-- See LICENSE file for details
require("gear")
robot = {}
function robot.init()
gear.init()
rf.init()
end
function robot.drive(speed_a, speed_b)
local dir_a = 0
local dir_b = 0
-- limit values to what makes sense (0..100%)
if speed_... | mit |
davidbuzz/ardupilot | libraries/AP_Scripting/examples/copter-nav-script-time.lua | 11 | 3416 | -- Copter perform a simple maneuver in response to a NAV_SCRIPT_TIME mission command while the vehicle is in Auto mode
--
-- Create a simple mission like below
-- TAKEOFF, Alt:10m
-- NAV_SCRIPT_TIME, command=0 (not used in this script), timeout=30 (seconds), arg1=5 (square width in meters), arg2=10 (square height in me... | gpl-3.0 |
wangyi0226/skynet | examples/watchdog.lua | 3 | 1259 | local skynet = require "skynet"
local CMD = {}
local SOCKET = {}
local gate
local agent = {}
function SOCKET.open(fd, addr)
skynet.error("New client from : " .. addr)
agent[fd] = skynet.newservice("agent")
skynet.call(agent[fd], "lua", "start", { gate = gate, client = fd, watchdog = skynet.self() })
end
local fun... | mit |
Ninjistix/darkstar | scripts/globals/items/plate_of_mushroom_paella_+1.lua | 3 | 1122 | -----------------------------------------
-- ID: 5971
-- Item: Plate of Mushroom Paella +1
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- HP 43
-- Mind 6
-- Magic Accuracy 6
-- Undead Killer 6
-----------------------------------------
require("scripts/globals/status");
-------------------... | gpl-3.0 |
yuryleb/osrm-backend | third_party/flatbuffers/samples/lua/MyGame/Sample/Monster.lua | 17 | 3936 | -- automatically generated by the FlatBuffers compiler, do not modify
-- namespace: Sample
local flatbuffers = require('flatbuffers')
local Monster = {} -- the module
local Monster_mt = {} -- the class metatable
function Monster.New()
local o = {}
setmetatable(o, {__index = Monster_mt})
return o
end
fun... | bsd-2-clause |
Ninjistix/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Kemha_Flasehp.lua | 3 | 1968 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Kemha Flasehp
-- Type: Fishing Normal/Adv. Image Support
-- !pos -28.4 -6 -98 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/mobskills/cryo_jet.lua | 33 | 1279 | ---------------------------------------------------
-- Cryo_Jet
-- Description:
-- Type: Magical
-- additional effect : Paralyze
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
-------------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/bluemagic/feather_barrier.lua | 5 | 1200 | -----------------------------------------
-- Spell: Feather Barrier
-- Enhances evasion
-- Spell cost: 29 MP
-- Monster Type: Birds
-- Spell Type: Magical (Wind)
-- Blue Magic Points: 2
-- Stat Bonus: None
-- Level: 56
-- Casting Time: 2 seconds
-- Recast Time: 120 seconds
-- Duration: 30 Seconds
--
-- Combos: Resist G... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Throne_Room/mobs/Volker.lua | 7 | 1463 | -----------------------------------
-- Area: Throne Room
-- MOB: Volker
-- Ally during Bastok Mission 9-2
-----------------------------------
package.loaded["scripts/zones/Throne_Room/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Throne_Room/TextIDs");
require("scripts/zones/Throne_Room/M... | gpl-3.0 |
carnalis/Urho3D | Source/ThirdParty/toluapp/src/bin/lua/define.lua | 43 | 1317 | -- tolua: define class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: define.lua,v 1.2 1999/07/28 22:21:08 celes Exp $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide ... | mit |
DarkRing/TeleDarkRing | bot/utils.lua | 473 | 24167 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
mamad-majhol/TeleSecret | bot/utils.lua | 473 | 24167 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
neofob/sile | lua-libraries/vstruct/api.lua | 7 | 1999 | local vstruct = require "vstruct"
local cursor = require "vstruct.cursor"
local ast = require "vstruct.ast"
local lua52 = tonumber(_VERSION:match"%d+%.%d+") >= 5.2
local loadstring = lua52 and load or loadstring
local _unpack = table.unpack or unpack
local api = {}
vstruct.registry = {}
function api.check_arg(calle... | mit |
dinodeck/ninety_nine_days_of_dev | 007_map_cure/code/Save.lua | 6 | 2491 | Save =
{
mSaveGame = SaveGame.Create("save.dat")
}
function Save:Copy(source)
if type(source) == "table" then
return DeepClone(source)
else
return source
end
end
function Save:ExtractEach(t, scheme)
local data = {}
for k, v in pairs(t) do
data[k] = Save:Extract(v, schem... | mit |
ccyphers/kong | kong/plugins/udp-log/handler.lua | 5 | 1274 | local BasePlugin = require "kong.plugins.base_plugin"
local serializer = require "kong.plugins.log-serializers.basic"
local cjson = require "cjson"
local timer_at = ngx.timer.at
local udp = ngx.socket.udp
local UdpLogHandler = BasePlugin:extend()
UdpLogHandler.PRIORITY = 1
local function log(premature, conf, str)
... | apache-2.0 |
Ninjistix/darkstar | scripts/zones/Dynamis-Xarcabard/npcs/qm1.lua | 5 | 1037 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: ??? (Spawn when mega is defeated)
-----------------------------------
package.loaded["scripts/zones/Dynamis-Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/keyitems");
requi... | gpl-3.0 |
eugenesan/openwrt-luci | libs/httpclient/luasrc/httpclient/receiver.lua | 93 | 6049 | --[[
LuCI - Lua Development Framework
Copyright 2009 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 may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
requ... | apache-2.0 |
Ninjistix/darkstar | scripts/globals/weaponskills/gate_of_tartarus.lua | 3 | 1932 | -----------------------------------
-- Gate Of Tartarus
-- Staff weapon skill
-- Skill Level: N/A
-- Lowers target's attack. Additional effect: Refresh
-- Refresh effect is 8mp/tick for 20 sec per 100 TP.
-- Available only when equipped with the Relic Weapons Thyrus (Dynamis use only) and Claustrum, or the Chthonic Sta... | gpl-3.0 |
chroteus/clay | class/base.lua | 1 | 1491 | Base = class("Base")
function Base:initialize()
end
function Base:clone()
-- Clone method: A method which takes an instance and clones it.
-- Used in cases where we want multiple clones (like Cells).
-- Used to separate the data, so that change in one clone won't affect another one.
local t = {}
f... | gpl-2.0 |
chroteus/clay | states/battle.lua | 1 | 8878 | battle = {}
local padding = 40
local fixedHeight = 250
local barWidth, barHeight = 200, 30
local energyTime = 0.5
function battle.start(player, enemy) -- Sets opponents, and switches to battle gamestate.
battle.player = nameToCountry(player)
battle.enemy = nameToCountry(enemy)
-- controlling random events
battl... | gpl-2.0 |
Ninjistix/darkstar | scripts/globals/weaponskills/decimation.lua | 25 | 1538 | -----------------------------------
-- Decimation
-- Axe weapon skill
-- Skill level: 240
-- In order to obtain Decimation, the quest Axe the Competition must be completed.
-- Delivers a three-hit attack. params.accuracy varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Flame Gorget, Light Gorget & A... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/weaponskills/gust_slash.lua | 23 | 1283 | -----------------------------------
-- Gust Slash
-- Dagger weapon skill
-- Skill level: 40
-- Deals wind elemental damage. Damage varies with TP.
-- Will not stack with Sneak Attack.
-- Aligned with the Breeze Gorget.
-- Aligned with the Breeze Belt.
-- Element: Wind
-- Modifiers: DEX:20% ; INT:20%
-- 100%TP 200%TP... | gpl-3.0 |
hvbommel/domoticz | scripts/dzVents/examples/simple room heating with hysteresis control.lua | 19 | 3118 | -- assumptions:
-- the setpoint is set by a selector dummy device where the values are numeric temperatures
-- but you can easily change it to a setpoint device
local BOILER_DEVICE = 'Boiler' -- switch device
local SETPOINT_DEVICE = 'Setpoint' -- selector dummy device
local TEMPERATURE_SENSOR = 'Temperature'
local HYS... | gpl-3.0 |
mamad-ali/xilibot | plugins/domaintools.lua | 359 | 1494 | local ltn12 = require "ltn12"
local https = require "ssl.https"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function check(name)
local api = "https://domainsearch.p.mashape.com/index.php?"... | gpl-2.0 |
eugenesan/openwrt-luci | applications/luci-watchcat/luasrc/model/cbi/watchcat/watchcat.lua | 30 | 2105 | --[[
LuCI - Lua Configuration Interface
Copyright 2012 Christian Gagneraud <chris@techworks.ie>
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$
]]... | apache-2.0 |
wangyi0226/skynet | service/debug_console.lua | 3 | 11189 | local skynet = require "skynet"
local codecache = require "skynet.codecache"
local core = require "skynet.core"
local socket = require "skynet.socket"
local snax = require "skynet.snax"
local memory = require "skynet.memory"
local httpd = require "http.httpd"
local sockethelper = require "http.sockethelper"
local arg ... | mit |
mamad-ali/xilibot | plugins/webshot.lua | 919 | 1473 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
header... | gpl-2.0 |
mandersan/premake-core | modules/vstudio/vs2010_vcxproj.lua | 3 | 67664 | --
-- vs2010_vcxproj.lua
-- Generate a Visual Studio 201x C/C++ project.
-- Copyright (c) Jason Perkins and the Premake project
--
local p = premake
p.vstudio.vc2010 = {}
local vstudio = p.vstudio
local project = p.project
local config = p.config
local fileconfig = p.fileconfig
local tree = p.tree
local m = ... | bsd-3-clause |
Microeinstein/ComputerCraftLibs | stdturtle.lua | 1 | 2963 | --STD addon for Turtles by Microeinstein
loadfile("std")()
__turtle = {}
if not turtle then
error("This is not a turtle.")
end
turtle.faces = turtle.faces or {
N = 0,
E = 1,
S = 2,
W = 3,
U = 4,
D = 5
}
turtle.side = turtle.side or 0
turtle.oldSlot = turtle.oldSlot or {x = 1, y = 1}
turtle.slot = turtle.slot... | mit |
hamrah12/hamrah_shoma | plugins/time.lua | 771 | 2865 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://m... | gpl-2.0 |
Ninjistix/darkstar | scripts/globals/spells/deodorize.lua | 4 | 1105 | -----------------------------------------
-- Spell: Deodorize
-- Lessens chance of being detected by smell.
-- Duration is random number between 30 seconds and 5 minutes
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/msg");
fun... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/items/chunk_of_goblin_chocolate.lua | 3 | 1093 | -----------------------------------------
-- ID: 4495
-- Item: chunk_of_goblin_chocolate
-- Food Effect: 3Min, All Races
-----------------------------------------
-- Health Regen While Healing 5
-- Lizard Killer 10
-- Petrify resistance +10
-----------------------------------------
require("scripts/globals/status");
--... | gpl-3.0 |
dinodeck/ninety_nine_days_of_dev | 006_magic_menu/code/Panel.lua | 7 | 3565 |
--
-- params =
-- {
-- texture = [texture],
-- size = [size of a single tile in pixels]
-- }
--
--
Panel = {}
Panel.__index = Panel
function Panel:Create(params)
local this =
{
mTexture = params.texture,
mUVs = GenerateUVs(params.size, params.size, params.texture),
... | mit |
dinodeck/ninety_nine_days_of_dev | 002_bitmap_numbers/code/Panel.lua | 7 | 3565 |
--
-- params =
-- {
-- texture = [texture],
-- size = [size of a single tile in pixels]
-- }
--
--
Panel = {}
Panel.__index = Panel
function Panel:Create(params)
local this =
{
mTexture = params.texture,
mUVs = GenerateUVs(params.size, params.size, params.texture),
... | mit |
shahin7aj/shxt | plugins/moderation.lua | 42 | 30441 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
anonbyte/pvpgn | lua/handle_game.lua | 1 | 1733 | --[[
Copyright (C) 2014 HarpyWar (harpywar@gmail.com)
This file is a part of the PvPGN Project http://pvpgn.pro
Licensed under the same terms as Lua itself.
]]--
-- Global function to handle game create
function handle_game_create(game)
--for i,j in pairs(game) do
-- api.message_send_text(game.owner, message_t... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.