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 |
|---|---|---|---|---|---|
samijon/suofi | plugins/invite.lua | 1111 | 1195 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
Zenny89/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/Hume_Bones.lua | 17 | 1988 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Hume Bones
-- Involved in Quests: Blue Ribbon Blues
-- @pos 299 0.1 19 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
lingkeyang/slua | build/android/jni/luajit/dynasm/dasm_x86.lua | 59 | 58755 | ------------------------------------------------------------------------------
-- DynASM x86/x64 module.
--
-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
local x64 = x64
-- Module i... | mit |
Zenny89/darkstar | scripts/zones/West_Sarutabaruta_[S]/npcs/Harvesting_Point.lua | 29 | 1137 | -----------------------------------
-- Area: West Sarutabaruta [S]
-- NPC: Harvesting Point
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta_[S]/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/harvesting");
require("scripts/zones/West_Saruta... | gpl-3.0 |
1yvT0s/lit | libs/core.lua | 1 | 18922 | --[[
Copyright 2014-2015 The Luvit Authors. All Rights Reserved.
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 o... | apache-2.0 |
Zenny89/darkstar | scripts/zones/Mhaura/npcs/Hagain.lua | 17 | 2194 | -----------------------------------
-- Area: Mhaura
-- NPC: Hagain
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mhaura/TextIDs");
require("scripts/globals/keyitems");
require("scripts/... | gpl-3.0 |
mercury233/ygopro-scripts | c734741.lua | 2 | 1830 | --彼岸の悪鬼 ラビキャント
function c734741.initial_effect(c)
--self destroy
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_SELF_DESTROY)
e1:SetCondition(c734741.sdcon)
c:RegisterEffect(e1)
--Special Summon
local e2=Eff... | gpl-2.0 |
Zenny89/darkstar | scripts/zones/LaLoff_Amphitheater/npcs/qm1_3.lua | 19 | 2362 | -----------------------------------
-- Area: LaLoff_Amphitheater
-- NPC: Shimmering Circle (BCNM Entrances)
-------------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
package.loaded["scripts/globals/bcnm"] = nil;
-------------------------------------
require("scripts/glob... | gpl-3.0 |
Zenny89/darkstar | scripts/zones/Castle_Oztroja/npcs/_47z.lua | 17 | 1385 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _47z (Torch Stand)
-- Notes: Opens door _474
-- @pos -62.464 24.218 -67.313 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Ca... | gpl-3.0 |
mercury233/ygopro-scripts | c96458440.lua | 2 | 2506 | --伝説の黒帯
function c96458440.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_CONTINUOUS_TARGET)
e1:SetTarget(c96458440.target)
e1:SetOperation(c96458440.oper... | gpl-2.0 |
valhallaGaming/uno | src_trunk/resources/lvpd-system/c_lasers.lua | 1 | 1147 | function showLaser()
for key, value in ipairs(getElementsByType("player")) do
if (isElement(value)) and (isElementStreamedIn(value)) then
local weapon = getPedWeapon(value)
if (weapon==24 or weapon==29 or weapon==31 or weapon==34) then
local laser = getElementData(value, "laser")
local deagl... | bsd-3-clause |
mercury233/ygopro-scripts | c4141820.lua | 2 | 1608 | --儀式魔人プレコグスター
function c4141820.initial_effect(c)
--ritual material
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_EXTRA_RITUAL_MATERIAL)
e1:SetValue(1)
c:RegisterEffect(e1)
--become material
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)... | gpl-2.0 |
mercury233/ygopro-scripts | c84080938.lua | 9 | 1335 | --慈悲深き修道女
function c84080938.initial_effect(c)
--to hand
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(c84080938.cost)
e1:SetTarget(c84080938.target)
e1:SetOperation(c84080938.opera... | gpl-2.0 |
mercury233/ygopro-scripts | c50604950.lua | 9 | 1168 | --X-セイバー ガラハド
function c50604950.initial_effect(c)
--atk
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(c50604950.atkval)
c:RegisterEffect(e1)
--negate attack
local e2=Effect.Creat... | gpl-2.0 |
Zenny89/darkstar | scripts/zones/Metalworks/npcs/Elayne.lua | 34 | 1429 | -----------------------------------
-- Area: Metalworks
-- NPC: Elayne
-- Involved in Quest: Stamp Hunt
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Metalworks/TextID... | gpl-3.0 |
mosavy/test | plugins/msg-checks.lua | 1 | 12866 | --Begin msg_checks.lua By @SoLiD
local TIME_CHECK = 2
local function pre_process(msg)
local data = load_data(_config.moderation.data)
local chat = msg.to.id
local user = msg.from.id
local is_channel = msg.to.type == "channel"
local is_chat = msg.to.type == "chat"
local auto_leave = 'auto_leave_bot'
local hash = "gp_lan... | gpl-3.0 |
fusijie/cocos2d-x-samples | samples/KillBug/src/cocos/ui/DeprecatedUIEnum.lua | 55 | 4963 | if nil == ccui then
return
end
LAYOUT_COLOR_NONE = ccui.LayoutBackGroundColorType.none
LAYOUT_COLOR_SOLID = ccui.LayoutBackGroundColorType.solid
LAYOUT_COLOR_GRADIENT = ccui.LayoutBackGroundColorType.gradient
LAYOUT_ABSOLUTE = ccui.L... | mit |
mercury233/ygopro-scripts | c28981598.lua | 2 | 1933 | --九魂猫
function c28981598.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,9,2)
c:EnableReviveLimit()
--cannot be target
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetRange(LOCATION_MZONE)
e1:SetT... | gpl-2.0 |
mercury233/ygopro-scripts | c78274190.lua | 2 | 2545 | --超重輝将サン-5
function c78274190.initial_effect(c)
--pendulum summon
aux.EnablePendulumAttribute(c)
--scale
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_CHANGE_LSCALE)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetRange(LOCATION_PZONE)
e2:SetCondition(c78274190.sccon)
e2:SetV... | gpl-2.0 |
nmreis/luasocket | samples/cddb.lua | 46 | 1419 | local socket = require("socket")
local http = require("socket.http")
if not arg or not arg[1] or not arg[2] then
print("luasocket cddb.lua <category> <disc-id> [<server>]")
os.exit(1)
end
local server = arg[3] or "http://freedb.freedb.org/~cddb/cddb.cgi"
function parse(body)
local lines = string.gfind(bo... | mit |
fusijie/cocos2d-x-samples | samples/FantasyWarrior3D/src/cocos/cocosbuilder/DeprecatedCocosBuilderClass.lua | 40 | 1137 | -- This is the DeprecatedCocosBuilderClass
DeprecatedCocosBuilderClass = {} or DeprecatedCocosBuilderClass
--tip
local function deprecatedTip(old_name,new_name)
print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********")
end
--CCBReader class will be Deprecated,begin
f... | mit |
notcake/gcompute | lua/gcompute/ast/ifstatement.lua | 1 | 5905 | local self = {}
self.__Type = "IfStatement"
GCompute.AST.IfStatement = GCompute.AST.MakeConstructor (self)
function self:ctor ()
self.ConditionCount = 0
self.Conditions = {}
self.ConditionBodies = {}
self.NamespaceDefinition = nil
self.Else = nil
end
function self:AddCondition (condition, conditio... | gpl-3.0 |
Zenny89/darkstar | scripts/zones/Sacrificial_Chamber/bcnms/jungle_boogymen.lua | 19 | 1723 | -----------------------------------
-- Area: Sacrificial Chamber
-- Name: jungle_boogymen
-- BCNM60
-----------------------------------
package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Sacrificial_Chamber/TextIDs");
-----------------------... | gpl-3.0 |
PrimaStudios/ProjectPrima | src/libs/binser-master/spec/binser_spec.lua | 2 | 9268 | --[[
Copyright (c) 2016 Calvin Rose
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, s... | apache-2.0 |
pnorman/ClearTables | test-common.lua | 2 | 3511 | --[[
This file is part of ClearTables
@author Paul Norman <penorman@mac.com>
@copyright 2015-2016 Paul Norman, MIT license
]]--
require ("common")
print("common.lua tests")
print("TESTING: oneway")
assert(oneway(nil) == nil, "test failed: oneway(nil) == nil")
assert(oneway('-1') == 'reverse', "test failed... | mit |
astrofra/game-mediecross-ookpy | game/pkg.core/lua/wall.lua | 2 | 5832 | -- {"name":"Wall", "category":"Physic Structure", "editor":["@data/script_integration/register_as_component.py", "@data/script_integration/add_to_scene_create_menu.py"]}
execution_context = gs.ScriptContextAll
wall_x = 10 --> float
wall_y = 10 --> float
wall_z = 1 --> float
smoothing_angle = 40.0 --> float
nb... | mit |
RunAwayDSP/darkstar | scripts/globals/items/viking_herring.lua | 11 | 1267 | -----------------------------------------
-- ID: 5183
-- Item: viking_herring
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Dexterity 4
-- Mind -3
-- Attack % 12 (cap 75)
-- Ranged ATT % 12 (cap 75)
-----------------------------------------
require("scripts/globals/status")
require("scri... | gpl-3.0 |
RunAwayDSP/darkstar | scripts/commands/completequest.lua | 11 | 1624 | ---------------------------------------------------------------------------------------------------
-- func: completequest <logID> <questID> <player>
-- desc: Completes the given quest for the GM or target player.
---------------------------------------------------------------------------------------------------
requi... | gpl-3.0 |
lichtl/darkstar | scripts/globals/items/bowl_of_dragon_soup.lua | 18 | 2024 | -----------------------------------------
-- ID: 4549
-- Item: Bowl of Dragon Soup
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 20
-- Strength 7
-- Agility 2
-- Vitality 2
-- Intelligence -3
-- Health Regen While Healing 8
-- Attack % 22
-- Attack Cap 150
-- Ranged ATT % 22
-- R... | gpl-3.0 |
lichtl/darkstar | scripts/globals/effects/fan_dance.lua | 20 | 1172 | -----------------------------------
--
-- EFFECT_FAN_DANCE
--
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
local fanDan... | gpl-3.0 |
lichtl/darkstar | scripts/globals/moghouse.lua | 29 | 4979 | --
-- Mog House related functions
--
require("scripts/globals/status")
------------------------------------
-- Mog Locker constants
------------------------------------
MOGLOCKER_START_TS = 1009810800 -- unix timestamp for 2001/12/31 15:00
MOGLOCKER_ALZAHBI_VALID_DAYS = 7
MOGLOCKER_ALLAREAS_VALID_DAYS = 5
MOGLOCKER_A... | gpl-3.0 |
NiLuJe/koreader | frontend/ui/widget/checkbutton.lua | 4 | 7013 | --[[--
Button widget that shows a checkmark (`✓`) when checked and an empty box (`□`)
when unchecked.
Example:
local CheckButton = require("ui/widget/CheckButton")
local parent_widget = OverlapGroup:new{}
table.insert(parent_widget, CheckButton:new{
text = _("Show password"),
callback = fu... | agpl-3.0 |
RunAwayDSP/darkstar | scripts/globals/weaponskills/full_break.lua | 10 | 2750 | -----------------------------------
-- Full Break
-- Great Axe weapon skill
-- Skill level: 225 (Warriors only.)
-- Lowers enemy's attack, defense, params.accuracy, and evasion. Duration of effect varies with TP.
-- Lowers attack and defense by 12.5%, evasion by 20 points, and estimated to also lower params.accuracy by... | gpl-3.0 |
kwketh/otclient | modules/client_terminal/terminal.lua | 1 | 10226 | -- configs
local LogColors = { [LogDebug] = 'pink',
[LogInfo] = 'white',
[LogWarning] = 'yellow',
[LogError] = 'red' }
local MaxLogLines = 128
local MaxHistory = 1000
local oldenv = getfenv(0)
setfenv(0, _G)
_G.commandEnv = runinsandbox('commands')
setfenv(0,... | mit |
da03/OpenNMT | test/onmt/BleuTest.lua | 7 | 2478 | require('onmt.init')
local tester = ...
local bleuTest = torch.TestSuite()
local ref1 = {
[[After 60 days of hard work , the scientists from Xi ' an Satellite Testing and Monitoring Center overcame various technical difficulties and successfully solved the malfunction of the Beidou Navigation Experimental Satellites... | mit |
lichtl/darkstar | scripts/globals/mobskills/Nocturnal_Combustion.lua | 35 | 1096 | ---------------------------------------------
-- Nocturnal Combustion
--
-- Description: Self-destructs, releasing dark energy at nearby targets.
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: 20' radial
-- Notes: Damage is based on remaining HP and time of day (more damaging near midnight)... | gpl-3.0 |
lichtl/darkstar | scripts/globals/items/inferno_axe.lua | 41 | 1069 | -----------------------------------------
-- ID: 16709
-- Item: Inferno Axe
-- Additional Effect: Fire Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
--------------------------------... | gpl-3.0 |
PrimaStudios/ProjectPrima | src/libs/Polygamy-master/modules/PolyState.lua | 1 | 1940 | --[[
state={
before = function( from, to, ... ) end,
update = function(dt) end,
draw = function() end,
after = function( from, to, ... ) end
}
--]]
local Set, debug_ = Polygamy.Tools.Set, Polygamy.debug
local swallow = Polygamy.Tools.swallow
Polygamy.state = {}
Polygamy.loadedmodules.state = true
--========... | apache-2.0 |
sdkbox/sdkbox-facebook-sample-v2 | external/emscripten/tests/lua/scimark.lua | 20 | 11860 | ------------------------------------------------------------------------------
-- Lua SciMark (2010-12-20).
--
-- A literal translation of SciMark 2.0a, written in Java and C.
-- Credits go to the original authors Roldan Pozo and Bruce Miller.
-- See: http://math.nist.gov/scimark2/
-------------------------------------... | mit |
lichtl/darkstar | scripts/globals/spells/kurayami_san.lua | 27 | 1145 | -----------------------------------------
-- Spell: Kurayami: San
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,targe... | gpl-3.0 |
ld-test/say | spec/say_spec.lua | 3 | 1379 | local s
describe("Tests to make sure the say library is functional", function()
setup(function()
package.loaded['say'] = false -- busted uses it, must force to reload
s = require('init') -- devcode is in /src/init.lua not in /src/say/init.lua
end)
it("tests the set function metamethod", function()
... | mit |
lichtl/darkstar | scripts/zones/Garlaige_Citadel/npcs/qm5.lua | 14 | 1383 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: qm5 (???)
-- Involved in Quest: Hitting the Marquisate (THF AF3)
-- @pos -259.927 -5.500 194.410 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("sc... | gpl-3.0 |
inmatarian/bronxcombat1999 | timer.lua | 1 | 1263 |
local active_timers = setmetatable({}, {__mode = "k"})
local timer_metatable = {
__index = {
clock = 0,
update = function(self, dt)
self.clock = self.clock + dt
if self.clock >= self.seconds then
if self.style == "interval" then
self:renew()
else -- timeout
s... | mit |
lichtl/darkstar | scripts/zones/Southern_San_dOria/npcs/Atelloune.lua | 14 | 2732 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Atelloune
-- Starts and Finishes Quest: Atelloune's Lament
-- @zone 230
-- @pos 122 0 82
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/g... | gpl-3.0 |
mosy210/zebardin | plugins/anti_spam.lua | 435 | 3886 |
--An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
local data = load_data(_config.moderation.data)
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id =... | gpl-2.0 |
ld-test/lluv | examples/file.lua | 4 | 1050 | local uv = require "lluv"
local chunk_size = 10
local file_name = "test.txt"
local function on_close()
print("Close:", file_name)
os.remove(file_name)
print("Remove:", file_name)
end
local offset = 0
local function on_read_data(file, err, buf, size)
print("Read:", err or (size==0) and "EOF" or size)
-- e... | mit |
lichtl/darkstar | scripts/globals/items/choco-ligar.lua | 18 | 1183 | -----------------------------------------
-- ID: 5919
-- Item: Choco-ligar
-- Food Effect: 3 Min, All Races
-----------------------------------------
-- Vitality 1
-- Speed 12.5%
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----... | gpl-3.0 |
RunAwayDSP/darkstar | scripts/globals/abilities/pets/water_ii.lua | 11 | 1045 | ---------------------------------------------------
-- Aero 2
---------------------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/monstertpmoves")
require("scripts/globals/magic")
---------------------------------------------------
functio... | gpl-3.0 |
RunAwayDSP/darkstar | scripts/zones/Caedarva_Mire/npcs/_272.lua | 9 | 3056 | -----------------------------------
-- Area: Caedarva Mire
-- Door: Runic Seal
-- !pos 486 -23 -500 79
-----------------------------------
require("scripts/globals/keyitems")
require("scripts/globals/missions")
require("scripts/globals/besieged")
local ID = require("scripts/zones/Caedarva_Mire/IDs")
-------------------... | gpl-3.0 |
lichtl/darkstar | scripts/globals/spells/foe_requiem_vii.lua | 26 | 1632 | -----------------------------------------
-- Spell: Foe Requiem VII
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,targe... | gpl-3.0 |
zegotinha/LiveShift | vlclib/windows/lua/meta/reader/filename.lua | 48 | 1628 | --[[
Gets an artwork for french TV channels
$Id$
Copyright © 2007 the VideoLAN team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any la... | gpl-3.0 |
lichtl/darkstar | scripts/globals/items/bowl_of_adoulin_soup.lua | 18 | 1555 | -----------------------------------------
-- ID: 5998
-- Item: Bowl of Adoulin Soup
-- Food Effect: 180 Min, All Races
-----------------------------------------
-- HP % 3 Cap 40
-- Vitality 3
-- Defense % 15 Cap 70
-- HP Healing 6
-----------------------------------------
require("scripts/globals/status");
----------... | gpl-3.0 |
RunAwayDSP/darkstar | scripts/zones/Northern_San_dOria/npcs/Vamorcote.lua | 11 | 2202 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Vamorcote
-- Starts and Finishes Quest: The Setting Sun
-- !pos -137.070 10.999 161.855 231
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
require("scripts/globals/quests");
require("scripts/gl... | gpl-3.0 |
lichtl/darkstar | scripts/globals/items/m&p_dumpling.lua | 18 | 1243 | -----------------------------------------
-- 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 |
Zverik/omim | 3party/osrm/osrm-backend/profile.lua | 48 | 13466 | -- Begin of globals
--require("lib/access") --function temporarily inlined
barrier_whitelist = { ["cattle_grid"] = true, ["border_control"] = true, ["checkpoint"] = true, ["toll_booth"] = true, ["sally_port"] = true, ["gate"] = true, ["lift_gate"] = true, ["no"] = true, ["entrance"] = true }
access_tag_whitelist = { [... | apache-2.0 |
lichtl/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/HomePoint#4.lua | 27 | 1285 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: HomePoint#4
-- @pos -99 -6 -68 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
require("scr... | gpl-3.0 |
RunAwayDSP/darkstar | scripts/zones/PsoXja/npcs/_i99.lua | 9 | 3356 | -----------------------------------
-- Area: Pso'Xja
-- NPC: Stone Gate
-----------------------------------
require("scripts/globals/missions");
local ID = require("scripts/zones/PsoXja/IDs");
require("scripts/globals/keyitems");
-----------------------------------
function onTrade(player,npc,trade)
end;
function on... | gpl-3.0 |
RunAwayDSP/darkstar | scripts/globals/spells/slow_ii.lua | 12 | 1512 | -----------------------------------------
-- Spell: Slow II
-----------------------------------------
require("scripts/globals/magic")
require("scripts/globals/msg")
require("scripts/globals/status")
require("scripts/globals/utils")
-----------------------------------------
function onMagicCastingCheck(caster, target,... | gpl-3.0 |
RunAwayDSP/darkstar | scripts/zones/Giddeus/npcs/Laa_Mozi.lua | 9 | 1565 | -----------------------------------
-- Area: Giddeus
-- NPC: Laa Mozi
-- Involved in Mission 1-3
-- !pos -22 0 148 145
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/missions");
require("scripts/globals/keyitems");
-----------------------------------
function onTrade... | gpl-3.0 |
RunAwayDSP/darkstar | scripts/globals/items/sacred_sword.lua | 12 | 1254 | -----------------------------------------
-- ID: 17682
-- Sacred Sword
-- Additional effect: Light damage
-- Enchantment: "Enlight"
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------
function on... | gpl-3.0 |
lichtl/darkstar | scripts/globals/abilities/thunder_shot.lua | 16 | 2989 | -----------------------------------
-- Ability: Thunder Shot
-- Consumes a Thunder Card to enhance lightning-based debuffs. Deals lightning-based magic damage
-- Shock Effect: Enhanced DoT and MND-
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scri... | gpl-3.0 |
PUMpITapp/getsmart | src/answerTable.lua | 1 | 4064 | return {
---Level 0/1
{
{'Dog',{{2,2}},{{'o','ou','uo','aw'}}},
{'House',{{2,3}},{{'ou','io','uo','oo'}}},
{'Apple',{{2,3}},{{'pp','p','pe','pl'}}},
{'Clock',{{3,4}},{{'oc','o','oo','ok'}}},
{'Play',{{3,3}},{{'a','la','e','ei'}}},
... | gpl-3.0 |
Wiladams/LJIT2RenderingManager | testy/drm_lock.lua | 1 | 7739 | --[[
Originally from xf86drm_ffi
This are some platform locking primitives which are used in the DRM
implementation, but not part of the basic client side API
--]]
--[[
__drm_dummy_lock(lock) (*(__volatile__ unsigned int *)lock)
DRM_LOCK_HELD 0x80000000U /**< Hardware lock is held */
DRM_LOCK_CONT 0x4000000... | mit |
lichtl/darkstar | scripts/globals/weaponskills/dragon_kick.lua | 22 | 1614 | -----------------------------------
-- Dragon Kick
-- Hand-to-Hand weapon skill
-- Skill Level: 225
-- Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Breeze Gorget & Thunder Gorget.
-- Aligned with the Breeze Belt & Thunder Belt.
-- Element: None
-- Modifiers: STR:50% ; VIT:50%
-- 100%TP ... | gpl-3.0 |
RunAwayDSP/darkstar | scripts/globals/mobskills/trample.lua | 11 | 1120 | ---------------------------------------------------
-- Trample
-- Family: Bahamut
-- Description: Deals physical damage to enemies in an area of effect. Additional effect: Knockback + Bind
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range:
-- Notes:
------------------------------------------------... | gpl-3.0 |
OctoEnigma/shiny-octo-system | lua/menu/mainmenu.lua | 1 | 8244 |
include( 'background.lua' )
pnlMainMenu = nil
local PANEL = {}
function PANEL:Init()
self:Dock( FILL )
self:SetKeyboardInputEnabled( true )
self:SetMouseInputEnabled( true )
self.HTML = vgui.Create( "DHTML", self )
JS_Language( self.HTML )
JS_Utility( self.HTML )
JS_Workshop( self.HTML )
self.HTML:Dock(... | mit |
omid1212/avint | plugins/Fake.lua | 45 | 6690 | local function kick_user(user_id, chat_id)
local chat = 'chat#id'..chat_id
local user = 'user#id'..user_id
chat_del_user(chat, user, ok_cb, true)
end
local function ban_user(user_id, chat_id)
-- Save to redis
local hash = 'banned:'..chat_id..':'..user_id
redis:set(hash, true)
-- Kick from chat
kick_us... | gpl-2.0 |
raingloom/yaoui | yaoui/UI/input/Input.lua | 2 | 7510 | local input_path = (...):match('(.-)[^%.]+$') .. '.'
local Input = {}
Input.__index = Input
local major, minor, rev = love.getVersion()
local love_version = major .. '.' .. minor .. '.' .. rev
-- Replace '.' if using `require 'Path.to.lib'`
local current_path = ''
local current_index = 0
while #current_path ~= #input... | mit |
OctoEnigma/shiny-octo-system | gamemodes/darkrp/gamemode/modules/fadmin/fadmin/serversettings/sv_init.lua | 11 | 1882 | local Whitelist = {"sv_password"} -- Make sure people don't use FAdmin serversetting as easy RCON, only the SBOX commands are allowed
table.insert(Whitelist, "sbox_.*")
table.insert(Whitelist, "_FAdmin_.*")
sql.Query([[CREATE TABLE IF NOT EXISTS FAdmin_ServerSettings(setting STRING NOT NULL PRIMARY KEY, value STRING N... | mit |
lichtl/darkstar | scripts/zones/Bastok_Mines/npcs/Arva.lua | 17 | 1295 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Arva
-- Adventurer's Assistant
-- Working 100%
-------------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scripts/zones/Bastok_Mines/TextIDs");
-----------------------... | gpl-3.0 |
RunAwayDSP/darkstar | scripts/globals/weaponskills/tachi_ageha.lua | 10 | 1879 | -----------------------------------
-- Tachi Ageha
-- Great Katana weapon skill
-- Skill Level: 300
-- Lowers target's defense. Chance of lowering target's defense varies with TP.
-- 30% Defense Down
-- Duration of effect is exactly 3 minutes.
-- Aligned with the Shadow Gorget, Soil Gorget.
-- Aligned with the Shadow B... | gpl-3.0 |
OctoEnigma/shiny-octo-system | lua/vgui/propselect.lua | 1 | 4004 |
local PANEL = {}
local border = 0
local border_w = 8
local matHover = Material( "gui/ps_hover.png", "nocull" )
local boxHover = GWEN.CreateTextureBorder( border, border, 64 - border * 2, 64 - border * 2, border_w, border_w, border_w, border_w, matHover )
-- This function is used as the paint function for selected bu... | mit |
da03/OpenNMT | onmt/translate/Translator.lua | 2 | 16588 | local Translator = torch.class('Translator')
local options = {
{
'-model', '',
[[Path to the serialized model file.]],
{
valid = onmt.utils.ExtendedCmdLine.fileNullOrExists
}
},
{
'-lm_model', '',
[[Path to serialized language model file.]],
{
valid = onmt.utils.ExtendedCm... | mit |
lichtl/darkstar | scripts/zones/Cape_Teriggan/npcs/Orukeke_WW.lua | 14 | 3316 | -----------------------------------
-- Area: Cape Teriggan
-- NPC: Orukeke, W.W.
-- Type: Border Conquest Guards
-- @pos 119 0 282 113
-----------------------------------
package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
require("scri... | gpl-3.0 |
OctoEnigma/shiny-octo-system | lua/includes/modules/baseclass.lua | 2 | 1257 |
--
-- The baseclass module uses upvalues to give the impression of inheritence.
--
-- At the top of your class file add
--
-- DEFINE_BASECLASS( "base_class_name" )
--
-- Now the local variable BaseClass will be available.
-- ( in engine DEFINE_BASECLASS is replaced with "local BaseClass = baseclass.Get" )
--
-- Base... | mit |
lichtl/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/qm1.lua | 14 | 1030 | -----------------------------------
-- Area: Phomiuna Aqueducts
-- NPC: qm1 (???)
-- Notes: Opens east door @ F-7
-- @pos -44.550 -24.601 106.495 27
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
... | gpl-3.0 |
RunAwayDSP/darkstar | scripts/globals/spells/regen_iv.lua | 12 | 1244 | -----------------------------------------
-- Spell: Regen IV
-- Gradually restores target's HP.
-----------------------------------------
-- Scale down duration based on level
-- Composure increases duration 3x
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
... | gpl-3.0 |
lichtl/darkstar | scripts/zones/Cloister_of_Gales/mobs/Garuda_Prime.lua | 23 | 2774 | -----------------------------------
-- Area: Cloister of Gales
-- MOB: Garuda Prime
-- Involved in Quest: Trial by Wind
-- Involved in Mission: ASA-4 Sugar Coated Directive
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/status");
... | gpl-3.0 |
RunAwayDSP/darkstar | scripts/zones/Southern_San_dOria/npcs/Apairemant.lua | 11 | 1266 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Apairemant
-- Gustaberg Regional Merchant
-- !pos 72 2 0 230
-----------------------------------
local ID = require("scripts/zones/Southern_San_dOria/IDs")
require("scripts/globals/events/harvest_festivals")
require("scripts/globals/conquest")
re... | gpl-3.0 |
ImpossibleBananaLabs/Factorio-Advanced-Electric | prototypes/technology/boilers.lua | 1 | 1929 |
local boiler_mk2 = util.table.deepcopy(data.raw.technology["steel-processing"])
boiler_mk2.name = "advanced-electric-boiler-1"
boiler_mk2.icon = "__base__/graphics/icons/boiler.png"
boiler_mk2.icon_size = 32
boiler_mk2.prerequisites =
{
"advanced-material-processing",
}
boiler_mk2.effects =
{
{
type = "unlock-... | gpl-3.0 |
wuxiaowei907/annotated_redis_source | deps/lua/test/life.lua | 888 | 2635 | -- life.lua
-- original by Dave Bollinger <DBollinger@compuserve.com> posted to lua-l
-- modified to use ANSI terminal escape sequences
-- modified to use for instead of while
local write=io.write
ALIVE="¥" DEAD="þ"
ALIVE="O" DEAD="-"
function delay() -- NOTE: SYSTEM-DEPENDENT, adjust as necessary
for i=1,10000 do... | bsd-3-clause |
ReadCode/redis-3.0-annotated | deps/lua/test/life.lua | 888 | 2635 | -- life.lua
-- original by Dave Bollinger <DBollinger@compuserve.com> posted to lua-l
-- modified to use ANSI terminal escape sequences
-- modified to use for instead of while
local write=io.write
ALIVE="¥" DEAD="þ"
ALIVE="O" DEAD="-"
function delay() -- NOTE: SYSTEM-DEPENDENT, adjust as necessary
for i=1,10000 do... | bsd-3-clause |
NiLuJe/koreader | frontend/apps/filemanager/filemanagerutil.lua | 3 | 1970 | --[[--
This module contains miscellaneous helper functions for FileManager
]]
local Device = require("device")
local DocSettings = require("docsettings")
local util = require("ffi/util")
local _ = require("gettext")
local filemanagerutil = {}
function filemanagerutil.getDefaultDir()
return Device.home_dir or "."... | agpl-3.0 |
lichtl/darkstar | scripts/globals/items/plate_of_ikra_gunkan.lua | 18 | 1727 | -----------------------------------------
-- ID: 5219
-- Item: plate_of_ikra_gunkan
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 30
-- Magic 10
-- Dexterity 3
-- Mind -2
-- Accuracy % 17
-- Accuracy Cap 28
-- Ranged ACC % 17
-- Ranged ACC Cap 28
----------------------------------... | gpl-3.0 |
RunAwayDSP/darkstar | scripts/globals/items/balik_sandvici_+1.lua | 11 | 1125 | -----------------------------------------
-- ID: 5591
-- Item: Balik Sandvic +1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Dexterity 3
-- Agility 1
-- Intelligence 3
-- Mind -2
-- Ranged ACC 6
-----------------------------------------
require("scripts/globals/status")
require("scripts... | gpl-3.0 |
RunAwayDSP/darkstar | scripts/globals/items/serving_of_batagreen_saute.lua | 11 | 1098 | -----------------------------------------
-- ID: 4553
-- Item: serving_of_batagreen_sautee
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Agility 1
-- Vitality -2
-- Ranged ACC % 7
-- Ranged ACC Cap 15
-----------------------------------------
require("scripts/globals/status")
require("s... | gpl-3.0 |
RunAwayDSP/darkstar | scripts/zones/Northern_San_dOria/npcs/Durogg.lua | 11 | 2397 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Durogg
-- Type: Past Event Watcher
-- !pos 15 0 -18 231
-----------------------------------
require("scripts/globals/quests");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
-- A... | gpl-3.0 |
OctoEnigma/shiny-octo-system | gamemodes/sandbox/entities/weapons/gmod_tool/shared.lua | 1 | 7751 |
-- Variables that are used on both client and server
SWEP.PrintName = "Tool Gun"
SWEP.Author = ""
SWEP.Contact = ""
SWEP.Purpose = ""
SWEP.Instructions = ""
SWEP.ViewModel = "models/weapons/c_toolgun.mdl"
SWEP.WorldModel = "models/weapons/w_toolgun.mdl"
SWEP.UseHands = true
SWEP.Spawnable = true
-- Be nic... | mit |
lichtl/darkstar | scripts/zones/Spire_of_Vahzl/npcs/_0n1.lua | 66 | 1356 | -----------------------------------
-- Area: Spire_of_vahlz
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Vahzl/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Vahzl/TextIDs");
-------------------... | gpl-3.0 |
lichtl/darkstar | scripts/zones/Abyssea-Vunkerl/mobs/Div_e_Sepid.lua | 23 | 1036 | -----------------------------------
-- Area: Abyssea - Vunkerl
-- MOB: Div-e Sepid
-- ID: 17666515
-- Note: No position data in the database (won't spawn)
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize Action
-------------------------... | gpl-3.0 |
lichtl/darkstar | scripts/zones/Abyssea-Grauberg/npcs/qm8.lua | 14 | 1343 | -----------------------------------
-- Zone: Abyssea-Grauberg
-- NPC: qm8 (???)
-- Spawns Ika-Roa
-- @pos ? ? ? 254
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
--[[
... | gpl-3.0 |
lichtl/darkstar | scripts/zones/Dangruf_Wadi/npcs/qm3.lua | 17 | 1988 | -----------------------------------
-- NPC: ??? (QM3)
-- Type: Saltvix dice roll game part 2
-- @zone 191
-- Involved in quest "As Thick As Thieves"
-----------------------------------
package.loaded["scripts/zones/Dangruf_Wadi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");... | gpl-3.0 |
lichtl/darkstar | scripts/globals/items/ear_of_roasted_corn.lua | 18 | 1257 | -----------------------------------------
-- ID: 4415
-- Item: ear_of_roasted_corn
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 6
-- Dexterity -1
-- Vitality 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------... | gpl-3.0 |
lichtl/darkstar | scripts/zones/Abyssea-Vunkerl/npcs/qm17.lua | 9 | 1551 | -----------------------------------
-- Zone: Abyssea-Vunkerl
-- NPC: qm17 (???)
-- Spawns Sedna
-- @pos ? ? ? 217
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/status");
-----------------------------------
-- onTrigger Action
-----------------------------------
fun... | gpl-3.0 |
thermofisherlsms/xcalibur-workbench | statusPage.lua | 1 | 5370 | -- Copyright (c) 2016 Thermo Fisher Scientific
--
-- 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, ... | mit |
lichtl/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Iruki-Waraki.lua | 13 | 3038 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Iruki-Waraki
-- Type: Standard NPC
-- Involved in quest: No Strings Attached
-- @pos 101.329 -6.999 -29.042 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
--------------------------... | gpl-3.0 |
scscgit/scsc_wildstar_addons | Hephaestus/CraftQueue.lua | 1 | 7278 | -----------------------------------------------------------------------------------------------
-- Craft Queue implementation
-- Copyright (c) 2014 DoctorVanGogh on Wildstar forums - all rights reserved
-----------------------------------------------------------------------------------------------
local MAJOR,MINOR = ... | mit |
PUMpITapp/getsmart | src/spec/flagGame_spec.lua | 1 | 2919 | require "flagGame"
describe('testing checkAnswer(userAnswer) ', function ( ... )
it('comparing userAnswer to correctAnswer, correct', function ( ... )
local userAnswer = 1
local correctCountry = 'Sweden'
local answers = {
'Sweden',
'Denmark',
'Germany',
'Mexico',
}
checkAnswer(userAnswer, answe... | gpl-3.0 |
lichtl/darkstar | scripts/zones/Temenos/mobs/Carbuncle_Prime.lua | 20 | 2230 | -----------------------------------
-- Area: Temenos E T
-- NPC: mystic Avatar
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-------------------------------... | gpl-3.0 |
lichtl/darkstar | scripts/zones/Port_Windurst/npcs/Lebondur.lua | 17 | 1534 | -----------------------------------
-- Area: Port Windurst
-- NPC: Lebondur
-- Regional Marchant NPC
-- Only sells when Windurst controls Vollbow.
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zone... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.