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 |
|---|---|---|---|---|---|
umbrellaTG/sphero | plugins/invite.lua | 393 | 1225 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
kitala1/darkstar | scripts/commands/takegil.lua | 26 | 1171 | ---------------------------------------------------------------------------------------------------
-- func: @takegil <amount> <player>
-- desc: Removes the amount of gil from the given player.
---------------------------------------------------------------------------------------------------
cmdprops =
{
p... | gpl-3.0 |
kaustavha/rackspace-monitoring-agent | check/raxxen.lua | 3 | 6764 | --[[
Copyright 2015 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | apache-2.0 |
kitala1/darkstar | scripts/zones/Newton_Movalpolos/npcs/Mining_Point.lua | 29 | 1108 | -----------------------------------
-- Area: Newton Movalpolos
-- NPC: Mining Point
-----------------------------------
package.loaded["scripts/zones/Newton_Movalpolos/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/mining");
require("scripts/zones/Newton_Movalpolos/TextIDs")... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Sharin-Garin.lua | 12 | 1896 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Sharin-Garin
-- Type: Adventurer's Assistant
-- @pos 122.658 -1.315 33.001 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/b... | gpl-3.0 |
paulosalvatore/maruim_server | data/lib/itens.lua | 1 | 10127 | valorItens = {
[1678] = {20, 0},
[1679] = {20, 0},
[1680] = {20, 0},
[1681] = {20, 0},
[1682] = {20, 0},
[1683] = {20, 0},
[1684] = {20, 0},
[1685] = {30, 0},
[1686] = {25, 0},
[1687] = {25, 0},
[1688] = {25, 0},
[1689] = {25, 0},
[1690] = {25, 0},
[1691] = {25, 0},
[1692] = {25, 0},
[1693] = {25, 0},
... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Lower_Jeuno/npcs/Zauko.lua | 17 | 5098 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Zauko
-- Involved in Quests: Save the Clock Tower, Community Service
-- @zone 245
-- @pos -3 0 11
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
package.loaded["scripts/globals/settings"] = nil;
--... | gpl-3.0 |
hanxi/cocos2d-x-v3.1 | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Tween.lua | 6 | 1308 |
--------------------------------
-- @module Tween
-- @extend ProcessBase
--------------------------------
-- @function [parent=#Tween] getAnimation
-- @param self
-- @return ArmatureAnimation#ArmatureAnimation ret (return value: ccs.ArmatureAnimation)
--------------------------------
-- @function [parent=#T... | mit |
apletnev/koreader | spec/unit/translator_spec.lua | 3 | 1341 | local dutch_wikipedia_text = "Wikipedia is een meertalige encyclopedie, waarvan de inhoud vrij beschikbaar is. Iedereen kan hier kennis toevoegen!"
local Translator
describe("Translator module", function()
setup(function()
require("commonrequire")
Translator = require("ui/translator")
end)
... | agpl-3.0 |
kitala1/darkstar | scripts/globals/spells/advancing_march.lua | 13 | 1472 | -----------------------------------------
-- Spell: Advancing March
-- Gives party members Haste
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(cast... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Bastok_Markets/npcs/Arawn.lua | 34 | 2642 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Arawn
-- Starts & Finishes Quest: Stamp Hunt
-- @pos -121.492 -4.000 -123.923 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Lower_Jeuno/npcs/Taza.lua | 36 | 1722 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Taza
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
-----------------------------------
--... | gpl-3.0 |
kitala1/darkstar | scripts/globals/weaponskills/fell_cleave.lua | 30 | 1392 | -----------------------------------
-- Fell Cleave
-- Great Axe weapon skill
-- Skill Level: 300
-- Delivers an area attack. Radius varies with TP.
-- Aligned with the Breeze Gorget, Thunder Gorget & Soil Gorget.
-- Aligned with the Breeze Belt, Thunder Belt & Soil Belt.
-- Element: None
-- Modifiers: STR: 60%
... | gpl-3.0 |
hanxi/cocos2d-x-v3.1 | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/AtlasNode.lua | 3 | 2256 |
--------------------------------
-- @module AtlasNode
-- @extend Node,TextureProtocol
--------------------------------
-- @function [parent=#AtlasNode] updateAtlasValues
-- @param self
--------------------------------
-- @function [parent=#AtlasNode] getTexture
-- @param self
-- @return Texture2D#Texture2D... | mit |
crabman77/minetest-minetestforfun-server | mods/homedecor_modpack/building_blocks/init.lua | 7 | 16634 | minetest.register_node("building_blocks:Adobe", {
tiles = {"building_blocks_Adobe.png"},
description = "Adobe",
is_ground_content = true,
groups = {crumbly=3},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("building_blocks:Roofing", {
tiles = {"building_blocks_Roofing.png"},
is_ground_c... | unlicense |
kitala1/darkstar | scripts/globals/weaponskills/quietus.lua | 30 | 1643 | -----------------------------------
-- Quietus
-- Scythe weapon skill
-- Skill Level: N/A
-- Delivers a triple damage attack that ignores target's defense. Amount ignored varies with TP. Redemption: Aftermath.
-- Available only when equipped with Redemption (85)/(90)/(95)/(99) or Penitence +1/+2/+3/Umiliati.
-- A... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Temenos/mobs/Fire_Elemental.lua | 17 | 1657 | -----------------------------------
-- Area: Temenos E T
-- NPC: Fire_Elemental
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------------------... | gpl-3.0 |
d-o/LUA-LIB | K400Examples/external.lua | 2 | 6339 | #!/usr/bin/env lua
-------------------------------------------------------------------------------
-- external
--
-- Example of how to set up sockets for remote connections to this device
-- To see things operating, telnet to port 1111 or 1112.
---------------------------------------------------------------------------... | gpl-3.0 |
LaurieJohnson/iguana-web-apps | shared/testui.lua | 2 | 17566 | local ui = {}
function ui.main()
return ui.template("/unit", ui.ResourceTable['/unit/main'])
end
function ui.template(Name, Content)
Name = Name:gsub("/", "_")
if iguana.isTest() then
for Key, Val in pairs(ui.ResourceTable) do
Key = Key:gsub("/", "_")
local File = io.open(Key, 'w+')
... | mit |
kitala1/darkstar | scripts/zones/Dangruf_Wadi/TextIDs.lua | 5 | 1316 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6538; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6541; -- Obtained: <item>.
GIL_OBTAINED = 6542; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6544; -- Obtained... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Outer_Horutoto_Ruins/npcs/_5ef.lua | 19 | 3309 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Ancient Magical Gizmo #2 (F out of E, F, G, H, I, J)
-- Involved In Mission: The Heart of the Matter
-----------------------------------
package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/winterflower.lua | 36 | 1319 | -----------------------------------------
-- ID: 5907
-- Item: Winterflower
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility +3
-- Intelligence +5
-- Charisma -5
-- Resist Virus +20
-----------------------------------------
require("scripts/globals/status");
-----------------------... | gpl-3.0 |
Roblox/Core-Scripts | CoreScriptsRoot/Modules/TenFootInterface.lua | 1 | 11203 | --[[
Filename: TenFootInterface.lua
Written by: jeditkacheff
Version 1.0
Description: Setups up some special UI for ROBLOX TV gaming
--]]
-------------- CONSTANTS --------------
local HEALTH_GREEN_COLOR = Color3.new(27/255, 252/255, 107/255)
local DISPLAY_POS_INIT_INSET = 0
local DISPLAY_ITEM_OFFSET = 4
local F... | apache-2.0 |
Roblox/Core-Scripts | CoreScriptsRoot/Modules/DevConsole/Components/Memory/ServerMemoryData.lua | 1 | 6048 | local Signal = require(script.Parent.Parent.Parent.Signal)
local CircularBuffer = require(script.Parent.Parent.Parent.CircularBuffer)
local Constants = require(script.Parent.Parent.Parent.Constants)
local HEADER_NAMES = Constants.MemoryFormatting.ChartHeaderNames
local MAX_DATASET_COUNT = tonumber(settings():GetFVaria... | apache-2.0 |
kitala1/darkstar | scripts/zones/Windurst_Waters/npcs/Maysoon.lua | 17 | 2167 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Maysoon
-- Starts and Finishes Quest: Hoist the Jelly, Roger
-- Involved in Quests: Cook's Pride
-- @zone 238
-- @pos -105 -2 69
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
package.loade... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Windurst_Waters/npcs/Yung_Yaam.lua | 36 | 1727 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Yung Yaam
-- Involved In Quest: Wondering Minstrel
-- Working 100%
-- @zone = 238
-- @pos = -63 -4 27
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
... | gpl-3.0 |
mahdi1062/avira | plugins/kickall.lua | 125 | 1670 | 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, ok_cb, true)
end
local function returnids(cb_extra, success, result)
local receiver = cb_extra.receiver
local chat_id = result.id
local chatname = result.print_name
loc... | gpl-2.0 |
hanxi/cocos2d-x-v3.1 | frameworks/cocos2d-x/cocos/scripting/lua-bindings/script/json.lua | 60 | 15380 | -----------------------------------------------------------------------------
-- JSON4Lua: JSON encoding / decoding support for the Lua language.
-- json Module.
-- Author: Craig Mason-Jones
-- Homepage: http://json.luaforge.net/
-- Version: 0.9.40
-- This module is released under the MIT License (MIT).
-- Please see L... | mit |
kidaa/MoonGen | test/example-scripts/moongen.lua | 6 | 1939 | local mg = {}
local proc = {}
proc.__index = proc
function mg.start(script, ...)
local str = ""
for i = 1, select("#", ...) do
-- TODO: escape arguments properly
str = str .. " \"" .. select(i, ...) .. "\""
end
local obj = setmetatable({}, proc)
obj.proc = io.popen("cd ../.. && ./build/MoonGen " .. script ..... | mit |
kitala1/darkstar | scripts/zones/Port_Bastok/npcs/Melloa.lua | 36 | 1613 | -----------------------------------
-- Area: Port Bastok
-- NPC: Melloa
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/zones/Port_Bastok/TextIDs");
... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Northern_San_dOria/npcs/Durogg.lua | 31 | 2754 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Durogg
-- Type: Past Event Watcher
-- @zone: 231
-- @pos: 15 0 -18
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs");
require("scripts/g... | gpl-3.0 |
kitala1/darkstar | scripts/globals/spells/learned_etude.lua | 13 | 1758 | -----------------------------------------
-- Spell: Learned Etude
-- Static INT Boost, BRD 26
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMa... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Rabao/npcs/Maryoh_Comyujah.lua | 19 | 2011 | -----------------------------------
-- Area: Rabao
-- NPC: Maryoh Comyujah
-- Involved in Mission: The Mithra and the Crystal (Zilart 12)
-- @pos 0 8 73 247
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/ke... | gpl-3.0 |
nicodinh/cuberite | MCServer/Plugins/Debuggers/Debuggers.lua | 9 | 56552 |
-- Global variables
g_DropSpensersToActivate = {}; -- A list of dispensers and droppers (as {World, X, Y Z} quadruplets) that are to be activated every tick
g_HungerReportTick = 10;
g_ShowFoodStats = false; -- When true, each player's food stats are sent to them every 10 ticks
function Initialize(a_Plugin)
--... | apache-2.0 |
apletnev/koreader | frontend/ui/elements/screensaver_menu.lua | 3 | 7248 | local Screensaver = require("ui/screensaver")
local _ = require("gettext")
local function screensaverType() return G_reader_settings:readSetting("screensaver_type") end
local function screensaverDelay() return G_reader_settings:readSetting("screensaver_delay") end
local function lastFile()
local lfs = require("lib... | agpl-3.0 |
kitala1/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Loillie.lua | 16 | 1449 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Loillie
-- @zone 80
-- @pos 78 -8 -23
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
require("scripts/globals/quests");
... | gpl-3.0 |
samgh1230/likwid | src/applications/likwid-pin.lua | 7 | 9275 | #!<PREFIX>/bin/likwid-lua
--[[
* =======================================================================================
*
* Filename: likwid-pin.lua
*
* Description: An application to pin a program including threads
*
* Version: <VERSION>
* Released: <DATE>
*
* Author: Thomas ... | gpl-3.0 |
Mechaniston/FibaroHC_mechHomeBcfg | BR_buttonBed (209, maxInst = 3).lua | 1 | 5980 | --[[
%% properties
206 sceneActivation
%% globals
--]]
-- CONSTS --
local buttonID = 206;
local lightBigRoomGenDevID = 40;
local lightBRLeftID = 41;
local lightBRCenterID = 42;
local lightBRRightID = 43;
local lightBRBedID = 44;
local bedIsDownID = 205;
local vdLightBRID = 195;
local vdLightB... | mit |
kitala1/darkstar | scripts/zones/Southern_San_dOria/npcs/Cahaurme.lua | 17 | 1922 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Cahaurme
-- Involved in Quest: A Knight's Test, Lost Chick
-- @zone 230
-- @pos 55.749 -8.601 -29.354
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
--------------------------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Oldton_Movalpolos/npcs/Tarnotik.lua | 19 | 1742 | -----------------------------------
-- Area: Oldton Movalpolos
-- NPC: Tarnotik
-- Type: Standard NPC
-- @pos 160.896 10.999 -55.659 11
-----------------------------------
package.loaded["scripts/zones/Oldton_Movalpolos/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Oldton_Movalpolos/... | gpl-3.0 |
tetoali605/THETETOO_A7A | plugins/addreplay.lua | 7 | 3428 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY tetoo ▀▄ ▄▀
▀▄ ▄▀ BY nmore (@l_l_lo) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY l_l_ll ▀▄ ▄▀
▀▄ ▄▀ broadcast : اضـف رد ▀▄ ▄▀
▀▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀... | gpl-2.0 |
yemahuang/OpenBird | cocos2d/cocos/scripting/lua/script/Opengl.lua | 49 | 6870 | require "OpenglConstants"
gl = gl or {}
--Create functions
function gl.createTexture()
local retTable = {}
retTable.texture_id = gl._createTexture()
return retTable
end
function gl.createBuffer()
local retTable = {}
retTable.buffer_id = gl._createBuffer()
return retTable
end
function gl.cre... | mit |
jjimenezg93/ai-state_machines | moai/3rdparty/luasocket-2.0.2/src/smtp.lua | 142 | 7961 | -----------------------------------------------------------------------------
-- SMTP client support for the Lua language.
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: smtp.lua,v 1.46 2007/03/12 04:08:40 diego Exp $
-----------------------------------------------------------------------------
---------... | mit |
arekinath/loglunatic | lunatic/reactor.lua | 1 | 8373 | --[[
loglunatic -- logstash for lunatics
Copyright (c) 2013, Alex Wilson, the University of Queensland
Distributed under a BSD license -- see the LICENSE file in the root of the distribution.
]]
local exports = {}
local ffi = require("ffi")
local bit = require("bit")
local POLLIN = 0x01
local POLLOUT = 0x04
ffi.cde... | bsd-3-clause |
king98tm/mohammadking98 | plugins/msg-checks.lua | 1 | 11921 |
local TIME_CHECK = 2
local function pre_process(msg)
local data = load_data(_config.moderation.data)
local chat = msg.to.id
local user = msg.from.id
local is_channel = msg.to.type == "channel"
local is_chat = msg.to.type == "chat"
local auto_leave = 'auto_leave_bot'
local hash = "gp_lang:"..chat
local lang = redis:get... | gpl-3.0 |
mohammads15/new-super | plugins/owners.lua | 194 | 23755 | 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)]['settings'... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Temenos/mobs/Skadi.lua | 17 | 1191 | -----------------------------------
-- Area: Temenos N T
-- NPC: Skadi
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-------------------------------... | gpl-3.0 |
cjkoenig/packages | net/luci-app-sqm/files/sqm-cbi.lua | 7 | 8239 | --[[
LuCI - Lua Configuration Interface
Copyright 2014 Steven Barth <steven@midlink.org>
Copyright 2014 Dave Taht <dave.taht@bufferbloat.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
http:... | gpl-2.0 |
darrenatdesignory/CG | scripts/scrollView.lua | 1 | 9034 | -- scrollView.lua
--
-- Version 1.0
---module(..., package.seeall)
-- set some global values for width and height of the screen
local screenW, screenH = display.contentWidth, display.contentHeight
local viewableScreenW, viewableScreenH = display.viewableContentWidth, display.viewableContentHeight
local ... | mit |
crabman77/minetest-minetestforfun-server | mods/plantlife_modpack/ferns/crafting.lua | 7 | 3927 | -----------------------------------------------------------------------------------------------
-- Ferns - Crafting 0.0.5
-----------------------------------------------------------------------------------------------
-- (by Mossmanikin)
-- License (everything): WTFPL
---------------------------------------------... | unlicense |
aminkinghakerlifee/wolf-team | plugins/azan.lua | 3 | 3158 | --[[
#
# @GPMOD
# @Dragon_Born
#
]]
do
function run_bash(str)
local cmd = io.popen(str)
local result = cmd:read('*all')
return result
end
local api_key = nil
local base_api = "https://maps.googleapis.com/maps/api"
function get_latlong(area)
local api = base_api .. "/geocode/json?"
loc... | gpl-3.0 |
nicodinh/cuberite | lib/tolua++/src/bin/lua/typedef.lua | 44 | 1696 | -- tolua: typedef class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance, support, updates,
-- enhancements... | apache-2.0 |
AliKhodadad/wildman | plugins/anti_spam.lua | 923 | 3750 |
--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 |
kitala1/darkstar | scripts/globals/items/piece_of_witch_nougat.lua | 35 | 1290 | -----------------------------------------
-- ID: 5645
-- Item: piece_of_witch_nougat
-- Food Effect: 1hour, All Races
-----------------------------------------
-- HP 50
-- Intelligence 3
-- Agility -3
-----------------------------------------
require("scripts/globals/status");
----------------------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Western_Adoulin/Zone.lua | 33 | 1246 | -----------------------------------
--
-- Zone: Western Adoulin
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Western_Adoulin/TextIDs"] = nil;
require("scripts/zones/Western_Adoulin/TextIDs");
-----------------------------------
-- onInitialize... | gpl-3.0 |
ZenityRTS/Zenity | libs/lcs/quickTour.lua | 1 | 8606 | -- Copyright (c) 2012 Roland Yonaba
--[[
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications... | gpl-2.0 |
crabman77/minetest-minetestforfun-server | mods/broomstick/init.lua | 9 | 3960 | local broomstick_time = 120 -- Seconds
local broomstick_mana = 190
local broomstick_actual_users = {}
local had_fly_privilege = {}
local privs = {}
-- broomstick file
users_file = minetest.get_worldpath() .. "/broomstick_users.txt"
--load broomstick file
local file = io.open(users_file, "r")
if file then
had_fly_pri... | unlicense |
kitala1/darkstar | scripts/zones/Aht_Urhgan_Whitegate/TextIDs.lua | 5 | 4950 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 217; -- You cannot obtain the item. Come back after sorting your inventory.?Prompt?
ITEM_CANNOT_BE_OBTAINEDX = 218; -- You cannot obtain the ?Possible Special Code: 01??Possible Special Code: 05?#?BAD CHAR: 8280??BAD CHAR: 80??BAD CHAR: 8... | gpl-3.0 |
aidenkeating/mongrel2 | examples/bbs/bbs.lua | 96 | 4552 | local strict = require 'strict'
local m2 = require 'mongrel2'
local ui = require 'ui'
local engine = require 'engine'
local db = require 'db'
local function new_user(conn, req, user, password)
req = ui.prompt(conn, req, 'new_user')
while req.data.msg ~= password do
req = ui.prompt(conn, req, 'repeat_p... | bsd-3-clause |
hanxi/cocos2d-x-v3.1 | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ActionCamera.lua | 3 | 1664 |
--------------------------------
-- @module ActionCamera
-- @extend ActionInterval
--------------------------------
-- overload function: setEye(float, float, float)
--
-- overload function: setEye(cc.Vec3)
--
-- @function [parent=#ActionCamera] setEye
-- @param self
-- @param #float float
-- @par... | mit |
apletnev/koreader | spec/unit/background_task_plugin_spec.lua | 3 | 4469 | describe("BackgroundTaskPlugin", function()
require("commonrequire")
local BackgroundTaskPlugin = require("ui/plugin/background_task_plugin")
local MockTime = require("mock_time")
local UIManager = require("ui/uimanager")
setup(function()
MockTime:install()
local Device = require("d... | agpl-3.0 |
kitala1/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Amajal.lua | 33 | 1032 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Amajal
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
-----------... | gpl-3.0 |
tynaut/EggstraClucks | objects/eggstra/tamingpost/tamingpost.lua | 2 | 1276 | function main()
if entity.id() then
local container = entity.id()
local item = world.containerItemAt(container, 0)
if canTame(item) then
if storage.incubationTime == nil then storage.incubationTime = os.time() end
--TODO update time to config
local hatchTime = 1200
local de... | apache-2.0 |
kitala1/darkstar | scripts/zones/Northern_San_dOria/npcs/Emeige_AMAN.lua | 65 | 1182 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Emeige A.M.A.N.
-- Type: Mentor Recruiter
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
... | gpl-3.0 |
cjkoenig/packages | net/mwan3-luci/files/usr/lib/lua/luci/controller/mwan3.lua | 36 | 10850 | module("luci.controller.mwan3", package.seeall)
sys = require "luci.sys"
ut = require "luci.util"
function index()
if not nixio.fs.access("/etc/config/mwan3") then
return
end
entry({"admin", "network", "mwan"},
alias("admin", "network", "mwan", "overview"),
_("Load Balancing"), 600)
entry({"admin", "netwo... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Bastok-Jeuno_Airship/npcs/Michele.lua | 12 | 1994 | -----------------------------------
-- Area: Bastok-Jeuno Airship
-- NPC: Michele
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Bastok-Jeuno_Airship/TextIDs"] = nil;
require("scripts/zones/Bastok-Jeuno_Airship/TextIDs");
-----------------------------------
-- onTrade Action
... | gpl-3.0 |
fqrouter/luci | modules/niu/luasrc/model/cbi/niu/traffic/routes1.lua | 48 | 1869 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
m =... | apache-2.0 |
ithoq/afrimesh | villagebus/lua/common.lua | 5 | 3004 |
--[[ includes ]]------------------------------------------------------------
require "socket"
http = require "socket.http"
ltn12 = require("ltn12")
--[[ helpers ]]-------------------------------------------------------------
require "urlcode"
function getcgi(name)
local value = os.getenv(name)
return value and v... | bsd-3-clause |
kitala1/darkstar | scripts/zones/Qufim_Island/npcs/Sasa_IM.lua | 28 | 3140 | -----------------------------------
-- Area: Qufim Island
-- NPC: Sasa, I.M.
-- Type: Outpost Conquest Guards
-- @pos -245.366 -20.344 299.502 126
-------------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/c... | gpl-3.0 |
Eternym/psychoactive2 | data/actions/scripts/other/potions.lua | 11 | 5877 | local ultimateHealthPot = 8473
local greatHealthPot = 7591
local greatManaPot = 7590
local greatSpiritPot = 8472
local strongHealthPot = 7588
local strongManaPot = 7589
local healthPot = 7618
local manaPot = 7620
local smallHealthPot = 8704
local antidotePot = 8474
local greatEmptyPot = 7635
local strongEmptyPot = 7634... | gpl-2.0 |
kitala1/darkstar | scripts/zones/The_Sanctuary_of_ZiTah/npcs/Calliope_IM.lua | 30 | 3070 | -----------------------------------
-- Area: The Sanctuary of Zi'Tah
-- NPC: Calliope, I.M.
-- Outpost Conquest Guards
-- @pos -40.079 -0.642 -148.785 121
-----------------------------------
package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil;
-----------------------------------
require("scripts/glob... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Northern_San_dOria/npcs/Beriphaule.lua | 21 | 1946 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Beriphaule
-- Type: Allegiance Changer NPC
-- @pos -247.422 7.000 28.992 231
-----------------------------------
require("scripts/globals/conquest");
-----------------------------------
-- onTrade Action
-----------------------------------
fun... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Windurst_Waters/npcs/Upih_Khachla.lua | 30 | 2226 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Upih Khachla
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/events/harvest_festivals")
require("scripts/globals/shop");
require("scripts/globals/conquest");
packag... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/serving_of_newt_flambe.lua | 35 | 1565 | -----------------------------------------
-- ID: 4329
-- Item: serving_of_newt_flambe
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Dexterity 4
-- Mind -3
-- Attack % 18
-- Attack Cap 65
-- Virus Resist 5
-- Curse Resist 5
-----------------------------------------
require(... | gpl-3.0 |
amiraga/amirbot-supergroups | plugins/plugins.lua | 6 | 4678 | do
to_id = ""
-- 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 plu... | gpl-2.0 |
paulosalvatore/maruim_server | data/creaturescripts/scripts/offlinetraining.lua | 17 | 2368 | function onLogin(player)
local lastLogout = player:getLastLogout()
local offlineTime = lastLogout ~= 0 and math.min(os.time() - lastLogout, 86400 * 21) or 0
local offlineTrainingSkill = player:getOfflineTrainingSkill()
if offlineTrainingSkill == -1 then
player:addOfflineTrainingTime(offlineTime * 1000)
return t... | gpl-2.0 |
ZenityRTS/Zenity | libs/chiliui/luaui/chili/chili/handlers/skinhandler.lua | 2 | 4943 | --//=============================================================================
--// Theme
SkinHandler = {}
--//=============================================================================
--// load shared skin utils
local SkinUtilsEnv = {}
setmetatable(SkinUtilsEnv,{__index = getfenv()})
VFS.Include(CH... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Quicksand_Caves/npcs/_5s9.lua | 19 | 1272 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Ornate Door
-- Door blocked by Weight system
-- @pos -345 0 820 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Cave... | gpl-3.0 |
kitala1/darkstar | scripts/commands/changesjob.lua | 26 | 1952 | ---------------------------------------------------------------------------------------------------
-- func: changesjob
-- desc: Changes the players current subjob.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameter... | gpl-3.0 |
hanxi/cocos2d-x-v3.1 | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/DisplayManager.lua | 3 | 3590 |
--------------------------------
-- @module DisplayManager
-- @extend Ref
--------------------------------
-- @function [parent=#DisplayManager] getDisplayRenderNode
-- @param self
-- @return Node#Node ret (return value: cc.Node)
--------------------------------
-- @function [parent=#DisplayManager] getAnch... | mit |
kitala1/darkstar | scripts/globals/mobskills/Optic_Induration.lua | 7 | 1334 | ---------------------------------------------
-- Optic Induration
--
-- Description: Charges up a powerful, calcifying beam directed at targets in a fan-shaped area of effect. Additional effect: Petrification & enmity reset
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Unknown cone... | gpl-3.0 |
fastmailops/prosody | util/caps.lua | 5 | 2063 | -- 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 base64 = require "util.encodings".base64.encode;
local sha1 = require "util.hashes".sha1;
local t_... | mit |
paulosalvatore/maruim_server | data/modules/scripts/gamestore/gamestore.lua | 1 | 2364 | -- Parser
dofile('data/modules/scripts/gamestore/init.lua')
-- Config
GameStore.Categories = {
-- You can use default key [...] or ["..."] or name (=)
--[[ example = ]] { name = "Examples",
state = GameStore.States.STATE_NEW,
icons = {"Category_Mounts.png"},
offers = {
-- Stackable Item Example : thingId = i... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Grand_Palace_of_HuXzoi/mobs/Ix_ghrah.lua | 13 | 1306 | -----------------------------------
-- Area: Grand Palace of HuXzoi
-- NPC: Ix_ghrah
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/missions");
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Tavnazian_Safehold/npcs/_0q1.lua | 17 | 1896 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Sewer Entrance
-- @pos 28 -12 44 26
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/m... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/aspir_knife.lua | 15 | 1103 | -----------------------------------------
-- ID: 16509
-- Item: Aspir Knife
-- Additional effect: MP Drain
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-----------------------------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Windurst_Walls/npcs/Ambrosius.lua | 36 | 4204 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Ambrosius
--
-- Quest NPC for "The Postman Always KOs Twice"
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("s... | gpl-3.0 |
kitala1/darkstar | scripts/zones/West_Sarutabaruta/npcs/Naguipeillont_RK.lua | 30 | 3074 | -----------------------------------
-- Area: West Sarutabaruta
-- NPC: Naguipeillont, R.K.
-- Type: Outpost Conquest Guards
-- @pos -11.322 -13.459 317.696 115
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta/TextIDs"] = nil;
-----------------------------------
require("scripts/glob... | gpl-3.0 |
CTPST/resizebot | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
king98tm/mohammadking98 | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-3.0 |
shahabsaf1/uzz-bot | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Yughott_Grotto/npcs/Treasure_Chest.lua | 12 | 2565 | -----------------------------------
-- Area: Yughott Grotto
-- NPC: Treasure Chest
-- @zone 142
-----------------------------------
package.loaded["scripts/zones/Yughott_Grotto/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/treasure");
require("scrip... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Port_Bastok/Zone.lua | 28 | 3713 | -----------------------------------
--
-- Zone: Port_Bastok (236)
--
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/zone");
require("scripts/globals/settings");
require("scripts/globals/missions");
r... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Waughroon_Shrine/bcnms/on_my_way.lua | 13 | 1878 | -----------------------------------
-- Area: Waughroon Shrine
-- Name: Mission Rank 7-2 (Bastok)
-- @pos -345 104 -260 144
-----------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/global... | gpl-3.0 |
Tigerism/tigerbot | resources/translations/en.lua | 1 | 3537 | return {
bots = "Bots",
ping = {
ping = "pinging....",
pong = "pong ``{{arg1}}ms``",
description = "shows latency information"
},
help = {
embedTitle = "Help for Tiger 2.0",
embedDescription = "Hello! I'm Tiger, a bot written in Lua with the Discordia library.\nUs... | mit |
mickael9/cut-and-paste | prototypes/items.lua | 1 | 3082 | data:extend{
{
-- This item is used to select a zone to cut & paste
type = "selection-tool",
name = mod.tools.cut,
icon = mod.dir .. "/graphics/icons/cut-tool.png",
flags = {"goes-to-quickbar"},
subgroup = "tool",
order = "c[automated-construction]-a[blueprint... | mit |
Pulse-Eight/drivers | Control4/neo_Common/common/p8core.lua | 1 | 1550 | --Copyright Pulse-Eight Limited 2016
function P8INT:GET_MATRIX_URL()
local ip = Properties["Device IP Address"] or ""
return "http://" .. ip
end
function P8INT:DISCOVER()
C4:urlGet("http://www.gotomymatrix.com", {}, false,
function(ticketId, strData, responseCode, tHeaders, strError)
if responseCo... | apache-2.0 |
kitala1/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Fari-Wari.lua | 34 | 1034 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Fari-Wari
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
--------... | gpl-3.0 |
Taracque/epgp | libs/LibDeformat-3.0/LibDeformat-3.0.lua | 1 | 9487 | --[[
Name: LibDeformat-3.0
Author(s): ckknight (ckknight@gmail.com)
Website: http://www.wowace.com/projects/libdeformat-3-0/
Description: A library to convert a post-formatted string back to its original arguments given its format string.
License: MIT
]]
local LibDeformat = LibStub:NewLibrary("LibDeformat-3.0"... | bsd-3-clause |
kiarash14/be | plugins/banhammer.lua | 175 | 5896 | local function is_user_whitelisted(id)
local hash = 'whitelist:user#id'..id
local white = redis:get(hash) or false
return white
end
local function is_chat_whitelisted(id)
local hash = 'whitelist:chat#id'..id
local white = redis:get(hash) or false
return white
end
local function kick_user(user_id, chat_id)... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.