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
fqrouter/luci
applications/luci-statistics/luasrc/model/cbi/luci_statistics/netlink.lua
78
2765
--[[ Luci configuration model for statistics - collectd netlink plugin configuration (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the Licen...
apache-2.0
kitala1/darkstar
scripts/zones/Port_San_dOria/npcs/Artinien.lua
36
1374
----------------------------------- -- 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/Text...
gpl-3.0
sylvanaar/IDLua
testdata/non-test-system-files/lua5.1-tests/sort.lua
10
1659
print"testing sort" function check (a, f) f = f or function (x,y) return x<y end; for n=table.getn(a),2,-1 do assert(not f(a[n], a[n-1])) end end a = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"} table.sort(a) check(a) limit = 30000 if rawget(_G, "_soft") then ...
apache-2.0
fqrouter/luci
libs/sgi-luci/luasrc/ttpd/handler/luci.lua
53
1923
--[[ HTTP server implementation for LuCI - luci handler (c) 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.org/licenses/LICENSE-2....
apache-2.0
Aeprox/ESPLogger
src/luxTSL2561/tsl2561lib.lua
4
2893
-- Library for working with TSL2561 I2C Luminosity sensor -- As used on breakout board by Adafruit -- Special hat-tip to lady ada - hacker hero - amongst many others -- This code is AGPL v3 by gareth@l0l.org.uk and Hamish Cunningham -- blah blah blah standard licence conditions apply blah blah blah -- Adapted by Aeprox...
mit
kitala1/darkstar
scripts/zones/The_Shrouded_Maw/bcnms/waking_dreams.lua
10
2480
----------------------------------- -- Area: The_Shrouded_Maw -- Name: waking_dreams ----------------------------------- package.loaded["scripts/zones/The_Shrouded_Maw/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/keyitems"); require("scripts/globals/q...
gpl-3.0
cdettmering/fancyland
math/Shape.lua
1
4967
--- Shape --- -- Setup local access local Point = require(MATHPATH .. 'Point') local LineSegment = require(MATHPATH .. 'LineSegment') local BoundingBox = require(MATHPATH .. 'BoundingBox') local MathUtil = require(MATHPATH .. 'MathUtil') local GraphicUtility = require(GRAPHICSPATH .. 'GraphicUtility') local pi = math....
gpl-3.0
kitala1/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Mafwahb.lua
34
1212
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Mafwahb -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); ----------...
gpl-3.0
kitala1/darkstar
scripts/zones/Mhaura/npcs/Kotan-Purutan.lua
19
2411
----------------------------------- -- Area: Mhaura -- NPC: Kotan-Purutan -- Involved in Quest: Overnight Delivery -- @pos 40.323 -8.999 44.242 249 ----------------------------------- package.loaded["scripts/zones/Mhaura/TextIDs"] = nil; ----------------------------------- ----------------------------------- -- o...
gpl-3.0
apletnev/koreader
spec/unit/networksetting_spec.lua
7
2257
describe("NetworkSetting module", function() local NetworkSetting, NetworkMgr, UIManager setup(function() require("commonrequire") UIManager = require("ui/uimanager") NetworkSetting = require("ui/widget/networksetting") NetworkMgr = require("ui/network/manager") end) it(...
agpl-3.0
tetoali605/THETETOO_A7A
plugins/anjb.lua
6
1399
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY tetoo ▀▄ ▄▀ ▀▄ ▄▀ BY nmore (@l_l_lo) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY l_l_ll ▀▄ ▄▀ ▀▄ ▄▀ broadcast : انجـب ▀▄ ▄▀ ▀▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄...
gpl-2.0
hanxi/cocos2d-x-v3.1
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/SceneReader.lua
6
1320
-------------------------------- -- @module SceneReader -------------------------------- -- @function [parent=#SceneReader] setTarget -- @param self -- @param #function func -------------------------------- -- @function [parent=#SceneReader] createNodeWithSceneFile -- @param self -- @param #string str -- @...
mit
kaustavha/rackspace-monitoring-agent
hostinfo/ip6tables.lua
3
2215
--[[ Copyright 2015 Rackspace 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 Unless required by applicable law or agreed to in writing, software dis...
apache-2.0
kitala1/darkstar
scripts/zones/Stellar_Fulcrum/npcs/_4z0.lua
12
1593
----------------------------------- -- Area: Stellar Fulcrum -- Door: Qe'Lov Gate -- @pos -520 -4 17 179 ------------------------------------- package.loaded["scripts/zones/Stellar_Fulcrum/TextIDs"] = nil; package.loaded["scripts/globals/bcnm"] = nil; ------------------------------------- require("scripts/glo...
gpl-3.0
speedata/publisher
src/lua/css.lua
1
5329
--- This file contains the code for the CSS parser. -- -- css.lua -- speedata publisher -- -- For a list of authors see `git blame' -- See file COPYING in the root directory for license info. local explode = string.explode local string = unicode.utf8 local function new(self) c = { rules = {}, priorit...
agpl-3.0
guiseco/ardupilot-solo
Tools/CHDK-Scripts/kap_uav.lua
183
28512
--[[ KAP UAV Exposure Control Script v3.1 -- Released under GPL by waterwingz and wayback/peabody http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script @title KAP UAV 3.1 @param i Shot Interval (sec) @default i 15 @range i 2 120 @param s Total Shots (0=infinite) @default s 0 @range ...
gpl-3.0
kitala1/darkstar
scripts/zones/West_Sarutabaruta/npcs/Mahien-Uhien.lua
17
1765
----------------------------------- -- Area: West Sarutabaruta -- NPC: Mahien-Uhien -- Type: Outpost Vendor -- @pos -13 -12 311 115 ----------------------------------- package.loaded["scripts/zones/West_Sarutabaruta/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); requir...
gpl-3.0
kitala1/darkstar
scripts/zones/Windurst_Woods/npcs/Amimi.lua
28
2051
----------------------------------- -- Area: Windurst Woods -- NPC: Amimi -- Type: Chocobo Renter ----------------------------------- require("scripts/globals/chocobo"); require("scripts/globals/keyitems"); require("scripts/globals/settings"); require("scripts/globals/status"); ---------------------------...
gpl-3.0
dangerrr/dangerrr
plugins/vote.lua
615
2128
do local _file_votes = './data/votes.lua' function read_file_votes () local f = io.open(_file_votes, "r+") if f == nil then print ('Created voting file '.._file_votes) serialize_to_file({}, _file_votes) else print ('Values loaded: '.._file_votes) f:close() end return loadfile (_file_votes)()...
gpl-2.0
ZenityRTS/Zenity
lups/ParticleClasses/ShieldJitter.lua
14
5140
-- $Id: ShieldJitter.lua 3171 2008-11-06 09:06:29Z det $ ----------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------- local ShieldJitter = {} ShieldJitt...
gpl-2.0
crabman77/minetest-minetestforfun-server
minetestforfun_game/mods/farming/compatibility.lua
7
4926
-- is Ethereal mod installed? local eth = minetest.get_modpath("ethereal") or nil -- Banana if eth then minetest.register_alias("farming_plus:banana_sapling", "ethereal:banana_tree_sapling") minetest.register_alias("farming_plus:banana_leaves", "ethereal:bananaleaves") minetest.register_alias("farming_plus:banana",...
unlicense
kitala1/darkstar
scripts/globals/spells/esuna.lua
13
1824
----------------------------------------- -- Spell: Esuna -- ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target,spel...
gpl-3.0
Teaonly/easyLearning.js
simple_lstm/model_utils.lua
11
5151
-- adapted from https://github.com/wojciechz/learning_to_execute -- utilities for combining/flattening parameters in a model -- the code in this script is more general than it needs to be, which is -- why it is kind of a large require 'torch' local model_utils = {} function model_utils.combine_all_parameters(...) ...
mit
Roblox/Core-Scripts
CoreScriptsRoot/Modules/Stats/ServerMemoryAnalyzer.lua
1
4419
--[[ Filename: ServerMemoryAnalyzer.lua Written by: dbanks Description: Widget to display server memory usage. --]] --[[ Services ]]-- local CoreGuiService = game:GetService('CoreGui') --[[ Modules ]]-- local BaseMemoryAnalyzerClass = require(CoreGuiService.RobloxGui.Modules.Stats.BaseMemoryAnalyzer) local Tree...
apache-2.0
CaptainMaelstrom/duke
src/scripts/lobby.lua
1
4546
--Lobby code Lobby = Game:addState('Lobby') function Lobby:enteredState() self.timer = lt.getTime() self.localPlayerName = '' if not self.myIndex then self.myIndex = 1 end if not self.players then self.players = {{name='New Player', color = lm.random(1,8), address = ''}} end if not self.socket then self.socket ...
mit
kitala1/darkstar
scripts/globals/items/broiled_trout.lua
35
1292
----------------------------------------- -- ID: 4587 -- Item: Broiled Trout -- Food Effect: 60Min, All Races ----------------------------------------- -- Dexterity 4 -- Mind -1 -- Ranged ATT % 14 ----------------------------------------- require("scripts/globals/status"); --------------------------------...
gpl-3.0
kitala1/darkstar
scripts/zones/The_Celestial_Nexus/npcs/_513.lua
12
1391
----------------------------------- -- Area: Celestial Nexus -- NPC: _515 ----------------------------------- package.loaded["scripts/zones/The_Celestial_Nexus"] = nil; package.loaded["scripts/globals/bcnm"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/globals/quests")...
gpl-3.0
paulosalvatore/maruim_server
data/npc/scripts/Flora.lua
1
1918
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local shopModule = ShopModule:new() npcHandler:addModule(shopModule) local refilId = 1949 local refilAction = 3903 local pocaoId = 8704 local quantidadeMaxPocoes = 5 function onCreature...
gpl-2.0
kitala1/darkstar
scripts/zones/Yhoator_Jungle/npcs/qm3.lua
8
1714
----------------------------------- -- Area: Davoi -- NPC: ??? (qm3) -- Involved in Quest: True will -- @pos 203 0.1 82 124 ----------------------------------- package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/global...
gpl-3.0
mahdikord/mahdib3
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
mahdi1062/avira
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
dangerrr/dangerrr
plugins/invite.lua
1
1053
do local function run(msg, matches) -- User submitted a user name if matches[1] == "name" then user_ = matches[2] user_ = string.gsub(user_," ","_") -- User submitted an id elseif matches[1] == "id" then user_ = matches[2] user_ = 'user#id'..user_ end -- The message must com...
gpl-2.0
kitala1/darkstar
scripts/zones/Windurst_Walls/npcs/HomePoint#3.lua
12
1251
----------------------------------- -- Area: Windurst Walls -- NPC: HomePoint#3 -- @pos 31 -6.5 -40 239 ----------------------------------- package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Windurst_Walls/TextIDs"); require("scripts/gl...
gpl-3.0
apletnev/koreader
frontend/apps/reader/modules/readertoc.lua
1
13100
local Button = require("ui/widget/button") local CenterContainer = require("ui/widget/container/centercontainer") local Device = require("device") local Event = require("ui/event") local Font = require("ui/font") local GestureRange = require("ui/gesturerange") local Geom = require("ui/geometry") local InputContainer = ...
agpl-3.0
kitala1/darkstar
scripts/zones/Dynamis-Beaucedine/bcnms/dynamis_beaucedine.lua
10
1100
----------------------------------- -- Area: Dynamis Beaucedine -- Name: Dynamis Beaucedine ----------------------------------- -- After registering the BCNM via bcnmRegister(bcnmid) function onBcnmRegister(player,instance) SetServerVariable("[DynaBeaucedine]UniqueID",player:getDynamisUniqueID(1284)); SetServerVar...
gpl-3.0
Roblox/Core-Scripts
CoreScriptsRoot/ServerCoreScripts/ServerSocialScript.lua
1
8438
--[[ // FileName: PlayerlistModule.lua // Version 1.0 // Written by: jmargh // Description: Implements social features that need to be ran on the server // TODO We need to get module script working on the server. When we get that working This should be moved to a module, and http helper function...
apache-2.0
kitala1/darkstar
scripts/zones/La_Vaule_[S]/Zone.lua
22
1316
----------------------------------- -- -- Zone: La_Vaule_[S] (85) -- ----------------------------------- package.loaded["scripts/zones/La_Vaule_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/La_Vaule_[S]/TextIDs"); ----------------------...
gpl-3.0
kitala1/darkstar
scripts/zones/Pashhow_Marshlands/npcs/Mokto-Lankto_WW.lua
30
3070
----------------------------------- -- Area: Pashhow Marshlands -- NPC: Mokto-Lankto, W.W. -- Type: Outpost Conquest Guards -- @pos 470.843 23.465 415.520 109 ----------------------------------- package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil; ----------------------------------- require("scripts/glob...
gpl-3.0
kitala1/darkstar
scripts/zones/Batallia_Downs/npcs/qm4.lua
17
1536
----------------------------------- -- Area: Batallia Downs -- NPC: qm4 (???) -- ----------------------------------- package.loaded["scripts/zones/Batallia_Downs/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Batallia_Downs/TextIDs"); require("scripts/globals/keyitems"); requ...
gpl-3.0
raingloom/thranduil
examples/chatbox/ui/Slider.lua
9
5040
local ui_path = (...):match('(.-)[^%.]+$') .. '.' local Object = require(ui_path .. 'classic.classic') local Base = require(ui_path .. 'Base') local Draggable = require(ui_path .. 'Draggable') local Resizable = require(ui_path .. 'Resizable') local Slider = Object:extend('Slider') Slider:implement(Base) Slider:implemen...
mit
mahdi1062/avira
plugins/weather.lua
5
1420
local BASE_URL = "http://api.openweathermap.org/data/2.5/weather" local function get_weather(location) print("Finding weather in ", location) local url = BASE_URL url = url..'?q='..location..'&APPID=eedbc05ba060c787ab0614cad1f2e12b' url = url..'&units=metric' local b, c, h = http.request(url) if c ~= 200 ...
gpl-2.0
mrjbq7/factor
misc/textadept/lexers/factor.lua
12
4020
--[[ Lexer for the Factor programming language (http://factorcode.org) Copyright 2013 Michael T. Richter <ttmrichter@gmail.com> This program is free software and comes without any warranty, express nor implied. It is, in short, warranted to do absolutely nothing but (possibly) occupy storage space. You can redistrib...
bsd-2-clause
omideblisss/omid
plugins/all.lua
88
4791
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
fqrouter/luci
modules/admin-core/luasrc/tools/status.lua
11
4594
--[[ LuCI - Lua Configuration Interface Copyright 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 http://www.apache.org/licenses/LICENSE-2.0 ]]-- module(...
apache-2.0
kitala1/darkstar
scripts/zones/Hall_of_Transference/npcs/_0e1.lua
7
1337
----------------------------------- -- Area: Hall of Transference -- NPC: Cermet Gate - Dem -- @pos -220 -46 -279 14 ----------------------------------- package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zones/H...
gpl-3.0
kitala1/darkstar
scripts/globals/mobskills/Hypothermal_Combustion.lua
7
1027
--------------------------------------------- -- Hypothermal Combustion -- Self-destructs, releasing ice at nearby targets. -- Type: Magical -- Utsusemi/Blink absorb: Ignores shadows -- Notes: Damage is based on remaining HP --------------------------------------------- require("scripts/globals/settings")...
gpl-3.0
JJoosten/IndirectOcclusionCulling
premake4.lua
1
5385
ext_root = _WORKING_DIR .. "/" print("Parsing settings.. "); dofile("settings.ini"); print("Done."); newoption { trigger = "64bit", description = "Generate 64 bit projects." } newoption { trigger = "platform-windows", description = "Generate windows projects." } newoption { trigger = "no-dx12", descript...
mit
kitala1/darkstar
scripts/globals/abilities/tabula_rasa.lua
28
1290
----------------------------------- -- Ability: Tabula Rasa -- Optimizes both white and black magic capabilities while allowing charge-free stratagem use. -- Obtained: Scholar Level 1 -- Recast Time: 1:00:00 -- Duration: 0:03:00 ----------------------------------- require("scripts/globals/settings"); require(...
gpl-3.0
kitala1/darkstar
scripts/globals/spells/sandstorm.lua
31
1153
-------------------------------------- -- Spell: Sandstorm -- Changes the weather around target party member to "dusty." -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------...
gpl-3.0
mohammads15/new-super
plugins/admin.lua
12
10647
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...
gpl-2.0
parsaalemi/parsa-antispam-bot
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
kitala1/darkstar
scripts/zones/Southern_San_dOria/npcs/qm2.lua
31
1197
----------------------------------- -- Area: Southern San d'Oria -- NPC: The ??? on the Ink Well in 2nd Flr of Vemalpeau's house. -- General Info NPC ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settin...
gpl-3.0
dani-sj/danyalevil
plugins/banhammer.lua
1085
11557
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
kitala1/darkstar
scripts/globals/items/carp_sushi.lua
35
1400
----------------------------------------- -- ID: 4407 -- Item: carp_sushi -- Food Effect: 30Min, All Races ----------------------------------------- -- Dexterity 1 -- Accuracy % 10 -- HP Recovered While Healing 2 ----------------------------------------- require("scripts/globals/status"); ----------------...
gpl-3.0
Roblox/Core-Scripts
PlayerScripts/StarterPlayerScripts_NewStructure/RobloxPlayerScript/ControlScript/TouchThumbstick.lua
1
7381
--[[ Stub --]] local Players = game:GetService("Players") local GuiService = game:GetService("GuiService") local UserInputService = game:GetService("UserInputService") --[[ Constants ]]-- local ZERO_VECTOR3 = Vector3.new(0,0,0) local TOUCH_CONTROL_SHEET = "rbxasset://textures/ui/TouchControlsSheet.png" --[[ The...
apache-2.0
kitala1/darkstar
scripts/zones/Temple_of_Uggalepih/npcs/qm15.lua
17
2428
----------------------------------- -- Area: Temple of Uggalepih -- NPC: ??? -- Involved in Quest: Knight Stalker -- @pos 58 1 -70 159 ----------------------------------- package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Temple_of_U...
gpl-3.0
kitala1/darkstar
scripts/globals/mobskills/PL_Heavy_Stomp.lua
25
1203
--------------------------------------------- -- Heavy Stomp -- -- Description: Deals heavy damage to targets within an area of effect. Additional effect: Paralysis -- Type: Physical -- Utsusemi/Blink absorb: 2-3 shadows -- Range: Unknown radial -- Notes: Paralysis effect has a very long duration. -------------...
gpl-3.0
kitala1/darkstar
scripts/zones/Port_San_dOria/npcs/Liloune.lua
36
1373
----------------------------------- -- Area: Port San d'Oria -- NPC: Liloune -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/zones/Port_San_dOria/TextI...
gpl-3.0
crabman77/minetest-minetestforfun-server
minetestforfun_game/mods/flowers/mapgen.lua
6
4922
-- -- Mgv6 -- local function register_mgv6_flower(name) minetest.register_decoration({ deco_type = "simple", place_on = {"default:dirt_with_grass"}, sidelen = 16, noise_params = { offset = 0, scale = 0.006, spread = {x = 100, y = 100, z = 100}, seed = 436, octaves = 3, persist = 0.6 }, y...
unlicense
crabman77/minetest-minetestforfun-server
mods/jumping/init.lua
5
2181
local trampolinebox = { type = "fixed", fixed = { {-0.5, -0.2, -0.5, 0.5, 0, 0.5}, {-0.5, -0.5, -0.5, -0.4, -0.2, -0.4}, { 0.4, -0.5, -0.5, 0.5, -0.2, -0.4}, { 0.4, -0.5, 0.4, 0.5, -0.2, 0.5}, {-0.5, -0.5, 0.4, -0.4, -0.2, 0.5}, } } local cushionbox = { type = "fixed", fixed = { {-0.5, -0...
unlicense
kitala1/darkstar
scripts/zones/Abyssea-Altepa/Zone.lua
32
1531
----------------------------------- -- -- Zone: Abyssea - Altepa -- ----------------------------------- package.loaded["scripts/zones/Abyssea-Altepa/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/quests"); require("scripts/zones/Abyssea-Alte...
gpl-3.0
kitala1/darkstar
scripts/zones/Garlaige_Citadel_[S]/Zone.lua
28
1334
----------------------------------- -- -- Zone: Garlaige_Citadel_[S] (164) -- ----------------------------------- package.loaded["scripts/zones/Garlaige_Citadel_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Garlaige_Citadel_[S]/TextIDs"); ...
gpl-3.0
kitala1/darkstar
scripts/globals/items/bowl_of_ocean_soup.lua
35
1893
----------------------------------------- -- 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
andrenho/luacpp14
lua/mylib/classes.lua
1
1318
function class(...) -- cls is the new class local cls, bases = {}, {...} -- copy from base class for i, base in ipairs(bases) do for k, v in pairs(base) do cls[k] = v end end -- set __index and is_a cls.__index, cls.is_a = cls, {[cls] = true} for i, base in ipairs(bases) do for c in pa...
mit
JacobFischer/Joueur.lua
games/saloon/game.lua
1
4456
-- Game: Use cowboys to have a good time and play some music on a Piano, while brawling with enemy Cowboys. -- DO NOT MODIFY THIS FILE -- Never try to directly create an instance of this class, or modify its member variables. -- Instead, you should only be reading its variables and calling its functions. local class ...
mit
kitala1/darkstar
scripts/globals/monstertpmoves.lua
10
22457
require("scripts/globals/magic"); require("scripts/globals/magicburst") require("scripts/globals/status") require("scripts/globals/utils") -- Foreword: A lot of this is good estimating since the FFXI playerbase has not found all of info for individual moves. -- What is known is that they roughly follow player ...
gpl-3.0
leezhongshan/skynet
service/gate.lua
46
1934
local skynet = require "skynet" local gateserver = require "snax.gateserver" local netpack = require "netpack" local watchdog local connection = {} -- fd -> connection : { fd , client, agent , ip, mode } local forwarding = {} -- agent -> connection skynet.register_protocol { name = "client", id = skynet.PTYPE_CLIEN...
mit
kitala1/darkstar
scripts/globals/effects/afflatus_misery.lua
17
1192
----------------------------------- -- -- EFFECT_AFFLATUS_MISERY -- ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) target:setMod(MOD_AFFLATUS_MISER...
gpl-3.0
crabman77/minetest-minetestforfun-server
mods/sea/seastonebrick/init.lua
8
5065
-- NODES minetest.register_node("seastonebrick:seastonebrick", { description = "Seastone brick", tiles = {"seastonebrick_seastonebrick.png"}, is_ground_content = true, groups = {cracky=2, stone=1}, sounds = default.node_sound_stone_defaults(), }) minetest.register_node("seastonebrick:seastonebrick_cyan", { de...
unlicense
Babumi/DesktopCharacter
Extension/Live2DforDLL/GenerateSolution.lua
1
1141
-- premake5.lua solution "Live2DforDLL" configurations { "Debug", "Release" } platforms { "x64" } location ("./") startproject "BabumiGraphics" project "Live2DforDLL" location ("./") kind "SharedLib" language "C++" platforms { "x64" } toolset "v120" targetdir "$(SolutionDir...
mit
kitala1/darkstar
scripts/zones/Sauromugue_Champaign/TextIDs.lua
5
1425
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6393; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6396; -- Obtained: <item>. GIL_OBTAINED = 6397; -- Obtained <number> gil. KEYITEM_OBTAINED = 6399; -- Obtained...
gpl-3.0
kitala1/darkstar
scripts/zones/Port_Windurst/npcs/Yafa_Yaa.lua
36
2750
----------------------------------- -- Area: Port Windurst -- NPC: Yafa Yaa ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/settings"); require("scripts/zones/Port_W...
gpl-3.0
kitala1/darkstar
scripts/zones/Garlaige_Citadel/npcs/_5k9.lua
17
1365
----------------------------------- -- Area: Garlaige Citadel -- NPC: Banishing Gate #2 -- @pos -100 -2.949 81 200 ----------------------------------- package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Garlaige_Citadel/TextIDs"); -----...
gpl-3.0
crabman77/minetest-minetestforfun-server
mods/moreblocks/aliases.lua
7
5052
--[[ More Blocks: alias definitions Copyright (c) 2011-2015 Calinou and contributors. Licensed under the zlib license. See LICENSE.md for more information. --]] -- More Blocks aliases: minetest.register_alias("sweeper", "moreblocks:sweeper") minetest.register_alias("circular_saw", "moreblocks:circular_saw") minetest....
unlicense
kitala1/darkstar
scripts/zones/Wajaom_Woodlands/npcs/_1f1.lua
23
1050
----------------------------------- -- Area: Wajaom Woodlands -- NPC: Engraved Tablet -- @pos -64 -11 -641 51 ----------------------------------- require("scripts/globals/keyitems"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; --...
gpl-3.0
rezaph/Nano-bot
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
king98tm/mohammadking98
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-3.0
kitala1/darkstar
scripts/zones/Bastok_Mines/npcs/Faustin.lua
30
1603
----------------------------------- -- Area: Bastok_Mines -- NPC: Faustin -- Only sells when Bastok controlls Ronfaure Region ----------------------------------- require("scripts/globals/events/harvest_festivals"); require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loaded["scripts/z...
gpl-3.0
cdettmering/fancyland
Player.lua
1
6591
--- Player --- -- Setup local access local ResourceManager = require('ResourceManager') local Actor = require('Actor') local Body = require(PHYSICSPATH .. 'Body') local BodyPart = require(PHYSICSPATH .. 'BodyPart') local Shape = require(MATHPATH .. 'Shape') local Point = require(MATHPATH .. 'Point') local MathUtil = r...
gpl-3.0
kitala1/darkstar
scripts/globals/abilities/fight.lua
10
1032
----------------------------------- -- Ability: Fight -- Commands your pet to attack the target. -- Obtained: Beastmaster Level 1 -- Recast Time: 10 seconds -- Duration: N/A ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); ---------------------------...
gpl-3.0
kitala1/darkstar
scripts/zones/Northern_San_dOria/npcs/Capiria.lua
19
1471
----------------------------------- -- Area: Northern San d'Oria -- NPC: Capiria -- Type: Involved in Quest (Flyers for Regine) -- @zone: 231 -- @pos -127.355 0.000 130.461 -- ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; require("scripts/zones/Northern_San_...
gpl-3.0
kitala1/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Musdahl.lua
34
1032
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Musdahl -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); ----------...
gpl-3.0
crabman77/minetest-minetestforfun-server
mods/signs_lib/init.lua
9
32729
-- This mod provides the visible text on signs library used by Home Decor -- and perhaps other mods at some point in the future. Forked from thexyz's/ -- PilzAdam's original text-on-signs mod and rewritten by Vanessa Ezekowitz -- and Diego Martinez -- textpos = { -- { delta = {entity position for 0° yaw}, exact yaw ...
unlicense
fqrouter/luci
applications/luci-asterisk/luasrc/model/cbi/asterisk/trunks.lua
80
2553
--[[ LuCI - Lua Configuration Interface Copyright 2008 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$ ]]-- l...
apache-2.0
dangerrr/dangerrr
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
omideblisss/omid
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
dani-sj/danyalevil
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
mrbot001/WorkSuperGroup
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
parsaalemi/parsa-antispam-bot
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
kitala1/darkstar
scripts/globals/items/steamed_crab.lua
35
1308
----------------------------------------- -- ID: 4342 -- Item: steamed_crab -- Food Effect: 60Min, All Races ----------------------------------------- -- Vitality 3 -- Defense % 27 -- Defense Cap 55 ----------------------------------------- require("scripts/globals/status"); ------------------------------...
gpl-3.0
Eternym/psychoactive2
data/movements/scripts/tiles.lua
13
1866
local increasing = {[416] = 417, [426] = 425, [446] = 447, [3216] = 3217, [3202] = 3215, [11062] = 11063} local decreasing = {[417] = 416, [425] = 426, [447] = 446, [3217] = 3216, [3215] = 3202, [11063] = 11062} function onStepIn(creature, item, position, fromPosition) if not increasing[item.itemid] then return tru...
gpl-2.0
kitala1/darkstar
scripts/zones/Windurst_Walls/npcs/Kalupa-Tawalupa.lua
19
2400
----------------------------------- -- Area: Windurst Walls -- Location: X:-90 Y:-9 Z:109 -- NPC: Kalupa-Tawalupa -- Working 100% -- Involved in Quest: To Bee or Not to Bee? ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/quests"); --------------------...
gpl-3.0
kitala1/darkstar
scripts/zones/Cloister_of_Flames/npcs/Fire_Protocrystal.lua
12
1795
----------------------------------- -- Area: Cloister of Flames -- NPC: Fire Protocrystal -- Involved in Quests: Trial by Fire, Trial Size Trial by Fire -- @pos -721 0 -598 207 ----------------------------------- package.loaded["scripts/zones/Cloister_of_Flames/TextIDs"] = nil; ----------------------------------- req...
gpl-3.0
crabman77/minetest-minetestforfun-server
mods/snow/src/sled.lua
9
5998
--[[ --================= --====================================== LazyJ's Fork of Splizard's "Snow" Mod by LazyJ version: Umpteen and 7/5ths something or another. 2014_04_12 --====================================== --================= ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ THE LIST OF CHANGES I'VE MADE ~~~~~~~~~~~~~~~~~~...
unlicense
dangerrr/dangerrr
plugins/sudo.lua
359
1878
function run_sh(msg) name = get_name(msg) text = '' -- if config.sh_enabled == false then -- text = '!sh command is disabled' -- else -- if is_sudo(msg) then -- bash = msg.text:sub(4,-1) -- text = run_bash(bash) -- else -- text = name .. ' yo...
gpl-2.0
d-o/LUA-LIB
tests/network/register.lua
2
2884
------------------------------------------------------------------------------- -- Register network test. -- @author Pauli -- @copyright 2014 Rinstrum Pty Ltd ------------------------------------------------------------------------------- local regs = require "tests.registers" describe("K400Reg #register", function()...
gpl-3.0
kitala1/darkstar
scripts/zones/Port_Bastok/npcs/Nokkhi_Jinjahl.lua
18
10322
----------------------------------- -- Area: Port Bastok -- NPC: Nokkhi Jinjahl -- Type: Travelling Merchant NPC / NPC Quiver Maker / Bastok 1st Place -- @zone: 236 -- @pos 112.667 7.455 -46.174 -- -- Author: Codiddle, the man, the myth, the addict. ----------------------------------- package.loaded["scripts/zones...
gpl-3.0
kitala1/darkstar
scripts/zones/Bastok_Markets/npcs/Lamepaue.lua
31
10041
----------------------------------- -- Area: Bastok Markets -- NPC: Lamepaue -- Type: Past Event Watcher -- @zone: 235 -- @pos -172.136 -5 -69.632 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; require("scripts/zones/Bastok_Markets/TextIDs"); require("scripts/gl...
gpl-3.0
kitala1/darkstar
scripts/zones/Windurst_Waters/npcs/Naiko-Paneiko.lua
17
3519
----------------------------------- -- Area: Windurst Waters -- NPC: Naiko-Paneiko -- Involved In Quest: Making Headlines, Riding on the Clouds -- @zone 238 -- @pos -246 -5 -308 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; package.loaded["scripts/globals/se...
gpl-3.0
apletnev/koreader
frontend/ui/widget/closebutton.lua
4
2387
--[[-- Button widget that shows an "×" and handles closing window when tapped Example: local CloseButton = require("ui/widget/closebutton") local parent_widget = OverlapGroup:new{} table.insert(parent_widget, CloseButton:new{ window = parent_widget, }) UIManager:show(parent_widget) ]] lo...
agpl-3.0