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 |
|---|---|---|---|---|---|
dani-sj/evilbot03 | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
mortezamosavy999/monsterTG | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
LORDMEHDI/testertard | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Windurst_Waters/npcs/Tonana.lua | 17 | 1124 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Tonana
-- Warps players to Windurst Woods
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Windurst_Waters/TextIDs");
----------------------... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/items/slice_of_cerberus_meat.lua | 12 | 1507 | -----------------------------------------
-- ID: 5565
-- Item: slice_of_cerberus_meat
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 10
-- Magic -10
-- Strength 6
-- Intelligence -6
-----------------------------------------
require("scripts/globals/status");
---------------------... | gpl-3.0 |
1yvT0s/wax | lib/stdlib/helpers/bit.lua | 19 | 4761 | --[[---------------
LuaBit v0.4
-------------------
a bitwise operation lib for lua.
http://luaforge.net/projects/bit/
How to use:
-------------------
wax.bit.bnot(n) -- bitwise not (~n)
wax.bit.band(m, n) -- bitwise and (m & n)
wax.bit.bor(m, n) -- bitwise or (m | n)
wax.bit.bxor(m, n) -- bitwise xor (m ^ n)
wa... | mit |
Scavenge/darkstar | scripts/zones/Southern_San_dOria/npcs/Balasiel.lua | 24 | 6649 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Balasiel
-- Starts and Finishes: A Squire's Test, A Squire's Test II, A Knight's Test
-- @zone 230
-- @pos -136 -11 64
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/items/walnut.lua | 12 | 1105 | -----------------------------------------
-- ID: 5661
-- Item: Walnut
-- Food Effect: 5Min, All Races
-----------------------------------------
-- HP 30
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-------------------------------... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | LuaUI/Configs/nubtron_config.lua | 12 | 8942 | --[[
INSTRUCTIONS
Choose names for the unitClass table and use those names in conditions.
For example if you use "Con" then you must use "ConSelected" not "conSelected":
local unitClasses = {
Con = { 'armrectr' },
}
local steps = {
selectCon = {
image = unitClasses.Con[1] ..'.png',
passIfAny = { 'ConSelecte... | gpl-2.0 |
svirusxxx/cjdns | contrib/lua/cjdns/config.lua | 34 | 1851 | -- Cjdns admin module for Lua
-- Written by Philip Horger
common = require 'cjdns/common'
ConfigFile = {}
ConfigFile.__index = ConfigFile
common.ConfigFile = ConfigFile
function ConfigFile.new(path, no_init)
local values = {
path = path,
text = "",
contents = {},
}
setmeta... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/abilities/drain_samba.lua | 25 | 1429 | -----------------------------------
-- Ability: Drain Samba
-- Inflicts the next target you strike with Drain daze, allowing all those engaged in battle with it to drain its HP.
-- Obtained: Dancer Level 5
-- TP Required: 10%
-- Recast Time: 1:00
-- Duration: 2:00
-----------------------------------
require("scripts/g... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Metalworks/npcs/HomePoint#2.lua | 14 | 1253 | -----------------------------------
-- Area: Metalworks
-- NPC: HomePoint#2
-- @pos -78 2 2 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Metalworks/TextIDs");
require("scripts/globals/homepoint");
-----... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/The_Ashu_Talif/Zone.lua | 10 | 1253 | -----------------------------------
--
-- Zone: The_Ashu_Talif
--
-----------------------------------
require("scripts/globals/settings");
local TheAshuTalif = require("scripts/zones/The_Ashu_Talif/IDs");
-----------------------------------
-- onInitialize
-----------------------------------
function onInitialize(z... | gpl-3.0 |
taxler/radish | lua/parse/substitution/charset/cswindows1256.lua | 1 | 4058 |
local byte = require 'parse.substitution.charset.byte'
return byte + {
['\x80'] = '\u{20ac}'; -- euro sign
['\x81'] = '\u{67e}'; -- arabic letter peh
['\x82'] = '\u{201a}'; -- single low-9 quotation mark
['\x83'] = '\u{192}'; -- latin small letter f with hook
['\x84'] = '\u{201e}'; -- double low-9 quotation mark... | mit |
Scavenge/darkstar | scripts/globals/items/loaf_of_iron_bread.lua | 12 | 1184 | -----------------------------------------
-- ID: 4499
-- Item: loaf_of_iron_bread
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 4
-- Vitality 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/QuBia_Arena/mobs/Trion.lua | 10 | 1813 | -----------------------------------
-- Area: qubia arena
-- MOB: Trion
-- Ally during San d'Oria Mission 9-2
-----------------------------------
package.loaded["scripts/zones/QuBia_Arena/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/QuBia_Arena/TextIDs");
require("scripts/globals/status")... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/items/black_curry_bun.lua | 12 | 1955 | -----------------------------------------
-- ID: 5758
-- Item: black_curry_bun
-- Food Effect: 30minutes, All Races
-----------------------------------------
-- TODO: Group effects
-- DEX +2
-- VIT +4
-- INT +1
-- Accuracy +5
-- Ranged Accuracy +5
-- Evasion +5
-- DEF +15% (cap 180)
-- Resist Sleep +3
-- hHP +2
-- hMP ... | gpl-3.0 |
kankaristo/premake-core | tests/actions/vstudio/vc2010/test_excluded_configs.lua | 9 | 1869 | --
-- tests/actions/vstudio/vc2010/test_excluded_configs.lua
-- Check handling of configurations which have been excluded from the build.
-- Copyright (c) 2012-2013 Jason Perkins and the Premake project
--
local suite = test.declare("vs2010_excluded_configs")
local vc2010 = premake.vstudio.vc2010
--
-- Setup/teard... | bsd-3-clause |
Zero-K-Experiments/Zero-K-Experiments | LuaRules/Configs/MetalSpots/BlackStar.lua | 17 | 3039 | return {
spots = {
{x = 4136, z = 7528, metal = 1.5},
{x = 3944, z = 7528, metal = 1.5},
{x = 2360, z = 6568, metal = 1.5},
{x = 1864, z = 1192, metal = 1.5},
{x = 648, z = 5192, metal = 1.5},
{x = 5768, z = 6616, me... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/LaisavieXBerlends1.lua | 14 | 1057 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Laisavie X Berlends
-- @zone 80
-- @pos 26 2 6
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
-----------------------------------... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/mobskills/glittering_ruby.lua | 27 | 1144 | ---------------------------------------------------
-- Glittering Ruby
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
function onMobSkillCheck(ta... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/spells/armys_paeon_iii.lua | 27 | 1361 | -----------------------------------------
-- Spell: Army's Paeon III
-- Gradually restores target's HP.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,t... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Apollyon/mobs/Carnagechief_Jackbodokk.lua | 23 | 2423 | -----------------------------------
-- Area: Apollyon CS
-- MOB: Carnagechief_Jackbodokk
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Apollyon/TextIDs");
require("scripts/globals/limbus");
-----------------------... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | units/armcom1.lua | 2 | 6755 | unitDef = {
unitname = [[armcom1]],
name = [[Strike Commander]],
description = [[Mobile Assault Commander, Builds at 10 m/s]],
acceleration = 0.18,
activateWhenBuilt = true,
autoHeal = 5,
brakeRate = 0.375,
buildCostEne... | gpl-2.0 |
Zero-K-Experiments/Zero-K-Experiments | scripts/corsh.lua | 11 | 1979 | include "constants.lua"
local base = piece 'base'
local turret = piece 'turret'
local gun = piece 'gun'
local flare = piece 'flare'
local ground = piece 'ground01'
local wakes = {}
for i = 1, 8 do
wakes[i] = piece('wake0' .. i)
end
local function WobbleUnit()
local wobble = true
while true do
if wobble == true t... | gpl-2.0 |
Zero-K-Experiments/Zero-K-Experiments | scripts/armbanth.lua | 7 | 11087 | include "constants.lua"
-- body
local pelvis = piece "pelvis"
local body = piece "body"
local head = piece "head"
local headflare = piece "headflare"
local torso = piece "torso"
local lmissiles = piece "lmissiles"
local rmissiles = piece "rmissiles"
local lmissileflare = piece "lmissileflare"
local rmissileflare = pie... | gpl-2.0 |
tarikgwa/nfd | lua/libs/constant.lua | 1 | 1668 | --
-- Newfies-Dialer License
-- http://www.newfies-dialer.org
--
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this file,
-- You can obtain one at http://mozilla.org/MPL/2.0/.
--
-- Copyright (C) 2011-2014 Star2Billing S.L.
--
--... | mpl-2.0 |
Scavenge/darkstar | scripts/globals/items/spicy_cracker.lua | 12 | 1337 | -----------------------------------------
-- ID: 4466
-- Item: spicy_cracker
-- Food Effect: 3Min, All Races
-----------------------------------------
-- HP Recovered While Healing 7
-- Beast Killer +10
-- Resist Sleep +10
-----------------------------------------
require("scripts/globals/status");
------------------... | gpl-3.0 |
Arashbrsh/lifemaic | bot/bot.lua | 1 | 7095 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '0.14.6'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
r... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Toraimarai_Canal/npcs/_4pc.lua | 7 | 1508 | -----------------------------------
-- Area: Toraimarai Canal
-- NPC: Marble Door
-- Involved In Windurst Mission 7-1
-- @pos 132 12 -19 169
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("scripts/globals/settings");
-----------------------------... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Sih_Gates/Zone.lua | 17 | 1207 | -----------------------------------
--
-- Zone: Sih Gates
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Sih_Gates/TextIDs"] = nil;
require("scripts/zones/Sih_Gates/TextIDs");
-----------------------------------
-- onInitialize
----------------------------... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | LuaRules/Gadgets/wake_fx.lua | 4 | 2970 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
---------------------... | gpl-2.0 |
Scavenge/darkstar | scripts/commands/delmission.lua | 12 | 1609 | ---------------------------------------------------------------------------------------------------
-- func: delmission <logID> <missionID> <player>
-- desc: Deletes the given mission from the GM or target player.
---------------------------------------------------------------------------------------------------
requi... | gpl-3.0 |
seblindfors/ConsolePort | ConsolePort_Config/Config.lua | 1 | 2698 | local _, env = ...; local db = env.db;
local Config = CPAPI.EventHandler(ConsolePortConfig, {
'PLAYER_REGEN_ENABLED',
'PLAYER_REGEN_DISABLED',
'UI_SCALE_CHANGED'
}); env.Config = Config;
local CONFIG_HEIGHT = 800;
function Config:OnActiveDeviceChanged()
self.hasActiveDevice = db('Gamepad/Active') and true or false... | artistic-2.0 |
ihcfan/NautiPlot | hmi-cocos2d-x/external/lua/luajit/src/src/jit/dis_x86.lua | 99 | 29330 | ----------------------------------------------------------------------------
-- LuaJIT x86/x64 disassembler module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
--------------------------------------------------------------------------... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Romaa_Mihgo.lua | 14 | 1060 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Romaa Mihgo
-- Type: Standard NPC
-- @zone 94
-- @pos -1.967 -3 -26.337
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
----... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Northern_San_dOria/npcs/Mevreauche.lua | 9 | 2114 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Mevreauche
-- Type: Smithing Guild Master
-- @pos -193.584 10 148.655 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Northern_Sa... | gpl-3.0 |
smanolache/kong | spec/plugins/oauth2/schema_spec.lua | 3 | 1808 | local validate_entity = require("kong.dao.schemas_validation").validate_entity
local oauth2_schema = require "kong.plugins.oauth2.schema"
describe("OAuth2 Entities Schemas", function()
describe("OAuth2 Configuration", function()
it("should not require a `scopes` when `mandatory_scope` is false", function()
... | apache-2.0 |
Scavenge/darkstar | scripts/zones/Norg/npcs/Aeka.lua | 14 | 3298 | -----------------------------------
-- Area: Norg
-- NPC: Aeka
-- Involved in Quest: Forge Your Destiny
-- @zone 252
-- @pos 4 0 -4
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/q... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Misareaux_Coast/npcs/_0p2.lua | 27 | 2156 | -----------------------------------
-- Area: Misareaux Coast
-- NPC: Dilapidated Gate
-- Entrance to Riverne Site #B01
-- @pos -259 -30 276 178
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
re... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Abyssea-Tahrongi/npcs/qm6.lua | 14 | 1343 | -----------------------------------
-- Zone: Abyssea-Tahrongi
-- NPC: qm6 (???)
-- Spawns Gancanagh
-- @pos ? ? ? 45
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
--[[... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Abyssea-Konschtat/npcs/Cavernous_Maw.lua | 29 | 1200 | -----------------------------------
-- Area: Abyssea - Konschatat
-- NPC: Cavernous Maw
-- @pos 159.943 -72.109 -839.986 15
-- Teleports Players to Konschatat Highlands
-----------------------------------
package.loaded["scripts/zones/Abyssea-Konschtat/TextIDs"] = nil;
-----------------------------------
require("scr... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/spells/bio_iii.lua | 26 | 2604 | -----------------------------------------
-- Spell: Bio III
-- Deals dark damage that weakens an enemy's attacks and gradually reduces its HP.
-- caster:getMerit() returns a value which is equal to the number of merit points TIMES the value of each point
-- Bio III value per point is '30' This is a constant set in the ... | gpl-3.0 |
vahidazizi/golbarg | libs/mimetype.lua | 1 | 2953 | -- @smsgolbarg1
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom+xml"] = "atom",
["application/rss+xml"] = "rss",
["tex... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/LaLoff_Amphitheater/npcs/qm1_2.lua | 17 | 2450 | -----------------------------------
-- Area: LaLoff_Amphitheater
-- NPC: Shimmering Circle (BCNM Entrances)
-------------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
package.loaded["scripts/globals/bcnm"] = nil;
-------------------------------------
require("scripts/glob... | gpl-3.0 |
AliKhodadad/Telewild | plugins/owners.lua | 284 | 12473 |
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 |
shayanchabok007/antispam_fox | plugins/boobs.lua | 731 | 1601 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
GregSatre/capsules | torch/stnbhwd/test.lua | 2 | 7374 | -- you can easily test specific units like this:
-- th -lnn -e "nn.test{'LookupTable'}"
-- th -lnn -e "nn.test{'LookupTable', 'Add'}"
local mytester = torch.Tester()
local jac
local sjac
local precision = 1e-5
local expprecision = 1e-4
local stntest = {}
function stntest.AffineGridGeneratorBHWD_batch()
local nfr... | mit |
xincun/nginx-openresty-windows | luajit-root/luajit/share/luajit-2.1.0-alpha/jit/dis_arm.lua | 17 | 19363 | ----------------------------------------------------------------------------
-- LuaJIT ARM disassembler module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | bsd-2-clause |
Scavenge/darkstar | scripts/globals/items/bowl_of_ulbuconut_milk_+1.lua | 12 | 1209 | -----------------------------------------
-- ID: 5977
-- Item: Bowl of Ulbuconut Milk +1
-- Food Effect: 3Min, All Races
-----------------------------------------
-- Charisma +4
-- Vitality -1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnI... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/abilities/chakra.lua | 11 | 1820 | -----------------------------------
-- Ability: Chakra
-- Cures certain status effects and restores a small amount of HP to user.
-- Obtained: Monk Level 35
-- Recast Time: 5:00
-- Duration: Instant
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onAbility... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/items/windurst_taco.lua | 12 | 1644 | -----------------------------------------
-- ID: 5172
-- Item: windurst_taco
-- Food Effect: 30Min, All Races
-----------------------------------------
-- MP 20
-- Vitality -1
-- Agility 5
-- MP Recovered While Healing 1
-- Ranged Accuracy % 8 (cap 10)
-- Ranged Attack +1
-----------------------------------------
requ... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Kazham/npcs/Ghosa_Demuhzo.lua | 17 | 1071 | -----------------------------------
-- Area: Kazham
-- NPC: Ghosa Demuhzo
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
f... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Windurst_Walls/npcs/Chomomo.lua | 14 | 1457 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Chomomo
-- Type: Standard NPC
-- @pos -1.262 -11 290.224 239
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/... | gpl-3.0 |
omid1212/spam | plugins/invite.lua | 20 | 2324 | --[[
Invite other user to the chat group.
Use !invite ********* (where ********* is id_number) to invite a user by id_number.
This is the most reliable method.
Use !invite @username to invite a user by @username.
Less reliable. Some users don't have @username.
Use !invite Type print_name Here to invite a user by print_... | gpl-2.0 |
Scavenge/darkstar | scripts/globals/items/serving_of_green_curry.lua | 12 | 1853 | -----------------------------------------
-- ID: 4296
-- Item: serving_of_green_curry
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Agility 2
-- Vitality 1
-- Health Regen While Healing 2
-- Magic Regen While Healing 1
-- Defense +9% (cap 160)
-- Ranged ACC +5% (cap 25)
-- Sleep Resist ... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Abyssea-Konschtat/npcs/Atma_Fabricant.lua | 33 | 1061 | -----------------------------------
-- Zone: Abyssea - Konschtat
-- NPC: Atma Fabricant
--
-----------------------------------
package.loaded["scripts/zones/Abyssea-Konschtat/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/abyssea");
require("scripts/... | gpl-3.0 |
ihcfan/NautiPlot | hmi-cocos2d-x/samples/Lua/TestLua/Resources/luaScript/CocoStudioTest/CocoStudioGUITest/CocoStudioGUITest.lua | 3 | 104561 | local guiSceneManager = {}
guiSceneManager.currentUISceneIdx = 1
local UIScene = class("UIScene")
UIScene.__index = UIScene
UIScene._uiLayer= nil
UIScene._widget = nil
UIScene._sceneTitle = nil
function UIScene.extend(target)
local t = tolua.getpeer(target)
if not t then
t = {}
tolua.setpeer(... | gpl-2.0 |
Scavenge/darkstar | scripts/commands/promote.lua | 24 | 1172 | ---------------------------------------------------------------------------------------------------
-- func: promote
-- desc: Promotes the player to a new GM level.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "si"... | gpl-3.0 |
omidtarh/wezard | plugins/get.lua | 613 | 1067 | local function get_variables_hash(msg)
if msg.to.type == 'chat' then
return 'chat:'..msg.to.id..':variables'
end
if msg.to.type == 'user' then
return 'user:'..msg.from.id..':variables'
end
end
local function list_variables(msg)
local hash = get_variables_hash(msg)
if hash then
local names =... | gpl-2.0 |
omidtarh/wbot | plugins/get.lua | 613 | 1067 | local function get_variables_hash(msg)
if msg.to.type == 'chat' then
return 'chat:'..msg.to.id..':variables'
end
if msg.to.type == 'user' then
return 'user:'..msg.from.id..':variables'
end
end
local function list_variables(msg)
local hash = get_variables_hash(msg)
if hash then
local names =... | gpl-2.0 |
omid1212/spam | plugins/sp.lua | 42 | 75166 | local function run(msg)
if msg.text == "[!/]spam" then
return "".. [[
... | gpl-2.0 |
1yvT0s/luvit | deps/readline.lua | 3 | 13819 | --[[
Copyright 2014-2015 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 o... | apache-2.0 |
Scavenge/darkstar | scripts/zones/Temenos/bcnms/Central_Temenos_1st_Floor.lua | 35 | 1135 | -----------------------------------
-- Area: Temenos
-- Name:
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[C_Temenos_1st]UniqueID",GenerateLimbusKey());
HideArmouryCrates(GetInstanceRegion(1303... | gpl-3.0 |
ramindel0761/tele_ir | libs/lua-redis.lua | 1 | 35733 | local redis = {
_VERSION = 'redis-lua 2.0.4',
_DESCRIPTION = 'A Lua client library for the redis key value storage system.',
_COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri',
}
-- The following line is used for backwards compatibility in order to keep the `Redis`
-- global module name. Using... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/abilities/fire_maneuver.lua | 19 | 1605 | -----------------------------------
-- Ability: Fire Maneuver
-- Enhances the effect of fire attachments. Must have animator equipped.
-- Obtained: Puppetmaster level 1
-- Recast Time: 10 seconds (shared with all maneuvers)
-- Duration: 1 minute
-----------------------------------
require("scripts/globals/status");
re... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | effects/ingeborg.lua | 25 | 15516 | -- ingeborg_2
-- ingeborg_3
-- ingeborg_9
-- ingeborg_7
-- ingeborg_8
-- ingeborg_ani
-- ingeborg_5
-- ingeborg_10
-- ingeborg_6
-- ingeborg
-- ingeborg_1
-- ingeborg_4
return {
["ingeborg_2"] = {
wezels = {
air = true,
class = [[CSimpleParticleSystem]],
count ... | gpl-2.0 |
Scavenge/darkstar | scripts/globals/weaponskills/ukkos_fury.lua | 19 | 1877 | -----------------------------------
-- Ukko's Fury
-- Great Axe Weapon Skill
-- Skill Level: N/A
-- Description: Delivers a twofold attack that slows target. Chance of params.critical hit varies with TP. Ukonvasara: Aftermath.
-- Available only when equipped with Ukonvasara (85), Ukonvasara (90), Ukonvasara (95), Masch... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/items/tidal_talisman.lua | 17 | 2281 | -----------------------------------------
-- ID: 11290
-- Item: tidal talisman
--
-----------------------------------------
function onItemCheck(target)
local result = 56;
local zone = target:getZoneID();
if (zone == 238 or zone == 239 or zone == 240 or zone == 241 or zone == 242 or -- Windurst
zo... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Western_Altepa_Desert/npcs/relic.lua | 14 | 1892 | -----------------------------------
-- Area: Western Altepa Desert
-- NPC: <this space intentionally left blank>
-- @pos -152 -16 20 125
-----------------------------------
package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Western_Altepa_De... | gpl-3.0 |
adriamarcet/WG_premium_text-files | tuto-duelo_it.lua | 1 | 2419 | --<< Textos del tutorial >>--
local tableText = {
blancas = {
--<< START translate >>--
btnSetSalir = "Esci",
btnSetContinuar = "Continua a giocare",
btnFinAcabar = "Fine",
btnFinContinuar = "Continua"
--<< END translate >>--
},
negras = {
--<< START translate // transform && for \n and remove... | mit |
ShayanHaddadian/Tele-OvEr | bot/utils.lua | 473 | 24167 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
Zero-K-Experiments/Zero-K-Experiments | units/corgrav.lua | 3 | 6673 | unitDef = {
unitname = [[corgrav]],
name = [[Newton]],
description = [[Gravity Turret - On to Repulse, Off to Attract]],
activateWhenBuilt = true,
buildCostEnergy = 200,
buildCostMetal = 200,
builder ... | gpl-2.0 |
Scavenge/darkstar | scripts/globals/weaponskills/crescent_moon.lua | 25 | 1780 | -----------------------------------
-- Crescent Moon
-- Great Sword weapon skill
-- Skill level: 175
-- Delivers a single-hit attack. Damage varies with TP.
-- Modifiers: STR:35%
-- 100%TP 200%TP 300%TP
-- 1.0 1.75 2.5
-----------------------------------
require("scripts/globals/status");
require("sc... | gpl-3.0 |
Kyklas/luci-proto-hso | applications/luci-p910nd/luasrc/model/cbi/p910nd.lua | 74 | 1512 | --[[
LuCI p910nd
(c) 2008 Yanira <forum-2008@email.de>
(c) 2012 Jo-Philipp Wich <jow@openwrt.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... | apache-2.0 |
RazorKitty/dotfiles | .config/awesome/theme/theme.lua | 1 | 18256 | --------------------------------------------------------------------------------
-- Awesome theme for Void linux based on --
-- using xrdb config based on the theme by Yauhen Kirylau --
-----------------------------------------------------------------------------... | unlicense |
ahosein864/ahosein864 | plugins/ingroup.lua | 202 | 31524 | 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 |
smanolache/kong | kong/core/error_handlers.lua | 1 | 1682 | local find = string.find
local format = string.format
local TYPE_PLAIN = "text/plain"
local TYPE_JSON = "application/json"
local TYPE_XML = "application/xml"
local TYPE_HTML = "text/html"
local text_template = "%s"
local json_template = '{"message":"%s"}'
local xml_template = '<?xml version="1.0" encoding="UTF-8"?>\n... | apache-2.0 |
Scavenge/darkstar | scripts/globals/items/mihgo_mithkabob.lua | 12 | 1690 | -----------------------------------------
-- ID: 5708
-- Item: Mihgo Mithkabob
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- Dexterity 5
-- Vitality 2
-- Mind -2
-- Accuracy +50
-- Ranged Accuracy +50
-- Evasion +5
-- Defense % 25 (cap 95)
-----------------------------------------
requi... | gpl-3.0 |
Scavenge/darkstar | scripts/globals/items/bowl_of_medicinal_gruel.lua | 12 | 1502 | -----------------------------------------
-- ID: 4534
-- Item: bowl_of_medicinal_gruel
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- Vitality -1
-- Agility 2
-- Ranged Accuracy % 15 (cap 15)
-- HP Recovered While Healing 4
-----------------------------------------
require("scripts/global... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Kazham/npcs/Ronta-Onta.lua | 14 | 4485 | -----------------------------------
-- Area: Kazham
-- NPC: Ronta-Onta
-- Starts and Finishes Quest: Trial by Fire
-- @pos 100 -15 -97 250
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | LuaRules/Gadgets/dbg_dev_commands.lua | 1 | 14523 |
function gadget:GetInfo()
return {
name = "Dev Commands",
desc = "Adds useful commands.",
author = "Google Frog",
date = "12 Sep 2011",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true, -- loaded by default?
handler = true,
}
end
local syncedG... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Metalworks/npcs/Fariel.lua | 15 | 2148 | -----------------------------------
-- Area: Metalworks
-- NPC: Fariel
-- Type: Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Metalworks/TextIDs");
require("scripts/globals/pathfind");
local p... | gpl-3.0 |
Scavenge/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Sahnn_Dhansett.lua | 14 | 1067 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Sahnn Dhansett
-- Type: Standard NPC
-- @zone 94
-- @pos 112.820 -3.122 47.857
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = ni... | gpl-3.0 |
PicoleDeLimao/Ninpou2 | game/dota_addons/ninpou2/scripts/vscripts/gamemode.lua | 1 | 8144 | -- This is the primary barebones gamemode script and should be used to assist in initializing your game mode
BAREBONES_VERSION = "1.00"
-- Set this to true if you want to see a complete debug output of all events/processes done by barebones
-- You can also change the cvar 'barebones_spew' at any time to 1 or 0 for out... | apache-2.0 |
Zero-K-Experiments/Zero-K-Experiments | LuaRules/Gadgets/unit_AA_anti_bait.lua | 12 | 6520 | local versionNumber = "v0.1"
function gadget:GetInfo()
return {
name = "AA anti-bait",
desc = versionNumber .. " Managed Allowed Weapon Target for Hacksaw and Screamer to ignore bait when other AA is present nearby",
author = "Jseah",
date = "04/26/13",
license = "GNU GPL, v2 ... | gpl-2.0 |
mortezamosavy999/monsterTG | plugins/guran.lua | 1 | 2280 | quran() {
local NAMA_SURAT=( . Al-Fatihah Al-Baqarah Ali-Imran An-Nisaa\' Al-Maaidah \
Al-An\'aam Al-A\'raaf Al-Anfaal At-Taubah Yunus Huud Yusuf Ar-Ra\'d Ibrahim \
Al-Hijr An-Nahl Al-Israa\' Al-Kahfi Maryam Thaahaa Al-Anbiyaa\' Al-Hajj \
Al-Mukminuun An-Nuur Al-Furqaan Ash-Shu\'araa An-Naml Al-Qashash Al-Ank... | gpl-2.0 |
JJ/improving-EAs | ga-canon.lua | 1 | 3419 | --[[
@title Evolutionary algorith
@param a chromosome length
@default a 16
@param b population size
@default b 32
@param c number of generations
@default c 40
]]--
-- Create a random chromosome
function random_chromosome (length)
chromosome = ''
for i=1,length do
chromosome = chromosome .. ((math.random(1... | gpl-3.0 |
nmacs/lm3s-uclinux | lib/liblua/luasocket-2.0.2/src/tp.lua | 146 | 3608 | -----------------------------------------------------------------------------
-- Unified SMTP/FTP subsystem
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: tp.lua,v 1.22 2006/03/14 09:04:15 diego Exp $
-----------------------------------------------------------------------------
--------------------------... | gpl-2.0 |
kaeza/minetest-doppelganger | init.lua | 1 | 2765 |
---------------------------
---- ENTITY DEFINITION ----
---------------------------
local doppelganger_entity = {
hp_max = 100,
}
function doppelganger_entity:on_activate(staticdata)
self.object:set_properties({
visual = "mesh",
mesh = "character.x",
textures = { "character.png", },
})
self.object:set_armo... | bsd-2-clause |
hdinsight/hue | tools/wrk-scripts/lib/uri-f570bf7.lua | 22 | 6368 | -- The MIT License (MIT)
--
-- Copyright (c) 2014 Cyril David <cyx@cyx.is>
-- Copyright (c) 2011-2013 Bertrand Mansion <bmansion@mamasam.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 So... | apache-2.0 |
Scavenge/darkstar | scripts/globals/effects/aftermath.lua | 30 | 2749 | -----------------------------------
--
-- EFFECT_AFTERMATH
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
local power = effect:getPower();
if (effect:g... | gpl-3.0 |
mamaddeveloper/jjhw | plugins/webshot.lua | 919 | 1473 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
header... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Yuhtunga_Jungle/npcs/Logging_Point.lua | 17 | 1091 | -----------------------------------
-- Area: Yuhtunga Jungle
-- NPC: Logging Point
-----------------------------------
package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/logging");
require("scripts/zones/Yuhtunga_Jungle/TextIDs");
---------... | gpl-3.0 |
Kejikus/magickaBound | items/active/weapons/magicscroll/magicscroll.lua | 1 | 5745 | require "/scripts/vec2.lua"
require "/scripts/util.lua"
require "/scripts/activeitem/stances.lua"
function init()
self.projectileType = config.getParameter("projectileType")
self.projectileParameters = config.getParameter("projectileParameters")
self.projectileParameters.power = self.projectileParameters.powe... | gpl-3.0 |
flux-framework/flux-core | t/shell/initrc/tests/0000-basic.lua | 7 | 1081 | require 'fluxometer' -- pulls in Test.More
local file = debug.getinfo (1, "S").source:sub(2)
local function dirname (s)
return s:gsub ('/[^/]*$', '')
end
plugin.register { name = "done",
handlers = {
{ topic = "shell.exit", fn = function () done_testing() end }
}
}
error_like ('source "foo"', "s... | lgpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | scripts/zenith.lua | 4 | 10724 | include "constants.lua"
local spGetUnitRulesParam = Spring.GetUnitRulesParam
local devCompatibility = Spring.Utilities.IsCurrentVersionNewerThan(100, 0)
local base = piece "base"
local flare = piece "flare"
local firept = piece "firept"
local SOURCE_RANGE = 4000 -- size of the box which the emit point can be rando... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Western_Altepa_Desert/mobs/King_Vinegarroon.lua | 16 | 2333 | -----------------------------------
-- Area: Western Altepa Desert
-- NM: King Vinegarroon
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/titles");
require("scripts/globals/weather");
-----------------------------------
-- onMobInitialize Action
---------------------... | gpl-3.0 |
Zero-K-Experiments/Zero-K-Experiments | LuaUI/Widgets/gui_iconheight.lua | 15 | 6634 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Icon Height",
desc = "Displays icons for all units at once, depending on camera height",
a... | gpl-2.0 |
Scavenge/darkstar | scripts/zones/Zeruhn_Mines/Zone.lua | 12 | 2515 | -----------------------------------
--
-- Zone: Zeruhn_Mines (172)
--
-----------------------------------
package.loaded["scripts/zones/Zeruhn_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/zone");
require("scripts/zones/Zeruhn_Mines/TextIDs");
-... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.