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 |
|---|---|---|---|---|---|
jshackley/darkstar | scripts/globals/weaponskills/weapon_break.lua | 18 | 1792 | -----------------------------------
-- Weapon Break
-- Great Axe weapon skill
-- Skill level: 175
-- Lowers enemy's attack. Duration of effect varies with TP.
-- Lowers attack by as much as 25% if unresisted.
-- Strong against: Manticores, Orcs, Rabbits, Raptors, Sheep.
-- Immune: Crabs, Crawlers, Funguars, Quad... | gpl-3.0 |
Keithenneu/Dota2-FullOverwrite | ability_usage_shredder.lua | 2 | 6636 | -------------------------------------------------------------------------------
--- AUTHOR: Nostrademous
--- LARGE AMOUNT OF CODE BORROWED FROM: PLATINUM_DOTA2 (Pooya J.)
--- GITHUB REPO: https://github.com/Nostrademous/Dota2-FullOverwrite
-------------------------------------------------------------------------------
... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Justinius.lua | 19 | 1888 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Justinius
-- Involved in mission : COP2-3
-- @pos 76 -34 68 26
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("sc... | gpl-3.0 |
jshackley/darkstar | scripts/globals/weaponskills/blade_chi.lua | 30 | 1380 | -----------------------------------
-- Blade Chi
-- Katana weapon skill
-- Skill Level: 150
-- Delivers a two-hit earth elemental attack. Damage varies with TP.
-- Aligned with the Thunder Gorget & Light Gorget.
-- Aligned with the Thunder Belt & Light Belt.
-- Element: Earth
-- Modifiers: STR:30% ; INT:30%
--... | gpl-3.0 |
jshackley/darkstar | scripts/globals/mobskills/Mow.lua | 25 | 1073 | ---------------------------------------------
-- Mow
--
-- Description: Deals damage in an area of effect. Additional effect: Poison
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range: Unknown radial
-- Notes: Poison can take around 10HP/tick
---------------------------------------------
re... | gpl-3.0 |
Ombridride/minetest-minetestforfun-server | mods/mesecons/mesecons_doors/init.lua | 7 | 4023 | -- Modified, from minetest_game/mods/doors/init.lua
local function on_rightclick(pos, dir, check_name, replace, replace_dir, params)
pos.y = pos.y + dir
if not minetest.get_node(pos).name == check_name then
return
end
local p2 = minetest.get_node(pos).param2
p2 = params[p2 + 1]
minetest.swap_node(pos, {name = ... | unlicense |
LiberatorUSA/GUCEF | tools/PackageUpgrader/premake5.lua | 1 | 2065 | --------------------------------------------------------------------
-- This file was automatically generated by ProjectGenerator
-- which is tooling part the build system designed for GUCEF
-- (Galaxy Unlimited Framework)
-- For the latest info, see http://www.VanvelzenSoftware.com/
--
-- The contents of this file... | apache-2.0 |
Ombridride/minetest-minetestforfun-server | minetestforfun_game/mods/walls/init.lua | 26 | 1449 | walls = {}
walls.register = function(wall_name, wall_desc, wall_texture, wall_mat, wall_sounds)
-- inventory node, and pole-type wall start item
minetest.register_node(wall_name, {
description = wall_desc,
drawtype = "nodebox",
node_box = {
type = "connected",
fixed = {{-1/4, -1/2, -1/4, 1/4, 1/2, 1/4}},... | unlicense |
LuaDist/lrexlib-pcre | test/oniguruma_sets.lua | 6 | 5000 | -- See Copyright Notice in the file LICENSE
local luatest = require "luatest"
local N = luatest.NT
local function norm(a) return a==nil and N or a end
local function fill (n, m)
local t = {}
for i = n, m, -1 do table.insert (t, i) end
return t
end
local function set_named_subpatterns (lib, flg)
return {
... | mit |
jshackley/darkstar | scripts/zones/Rolanberry_Fields/npcs/Saarlan.lua | 17 | 8643 | -----------------------------------
-- Area: Rolanberry Fields
-- NPC: Saarlan
-- Legion NPC
-- @pos 242 24.395 468
-----------------------------------
package.loaded["scripts/zones/Rolanberry_Fields/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/g... | gpl-3.0 |
jshackley/darkstar | scripts/globals/items/forest_carp.lua | 18 | 1335 | -----------------------------------------
-- ID: 4289
-- Item: forest_carp
-- Food Effect: 30Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItem... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Bastok_Markets/npcs/Porter_Moogle.lua | 41 | 1536 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- @zone 235
-- @pos TODO
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Markets/Tex... | gpl-3.0 |
hockeychaos/Core-Scripts-1 | PlayerScripts/StarterCharacterScripts/Sound.server.lua | 1 | 1637 | --[[
Author: @spotco
This script creates sounds which are placed under the character head.
These sounds are used by the "LocalSound" script.
To modify this script, copy it to your "StarterPlayer/StarterCharacterScripts" folder keeping the same script name ("Sound").
The default Sound script loaded for every char... | apache-2.0 |
hockeychaos/Core-Scripts-1 | CoreScriptsRoot/Modules/Server/ClientChat/DefaultClientChatModules/CommandModules/Team.lua | 2 | 3535 | -- // FileName: Team.lua
-- // Written by: Partixel/TheGamer101
-- // Description: Team chat bar manipulation.
local PlayersService = game:GetService("Players")
local TEAM_COMMANDS = {"/team ", "/t ", "% "}
function IsTeamCommand(message)
for i = 1, #TEAM_COMMANDS do
local teamCommand = TEAM_COMMANDS[i]
if stri... | apache-2.0 |
opentibia/server | data/scripts/otstd/actions/instrument.lua | 3 | 2820 | otstd.instrument = {}
function otstd.instrument.piano_handler(event)
local item = event.item
if math.random(0, 1) == 1 then
sendMagicEffect(item:getPosition(), MAGIC_EFFECT_RED_NOTE)
else
sendMagicEffect(item:getPosition(), MAGIC_EFFECT_BLUE_NOTE)
end
return true
end
local piano_handler = otstd.instrument.pi... | gpl-2.0 |
VincentGong/chess | cocos2d-x/tests/lua-tests/src/ParticleTest/ParticleTest.lua | 10 | 43736 |
local SceneIdx = -1
local MAX_LAYER = 42
local emitter = nil
local background = nil
local labelAtlas = nil
local titleLabel = nil
local subtitleLabel = nil
local baseLayer_entry = nil
local s = cc.Director:getInstance():getWinSize()
local function backAction()
SceneIdx = SceneIdx - 1
if SceneIdx < 0 then
... | mit |
jshackley/darkstar | scripts/globals/items/scream_fungus.lua | 35 | 1193 | -----------------------------------------
-- ID: 4447
-- Item: scream_fungus
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Strength -4
-- Mind 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCh... | gpl-3.0 |
jshackley/darkstar | scripts/globals/items/plate_of_shrimp_sushi.lua | 35 | 1552 | -----------------------------------------
-- ID: 5691
-- Item: plate_of_shrimp_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Vitality 1
-- Defense 5
-- Accuracy % 11
-- Store TP 2
-- Triple Attack 1
-----------------------------------------
require("scripts/globals/sta... | gpl-3.0 |
Mizugola/MeltingSaga | engine/Lib/Toolkit/Functions/workspace.lua | 5 | 6705 | local Color = require("Lib/StdLib/ConsoleColor");
local Route = require("Lib/Toolkit/Route");
local Style = require("Lib/Toolkit/Stylesheet");
local Functions = {};
function getWorkspaceList()
local parser = Vili.ViliParser.new();
parser:parseFile("Workspace/Workspaces.vili");
local allWorkspaces = {};
... | mit |
jshackley/darkstar | scripts/globals/items/alchemists_belt.lua | 30 | 1200 | -----------------------------------------
-- ID: 15450
-- Item: Alchemist's belt
-- Enchantment: Synthesis image support
-- 2Min, All Races
-----------------------------------------
-- Enchantment: Synthesis image support
-- Duration: 2Min
-- Alchemy Skill +3
-----------------------------------------
requir... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Hazhalm_Testing_Grounds/Zone.lua | 28 | 1351 | -----------------------------------
--
-- Zone: Hazhalm_Testing_Grounds (78)
--
-----------------------------------
package.loaded["scripts/zones/Hazhalm_Testing_Grounds/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Hazhalm_Testing_Grounds/Tex... | gpl-3.0 |
jan0sch/Ion3 | etc/cfg_dock.lua | 3 | 1502 | --
-- Ion dock module configuration
--
-- Create a dock
mod_dock.create{
-- Dock mode: embedded|floating
mode="floating",
-- The screen to create the dock on
screen=0,
-- Corner or side of the screen to place the dock on.
-- For embedded dock the valid values are: tl|tr|bl|br
-- For floatin... | lgpl-2.1 |
saeeidbeygi/Mrbot | plugins/meme.lua | 637 | 5791 | local helpers = require "OAuth.helpers"
local _file_memes = './data/memes.lua'
local _cache = {}
local function post_petition(url, arguments)
local response_body = {}
local request_constructor = {
url = url,
method = "POST",
sink = ltn12.sink.table(response_body),
headers = {},
red... | gpl-2.0 |
Ombridride/minetest-minetestforfun-server | mods/mobs/chicken.lua | 7 | 6214 |
-- Chicken by JK Murray
mobs:register_mob("mobs:chicken", {
-- animal, monster, npc, barbarian
type = "animal",
-- is it aggressive
passive = true,
-- health & armor
hp_min = 4,
hp_max = 8,
armor = 200,
-- textures and model
collisionbox = {-0.3, -0.75, -0.3, 0.3, 0.1, 0.3},
visual = "mesh",
mesh = "mobs_... | unlicense |
LiberatorUSA/GUCEF | tests/gucefGUI_TestApp/premake4.lua | 1 | 3076 | --------------------------------------------------------------------
-- This file was automatically generated by ProjectGenerator
-- which is tooling part the build system designed for GUCEF
-- (Galaxy Unlimited Framework)
-- For the latest info, see http://www.VanvelzenSoftware.com/
--
-- The contents of this file... | apache-2.0 |
jshackley/darkstar | scripts/zones/Bhaflau_Thickets/npcs/Runic_Portal.lua | 17 | 1868 | -----------------------------------
-- Area: Bhaflau Thickets
-- NPC: Runic Portal
-- Mamook Ja Teleporter Back to Aht Urgan Whitegate
-- @pos -211 -11 -818 52
-----------------------------------
package.loaded["scripts/zones/Bhaflau_Thickets/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Al_Zahbi/npcs/Suldiran.lua | 17 | 1818 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Suldiran
-- Type: NPC Quest
-- @zone: 48
-- @pos 41.658 -6.999 -42.528
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
require("scripts/globals/... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Xarcabard_[S]/Zone.lua | 28 | 1313 | -----------------------------------
--
-- Zone: Xarcabard_[S] (137)
--
-----------------------------------
package.loaded["scripts/zones/Xarcabard_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Xarcabard_[S]/TextIDs");
------------------... | gpl-3.0 |
pez2001/razer_chroma_drivers | scripts/wireshark/razer.lua | 4 | 4887 | -- Thanks to karlp for making a nice lua protocol example for USB https://github.com/karlp/swopy
--
-- Copyright 2015 Terry Cain <terry@terrys-home.co.uk>
-- To install put in ~/.wireshark/plugins/FILENAME.lua
-- or ran with wireshark -X lua_script:FILENAME.lua
--
-- Could of binded it to the Razer USB Vendor:Product I... | gpl-2.0 |
ScottNZ/OpenRA | mods/cnc/maps/nod02a/nod02a.lua | 19 | 7989 | NodUnits = { "bggy", "e1", "e1", "e1", "e1", "e1", "bggy", "e1", "e1", "e1", "bggy" }
NodBaseBuildings = { "hand", "fact", "nuke" }
DfndActorTriggerActivator = { Refinery, Barracks, Powerplant, Yard }
Atk3ActorTriggerActivator = { Guard1, Guard2, Guard3, Guard4, Guard5, Guard6, Guard7 }
Atk1CellTriggerActivator = { C... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Hall_of_Transference/npcs/_0e4.lua | 43 | 1699 | -----------------------------------
-- Area: Hall of Transference
-- NPC: Large Apparatus (Right) - Holla
-- @pos -242.301 -1.849 269.867 14
-----------------------------------
package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Hall_of_Transf... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Wajaom_Woodlands/npcs/leypoint.lua | 17 | 2538 | -----------------------------------
-- Area: Wajaom Woodlands
-- NPC: Leypoint
-- Teleport point, Quest -- NAVIGATING THE UNFRIENDLY SEAS RELATED --
-- @pos -200.027 -8.500 80.058 51
-----------------------------------
require("scripts/zones/Wajaom_Woodlands/TextIDs");
require("scripts/globals/settings");
re... | gpl-3.0 |
dani-sj/mahan | 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 |
adminmagma/telegood | 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 |
sugiartocokrowibowo/Algorithm-Implementations | Merge_Sort/Lua/Yonaba/merge_sort.lua | 27 | 1424 | -- Mergesort top down implementation
-- See : http://en.wikipedia.org/wiki/Merge_sort#Top-down_implementation
-- Splices a list from i to j
local function slice(list, i, j)
local t = {}
for k = i, j do t[#t + 1] = list[k] end
return t
end
-- Top down merge
local function top_down_merge(left, right, comp)
loca... | mit |
jshackley/darkstar | scripts/zones/Windurst_Waters/npcs/Anja-Enja.lua | 37 | 1052 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Anja-Enja
-- Adventurer's Assistant
-- Working 100%
-------------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
require("scripts/zones/Windurst_Waters/TextIDs");
... | gpl-3.0 |
ByteFun/Starbound_mods | smount/tech/mech/mount66/mount66.lua | 1 | 34322 | function checkCollision(position)
local boundBox = mcontroller.boundBox()
boundBox[1] = boundBox[1] - mcontroller.position()[1] + position[1]
boundBox[2] = boundBox[2] - mcontroller.position()[2] + position[2]
boundBox[3] = boundBox[3] - mcontroller.position()[1] + position[1]
boundBox[4] = boundBox[4] - mcon... | gpl-2.0 |
erbth/FreeRDP | tools/wireshark/rdp-udp.lua | 7 | 27390 | --[[
RDP UDP transport dissector for wireshark
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 ag... | apache-2.0 |
elbamos/nn | SpatialConvolution.lua | 3 | 5466 | local SpatialConvolution, parent = torch.class('nn.SpatialConvolution', 'nn.Module')
function SpatialConvolution:__init(nInputPlane, nOutputPlane, kW, kH, dW, dH, padW, padH)
parent.__init(self)
dW = dW or 1
dH = dH or 1
self.nInputPlane = nInputPlane
self.nOutputPlane = nOutputPlane
self.kW = kW
... | bsd-3-clause |
Victek/wrt1900ac-aa | veriksystems/luci-0.11/libs/nixio/axTLS/www/lua/download.lua | 180 | 1550 | #!/usr/local/bin/lua
require"luasocket"
function receive (connection)
connection:settimeout(0)
local s, status = connection:receive (2^10)
if status == "timeout" then
coroutine.yield (connection)
end
return s, status
end
function download (host, file, outfile)
--local f = assert (io.open (outfile, "w"))
loc... | gpl-2.0 |
jshackley/darkstar | scripts/zones/Norg/npcs/Parlemaille.lua | 34 | 1924 | -----------------------------------
-- Area: Norg
-- NPC: Parlemaille
-- Standard Info NPC
-----------------------------------
require("scripts/globals/pathfind");
local path = {
-20.369047, 1.097733, -24.847025,
-20.327482, 1.097733, -25.914215,
-20.272402, 1.097733, -27.108938,
-20.094927, 1.097733, -26... | gpl-3.0 |
VincentGong/chess | cocos2d-x/cocos/scripting/lua-bindings/auto/api/ActionManagerEx.lua | 6 | 1128 |
--------------------------------
-- @module ActionManagerEx
-- @extend Ref
--------------------------------
-- overload function: playActionByName(char, char, cc.CallFunc)
--
-- overload function: playActionByName(char, char)
--
-- @function [parent=#ActionManagerEx] playActionByName
-- @param sel... | mit |
jshackley/darkstar | scripts/zones/Bastok-Jeuno_Airship/npcs/Michele.lua | 19 | 1995 | -----------------------------------
-- Area: Bastok-Jeuno Airship
-- NPC: Michele
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Bastok-Jeuno_Airship/TextIDs"] = nil;
require("scripts/zones/Bastok-Jeuno_Airship/TextIDs");
-----------------------------------
-- onTrade Action
... | gpl-3.0 |
DipColor/mehrabon3 | 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 |
yagop/telegram-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 |
Ombridride/minetest-minetestforfun-server | mods/3d_armor/3d_armor/intllib.lua | 53 | 1122 |
-- Fallback functions for when `intllib` is not installed.
-- Code released under Unlicense <http://unlicense.org>.
-- Get the latest version of this file at:
-- https://raw.githubusercontent.com/minetest-mods/intllib/master/lib/intllib.lua
local function format(str, ...)
local args = { ... }
local function repl... | unlicense |
juniorlm87/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 |
jshackley/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/_0rm.lua | 17 | 1337 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: _0rm (Oil lamp)
-- Notes: Opens South door at J-7 from inside.
-- @pos -63.703 -26.227 83.000 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
re... | gpl-3.0 |
jshackley/darkstar | scripts/globals/items/excalibur.lua | 4 | 1127 | -----------------------------------------
-- ID: 18276
-- Item: Excalibur
-- Additional Effect: Damage proportionate to current HP (25% Current HP)
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/weaponskills");
-----------------------------------
-- onAdd... | gpl-3.0 |
taoyunxing/trafficserver | lib/luajit/src/jit/dump.lua | 84 | 19509 | ----------------------------------------------------------------------------
-- LuaJIT compiler dump module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
-... | apache-2.0 |
jshackley/darkstar | scripts/zones/Valkurm_Dunes/npcs/qm3.lua | 17 | 1900 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: qm3 (???)
-- Involved In Quest: Yomi Okuri
-- @pos -767 -4 192 103
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
requ... | gpl-3.0 |
jshackley/darkstar | scripts/globals/items/serving_of_emperor_roe.lua | 35 | 1354 | -----------------------------------------
-- ID: 4275
-- Item: serving_of_emperor_roe
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 8
-- Magic 8
-- Dexterity 4
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
------------------... | gpl-3.0 |
jshackley/darkstar | scripts/globals/spells/bluemagic/amplification.lua | 17 | 1987 | -----------------------------------------
-- Spell: Amplification
-- Enhances magic attack and magic defense
-- Spell cost: 48 MP
-- Monster Type: Amorphs
-- Spell Type: Magical (Water)
-- Blue Magic Points: 3
-- Stat Bonus: HP-5, MP+5
-- Level: 70
-- Casting Time: 7 seconds
-- Recast Time: 120 seconds
-- Du... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Sauromugue_Champaign/npcs/qm4.lua | 19 | 2298 | -----------------------------------
-- Area: Sauromugue Champaign
-- NPC: qm4 (???) (Tower 4)
-- Involved in Quest: THF AF "As Thick As Thieves"
-- @pos 129.587 -0.600 -235.525 120
-----------------------------------
package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil;
------------------------------... | gpl-3.0 |
jshackley/darkstar | scripts/globals/weaponskills/knights_of_round.lua | 18 | 2076 | -----------------------------------
-- Knights Of Round
-- Sword Weapon Skill
-- Skill Level: N/A
-- Caliburn/Excalibur: Additional Effect: Regen.
-- Regen 10HP/Tick, duration varies with TP.
-- Available only when equipped with the Relic Weapons Caliburn (Dynamis use only) or Excalibur.
-- Also available withou... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Yuhtunga_Jungle/npcs/Uphra-Kophra_WW.lua | 30 | 3061 | -----------------------------------
-- Area: Yuhtunga Jungle
-- NPC: Uphra-Kophra, W.W.
-- Outpost Conquest Guards
-- @pos -242.487 -1 -402.772 123
-----------------------------------
package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest")... | gpl-3.0 |
OptimusLime/lua-websockets | spec/client_ev_spec.lua | 3 | 9088 | local websocket = require'websocket'
local socket = require'socket'
local client = require'websocket.client'
local ev = require'ev'
local frame = require'websocket.frame'
local port = os.getenv('LUAWS_WSTEST_PORT') or 11000
local req_ws = ' (requires external websocket server @port '..port..')'
local url = 'ws://127.0.... | mit |
Victek/wrt1900ac-aa | feeds/xwrt/webif-iw-lua/files/usr/lib/lua/lua-xwrt/addon/string.lua | 26 | 6374 | local hex2bin = {
["0"] = "0000",
["1"] = "0001",
["2"] = "0010",
["3"] = "0011",
["4"] = "0100",
["5"] = "0101",
["6"] = "0110",
["7"] = "0111",
["8"] = "1000",
["9"] = "1001",
["a"] = "1010",
["b"] = "1011",
["c"] = "1100",
["d"] = "1101",
["e"] = "1110",
["f"] = "1111"
}
local bin2hex = {
["0000"] ... | gpl-2.0 |
jshackley/darkstar | scripts/globals/spells/bluemagic/mysterious_light.lua | 18 | 1889 | -----------------------------------------
-- Spell: Mysterious Light
-- Deals wind damage to enemies within range. Additional effect: Weight
-- Spell cost: 73 MP
-- Monster Type: Arcana
-- Spell Type: Magical (Wind)
-- Blue Magic Points: 4
-- Stat Bonus: AGI+3
-- Level: 40
-- Casting Time: 3.75 seconds
-- Rec... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Sealions_Den/npcs/Airship_Door.lua | 11 | 1823 | -----------------------------------
-- Area:
-- NPC: Airship_Door
-----------------------------------
package.loaded["scripts/zones/Sealions_Den/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/missions");
require("scripts/zones/Sealions_Den/TextIDs");
... | gpl-3.0 |
jshackley/darkstar | scripts/globals/items/pot_of_royal_tea.lua | 35 | 1204 | -----------------------------------------
-- ID: 4524
-- Item: pot_of_royal_tea
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Vitality -1
-- Charisma 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
--... | gpl-3.0 |
jshackley/darkstar | scripts/zones/West_Sarutabaruta/npcs/Cavernous_Maw.lua | 29 | 1519 | -----------------------------------
-- Area: West Sarutabaruta
-- NPC: Cavernous Maw
-- Teleports Players to West Sarutabaruta [S]
-- @pos -2.229 0.001 -162.715 115
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
jshackley/darkstar | scripts/globals/mobskills/Hydro_Canon.lua | 1 | 1290 | ---------------------------------------------------
-- Hydro_Canon
-- Description:
-- Type: Magical
-- additional effect : 40hp/tick Poison
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
-----... | gpl-3.0 |
jshackley/darkstar | scripts/globals/items/m&p_dumpling.lua | 36 | 1210 | -----------------------------------------
-- ID: 5641
-- Item: M&P Dumpling
-- Food Effect: 3Min, All Races
-----------------------------------------
-- Intelligence 5
-- Agility -5
-- MP 30
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIte... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Temenos/mobs/Kindred_Summoner.lua | 1 | 1162 | -----------------------------------
-- Area: Temenos N T
-- NPC: Kindred_Summoner.
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-------------------... | gpl-3.0 |
Mizugola/MeltingSaga | engine/Lib/Extlibs/pl/permute.lua | 5 | 1598 | --- Permutation operations.
--
-- Dependencies: `pl.utils`, `pl.tablex`
-- @module pl.permute
local tablex = require 'Lib.Extlibs.pl.tablex'
local utils = require 'Lib.Extlibs.pl.utils'
local copy = tablex.deepcopy
local append = table.insert
local coroutine = coroutine
local resume = coroutine.resume
local assert_arg ... | mit |
mfirry/FrameworkBenchmarks | frameworks/Lua/lapis/web.lua | 72 | 5957 | local lapis = require("lapis")
local db = require("lapis.db")
local Model
do
local _obj_0 = require("lapis.db.model")
Model = _obj_0.Model
end
local config
do
local _obj_0 = require("lapis.config")
config = _obj_0.config
end
local insert
do
local _obj_0 = table
insert = _obj_0.insert
end
local sort
do
loc... | bsd-3-clause |
jshackley/darkstar | scripts/globals/items/hellfire_sword.lua | 41 | 1073 | -----------------------------------------
-- ID: 16928
-- Item: Hellfire Sword
-- Additional Effect: Fire Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-----------------------------... | gpl-3.0 |
ByteFun/Starbound_mods | smount/tech/mech/mount59/mount59.lua | 4 | 35383 | function checkCollision(position)
local boundBox = mcontroller.boundBox()
boundBox[1] = boundBox[1] - mcontroller.position()[1] + position[1]
boundBox[2] = boundBox[2] - mcontroller.position()[2] + position[2]
boundBox[3] = boundBox[3] - mcontroller.position()[1] + position[1]
boundBox[4] = boundBox[4] - mcon... | gpl-2.0 |
jshackley/darkstar | scripts/zones/Western_Altepa_Desert/Zone.lua | 27 | 4592 | -----------------------------------
--
-- Zone: Western_Altepa_Desert (125)
--
-----------------------------------
package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require("scripts/zones/Western_Al... | gpl-3.0 |
hacker44-h44/public2 | plugins/webshot.lua | 919 | 1473 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
header... | gpl-2.0 |
adminmagma/telegood | plugins/webshot.lua | 919 | 1473 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
header... | gpl-2.0 |
yagop/telegram-bot | plugins/webshot.lua | 919 | 1473 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
header... | gpl-2.0 |
jshackley/darkstar | scripts/zones/Xarcabard/npcs/qm4.lua | 17 | 1634 | -----------------------------------
-- Area: Xarcabard
-- NPC: qm4 (???)
-- Involved in Quests: Atop the Highest Mountains
-- @pos -21 -25 -490 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/setting... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Dragons_Aery/mobs/Fafnir.lua | 7 | 1452 | -----------------------------------
-- Area: Dragons Aery
-- HNM: Fafnir
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize
-----------------------------------
function ... | gpl-3.0 |
Ombridride/minetest-minetestforfun-server | mods/mesecons/mesecons/presets.lua | 13 | 1245 | mesecon.rules = {}
mesecon.state = {}
mesecon.rules.default =
{{x=0, y=0, z=-1},
{x=1, y=0, z=0},
{x=-1, y=0, z=0},
{x=0, y=0, z=1},
{x=1, y=1, z=0},
{x=1, y=-1, z=0},
{x=-1, y=1, z=0},
{x=-1, y=-1, z=0},
{x=0, y=1, z=1},
{x=0, y=-1, z=1},
{x=0, y=1, z=-1},
{x=0, y=-1, z=-1}}
mesecon.rules... | unlicense |
Naoir/packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/ruleconfig.lua | 14 | 4185 | -- ------ extra functions ------ --
function ruleCheck() -- determine if rule needs a protocol specified
local sourcePort = ut.trim(sys.exec("uci get -p /var/state mwan3." .. arg[1] .. ".src_port"))
local destPort = ut.trim(sys.exec("uci get -p /var/state mwan3." .. arg[1] .. ".dest_port"))
if sourcePort ~= "" or d... | gpl-2.0 |
jshackley/darkstar | scripts/zones/Al_Zahbi/npcs/Bjibar.lua | 38 | 1024 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Bjibar
-- Type: Standard NPC
-- @zone: 48
-- @pos -105.178 0.999 60.115
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-------------------------... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Sauromugue_Champaign/npcs/Stone_Monument.lua | 32 | 1305 | -----------------------------------
-- Area: Sauromugue Champaign
-- NPC: Stone Monument
-- Involved in quest "An Explorer's Footsteps"
-- @pos 77.544 -2.746 -184.803 120
-----------------------------------
package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
anoidgit/reading-comprehension | predict.lua | 1 | 2174 | local tif = arg[1] or "datasrc/duse/valid.data" -- test input, json format
local rsf = arg[2] or "test/aoanscore.txt" -- result score file
local modf = arg[3] or "modrs/170614_ne_2aoabase_088sgd_0001_v50_h50/devnnmod1.asc" -- model file
torch.setdefaulttensortype('torch.FloatTensor')
local tds = require("tds")
local ... | gpl-3.0 |
torch/senna | pos.lua | 1 | 1033 | local ffi = require 'ffi'
local senna = require 'senna.env'
local C = senna.C
local POS = {}
local mt = {__index=POS}
function POS.new()
local self = {}
self.hash = senna.Hash(senna.path, "hash/pos.lst")
self.c = C.SENNA_POS_new(senna.path, "data/pos.dat")
ffi.gc(self.c, C.SENNA_POS_free)
setmetatable(... | bsd-3-clause |
SwadicalRag/hash.js | plugins/lua/sand_modules/hook.lua | 2 | 2004 | local persist = true
local javascript_call = true
local override_callstate = true
local persistHooks = {}
local hooks = {}
local function Add( event, id, callback )
if ( type( callback ) ~= "function" ) then
error( "bad argument #3 to 'Add' (function expected, got " .. type( callback ) .. ")", 2 )
end
if persi... | cc0-1.0 |
DipColor/mehrabon3 | 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 |
luastoned/turbo | turbo/sockutil.lua | 8 | 10788 | --- Turbo.lua Socket Utils
--
-- Copyright 2011, 2012, 2013 John Abrahamsen
--
-- 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 r... | apache-2.0 |
samijon/online-anti-spam | plugins/stats.lua | 866 | 4001 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
mohammadclashclash/sina20160 | plugins/stats.lua | 866 | 4001 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
elbamos/nn | TemporalConvolution.lua | 14 | 2040 | local TemporalConvolution, parent = torch.class('nn.TemporalConvolution', 'nn.Module')
function TemporalConvolution:__init(inputFrameSize, outputFrameSize, kW, dW)
parent.__init(self)
dW = dW or 1
self.inputFrameSize = inputFrameSize
self.outputFrameSize = outputFrameSize
self.kW = kW
self.dW = dW
... | bsd-3-clause |
jshackley/darkstar | scripts/zones/Northern_San_dOria/npcs/Shomo_Pochachilo.lua | 38 | 1288 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Shomo Pochachilo
-- Type: Standard Info NPC
-- @zone: 231
-- @pos 28.369 -0.199 30.061
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
jshackley/darkstar | scripts/globals/items/bowl_of_vegetable_broth.lua | 35 | 1399 | -----------------------------------------
-- ID: 4323
-- Item: bowl_of_vegetable_broth
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- Vitality -1
-- Agility 5
-- Ranged Accuracy 6
-- HP Recovered While Healing 3
-----------------------------------------
require("scripts/globals... | gpl-3.0 |
jshackley/darkstar | scripts/globals/effects/mnd_down.lua | 18 | 1090 | -----------------------------------
--
-- EFFECT_MND_DOWN
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
if ((target:getStat(MOD_MND) - effec... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Ifrits_Cauldron/npcs/Treasure_Coffer.lua | 17 | 4283 | -----------------------------------
-- Area: Ifrit's Cauldron
-- NPC: Treasure Coffer
-- @zone 205
-- @pos 188 0 -28
-----------------------------------
package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/gl... | gpl-3.0 |
jshackley/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 |
remakeelectric/lua-libmodbus | demo.lua | 1 | 2976 | --[[
Very simple demo of using client/master APIs
Karl Palsson, April 2016
--]]
mb = require("libmodbus")
print("using libmodbus runtime version: ", mb.version())
print("using lua-libmodbus compiled against libmodbus: ", mb.VERSION_STRING)
local dev = mb.new_tcp_pi("localhost", 1502)
print(dev:get_byte_timeout())
pri... | mit |
LuaDist/lua-uri | test/rtsp.lua | 1 | 1535 | require "uri-test"
local URI = require "uri"
local testcase = TestCase("Test uri.rtsp and uri.rtspu")
function testcase:test_rtsp ()
local u = assert(URI:new("RTSP://MEDIA.EXAMPLE.COM:554/twister/audiotrack"))
is("rtsp://media.example.com/twister/audiotrack", tostring(u))
is("media.example.com", u:host())
... | mit |
jshackley/darkstar | scripts/globals/items/serving_of_leadafry.lua | 35 | 1203 | -----------------------------------------
-- ID: 5161
-- Item: serving_of_leadafry
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Agility 5
-- Vitality 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-... | gpl-3.0 |
UnKnOwNsBoT/UnKnOwNsBoT | plugins/plugins.lua | 13 | 6195 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
jshackley/darkstar | scripts/globals/effects/dex_down.lua | 18 | 1089 | -----------------------------------
--
-- EFFECT_DEX_DOWN
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
if ((target:getStat(MOD_DEX) - effec... | gpl-3.0 |
Naoir/packages | net/luci-app-clamav/files/model/cbi/clamav-cbi.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... | gpl-2.0 |
saeeidbeygi/Mrbot | plugins/id.lua | 226 | 4260 | local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
local function returnids(cb_extra, success, result)
local re... | gpl-2.0 |
lpiob/MTA-TokyoRPG | gamemode/RL_VEHICLE/travelmeter_s.lua | 1 | 1369 | function startTravel()
for k, v in ipairs(getElementsByType("vehicle")) do
if not getElementData(v,"vehicle:travel") then
setElementData(v,"vehicle:travel",0)
end
end
end
function positionTravel()
for k1, v1 in ipairs(getElementsByType("vehicle")) do
local x, y, z = getElementPosition(v1)
if getElementDat... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.