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 |
|---|---|---|---|---|---|
AresTao/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Machionage.lua | 17 | 1586 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Machionage
-- @zone 80
-- @pos -255 -3 109
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
require("scripts/globals/quests... | gpl-3.0 |
gsage/engine | resources/bundles/behaviors/trees/dumbMonster.lua | 1 | 2262 |
require 'actions'
local function moveRandomly(self, context)
self.navigation:go(
self.render.position.x + math.random(30) - 15,
0,
self.render.position.z + math.random(30) - 15
)
end
local function findEnemy(self, context, distance)
local objects = self:getObjectsAround(distance, RenderComponent.DY... | mit |
DaTaK-BoT/DaTaK | plugins/all.lua | 184 | 4452 | do
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_name(user)..' ['..user_id..']'
return u... | gpl-2.0 |
patawic/Jc2mp-Derby | server/DerbyManager.lua | 1 | 2501 | class "DerbyManager"
function DerbyManager:__init()
Chat:Broadcast( "JC2-MP-Derby 0.1 loaded.", Color(0, 255, 255))
self.count = 0
self.players = {}
self.playerIds = {}
self.events = {}
self.largeActive = false
self:CreateDerbyEvent()
Events:Subscribe("PlayerChat", self, self.ChatMessage)
end
function Derby... | mit |
small-Wood/FlappyBird | runtime/linux/Resources/src/AtlasLoader.lua | 3 | 1593 | --AtlasLoader
AtlasLoader = class("AtlasLoader")
AtlasLoader.__index = AtlasLoader
AtlasLoader._sharedAtlasLoader = nil
function AtlasLoader:ctor()
end
function AtlasLoader:getInstance()
if AtlasLoader._sharedAtlasLoader == nil then
AtlasLoader._sharedAtlasLoader = AtlasLoader.new()
AtlasLoader._sharedAtlasL... | gpl-2.0 |
AresTao/darkstar | scripts/globals/abilities/light_shot.lua | 12 | 2775 | -----------------------------------
-- Ability: Light Shot
-- Consumes a Light Card to enhance light-based debuffs. Additional effect: Light-based Sleep
-- Dia Effect: Defense Down Effect +5% and DoT + 1
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
... | gpl-3.0 |
euromasochismo/facciamocome-mobile-corona | scenes/options.lua | 1 | 5472 | -----------------------------------------------------------------------------------------
--
-- options.lua
--
-----------------------------------------------------------------------------------------
local globals = require( "scripts.globals" )
local widget = require "widget"
local composer = require( "composer" )
... | apache-2.0 |
AresTao/darkstar | scripts/zones/Lower_Jeuno/npcs/Chetak.lua | 37 | 1430 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Chetak
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
-----------------------------------
... | gpl-3.0 |
DeinFreund/Zero-K | LuaRules/Gadgets/start_boxes.lua | 1 | 14732 | if not gadgetHandler:IsSyncedCode() or VFS.FileExists("mission.lua") then return end
function gadget:GetInfo() return {
name = "Startbox handler",
desc = "Handles startboxes",
author = "Sprung",
date = "2015-05-19",
license = "PD",
layer = -math.huge + 10,
enabled = true,
} end
local gaiaAll... | gpl-2.0 |
AresTao/darkstar | scripts/zones/Pashhow_Marshlands_[S]/Zone.lua | 28 | 1346 | -----------------------------------
--
-- Zone: Pashhow_Marshlands_[S] (90)
--
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Pashhow_Marshlands_[S]/TextID... | gpl-3.0 |
DeinFreund/Zero-K | LuaUI/Widgets/gui_chili_proconsole_test.lua | 1 | 47055 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Chili Pro Console",
desc = "v0.016 Chili Chat Pro Console.",
author = "CarRepairer",
... | gpl-2.0 |
AresTao/darkstar | scripts/globals/weaponskills/vorpal_thrust.lua | 30 | 1397 | -----------------------------------
-- Vorpal Thrust
-- Polearm weapon skill
-- Skill Level: 175
-- Delivers a single-hit attack. Chance of params.critical varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Aqua Gorget & Light Gorget.
-- Aligned with the Aqua Belt & Light Belt.
-- Element: Non... | gpl-3.0 |
erfan1292/sezar | libs/serpent.lua | 656 | 7877 | local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
local badtype = {thread = true, userdata = true, cdata = true}
lo... | gpl-2.0 |
AresTao/darkstar | scripts/zones/Qulun_Dome/npcs/Magicite.lua | 19 | 1569 | -----------------------------------
-- Area: Qulun Dome
-- NPC: Magicite
-- Involved in Mission: Magicite
-- @pos 11 25 -81 148
-----------------------------------
package.loaded["scripts/zones/Qulun_Dome/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/... | gpl-3.0 |
DeinFreund/Zero-K | LuaRules/Gadgets/unit_oneclick_weapon.lua | 1 | 6259 | ------------------------------------------------------------------------------
-- HOW IT WORKS:
-- Just calls a function in the unit script (to emit-sfx the weapon etc.)
-- and sets reload time for one of the unit's weapons
--------------------------------------------------------------------------------
function gadge... | gpl-2.0 |
AresTao/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 |
AresTao/darkstar | scripts/zones/Palborough_Mines/npcs/_3z7.lua | 58 | 1142 | -----------------------------------
-- Elevator in Palborough
-- Notes: Used to operate Elevator @3z0
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/settings");
re... | gpl-3.0 |
Guard13007/LightWorld-Editor | src/lib/light_world/postshader.lua | 2 | 5619 | --[[
The MIT License (MIT)
Copyright (c) 2014 Marcus Ihde
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 |
NeoRaider/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk/phone_sip.lua | 68 | 3603 | -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local ast = require("luci.asterisk")
local function find_outgoing_contexts(uci)
local c = { }
local h = { }
uci:foreach("asterisk", "dialplan",
function(s)
if not h[s['.name']] then
c[#c+1] = { s['... | apache-2.0 |
AresTao/darkstar | scripts/zones/Southern_San_dOria/npcs/Kueh_Igunahmori.lua | 34 | 1274 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Kueh Igunahmori
-- Guild Merchant NPC: Leathercrafting Guild
-- @pos -194.791 -8.800 13.130 230
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
re... | gpl-3.0 |
resetnow/premake-core | modules/self-test/test_runner.lua | 6 | 4715 | ---
-- self-test/test_runner.lua
--
-- Execute unit tests and test suites.
--
-- Author Jason Perkins
-- Copyright (c) 2008-2016 Jason Perkins and the Premake project.
---
local p = premake
local m = p.modules.self_test
local _ = {}
function m.runTest(test)
local scopedTestCall
if test.testFunction then
... | bsd-3-clause |
AresTao/darkstar | scripts/globals/items/loaf_of_homemade_bread.lua | 35 | 1131 | -----------------------------------------
-- ID: 5228
-- Item: loaf_of_homemade_bread
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Agility 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck... | gpl-3.0 |
AresTao/darkstar | scripts/zones/PsoXja/npcs/_091.lua | 17 | 1614 | -----------------------------------
-- Area: Pso'Xja
-- NPC: _091 (Stone Gate)
-- Notes: Spawns Gargoyle when triggered
-- @pos -330.000 14.074 -261.600 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Pso... | gpl-3.0 |
AresTao/darkstar | scripts/globals/weaponskills/refulgent_arrow.lua | 30 | 1408 | -----------------------------------
-- Refulgent Arrow
-- Archery weapon skill
-- Skill level: 290
-- Delivers a twofold attack. Damage varies with TP.
-- Aligned with the Aqua Gorget & Light Gorget.
-- Aligned with the Aqua Belt & Light Belt.
-- Element: None
-- Modifiers: STR: 60% http://www.bg-wiki.com/bg/Re... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Pashhow_Marshlands_[S]/npcs/Cavernous_Maw.lua | 29 | 1489 | -----------------------------------
-- Area: Sauromugue Champaign
-- NPC: Cavernous Maw
-- @pos 418 25 27 90
-- Teleports Players to Pashhow_Marshlands
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands_[S]/TextIDs"] = nil;
-----------------------------------
require("script... | gpl-3.0 |
DIVIY/TG-Bot | plugins/delete.lua | 1 | 1637 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY HUSSAIN SATAR ▀▄ ▄▀
▀▄ ▄▀ BY HUSSAIN SATAR ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY HUSSAIN SATAR ▀▄ ▄▀
▀▄ ▄▀ delete : حذف الرسائل ▀▄ ▄▀
▀▄▀▀▄▄▀▀▄... | gpl-2.0 |
hiddenvirus/hiddenblaster | plugins/rss.lua | 700 | 5434 | local function get_base_redis(id, option, extra)
local ex = ''
if option ~= nil then
ex = ex .. ':' .. option
if extra ~= nil then
ex = ex .. ':' .. extra
end
end
return 'rss:' .. id .. ex
end
local function prot_url(url)
local url, h = string.gsub(url, "http://", "")
local... | gpl-2.0 |
AresTao/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 |
xpol/lua-rapidjson | performance/run.lua | 2 | 1713 |
local function time(f, times)
collectgarbage()
local gettime = os.clock
local ok, socket = pcall(require, 'socket')
if ok then
gettime = socket.gettime
end
local start = gettime()
for _=0,times do f() end
local stop = gettime()
return stop - start
end
local function readfile(file)
local f = io.op... | mit |
Jmainguy/docker_images | prosody/prosody/lib/prosody/core/s2smanager.lua | 3 | 3210 | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local hosts = prosody.hosts;
local tostring, pairs, setmetatable
= tostring, pairs, setmetatable;
... | gpl-2.0 |
DeinFreund/Zero-K | LuaUI/Widgets/unit_blobshadow.lua | 5 | 7154 | -- $Id: unit_blobshadow.lua 3171 2008-11-06 09:06:29Z det $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- author: jK
--
-- Copyright (C) 2007,2009.
-- Licensed under the terms of the GNU GPL, v2... | gpl-2.0 |
bbalu/kong | kong/plugins/response_transformer/header_filter.lua | 18 | 1441 | local utils = require "kong.tools.utils"
local stringy = require "stringy"
local _M = {}
local APPLICATION_JSON = "application/json"
local CONTENT_TYPE = "content-type"
local CONTENT_LENGTH = "content-length"
local function get_content_type()
local header_value = ngx.header[CONTENT_TYPE]
if header_value then
... | mit |
matthewbauer/wesnoth | data/lua/wml/objectives.lua | 22 | 6719 | local helper = wesnoth.require "lua/helper.lua"
local wml_actions = wesnoth.wml_actions
local game_events = wesnoth.game_events
local function color_prefix(r, g, b)
return string.format('<span foreground="#%02x%02x%02x">', r, g, b)
end
local function insert_before_nl(s, t)
return string.gsub(tostring(s), "[^\n]*", ... | gpl-2.0 |
AresTao/darkstar | scripts/zones/Upper_Jeuno/npcs/Coumuna.lua | 37 | 1325 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Coumuna
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
require("scripts/zones/Upper_Jeuno/TextIDs");
-----------------------------------
... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Meriphataud_Mountains_[S]/npcs/Cavernous_Maw.lua | 29 | 1505 | -----------------------------------
-- Area: Meriphataud Mountains [S]
-- NPC: Cavernous Maw
-- @pos 597 -32 279 97
-- Teleports Players to Meriphataud Mountains
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains_[S]/TextIDs"] = nil;
-----------------------------------
re... | gpl-3.0 |
DeinFreund/Zero-K | units/chicken_listener.lua | 6 | 1829 | unitDef = {
unitname = [[chicken_listener]],
name = [[Listener]],
description = [[Burrowing Mobile Seismic Detector]],
acceleration = 0.16,
activateWhenBuilt = true,
brakeRate = 0.205,
buildCostEnergy = 0,
buildCostMetal = 0,
builder ... | gpl-2.0 |
openium/overthebox-feeds | 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... | gpl-3.0 |
AdiAddons/AdiButtonAuras | config/Config.lua | 1 | 3345 | --[[
AdiButtonAuras - Display auras on action buttons.
Copyright 2013-2022 Adirelle (adirelle@gmail.com)
All rights reserved.
This file is part of AdiButtonAuras.
AdiButtonAuras 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 Softwa... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Mhaura/npcs/Koh_Lenbalalako.lua | 19 | 2176 | -----------------------------------
-- Area: Mhaura
-- NPC: Koh Lenbalalako
-- Type: Standard NPC
-- @pos -64.412 -17 29.213 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mhaura/TextIDs");
require("scripts/g... | gpl-3.0 |
erfan1292/sezar | plugins/admin.lua | 3 | 10618 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(rec... | gpl-2.0 |
tysonliddell/OpenRA | 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 |
AresTao/darkstar | scripts/zones/Northern_San_dOria/npcs/Prerivon.lua | 38 | 1025 | -----------------------------------
-- 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 |
AresTao/darkstar | scripts/zones/Kazham/npcs/Vanono.lua | 19 | 1423 | -----------------------------------
-- Area: Kazham
-- NPC: Vanono
-- Type: Standard NPC
-- @zone: 250
-- @pos -23.140 -5 -23.101
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
-------------------------------... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Windurst_Woods/npcs/Ominous_Cloud.lua | 19 | 5257 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Ominous Cloud
-- Type: Traveling Merchant NPC
-- @zone: 241
-- @pos -20.632 -3.939 -40.554
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = ... | gpl-3.0 |
DeinFreund/Zero-K | effects/trail_explosions.lua | 25 | 1063 | -- trail_huge0
return {
["trail_huge0"] = {
fireball1 = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
underwater = 1,
useairlos = true,
water = true,
pro... | gpl-2.0 |
AresTao/darkstar | scripts/zones/Halvung/npcs/qm1.lua | 17 | 1200 | -----------------------------------
-- Area: Halvung
-- NPC: ??? (Spawn Big Bomb)
-- @pos -233.830 13.613 286.714 62
-----------------------------------
package.loaded["scripts/zones/Halvung/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Halvung/TextIDs");
-------------------------------... | gpl-3.0 |
ld-test/prosody | fallbacks/bit.lua | 3 | 10114 | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local type = type;
local tonumber = tonumber;
local setmetatable = setmetatable;
local error = error;
loc... | mit |
Blu3wolf/HARDmod | prototypes/concrete.lua | 1 | 7674 | data.raw["recipe"]["tf-crushed-stone"].category = "crushing"
data.raw["recipe"]["tf-crushed-stone"].energy_required = 10
data.raw["recipe"]["tf-crushed-stone"].subgroup = "raw-ores"
data.raw["recipe"]["tf-crushed-stone"].result_count = 1
data:extend({
--------------- STONE PROCESSING ---------------
-- CRUSHED... | gpl-2.0 |
AresTao/darkstar | scripts/zones/Northern_San_dOria/npcs/Tavourine.lua | 36 | 1864 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Tavourine
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/sh... | gpl-3.0 |
AresTao/darkstar | scripts/globals/weaponskills/blade_chi.lua | 30 | 1380 | -----------------------------------
-- Blade Chi
-- Katana weapon skill
-- Skill Level: 150
-- Delivers a two-hit earth elemental attack. Damage varies with TP.
-- Aligned with the Thunder Gorget & Light Gorget.
-- Aligned with the Thunder Belt & Light Belt.
-- Element: Earth
-- Modifiers: STR:30% ; INT:30%
--... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Metalworks/npcs/Iron_Eater.lua | 16 | 3890 | -----------------------------------
-- Area: Metalworks
-- NPC: Iron Eater
-- Involved in Missions
-- @pos 92.936 -19.532 1.814 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("... | gpl-3.0 |
letoram/arcan-legacy | resources/scripts/layout_editor.lua | 1 | 33354 | --
-- (mostly) generalized version of the layout editor
-- reused in streaming and in remote control scripts
--
-- uses; colourtable, listview support scripts
-- also requires the global symbols settings, soundmap, dispatch_push and dispatch_pop
--
-- suggestions for future changes;
--
-- (*) better mouse support (cur... | unlicense |
DeinFreund/Zero-K | LuaUI/Widgets/unit_resurrect_congregate.lua | 1 | 5562 | local versionNumber = "v0.92 "
function widget:GetInfo()
return {
name = "Resurrect Congregate",
desc = versionNumber .. "Automatically send resurrected unit to nearby blob of allied units. (1 Blob = 5 ground units within 300 elmo radius, Congregating range: 3000 elmo)",
author = "msafwan",
... | gpl-2.0 |
BlockMen/hud_hunger | hunger/init.lua | 5 | 1906 | hunger = {}
hunger.players = {}
hunger.food = {}
HUNGER_TICK = 800 -- time in seconds after that 1 hunger point is taken
HUNGER_HEALTH_TICK = 4 -- time in seconds after player gets healed/damaged
HUNGER_MOVE_TICK = 0.5 -- time in seconds after the movement is checked
HUNGER_EXHAUST_DIG = 3 -- exhaustion increase... | lgpl-2.1 |
AresTao/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 |
AresTao/darkstar | scripts/zones/The_Celestial_Nexus/mobs/Orbital.lua | 18 | 2131 | -----------------------------------
-- Area: The Celestial Nexus
-- NPC: Orbital
-- Zilart Mission 16 BCNM Fight
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/magic");
function onMobInitialize(mob)
mob:addMod(MOD_REGAIN, 50);
end... | gpl-3.0 |
AresTao/darkstar | scripts/globals/items/sazanbaligi.lua | 18 | 1260 | -----------------------------------------
-- ID: 5459
-- Item: Sazanbaligi
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 4
-- Mind -6
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-------... | gpl-3.0 |
DeinFreund/Zero-K | LuaUI/Widgets/snd_music.lua | 5 | 11974 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: gui_music.lua
-- brief: yay music
-- author: cake
--
-- Copyright (C) 2007.
-- Licensed under the terms of the GNU GPL, v2 or later.
--
---------... | gpl-2.0 |
kobrateam/kobra | plugins/banhammer.lua | 1 | 21628 | local function pre_process(msg)
chat = msg.chat_id_
user = msg.sender_user_id_
local function check_newmember(arg, data)
test = load_data(_config.moderation.data)
lock_bots = test[arg.chat_id]['settings']['lock_bots']
if data.type_.ID == "UserTypeBot" then
if not is_owner(arg.msg) and lock_bots == 'yes' ... | gpl-3.0 |
TeleDALAD/cd | plugins/admin.lua | 230 | 6382 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(rec... | gpl-2.0 |
DeinFreund/Zero-K | LuaUI/Widgets/chili/Controls/button.lua | 17 | 1147 | --//=============================================================================
Button = Control:Inherit{
classname= "button",
caption = 'button',
defaultWidth = 70,
defaultHeight = 20,
}
local this = Button
local inherited = this.inherited
--//============================================================... | gpl-2.0 |
yinjun322/skynet | lualib/snax/gateserver.lua | 16 | 3031 | local skynet = require "skynet"
local netpack = require "netpack"
local socketdriver = require "socketdriver"
local gateserver = {}
local socket -- listen socket
local queue -- message queue
local maxclient -- max client
local client_number = 0
local CMD = setmetatable({}, { __gc = function() netpack.clear(queue) en... | mit |
mikymod/crown | 3rdparty/bimg/scripts/genie.lua | 22 | 1520 | --
-- Copyright 2010-2021 Branimir Karadzic. All rights reserved.
-- License: https://github.com/bkaradzic/bimg#license-bsd-2-clause
--
newoption {
trigger = "with-amalgamated",
description = "Enable amalgamated build.",
}
newoption {
trigger = "with-shared-lib",
description = "Enable building shared library.",
}... | mit |
DeinFreund/Zero-K | LuaUI/Widgets/chili/simple examples/Widgets/gui_chiligui.lua | 18 | 2737 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "chiliGUI",
desc = "hot GUI Framework",
author = "jK & quantum",
date = "WIP",
... | gpl-2.0 |
AresTao/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Sulbahn.lua | 24 | 2069 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Sulbahn
-- Type: Alchemy Adv. Image Support
-- @pos -10.470 -6.25 -141.700 241
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
czipperz/dotfiles | rc.lua | 1 | 18896 | -- Standard awesome library
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
-- Theme handling library
local beautiful = require("beautiful")
-- Notification library
local naughty = r... | mpl-2.0 |
AresTao/darkstar | scripts/zones/Buburimu_Peninsula/npcs/Hieroglyphics.lua | 17 | 2420 | -----------------------------------
-- Area: Buburimu_Peninsula
-- NPC: Hieroglyphics
-- Dynamis Buburimu_Dunes Enter
-- @pos 117 -10 133 172 118
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Valley_of_Sorrows/npcs/qm2.lua | 16 | 1499 | -----------------------------------
-- Area: Valley of Sorrows
-- NPC: qm2 (???)
-- Note: Used to rank 9.1 San d'oria
-- @pos 91 -3 -16 128
-----------------------------------
package.loaded["scripts/zones/Valley_of_Sorrows/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Valley_of... | gpl-3.0 |
mehulsbhatt/ntopng | scripts/lua/host_top_peers_protocols.lua | 10 | 2411 | --
-- (C) 2014-15-15 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
sendHTTPHeader('application/json')
interface.select(ifname)
host_info = url2hostinfo(_GET)
flows = interface.getFlowPeers(host_info["host"],host_info["vlan... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Norg/npcs/HomePoint#1.lua | 17 | 1232 | -----------------------------------
-- Area: Norg
-- NPC: HomePoint#1
-- @pos -26.910 0.296 -47.164 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Norg/TextIDs");
require("scripts/globals/homepoint");
... | gpl-3.0 |
bbalu/kong | spec/plugins/mashape-analytics/fixtures/requests.lua | 5 | 2846 | local EMPTY_ARRAY_PLACEHOLDER = "__empty_array_placeholder__"
return {
["GET"] = {
["NGX_STUB"] = {
req = {
start_time = function() return 1432844571.623 end,
get_method = function() return "GET" end,
http_version = function() return 1.1 end,
get_headers = function() return ... | mit |
AresTao/darkstar | scripts/zones/Lower_Jeuno/npcs/Yoskolo.lua | 37 | 1688 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Yoskolo
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
-----------------------------------
... | gpl-3.0 |
AresTao/darkstar | scripts/globals/weaponskills/death_blossom.lua | 18 | 5447 | -----------------------------------
-- Death Blossom
-- Sword weapon skill (RDM main only)
-- Description: Delivers a threefold attack that lowers target's magic evasion. Chance of lowering target's magic evasion varies with TP. Murgleis: Aftermath effect varies with TP.
-- Lowers magic evasion by up to 10.
-- Eff... | gpl-3.0 |
AresTao/darkstar | scripts/globals/items/slice_of_lynx_meat.lua | 18 | 1293 | -----------------------------------------
-- ID: 5667
-- Item: Slice of Lynx Meat
-- Food Effect: 5 Min, Galka only
-----------------------------------------
-- Strength 5
-- Intelligence -7
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIte... | gpl-3.0 |
AresTao/darkstar | scripts/globals/weaponskills/tachi_yukikaze.lua | 30 | 1722 | -----------------------------------
-- Tachi Yukikaze
-- Great Katana weapon skill
-- Skill Level: 200 (Samurai only.)
-- Blinds target. Damage varies with TP.
-- Blind effect duration is 60 seconds when unresisted.
-- Will stack with Sneak Attack.
-- Tachi: Yukikaze appears to have an attack bonus of 50%. http:... | gpl-3.0 |
patrikrm13/AVENGERS_ANTISPAMEER | plugins/stats.lua | 56 | 3988 | do
-- Returns a table with `name` and `msgs`
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_prin... | gpl-2.0 |
NeoRaider/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-pbx.lua | 68 | 1923 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
cbimap = Map("asterisk", "asterisk", "")
module = cbimap:section(TypedSection, "module", "Modules", "")
module.anonymous = true
pbx_ael = module:option(ListV... | apache-2.0 |
DeinFreund/Zero-K | LuaUI/Widgets/unit_stockpile.lua | 7 | 2404 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: unit_stockpile.lua
-- brief: adds 100 builds to all new units that can stockpile
-- author: Dave Rodgers
--
-- Copyright (C) 2007.
-- L... | gpl-2.0 |
mirbitbit/teleseed | plugins/owners.lua | 284 | 12473 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
openium/overthebox-feeds | luci-base/luasrc/model/cbi/admin_network/proto_static.lua | 4 | 2783 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2015 OVH <OverTheBox@ovh.net>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local ifc = net:get_interface()
local ipaddr, netmask, gateway, broadcast, dns, accept_ra, send_rs, ip6addr, ip6gw
local mtu, metric
ip... | gpl-3.0 |
Milkyway-at-home/milkywayathome_client | nbody/tests/persistence.lua | 19 | 5650 | -- Internal persistence library
--[[ Provides ]]
-- persistence.store(path, ...): Stores arbitrary items to the file at the given path
-- persistence.load(path): Loads files that were previously stored with store and returns them
--[[ Limitations ]]
-- Does not export userdata, threads or most function values
-- Func... | gpl-3.0 |
qwook/spacesloth | assets/maps/mapw.lua | 2 | 63976 | return {
version = "1.1",
luaversion = "5.1",
orientation = "orthogonal",
width = 100,
height = 100,
tilewidth = 32,
tileheight = 32,
properties = {},
tilesets = {
{
name = "tilemap2",
firstgid = 1,
tilewidth = 32,
tileheight = 32,
spacing = 0,
margin = 0,
... | mit |
DeinFreund/Zero-K | LuaRules/Gadgets/unit_control_gunship_stafe_range.lua | 13 | 1439 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
AresTao/darkstar | scripts/zones/PsoXja/npcs/_i9y.lua | 17 | 1310 | -----------------------------------
-- Area: Pso'Xja
-- NPC: _i9y (Crystal Receptor)
-- @pos -389.980 -3.198 -203.595 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/PsoXja/TextIDs");
--------------------... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Maze_of_Shakhrami/npcs/_5i0.lua | 17 | 1738 | -----------------------------------
-- Area: Maze of Shakhrami
-- Quest: Corsair Af1 "Equiped for All Occasions"
-- NPC: Iron Door (Spawn Lost Soul)
-- @pos 247.735 18.499 -142.267 198
-----------------------------------
package.loaded["scripts/zones/Maze_of_Shakhrami/TextIDs"] = nil;
---------------------------... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Windurst_Woods/npcs/Manyny.lua | 36 | 1453 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Manyny
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
require("scripts/zones/Windurst_Woods/Tex... | gpl-3.0 |
NeoRaider/luci | libs/luci-lib-nixio/axTLS/www/lua/download.lua | 180 | 1550 | #!/usr/local/bin/lua
require"luasocket"
function receive (connection)
connection:settimeout(0)
local s, status = connection:receive (2^10)
if status == "timeout" then
coroutine.yield (connection)
end
return s, status
end
function download (host, file, outfile)
--local f = assert (io.open (outfile, "w"))
loc... | apache-2.0 |
u20024804/fbcunn | examples/imagenet/donkey.lua | 8 | 7108 | --
-- Copyright (c) 2014, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
local gm = asser... | bsd-3-clause |
AresTao/darkstar | scripts/zones/Inner_Horutoto_Ruins/npcs/_5c8.lua | 17 | 2168 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Sealed Portal
-- Involved in Quest: Making the Grade
-- Working 50%
-- Notes: Door will open if player has Making the Grade quest active, or if the have the KI portal charm. Door should open when 3 mages stand on circles, but no API for t... | gpl-3.0 |
AresTao/darkstar | scripts/globals/spells/bluemagic/zephyr_mantle.lua | 18 | 1329 | -----------------------------------------
-- Spell: Zephyr Mantle
-- Creates shadow images that each absorb a single attack directed at you
-- Spell cost: 31 MP
-- Monster Type: Dragons
-- Spell Type: Magical (Wind)
-- Blue Magic Points: 2
-- Stat Bonus: AGI+2
-- Level: 65
-- Casting Time: 7 seconds
-- Recast... | gpl-3.0 |
AresTao/darkstar | scripts/globals/spells/bluemagic/feather_tickle.lua | 18 | 1194 | -----------------------------------------
-- Spell: Feather Tickle
-- Reduces an enemy's TP
-- Spell cost: 48 MP
-- Monster Type: Birds
-- Spell Type: Magical (Wind)
-- Blue Magic Points: 3
-- Stat Bonus: AGI+1
-- Level: 64
-- Casting Time: 4 seconds
-- Recast Time: 26 seconds
-- Magic Bursts on: Detonation,... | gpl-3.0 |
AresTao/darkstar | scripts/globals/abilities/pets/thunderstorm.lua | 25 | 1305 | ---------------------------------------------------
-- Geocrush
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/globals/magic");
--------------------------------------------... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Northern_San_dOria/npcs/Chaupire.lua | 17 | 1260 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Chaupire
-- Guild Merchant NPC: Woodworking Guild
-- @pos -174.476 3.999 281.854 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Northern_San_dOria/npcs/Pulloie.lua | 36 | 1055 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Pulloie
-- Quest NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs");
-----------------------------------
-- onTrade Action
----... | gpl-3.0 |
NeoRaider/luci | protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_l2tp.lua | 20 | 1783 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local server, username, password
local ipv6, defaultroute, metric, peerdns, dns, mtu
server = section:taboption("general", Value, "server", translate("L2TP Server"))
server.datat... | apache-2.0 |
NeoRaider/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-app.lua | 137 | 15546 | cbimap = Map("asterisk", "asterisk", "")
module = cbimap:section(TypedSection, "module", "Modules", "")
module.anonymous = true
app_alarmreceiver = module:option(ListValue, "app_alarmreceiver", "Alarm Receiver Application", "")
app_alarmreceiver:value("yes", "Load")
app_alarmreceiver:value("no", "Do Not Load")
app_al... | apache-2.0 |
AresTao/darkstar | scripts/globals/items/plate_of_coeurl_sautee.lua | 35 | 1762 | -----------------------------------------
-- ID: 4548
-- Item: plate_of_coeurl_sautee
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Strength 5
-- Agility 1
-- Intelligence -2
-- Attack % 20
-- Attack Cap 75
-- Ranged ATT % 20
-- Ranged ATT Cap 75
-- Stun Resist 5
----------... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Shajaf.lua | 34 | 1031 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Shajaf
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
-----------... | gpl-3.0 |
AresTao/darkstar | scripts/globals/mobskills/Binary_Tap.lua | 13 | 1709 | ---------------------------------------------------
-- Binary Tap
-- Attempts to absorb two buffs from a single target, or otherwise steals HP.
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores Shadows
-- Range: Melee
-- Notes: Can be any (positive) buff, including food. Will drain about 100HP if it can't take any buf... | gpl-3.0 |
alijoooon/GoOoZ | plugins/bot_manager.lua | 89 | 6427 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(receiver, '... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.