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 |
|---|---|---|---|---|---|
TeleDALAD/test2 | plugins/img_google.lua | 660 | 3196 | do
local mime = require("mime")
local google_config = load_from_file('data/google.lua')
local cache = {}
--[[
local function send_request(url)
local t = {}
local options = {
url = url,
sink = ltn12.sink.table(t),
method = "GET"
}
local a, code, headers, status = http.request(options)
return tabl... | gpl-2.0 |
Cloudef/darkstar | scripts/globals/weaponskills/gust_slash.lua | 23 | 1283 | -----------------------------------
-- Gust Slash
-- Dagger weapon skill
-- Skill level: 40
-- Deals wind elemental damage. Damage varies with TP.
-- Will not stack with Sneak Attack.
-- Aligned with the Breeze Gorget.
-- Aligned with the Breeze Belt.
-- Element: Wind
-- Modifiers: DEX:20% ; INT:20%
-- 100%TP 200%TP... | gpl-3.0 |
hcqmaker/luatool | mysql_info.lua | 1 | 1349 | package.cpath = package.cpath ..";G:/program/lua/lua_mysql_catch/?.dll";
package.path = package.path..";G:/tool/Lua/5.1/lua/?.lua";
require("luasql.mysql");
local socket = require("socket");
rs_tip = {"select:", "insert:", "delete:", "update:"};
cfg = {dbname="phone_monster",dbuser="root", dbpwd="zuzhang202", dbip="1... | mit |
Cloudef/darkstar | scripts/globals/items/crepe_delice.lua | 2 | 1246 | -----------------------------------------
-- ID: 5767
-- Item: Crepe Delice
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- HP +10% (cap 15)
-- Magic Accuracy +21% (cap 30)
-- Magic Defense +2
-----------------------------------------
require("scripts/globals/status");
-------------------... | gpl-3.0 |
fiallo1313veeee/Anti_bot | plugins/tagall.lua | 1 | 1375 | local function returnids(cb_extra, success, result)
local receiver = cb_extra.receiver
local get_cmd = cb_extra.get_cmd
local text = cb_extra.text
local chat_id = result.id
local chatname = result.print_name
local username = ''
if get_cmd == 'tagall' then
for k,v in pairs(result.members) do
... | gpl-2.0 |
Cloudef/darkstar | scripts/zones/Northern_San_dOria/npcs/Porter_Moogle.lua | 7 | 1185 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- @zone 231
-- !pos TODO
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Northern_San_dO... | gpl-3.0 |
amir1213/amir | 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 |
rfernand/telegram-bot | 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 |
rigeirani/telegram-bot-supergroups | 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 |
Cloudef/darkstar | scripts/zones/Sauromugue_Champaign/Zone.lua | 5 | 3821 | -----------------------------------
--
-- Zone: Sauromugue_Champaign (120)
--
-----------------------------------
package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Sauromugue_Champaign/TextIDs");
require("scripts/zones/Sauromugue_Champaign/Mob... | gpl-3.0 |
we20/wez | plugins/time.lua | 771 | 2865 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://m... | gpl-2.0 |
moomoomoo309/WorldEdit-CC | ConfigAPI.lua | 1 | 5328 | --Settings File API used to parse and interpret and save settings files.
--Created by bwhodle, edited by moomoomoo3O9
--Forum post: http://www.computercraft.info/forums2/index.php?/topic/14311-preferences-settings-configuration-store-them-all-settings-file-api/
--DEPRECATED.
local function trimComments(line)
loca... | mit |
Cloudef/darkstar | scripts/zones/Grand_Palace_of_HuXzoi/npcs/_iya.lua | 5 | 1464 | -----------------------------------
-- Area: Grand Palace of Hu'Xzoi
-- NPC: Gate of the Gods
-- !pos -20 0.1 -283 34
-----------------------------------
package.loaded["scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Grand_Palace_of_HuXzoi/TextIDs");
--... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/items/strip_of_bison_jerky.lua | 2 | 1142 | -----------------------------------------
-- ID: 5207
-- Item: strip_of_bison_jerky
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Strength 5
-- Mind -2
-- Attack % 18
-- Attack Cap 70
-----------------------------------------
require("scripts/globals/status");
---------------------------... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/abilities/double-up.lua | 2 | 2599 | -----------------------------------
-- Ability: Double Up
-- Enhances an active Phantom Roll effect that is eligible for Double-Up.
-- Obtained: Corsair Level 5
-- Recast Time: 8 seconds
-- Duration: Instant
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/ability");
req... | gpl-3.0 |
Altimeter/Piarist-Love | unnamed.love/main.lua | 1 | 2192 | debug = true
function love.load(arg)
x = 50
y = 0
badspeed = 5
dy = 0
g = 0.01
jumpPower = 5
xchange = 5
ychange = 5
circsize = 30
ymin = circsize
xmin = circsize
ymax = love.window.getHeight() - 2*circsize
xmax = love.window.getWidth() - circsize
badx = xmax
bady = ymax
shootx = 75
shooty = 75
sh... | gpl-3.0 |
zzamboni/hammerspoon | extensions/screen/test_screen.lua | 4 | 8422 | hs.screen = require("hs.screen")
hs.geometry = require("hs.geometry")
function testMainScreen()
local screen = hs.screen.mainScreen()
assertIsUserdataOfType("hs.screen", screen)
return success()
end
function testPrimaryScreen()
local screen = hs.screen.primaryScreen()
assertIsUserdataOfType("hs.screen", sc... | mit |
Owlies/server | lualib/mqueue.lua | 115 | 1798 | -- This is a deprecated module, use skynet.queue instead.
local skynet = require "skynet"
local c = require "skynet.core"
local mqueue = {}
local init_once
local thread_id
local message_queue = {}
skynet.register_protocol {
name = "queue",
-- please read skynet.h for magic number 8
id = 8,
pack = skynet.pack,
u... | mit |
Cloudef/darkstar | scripts/globals/items/red_bubble-eye.lua | 2 | 1093 | -----------------------------------------
-- ID: 5446
-- Item: Red Bubble-Eye
-- Food Effect: 5 Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
function onItemChec... | gpl-3.0 |
rastin45/botrider12 | plugins/rae.lua | 616 | 1312 | do
function getDulcinea( text )
-- Powered by https://github.com/javierhonduco/dulcinea
local api = "http://dulcinea.herokuapp.com/api/?query="
local query_url = api..text
local b, code = http.request(query_url)
if code ~= 200 then
return "Error: HTTP Connection"
end
dulcinea = json:decode(b)
... | gpl-2.0 |
rigeirani/telegram-bot-supergroups | plugins/rae.lua | 616 | 1312 | do
function getDulcinea( text )
-- Powered by https://github.com/javierhonduco/dulcinea
local api = "http://dulcinea.herokuapp.com/api/?query="
local query_url = api..text
local b, code = http.request(query_url)
if code ~= 200 then
return "Error: HTTP Connection"
end
dulcinea = json:decode(b)
... | gpl-2.0 |
Cloudef/darkstar | scripts/globals/abilities/super_jump.lua | 6 | 1038 | -----------------------------------
-- Ability: Super Jump
-- Performs a super jump.
-- Obtained: Dragoon Level 50
-- Recast Time: 3:00
-- Duration: Instant
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/pets");
require("scripts/globa... | gpl-3.0 |
Max-pbot/Max1 | plugins/stats.lua | 866 | 4001 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
dddaaaddd/teleseed_super | plugins/stats.lua | 866 | 4001 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
Cloudef/darkstar | scripts/globals/items/beluga.lua | 7 | 1029 | -----------------------------------------
-- ID: Beluga
-- Beluga
-- Additional Effect: Ice Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------
function onAdditionalEffect(player,target... | gpl-3.0 |
dbartolini/crown | 3rdparty/luajit/src/jit/dis_mips.lua | 6 | 22010 | ----------------------------------------------------------------------------
-- LuaJIT MIPS disassembler module.
--
-- Copyright (C) 2005-2021 Mike Pall. All rights reserved.
-- Released under the MIT/X license. See Copyright Notice in luajit.h
---------------------------------------------------------------------------... | mit |
Cloudef/darkstar | scripts/globals/items/timbre_timbers_taco.lua | 2 | 1317 | -----------------------------------------
-- ID: 5173
-- Item: timbre_timbers_taco
-- Food Effect: 1hour, All Races
-----------------------------------------
-- MP 20
-- Vitality -1
-- Agility 5
-- MP Recovered While Healing 3
-- Ranged Accuracy % 8 (cap 15)
-----------------------------------------
require("scripts/gl... | gpl-3.0 |
Ali-2h/hossein | plugins/moderation.lua | 336 | 9979 | 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
local username = v.username
data[tostring(m... | gpl-2.0 |
woshihuo12/UnityHello | UnityHello/Assets/ToLua/Lua/system/Injection/LuaInjectionBus.lua | 5 | 1154 | --[[MIT License
Copyright (c) 2018 Jonson
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distri... | mit |
Cloudef/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/_0rt.lua | 5 | 1306 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: Oil lamp
-- !pos -60 -23 60 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Phomiuna_Aqueducts... | gpl-3.0 |
ahosein243243/uzzbot | plugins/id.lua | 355 | 2795 | local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
local function returnids(cb_extra, success, resu... | gpl-2.0 |
fgprodigal/RayUI | Interface/AddOns/RayUI/libs/oUF/elements/masterlooterindicator.lua | 2 | 2882 | --[[
# Element: Master Looter Indicator
Toggles the visibility of an indicator based on the unit's master looter status.
## Widget
MasterLooterIndicator - Any UI widget.
## Notes
A default texture will be applied if the widget is a Texture and doesn't have a texture or a color set.
## Examples
-- Position an... | mit |
Cloudef/darkstar | scripts/globals/items/blind_bolt.lua | 2 | 1066 | -----------------------------------------
-- ID: 18150
-- Item: Blind Bolt
-- Additional Effect: Blindness
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------
function onAdditionalEffect(playe... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Tahrongi_Canyon/TextIDs.lua | 5 | 2454 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6562; -- You cannot obtain the item <item> come back again after sorting your inventory.
ITEM_OBTAINED = 6568; -- Obtained: <item>.
GIL_OBTAINED = 6569; -- Obtained <number> gil.
KEYITEM_OBT... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Yuhtunga_Jungle/npcs/Bammiro_IM.lua | 2 | 2985 | -----------------------------------
-- Area: Yuhtunga Jungle
-- NPC: Bammiro, I.M.
-- Border Conquest Guards
-- !pos -241.334 -1 478.602 123
-----------------------------------
package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
requir... | gpl-3.0 |
TeleDALAD/test2 | plugins/id.lua | 226 | 4260 | local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
local function returnids(cb_extra, success, result)
local re... | gpl-2.0 |
nyasukun/openstackcraft | world/Plugins/TransAPI/main.lua | 7 | 1934 | -- This plugin copyright Alexander Harkness 2013, licensed under the MIT license.
-- Configuration
g_ServerLang = "en"
g_ConsoleLang = "en"
-- Global Variables
g_Plugin = nil
g_PluginDir = ""
g_DataLoc = ""
g_UserData = nil
-- START WITH DA AWESOME!
function Initialize( Plugin )
-- Set u... | apache-2.0 |
MinetestForFun/server-minetestforfun | mods/homedecor_modpack/homedecor/handlers/furnaces.lua | 12 | 8432 | -- This code supplies an oven/stove. Basically it's just a copy of the default furnace with different textures.
local S = homedecor.gettext
local function swap_node(pos, name)
local node = minetest.get_node(pos)
if node.name == name then return end
node.name = name
minetest.swap_node(pos, node)
end
local functio... | unlicense |
Cloudef/darkstar | scripts/zones/Cape_Teriggan/npcs/Voranbo-Natanbo_WW.lua | 2 | 2981 | -----------------------------------
-- Area: Cape Teriggan
-- NPC: Voranbo-Natanbo, W.W.
-- Type: Outpost Conquest Guards
-- !pos -185 7 -63 113
-----------------------------------
package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
requ... | gpl-3.0 |
MinetestForFun/server-minetestforfun | mods/eventobjects/init.lua | 3 | 2863 | minetest.register_tool("eventobjects:spleef_shovel", {
description = "Golden Spleef Shovel",
inventory_image = "eventobjects_spleef_shovel.png",
wield_image = "eventobjects_spleef_shovel.png^[transformR90",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=1,
groupcaps={
unbreakable={times={[... | unlicense |
Cloudef/darkstar | scripts/globals/spells/foe_requiem.lua | 2 | 1824 | -----------------------------------------
-- Spell: Foe Requiem
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Waughroon_Shrine/bcnms/hills_are_alive.lua | 5 | 1816 | -----------------------------------
-- Area: Waughroon_Shrine
-- Name: Hills are Alive
-- KSNM99
-----------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts... | gpl-3.0 |
nimaghorbani/ghbotv3.3 | plugins/owners.lua | 8 | 12711 | 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 |
fiallo1313veeee/Anti_bot | plugins/location.lua | 1 | 1595 | -- Implement a command !loc [area] which uses
-- the static map API to get a location image
-- Not sure if this is the proper way
-- Intent: get_latlong is in time.lua, we need it here
-- loadfile "time.lua"
-- Globals
-- If you have a google api key for the geocoding/timezone api
do
local api_key = nil
local base_... | gpl-2.0 |
jomanmuk/vlc-2.2 | share/lua/meta/art/00_musicbrainz.lua | 71 | 3091 | --[[
Gets an artwork from the Cover Art Archive or Amazon
$Id$
Copyright © 2007-2010 the VideoLAN team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at ... | lgpl-2.1 |
MinetestForFun/server-minetestforfun | mods/hbarmor/init.lua | 8 | 2870 | hbarmor = {}
-- HUD statbar values
hbarmor.armor = {}
-- Stores if player's HUD bar has been initialized so far.
hbarmor.player_active = {}
-- HUD item ids
local armor_hud = {}
hbarmor.tick = 0.1
-- If true, the armor bar is hidden when the player does not wear any armor
hbarmor.autohide = true
--load custom sett... | unlicense |
Cloudef/darkstar | scripts/zones/RuLude_Gardens/npcs/Morlepiche.lua | 5 | 1839 | -----------------------------------
-- Area: Rulude Gardens
-- NPC: Morlepiche
-- !pos -95 0 160 243
-------------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/conquest");
require(... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/abilities/alacrity.lua | 2 | 1027 | -----------------------------------
-- Ability: Alacrity
-- Reduces the casting and the recast time of your next black magic spell by 50%.
-- Obtained: Scholar Level 25
-- Recast Time: Stratagem Charge
-- Duration: 1 black magic spell or 60 seconds, whichever occurs first.
--
-- Level |Charges |Recharge Time per Char... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/mobskills/pyric_blast.lua | 2 | 1328 | ---------------------------------------------
-- Pyric Blast
--
-- Description: Deals Fire damage to enemies within a fan-shaped area. Additional effect: Plague
-- Type: Breath
-- Ignores Shadows
-- Range: Unknown Cone
---------------------------------------------
require("scripts/globals/settings");
require("scr... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/items/plate_of_ic_pilav_+1.lua | 2 | 1612 | -----------------------------------------
-- ID: 5585
-- Item: plate_of_ic_pilav_+1
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Health % 14
-- Health Cap 70
-- Strength 5
-- Vitality -2
-- Intelligence -2
-- Health Regen While Healing 1
-- Attack % 22
-- Attack Cap 70
-- Ranged ATT % ... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/effects/voidstorm.lua | 35 | 1337 | -----------------------------------
--
--
--
-----------------------------------
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_STR,math.floor(effect:getPower()/2));
target:addMod(MOD_DEX,math.floor(effect:g... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/items/dragon_steak.lua | 2 | 1726 | -----------------------------------------
-- ID: 4350
-- Item: dragon_steak
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 25
-- Strength 7
-- Intelligence -3
-- Health Regen While Healing 2
-- MP recovered while healing +2
-- Attack % 20
-- Attack Cap 150
-- Ranged ATT % 20
-- Ra... | gpl-3.0 |
david-xiao/luci | libs/luci-lib-nixio/root/usr/lib/lua/nixio/util.lua | 179 | 5824 | --[[
nixio - Linux I/O library for lua
Copyright 2009 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$
]]--
local... | apache-2.0 |
Cloudef/darkstar | scripts/zones/Upper_Jeuno/npcs/Zuber.lua | 5 | 1504 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Zuber
-- Involved in Quests: Save the Clock Tower
-- @zone 244
-- !pos -106 0 90
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
requi... | gpl-3.0 |
nyasukun/openstackcraft | world/Plugins/DiamondMover/DiamondMover.lua | 32 | 1912 |
-- DiamondMover.lua
-- An example Lua plugin using the cBlockArea object
-- When a player rclks with a diamond in their hand, an area around the clicked block is moved in the direction the player is facing
-- Global variables
MOVER_SIZE_X = 4;
MOVER_SIZE_Y = 4;
MOVER_SIZE_Z = 4;
function Initialize(Plugin)
... | apache-2.0 |
aliazaliaz/fire1 | plugins/help_fa.lua | 1 | 94263 | local function modadd(msg)
local hash = "gp_lang:"..msg.chat_id_
local lang = redis:get(hash)
if not is_admin(msg) then
if not lang then
return '_You are not bot admin_'
else
return 'شما مدیر ربات نیستید'
end
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.chat_id_... | gpl-3.0 |
nyasukun/openstackcraft | world/Plugins/ProtectionAreas/CommandState.lua | 6 | 2783 |
-- CommandState.lua
-- Implements the cCommandState class representing a command state for each VIP player
--[[
The command state holds internal info, such as the coords they selected using the wand
The command state needs to be held in a per-entity manner, so that we can support multiple logins
from the same accoun... | apache-2.0 |
amir1213/amir | bot/utils.lua | 646 | 23489 | 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 |
Ali-2h/hossein | plugins/twitter_send.lua | 627 | 1555 | do
local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local client = OAuth.new(consumer_key, consumer_secret, {
RequestToken = "https://api.twitter.com/oauth/request_token",
AuthorizeUser = {"https://api.twitter.com/oauth/autho... | gpl-2.0 |
Cloudef/darkstar | scripts/globals/spells/bluemagic/blitzstrahl.lua | 2 | 1987 | -----------------------------------------
-- Spell: Blitzstrahl
-- Deals lightning damage to an enemy. Additional effect: "Stun"
-- Spell cost: 70 MP
-- Monster Type: Arcana
-- Spell Type: Magical (Lightning)
-- Blue Magic Points: 4
-- Stat Bonus: DEX+3
-- Level: 44
-- Casting Time: 4.5 seconds
-- Recast Time: 29.25 se... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/weaponskills/retribution.lua | 25 | 1663 | -----------------------------------
-- Retribution
-- Staff weapon skill
-- Skill Level: 230
-- Delivers a single-hit attack. Damage varies with TP.
-- In order to obtain Retribution, the quest Blood and Glory must be completed.
-- Despite the appearance of throwing the staff, this is not a long-range Weapon Skill like... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Metalworks/npcs/Malduc.lua | 5 | 3345 | -----------------------------------
-- Area: Metalworks
-- NPC: Malduc
-- Type: Mission Giver
-- !pos 66.200 -14.999 4.426 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/mobskills/trample.lua | 2 | 1064 | ---------------------------------------------------
-- Trample
-- Family: Bahamut
-- Description: Deals physical damage to enemies in an area of effect. Additional effect: Knockback + Bind
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range:
-- Notes:
----------------------------------------------... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Al_Zahbi/npcs/Gidappa.lua | 2 | 1990 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Gidappa
-- Type: Clothcraft Normal/Adv. Image Support
-- !pos 70.228 -7 -54.089 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("sc... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/allyassist.lua | 7 | 2378 | ALLY_ASSIST_PLAYER = 1;
ALLY_ASSIST_RANDOM = 2;
function startAllyAssist(entity, assistMode)
-- print("Ally Assist Initiated");
if (assistMode == nil) then
assistMode = ALLY_ASSIST_PLAYER;
end
local mobs;
local players;
local allies = {}
if (entity:getBattlefield() ~= nil) then
... | gpl-3.0 |
nickbjohnson4224/kerplunk | src/cmd/extract_features.lua | 1 | 3433 | local kp = require('kerplunk')
local sql = require('lsqlite3')
local ffi = require('ffi')
module = {}
function module.main(db_path)
-- open database
local db = sql.open(db_path)
if not db then
return -1
end
db:exec "BEGIN TRANSACTION"
-- create/reset feature tables
db:exec [[
... | mit |
DARKRPISSHITFIXTHISUPDATE/DarkRP | gamemode/modules/fadmin/fadmin/playeractions/giveweapons/cl_init.lua | 14 | 1042 | local function GiveWeaponGui(ply)
local frame = vgui.Create("DFrame")
frame:SetTitle("Give weapon")
frame:SetSize(ScrW() / 2, ScrH() - 50)
frame:Center()
frame:SetVisible(true)
frame:MakePopup()
local WeaponMenu = vgui.Create("FAdmin_weaponPanel", frame)
WeaponMenu:StretchToParent(0,25,... | mit |
Cloudef/darkstar | scripts/zones/Hall_of_Transference/npcs/_0e8.lua | 5 | 1366 | -----------------------------------
-- Area: Hall of Transference
-- NPC: Large Apparatus (Right) - Mea
-- !pos 290.253 -81.849 -42.381 14
-----------------------------------
package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Hall_of_Transfere... | gpl-3.0 |
flingo64/PhotoStation-Upload-Lr-Plugin | PhotoStation_upload.lrplugin/PSExiftoolAPI.lua | 1 | 15430 | --[[----------------------------------------------------------------------------
PSExiftoolAPI.lua
This file is part of Photo StatLr - Lightroom plugin.
Copyright(c) 2015-2022, Martin Messmer
Exiftool API for Lightroom Photo StatLr
exports:
- open
- close
- doExifTranslations
- queryLrFaceRegionList
- setLrFac... | gpl-3.0 |
DARKRPISSHITFIXTHISUPDATE/DarkRP | gamemode/modules/hungermod/cl_init.lua | 11 | 3402 | local cvars = cvars
local draw = draw
local hook = hook
local math = math
local table = table
local timer = timer
local Color = Color
local ColorAlpha = ColorAlpha
local CreateClientConVar = CreateClientConVar
local GetConVar = GetConVar
local ipairs = ipairs
local pairs = pairs
local unpack = unpack
local ConVars = {... | mit |
woshihuo12/UnityHello | UnityHello/Assets/Lua/uiscripts/ui_manager.lua | 2 | 11107 | local ui_manager = class("ui_manager")
function ui_manager:initialize()
-- 所有已加载的 Session
self._all_sessions = { }
-- 当前正在显示的 Session
self._shown_sessions = { }
-- 普通窗口用来导航用到的堆栈
self._back_sequence = stack:create()
-- 弹出窗口用来导航用到的堆栈
self._popup_back_sequence = stack:create()
-- 管理器级的... | mit |
david-xiao/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/network.lua | 53 | 2738 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("Network Plugin Configuration"),
translate(
"The network plugin provides network based communication between " ..
"different collectd instances. Coll... | apache-2.0 |
Cloudef/darkstar | scripts/zones/Southern_San_dOria_[S]/Zone.lua | 5 | 2121 | -----------------------------------
--
-- Zone: Southern_San_dOria_[S] (80)
--
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
requi... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Grauberg_[S]/npcs/Indescript_Markings.lua | 2 | 1822 | ----------------------------------
-- Area: Grauberg [S]
-- NPC: Indescript Markings
-- Type: Quest
-----------------------------------
package.loaded["scripts/zones/Grauberg_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Grauberg_[S]/TextIDs");
require("scripts/globals/keyitems");
req... | gpl-3.0 |
fiallo1313veeee/Anti_bot | plugins/on_off.lua | 1 | 1693 | --shared by @blackHatChannel
-- Checks if bot was disabled on specific chat
local function is_channel_disabled( receiver )
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local functio... | gpl-2.0 |
Cloudef/darkstar | scripts/globals/items/prime_crab_stewpot.lua | 2 | 1643 | -----------------------------------------
-- ID: 5545
-- Item: Prime Crab Stewpot
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% Cap 75
-- MP +15
-- Vitality +1
-- Agility +1
-- Mind +2
-- HP Recovered while healing +7
-- MP Recovered while healing +2
-- Defe... | gpl-3.0 |
fiallo1313veeee/Anti_bot | plugins/inrealm.lua | 1 | 26186 | do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_group_chat (group_creator, group_name, ok_cb, false)
... | gpl-2.0 |
Cloudef/darkstar | scripts/zones/Bastok_Markets/npcs/Gwill.lua | 5 | 2620 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Gwill
-- Starts & Ends Quest: The Return of the Adventurer
-- Involved in Quests: The Cold Light of Day, Riding on the Clouds
-- !pos ? ? ? 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
---------... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Riverne-Site_A01/Zone.lua | 2 | 1205 | -----------------------------------
--
-- Zone: Riverne-Site_A01
--
-----------------------------------
package.loaded["scripts/zones/Riverne-Site_A01/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Riverne-Site_A01/TextIDs");
require("scripts/globals/conquest");
require("scripts/globals/set... | gpl-3.0 |
yujiali/ggnn | babi/babi_data.lua | 1 | 17870 | -- Data Loading for bAbI tasks.
--
-- Yujia Li, 10/2015
--
require 'nn'
babi_data = {}
function babi_data.load_graphs_from_file(filename)
local data_list = {}
local edge_list = {}
local target_list = {}
for line in io.lines(filename) do
if string.len(line) == 0 then
table.insert(... | mit |
nyasukun/openstackcraft | world/Plugins/APIDump/Hooks/OnPlayerBreakingBlock.lua | 44 | 1596 | return
{
HOOK_PLAYER_BREAKING_BLOCK =
{
CalledWhen = "Just before a player breaks a block. Plugin may override / refuse. ",
DefaultFnName = "OnPlayerBreakingBlock", -- also used as pagename
Desc = [[
This hook is called when a {{cPlayer|player}} breaks a block, before the block is actually broken in
the ... | apache-2.0 |
letoram/durden | durden/menus/window.lua | 1 | 4754 |
function menu_path_for_set(set, path)
local nents = {};
-- first build a list of possible paths based on the context of
-- each entry in the path
for i,wnd in ipairs(set) do
local menu, _, val, restbl = menu_resolve(path, wnd);
if (menu) then
for k,v in ipairs(menu) do
if (not v.interactive) then
ne... | bsd-3-clause |
rigeirani/telegram-bot-supergroups | plugins/danbooru.lua | 616 | 1750 | do
local URL = "http://danbooru.donmai.us"
local URL_NEW = "/posts.json"
local URL_POP = "/explore/posts/popular.json"
local scale_day = "?scale=day"
local scale_week = "?scale=week"
local scale_month = "?scale=month"
local function get_post(url)
local b, c, h = http.request(url)
if c ~= 200 then return nil end
... | gpl-2.0 |
jsfdez/premake-core | tests/actions/vstudio/vc2010/test_build_events.lua | 11 | 2257 | --
-- tests/actions/vstudio/vc2010/test_build_events.lua
-- Check generation of pre- and post-build commands for C++ projects.
-- Copyright (c) 2012-2013 Jason Perkins and the Premake project
--
local suite = test.declare("vstudio_vc2010_build_events")
local vc2010 = premake.vstudio.vc2010
--
-- Setup
--
local w... | bsd-3-clause |
keidax/awesome | lib/gears/wallpaper.lua | 11 | 6199 | ---------------------------------------------------------------------------
-- @author Uli Schlachter
-- @copyright 2012 Uli Schlachter
-- @release @AWESOME_VERSION@
-- @module gears.wallpaper
---------------------------------------------------------------------------
local cairo = require("lgi").cairo
local color = r... | gpl-2.0 |
Cloudef/darkstar | scripts/globals/spells/diaga_iii.lua | 2 | 2374 | -----------------------------------------
-- Spell: Diaga III
-- Lowers an enemy's defense and gradually deals light elemental damage.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----... | gpl-3.0 |
rastin45/botrider12 | plugins/banhammer.lua | 294 | 10470 | 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 |
Cloudef/darkstar | scripts/zones/RuLude_Gardens/TextIDs.lua | 5 | 3241 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6521; -- You cannot obtain the <item>. Come back after sorting your inventory.
FULL_INVENTORY_AFTER_TRADE = 6524; -- You cannot obtain the <item>. Try trading again after sorting your inventory.
ITEM_OB... | gpl-3.0 |
nimaghorbani/ghbotv3.3 | plugins/all.lua | 7 | 4212 | 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 |
fgprodigal/RayUI | Interface/AddOns/Skada/modules/Debuffs.lua | 2 | 14112 | Skada:AddLoadableModule("Debuffs", nil, function(Skada, L)
if Skada.db.profile.modulesBlocked.Debuffs then return end
local debuffoverview = Skada:NewModule(L["Debuffs"])
local buffoverview = Skada:NewModule(L["Buffs"])
local buffplayers = Skada:NewModule("Buff players")
local debuffplayers = Skada:NewModul... | mit |
fgprodigal/RayUI | Interface/AddOns/RayUI/libs/LibStub/LibStub.lua | 184 | 1367 | -- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info
-- LibStub is hereby placed in the Public Domain Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke
local LIBSTUB_MAJOR, LIBSTUB_MINOR = "LibStub", 2 -- NEVER MAKE THIS AN SVN REVI... | mit |
Cloudef/darkstar | scripts/zones/Al_Zahbi/npcs/Yudi_Yolhbi.lua | 2 | 1999 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Yudi Yolhbi
-- Type: Woodworking Normal/Adv. Image Support
-- !pos -71.584 -7 -56.018 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
requi... | gpl-3.0 |
MinetestForFun/server-minetestforfun | mods/homedecor_modpack/computer/recipes.lua | 15 | 4611 |
-- Copyright (C) 2012-2013 Diego Martínez <kaeza@users.sf.net>
-- License is WTFPL (see README.txt).
minetest.register_craft({
output = "computer:shefriendSOO",
recipe = {
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
{ "homedecor:plastic_sheeting", "default:glass... | unlicense |
Cloudef/darkstar | scripts/globals/weaponskills/double_thrust.lua | 26 | 1348 | -----------------------------------
-- Double Thrust
-- Polearm weapon skill
-- Skill Level: 5
-- Delivers a two-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Light Gorget.
-- Aligned with the Light Belt.
-- Element: None
-- Modifiers: STR:30%
-- 100%TP 200%TP 300%TP
-- 1... | gpl-3.0 |
Zirpon/skynet | lualib/skynet/manager.lua | 72 | 1923 | local skynet = require "skynet"
local c = require "skynet.core"
function skynet.launch(...)
local addr = c.command("LAUNCH", table.concat({...}," "))
if addr then
return tonumber("0x" .. string.sub(addr , 2))
end
end
function skynet.kill(name)
if type(name) == "number" then
skynet.send(".launcher","lua","REMO... | mit |
Cloudef/darkstar | scripts/globals/abilities/curing_waltz.lua | 2 | 2570 | -----------------------------------
-- Ability: Curing Waltz
-- Heals HP to target player.
-- Obtained: Dancer Level 15
-- TP Required: 20%
-- Recast Time: 00:06
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/msg");
------------------... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Ship_bound_for_Mhaura/Zone.lua | 5 | 1036 | -----------------------------------
--
-- Zone: Ship_bound_for_Mhaura (221)
--
-----------------------------------
package.loaded["scripts/zones/Ship_bound_for_Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Ship_bound_for_Mhaura/TextIDs");
-------... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/mobskills/haymaker.lua | 2 | 1194 | ---------------------------------------------
-- Haymaker
--
-- Description: Punches the daylights out of all targets in front. Additional effect: Amnesia
-- Type: Physical
-- Utsusemi/Blink absorb: Unknown
-- Range: Front cone
-- Notes: Only used by Gurfurlur the Menacing.
---------------------------------------... | gpl-3.0 |
Altimeter/Piarist-Love | pighunt.love/main.lua | 1 | 1213 | debug = true
function love.load(arg)
x = 0
y = 0
playerx = 50
playery = 50
xchange = 5
ychange = 5
ymin = 200
xmin = 200
ymax = love.window.getHeight() - 200
xmax = love.window.getWidth() - 200
intensify = 0
intensifymax = 100
end
function love.update(dt)
if love.keyboard.isDown("right")
then
x = x... | gpl-3.0 |
Bob-Z/World-of-Gnome | data/demo04/script/speak/old_man.lua | 1 | 2716 | price_list = { sword = 200, shield = 150, bag = 25, magic = 500 }
player_portrait = nil;
function set_player_portrait(player_id,mood)
player_type = character_get_type(player_id)
player_portrait = string.format("portrait/%s_%s.gif",player_type,mood)
end
function trade (player_id,item)
gold = inventory_get_by_nam... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.