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
hussian1997/hk-_bot
plugins/set_type.lua
8
1166
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY(@AHMED_ALOBIDE) ▀▄ ▄▀ ▀▄ ▄▀ BY(@hussian_9) ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄▀...
gpl-2.0
Noltari/openwrt-packages
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/nat_traffic.lua
79
1251
local function scrape() -- documetation about nf_conntrack: -- https://www.frozentux.net/iptables-tutorial/chunkyhtml/x1309.html nat_metric = metric("node_nat_traffic", "gauge" ) for e in io.lines("/proc/net/nf_conntrack") do -- output(string.format("%s\n",e )) local fields = space_split(e) local ...
gpl-2.0
andeandr100/Crumbled-World
Lua/Menu/MainMenu/lobbyUserListPanel.lua
1
10400
require("Menu/MainMenu/mainMenuStyle.lua") --this = SceneNode() LobbyUserListPanel = {} function LobbyUserListPanel.new(panel, client) local self = {} local mainPanel local spectatorPanel local spectatorLabel local userData local aClient = client local maxPlayers = 128 local playerRowPanel = {} l...
mit
boundary/boundary-plugin-redis
init.lua
1
4676
-- Copyright 2015 Boundary, 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 -- -- Unless required by applicable law or agreed to i...
apache-2.0
kikito/Algorithm-Implementations
Hamming_Weight/Lua/Yonaba/hamming_weight.lua
27
1422
-- Hamming weight implementation -- See: http://en.wikipedia.org/wiki/Hamming_weight -- Assertion test for the bitwise implementation being used local function checkBitImplementation(bit) local msg = 'Failed testing bitwise implementation' assert(bit.bnot ~= nil, msg) assert(bit.lshift ~= n...
mit
pieterjm/PebbleDissector
pebbe.lua
1
4607
-- A simple Pebble protocol dissector pebble_proto = Proto("pebble","Pebble Protocol") pebble_endpoint = ProtoField.uint16("pebble.endpoint","Endpoint") pebble_length = ProtoField.uint16("pebble.length","Length") lookup_tuple_type = { [0] = "BYTE_ARRAY", [1] = "CSTRING", [2] = "UINT", [3] = "INT" } looku...
gpl-2.0
dacrybabysuck/darkstar
scripts/commands/godmode.lua
9
3028
--------------------------------------------------------------------------------------------------- -- func: godmode -- desc: Toggles god mode on the player, granting them several special abilities. --------------------------------------------------------------------------------------------------- cmdprops = { per...
gpl-3.0
pSyChOoOo/TeleSeed
.luarocks/share/lua/5.2/luarocks/fetch/sscm.lua
20
1888
--- Fetch back-end for retrieving sources from Surround SCM Server --module("luarocks.fetch.sscm", package.seeall) local sscm = {} local fs = require("luarocks.fs") local dir = require("luarocks.dir") --- Download sources via Surround SCM Server for building a rock. -- @param rockspec table: The rockspec table -- @p...
gpl-2.0
dacrybabysuck/darkstar
scripts/globals/spells/chocobo_mazurka.lua
12
1158
----------------------------------------- -- Spell: Chocobo Mazurka -- Gives party members enhanced movement ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return ...
gpl-3.0
KittyCookie/skynet
service/cslave.lua
50
6448
local skynet = require "skynet" local socket = require "socket" require "skynet.manager" -- import skynet.launch, ... local table = table local slaves = {} local connect_queue = {} local globalname = {} local queryname = {} local harbor = {} local harbor_service local monitor = {} local monitor_master_set = {} local ...
mit
mr-kelly/KSFramework
KSFramework/Product/Lua/UI/UIRoleInfo/UIRoleInfo.lua
1
1113
local UIBase = import('UI/UIBase') ---@type UIRoleInfo local UIRoleInfo = {} extends(UIRoleInfo, UIBase) local atlasLoader -- create a ui instance function UIRoleInfo.New(controller) local newUI = new(UIRoleInfo) newUI.Controller = controller return newUI end function UIRoleInfo:OnInit(controller) Too...
apache-2.0
dacrybabysuck/darkstar
scripts/globals/spells/impact.lua
12
3140
----------------------------------------- -- Spell: Impact -- Deals dark damage to an enemy and -- decreases all 7 base stats by 20% ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") ----------------------------------------- function onMagicCastingCheck(caster...
gpl-3.0
martinfelis/ggj15
Quickie/utf8.lua
15
4556
-- utf8.lua - Basic (and unsafe) utf8 string support in plain Lua - public domain -- -- Written in 2013 by Matthias Richter (vrld@vrld.org) -- -- This software is in the public domain. Where that dedication is not -- recognized, you are granted a perpetual, irrevokable license to copy and -- modify this file as you see...
apache-2.0
Omegaphora/external_skia
tools/lua/skia.lua
207
1863
-- Experimental helpers for skia -- function string.startsWith(String,Start) return string.sub(String,1,string.len(Start))==Start end function string.endsWith(String,End) return End=='' or string.sub(String,-string.len(End))==End end Sk = {} function Sk.isFinite(x) return x * 0 == 0 end ----------------...
bsd-3-clause
esmil/lem
lem/signal.lua
1
2753
-- -- This file is part of LEM, a Lua Event Machine. -- Copyright 2013 Asbjørn Sloth Tønnesen -- -- LEM is free software: you can redistribute it and/or modify it -- under the terms of the GNU Lesser General Public License as -- published by the Free Software Foundation, either version 3 of -- the License, or (at your ...
gpl-3.0
simoncozens/lunamark
lunamark/writer/xml.lua
5
1499
-- (c) 2009-2011 John MacFarlane. Released under MIT license. -- See the file LICENSE in the source for details. --- Generic XML writer for lunamark. -- It extends [lunamark.writer.generic] and is extended by -- [lunamark.writer.html] and [lunamark.writer.docbook]. local M = {} local generic = require("lunamark.writ...
mit
dacrybabysuck/darkstar
scripts/globals/spells/poison_ii.lua
12
1441
----------------------------------------- -- Spell: Poison ----------------------------------------- require("scripts/globals/magic") require("scripts/globals/msg") require("scripts/globals/status") ----------------------------------------- function onMagicCastingCheck(caster, target, spell) return 0 end function...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Sealions_Den/bcnms/warriors_path.lua
9
1622
----------------------------------- -- Area: Sealion's Den -- Name: The Warrior's Path ----------------------------------- require("scripts/globals/battlefield") require("scripts/globals/missions") require("scripts/globals/titles") ----------------------------------- function onBattlefieldTick(battlefield, tick) d...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Northern_San_dOria/npcs/Gulmama.lua
9
5274
----------------------------------- -- Area: Northern San d'Oria -- NPC: Gulmama -- Starts and Finishes Quest: Trial by Ice -- Involved in Quest: Class Reunion -- !pos -186 0 107 231 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/titles"); require("scripts/globals/key...
gpl-3.0
dacrybabysuck/darkstar
scripts/commands/addweaponskillpoints.lua
14
1753
--------------------------------------------------------------------------------------------------- -- func: addWeaponSkillPoints <slot> <points> {player} -- desc: Adds weapon skill points to an equipped item. --------------------------------------------------------------------------------------------------- require("s...
gpl-3.0
andeandr100/Crumbled-World
Lua/Enviromental/waterMelon.lua
1
1589
require("NPC/deathManager.lua") --this = SceneNode() function destroy() end function create() deathManagerUpdate = false deathManager = DeathManager.new() deathManager.setEnableSelfDestruct(false) --find the camera camera = this:getRootNode():findNodeByName("MainCamera") return true end ...
mit
MrTheSoulz/NerdPack
Libs/DiesalGUI-1.0/Objects/DropDownItem.lua
6
4973
-- $Id: DropDownItem.lua 60 2016-11-04 01:34:23Z diesal2010 $ local DiesalGUI = LibStub('DiesalGUI-1.0') -- ~~| Libraries |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ local DiesalTools = LibStub('DiesalTools-1.0') local D...
mit
dacrybabysuck/darkstar
scripts/zones/Uleguerand_Range/npcs/Zebada.lua
9
1884
----------------------------------- -- Area: Uleguerand Range -- NPC: Zebada -- Type: ENM Quest Activator -- !pos -308.112 -42.137 -570.096 5 ----------------------------------- local ID = require("scripts/zones/Uleguerand_Range/IDs"); require("scripts/globals/keyitems"); ----------------------------------- function ...
gpl-3.0
fgielow/devenserver
data/npc/scripts/pac.lua
2
8738
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisapp...
gpl-2.0
cmingjian/skynet
lualib/http/httpd.lua
101
3708
local internal = require "http.internal" local table = table local string = string local type = type local httpd = {} local http_status_msg = { [100] = "Continue", [101] = "Switching Protocols", [200] = "OK", [201] = "Created", [202] = "Accepted", [203] = "Non-Authoritative Information", [204] = "No Content",...
mit
satanevil/the-greate-satan
plugins/all.lua
1321
4661
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
dacrybabysuck/darkstar
scripts/zones/Temple_of_Uggalepih/npcs/Worn_Book.lua
9
1643
----------------------------------- -- Area: Temple of Uggalepih -- NPC: Worn Book -- Getting "Old Rusty Key (keyitem)" -- !pos 59 0 19 159 ----------------------------------- local ID = require("scripts/zones/Temple_of_Uggalepih/IDs") require("scripts/globals/keyitems") ----------------------------------- function o...
gpl-3.0
ArIaNDeVeLoPeR/IDsearcher
plugins/minecraft.lua
2
2606
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
Dingf/Icewrack
game/dota_addons/icewrack/scripts/vscripts/container.lua
1
18996
if not CContainer then require("entity_base") require("ext_item") local stItemListData = LoadKeyValues("scripts/npc/iw_item_lists.txt") local stContainerData = LoadKeyValues("scripts/npc/npc_containers.txt") local shItemDeniableModifier = CreateItem("item_internal_deniable", nil, nil) CContainer = setmetatable(ext_...
mit
zeromq/lyre
src/lyre/impl/peer.lua
2
4019
-- -- Author: Alexey Melnichuk <mimir@newmail.ru> -- -- Copyright (C) 2014 Alexey Melnichuk <mimir@newmail.ru> -- -- Licensed according to the included 'LICENSE' document -- -- This file is part of Lyre library. -- --------------------------------------------------------------------- -- Constants, to be configure...
mit
dacrybabysuck/darkstar
scripts/globals/weaponskills/double_thrust.lua
10
1359
----------------------------------- -- 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
shultays/bloodworks
game/resources/bonuses/bullet_crazy/bullet_crazy.lua
1
1255
AmmoManiac.buffId = getGlobalUniqueId() function AmmoManiac.spawn(bonus, pos) local duration = 6.0 * player.data.bonusDurationMultiplier player.gunSpreadMultiplier:addBuffWithId(AmmoManiac.buffId, 1.8) player.clipCountMultiplier:addBuffWithId(AmmoManiac.buffId, 4.0) player.reloadSpeedMultiplier:addBuf...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Southern_San_dOria/npcs/Adaunel.lua
9
1135
----------------------------------- -- Area: Southern San d'Oria -- NPC: Adaunel -- General Info NPC -- !pos 80 -7 -22 230 ------------------------------------ local ID = require("scripts/zones/Southern_San_dOria/IDs"); require("scripts/globals/settings"); require("scripts/globals/quests"); ---------------------------...
gpl-3.0
Teaonly/beginlearning
july/dl_tutorial/simple_lstm/long_seq.lua
2
2407
require 'torch' require 'nn' require 'nngraph' require "gnuplot" local BOX_SIZE = 4 local RNN_SIZE = 196 local LAYER_NUMBER = 2 local box = {} for i = 1, BOX_SIZE do box[i] = {}; for j = 1, BOX_SIZE do box[i][j] = (i-1)*BOX_SIZE + j end end box[BOX_SIZE][BOX_SIZE] = 0 local model = torch.load('./model.bin'...
mit
dacrybabysuck/darkstar
scripts/globals/spells/bio_ii.lua
11
2275
----------------------------------------- -- Spell: Bio II -- Deals dark damage that weakens an enemy's attacks and gradually reduces its HP. ----------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/utils") ...
gpl-3.0
cmingjian/skynet
test/testpipeline.lua
30
1265
local skynet = require "skynet" local redis = require "skynet.db.redis" local conf = { host = "127.0.0.1", port = 6379, db = 0 } local function read_table(t) local result = { } for i = 1, #t, 2 do result[t[i]] = t[i + 1] end return result end skynet.start(function() local db = redis.connect(conf) d...
mit
dacrybabysuck/darkstar
scripts/globals/items/crepe_delice.lua
11
1187
----------------------------------------- -- 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") require("scripts/glo...
gpl-3.0
jnhwkim/rnn
SeqGRU.lua
5
14039
--[[ The MIT License (MIT) Copyright (c) 2016 Stéphane Guillitte, Joost van Doorn 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 u...
bsd-3-clause
dacrybabysuck/darkstar
scripts/globals/mobskills/dragonfall.lua
11
1078
--------------------------------------------- -- Dragonfall -- -- Description: Deals damage to players an area of effect. Additional effect: Bind -- Type: Physical -- 2-3 Shadows -- Range: Melee -- Special weaponskill unique to Ark Angel GK. Deals ~100-300 damage. --------------------------------------------- requ...
gpl-3.0
varunparkhe/Algorithm-Implementations
Sudoku/Lua/Yonaba/sudoku.lua
26
2101
-- Sudoku solver implementation -- Uses Backtracking and recursion -- See : http://en.wikipedia.org/wiki/Sudoku -- Checks if num exists on a row local function rowHasNotNum(sudoku, row, num) for column = 1,9 do if sudoku[row][column] == num then return false end end return true end -- Checks if nu...
mit
xpol/luacheck
spec/cli_spec.lua
2
65275
local utils = require "luacheck.utils" local multithreading = require "luacheck.multithreading" local helper = require "spec.helper" local luacheck_cmd = helper.luacheck_command() local function quote(argument) -- Do not worry about special characters too much, just quote. local mark = utils.is_windows and '"' o...
mit
nimaghorbani/dozdi1
plugins/search_youtube.lua
674
1270
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end local function searchYoutubeVideos(text) local url = 'https://www.googleapis.com/youtube/v3/search?' u...
gpl-2.0
22333322/i4bot
plugins/search_youtube.lua
674
1270
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end local function searchYoutubeVideos(text) local url = 'https://www.googleapis.com/youtube/v3/search?' u...
gpl-2.0
dcourtois/premake-core
modules/vstudio/tests/vc2010/test_output_props.lua
2
6721
-- -- tests/actions/vstudio/vc2010/test_output_props.lua -- Validate generation of the output property groups. -- Copyright (c) 2011-2013 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("vstudio_vs2010_output_props") local vc2010 = p.vstudio.vc2010 -- -- Setup -- local wks ...
bsd-3-clause
worldforge/ember
src/components/ogre/widgets/Tasks.lua
1
4352
Tasks = { connectors = {} } Tasks.currentTask = nil Tasks.buttons = {} Tasks.activeButtons = {} --function Tasks.frameStarted(time) -- if Tasks.currentTask then -- Tasks.progressBar:setProgress(Tasks.currentTask) -- end --end function Tasks.buildWidget() local function Completed() end local function...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Port_Windurst/npcs/Kunchichi.lua
9
1034
----------------------------------- -- Area: Port Windurst -- NPC: Kunchichi -- Type: Standard NPC -- !pos -115.933 -4.25 109.533 240 ----------------------------------- require("scripts/globals/npc_util") require("scripts/globals/settings") require("scripts/globals/quests") require("scripts/globals/magic") ----------...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Northern_San_dOria/npcs/Greubaque.lua
12
1423
----------------------------------- -- Area: Northern San d'Oria -- NPC: Greubaque -- Type: Smithing Adv. Synthesis Image Support -- !pos -179.400 10.999 150.000 231 ----------------------------------- require("scripts/globals/status"); require("scripts/globals/crafting"); local ID = require("scripts/zones/Northern_Sa...
gpl-3.0
dkogan/notion.xfttest
contrib/styles/look_atme.lua
3
3878
-- Authors: Sadrul Habib Chowdhury <imadil@gmail.com> -- License: Public domain -- Last Changed: Unknown -- -- look_atme.lua drawing engine configuration file for Ion. -- -- Author: Sadrul Habib Chowdhury (Adil) -- imadil |at| gmail |dot| com if not gr.select_engine("de") then return end de.reset() de.defstyle("*",...
lgpl-2.1
Dingf/Icewrack
game/dota_addons/icewrack/scripts/vscripts/abilities/drow_ranger/modifier_iw_drow_ranger_feral_bond.lua
1
4471
modifier_iw_drow_ranger_feral_bond = class({}) function modifier_iw_drow_ranger_feral_bond:DeclareFunctions() local funcs = { MODIFIER_PROPERTY_ATTACKSPEED_BONUS_CONSTANT, MODIFIER_EVENT_ON_DEATH, MODIFIER_EVENT_ON_RESPAWN, } return funcs end function modifier_iw_drow_ranger_feral_bond:GetModifierAttackSpee...
mit
dacrybabysuck/darkstar
scripts/globals/items/green_quiche.lua
11
1162
----------------------------------------- -- ID: 5170 -- Item: green_quiche -- Food Effect: 30Min, All Races ----------------------------------------- -- Magic 10 -- Agility 1 -- Vitality -1 -- Ranged ACC % 7 -- Ranged ACC Cap 15 ----------------------------------------- require("scripts/globals/status") require("scrip...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Waughroon_Shrine/bcnms/shattering_stars.lua
9
1634
----------------------------------- -- Shattering Stars -- Waughroon Shrine Maat battlefield -- !pos -345 104 -260 144 ----------------------------------- require("scripts/globals/battlefield") require("scripts/globals/npc_util") require("scripts/globals/quests") require("scripts/globals/titles") ----------------------...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Alzadaal_Undersea_Ruins/npcs/_20u.lua
12
2710
----------------------------------- -- Area: Alzadaal Undersea Ruins -- Door: Gilded Gateway (Arrapago) -- !pos -580 0 -159 72 ----------------------------------- require("scripts/globals/keyitems") require("scripts/globals/missions") require("scripts/globals/besieged") local ID = require("scripts/zones/Alzadaal_Unders...
gpl-3.0
22333322/i4bot
plugins/boobs.lua
731
1601
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an empty array if no...
gpl-2.0
dacrybabysuck/darkstar
scripts/zones/Southern_San_dOria_[S]/npcs/Lion_Springs.lua
9
1272
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Door:Lion Springs -- !pos 96 0 106 80 ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/missions"); require("scripts/globals/settings"); ----------------------------------- function onTrade(player,...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/spells/dokumori_san.lua
12
1441
----------------------------------------- -- Spell: Dokumori: San ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0 end fun...
gpl-3.0
thivod/forgottenserver
data/talkactions/scripts/kills.lua
14
1396
function onSay(cid, words, param) local player = Player(cid) local fragTime = configManager.getNumber(configKeys.FRAG_TIME) if fragTime <= 0 then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You do not have any unjustified kill.") return false end local skullTime = player:getSkullTime() if skullTime...
gpl-2.0
dacrybabysuck/darkstar
scripts/globals/mobskills/rime_spray.lua
11
1540
--------------------------------------------- -- Rime Spray -- -- Description: Deals Ice damage to enemies within a fan-shaped area, inflicting them with Frost and All statuses down. -- Type: Breath -- Utsusemi/Blink absorb: Ignores shadows -- Range: Unknown cone -- Notes: ----------------------------------------...
gpl-3.0
salmito/clp
test/benchmark.lua
1
1892
local clp=require "clp" local interpreter=jit and jit.version or _VERSION or 'unknown' clp.pool:add(clp.cpus()-1) local format=require'string'.format local pool=clp.pool local arg={...} --pool:add(tonumber(arg[3] or clp.cpus()-1)) local np=tonumber(arg[1]) or 10000 local nm=tonumber(arg[2]) or 500000 local it=tonumber(...
mit
thivod/forgottenserver
data/npc/lib/npc.lua
15
3407
-- Including the Advanced NPC System dofile('data/npc/lib/npcsystem/npcsystem.lua') isPlayerPremiumCallback = isPremium function msgcontains(message, keyword) local message, keyword = message:lower(), keyword:lower() if message == keyword then return true end return message:find(keyword) and not message:find('...
gpl-2.0
Squ34k3rZ/SamsBday
cocos2d/external/lua/luajit/src/dynasm/dasm_arm.lua
74
34483
------------------------------------------------------------------------------ -- DynASM ARM module. -- -- Copyright (C) 2005-2013 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ -- Module information: local _in...
mit
Carlgo11/computercraft
Door/v1/door.lua
1
2293
args = {...} if #args ~= 5 then print("Usage: <command> <sensor_position> <redstone_position> <accesslevel> <group> <url>") return end -- Vars set by command params local sensor_position = args[1] local redstone_position = args[2] local accesslevel = tonumber(args[3]) local group = args[4] -- Advanced settings lo...
unlicense
dacrybabysuck/darkstar
scripts/globals/abilities/pets/attachments/eraser.lua
11
1703
----------------------------------- -- Attachment: Eraser ----------------------------------- require("scripts/globals/status") ----------------------------------- local removable = { dsp.effect.PETRIFICATION, dsp.effect.SILENCE, dsp.effect.BANE, dsp.effect.CURSE_II, dsp.effect.CURSE, dsp.effec...
gpl-3.0
mosy210/shadow-bot
plugins/get.lua
613
1067
local function get_variables_hash(msg) if msg.to.type == 'chat' then return 'chat:'..msg.to.id..':variables' end if msg.to.type == 'user' then return 'user:'..msg.from.id..':variables' end end local function list_variables(msg) local hash = get_variables_hash(msg) if hash then local names =...
gpl-2.0
aliaz001/aliaz
tg/tdcli.lua
102
88571
--[[ 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 your option) any later version. This program is distributed in the hope that it will be use...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Horlais_Peak/bcnms/rank_2_mission.lua
9
1630
----------------------------------- -- Rank 2 Final Mission -- Horlais Peak mission battlefield ----------------------------------- require("scripts/globals/battlefield") require("scripts/globals/keyitems") require("scripts/globals/missions") require("scripts/globals/npc_util") ----------------------------------- func...
gpl-3.0
jiangjianping/sipml5
asterisk/etc/extensions.lua
317
5827
CONSOLE = "Console/dsp" -- Console interface for demo --CONSOLE = "DAHDI/1" --CONSOLE = "Phone/phone0" IAXINFO = "guest" -- IAXtel username/password --IAXINFO = "myuser:mypass" TRUNK = "DAHDI/G2" TRUNKMSD = 1 -- TRUNK = "IAX2/user:pass@provider" -- -- Extensions are expected to be defined in a global table ...
bsd-3-clause
ajayz15/sipml5
asterisk/etc/extensions.lua
317
5827
CONSOLE = "Console/dsp" -- Console interface for demo --CONSOLE = "DAHDI/1" --CONSOLE = "Phone/phone0" IAXINFO = "guest" -- IAXtel username/password --IAXINFO = "myuser:mypass" TRUNK = "DAHDI/G2" TRUNKMSD = 1 -- TRUNK = "IAX2/user:pass@provider" -- -- Extensions are expected to be defined in a global table ...
bsd-3-clause
dacrybabysuck/darkstar
scripts/zones/Windurst_Woods/npcs/Ibwam.lua
9
4123
----------------------------------- -- Area: Windurst Woods -- NPC: Ibwam -- Type: Warp NPC -- !pos -25.655 1.749 -60.651 241 ----------------------------------- local ID = require("scripts/zones/Windurst_Woods/IDs") require("scripts/globals/teleports") require("scripts/globals/keyitems") require("scripts/globals/miss...
gpl-3.0
wogum/esp12
www.lua
1
3244
--- WWW HTTP server for BME280 on NodeMCU ESP-12 (ESP8266) --- Licence MIT --- 2015-10-16 WG -- globals _file = "" _head = "" -- locals if srv then srv:close() srv = nil end -- large file send thread routine based on https://github.com/marcoskirsch/nodemcu-httpserver sendFile = nil function sendFile(conn) l...
mit
dacrybabysuck/darkstar
scripts/globals/weaponskills/shell_crusher.lua
10
1698
----------------------------------- -- Shell Crusher -- Staff weapon skill -- Skill Level: 175 -- Lowers target's defense. Duration of effect varies with TP. -- If unresisted, lowers target defense by 25%. -- Will stack with Sneak Attack. -- Aligned with the Breeze Gorget. -- Aligned with the Breeze Belt. -- Element: N...
gpl-3.0
dacrybabysuck/darkstar
scripts/globals/mobskills/dark_wave.lua
11
1250
--------------------------------------------- -- Dark Wave -- -- Description: A wave of dark energy washes over targets in an area of effect. Additional effect: Bio -- Type: Magical -- Utsusemi/Blink absorb: Ignores shadows -- Range: 10' radial -- Notes: Severity of Bio effect varies by time of day, from 8/tic at...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Empyreal_Paradox/mobs/Promathia.lua
8
1999
----------------------------------- -- Area: Empyreal Paradox -- Mob: Promathia -- Note: Phase 1 ----------------------------------- local ID = require("scripts/zones/Empyreal_Paradox/IDs") require("scripts/globals/status") require("scripts/globals/titles") ----------------------------------- function onMobInitialize...
gpl-3.0
aboshosho/aboshosho
bot/utils.lua
473
24167
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() JSON = (loadfile "./libs/...
agpl-3.0
dacrybabysuck/darkstar
scripts/zones/Temenos/mobs/Ice_Elemental.lua
9
1390
----------------------------------- -- Area: Temenos E T -- Mob: Ice Elemental ----------------------------------- require("scripts/globals/limbus"); ----------------------------------- function onMobEngaged(mob,target) end; function onMobDeath(mob, player, isKiller) local mobID = mob:getID(); local mobX = mo...
gpl-3.0
Dingf/Icewrack
game/dota_addons/icewrack/scripts/vscripts/mechanics/corpse.lua
1
1688
local function OnCorpseLootableInteract(hEntity, args) if args.lootable == hEntity:entindex() then if hEntity:IsInventoryEmpty() then hEntity:AddNewModifier(hEntity, hEntity._hCorpseItem, "modifier_internal_corpse_unselectable", {}) CustomGameEventManager:UnregisterListener(hEntity._nCorpseListener) end end...
mit
shacknetisp/elevator
hooks.lua
1
2536
-- Globalstep timer. local time = 0 minetest.register_globalstep(function(dtime) -- Don't want to run this too often. time = time + dtime if time < 0.5 then return end time = 0 -- Only count riders who are still logged in. local newriding = {} for _,p in ipairs(minetest.get_con...
isc
dacrybabysuck/darkstar
scripts/zones/Temple_of_Uggalepih/IDs.lua
9
4614
----------------------------------- -- Area: Temple_of_Uggalepih ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.TEMPLE_OF_UGGALEPIH] = { text = { NOTHING_HAPPENS = 119, -- Nothing happens... ...
gpl-3.0
pSyChOoOo/TeleSeed
.luarocks/share/lua/5.2/luarocks/search.lua
5
15387
--- Module implementing the LuaRocks "search" command. -- Queries LuaRocks servers. --module("luarocks.search", package.seeall) local search = {} package.loaded["luarocks.search"] = search local dir = require("luarocks.dir") local path = require("luarocks.path") local manif = require("luarocks.manif") local deps = re...
gpl-2.0
dacrybabysuck/darkstar
scripts/globals/spells/absorb-str.lua
12
1565
-------------------------------------- -- Spell: Absorb-STR -- Steals an enemy's strength. -------------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") ----------------------------------------- function onMa...
gpl-3.0
birdbrainswagtrain/grid-sdk
src/engine/server/network/host.lua
1
2164
--========= Copyright © 2013-2015, Planimeter, All rights reserved. ==========-- -- -- Purpose: Host wrapper class for ENet -- --============================================================================-- require( "enet" ) class( "host" ) function host:host( bind_address, peer_count, channel_count, in_bandwidth, ...
mit
dacrybabysuck/darkstar
scripts/zones/Northern_San_dOria/npcs/Guilberdrier.lua
9
2506
----------------------------------- -- Area: Northern San d'Oria -- NPC: Guilberdrier -- Involved in Quests: Flyers for Regine, Exit the Gambler -- !pos -159.082 12.000 253.794 231 ----------------------------------- local ID = require("scripts/zones/Northern_San_dOria/IDs") require("scripts/globals/settings") require...
gpl-3.0
skryabiin/core
engine/bin/lua/firstscene.lua
1
3250
Scenes.first = {} function Scenes.first.init() --set this up for the sequence loop Renderer.setBackgroundColor({64,0,0,255}) Console.info("In first scene") Core.createSystem("BasicPositionSystem2d", "MenuPositions") Core.createSystem("TextureRenderSystem2d", "MenuTextures", 1) Core.createSystem("TextRender...
mit
dacrybabysuck/darkstar
scripts/globals/items/queens_crown.lua
11
1367
----------------------------------------- -- ID: 6064 -- Item: queens_crown -- Food Effect: 240 Min, All Races ----------------------------------------- -- MP+6% (Upper limit 55) -- INT+4 -- MND+3 -- CHR+2 -- STR-2 -- MACC+4 -- MAB+7 ----------------------------------------- require("scripts/globals/status") require("s...
gpl-3.0
fgielow/devenserver
data/actions/scripts/quests/teltime.lua
2
1081
local config = { newPos = {x = 330, y = 633, z = 6}, teleportPos = {x = 160, y = 51, z = 8}, LeverPos = {x = 159, y = 52, z = 8}, timeToRemove = 10 } function onUse(player, item, fromPosition, target, toPosition, isHotkey) if item.itemid == 1945 then local teleport = Game.createItem(1387, 1, config....
gpl-2.0
dacrybabysuck/darkstar
scripts/globals/items/crab_stewpot.lua
11
1476
----------------------------------------- -- ID: 5544 -- Item: Crab Stewpot -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +10% Cap 50 -- MP +10 -- HP Recoverd while healing 5 -- MP Recovered while healing 1 -- Defense +20% Cap 50 -- Evasion +5 -------------------...
gpl-3.0
keviner2004/shoot-em-up
enemies/Boss.lua
1
19418
local gameConfig = require("gameConfig") local BossBullet = require("bullets.BossBullet") local Missile = require("bullets.Missile") local move = require("move") local Enemy = require("Enemy") local Square = require("ui.Square") local GlassPanel = require("ui.GlassPanel") local Sprite = require("Sprite") local Ufo = re...
mit
dacrybabysuck/darkstar
scripts/zones/Sauromugue_Champaign_[S]/npcs/Bulwark_Gate.lua
9
1244
----------------------------------- -- Area: Sauromugue Champaign [S] -- NPC: Bulwark Gate -- !pos -445 0 342 -- Quest NPC ----------------------------------- require("scripts/globals/campaign"); require("scripts/globals/titles"); require("scripts/globals/quests"); require("scripts/globals/settings"); ----------------...
gpl-3.0
Fir3element/downgrade86
data/talkactions/scripts/kills.lua
43
1370
function onSay(player, words, param) local fragTime = configManager.getNumber(configKeys.FRAG_TIME) if fragTime <= 0 then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You do not have any unjustified kill.") return false end local skullTime = player:getSkullTime() if skullTime <= 0 then player:sendTe...
gpl-2.0
dacrybabysuck/darkstar
scripts/zones/Outer_Horutoto_Ruins/IDs.lua
9
2791
----------------------------------- -- Area: Outer_Horutoto_Ruins ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.OUTER_HORUTOTO_RUINS] = { text = { ORB_ALREADY_PLACED = 0, -- A dark Mana Orb is alread...
gpl-3.0
dacrybabysuck/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Hadayah.lua
12
1163
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Hadayah -- Type: Alchemy Image Support -- !pos -10.470 -6.25 -141.700 241 ----------------------------------- local ID = require("scripts/zones/Aht_Urhgan_Whitegate/IDs") require("scripts/globals/status") require("scripts/globals/crafting") ----...
gpl-3.0
fgielow/devenserver
data/npc/scripts/Hal.lua
2
1391
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 function onCreatureSay(cid, type, msg) ...
gpl-2.0
dacrybabysuck/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Kaduru-Haiduru.lua
9
3815
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Kaduru-Haiduru -- Teleport NPC ----------------------------------- require("scripts/globals/zone") local function canUse_KaduruHaiduru_Service(player) local caughtUsingShihuDanhuDate = player:getCharVar("Kaduru_ShihuDanhu_date") local sh...
gpl-3.0
KittyCookie/skynet
lualib/http/httpc.lua
42
2906
local socket = require "http.sockethelper" local url = require "http.url" local internal = require "http.internal" local string = string local table = table local httpc = {} local function request(fd, method, host, url, recvheader, header, content) local read = socket.readfunc(fd) local write = socket.writefunc(fd)...
mit
dacrybabysuck/darkstar
scripts/zones/Bastok_Markets/npcs/Pavel.lua
9
1198
----------------------------------- -- Area: Bastok Markets -- NPC: Pavel -- Involved in Quest: Stamp Hunt -- !pos -349.798 -10.002 -181.296 235 ----------------------------------- require("scripts/globals/quests"); ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player...
gpl-3.0
fgielow/devenserver
data/actions/scripts/quests/annihilator.lua
2
1097
local playerPosition = { {x = 185, y = 86, z = 8}, {x = 186, y = 86, z = 8}, {x = 187, y = 86, z = 8}, {x = 188, y = 86, z = 8} } local newPosition = { {x = 244, y = 76, z = 14}, {x = 245, y = 76, z = 14}, {x = 246, y = 76, z = 14}, {x = 247, y = 76, z = 14} } function onUse(player, item, fromPosition, target,...
gpl-2.0
dacrybabysuck/darkstar
scripts/globals/mobskills/geotic_breath.lua
11
1287
--------------------------------------------- -- Geotic Breath -- -- Description: Deals Earth damage to enemies within a fan-shaped area. -- Type: Breath -- Utsusemi/Blink absorb: Ignores shadows -- Range: Unknown cone -- Notes: Used only by Ouryu --------------------------------------------- require("scripts/glo...
gpl-3.0
mosy210/shadow-bot
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
dcourtois/premake-core
tests/tools/test_gcc.lua
2
25125
-- -- tests/test_gcc.lua -- Automated test suite for the GCC toolset interface. -- Copyright (c) 2009-2013 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("tools_gcc") local gcc = p.tools.gcc local project = p.project -- -- Setup/teardown -- local wks, prj, cfg function...
bsd-3-clause
dacrybabysuck/darkstar
scripts/zones/Apollyon/mobs/Thunder_Elemental.lua
9
2119
----------------------------------- -- Area: Apollyon SW -- Mob: Thunder Elemental ----------------------------------- require("scripts/globals/limbus"); ----------------------------------- function onMobDeath(mob, player, isKiller) end; function onMobDespawn(mob) local mobID = mob:getID(); -- print(mobID); ...
gpl-3.0
fgielow/devenserver
data/chatchannels/scripts/advertising.lua
48
1220
function canJoin(player) return player:getVocation():getId() ~= VOCATION_NONE or player:getAccountType() >= ACCOUNT_TYPE_SENIORTUTOR end local CHANNEL_ADVERTISING = 5 local muted = Condition(CONDITION_CHANNELMUTEDTICKS, CONDITIONID_DEFAULT) muted:setParameter(CONDITION_PARAM_SUBID, CHANNEL_ADVERTISING) muted:setPara...
gpl-2.0