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
nyczducky/darkstar
scripts/globals/spells/cure_v.lua
26
4705
----------------------------------------- -- Spell: Cure V -- Restores target's HP. -- Shamelessly stolen from http://members.shaw.ca/pizza_steve/cure/Cure_Calculator.html ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic");...
gpl-3.0
jbeich/Aquaria
files/scripts/entities/collectiblearnassistatue.lua
6
1427
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 vers...
gpl-2.0
nyczducky/darkstar
scripts/globals/items/blindfish.lua
12
1324
----------------------------------------- -- ID: 4313 -- Item: Blindfish -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Mind -4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ---------...
gpl-3.0
nyczducky/darkstar
scripts/globals/items/garlic_cracker.lua
12
1335
----------------------------------------- -- ID: 4467 -- Item: garlic_cracker -- Food Effect: 3Min, All Races ----------------------------------------- -- HP Regen While Healing 6 -- Undead Killer 10 -- Blind Resist 10 ----------------------------------------- require("scripts/globals/status"); ----------------------...
gpl-3.0
AquariaOSE/Aquaria
files/scripts/entities/_unused/energybossclimb.lua
6
2509
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 vers...
gpl-2.0
nyczducky/darkstar
scripts/zones/Metalworks/npcs/Franziska.lua
17
1138
----------------------------------- -- Area: Metalworks -- NPC: Franziska -- Type: Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Metalworks/TextIDs"); ----------------------------------- -- on...
gpl-3.0
nyczducky/darkstar
scripts/zones/VeLugannon_Palace/mobs/Brigandish_Blade.lua
22
1276
----------------------------------- -- Area: VeLugannon Palace -- NM: Brigandish Blade ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onMobInitialize ----------------------------------- function onMobInitialize(mob) mob:setMobMod(MOBMOD_ADD_EFFECT,...
gpl-3.0
medoo3131/NEW-BOT3
plugins/all.lua
184
4452
do 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_name(user)..' ['..user_id..']' return u...
gpl-2.0
SamOatesPlugins/cuberite
src/Bindings/BindingsProcessor.lua
20
5150
-- BindingsProcessor.lua -- Implements additional processing that is done while generating the Lua bindings local access = {public = 0, protected = 1, private = 2} --- Defines classes that have a custom manual Push() implementation and should not generate the automatic one -- Map of classname -> true local ...
apache-2.0
catinred2/some-mmorpg
server/lualib/map/quadtree.lua
6
1951
local quadtree = {} local mt = { __index = quadtree } function quadtree.new (l, t, r, b) return setmetatable ({ left = l, top = t, right = r, bottom = b, object = {}, }, mt) end function quadtree:insert (id, x, y) if x < self.left or x > self.right or y < self.top or y > self.bottom then return end if ...
mit
liloman/awesome
rc/start.lua
1
2470
-- Setup display local xrandr = { uni = "--output VGA1 --auto --output LVDS1 --auto", neo = "--output HDMI-0 --auto --output DVI-0 --auto --right-of HDMI-0" } if xrandr[config.hostname] then os.execute("xrandr " .. xrandr[config.hostname]) end -- Spawn a composoting manager --awful.util.spawn("xcompmgr", f...
gpl-2.0
nyczducky/darkstar
scripts/globals/effects/str_down.lua
34
1111
----------------------------------- -- -- EFFECT_STR_DOWN -- ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) if ((target:getStat(MOD_STR) - effect:ge...
gpl-3.0
AquariaOSE/Aquaria
files/scripts/maps/node_energybossslot.lua
6
1391
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 vers...
gpl-2.0
crazyboy11/botspamm
plugins/sudoers.lua
86
2292
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(receiver, '...
gpl-2.0
nyczducky/darkstar
scripts/zones/Port_San_dOria/npcs/HomePoint#2.lua
27
1270
----------------------------------- -- Area: Port San dOria -- NPC: HomePoint#2 -- @pos 48 -12.000 -105 232 ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Port_San_dOria/TextIDs"); require("scripts/globals/...
gpl-3.0
ruleless/skynet
test/testsocket.lua
80
1078
local skynet = require "skynet" local socket = require "socket" local mode , id = ... local function echo(id) socket.start(id) while true do local str = socket.read(id) if str then socket.write(id, str) else socket.close(id) return end end end if mode == "agent" then id = tonumber(id) skynet....
mit
lgeek/koreader
spec/unit/frontlight_spec.lua
3
7639
describe("Frontlight function in PowerD", function() local PowerD local param, test_when_on, test_when_off setup(function() require("commonrequire") PowerD = require("device/generic/powerd"):new{ frontlight = 0, } param = { fl_min = 1, fl...
agpl-3.0
telematin/telewebamoz
plugins/LinkPv.lua
107
31031
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
Goodzilam/Goodzila-bot_v1.3
plugins/LinkPv.lua
107
31031
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
nyczducky/darkstar
scripts/zones/Nashmau/npcs/Leleroon.lua
1
3213
----------------------------------- -- Area: Nashmau -- NPC: Leleroon -- Standard Info NPC -- Corsair SideQuests -- @pos -14.687 0.000 25.114 53 ----------------------------------- package.loaded["scripts/zones/Nashmau/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Nashmau/TextIDs"); requi...
gpl-3.0
cliffano/swaggy-jenkins
clients/lua/generated/spec/pipeline_impllinks_spec.lua
1
1569
--[[ Swaggy Jenkins Jenkins API clients generated from Swagger / Open API specification The version of the OpenAPI document: 1.5.1-pre.0 Contact: blah@cliffano.com Generated by: https://openapi-generator.tech ]] --[[ Unit tests for openapiclient.model.pipeline_impllinks Automatically generated by openapi-g...
mit
nyczducky/darkstar
scripts/globals/items/timbre_timbers_salad.lua
12
1467
----------------------------------------- -- ID: 4321 -- Item: timbre_timbers_salad -- Food Effect: 240Min, All Races ----------------------------------------- -- Magic 20 -- Agility 5 -- Vitality -1 -- Ranged ACC % 8 -- Ranged ACC Cap 15 ----------------------------------------- require("scripts/globals/status"); --...
gpl-3.0
jakianroy/NGUI_To_Be_Best
Assets/LuaFramework/ToLua/Lua/protobuf/descriptor.lua
15
1933
-- -------------------------------------------------------------------------------- -- FILE: descriptor.lua -- DESCRIPTION: protoc-gen-lua -- Google's Protocol Buffers project, ported to lua. -- https://code.google.com/p/protoc-gen-lua/ -- -- Copyright (c) 2010 , 林卓毅 (Zhuoyi Lin) netsnail@gmail.com -...
gpl-3.0
alinoroz/pop_tm
libs/serpent.lua
656
7877
local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} lo...
gpl-2.0
micdah/LrControl
Docs/Lightroom SDK 6.0/Sample Plugins/custommetadatasample.lrdevplugin/DisplayMetadata.lua
1
2882
--[[---------------------------------------------------------------------------- DisplayMetadata.lua Summary information for custom metadata dialog sample plugin -------------------------------------------------------------------------------- ADOBE SYSTEMS INCORPORATED Copyright 2008 Adobe Systems Incorporated All...
gpl-3.0
nyczducky/darkstar
scripts/zones/Phomiuna_Aqueducts/npcs/_0rw.lua
14
1315
----------------------------------- -- Area: Phomiuna_Aqueducts -- NPC: _0rw (Oil Lamp) -- Notes: Opens south door at J-9 from inside. -- @pos 103.703 -26.180 83.000 27 ----------------------------------- package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil; ----------------------------------- require("sc...
gpl-3.0
wenhulove333/ScutServer
Sample/Koudai/Client/lua/datapool/MenuBtnConfig.lua
1
2356
------------------------------------------------------------------ -- MenuBtnConfig.lua -- Author : ChenJM -- Version : 1.15 -- Date : -- Description:°´Å¥¹ÜÀí , ------------------------------------------------------------------ module("MenuBtnConfig", package.seeall) --[[ ¾Æ¹ÝÕÐļӶ±ø ħ·¨...
mit
nyczducky/darkstar
scripts/zones/Northern_San_dOria/npcs/Abeaule.lua
25
4316
----------------------------------- -- Area: Northern San d'Oria -- NPC: Abeaule -- Starts and Finishes Quest: The Trader in the Forest, The Medicine Woman -- @pos -136 -2 56 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- re...
gpl-3.0
alinoroz/pop_tm
plugins/cpu.lua
12
1904
function run_sh(msg) name = get_name(msg) text = '' -- if config.sh_enabled == false then -- text = '!sh command is disabled' -- else -- if is_sudo(msg) then -- bash = msg.text:sub(4,-1) -- text = run_bash(bash) -- else -- text = name .. ' you...
gpl-2.0
nyczducky/darkstar
scripts/zones/Full_Moon_Fountain/npcs/Moon_Spiral.lua
27
1442
----------------------------------- -- Area: Full Moon Fountain -- NPC: Moon Spiral -- Involved in Quests: The Moonlit Path -- @pos -302 9 -260 170 ----------------------------------- package.loaded["scripts/zones/Full_Moon_Fountain/TextIDs"] = nil; ------------------------------------- require("scripts/globals/bcnm"...
gpl-3.0
nyczducky/darkstar
scripts/zones/Southern_San_dOria/npcs/Foletta.lua
17
1458
----------------------------------- -- Area: Southern San d'Oria -- NPC: Foletta -- General Info NPC ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Southern_San_dOria/TextIDs"); require("scripts/globals/...
gpl-3.0
nyczducky/darkstar
scripts/globals/items/serving_of_cibarious_cilbir.lua
12
1593
----------------------------------------- -- ID: 5643 -- Item: serving_of_cibarious_cilbir -- Food Effect: 4Hrs, All Races ----------------------------------------- -- HP % 6 (cap 150) -- MP % 6 (cap 100) -- HP recovered while healing 3 -- MP recovered while healing 4 ----------------------------------------- require(...
gpl-3.0
nyczducky/darkstar
scripts/zones/Windurst_Woods/npcs/Boizo-Naizo.lua
14
1621
----------------------------------- -- Area: Windurst Woods -- NPC: Boizo-Naizo -- Involved in Quest: Riding on the Clouds -- @zone 241 -- @pos -9.581 -3.75 -26.062 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/gl...
gpl-3.0
nyczducky/darkstar
scripts/zones/LaLoff_Amphitheater/npcs/qm0_4.lua
17
1168
----------------------------------- -- Area: LaLoff_Amphitheater -- NPC: qm0 (warp player outside after they win fight) ------------------------------------- package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil; ------------------------------------- require("scripts/zones/LaLoff_Amphitheater/TextIDs"); -...
gpl-3.0
nyczducky/darkstar
scripts/globals/items/cup_of_healing_tea.lua
12
1466
----------------------------------------- -- ID: 4286 -- Item: cup_of_healing_tea -- Food Effect: 240Min, All Races ----------------------------------------- -- Magic 10 -- Vitality -1 -- Charisma 3 -- Magic Regen While Healing 2 -- Sleep resistance -40 ----------------------------------------- require("scripts/global...
gpl-3.0
jakianroy/NGUI_To_Be_Best
LuaEncoder/luajit_ios/x86_64/jit/dis_ppc.lua
78
20318
---------------------------------------------------------------------------- -- LuaJIT PPC disassembler module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT/X license. See Copyright Notice in luajit.h ----------------------------------------------------------------------------...
gpl-3.0
jbeich/Aquaria
files/scripts/entities/_unused/plantcommon.lua
18
1759
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 vers...
gpl-2.0
mehrpouya81/giantbot
plugins/rss.lua
700
5434
local function get_base_redis(id, option, extra) local ex = '' if option ~= nil then ex = ex .. ':' .. option if extra ~= nil then ex = ex .. ':' .. extra end end return 'rss:' .. id .. ex end local function prot_url(url) local url, h = string.gsub(url, "http://", "") local...
gpl-2.0
nyczducky/darkstar
scripts/zones/Southern_San_dOria/npcs/Trail_Markings.lua
7
3100
----------------------------------- -- Area: Southern San d'Oria -- NPC: Trail Markings -- Dynamis-San d'Oria Enter -- @pos 139 -2 122 230 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); requ...
gpl-3.0
LazyZhu/openwrt-packages-trunk-mod
net/prosody/files/prosody.cfg.lua
147
7257
-- Prosody Example Configuration File -- -- Information on configuring Prosody can be found on our -- website at http://prosody.im/doc/configure -- -- Tip: You can check that the syntax of this file is correct -- when you have finished by running: luac -p prosody.cfg.lua -- If there are any errors, it will let you know...
gpl-2.0
nyczducky/darkstar
scripts/zones/Yughott_Grotto/npcs/HomePoint#1.lua
27
1271
----------------------------------- -- Area: Yughott_Grotto -- NPC: HomePoint#1 -- @pos 434 -40.299 171 142 ----------------------------------- package.loaded["scripts/zones/Yughott_Grotto/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Yughott_Grotto/TextIDs"); require("scripts/globals/...
gpl-3.0
jbeich/Aquaria
files/scripts/entities/sunkendoor.lua
6
2347
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 vers...
gpl-2.0
nyczducky/darkstar
scripts/zones/Castle_Oztroja/npcs/Kaa_Toru_the_Just.lua
14
1655
----------------------------------- -- Area: Castle Oztroja -- NPC: Kaa Toru the Just -- Type: Mission NPC [ Windurst Mission 6-2 NPC ]~ -- @pos -100.188 -62.125 145.422 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require...
gpl-3.0
sjznxd/lc-20121231
applications/luci-pbx/luasrc/model/cbi/pbx-calls.lua
29
15344
--[[ Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com> This file is part of luci-pbx. luci-pbx 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 3 of the License, or ...
apache-2.0
AquariaOSE/Aquaria
files/scripts/maps/node_autogetli.lua
6
1148
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 vers...
gpl-2.0
nyczducky/darkstar
scripts/zones/Bastok_Markets/npcs/Nbu_Latteh.lua
26
3365
----------------------------------- -- Area: Bastok Markets -- NPC: Nbu Latteh -- Starts & Finishes Quest: Mom, The Adventurer? -- Starts Quest: The Signpost Marks the Spot ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scr...
gpl-3.0
nyczducky/darkstar
scripts/globals/items/dish_of_salsa.lua
12
1593
----------------------------------------- -- ID: 5299 -- Item: dish_of_salsa -- Food Effect: 3Min, All Races ----------------------------------------- -- Strength -1 -- Dexterity -1 -- Agility -1 -- Vitality -1 -- Intelligence -1 -- Mind -1 -- Sleep Resist 5 ----------------------------------------- require("scripts/g...
gpl-3.0
nyczducky/darkstar
scripts/zones/Heavens_Tower/npcs/Rakano-Marukano.lua
14
2333
----------------------------------- -- Area: Heavens Tower -- NPC: Rakano-Marukano -- Type: Immigration NPC -- @pos 6.174 -1 32.285 242 ----------------------------------- package.loaded["scripts/zones/Heavens_Tower/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest"); -----------...
gpl-3.0
lgeek/koreader
frontend/ui/opdsparser.lua
5
2615
--[[ This code is derived from the LAPHLibs which can be found here: https://github.com/Wiladams/LAPHLibs --]] local util = require("ffi/util") local luxl = require("luxl") local ffi = require("ffi") local OPDSParser = {} local unescape_map = { ["lt"] = "<", ["gt"] = ">", ["amp"] = "&", ["qu...
agpl-3.0
nyczducky/darkstar
scripts/globals/spells/hailstorm.lua
32
1182
-------------------------------------- -- Spell: Hailstorm -- Changes the weather around target party member to "snowy." -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -...
gpl-3.0
nyczducky/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Uricca-Koricca.lua
14
1064
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Uricca-Koricca -- Type: Standard NPC -- @zone 94 -- @pos -102.221 -3 48.791 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil; ...
gpl-3.0
cliffano/swaggy-jenkins
clients/lua/generated/spec/branch_impllinks_spec.lua
1
1561
--[[ Swaggy Jenkins Jenkins API clients generated from Swagger / Open API specification The version of the OpenAPI document: 1.5.1-pre.0 Contact: blah@cliffano.com Generated by: https://openapi-generator.tech ]] --[[ Unit tests for openapiclient.model.branch_impllinks Automatically generated by openapi-gen...
mit
abeschneider/nn
init.lua
11
3390
require('torch') require('libnn') include('utils.lua') include('ErrorMessages.lua') include('Module.lua') include('Container.lua') include('Concat.lua') include('Parallel.lua') include('Sequential.lua') include('DepthConcat.lua') include('Linear.lua') include('SparseLinear.lua') include('Reshape.lua') include('View...
bsd-3-clause
nyczducky/darkstar
scripts/zones/Alzadaal_Undersea_Ruins/TextIDs.lua
7
1261
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6385; -- Obtained: <item> GIL_OBTAINED = 6386; -- Obtained <number> gil KEYITEM_OBTAINED = 6388; -- Obtain...
gpl-3.0
nyczducky/darkstar
scripts/zones/Norg/npcs/Paito-Maito.lua
15
2550
----------------------------------- -- Area: Norg -- NPC: Paito-Maito -- Standard Info NPC ----------------------------------- require("scripts/globals/pathfind"); local path = { -71.189713, -9.413510, 74.024879, -71.674171, -9.317029, 73.054794, -72.516525, -9.298064, 72.363213, -73.432983, -9.220915, 71.773857, -74...
gpl-3.0
AquariaOSE/Aquaria
files/scripts/entities/seaturtlesmall.lua
6
1143
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 vers...
gpl-2.0
abcdefg30/OpenRA
lua/sandbox.lua
84
5098
local sandbox = { _VERSION = "sandbox 0.5", _DESCRIPTION = "A pure-lua solution for running untrusted Lua code.", _URL = "https://github.com/kikito/sandbox.lua", _LICENSE = [[ MIT LICENSE Copyright (c) 2013 Enrique García Cota Permission is hereby granted, free of charge, to an...
gpl-3.0
sevu/wesnoth
data/campaigns/World_Conquest/lua/map/postgeneration_utils/engine.lua
7
1924
-- helper functions for lua map generation. f = wesnoth.map.filter_tags function get_locations(t) local filter = wesnoth.map.filter(t.filter, t.filter_extra or {}) return map:find(filter, t.locs) end function set_terrain_impl(data) local locs = {} local nlocs_total = 0 for i = 1, #data do if data[i].filter th...
gpl-2.0
Sojerbot/new
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
ashkan1996/hunter000
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
ashkan1996/hunter001
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
nyczducky/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Rakih_Lyhall.lua
14
1063
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Rakih Lyhall -- Type: Standard NPC -- @zone 94 -- @pos -48.111 -4.5 69.712 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil; -...
gpl-3.0
Arashbrsh/lifeeee
plugins/anti-spam5.lua
17
2434
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
nyczducky/darkstar
scripts/globals/items/party_egg.lua
12
1333
----------------------------------------- -- ID: 4595 -- Item: party_egg -- Food Effect: 60Min, All Races ----------------------------------------- -- Health 25 -- Magic 25 -- Attack 5 -- Ranged Attack 4 ----------------------------------------- require("scripts/globals/status"); -------------------------------------...
gpl-3.0
abcdefg30/OpenRA
mods/ra/maps/infiltration/infiltration.lua
7
10366
--[[ Copyright 2007-2022 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later vers...
gpl-3.0
esbullington/snabbp4
syntax/symbols/base.lua
1
1983
local class = require("snabbp4.syntax.utils.middleclass") local utils = require("snabbp4.syntax.utils.debug") -- Base symbol shared by all symbols local BaseSymbol = class("BaseSymbol") function BaseSymbol:initialize(token,parser) self.lbp = 0 self.token = token self.parser = parser end function BaseSymb...
apache-2.0
AquariaOSE/Aquaria
files/scripts/entities/anemone4.lua
12
2875
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 vers...
gpl-2.0
MasterKia/xyself
bot/bot.lua
1
7139
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") require("./bot/permissions") local f = assert(io.popen('/usr/bin/git describe --tags', 'r')) VERSION = assert(f:read('*a')) f:...
gpl-2.0
develCuy/adscaptcha-ophal-module
init.lua
1
1113
_M = { } ophal.modules.adscaptcha = _M local config = settings.adscaptcha local AdsCaptcha, _SERVER, add_js = require 'adscaptcha', _SERVER, add_js local type = type function _M.form_alter(variables) for entity_type in pairs(config.entities) do if variables.id == entity_type .. '_create_form' or variables.id ==...
gpl-3.0
abcdefg30/OpenRA
mods/ra/maps/allies-06a/allies06a.lua
4
6900
--[[ Copyright 2007-2022 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later vers...
gpl-3.0
francot514/CardGamePRO-Simulator
data/cards/c1182.lua
1
1267
--Zahka earring function c1182.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCost(c1182.cost) e1:SetTarget(c1182.target) e1:SetOperation(c1182.activate) c:RegisterEffect(e1) end function c...
gpl-2.0
nyczducky/darkstar
scripts/zones/LaLoff_Amphitheater/bcnms/ark_angels_1.lua
28
3110
----------------------------------- -- Area: LaLoff Amphitheater -- Name: Ark Angels 1 (Hume) ----------------------------------- package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil; ----------------------------------- require("scripts/zones/LaLoff_Amphitheater/TextIDs"); require("scripts/globals/mission...
gpl-3.0
nyczducky/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
AquariaOSE/Aquaria
game_scripts/_mods/aquariaeditortutorial/scripts/node_editor01.lua
6
1824
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 vers...
gpl-2.0
nyczducky/darkstar
scripts/zones/Windurst_Woods/npcs/Spare_Five.lua
17
1506
----------------------------------- -- Area: Windurst Woods -- NPC: Spare Five -- Working 100% -- Involved in quest: A Greeting Cardian ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/globals/quests"] = nil; require("scripts/globals/quests"); package.loaded["scripts/z...
gpl-3.0
nyczducky/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
nyczducky/darkstar
scripts/zones/Bibiki_Bay/npcs/Pohka_Chichiyowahl.lua
14
1243
----------------------------------- -- Area: Bibiki Bay -- NPC: Pohka Chichiyowahl -- Type: Standard Merchant NPC -- @pos -415 -2 -430 4 ----------------------------------- package.loaded["scripts/zones/Bibiki_Bay/TextIDs"] = nil; require("scripts/zones/Bibiki_Bay/TextIDs"); require("scripts/globals/shop"); -------...
gpl-3.0
alinoroz/pop_tm
plugins/wiki.lua
12
4395
-- http://git.io/vUA4M local socket = require "socket" local JSON = require "cjson" local wikiusage = { "!wiki [text]: Read extract from default Wikipedia (EN)", "!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola", "!wiki search [text]: Search articles on default Wikipedia (EN)", "!...
gpl-2.0
nyczducky/darkstar
scripts/zones/Marjami_Ravine/Zone.lua
17
1221
----------------------------------- -- -- Zone: Marjami Ravine -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Marjami_Ravine/TextIDs"] = nil; require("scripts/zones/Marjami_Ravine/TextIDs"); ----------------------------------- -- onInitialize -------------...
gpl-3.0
dtrip/awesome
tests/examples/wibox/nwidget/rules/urgency.lua
4
1871
--DOC_GEN_IMAGE --DOC_NO_USAGE local parent = ... --DOC_HIDE local naughty = require("naughty") --DOC_HIDE local ruled = {notification = require("ruled.notification")}--DOC_HIDE local wibox = require("wibox") --DOC_HIDE local beautiful = require("beautiful") --DOC_HIDE local def = require("naughty.widget._default") ...
gpl-2.0
nyczducky/darkstar
scripts/zones/Abyssea-Tahrongi/npcs/Cavernous_Maw.lua
29
1190
----------------------------------- -- Area: Abyssea - Tahrongi -- NPC: Cavernous Maw -- @pos -31.000, 47.000, -681.000 45 -- Teleports Players to Tahrongi Canyon ----------------------------------- package.loaded["scripts/zones/Abyssea-Tahrongi/TextIDs"] = nil; ----------------------------------- require("scripts/gl...
gpl-3.0
nyczducky/darkstar
scripts/zones/La_Theine_Plateau/npcs/Cermet_Headstone.lua
14
2833
----------------------------------- -- Area: La Theine Plateau -- NPC: Cermet Headstone -- Involved in Mission: ZM5 Headstone Pilgrimage (Water Fragment) -- @pos -170 39 -504 102 ----------------------------------- package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil; ----------------------------------- re...
gpl-3.0
masterfeizz/EDuke3D
source/lunatic/test/maputil.lua
1
2047
local xmath = require("xmath") local sprite = sprite -- local maputil = {} -- csfunc = maputil.CreateCrossSpriteFunc(use_sprite_i_func, use_sprite_j_func) -- -- use_sprite_i_func: function(spri, ud), where -- <spri> is a reference to sprite i -- use_sprite_j_func: function(sprj, spri, ud), where -- <spri> is a...
gpl-2.0
aminba/bot
plugins/invite.lua
7
1036
-- Invite other user to the chat group. -- Use !invite name User_name or !invite id id_number -- The User_name is the print_name (there are no spaces but _) do local function run(msg, matches) -- User submitted a user name if matches[1] == "name" then user = matches[2] user = string.gsub(user," ","_") end -- ...
gpl-2.0
nyczducky/darkstar
scripts/zones/Xarcabard/npcs/qm5.lua
14
1400
----------------------------------- -- Area: Xarcabard -- NPC: qm5 (???) -- Involved in Quests: Breaking Barriers -- @pos 179 -33 82 112 ----------------------------------- package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Xarcabard/TextIDs"); require(...
gpl-3.0
jbeich/Aquaria
files/scripts/maps/_unused/node_songsporespawn.lua
6
1187
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 vers...
gpl-2.0
lgeek/koreader
frontend/logger.lua
5
1942
--[[-- Logger module. See @{Logger.levels} for list of supported levels. Example: local logger = require("logger") logger.info("Something happened.") logger.err("House is on fire!") ]] local dump = require("dump") local isAndroid, android = pcall(require, "android") local DEFAULT_DUMP_LVL = 10 --- Supp...
agpl-3.0
nyczducky/darkstar
scripts/globals/weaponskills/tornado_kick.lua
20
2045
------------------------------- -- Skill: Tornado Kick -- Class: H2H Weapon Skill -- Level: 225 -- Mods : STR:37.5% VIT:30% -- 100%TP 200%TP 300%TP -- 2.0x 2.75x 3.5x -- Delivers a twofold attack. Damage varies with TP. ----------------------------------- require("scripts/globals/status"); require("sc...
gpl-3.0
nyczducky/darkstar
scripts/globals/abilities/blade_bash.lua
16
1611
----------------------------------- -- Ability: Blade Bash -- Deliver an attack that can stun the target and occasionally cause Plague. -- Obtained: Samurai Level 75 -- Recast Time: 3:00 -- Duration: Instant ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); --...
gpl-3.0
abcdefg30/OpenRA
mods/ra/maps/soviet-08b/soviet08b-AI.lua
7
4471
--[[ Copyright 2007-2022 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later vers...
gpl-3.0
jbeich/Aquaria
files/scripts/maps/_unused/node_collectiblepiranhaegg.lua
6
1030
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 vers...
gpl-2.0
sevu/wesnoth
data/ai/micro_ais/cas/ca_recruit_random.lua
7
4529
local AH = wesnoth.require("ai/lua/ai_helper.lua") local LS = wesnoth.require "location_set" local recruit_type local ca_recruit_random = {} function ca_recruit_random:evaluation(cfg) -- Random recruiting from all the units the side has -- Check if leader is on keep local leader = wesnoth.units.find_on_...
gpl-2.0
gertvv/oops
papers/m4m6/hats.lua
1
2468
-- agents[1] = "Abelard", agents[2] = "Heloise" agents = {"Abelard", "Heloise"} -- propositions: -- r1: Abelard wears a red hat -- w1: Abelard wears the white hat -- r2: Heloise wears a red hat -- w2: Heloise wears the white hat -- some useful formulas -- each person has only one hat oneHat = "(r1 = ~w1) & (r2 = ~w2...
gpl-2.0
cliffano/swaggy-jenkins
clients/lua/generated/openapiclient/model/extension_class_container_impl1map.lua
1
1235
--[[ Swaggy Jenkins Jenkins API clients generated from Swagger / Open API specification The version of the OpenAPI document: 1.5.1-pre.0 Contact: blah@cliffano.com Generated by: https://openapi-generator.tech ]] -- extension_class_container_impl1map class local extension_class_container_impl1map = {} local...
mit
Arashbrsh/lifeeee
plugins/meme.lua
637
5791
local helpers = require "OAuth.helpers" local _file_memes = './data/memes.lua' local _cache = {} local function post_petition(url, arguments) local response_body = {} local request_constructor = { url = url, method = "POST", sink = ltn12.sink.table(response_body), headers = {}, red...
gpl-2.0
hacker44-h44/teleguard-v2
plugins/meme.lua
637
5791
local helpers = require "OAuth.helpers" local _file_memes = './data/memes.lua' local _cache = {} local function post_petition(url, arguments) local response_body = {} local request_constructor = { url = url, method = "POST", sink = ltn12.sink.table(response_body), headers = {}, red...
gpl-2.0
alinoroz/pop_tm
plugins/azan.lua
6
3111
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?" local parameters = "address=".. (URL.escape(area) or ...
gpl-2.0
nyczducky/darkstar
scripts/zones/Inner_Horutoto_Ruins/npcs/_5c5.lua
14
2062
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: Gate: Magical Gizmo -- Involved In Mission: The Horutoto Ruins Experiment -- @pos 419 0 -27 192 ----------------------------------- package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil; ----------------------------------- require...
gpl-3.0
sjznxd/lc-20121231
protocols/6x4/luasrc/model/network/proto_6x4.lua
78
1602
--[[ LuCI - Network model - 6to4, 6in4 & 6rd protocol extensions Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/L...
apache-2.0
rfaday/SuperAdmin-bot
plugins/search_youtube.lua
674
1270
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end local function searchYoutubeVideos(text) local url = 'https://www.googleapis.com/youtube/v3/search?' u...
gpl-2.0