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
AdamGagorik/darkstar
scripts/globals/abilities/box_step.lua
11
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
sjznxd/lc-20130204
applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua
68
4034
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008-2011 Jo-Philipp Wich <xm@subsignal.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 htt...
apache-2.0
AdamGagorik/darkstar
scripts/zones/Windurst_Waters/npcs/Ranpi-Monpi.lua
12
5859
----------------------------------- -- Area: Windurst Waters -- NPC: Ranpi-Monpi -- Starts and Finishes Quest: A Crisis in the Making -- Involved in quest: In a Stew, For Want of a Pot, The Dawn of Delectability -- @zone = 238 -- @pos = -116 -3 52 (outside the shop he is in) ----------------------------------- pack...
gpl-3.0
Hostle/luci
applications/luci-app-radicale/luasrc/model/cbi/radicale.lua
39
27698
-- Copyright 2015 Christian Schoenebeck <christian dot schoenebeck at gmail dot com> -- Licensed under the Apache License, Version 2.0 local NXFS = require("nixio.fs") local DISP = require("luci.dispatcher") local DTYP = require("luci.cbi.datatypes") local HTTP = require("luci.http") local UTIL = require("luci.ut...
apache-2.0
LuaDist2/luasocket-unix
src/ltn12.lua
127
8177
----------------------------------------------------------------------------- -- LTN12 - Filters, sources, sinks and pumps. -- LuaSocket toolkit. -- Author: Diego Nehab -- RCS ID: $Id: ltn12.lua,v 1.31 2006/04/03 04:45:42 diego Exp $ ----------------------------------------------------------------------------- -------...
mit
sbuettner/kong
spec/plugins/ratelimiting/daos_spec.lua
12
3625
local spec_helper = require "spec.spec_helpers" local timestamp = require "kong.tools.timestamp" local uuid = require "uuid" local env = spec_helper.get_env() local dao_factory = env.dao_factory local ratelimiting_metrics = dao_factory.ratelimiting_metrics describe("Rate Limiting Metrics", function() local api_id =...
mit
AdamGagorik/darkstar
scripts/globals/weaponskills/iron_tempest.lua
11
1350
----------------------------------- -- Iron Tempest -- Great Axe weapon skill -- Skill Level: 40 -- Delivers a single-hit attack. Damage varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Soil Gorget. -- Aligned with the Soil Belt. -- Element: None -- Modifiers: STR:30% -- 100%TP 200%TP 300%TP -...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Apollyon/bcnms/SE_Apollyon.lua
13
1438
----------------------------------- -- Area: Appolyon -- Name: SE_Apollyon ----------------------------------- require("scripts/globals/limbus"); require("scripts/globals/keyitems"); -- After registering the BCNM via bcnmRegister(bcnmid) function onBcnmRegister(player,instance) SetServerVariable("[SE_Apollyon]Uniq...
gpl-3.0
martin-ueding/vicious
init.lua
1
6550
--------------------------------------------------- -- Vicious widgets for the awesome window manager --------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, Adrian C. <anrxc@sysphere.org> -- * (c) 2009, Lucas de Vries <lucas@glacicle.com> ---------------...
gpl-2.0
AdamGagorik/darkstar
scripts/globals/weaponskills/judgment.lua
9
1389
----------------------------------- -- Judgment -- Club weapon skill -- Were you looking for Judgment Key? -- Skill level: 200 -- Delivers a single-hit attack. Damage varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Thunder Gorget. -- Aligned with the Thunder Belt. -- Element: None -- Modifiers: STR...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Dynamis-Buburimu/mobs/Apocalyptic_Beast.lua
6
1510
----------------------------------- -- Area: Dynamis Buburimu -- MOB: Apocalyptic_Beast ----------------------------------- package.loaded["scripts/zones/Dynamis-Buburimu/TextIDs"] = nil; ----------------------------------- require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Buburimu/TextIDs"); requir...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Northern_San_dOria/npcs/Abioleget.lua
12
2390
----------------------------------- -- Area: Northern San d'Oria -- NPC: Abioleget -- Type: Quest Giver (Her Memories: The Faux Pas and The Vicasque's Sermon) / Merchant -- @zone: 231 -- @pos 128.771 0.000 118.538 -- ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = n...
gpl-3.0
teamactivebot/team-active
plugins/supergroup.lua
1
107521
--Begin supergrpup.lua --Check members #Add supergroup local function check_member_super(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg if success == 0 then send_large_msg(receiver, "ابتدا مرا ادمین گروه کنید") end for k,v in pairs...
gpl-2.0
persandstrom/packages
net/dynapoint/src/dynapoint.lua
20
6015
#!/usr/bin/lua --[[ Copyright (C) 2016 Tobias Ilte <tobias.ilte@campus.tu-berlin.de> 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 v...
gpl-2.0
sbuettner/kong
kong/dao/cassandra/consumers.lua
7
1141
local BaseDao = require "kong.dao.cassandra.base_dao" local query_builder = require "kong.dao.cassandra.query_builder" local consumers_schema = require "kong.dao.schemas.consumers" local Consumers = BaseDao:extend() function Consumers:new(properties) self._table = "consumers" self._schema = consumers_schema Co...
mit
adib1380/anti2
plugins/invite.lua
299
1025
-- Invite other user to the chat group. -- Use !invite name User_name or !invite id id_number -- The User_name is the print_name (there are no spaces but _) do local function callback(extra, success, result) vardump(success) vardump(result) end local function run(msg, matches) local user = matches[2] -- Use...
gpl-2.0
mahmedhany128/Mr_BOT
plugins/inpm.lua
4
9512
local function pre_process(msg) local to = msg.to.type local service = msg.service if to == 'user' and msg.fwd_from then if not is_support(msg.from.id) and not is_admin1(msg) then return end local user = 'user#id'..msg.from.id local from_id = msg.fwd_from.peer_id if msg.fwd_from.first_name then from_f...
gpl-2.0
pczarn/kollos
components/main/kollos/wrap.lua
1
6640
-- 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, -- distribute, sublicense, and/or sell...
mit
AdamGagorik/darkstar
scripts/globals/common.lua
35
2855
----------------------------------- -- -- ----------------------------------- ----------------------------------- -- switch ----------------------------------- function switch(c) local swtbl = { casevar = c, caseof = function (self,code) local f if (self.casevar) then f = cod...
gpl-3.0
mahmedhany128/Mr_BOT
plugins/kickme.lua
3
1299
--[[ -- by faeder -- by @xXxDev_iqxXx --]] do 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.username..')\nهل انت متاكد من الخروج من المجموعة ارسل (نعم)✔️ لكي تخرج من المجموعة ان لم...
gpl-2.0
AdamGagorik/darkstar
scripts/globals/mobskills/Gigaflare.lua
37
1686
--------------------------------------------- -- Gigaflare -- Family: Bahamut -- Description: Deals massive Fire damage to enemies within a fan-shaped area. -- Type: Magical -- Utsusemi/Blink absorb: Wipes shadows -- Range: -- Notes: Used by Bahamut when at 10% of its HP, and can use anytime afterwards at will...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Grand_Palace_of_HuXzoi/npcs/_iya.lua
12
1611
----------------------------------- -- Area: Grand Palace of Hu'Xzoi -- NPC: Gate of the Gods -- @pos -20 0.1 -283 34 ----------------------------------- package.loaded["scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Grand_Palace_of_HuXzoi/TextIDs")...
gpl-3.0
mikeboers/Flask-Lightroom
Flask.lrdevplugin/FlaskDiscoverPhotos.lua
1
7559
local Lr = require 'Lr' local JSON = require 'JSON' local utils = require 'FlaskUtils' local log = Lr.Logger() log:enable('print') log:info("Loading module...") local append = function(t, x) t[#t + 1] = x end local confirmRelink = function(localPhoto, remotePhoto) local ui = Lr.View.osFactory() -- lo...
bsd-3-clause
FrostOS-Team/FrostOS
Boot.lua
1
3000
--Better known as startup --WIP!! --DEV local allowRealTime = false --/DEV _G.xLen,_G.yLen = term.getSize() _G.CC = {} --Table for CC Apis local whileTrue = {} shell.run("FrostOS/resources/bootHelper.lua") boot.bootLogo() --Replace ccAPIs CC.os = {} CC.os.version = os.version --If not set in settings _G.APP = {} A...
gpl-2.0
AdamGagorik/darkstar
scripts/zones/Kazham/npcs/Kocho_Phunakcham.lua
15
1056
----------------------------------- -- 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
TrurlMcByte/docker-prosody
etc/prosody-modules/mod_mamsub/mod_mamsub.lua
16
1948
-- MAM Subscriptions prototype -- Copyright (C) 2015 Kim Alvefur -- -- This file is MIT/X11 licensed. local mt = require"util.multitable"; local st = require"util.stanza"; local xmlns_mamsub = "http://prosody.im/protocol/mamsub"; module:add_feature(xmlns_mamsub); local host_sessions = prosody.hosts[module.host].ses...
mit
AdamGagorik/darkstar
scripts/globals/items/culinarians_belt.lua
18
1172
----------------------------------------- -- ID: 15451 -- Item: Culinarian's Belt -- Enchantment: Synthesis image support -- 2Min, All Races ----------------------------------------- -- Enchantment: Synthesis image support -- Duration: 2Min -- Alchemy Skill +3 ----------------------------------------- require("scripts...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/abilities/feral_howl.lua
58
3525
--------------------------------------------------- -- Ability: Feral Howl -- Terrorizes the target. -- Obtained: Beastmaster Level 75 -- Recast Time: 0:05:00 -- Duration: Apprx. 0:00:01 - 0:00:10 --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status")...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/items/nebimonite_bake.lua
18
1370
----------------------------------------- -- ID: 4459 -- Item: nebimonite_bake -- Food Effect: 30Min, All Races ----------------------------------------- -- Dexterity 1 -- Vitality 2 -- Defense % 25 -- Defense Cap 70 ----------------------------------------- require("scripts/globals/status"); ------------------------...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Port_Windurst/npcs/Kuroido-Moido.lua
28
4137
----------------------------------- -- Area: Port Windurst -- NPC: Kuriodo-Moido -- Involved In Quest: Making Amends, Wonder Wands -- Starts and Finishes: Making Amens! -- Working 100% ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ---------------------------------...
gpl-3.0
mosy210/PERSION-BOT
plugins/gnuplot.lua
622
1813
--[[ * Gnuplot plugin by psykomantis * dependencies: * - gnuplot 5.00 * - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html * ]] -- Gnuplot needs absolute path for the plot, so i run some commands to find where we are local outputFile = io.popen("pwd","r") io.input(outputFile...
gpl-2.0
Nathan22Miles/sile
lua-libraries/epnf.lua
6
5054
local L = require( "lpeg" ) local assert = assert local _VERSION = assert( _VERSION ) local string, io = assert( string ), assert( io ) local error = assert( error ) local pairs = assert( pairs ) local next = assert( next ) local type = assert( type ) local tostring = assert( tostring ) local setmetatable = assert( se...
mit
AdamGagorik/darkstar
scripts/zones/Southern_San_dOria/npcs/Rouva.lua
13
1734
----------------------------------- -- Area: Southern San d'Oria -- NPC: Rouva -- Involved in Quest: Lure of the Wildcat (San d'Oria) -- @pos -17 2 10 230 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/global...
gpl-3.0
mohammad25253/seed238
plugins/quotes.lua
651
1630
local quotes_file = './data/quotes.lua' local quotes_table function read_quotes_file() local f = io.open(quotes_file, "r+") if f == nil then print ('Created a new quotes file on '..quotes_file) serialize_to_file({}, quotes_file) else print ('Quotes loaded: '..quotes_file) f...
gpl-2.0
AdamGagorik/darkstar
scripts/zones/La_Theine_Plateau/npcs/Vicorpasse.lua
13
2247
----------------------------------- -- Area: La Theine Plateau -- NPC: Vicorpasse -- Involved in Mission: The Rescue Drill -- @pos -344 37 266 102 ----------------------------------- package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"...
gpl-3.0
D-m-L/evonara
modules/libs/Peep/LoveFrames/objects/internal/scrollable/scrollbar.lua
10
8481
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ -- scrollbar class local newobject = loveframes.NewObject("scrollbar", "loveframes_object_scrollbar", true) --[[-----------...
mit
geoffleyland/lua-mmapfile
src-lua/mmapfile.lua
1
3468
--- A simple interface to mmap or MapViewOfFile -- mmapfile uses `mmap` (on Unix) or `MapViewOfFileEx` (on Windows) to -- provide a way of quickly storing and loading data that's already in some -- kind of in-memory binary format. -- -- `create` creates a new file and maps new memory to that file. You can -- the...
mit
Hostle/luci
applications/luci-app-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/widget.lua
68
1039
-- Copyright 2012 Manuel Munz <freifunk at somakoma dot de> -- Licensed to the public under the Apache License 2.0. local uci = require "luci.model.uci".cursor() local dsp = require "luci.dispatcher" local utl = require "luci.util" local widget = uci:get("freifunk-widgets", arg[1], "template") local title = uci:get("f...
apache-2.0
Hostle/luci
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/exec.lua
68
2536
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. m = Map("luci_statistics", translate("Exec Plugin Configuration"), translate( "The exec plugin starts external commands to read values " .. "from or to notify external processes when cer...
apache-2.0
archiloque/nginx_services_logging
lua_scripts/nginx_request_logger_http_request_element_configuration.lua
2
3010
local NginxRequestLoggerHelper = require("nginx_request_logger_helper") -- Read request element configuration local HttpRequestElementConfiguration = {} HttpRequestElementConfiguration.__index = HttpRequestElementConfiguration function HttpRequestElementConfiguration.new(endpoint_configuration, request_element_config...
mit
AdamGagorik/darkstar
scripts/globals/spells/invisible.lua
27
1280
----------------------------------------- -- Spell: Invisible -- Lessens chance of being detected by sight. -- Duration is random number between 30 seconds and 5 minutes ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); ----------------------------------...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/items/plate_of_beef_paella.lua
18
1554
----------------------------------------- -- ID: 5972 -- Item: Plate of Beef Paella -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- HP 40 -- Strength 5 -- Intelligence -1 -- Attack % 18 Cap 90 -- Undead Killer 5 ----------------------------------------- require("scripts/globals/status"); ...
gpl-3.0
kahluamods/kore
Locales/KKore-frFR.lua
1
4844
--[[ KahLua Kore - core library functions for KahLua addons. WWW: http://kahluamod.com/kore Git: https://github.com/kahluamods/kore IRC: #KahLua on irc.freenode.net E-mail: me@cruciformer.com Please refer to the file LICENSE.txt for the Apache License, Version 2.0. Copyright 2008-2019 Jam...
apache-2.0
neechbear/colloquy
src/connections.lua
1
51215
-- handles connections (searches, removes, adds etc) connections = 1; function dumpString(s) local c, cb; for i = 1, strlen(s) do c = strsub(s, i, i) cb = strbyte(c) if(cb < 32 or cb > 126) then write("(" .. cb .. ")") else write(c) end end write("\n"); end function daytime() ...
mit
AdamGagorik/darkstar
scripts/zones/Abyssea-Altepa/npcs/qm19.lua
17
1372
----------------------------------- -- Zone: Abyssea-Altepa -- NPC: ??? -- Spawns: ----------------------------------- require("scripts/globals/status"); require("scripts/globals/keyitems"); ----------------------------------- -- onTrigger Action ----------------------------------- function onTrigger(player,npc) --...
gpl-3.0
lidaohang/codis
extern/redis-2.8.13/deps/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
mit
D-m-L/evonara
modules/libs/Peep/LoveFrames/objects/checkbox.lua
3
9828
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ -- checkbox object local newobject = loveframes.NewObject("checkbox", "loveframes_object_checkbox", true) --[[-------------...
mit
AdamGagorik/darkstar
scripts/zones/Al_Zahbi/npcs/Iphaaf.lua
13
1040
----------------------------------- -- Area: Al Zahbi -- NPC: Iphaaf -- Type: Mihli's Attendant -- @zone: 48 -- @pos -28.014 -7 64.371 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil; ------------------------...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Horlais_Peak/bcnms/dropping_like_flies.lua
30
1741
----------------------------------- -- Area: Horlias peak -- Name: Dropping Like Flies -- BCNM30 ----------------------------------- package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Horlais_Peak/TextIDs"); ----------------------------------- -- EXA...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Buburimu_Peninsula/npcs/Logging_Point.lua
13
1080
----------------------------------- -- Area: Buburimu Peninsula -- NPC: Logging Point ----------------------------------- package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil; ------------------------------------- require("scripts/globals/logging"); require("scripts/zones/Buburimu_Peninsula/TextIDs"); ...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Cloister_of_Gales/bcnms/sugar-coated_directive.lua
30
1808
---------------------------------------- -- Area: Cloister of Gales -- BCNM: Sugar Coated Directive (ASA-4) ---------------------------------------- package.loaded["scripts/zones/Cloister_of_Gales/TextIDs"] = nil; ---------------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/qu...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/The_Eldieme_Necropolis/npcs/Treasure_Coffer.lua
13
4795
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: Treasure Coffer -- @zone 195 ----------------------------------- package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Nashmau/npcs/Yohj_Dukonlhy.lua
15
1397
----------------------------------- -- Area: Nashmau -- NPC: Yohj Dukonlhy -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Nashmau/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Nashmau/TextIDs"); ----------------------------------- -- onTrade Action...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Southern_San_dOria/npcs/Emoussine.lua
27
2406
----------------------------------- -- Area: Southern San d'Oria -- NPC: Emoussine -- Type: Chocobo Renter -- @pos -11 1 -100 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/chocobo"); require("scripts/g...
gpl-3.0
Hostle/luci
modules/luci-base/luasrc/model/cbi/admin_network/proto_static.lua
60
2460
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local ifc = net:get_interface() local ipaddr, netmask, gateway, broadcast, dns, accept_ra, send_rs, ip6addr, ip6gw local mtu, metric ipaddr = section:taboption("general", Value, ...
apache-2.0
AdamGagorik/darkstar
scripts/globals/abilities/repair.lua
26
4408
----------------------------------- -- Ability: Repair -- Uses oil to restore pet's HP. -- Obtained: Puppetmaster Level 15 -- Recast Time: 3:00 -- Duration: Instant ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/pets"); ------------...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Inner_Horutoto_Ruins/npcs/_5cu.lua
13
2537
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: _5cu (Magical Gizmo) #6 -- Involved In Mission: The Horutoto Ruins Experiment ----------------------------------- package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil; ----------------------------------- require("scripts/...
gpl-3.0
sjznxd/lc-20130204
applications/luci-olsr/luasrc/model/cbi/olsr/olsrdiface.lua
30
5877
--[[ LuCI - Lua Configuration Interface Copyright 2010 Jo-Philipp Wich <xm@subsignal.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$ ]]-- f...
apache-2.0
AdamGagorik/darkstar
scripts/zones/Bastok_Markets/npcs/Michea.lua
29
4408
----------------------------------- -- Area: Bastok Markets -- NPC: Michea -- Quest NPC -- Starts: Father Figure (100%) | The Elvaan Goldsmith (100%) -- Involed in: Fetichism | Where Two Paths Converge ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; --------------------...
gpl-3.0
mamadtnt/new4
plugins/time.lua
94
3004
-- 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
AdamGagorik/darkstar
scripts/globals/weaponskills/blast_arrow.lua
9
1362
----------------------------------- -- Blast Arrow -- Archery weapon skill -- Skill level: 200 -- Delivers a melee-distance ranged attack. params.accuracy varies with TP. -- Aligned with the Snow Gorget & Light Gorget. -- Aligned with the Snow Belt & Light Belt. -- Element: None -- Modifiers: STR:16% ; AGI:25% -- 100%T...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/mobskills/Pyric_Blast.lua
33
1323
--------------------------------------------- -- Pyric Blast -- -- Description: Deals Fire damage to enemies within a fan-shaped area. Additional effect: Plague -- Type: Breath -- Ignores Shadows -- Range: Unknown Cone --------------------------------------------- require("scripts/globals/settings"); require("scr...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Southern_San_dOria/npcs/Taumila.lua
24
2350
----------------------------------- -- Area: Northern San d'Oria -- NPC: Taumila -- Starts and Finishes Quest: Tiger's Teeth (R) -- @pos -140 -5 -8 230 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/sett...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/effects/str_down.lua
34
1111
----------------------------------- -- -- EFFECT_STR_DOWN -- ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) if ((target:getStat(MOD_STR) - effect:ge...
gpl-3.0
TeleDALAD/test1
plugins/sudoers.lua
86
2292
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(receiver, '...
gpl-2.0
AdamGagorik/darkstar
scripts/zones/Port_San_dOria/npcs/HomePoint#2.lua
27
1270
----------------------------------- -- Area: Port San dOria -- NPC: HomePoint#2 -- @pos 48 -12.000 -105 232 ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Port_San_dOria/TextIDs"); require("scripts/globals/...
gpl-3.0
chfg007/skynet
test/testsocket.lua
80
1078
local skynet = require "skynet" local socket = require "socket" local mode , id = ... local function echo(id) socket.start(id) while true do local str = socket.read(id) if str then socket.write(id, str) else socket.close(id) return end end end if mode == "agent" then id = tonumber(id) skynet....
mit
luveti/Urho3D
bin/Data/LuaScripts/04_StaticScene.lua
24
7000
-- Static 3D scene example. -- This sample demonstrates: -- - Creating a 3D scene with static content -- - Displaying the scene using the Renderer subsystem -- - Handling keyboard and mouse input to move a freelook camera require "LuaScripts/Utilities/Sample" function Start() -- Execute the c...
mit
Wiladams/cream
testy/test_kernel_predicate.lua
1
1437
--test_kernel_predicate.lua --package.path = package.path..";../?.lua" --local Kernel = require("kernel"){exportglobal = true} local Functor = Kernel.Functor local idx = 0; local maxidx = 100; local function numbers(ending) local function closure() idx = idx + 1; if idx > ending then return nil; end ret...
mit
Asher9/Asher9-s-Programms
OpenOS-Updater/updater.lua
1
6064
-- pastebin run -f Uv3Cj0Yp -- from Asher9 -- https://github.com/Asher9/Asher9-s-Programms --[[ loadfile("/bin/wget.lua")("-f", "https://raw.githubusercontent.com/Asher9/Asher9-s-Programms/master/GitHub-Downloader/github.lua", "/bin/github.lua") loadfile("/bin/github.lua")("MightyPirates", "OpenComputers", "master-MC1...
mit
AdamGagorik/darkstar
scripts/zones/Kazham/npcs/Nti_Badolsoma.lua
15
1053
----------------------------------- -- Area: Kazham -- NPC: Nti Badolsoma -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); ----------------------------------- -- onTrade Action ----------------------------------- f...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Abyssea-Grauberg/npcs/qm13.lua
17
1364
----------------------------------- -- Zone: Abyssea-Grauberg -- NPC: ??? -- Spawns: Azdaja ----------------------------------- require("scripts/globals/status"); require("scripts/globals/keyitems"); ----------------------------------- -- onTrigger Action ----------------------------------- function onTrigger(playe...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Chateau_dOraguille/npcs/Nachou.lua
13
1061
----------------------------------- -- Area: Chateau d'Oraguille -- NPC: Nachou -- Type: Standard NPC -- @zone: 233 -- @pos -39.965 -3.999 34.292 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil; ---...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/PsoXja/npcs/_09f.lua
13
2831
----------------------------------- -- Area: Pso'Xja -- NPC: _09f (Stone Gate) -- Notes: Spawns Gargoyle when triggered -- @pos 310.000 -1.925 -38.400 9 ----------------------------------- package.loaded["scripts/zones/PsoXja/TextIDs"] = nil; ----------------------------------- require("scripts/zones/PsoXja/TextIDs...
gpl-3.0
chfg007/skynet
lualib/skynet.lua
19
15386
local c = require "skynet.core" local tostring = tostring local tonumber = tonumber local coroutine = coroutine local assert = assert local pairs = pairs local pcall = pcall local profile = require "profile" coroutine.resume = profile.resume coroutine.yield = profile.yield local proto = {} local skynet = { -- read ...
mit
pczarn/kollos
components/test/luif/aaaa.lua
1
1864
--[[ Copyright 2015 Jeffrey Kegler 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, distribute, sub...
mit
samuelwbaird/brogue
source/rascal/proxy/client.lua
1
3400
-- create a client to a published API -- the api_description is used to create new methods on the fly -- that validate parameters and marshall data using cmsgpack across the 0MQ channels -- marshalling is transparent to the caller of the API -- -- some APIs are request/response, and the proxy will block on the response...
mit
Laeeth/dub
test/opt_parser_test.lua
4
1299
--[[------------------------------------------------------ dub.OptParser test ------------------ ... --]]------------------------------------------------------ local lub = require 'lub' local lut = require 'lut' local dub = require 'dub' local should = lut.Test('dub.OptParser') local opt = dub.OptParser fun...
mit
luveti/Urho3D
Source/Urho3D/LuaScript/pkgs/ToDoxHook.lua
1
19864
-- -- Copyright (c) 2008-2016 the Urho3D project. -- -- 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, m...
mit
AdamGagorik/darkstar
scripts/globals/weaponskills/shockwave.lua
10
1454
----------------------------------- -- Shockwave -- Great Sword weapon skill -- Skill level: 150 -- Delivers an area of effect attack. Sleeps enemies. Duration of effect varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Aqua Gorget. -- Aligned with the Aqua Belt. -- Element: None -- Modifiers: STR:30...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/items/pestle.lua
41
1123
----------------------------------------- -- ID: 18599 -- Item: Pestle -- Additional effect: MP Drain ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- onAdditionalEffect Action ----------------------------------- fun...
gpl-3.0
Tonny-Gu/Project-Habrew
HAP-NodeMCU/src_v2/Aircon/init.lua
1
3260
DevID="2" DevType="Aircon" MQTT_Server="192.168.1.1" MQTT_Port="1883" WiFi_SSID="taihenkaku" WiFi_PSK="18577288034" Temp=0 Humi=0 function wait(t) tmr.delay(t*1000) end function mseconds() return tmr.now()/1000 end function moto_duty(p) pwm.setduty(2,p) end function led1_duty(p) pwm.setduty(4,1023-p) ...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/spells/bluemagic/regurgitation.lua
25
2017
----------------------------------------- -- Spell: Regurgitation -- Deals Water damage to an enemy. Additional Effect: Bind -- Spell cost: 69 MP -- Monster Type: Lizards -- Spell Type: Magical (Water) -- Blue Magic Points: 1 -- Stat Bonus: INT+1 MND+1 MP+3 -- Level: 68 -- Casting Time: 5 seconds -- Recast Time: 24 sec...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Port_San_dOria/npcs/Artinien.lua
13
1356
----------------------------------- -- Area: Port San d'Oria -- NPC: Artinien -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/zones/Port_San_dOria/TextIDs"); -...
gpl-3.0
TeleDALAD/test1
plugins/welcome.lua
190
3526
local add_user_cfg = load_from_file('data/add_user_cfg.lua') local function template_add_user(base, to_username, from_username, chat_name, chat_id) base = base or '' to_username = '@' .. (to_username or '') from_username = '@' .. (from_username or '') chat_name = string.gsub(chat_name, '_', ' ') or '' c...
gpl-2.0
iotcafe/nodemcu-firmware
lua_examples/email/send_email_smtp.lua
82
4640
--- -- Working Example: https://www.youtube.com/watch?v=CcRbFIJ8aeU -- @description a basic SMTP email example. You must use an account which can provide unencrypted authenticated access. -- This example was tested with an AOL and Time Warner email accounts. GMail does not offer unecrypted authenticated access. -- To o...
mit
TrurlMcByte/docker-prosody
etc/prosody-modules/mod_message_logging/mod_message_logging.lua
32
3943
module:set_global(); local jid_bare = require "util.jid".bare; local jid_split = require "util.jid".split; local stat, mkdir = require "lfs".attributes, require "lfs".mkdir; -- Get a filesystem-safe string local function fsencode_char(c) return ("%%%02x"):format(c:byte()); end local function fsencode(s) return (s:...
mit
sjznxd/lc-20130204
libs/core/luasrc/util.lua
81
21858
--[[ LuCI - Utility library Description: Several common useful Lua functions License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www....
apache-2.0
ModMountain/hash.js
plugins/lua/sand_modules/timer.lua
1
2244
local tostring = require "stostring" local scall = require "scall" local timers = {} local simple_timers = {} local function CreateSimpleTimerPacket( id, delay ) local header = HEADERSTART .. "SimpleTimer," .. tostring(id) .. ":" .. tostring(delay) .. HEADEREND return header end local function CreateTimerPack...
cc0-1.0
sbuettner/kong
kong/plugins/response_transformer/header_filter.lua
18
1441
local utils = require "kong.tools.utils" local stringy = require "stringy" local _M = {} local APPLICATION_JSON = "application/json" local CONTENT_TYPE = "content-type" local CONTENT_LENGTH = "content-length" local function get_content_type() local header_value = ngx.header[CONTENT_TYPE] if header_value then ...
mit
AdamGagorik/darkstar
scripts/zones/Port_San_dOria/npcs/Portaure.lua
13
1570
----------------------------------- -- Area: Port San d'Oria -- NPC: Portaure -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; require("scripts/zones/Port_San_dOria/TextIDs"); ----------------------------------- -- onTrade Action ------------------...
gpl-3.0
sax/dotfiles
nvim/lua/user/indent-blankline.lua
4
2004
local status_ok, indent_blankline = pcall(require, "indent_blankline") if not status_ok then return end vim.g.indent_blankline_buftype_exclude = { "terminal", "nofile" } vim.g.indent_blankline_filetype_exclude = { "help", "startify", "dashboard", "packer", "neogitstatus", "NvimTree", "Trouble", } vim.g.indentL...
mit
ohmbase/OpenRA
mods/ra/maps/soviet-01/soviet01.lua
26
2150
Yaks = { "yak", "yak", "yak" } Airfields = { Airfield1, Airfield2, Airfield3 } InsertYaks = function() local i = 1 Utils.Do(Yaks, function(yakType) local start = YakEntry.CenterPosition + WVec.New(0, (i - 1) * 1536, Actor.CruiseAltitude(yakType)) local dest = StartJeep.Location + CVec.New(0, 2 * i) local yak =...
gpl-3.0
kidaa/torch7
init.lua
24
3702
-- We are using paths.require to appease mkl -- Make this work with LuaJIT in Lua 5.2 compatibility mode, which -- renames string.gfind (already deprecated in 5.1) if not string.gfind then string.gfind = string.gmatch end if not table.unpack then table.unpack = unpack end require "paths" paths.require "libto...
bsd-3-clause
Hostle/luci
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/proto_ahcp.lua
84
2006
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local device, apn, service, pincode, username, password local ipv6, maxwait, defaultroute, metric, peerdns, dns, keepalive_failure, keepalive_interval, demand mca = s:tabop...
apache-2.0
sbuettner/kong
kong/dao/cassandra/plugins_configurations.lua
7
2139
local plugins_configurations_schema = require "kong.dao.schemas.plugins_configurations" local query_builder = require "kong.dao.cassandra.query_builder" local constants = require "kong.constants" local BaseDao = require "kong.dao.cassandra.base_dao" local cjson = require "cjson" local PluginsConfigurations = BaseDao:e...
mit
AdamGagorik/darkstar
scripts/zones/The_Sanctuary_of_ZiTah/npcs/qm2.lua
13
1918
----------------------------------- -- Area: The Sanctuary of ZiTah -- NPC: qm2 (???) -- Involved in Quest: Forge Your Destiny -- @pos 639 -1 -151 121 ----------------------------------- package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil; ----------------------------------- require("scripts/globals/...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/La_Theine_Plateau/npcs/Stone_Monument.lua
13
1281
----------------------------------- -- Area: La Theine Plateau -- NPC: Stone Monument -- Involved in quest "An Explorer's Footsteps" -- @pos 334.133 50.623 141.163 102 ----------------------------------- package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil; ----------------------------------- require("...
gpl-3.0
chfg007/skynet
lualib/http/httpd.lua
101
3708
local internal = require "http.internal" local table = table local string = string local type = type local httpd = {} local http_status_msg = { [100] = "Continue", [101] = "Switching Protocols", [200] = "OK", [201] = "Created", [202] = "Accepted", [203] = "Non-Authoritative Information", [204] = "No Content",...
mit
CCAAHH/Teleseed
plugins/all.lua
1321
4661
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0