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 |
|---|---|---|---|---|---|
Kthulupwns/darkstar | scripts/globals/spells/bluemagic/heat_breath.lua | 3 | 1149 | ---------------------------------------------
-- Heat Breath
---------------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/bluemagic");
---------------------------------------------
function onMagicCastingCheck(caster,target,spell)
... | gpl-3.0 |
Velkon/DarkRP | gamemode/modules/animations/sh_interface.lua | 13 | 1214 | DarkRP.addPlayerGesture = DarkRP.stub{
name = "addPlayerGesture",
description = "Add a player gesture to the DarkRP animations menu (the one that opens with the keys weapon.). Note: This function must be called BOTH serverside AND clientside!",
parameters = {
{
name = "anim",
... | mit |
Velkon/DarkRP | gamemode/modules/fadmin/fadmin/cl_interface/cl_scoreboardPlayer.lua | 3 | 9564 | FAdmin.ScoreBoard.Player.Information = {}
FAdmin.ScoreBoard.Player.ActionButtons = {}
function FAdmin.ScoreBoard.Player.Show(ply)
local OldPly = FAdmin.ScoreBoard.Player.Player
ply = ply or FAdmin.ScoreBoard.Player.Player
FAdmin.ScoreBoard.Player.Player = ply
if not IsValid(ply) or not IsValid(FAdmin.... | mit |
dannyfritz/projecteuler | 11/11.lua | 1 | 2785 | big_string =
[[99 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08
49 99 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00
81 49 31 73 55 79 14 29 93 71 40 67 53 88 30 03 49 13 36 65
52 70 95 23 04 60 11 42 69 24 68 56 01 32 56 71 37 02 36 91
22 31 16 71 51 67 63 89 41 92 36 54 22 40 40 28 66 33 13 80
24 47... | mit |
mlody1039/ModernOts | data/talkactions/scripts/dancing.lua | 1 | 2667 | local conf = {}
-- // config // ---
conf.danceTexts = {"GO GO DANCE!", "DANCE NOW!", "DANCE IS FUNY!"}
conf.textSpeed = 1500 -- how fast animated texts is sending?
conf.danceSpeed = 100 -- dance speed
conf.outfitSpeed = 250 -- outfit changer speed
conf.outfitMale = {128, 129, 130, 131, 132, 133, 134... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Iruki-Waraki.lua | 38 | 2851 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Iruki-Waraki
-- Type: Standard NPC
-- Involved in quest: No Strings Attached
-- @pos 101.329 -6.999 -29.042 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-------------------------... | gpl-3.0 |
dpino/snabb | src/program/packetblaster/replay/replay.lua | 14 | 1568 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(..., package.seeall)
local config = require("core.config")
local basic_apps = require("apps.basic.basic_apps")
local main = require("core.main")
local PcapReader = require("apps.pcap.pcap").PcapReader
local lib = re... | apache-2.0 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/DisplayManager.lua | 10 | 4423 |
--------------------------------
-- @module DisplayManager
-- @extend Ref
-- @parent_module ccs
--------------------------------
--
-- @function [parent=#DisplayManager] getDisplayRenderNode
-- @param self
-- @return Node#Node ret (return value: cc.Node)
--------------------------------
--
-- @function [p... | mit |
suhongrui/gitlab | vendor/bundle/ruby/2.1.0/gems/wikicloth-0.8.1/lib/wikicloth/extensions/lua/luawrapper.lua | 3 | 6587 | -- Lua parser extensions for MediaWiki - Wrapper for Lua interpreter
-- (c) 2008 Fran Rogers - see 'COPYING' for license
-- Creates a new sandbox environment for scripts to safely run in.
function make_sandbox()
-- Dummy function that returns nil, to quietly replace unsafe functions
local function dummy(...)
r... | mit |
kuoruan/luci | applications/luci-app-ngrokc/luasrc/model/cbi/ngrokc/overview.lua | 2 | 4226 | -- Mantainer : maz-1 < ohmygod19993 at gmail dot com >
m = Map("ngrokc", translate("Ngrok"),translate("Secure tunnels to localhost."))
local apply = luci.http.formvalue("cbi.apply")
if apply then
os.execute("/etc/init.d/ngrokc reload &") --... | apache-2.0 |
Kthulupwns/darkstar | scripts/globals/items/bowl_of_mushroom_soup.lua | 35 | 1384 | -----------------------------------------
-- ID: 4419
-- Item: mushroom_soup
-- Food Effect: 3hours, All Races
-----------------------------------------
-- Magic Points 20
-- Strength -1
-- Mind 2
-- MP Recovered While Healing 1
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
himamm/uzzbot | plugins/bugzilla.lua | 611 | 3983 | do
local BASE_URL = "https://bugzilla.mozilla.org/rest/"
local function bugzilla_login()
local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password
print("accessing " .. url)
local res,code = https.request( url )
local data = json:decode(res)
return data
... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Gusgen_Mines/Zone.lua | 30 | 1811 | -----------------------------------
--
-- Zone: Gusgen_Mines (196)
--
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Gusgen_Mines/Te... | gpl-3.0 |
rohanp/Algorithm-Implementations | Breadth_First_Search/Lua/Yonaba/bfs_test.lua | 26 | 2339 | -- Tests for bfs.lua
local BFS = require 'bfs'
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 same(t, p, comp)
for k,v in ipairs(t) do
if not comp(v, p[k]) then return false end
end
return true
end
... | mit |
fegimanam/kurdbot | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Windurst_Waters/npcs/Paku-Nakku.lua | 36 | 1422 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Paku-Nakku
-- Involved in Quest: Making the Grade
-- Working 100%
-- @zone = 238
-- @pos = 127 -6 165
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
... | gpl-3.0 |
kuoruan/luci | applications/luci-app-splash/luasrc/model/cbi/splash/splashtext.lua | 78 | 1663 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2010 Manuel Munz <freifunk@somakoma.de>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local splashtextfile = "/usr/lib/luci-splash/splashtext.html"
local splash... | apache-2.0 |
dpino/snabb | src/lib/lpm/lpm.lua | 9 | 3780 | module(..., package.seeall)
local ffi = require("ffi")
local C = ffi.C
local lib = require("core.lib")
ffi.cdef([[
void free(void *ptr);
void *malloc(int size);
]])
LPM = {}
function LPM:new()
return setmetatable({ alloc_map = {} }, { __index = self })
end
function LPM:alloc (name, ctype, count, idx)
local id... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/PsoXja/npcs/HomePoint#1.lua | 12 | 1170 | -----------------------------------
-- Area: PsoXja
-- NPC: HomePoint#1
-- @pos -58 40 14 10
-----------------------------------
package.loaded["scripts/zones/FeiYin/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/FeiYin/TextIDs");
require("scripts/globals/homepoint");
-----------------... | gpl-3.0 |
telbbs/luci-0.12 | applications/luci-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua | 76 | 5638 | --[[
Luci diag - Diagnostics controller module
(c) 2009 Daniel Dickinson
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
]]--
module("luci.cont... | apache-2.0 |
Mleaf/mleaf_luci | applications/luci-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua | 76 | 5638 | --[[
Luci diag - Diagnostics controller module
(c) 2009 Daniel Dickinson
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
]]--
module("luci.cont... | apache-2.0 |
jlopenwrtluci/luci | protocols/luci-proto-3g/luasrc/model/cbi/admin_network/proto_3g.lua | 52 | 4346 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local device, apn, service, pincode, username, password, dialnumber
local ipv6, maxwait, defaultroute, metric, peerdns, dns,
keepalive_failure, keepalive_interval, demand
d... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Xarcabard/npcs/Heavy_Bear_IM.lua | 30 | 3041 | -----------------------------------
-- Area: Xarcabard
-- NPC: Heavy Bear, I.M.
-- Type: Border Conquest Guards
-- @pos -133.678 -22.517 112.224 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
req... | gpl-3.0 |
Crutiatix/TICuare | examples/sliders.lua | 1 | 14161 | -- title: TICuare
-- author: Crutiatix
-- desc: UI library for TIC-80 v0.4.0
-- script: lua
-- input: mouse
-- Based on Uare (c) 2015 Ulysse Ramage
-- Copyright (c) 2017 Crutiatix
-- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files... | mit |
AttacqueSuperior/Engine | mods/ra/maps/sarin-gas-1-crackdown/crackdown-AI.lua | 2 | 2806 | --[[
Copyright 2007-2021 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 |
Kthulupwns/darkstar | scripts/zones/Windurst_Woods/npcs/Spare_Two.lua | 19 | 1505 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Spare Two
-- Working 100%
-- Involved in quest: A Greeting Cardian
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/globals/quests"] = nil;
require("scripts/globals/quests");
package.loaded["... | gpl-3.0 |
jamesbrink/sysdig | userspace/sysdig/chisels/bottlenecks.lua | 6 | 2552 | --[[
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/zones/Beaucedine_Glacier_[S]/npcs/Gray_Colossus_LC.lua | 38 | 1071 | -----------------------------------
-- Area: Beaucedine Glacier (S)
-- NPC: Gray Colossus, L.C.
-- Type: Campaign Arbiter
-- @zone: 136
-- @pos 76.178 -60.763 -48.775
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Kazham/npcs/Kobhi_Sarhigamya.lua | 34 | 1061 | ----------------------------------
-- Area: Kazham
-- NPC: Kobhi Sarhigamya
-- Type: Item Deliverer
-- @zone: 250
-- @pos -115.29 -11 -22.609
--
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-------------------------... | gpl-3.0 |
moltafet35/seeh | plugins/banhammer.lua | 214 | 11956 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
dpino/snabb | lib/pflua/src/pf/bpf.lua | 11 | 15210 | module(...,package.seeall)
local ffi = require("ffi")
local bit = require("bit")
local band = bit.band
local verbose = os.getenv("PF_VERBOSE");
local function BPF_CLASS(code) return band(code, 0x07) end
local BPF_LD = 0x00
local BPF_LDX = 0x01
local BPF_ST = 0x02
local BPF_STX = 0x03
local BPF_ALU = 0x04
loca... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Northern_San_dOria/npcs/Arachagnon.lua | 36 | 1818 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Arachagnon
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Windurst_Woods/npcs/Gioh_Ajihri.lua | 36 | 2813 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Gioh Ajihri
-- Starts & Finishes Repeatable Quest: Twinstone Bonding
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
requ... | gpl-3.0 |
xvaara/kong | kong/cli/services/dnsmasq.lua | 3 | 1564 | local BaseService = require "kong.cli.services.base_service"
local logger = require "kong.cli.utils.logger"
local IO = require "kong.tools.io"
local Dnsmasq = BaseService:extend()
local SERVICE_NAME = "dnsmasq"
function Dnsmasq:new(configuration)
self._configuration = configuration
Dnsmasq.super.new(self, SERVIC... | apache-2.0 |
kaeza/love-klib | klib/classes/init.lua | 1 | 5818 |
local function module(name)
name = assert(type(assert(name, "Name needed"))
== "string" and name, "Name must be a string")
return setmetatable({
_NAME = name,
__name = name,
}, { __type = "module" })
end
local m = module "klib.classes"
m.classes = { }
m.module = module
local lua_type = type
local lua_tostr... | bsd-2-clause |
ma137292/mostafa-Bot | plugins/inrealm.lua | 850 | 25085 | -- 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_g... | gpl-2.0 |
dpino/snabb | lib/ljsyscall/syscall/openbsd/c.lua | 24 | 1625 | -- This sets up the table of C functions
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string
local abi = require ... | apache-2.0 |
MoofMonkey/Techies-Wars | scripts/vscripts/timers.lua | 2 | 5339 | --[[
-- A timer running every second that starts immediately on the next frame, respects pauses
Timers:CreateTimer(function()
print ("Hello. I'm running immediately and then every second thereafter.")
return 1.0
end
)
-- A timer running every second that starts 5 seconds in the future, respects ... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Everbloom_Hollow/Zone.lua | 36 | 1125 | -----------------------------------
--
-- Zone: Everbloom_Hollow
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Everbloom_Hollow/TextIDs"] = nil;
require("scripts/zones/Everbloom_Hollow/TextIDs");
-----------------------------------
-- onInitial... | gpl-3.0 |
LuaDist2/otp | spec/hotp_spec.lua | 3 | 1427 | local otp = require"otp"
local sample_counter = 256
local sample_key = "hotp:1:lbKiV5EPVZgWXJ+YYSIJ:6:256:"
local sample_key_b32 = "SWZKEV4RB5KZQFS4T6MGCIQJ"
local sample_key_url = "otpauth://hotp/lua%20otp:J%C3%A9r%C3%A9my?secret=SWZKEV4RB5KZQFS4T6MGCIQJ&issuer=82a9cfef2760fa&counter=258&digits=6"
local expected_code... | mit |
amenophis1er/prosody-modules | mod_http_index/mod_http_index.lua | 31 | 3606 | local st = require "util.stanza";
local url = require"socket.url";
module:depends"http";
-- local dump = require"util.serialization".new"dump".serialize;
local function template(data)
--[[ DOC
Like util.template, but deals with plain text
Returns a closure that is called with a table of values
{name} is substitu... | mit |
Kthulupwns/darkstar | scripts/zones/Giddeus/npcs/Harvesting_Point.lua | 29 | 1095 | -----------------------------------
-- Area: Giddeus
-- NPC: Harvesting Point
-----------------------------------
package.loaded["scripts/zones/Giddeus/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/harvesting");
require("scripts/zones/Giddeus/TextIDs");
-----------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/qm1.lua | 17 | 1639 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: ???
-- Involved in Quests: Acting in Good Faith
-- @zone 195
-- @pos -17 0 59 (I-10)
-- @pos
-- @pos
-- @pos
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
--------------... | gpl-3.0 |
ZeroNoFun/The-Aperture | lua/weapons/gmod_tool/stools/aperture_science_tractor_beam.lua | 2 | 3873 | TOOL.Category = "Aperture Science"
TOOL.Name = "#tool.aperture_science_tractor_beam.name"
TOOL.ClientConVar[ "startenabled" ] = "0"
TOOL.ClientConVar[ "startreversed" ] = "0"
if ( CLIENT ) then
language.Add( "tool.aperture_science_tractor_beam.name", "Exursion Funnel" )
language.Add( "tool.aperture_science_tractor... | mit |
dios-game/dios-cocos-samples | src/lua-earth-warrior-3d/Resources/src/cocos/ui/DeprecatedUIFunc.lua | 39 | 7289 | --tip
local function deprecatedTip(old_name,new_name)
print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********")
end
--functions of ccui.Text will be deprecated begin
local TextDeprecated = { }
function TextDeprecated.setText(self, str)
deprecatedTip("ccui.Text:setT... | mit |
Kthulupwns/darkstar | scripts/zones/Monastic_Cavern/npcs/Magicite.lua | 19 | 1595 | -----------------------------------
-- Area: Monastic Cavern
-- NPC: Magicite
-- Involved in Mission: Magicite
-- @pos -22 1 -66 150
-----------------------------------
package.loaded["scripts/zones/Monastic_Cavern/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scri... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/West_Ronfaure/npcs/qm4.lua | 9 | 1635 | -----------------------------------
-- Area: West Ronfaure
-- NPC: qm4 (???)
-- Involved in Quest: The Dismayed Customer
-- @pos -399 -10 -438 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/sett... | gpl-3.0 |
OXGaming/oxscripts | src/013-targeter.lua | 1 | 1104 | Targeter = (function()
-- Imports
local clearTimeout = Core.clearTimeout
local setInterval = Core.setInterval
local getDistanceBetween = Core.getDistanceBetween
local function targetingGetCreatureThreshold(list, range, amount, multifloor, floor)
local targets = {}
local count = 0
local pos = xeno.getSelf... | gpl-2.0 |
mlody1039/ModernOts | data/npc/scripts/Petros.lua | 1 | 3358 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function ... | gpl-3.0 |
alioshii/KASBAR | data/config.lua | 6 | 8755 | do local _ = {
about_text = "Teleseed v4\nAn advanced administration bot based on TG-CLI written in Lua\n\nhttps://github.com/SEEDTEAM/TeleSeed\n\nAdmins\n@iwals [Founder]\n@imandaneshi [Developer]\n@POTUS [Developer]\n@seyedan25 [Manager]\n@aRandomStranger [Admin]\n\nSpecial thanks to\nawkward_potato\nSiyanew\ntopke... | gpl-2.0 |
dpino/snabb | lib/pflua/tests/pfquickcheck/pflua_ir.lua | 25 | 1989 | #!/usr/bin/env luajit
-- -*- lua -*-
-- This module generates (a subset of) pflua's IR,
-- for property-based tests of pflua internals.
module(..., package.seeall)
local choose = require("pf.utils").choose
local True, False, Fail, ComparisonOp, BinaryOp, Number, Len
local Binary, Arithmetic, Comparison, Conditional
-... | apache-2.0 |
VanessaE/minetest_game | mods/creative/inventory.lua | 12 | 5994 | local player_inventory = {}
function creative.init_creative_inventory(player)
local player_name = player:get_player_name()
player_inventory[player_name] = {
size = 0,
filter = "",
start_i = 0
}
minetest.create_detached_inventory("creative_" .. player_name, {
allow_move = function(inv, from_list, from_inde... | lgpl-2.1 |
LuaDist2/lj2procfs | lj2procfs/procfs.lua | 3 | 1639 | --procfs.lua
local fs = require("lj2procfs.fs-util")
local libc = require("lj2procfs.libc")
local fun = require("lj2procfs.fun")
local ProcessEntry = require("lj2procfs.ProcessEntry")
-- take a table with a 'Name' field, which
-- should be a numeric value, and return the
-- ProcessEntry for it
local function toProc... | mit |
telbbs/luci-0.12 | modules/base/luasrc/http/protocol/mime.lua | 88 | 2933 | --[[
HTTP protocol implementation for LuCI - mime handling
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Apollyon/mobs/Grave_Digger.lua | 33 | 1024 | -----------------------------------
-- Area: Apollyon SE
-- NPC: Grave_Digger
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Apollyon/TextIDs");
-----------------------------------
-- onMobSpawn Action... | gpl-3.0 |
Alig96/nzombies | nzombies3/gamemode/display/cl_hud.lua | 1 | 3330 | //
function nz.Display.Functions.StatesHud()
local text = ""
local font = "nz.display.hud.main"
local w = ScrW() / 2
if nz.Rounds.Data.CurrentState == ROUND_INIT then
text = "Waiting for players. Type /ready to ready up."
font = "nz.display.hud.small"
elseif nz.Rounds.Data.CurrentState == ROUND_PREP then
if... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/abilities/pets/zantetsuken.lua | 6 | 1391 | ---------------------------------------------------
-- Zantetsuken
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
require("/scripts/globals/magic");
-------------------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/apple_pie_+1.lua | 35 | 1305 | -----------------------------------------
-- ID: 4320
-- Item: Apple Pie +1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Magic 30
-- Intelligence 4
-- Magic Regen While Healing 2
-----------------------------------------
require("scripts/globals/status");
-----------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Southern_San_dOria/npcs/Moozo-Koozo.lua | 15 | 5033 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Moozo-Koozo
-- Title Change NPC
-- @pos 83 0 120 230
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
requir... | gpl-3.0 |
mlody1039/ModernOts | data/npc/scripts/TP/boat_cormaya.lua | 2 | 2139 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function ... | gpl-3.0 |
danShumway/Piglet | Piglet/Deciders/Outdated/default.lua | 1 | 5330 | --
--Copyright Daniel Shumway, 2014
--Licensed under GNU affero general public license
--http://www.gnu.org/licenses/agpl-3.0.html
--
--make our decider object
local decider = {}
--++++++++++++++++++++PUBLIC+++++++++++++++++++++++++++++++
---VARIABLES
decider.Experimenting = false; --Are we trying something new or u... | agpl-3.0 |
mlody1039/ModernOts | data/npc/scripts/TP/tarakinner.lua | 1 | 1365 | 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 |
alioshii/KASBAR | plugins/en-badword.lua | 5 | 3119 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY jOker ▀▄ ▄▀
▀▄ ▄▀ BY joker (@fuck_8_you) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY joker ▀▄ ▄▀
▀▄ ▄▀ broadcast : منع كلمات ▀▄ ▄▀
▀▄▀... | gpl-2.0 |
Kthulupwns/darkstar | scripts/globals/effects/sentinel.lua | 33 | 1291 | -----------------------------------
--
-- EFFECT_SENTINEL
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_UDMGPHYS,-effect:getP... | gpl-3.0 |
lcagustini/globaljam | src/lib/vector.lua | 20 | 5319 | --[[
Copyright (c) 2010-2013 Matthias Richter
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, dis... | mit |
Kthulupwns/darkstar | scripts/zones/Lower_Jeuno/npcs/Gurdern.lua | 34 | 1374 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Gurdern
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Lower_Jeuno/TextIDs");
require("scripts/globals/quests");
-... | gpl-3.0 |
mlody1039/ModernOts | data/creaturescripts/scripts/empe_broken.lua | 1 | 1388 | dofile("./_woe.lua")
local config = woe_config
function onDeath(cid, corpse, deathList)
local killer = deathList[1]
Woe.getInfo()
if Woe.isTime() then
if isPlayer(killer) == true then
if Woe.isRegistered(killer) then
local Guild_ID = getPlayerGuildId(killer)
Woe.updateInfo({infoLua[1], Guild_ID, getP... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Southern_San_dOria/npcs/Kipopo.lua | 11 | 1778 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Kipopo
-- Type: Leathercraft Synthesis Image Support
-- @pos -191.050 -2.15 12.285 230
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/divine_sword.lua | 16 | 1035 | -----------------------------------------
-- ID: 16549
-- Item: Divine Sword
-- Additional Effect: Light Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
------------------------------... | gpl-3.0 |
daurnimator/luasodium | sodium/crypto_box.lua | 2 | 4676 | local ffi = require "ffi"
local lib = ffi.load "sodium"
ffi.cdef [[
size_t crypto_box_curve25519xsalsa20poly1305_publickeybytes(void);
size_t crypto_box_curve25519xsalsa20poly1305_secretkeybytes(void);
size_t crypto_box_curve25519xsalsa20poly1305_beforenmbytes(void);
size_t crypto_box_curve25519xsalsa20poly1305_nonceb... | mit |
Kthulupwns/darkstar | scripts/globals/weaponskills/seraph_strike.lua | 30 | 1314 | -----------------------------------
-- Seraph Strike
-- Club weapon skill
-- Skill level: 40
-- Deals light elemental damage to enemy. Damage varies with TP.
-- Aligned with the Thunder Gorget.
-- Aligned with the Thunder Belt.
-- Element: None
-- Modifiers: STR:40% ; MND:40%
-- 100%TP 200%TP 300%TP
-- ... | gpl-3.0 |
mlody1039/ModernOts | data/npc/scripts/barbarian2.lua | 1 | 3515 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) en... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Ilrusi_Atoll/Zone.lua | 36 | 1453 | -----------------------------------
--
-- Zone: Ilrusi_Atoll
-- zone 55
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Ilrusi_Atoll/TextIDs"] = nil;
require("scripts/zones/Ilrusi_Atoll/TextIDs");
require("scripts/globals/settings");
------------------... | gpl-3.0 |
Velkon/DarkRP | gamemode/modules/fadmin/fadmin/cl_interface/sh_commontimes.lua | 4 | 1815 | /*---------------------------------------------------------------------------
Common times for several punishment actions
---------------------------------------------------------------------------*/
FAdmin.PlayerActions.commonTimes = {}
FAdmin.PlayerActions.commonTimes[0] = "Indefinitely"
FAdmin.PlayerActions.commonTi... | mit |
Kthulupwns/darkstar | scripts/globals/abilities/pets/flaming_crush.lua | 6 | 1348 | ---------------------------------------------------
-- Flaming Crush M=10, 2, 2? (STILL don't know)
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/summon");
require("/scripts/globals/magic");
require("/scri... | gpl-3.0 |
Mahyar0098/Cj-Bot | bot/seedbot.lua | 1 | 10267 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '2'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
return... | gpl-2.0 |
a-wortman/blingbling | config_example/grey_blue/theme.lua | 2 | 8371 | ---------------------------
-- Default awesome theme --
---------------------------
theme = {}
theme.font = "Cantarell 10"
theme.bg_normal = "#333333"
theme.bg_focus = "#2099d6"--"#535d6c"
theme.bg_urgent = "#ff0000"
theme.bg_minimize = "#444444"
theme.bg_systray = theme.bg_normal
theme.f... | gpl-2.0 |
Kthulupwns/darkstar | scripts/globals/items/plate_of_barnacle_paella.lua | 36 | 1576 | -----------------------------------------
-- ID: 5974
-- Item: Plate of Barnacle Paella
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- HP 40
-- Vitality 5
-- Mind -1
-- Charisma -1
-- Defense % 25 Cap 150
-- Undead Killer 5
-----------------------------------------
require("scripts/globa... | gpl-3.0 |
Nehmulos/knight-game | cocos2d/cocos/scripting/lua/script/extern.lua | 48 | 2506 | function clone(object)
local lookup_table = {}
local function _copy(object)
if type(object) ~= "table" then
return object
elseif lookup_table[object] then
return lookup_table[object]
end
local new_table = {}
lookup_table[object] = new_table
... | gpl-3.0 |
ark120202/aabs | game/scripts/vscripts/heroes/hero_cherub/flower_garden.lua | 1 | 7222 | LinkLuaModifier("modifier_cherub_flower_garden_barrier", "heroes/hero_cherub/modifiers/modifier_cherub_flower_garden_barrier", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_cherub_flower_garden_tracker", "heroes/hero_cherub/modifiers/modifier_cherub_flower_garden_tracker", LUA_MODIFIER_MOTION_NONE)
function Crea... | mit |
shayanchabok555/tigerantispam007 | bot/utils.lua | 239 | 13499 | 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")()
http.TIMEOUT = 10
funct... | gpl-2.0 |
punisherbot/punisherbot | bot/utils.lua | 239 | 13499 | 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")()
http.TIMEOUT = 10
funct... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Riverne-Site_B01/npcs/_0t1.lua | 19 | 1338 | -----------------------------------
-- Area: Riverne Site #B01
-- NPC: Unstable Displacement
-----------------------------------
package.loaded["scripts/zones/Riverne-Site_B01/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Riverne-Site_B01/Text... | gpl-3.0 |
AGTMADCAT/naev | dat/events/tutorial/tutorial-combat1.lua | 11 | 11401 | -- This is the tutorial: basic combat.
include("dat/events/tutorial/tutorial-common.lua")
-- localization stuff, translators would work here
lang = naev.lang()
if lang == "es" then
else -- default english
title1 = "Tutorial: Basic Combat"
message1 = [[Welcome to the basic combat tutorial.
Combat is an import... | gpl-3.0 |
manamkasibodam/kdonsnke | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
dpino/snabb | lib/luajit/dynasm/dasm_x86.lua | 32 | 71256 | ------------------------------------------------------------------------------
-- DynASM x86/x64 module.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
local x64 = x64
-- Module i... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Upper_Jeuno/npcs/Chocobo.lua | 17 | 5581 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Chocobo
-- Finishes Quest: Chocobo's Wounds
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
package.loaded["scripts/globals/settings"] = nil;
-----------------------------------
require("scripts/glo... | gpl-3.0 |
mlody1039/ModernOts | data/npc/scripts/TP/forbidden.lua | 1 | 1309 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function ... | gpl-3.0 |
dpino/snabb | src/lib/protocol/ipv6.lua | 7 | 5307 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(..., package.seeall)
local ffi = require("ffi")
local C = ffi.C
local lib = require("core.lib")
local header = require("lib.protocol.header")
local htons, ntohs = lib.htons, lib.ntohs
local AF_INET6 = 10
local INET6_ADDRSTRLEN = 48
... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Xarcabard/npcs/Pilcha_RK.lua | 30 | 3043 | -----------------------------------
-- Area: Xarcabard
-- NPC: Pilcha, R.K.
-- Type: Border Conquest Guards
-- @pos -133.678 -22.517 112.224 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
require... | gpl-3.0 |
danShumway/Piglet | Piglet/Observers/watcher.lua | 2 | 4378 | --
--Copyright Daniel Shumway, 2014
--Licensed under GNU affero general public license
--http://www.gnu.org/licenses/agpl-3.0.html
--
dofile('../observers/tests/ChangerTest.lua')
local observer = {}
--The only data we'll actually store.
observer.lastFrame = false
observer.lastInput = false
observer.currentInput = {... | agpl-3.0 |
danShumway/Piglet | Piglet/Observers/previous/watcher.lua | 2 | 4378 | --
--Copyright Daniel Shumway, 2014
--Licensed under GNU affero general public license
--http://www.gnu.org/licenses/agpl-3.0.html
--
dofile('../observers/tests/ChangerTest.lua')
local observer = {}
--The only data we'll actually store.
observer.lastFrame = false
observer.lastInput = false
observer.currentInput = {... | agpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Bastok_Mines/npcs/Abd-al-Raziq.lua | 9 | 2433 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Abd-al-Raziq
-- Type: Alchemy Guild Master
-- @pos 126.768 1.017 -0.234 234
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/crafting");
require... | gpl-3.0 |
Mleaf/mleaf_luci | modules/admin-full/luasrc/model/cbi/admin_network/iface_add.lua | 79 | 3091 | --[[
LuCI - Lua Configuration Interface
Copyright 2009-2010 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
$Id$
]]... | apache-2.0 |
FPtje/DarkRP | gamemode/modules/fadmin/fadmin/playeractions/cloak/sv_init.lua | 1 | 3097 | local CloakThink
local function Cloak(ply, cmd, args)
local targets = FAdmin.FindPlayer(args[1]) or {ply}
for _, target in pairs(targets) do
if not FAdmin.Access.PlayerHasPrivilege(ply, "Cloak", target) then FAdmin.Messages.SendMessage(ply, 5, "No access!") return false end
if IsValid(target) ... | mit |
Kthulupwns/darkstar | scripts/globals/weaponskills/black_halo.lua | 30 | 1536 | -----------------------------------
-- Black Halo
-- Club weapon skill
-- Skill level: 230
-- In order to obtain Black Halo, the quest Orastery Woes must be completed.
-- Delivers a two-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Shadow Gorget, Thunder Gorget & Breeze ... | gpl-3.0 |
mlody1039/ModernOts | data/npc/scripts/Chemar.lua | 1 | 2618 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) ... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Valkurm_Dunes/npcs/qm1.lua | 17 | 1247 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: qm1 (???)
-- Involved In Quest: An Empty Vessel
-- @pos 238.524 2.661 -148.784 103
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Val... | gpl-3.0 |
AGTMADCAT/naev | dat/missions/dvaered/dv_antiflf02.lua | 11 | 14334 | --[[
-- This is the second mission in the anti-FLF Dvaered campaign. The player is part of a Dvaered plot to smoke out the FLF base.
-- stack variable flfbase_intro:
-- 1 - The player has turned in the FLF agent or rescued the Dvaered crew. Conditional for dv_antiflf02
-- 2 - The player has rescued the FLF ag... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/weaponskills/decimation.lua | 30 | 1511 | -----------------------------------
-- Decimation
-- Axe weapon skill
-- Skill level: 240
-- In order to obtain Decimation, the quest Axe the Competition must be completed.
-- Delivers a three-hit attack. params.accuracy varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Flame Gorget, Light Gor... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.