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/zones/Mount_Zhayolm/mobs/Wamoura_Prince.lua
30
1567
----------------------------------- -- Area: Mount Zhayolm -- MOB: Wamoura Prince ----------------------------------- require("scripts/globals/status"); -- TODO: Damage resistances in streched and curled stances. Halting movement during stance change. Morph into Wamoura. ----------------------------------- -- OnMobS...
gpl-3.0
sjznxd/lc-20130204
libs/nixio/docsrc/CHANGELOG.lua
95
1036
--- Changes and improvements. module "CHANGELOG" --- Service Release. -- <ul> -- <li>Added getifaddrs() function.</li> -- <li>Added getsockopt(), setsockopt(), getsockname() and getpeername() -- directly to TLS-socket objects unifying the socket interface.</li> -- <li>Added support for CyaSSL as cryptographical backen...
apache-2.0
AdamGagorik/darkstar
scripts/globals/items/spirit_maul.lua
26
1498
----------------------------------------- -- ID: 18853 -- Spirit Maul -- Additional effect: Light damage -- Enchantment: TP+100 ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- onAdditionalEffect Action --------------...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Kazham/npcs/Mumupp.lua
13
4323
----------------------------------- -- Area: Kazham -- NPC: Mumupp -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); require("scripts/globals/pathfind"); local path = { 94.732452, -15.000000, -114.034622, 94.210846, ...
gpl-3.0
luveti/Urho3D
Source/ThirdParty/toluapp/src/bin/lua/variable.lua
24
9336
-- tolua: variable class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id: $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation to provide maintenance, support, updates, -- enhancement...
mit
ohmbase/OpenRA
mods/cnc/maps/nod01/nod01.lua
14
3143
InitialForcesA = { "bggy", "e1", "e1", "e1", "e1" } InitialForcesB = { "e1", "e1", "bggy", "e1", "e1" } RifleInfantryReinforcements = { "e1", "e1" } RocketInfantryReinforcements = { "e3", "e3", "e3", "e3", "e3" } SendInitialForces = function() Media.PlaySpeechNotification(nod, "Reinforce") Reinforcements.Reinforce...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Phomiuna_Aqueducts/npcs/_ir5.lua
13
1296
----------------------------------- -- Area: Phomiuna_Aqueducts -- NPC: _ir5 (Oil Lamp) -- Notes: Opens north door at J-9 from inside. -- @pos 103.703 -26.180 37.000 27 ----------------------------------- package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil; ----------------------------------- require("sc...
gpl-3.0
ohmbase/OpenRA
mods/ra/maps/soviet-04a/reinforcements_teams.lua
20
2642
Civs = { civ1, civ2, civ3 } Village = { civ1, civ2, civ3, village1, village2, village5 } SovietMCV = { "mcv" } InfantryReinfGreece = { "e1", "e1", "e1", "e1", "e1" } Avengers = { "jeep", "1tnk", "2tnk", "2tnk", "1tnk" } Patrol1Group = { "jeep", "jeep", "2tnk", "2tnk" } Patrol2Group = { "jeep", "1tnk", "1tnk", "1tnk" } ...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/spells/utsusemi_ichi.lua
28
1085
----------------------------------------- -- Spell: Utsusemi: Ichi ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0; end; func...
gpl-3.0
guodongxiaren/thrift
lib/lua/TServer.lua
74
3988
-- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); you ma...
apache-2.0
githubtelebot/Bot-telebot
plugins/admin.lua
7
6390
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/Dynamis-Beaucedine/mobs/Adamantking_Effigy.lua
6
1848
----------------------------------- -- Area: Dynamis Beaucedine -- MOB: Adamantking Effigy -- Map Position: http://images1.wikia.nocookie.net/__cb20090312005233/ffxi/images/thumb/b/b6/Bea.jpg/375px-Bea.jpg ----------------------------------- package.loaded["scripts/zones/Dynamis-Beaucedine/TextIDs"] = nil; -----------...
gpl-3.0
rinstrum/LUA-LIB
C500Examples/external.lua
2
6339
#!/usr/bin/env lua ------------------------------------------------------------------------------- -- external -- -- Example of how to set up sockets for remote connections to this device -- To see things operating, telnet to port 1111 or 1112. ---------------------------------------------------------------------------...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Castle_Oztroja/npcs/_475.lua
13
1127
----------------------------------- -- Area: Castle Oztroja -- NPC: _475 (Brass Door) -- Involved in Mission: Magicite -- @pos -99 24 -105 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); requ...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Gusgen_Mines/npcs/Mining_Point.lua
13
1057
----------------------------------- -- Area: Gusgen Mines -- NPC: Mining Point ----------------------------------- package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil; ------------------------------------- require("scripts/globals/mining"); require("scripts/zones/Gusgen_Mines/TextIDs"); --------------------...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Northern_San_dOria/Zone.lua
15
4726
----------------------------------- -- -- Zone: Northern_San_dOria (231) -- ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; require("scripts/globals/events/harvest_festivals"); require("scripts/globals/zone"); require("scripts/globals/settings"); require("scripts/g...
gpl-3.0
sbuettner/kong
kong/api/routes/apis.lua
11
2737
local validations = require "kong.dao.schemas_validation" local crud = require "kong.api.crud_helpers" local syslog = require "kong.tools.syslog" local constants = require "kong.constants" return { ["/apis/"] = { GET = function(self, dao_factory) crud.paginated_set(self, dao_factory.apis) end, PUT...
mit
AdamGagorik/darkstar
scripts/globals/items/frost_turnip.lua
18
1186
----------------------------------------- -- ID: 4382 -- Item: frost_turnip -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility 2 -- Vitality -4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ------...
gpl-3.0
SwadicalRag/banana
lua/banana/string/bitstring.lua
1
2323
local BitString = banana.Define("BitString") function BitString:__ctor() self.bits = {} self.bitCount = 1 end function BitString:toBitsEx(num,padding) local out = {} for bit=padding,1,-1 do out[bit] = math.fmod(num,2) num = (num - out[bit])/2 end return out end function BitSt...
mit
AdamGagorik/darkstar
scripts/globals/spells/bluemagic/screwdriver.lua
35
1877
----------------------------------------- -- Spell: Screwdriver -- Deals critical damage. Chance of critical hit varies with TP -- Spell cost: 21 MP -- Monster Type: Aquans -- Spell Type: Physical (Piercing) -- Blue Magic Points: 3 -- Stat Bonus: VIT+1, CHR+1, HP+10 -- Level: 26 -- Casting Time: 0.5 seconds -- Recast T...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/mobskills/PL_Tidal_Slash.lua
35
1100
--------------------------------------------- -- Tidal Slash -- -- Description: Deals Water damage in a threefold -- attack to targets in a fan-shaped area of effect. -- Type: Physical? -- Utsusemi/Blink absorb: 2-3 shadows -- Range: Melee? -- Notes: Used only by Merrows equipped with a spear. -- If they lost their s...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Port_San_dOria/npcs/Nimia.lua
12
2003
----------------------------------- -- Area: Port San d'Oria -- NPC: Nimia -- Only sells when San d'Oria controlls Elshimo Lowlands -- Working 100% ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/items/bowl_of_ocean_soup.lua
18
1899
----------------------------------------- -- ID: 4285 -- Item: bowl_of_ocean_soup -- Food Effect: 4Hrs, All Races ----------------------------------------- -- HP % 5 -- MP 5 -- Dexterity 4 -- Mind -3 -- HP Recovered While Healing 9 -- Attack % 14 (cap 65) -- Ranged Attack % 14 (cap 65) ---------------------------------...
gpl-3.0
SwadicalRag/banana
lua/banana/table/markov/word.lua
1
1676
local MarkovWord = banana.Define("MarkovWord") function MarkovWord:__ctor() self.word = "placeholder" self.children = {} self.childrenLookup = {} self.childrenFrequency = {} self.totalFrequency = 0 end function MarkovWord:AddChild(word) if not self.childrenLookup[word:GetString()] then ...
mit
AdamGagorik/darkstar
scripts/globals/effects/field_support_food.lua
33
3130
----------------------------------- -- -- EFFECT_FIELD_SUPPORT_FOOD -- From FoV and GoV ----------------------------------- ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) if (effect:getPower() == 1) then -- Dried Meat tar...
gpl-3.0
Lexicality/gmmodules
CSVars.lua
1
5727
--[[ ~ CSVars ~ Copyright (c) 2011 Lexi Robinson 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, mod...
mit
aquileia/wesnoth
data/ai/micro_ais/micro_ai_unit_variables.lua
33
3529
-- This set of functions provides a consistent way of storing Micro AI -- variables in units. They need to be stored inside a [micro_ai] tag in a -- unit's [variables] tag together with an ai_id= key, so that they can be -- removed when the Micro AI gets deleted. Otherwise subsequent Micro AIs used -- in the same scena...
gpl-2.0
sjznxd/lc-20130204
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/dns.lua
85
2332
--[[ Luci statistics - dns plugin diagram definition Copyright 2011 Manuel Munz <freifunk at somakoma dot de> 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/license...
apache-2.0
luveti/Urho3D
Source/ThirdParty/LuaJIT/src/jit/dump.lua
42
19801
---------------------------------------------------------------------------- -- LuaJIT compiler dump module. -- -- Copyright (C) 2005-2016 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -- -...
mit
AdamGagorik/darkstar
scripts/globals/spells/blindga.lua
20
1145
----------------------------------------- -- Spell: Blind ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target,spell)...
gpl-3.0
Nathan22Miles/sile
packages/counters.lua
1
2504
if not SILE.scratch.counters then SILE.scratch.counters = {} end romans = { {1000, "M"}, {900, "CM"}, {500, "D"}, {400, "CD"}, {100, "C"}, {90, "XC"}, {50, "L"}, {40, "XL"}, {10, "X"}, {9, "IX"}, {5, "V"}, {4, "IV"}, {1, "I"} } local function romanize(k) str = "" k = k + 0 for _, v in ipairs(romans) do...
mit
AdamGagorik/darkstar
scripts/commands/reloadglobal.lua
14
1197
--------------------------------------------------------------------------------------------------- -- func: @reloadglobal -- desc: Attempt to reload specified global lua without a restart. -- -- Use with caution, some files ( like player.lua ) -- can cause you problems if you reload them using this. -- This command ex...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/effects/dark_arts.lua
65
2045
----------------------------------- -- -- -- ----------------------------------- ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) target:recalculateAbilitiesTable(); local bonus = effect:getPower(); local helix = effect:get...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/weaponskills/hot_shot.lua
11
1351
----------------------------------- -- Hot Shot -- Marksmanship weapon skill -- Skill Level: 5 -- Deals fire elemental damage to enemy. -- Aligned with the Flame Gorget & Light Gorget. -- Aligned with the Flame Belt & Light Belt. -- Element: Fire -- Modifiers: AGI:30% -- 100%TP 200%TP 300%TP -- 0.50 0.75 ...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/spells/diaga_ii.lua
26
1930
----------------------------------------- -- Spell: Diaga II -- Lowers an enemy's defense and gradually deals light elemental damage. ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ------------------------------------...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Port_Bastok/npcs/Rosswald.lua
16
1621
----------------------------------- -- Area: Port Bastok -- NPC: Rosswald -- Only sells when Bastok controlls Zulkheim Region -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loaded["scripts/zones/Port_Bastok/TextIDs"...
gpl-3.0
Laeeth/dub
test/lua_pointers_test.lua
4
23140
--[[------------------------------------------------------ param_ dub.LuaBinder ------------- Test binding with the 'pointers' group of classes: * passing classes around as arguments. * casting script strings to std::string. * casting std::string to script strings. * accessing complex public mem...
mit
GiantCyber/Giants_TM
plugins/admin.lua
381
7085
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(rec...
agpl-3.0
AdamGagorik/darkstar
scripts/zones/Mhaura/npcs/Dieh_Yamilsiah.lua
13
2204
----------------------------------- -- Area: Mhaura -- NPC: Dieh Yamilsiah -- Reports the time remaining before boat arrival. -- @pos 7.057 -2.364 2.489 249 ----------------------------------- package.loaded["scripts/zones/Mhaura/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Mhaura/TextI...
gpl-3.0
cmotc/svirfneblin-battery-widget
etc/xdg/svirfneblin/battery/batt.lua
1
2299
local io = io local math = math local naughty = require("naughty") local beautiful = require("beautiful") local tonumber = tonumber local tostring = tostring local print = print local pairs = pairs module("battery") local limits = {{25, 5}, {12, 3}, { 7, 1}, {0}} function get_bat_stat...
lgpl-3.0
yestein/LuaSample
Messager/messager.lua
1
1323
--======================================================================= -- File Name : co -- Creator : yestein(yestein86@gmail.com) -- Date : coroutine -- Description : 18/05/2016 14:49:44 -- Modify : --======================================================================= local Messager = {}...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/spells/bluemagic/healing_breeze.lua
27
1754
----------------------------------------- -- Spell: Healing Breeze -- Restores HP for party members within area of effect -- Spell cost: 55 MP -- Monster Type: Beasts -- Spell Type: Magical (Wind) -- Blue Magic Points: 4 -- Stat Bonus: CHR+2, HP+10 -- Level: 16 -- Casting Time: 4.5 seconds -- Recast Time: 15 seconds --...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/The_Eldieme_Necropolis_[S]/npcs/Turbulent_Storm.lua
29
1838
----------------------------------- -- Area: The Eldieme Necropolis [S] -- NPC: Turbulent Storm -- Note: Starts Quest "The Fighting Fourth" -- @pos 422.461 -48.000 175 ----------------------------------- package.loaded["scripts/zones/The_Eldieme_Necropolis_[S]/TextIDs"] = nil; ----------------------------------- req...
gpl-3.0
nerdclub-tfg/telegram-bot
plugins/metar.lua
1
15238
do local http = require("socket.http") function table_print (tt, indent, done) done = done or {} indent = indent or 0 if type(tt) == "table" then local sb = {} for key, value in pairs (tt) do table.insert(sb, string.rep (" ", indent)) -- indent it if type (value) == "table" and not done [val...
gpl-2.0
mohammadrassoul/roborsevenn
plugins/del.lua
1
1433
local function delmsg (i,naji) msgs = i.msgs for k,v in pairs(naji.messages_) do msgs = msgs - 1 tdcli.deleteMessages(v.chat_id_,{[0] = v.id_}, dl_cb, cmd) if msgs == 1 then tdcli.deleteMessages(naji.messages_[0].chat_id_,{[0] = naji.messages_[0].id_}, dl_cb, cmd) ...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Windurst_Woods/npcs/Forine.lua
27
1121
----------------------------------- -- Area: Windurst Woods -- NPC: Forine -- Involved In Mission: Journey Abroad -- @zone 241 -- @pos -52.677 -0.501 -26.299 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/globals/k...
gpl-3.0
luveti/Urho3D
bin/Data/LuaScripts/11_Physics.lua
24
12206
-- Physics example. -- This sample demonstrates: -- - Creating both static and moving physics objects to a scene -- - Displaying physics debug geometry -- - Using the Skybox component for setting up an unmoving sky -- - Saving a scene to a file and loading it to restore a previous state require ...
mit
robertfoss/nodemcu-firmware
lua_modules/bh1750/bh1750_Example2.lua
89
1719
-- *************************************************************************** -- BH1750 Example Program for ESP8266 with nodeMCU -- BH1750 compatible tested 2015-1-30 -- -- Written by xiaohu -- -- MIT license, http://opensource.org/licenses/MIT -- ***********************************************************************...
mit
iotcafe/nodemcu-firmware
lua_modules/bh1750/bh1750_Example2.lua
89
1719
-- *************************************************************************** -- BH1750 Example Program for ESP8266 with nodeMCU -- BH1750 compatible tested 2015-1-30 -- -- Written by xiaohu -- -- MIT license, http://opensource.org/licenses/MIT -- ***********************************************************************...
mit
AdamGagorik/darkstar
scripts/globals/weaponskills/glory_slash.lua
10
1549
----------------------------------- -- Glory Slash -- Sword weapon skill -- Skill Level: NA -- Only avaliable during Campaign Battle while weilding Lex Talionis. -- Delivers and area attack that deals triple damage. Damage varies with TP. Additional effect Stun. -- Will stack with Sneak Attack. -- Aligned with the Flam...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Zeruhn_Mines/npcs/Mining_Point.lua
13
1057
----------------------------------- -- Area: Zeruhn Mines -- NPC: Mining Point ----------------------------------- package.loaded["scripts/zones/Zeruhn_Mines/TextIDs"] = nil; ------------------------------------- require("scripts/globals/mining"); require("scripts/zones/Zeruhn_Mines/TextIDs"); --------------------...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Dynamis-Xarcabard/bcnms/dynamis_xarcabard.lua
21
1443
----------------------------------- -- Area: Dynamis Xarcabard -- Name: Dynamis Xarcabard ----------------------------------- -- After registering the BCNM via bcnmRegister(bcnmid) function onBcnmRegister(player,instance) SetServerVariable("[DynaXarcabard]UniqueID",player:getDynamisUniqueID(1285)); SetSer...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Davoi/npcs/!.lua
13
2631
----------------------------------- -- Area: Davoi -- NPC: ! -- Involved in Mission: The Davoi Report -- @pos 164 0.1 -21 149 ----------------------------------- package.loaded["scripts/zones/Davoi/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/globals/keyit...
gpl-3.0
geoffleyland/lua-mmapfile
src-lua/mmapfile/unix.lua
1
8071
--- A simple interface to mmap. -- mmapfile uses `mmap` 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 -- then write to the memory to write to the file. -- -- `open` opens a...
mit
AdamGagorik/darkstar
scripts/zones/Southern_San_dOria/npcs/Aubejart.lua
13
1460
----------------------------------- -- Area: Southern San d'Oria -- NPC: Aubejart -- General Info NPC -- @zone 230 -- @pos 3 -2 46 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"...
gpl-3.0
neechbear/colloquy
docs/gagbot.lua
1
18420
#!bots/lua -f -- Colloquy GagBot, by Rob Kendrick -- Based on Nick Waterman's EH GagBot _ = {}; function match(pattern, string) if (not string) then string = String; end; local t = { _ = {} }; local tmp, r = gsub(string, pattern, function(...) %t._ = arg; ...
mit
AdamGagorik/darkstar
scripts/globals/abilities/pets/burning_strike.lua
29
1285
--------------------------------------------------- -- Burning Strike M = 6? --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/summon"); require("scripts/globals/magic"); require("scripts/globals/monstertpmoves"); -----...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Tahrongi_Canyon/npcs/Field_Manual.lua
29
1055
----------------------------------- -- Area: Tahrongi Canyon -- NPC: Field Manual ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/fieldsofvalor"); ----------------------------------- -- onTrigger Action ------------------------...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Beadeaux/npcs/qm2.lua
27
1444
-------------------------- -- Area: Beadeaux -- NPC: ??? (qm2) -- Type: Quest NPC -- @pos -79 1 -99 147 -------------------------- package.loaded["scripts/zones/Beadeaux/TextIDs"] = nil; -------------------------- require("scripts/zones/Beadeaux/TextIDs"); require("scripts/globals/keyitems"); require("scripts/globals/...
gpl-3.0
Nathan22Miles/sile
lua-libraries/lomwithpos.lua
5
1374
local lxp = require "lxp" local tinsert, tremove = table.insert, table.remove local assert, type, print = assert, type, print local function starttag (p, tag, attr) local stack = p:getcallbacks().stack local l, c, pos = p:pos() local newelement = {tag = tag, attr = attr, line = l, col = c} tinsert(stack, new...
mit
zlua/zLua
luasocket3.0/etc/lp.lua
45
11516
----------------------------------------------------------------------------- -- LPD support for the Lua language -- LuaSocket toolkit. -- Author: David Burgess -- Modified by Diego Nehab, but David is in charge ----------------------------------------------------------------------------- --[[ if you have any ques...
mit
AdamGagorik/darkstar
scripts/zones/Halvung/mobs/Wheel_Wamoura.lua
30
1540
----------------------------------- -- Area: Halvung -- MOB: Wheel Wamoura ----------------------------------- require("scripts/globals/status"); -- TODO: Damage resistances in streched and curled stances. Halting movement during stance change. ----------------------------------- -- OnMobSpawn Action ---------------...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/items/block_of_rock_cheese.lua
18
1312
----------------------------------------- -- ID: 4593 -- Item: Block of Rock Cheese -- Food Effect: 30Min, All Races ----------------------------------------- -- Health % 5.5 -- Health Cap 45 -- HP Recovered while healing 1 ----------------------------------------- require("scripts/globals/status"); -----------------...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/items/plate_of_sole_sushi_+1.lua
17
1706
----------------------------------------- -- ID: 5163 -- Item: plate_of_sole_sushi_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Health 20 -- Strength 5 -- Dexterity 6 -- Accuracy % 16 -- Ranged ACC % 16 -- Sleep Resist 5 ----------------------------------------- require("scripts/glo...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/items/bowl_of_yayla_corbasi.lua
18
1470
----------------------------------------- -- ID: 5579 -- Item: bowl_of_yayla_corbasi -- Food Effect: 3Hrs, All Races ----------------------------------------- -- HP 20 -- Dexterity -1 -- Vitality 2 -- HP Recovered While Healing 3 -- MP Recovered While Healing 1 ----------------------------------------- require("script...
gpl-3.0
D-m-L/evonara
modules/libs/flux.lua
1
5233
-- -- flux -- -- Copyright (c) 2014, rxi -- -- This library is free software; you can redistribute it and/or modify it -- under the terms of the MIT license. See LICENSE for details. -- local flux = { _version = "0.1.4" } flux.__index = flux flux.tweens = {} flux.easing = { linear = function(p) return p end } flux.ea...
mit
flybird119/Atlas
lib/ro-pooling.lua
40
7080
--[[ $%BEGINLICENSE%$ Copyright (c) 2008, 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 distribut...
gpl-2.0
sjznxd/lc-20130204
applications/luci-commands/luasrc/model/cbi/commands.lua
77
1141
--[[ LuCI - Lua Configuration Interface Copyright 2012 Jo-Philipp Wich <jow@openwrt.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 ]]-- local m,...
apache-2.0
AdamGagorik/darkstar
scripts/zones/Cape_Teriggan/npcs/HomePoint#1.lua
27
1265
----------------------------------- -- Area: Cape Teriggan -- NPC: HomePoint#1 -- @pos -303 -8 526 113 ----------------------------------- package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Cape_Teriggan/TextIDs"); require("scripts/globals/homepo...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/West_Ronfaure/npcs/Doladepaiton_RK.lua
13
3325
----------------------------------- -- Area: West Ronfaure -- NPC: Doladepaiton, R.K. -- Type: Outpost Conquest Guards -- @pos -448 -19 -214 100 ------------------------------------- package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil; -------------------------------------- require("scripts/globals/conquest")...
gpl-3.0
TrurlMcByte/docker-prosody
etc/prosody-modules/mod_firewall/actions.lib.lua
1
5491
--luacheck: globals meta idsafe local action_handlers = {}; -- Takes an XML string and returns a code string that builds that stanza -- using st.stanza() local function compile_xml(data) local code = {}; local first, short_close = true, nil; for tagline, text in data:gmatch("<([^>]+)>([^<]*)") do if tagline:sub(...
mit
AdamGagorik/darkstar
scripts/globals/effects/super_buff.lua
34
1106
----------------------------------- -- -- EFFECT_SUPER_BUFF -- ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) local power = effect:getPower(); target...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Southern_San_dOria/Zone.lua
26
2786
----------------------------------- -- -- Zone: Southern_San_dOria (230) -- ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/events/harvest_festivals"); require("scripts/globals/zone"); require("scripts/gl...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Cloister_of_Gales/bcnms/trial_by_wind.lua
30
1859
----------------------------------- -- Area: Cloister of Gales -- BCNM: Trial by Wind -- @zone -361 1 -381 201 ----------------------------------- package.loaded["scripts/zones/Cloister_of_Gales/TextIDs"] = nil; ------------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/quests"...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/campaign.lua
35
4763
----------------------------------------------------------------- -- Variable for getNationTeleport and getPoint ----------------------------------------------------------------- ALLIED_NOTES = 11; MAW = 4; PAST_SANDORIA = 5; PAST_BASTOK = 6; PAST_WINDURST = 7; -- ---------------------------------------------------...
gpl-3.0
aquileia/wesnoth
data/multiplayer/eras.lua
2
3477
local helper = wesnoth.require "lua/helper.lua" local T = helper.set_wml_tag_metatable {} local res = {} res.quick_4mp_leaders = function(args) local make_4mp_leaders_quick = wesnoth.get_variable("make_4mp_leaders_quick") if make_4mp_leaders_quick == nil then make_4mp_leaders_quick = wesnoth.game_config.mp_settin...
gpl-2.0
AdamGagorik/darkstar
scripts/zones/Castle_Oztroja/npcs/_47y.lua
13
1409
----------------------------------- -- Area: Castle Oztroja -- NPC: _47y (Torch Stand) -- Notes: Opens door _474 -- @pos -57.575 24.218 -67.651 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Castle_Oztr...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Jugner_Forest_[S]/mobs/Decrepit_Gnole.lua
13
1685
----------------------------------- -- Area: Jugner Forest (S) -- NPC: Decrepit Gnole ----------------------------------- ----------------------------------- -- onMobSpawn Action ----------------------------------- function onMobSpawn(mob) mob:setLocalVar("transformTime", os.time()) end; ------------------------...
gpl-3.0
moteus/lua-gntp
test/utils.lua
5
1122
local lunit = lunit local RUN = lunit and function()end or function () local res = lunit.run() if res.errors + res.failed > 0 then os.exit(-1) end return os.exit(0) end lunit = require "lunit" local IT = function(m) return setmetatable(m, {__call = function(self, describe, fn) self["test "...
mit
rinstrum/LUA-LIB
K400Examples/protobuf/pb/utils.lua
2
1725
#!/usr/bin/env lua -- Copyright (c) 2011 by Robert G. Jakabosky <bobby@sharedrealm.com> -- -- 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...
gpl-3.0
AdamGagorik/darkstar
scripts/zones/Bastok_Markets/npcs/Shamarhaan.lua
13
1907
----------------------------------- -- Area: Bastok Markets -- NPC: Shamarhaan -- Type: Quest Starter -- Involved in quest: No Strings Attached -- @zone: 235 -- @pos -285.382 -13.021 -84.743 -- -- Auto-Script: Requires Verification. Verified standard dialog - thrydwolf 12/8/2011 --------------------------------...
gpl-3.0
mamadtnt/new4
plugins/ingroup.lua
50
48862
do -- Check Member local function check_member_autorealm(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 -- Group configuration data[tostr...
gpl-2.0
AdamGagorik/darkstar
scripts/globals/spells/sword_madrigal.lua
27
1566
----------------------------------------- -- Spell: Sword Madrigal -- Gives party members accuracy ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target...
gpl-3.0
AdamGagorik/darkstar
scripts/globals/spells/bio_ii.lua
26
2191
----------------------------------------- -- Spell: Bio II -- Deals dark damage that weakens an enemy's attacks and gradually reduces its HP. ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------...
gpl-3.0
sjznxd/lc-20130204
libs/core/luasrc/fs.lua
96
8670
--[[ LuCI - Filesystem tools Description: A module offering often needed filesystem manipulation functions FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may o...
apache-2.0
AdamGagorik/darkstar
scripts/globals/items/clump_of_shungiku.lua
18
1192
----------------------------------------- -- ID: 5236 -- Item: Clump of Shungiku -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility +1 -- Vitality -1 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ...
gpl-3.0
rinstrum/LUA-LIB
K400Examples/protobuf/pb/standard/pack.lua
2
11129
#!/usr/bin/env lua -- Copyright (c) 2010-2011 by Robert G. Jakabosky <bobby@neoawareness.com> -- -- 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 limi...
gpl-3.0
rigeirani/bbb
plugins/banhammer.lua
6
12947
local function pre_process(msg) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('Checking invited user '..user_id) local banned ...
gpl-2.0
NsLib/blog-code-snippet
hammerspoon/init.lua
1
7992
--- -- @author Dongliang Ma <mdl2009@vip.qq.com> -- @license MIT -- 设置Grid 12x8(水平x竖直) hs.grid.MARGINX = 0 hs.grid.MARGINY = 0 hs.grid.GRIDWIDTH = 12 hs.grid.GRIDHEIGHT = 8 -- 修饰键 local m_alt = {"alt"} local m_shift_cmd = {"shift", "cmd"} local m_shift_alt = {"shift", "alt"} local m_switch_app = m_alt local...
mit
Invertika/data
scripts/maps/ow-n0005-o0000-o0000.lua
1
1395
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
KublaikhanGeek/wrk
deps/luajit/src/jit/bcsave.lua
87
18141
---------------------------------------------------------------------------- -- LuaJIT module to save/list bytecode. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
apache-2.0
TheSuperAlaa/TheSuperBot
libs/fakeredis.lua
650
40405
local unpack = table.unpack or unpack --- Bit operations local ok,bit if _VERSION == "Lua 5.3" then bit = (load [[ return { band = function(x, y) return x & y end, bor = function(x, y) return x | y end, bxor = function(x, y) return x ~ y end, bnot = function(x) return ~x end, rshift = function(x...
gpl-2.0
tonibm19/cuberite
Server/Plugins/APIDump/Hooks/OnHopperPullingItem.lua
44
1336
return { HOOK_HOPPER_PULLING_ITEM = { CalledWhen = "A hopper is pulling an item from another block entity.", DefaultFnName = "OnHopperPullingItem", -- also used as pagename Desc = [[ This callback is called whenever a {{cHopperEntity|hopper}} transfers an {{cItem|item}} from another block entity into its...
apache-2.0
Mizugola/ObEngine
engine/Lib/Extlibs/pl/stringio.lua
8
3777
--- Reading and writing strings using file-like objects. <br> -- -- f = stringio.open(text) -- l1 = f:read() -- read first line -- n,m = f:read ('*n','*n') -- read two numbers -- for line in f:lines() do print(line) end -- iterate over all lines -- f = stringio.create() -- f:write('hello') -- f:wr...
mit
Meoo/premake-core
src/actions/vstudio/vs2010_vcxproj.lua
1
43811
-- -- vs2010_vcxproj.lua -- Generate a Visual Studio 201x C/C++ project. -- Copyright (c) 2009-2014 Jason Perkins and the Premake project -- premake.vstudio.vc2010 = {} local p = premake local vstudio = p.vstudio local project = p.project local config = p.config local fileconfig = p.fileconfig local tree = p.t...
bsd-3-clause
Invertika/data
scripts/maps/ow-p0012-n0023-o0000.lua
1
1404
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
StaymanHou/Hacking-the-Pentest-Tutor-Game
lib/LoveFrames/objects/collapsiblecategory.lua
6
8487
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ -- collapsiblecategory object local newobject = loveframes.NewObject("collapsiblecategory", "loveframes_object_collapsibleca...
apache-2.0
GoogleFrog/Zero-K
gamedata/modularcomms/weapons/aalaser.lua
5
1227
local name = "commweapon_aalaser" local weaponDef = { name = [[Anti-Air Laser]], areaOfEffect = 12, beamDecay = 0.736, beamTime = 0.01, beamttl = 15, canattackground = false, coreThickness = 0.5, craterBoost ...
gpl-2.0
Invertika/data
scripts/maps/ow-n0004-p0019-o0000.lua
1
1400
---------------------------------------------------------------------------------- -- Map File -- -- -- -- In dieser Datei stehen die entsprechenden externen NPC's, Trigger un...
gpl-3.0
vincentstorme/waifu2x
lib/pairwise_transform.lua
33
9919
require 'image' local gm = require 'graphicsmagick' local iproc = require './iproc' local reconstruct = require './reconstruct' local pairwise_transform = {} local function random_half(src, p, min_size) p = p or 0.5 local filter = ({"Box","Blackman", "SincFast", "Jinc"})[torch.random(1, 4)] if p > torch.unifo...
mit