repo_name
stringlengths
6
78
path
stringlengths
4
206
copies
stringclasses
281 values
size
stringlengths
4
7
content
stringlengths
625
1.05M
license
stringclasses
15 values
fastmailops/prosody
util/xml.lua
4
1311
local st = require "util.stanza"; local lxp = require "lxp"; module("xml") local parse_xml = (function() local ns_prefixes = { ["http://www.w3.org/XML/1998/namespace"] = "xml"; }; local ns_separator = "\1"; local ns_pattern = "^([^"..ns_separator.."]*)"..ns_separator.."?(.*)$"; return function(xml) local ha...
mit
kitala1/darkstar
scripts/globals/spells/noctohelix.lua
22
1717
-------------------------------------- -- Spell: Noctohelix -- Deals dark damage that gradually reduces -- a target's HP. Damage dealt is greatly affected by the weather. -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/...
gpl-3.0
idevz/vanilla
vanilla/v/error.lua
1
1390
-- vanilla local helpers = LoadV 'vanilla.v.libs.utils' -- perf local error = error local pairs = pairs local setmetatable = setmetatable -- define error Error = {} Error.__index = Error local function init_errors() -- get app errors local errors = helpers.try_require('config.errors', {}) -- add system e...
mit
kitala1/darkstar
scripts/globals/effects/saber_dance.lua
17
1745
----------------------------------- -- -- EFFECT_SABER_DANCE -- ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) ...
gpl-3.0
essele/netcamel
lua/lib/types.lua
1
8835
-------------------------------------------------------------------------------- -- This file is part of NetCamel -- Copyright (C) 2014,15 Lee Essen <lee.essen@nowonline.co.uk> -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as publi...
gpl-2.0
patrikrm13/feri
bot/utils.lua
494
23873
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() JSON = (loadfile "./libs/...
gpl-2.0
kitala1/darkstar
scripts/zones/Boneyard_Gully/npcs/_081.lua
12
1421
----------------------------------- -- Area: Boneyard_Gully -- NPC: _081 (Dark Miasma) ----------------------------------- package.loaded["scripts/zones/Boneyard_Gully/TextIDs"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/globals/quests"); require("scripts/glo...
gpl-3.0
cofyc/kubernetes
test/images/echoserver/template.lua
195
17200
-- vendored from https://raw.githubusercontent.com/bungle/lua-resty-template/1f9a5c24fc7572dbf5be0b9f8168cc3984b03d24/lib/resty/template.lua -- only modification: remove / from HTML_ENTITIES to not escape it, and fix the appropriate regex. --[[ Copyright (c) 2014 - 2017 Aapo Talvensaari All rights reserved. Redistribu...
apache-2.0
crabman77/minetest-minetestforfun-server
mods/plantlife_modpack/dryplants/reed.lua
7
12591
----------------------------------------------------------------------------------------------- -- Dry Plants - Reed 0.0.5 ----------------------------------------------------------------------------------------------- -- by Mossmanikin -- License (everything): WTFPL -- Looked at code from: darkage, default, sta...
unlicense
JacobFischer/Joueur.lua
games/spiders/game.lua
1
3550
-- Game: There's an infestation of enemy spiders challenging your queen broodmother spider! Protect her and attack the other broodmother in this turn based, node based, game. -- DO NOT MODIFY THIS FILE -- Never try to directly create an instance of this class, or modify its member variables. -- Instead, you should only...
mit
EmmanuelOga/easing
examples/simple/easing.lua
2
8026
-- -- Adapted from -- Tweener's easing functions (Penner's Easing Equations) -- and http://code.google.com/p/tweener/ (jstweener javascript version) -- -- For all easing functions: -- t = time -- b = begin -- c = change == ending - beginning -- d = duration local pow = math.pow local sin = math.sin local cos = math.c...
mit
Roblox/Core-Scripts
CoreScriptsRoot/Modules/DevConsoleMaster.lua
1
6950
local CoreGui = game:GetService("CoreGui") local StarterGui = game:GetService("StarterGui") local UserInputService = game:GetService("UserInputService") local GuiService = game:GetService('GuiService') local HttpRbxApiService = game:GetService('HttpRbxApiService') local HttpService = game:GetService('HttpService') loca...
apache-2.0
kitala1/darkstar
scripts/zones/Northern_San_dOria/npcs/Belgidiveau.lua
20
2235
----------------------------------- -- Area: Northern San d'Oria -- NPC: Belgidiveau -- Starts and Finishes Quest: Trouble at the Sluice -- @zone 231 -- @pos -98 0 69 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- req...
gpl-3.0
kitala1/darkstar
scripts/globals/items/dish_of_spaghetti_vongole_rosso.lua
35
1660
----------------------------------------- -- ID: 5189 -- Item: dish_of_spaghetti_vongole_rosso -- Food Effect: 30Min, All Races ----------------------------------------- -- Health % 17 -- Health Cap 90 -- Vitality 2 -- Mind -1 -- Defense % 25 -- Defense Cap 30 -- Store TP 6 ---------------------------------...
gpl-3.0
kitala1/darkstar
scripts/zones/Quicksand_Caves/npcs/_5s5.lua
19
1274
----------------------------------- -- Area: Quicksand Caves -- NPC: Ornate Door -- Door blocked by Weight system -- @pos -779 0 -454 208 ----------------------------------- package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Quicksand_Cav...
gpl-3.0
kitala1/darkstar
scripts/zones/Stellar_Fulcrum/npcs/_4z2.lua
36
1313
----------------------------------- -- Area: Stellar Fulcrum -- NPC: Qe'Lov Gate ------------------------------------- require("scripts/globals/status"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; -----------------...
gpl-3.0
kitala1/darkstar
scripts/zones/Temple_of_Uggalepih/npcs/qm1.lua
19
1074
----------------------------------- -- Area: Temple of Uggalepih -- NPC: ??? (Tonberry Rattle ITEM) -- @pos 269 0 91 159 ----------------------------------- package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Temple_of_Uggalepih/TextIDs...
gpl-3.0
fqrouter/luci
applications/luci-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua
14
6749
-- wizard rewrite wip local uci = require "luci.model.uci".cursor() local sys = require "luci.sys" local util = require "luci.util" local ip = require "luci.ip" local community = "profile_" .. (uci:get("freifunk", "community", "name") or "Freifunk") local mesh_network = ip.IPv4(uci:get_first(community, "community", "...
apache-2.0
CaptainMaelstrom/duke
src/scripts/play.lua
1
1492
--play state code Play = Game:addState('Play') function Play:enteredState() for i,p in ipairs(self.players) do if p.inGame then table.remove(self.players,i) end end self.referee = Referee() game.graveyards = {} for i,p in ipairs(self.players) do p.inGame = true game.graveyards[#game.graveyards+1] = Gravey...
mit
Taracque/epgp
localization/localization.enUS.lua
1
7234
local L = LibStub("AceLocale-3.0"):NewLocale("EPGP", "enUS", true) if not L then return end L["Bonus roll for %s (%s left): got %s (ilvl %d)"] = true L["Bonus roll for %s (%s left): got gold"] = true L["Announce when someone in your raid wins something good with bonus roll"] = true L["Announce when someone in yo...
bsd-3-clause
kitala1/darkstar
scripts/zones/LaLoff_Amphitheater/bcnms/ark_angels_1.lua
13
3031
----------------------------------- -- Area: LaLoff Amphitheater -- Name: Ark Angels 1 (Hume) ----------------------------------- package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil; ----------------------------------- require("scripts/zones/LaLoff_Amphitheater/TextIDs"); require("scripts/globals/mission...
gpl-3.0
kitala1/darkstar
scripts/zones/Sea_Serpent_Grotto/npcs/_4w5.lua
19
2678
----------------------------------- -- Area: Sea Serpent Grotto -- NPC: Silver Beastcoin Door -- @zone 176 -- @pos 280 18.549 -100 ----------------------------------- package.loaded["scripts/zones/Sea_Serpent_Grotto/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); re...
gpl-3.0
kitala1/darkstar
scripts/globals/weaponskills/leaden_salute.lua
12
4484
----------------------------------- -- Leaden Salute -- Sword weapon skill -- Skill Level: N/A -- Delivers a Twofold attack. Damage varies with TP. Death Penalty: Aftermath effect varies with TP. -- Available only after completing the Unlocking a Myth (Corsair) quest. -- Aligned with the Shadow Gorget, Soil Gorge...
gpl-3.0
kitala1/darkstar
scripts/zones/Bastok_Mines/npcs/Boytz.lua
36
1899
----------------------------------- -- Area: Bastok Mines -- NPC: Boytz -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; require("scripts/zones/Bastok_Mines/TextIDs");...
gpl-3.0
kitala1/darkstar
scripts/zones/The_Shrine_of_RuAvitau/mobs/Defender.lua
29
2626
----------------------------------- -- Area: The Shrine of Ru'Avitau -- MOB: Defender ----------------------------------- ----------------------------------- -- onMobInitialize Action ----------------------------------- function onMobInitialize(mob) end; ----------------------------------- -- onMobSpawn -----------...
gpl-3.0
kiarash14/be
plugins/isup.lua
741
3095
do local socket = require("socket") local cronned = load_from_file('data/isup.lua') local function save_cron(msg, url, delete) local origin = get_receiver(msg) if not cronned[origin] then cronned[origin] = {} end if not delete then table.insert(cronned[origin], url) else for k,v in pairs(cronned[...
gpl-2.0
leezhongshan/skynet
lualib/snax/interface.lua
42
1993
local skynet = require "skynet" return function (name , G, loader) loader = loader or loadfile local mainfunc local function func_id(id, group) local tmp = {} local function count( _, name, func) if type(name) ~= "string" then error (string.format("%s method only support string", group)) end if ty...
mit
ominux/torch7
test/test_writeObject.lua
56
1897
local myTester = torch.Tester() local tests = {} -- checks that an object can be written and unwritten -- returns false if an error occurs local function serializeAndDeserialize(obj) local file = torch.MemoryFile() file:binary() local ok, msg = pcall (file.writeObject, file, obj) myTester:assert(ok, 'err...
bsd-3-clause
kitala1/darkstar
scripts/zones/Cloister_of_Flames/bcnms/trial_by_fire.lua
13
1769
----------------------------------- -- Area: Cloister of Flames -- BCNM: Trial by Fire -- @pos -721 0 -598 207 ----------------------------------- package.loaded["scripts/zones/Cloister_of_Flames/TextIDs"] = nil; ------------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/quests...
gpl-3.0
apletnev/koreader
frontend/ui/data/koptoptions.lua
2
9982
local S = require("ui/data/strings") local _ = require("gettext") local Screen = require("device").screen local function enable_if_equals(configurable, option, value) return configurable[option] == value end local KoptOptions = { prefix = 'kopt', { icon = "resources/icons/appbar.transform.rotate.r...
agpl-3.0
cornernote/thecube
restore.lua
1
1613
--restore functions thecube.saveNodesToFile = function(nodes,pos1,pos2,file_name) local save_file = io.open(thecube.mod_path.."/"..file_name, "w") local save_content = {pos1=pos1,pos2=pos2,nodenames={}} for i,v in ipairs(nodes) do save_content.nodenames[i] = minetest.get_name_from_content_id(v) end save_file:w...
lgpl-2.1
paulosalvatore/maruim_server
data/globalevents/scripts/minimap_stream.lua
1
3023
local levelToHideName = 50 -- Base64 encoder local function lsh(value,shift) return (value*(2^shift)) % 256 end local function rsh(value,shift) return math.floor(value/2^shift) % 256 end local function bit(x,b) return (x % 2^b - x % 2^(b-1) > 0) end local function lor(x,y) local result = 0 for p=1,8 d...
gpl-2.0
crabman77/minetest-minetestforfun-server
mods/plantlife_modpack/woodsoils/generating.lua
9
4536
-- generating of forest soils local RaDiuS = { -- WE1 NS1 WE2 NS2 WE3 NS3 {-1,-2, -2,-2, -2,-3}, { 0,-2, -3,-1, -3,-2}, { 1,-2, -3, 0, -4,-1}, {-2,-1, -3, 1, -4, 0}, {-1,-1, -2, 2, -4, 1}, { 0,-1, -1, 3, -3, 2}, { 1,-1, 0, 3, -2, 3}, { 2,-1, 1, 3, -1, 4}, {-2, 0, 2, 2, 0, 4}, {-1...
unlicense
Roblox/Core-Scripts
CoreScriptsRoot/Modules/VR/Panel3D.lua
1
29218
--Panel3D: 3D GUI panels for VR --written by 0xBAADF00D --revised/refactored 5/11/16 local UserInputService = game:GetService("UserInputService") local VRService = game:GetService("VRService") local RunService = game:GetService("RunService") local GuiService = game:GetService("GuiService") local CoreGui = game:GetServ...
apache-2.0
shdown/luastatus
examples/i3/bluetooth.lua
1
4870
-- A widget to display currently connected and paired bluetooth devices. -- To change output format modify reprint_devices function. separator = " " -- Object paths look like /org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX/somethingsomething function get_device_mac_address(device_object_path) return device_object_path:gsub...
gpl-3.0
kitala1/darkstar
scripts/zones/Jugner_Forest/npcs/Signpost.lua
24
2848
----------------------------------- -- Area: Jugner Forest -- NPC: Signpost -- Involved in Quest: Grimy Signposts ------------------------------------- require("scripts/globals/settings"); require("scripts/globals/quests"); ----------------------------------- -- onTrade Action ------------------------...
gpl-3.0
kitala1/darkstar
scripts/zones/Crawlers_Nest/npcs/_5h1.lua
12
2609
----------------------------------- -- Area: Crawlers' Nest -- NPC: Strange Apparatus -- @pos: 214 0 -339 197 ----------------------------------- package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil; require("scripts/zones/Crawlers_Nest/TextIDs"); require("scripts/globals/strangeapparatus"); -----------------...
gpl-3.0
kitala1/darkstar
scripts/globals/items/cupid_chocolate.lua
35
1138
----------------------------------------- -- ID: 5681 -- Item: cupid_chocolate -- Food Effect: 3Hrs, All Races ----------------------------------------- -- Attack 10 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ------...
gpl-3.0
raingloom/thranduil
ui/popo/utf8-l.lua
23
10337
-- $Id: utf8.lua 179 2009-04-03 18:10:03Z pasta $ -- -- Provides UTF-8 aware string functions implemented in pure lua: -- * string.utf8len(s) -- * string.utf8sub(s, i, j) -- * string.utf8reverse(s) -- * string.utf8char(unicode) -- * string.utf8unicode(s, i, j) -- * string.utf8gensub(s, sub_len) -- -- If utf8data.lua (c...
mit
raingloom/thranduil
examples/chatbox/ui/popo/utf8-l.lua
23
10337
-- $Id: utf8.lua 179 2009-04-03 18:10:03Z pasta $ -- -- Provides UTF-8 aware string functions implemented in pure lua: -- * string.utf8len(s) -- * string.utf8sub(s, i, j) -- * string.utf8reverse(s) -- * string.utf8char(unicode) -- * string.utf8unicode(s, i, j) -- * string.utf8gensub(s, sub_len) -- -- If utf8data.lua (c...
mit
kitala1/darkstar
scripts/zones/East_Sarutabaruta/Zone.lua
6
5598
----------------------------------- -- -- Zone: East_Sarutabaruta (116) -- ----------------------------------- package.loaded[ "scripts/zones/East_Sarutabaruta/TextIDs"] = nil; package.loaded["scripts/globals/chocobo_digging"] = nil; ----------------------------------- require("scripts/globals/keyitems"); re...
gpl-3.0
kitala1/darkstar
scripts/zones/Chateau_dOraguille/npcs/Halver.lua
6
8174
----------------------------------- -- Area: Chateau d'Oraguille -- NPC: Halver -- Involved in Mission 2-3, 3-3, 5-1, 5-2, 8-1 -- Involved in Quest: Lure of the Wildcat (San d'Oria) -- @pos 2 0.1 0.1 233 ----------------------------------- package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil; -----...
gpl-3.0
fqrouter/luci
applications/luci-ahcp/luasrc/model/cbi/ahcp.lua
52
3896
--[[ 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 $Id: init.lua...
apache-2.0
kitala1/darkstar
scripts/zones/Castle_Oztroja/npcs/_47k.lua
13
1568
----------------------------------- -- Area: Castle Oztroja -- NPC: _47k (Torch Stand) -- Notes: Opens door _472 near password #1 -- @pos -57.412 -1.864 -30.627 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require(...
gpl-3.0
kitala1/darkstar
scripts/globals/mobskills/Dragon_Breath.lua
7
1420
--------------------------------------------- -- Dragon Breath -- -- Description: Deals Fire damage to enemies within a fan-shaped area. -- Type: Breath -- Utsusemi/Blink absorb: Ignores shadows -- Range: Unknown cone -- Notes: Used only by Fafnir, Nidhogg, Cynoprosopi, and Wyrm. Because of the high damage...
gpl-3.0
kitala1/darkstar
scripts/globals/effects/battlefield.lua
25
1182
----------------------------------- -- -- EFFECT_BATTLEFIELD -- ----------------------------------- ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) if (target:getPet()) then target:getPet():addStatusEffect(eff...
gpl-3.0
kitala1/darkstar
scripts/zones/Monarch_Linn/Zone.lua
28
1590
----------------------------------- -- -- Zone: Monarch_Linn -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Monarch_Linn/TextIDs"] = nil; require("scripts/zones/Monarch_Linn/TextIDs"); ----------------------------------- -- onInitialize -------...
gpl-3.0
Roblox/Core-Scripts
CoreScriptsRoot/Modules/DevConsole/Components/Log/LogData.lua
1
7391
local LogService = game:GetService("LogService") local TextService = game:GetService("TextService") local Constants = require(script.Parent.Parent.Parent.Constants) local FONT_SIZE = Constants.DefaultFontSize.MainWindow local FONT = Constants.Font.Log local MAX_STRING_SIZE = Constants.LogFormatting.MaxStringSize loca...
apache-2.0
hwsyy/Atlas
lib/proxy/parser.lua
41
6105
--[[ $%BEGINLICENSE%$ Copyright (c) 2007, 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 dis...
gpl-2.0
kitala1/darkstar
scripts/globals/items/cup_of_choco-delight.lua
35
1167
----------------------------------------- -- ID: 4283 -- Item: cup_of_choco-delight -- Food Effect: 240Min, All Races ----------------------------------------- -- Magic Regen While Healing 5 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------...
gpl-3.0
kitala1/darkstar
scripts/zones/Bastok_Markets/npcs/Offa.lua
38
1271
----------------------------------- -- Area: Bastok Markets -- NPC: Offa -- Type: Quest NPC -- @pos -281.628 -16.971 -140.607 235 -- -- Auto-Script: Requires Verification. Verified standard dialog - thrydwolf 12/18/2011 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = n...
gpl-3.0
kitala1/darkstar
scripts/zones/Zeruhn_Mines/npcs/Mining_Point.lua
29
1093
----------------------------------- -- 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
kitala1/darkstar
scripts/globals/weaponskills/guillotine.lua
11
1903
----------------------------------- -- Guillotine -- Scythe weapon skill -- Skill level: 200 -- Delivers a four-hit attack. Duration varies with TP. -- Modifiers: STR:25% ; MND:25% -- 100%TP 200%TP 300%TP -- 0.875 0.875 0.875 ----------------------------------- require("scripts/globals/status"); require("sc...
gpl-3.0
Tigerism/tigerbot
resources/listeners/reactions.lua
1
2422
local reactions = {menus={}} local info = "ℹ" local leftArrow = "⬅" local rightArrow = "➡" local wasteBin = "🗑" local timer = require("timer") local function turnPage(menu,page) local embed = {} local options = menu.options local type = options.type or "fields" local resultsPerPage = options.resultsPerPage or 5...
mit
hwsyy/Atlas
examples/tutorial-scramble.lua
40
1816
--[[ $%BEGINLICENSE%$ Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distribut...
gpl-2.0
kitala1/darkstar
scripts/globals/items/bowl_of_optical_soup.lua
35
1570
----------------------------------------- -- ID: 4340 -- Item: bowl_of_optical_soup -- Food Effect: 4Hrs, All Races ----------------------------------------- -- HP % 6 (cap 75) -- Charisma -15 -- HP Recovered While Healing 5 -- Accuracy 15 -- Ranged Accuracy 15 ----------------------------------------- req...
gpl-3.0
kitala1/darkstar
scripts/globals/spells/poison_ii.lua
10
1327
----------------------------------------- -- Spell: Poison ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target,spel...
gpl-3.0
kitala1/darkstar
scripts/globals/weaponskills/mistral_axe.lua
30
1569
----------------------------------- -- Mistral Axe -- Axe weapon skill -- Skill level: 225 (Beastmasters and Warriors only.) -- Delivers a single-hit ranged attack at a maximum distance of 15.7'. Damage varies with TP. -- Despite being able to be used from a distance it is considered a melee attack and can be stac...
gpl-3.0
kitala1/darkstar
scripts/zones/Port_Bastok/npcs/Evelyn.lua
36
1516
----------------------------------- -- Area: Port Bastok -- NPC: Evelyn -- Only sells when Bastok controlls Gustaberg Region -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loaded["scripts/zones/Port_Bastok/...
gpl-3.0
kitala1/darkstar
scripts/globals/items/dish_of_spaghetti_carbonara.lua
35
1821
----------------------------------------- -- ID: 5190 -- Item: dish_of_spaghetti_carbonara -- Food Effect: 30Min, All Races ----------------------------------------- -- Health % 14 -- Health Cap 175 -- Magic 10 -- Strength 4 -- Vitality 2 -- Intelligence -3 -- Attack % 18 -- Attack Cap 65 -- Store TP 6 --...
gpl-3.0
lvdmaaten/nn
SplitTable.lua
40
1175
local SplitTable, parent = torch.class('nn.SplitTable', 'nn.Module') function SplitTable:__init(dimension, nInputDims) parent.__init(self) self.dimension = dimension self.nInputDims = nInputDims end function SplitTable:_getPositiveDimension(input) local dimension = self.dimension if dimension < 0 then ...
bsd-3-clause
Roblox/Core-Scripts
CoreScriptsRoot/Modules/Stats/TreeViewItem.lua
1
1651
--[[ Filename: TreeViewItem.lua Written by: dbanks Description: Generic tree view data stucture. --]] --[[ Globals ]]-- --[[ Helper functions ]]-- --[[ Classes ]]-- local TreeViewItem = {} TreeViewItem.__index = TreeViewItem function TreeViewItem.new(id, parent) local self = {} setmetatable(self, TreeVie...
apache-2.0
kitala1/darkstar
scripts/globals/spells/massacre_elegy.lua
11
1836
----------------------------------------- -- Spell: Battlefield Elegy ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,tar...
gpl-3.0
LuaDist2/opencl
test/event.lua
2
1750
------------------------------------------------------------------------------ -- Test events. -- Copyright © 2013–2015 Peter Colberg. -- Distributed under the MIT license. (See accompanying file LICENSE.) ------------------------------------------------------------------------------ require("strict") pcall(require, ...
mit
kitala1/darkstar
scripts/globals/items/plate_of_ratatouille.lua
35
1408
----------------------------------------- -- ID: 5731 -- Item: plate_of_ratatouille -- Food Effect: 3Hrs, All Races ----------------------------------------- -- Agility 5 -- Evasion 5 -- HP recovered while healing 2 -- Undead Killer 5 ----------------------------------------- require("scripts/globals/status...
gpl-3.0
kitala1/darkstar
scripts/globals/abilities/pets/tail_whip.lua
7
1261
--------------------------------------------------- -- Tail Whip M=5 --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); require("scripts/globals/summon"); --------------------------------------...
gpl-3.0
crabman77/minetest-minetestforfun-server
mods/homedecor_modpack/homedecor/electronics.lua
13
4135
-- Various home electronics local S = homedecor.gettext homedecor.register("speaker", { description = S("Large Stereo Speaker"), mesh="homedecor_speaker_large.obj", tiles = { "homedecor_speaker_sides.png", "homedecor_speaker_front.png" }, groups = { snappy = 3 }, sounds = default.node_sound_wood_defaults(),...
unlicense
AttacqueSuperior/Engine
mods/ra/maps/soviet-06a/soviet06a-AI.lua
2
3403
--[[ Copyright 2007-2021 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you 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 vers...
gpl-3.0
kaeza/love-klib
examples/minesweeper/main.lua
1
4653
package.path = "../../?/init.lua;../../?.lua;"..package.path print = require("klib.utils.debug").trace local classes = require "klib.classes" local Application = require("klib.app").Application local gui = require "klib.gui" local gui_core = require "klib.gui.core" local MineSweeper = classes.class("MineSweeper"...
bsd-2-clause
GabrielNicolasAvellaneda/luvit-upstream
examples/broken/web-app/modules/static.lua
8
5157
local fs = require 'fs' local pathJoin = require('path').join local osPathSep = require('path').sep local pathNormalize = require('path').normalize local urlParse = require('url').parse local getType = require('mime').getType local osType = require('os').type local osDate = require('os').date local iStream = require('...
apache-2.0
Kthulupwns/darkstar
scripts/globals/effects/chr_down.lua
19
1084
----------------------------------- -- -- EFFECT_CHR_DOWN -- ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) if((target:getStat(MOD_CHR) - effect...
gpl-3.0
VanessaE/minetest_game
mods/default/tools.lua
5
10835
-- mods/default/tools.lua -- The hand minetest.register_item(":", { type = "none", wield_image = "wieldhand.png", wield_scale = {x=1,y=1,z=2.5}, tool_capabilities = { full_punch_interval = 0.9, max_drop_level = 0, groupcaps = { crumbly = {times={[2]=3.00, [3]=0.70}, uses=0, maxlevel=1}, snappy = {times...
lgpl-2.1
TheRowanA/DarkRPSk-MoneyPrinters
lua/entities/silver_printer/init.lua
1
6188
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") -- [ ALTER THESE VALUES ] ---- local printTime = 180 -- How long the printer takes to generate money. local minPrint = 2000 -- The minimum amount the printer can generate. local maxPrint = 3000 -- The maximum amou...
gpl-2.0
dios-game/dios-cocos-samples
src/lua-earth-warrior-3d/Resources/src/cocos/cocos2d/DeprecatedCocos2dEnum.lua
79
16871
--Enums will be deprecated,begin _G.kCCTextAlignmentLeft = cc.TEXT_ALIGNMENT_LEFT _G.kCCTextAlignmentRight = cc.TEXT_ALIGNMENT_RIGHT _G.kCCTextAlignmentCenter = cc.TEXT_ALIGNMENT_CENTER _G.kCCVerticalTextAlignmentTop = cc.VERTICAL_TEXT_ALIGNMENT_TOP _G.kCCVerticalTextAlignment...
mit
awhitesong/rspamd
test/lua/unit/url.lua
1
1714
-- URL parser tests context("URL check functions", function() local mpool = require("rspamd_mempool") local url = require("rspamd_url") local logger = require("rspamd_logger") local ffi = require("ffi") ffi.cdef[[ void rspamd_url_init (const char *tld_file); unsigned ottery_rand_range(unsigned top); ]]...
bsd-2-clause
Kthulupwns/darkstar
scripts/globals/spells/diaga_iii.lua
13
1870
----------------------------------------- -- Spell: Diaga III -- 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
ritgraphics/MineshaftMayhem
EndlessRunner/assets/Scripts/MineShaft.lua
2
7405
function MineShaft.OnInit() this.railPrefab = Prefab.Load("rail.pfb"); this.railPrefab:MarkStore(); this.gemPrefab = Prefab.Load("GemRail.pfb"); this.gemPrefab:MarkStore(); this.brokenPrefab = Prefab.Load("BrokenRail.pfb"); this.brokenPrefab:MarkStore(); this.bufferPrefab = Prefab.Load("Buffer.pfb"); this.bu...
mit
mightymadTV/gmod_deathmatch
teamdeathmatch/gamemode/player.lua
1
24205
--[[--------------------------------------------------------- Name: gamemode:OnPhysgunFreeze( weapon, phys, ent, player ) Desc: The physgun wants to freeze a prop -----------------------------------------------------------]] function GM:OnPhysgunFreeze( weapon, phys, ent, ply ) -- Object is already frozen (!?...
gpl-2.0
Kthulupwns/darkstar
scripts/zones/Bastok_Mines/npcs/Zemedars.lua
34
1818
----------------------------------- -- Area: Bastok Mines -- NPC: Zemedars -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; require("scripts/zones/Bastok_Mines/TextIDs"); --------------------------------...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Toraimarai_Canal/npcs/qm11.lua
15
1512
----------------------------------- -- Area: Toraimarai Canal -- NPC: ??? -- Involved In Quest: Wild Card -- @zone 169 // not accurate -- @pos 220 16 -50 // not accurate ----------------------------------- package.loaded["scripts/zones/Toraimarai_Canal/TextIDs"] = nil; ----------------------------------- require("scr...
gpl-3.0
ark120202/aabs
game/scripts/vscripts/items/item_runic_mekansm.lua
1
4458
LinkLuaModifier("modifier_item_runic_mekansm", "items/item_runic_mekansm.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_item_runic_mekansm_effect", "items/item_runic_mekansm.lua", LUA_MODIFIER_MOTION_NONE) item_runic_mekansm = class({ GetIntrinsicModifierName = function() return "modifier_item_runic_mekans...
mit
Alig96/nzombies
nzombies3/entities/entities/nut_zombie.lua
1
7669
AddCSLuaFile() ENT.Base = "base_nextbot" ENT.PrintName = "Zombie" ENT.Category = "Dissolution" ENT.Author = "Chessnut" ENT.Spawnable = true ENT.AdminOnly = true for i = 2, 4 do util.PrecacheModel("models/zed/malezed_0"..(i * 2)..".mdl") end function ENT:Initialize() self:SetModel("models/zed/malezed_0"..(math.rand...
gpl-3.0
Kthulupwns/darkstar
scripts/globals/items/eel_kabob.lua
35
1276
----------------------------------------- -- ID: 4457 -- Item: eel_kabob -- Food Effect: 30Min, All Races ----------------------------------------- -- Dexterity 4 -- Mind -3 -- Evasion 5 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- ...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Periqia/IDs.lua
49
3842
Periqia = { text = { -- General Texts ITEM_CANNOT_BE_OBTAINED = 6378, -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6381, -- Obtained: <item> GIL_OBTAINED = 6384, -- Obtained <number> gil KEYITEM_OBTAINED = 6384, -- Obtaine...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Upper_Jeuno/npcs/Mhao_Kehtsoruho.lua
38
1041
----------------------------------- -- Area: Upper Jeuno -- NPC: Mhao Kehtsoruho -- Type: Past Event Watcher -- @zone: 244 -- @pos -73.032 -1 146.919 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; --------...
gpl-3.0
lemonkit/lemoon
url.lua
2
12642
-- -- Created by IntelliJ IDEA. -- User: liyang -- Date: 15/11/30 -- Time: 上午11:38 -- To change this template use File | Settings | File Templates. -- -- neturl.lua - a robust url parser and builder -- -- Bertrand Mansion, 2011-2013; License MIT -- @module neturl -- @alias M local M = {} M.version = "0.9.0" --- url ...
mit
FPtje/DarkRP
entities/entities/spawned_ammo/init.lua
1
1883
AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() DarkRP.ValidatedPhysicsInit(self, SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:SetUseType(SIMPLE_USE) local phys = self:GetPhysicsObject() phys:Wake() end function ENT:Use(acti...
mit
ark120202/aabs
game/scripts/vscripts/filters.lua
1
12579
Events:Register("activate", function () GameRules:GetGameModeEntity():SetExecuteOrderFilter(Dynamic_Wrap(GameMode, 'ExecuteOrderFilter'), GameRules) GameRules:GetGameModeEntity():SetDamageFilter(Dynamic_Wrap(GameMode, 'DamageFilter'), GameRules) GameRules:GetGameModeEntity():SetModifyGoldFilter(Dynamic_Wrap(GameMode...
mit
Kthulupwns/darkstar
scripts/globals/weaponskills/viper_bite.lua
12
1673
----------------------------------- -- Viper Bite -- Dagger weapon skill -- Skill level: 100 -- Deals double damage and Poisons target. Duration of poison varies with TP. -- Doubles attack and not damage. -- Despite the animation showing two swings, this is a single-hit weapon skill. -- Will stack with Sneak Att...
gpl-3.0
jlopenwrtluci/luci
applications/luci-app-asterisk/luasrc/model/cbi/asterisk/dialplan_out.lua
68
3021
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local ast = require("luci.asterisk") local function find_outgoing_contexts(uci) local c = { } local h = { } -- uci:foreach("asterisk", "dialplan", -- function(s) -- if not h[s['.name']] then -- c[#c+1]...
apache-2.0
amenophis1er/prosody-modules
mod_captcha_registration/util/dataforms.lua
33
6601
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local setmetatable = setmetatable; local pairs, ipairs = pairs, ipairs; local tostring, type, next = tost...
mit
Nefarix/Nefarix.github.io
RMTCore/Encounters/RMT/StarEater.lua
1
13382
---------------------------------------------------------------------------------------------------- -- StarEater encounter script (HE'LL ALWAYS BE OCTOC TO ME!) -- -- Copyright (C) 2016 Joshua Shaffer ---------------------------------------------------------------------------------------------------- local core = Apol...
agpl-3.0
hj3938/wax
examples/TwitterApp/scripts/TwitterTableViewController.lua
17
1076
waxClass{"TwitterTableViewController", UITableViewController} function init(self) self.super:initWithStyle(UITableViewStylePlain) self.trends = {} return self end function viewDidLoad(self) wax.http.request{"http://search.twitter.com/trends.json", callback = function(json, response) if response:statusC...
mit
junrw/ember-gsoc2012
src/components/ogre/widgets/Mover.lua
5
1317
--Shows a simple help window when moving an entity. Mover = {} function Mover:updateEntityText(entity) --if the entity has a name, use it, else use the type name --perhaps we should prefix the type name with an "a" or "an"? name = "" if entity:getName() ~= "" then name = entity:getName() else name = entity:g...
gpl-3.0
mlody1039/ModernOts
data/talkactions/scripts/add_shop_talkaction.lua
1
1857
function onSay(cid, words, param, channel) local toPos = getCreatureLookPosition(cid) -- this function may not exists in old TFSes :/ toPos.stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE local params = string.explode(param, ",") local price = params[1] table.remove(params, 1) local desc = table.concat(params,",") lo...
gpl-3.0
kinzhang/cocos2d-js-v3.2
frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ActionTimelineCache.lua
5
2467
-------------------------------- -- @module ActionTimelineCache -- @parent_module ccs -------------------------------- -- Clone a action with the specified name from the container. -- @function [parent=#ActionTimelineCache] createActionFromJson -- @param self -- @param #string fileName -- @return ActionTimeline#Ac...
mit
mlody1039/ModernOts
data/npc/scripts/Chondur.lua
2
4469
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end funct...
gpl-3.0
SPARKTEA/SPARKTEAM
plugin/anti_spam.lua
191
5291
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id == our_id then return msg end -- Save...
gpl-2.0
Kthulupwns/darkstar
scripts/zones/Sauromugue_Champaign/npcs/qm1.lua
4
1569
----------------------------------- -- Area: Sauromugue Champaign -- NPC: qm1 (???) -- @pos 203.939 0.000 -238.811 120 -- Notes: Spawns Dribblix Greasemaw for ACP mission "Gatherer of Light (I)" ----------------------------------- package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil; ------------...
gpl-3.0
ASHRAF97/ASHRAFKASPERV3
plugins/admin.lua
95
10643
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