repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
XJMLN/MTA-PSZ | resources/[PSZMTA]/psz-dziendziecka/ddziecka_c.lua | 1 | 4268 | --[[
skiny={218,220,221}
--local marker = createMarker(-2893.87,471.97,3.91,"cylinder",2,255,255,255,120)
--local text = createElement("text")
-- setElementPosition(text,-2893.87,471.97,4.93+3)
--setElementData(text,"scale",2)
--setElementData(text,"text","Odbierz prezent z okazji urodzin serwera")
ev_wnd = guiCrea... | mit |
never615/ipscanner | app/src/main/assets/nmap/share/nmap/nselib/mssql.lua | 2 | 96591 | ---
-- MSSQL Library supporting a very limited subset of operations.
--
-- The library was designed and tested against Microsoft SQL Server 2005.
-- However, it should work with versions 7.0, 2000, 2005 and 2008.
-- Only a minimal amount of parsers have been added for tokens, column types
-- and column data in order t... | mit |
bn7/darkstar | scripts/zones/Abyssea-Attohwa/npcs/qm14.lua | 5 | 1385 | -----------------------------------
-- Zone: Abyssea-Attohwa
-- NPC: qm14 (???)
-- Spawns Smok
-- @pos ? ? ? 215
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/status");
-----------------------------------
-- onTrigger Action
-----------------------------------
func... | gpl-3.0 |
simonemainardi/ntopng | scripts/lua/user_stats.lua | 1 | 2907 | --
-- (C) 2013-17 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
sendHTTPHeader('text/html; charset=iso-8859-1')
mode = _GET["pid_mode"]
host = _GET["host"]
user = _GET["username"]
interface.select(ifname)
flows_stats = interf... | gpl-3.0 |
CTSRD-SOAAP/chromium-42.0.2311.135 | third_party/skia/resources/test.lua | 68 | 1921 |
local r = { left = 10, top = 10, right = 100, bottom = 80 }
local x = 0;
local paint = Sk.newPaint();
paint:setAntiAlias(true);
local image -- = Sk.loadImage('/skia/sailboat.jpg');
function setImageFilename(filename)
image = Sk.loadImage(filename)
end
local color = {a = 1, r = 1, g = 0, b = 0};
function r... | bsd-3-clause |
bn7/darkstar | scripts/globals/items/yellow_curry_bun.lua | 12 | 2103 | -----------------------------------------
-- ID: 5757
-- Item: yellow_curry_bun
-- Food Effect: 30minutes, All Races
-----------------------------------------
-- TODO: Group effects
-- Health Points 20
-- Strength 5
-- Agility 2
-- Intelligence -4
-- Attack 20% (caps @ 75)
-- Ranged Attack 20% (caps @ 75)
-- Resist Sle... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c7001104.lua | 1 | 1791 | --活着的历史
function c7001104.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(c7001104.condition)
e1:SetTarget(c7001104.target)
e1:SetOperation(c7001104.operation)
c:RegisterEffect(e1)... | gpl-2.0 |
citizen428/edges | src/edges.lua | 1 | 1551 | function tobool (x)
return not not x
end
function table.count (t, x)
local count = 0
for _, v in pairs(t) do
if v == x then
count = count + 1
end
end
return count
end
function table.grep (t, x)
local res = {}
local idx = 1
for i, v in pairs(t) do
if v == x then
... | mit |
bn7/darkstar | scripts/globals/spells/bluemagic/mind_blast.lua | 26 | 1989 | -----------------------------------------
-- Spell: Mind Blast
-- Deals lightning damage to an enemy. Additional effect: Paralysis
-- Spell cost: 82 MP
-- Monster Type: Demons
-- Spell Type: Magical (Lightning)
-- Blue Magic Points: 4
-- Stat Bonus: MP+5 MND+1
-- Level: 73
-- Casting Time: 3 seconds
-- Recast Time: 30 ... | gpl-3.0 |
bn7/darkstar | scripts/zones/The_Garden_of_RuHmet/npcs/qm3.lua | 14 | 1715 | -----------------------------------
-- Area: The_Garden_of_RuHmet
-- NPC: ??? (Jailer of Faith Spawn)
-- Allows players to spawn the Jailer of Faith by trading 1 High-Quality Euvhi Organ to a ???.
-- @pos -260 0 -645
-----------------------------------
package.loaded["scripts/zones/The_Garden_of_RuHmet/TextIDs"] = ni... | gpl-3.0 |
yinjun322/quick-ng | cocos/scripting/lua-bindings/auto/api/PhysicsShapeCircle.lua | 10 | 2331 |
--------------------------------
-- @module PhysicsShapeCircle
-- @extend PhysicsShape
-- @parent_module cc
--------------------------------
-- Get the circle's radius.<br>
-- return A float number.
-- @function [parent=#PhysicsShapeCircle] getRadius
-- @param self
-- @return float#float ret (return value: float)
... | mit |
bn7/darkstar | scripts/commands/setweather.lua | 1 | 1579 | ---------------------------------------------------------------------------------------------------
-- func: setweather
-- desc: Sets the current weather for the current zone.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 2,
parame... | gpl-3.0 |
li-wl/kong | spec/02-integration/05-proxy/10-server_tokens_spec.lua | 4 | 7331 | local helpers = require "spec.helpers"
local constants = require "kong.constants"
local default_server_header = _KONG._NAME .. "/" .. _KONG._VERSION
local function start(config)
return function()
helpers.dao.apis:insert {
name = "api-1",
upstream_url = "http://localhost:9999/headers-inspect",
... | apache-2.0 |
bn7/darkstar | scripts/globals/weaponskills/tachi_kasha.lua | 18 | 1884 | -----------------------------------
-- Tachi Kasha
-- Great Katana weapon skill
-- Skill Level: 250
-- Paralyzes target. Damage varies with TP.
-- Paralyze effect duration is 60 seconds when unresisted.
-- In order to obtain Tachi: Kasha, the quest The Potential Within must be completed.
-- Will stack with Sneak Attack... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c20048.lua | 1 | 1079 |
--上海人形
function c20048.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(20048,0))
e1:SetCategory(CATEGORY_DAMAGE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(c20048.damcost)
e1:SetTarget(c20048.damtg)
e1:SetOperation(c20048.damop)
... | gpl-2.0 |
ayourtch/luasocket6-test | etc/dict.lua | 59 | 4652 | -----------------------------------------------------------------------------
-- Little program to download DICT word definitions
-- LuaSocket sample files
-- Author: Diego Nehab
-- RCS ID: $Id: dict.lua,v 1.22 2005/11/22 08:33:29 diego Exp $
-----------------------------------------------------------------------------... | mit |
bn7/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/_0rt.lua | 14 | 1640 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: Oil lamp
-- @pos -60 -23 60 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Phomiuna_Aqueduct... | gpl-3.0 |
bn7/darkstar | scripts/globals/weaponskills/sickle_moon.lua | 25 | 1727 | -----------------------------------
-- Sickle Moon
-- Great Sword weapon skill
-- Skill level: 200
-- Delivers a two-hit attack. Damage varies with TP.
-- Modifiers: STR:40% ; AGI:40%
-- 100%TP 200%TP 300%TP
-- 1.5 2 2.75
-----------------------------------
require("scripts/globals/status");
requ... | gpl-3.0 |
bn7/darkstar | scripts/zones/Port_Windurst/npcs/_6o6.lua | 14 | 1442 | -----------------------------------
-- Area: Port Windurst
-- NPC: Door: Departures Exit
-- @zone 240
-- @pos 218 -5 114
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/ke... | gpl-3.0 |
bn7/darkstar | scripts/globals/items/plate_of_ic_pilav_+1.lua | 12 | 1956 | -----------------------------------------
-- ID: 5585
-- Item: plate_of_ic_pilav_+1
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Health % 14
-- Health Cap 70
-- Strength 5
-- Vitality -2
-- Intelligence -2
-- Health Regen While Healing 1
-- Attack % 22
-- Attack Cap 70
-- Ranged ATT % ... | gpl-3.0 |
paul99/clank | v8/tools/gcmole/gcmole.lua | 6 | 11328 | -- Copyright 2011 the V8 project authors. All rights reserved.
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are
-- met:
--
-- * Redistributions of source code must retain the above copyright
-- notice, this list of ... | bsd-3-clause |
bn7/darkstar | scripts/globals/spells/bluemagic/digest.lua | 2 | 1660 | -----------------------------------------
-- Spell: Digest
-- Steals an enemy's HP. Ineffective against undead
-- Spell cost: 20 MP
-- Monster Type: Amorphs
-- Spell Type: Magical (Dark)
-- Blue Magic Points: 2
-- Stat Bonus: HP-5, MP+5
-- Level: 36
-- Casting Time: 4 seconds
-- Recast Time: 90 seconds
-- Magic Bursts ... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c27029.lua | 1 | 2065 | --活死人的呼唤
function c27029.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_END_PHASE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c27029.target)
e1:SetOperation(c2... | gpl-2.0 |
bn7/darkstar | scripts/zones/Mount_Zhayolm/mobs/Magmatic_Eruca.lua | 2 | 1454 | -----------------------------------
-- Area: Mount Zhayolm
-- MOB: Magmatic Eruca
-- Note: Place Holder Energetic Eruca
-----------------------------------
require("scripts/zones/Mount_Zhayolm/MobIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob, pl... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c20086.lua | 1 | 3453 |
--西行妖
function c20086.initial_effect(c)
c:SetUniqueOnField(1,0,20086)
--c:EnableCounterPermit(0x128b)
c:SetCounterLimit(0x128b,8)
--Activate
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_ACTIVATE)
e0:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e0)
--add counter
local e1=Effect.CreateEffect(c)
e1:Se... | gpl-2.0 |
sarahgerweck/Ace3 | AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua | 1 | 56547 | --- AceConfigDialog-3.0 generates AceGUI-3.0 based windows based on option tables.
-- @class file
-- @name AceConfigDialog-3.0
-- @release $Id$
local LibStub = LibStub
local MAJOR, MINOR = "AceConfigDialog-3.0", 57
local AceConfigDialog, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
if not AceConfigDialog then return e... | bsd-3-clause |
bn7/darkstar | scripts/zones/Rolanberry_Fields/npcs/Smile_Helper.lua | 9 | 9437 | -----------------------------------
-- Area: East Ronfaure
-- NPC: Smile Helper
-- Type: EVENT NPC
-- Scripted/Created by Tagban
-- REQUIRES PrintToServer/PrintToPlayer mod posted on DSP Forums
-----------------------------------
package.loaded["scripts/zones/East_Ronfaure/TextIDs"] = nil;
-----------------------... | gpl-3.0 |
LuaDist2/kong | kong/plugins/loggly/handler.lua | 1 | 2996 | local BasePlugin = require "kong.plugins.base_plugin"
local basic_serializer = require "kong.plugins.log-serializers.basic"
local cjson = require "cjson"
local LogglyLogHandler = BasePlugin:extend()
LogglyLogHandler.PRIORITY = 650
local os_date = os.date
local tostring = tostring
local ngx_log = ngx.log
local ngx_ti... | apache-2.0 |
bn7/darkstar | scripts/zones/Carpenters_Landing/mobs/Birdtrap.lua | 2 | 1416 | -----------------------------------
-- Area: Carpenters' Landing
-- MOB: Birdtrap
-- Note: Placeholder Orctrap
-----------------------------------
require("scripts/zones/Carpenters_Landing/MobIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob, player... | gpl-3.0 |
bn7/darkstar | scripts/globals/weaponskills/blast_arrow.lua | 15 | 1376 | -----------------------------------
-- Blast Arrow
-- Archery weapon skill
-- Skill level: 200
-- Delivers a melee-distance ranged attack. params.accuracy varies with TP.
-- Aligned with the Snow Gorget & Light Gorget.
-- Aligned with the Snow Belt & Light Belt.
-- Element: None
-- Modifiers: STR:16% ; AGI:25%
-- 100%T... | gpl-3.0 |
XJMLN/MTA-PSZ | resources/[PSZMTA]/psz-misc/pedy.lua | 1 | 1029 | local I = 85
local D = 666
local barman1 = createPed(171, -263.68, 2595.25, 71.54, 270, false)
setElementInterior(barman1, I)
setElementDimension(barman1, D)
setElementData(barman1, "npc", true)
setElementData(barman1, "name", "Barman")
setElementFrozen(barman1, true)
local barman2 = createPed(171, -263.68,2591.... | mit |
HuangYuNan/thcsvr | expansions/script/c14053.lua | 1 | 1821 | --梦幻馆 湖上的吸血鬼✿胡桃
function c14053.initial_effect(c)
--recover
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCategory(CATEGORY_RECOVER)
e1:SetCode(EVENT_BATTLE_DAMAGE)
e1:SetCondition(c14053.condition)
e1:SetTarget(c14053.target)
e1:SetOperation(c14053.operation)
c:Reg... | gpl-2.0 |
yinjun322/quick-ng | cocos/scripting/lua-bindings/auto/api/WavesTiles3D.lua | 7 | 2435 |
--------------------------------
-- @module WavesTiles3D
-- @extend TiledGrid3DAction
-- @parent_module cc
--------------------------------
-- brief Get the amplitude rate of the effect.<br>
-- return Return the amplitude rate of the effect.
-- @function [parent=#WavesTiles3D] getAmplitudeRate
-- @param self
-- @ret... | mit |
HuangYuNan/thcsvr | expansions/script/c200018.lua | 1 | 3195 |
--绯想✿红美铃
function c200018.initial_effect(c)
--code
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CHANGE_CODE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_MZONE+LOCATION_GRAVE)
e1:SetValue(22011)
c:RegisterEf... | gpl-2.0 |
bn7/darkstar | scripts/zones/West_Ronfaure/npcs/Yoshihiro_IM.lua | 14 | 3326 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Yoshihiro, I.M.
-- Outpost Conquest Guards
-- @pos -450.571 -20.807 -219.970 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
... | gpl-3.0 |
bn7/darkstar | scripts/zones/Kazham/npcs/Mumupp.lua | 15 | 4341 | -----------------------------------
-- Area: Kazham
-- NPC: Mumupp
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
require("scripts/globals/pathfind");
local path = {
94.732452, -15.000000, -114.034622,
94.210846, ... | gpl-3.0 |
yinjun322/quick-ng | cocos/scripting/lua-bindings/auto/api/lua_cocos2dx_extension_auto_api.lua | 18 | 3398 | --------------------------------
-- @module cc
--------------------------------------------------------
-- the cc Control
-- @field [parent=#cc] Control#Control Control preloaded module
--------------------------------------------------------
-- the cc ControlButton
-- @field [parent=#cc] ControlButton#ControlButton... | mit |
amirfucker/teleseed | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
delram/seed6 | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
bn7/darkstar | scripts/zones/The_Sanctuary_of_ZiTah/npcs/Credaurion_RK.lua | 14 | 3393 | -----------------------------------
-- Area: The Sanctuary of Zi'Tah
-- NPC: Credaurion, R.K.
-- Outpost Conquest Guards
-- @pos -40.079 -0.642 -148.785 121
-----------------------------------
package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
shizhai/wprobe | build_dir/target-mips_r2_uClibc-0.9.33.2/luci/modules/admin-full/dist/usr/lib/lua/luci/controller/admin/uci.lua | 85 | 1975 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
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://w... | gpl-2.0 |
Dysoch/DyWorld | DyWorld-Dynamics/script/gui/smn-gui.lua | 1 | 6064 |
function Refresh_SMN_GUI(player, id)
if global.dyworld.players[id].smn_gui then
Close_SMN_GUI(player, id)
SMN_GUI(player, id)
if player.gui.top.DyDs_SMN_GUI then
player.gui.top.DyDs_SMN_GUI.selected_tab_index = global.dyworld.players[id].smn_gui_index
end
end
end
function Close_SMN_GUI(player, id)
if... | gpl-3.0 |
Yonaba/guard.lua | guard.lua | 1 | 1185 | local setmetatable = setmetatable
local ipairs = ipairs
local error = error
local assert = assert
local _guardian = function ()
local guard = {__when = {}}
guard.when = function(filter, f)
assert(type(filter) == 'function', 'Wrong argument #1 to when(). Expected a function')
assert(type(f) ... | mit |
bn7/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Door_Acolyte_hostel.lua | 14 | 2077 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Door Acolyte hostel
-- @pos 125 -2 216 94
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/sett... | gpl-3.0 |
bn7/darkstar | scripts/globals/spells/light_carol.lua | 27 | 1535 | -----------------------------------------
-- Spell: Light Carol
-- Increases light resistance for party members within the area of effect.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------... | gpl-3.0 |
bn7/darkstar | scripts/zones/Bastok_Mines/npcs/Christina.lua | 14 | 1047 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Christina
-- Type: Special Event Coordinator
-- @zone 234
-- @pos 23.703 -1 -86.034
--
-- Auto-Script: Requires Verification
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scripts/zones/Basto... | gpl-3.0 |
Asdonne/OpenRA | mods/ra/maps/allies-02/allies02.lua | 5 | 8126 | ConstructionVehicleReinforcements = { "mcv" }
ConstructionVehiclePath = { ReinforcementsEntryPoint.Location, DeployPoint.Location }
JeepReinforcements = { "e1", "e1", "e1", "jeep" }
JeepPath = { ReinforcementsEntryPoint.Location, ReinforcementsRallyPoint.Location }
TruckReinforcements = { "truk", "truk", "truk" }
Tru... | gpl-3.0 |
AntonioModer/Algorithm-Implementations | Hamming_Weight/Lua/Yonaba/numberlua.lua | 115 | 13399 | --[[
LUA MODULE
bit.numberlua - Bitwise operations implemented in pure Lua as numbers,
with Lua 5.2 'bit32' and (LuaJIT) LuaBitOp 'bit' compatibility interfaces.
SYNOPSIS
local bit = require 'bit.numberlua'
print(bit.band(0xff00ff00, 0x00ff00ff)) --> 0xffffffff
-- Interface providing strong Lua 5.2 '... | mit |
XJMLN/MTA-PSZ | resources/[PSZMTA]/psz-core/main.lua | 1 | 7307 | --[[
Core - nagrody za zabójstwa, respawn gracza
@author Jakub 'XJMLN' Starzak <jack@pszmta.pl
@package PSZMTA.psz-core
@copyright Jakub 'XJMLN' Starzak <jack@pszmta.pl>
Nie mozesz uzywac tego skryptu bez mojej zgody. Napisz - byc moze sie zgodze na uzycie.
]]--
local ainfo_txt = {
{"Wszystkie przydatne informac... | mit |
Asdonne/OpenRA | mods/ra/maps/soviet-04a/main.lua | 15 | 4321 |
RunInitialActivities = function()
Harvester.FindResources()
IdlingUnits()
Trigger.AfterDelay(10, function()
BringPatrol1()
BringPatrol2()
BuildBase()
end)
Utils.Do(Map.NamedActors, function(actor)
if actor.Owner == Greece and actor.HasProperty("StartBuildingRepairs") then
Trigger.OnDamaged(actor, func... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c24111.lua | 1 | 2452 | --『蔷薇地狱』
function c24111.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,24111+EFFECT_COUNT_CODE_DUEL)
e1:SetCondition(c24111.condition)
e1:SetTarget(c24111.target)
e1:SetOperation(c24111.activate)
c:RegisterEffect(e1... | gpl-2.0 |
WalkWifi/Openwrt | package/ramips/ui/luci-mtk/src/modules/base/luasrc/cbi.lua | 76 | 40152 | --[[
LuCI - Configuration Bind Interface
Description:
Offers an interface for binding configuration values to certain
data types. Supports value and range validation and basic dependencies.
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "Li... | gpl-2.0 |
bn7/darkstar | scripts/zones/Spire_of_Holla/npcs/_0h0.lua | 22 | 1508 | -----------------------------------
-- Area: Spire of Holla
-- NPC: Web of Recollection
-----------------------------------
package.loaded["scripts/zones/Spire_of_Holla/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/quests");
require("scripts/globals/mis... | gpl-3.0 |
omid1212/hhhh | plugins/google.lua | 722 | 1037 | local function googlethat(query)
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&"
local parameters = "q=".. (URL.escape(query) or "")
-- Do the request
local res, code = https.request(api..parameters)
if code ~=200 then return nil end
local data = json:decode(res)
local r... | gpl-2.0 |
chenbaihu/thrift | lib/lua/TSocket.lua | 113 | 2996 | ---- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you may... | apache-2.0 |
bn7/darkstar | scripts/zones/Temple_of_Uggalepih/npcs/_mf9.lua | 14 | 1429 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: _mf9 (Granite Door)
-- Notes: Opens with Prelate Key
-- @pos -60 -8 -99 159
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Templ... | gpl-3.0 |
bn7/darkstar | scripts/globals/items/orange_snow_cone.lua | 12 | 1388 | -----------------------------------------
-- ID: 5713
-- Item: orange_snow_cone
-- Food Effect: 5 Min, All Races
-----------------------------------------
-- MP +20% (cap 20)
-- AGI -1
-- INT +1
-- Wind resistance +5
-----------------------------------------
require("scripts/globals/status");
------------------------... | gpl-3.0 |
li-wl/kong | spec/01-unit/13-db/02-cassandra_spec.lua | 7 | 2407 | local cassandra_db = require "kong.dao.db.cassandra"
describe("cassandra_db", function()
describe("extract_major()", function()
it("extract major version digit", function()
assert.equal("3", cassandra_db.extract_major("3.7"))
assert.equal("3", cassandra_db.extract_major("3.7.12"))
assert.equal(... | apache-2.0 |
bn7/darkstar | scripts/zones/Northern_San_dOria/npcs/Prerivon.lua | 14 | 1038 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Prerivon
-- Type: Standard Dialogue NPC
-- @zone 231
-- @pos 142.324 0.000 132.515
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs");
... | gpl-3.0 |
ld-test/lua-term | term/cursor.lua | 4 | 1493 | -- Copyright (c) 2009 Rob Hoelz <rob@hoelzro.net>
--
-- 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, m... | mit |
bbinet/GoIoT | shared/log/server.lua | 2 | 1615 | --- Logger server module
--
require "shared.zhelpers"
local zmq = require "lzmq"
local cjson = require 'cjson'
local zpoller = require 'lzmq.poller'
local IPC = "ipc:///tmp/og.log.ipc"
--local IPC = "tcp://*:5593"
--- Server metatable
-- @type class
local class = {}
--- Create the server object
-- @tparam lzmq.cont... | gpl-2.0 |
yinjun322/quick-ng | cocos/scripting/lua-bindings/auto/api/Scale9Sprite.lua | 7 | 15128 |
--------------------------------
-- @module Scale9Sprite
-- @extend Node,BlendProtocol
-- @parent_module ccui
--------------------------------
--
-- @function [parent=#Scale9Sprite] disableCascadeColor
-- @param self
-- @return Scale9Sprite#Scale9Sprite self (return value: ccui.Scale9Sprite)
--------------... | mit |
Arashbrsh/trea | plugins/plugins.lua | 325 | 6164 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
bn7/darkstar | scripts/globals/items/pipin_hot_popoto.lua | 12 | 1281 | -----------------------------------------
-- ID: 4282
-- Item: pipin_hot_popoto
-- Food Effect: 60Min, All Races
-----------------------------------------
-- HP 25
-- Vitality 3
-- HP recovered while healing 1
-----------------------------------------
require("scripts/globals/status");
-------------------------------... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c25067.lua | 1 | 3519 | --净玻璃之镜
function c25067.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)
e1:SetTarget(c25067.target)
e1:SetOperation(c25067.operation)
c:RegisterEffect(e1)
--def
lo... | gpl-2.0 |
frankyifei/koreader | frontend/device/sdl/event_map_sdl2.lua | 9 | 1207 | return {
[ 4] = "A", [ 5] = "B", [ 6] = "C", [ 7] = "D", [ 8] = "E", [ 9] = "F",
[10] = "G", [11] = "H", [12] = "I", [13] = "J", [14] = "K", [15] = "L",
[16] = "M", [17] = "N", [18] = "O", [19] = "P", [20] = "Q", [21] = "R",
[22] = "S", [23] = "T", [24] = "U", [25] = "V", [26] = "W", [27] = "X",
[28... | agpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c10020.lua | 1 | 1222 |
--梦想天生
function c10020.initial_effect(c)
--activate proc
if not c10020.global_check then
c10020.global_check=true
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABLE)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE_START+PHASE_DRAW)... | gpl-2.0 |
HuangYuNan/thcsvr | expansions/script/c21105.lua | 1 | 1746 |
--永夜返 -子之刻-
function c21105.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c21105.cost)
e1:SetOperation(c21105.activate)
c:RegisterEffect(e1)
--effect indestructable
local e2=Effect.CreateEffec... | gpl-2.0 |
Thadah/GarryWare13 | gamemode/wareminigames/chair.lua | 2 | 2269 | WARE.Author = "Hurricaaane (Ha3)"
WARE.Models = {
"models/props_c17/furniturechair001a.mdl",
"models/props_c17/chair_office01a.mdl",
"models/props_c17/chair_stool01a.mdl",
"models/props_wasteland/controlroom_chair001a.mdl"
}
function WARE:GetModelList()
return self.Models
end
function WARE:Initialize()
GAMEMODE:E... | gpl-2.0 |
XJMLN/MTA-PSZ | resources/[PSZMTA]/psz-wyscigi/races_init.lua | 1 | 1339 |
local races = {}
local function deleteRace(rid)
if isElement(races[rid].startMarker) then deleteElement(races[rid].startMarker) end
if isElement(races[rid].blip) then deleteElement(races[rid].blip) end
races[rid] = nil
end
local function addRace(v, fast)
if races[v.id] then
deleteRace(v.id)
end
v.pos = spl... | mit |
bjorn/manaserv | example/scripts/npcs/debugger.lua | 4 | 3758 | ----------------------------------------------------------
-- Seller Function Sample --
----------------------------------------------------------------------------------
-- Copyright 2009-2010 The Mana World Development Team --
-- ... | gpl-2.0 |
bn7/darkstar | scripts/globals/spells/bluemagic/lowing.lua | 26 | 1382 | -----------------------------------------
-- Spell: Lowing
-- Gives enemies within range a powerful disease that prevents recovery of HP and MP
-- Spell cost: 66 MP
-- Monster Type: Beasts
-- Spell Type: Magical (Fire)
-- Blue Magic Points: 2
-- Stat Bonus: HP-5
-- Level: 71
-- Casting Time: 7 seconds
-- Recast Time: 5... | gpl-3.0 |
gaoxiaojun/symphony | test/lua5.1-tests/calls.lua | 7 | 6397 | print("testing functions and calls")
-- get the opportunity to test 'type' too ;)
assert(type(1<2) == 'boolean')
assert(type(true) == 'boolean' and type(false) == 'boolean')
assert(type(nil) == 'nil' and type(-3) == 'number' and type'x' == 'string' and
type{} == 'table' and type(type) == 'function')
assert(ty... | bsd-3-clause |
bn7/darkstar | scripts/globals/items/dish_of_spaghetti_carbonara.lua | 12 | 1829 | -----------------------------------------
-- ID: 5190
-- Item: dish_of_spaghetti_carbonara
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health % 14
-- Health Cap 175
-- Magic 10
-- Strength 4
-- Vitality 2
-- Intelligence -3
-- Attack % 17
-- Attack Cap 65
-- Store TP 6
----------------... | gpl-3.0 |
bjorn/manaserv | example/scripts/npcs/banker.lua | 4 | 4014 | ----------------------------------------------------------
-- Banker Function --
----------------------------------------------------------------------------------
-- Copyright 2008 The Mana World Development Team --
-- ... | gpl-2.0 |
sarahgerweck/Ace3 | tests/AceAddon-3.0.lua | 1 | 2904 | -- TODO:
-- Test module support of AceAddon-3.0.
dofile("wow_api.lua")
dofile("LibStub.lua")
dofile("../AceAddon-3.0/AceAddon-3.0.lua")
local AceAddon = LibStub("AceAddon-3.0")
do -- Test create addon.
local success, reason, addon
-- 'name' - string expected
success, reason = pcall( function() AceAddon:NewAd... | bsd-3-clause |
bn7/darkstar | scripts/zones/PsoXja/TextIDs.lua | 7 | 1882 | -- 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 = 6385; -- Obtained: <item>
GIL_OBTAINED = 6386; -- Obtained <number> gil
KEYITEM_OBTAINED = 6388; -- Obtain... | gpl-3.0 |
bn7/darkstar | scripts/zones/Selbina/npcs/Bretta.lua | 14 | 1153 | -----------------------------------
-- Area: Selbina
-- NPC: Bretta
-- @pos Poor Bretta lost in the depths of the database. Go find her.
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
------------... | gpl-3.0 |
bn7/darkstar | scripts/zones/Temple_of_Uggalepih/npcs/_4fz.lua | 14 | 1531 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: Granite Door
-- Leads to painbrush room @ F-7
-- @pos 60 0.1 8 159
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
re... | gpl-3.0 |
bn7/darkstar | scripts/globals/abilities/devotion.lua | 44 | 1670 | -----------------------------------
-- Ability: Devotion
-- Sacrifices HP to grant a party member the same amount in MP.
-- Obtained: White Mage Level 75
-- Recast Time: 0:10:00
-- Duration: Instant
-- Target: Party member, cannot target self.
-----------------------------------
require("scripts/globals/status");
requ... | gpl-3.0 |
bn7/darkstar | scripts/zones/Bastok_Markets/npcs/Reinberta.lua | 9 | 2148 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Reinberta
-- Type: Goldsmithing Guild Master
-- @pos -190.605 -7.814 -59.432 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Market... | gpl-3.0 |
hjsrzvpqma/api | libs/fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-2.0 |
nenonahar/GENERAAL | libs/fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-2.0 |
aymanhaider/Demonic_bot | libs/fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-2.0 |
LuaDist2/kong | kong/plugins/basic-auth/migrations/postgres.lua | 8 | 1152 | return {
{
name = "2015-08-03-132400_init_basicauth",
up = [[
CREATE TABLE IF NOT EXISTS basicauth_credentials(
id uuid,
consumer_id uuid REFERENCES consumers (id) ON DELETE CASCADE,
username text,
password text,
created_at timestamp without time zone default (CUR... | apache-2.0 |
HuangYuNan/thcsvr | expansions/script/c22015.lua | 1 | 1512 | --红魔-小恶魔
function c22015.initial_effect(c)
--draw
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_CHAIN_SOLVED)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCondition(c22015.drcon)
e1:SetOperation(c22015.drop)
c:RegisterEffect(e1)
--search
local ... | gpl-2.0 |
bn7/darkstar | scripts/zones/Sacrarium/npcs/qm5.lua | 14 | 1800 | -----------------------------------
-- Area: Sacrarium
-- NPC: qm5 (???)
-- Notes: Used to spawn Old Prof. Mariselle
-- @pos 102.670 -3.111 -127.318 28
-----------------------------------
package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Sacrarium/Te... | gpl-3.0 |
jhegg/wow-which-bosses-are-left | WhichBossesAreLeft/lib/LibStub/tests/test.lua | 86 | 2013 | debugstack = debug.traceback
strmatch = string.match
loadfile("../LibStub.lua")()
local lib, oldMinor = LibStub:NewLibrary("Pants", 1) -- make a new thingy
assert(lib) -- should return the library table
assert(not oldMinor) -- should not return the old minor, since it didn't exist
-- the following is to create data ... | mit |
bn7/darkstar | scripts/globals/items/demonic_sword.lua | 41 | 1080 | -----------------------------------------
-- ID: 16936
-- Item: Demonic Sword
-- Additional Effect: Darkness Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
--------------------------... | gpl-3.0 |
AntonioModer/Algorithm-Implementations | Bresenham_Based_Supercover_Line/Lua/Yonaba/bresenham_based_supercover_test.lua | 27 | 1151 | -- Tests for bresenham.lua
local supercover_line = require 'bresenham_based_supercover'
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 ... | mit |
omid1212/hhhh | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
bn7/darkstar | scripts/zones/Riverne-Site_A01/mobs/Hippogryph.lua | 13 | 1743 | -----------------------------------
-- Area: Riverne Site A01
-- MOB: Hippogryph
-----------------------------------
-----------------------------------
-- onMobRoam
-----------------------------------
function onMobRoam(mob)
local Heliodromos_Table =
{
16900110,
16900111,
16900112
... | gpl-3.0 |
AntonioModer/Algorithm-Implementations | Levenshtein_distance/Lua/Yonaba/levenshtein.lua | 25 | 1670 | -- Levenshtein distance implementation
-- See: http://en.wikipedia.org/wiki/Levenshtein_distance
-- Iterative matrix-based method
-- See: http://en.wikipedia.org/wiki/Levenshtein_distance#Iterative_with_full_matrix
-- Return the minimum of three elements
local function min(a, b, c)
return math.min(math.min(a, b), c)... | mit |
yinjun322/quick-ng | cocos/scripting/lua-bindings/script/framework/extends/MenuEx.lua | 57 | 1228 | --[[
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, dis... | mit |
bn7/darkstar | scripts/globals/items/red_terrapin.lua | 12 | 1327 | -----------------------------------------
-- ID: 4402
-- Item: red_terrapin
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 3
-- Mind -5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
------... | gpl-3.0 |
yinjun322/quick-ng | cocos/scripting/lua-bindings/auto/api/FadeOut.lua | 7 | 1047 |
--------------------------------
-- @module FadeOut
-- @extend FadeTo
-- @parent_module cc
--------------------------------
-- js NA
-- @function [parent=#FadeOut] setReverseAction
-- @param self
-- @param #cc.FadeTo ac
-- @return FadeOut#FadeOut self (return value: cc.FadeOut)
-----------------------------... | mit |
bn7/darkstar | scripts/zones/Arrapago_Remnants/instances/arrapago_remnants.lua | 29 | 3716 | -----------------------------------
--
-- Salvage: Arrapago Remnants
--
-----------------------------------
require("scripts/globals/instance")
package.loaded["scripts/zones/Arrapago_Remnants/IDs"] = nil;
local Arrapago = require("scripts/zones/Arrapago_Remnants/IDs");
-----------------------------------
-- afterI... | gpl-3.0 |
yinjun322/quick-ng | cocos/scripting/lua-bindings/auto/api/PUParticleSystem3D.lua | 7 | 11247 |
--------------------------------
-- @module PUParticleSystem3D
-- @extend ParticleSystem3D
-- @parent_module cc
--------------------------------
-- Returns the velocity scale, defined in the particle system, but passed to the technique for convenience.
-- @function [parent=#PUParticleSystem3D] getParticleSystemScaleV... | mit |
bn7/darkstar | scripts/zones/Bastok_Markets/npcs/Belizieg.lua | 14 | 1140 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Belizieg
-- Type: Item Deliverer
-- @zone 235
-- @pos -323.673 -16.001 -49.930
--
-- Auto-Script: Requires Verification. Verified standard dialog - thrydwolf 12/18/2011
-----------------------------------
package.loaded["scripts/zones/Bastok_Marke... | gpl-3.0 |
bn7/darkstar | scripts/zones/Southern_San_dOria/npcs/Luthiaque.lua | 17 | 1460 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Luthiaque
-- General Info NPC
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria/TextIDs");
require("scripts/globals... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.