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 |
|---|---|---|---|---|---|
shayanchabok555/tigerantispam007 | 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 |
fegimanam/kurdbot | 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 |
Kthulupwns/darkstar | scripts/globals/items/melon_pie_+1.lua | 35 | 1368 | -----------------------------------------
-- ID: 4523
-- Item: melon_pie_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Magic 30
-- Intelligence 5
-- Magic Regen While Healing 2
-----------------------------------------
require("scripts/globals/status");
-----------------... | gpl-3.0 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ControlStepper.lua | 10 | 4442 |
--------------------------------
-- @module ControlStepper
-- @extend Control
-- @parent_module cc
--------------------------------
--
-- @function [parent=#ControlStepper] setMinusSprite
-- @param self
-- @param #cc.Sprite var
--------------------------------
--
-- @function [parent=#ControlStepper] getM... | mit |
Kthulupwns/darkstar | scripts/zones/Middle_Delkfutts_Tower/npcs/Treasure_Chest.lua | 12 | 3286 | -----------------------------------
-- Area: Middle Delkfutt's Tower
-- NPC: Treasure Chest
-- Involved In Quest: Wings of Gold
-- @zone 157
-----------------------------------
package.loaded["scripts/zones/Middle_Delkfutts_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/s... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Yuhtunga_Jungle/TextIDs.lua | 3 | 1310 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6382; -- Obtained: <item>.
GIL_OBTAINED = 6383; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6385; -- Obtained... | gpl-3.0 |
ArcadiaGamingNetwork/AGC-DarkRP-Configuration | lua/darkrp_language/chatcommands.lua | 8 | 7815 | --[[---------------------------------------------------------------------------
English (example) Chat command translation file
---------------------------------------------------------------------------
This file contains translations for chat command descriptions.
On the left side you see the chat command, on the ri... | mit |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/PhysicsContactPreSolve.lua | 10 | 1438 |
--------------------------------
-- @module PhysicsContactPreSolve
-- @parent_module cc
--------------------------------
-- get friction between two bodies
-- @function [parent=#PhysicsContactPreSolve] getFriction
-- @param self
-- @return float#float ret (return value: float)
-----------------------------... | mit |
Kthulupwns/darkstar | scripts/globals/items/ojo_rice_ball.lua | 15 | 1749 | -----------------------------------------
-- ID: 5929
-- Item: Ojo Rice Ball
-- Food Effect: 60 Mins, All Races
-----------------------------------------
-- HP 50
-- Dexterity 5
-- Vitality 5
-- Character 5
-- Effect with enhancing equipment
-- Attack +60
-- Defense +40
-- Triple Attack 2
------------------------------... | gpl-3.0 |
telbbs/luci-0.12 | applications/luci-watchcat/luasrc/model/cbi/watchcat/watchcat.lua | 30 | 2105 | --[[
LuCI - Lua Configuration Interface
Copyright 2012 Christian Gagneraud <chris@techworks.ie>
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$
]]... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Windurst_Waters/npcs/Machitata.lua | 36 | 1704 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Machitata
-- Involved in Quest: Hat in Hand
-- Working 100%
-- @zone = 238
-- @pos = 163 0 -22
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
requir... | gpl-3.0 |
letoram/awb | tools/vnc.lua | 1 | 9421 | --
-- VNC client management
-- Requires the 'remoting' avfeed- interface frameserver
-- or an external_alloc that has exposed that classid.
--
-- Possible ideas;
-- 1. keymap bind
-- 2. macro recording / playback
-- 3. button to zoom / reset zoom, region selector
-- on canvas, meta + mouse to pan
--
local bw_fif... | gpl-3.0 |
himamm/uzzbot | 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 |
Kthulupwns/darkstar | scripts/globals/weaponskills/ruinator.lua | 30 | 1646 | -----------------------------------
-- Ruinator
-- Axe weapon skill
-- Skill level: 357
-- Description: Delivers a four-hit attack. params.accuracy varies with TP
-- In order to obtain Ruinator, the quest Martial Mastery must be completed.
-- This Weapon Skill's first hit params.ftp is duplicated for all addition... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/loaf_of_white_bread.lua | 35 | 1278 | -----------------------------------------
-- ID: 4356
-- Item: loaf_of_white_bread
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 16
-- Dexterity -1
-- Vitality 3
-----------------------------------------
require("scripts/globals/status");
----------------------------... | gpl-3.0 |
mlody1039/ModernOts | data/npc/scripts/TP/Peter.lua | 2 | 1098 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/weaponskills/cloudsplitter.lua | 30 | 1393 | -----------------------------------
-- Cloudsplitter
-- Axe weapon skill
-- Skill level: NA
-- Description: Deals lightning elemental damage. Damage varies with TP. Farsha: Aftermath.
-- Available only when equipped with Farsha (85), Farsha (90) or Alard's Axe +1.
-- Elemental gorgets do not affect damage. Rairin... | gpl-3.0 |
ark120202/aabs | game/scripts/vscripts/libraries/modifiers/modifier_animation_translate.lua | 29 | 10463 | modifier_animation_translate = class({})
local _CODE_TO_ANIMATION_TRANSLATE = {
[0]= "loadout",
[1]= "split_shot",
[2]= "chemical_rage",
[3]= "agedspirit",
[4]= "aggressive",
[5]= "injured",
[6]= "ancient_armor",
[7]= "anvil",
[8]= "arcana",
[9]= "techies_arcana",
[10]= "fast",
[11]= "faster",
... | mit |
kuoruan/luci | applications/luci-app-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/widgets_overview.lua | 68 | 1868 | -- Copyright 2012 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
local uci = require "luci.model.uci".cursor()
local fs = require "nixio.fs"
local utl = require "luci.util"
m = Map("freifunk-widgets", translate("Widgets"),
translate("Configure installed widget... | apache-2.0 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ParticleBatchNode.lua | 10 | 3427 |
--------------------------------
-- @module ParticleBatchNode
-- @extend Node,TextureProtocol
-- @parent_module cc
--------------------------------
--
-- @function [parent=#ParticleBatchNode] setTexture
-- @param self
-- @param #cc.Texture2D texture
--------------------------------
-- disables a particle ... | mit |
shayanchabok555/tigerantispam007 | 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 |
Mleaf/mleaf_luci | contrib/luadoc/lua/luadoc/taglet/standard/tags.lua | 93 | 5221 | -------------------------------------------------------------------------------
-- Handlers for several tags
-- @release $Id: tags.lua,v 1.8 2007/09/05 12:39:09 tomas Exp $
-------------------------------------------------------------------------------
local luadoc = require "luadoc"
local util = require "luadoc.util"... | apache-2.0 |
Kthulupwns/darkstar | scripts/globals/items/bowl_of_boiled_cockatrice.lua | 35 | 1750 | -----------------------------------------
-- ID: 4547
-- Item: Bowl of Boiled Cockatrice
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Strength 5
-- Agility 2
-- Intelligence -1
-- Mind 1
-- Attack % 22
-- Attack Cap 60
-- Ranged ATT % 22
-- Ranged ATT Cap 60
--------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Castle_Oztroja/npcs/_47w.lua | 17 | 1264 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _47w (Handle)
-- Notes: Opens door _473 from behind
-- @pos -41.377 -17.084 17.036 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/z... | gpl-3.0 |
aliwar/migmig | 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... | agpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Windurst_Walls/npcs/Orudoba-Sondeba.lua | 38 | 1044 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Orudoba-Sondeba
-- Type: Standard NPC
-- @zone: 239
-- @pos 70.086 -3.503 -69.939
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-----... | gpl-3.0 |
LubyRuffy/haka | src/haka/lua/rule_group.lua | 3 | 2146 | -- 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/.
local class = require('class')
local check = require('check')
local rule = require('rule')
local rule_group = class.... | mpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Abyssea-Altepa/npcs/Cavernous_Maw.lua | 12 | 1141 | -----------------------------------
-- Area: Abyssea Altepa
-- NPC: Cavernous Maw
-- @pos 444.000 -0.500 320.000 218
-- Notes Teleports Players to South Gustaberg
-----------------------------------
package.loaded["scripts/zones/Abyssea-Altepa/TextIDs"] = nil;
-----------------------------------
------------... | gpl-3.0 |
Mleaf/mleaf_luci | libs/nixio/docsrc/nixio.lua | 151 | 15824 | --- General POSIX IO library.
module "nixio"
--- Look up a hostname and service via DNS.
-- @class function
-- @name nixio.getaddrinfo
-- @param host hostname to lookup (optional)
-- @param family address family [<strong>"any"</strong>, "inet", "inet6"]
-- @param service service name or port (optional)
-- @return ... | apache-2.0 |
hamed9898/uzzbott | 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 |
aa65535/luci | protocols/luci-proto-wireguard/luasrc/model/cbi/admin_network/proto_wireguard.lua | 3 | 4398 | -- Copyright 2016-2017 Dan Luedtke <mail@danrl.com>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local ifname = net:get_interface():name()
local private_key, listen_port
local metric, mtu, preshared_key
local peers, public_key, allowed_ips, endpoint, persistent_keepalive
-- ... | apache-2.0 |
Kthulupwns/darkstar | scripts/globals/weaponskills/last_stand.lua | 30 | 1763 | -----------------------------------
-- Skill Level: 357
-- Description: Attacks once or twice, depending on remaining ammunition. Damage dealt varies with TP.
-- If the first shot of the weapon skill does enough damage to defeat the target, the second shot will not be used.
-- To obtain Last Stand, the quest Martia... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Port_Bastok/npcs/Bodaway.lua | 12 | 1429 | -----------------------------------
-- Area: Port Bastok
-- NPC: Bodaway
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/zones/Port_Bastok/TextIDs");
-----------------------------------
-- onTrade Action
----------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/plate_of_urchin_sushi_+1.lua | 35 | 1530 | -----------------------------------------
-- ID: 5160
-- Item: plate_of_urchin_sushi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 40
-- Strength 1
-- Vitality 5
-- Accuracy % 16
-- Ranged ACC % 16
-- Sleep Resist 5
-----------------------------------------
requir... | gpl-3.0 |
aa65535/luci | protocols/luci-proto-qmi/luasrc/model/cbi/admin_network/proto_qmi.lua | 17 | 1270 | -- Copyright 2016 David Thornley <david.thornley@touchstargroup.com>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local device, apn, pincode, username, password
local auth, ipv6
device = section:taboption("general", Value, "device", translate("Modem device"))
device.rmempty ... | apache-2.0 |
bykoianko/omim | 3party/osrm/osrm-backend/profiles/testbot.lua | 69 | 3444 | -- Testbot profile
-- Moves at fixed, well-known speeds, practical for testing speed and travel times:
-- Primary road: 36km/h = 36000m/3600s = 100m/10s
-- Secondary road: 18km/h = 18000m/3600s = 100m/20s
-- Tertiary road: 12km/h = 12000m/3600s = 100m/30s
-- modes:
-- 1: normal
-- 2: route
-- 3: river downstream
... | apache-2.0 |
aa65535/luci | applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev.lua | 1 | 3954 | -- Copyright 2015 Jian Chang <aa65535@live.com>
-- Licensed to the public under the Apache License 2.0.
local m, s, o, e, a
if luci.sys.call("pidof ss-redir >/dev/null") == 0 then
m = Map("shadowsocks-libev", translate("ShadowSocks-libev"), translate("ShadowSocks-libev is running"))
else
m = Map("shadowsocks-libev"... | apache-2.0 |
WidgetInteractive/Scholar | libs/LibAddonMenu-2.0/controls/submenu.lua | 6 | 4317 | --[[submenuData = {
type = "submenu",
name = "Submenu Title", -- or string id or function returning a string
tooltip = "My submenu tooltip", -- -- or string id or function returning a string (optional)
controls = {sliderData, buttonData} --(optional) used by LAM
reference = "MyAddonSubmenu" --(... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Mhaura/npcs/Tya_Padolih.lua | 9 | 1425 | -----------------------------------
-- Area: Mhaura
-- NPC: Tya Padolih
-- Standard Merchant NPC
-- @pos -48 -4 30 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/Mhaura/... | gpl-3.0 |
xvaara/kong | kong/plugins/rate-limiting/daos.lua | 2 | 3183 | local BaseDao = require "kong.dao.cassandra.base_dao"
local cassandra = require "cassandra"
local timestamp = require "kong.tools.timestamp"
local ngx_log = ngx and ngx.log or print
local ngx_err = ngx and ngx.ERR
local tostring = tostring
local RateLimitingMetrics = BaseDao:extend()
function RateLimitingMetrics:new... | apache-2.0 |
telbbs/luci-0.12 | modules/admin-full/luasrc/model/cbi/admin_system/leds.lua | 83 | 3272 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
m = ... | apache-2.0 |
dpino/snabb | lib/luajit/src/jit/v.lua | 54 | 5783 | ----------------------------------------------------------------------------
-- Verbose mode of the LuaJIT compiler.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
-------------------------------------------------------------------------... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Cloister_of_Gales/npcs/Wind_Protocrystal.lua | 12 | 1793 | -----------------------------------
-- Area: Cloister of Gales
-- NPC: Wind Protocrystal
-- Involved in Quests: Trial by Wind, Trial Size Trial By Wind
-- @zone -361 1 -381 201
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Gales/TextIDs"] = nil;
-----------------------------------
requ... | gpl-3.0 |
aa65535/luci | applications/luci-app-clamav/luasrc/model/cbi/clamav.lua | 100 | 6776 | --[[
LuCI ClamAV module
Copyright (C) 2015, Itus Networks, Inc.
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
Author: Marko Ratkaj <marko.ratkaj@sar... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Temenos/npcs/Matter_Diffusion_Module.lua | 19 | 6043 | -----------------------------------
-- Area: temenos
-- NPC: Matter diffusion module
-- @pos
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/globals/keyitems");
require("scripts/zones/Te... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Attohwa_Chasm/npcs/HomePoint#1.lua | 12 | 1183 | -----------------------------------
-- Area: Attohwa Chasm
-- NPC: HomePoint#2
-- @pos
-----------------------------------
package.loaded["scripts/zones/Attohwa_Chasm/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Attohwa_Chasm/TextIDs");
require("scripts/globals/homepoint");
----... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Cloister_of_Flames/bcnms/sugar-coated_directive.lua | 13 | 1727 | ----------------------------------------
-- Area: Cloister of Flames
-- BCNM: Sugar Coated Directive (ASA-4)
-- @pos -721 0 -598 207
----------------------------------------
package.loaded["scripts/zones/Cloister_of_Flames/TextIDs"] = nil;
----------------------------------------
require("scripts/globals/keyitems");
r... | gpl-3.0 |
mrbangi/mmb | plugins/inrealm.lua | 9 | 17440 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_group_ch... | gpl-2.0 |
aa65535/luci | build/luadoc/luadoc/taglet/standard/tags.lua | 32 | 5542 | -------------------------------------------------------------------------------
-- Handlers for several tags
-- @release $Id: tags.lua,v 1.8 2007/09/05 12:39:09 tomas Exp $
-------------------------------------------------------------------------------
local luadoc = require "luadoc"
local util = require "luadoc.util"... | apache-2.0 |
WhiteBluePL/ourGame | og-core/systemID.lua | 1 | 1637 | ---------------------------------------------------------------------------------
-- Resource: og-core/systemID.lua
-- Author: .WhiteBlue (admin@og-rpg.eu)
-- Copyright (c) 2017 .WhiteBlue (admin@og-rpg.eu)
---------------------------------------------------------------------------------
-- settings
l... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Southern_San_dOria/npcs/Ominous_Cloud.lua | 19 | 5169 | -----------------------------------
-- Area: Southern Sandoria
-- NPC: Ominous Cloud
-- Type: Traveling Merchant NPC
-- @zone: 230
-- @pos -41.550 1.999 -2.845
--
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
------------... | gpl-3.0 |
punisherbot/punisherbot | plugins/minecraft.lua | 624 | 2605 | local usage = {
"!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565",
"!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.",
}
local ltn12 = require "ltn12"
local function mineSearch(ip, port, receiver) --25565
local responseText = ""
l... | gpl-2.0 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/LayerColor.lua | 10 | 1484 |
--------------------------------
-- @module LayerColor
-- @extend Layer,BlendProtocol
-- @parent_module cc
--------------------------------
-- change width and height in Points<br>
-- since v0.8
-- @function [parent=#LayerColor] changeWidthAndHeight
-- @param self
-- @param #float w
-- @param #float h
----... | mit |
Omar-Real/RealBot | plugins/Welcome.lua | 6 | 4396 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY OmarRea; ▀▄ ▄▀
▀▄ ▄▀ BY OmarReal (Omar_Real7) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY OmarReal ▀▄ ▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄▀▀... | gpl-2.0 |
Kthulupwns/darkstar | scripts/globals/items/roll_of_buche_au_chocolat.lua | 36 | 1521 | -----------------------------------------
-- ID: 5550
-- Item: Roll of Buche Au Chocolat
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +8
-- MP +3% Cap 13
-- Intelligence +2
-- HP Recovered while healing +1
-- MP Recovered while healing +4
-----------------------... | gpl-3.0 |
shkan/telebot | plugins/cpu.lua | 244 | 1893 | 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 |
Narthorn/reStrat | lib/LibCombatLogFixes-1.0/LibCombatLogFixes.lua | 3 | 11131 | --[[
Name: LibCombatLogFixes-1.0
Revision: $Revision: 1 $
Author: msc_
Inspired By: wow's halfdecent combat log event system ...
Dependencies: none
License: LibCombatLogFixes-1.0 is hereby placed in the Public Domain.
Usage: none, just load it in your toc.xml and register for the events enumerated below as you norma... | gpl-2.0 |
Kthulupwns/darkstar | scripts/globals/items/bowl_of_shimmy_soup.lua | 36 | 1323 | -----------------------------------------
-- ID: 5931
-- Item: Bowl of Shimmy Soup
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- MP 32
-- Mind 5
-- HP Recovered While Healing 5
-- Enmity -5
-----------------------------------------
require("scripts/globals/status");
-------------------... | gpl-3.0 |
rohanp/Algorithm-Implementations | Quick_Sort/Lua/Yonaba/quick_sort_test.lua | 27 | 1363 | -- Tests for quick_sort.lua
local quicksort = require 'quick_sort'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1 end
local... | mit |
mlody1039/ModernOts | data/npc/scripts/Azerus.lua | 2 | 6994 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) ... | gpl-3.0 |
MoofMonkey/Techies-Wars | scripts/vscripts/cheats.lua | 1 | 5434 | require("timers")
TechiesWars = GameRules.TechiesWars
function TechiesWars:TesterCheatsInit()
local desc = "Fuck logic, testers can do anything! Sv_cheats 1 too."
Convars:RegisterCommand("tester_cheat_attributes", function()
local player = Convars:GetCommandClient()
local playerID = player:GetPlayerID()
loc... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Saliyahf.lua | 34 | 1033 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Saliyahf
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
---------... | gpl-3.0 |
jamesbrink/sysdig | userspace/sysdig/chisels/v_kubernetes_controllers.lua | 6 | 3094 | --[[
Copyright (C) 2013-2014 Draios inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without... | gpl-2.0 |
Kthulupwns/darkstar | scripts/globals/abilities/light_arts.lua | 3 | 1360 | -----------------------------------
-- Ability: Light Arts
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- onUseAbility
-----------------------------------
function onAbilityCheck(player,target,ability)
if... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/holy_maul_+1.lua | 16 | 1036 | -----------------------------------------
-- ID: 17114
-- Item: Holy Maul +1
-- Additional Effect: Light Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
------------------------------... | gpl-3.0 |
Mleaf/mleaf_luci | protocols/ipv6/luasrc/model/cbi/admin_network/proto_6rd.lua | 53 | 2242 | --[[
LuCI - Lua Configuration Interface
Copyright 2011-2012 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/LICENSE-2.0
]]--
loc... | apache-2.0 |
Kthulupwns/darkstar | scripts/globals/spells/jubaku_san.lua | 11 | 1693 | -----------------------------------------
-- Spell: Jubaku: San
-- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and INT.
-- taken from paralyze
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
--------------------------... | gpl-3.0 |
Mleaf/mleaf_luci | modules/base/luasrc/model/uci.lua | 86 | 10653 | --[[
LuCI - UCI model
Description:
Generalized UCI model
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache... | apache-2.0 |
amenophis1er/prosody-modules | mod_checkcerts/mod_checkcerts.lua | 29 | 2809 | local ssl = require"ssl";
local datetime_parse = require"util.datetime".parse;
local load_cert = ssl.loadcertificate;
local st = require"util.stanza"
-- These are in days.
local nag_time = module:get_option_number("checkcerts_notify", 7) * 86400;
if not load_cert then
module:log("error", "This version of LuaSec (%s)... | mit |
Kthulupwns/darkstar | scripts/zones/The_Boyahda_Tree/npcs/HomePoint#1.lua | 12 | 1203 | -----------------------------------
-- Area: The Boyahda Tree
-- NPC: HomePoint#1
-- @pos 88 -15 -217 153
-----------------------------------
package.loaded["scripts/zones/The_Boyahda_Tree/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/The_Boyahda_Tree/TextIDs");
require("scripts/global... | gpl-3.0 |
Velkon/DarkRP | gamemode/modules/fpp/pp/client/buddies.lua | 4 | 4252 | FPP = FPP or {}
--Make buddies if not there
sql.Query("CREATE TABLE IF NOT EXISTS FPP_Buddies('steamid' TEXT NOT NULL, 'name' TEXT NOT NULL, 'physgun' INTEGER NOT NULL, 'gravgun' INTEGER NOT NULL, 'toolgun' INTEGER NOT NULL, 'playeruse' INTEGER NOT NULL, 'entitydamage' INTEGER NOT NULL, PRIMARY KEY('steamid'));")
FPP... | mit |
aa65535/luci | applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua | 3 | 19232 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
require("luci.ip")
require("luci.model.uci")
local knownParams = {
--
--Widget
-- Name
-- Default(s)
-- Description
-- Option(s)
{ "Service", {
-- initialisation and daemon options
{ ListValue,
"... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Port_San_dOria/npcs/Albinie.lua | 37 | 1468 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Albinie
-- Standard Merchant NPC
-- Working 100%
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/P... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Zyfhil.lua | 34 | 1031 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Zyfhil
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
-----------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/culinarians_belt.lua | 30 | 1201 | -----------------------------------------
-- ID: 15451
-- Item: Culinarian's Belt
-- Enchantment: Synthesis image support
-- 2Min, All Races
-----------------------------------------
-- Enchantment: Synthesis image support
-- Duration: 2Min
-- Alchemy Skill +3
-----------------------------------------
requi... | gpl-3.0 |
xvaara/kong | kong/dao/cassandra/schema/migrations.lua | 2 | 3787 | local Migrations = {
{
init = true,
name = "2015-01-12-175310_skeleton",
up = function(options, dao_factory)
local keyspace_name = options.keyspace
local strategy, strategy_properties = options.replication_strategy, ""
-- Format strategy options
if strategy == "SimpleStrategy" the... | apache-2.0 |
ark120202/aabs | game/scripts/vscripts/modules/hero_selection/client_actions.lua | 1 | 3998 | function HeroSelection:OnHeroSelectHero(data)
local hero = tostring(data.hero)
local playerId = data.PlayerID
if PlayerResource:IsPlayerAbandoned(playerId) then return end
if HeroSelection:GetState() == HERO_SELECTION_PHASE_BANNING and not PLAYER_DATA[playerId].HeroSelectionBanned and NPC_HEROES_CUSTOM[hero] and N... | mit |
Kthulupwns/darkstar | scripts/zones/Windurst_Waters/npcs/HomePoint#3.lua | 12 | 1200 | -----------------------------------
-- Area: Windurst Waters
-- NPC: HomePoint#3
-- @pos: 4 -4 -174 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Windurst_Waters/TextIDs");
require("scripts/globals/ho... | gpl-3.0 |
LuaDist/lzmq | examples/perf/thread_thr.lua | 16 | 3469 | -- Copyright (c) 2011 Robert G. Jakabosky <bobby@sharedrealm.com>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use,... | mit |
ark120202/aabs | game/scripts/vscripts/heroes/hero_saber/excalibur.lua | 1 | 3348 | saber_excalibur = class({})
function saber_excalibur:GetCastRange()
return self:GetSpecialValueFor(self:GetCaster():HasScepter() and "cast_range_scepter" or "cast_range")
end
if IsServer() then
function saber_excalibur:OnSpellStart()
self:GetCaster():EmitSound("Arena.Hero_Saber.Excalibur.Ex")
end
function saber_... | mit |
risteaandrei/price_checker | lib/civetweb/test/page3.lua | 10 | 1626 | -- This test checks if a query string has been given.
-- It sends the file identified by the query string.
-- Do not use it in a real server in this way!
if not mg.request_info.query_string then
mg.write("HTTP/1.0 200 OK\r\n")
mg.write("Connection: close\r\n")
mg.write("Content-Type: text/html; char... | lgpl-3.0 |
sirnuke/soup-kitchen-love | soup-kitchen/world/map.lua | 1 | 1737 | -- Soup Kitchen
-- Bryan DeGrendel (c) 2016
local tag = "Map"
require "pawns.pawn"
require "world.coordinate"
require "world.tile"
Map = Class("Map")
function Map:init()
self.Data = {}
for y = 1, Settings.Map.Dimensions.Height do
self.Data[y] = {}
for x = 1, Settings.Map.Dimensions.Width do
self... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Valkurm_Dunes/npcs/Quanteilleron_RK.lua | 28 | 3133 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: Quanteilleron, R.K.
-- Outpost Conquest Guards
-- @pos 144 -7 104 103
-------------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/conquest")... | gpl-3.0 |
GabrielNicolasAvellaneda/luvit-upstream | deps/path/base.lua | 3 | 10874 | --[[
Copyright 2014 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 or agr... | apache-2.0 |
Velkon/DarkRP | gamemode/modules/fadmin/fadmin/restrict/sv_restrict.lua | 11 | 2667 | sql.Query("CREATE TABLE IF NOT EXISTS FADMIN_RESTRICTEDENTS('TYPE' TEXT NOT NULL, 'ENTITY' TEXT NOT NULL, 'ADMIN_GROUP' TEXT NOT NULL, PRIMARY KEY(TYPE, ENTITY));")
local Restricted = {}
Restricted.Weapons = {}
local function RetrieveRestricted()
local Query = sql.Query("SELECT * FROM FADMIN_RESTRICTEDENTS") or {... | mit |
alioshii/KASBAR | plugins/welcome.lua | 4 | 3920 | --[[
# For More Information ....!
# Developer : Aziz < @devss_bot > #Dev
# our channel: @help_tele
]]
local add_user_cfg = load_from_file('data/add_user_cfg.lua')
local function template_add_user(base, to_username, from_username, chat_name, chat_id)
base = base or ''
to_username = '@' .. (to_username or ... | gpl-2.0 |
Kthulupwns/darkstar | scripts/globals/items/broiled_carp.lua | 35 | 1291 | -----------------------------------------
-- ID: 4586
-- Item: Broiled Carp
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Dexterity 2
-- Mind -1
-- Ranged ATT % 14
-----------------------------------------
require("scripts/globals/status");
---------------------------------... | gpl-3.0 |
Velkon/DarkRP | gamemode/modules/fadmin/fadmin/playeractions/voicemute/cl_init.lua | 4 | 2589 | hook.Add("PlayerBindPress", "FAdmin_voicemuted", function(ply, bind, pressed)
if ply:FAdmin_GetGlobal("FAdmin_voicemuted") and string.find(string.lower(bind), "voicerecord") then return true end
-- The voice muting is not done clientside, this is just so people know they can't talk
end)
FAdmin.StartHooks["Voic... | mit |
amenophis1er/prosody-modules | mod_roster_command/mod_roster_command.lua | 31 | 5484 | -----------------------------------------------------------
-- mod_roster_command: Manage rosters through prosodyctl
-- version 0.02
-----------------------------------------------------------
-- Copyright (C) 2011 Matthew Wild
-- Copyright (C) 2011 Adam Nielsen
--
-- This project is MIT/X11 licensed. Please see the
--... | mit |
Kthulupwns/darkstar | scripts/zones/Apollyon/mobs/Adamantshell.lua | 17 | 1260 | -----------------------------------
-- Area: Apollyon SE
-- NPC: Adamantshell
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
-----------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Tahrongi_Canyon/npcs/Dimensional_Portal.lua | 17 | 1413 | -----------------------------------
-- Area: Tahrongi_Canyon
-- NPC: Dimensional_Portal
-- @pos 260.000 35.150 340.000 117
-----------------------------------
package.loaded["scripts/zones/Tahrongi_Canyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scrip... | gpl-3.0 |
billypu/lua-lab | lua_stack_learning.lua | 1 | 1193 | #!/usr/local/bin/lua
package.cpath = package.cpath .. ";./?.so"
local d2pt = require ("ld2point")
print("start... ")
-- cpp_extend_func(nil)
-- for k, v in pairs(_G) do print(k, v) end
-- local val = 1
-- set_callback(function ()
-- -- body
-- print("in lua callback")
-- end)
-- set_callback = function (... | mit |
hadirahimi1380/danger | 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 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/CCBReader.lua | 10 | 3953 |
--------------------------------
-- @module CCBReader
-- @extend Ref
-- @parent_module cc
--------------------------------
--
-- @function [parent=#CCBReader] addOwnerOutletName
-- @param self
-- @param #string name
--------------------------------
--
-- @function [parent=#CCBReader] getOwnerCallbackNames... | mit |
LubyRuffy/haka | modules/protocol/http/http_utils.lua | 5 | 6141 | -- 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/.
local class = require('class')
local module = {}
module.uri = {}
module.cookies = {}
local _unreserved = table.di... | mpl-2.0 |
dios-game/dios-cocos-samples | src/lua-fantasy-warrior-3d/Resources/src/actors/Slime.lua | 9 | 4882 | require "GlobalVariables"
require "MessageDispatchCenter"
require "Helper"
require "AttackCommand"
local file = "model/slime/slime.c3b"
Slime = class("Slime", function()
return require "Actor".create()
end)
function Slime:ctor()
copyTable(ActorCommonValues, self)
copyTable(SlimeValues,self)
self._ang... | mit |
dios-game/dios-cocos-samples | src/lua-earth-warrior-3d/Resources/src/cocos/cocos2d/DrawPrimitives.lua | 98 | 12024 |
local dp_initialized = false
local dp_shader = nil
local dp_colorLocation = -1
local dp_color = { 1.0, 1.0, 1.0, 1.0 }
local dp_pointSizeLocation = -1
local dp_pointSize = 1.0
local SHADER_NAME_POSITION_U_COLOR = "ShaderPosition_uColor"
local targetPlatform = cc.Application:getInstance():getTargetPlatform()
lo... | mit |
junrw/ember-gsoc2012 | src/components/ogre/widgets/Bootstrap.lua | 1 | 5441 | --This script is the first one loaded. It's responsible for setting up utility objects, defining some utility functions and loading all scripts that should be loaded at start up
--set up some commonly used objects, these will be available to all scripts
--The main CEGUI system. This is the main channel for all CEGUI... | gpl-3.0 |
dreamsxin/otclient | data/locales/pt.lua | 5 | 21602 | locale = {
name = "pt",
charset = "cp1252",
languageName = "Português",
formatNumbers = true,
decimalSeperator = ',',
thousandsSeperator = '.',
-- As traduções devem vir sempre em ordem alfabética.
translation = {
["%d of experience per hour"] = "%d de experiência por hora",
["%s of experience... | mit |
Omar-Real/RealBot | data/config.lua | 4 | 7352 | do local _ = {
about_text = "\n",
enabled_plugins = {
"admin",
"kickbot",
"commands",
"group",
"banhammer",
"stats",
"anti_spam",
"arabic_lock",
"set",
"get",
"broadcast",
"invite",
"leave_ban",
"supergroup",
"whitelist",
"msg_checks",
"log-msgs",
... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.