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 |
|---|---|---|---|---|---|
robingroppe/telegram-bot | plugins/plugins.lua | 257 | 4732 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
anupritaisno1/Clannadbot | plugins/plugins/plugins.lua | 257 | 4732 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | agpl-3.0 |
anupritaisno1/Clannadbot | plugins1/plugins1/plugins/plugins.lua | 257 | 4732 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | agpl-3.0 |
Hozu/darkstar | scripts/globals/items/homura_+1.lua | 12 | 1070 | -----------------------------------------
-- ID: 16986
-- Item: Homura +1
-- Additional Effect: Fire Damage
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------
function onAdditionalEffect(player,... | gpl-3.0 |
Hozu/darkstar | scripts/globals/items/cutlet_sandwich.lua | 11 | 1449 | -----------------------------------------
-- ID: 6396
-- Item: cutlet_sandwich
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP +40
-- STR +7
-- INT -7
-- Fire resistance +20
-- Attack +20% (cap 120)
-- Ranged Attack +20% (cap 120)
-----------------------------------------
require("scrip... | gpl-3.0 |
Hozu/darkstar | scripts/zones/Windurst_Woods/npcs/Bopa_Greso.lua | 2 | 1133 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Bopa Greso
-- Type: Standard NPC
-- !pos 59.773 -6.249 216.766 241
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
require("scripts/globals/quests")
-----------------------------------
function onTra... | gpl-3.0 |
Hozu/darkstar | scripts/zones/Kazham-Jeuno_Airship/npcs/Joosef.lua | 11 | 1857 | -----------------------------------
-- Area: Kazham-Jeuno Airship
-- NPC: Joosef
-- Standard Info NPC
-----------------------------------
local ID = require("scripts/zones/Kazham-Jeuno_Airship/IDs");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
local... | gpl-3.0 |
Valansch/RedMew | features/retailer.lua | 1 | 23954 | --[[
The Retailer provides a market replacement GUI with additional
functionality. To register a market, you need the market entity and a name
for the market group:
Retailer.add_market(group_name, market_entity)
If you don't have a group name or don't want to re-use it, you can generate
a grou... | gpl-3.0 |
DevTeeto20/THETETOO_A8 | libs/feedparser.lua | 543 | 11955 | local LOM = assert(require("lxp.lom"), "LuaExpat doesn't seem to be installed. feedparser kind of needs it to work...")
local XMLElement = (loadfile "./libs/XMLElement.lua")()
local dateparser = (loadfile "./libs/dateparser.lua")()
local URL = (loadfile "./libs/url.lua")()
local tinsert, tremove, tconcat = table.insert... | gpl-2.0 |
adamqqqplay/dota2ai | util/MinionUtility.lua | 1 | 32284 | local BotsInit = require( "game/botsinit" );
local MyModule = BotsInit.CreateGeneric();
local npcBot = nil;
local MoveDesire = 0;
local AttackDesire = 0;
local RetreatDesire = 0;
local npcBotAR = 0;
local ProxRange = 1300;
local castWSDesire = 0;
local castTCDesire = 0;
local castSWDesire = 0;
local castMBDesire = 0;
... | gpl-3.0 |
humboldt-xie/xb | client/wxLua/apps/wxluafreeze/src/wxluafreeze.lua | 3 | 3569 | #! ../../bin/lua
-------------------------------------------------------------------------------
-- Name: wxluafreeze.lua
-- Purpose: Append a wxLua script to the wxLuaFreeze executable to run
-- Author: John Labenski
-- Created: 2005
-- Copyright: (c) 2005 John Labenski
-- Licence: wxWidgets... | lgpl-3.0 |
createuniverses/praxis | prods/cauldron/taskstack.lua | 2 | 1642 | setBufferName("taskstack.lua")
taskstack = WidgetLib2.newSimple()
taskstack.tasks = {}
function taskstack.render(o)
glPushMatrix()
glColor(255,255,255,255)
glApplyTransform(transform.camera())
glPushMatrix()
glTranslate(0.1,0.8,1.1)
local s = 0.015
glScale(s*0.7,s,s)
glRotate(-90, 1,0,0)
dr... | mit |
X-Coder/playx | src/PlayX/lua/playx/providers/web.lua | 2 | 1491 | -- PlayX
-- Copyright (c) 2009, 2010 sk89q <http://www.sk89q.com>
--
-- 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 option) any later v... | lgpl-3.0 |
Hozu/darkstar | scripts/globals/items/serving_of_cherry_bavarois_+1.lua | 11 | 1067 | -----------------------------------------
-- ID: 5746
-- Item: serving_of_cherry_bavarois_+1
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- HP 30
-- Intelligence 4
-- MP 15
-- HP Recovered While Healing 4
-----------------------------------------
require("scripts/globals/status")
require("... | gpl-3.0 |
Hozu/darkstar | scripts/zones/Southern_San_dOria/npcs/Carautia.lua | 11 | 1427 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Carautia
-- Standard Merchant NPC
-- !pos 70 0 39 230
-----------------------------------
local ID = require("scripts/zones/Southern_San_dOria/IDs")
require("scripts/globals/npc_util")
require("scripts/globals/quests")
require("scripts/globals/sh... | gpl-3.0 |
noresources/premake-core | modules/vstudio/vs2005_fsproj.lua | 14 | 2611 | --
-- vs2005_fsproj.lua
-- Generate a Visual Studio 2005+ F# project.
-- Copyright (c) Jason Perkins and the Premake project
--
local p = premake
p.vstudio.fs2005 = {}
local vstudio = p.vstudio
local fs2005 = p.vstudio.fs2005
local dotnetbase = p.vstudio.dotnetbase
local project = p.project
local config = p.co... | bsd-3-clause |
hacker44-h44/my-public-work | plugins/owners.lua | 1467 | 12478 |
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 |
SF-TEAM/S | plugins/owners.lua | 1467 | 12478 |
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 |
aqasaeed/seedfix | plugins/owners.lua | 1467 | 12478 |
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 |
Hozu/darkstar | scripts/zones/RuLude_Gardens/npcs/Nomad_Moogle.lua | 11 | 6215 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Nomad Moogle
-- Type: Adventurer's Assistant
-- !pos 10.012 1.453 121.883 243
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/quests");
local ID = require("scripts... | gpl-3.0 |
Hozu/darkstar | scripts/globals/items/serving_of_black_pudding.lua | 11 | 1297 | -----------------------------------------
-- ID: 5552
-- Item: Serving of Black Pudding
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +8
-- MP +5% Cap 25
-- Intelligence +4
-- HP Recovered while healing +1
-- MP Recovered while healing +1
------------------------... | gpl-3.0 |
Hozu/darkstar | scripts/mixins/families/colibri_mimic.lua | 3 | 2775 | --[[
Colibri that copy spells cast on it.
localVar default description
-------- ------- -----------
[colibri]reflect_blue_magic 0 set to 1 for this mob to also reflect blue magic cast on it
https://ffxiclopedia.fandom.com/wiki/Colibri
https://ffxiclo... | gpl-3.0 |
Hozu/darkstar | scripts/globals/weaponskills/numbing_shot.lua | 1 | 1598 | -----------------------------------
-- Numbing Shot
-- Marksmanship weapon skill
-- Skill level: 290
-- Main of sub must be Ranger or Corsair
-- Aligned with the Thunder & Breeze Gorget.
-- Aligned with the Thunder Belt & Breeze Belt.
-- Element: Ice
-- Modifiers: AGI 80%
-- 100%TP 200%TP 300%TP
-- 3.00 3.00... | gpl-3.0 |
Hozu/darkstar | scripts/globals/spells/knights_minne.lua | 2 | 1507 | -----------------------------------------
-- Spell: Knight's Minne I
-- Grants Defense bonus to all allies.
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0... | gpl-3.0 |
avancinirodrigo/terrame | packages/base/tests/database/alternative/Environment.lua | 3 | 5869 | -------------------------------------------------------------------------------------------
-- TerraME - a software platform for multiple scale spatially-explicit dynamic modeling.
-- Copyright (C) 2001-2017 INPE and TerraLAB/UFOP -- www.terrame.org
-- This code is part of the TerraME framework.
-- This framework is f... | lgpl-3.0 |
Hozu/darkstar | scripts/zones/Qulun_Dome/mobs/ZaDha_Adamantking.lua | 11 | 1259 | -----------------------------------
-- Area: Qulun Dome
-- NM: Za'Dha Adamantking
-- TODO: messages should be zone-wide
-----------------------------------
local ID = require("scripts/zones/Qulun_Dome/IDs")
mixins = {require("scripts/mixins/job_special")}
require("scripts/globals/titles")
require("scripts/globals/mob... | gpl-3.0 |
GPUOpen-LibrariesAndSDKs/SSAA11 | premake/amd_premake_util.lua | 8 | 2557 | -- amd_premake_util.lua
-- utility code shared by AMD build scripts
-- _ACTION is a premake global variable and for our usage will be vs2012, vs2013, etc.
-- Strip "vs" from this string to make a suffix for solution and project files.
_AMD_VS_SUFFIX = "_" .. string.gsub(_ACTION, "vs", "")
-- _ACTION is a premake glob... | mit |
adamqqqplay/dota2ai | bot_templar_assassin.lua | 1 | 1656 | local AbilityExtensions = require(GetScriptDirectory().."/util/AbilityAbstraction")
local trapTable = GetBot().trapTable
local function GetCastTime(trap)
if trapTable ~= nil then
return trapTable[AbilityExtensions:ToStringVector(trap:GetLocation())]
end
end
function MinionThink( hMinionUnit )
local npcBot = Get... | gpl-3.0 |
adamqqqplay/dota2ai | ability_item_usage_venomancer.lua | 1 | 12814 | ----------------------------------------------------------------------------
-- Ranked Matchmaking AI v1.3 New Structure
-- Author: adamqqq Email:adamqqq@163.com
----------------------------------------------------------------------------
--------------------------------------
-- General Initialization
---------... | gpl-3.0 |
NotronXteam/Nod32 | plugins/info.lua | 1 | 9082 |
do
local SUDO = 106164433 --put your id here(BOT OWNER ID)
local function setrank(msg, name, value) -- setrank function
local hash = nil
if msg.to.type == 'chat' then
hash = 'rank:'..msg.to.id..':variables'
end
if hash then
redis:hset(hash, name, value)
return send_msg('chat#id'..msg.to.id, 'مقام کا... | gpl-2.0 |
Valansch/RedMew | map_gen/maps/diggy/feature/danger_ore.lua | 1 | 2359 | -- This module prevents all but the allowed items from being built on top of resources
local RestrictEntities = require 'map_gen.shared.entity_placement_restriction'
local Event = require 'utils.event'
local Token = require 'utils.token'
local ScenarioInfo = require 'features.gui.info'
local DangerOre = {}
local func... | gpl-3.0 |
Hozu/darkstar | scripts/zones/Windurst_Woods/Zone.lua | 3 | 1591 | -----------------------------------
--
-- Zone: Windurst_Woods (241)
--
-----------------------------------
local ID = require("scripts/zones/Windurst_Woods/IDs")
require("scripts/globals/events/harvest_festivals")
require("scripts/globals/conquest")
require("scripts/globals/settings")
require("scripts/globals/chocobo"... | gpl-3.0 |
Hozu/darkstar | scripts/globals/atma.lua | 12 | 14026 | -----------------------------------
--
-- dsp.effect.ATMA
--
-- Also used for Voidwatch Atmacite (it is a single effect in the client).
-----------------------------------
require("scripts/globals/keyitems")
require("scripts/globals/status")
-----------------------------------
dsp = dsp or {}
dsp.atma = dsp.atma or {}... | gpl-3.0 |
Hozu/darkstar | scripts/globals/mobskills/corrosive_ooze.lua | 11 | 1260 | ---------------------------------------------------
-- Corrosive Ooze
-- Family: Slugs
-- Description: Deals water damage to an enemy. Additional Effect: Attack Down and Defense Down.
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Radial
-- Notes:
-------------------------------------------... | gpl-3.0 |
yubobarye/pbc | binding/lua/protobuf.lua | 26 | 13259 | local c = require "protobuf.c"
local setmetatable = setmetatable
local type = type
local table = table
local assert = assert
local pairs = pairs
local ipairs = ipairs
local string = string
local print = print
local io = io
local tinsert = table.insert
local rawget = rawget
module "protobuf"
local _pattern_cache = {}... | mit |
Hozu/darkstar | scripts/zones/Temenos/mobs/Water_Elemental.lua | 3 | 1616 | -----------------------------------
-- Area: Temenos E T
-- NPC: Water_Elemental
-----------------------------------
require("scripts/globals/limbus");
-----------------------------------
-- onMobSpawn Action
-----------------------------------
-----------------------------------
-- onMobEngaged
--------------------... | gpl-3.0 |
Hozu/darkstar | scripts/globals/items/serving_of_emperor_roe.lua | 11 | 1033 | -----------------------------------------
-- ID: 4275
-- Item: serving_of_emperor_roe
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 8
-- Magic 8
-- Dexterity 4
-- Mind -4
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
---... | gpl-3.0 |
createuniverses/praxis | prods/Cognitive/util.lua | 1 | 2854 | print2(dbgGetPaddedBorder())
function mkdoifchanger(fn, varfn)
local v = { v = varfn() }
local r = function ()
local nv = varfn()
if nv ~= v.v then
v.v = nv
fn()
end
end
local get = function ()
return v.v
end
return { v = v, doit = r, get = get }
end
print2(getFunction(pr... | mit |
Hozu/darkstar | scripts/zones/Arrapago_Reef/npcs/qm6.lua | 2 | 2701 | -----------------------------------
-- Area: Arrapago Reef
-- NPC: ??? (H-10 / COR boat)
-- Involved in Quests: "Luck of the Draw", "Equipped for All Occasions", "Navigating the Unfriendly Seas"
-- !pos 468.767 -12.292 111.817 54
-----------------------------------
local ID = require("scripts/zones/Arrapago_Reef/IDs")... | gpl-3.0 |
Hozu/darkstar | scripts/zones/Western_Altepa_Desert/npcs/_3h7.lua | 11 | 1263 | -----------------------------------
-- Area: Western Altepa Desert
-- NPC: _3h7 (Emerald Column)
-- Notes: Mechanism for Altepa Gate
-- !pos -775 2 -460 125
-----------------------------------
local ID = require("scripts/zones/Western_Altepa_Desert/IDs")
require("scripts/globals/status")
------------------------------... | gpl-3.0 |
Hozu/darkstar | scripts/zones/Kazham/npcs/Tatapp.lua | 2 | 11796 | -----------------------------------
-- Area: Kazham
-- NPC: Tatapp
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/pathfind");
local path =
{
15.005042, -8.000000, -104.349953,
14.694142, -8.000000, -103.382622,
14.346356, -8.000000, -102.330627,
14.005146, -8.000... | gpl-3.0 |
mrjalta/mr-jalta1 | plugins/en-anti_media.lua | 7 | 1616 | do
local function pre_process(msg)
local jalal = msg['id']
local user = msg.from.id
local chat = msg.to.id
local oscar = 'mate:'..msg.to.id
if redis:get(oscar) and msg.media and not is_momod(msg) then
delete_msg(msg.id, ok_cb, false)
local test = "عزيزي~["..msg.from.first_name.."]".."\n"... | gpl-2.0 |
atramos/RawPlusJpeg | RawPlusJpeg.lrplugin/Framework/Gui/Gui.lua | 1 | 5422 | --[[
Gui.lua
--]]
local Gui, dbg = Object:newClass{ className = 'Gui' }
Gui.moduleNames = { "Library", "Develop" } -- these are the only ones used.
--- Constructor for extending class.
--
function Gui:newClass( t )
return Object.newClass( self, t )
end
--- Constructor for new instance.
--
function ... | artistic-2.0 |
Hozu/darkstar | scripts/zones/Dynamis-San_dOria/mobs/Overlords_Tombstone.lua | 2 | 1179 | -----------------------------------
-- Area: Dynamis San d'Oria
-- MOB: Overlord's Tombstone
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/dynamis");
-----------------------------------
function onMobEngaged(mob,target)
SpawnMob(17535350):updateEnmity(target); -- ... | gpl-3.0 |
Hozu/darkstar | scripts/globals/items/alabaligi.lua | 11 | 1048 | -----------------------------------------
-- ID: 5461
-- Item: Alabaligi
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
--------------------------------------... | gpl-3.0 |
tibera/yurots | data/migrations/4.lua | 58 | 1155 | function onUpdateDatabase()
print("> Updating database to version 5 (black skull & guild wars)")
db.query("ALTER TABLE `players` CHANGE `redskull` `skull` TINYINT(1) NOT NULL DEFAULT '0', CHANGE `redskulltime` `skulltime` INT(11) NOT NULL DEFAULT '0'")
db.query("CREATE TABLE IF NOT EXISTS `guild_wars` ( `id` int(11)... | gpl-2.0 |
vsky279/nodemcu-firmware | lua_examples/ucglib/GT_triangle.lua | 7 | 1150 | -- luacheck: globals T r disp millis lcg_rnd
local M, module = {}, ...
_G[module] = M
function M.run()
-- make this a volatile module:
package.loaded[module] = nil
print("Running component triangle...")
local m
disp:setColor(0, 0, 80, 20)
disp:setColor(1, 60, 80, 20)
disp:setColor(2, 60... | mit |
Hozu/darkstar | scripts/commands/getskill.lua | 14 | 1882 | ---------------------------------------------------------------------------------------------------
-- func: getskill <skill name or ID> <target>
-- desc: returns target's level of specified skill
---------------------------------------------------------------------------------------------------
require("scripts/global... | gpl-3.0 |
avancinirodrigo/terrame | packages/gis/tests/functional/alternative/Project.lua | 2 | 5801 | -------------------------------------------------------------------------------------------
-- TerraME - a software platform for multiple scale spatially-explicit dynamic modeling.
-- Copyright (C) 2001-2017 INPE and TerraLAB/UFOP -- www.terrame.org
-- This code is part of the TerraME framework.
-- This framework is f... | lgpl-3.0 |
Hozu/darkstar | scripts/globals/items/prime_beef_stewpot.lua | 11 | 1727 | -----------------------------------------
-- ID: 5548
-- Item: Prime Beef Stewpot
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% Cap 75
-- MP +15
-- Strength +2
-- Agility +1
-- Mind +1
-- HP Recovered while healing +7
-- MP Recovered while healing +2
-- Atta... | gpl-3.0 |
Hozu/darkstar | scripts/zones/Cloister_of_Storms/IDs.lua | 12 | 1097 | -----------------------------------
-- Area: Cloister_of_Storms
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.CLOISTER_OF_STORMS] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the ... | gpl-3.0 |
Haxi52/cuberite | Server/Plugins/APIDump/Hooks/OnExecuteCommand.lua | 36 | 2087 | return
{
HOOK_EXECUTE_COMMAND =
{
CalledWhen = [[
A player executes an in-game command, or the admin issues a console command. Note that built-in
console commands are exempt to this hook - they are always performed and the hook is not called.
]],
DefaultFnName = "OnExecuteCommand", -- also used as pagena... | apache-2.0 |
Valansch/RedMew | features/lazy_bastard.lua | 1 | 4695 | local Event = require 'utils.event'
local Command = require 'utils.command'
local Task = require 'utils.task'
local Token = require 'utils.token'
local Retailer = require 'features.retailer'
local Ranks = require 'resources.ranks'
local round = math.round
local insert = table.insert
local remove = table.remove
local ... | gpl-3.0 |
Hozu/darkstar | scripts/globals/weaponskills/sniper_shot.lua | 1 | 1513 | -----------------------------------
-- Sniper Shot
-- Marksmanship weapon skill
-- Skill Level: 80
-- Lowers enemy's INT. Chance of params.critical varies with TP.
-- Aligned with the Flame Gorget & Light Gorget.
-- Aligned with the Flame Belt & Light Belt.
-- Element: None
-- Modifiers: AGI:70%
-- 100%TP 200%TP ... | gpl-3.0 |
tullamods/Dominos | Dominos/localization/localization.fr.lua | 2 | 3097 | --[[
Localization_frFR.lua
Translations for Dominos
French
--]]
-- French version (by Kubik of Vol'Jin) 2000-10-23
-- à = \195\160
-- â = \195\162
-- ç = \195\167
-- è = \195\168
-- é = \195\169
-- ê = \195\170
-- î = \195\174
-- ï = \195\175
-- ô = \195\180
-- û = \195\187
local L = LibStub('AceLocale-3.0'):NewL... | bsd-3-clause |
ld-test/odbc | test/02_test_odbc_cnn.lua | 1 | 2859 | require "config"
require "tools"
local local_run_test = lunit and function() end or run_test
local lunit = require "lunit"
local arg = {...}
local _ENV = TEST_CASE'Connection test'
local env, cnn
function teardown()
if cnn then cnn:destroy() end
if env then env:destroy() end
cnn = nil
env = n... | mit |
Hozu/darkstar | scripts/zones/Southern_San_dOria/npcs/Parvipon.lua | 11 | 2045 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Parvipon
-- Starts and Finishes Quest: The Merchant's Bidding (R)
-- !pos -169 -1 13 230
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop");
require("scripts/globals/quests");
local ID = requi... | gpl-3.0 |
Hozu/darkstar | scripts/zones/Eastern_Altepa_Desert/npcs/Lokpix.lua | 11 | 1809 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: Lokpix
-- Starts Quest "Open Sesame"
-----------------------------------
local ID = require("scripts/zones/Eastern_Altepa_Desert/IDs");
require("scripts/globals/quests");
require("scripts/globals/keyitems");
-----------------------------------
... | gpl-3.0 |
ForgeUI/ForgeUI | ForgeUI_SprintDash/ForgeUI_SprintDash.lua | 1 | 7089 | ----------------------------------------------------------------------------------------------
-- Client Lua Script for ForgeUI addon
--
-- name: ForgeUI_SprintDash.lua
-- author: Winty Badass@Jabbit
-- about: Sprint/Dash meter addon for ForgeUI
----------------------------------------------------------------------... | mit |
ld-test/eccles | IntervalEntitySystem.lua | 2 | 1464 | local EntitySystem = require('eccles.EntitySystem')
local IntervalSystem = require('eccles.IntervalSystem')
local IntervalEntitySystem
do
local _parent_0 = System
local _base_0 = {
initialize = function(self)
local interval = self.interval
local c = coroutine.create(function()
while true do
... | mit |
noresources/premake-core | binmodules/luasocket/etc/dispatch.lua | 28 | 10305 | -----------------------------------------------------------------------------
-- A hacked dispatcher module
-- LuaSocket sample files
-- Author: Diego Nehab
-----------------------------------------------------------------------------
local base = _G
local table = require("table")
local string = require("string")
local... | bsd-3-clause |
abbasgh12345/unkownunm | plugins/autoleave.lua | 125 | 1025 | --[[
Kicking ourself (bot) from unmanaged groups.
When someone invited this bot to a group, the bot then will chek if the group is in its moderations (moderation.json). If not, the bot will exit immediately by kicking itself out of that group.
No switch available. You need to turn it on or off using !plugins command.... | gpl-2.0 |
siadyhr/YAPLGE | graphics.lua | 1 | 1604 | local graphics = {
}
function graphics.table(image, stringTable, tileSize, quadInfo, startX, startY, scale)
startX = startX or 0
startY = startY or 0
scale = scale or settings.scale or 1
for i,column in ipairs(stringTable) do
for j,char in ipairs(column) do
local x,y = (i-1)*tileSize*2*scale, (j-1)*tileSize... | unlicense |
Hozu/darkstar | scripts/globals/spells/aurorastorm.lua | 12 | 1307 | --------------------------------------
-- Spell: Aurorastorm
-- Changes the weather around target party member to "auroras."
--------------------------------------
require("scripts/globals/magic")
require("scripts/globals/status")
--------------------------------------
function onMagicCastingCheck(caster, target, ... | gpl-3.0 |
openstreetmap/osm2pgsql | flex-config/unitable.lua | 1 | 1814 | -- This config example file is released into the Public Domain.
-- Put all OSM data into a single table
-- inspect = require('inspect')
-- We define a single table that can take any OSM object and any geometry.
-- OSM nodes are converted to Points, ways to LineStrings and relations
-- to GeometryCollections. If an o... | gpl-2.0 |
avancinirodrigo/terrame | packages/base/tests/functional/basics/Agent.lua | 3 | 17021 | -------------------------------------------------------------------------------------------
-- TerraME - a software platform for multiple scale spatially-explicit dynamic modeling.
-- Copyright (C) 2001-2014 INPE and TerraLAB/UFOP.
--
-- This code is part of the TerraME framework.
-- This framework is free software; yo... | lgpl-3.0 |
torrvision/crayon | client/lua/crayon.lua | 1 | 11186 | local requests = require("requests")
local socket = require("socket")
local json = require('cjson.safe')
local __version__ = 0.5
local CrayonClient = {}
local CrayonExperiment = {}
-- CrayonClient class
do
CrayonClient.__index = CrayonClient
local mt = {}
mt.__call = function(cc, hostname, port)
... | mit |
Hozu/darkstar | scripts/zones/Windurst_Walls/npcs/Trail_Markings.lua | 3 | 2597 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Trail Markings
-- Dynamis-Windurst Enter
-- !pos -216 0 -94 239
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/dynamis");
local ID = require("scripts/zones/Windurs... | gpl-3.0 |
android-ia/platform_external_chromium_org_third_party_skia | tools/lua/count_reduced_clipstacks.lua | 147 | 3116 | stats = {}
-- switch this to run on the automated scraper system
newline = "\n"
-- newline = "\\n"
function sk_scrape_startcanvas(c, fileName)
canvas = c
oldstackstr = "<invalid>"
end
function sk_scrape_endcanvas(c, fileName)
canvas = nil
end
function string.starts(String,Start)
return string.sub(Str... | bsd-3-clause |
Hozu/darkstar | scripts/globals/mobskills/gravitic_horn.lua | 11 | 1687 | ---------------------------------------------------
-- Gravitic Horn
-- Family: Antlion (Only used by Formiceros subspecies)
-- Description: Heavy wind, Throat Stab-like damage in a fan-shaped area of effect. Resets enmity.
-- Type: Magical
-- Can be dispelled: N/A
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Co... | gpl-3.0 |
Hozu/darkstar | scripts/zones/Port_San_dOria/npcs/Apstaule.lua | 2 | 1329 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Apstaule
-- Not used cutscenes: 541
-----------------------------------
local ID = require("scripts/zones/Port_San_dOria/IDs");
require("scripts/globals/quests");
require("scripts/globals/shop");
-----------------------------------
function onTrade(... | gpl-3.0 |
ET-Chan/oxnn | rnn/SumLosses.lua | 3 | 1532 | -- Authors: Tomas Kocisky
--
-- Takes as input a table of losses (numbers or 1 element tensors) and returns
-- their sum as a number.
--
local SumLosses, parent = torch.class('oxnn.SumLosses', 'nn.Criterion')
function SumLosses:__init(average, lengths)
parent.__init(self)
self.average = average or false
self.... | bsd-3-clause |
Hozu/darkstar | scripts/globals/abilities/reward.lua | 12 | 6287 | -----------------------------------
-- Ability: Reward
-- Feeds pet to restore its HP.
-- Obtained: Beastmaster Level 12
-- Recast Time: 1:30
-- Duration: Instant
-----------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/pets")
require("scripts/gl... | gpl-3.0 |
sjznxd/luci-20121016 | applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwan.lua | 147 | 5025 | require("luci.tools.webadmin")
m = Map("multiwan", translate("Multi-WAN"),
translate("Multi-WAN allows for the use of multiple uplinks for load balancing and failover."))
s = m:section(NamedSection, "config", "multiwan", "")
e = s:option(Flag, "enabled", translate("Enable"))
e.rmempty = false
e.default = e.enabled
... | apache-2.0 |
sjznxd/luci-20121016 | applications/luci-statistics/luasrc/statistics/rrdtool/definitions/netlink.lua | 78 | 4582 | --[[
Luci statistics - netlink plugin diagram definition
(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 License at
http://www.ap... | apache-2.0 |
Hozu/darkstar | scripts/globals/items/party_egg.lua | 11 | 1032 | -----------------------------------------
-- ID: 4595
-- Item: party_egg
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 25
-- Magic 25
-- Attack 5
-- Ranged Attack 4
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
---------... | gpl-3.0 |
createuniverses/praxis | prods/Cognitive/lispplay.lua | 2 | 5758 | (define (deriv exp var)
(cond ((number? exp) 0)
((variable? exp)
(if (same-variable? exp var) 1 0))
((sum? exp)
(make-sum (deriv (addend exp) var)
(deriv (augend exp) var)))
((product? exp)
(make-sum
(make-product (multiplier exp)
... | mit |
httpRick/Editor-In-Game | client/controlTexture.lua | 1 | 5386 | ControlTexture = {}
ControlTexture.Streaming = {}
function ControlTexture:Calling(type, Element, name)
if type == "add" then
ControlTexture:add(Element,name)
elseif type == "remove" then
ControlTexture:remove(Element,name)
end
end
addEvent("texture.calling", true)
addEventHandler("texture.calling", ... | gpl-3.0 |
hajuuk/R7000 | ap/gpl/lsync/source/default-rsyncssh.lua | 2 | 7831 | --
-- default-rsyncssh.lua
--
-- Improved rsync - sync with rsync, but moves and deletes executed over ssh.
-- A (Layer 1) configuration.
--
-- Note:
-- this is infact just a configuration using Layer 1 configuration
-- like any other. It only gets compiled into the binary by default.
-- You can simply u... | gpl-2.0 |
Valansch/RedMew | map_gen/maps/crash_site/outpost_data/big_stone_factory.lua | 1 | 3406 | local ob = require 'map_gen.maps.crash_site.outpost_builder'
local Token = require 'utils.token'
local loot = {
{weight = 5},
{stack = {name = 'coin', count = 250, distance_factor = 1 / 20}, weight = 5},
{stack = {name = 'stone', count = 1600}, weight = 8},
{stack = {name = 'stone-brick', count = 2000,... | gpl-3.0 |
Hozu/darkstar | scripts/zones/Bearclaw_Pinnacle/npcs/Wind_Pillar.lua | 2 | 1029 | -----------------------------------
-- Area: Bearclaw Pinnacle
-- NPC: Wind Pillar
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/quests");
require("scripts/globals/missions");
function onTrade(player,npc,trade)
if (TradeBCNM(player,player:getZoneID(),trade,npc)) th... | gpl-3.0 |
Hozu/darkstar | scripts/globals/items/plate_of_ikra_gunkan_+1.lua | 11 | 1461 | -----------------------------------------
-- ID: 5220
-- Item: plate_of_ikra_gunkan_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 30
-- Magic 12
-- Dexterity 3
-- Mind -1
-- Accuracy % 18
-- Accuracy Cap 30
-- Ranged ACC % 18
-- Ranged ACC Cap 30
-------------------------------... | gpl-3.0 |
tigawa/proofreadingchecker | vendor/bundle/ruby/1.9.1/gems/libv8-3.16.14.3/vendor/v8/tools/gcmole/gcmole.lua | 32 | 11455 | -- Copyright 2011 the V8 project authors. All rights reserved.
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are
-- met:
--
-- * Redistributions of source code must retain the above copyright
-- notice, this list of ... | apache-2.0 |
Hozu/darkstar | scripts/globals/abilities/angon.lua | 12 | 1192 | -----------------------------------
-- Ability: Angon
-- Expends an Angon to lower an enemy's defense.
-- Obtained: Dragoon Level 75
-- Recast Time: 0:03:00
-- Duration: 0:00:30 (+0:00:15 for each merit, cap is 0:01:30)
-- Effect: Physical defense of target approximately -20% (51/256).
-- Range: 10.0 yalms
-- Notes: On... | gpl-3.0 |
noresources/premake-core | modules/gmake/tests/cs/test_sources.lua | 15 | 1449 | --
-- tests/actions/make/cs/test_sources.lua
-- Tests source file listings for C# Makefiles.
-- Copyright (c) 2013-2014 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("make_cs_sources")
local make = p.make
local cs = p.make.cs
local project = p.project
--
-- Setup
--
loc... | bsd-3-clause |
Hozu/darkstar | scripts/globals/abilities/haste_samba.lua | 12 | 1328 | -----------------------------------
-- Ability: Haste Samba
-- Inflicts the next target you strike with Haste daze, increasing the attack speed of all those engaged in battle with it.
-- Obtained: Dancer Level 45
-- TP Cost: 35%
-- Recast Time: 1:00
-- Duration: 1:30
-----------------------------------
require("scripts... | gpl-3.0 |
Hozu/darkstar | scripts/zones/Bhaflau_Thickets/npcs/Hamta-Iramta.lua | 12 | 1259 | -----------------------------------
-- Area: Bhaflau Thickets
-- NPC: Hamta-Iramta
-- Type: Alzadaal Undersea Ruins
-- !pos -459.942 -20.048 -4.999 52
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
function onTrade(player,npc,trade)
if (trade:getItemCount() ==... | gpl-3.0 |
noresources/premake-core | src/base/help.lua | 10 | 1985 | --
-- help.lua
-- User help, displayed on /help option.
-- Copyright (c) 2002-2013 Jason Perkins and the Premake project
--
function premake.showhelp()
-- display the basic usage
printf("Premake %s, a build script generator", _PREMAKE_VERSION)
printf(_PREMAKE_COPYRIGHT)
printf("%s %s", _VERSION, _COPYRIGHT)... | bsd-3-clause |
anupritaisno1/Clannadbot | plugins/plugins1/id.lua | 41 | 6252 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | agpl-3.0 |
selboo/Atlas | lib/rw-splitting.lua | 37 | 25587 | --[[ $%BEGINLICENSE%$
Copyright (c) 2007, 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 |
Hozu/darkstar | scripts/globals/spells/bluemagic/sheep_song.lua | 12 | 1449 | -----------------------------------------
-- 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 Time: 60 se... | gpl-3.0 |
Hozu/darkstar | scripts/zones/Attohwa_Chasm/npcs/Cradle_of_Rebirth.lua | 12 | 1558 | -----------------------------------
-- Area: Attohwa Chasm
-- NPC: Cradle_of_Rebirth
-----------------------------------
local ID = require("scripts/zones/Attohwa_Chasm/IDs");
require("scripts/globals/settings");
require("scripts/globals/keyitems");
-----------------------------------
function onTrade(player,npc,trad... | gpl-3.0 |
createuniverses/praxis | prods/syntax2015/drawing.lua | 5 | 3746 | -- Name: drawing.lua
function shade(f,col)
col.r = col.r * f
col.g = col.g * f
col.b = col.b * f
if col.r < 0 then col.r = 0 end
if col.g < 0 then col.g = 0 end
if col.b < 0 then col.b = 0 end
if col.r > 255 then col.r = 255 end
if col.g > 255 then col.g = 255 end
if col.b > 255 then col.b = 255 end
... | mit |
createuniverses/praxis | prods/Empty/drawing.lua | 5 | 3746 | -- Name: drawing.lua
function shade(f,col)
col.r = col.r * f
col.g = col.g * f
col.b = col.b * f
if col.r < 0 then col.r = 0 end
if col.g < 0 then col.g = 0 end
if col.b < 0 then col.b = 0 end
if col.r > 255 then col.r = 255 end
if col.g > 255 then col.g = 255 end
if col.b > 255 then col.b = 255 end
... | mit |
Hozu/darkstar | scripts/globals/weaponskills/starburst.lua | 2 | 1329 | -----------------------------------
-- Starburst
-- Staff weapon skill
-- Skill Level: 100
-- Deals light or darkness elemental damage. Damage varies with TP.
-- Aligned with the Shadow Gorget & Aqua Gorget.
-- Aligned with the Shadow Belt & Aqua Belt.
-- Element: Light/Dark (Random)
-- Modifiers: : STR:40% MND:40%
... | gpl-3.0 |
R1dO/geany | data/filedefs/filetypes.lua | 16 | 3769 | # For complete documentation of this file, please see Geany's main documentation
[styling]
# Edit these in the colorscheme .conf file instead
default=default
comment=comment
commentline=comment_line
commentdoc=comment_line_doc
number=number_1
word=keyword_1
string=string_1
character=character
literalstring=string_2
pre... | gpl-2.0 |
Haxi52/cuberite | Server/Plugins/APIDump/Hooks/OnCollectingPickup.lua | 36 | 1179 | return
{
HOOK_COLLECTING_PICKUP =
{
CalledWhen = "Player is about to collect a pickup. Plugin can refuse / override behavior. ",
DefaultFnName = "OnCollectingPickup", -- also used as pagename
Desc = [[
This hook is called when a player is about to collect a pickup. Plugins may refuse the action.</p>
<p>
... | apache-2.0 |
goofanader/mna-anime-eyes | trunk/libraries/middleclass-commons.lua | 5 | 1691 | -- middleclass-commons.lua
-- Copyright (c) 2011-2012 Enrique García Cota
-- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, cop... | mit |
Hozu/darkstar | scripts/zones/Port_San_dOria/Zone.lua | 2 | 1940 | -----------------------------------
--
-- Zone: Port_San_dOria (232)
--
-----------------------------------
local ID = require("scripts/zones/Port_San_dOria/IDs")
require("scripts/globals/conquest")
require("scripts/globals/missions")
require("scripts/globals/settings")
require("scripts/globals/zone")
-----------------... | gpl-3.0 |
NDOrg/ndkillas-hl2rp-stuff | gamemodes/nutscript/gamemode/libs/sh_item.lua | 1 | 22954 | --[[
Purpose: A library for the framework's item system. This includes the registration,
loading, and player's inventory functions and handles item interaction.
--]]
nut.item = nut.item or {}
nut.item.buffer = {}
nut.item.list = {}
nut.item.bases = {}
nut.item.queries = {}
function nut.item.RegisterQuery(query, cal... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.