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 |
|---|---|---|---|---|---|
mohammad24/unixx | plugins/anti-flood.lua | 281 | 2422 | local NUM_MSG_MAX = 5 -- Max number of messages per TIME_CHECK seconds
local TIME_CHECK = 5
local function kick_user(user_id, chat_id)
local chat = 'chat#id'..chat_id
local user = 'user#id'..user_id
chat_del_user(chat, user, function (data, success, result)
if success ~= 1 then
local text = 'I can\'t k... | gpl-2.0 |
xdemolish/darkstar | scripts/zones/Quicksand_Caves/npcs/_5s0.lua | 19 | 1270 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Ornate Door
-- Door blocked by Weight system
-- @pos -21 0 -60 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Caves... | gpl-3.0 |
xdemolish/darkstar | scripts/commands/togglegm.lua | 7 | 1942 | ---------------------------------------------------------------------------------------------------
-- func: togglegm
-- auth: ZeDingo
-- desc: Toggles a GMs nameflags/icon.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
... | gpl-3.0 |
YunoHost/SSOwat | lustache/renderer.lua | 2 | 10072 | local Scanner = require "lustache.scanner"
local Context = require "lustache.context"
local error, ipairs, loadstring, pairs, setmetatable, tostring, type =
error, ipairs, loadstring, pairs, setmetatable, tostring, type
local math_floor, math_max, string_find, string_gsub, string_split, string_sub, table_con... | agpl-3.0 |
xdemolish/darkstar | scripts/zones/Zeruhn_Mines/npcs/Zelman.lua | 34 | 1737 | -----------------------------------
-- Area: Zeruhn Mines
-- NPC: Zelman
-- Involved In Quest: Groceries
-----------------------------------
package.loaded["scripts/zones/Zeruhn_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings");
... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Temenos/bcnms/Central_Temenos_Basement.lua | 13 | 1136 | -----------------------------------
-- Area: Temenos
-- Name:
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[C_Temenos_Base]UniqueID",GenerateLimbusKey());
HideArmouryCrates(GetInstanceRegion(1301),TEMENOS); ... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Port_Bastok/npcs/Tilian.lua | 38 | 1380 | -----------------------------------
-- Area: Port Bastok
-- NPC: Tilian
-- Type: Quest NPC
-- @pos -118.460 4.999 -68.090 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/items/nebimonite.lua | 17 | 1408 | -----------------------------------------
-- ID: 4361
-- Item: nebimonite
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity -3
-- Vitality 2
-- Defense % 12.9
-----------------------------------------
require("scripts/globals/status");
-------------------------------... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/items/mushroom_salad.lua | 39 | 1426 | -----------------------------------------
-- ID: 5678
-- Item: Mushroom Salad
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- MP 14% Cap 85
-- Agility 6
-- Mind 6
-- Strength -5
-- Vitality -5
-----------------------------------------
require("scripts/globals/status");
------------------... | gpl-3.0 |
stbuehler/pdns | pdns/recursordist/examples/safesearch.lua | 8 | 2112 | --[[
Both Google and Bing offer ways to enforce the use of their 'safesearch' or 'strict' functionality
for some or all of your users. This script provides a 'handleSafeSearch' function that
implements enforced safe search for Google and Bing.
First, get the google supported domain lists, and format it... | gpl-2.0 |
xdemolish/darkstar | scripts/zones/Mhaura/npcs/Koh_Lenbalalako.lua | 19 | 2170 | -----------------------------------
-- Area: Mhaura
-- NPC: Koh Lenbalalako
-- Type: Standard NPC
-- @pos -64.412 -17 29.213 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mhaura/TextIDs");
require("scripts/g... | gpl-3.0 |
nazrhyn/epgp-tep | libs/LibJSON-1.0/LibStub/LibStub.lua | 184 | 1367 | -- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info
-- LibStub is hereby placed in the Public Domain Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke
local LIBSTUB_MAJOR, LIBSTUB_MINOR = "LibStub", 2 -- NEVER MAKE THIS AN SVN REVI... | bsd-3-clause |
ForgedAddons/HunterAnnouncer | libs/LibStub/LibStub.lua | 184 | 1367 | -- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info
-- LibStub is hereby placed in the Public Domain Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke
local LIBSTUB_MAJOR, LIBSTUB_MINOR = "LibStub", 2 -- NEVER MAKE THIS AN SVN REVI... | apache-2.0 |
Andreas-Kreuz/ak-lua-skripte-fuer-eep | lua/LUA/ak/template/crossing-simple-test.lua | 1 | 2503 | -----------------------------------------------------------------------------------------------------------------------
-- Diese Skript ist eine kleine Vorlage für das Testen von Kreuzungen, wenn Du bereits ein Lua-Skript mit Kreuzungen,
-- Schaltungen und Ampeln hast
--
-- Voraussetzung: Du hast Lua auf der Kommandoze... | mit |
xpol/Jumper | jumper/pathfinder.lua | 7 | 14513 | --- The Pathfinder class
--
-- Implementation of the `pathfinder` class.
local _VERSION = ""
local _RELEASEDATE = ""
if (...) then
-- Dependencies
local _PATH = (...):gsub('%.pathfinder$','')
local Utils = require (_PATH .. '.core.utils')
local Assert = require (_PATH .. '.core.assert')
local Heap ... | mit |
czfshine/UpAndAway | wicker/adjectives/configurable.lua | 2 | 11846 | --[[
Copyright (C) 2013 simplex
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that ... | gpl-2.0 |
ld-test/sailor | test/dev-app/tests/unit/model.lua | 3 | 5227 | local model = require "sailor.model"
local helper = require "tests.helper"
local access = require "sailor.access"
local db = require "sailor.db"
local fixtures = require "tests.fixtures.user" or {}
describe("Testing #UserModel", function()
--helper.blah()
local User = model('user')
local users = User:find_all()... | mit |
xdemolish/darkstar | scripts/globals/items/plate_of_boiled_barnacles.lua | 36 | 1279 | -----------------------------------------
-- ID: 5980
-- Item: Plate of Boiled Barnacles
-- Food Effect: 30 Mins, All Races
-----------------------------------------
-- Charisma -3
-- Defense % 25 Cap 130
-----------------------------------------
require("scripts/globals/status");
------------------------------------... | gpl-3.0 |
Slogo/ScreenShotter | example/main.lua | 1 | 2660 | local screenShotter = require("Screenshotter.capture")
local mx = -1
local my = -1
function love.load()
love.filesystem.setIdentity("screenShotter")
frog = { image = love.graphics.newImage("frogling.png"),
x = 160,
y = 200,
dir = 1 }
end
function love.update(dt)
screenSh... | mit |
yylangchen/Sample_Lua | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/JumpTiles3D.lua | 10 | 1451 |
--------------------------------
-- @module JumpTiles3D
-- @extend TiledGrid3DAction
-- @parent_module cc
--------------------------------
-- amplitude rate
-- @function [parent=#JumpTiles3D] getAmplitudeRate
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
... | mit |
xdemolish/darkstar | scripts/zones/RuLude_Gardens/npcs/Dugga.lua | 34 | 1074 | ----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Dugga
-- Type: Item Deliverer
-- @zone: 243
-- @pos -55.429 5.999 1.27
--
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
require("scripts/zones/RuLude_Gardens/TextIDs");
------------... | gpl-3.0 |
chris5560/openwrt-luci | applications/luci-app-nlbwmon/luasrc/model/cbi/nlbw/config.lua | 11 | 8111 | -- Copyright 2017 Jo-Philipp Wich <jo@mein.io>
-- Licensed to the public under the Apache License 2.0.
local utl = require "luci.util"
local sys = require "luci.sys"
local fs = require "nixio.fs"
local ip = require "luci.ip"
local nw = require "luci.model.network"
local s, m, period, warning, date, days, interval,... | apache-2.0 |
xdemolish/darkstar | scripts/zones/Castle_Oztroja/npcs/_m72.lua | 17 | 2267 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _m72 (Torch Stand)
-- Notes: Opens door _477 when _m72 to _m75 are lit
-- @pos -60 -72 -139 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("... | gpl-3.0 |
yylangchen/Sample_Lua | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ActionManager.lua | 10 | 3634 |
--------------------------------
-- @module ActionManager
-- @extend Ref
-- @parent_module cc
--------------------------------
-- Gets an action given its tag an a target<br>
-- return the Action the with the given tag
-- @function [parent=#ActionManager] getActionByTag
-- @param self
-- @param #int tag
-- @param #... | mit |
xdemolish/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Duke_Scox.lua | 19 | 1250 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Duke Scox
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
function on... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/items/pot-au-feu_+1.lua | 22 | 1573 | -----------------------------------------
-- ID: 5753
-- Item: Pot-au-feu
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength 4
-- Agility 4
-- Intelligence -2
-- Ranged Attk % 15 Cap 35 ??
-- Ranged ACC % 15 Cap 35 ??
-----------------------------------------
require("scripts/global... | gpl-3.0 |
cmotc/awesome | awesomerc.lua | 1 | 22565 | -- @DOC_REQUIRE_SECTION@
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
-- Theme handling library
local beautiful = require("beautiful")
-- Notification library
local naughty = require("naug... | gpl-2.0 |
xdemolish/darkstar | scripts/globals/items/pickled_herring.lua | 35 | 1360 | -----------------------------------------
-- ID: 4490
-- Item: Pickled Herring
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 3
-- Mind -3
-- Attack % 12
-- Ranged ATT % 12
-----------------------------------------
require("scripts/globals/status");
--------------... | gpl-3.0 |
samael65535/quick-ng | cocos/scripting/lua-bindings/auto/api/EaseIn.lua | 7 | 1055 |
--------------------------------
-- @module EaseIn
-- @extend EaseRateAction
-- @parent_module cc
--------------------------------
-- brief Create the action with the inner action and the rate parameter.<br>
-- param action The pointer of the inner action.<br>
-- param rate The value of the rate parameter.<br>
-- ret... | mit |
yylangchen/Sample_Lua | frameworks/cocos2d-x/external/lua/luajit/src/src/jit/bc.lua | 78 | 5606 | ----------------------------------------------------------------------------
-- LuaJIT bytecode listing module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | mit |
czfshine/UpAndAway | wicker/game/common.lua | 5 | 1784 | --[[
Copyright (C) 2013 simplex
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that ... | gpl-2.0 |
xdemolish/darkstar | scripts/zones/Al_Zahbi/npcs/Zwiyaam.lua | 38 | 1024 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Zwiyaam
-- Type: Standard NPC
-- @zone: 48
-- @pos 14.814 -7.667 41.889
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-------------------------... | gpl-3.0 |
hsiaoyi/Melo | cocos2d/cocos/scripting/lua-bindings/auto/api/PageView.lua | 2 | 9227 |
--------------------------------
-- @module PageView
-- @extend ListView
-- @parent_module ccui
--------------------------------
-- brief Set space between page indicator's index nodes.<br>
-- param spaceBetweenIndexNodes Space between nodes in pixel.
-- @function [parent=#PageView] setIndicatorSpaceBetweenIndexNodes... | apache-2.0 |
xdemolish/darkstar | scripts/zones/Garlaige_Citadel_[S]/Zone.lua | 8 | 1297 | -----------------------------------
--
-- 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 |
xdemolish/darkstar | scripts/zones/Spire_of_Vahzl/npcs/_0n3.lua | 3 | 1325 | -----------------------------------
-- Area: Spire_of_vahlz
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Vahzl/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Vahzl/TextIDs");
---------... | gpl-3.0 |
hacker44-h44/mmmmmm | plugins/stats.lua | 458 | 4098 | -- Saves the number of messages from a user
-- Can check the number of messages with !stats
do
local NUM_MSG_MAX = 5
local TIME_CHECK = 4 -- seconds
local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name.... | gpl-2.0 |
lukego/snabb | src/core/main.lua | 7 | 4653 | module(...,package.seeall)
-- Default to not using any Lua code on the filesystem.
-- (Can be overridden with -P argument: see below.)
package.path = ''
local STP = require("lib.lua.StackTracePlus")
local ffi = require("ffi")
local zone = require("jit.zone")
local lib = require("core.lib")
local C = ffi.C
-- Load l... | apache-2.0 |
xdemolish/darkstar | scripts/globals/spells/fire_v.lua | 6 | 1082 | -----------------------------------------
-- Spell: Fire
-- Deals fire damage to an enemy.
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
func... | gpl-3.0 |
LuaDist2/cqueues | regress/130-segfault-on-null-cstack.lua | 3 | 2257 | #!/bin/sh
_=[[
. "${0%%/*}/regress.sh"
runlua "$0" "$@"
RC="$?"
if [ ${RC} -eq 0 ]; then
case ${REGRESS_VERBOSE} in
0)
;;
1)
printf "\n%s: OK\n" "${REGRESS_PROGNAME}"
;;
*)
printf "%s: OK\n" "${REGRESS_PROGNAME}"
;;
esac
fi
exit ${RC}
]]
require"regress".export".*"
--
-- Issue #130 -- Se... | mit |
apppur/server | script/test.lua | 1 | 1131 | package.cpath = "luaclib/?.so"
package.path = "lualib/?.lua"
local protobuf = require "protobuf"
--addr = io.open("../../build/addressbook.pb","rb")
addr = io.open("script/addressbook.pb","rb")
buffer = addr:read "*a"
addr:close()
protobuf.register(buffer)
t = protobuf.decode("google.protobuf.FileDescriptorSet", bu... | mit |
xdemolish/darkstar | scripts/globals/weaponskills/earth_crusher.lua | 1 | 1256 | -----------------------------------
-- Earth Crusher
-- Staff weapon skill
-- Skill Level: 70
-- Delivers an area of effect earth elemental attack. Damage varies with TP.
-- Aligned with the Breeze Gorget & Thunder Gorget.
-- Aligned with the Breeze Belt & Thunder Belt.
-- Element: Earth
-- Modifiers: S... | gpl-3.0 |
hsiaoyi/Melo | cocos2d/cocos/scripting/lua-bindings/auto/api/Scale9Sprite.lua | 3 | 17239 |
--------------------------------
-- @module Scale9Sprite
-- @extend Node,BlendProtocol
-- @parent_module ccui
--------------------------------
--
-- @function [parent=#Scale9Sprite] disableCascadeColor
-- @param self
-- @return Scale9Sprite#Scale9Sprite self (return value: ccui.Scale9Sprite)
--------------... | apache-2.0 |
xdemolish/darkstar | scripts/globals/moglocker.lua | 11 | 3006 | -- See Also:
-- scripts/zones/Aht_Urhgan_Whitegate/npcs/Fubruhn
require("scripts/globals/status")
------------------------------------
-- Mog Locker constants
------------------------------------
MOGLOCKER_START_TS = 1009810800 -- unix timestamp for 2001/12/31 15:00
MOGLOCKER_ALZAHBI_VALID_DAYS = 7
MOGLOCKER_ALLAREAS_V... | gpl-3.0 |
hsiaoyi/Melo | cocos2d/cocos/scripting/lua-bindings/auto/api/ControlColourPicker.lua | 11 | 3144 |
--------------------------------
-- @module ControlColourPicker
-- @extend Control
-- @parent_module cc
--------------------------------
--
-- @function [parent=#ControlColourPicker] hueSliderValueChanged
-- @param self
-- @param #cc.Ref sender
-- @param #int controlEvent
-- @return ControlColourPicker#ControlColou... | apache-2.0 |
Sticklord/oUF_Abu | Aurafilter.lua | 1 | 5940 | --[[--------------------------------------------------------------------
Credits to Phanx for this aura filter.
(Phanx < addons@phanx.net >)
--]]--------------------------------------------------------------------
local _, ns = ...
--[[ Default Aura Filter ]]
local BaseAuras = {
-- Useless
[63501] = 3, -- Argent ... | mit |
xdemolish/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/RongeloutsNDistaud.lua | 16 | 1463 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Rongelouts N Distaud
-- @zone 80
-- @pos 0.067 2 -22
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
require("scripts/glob... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Al_Zahbi/npcs/Chayaya.lua | 34 | 1603 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Chayaya
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/Al_Zahbi/TextIDs");
--------... | gpl-3.0 |
hsiaoyi/Melo | cocos2d/cocos/scripting/lua-bindings/script/framework/init.lua | 35 | 2697 | --[[
Copyright (c) 2011-2015 chukong-incc.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, di... | apache-2.0 |
xdemolish/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Meret.lua | 19 | 5479 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Meret
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
require("scripts/globals/keyitems");
require("scripts/globals/quests");
require("scripts/zones/Tavnazian_Safeho... | gpl-3.0 |
nalidixic/OpenRA | lua/stacktraceplus.lua | 59 | 12006 | -- tables
local _G = _G
local string, io, debug, coroutine = string, io, debug, coroutine
-- functions
local tostring, print, require = tostring, print, require
local next, assert = next, assert
local pcall, type, pairs, ipairs = pcall, type, pairs, ipairs
local error = error
assert(debug, "debug table must be availa... | gpl-3.0 |
m1ndst0rm/Jc2mp-deathmatch | client/DeathMatch.lua | 1 | 15236 | class 'DeathMatch'
function DeathMatch:__init()
--states
self.state = "Inactive"
self.countdownTimer = nil
self.blockedKeys = { Action.ExitVehicle, Action.EnterVehicle, Action.UseItem }
self.allowedKeysInit = { Action.LookDown, Action.LookLeft, Action.LookRight , Action.LookUp}
self.parachuteActions =... | mit |
xdemolish/darkstar | scripts/globals/items/party_egg.lua | 35 | 1260 | -----------------------------------------
-- ID: 4595
-- Item: party_egg
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 25
-- Magic 25
-- Attack 5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-... | gpl-3.0 |
UgCS/vsm-cpp-sdk | doc/doxyrest-config.lua | 1 | 12455 | --------------------------------------------------------------------------------
--
-- This file is part of the Doxyrest toolkit.
--
-- Doxyrest is distributed under the MIT license.
-- For details see accompanying license.txt file,
-- the public copy of which is also available at:
-- http://tibbo.com/downloads/ar... | bsd-3-clause |
xdemolish/darkstar | scripts/zones/Metalworks/npcs/Topuru-Kuperu.lua | 38 | 1044 | -----------------------------------
-- Area: Metalworks
-- NPC: Topuru-Kuperu
-- Type: Standard NPC
-- @zone: 237
-- @pos 28.284 -17.39 42.269
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
require("scrip... | gpl-3.0 |
chris5560/openwrt-luci | build/luadoc/luadoc/util.lua | 32 | 5859 | -------------------------------------------------------------------------------
-- General utilities.
-- @release $Id: util.lua,v 1.16 2008/02/17 06:42:51 jasonsantos Exp $
-------------------------------------------------------------------------------
local posix = require "nixio.fs"
local type, table, string, io, as... | apache-2.0 |
xdemolish/darkstar | scripts/zones/Valley_of_Sorrows/mobs/Aspidochelone.lua | 8 | 1216 | -----------------------------------
-- Area: Valley of Sorrows
-- NPC: Aspidochelone
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize Action
----------------... | gpl-3.0 |
UB12/superbot | plugins/plugins.lua | 72 | 6113 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
lighter-cd/premake4-mobile | tests/test_string.lua | 84 | 1550 | --
-- tests/test_string.lua
-- Automated test suite for the new string functions.
-- Copyright (c) 2008 Jason Perkins and the Premake project
--
T.string = { }
--
-- string.endswith() tests
--
function T.string.endswith_ReturnsTrue_OnMatch()
test.istrue(string.endswith("Abcdef", "def"))
end
function T.strin... | mit |
chris5560/openwrt-luci | protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6rd.lua | 72 | 2039 | -- Copyright 2011-2012 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local ipaddr, peeraddr, ip6addr, tunnelid, username, password
local defaultroute, metric, ttl, mtu
ipaddr = s:taboption("general", Value, "ipaddr",
translate("Local IPv4 ad... | apache-2.0 |
midelic/DIY-Multiprotocol-TX-Module | Lua_scripts/pidDsm.lua | 2 | 3481 | --
-- This telemetry script displays the Flight Log Gain
-- Parameters streamed from the Blade 150S Spektrum AR6335A
-- Flybarless Controller.
-- The script facilitates the setting of the FBL's
-- Gain Parameters including PID for both
-- cyclic and tail. It is similar to the Telemetry Based
-- Text Generator availa... | gpl-3.0 |
snegovick/luasocket | test/ftptest.lua | 26 | 3156 | local socket = require("socket")
local ftp = require("socket.ftp")
local url = require("socket.url")
local ltn12 = require("ltn12")
-- override protection to make sure we see all errors
--socket.protect = function(s) return s end
dofile("testsupport.lua")
local host, port, index_file, index, back, err, ret
local t ... | mit |
hsiaoyi/Melo | cocos2d/tests/lua-tests/src/NewEventDispatcherTest/NewEventDispatcherTest.lua | 2 | 52591 | local itemTagBasic = 1000
local testArray =
{
TouchableSprite = 1,
FixedPriority = 2,
RemoveListenerWhenDispatching = 3,
CustomEvent = 4,
LabelKeyboardEvent = 5,
SpriteAccelerationEvent = 6,
RemoveAndRetainNode = 7,
RemoveListenerAfterAdding = 8,
GlobalZTouchTest = 9,
StopPropag... | apache-2.0 |
xdemolish/darkstar | scripts/zones/Al_Zahbi/Zone.lua | 8 | 1315 | -----------------------------------
--
-- Zone: Al_Zahbi (48)
--
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Al_Zahbi/TextIDs");
-----------------------------------
-- onInitialize
-----------------... | gpl-3.0 |
TITANBOT/REZATITAN | plugins/stats.lua | 236 | 3989 | do
-- Returns a table with `name` and `msgs`
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_prin... | gpl-2.0 |
xdemolish/darkstar | scripts/zones/Carpenters_Landing/npcs/qm8.lua | 11 | 2711 | -----------------------------------
-- Area: Carpenters' Landing
-- NPC: ??? (qm2)
-- Involved in Missions: Calm Before the Storm (CoP 7-4)
-- @pos 120.615 -5.457 -390.133 2
-----------------------------------
package.loaded["scripts/zones/Carpenters_Landing/TextIDs"] = nil;
-----------------------------------
--... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Port_San_dOria/TextIDs.lua | 5 | 4857 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED_1 = 6414; -- You cannot obtain the <<<Possible Special Code: 01>>><<<Possible Special Code: 05>>>#<<<BAD CHAR: 8280>>><<<BAD CHAR: 80>>><<<BAD CHAR: 80>>>.<<<Prompt>>>
ITEM_CANNOT_BE_OBTAINED_2 = 6415; -- You cannot obtain the <<<Possib... | gpl-3.0 |
black123456789/api | methods.lua | 1 | 9443 |
local BASE_URL = 'https://api.telegram.org/bot' .. config.bot_api_key
if not config.bot_api_key then
error('You did not set your bot token in config.lua!')
end
local function sendRequest(url)
local dat, res = HTTPS.request(url)
local tab = JSON.decode(dat)
if res ~= 200 then
if res ~= 403 then api.sendMes... | gpl-2.0 |
samael65535/quick-ng | cocos/scripting/lua-bindings/auto/api/ParallaxNode.lua | 7 | 1998 |
--------------------------------
-- @module ParallaxNode
-- @extend Node
-- @parent_module cc
--------------------------------
-- Adds a child to the container with a local z-order, parallax ratio and position offset.<br>
-- param child A child node.<br>
-- param z Z order for drawing priority.<br>
-- param parallax... | mit |
UB12/superbot | plugins/linkpv.lua | 66 | 30275 | do
local function check_member(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostring(msg.to.id)] = {
... | gpl-2.0 |
ihaveamac/screenshot-merge | romfs/index.lua | 1 | 13092 | --ihaveamac--
-- https://github.com/ihaveamac/screenshot-merge
-- licensed under the MIT license - see https://github.com/ihaveamac/screenshot-merge/blob/master/LICENSE.md
version = "1.4"
dev_version = false
System.setCpuSpeed(NEW_3DS_CLOCK)
Screen.enable3D()
-- input_folder exists for debugging reasons, and the fact ... | mit |
xdemolish/darkstar | scripts/zones/Southern_San_dOria/npcs/Sharzalion.lua | 20 | 3554 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Sharzalion
-- Starts and Finishes Quest: The Crimson Trial
-- Involved in Quest: Peace for the Spirit
-- @zone 230
-- @pos 95 0 111
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
---... | gpl-3.0 |
omidtarh/o_m_i_dbot | plugins/bugzilla.lua | 611 | 3983 | do
local BASE_URL = "https://bugzilla.mozilla.org/rest/"
local function bugzilla_login()
local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password
print("accessing " .. url)
local res,code = https.request( url )
local data = json:decode(res)
return data
... | gpl-2.0 |
xdemolish/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Hagakoff.lua | 34 | 1998 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Hagakoff
-- Standard Merchant NPC
-- Partitionally Implemented
-- Difficult Shop Script needed
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Navukgo_Execution_Chamber/Zone.lua | 8 | 1321 | -----------------------------------
--
-- Zone: Navukgo_Execution_Chamber (64)
--
-----------------------------------
package.loaded["scripts/zones/Navukgo_Execution_Chamber/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Navukgo_Execution_Chamber/TextIDs");
--------------------... | gpl-3.0 |
Javaxio/BadRotations | Libs/!LibDraw/LibDraw.lua | 2 | 13872 | -- LubDraw by docbrown on fh-wow.com
local LibDraw
local sin, cos, atan, atan2, sqrt, rad = math.sin, math.cos, math.atan, math.atan2, math.sqrt, math.rad
local tinsert, tremove = tinsert, tremove
-- patch WorldToScreen for 6.2 / 2.1.2 update
local WorldToScreen_Original = WorldToScreen;
local function WorldToScreen... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Bhaflau_Thickets/mobs/Sea_Puk.lua | 12 | 1223 | -----------------------------------
-- Area: Bhaflau Thickets
-- MOB: Sea Puk
-- Note: Place holder Nis Puk
-----------------------------------
require("/scripts/zones/Bhaflau_Thickets/MobIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob,kil... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/items/prized_angler_stewpot.lua | 36 | 1922 | -----------------------------------------
-- ID: 5613
-- Item: Prized Angler's Stewpot
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10%
-- MP +20
-- Dexterity 4
-- Agility 2
-- Mind 2
-- HP Recovered while healing 9
-- MP Recovered while healing 3
-- Accuracy 1... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Windurst_Woods/npcs/Cayu_Pensharhumi.lua | 38 | 1416 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Cayu Pensharhumi
-- Type: Standard NPC
-- @pos 39.437 -0.91 -40.808 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
requi... | gpl-3.0 |
iesika/iesika-OCPrograms | lib/oke.lua | 1 | 22449 | --[[
@file oke.lua
@brief libray for OpenComputers robot, Over Kill Engine (Carnage Heart)
@author iesika
@date 2017/9/12~
@detail
主にcomponent.robot, component.inventory_controllerのwrapperを提供する
--]]
local oke = {}
local component = require("component")
local computer = require("computer")
local sides =... | mit |
xdemolish/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5f4.lua | 34 | 1106 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Titan's Gate
-- @pos 180 -34 -15 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs")... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/weaponskills/full_swing.lua | 1 | 1249 | -----------------------------------
-- 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
-- Mod... | gpl-3.0 |
Neopallium/lua-handlers | handler/connection.lua | 1 | 13966 | -- Copyright (c) 2010-2011 by Robert G. Jakabosky <bobby@neoawareness.com>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-... | mit |
xdemolish/darkstar | scripts/zones/FeiYin/npcs/qm1.lua | 9 | 1506 | -----------------------------------
-- Area: FeiYin
-- NPC: qm1 (???)
-- Involved In Quest: Pieuje's Decision
-- @pos -55 -16 69 204
-----------------------------------
package.loaded["scripts/zones/FeiYin/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scr... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/items/dish_of_spaghetti_ortolana.lua | 36 | 1406 | -----------------------------------------
-- ID: 5658
-- Item: Dish of Spafhetti Ortolana
-- Food Effect: 30 Mins, All Races
-----------------------------------------
-- Agility 2
-- Vitality 2
-- HP +30% Cap 70
-- StoreTP +6
-----------------------------------------
require("scripts/globals/status");
---------------... | gpl-3.0 |
nazrhyn/epgp-tep | libs/AceGUI-3.0/widgets/AceGUIContainer-DropDownGroup.lua | 65 | 4515 | --[[-----------------------------------------------------------------------------
DropdownGroup Container
Container controlled by a dropdown on the top.
-------------------------------------------------------------------------------]]
local Type, Version = "DropdownGroup", 21
local AceGUI = LibStub and LibStub("AceGUI-... | bsd-3-clause |
yylangchen/Sample_Lua | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/PhysicsJointRatchet.lua | 10 | 1341 |
--------------------------------
-- @module PhysicsJointRatchet
-- @extend PhysicsJoint
-- @parent_module cc
--------------------------------
--
-- @function [parent=#PhysicsJointRatchet] getAngle
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
--
-- @funct... | mit |
xdemolish/darkstar | scripts/zones/Hall_of_Transference/npcs/_0e5.lua | 10 | 1391 | -----------------------------------
-- Area: Hall of Transference
-- NPC: Large Apparatus (Left) - Dem
-- @pos -239 -41 -270 14
-----------------------------------
package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil;
-----------------------------------
require("/scripts/globals/missions");
req... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Windurst_Waters/npcs/Amagusa-Chigurusa.lua | 38 | 1418 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Amagusa-Chigurusa
-- Type: Standard NPC
-- @pos -28.746 -4.5 61.954 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
req... | gpl-3.0 |
PlexChat/premake-core | tests/actions/make/cpp/test_make_pch.lua | 9 | 2555 | --
-- tests/actions/make/cpp/test_make_pch.lua
-- Validate the setup for precompiled headers in makefiles.
-- Copyright (c) 2010-2013 Jason Perkins and the Premake project
--
local suite = test.declare("make_pch")
local make = premake.make
local project = premake.project
--
-- Setup and teardown
--
local wks, ... | bsd-3-clause |
hsiaoyi/Melo | cocos2d/cocos/scripting/lua-bindings/auto/api/ParticleSystemQuad.lua | 8 | 2822 |
--------------------------------
-- @module ParticleSystemQuad
-- @extend ParticleSystem
-- @parent_module cc
--------------------------------
-- Sets a new SpriteFrame as particle.<br>
-- WARNING: this method is experimental. Use setTextureWithRect instead.<br>
-- param spriteFrame A given sprite frame as particle ... | apache-2.0 |
xdemolish/darkstar | scripts/globals/spells/gravity_ii.lua | 2 | 1201 | -----------------------------------------
-- Spell: Gravity II
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,s... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Windurst_Waters/npcs/Kyume-Romeh.lua | 17 | 3225 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Kyume-Romeh
-- Involved In Quest: Making Headlines, Hat in Hand
-- @pos -58 -4 23 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/... | gpl-3.0 |
alominateam/bot | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
ln-zookeeper/wesnoth | data/lua/wml/test_condition.lua | 2 | 1787 | local helper = wesnoth.require "helper"
-- This function returns true if it managed to explain the failure
local function explain(current_cfg, expect, logger)
for i,t in ipairs(current_cfg) do
local tag, this_cfg = t[1], t[2]
-- Some special cases
if tag == "or" or tag == "and" then
if explain(this_cfg, expe... | gpl-2.0 |
xdemolish/darkstar | scripts/globals/mobskills/Dragon_Breath.lua | 6 | 1424 | ---------------------------------------------
-- 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 |
freem/ultralight | BGAnimations/ScreenNetPlayerOptions overlay.lua | 2 | 1120 | local t = Def.ActorFrame{
Def.Quad{
Name="TopLine";
InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y*0.3;addy,-SCREEN_CENTER_Y;zoomto,SCREEN_WIDTH,2;diffuseleftedge,HSV(192,1,0.8););
OnCommand=cmd(linear,0.075;addy,SCREEN_CENTER_Y);
OffCommand=cmd(linear,0.075;addy,-SCREEN_CENTER_Y);
CancelCommand=cmd(lin... | unlicense |
xdemolish/darkstar | scripts/zones/Beaucedine_Glacier/mobs/Tundra_Tiger.lua | 10 | 1427 | -----------------------------------
-- Area: Beaucedine Glacier
-- MOB: Tundra Tiger
-- Note: PH for Nue, Kirata
-----------------------------------
require("/scripts/globals/fieldsofvalor");
require("/scripts/zones/Beaucedine_Glacier/MobIDs");
-----------------------------------
-- onMobDeath
--... | gpl-3.0 |
ln-zookeeper/wesnoth | data/campaigns/Eastern_Invasion/lua/bandits.lua | 2 | 3617 | -- Used for the bandit villages in S5. Much more specific than the village spawn implementations elsewhere,
-- since there are a lot more specific things needed (mostly the boss mechanics and village spreading)
local helper = wesnoth.require "helper"
local wml_actions = wesnoth.wml_actions
local _ = wesnoth.textdomain... | gpl-2.0 |
xdemolish/darkstar | scripts/zones/Inner_Horutoto_Ruins/npcs/_5c0_.lua | 36 | 1765 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Mahogany Door
-- Involved In Quest: Making Headlines
-- Working 100%
-- Unable to find EventID for Making Headlines quest. Used dialog ID instead.
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/Te... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Lower_Jeuno/npcs/_6t2.lua | 13 | 3963 | -----------------------------------
-- Area: Lower Jeuno
-- Door: Merchant's House
-- Starts & Finishes Quest: Save My Son
-- Optional Involvement in Quest: Chocobo's Wounds, Path of the Beastmaster
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
package.loaded["scripts... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.