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
mlody1039/ModernOts
data/creaturescripts/scripts/monster2.lua
1
1634
monsters = { --["monste name"] = {["summon name"] = {pos = {x, y, z}, delay = milisegundos}, ["The Axeorcist"] = { ["Menace"] = {pos = {x=33063, y=30996, z=3}, delay = 2000}, ["Fatality"] = {pos = {x=33064, y=30996, z=3}, delay = 2000} }, ["Fatality"] = { ...
gpl-3.0
mlody1039/ModernOts
data/talkactions/scripts/reports.lua
1
1605
local config = { expireReportsAfterReads = getConfigValue('expireReportsAfterReads') } function onSay(cid, words, param, channel) local reportId = tonumber(param) if(reportId ~= nil) then local report = db.getResult("SELECT `r`.*, `p`.`name` AS `player_name` FROM `server_reports` r LEFT JOIN `players` p ON `r`.`player_...
gpl-3.0
JamesWilko/Payday-2-BLT-Lua
mods/base/lua/MenuManager.lua
1
5759
CloneClass( MenuManager ) CloneClass( MenuCallbackHandler ) CloneClass( MenuModInfoGui ) Hooks:RegisterHook( "MenuManagerInitialize" ) Hooks:RegisterHook( "MenuManagerPostInitialize" ) function MenuManager.init( self, ... ) self.orig.init( self, ... ) Hooks:Call( "MenuManagerInitialize", self ) Hooks:Call( "MenuMa...
mit
Big-B/dotfiles
awesome/rc.mine.lua
1
18817
-- Get home path home_path = os.getenv('HOME') .. '/' -- Standard awesome library local gears = require("gears") local awful = require("awful") awful.rules = require("awful.rules") require("awful.autofocus") -- Widget and layout library local wibox = require("wibox") -- Theme handling library local beautiful = require...
mit
telbbs/luci-0.12
applications/luci-statistics/luasrc/model/cbi/luci_statistics/df.lua
78
1628
--[[ Luci configuration model for statistics - collectd df 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 License at...
apache-2.0
Mleaf/mleaf_luci
applications/luci-statistics/luasrc/model/cbi/luci_statistics/df.lua
78
1628
--[[ Luci configuration model for statistics - collectd df 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 License at...
apache-2.0
Kthulupwns/darkstar
scripts/zones/Apollyon/mobs/Jidra.lua
17
2157
----------------------------------- -- Area: Apollyon SW -- NPC: Jidra ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Apollyon/TextIDs"); -----------------------------...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/RuLude_Gardens/npcs/HomePoint#1.lua
12
1250
----------------------------------- -- Area: RuLude Gardens -- NPC: HomePoint#1 -- @pos -6 3 0.001 243 ----------------------------------- package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/RuLude_Gardens/TextIDs"); require("scripts/glo...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Dynamis-Windurst/Zone.lua
28
2485
----------------------------------- -- -- Zone: Dynamis-Windurst -- ----------------------------------- package.loaded["scripts/zones/Dynamis-Windurst/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Dynamis-Windurst/TextIDs"); ---------------...
gpl-3.0
Mleaf/mleaf_luci
applications/luci-olsr/luasrc/model/cbi/olsr/olsrd6.lua
38
16502
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
apache-2.0
Kthulupwns/darkstar
scripts/zones/Northern_San_dOria/npcs/Yevgeny_IM.lua
30
4763
----------------------------------- -- Area: Northern Sandoria -- NPC: Yevgeny, I.M. -- @pos 45 -1 0 231 -- X Grant Signet -- X Recharge Emperor Band, Empress Band, or Chariot Band -- X Accepts traded Crystals to fill up the Rank bar to open new Missions. -- X Sells items in exchange for Conquest Points -- X Start Sup...
gpl-3.0
amenophis1er/prosody-modules
mod_s2s_keysize_policy/mod_s2s_keysize_policy.lua
32
1512
-- mod_s2s_keysize_policy.lua -- Requires LuaSec with this patch: https://github.com/brunoos/luasec/pull/12 module:set_global(); local datetime_parse = require"util.datetime".parse; local pat = "^([JFMAONSD][ceupao][glptbvyncr]) ?(%d%d?) (%d%d):(%d%d):(%d%d) (%d%d%d%d) GMT$"; local months = {Jan=1,Feb=2,Mar=3,Apr=4,...
mit
WidgetInteractive/Scholar
libs/LibAddonMenu-2.0/controls/custom.lua
6
1201
--[[customData = { type = "custom", reference = "MyAddonCustomControl", --(optional) unique name for your control to use as reference refreshFunc = function(customControl) end, --(optional) function to call when panel/controls refresh width = "full", --or "half" (optional) } ]] local widgetVersi...
gpl-2.0
telbbs/luci-0.12
modules/base/luasrc/template.lua
68
3061
--[[ LuCI - Template Parser Description: A template parser supporting includes, translations, Lua code blocks and more. It can be used either as a compiler or as an interpreter. FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you...
apache-2.0
AttacqueSuperior/Engine
mods/ra/maps/allies-03b/allies03b.lua
2
14113
--[[ 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
CadishShank/Ardour-5.0.2.0-Cad
scripts/midimon.lua
5
6526
ardour { ["type"] = "dsp", name = "a-MIDI Monitor", category = "Visualization", license = "GPLv2", author = "Ardour Team", description = [[Display recent MIDI events inline in the mixer strip]] } local maxevents = 20 local ringsize = maxevents * 3 local evlen = 3 local hpadding, vpadding = ...
gpl-2.0
GabrielNicolasAvellaneda/luvit-upstream
examples/broken/test-http-keepalive.lua
16
2387
--[[ Copyright 2012 The Luvit Authors. All Rights Reserved. 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 agr...
apache-2.0
Mleaf/mleaf_luci
modules/base/luasrc/cbi/datatypes.lua
62
6006
--[[ LuCI - Configuration Bind Interface - Datatype Tests (c) 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE...
apache-2.0
Kthulupwns/darkstar
scripts/zones/PsoXja/npcs/_09f.lua
9
1609
----------------------------------- -- Area: Pso'Xja -- NPC: _09f (Stone Gate) -- Notes: Spawns Gargoyle when triggered -- @pos -330.000 14.074 -261.600 9 ----------------------------------- package.loaded["scripts/zones/PsoXja/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Pso...
gpl-3.0
mlody1039/ModernOts
data/npc/scripts/Frodo.lua
1
19163
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local Topic = {} local rumours = { [1] = {"I heard about dozens of sea serpents terrorising the sea around the islands in the North. ...", "... It seems that this was the reason why nobo...
gpl-3.0
AGTMADCAT/naev
docs/missions/computer_template.lua
17
3065
--[[ This is a Naev mission template for missions from the Mission Computer. In this document aims to provide a structure on which to build Naev missions. The possibilities are endless, so this will not apply to every possible mission. For more information on Naev, please visit: http://naev.org/ Naev mi...
gpl-3.0
WidgetInteractive/Scholar
modules/spinner.lua
1
17419
-- Variables ------------------------------------------------------------------- Scholar_Spinner = {} Scholar_Spinner_Tables = { provisioning = {}, enchanting = {}, alchemy = {}, smithing = {} } -- Provisioning ---------------------------------------------------------------- function Scholar_Spinner:Ove...
gpl-2.0
Kthulupwns/darkstar
scripts/globals/items/choco-scroll.lua
36
1153
----------------------------------------- -- ID: 5917 -- Item: Choco-scroll -- Food Effect: 3 Min, All Races ----------------------------------------- -- Mind 1 -- Speed 12.5% ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck --------...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Port_Jeuno/npcs/Sanosuke.lua
19
1503
----------------------------------- -- Area: Port Jeuno -- NPC: Sanosuke -- Involved in Quest: A Thief in Norg!? -- @pos -63 7 0 246 ----------------------------------- package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("s...
gpl-3.0
dpino/snabb
src/program/lwaftr/csv_stats.lua
7
6164
module(..., package.seeall) local S = require("syscall") local shm = require("core.shm") local timer = require("core.timer") local engine = require("core.app") local config = require("core.config") local counter = require("core.counter") CSVStatsTimer = {} local function open_link_counters(pid) local counters = {...
apache-2.0
mlody1039/ModernOts
data/lib/004-database.lua
5
1989
if(result == nil) then print("> WARNING: Couldn't load database lib.") return end Result = createClass(nil) Result:setAttributes({ id = -1, query = "" }) function Result:getID() return self.id end function Result:setID(_id) self.id = _id end function Result:getQuery() return self.query end function Result:s...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Port_Bastok/npcs/Paujean.lua
34
2585
----------------------------------- -- Area: Port Bastok -- NPC: Paujean -- Starts & Finishes Quest: Silence of the Rams -- @pos -93.738 4.649 34.373 236 ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("scripts/globals/...
gpl-3.0
ArcadiaGamingNetwork/AGC-DarkRP-Configuration
lua/darkrp_modules/levels/sh_config.lua
1
8470
///////////////////////// // Configuration file // ///////////////////////// LevelSystemConfiguration = {} // Ignore Printers = {} // Ignore LevelSystemConfiguration.EnableHUD = true // Is the HUD enabled? LevelSystemConfiguration.LevelColor = Color(255,255,255,255) // The color of the "Level: 1" HUD element. White...
mit
mlody1039/ModernOts
data/npc/scripts/TP1/boat_darashia.lua
1
3851
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function ...
gpl-3.0
virtualrobotix/ardupilot
Tools/CHDK-Scripts/Cannon S100/3DR_EAI_S100.lua
96
29695
--[[ KAP UAV Exposure Control Script v3.2 -- Released under GPL by waterwingz and wayback/peabody http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script 3DR EAI 1.0 is a fork of KAP 3.1 with settings specific to Canon cameras triggered off the Pixhawk autopilot. Changelog: -Modified Tv, Av, and...
gpl-3.0
Velkon/DarkRP
gamemode/init.lua
1
2506
hook.Run("DarkRPStartedLoading") GM.Version = "2.6.2 beta" GM.Name = "DarkRP" GM.Author = "By FPtje Falco et al." DeriveGamemode("sandbox") AddCSLuaFile("libraries/sh_cami.lua") AddCSLuaFile("libraries/simplerr.lua") AddCSLuaFile("libraries/interfaceloader.lua") AddCSLuaFile("libraries/modificationloader.lua") AddC...
mit
Kthulupwns/darkstar
scripts/globals/spells/bluemagic/frenetic_rip.lua
3
1034
require("scripts/globals/magic"); require("scripts/globals/status"); require("scripts/globals/bluemagic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0; end; function onSpellCast(caster,target,sp...
gpl-3.0
smlng/RIOT
examples/lua_REPL/repl.lua
35
2683
--[[ @file repl.lua @brief Read-eval-print loop for LUA @author Juan Carrano <j.carrano@fu-berlin.de> Copyright (C) 2018 Freie Universität Berlin. Distributed under the GNU Lesser General Public License v2.1. ]] local _R_EVAL = 0 local _R_CONT = 1 local _R_EXIT = 2 local _R_ERROR = 3 --[[ Read code fro...
lgpl-2.1
amenophis1er/prosody-modules
mod_mam/rsm.lib.lua
39
1805
local stanza = require"util.stanza".stanza; local tostring, tonumber = tostring, tonumber; local type = type; local pairs = pairs; local xmlns_rsm = 'http://jabber.org/protocol/rsm'; local element_parsers = {}; do local parsers = element_parsers; local function xs_int(st) return tonumber((st:get_text())); end ...
mit
Kthulupwns/darkstar
scripts/zones/Kazham/npcs/Bhoyu_Halpatacco.lua
20
1250
----------------------------------- -- Area: Kazham -- NPC: Bhoyu Halpatacco -- @zone 250 -- @pos -18 -4 -15 ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); ----------------------------------- -- onTrade Action -----------...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Northern_San_dOria/npcs/Morjean.lua
21
1691
----------------------------------- -- Area: Northern San d'Oria -- NPC: Morjean -- Involved in Quest: A Squire's Test II (Optional), The Holy Crest -- @pos 99 0 116 231 ------------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require(...
gpl-3.0
ASHRAF97/ASHRAFKASPERV3
plugins/block.lua
2
2931
--[[ $ :) -- - ( #MASCO_ماسكو ) - -- $ :) -- - ( @IQ_ABS ) - -- $ :) --Channel-( @DEV_PROX )-- $ :) ]]-- local function addword(msg, name) local hash = 'chat:'..msg.to.id..':badword' redis:hset(hash, name, 'newword') return "⛔️❗️ تـۖم مـنـع هـذه ٲڵـکـڵـمة فيۧ ٱڵمجـمۄعة\n>"..name end local fun...
gpl-2.0
asandroq/virtuality
tests/balls.lua
1
1127
-- Scene with tree balls -- Alex Sandro Queiroz e Silva Frame { format = FB_PNG, name = "balls.png", width = 800, height = 600, ambient = Colour { red = 0.2, green = 0.2, blue = 0.2 }; -- creating camera Camera { position = Point { y = 3.0 }, direction = Vector { y = -3.0, z = 7.0 } }, -- creating li...
gpl-2.0
ashkan1996/hunter002
plugins/owners.lua
1467
12478
local function lock_group_namemod(msg, data, target) local group_name_set = data[tostring(target)]['settings']['set_name'] local group_name_lock = data[tostring(target)]['settings']['lock_name'] if group_name_lock == 'yes' then return 'Group name is already locked' else data[tostring(target)]['setting...
gpl-2.0
Kthulupwns/darkstar
scripts/zones/Sea_Serpent_Grotto/npcs/qm3.lua
19
1377
----------------------------------- -- Area: Sea Serpent Grotto -- NPC: ??? Used for Norg quest "It's not your vault" -- @zone 176 -- @pos -173 26 252 2 ----------------------------------- package.loaded["scripts/zones/Sea_Serpent_Grotto/TextIDs"] = nil; ----------------------------------- require("scripts/g...
gpl-3.0
mlody1039/ModernOts
data/npc/scripts/TP/boat_meriana.lua
1
2241
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function ...
gpl-3.0
ToxicFrog/luautil
logging.lua
2
2454
local LOG_LEVEL = 2 -- WARNING local OUT = io.stdout local flush if flags then flags.register "log-level" { type = flags.string; help = "Maximum level to log at (error, warning, info, debug, or trace)."; default = os.getenv("LOG_LEVEL") or "warning"; set = function(k, level) return log.setlevel(level...
mit
mlody1039/ModernOts
data/npc/scripts/oracle.lua
4
6539
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, m...
gpl-3.0
shawnl/kyototycoon
example/ktscrjsonex.lua
12
3900
kt = __kyototycoon__ db = kt.db json = require("json") -- post a new document function writedoc(inmap, outmap) local doc = inmap.doc if not doc then return kt.RVEINVALID end local doc = json.decode(doc) local owner = tonumber(doc.owner) local date = tonumber(doc.date) local title = tostring(...
gpl-3.0
tanema/light_world.lua
examples/postshaders.lua
1
2631
local PostShader = require "lib/postshader" local colorAberration = 0 local post_shader, render_buffer local img local function load() post_shader = PostShader() render_buffer = love.graphics.newCanvas(love.graphics.getWidth(), love.graphics.getHeight()) img = love.graphics.newImage("examples/img/postshaders/kin...
mit
naader1380/n2
plugins/persian_lang.lua
5
26236
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
mlody1039/ModernOts
data/npc/scripts/Eremo.lua
1
1794
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) ...
gpl-3.0
hogepiyosan/pd2wp
mods/Weapon Panel/lua/base.lua
1
1933
dofile(ModPath.. "lua/common.lua") if RequiredScript == "lib/managers/hudmanagerpd2" then Hooks:PostHook( HUDManager, "show_endscreen_hud", "WeaponPanel", function(self) return WeaponPanel:safecall(function() if not WeaponPanel.ws_panel then WeaponPanel:create_panel() end WeaponPanel.ws_panel:child("info_pa...
mit
Mleaf/mleaf_luci
applications/luci-multiwan/luasrc/controller/multiwan.lua
75
1930
module("luci.controller.multiwan", package.seeall) function index() local fs = luci.fs or nixio.fs if not fs.access("/etc/config/multiwan") then return end local page page = entry({"admin", "network", "multiwan"}, cbi("multiwan/multiwan"), _("Multi-WAN")) page.dependent = true entry({"admin", "network", "...
apache-2.0
awhitesong/rspamd
conf/lua/regexp/lotto.lua
4
2693
-- Actually these regular expressions were obtained from SpamAssassin project, so they are licensed by apache license: -- -- 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 copyr...
bsd-2-clause
aliwar/migmig
plugins/anti_spam.lua
417
3978
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds local data = load_data(_config.moderation.data) -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id =...
agpl-3.0
Mahyar0098/Cj-Bot
plugins/anti_spam.lua
417
3978
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds local data = load_data(_config.moderation.data) -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id =...
gpl-2.0
telergybot/telergybot
plugins/translate.lua
674
1637
--[[ -- Translate text using Google Translate. -- http://translate.google.com/translate_a/single?client=t&ie=UTF-8&oe=UTF-8&hl=en&dt=t&tl=en&sl=auto&text=hello --]] do function translate(source_lang, target_lang, text) local path = "http://translate.google.com/translate_a/single" -- URL query parameters local p...
gpl-2.0
Kthulupwns/darkstar
scripts/globals/mobskills/Gates_of_Hades.lua
6
1264
--------------------------------------------- -- Gates of Hades -- -- Description: Deals severe Fire damage to enemies within an area of effect. Additional effect: Burn -- Type: Magical -- -- -- Utsusemi/Blink absorb: Wipes shadows -- Range: 20' radial -- Notes: Only used when a cerberus's health is 25%...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Wajaom_Woodlands/npcs/qm3.lua
15
1195
----------------------------------- -- Area: Wajaom Woodlands -- NPC: ??? (Spawn Gotoh Zha the Redolent(ZNM T3)) -- @pos -337 -31 676 51 ----------------------------------- package.loaded["scripts/zones/Wajaom_Woodlands/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Wajaom_Woodlands/TextI...
gpl-3.0
Kthulupwns/darkstar
scripts/globals/items/humpty_dumpty_effigy.lua
35
1506
----------------------------------------- -- ID: 5683 -- Item: humpty_dumpty_effigy -- Food Effect: 30Min, All Races ----------------------------------------- -- Max HP % 6 -- Max MP % 6 -- HP recovered while healing 10 -- MP recovered while healing 10 (unconfirmed) ----------------------------------------- ...
gpl-3.0
Kthulupwns/darkstar
scripts/globals/weaponskills/full_swing.lua
30
1260
----------------------------------- -- Full Swing -- Staff weapon skill -- Skill Level: 200 -- Delivers a single-hit attack. Damage varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Flame Gorget & Thunder Gorget. -- Aligned with the Flame Belt & Thunder Belt. -- Element: None -- Modifiers: S...
gpl-3.0
kaeza/love-klib
klib/gui/scrollbar.lua
1
4952
local classes = require "klib.classes" local Compound = require("klib.gui.compound").Compound local Button = require("klib.gui.button").Button local math_max, math_min = math.max, math.min local m = classes.module "klib.gui.listbox" local ScrollBar = classes.class(m, "ScrollBar", Compound) -- Private fields. loca...
bsd-2-clause
Kthulupwns/darkstar
scripts/zones/LaLoff_Amphitheater/mobs/Ark_Angel_MR.lua
27
1508
----------------------------------- -- Area: LaLoff Amphitheater -- NPC: Ark Angel MR ----------------------------------- require("scripts/zones/LaLoff_Amphitheater/TextIDs"); ----------------------------------- -- TODO: Allegedly has a 12 hp/sec regen. Determine if true, and add to onMobInitialize if so....
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Yuhtunga_Jungle/npcs/Richacha_WW.lua
30
3055
----------------------------------- -- Area: Yuhtunga Jungle -- NPC: Richacha, W.W. -- Border Conquest Guards -- @pos -241.334 -1 478.602 123 ----------------------------------- package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest"); requ...
gpl-3.0
kuoruan/luci
applications/luci-app-asterisk/luasrc/model/cbi/asterisk/dialzones.lua
68
3276
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local ast = require("luci.asterisk") local uci = require("luci.model.uci").cursor() --[[ Dialzone overview table ]] if not arg[1] then zonemap = Map("asterisk", "Dial Zones", [[ Dial zones hold patterns of...
apache-2.0
Kthulupwns/darkstar
scripts/zones/VeLugannon_Palace/npcs/Monolith.lua
13
3650
----------------------------------- -- Area: VeLugannon Palace -- NPC: Monolith -- @pos <many> ----------------------------------- package.loaded["scripts/zones/VeLugannon_Palace/TextIDs"] = nil; ----------------------------------- require("scripts/zones/VeLugannon_Palace/TextIDs"); -----------------------...
gpl-3.0
limelime/xmpv
xmpv/xmpv-playlist.lua
1
1584
----------------------------------------------------------------------------- -- Playlist class. ----------------------------------------------------------------------------- local home = os.getenv("HOME") package.path = package.path .. ';' .. home .. '/.config/mpv/scripts/?.lua' require 'xmpv-tmsu' require 'xmpv-msg...
gpl-2.0
AGTMADCAT/naev
dat/ai/pirate.lua
1
5448
include("dat/ai/tpl/generic.lua") include("dat/ai/personality/patrol.lua") --[[ Pirate AI --]] -- Settings mem.aggressive = true mem.safe_distance = 500 mem.armour_run = 80 mem.armour_return = 100 mem.atk_board = true mem.atk_kill = false function create () -- Some pirates do kill i...
gpl-3.0
mlody1039/ModernOts
data/npc/scripts/TP/MarisMistrock.lua
2
2369
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...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Windurst_Woods/npcs/Aja-Panja.lua
38
1038
----------------------------------- -- Area: Windurst Woods -- NPC: Aja-Panja -- Type: Standard NPC -- @zone: 241 -- @pos -7.251 -6.55 -134.127 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; -----------...
gpl-3.0
aa65535/luci
applications/luci-app-rp-pppoe-server/luasrc/model/cbi/rp-pppoe-server.lua
18
2039
-- Copyright 2015 Daniel Dickinson <openwrt@daniel.thecshore.com> -- Licensed to the public under the Apache License 2.0. local m, s, o local nixio = require "nixio" m = Map("pppoe", translate("Roaring Penguin PPPoE Server"), translate("PPPoE Server Configuration")) s = m:section(TypedSection, "pppoe_server", tran...
apache-2.0
AttacqueSuperior/Engine
mods/d2k/maps/ordos-04/ordos04.lua
2
5429
--[[ 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
Kthulupwns/darkstar
scripts/zones/Windurst_Woods/npcs/Kuzah_Hpirohpon.lua
19
1174
----------------------------------- -- Area: Windurst Woods -- NPC: Kuzah Hpirohpon -- Guild Merchant NPC: Clothcrafting Guild -- @pos -80.068 -3.25 -127.686 241 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/globa...
gpl-3.0
Velkon/DarkRP
entities/entities/darkrp_cheque/cl_init.lua
10
1653
include("shared.lua") function ENT:Draw() self:DrawModel() if not IsValid(self:Getowning_ent()) or not IsValid(self:Getrecipient()) then return end local Pos = self:GetPos() local Ang = self:GetAngles() local amount = self:Getamount() local owner = (IsValid(self:Getowning_ent()) and self:Geto...
mit
rohanp/Algorithm-Implementations
A_Star_Search/Lua/Yonaba/utils/bheap.lua
78
2454
-- Binary Heap data structure implementation -- See: http://www.policyalmanac.org/games/binaryHeaps.htm -- Adapted from: https://github.com/Yonaba/Binary-Heaps local PATH = (...):gsub('%.bheap$','') local class = require (PATH .. '.class') -- Looks for item in an array local function findIndex(array, item) for k,v ...
mit
rohanp/Algorithm-Implementations
Best_First_Search/Lua/Yonaba/utils/bheap.lua
78
2454
-- Binary Heap data structure implementation -- See: http://www.policyalmanac.org/games/binaryHeaps.htm -- Adapted from: https://github.com/Yonaba/Binary-Heaps local PATH = (...):gsub('%.bheap$','') local class = require (PATH .. '.class') -- Looks for item in an array local function findIndex(array, item) for k,v ...
mit
Kthulupwns/darkstar
scripts/zones/Garlaige_Citadel/npcs/Oaken_Box.lua
9
1727
----------------------------------- -- Area: Garlaige Citadel -- NPC: Oaken Box -- Involved In Quest: Peace for the Spirit -- @pos -164 0.1 225 200 ----------------------------------- package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil; ----------------------------------- require("scripts/globals/...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Windurst_Walls/npcs/Seven_of_Diamonds.lua
38
1044
----------------------------------- -- Area: Windurst Walls -- NPC: Seven of Diamonds -- Type: Standard NPC -- @pos 6.612 -3.5 278.553 239 ----------------------------------- package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil; ----------------------------------- ----------------------------------- -- on...
gpl-3.0
Mleaf/mleaf_luci
applications/luci-asterisk/luasrc/model/cbi/asterisk-sip-connections.lua
80
3921
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
apache-2.0
ark120202/aabs
game/scripts/vscripts/heroes/hero_queenofblades/army.lua
1
1722
function SpawnSummons(keys) local caster = keys.caster local ability = keys.ability local point = keys.target_points[1] local radius = ability:GetAbilitySpecial("radius") for i = 1, ability:GetAbilitySpecial("summon_amount") do local summon_point = point + (RotatePosition(Vector(0,0,0), QAngle(0,RandomInt(0,259)...
mit
Kthulupwns/darkstar
scripts/globals/items/temple_truffle.lua
36
1159
----------------------------------------- -- ID: 5916 -- Item: Temple Truffle -- Food Effect: 3 Min, All Races ----------------------------------------- -- Strength 1 -- Speed 12.5% ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck --...
gpl-3.0
mlody1039/ModernOts
data/actions/scripts/other/music.lua
4
1576
local HORN = 2079 local BIRD_CAGE = 2095 local WOODEN_WHISTLE = 5786 local DIDGERIDOO = 3952 local CORNUCOPIA = 2369 local PARTY_TRUMPET = 6572 local USED_PARTY_TRUMPET = 6573 local GREEN_NOTES = {2070, 2071, 2073, 2075, 2076, 2078, 2367, 2374} function onUse(cid, item, fromPosition, itemEx, toPosition) local random ...
gpl-3.0
kuoruan/luci
modules/luci-base/luasrc/cbi.lua
4
43222
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. module("luci.cbi", package.seeall) require("luci.template") local util = require("luci.util") require("luci.http") --local event = require "luci.sys.event" local fs = require("nixio.fs") local uc...
apache-2.0
ark120202/aabs
game/scripts/vscripts/kv.lua
1
8418
function SpendChargeRight(keys) keys.ability:SpendCharge() end function SetMaxLevel(keys) local ability = keys.ability ability:SetLevel(ability:GetMaxLevel()) end function HideTarget(keys) local target = keys.target or keys.caster target:AddNoDraw() end function ShowTarget(keys) local target = keys.target or k...
mit
ark120202/aabs
game/scripts/vscripts/libraries/binheap.lua
1
1760
-- Binary Heap implementation copy-pasted from https://gist.github.com/starwing/1757443a1bd295653c39 -- BinaryHeap[1] always points to the element with the lowest "key" variable -- API -- BinaryHeap(key) - Creates a new BinaryHeap with key. The key is the name of the integer variable used to sort objects. -- BinaryHeap...
mit
Wiladams/LJIT2Win32
SocketUtils.lua
1
5653
local ffi = require "ffi" local bit = require "bit" local band = bit.band local WinSock = require "WinSock_Utils" local SocketType = WinSock.FFI.SocketType; local Family = WinSock.FFI.Family; local NativeSocket = require "NativeSocket" -- pass in a sockaddr -- get out a more specific sockaddr_in or sockaddr_in6 fun...
mit
rohanp/Algorithm-Implementations
Bogosort/Lua/Yonaba/bogosort_test.lua
27
1956
-- Tests for bogosort.lua local bogosort = require 'bogosort' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function run(message, f) total = total + 1 local ok, err = pcall(f) if ok then pass = pass + 1 end local stat...
mit
Kthulupwns/darkstar
scripts/zones/Southern_San_dOria/npcs/Ceraule.lua
36
1465
----------------------------------- -- Area: Southern San d'Oria -- NPC: Ceraule -- General Info NPC -- @zone 230 -- @pos -86 2 -35 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings")...
gpl-3.0
AttacqueSuperior/Engine
mods/cnc/maps/nod07a/nod07a-AI.lua
2
5139
--[[ 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
Kthulupwns/darkstar
scripts/zones/Port_San_dOria/npcs/Meinemelle.lua
38
1130
----------------------------------- -- Area: Port San d'Oria -- NPC: Meinemelle -- Type: Standard NPC -- @zone: 232 -- @pos -8.289 -9.3 -146.093 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; require(...
gpl-3.0
dreamsxin/otclient
modules/corelib/ui/effects.lua
13
1798
-- @docclass g_effects = {} function g_effects.fadeIn(widget, time, elapsed) if not elapsed then elapsed = 0 end if not time then time = 300 end widget:setOpacity(math.min(elapsed/time, 1)) removeEvent(widget.fadeEvent) if elapsed < time then removeEvent(widget.fadeEvent) widget.fadeEvent = scheduleE...
mit
hj3938/wax
tools/Tests/scripts/tests/jsonTest.lua
17
3775
describe["JSON parsing"] = function() it["can parse numbers"] = function() expect(wax.json.parse("123")).should_be(123) end it["can parse nulls"] = function() expect(wax.json.parse("null")).should_be(nil) end it["can parse floats"] = function() expect(wax.json.parse("1.23")).should_be(1.23) en...
mit
alioshii/KASBAR
plugins/en-anti_media.lua
7
1616
do local function pre_process(msg) local jalal = msg['id'] local user = msg.from.id local chat = msg.to.id local oscar = 'mate:'..msg.to.id if redis:get(oscar) and msg.media and not is_momod(msg) then delete_msg(msg.id, ok_cb, false) local test = "عزيزي~["..msg.from.first_name.."]".."\n"...
gpl-2.0
Kthulupwns/darkstar
scripts/zones/QuBia_Arena/mobs/Yukvok_of_Clan_Death.lua
24
2525
----------------------------------- -- Area: QuBia_Arena -- Mission 9-2 SANDO ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/status"); require("scripts/globals/missions"); require("scripts/zones/QuBia_Arena/TextIDs"); ----------------------------------- -- onMobSpawn A...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/QuBia_Arena/mobs/Rallbrog_of_Clan_Death.lua
24
2525
----------------------------------- -- Area: QuBia_Arena -- Mission 9-2 SANDO ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/status"); require("scripts/globals/missions"); require("scripts/zones/QuBia_Arena/TextIDs"); ----------------------------------- -- onMobSpawn A...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Windurst_Waters/npcs/Mashuu-Ajuu.lua
36
5629
----------------------------------- -- Area: Windurst Waters -- NPC: Mashuu-Ajuu -- Starts and Finished Quest: Reap What You Sow -- Involved in Quest: Making the Grade -- Working 100% -- @zone = 238 -- @pos = 129 -6 167 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/Text...
gpl-3.0
mlody1039/ModernOts
data/npc/scripts/Aruda.lua
1
2083
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisapp...
gpl-3.0
Nefarix/Nefarix.github.io
RMTCore/Encounters/TEST/HousingTest.lua
1
4880
---------------------------------------------------------------------------------------------------- -- Client Lua Script for RaidCore Addon on WildStar Game. -- -- Copyright (C) 2015 RaidCore ---------------------------------------------------------------------------------------------------- --------------------------...
agpl-3.0
dios-game/dios-cocos-samples
src/lua-coin-tree/Resources/src/app/views/message_box_ok_cancel.lua
4
1054
--region *.lua --Date --此文件由[BabeLua]插件自动生成 game.CMessageBoxOkCancel = class("game.CMessageBoxOkCancel", dxm.CDialogUI) local CMessageBoxOkCancel = game.CMessageBoxOkCancel function CMessageBoxOkCancel:ctor() CMessageBoxOkCancel.super.ctor(self) end function CMessageBoxOkCancel:Init(message,callback) s...
mit
AttacqueSuperior/Engine
mods/ra/maps/monster-tank-madness/monster-tank-madness.lua
2
14908
--[[ 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
Kthulupwns/darkstar
scripts/zones/The_Eldieme_Necropolis_[S]/Zone.lua
28
1342
----------------------------------- -- -- Zone: The_Eldieme_Necropolis_[S] (175) -- ----------------------------------- package.loaded["scripts/zones/The_Eldieme_Necropolis_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/The_Eldieme_Necropol...
gpl-3.0
amenophis1er/prosody-modules
mod_default_vcard/mod_default_vcard.lua
32
1344
local datamanager = require "util.datamanager"; local st = require "util.stanza"; local host = module.host; module:hook("user-registered", function(event) local username = event.username; local data = datamanager.load(username, host, "account_details"); local vcard = datamanager.load(username, host, "vcard"); --mo...
mit
letoram/awb
awb_iconcache.lua
1
1784
-- -- Simple LRU cache with a few hard coded paths for icons -- desw and desh are just hints, they can be ignored if -- our local icon storage doesn't maintain different versions -- for different resolutions (or, forcibly downscale on load). -- local spath_cache = {}; local function iconcache_checkpath(n) if (spath_c...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Lower_Jeuno/npcs/Mesukiki.lua
34
1071
---------------------------------- -- Area: Lower Jeuno -- NPC: Mesukiki -- Type: Item Deliverer -- @zone: 245 -- @pos -19.832 -0.101 -39.075 -- ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; require("scripts/zones/Lower_Jeuno/TextIDs"); ---------------...
gpl-3.0