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 |
|---|---|---|---|---|---|
reonZ/project-arena | game/dota_addons/project_arenas/scripts/vscripts/deal_damage.lua | 1 | 4698 | local c_miss_default = 5
local c_block_default = 0
local c_block_value = 0.5
local c_crit_default = 10
local c_crit_value = 1.5
function MissDamage( hUnit )
local iChance = c_miss_default
local declares = {
[MODIFIER_CUSTOM_MISS_CHANCE_CONSTANT] = function( iValue )
iChance = iChance + iValue
end
}... | gpl-2.0 |
nesstea/darkstar | scripts/zones/Gusgen_Mines/npcs/_5g1.lua | 13 | 1087 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: _5g1 (Door B)
-- @pos 20.002 -42.398 -25.499 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Gusgen_Mines/TextIDs");
-----------------------... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Upper_Jeuno/npcs/Hinda.lua | 34 | 1370 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Hinda
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Upper_Jeuno/TextIDs");
require("scripts/globals/quests");
---... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/East_Sarutabaruta/npcs/Signpost.lua | 38 | 2029 | -----------------------------------
-- Area: East Sarutabaruta
-- NPC: Signpost
-----------------------------------
package.loaded["scripts/zones/East_Sarutabaruta/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/East_Sarutabaruta/TextIDs");
-----------------------------------
-- onTrade A... | gpl-3.0 |
ld-test/fun-alloyed | fun.lua | 16 | 28395 | ---
--- Lua Fun - a high-performance functional programming library for LuaJIT
---
--- Copyright (c) 2013-2014 Roman Tsisyk <roman@tsisyk.com>
---
--- Distributed under the MIT/X11 License. See COPYING.md for more details.
---
local exports = {}
local methods = {}
-----------------------------------------------------... | mit |
allwenandashi/ASHI | 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 |
ferisystem/ApiSeed | 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 |
VurtualRuler98/kswep2-NWI | lua/ins_sounds/sounds_ak74.lua | 1 | 1832 | if (SERVER) then
AddCSLuaFile()
end
--AK-74
sound.Add({
name="Weapon_AK74.Single",
volume = 1.0,
pitch = {100,105},
sound = "weapons/ak74/AK74_fp.wav",
level = 145,
channel = CHAN_STATIC
})
sound.Add({
name="Weapon_AK74.SingleSilenced",
volume = 1.0,
pitch = {100,105},
sound = "weapons/ak74/AK74_suppressed_f... | apache-2.0 |
nesstea/darkstar | scripts/globals/spells/deodorize.lua | 27 | 1133 | -----------------------------------------
-- Spell: Deodorize
-- Lessens chance of being detected by smell.
-- Duration is random number between 30 seconds and 5 minutes
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
----------------------------------... | gpl-3.0 |
nesstea/darkstar | scripts/globals/items/king_truffle.lua | 18 | 1185 | -----------------------------------------
-- ID: 4386
-- King Truffle
-- 5 Minutes, food effect, All Races
-----------------------------------------
-- Strength -6
-- Mind +4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIt... | gpl-3.0 |
nesstea/darkstar | scripts/globals/spells/bluemagic/foot_kick.lua | 35 | 1687 | -----------------------------------------
-- Spell: Foot Kick
-- Deals critical damage. Chance of critical hit varies with TP
-- Spell cost: 5 MP
-- Monster Type: Beasts
-- Spell Type: Physical (Slashing)
-- Blue Magic Points: 2
-- Stat Bonus: AGI+1
-- Level: 1
-- Casting Time: 0.5 seconds
-- Recast Time: 6.5 seconds
-... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Port_San_dOria/npcs/Sheridan.lua | 19 | 1770 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Sheridan
-- Involved in Quests: Riding on the Clouds
-- @zone 232
-- @pos -19 -8 -129
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/glo... | gpl-3.0 |
heyuqi/wxFormBuilder | build/premake/4.3/src/base/validate.lua | 70 | 2531 | --
-- validate.lua
-- Tests to validate the run-time environment before starting the action.
-- Copyright (c) 2002-2009 Jason Perkins and the Premake project
--
--
-- Performs a sanity check of all of the solutions and projects
-- in the session to be sure they meet some minimum requirements.
--
function premake.c... | gpl-2.0 |
UnfortunateFruit/darkstar | scripts/zones/Windurst_Woods/npcs/Miiri-Wohri.lua | 38 | 1037 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Miiri-Wohri
-- Type: Standard NPC
-- @zone: 241
-- @pos 106.766 -6 -30.492
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
------------... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Qufim_Island/npcs/Jiwon.lua | 13 | 1889 | -----------------------------------
-- Area: Qufim Island
-- NPC: Jiwon
-- Type: Outpost Vendor
-- @pos -249 -19 300 126
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conques... | gpl-3.0 |
gmorishere/bot | plugins/hearthstone.lua | 15 | 2332 | -- Plugin for the Hearthstone database provided by hearthstonejson.com.
if not hs_dat then
hs_dat = {}
local jstr, res = HTTPS.request('http://hearthstonejson.com/json/AllSets.json')
if res ~= 200 then
print('Error connecting to hearthstonejson.com.')
print('hearthstone.lua will not be enabled.')
end
local... | gpl-2.0 |
nesstea/darkstar | scripts/zones/Port_Windurst/npcs/Hohbiba-Mubiba.lua | 17 | 1689 | -----------------------------------
-- Area: Port Windurst
-- NPC: Hohbiba-Mubiba
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts/zones/Port_Windurst/TextIDs"... | gpl-3.0 |
nesstea/darkstar | scripts/globals/items/blacksmiths_belt.lua | 18 | 1175 | -----------------------------------------
-- ID: 15445
-- Item: Blacksmith's Belt
-- Enchantment: Synthesis image support
-- 2Min, All Races
-----------------------------------------
-- Enchantment: Synthesis image support
-- Duration: 2Min
-- Smithing Skill +3
-----------------------------------------
require("script... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Open_sea_route_to_Al_Zahbi/npcs/Cehn_Teyohngo.lua | 13 | 1212 | -----------------------------------
-- Area: Open sea route to Al Zahbi
-- NPC: Cehn Teyohngo
-- Guild Merchant NPC: Fishing Guild
-- @zone 4.986 -2.101 -12.026 46
-----------------------------------
package.loaded["scripts/zones/Open_sea_route_to_Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
ennis/autograph-pipelines | resources/scripts/class.lua | 1 | 1269 | -- class.lua
-- Compatible with Lua 5.1 (not 5.0).
function class(base)
local c = {} -- a new class instance
if type(base) == 'table' then
-- our new class is a shallow copy of the base class!
for i,v in pairs(base) do
c[i] = v
end
c._base = base
end
-- the class will be th... | mit |
nesstea/darkstar | scripts/zones/Jugner_Forest_[S]/Zone.lua | 12 | 1790 | -----------------------------------
--
-- Zone: Jugner_Forest_[S] (82)
--
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Jugner_Forest_[S]/TextIDs");
------------------... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Spire_of_Dem/npcs/_0j1.lua | 36 | 1313 | -----------------------------------
-- Area: Spire_of_Dem
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Dem/TextIDs");
---------------... | gpl-3.0 |
xenith-studios/golua | README.lua | 1055 | 1378 | README for Lua 5.1
See INSTALL for installation instructions.
See HISTORY for a summary of changes since the last released version.
* What is Lua?
------------
Lua is a powerful, light-weight programming language designed for extending
applications. Lua is also frequently used as a general-purpose, stand-alone
... | mit |
UnfortunateFruit/darkstar | scripts/globals/weaponskills/metatron_torment.lua | 11 | 2537 | -----------------------------------
-- Metatron Torment
-- Hand-to-Hand Skill level: 5 Description: Delivers a threefold attack. Damage varies wit weapon skill
-- Great Axe Weapon Skill
-- Skill Level: N/A
-- Lowers target's defense. Additional effect: temporarily lowers damage taken from enemies.
-- Defense Down... | gpl-3.0 |
nesstea/darkstar | scripts/commands/animatesubnpc.lua | 20 | 1046 | ---------------------------------------------------------------------------------------------------
-- func: animatesubnpc
-- desc: Changes the animationSub of the given npc. (For testing purposes.)
---------------------------------------------------------------------------------------------------
require("scripts/glo... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Jugner_Forest/npcs/Cavernous_Maw_2.lua | 29 | 1957 | -----------------------------------
-- Area: Jugner Forest
-- NPC: Cavernous Maw
-- @pos 246.318, -0.709, 5.706 104
-- Teleports Players to Abyssea - Vunkerl
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil;
-----------------------------------
require("scripts/g... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Palborough_Mines/npcs/Treasure_Chest.lua | 12 | 2651 | -----------------------------------
-- Area: Palborough Mines
-- NPC: Treasure Chest
-- @zone 143
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("s... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Wajaom_Woodlands/npcs/Harvesting_Point.lua | 13 | 1138 | -----------------------------------
-- Area: Wajaom Woodlands
-- NPC: Harvesting Point
-----------------------------------
package.loaded["scripts/zones/Wajaom_Woodlands/TextIDs"] = nil;
package.loaded["scripts/globals/harvesting"] = nil;
-------------------------------------
require("scripts/globals/harvesting");
... | gpl-3.0 |
nesstea/darkstar | scripts/zones/RuAun_Gardens/mobs/Suzaku.lua | 7 | 2092 | -----------------------------------
-- Area: Ru'Aun Gardens
-- NM: Suzaku
-----------------------------------
package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/RuAun_Gardens/TextIDs");
require("scripts/globals/status");
---------------------------... | gpl-3.0 |
Mashape/kong | spec/02-integration/06-invalidations/01-cluster_events_spec.lua | 2 | 9785 | _G.ngx.config.debug = true
local helpers = require "spec.helpers"
local kong_cluster_events = require "kong.cluster_events"
for _, strategy in helpers.each_strategy() do
describe("cluster_events with db [#" .. strategy .. "]", function()
local db
lazy_setup(function()
local _
_, d... | apache-2.0 |
ruisebastiao/nodemcu-firmware | lua_examples/send_text_message.lua | 75 | 3151 | --[[
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, distribute,
sublicense, and/or sell copies... | mit |
UnfortunateFruit/darkstar | scripts/zones/Yuhtunga_Jungle/Zone.lua | 25 | 4227 | -----------------------------------
--
-- Zone: Yuhtunga_Jungle (123)
--
-----------------------------------
package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require("scripts/zones/Yuhtunga_Jungle/TextID... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/spells/stoneskin.lua | 10 | 1762 | -----------------------------------------
-- Spell: Stoneskin
-----------------------------------------
-- http://wiki.ffxiclopedia.org/wiki/Stoneskin
-- Max 350 damage absorbed
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
---... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Hall_of_Transference/npcs/_0e0.lua | 32 | 1340 | -----------------------------------
-- Area: Hall of Transference
-- NPC: Cermet Gate - Holla
-- @pos -219 -6 280 14
-----------------------------------
package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/H... | gpl-3.0 |
nesstea/darkstar | scripts/zones/RuLude_Gardens/npcs/Magian_Moogle_Blue.lua | 48 | 1855 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Magian Moogle (Blue Bobble)
-- Type: Magian Trials NPC (Relic Armor)
-- @pos -6.843 2.459 121.9 64
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
package.loaded["scripts/globals/magiantrials"] = nil;... | gpl-3.0 |
nesstea/darkstar | scripts/zones/The_Shrine_of_RuAvitau/mobs/Mother_Globe.lua | 6 | 2511 | -----------------------------------
-- Area: The Shrine of Ru'Avitau
-- NPC: Mother Globe
-----------------------------------
package.loaded["scripts/zones/The_Shrine_of_RuAvitau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require( "scripts/zones/The_Shrine_of_RuAvitau/Text... | gpl-3.0 |
Disslove-bot/Max3-BOT | 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 |
nesstea/darkstar | scripts/zones/Kuftal_Tunnel/MobIDs.lua | 28 | 2819 | -----------------------------------
-- Area: Kuftal Tunnel
-- Comments: -- posX, posY, posZ
--(Taken from 'mob_spawn_points' table)
-----------------------------------
-- Amemet
Amemet=17490016;
Amemet_PH={
[17490000] = '1', -- 123.046, 0.250, 18.642
[17489994] = '1', -- 112.135, -0.278, 38.281
[17490001] = '1'... | gpl-3.0 |
nesstea/darkstar | scripts/globals/spells/knights_minne_iv.lua | 27 | 1497 | -----------------------------------------
-- Spell: Knight's Minne IV
-- Grants Defense bonus to all allies.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(cas... | gpl-3.0 |
JulioC/telegram-bot | 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 |
craigbarnes/lua-gumbo | test/sanitize-href.lua | 3 | 1511 | local gumbo = require "gumbo"
local sanitize = require "gumbo/sanitize"
local assert = assert
local _ENV = nil
local input = [[
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML5 Sanitizer Test Input</title>
</head>
<body>
<a href=foo>#1</a>
<a href=bar>#2</a>
<a href=etc>#... | apache-2.0 |
zuzuf/TA3D | src/ta3d/src/luajit/src/jit/dis_x86.lua | 99 | 29330 | ----------------------------------------------------------------------------
-- LuaJIT x86/x64 disassembler module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
--------------------------------------------------------------------------... | gpl-2.0 |
UnfortunateFruit/darkstar | scripts/zones/Port_Windurst/npcs/_6o7.lua | 37 | 1091 | -----------------------------------
-- Area: Port Windurst
-- NPC: Door: Arrivals Entrance
-- @zone 240
-- @pos 212 -6 96
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("script... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Port_Bastok/npcs/HomePoint#2.lua | 12 | 1242 | -----------------------------------
-- Area: Port_Bastok
-- NPC: HomePoint#2
-- @pos 42 8.5 -244 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Port_Bastok/TextIDs");
require("scripts/globals/hom... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/items/flame_sword.lua | 16 | 1029 | -----------------------------------------
-- ID: 16621
-- Item: Flame Sword
-- Additional Effect: Fire Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
--------------------------------... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Norg/npcs/Achika.lua | 13 | 1300 | -----------------------------------
-- Area: Norg
-- NPC: Achika
-- Type: Tenshodo Merchant
-- @pos 1.300 0.000 19.259 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop")... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Norg/npcs/Quntsu-Nointsu.lua | 27 | 2965 | -----------------------------------
-- Area: Norg
-- NPC: Quntsu-Nointsu
-- Title Change NPC
-- @pos -67 -1 34 252
-----------------------------------
require("scripts/globals/titles");
local title2 = { HONORARY_DOCTORATE_MAJORING_IN_TONBERRIES , BUSHIDO_BLADE , BLACK_MARKETEER , CRACKER_OF_THE_SECRET_CODE ,
... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Cloister_of_Storms/Zone.lua | 32 | 1660 | -----------------------------------
--
-- Zone: Cloister_of_Storms (202)
--
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Storms/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Cloister_of_Storms/TextIDs");
---... | gpl-3.0 |
aminsa2000/create-me | plugins/settings.lua | 13 | 33964 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
hamed9898/maxbot | 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 |
nesstea/darkstar | scripts/zones/Windurst_Woods/npcs/Retto-Marutto.lua | 27 | 1193 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Retto-Marutto
-- Guild Merchant NPC: Bonecrafting Guild
-- @pos -6.142 -6.55 -132.639 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/s... | gpl-3.0 |
dpino/snabbswitch | src/apps/wall/util.lua | 10 | 3108 | local link = require("core.link")
local packet = require("core.packet")
local ffi = require("ffi")
local bit = require("bit")
local l_receive, l_transmit = link.receive, link.transmit
local l_nreadable, l_nwritable = link.nreadable, link.nwritable
local p_free = packet.free
local uint16_ptr_t = ffi.typeof("ui... | apache-2.0 |
nesstea/darkstar | scripts/zones/Quicksand_Caves/npcs/_5s9.lua | 13 | 1253 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Ornate Door
-- Door blocked by Weight system
-- @pos -345 0 820 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Caves/TextIDs... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Windurst_Waters/npcs/Mashuu-Ajuu.lua | 12 | 6278 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Mashuu-Ajuu
-- Starts and Finished Quest: Reap What You Sow
-- Involved in Quest: Making the Grade
-- Working 100%
-- @zone = 238
-- @pos = 129 -6 167
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = ni... | gpl-3.0 |
jj918160/cocos2d-x-samples | samples/KillBug/src/cocos/framework/extends/UIScrollView.lua | 55 | 2042 |
--[[
Copyright (c) 2011-2014 chukong-inc.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, di... | mit |
UnfortunateFruit/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5f6.lua | 34 | 1105 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Odin's Gate
-- @pos 260 -34 110 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs");... | gpl-3.0 |
nesstea/darkstar | scripts/globals/mobskills/Savage_blade.lua | 17 | 1122 | ---------------------------------------------
-- Savage Blade
--
-- Description: Delivers a four-hit attack. Chance of critical varies with TP.
-- Type: Physical
-- Shadow per hit
-- Range: Melee
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
... | gpl-3.0 |
nesstea/darkstar | scripts/globals/items/serving_of_herb_quus.lua | 18 | 1383 | -----------------------------------------
-- ID: 4559
-- Item: serving_of_herb_quus
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Dexterity 1
-- Mind -1
-- Ranged ACC % 7
-- Ranged ACC Cap 10
-----------------------------------------
require("scripts/globals/status");
----------------... | gpl-3.0 |
ruisebastiao/nodemcu-firmware | lua_examples/adc_rgb.lua | 73 | 1163 | --
-- Light sensor on ADC(0), RGB LED connected to gpio12(6) Green, gpio13(7) Blue & gpio15(8) Red.
-- This works out of the box on the typical ESP8266 evaluation boards with Battery Holder
--
-- It uses the input from the sensor to drive a "rainbow" effect on the RGB LED
-- Includes a very "pseudoSin" function
--
f... | mit |
johnmccabe/dockercraft | world/Plugins/Debuggers/Info.lua | 7 | 5608 |
-- Info.lua
-- Implements the g_PluginInfo standard plugin description
g_PluginInfo =
{
Name = "Debuggers",
Version = "14",
Date = "2014-12-11",
Description = [[Contains code for testing and debugging the server. Should not be enabled on a production server!]],
Commands =
{
["/arr"] =
{
Permission... | apache-2.0 |
UnfortunateFruit/darkstar | scripts/globals/weaponskills/keen_edge.lua | 30 | 1342 | -----------------------------------
-- Keen Edge
-- Great Axe weapon skill
-- Skill level: 150
-- Delivers a single hit attack. Chance of params.critical varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Shadow Gorget.
-- Aligned with the Shadow Belt.
-- Element: None
-- Modifiers: STR:35%
... | gpl-3.0 |
nesstea/darkstar | scripts/zones/The_Garden_of_RuHmet/npcs/qm1.lua | 15 | 2233 | -----------------------------------
-- Area: The_Garden_of_RuHmet
-- NPC: ??? (Jailer of Fortitude Spawn)
-- Allows players to spawn the Jailer of Fortitude by trading 12 Ghrah M Chips to a ???.
-- @pos random ,-420 0 755, -43,0.00,460, -260,0.00,44.821, -580,0.00,43, -796,0.00,460
-----------------------------------
... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Windurst_Woods/npcs/Manyny.lua | 36 | 1453 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Manyny
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
require("scripts/zones/Windurst_Woods/Tex... | gpl-3.0 |
Spartan322/finalfrontier | gamemode/sgui/label.lua | 3 | 1716 | -- Copyright (c) 2014 James King [metapyziks@gmail.com]
--
-- This file is part of Final Frontier.
--
-- Final Frontier 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 Lic... | lgpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Castle_Oztroja/npcs/_m71.lua | 19 | 1187 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _m71 (Torch Stand)
-- Involved in Mission: Magicite
-- @pos -99 24 -105 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
req... | gpl-3.0 |
UnfortunateFruit/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 |
UnfortunateFruit/darkstar | scripts/globals/spells/valor_minuet_iv.lua | 13 | 1536 | -----------------------------------------
-- Spell: Valor Minuet IV
-- Grants Attack bonus to all allies.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster... | gpl-3.0 |
nesstea/darkstar | scripts/commands/promote.lua | 24 | 1172 | ---------------------------------------------------------------------------------------------------
-- func: promote
-- desc: Promotes the player to a new GM level.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "si"... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Southern_San_dOria/npcs/Ceraule.lua | 13 | 1460 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Ceraule
-- General Info NPC
-- @zone 230
-- @pos -86 2 -35
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings... | gpl-3.0 |
fegimanam/sss | 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 |
hamed9898/maxbot | 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 |
nesstea/darkstar | scripts/zones/Castle_Zvahl_Baileys/TextIDs.lua | 22 | 1092 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6538; -- You cannot obtain the item <item>. come back after sorting your inventory.
ITEM_OBTAINED = 6543; -- Obtained: <item>.
GIL_OBTAINED = 6544; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6546; -- Obtained... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Port_Windurst/npcs/Aroro.lua | 17 | 1675 | -----------------------------------
-- Area: Port Windurst
-- NPC: Aroro
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts/zones/Port_Windurst/TextIDs");
-----... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/items/pamama_tart.lua | 35 | 1447 | -----------------------------------------
-- ID: 4563
-- Item: pamama_tart
-- Food Effect: 1hour, All Races
-----------------------------------------
-- HP 10
-- MP 10
-- Dexterity -1
-- Intelligence 3
-- MP Recovered While Healing 2
-----------------------------------------
require("scripts/globals/status... | gpl-3.0 |
nesstea/darkstar | scripts/zones/The_Garden_of_RuHmet/mobs/Jailer_of_Faith.lua | 8 | 1540 | -----------------------------------
-- Area: The Garden of Ru'Hmet
-- NPC: Jailer_of_Faith
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
-- Give it two hour
mob:setMod(MOBMOD_MAIN_2HOUR, 1);
-- Cha... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Abyssea-Tahrongi/npcs/qm15.lua | 17 | 1550 | -----------------------------------
-- Zone: Abyssea-Tahrongi
-- NPC: ???
-- Spawns: Lacovie
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/keyitems");
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(play... | gpl-3.0 |
vonflynee/opencomputersserver | world/opencomputers/6d437cc7-8fe8-4147-8a29-4c8b62fcedc7/lib/io.lua | 15 | 2517 | local io = {}
-------------------------------------------------------------------------------
function io.close(file)
return (file or io.output()):close()
end
function io.flush()
return io.output():flush()
end
function io.input(file)
if file then
if type(file) == "string" then
local result, reason =... | mit |
UnfortunateFruit/darkstar | scripts/globals/items/prominence_axe.lua | 16 | 1409 | -----------------------------------------
-- ID: 18220
-- Item: Prominence Axe
-- Additional Effect: Fire Damage
-- Enchantment: Enfire
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
------... | gpl-3.0 |
AlmightyLaxz/air-raid | air-raid/gamemode/server/data.lua | 1 | 1492 | if not sql.TableExists("AirRaid") then
sql.Query("CREATE TABLE AirRaid(steamid STRING, name STRING, highscore INT DEFAULT 0, rounds INT DEFAULT 0)")
end
local meta = FindMetaTable("Player")
function meta:NewPlayer()
local err = sql.Query("INSERT INTO AirRaid (steamid, name) VALUES(" .. SQLStr(self:SteamID()) .. ", ... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Metalworks/npcs/Ghemp.lua | 24 | 2139 | -----------------------------------
-- Area: Metalworks
-- NPC: Ghemp
-- Type: Smithing Guild Master
-- @pos -109 2 27 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/glo... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Yuhtunga_Jungle/npcs/Zorchorevi_RK.lua | 30 | 3059 | -----------------------------------
-- Area: Yuhtunga Jungle
-- NPC: Zorchorevi, R.K.
-- 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 |
nesstea/darkstar | scripts/zones/Windurst_Waters/npcs/Naiko-Paneiko.lua | 25 | 3850 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Naiko-Paneiko
-- Involved In Quest: Making Headlines, Riding on the Clouds
-- @zone 238
-- @pos -246 -5 -308
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
package.loaded["scripts/globals/settings"]... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Temple_of_Uggalepih/TextIDs.lua | 5 | 2212 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6382; -- Obtained: <item>
GIL_OBTAINED = 6383; -- Obtained <number> gil
KEYITEM_OBTAINED = 6385; -- Obtain... | gpl-3.0 |
bowlofstew/Macaroni | Main/App/project.lua | 1 | 8719 | require "os"
require "Macaroni.IO.Path"
if Macaroni == nil then
Path = require "Macaroni.IO.Path"
else
Path = Macaroni.IO.Path
end
project = context
:Group("Macaroni")
:Project("Macaroni.App")
:Version("0.3.2")
---------------------------------------------------------------------------
-- Helper... | apache-2.0 |
NezzKryptic/Wire-Extras | lua/weapons/gmod_tool/stools/selfchanger.lua | 3 | 3485 | TOOL.Category = "GUI Panels"
TOOL.Name = "Self changer"
TOOL.Command = nil
TOOL.ConfigName = ""
TOOL.ClientConVar =
{
["widvariable"] = "",
["widvalue"] = "",
["widvaluenum"] = "0"
}
if ( CLIENT ) then
language.Add( "tool.selfchanger.name", "Developer Tool" )
language.Add( "tool.selfchanger.desc", ... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Full_Moon_Fountain/bcnms/moonlit_path.lua | 30 | 2203 | -----------------------------------
-- Area: Full Moon Fountain
-- Name: The Moonlit Path
-----------------------------------
package.loaded["scripts/zones/Full_Moon_Fountain/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("scripts/... | gpl-3.0 |
reonZ/project-arena | game/dota_addons/project_arenas/scripts/vscripts/abilities/royal_guard/royal_guard_protect.lua | 1 | 2857 | local c_ability_name = 'royal_guard_protect'
local c_base_duration = 'base_duration'
local c_bonus_duration = 'bonus_duration'
local c_physical_damage = 'physical_reduction'
local c_magical_damage = 'magical_reduction'
local c_active_tick = 0.03
local c_active_effect = 'particles/abilities/protect/buff/bu... | gpl-2.0 |
UnfortunateFruit/darkstar | scripts/globals/weaponskills/wasp_sting.lua | 12 | 1538 | -----------------------------------
-- Wasp Sting
-- Dagger weapon skill
-- Skill level: 5
-- Poisons target. Duration of effect varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Soil Gorget.
-- Aligned with the Soil Belt.
-- Element: None
-- Modifiers: : DEX:100%
-- 100%TP 200%TP 300... | gpl-3.0 |
nesstea/darkstar | scripts/globals/items/kalamar.lua | 18 | 1307 | -----------------------------------------
-- ID: 5448
-- Item: Kalamar
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 3
-- Mind -5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----------... | gpl-3.0 |
nesstea/darkstar | scripts/globals/mobskills/Fanatic_Dance.lua | 45 | 1037 | ---------------------------------------------------
-- Fanatic Dance
-- Family: Orc
-- Description: Charms all targets in an area of effect.
-- Type: Enfeebling
-- Utsusemi/Blink absorb: N/A
-- Range: AoE around user
-- Notes: Dynamis NM Orcs only
---------------------------------------------------
require("scri... | gpl-3.0 |
UnfortunateFruit/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 |
bowlofstew/Macaroni | Next/Tests/Features/BoostBuild/SomeLibB/project.lua | 2 | 2647 | --------------------------------------------------------------------------------
-- Plugins
--------------------------------------------------------------------------------
porg = plugins:Get("Porg")
cpp = plugins:Get("Cpp")
html = plugins:Get("HtmlView")
bjam = plugins:Get("BoostBuild2")
-------------------... | apache-2.0 |
zuzuf/TA3D | src/ta3d/mods/ta3d/scripts/armsam.lua | 2 | 3173 | -- Arm Mobile SAM Launcher
createUnitScript("armsam")
__this:piece( "flare1", "flare2", "base", "launcher", "turret" )
__this.SMOKEPIECE1 = __this.base
#include "exptype.lh"
#include "smokeunit.lh"
#include "hitweap.lh"
__this.Create = function(this)
this:hide( this.flare1 )
this:hide( this.flare2 )
... | gpl-2.0 |
abhinavmoudgil95/funnybot | src/VanillaRNN.lua | 14 | 5754 | require 'torch'
require 'nn'
local layer, parent = torch.class('nn.VanillaRNN', 'nn.Module')
--[[
Vanilla RNN with tanh nonlinearity that operates on entire sequences of data.
The RNN has an input dim of D, a hidden dim of H, operates over sequences of
length T and minibatches of size N.
On the forward pass we acc... | mit |
VurtualRuler98/kswep2-NWI | lua/entities/sent_kgreni2_m136.lua | 1 | 1632 | ENT.Type = "Anim"
ENT.Base = "sent_kgren_base"
ENT.PrintName = "Grenade"
ENT.Author = "VurtualRuler98"
ENT.Contact = "steam"
ENT.Purpose = "Getting more ammo!"
ENT.Instructions = "Spawn. Use. Reload."
ENT.Category = "Vurtual's base"
ENT.DetFragMagnitude="150"
ENT.DetFragRadius="768"
ENT.Spawnable = false
ENT.Ad... | apache-2.0 |
nesstea/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5fh.lua | 13 | 1077 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Shiva's Gate
-- @pos 110 -34 100 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs");
-----... | gpl-3.0 |
nesstea/darkstar | scripts/globals/items/coeurl_sub.lua | 18 | 1832 | -----------------------------------------
-- ID: 5166
-- Item: coeurl_sub
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Magic 10
-- Strength 5
-- Agility 1
-- Intelligence -2
-- Health Regen While Healing 1
-- Attack % 20
-- Attack Cap 75
-- Ranged ATT % 20
-- Ranged ATT Cap 75
---------... | gpl-3.0 |
dpino/snabbswitch | lib/ljsyscall/syscall/linux/constants.lua | 8 | 76404 | -- tables of constants
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 "syscall.abi"
loc... | apache-2.0 |
nesstea/darkstar | scripts/globals/items/moogle_pie.lua | 18 | 1701 | -----------------------------------------
-- ID: 5561
-- Item: Moogle Pie
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- HP 20
-- MP 20
-- Strength 1
-- Dexterity 1
-- Vitality 1
-- Agility 1
-- Intelligence 1
-- Mind 1
-- Charisma 1
-----------------------------------------
require("scr... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Kazham/npcs/Dheo_Nbolo.lua | 15 | 1050 | -----------------------------------
-- Area: Kazham
-- NPC: Dheo Nbolo
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
func... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.