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 |
|---|---|---|---|---|---|
Kthulupwns/darkstar | scripts/zones/QuBia_Arena/mobs/Archlich_Taber_quoan.lua | 27 | 4133 | -----------------------------------
-- Area: Qu'Bia Arena
-- NM: Archlich Taber'quoan
-- Mission 5-1 BCNM Fight
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
e... | gpl-3.0 |
pengzj/skynet | examples/login/gated.lua | 17 | 2187 | 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 |
Kthulupwns/darkstar | scripts/zones/Lower_Jeuno/npcs/Vola.lua | 17 | 3168 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Vola
-- Starts and Finishes Quest: Fistful of Fury
-- Involved in Quests: Beat Around the Bushin (before the quest)
-- @zone 245
-- @pos 43 3 -45
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
pack... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Quelveuiat.lua | 34 | 2668 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Quelveuiat
-- Standard Info NPC
-- @pos -3.177 -22.750 -25.970 26
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/weaponskills/rampage.lua | 30 | 1464 | -----------------------------------
-- Rampage
-- Axe weapon skill
-- Skill level: 175
-- Delivers a five-hit attack. Chance of params.critical varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Soil Gorget.
-- Aligned with the Soil Belt.
-- Element: None
-- Modifiers: STR:50%
-- 100%TP 2... | gpl-3.0 |
mlody1039/ModernOts | data/npc/scripts/wizard.lua | 1 | 4217 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCr... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Northern_San_dOria/npcs/Aivedoir.lua | 38 | 1026 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Aivedoir
-- Type: Standard Dialogue NPC
-- @zone: 231
-- @pos -123.119 7.999 134.490
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs")... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/QuBia_Arena/bcnms/those_who_lurk_in_shadows.lua | 59 | 2394 | -----------------------------------
-- Area: Qu'Bia Arena
-- NPC: Those Who Lurk in Shadows
-- @pos -221 -24 19 206
-----------------------------------
package.loaded["scripts/zones/QuBia_Arena/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions"... | gpl-3.0 |
AttacqueSuperior/Engine | mods/ra/maps/soviet-04b/soviet04b-AI.lua | 2 | 3383 | --[[
Copyright 2007-2021 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you 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 vers... | gpl-3.0 |
mlody1039/ModernOts | data/npc/scripts/bountyhunters.lua | 1 | 3838 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreat... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Port_San_dOria/npcs/Laucimercen.lua | 36 | 1377 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Laucimercen
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Port_San_dOria/T... | gpl-3.0 |
himamm/uzzbot | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
telergybot/telergybot | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/PhysicsBody.lua | 10 | 16743 |
--------------------------------
-- @module PhysicsBody
-- @extend Ref
-- @parent_module cc
--------------------------------
-- whether this physics body is affected by the physics world’s gravitational force.
-- @function [parent=#PhysicsBody] isGravityEnabled
-- @param self
-- @return bool#bool ret (return value... | mit |
Kthulupwns/darkstar | scripts/globals/spells/sleep_ii.lua | 11 | 1077 | -----------------------------------------
-- Spell: Sleep II
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,tar... | gpl-3.0 |
fegimanam/phw | plugins/all.lua | 36 | 4653 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
AGTMADCAT/naev | dat/events/start.lua | 11 | 4841 | include "dat/events/tutorial/tutorial-common.lua"
-- localization stuff, translators would work here
lang = naev.lang()
if lang == "es" then
else -- default english
title = {}
text = {}
title[1] = "Flying License Acquired!"
text[1] = [["Congratulations, %s," your flying instructor says through the radio... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Port_San_dOria/npcs/Diraulate.lua | 36 | 1375 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Diraulate
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Port_San_dOria/Tex... | gpl-3.0 |
mlody1039/ModernOts | data/npc/scripts/TP1/boat_ank.lua | 1 | 3822 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function ... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/LaLoff_Amphitheater/npcs/qm1_2.lua | 12 | 2354 | -----------------------------------
-- 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 |
GabrielNicolasAvellaneda/luvit-upstream | tests/to-convert/test-utils.lua | 5 | 2455 | local utils = require('utils')
require('helper')
local Object = require('core').Object
local BindHelper = Object:extend()
function BindHelper:func1(arg1, callback, ...)
assert(self ~= nil)
callback(arg1)
end
function BindHelper:func2(arg1, arg2, callback)
assert(self ~= nil)
callback(arg1, arg2)
end
functio... | apache-2.0 |
aa65535/luci | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/nut.lua | 18 | 2897 | -- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.nut",package.seeall)
function rrdargs( graph, plugin, plugin_instance, dtype )
local voltages = {
title = "%H: Voltages on UPS \"%pi\"",
vlabel = "V",
number_format = "%5.1lfV",
data = {
instances = {
... | apache-2.0 |
Kthulupwns/darkstar | scripts/globals/weaponskills/combo.lua | 30 | 1420 | -----------------------------------
-- Combo
-- Hand-to-Hand weapon skill
-- Skill level: 5
-- Delivers a threefold attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Thunder Gorget.
-- Aligned with the Thunder Belt.
-- Element: None
-- Modifiers: STR:20% ; DEX:20%
-- 100%TP ... | gpl-3.0 |
jamesbrink/sysdig | userspace/sysdig/chisels/iobytes_file.lua | 18 | 1602 | --[[
Copyright (C) 2013-2014 Draios inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Arrapago_Reef/npcs/qm3.lua | 15 | 1190 | -----------------------------------
-- Area: Arrapago Reef
-- NPC: ??? (Spawn Zareehkl the Jubilant(ZNM T2))
-- @pos 176 -4 182 54
-----------------------------------
package.loaded["scripts/zones/Arrapago_Reef/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Arrapago_Reef/TextIDs");
-----... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/spells/poisonga.lua | 10 | 1091 | -----------------------------------------
-- Spell: Poisonga
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,sp... | gpl-3.0 |
carbonsrv/circd | libs/irc.lua | 2 | 2092 | -- IRC Parser.
--[[
The MIT License (MIT)
Copyright (c) 2015 - 2016 Adrian Pistol
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 right... | mit |
Kthulupwns/darkstar | scripts/globals/mobskills/Antimatter.lua | 6 | 1117 | ---------------------------------------------------
-- Antimatter
--
-- Description: Single-target ranged Light damage (~700-1500), ignores Utsusemi.
-- Type: Magical
--
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/script... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Temenos/mobs/Enhanced_Ahriman.lua | 17 | 1287 | -----------------------------------
-- Area: Temenos Central 1floor
-- NPC: Enhanced_Ahriman
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
----------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Cloister_of_Tides/mobs/Leviathan_Prime.lua | 12 | 1904 | -----------------------------------
-- Area: Cloister of Tides
-- NPC: Leviathan Prime
-- Involved in Quest: Trial by Water, Trial Size Trial by Water
-- Involved in Mission: ASA-4 Sugar Coated Directive
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems... | gpl-3.0 |
Sakura-Winkey/packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/ruleconfig.lua | 82 | 4185 | -- ------ extra functions ------ --
function ruleCheck() -- determine if rule needs a protocol specified
local sourcePort = ut.trim(sys.exec("uci -p /var/state get mwan3." .. arg[1] .. ".src_port"))
local destPort = ut.trim(sys.exec("uci -p /var/state get mwan3." .. arg[1] .. ".dest_port"))
if sourcePort ~= "" or d... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/East_Ronfaure/npcs/Signpost.lua | 19 | 2134 | -----------------------------------
-- Area: East Ronfaure
-- NPC: Signpost
-- Involved in Quest: To Cure a Cough
-- @pos 257 -45 212 101
-----------------------------------
package.loaded["scripts/zones/East_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("s... | gpl-3.0 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/script/extension/DeprecatedExtensionFunc.lua | 39 | 1309 | --tip
local function deprecatedTip(old_name,new_name)
print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********")
end
--functions of CCControl will be deprecated end
local CCControlDeprecated = { }
function CCControlDeprecated.addHandleOfControlEvent(self,func,controlEve... | mit |
Kthulupwns/darkstar | scripts/globals/items/tavnazian_salad.lua | 35 | 1678 | -----------------------------------------
-- ID: 4279
-- Item: tavnazian_salad
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 20
-- Magic 20
-- Dexterity 4
-- Agility 4
-- Vitality 6
-- Charisma 4
-- Defense % 25
-- Defense Cap 150
------------------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/East_Ronfaure_[S]/Zone.lua | 22 | 1336 | -----------------------------------
--
-- Zone: East_Ronfaure_[S] (81)
--
-----------------------------------
package.loaded["scripts/zones/East_Ronfaure_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/East_Ronfaure_[S]/TextIDs");
-------... | gpl-3.0 |
telbbs/luci-0.12 | applications/luci-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua | 76 | 3146 | --[[
Luci diag - Diagnostics controller module
(c) 2009 Daniel Dickinson
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
]]--
module("luci.cont... | apache-2.0 |
dpino/snabb | src/program/lwaftr/quickcheck/utils.lua | 10 | 3042 | module(...,package.seeall)
local S = require("syscall")
function gmtime()
local tv = S.gettimeofday()
local secs = tonumber(tv.tv_sec)
secs = secs + tonumber(tv.tv_usec) * 1e-6
return secs
end
function concat(a, b)
local ret = {}
for _, v in ipairs(a) do table.insert(ret, v) end
for _, v in ipai... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Port_San_dOria/npcs/Teilsa.lua | 34 | 1795 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Teilsa
-- Adventurer's Assistant
-- Only recieving Adv.Coupon and simple talk event are scrited
-- This NPC participates in Quests and Missions
-------------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
... | gpl-3.0 |
rohanp/Algorithm-Implementations | Alpha_Beta_Pruning/Lua/Yonaba/alpha_beta_pruning_test.lua | 26 | 1062 | -- Tests for alpha_beta_pruning.lua
local ABP = require 'alpha_beta_pruning'
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 = pa... | mit |
Kthulupwns/darkstar | scripts/zones/Northern_San_dOria/npcs/Gulmama.lua | 23 | 5081 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Gulmama
-- Starts and Finishes Quest: Trial by Ice
-- Involved in Quest: Class Reunion
-- @pos -186 0 107 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
----------------------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/kaplumbaga.lua | 18 | 1258 | -----------------------------------------
-- ID: 5464
-- Item: Kaplumbaga
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 3
-- Mind -5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
--------... | gpl-3.0 |
aa65535/luci | applications/luci-app-radvd/luasrc/model/cbi/radvd/prefix.lua | 61 | 3557 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local sid = arg[1]
local utl = require "luci.util"
m = Map("radvd", translatef("Radvd - Prefix"),
translate("Radvd is a router advertisement daemon for IPv6. " ..
"It listens to router solicitations and send... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Jugner_Forest/npcs/Cavernous_Maw.lua | 29 | 1495 | -----------------------------------
-- Area: Jugner Forest
-- NPC: Cavernous Maw
-- @pos -118 -8 -518 104
-- Teleports Players to Jugner Forest [S]
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/set... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Konschtat_Highlands/npcs/Signpost3.lua | 34 | 1034 | -----------------------------------
-- Area: Konschtat Highlands
-- NPC: Signpost
-- @pos -221 17 139 108
-----------------------------------
package.loaded["scripts/zones/Konschtat_Highlands/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Konschtat_Highlands/TextIDs");
--------... | gpl-3.0 |
dpino/snabb | src/program/lisper/dev-env-docker/l2tp.lua | 28 | 7462 | #!snabb/src/snabb snsh
io.stdout:setvbuf'no'
io.stderr:setvbuf'no'
--L2TP IP-over-IPv6 tunnelling program for testing.
local function assert(v, ...)
if v then return v, ... end
error(tostring((...)), 2)
end
local ffi = require'ffi'
local S = require'syscall'
local C = ffi.C
local htons = require'... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Apollyon/bcnms/NE_Apollyon.lua | 13 | 1058 | -----------------------------------
-- Area: Appolyon
-- Name: NE_Apollyon
-----------------------------------
require("scripts/globals/limbus");
require("scripts/globals/keyitems");
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[NE_Apollyon]Unique... | gpl-3.0 |
StepDevelop/Minetest_Vanilla_Decor | vanilla_decor/init.lua | 2 | 2133 | --[[
Copyright (C) 2016 Stefano <StepDevelop> Peris <stefanop.dev@gmail.com>
vanilla_decor 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 ver... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Port_Bastok/npcs/Silver_Owl.lua | 34 | 1328 | -----------------------------------
-- Area: Port Bastok
-- NPC: Silver Owl
-- Type: Tenshodo Merchant
-- @pos -99.155 4.649 23.292 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
requi... | gpl-3.0 |
rohanp/Algorithm-Implementations | Successive_Over_Relaxation/Lua/Yonaba/sor.lua | 26 | 1264 | -- Successive Over Relaxation algorithm implementation
-- See : http://en.wikipedia.org/wiki/Successive_over-relaxation
-- Creates a vector of values
local function vector(len, v)
local x = {}
for i = 1, len do x[i] = v end
return x
end
-- Computes the norm of a given vector
local function norm(v)
local n = 0... | mit |
mehran-best-team/bot | plugins/plugins.lua | 1 | 6622 | 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 |
scottcs/wyx | wyx/component/CombatComponent.lua | 1 | 2643 | local Class = require 'lib.hump.class'
local ModelComponent = getClass 'wyx.component.ModelComponent'
local Expression = getClass 'wyx.component.Expression'
local property = require 'wyx.component.property'
local message = require 'wyx.component.message'
-- CombatComponent
--
local CombatComponent = Class{name='Comba... | mit |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/BatchNode.lua | 10 | 1026 |
--------------------------------
-- @module BatchNode
-- @extend Node
-- @parent_module ccs
--------------------------------
-- js NA
-- @function [parent=#BatchNode] init
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
--
-- @function [parent=#BatchNode] creat... | mit |
Kthulupwns/darkstar | scripts/zones/Sauromugue_Champaign/npcs/qm2.lua | 11 | 3564 | -----------------------------------
-- Area: Sauromugue Champaign
-- NPC: qm2 (???) (Tower 2)
-- Involved in Quest: THF AF "As Thick As Thieves"
-- @pos 196.830 31.300 206.078 120
-----------------------------------
package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil;
-------------------------------... | gpl-3.0 |
Omar-Real/RealBot | bot/seedbot.lua | 22 | 14096 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()
-- This function is ... | gpl-2.0 |
Kthulupwns/darkstar | scripts/globals/effects/weakness.lua | 19 | 1566 | -----------------------------------
--
-- Weakness
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
--reduce HP and MP by the power amount. Add... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/bunny_ball.lua | 35 | 1739 | -----------------------------------------
-- ID: 4349
-- Item: Bunny Ball
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Health 10
-- Strength 2
-- Vitality 2
-- Intelligence -1
-- Attack % 30
-- Attack Cap 25
-- Ranged ATT % 30
-- Ranged ATT Cap 25
-------------------------... | gpl-3.0 |
ikoryakovskiy/grl | addons/rbdl/cfg/leo_vc/leo_ff_dl_tf.lua | 1 | 19301 | --[[
-- LEO rigid body model
-- Based on leoconfig.xml by Erik Schuitema
--
-- Note:
-- Erik's XML allows child nodes to be connected at
-- a random anchor, instead of just {0, 0, 0}. To move the
-- anchor to {0, 0, 0}, it has to be subtracted from the
-- com and the children's joint_frame.
--
-- Author... | lgpl-3.0 |
virtualrobotix/ardupilot | libraries/AP_Scripting/scripts/sandbox.lua | 1 | 1991 | -- sample sandbox environment
function get_sandbox_env ()
return {
ipairs = ipairs,
next = next,
pairs = pairs,
pcall = pcall,
tonumber = tonumber,
tostring = tostring,
type = type,
unpack = unpack,
io = { close = io.close, flus... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Marquis_Nebiros.lua | 19 | 1259 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Marquis Decarabia
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
fun... | gpl-3.0 |
mlody1039/ModernOts | data/npc/scripts/Ferryman Kamil Meluna.lua | 5 | 1302 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function ... | gpl-3.0 |
ASHRAF97/ASHRAFKASPERV3 | plugins/ar-english.lua | 6 | 1094 | --[[
$ :)
-- - ( #MASCO_ماسكو ) - --
$ :)
-- - ( @IQ_ABS ) - --
$ :)
--Channel-( @DEV_PROX )--
$ :)
]]--
local function run(msg, matches)
if is_momod(msg) then
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)] then
if data[tostring(msg... | gpl-2.0 |
Eyedema/taytay | plugins/boobs.lua | 2 | 1504 | do
function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if not data and attempt < 10 then... | gpl-2.0 |
Kthulupwns/darkstar | scripts/globals/items/plate_of_shrimp_sushi_+1.lua | 35 | 1614 | -----------------------------------------
-- ID: 5692
-- Item: plate_of_shrimp_sushi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Vitality 1
-- Defense 5
-- Accuracy % 12 (unknown, assuming HQ stat)
-- Store TP 2
-- Triple Attack 1 (unknown, assuming same as NQ)
-----------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Eastern_Altepa_Desert/npcs/qm.lua | 11 | 1613 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: ???
-- Involved In Quest: A Craftsman's Work
-- @pos 113 -7.972 -72 114
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/glob... | gpl-3.0 |
AttacqueSuperior/Engine | mods/ra/maps/soviet-03/soviet03.lua | 2 | 14349 | --[[
Copyright 2007-2021 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you 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 vers... | gpl-3.0 |
awhitesong/rspamd | test/lua/unit/trie.lua | 3 | 1403 | -- Trie search tests
context("Trie search functions", function()
local t = require "rspamd_trie"
test("Trie search", function()
local patterns = {
'test',
'est',
'he',
'she',
'str\0ing'
}
local trie = t.create(patterns)
assert_not_nil(trie, "cannot create trie"... | bsd-2-clause |
Sakura-Winkey/packages | net/prosody/files/prosody.cfg.lua | 147 | 7257 | -- Prosody Example Configuration File
--
-- Information on configuring Prosody can be found on our
-- website at http://prosody.im/doc/configure
--
-- Tip: You can check that the syntax of this file is correct
-- when you have finished by running: luac -p prosody.cfg.lua
-- If there are any errors, it will let you know... | gpl-2.0 |
dios-game/dios-cocos-samples | src/lua-earth-warrior-3d/Resources/src/cocos/cocosbuilder/CCBReaderLoad.lua | 79 | 5530 | ccb = ccb or {}
function CCBReaderLoad(strFilePath,proxy,owner)
if nil == proxy then
return nil
end
local ccbReader = proxy:createCCBReader()
local node = ccbReader:load(strFilePath)
local rootName = ""
--owner set in readCCBFromFile is proxy
if nil ~= owner then
--C... | mit |
ningg/Atlas | examples/tutorial-basic.lua | 37 | 1739 | --[[ $%BEGINLICENSE%$
Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
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; version 2 of the
License.
This program is dis... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Grand_Palace_of_HuXzoi/mobs/Eo_ghrah.lua | 11 | 2670 | -----------------------------------
-- Area: Grand Palace of Hu'Xzoi
-- MOB: Eo'ghrah
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- OnMobSpawn Action
-- Set core Skin and mob elemental bonus
-- Set to non aggro.
-----------------------------------
funct... | gpl-3.0 |
kinzhang/cocos2d-js-v3.2 | frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ComController.lua | 10 | 1153 |
--------------------------------
-- @module ComController
-- @extend Component,InputDelegate
-- @parent_module ccs
--------------------------------
--
-- @function [parent=#ComController] create
-- @param self
-- @return ComController#ComController ret (return value: ccs.ComController)
--------------------... | mit |
bttscut/xls-converter | converter/main.lua | 1 | 16255 | local lua_path = os.getenv("LUA_PATH")
if lua_path then
package.path = string.format("%s;%s", package.path, lua_path)
end
local lua_cpath = os.getenv("LUA_CPATH")
if lua_cpath then
package.cpath = string.format("%s;%s", package.cpath, lua_cpath)
end
local DataDump = require "dumper"
local sformat = string.form... | mit |
Kthulupwns/darkstar | scripts/globals/spells/blizzard_v.lua | 6 | 1240 | -----------------------------------------
-- Spell: Blizzard
-- Deals ice damage to an enemy.
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
f... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Southern_San_dOria/npcs/Diary.lua | 17 | 2118 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Diary
-- Involved in Quest: To Cure a Cough
-- @zone 230
-- @pos -75 -12 65
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/glob... | gpl-3.0 |
ark120202/aabs | game/scripts/vscripts/heroes/rewrites/life_stealer_feast_arena.lua | 1 | 1754 | life_stealer_feast_arena = class({
GetIntrinsicModifierName = function() return "modifier_life_stealer_feast_arena" end,
})
LinkLuaModifier("modifier_life_stealer_feast_arena", "heroes/rewrites/life_stealer_feast_arena.lua", LUA_MODIFIER_MOTION_NONE)
modifier_life_stealer_feast_arena = class({
IsHidden = function... | mit |
jlopenwrtluci/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/proto_ahcp.lua | 84 | 2006 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local device, apn, service, pincode, username, password
local ipv6, maxwait, defaultroute, metric, peerdns, dns,
keepalive_failure, keepalive_interval, demand
mca = s:tabop... | apache-2.0 |
dpino/snabb | lib/ljsyscall/syscall/osx/syscalls.lua | 18 | 1899 | -- OSX specific syscalls
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string
local abi = require "syscall.abi"
r... | apache-2.0 |
Mleaf/mleaf_luci | applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/mactodevinfo.lua | 80 | 1260 | --[[
LuCI - Lua Configuration Interface
(c) 2009 Daniel Dickinson
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
$Id$
]]--
m = Map("mactodevinfo", lu... | apache-2.0 |
alioshii/KASBAR | libs/lua-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... | gpl-2.0 |
AttacqueSuperior/Engine | 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 |
Kthulupwns/darkstar | scripts/globals/items/m&p_doner_kabob.lua | 36 | 1132 | -----------------------------------------
-- ID: 5717
-- Item: M&P Doner Kabob
-- Food Effect: 5Min, All Races
-----------------------------------------
-- HP 5%
-- MP 5%
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Windurst_Woods/npcs/HomePoint#1.lua | 12 | 1262 | -----------------------------------
-- Area: Windurst Woods
-- NPC: HomePoint#1
-- @pos -98.588 0.001 -183.416 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Windurst_Woods/TextIDs");
require(... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/items/butter_crepe.lua | 36 | 1239 | -----------------------------------------
-- ID: 5766
-- Item: Butter Crepe
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- HP +10
-- Magic Accuracy +2
-- Magic Defense +1
-----------------------------------------
require("scripts/globals/status");
--------------------------------------... | gpl-3.0 |
dpino/snabb | lib/pflua/src/pf/parse.lua | 10 | 41244 | module(...,package.seeall)
allow_address_of = true
local utils = require('pf.utils')
local constants = require('pf.constants')
local ipv4_to_int, ipv6_as_4x32 = utils.ipv4_to_int, utils.ipv6_as_4x32
local uint32 = utils.uint32
local filter_args = utils.filter_args
local function skip_whitespace(str, pos)
while p... | apache-2.0 |
Kthulupwns/darkstar | scripts/globals/items/serving_of_salmon_roe.lua | 35 | 1341 | -----------------------------------------
-- ID: 5218
-- Item: serving_of_salmon_roe
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 8
-- Magic 8
-- Dexterity 2
-- Mind -1
-----------------------------------------
require("scripts/globals/status");
-------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Gusgen_Mines/npcs/qm3.lua | 17 | 1643 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: qm3 (???)
-- Involved In Quest: Healing the Land
-- @pos -168 1 311 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
r... | gpl-3.0 |
dpino/snabb | lib/ljsyscall/syscall/linux/x64/ffi.lua | 25 | 1356 | -- x64 specific definitions
return {
epoll = [[
struct epoll_event {
uint32_t events;
epoll_data_t data;
} __attribute__ ((packed));
]],
ucontext = [[
typedef long long greg_t, gregset_t[23];
typedef struct _fpstate {
unsigned short cwd, swd, ftw, fop;
unsigned long long rip, rdp;
unsigned mxcsr, mxcr_m... | apache-2.0 |
dpino/snabb | src/program/alarms/compress/compress.lua | 7 | 1432 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(..., package.seeall)
local common = require("program.config.common")
function show_usage(command, status, err_msg)
if err_msg then print('error: '..err_msg) end
print(require("program.alarms.compress.README_inc"))
main.exit... | apache-2.0 |
ark120202/aabs | game/scripts/vscripts/modules/hero_selection/hero_selection.lua | 1 | 9387 | CUSTOM_STARTING_GOLD = 625
CUSTOM_GOLD_FOR_RANDOM_TOTAL = 800
ADS_CLICKED_BONUS_GOLD = 35
CUSTOM_GOLD_REPICK_COST = 200
MAX_SPAWNBOXES_SELECTED = 3
HERO_SELECTION_PICK_TIME = 70
HERO_SELECTION_STRATEGY_TIME = 20
HERO_SELECTION_BANNING_TIME = 40
HERO_SELECTION_PHASE_NOT_STARTED = 0
HERO_SELECTION_PHASE_BANNING = 1
HE... | mit |
Kthulupwns/darkstar | scripts/globals/items/dried_berry.lua | 35 | 1210 | -----------------------------------------
-- ID: 5672
-- Item: dried_berry
-- Food Effect: 3Min, All Races
-----------------------------------------
-- Agility -3
-- Intelligence 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnI... | gpl-3.0 |
GabrielNicolasAvellaneda/luvit-upstream | bench/http-cluster/app.lua | 14 | 1034 | --[[
Copyright 2014 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 or agr... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Spire_of_Dem/npcs/_0j3.lua | 36 | 1313 | -----------------------------------
-- Area: Spire_of_Dem
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Dem/TextIDs");
---------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Spire_of_Dem/npcs/_0j2.lua | 36 | 1313 | -----------------------------------
-- Area: Spire_of_Dem
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Dem/TextIDs");
---------------... | gpl-3.0 |
aa65535/luci | protocols/luci-proto-ipip/luasrc/model/cbi/admin_network/proto_ipip.lua | 18 | 1684 | -- Copyright 2016 Roger Pueyo Centelles <roger.pueyo@guifi.net>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local peeraddr, ipaddr, ttl, tos, df, mtu, tunlink
peeraddr = section:taboption("general", Value, "peeraddr", translate("Remote IPv4 address or FQDN"), translate("The ... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Throne_Room/npcs/_4l3.lua | 36 | 1164 | -----------------------------------
-- Area: Throne Room
-- NPC: Ore Door
-------------------------------------
require("scripts/globals/bcnm");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
if(TradeBCNM(player,player:get... | gpl-3.0 |
kuoruan/luci | applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_edit.lua | 7 | 6487 | -- Copyright 2017-2018 Dirk Brenken (dev@brenken.org)
-- This is free software, licensed under the Apache License, Version 2.0
local fs = require("nixio.fs")
local uci = require("luci.model.uci").cursor()
local http = require("luci.http")
m = SimpleForm("edit", translate("Edit Wireless Uplink Configuration"))
m.su... | apache-2.0 |
Kthulupwns/darkstar | scripts/globals/items/bunch_of_pamamas.lua | 36 | 2212 | -----------------------------------------
-- ID: 4468
-- Item: Bunch of Pamamas
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength -3
-- Intelligence 1
-- Additional Effect with Opo-Opo Crown
-- HP 50
-- MP 50
-- CHR 14
-- Additional Effect with Kinkobo or
-- Primate Staff
-- DELAY ... | gpl-3.0 |
telbbs/luci-0.12 | contrib/luadoc/lua/luadoc/init.lua | 172 | 1333 | -------------------------------------------------------------------------------
-- LuaDoc main function.
-- @release $Id: init.lua,v 1.4 2008/02/17 06:42:51 jasonsantos Exp $
-------------------------------------------------------------------------------
local require = require
local util = require "luadoc.util"
log... | apache-2.0 |
AttacqueSuperior/Engine | mods/cnc/scripts/campaign.lua | 2 | 4222 | --[[
Copyright 2007-2021 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you 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 vers... | gpl-3.0 |
dios-game/dios-cocos-samples | src/lua-coin-tree/Resources/src/app/models/user.lua | 4 | 1631 |
require "app.models.module_reward_history"
require "app.models.module_daily_sign_in"
require "app.models.module_bag"
require "app.models.module_request"
require "app.models.module_tree_manager"
game.CUser = class("game.CUser")
local CUser = game.CUser
function CUser:ctor()
self.module_reward_history = game.CModu... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.