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 |
|---|---|---|---|---|---|
lbthomsen/openwrt-luci | applications/luci-app-vpn-policy-routing/luasrc/model/cbi/vpn-policy-routing.lua | 3 | 17734 | local packageName = "vpn-policy-routing"
local readmeURL = "https://docs.openwrt.melmac.net/" .. packageName .. "/"
local uci = require "luci.model.uci".cursor()
local sys = require "luci.sys"
local util = require "luci.util"
local ip = require "luci.ip"
local fs = require "nixio.fs"
local jsonc = require "luci.jsonc"
... | apache-2.0 |
LegionXI/darkstar | scripts/zones/Windurst_Woods/npcs/Nalta.lua | 14 | 1046 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Nalta
-- Type: Conquest Troupe
-- @zone 241
-- @pos 19.140 1 -51.297
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
------------------... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Illeuse.lua | 14 | 1645 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Illeuse
-- @zone 80
-- @pos -44.203 2 -36.216
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
require("scripts/globals/quests");
... | gpl-3.0 |
greasydeal/darkstar | scripts/globals/items/pot_of_royal_tea.lua | 35 | 1204 | -----------------------------------------
-- ID: 4524
-- Item: pot_of_royal_tea
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Vitality -1
-- Charisma 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
--... | gpl-3.0 |
ricker75/Global-Server | data/npc/scripts/Simon the Beggar.lua | 2 | 4101 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg... | gpl-2.0 |
rillig/translation-team-de | proofread/po.lua | 1 | 5072 | local function errorf(fmt, ...)
error(string.format(fmt, ...))
end
local function parseLiteral(str)
if string.match(str, "^[^\"\\\n]*$") then return str end
local i, len, result = 1, #str, ""
while i <= len do
local ch = str:sub(i, i)
i = i + 1
if ch == "\"" or ch == "\n" then
errorf("illega... | mit |
LegionXI/darkstar | scripts/zones/Northern_San_dOria/npcs/Antonian.lua | 17 | 2157 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Antonian
-- Regional Marchant NPC
-- Only sells when San d'Oria controlls Aragoneu.
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/No... | gpl-3.0 |
ibm2431/darkstar | scripts/globals/spells/herculean_etude.lua | 12 | 1615 | -----------------------------------------
-- Spell: Herculean Etude
-- Static STR Boost, BRD 74
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------------
function onMagicCastingCheck(caster,targe... | gpl-3.0 |
greasydeal/darkstar | scripts/commands/godmode.lua | 26 | 2907 | ---------------------------------------------------------------------------------------------------
-- func: godmode
-- desc: Toggles god mode on the player; granting them several special abilities.
---------------------------------------------------------------------------------------------------
cmdprops =
{
... | gpl-3.0 |
Igalia/snabbswitch | lib/ljsyscall/syscall/linux/constants.lua | 8 | 76404 | -- tables of constants
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string
local abi = require "syscall.abi"
loc... | apache-2.0 |
ibm2431/darkstar | scripts/globals/items/bowl_of_jack-o-soup.lua | 11 | 1388 | -----------------------------------------
-- ID: 4522
-- Item: Bowl of Jack-o'-Soup
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Health % 2 (cap 120)
-- Agility 3
-- Vitality -1
-- Health Regen While Healing 5
-- Ranged ACC % 8
-- Ranged ACC Cap 25
-------------------------------------... | gpl-3.0 |
alerque/sile | languages/da.lua | 2 | 9669 | SILE.hyphenator.languages["da"] = {}
SILE.hyphenator.languages["da"].patterns =
{
".ae3",
".an3k",
".an1s",
".be5la",
".be1t",
".bi4tr",
".der3i",
".diagno5",
".her3",
".hoved3",
".ne4t5",
".om1",
".ove4",
".po1",
".til3",
".yd5r",
"ab5le",
"3abst",
"a3c",
"ade5la",
"5adg",
"a1e",
"5afg",
"5a4f1l",
"af3r",
"af4ri",
"5a... | mit |
viera2/5040bot | plugins/img_google.lua | 660 | 3196 | do
local mime = require("mime")
local google_config = load_from_file('data/google.lua')
local cache = {}
--[[
local function send_request(url)
local t = {}
local options = {
url = url,
sink = ltn12.sink.table(t),
method = "GET"
}
local a, code, headers, status = http.request(options)
return tabl... | gpl-2.0 |
ibm2431/darkstar | scripts/zones/Sauromugue_Champaign_[S]/npcs/Bulwark_Gate.lua | 9 | 1244 | -----------------------------------
-- Area: Sauromugue Champaign [S]
-- NPC: Bulwark Gate
-- !pos -445 0 342
-- Quest NPC
-----------------------------------
require("scripts/globals/campaign");
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/globals/settings");
----------------... | gpl-3.0 |
Codex-NG/otxserver | data/talkactions/scripts/kills.lua | 43 | 1370 | function onSay(player, words, param)
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 <= 0 then
player:sendTe... | gpl-2.0 |
greasydeal/darkstar | scripts/zones/Toraimarai_Canal/npcs/Treasure_Coffer.lua | 12 | 3886 | -----------------------------------
-- Area: Toraimarai Canal
-- NPC: Treasure Coffer
-- Involved In Quest: Wild Card
-- @zone 169
-- @pos 220 16 -50
-----------------------------------
package.loaded["scripts/zones/Toraimarai_Canal/TextIDs"] = nil;
-----------------------------------
require("scripts/globa... | gpl-3.0 |
LegionXI/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 |
naclander/tome | game/engines/default/engine/dialogs/Achievement.lua | 3 | 2036 | -- TE4 - T-Engine 4
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later version.... | gpl-3.0 |
greasydeal/darkstar | scripts/globals/items/plate_of_homemade_risotto.lua | 35 | 1131 | -----------------------------------------
-- ID: 5229
-- Item: plate_of_homemade_risotto
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Mind 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/Oldton_Movalpolos/npcs/Twinkbrix.lua | 18 | 2013 | -----------------------------------
-- Area: Oldton Movalpolos
-- NPC: Twinkbrix
-- Type: Warp NPC
-- @pos -292.779 6.999 -263.153 11
-----------------------------------
package.loaded["scripts/zones/Oldton_Movalpolos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
requir... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/Sacrarium/mobs/Old_Professor_Mariselle.lua | 11 | 2238 | -----------------------------------
-- Area: Sacrarium
-- NPC: Old Professor Mariselle
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
-----------------------------------
-- onMobSpawn
-----------------------------------
function onMobSpawn(m... | gpl-3.0 |
ibm2431/darkstar | scripts/globals/items/prime_angler_stewpot.lua | 11 | 1854 | -----------------------------------------
-- ID: 5612
-- Item: Prime Angler Stewpot
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% (cap 200)
-- MP +15
-- Dexterity 2
-- Agility 1
-- Mind 1
-- HP Recovered while healing 7
-- MP Recovered while healing 2
-- Acc... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Naja_Salaheem.lua | 3 | 8996 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Naja Salaheem
-- Type: Standard NPC
-- @pos 22.700 -8.804 -45.591 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_W... | gpl-3.0 |
revsbech/weatherStations-Server | hardware/bh1750.lua | 1 | 1371 | -- ***************************************************************************
-- BH1750 module for ESP8266 with nodeMCU
-- BH1750 compatible tested 2015-1-22
--
-- Written by xiaohu
--
-- MIT license, http://opensource.org/licenses/MIT
-- ***************************************************************************
loca... | mit |
greasydeal/darkstar | scripts/zones/Fort_Karugo-Narugo_[S]/npcs/Spondulix.lua | 37 | 1195 | -----------------------------------
-- Area: Fort Karugo-Narugo
-- NPC: Spondulix
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Fort_Karugo-Narugo_[S]/TextIDs"] = nil;
require("scripts/zones/Fort_Karugo-Narugo_[S]/TextIDs");
-----... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/Inner_Horutoto_Ruins/npcs/_5cc.lua | 34 | 1074 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: _5cc (Gate of Ice)
-- @pos -228 0 99 192
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Inner_Horutoto_Ruins/TextIDs");... | gpl-3.0 |
greasydeal/darkstar | scripts/globals/weaponskills/ruinator.lua | 30 | 1646 | -----------------------------------
-- Ruinator
-- Axe weapon skill
-- Skill level: 357
-- Description: Delivers a four-hit attack. params.accuracy varies with TP
-- In order to obtain Ruinator, the quest Martial Mastery must be completed.
-- This Weapon Skill's first hit params.ftp is duplicated for all addition... | gpl-3.0 |
naclander/tome | game/modules/tome/data/talents/psionic/projection.lua | 1 | 18113 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
atheurer/MoonGen | examples/inter-arrival-times.lua | 9 | 1212 | local dpdk = require "dpdk"
local memory = require "memory"
local device = require "device"
local ts = require "timestamping"
local hist = require "histogram"
local log = require "log"
local timer = require "timer"
function master(rxPort, waitTime)
if not rxPort then
errorf("usage: rxPort [waitTime]")
end
rx... | mit |
ibm2431/darkstar | scripts/zones/Norg/npcs/Edal-Tahdal.lua | 9 | 4243 | -----------------------------------
-- Area: Norg
-- NPC: Edal-Tahdal
-- Starts and Finishes Quest: Trial by Water
-- !pos -13 1 -20 252
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/globals/keyitems");
require("scripts/globals/shop");
requ... | gpl-3.0 |
ibm2431/darkstar | scripts/zones/VeLugannon_Palace/npcs/qm1.lua | 12 | 1454 | -----------------------------------
-- Area: VeLugannon Palace
-- NPC: ??? (qm1)
-- !pos -370.039 16.014 -274.378 177
-----------------------------------
local ID = require("scripts/zones/VeLugannon_Palace/IDs");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,np... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Port_San_dOria/npcs/Dabbio.lua | 14 | 1049 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Dabbio
-- Type: Standard NPC
-- @zone 232
-- @pos -7.819 -15 -106.990
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
---------------... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Norg/npcs/Keal.lua | 10 | 4278 | -----------------------------------
-- Area: Norg
-- NPC: Keal
-- Starts and Ends Quest: It's Not Your Vault
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scri... | gpl-3.0 |
ibm2431/darkstar | scripts/globals/spells/bluemagic/magnetite_cloud.lua | 12 | 1868 | -----------------------------------------
-- Spell: Magnetite Cloud
-- Deals earth damage to enemies within a fan-shaped area originating from the caster. Additional effect: Weight
-- Spell cost: 86 MP
-- Monster Type: Beastmen
-- Spell Type: Magical (Earth)
-- Blue Magic Points: 3
-- Stat Bonus: VIT+2
-- Level: 46
-- ... | gpl-3.0 |
LegionXI/darkstar | scripts/globals/mobskills/Equalizer.lua | 35 | 1146 | ---------------------------------------------------
-- Equalizer
-- AoE damage (~600-800),
--
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
funct... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/East_Ronfaure_[S]/npcs/Logging_Point.lua | 17 | 1097 | -----------------------------------
-- Area: East Ronfaure [S]
-- NPC: Logging Point
-----------------------------------
package.loaded["scripts/zones/East_Ronfaure_[S]/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/logging");
require("scripts/zones/East_Ronfaure_[S]/TextIDs");
---... | gpl-3.0 |
greasydeal/darkstar | scripts/globals/items/sausage.lua | 35 | 1650 | -----------------------------------------
-- ID: 4578
-- Item: sausage
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health % 3
-- Strength 3
-- Intelligence -1
-- Attack % 27
-- Attack Cap 30
-- Ranged ATT % 27
-- Ranged ATT Cap 30
-----------------------------------------
... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Kazham/npcs/Kocho_Phunakcham.lua | 17 | 1074 | -----------------------------------
-- Area: Kazham
-- NPC: Kocho Phunakcham
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------... | gpl-3.0 |
ibm2431/darkstar | scripts/zones/Lower_Jeuno/npcs/Hasim.lua | 4 | 3375 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Hasim
-- Standard Merchant NPC
-----------------------------------
local ID = require("scripts/zones/Lower_Jeuno/IDs")
require("scripts/globals/shop")
function onTrade(player,npc,trade)
end
function onTrigger(player,npc)
local stock =
{
... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/Carpenters_Landing/mobs/Cryptonberry_Assassin.lua | 11 | 1314 | -----------------------------------
-- Area: Carpenters' Landing
-- NPC: Cryptonberry_Assassin
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
end;
-----------------------------------
-- onMobFight... | gpl-3.0 |
ricker75/Global-Server | data/npc/scripts/Bone Master.lua | 2 | 4647 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)... | gpl-2.0 |
ibm2431/darkstar | scripts/zones/The_Garden_of_RuHmet/npcs/_0z0.lua | 9 | 1306 | -----------------------------------
-- Area: The_Garden_of_RuHmet
-- NPC: _0z0
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/missions");
require("scripts/globals/keyitems");
require("scripts/globals/bcnm");
function onTrade(player,npc,trade)
if (TradeBCNM(... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/Castle_Oztroja/npcs/_47w.lua | 17 | 1264 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _47w (Handle)
-- Notes: Opens door _473 from behind
-- @pos -41.377 -17.084 17.036 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/z... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/Port_San_dOria/npcs/Eddy.lua | 38 | 1038 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Eddy
-- Type: NPC Quest Giver
-- @zone: 232
-- @pos -5.209 -8.999 39.833
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------... | gpl-3.0 |
LegionXI/darkstar | scripts/globals/abilities/box_step.lua | 14 | 7890 | -----------------------------------
-- Ability: Box Step
-- Lowers target's defense. If successful, you will earn two Finishing Moves.
-- Obtained: Dancer Level 30
-- TP Required: 10%
-- Recast Time: 00:05
-- Duration: First Step lasts 1 minute, each following Step extends its current duration by 30 seconds.
----------... | gpl-3.0 |
kiarashco/VahediBot | plugins/stats.lua | 866 | 4001 | do
-- Returns a table with `name` and `msgs`
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_prin... | gpl-2.0 |
srijan/ntopng | scripts/lua/inc/footer.lua | 1 | 6720 | --
-- (C) 2013 - ntop.org
--
require "os"
print [[ <hr>
<div class="footer">
]]
print [[
<div class="row-fluid show-grid">
<div id=toomany></div>
<div class="span3">© 1998-]]
print(os.date("%Y"))
print [[ - <A HREF="http://www.ntop.org">ntop.org</A> <br><font color=lightgray>Generated by ntopng ... | gpl-3.0 |
Igalia/snabbswitch | src/apps/tap/tap.lua | 4 | 8714 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(..., package.seeall)
local S = require("syscall")
local link = require("core.link")
local packet = require("core.packet")
local counter = require("core.counter")
local ethernet = require("lib.protocol.ethernet")
local macaddr = requ... | apache-2.0 |
LegionXI/darkstar | scripts/zones/Sacrarium/npcs/qm4.lua | 14 | 1798 | -----------------------------------
-- Area: Sacrarium
-- NPC: qm4 (???)
-- Notes: Used to spawn Old Prof. Mariselle
-- @pos 22.669 -3.111 127.279 28
-----------------------------------
package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Sacrarium/Text... | gpl-3.0 |
LegionXI/darkstar | scripts/globals/abilities/pets/flame_breath.lua | 29 | 1335 | ---------------------------------------------------
-- Flame Breath
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/globals/ability");
-----------------------------------------------... | gpl-3.0 |
naclander/tome | game/engines/default/engine/dialogs/ViewHighScores.lua | 3 | 1605 | -- TE4 - T-Engine 4
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later version.... | gpl-3.0 |
MarcusChang/Repo-QUANTengine | QUANTengine/QuantENGINE_API/QuantMGR/ParameterManager/InterestRate/InterestRate.lua | 1 | 5416 | local QuantCORE = QuantCORE();
local ParameterManager = QuantCORE:ParameterManager();
local spec_name = "ZERO";
local newKey = "QA_IR_TEST_MAC1"
local testFlag = false;
function OnStart()
print("OnStart -- Subcribe parameter");
--ParameterManager:SubscribeParameter(spec_name, QS_INTERESTRATE_SPEC, false, "Inte... | gpl-2.0 |
bbn1234/uzzbot | plugins/moderation.lua | 336 | 9979 | do
local function check_member(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
local username = v.username
data[tostring(m... | gpl-2.0 |
wizardbottttt/wizard | plugins/moderation.lua | 336 | 9979 | do
local function check_member(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
local username = v.username
data[tostring(m... | gpl-2.0 |
ibm2431/darkstar | scripts/zones/Bastok_Mines/npcs/Echo_Hawk.lua | 9 | 1040 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Echo Hawk
-- Standard Info NPC
-- Involved in Quest: The Siren's Tear
-- !pos -0.965 5.999 -15.567 234
-----------------------------------
require("scripts/globals/quests");
-----------------------------------
function onTrade(player,npc,trade)
end;
f... | gpl-3.0 |
chadouming/nodemcu-firmware | lua_examples/u8glib/u8g_bitmaps.lua | 9 | 2014 |
-- setup I2c and connect display
function init_i2c_display()
-- SDA and SCL can be assigned freely to available GPIOs
sda = 5 -- GPIO14
scl = 6 -- GPIO12
sla = 0x3c
i2c.setup(0, sda, scl, i2c.SLOW)
disp = u8g.ssd1306_128x64_i2c(sla)
end
-- setup SPI and connect display
function init_spi_... | mit |
naclander/tome | game/modules/tome/data/lore/daikara.lua | 3 | 4892 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
caidongyun/Dato-Core | src/unity/python/graphlab/lua/pl/lapp.lua | 20 | 13955 | --- Simple command-line parsing using human-readable specification.
-- Supports GNU-style parameters.
--
-- lapp = require 'pl.lapp'
-- local args = lapp [[
-- Does some calculations
-- -o,--offset (default 0.0) Offset to add to scaled number
-- -s,--scale (number) Scaling factor
-- ... | agpl-3.0 |
alerque/sile | languages/el-polyton.lua | 1 | 20562 | SILE.hyphenator.languages["el-polyton"] = {}
SILE.hyphenator.languages["el-polyton"].patterns =
{
-------- vowels
---- Vowel patterns (pre-combined)
"α1",
"ε1",
"η1",
"ι1",
"ο1",
"υ1",
"ω1",
"ϊ1",
"ϋ1",
"ἀ1",
"ἁ1",
"ἂ1",
"ἃ1",
"ἄ1",
"ἅ1",
"ἆ1",
"ἇ1",
"ἐ1",
"ἑ1",
"ἒ1",
"ἓ1",
"ἔ1",
"ἕ1",
"ἠ1",
"ἡ1",
"ἢ1",
"ἣ1",
"ἤ1",
... | mit |
greasydeal/darkstar | scripts/zones/Yuhtunga_Jungle/npcs/Robino-Mobino.lua | 17 | 1852 | -----------------------------------
-- Area: Yuhtunga Jungle
-- NPC: Robino-Mobino
-- @pos -244 0 -401 123
-----------------------------------
package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest"... | gpl-3.0 |
ibm2431/darkstar | scripts/globals/items/serving_of_bass_meuniere.lua | 11 | 1364 | -----------------------------------------
-- ID: 4582
-- Item: serving_of_bass_meuniere
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health % 3 (cap 130)
-- Dexterity 3
-- Agility 3
-- Mind -3
-- Ranged ACC % 6
-- Ranged ACC Cap 15
-----------------------------------------
require("scr... | gpl-3.0 |
greasydeal/darkstar | scripts/globals/mobskills/Bomb_Toss_Suicide.lua | 7 | 1162 | require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
function onMobSkillCheck(target,mob,skill)
-- notorious monsters shouldn't explode, nor dynamis
if(mob:isMobType(MOBTYPE_NOTORIOUS) or mob:i... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/West_Ronfaure/npcs/Harvetour.lua | 14 | 1917 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Harvetour
-- Type: Outpost Vendor
-- @pos -448 -19 -214 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/Carpenters_Landing/npcs/Guilloud.lua | 8 | 1375 | -----------------------------------
-- Area: Carpenters' Landing
-- NPC: Guilloud
-- Type: Standard NPC
-- @pos -123.770 -6.654 -469.062 2
-----------------------------------
package.loaded["scripts/zones/Carpenters_Landing/TextIDs"] = nil;
-----------------------------------
-----------------------------------
-... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Selbina/npcs/Torapiont.lua | 17 | 1547 | -----------------------------------
-- Area: Selbina
-- NPC: Torapiont
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
require("scripts/globals/shop");
--------------------... | gpl-3.0 |
lache/RacingKingLee | crazyclient/frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ControlSaturationBrightnessPicker.lua | 18 | 2571 |
--------------------------------
-- @module ControlSaturationBrightnessPicker
-- @extend Control
-- @parent_module cc
--------------------------------
--
-- @function [parent=#ControlSaturationBrightnessPicker] getShadow
-- @param self
-- @return Sprite#Sprite ret (return value: cc.Sprite)
----------------... | mit |
LegionXI/darkstar | scripts/zones/Kazham/npcs/Lulupp.lua | 14 | 6017 | -----------------------------------
-- Area: Kazham
-- NPC: Lulupp
-- Type: Standard NPC
-- @zone 250
-- @pos -26.567 -3.5 -3.544
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/globals/pathfind");
local path = {
-27.457125, -3.043032, -22.057966,
-27.3734... | gpl-3.0 |
TheFlyingFiddle/TIER | examples/graphs.lua | 1 | 2425 | local tier = require"tier"
local standard = tier.standard
local primitive = tier.primitive
local output = io.open("Graphs.dat", "wb")
--Creates a linked list mapping via the selfref method
local linked_list_mapping = standard.selfref(function(self_ref)
return standard.object(standard.tuple
{
{ key ... | mit |
greasydeal/darkstar | scripts/globals/items/serving_of_vermillion_jelly.lua | 35 | 1448 | -----------------------------------------
-- ID: 5158
-- Item: Vermillion Jelly
-- Food Effect: 4 hours, All Races
-----------------------------------------
-- MP +12%(Cap: 90@750 Base MP)
-- Intelligence +6
-- MP Recovered While Healing +2
-----------------------------------------
require("scripts/globals/s... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/East_Ronfaure_[S]/npcs/qm4.lua | 29 | 1556 | -----------------------------------
-- Area: East Ronfaure [S]
-- NPC: qm4 "???"
-- Involved in Quests: Steamed Rams
-- @pos 541.425 -49.83 178.563
-----------------------------------
package.loaded["scripts/zones/East_Ronfaure_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems... | gpl-3.0 |
alerque/sile | core/pagebuilder.lua | 1 | 4946 | return pl.class({
_init = function (self)
self.awful_bad = 1073741823
self.inf_bad = 10000
self.eject_penalty = -self.inf_bad
self.deplorable = 100000
end,
collateVboxes = function(_, vboxlist)
local output = SILE.nodefactory.vbox()
output:append(vboxlist)
return ... | mit |
timn/ros-luaagent | src/lua/luaagent/ros/start.lua | 1 | 1642 |
----------------------------------------------------------------------------
-- start.lua - Lua Agent startup script -- ROS version
--
-- Created: Thu Sep 2 15:07:16 2010 (at Intel Research, Pittsburgh)
-- Copyright 2010 Tim Niemueller [www.niemueller.de]
-- 2010 Carnegie Mellon University
-- ... | gpl-2.0 |
Igalia/snabbswitch | src/lib/protocol/tcp.lua | 9 | 5235 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(..., package.seeall)
local ffi = require("ffi")
local C = ffi.C
local lib = require("core.lib")
local header = require("lib.protocol.header")
local ipsum = require("lib.checksum").ipsum
local ntohs, htons, ntohl, htonl =
lib.ntohs... | apache-2.0 |
Tangent128/sema | src/main.lua | 1 | 3173 |
--wrap error handler
xpcall(function(...)
--[[
H E L P
--]]
local programName = (...) -- argv[0]
local function printHelp()
local text = [=[
Lua-scripted centralized daemon supervisor.
Usage:
$sema --server
Launch a foreground server process, which can receive commands
from future clients.
$sema --client... | mit |
naclander/tome | game/modules/tome/data/birth/races/halfling.lua | 1 | 3915 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
naclander/tome | game/modules/tome/data/gfx/particles/shield.lua | 3 | 1317 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
ibm2431/darkstar | scripts/globals/abilities/pets/attachments/inhibitor_ii.lua | 11 | 1119 | -----------------------------------
-- Attachment: Inhibitor II
-----------------------------------
require("scripts/globals/automaton")
require("scripts/globals/status")
-----------------------------------
function onEquip(pet)
updateModPerformance(pet, dsp.mod.STORETP, 'inhibitor_ii_mod', 10)
pet:addMod(dsp.... | gpl-3.0 |
bittorf/luci | build/luadoc/luadoc/taglet/standard/tags.lua | 32 | 5542 | -------------------------------------------------------------------------------
-- Handlers for several tags
-- @release $Id: tags.lua,v 1.8 2007/09/05 12:39:09 tomas Exp $
-------------------------------------------------------------------------------
local luadoc = require "luadoc"
local util = require "luadoc.util"... | apache-2.0 |
LegionXI/darkstar | scripts/zones/Morimar_Basalt_Fields/Zone.lua | 17 | 1243 | -----------------------------------
--
-- Zone: Morimar Basalt Fields
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Morimar_Basalt_Fields/TextIDs"] = nil;
require("scripts/zones/Morimar_Basalt_Fields/TextIDs");
-----------------------------------
-- onIni... | gpl-3.0 |
ibm2431/darkstar | scripts/zones/Abyssea-Tahrongi/IDs.lua | 12 | 5067 | -----------------------------------
-- Area: Abyssea-Tahrongi
-----------------------------------
require("scripts/globals/keyitems")
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.ABYSSEA_TAHRONGI] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, --... | gpl-3.0 |
greasydeal/darkstar | scripts/globals/mobskills/Bai_Wing.lua | 25 | 1095 | ---------------------------------------------
-- Bai Wing
--
-- Description: A hot wind deals Fire damage to enemies within a very wide area of effect. Additional effect: Plague
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: 30' radial.
-- Notes: Used only by Ouryu and Cuelebre while fl... | gpl-3.0 |
gwlim/luci | applications/luci-asterisk/luasrc/model/cbi/asterisk-voice.lua | 80 | 1493 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 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
h... | apache-2.0 |
naclander/tome | game/modules/tome/data/quests/infinite-dungeon.lua | 3 | 1040 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
lache/RacingKingLee | crazyclient/frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/LayerGradient.lua | 11 | 5089 |
--------------------------------
-- @module LayerGradient
-- @extend LayerColor
-- @parent_module cc
--------------------------------
-- Returns the start color of the gradient.<br>
-- return The start color.
-- @function [parent=#LayerGradient] getStartColor
-- @param self
-- @return color3b_table#color3b_table re... | mit |
greasydeal/darkstar | scripts/zones/Tahrongi_Canyon/npcs/Shattered_Telepoint.lua | 7 | 2224 | -----------------------------------
-- Area: Tahrongi_Canyon
-- NPC: Shattered Telepoint
-- @pos 179 35 255 117
-----------------------------------
package.loaded["scripts/zones/Tahrongi_Canyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Tahrongi_Ca... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/RuLude_Gardens/npcs/Nelcabrit.lua | 14 | 2966 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Nelcabrit
-- Involved in Mission: San d'Oria 3-3, 4-1
-- @pos -32 9 -49 243
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
package.loaded["scripts/globals/missions"] = nil;
--------------------------... | gpl-3.0 |
ibm2431/darkstar | scripts/globals/items/broiled_carp.lua | 11 | 1070 | -----------------------------------------
-- ID: 4586
-- Item: Broiled Carp
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Dexterity 2
-- Mind -1
-- Ranged ATT % 14 (cap 45)
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
--------... | gpl-3.0 |
McSimp/Borderlands2SDK | lua/editortest.lua | 1 | 10193 | local ffi = require("ffi")
local function GetWeaponTypes()
local weaponTypes = {}
for i=0,(engine.Objects.Count-1) do
local obj = engine.Objects:Get(i)
if IsNull(obj) then goto continue end
if obj.UObject.Class ~= engine.Classes.UWeaponTypeDefinition.static then goto continue end
obj = ffi.cast("struct UWe... | mit |
Freezerburn/ld29-engine | LuaTest/lua/main.lua | 1 | 1315 | package.path = lfs.packagedir() .. "/?.lua"
local _width = 640
local _height = 480
local _windowFlags = bit32.bor(sdl.WINDOW_OPENGL,
sdl.WINDOW_ALLOW_HIGHDPI, sdl.WINDOW_SHOWN,
sdl.WINDOW_MOUSE_FOCUS, sdl.WINDOW_INPUT_FOCUS)
local _renderFlags = bit32.bor(sdl.RENDERER_PRESENTVSYNC, sdl.RENDERER_ACCELERATED)
lo... | mit |
master00041/aminasli | plugins/location.lua | 93 | 1704 | -- Implement a command !loc [area] which uses
-- the static map API to get a location image
-- Not sure if this is the proper way
-- Intent: get_latlong is in time.lua, we need it here
-- loadfile "time.lua"
-- Globals
-- If you have a google api key for the geocoding/timezone api
do
local api_key = nil
local base_... | gpl-2.0 |
ibm2431/darkstar | scripts/zones/Grauberg_[S]/IDs.lua | 9 | 1897 | -----------------------------------
-- Area: Grauberg_[S]
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.GRAUBERG_S] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. Come back a... | gpl-3.0 |
LegionXI/darkstar | scripts/globals/mobskills/Tebbad_Wing_Air.lua | 33 | 1083 | ---------------------------------------------
-- Tebbad Wing
--
-- Description: A hot wind deals Fire damage to enemies within a very wide area of effect. Additional effect: Plague
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: 30' radial.
-- Notes: Used only by Tiamat, Smok and Ildebrann
----... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Abyssea-Grauberg/npcs/Dominion_Tactician.lua | 61 | 4431 | -----------------------------------
-- Area: Abyssea - Grauberg
-- NPC: Dominion Tactician
--
-----------------------------------
package.loaded["scripts/zones/Abyssea-Grauberg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/abyssea");
require("script... | gpl-3.0 |
ibm2431/darkstar | scripts/globals/items/crepe_belle_helene.lua | 11 | 1185 | -----------------------------------------
-- ID: 5778
-- Item: Crepe Belle Helene
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- Intelligence +2
-- MP Healing +3
-- Magic Accuracy +21% (cap 50)
-- Magic Defense +1
-----------------------------------------
require("scripts/globals/status"... | gpl-3.0 |
ibm2431/darkstar | scripts/globals/items/serving_of_dusky_indulgence.lua | 11 | 1303 | -----------------------------------------
-- ID: 5553
-- Item: Serving of Dusky Indulgence
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10
-- MP +5% Cap 30
-- Intelligence +5
-- HP Recovered while healing +2
-- MP Recovered while healing +2
--------------------... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Bastok_Mines/npcs/Sodragamm.lua | 14 | 1102 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Sodragamm
-- Type: Item Deliverer
-- @zone 234
-- @pos -24.741 -1 -64.944
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scripts... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/Beaucedine_Glacier_[S]/npcs/Disserond_RK.lua | 38 | 1067 | -----------------------------------
-- Area: Beaucedine Glacier (S)
-- NPC: Disserond, R.K.
-- Type: Campaign Arbiter
-- @zone: 136
-- @pos 76.178 -60.763 -48.775
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier_[S]... | gpl-3.0 |
naclander/tome | game/engines/default/engine/Generator.lua | 3 | 2805 | -- TE4 - T-Engine 4
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later version.... | gpl-3.0 |
Drooids/xenia | third_party/capstone.lua | 10 | 1207 | group("third_party")
project("capstone")
uuid("b3a89f7e-bb02-4945-ae75-219caed6afa2")
kind("StaticLib")
language("C++")
links({
})
defines({
"CAPSTONE_X86_ATT_DISABLE",
"CAPSTONE_DIET_NO",
"CAPSTONE_X86_REDUCE_NO",
"CAPSTONE_HAS_X86",
"CAPSTONE_USE_SYS_DYN_MEM",
"_LIB",
})
includ... | bsd-3-clause |
ibm2431/darkstar | scripts/zones/Sacrarium/npcs/qm4.lua | 9 | 1606 | -----------------------------------
-- Area: Sacrarium
-- NPC: qm4 (???)
-- Notes: Used to spawn Old Prof. Mariselle
-- !pos 22.669 -3.111 127.279 28
-----------------------------------
local ID = require("scripts/zones/Sacrarium/IDs");
require("scripts/globals/keyitems");
require("scripts/globals/missions");
funct... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.