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
rpetit3/darkstar
scripts/zones/Monarch_Linn/bcnms/ancient_vows.lua
13
1921
----------------------------------- -- Area: Monarch Linn -- Name: Ancient Vows ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/missions"); -- After registering the BCNM via bcnmRegister(bcnmid) function onBcnmRegister(player,instance) end; -- Physically entering the ...
gpl-3.0
rpetit3/darkstar
scripts/globals/spells/blade_madrigal.lua
27
1568
----------------------------------------- -- Spell: Blade Madrigal -- Gives party members accuracy ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target...
gpl-3.0
yaser1382/BDReborn
libs/serpent.lua
656
7877
local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} lo...
gpl-3.0
MHK-BOT/copy
system/libs/serpent.lua
656
7877
local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} lo...
gpl-2.0
dwmw2/luci
applications/luci-app-asterisk/luasrc/model/cbi/asterisk/phone_sip.lua
68
3603
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local ast = require("luci.asterisk") local function find_outgoing_contexts(uci) local c = { } local h = { } uci:foreach("asterisk", "dialplan", function(s) if not h[s['.name']] then c[#c+1] = { s['...
apache-2.0
renchunxiao/luajson
tests/lunit-simple-decode.lua
4
3624
local json = require("json") local lunit = require("lunit") -- Test module for handling the simple decoding that behaves more like expected module("lunit-simple-decode", lunit.testcase, package.seeall) function test_decode_simple_undefined() assert_nil(json.decode('undefined', json.decode.simple)) end function test_...
mit
opentechinstitute/luci-commotion-linux
libs/web/luasrc/i18n.lua
77
3182
--[[ LuCI - Internationalisation Description: A very minimalistic but yet effective internationalisation module FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You ...
apache-2.0
DDTChen/CookieVLC
vlc/share/lua/playlist/liveleak.lua
91
1883
--[[ $Id$ Copyright © 2012 VideoLAN and AUTHORS Authors: Ludovic Fauvet <etix@videolan.org> 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 optio...
gpl-2.0
rpetit3/darkstar
scripts/globals/fieldsofvalor.lua
12
19354
------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/conquest"); -- require("scripts/globals/teleports"); require("scripts/globals/status"); require("scripts/globals/regimereward"); require("scripts/globals/regimeinfo"); require("scripts/globals/common"); -- ...
gpl-3.0
vlapsley/outback
mods/plantlife/vines/functions.lua
1
4309
-- support for i18n local S = plantlife_i18n.gettext vines.register_vine = function( name, defs, biome ) local groups = { vines=1, snappy=3, flammable=2 } local vine_name_end = 'vines:'..name..'_end' local vine_name_middle = 'vines:'..name..'_middle' local vine_image_end = "vines_"..name.."_end.png" local ...
lgpl-2.1
tommo/gii
template/game/lib/mock/component/Audio.lua
1
5245
module 'mock' -------------------------------------------------------------------- --SOUND Listener -------------------------------------------------------------------- --TODO: add multiple listener support (need host works) ? CLASS: SoundListener () :MODEL{ Field 'forward' :type('vec3') :getset('VectorForward'); ...
mit
ddouglascarr/rooset
lffrontend/app/main/index/_sidebar_units.lua
1
3993
local member = param.get ( "member", "table" ) local unit = app.unit ui.sidebar ( "tab-whatcanido units", function () local areas_selector = Area:new_selector() :reset_fields() :add_field("area.id", nil, { "grouped" }) :add_field("area.unit_id", nil, { "grouped" }) :add_field("area.name", nil, { "...
mit
rpetit3/darkstar
scripts/zones/Port_San_dOria/npcs/HomePoint#3.lua
27
1266
----------------------------------- -- Area: Port San dOria -- NPC: HomePoint#3 -- @pos -6 -13 -150 232 ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Port_San_dOria/TextIDs"); require("scripts/globals/home...
gpl-3.0
rpetit3/darkstar
scripts/globals/items/slice_of_dragon_meat.lua
18
1345
----------------------------------------- -- ID: 4272 -- Item: slice_of_dragon_meat -- Food Effect: 5Min, Galka only ----------------------------------------- -- Strength 6 -- Intelligence -8 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnIt...
gpl-3.0
vseledkin/april-ann
packages/imaging/interest_points/test/testAreaPixel.lua
3
1224
imgFile = "sample_iam.png" pointsFile = "sample_iam.txt" img = ImageIO.read(imgFile):to_grayscale() points = {{},{},{},{},{}} -- Open the interest points list for line in io.open(pointsFile, "r"):lines() do point = map(tonumber, ipairs(string.tokenize(line))) if point[3] <= 5 then table.insert(points[p...
gpl-3.0
askore/LootSecretary
src/lua/Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua
3
5744
--[[----------------------------------------------------------------------------- ColorPicker Widget -------------------------------------------------------------------------------]] local Type, Version = "ColorPicker", 23 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or (AceGUI:GetWidgetVer...
apache-2.0
atkinson137/lootmasterplus
Libs/AceGUI-3.0/widgets/AceGUIWidget-Heading.lua
68
2216
--[[----------------------------------------------------------------------------- Heading Widget -------------------------------------------------------------------------------]] local Type, Version = "Heading", 20 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or (AceGUI:GetWidgetVersion(Type) or...
mit
rpetit3/darkstar
scripts/zones/West_Sarutabaruta_[S]/mobs/Ramponneau.lua
2
1919
----------------------------------- -- Area: West Sarutabaruta (S) -- NM: Ramponneau ----------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- onMobInitialize Action ----------------------------------- function onMobInitialize...
gpl-3.0
rpetit3/darkstar
scripts/zones/Bastok_Markets/npcs/Zaira.lua
17
1868
----------------------------------- -- Area: Batok Markets -- NPC: Zaira -- Standard Merchant NPC -- -- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; require("scripts/zone...
gpl-3.0
i32ropie/telegram-bot
plugins/rss.lua
700
5434
local function get_base_redis(id, option, extra) local ex = '' if option ~= nil then ex = ex .. ':' .. option if extra ~= nil then ex = ex .. ':' .. extra end end return 'rss:' .. id .. ex end local function prot_url(url) local url, h = string.gsub(url, "http://", "") local...
gpl-2.0
Maxsteam/BBBBKKKK
plugins/rss.lua
700
5434
local function get_base_redis(id, option, extra) local ex = '' if option ~= nil then ex = ex .. ':' .. option if extra ~= nil then ex = ex .. ':' .. extra end end return 'rss:' .. id .. ex end local function prot_url(url) local url, h = string.gsub(url, "http://", "") local...
gpl-2.0
nokizorque/ucd
UCDaviator/server.lua
1
3860
--[[ -- Distances LS --> LV = 4000 LS --> VM = 5000 LS --> SF = 3500 LV --> SF = 3300 LV --> VM = 1500 SF --> VM = 3000 --]] local sml = {[511] = true, [593] = true, [513] = true} -- Beagle, Dodo, Stuntplane local lrg = {[592] = true, [577] = true, [553] = true} -- Nevada, AT-400, Andromada local mid = {[519] = true...
mit
schidler/ionic-luci
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/netlink.lua
68
2502
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. require("luci.sys") local devices = luci.sys.net.devices() m = Map("luci_statistics", translate("Netlink Plugin Configuration"), translate( "The netlink plugin collects extended informa...
apache-2.0
rpetit3/darkstar
scripts/zones/Port_Bastok/npcs/Belka.lua
16
1547
----------------------------------- -- Area: Port Bastok -- NPC: Belka -- Only sells when Bastok controlls Derfland Region -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loaded["scripts/zones/Port_Bastok/TextIDs"] =...
gpl-3.0
Endika/Algorithm-Implementations
Dijkstra_Search/Lua/Yonaba/dijkstra.lua
26
3785
-- Generic Dijkstra graph search algorithm implementation -- See : http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm -- Notes : this is a generic implementation of Dijkstra graph search algorithm. -- It is devised to be used on any type of graph (point-graph, tile-graph, -- or whatever. It expects to be initialized ...
mit
gligneul/FastLua
luatests/tpack.lua
1
10563
-- $Id: tpack.lua,v 1.12 2016/05/18 18:22:45 roberto Exp $ local pack = string.pack local packsize = string.packsize local unpack = string.unpack print "testing pack/unpack" -- maximum size for integers local NB = 16 local sizeshort = packsize("h") local sizeint = packsize("i") local sizelong = packsize("l") local ...
mit
rpetit3/darkstar
scripts/zones/Promyvion-Vahzl/mobs/Memory_Receptacle.lua
6
6906
----------------------------------- -- Area: Promyvion-Vahzl -- MOB: Memory Receptacle -- Todo: clean up disgustingly bad formatting ----------------------------------- package.loaded["scripts/zones/Promyvion-Vahzl/TextIDs"] = nil; ----------------------------------- require( "scripts/zones/Promyvion-Vahzl/TextIDs" );...
gpl-3.0
rpetit3/darkstar
scripts/zones/Southern_San_dOria_[S]/npcs/Moogle.lua
13
1170
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Moogle -- @zone 80 -- @pos <many> ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil; require("scripts/zones/Southern_San_dOria_[S]/TextIDs"); require("scripts/globals/moghouse") -----------...
gpl-3.0
rpetit3/darkstar
scripts/zones/Qulun_Dome/npcs/Magicite.lua
13
1659
----------------------------------- -- Area: Qulun Dome -- NPC: Magicite -- Involved in Mission: Magicite -- @pos 11 25 -81 148 ----------------------------------- package.loaded["scripts/zones/Qulun_Dome/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/zones/...
gpl-3.0
rpetit3/darkstar
scripts/zones/Eastern_Adoulin/Zone.lua
16
1192
----------------------------------- -- -- Zone: Eastern Adoulin -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Eastern_Adoulin/TextIDs"] = nil; require("scripts/zones/Eastern_Adoulin/TextIDs"); ----------------------------------- -- onInitialize ----------...
gpl-3.0
DDDBTG/DDBTG
libs/dateparser.lua
114
6213
local difftime, time, date = os.difftime, os.time, os.date local format = string.format local tremove, tinsert = table.remove, table.insert local pcall, pairs, ipairs, tostring, tonumber, type, setmetatable = pcall, pairs, ipairs, tostring, tonumber, type, setmetatable local dateparser={} --we shall use the host OS's...
gpl-2.0
tommo/gii
template/game/lib/mock/component/FSMController.lua
1
3716
module 'mock' -------------------------------------------------------------------- local stateCollectorMT local setmetatable=setmetatable local insert, remove = table.insert, table.remove local rawget,rawset=rawget,rawset local pairs=pairs stateCollectorMT = { __index = function( t, k ) local __state = t.__state ...
mit
rpetit3/darkstar
scripts/zones/La_Theine_Plateau/npcs/Telepoint.lua
13
1675
----------------------------------- -- Area: La Theine Plateau -- NPC: Telepoint ----------------------------------- package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/zones/La_Theine_Plateau/TextIDs"); ----------...
gpl-3.0
rpetit3/darkstar
scripts/zones/Sacrificial_Chamber/npcs/_4j2.lua
13
1421
----------------------------------- -- Area: Sacrificial Chamber -- NPC: Mahogany Door -- @pos -260 -33 274 163 ------------------------------------- package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil; ------------------------------------- require("scripts/globals/bcnm"); require("scripts/globals/missi...
gpl-3.0
Endika/Algorithm-Implementations
Shell_Sort/Lua/Yonaba/shell_sort_test.lua
27
1367
-- Tests for shell_sort.lua local shell_sort = require 'shell_sort' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function run(message, f) total = total + 1 local ok, err = pcall(f) if ok then pass = pass + 1 end loca...
mit
tenvick/hugula
Client/build/luajit-2.1.0b3/src/host/genlibbc.lua
37
4965
---------------------------------------------------------------------------- -- Lua script to dump the bytecode of the library functions written in Lua. -- The resulting 'buildvm_libbc.h' is used for the build process of LuaJIT. ---------------------------------------------------------------------------- -- Copyright (...
mit
peterbarker/ardupilot
libraries/AP_Scripting/examples/copter-deadreckon-home.lua
8
17148
-- Copter attempts to fly home using dead reckoning if the GPS quality deteriorates or an EKF failsafe triggers -- -- CAUTION: This script only works for Copter 4.3 (and higher) -- this script checks for low GPS quality and/or an EKF failsafe and if either occurs, flies in the last known direction towards home -- -- DR...
gpl-3.0
NightWitch/Clever
redis.lua
580
35599
local redis = { _VERSION = 'redis-lua 2.0.4', _DESCRIPTION = 'A Lua client library for the redis key value storage system.', _COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri', } -- The following line is used for backwards compatibility in order to keep the `Redis` -- global module name. Using...
agpl-3.0
esguk811/DarkRP
gamemode/modules/fadmin/fadmin/playeractions/freeze/cl_init.lua
10
1858
FAdmin.StartHooks["Freeze"] = function() FAdmin.Messages.RegisterNotification{ name = "freeze", hasTarget = true, message = {"instigator", " froze ", "targets", " ", "extraInfo.1"}, readExtraInfo = function() local time = net.ReadUInt(16) return {time == 0 an...
mit
sys4-fr/server-minetestforfun
mods/nalc/maptools.lua
1
4538
-- Nodes minetest.register_node( "nalc:stone_with_coin", { description = "Stone with Coin", tiles = {"default_stone.png^maptools_gold_coin.png"}, is_ground_content = true, groups = {cracky = 3}, drop = { items = { {items = {"maptools:gold_coin"}}, }, }, sounds = default.node_sound_stone...
unlicense
esguk811/DarkRP
entities/entities/drug/init.lua
3
2731
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") local function UnDrugPlayer(ply) if not IsValid(ply) then return end ply.isDrugged = false local IDSteam = ply:SteamID64() timer.Remove(IDSteam .. "DruggedHealth") SendUserMessage("DrugEffects", ply, false) end hook.Add...
mit
Marnador/OpenRA-Marn-TS-Edition
lua/sandbox.lua
84
5098
local sandbox = { _VERSION = "sandbox 0.5", _DESCRIPTION = "A pure-lua solution for running untrusted Lua code.", _URL = "https://github.com/kikito/sandbox.lua", _LICENSE = [[ MIT LICENSE Copyright (c) 2013 Enrique García Cota Permission is hereby granted, free of charge, to an...
gpl-3.0
42wim/wptvscraper
weepeetv.lua
1
1319
--SD_Description=WeePee TV --[[ Copyright (C) 2013 <wim at 42 dot be> 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 3 of the License, or (at your option) any later version. Th...
gpl-3.0
rpetit3/darkstar
scripts/zones/Kazham/npcs/Rauteinot.lua
26
3159
----------------------------------- -- Area: Kazham -- NPC: Rauteinot -- Starts and Finishes Quest: Missionary Man -- @zone 250 -- @pos -42 -10 -89 ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require(...
gpl-3.0
rpetit3/darkstar
scripts/globals/weaponskills/heavy_swing.lua
25
1367
----------------------------------- -- Heavy Swing -- Staff weapon skill -- Skill Level: 5 -- Deacription:Delivers a single-hit attack. Damage varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Thunder Gorget. -- Aligned with the Thunder Belt. -- Element: None -- Modifiers: STR:30% -- 100%TP 200%TP...
gpl-3.0
rpetit3/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
MinetestForFun/server-minetestforfun-creative
minetestforfun_game/mods/farming/tomato.lua
12
2097
--[[ Textures edited from: http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1288375-food-plus-mod-more-food-than-you-can-imagine-v2-9) ]] local S = farming.intllib -- tomato minetest.register_craftitem("farming:tomato", { description = S("Tomato"), inventory_image = "farming_tomato.png", ...
unlicense
rpetit3/darkstar
scripts/zones/East_Sarutabaruta/npcs/Sama_Gohjima.lua
13
1487
----------------------------------- -- Area: East Sarutabaruta -- NPC: Sama Gohjima -- Involved in Mission: The Horutoto Ruins Experiment (optional) -- @pos 377 -13 98 116 ----------------------------------- package.loaded["scripts/zones/East_Sarutabaruta/TextIDs"] = nil; -----------------------------------...
gpl-3.0
rpetit3/darkstar
scripts/zones/Abyssea-Misareaux/npcs/qm13.lua
17
1523
----------------------------------- -- Zone: Abyssea-Misereaux -- NPC: ??? -- Spawns: Cirein-Croin ----------------------------------- require("scripts/globals/status"); require("scripts/globals/keyitems"); ----------------------------------- -- onTrigger Action ----------------------------------- function onTrigger...
gpl-3.0
libretro/lutro-pong
Background.lua
1
1420
local ColoredEntity = require("Lutron/Entity/ColoredEntity") local Background do local _class_0 local _parent_0 = ColoredEntity local _base_0 = { load = function(self) self.padding = 10 self.length = 10 self.lineSpacing = 20 self.position.x = self.game.width / 2 end, draw = fun...
mit
Marnador/OpenRA-Marn-TS-Edition
mods/ra/maps/survival02/survival02.lua
10
13010
FrenchSquad = { "2tnk", "2tnk", "mcv" } TimerTicks = DateTime.Minutes(10) AttackTicks = DateTime.Seconds(52) AttackAtFrame = DateTime.Seconds(18) AttackAtFrameIncrement = DateTime.Seconds(18) Producing = true SpawningInfantry = true ProduceAtFrame = DateTime.Seconds(12) ProduceAtFrameIncrement = DateTime.Seconds(12) S...
gpl-3.0
Endika/Algorithm-Implementations
Levenshtein_distance/Lua/Yonaba/levenshtein_test.lua
27
1499
-- Tests for levenshtein.lua local lev_iter = (require 'levenshtein').lev_iter local lev_recursive = (require 'levenshtein').lev_recursive local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function run(message, f) total...
mit
tommo/gii
template/game/lib/character/EventYaka.lua
2
1204
module 'character' EnumYakaFightProjectileMessages = _ENUM_V { 'projectile.launch', } CLASS: YakaEventMessageProjectile ( EventMessage ) :MODEL{ Field 'loc' :type('vec3') :getset('Loc'); Field 'message' :enum( EnumYakaFightProjectileMessages ); } function YakaEventMessageProjectile:__init() self.name = '...
mit
rpetit3/darkstar
scripts/zones/Windurst_Waters/npcs/Kipo-Opo.lua
53
1913
----------------------------------- -- Area: Windurst Waters -- NPC: Kipo-Opo -- Type: Cooking Adv. Image Support -- @pos -119.750 -5.239 64.500 238 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status");...
gpl-3.0
schidler/ionic-luci
modules/luci-mod-admin-full/luasrc/model/cbi/admin_status/processes.lua
75
1236
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. f = SimpleForm("processes", translate("Processes"), translate("This list gives an overview over currently running system processes and their status.")) f.reset...
apache-2.0
rpetit3/darkstar
scripts/zones/Tahrongi_Canyon/npcs/Shattered_Telepoint.lua
27
2330
----------------------------------- -- Area: Tahrongi_Canyon -- NPC: Shattered Telepoint -- @pos 179 35 255 117 ----------------------------------- package.loaded["scripts/zones/Tahrongi_Canyon/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zones/Tahrongi_Ca...
gpl-3.0
vseledkin/april-ann
packages/imaging/image_cleaning/package.lua
3
1128
package{ name = "image_cleaning", version = "1.0", depends = { "dataset", "Image" }, keywords = { "image", "cleaning", "tools" }, description = "some util classes and functions to measure image enhancement, cleaning or binarization", -- targets como en ant target{ name = "init", mkdir{ dir...
gpl-3.0
rpetit3/darkstar
scripts/zones/Selbina/npcs/Wenzel.lua
13
1052
---------------------------------- -- Area: Selbina -- NPC: Wenzel -- Type: Item Deliverer -- @pos 31.961 -14.661 57.997 248 ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Selbina/TextIDs"); --------------------...
gpl-3.0
rpetit3/darkstar
scripts/globals/abilities/corsairs_roll.lua
19
2648
----------------------------------- -- Ability: Corsair's Roll -- Increases the amount of experience points earned by party members within area of effect -- Optimal Job: Corsair -- Lucky Number: 5 -- Unlucky Number: 9 -- Level: 5 -- -- Die Roll |Exp Bonus% -- -------- ----------- -- 1 |10% -- 2 ...
gpl-3.0
rpetit3/darkstar
scripts/zones/Windurst_Waters/npcs/Upih_Khachla.lua
12
2150
----------------------------------- -- Area: Windurst Waters -- NPC: Upih Khachla -- Standard Merchant NPC -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/events/harvest_festivals") require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loaded["...
gpl-3.0
rpetit3/darkstar
scripts/globals/items/bowl_of_riverfin_soup.lua
18
1891
----------------------------------------- -- ID: 6069 -- Item: Bowl of Riverfin Soup -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- Accuracy % 14 Cap 90 -- Ranged Accuracy % 14 Cap 90 -- Attack % 18 Cap 80 -- Ranged Attack % 18 Cap 80 -- Amorph Killer 5 -----------------------------------...
gpl-3.0
vseledkin/april-ann
packages/trainable/lua_src/qlearning.lua
3
11581
local trainable_qlearning_trainer,trainable_qlearning_trainer_methods = class("trainable.qlearning_trainer") trainable = trainable or {} -- global environment trainable.qlearning_trainer = trainable_qlearning_trainer -- global environment local md = matrix.dict ----------------------------- -- QLEARNING TRAINER CLA...
gpl-3.0
ali-iraqi-bot/devil3_bot
plugins/jjj.lua
2
3336
local function addword(msg, name) local hash = 'chat:'..msg.to.id..':badword' redis:hset(hash, name, 'newword') local text = "تـ्م رفُـعٌ😕 : "..name.. "ڪـ ژمـٱڵـ ﭜٱڵـمـچمـوعـة☹ ️ 💔😹 " return reply_msg(msg.id, text, ok_cb, false) end local function get_variables_hash(msg) return 'chat:'..m...
agpl-3.0
destdev/ygopro-scripts
c25524823.lua
2
4806
--墓守の審神者 function c25524823.initial_effect(c) --summon with 3 tribute local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(25524823,0)) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_SUMMON_PROC) e1:SetCondition(c25524823.ttcon) e1:Se...
gpl-2.0
WohlSoft/LunaLUA
LuaScriptsLibExt/smb3goalcard.lua
3
12080
local __title = "SMB3 Goal Cards"; local __version = "1.0.1.1"; local __description = "Make the SMB3 Goal Card act as it did in SMB3."; local __author = "XNBlank"; local __url = "https://github.com/XNBlank"; --[[ HOW TO USE 1 . Make a new file in your worlds folder called LunaWorld.lua. 2 . Add " smb3card = loadAPI("...
gpl-3.0
ffxijuggalo/darkstar
scripts/commands/addquest.lua
11
1570
--------------------------------------------------------------------------------------------------- -- func: addquest <logID> <questID> <player> -- desc: Adds a quest to the given targets log. --------------------------------------------------------------------------------------------------- require("scripts/globals/q...
gpl-3.0
destdev/ygopro-scripts
c5220687.lua
4
1235
--素早いビッグハムスター function c5220687.initial_effect(c) --flip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(5220687,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetTarget(c5220687.target) e1:Set...
gpl-2.0
Kong/kong
spec/03-plugins/05-syslog/01-log_spec.lua
1
8046
local helpers = require "spec.helpers" local utils = require "kong.tools.utils" local cjson = require "cjson" local pl_stringx = require "pl.stringx" for _, strategy in helpers.each_strategy() do describe("Plugin: syslog (log) [#" .. strategy .. "]", function() local proxy_client local proxy_cl...
apache-2.0
Deadwing888/darkstar
scripts/zones/Quicksand_Caves/npcs/_5sc.lua
13
1253
----------------------------------- -- Area: Quicksand Caves -- NPC: Ornate Door -- Door blocked by Weight system -- @pos -410 0 662 208 ----------------------------------- package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Quicksand_Caves/TextIDs...
gpl-3.0
destdev/ygopro-scripts
c55794644.lua
1
2951
--マスター・ヒュペリオン function c55794644.initial_effect(c) --spsummon proc local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) e1:SetRange(LOCATION_HAND) e1:SetCondition(c55794644.hspcon) e1:SetOperation(c55794644.hspop) c:RegisterEffect...
gpl-2.0
RwNigma/darkstar
scripts/zones/Inner_Horutoto_Ruins/npcs/Treasure_Chest.lua
19
2590
----------------------------------- -- Area: Horutoto Ruins -- NPC: Treasure Chest -- @zone 192 ----------------------------------- package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/treasure"); require(...
gpl-3.0
Kong/kong
kong/plugins/proxy-cache/handler.lua
1
11210
local require = require local cache_key = require "kong.plugins.proxy-cache.cache_key" local utils = require "kong.tools.utils" local kong_meta = require "kong.meta" local ngx = ngx local kong = kong local type = type local pairs = pairs local tostring ...
apache-2.0
Kong/kong
spec/01-unit/19-hybrid/05-wrpc/queue_spec.lua
1
1560
local wrpc_queue = require "kong.tools.wrpc.queue" local semaphore = require "ngx.semaphore" describe("kong.tools.wrpc.queue", function() local queue before_each(function() queue = wrpc_queue.new() end) it("simple", function() assert.same({ nil, "timeout" }, { queue:pop(0) }) queue:push("test0") ...
apache-2.0
Deadwing888/darkstar
scripts/globals/spells/knights_minne_v.lua
27
1498
----------------------------------------- -- Spell: Knight's Minne V -- Grants Defense bonus to all allies. ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(cast...
gpl-3.0
Deadwing888/darkstar
scripts/commands/togglegm.lua
50
1876
--------------------------------------------------------------------------------------------------- -- func: togglegm -- desc: Toggles a GMs nameflags/icon. --------------------------------------------------------------------------------------------------- cmdprops = { permission = 1, parameters = "" }; funct...
gpl-3.0
RwNigma/darkstar
scripts/globals/items/silken_sash.lua
36
1212
----------------------------------------- -- ID: 5632 -- Item: Silken Sash -- Food Effect: 4 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP Recovered while healing +3 -- MP Recovered while healing +5 ----------------------------------------- require("scripts/globals/status"); ---...
gpl-3.0
LGCaerwyn/QSanguosha-Para-tangjs520-LGCaerwyn
lang/zh_CN/Audio/SPPackageLines.lua
2
5083
-- lines for SP Package return { -- 杨修 ["$jilei1"] = "食之无肉,弃之有味。", ["$jilei2"] = "曹公之意我已了然。", ["$danlao2"] = "来来,一人一口。", ["$danlao1"] = "我喜欢。", ["~yangxiu"] = "我固自以死之晚也。", -- 公孙瓒 ["$yicong1"] = "冲啊!", -- +1 -> -1 ["$yicong2"] = "众将听令,摆好阵势,御敌!", -- -1 -> +1 ["~gongsunzan"] = "我军将败,我已无颜苟活于世……", -- 袁术 ["$y...
lgpl-3.0
RwNigma/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Tsih_Kolgimih.lua
38
1045
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Tsih Kolgimih -- Type: Event Scene Replayer -- @pos -143.000 0.999 11.000 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/...
gpl-3.0
ffxijuggalo/darkstar
scripts/zones/Throne_Room/IDs.lua
8
1338
----------------------------------- -- Area: Throne_Room ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.THRONE_ROOM] = { text = { ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. Come back after...
gpl-3.0
ffxijuggalo/darkstar
scripts/zones/Cloister_of_Flames/npcs/Fire_Protocrystal.lua
9
1333
----------------------------------- -- Area: Cloister of Flames -- NPC: Fire Protocrystal -- Involved in Quests: Trial by Fire, Trial Size Trial by Fire -- !pos -721 0 -598 207 ----------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/bcnm"); local ID = require("scripts/zones/C...
gpl-3.0
destdev/ygopro-scripts
c57288708.lua
1
3589
--星遺物-『星杯』 function c57288708.initial_effect(c) --send to grave local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(57288708,0)) e1:SetCategory(CATEGORY_TOGRAVE) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetRange(LOCATI...
gpl-2.0
riking/marvin
vendor/github.com/yuin/gopher-lua/_lua5.1-tests/gc.lua
19
7014
print('testing garbage collection') collectgarbage() _G["while"] = 234 limit = 5000 contCreate = 0 print('tables') while contCreate <= limit do local a = {}; a = nil contCreate = contCreate+1 end a = "a" contCreate = 0 print('strings') while contCreate <= limit do a = contCreate .. "b"; a = string.gsub...
gpl-3.0
destdev/ygopro-scripts
c52370835.lua
9
1409
--H・C ソード・シールド function c52370835.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(52370835,0)) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_FREE_CHAIN) e1:SetRange(LOCATION_HAND) e1:SetCondition(c52370835.condition) e1:SetCost(c52370835.cost) e1:SetOperation(c523...
gpl-2.0
destdev/ygopro-scripts
c18865703.lua
1
3268
--ZW-玄武絶対聖盾 function c18865703.initial_effect(c) c:SetUniqueOnField(1,0,18865703) --equip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(18865703,0)) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCategory(CATEGORY_EQUIP) e1:SetRange(LOCATION_MZONE) e1:SetConditi...
gpl-2.0
RwNigma/darkstar
scripts/globals/weaponskills/heavy_swing.lua
30
1339
----------------------------------- -- Heavy Swing -- Staff weapon skill -- Skill Level: 5 -- Deacription:Delivers a single-hit attack. Damage varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Thunder Gorget. -- Aligned with the Thunder Belt. -- Element: None -- Modifiers: STR:30% -- 100%TP...
gpl-3.0
RwNigma/darkstar
scripts/zones/Crawlers_Nest/npcs/qm12.lua
57
2120
----------------------------------- -- Area: Crawlers' Nest -- NPC: qm12 (??? - Exoray Mold Crumbs) -- Involved in Quest: In Defiant Challenge -- @pos 99.326 -0.126 -188.869 197 ----------------------------------- package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil; ----------------------------------- require...
gpl-3.0
destdev/ygopro-scripts
c8978197.lua
1
1623
--ロード・オブ・ドラゴン-ドラゴンの統制者- function c8978197.initial_effect(c) --change name local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetCode(EFFECT_CHANGE_CODE) e1:SetRange(LOCATION_MZONE) e1:SetValue(17985575) c:RegisterEffect(e1) --search local e2=E...
gpl-2.0
destdev/ygopro-scripts
c20838380.lua
6
1401
--シャーク・サッカー function c20838380.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(20838380,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetRange(LOCATION_HAND) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(c20838...
gpl-2.0
ffxijuggalo/darkstar
scripts/globals/items/lungfish.lua
11
1043
----------------------------------------- -- ID: 4315 -- Item: Lungfish -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity -2 -- Mind 4 ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ---------------------------------------...
gpl-3.0
RwNigma/darkstar
scripts/zones/Spire_of_Dem/bcnms/ancient_flames_beckon.lua
17
3853
----------------------------------- -- Area: Spire_of_Dem -- Name: ancient_flames_backon -- KSNM30 ----------------------------------- package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/keyitems"); require("scripts...
gpl-3.0
your-gatsby/skynet
examples/login/gated.lua
57
2201
local msgserver = require "snax.msgserver" local crypt = require "crypt" local skynet = require "skynet" local loginservice = tonumber(...) local server = {} local users = {} local username_map = {} local internal_id = 0 -- login server disallow multi login, so login_handler never be reentry -- call by login server ...
mit
Deadwing888/darkstar
scripts/zones/Dynamis-Jeuno/npcs/qm1.lua
13
1216
----------------------------------- -- Area: Dynamis Jeuno -- NPC: ??? (Spawn when mega is defeated) ----------------------------------- package.loaded["scripts/zones/Dynamis-Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/zones/Dynamis-Jeuno/TextIDs");...
gpl-3.0
ffxijuggalo/darkstar
scripts/globals/items/dish_of_hydra_kofte_+1.lua
11
1613
----------------------------------------- -- ID: 5603 -- Item: dish_of_hydra_kofte_+1 -- Food Effect: 240Min, All Races ----------------------------------------- -- Strength 8 -- Intelligence -4 -- Attack % 20 -- Attack Cap 160 -- Defense % 25 -- Defense Cap 75 -- Ranged ATT % 20 -- Ranged ATT Cap 160 -- Poison Resist ...
gpl-3.0
RwNigma/darkstar
scripts/zones/La_Theine_Plateau/npcs/Narvecaint.lua
17
1702
----------------------------------- -- Area: La Theine Plateau -- NPC: Narvecaint -- Involved in Mission: The Rescue Drill -- @pos -263 22 129 102 ----------------------------------- package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil; ----------------------------------- require("scripts/globals/...
gpl-3.0
destdev/ygopro-scripts
c98494543.lua
4
1299
--魔法石の採掘 function c98494543.initial_effect(c) local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOHAND) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCost(c98494543.cost) e1:SetTarget(c98494543.target) e1:SetOperation(c98494543.operation) c:Re...
gpl-2.0
destdev/ygopro-scripts
c43664494.lua
2
3736
--プランキッズ・プランク function c43664494.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --token local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(43664494,0)) e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TO...
gpl-2.0
destdev/ygopro-scripts
c49959355.lua
1
3512
--ユニゾンビ function c49959355.initial_effect(c) --level local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(49959355,0)) e1:SetCategory(CATEGORY_HANDES) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCountLimit(1,49959355) e1:SetCost(c49959355...
gpl-2.0
destdev/ygopro-scripts
c67511500.lua
4
1260
--ドラゴン・ウィッチ-ドラゴンの守護者- function c67511500.initial_effect(c) --cannot be battle target local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_CANNOT_SELECT_BATTLE_TARGET) e1:SetRange(LOCATION_MZONE) e1:SetTargetRange(0,LOCATION_MZONE) e1:SetValue(c67511500.atlimit) c:RegisterEffect(e1) -...
gpl-2.0
destdev/ygopro-scripts
c44236692.lua
4
1688
--ネクロ・リンカー function c44236692.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(44236692,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCost(c44236692.spcost) ...
gpl-2.0
RwNigma/darkstar
scripts/globals/items/naval_rice_ball.lua
21
1526
----------------------------------------- -- ID: 4605 -- Item: Naval Rice Ball -- Food Effect: 30Min, All Races ----------------------------------------- -- HP +26 -- Dex +3 -- Vit +4 -- hHP +2 -- Effect with enhancing equipment (Note: these are latents on gear with the effect) -- Atk +40 -- Def +40 -- Arc...
gpl-3.0