repo_name stringlengths 6 69 | path stringlengths 6 178 | copies stringclasses 278
values | size stringlengths 4 7 | content stringlengths 671 917k | license stringclasses 15
values |
|---|---|---|---|---|---|
xdemolish/darkstar | scripts/zones/Spire_of_Holla/npcs/_0h1.lua | 3 | 1325 | -----------------------------------
-- Area: Spire_of_Holla
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Holla/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Holla/TextIDs");
---------... | gpl-3.0 |
blockplanet/blockplanet | builtin/mainmenu/modmgr.lua | 2 | 12886 | --Minetest
--Copyright (C) 2013 sapier
--
--This program is free software; you can redistribute it and/or modify
--it under the terms of the GNU Lesser General Public License as published by
--the Free Software Foundation; either version 2.1 of the License, or
--(at your option) any later version.
--
--This program is ... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/weaponskills/heavy_swing.lua | 1 | 1238 | -----------------------------------
-- Heavy Swing
-- Staff weapon skill
-- Skill Level: 5
-- Deacription:Delivers a single-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Thunder Gorget.
-- Aligned with the Thunder Belt.
-- Element: None
-- Modifiers: STR:30%
... | gpl-3.0 |
czfshine/UpAndAway | code/prefabs/alchemy_potions.lua | 2 | 7120 | BindGlobal()
local basic_assets = {
--Asset("ANIM", "anim/alchemy_potion.zip"),
--Asset( "ATLAS", "images/inventoryimages/potion_default.xml" ),
--Asset( "IMAGE", "images/inventoryimages/potion_default.tex" ),
}
local basic_prefabs = {
"potion_tunnel_mound",
}
local function make_potion(data)
l... | gpl-2.0 |
xdemolish/darkstar | scripts/zones/Valkurm_Dunes/npcs/Prunilla_RK.lua | 8 | 2940 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: Prunilla, R.K.
-- Type: Border Conquest Guards
-- @pos 908.245 -1.171 -411.504 103
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest")... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Upper_Delkfutts_Tower/npcs/qm3.lua | 34 | 1069 | -----------------------------------
-- Area: Upper Delkfutt's Tower
-- NPC: ???
-- Notes: Teleports you to the 10th floor.
-- @pos 261 19 20 158
-----------------------------------
package.loaded["scripts/zones/Upper_Delkfutts_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/... | gpl-3.0 |
emmericp/libmoon | examples/hardware-timestamping.lua | 4 | 5245 | --- Demonstrates and tests hardware timestamping capabilities
local lm = require "libmoon"
local device = require "device"
local memory = require "memory"
local ts = require "timestamping"
local hist = require "histogram"
local timer = require "timer"
local log = require "log"
local stats = require "sta... | mit |
xdemolish/darkstar | scripts/zones/Chamber_of_Oracles/npcs/Pedestal_of_Water.lua | 7 | 2265 | -----------------------------------
-- Area: Chamber of Oracles
-- NPC: Pedestal of Water
-- Involved in Zilart Mission 7
-- @pos 199 -2 36 168
-------------------------------------
package.loaded["scripts/zones/Chamber_of_Oracles/TextIDs"] = nil;
-------------------------------------
require("scripts/global... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Upper_Jeuno/npcs/Couvoullie.lua | 6 | 1550 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Couvoullie
-- Chocobo Vendor
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/quests");
-----------------------------------
-- onTrade Action
-------------... | gpl-3.0 |
mahdib9/ml | plugins/all.lua | 28 | 4675 | 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 |
xdemolish/darkstar | scripts/zones/Xarcabard/npcs/Luck_Rune.lua | 34 | 1062 | -----------------------------------
-- Area: Xarcabard
-- NPC: Luck Rune
-- Involved in Quest: Mhaura Fortune
-- @pos 576.117 -0.164 -16.935 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Xarcab... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/items/piscators_skewer.lua | 36 | 1339 | -----------------------------------------
-- ID: 5983
-- Item: Piscator's Skewer
-- Food Effect: 60 Mins, All Races
-----------------------------------------
-- Dexterity 3
-- Vitality 4
-- Defense % 26 Cap 155
-----------------------------------------
require("scripts/globals/status");
------------------------------... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Kristen.lua | 38 | 1041 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Kristen
-- Type: Standard NPC
-- @zone: 94
-- @pos 2.195 -2 60.296
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
--------... | gpl-3.0 |
hfjgjfg/mohammad | plugins/webshot.lua | 919 | 1473 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
header... | gpl-2.0 |
hacker44-h44/mmmmmm | plugins/time.lua | 771 | 2865 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://m... | gpl-2.0 |
lighter-cd/premake4-mobile | scripts/embed.lua | 8 | 2300 | --
-- Embed the Lua scripts into src/host/scripts.c as static data buffers.
-- I embed the actual scripts, rather than Lua bytecodes, because the
-- bytecodes are not portable to different architectures, which causes
-- issues in Mac OS X Universal builds.
--
local function stripfile(fname)
local f = io.open(fnam... | mit |
xdemolish/darkstar | scripts/globals/weaponskills/blast_shot.lua | 1 | 1248 | -----------------------------------
-- Blast Shot
-- Marksmanship 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: AGI:30... | gpl-3.0 |
Zarakichi/ObEngine | engine/Lib/Toolkit/Functions/object.lua | 5 | 5346 | local Color = require("Lib/StdLib/ConsoleColor");
local Route = require("Lib/Toolkit/Route");
local Style = require("Lib/Toolkit/Stylesheet")
local Functions = {};
function Functions.create(objectName, components)
components = components:upper();
local currentWs = obe.Path.Paths()[1].basePath;
local haveA... | mit |
xdemolish/darkstar | scripts/zones/Wajaom_Woodlands/npcs/qm2.lua | 15 | 1184 | -----------------------------------
-- Area: Wajaom Woodlands
-- NPC: ??? (Spawn Iriz Ima(ZNM T2))
-- @pos 253 -23 116 51
-----------------------------------
package.loaded["scripts/zones/Wajaom_Woodlands/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Wajaom_Woodlands/TextIDs");
--------... | gpl-3.0 |
londry/nodemcu-firmware | lua_modules/ds18b20/ds18b20.lua | 54 | 3437 | --------------------------------------------------------------------------------
-- DS18B20 one wire module for NODEMCU
-- NODEMCU TEAM
-- LICENCE: http://opensource.org/licenses/MIT
-- Vowstar <vowstar@nodemcu.com>
-- 2015/02/14 sza2 <sza2trash@gmail.com> Fix for negative values
---------------------------------------... | mit |
xdemolish/darkstar | scripts/globals/abilities/pets/glittering_ruby.lua | 6 | 1111 | ---------------------------------------------------
-- Glittering Ruby
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
---------------------------------------------------
function onAbi... | gpl-3.0 |
chris5560/openwrt-luci | applications/luci-app-dynapoint/luasrc/model/cbi/dynapoint.lua | 17 | 3590 | local uci = require "luci.model.uci".cursor()
local a = require "luci.model.ipkg"
local DISP = require "luci.dispatcher"
local wlcursor = luci.model.uci.cursor_state()
local wireless = wlcursor:get_all("wireless")
local ifaces = {}
for k, v in pairs(wireless) do
if v[".type"] == "wifi-iface" then
table.insert(i... | apache-2.0 |
chris5560/openwrt-luci | protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_map.lua | 32 | 2615 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2013 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local peeraddr, ip6addr
local tunlink, defaultroute, metric, ttl, mtu
maptype = section:taboption("general", ListValue, "type"... | apache-2.0 |
robotics-erlangen/autoref | autoref/rules/dribbling.lua | 1 | 2672 | --[[***********************************************************************
* Copyright 2015 Alexander Danzer *
* Robotics Erlangen e.V. *
* http://www.robotics-erlangen.de/ *
* info@robotic... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/items/rolanberry_(864_ce).lua | 35 | 1205 | -----------------------------------------
-- ID: 4531
-- Item: rolanberry_864_ce)
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -3
-- Intelligence 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/items/dhalmel_steak.lua | 35 | 1391 | -----------------------------------------
-- ID: 4438
-- Item: dhalmel_steak
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Strength 4
-- Intelligence -1
-- Attack % 25
-- Attack Cap 45
-----------------------------------------
require("scripts/globals/status");
----------... | gpl-3.0 |
Starkkz/sas | Core/run.lua | 1 | 1250 | -- Load modules
local ModulesFile = SAS.Open("Configuration/Modules.txt", "r")
if ModulesFile then
for File in ModulesFile:lines() do
if File:sub(1, 2) ~= "//" then
local f, E = SAS.Loadfile("Modules/"..File)
if E then
print("©255000000Module Error ["..File.."]: "..E)
else
local s, E = pcall(f)
... | mit |
chris5560/openwrt-luci | applications/luci-app-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/widgets_overview.lua | 68 | 1868 | -- Copyright 2012 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
local uci = require "luci.model.uci".cursor()
local fs = require "nixio.fs"
local utl = require "luci.util"
m = Map("freifunk-widgets", translate("Widgets"),
translate("Configure installed widget... | apache-2.0 |
peymankhanas84877/Horror_Avatar_bot | plugins/rae.lua | 616 | 1312 | do
function getDulcinea( text )
-- Powered by https://github.com/javierhonduco/dulcinea
local api = "http://dulcinea.herokuapp.com/api/?query="
local query_url = api..text
local b, code = http.request(query_url)
if code ~= 200 then
return "Error: HTTP Connection"
end
dulcinea = json:decode(b)
... | gpl-2.0 |
xdemolish/darkstar | scripts/zones/Port_San_dOria/npcs/Jaireto.lua | 36 | 1373 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Jaireto
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Port_San_dOria/TextI... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Selbina/npcs/Wenzel.lua | 38 | 1034 | ----------------------------------
-- Area: Selbina
-- NPC: Wenzel
-- Type: Item Deliverer
-- @pos 31.961 -14.661 57.997 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
--------------------... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Open_sea_route_to_Mhaura/npcs/Pashi_Maccaleh.lua | 17 | 1245 | -----------------------------------
-- Area: Open sea route to Mhaura
-- NPC: Pashi Maccaleh
-- Guild Merchant NPC: Fishing Guild
-- @zone 4.986 -2.101 -12.026 47
-----------------------------------
package.loaded["scripts/zones/Open_sea_route_to_Mhaura/TextIDs"] = nil;
-----------------------------------
r... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Windurst_Walls/npcs/Orudoba-Sondeba.lua | 38 | 1044 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Orudoba-Sondeba
-- Type: Standard NPC
-- @zone: 239
-- @pos 70.086 -3.503 -69.939
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-----... | gpl-3.0 |
eiffelqiu/candle | lib/candle/generators/lua/wax/lib/stdlib/enums.lua | 18 | 12158 | -- UIViewContentMode
UIViewContentModeScaleToFill = 0
UIViewContentModeScaleAspectFit = 1
UIViewContentModeScaleAspectFill = 2
UIViewContentModeRedraw = 3
UIViewContentModeCenter = 4
UIViewContentModeTop = 5
UIViewContentModeBottom = 6
UIViewContentModeLeft = 7
UIViewContentModeRight = 8
UIViewContentModeTopLeft = 9
UI... | mit |
botfam/botfam | plugins/ip.lua | 11 | 4571 | local function run(msg, matches)
if matches[1]:lower() == "config" then
local data = http.request("http://ip-api.com/json/"..URL.escape(matches[2]).."?fields=262143")
local jdat = JSON.decode(data)
if jdat.status == "success" then
local text = "مشخصات آی اس پی شخص-دامنه مورد نظر:\n"
.."کشور: "..jdat.countr... | gpl-2.0 |
xdemolish/darkstar | scripts/zones/Kazham/npcs/Vanono.lua | 19 | 1420 | -----------------------------------
-- 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 |
peymankhanas84877/Horror_Avatar_bot | plugins/moderation.lua | 336 | 9979 | do
local function check_member(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
local username = v.username
data[tostring(m... | gpl-2.0 |
lighter-cd/premake4-mobile | tests/actions/vstudio/vc2010/test_debugdir.lua | 10 | 3216 | --
-- tests/actions/vstudio/vc2010/test_debugdir.lua
-- Validate handling of the working directory for debugging.
-- Copyright (c) 2011 Jason Perkins and the Premake project
--
T.vstudio_vs2010_debugdir = { }
local suite = T.vstudio_vs2010_debugdir
local vc2010 = premake.vstudio.vc2010
--
-- Setup
-... | mit |
czfshine/UpAndAway | code/components/generichounded.lua | 2 | 11296 | --FIXME: not MP compatible
BindGlobal()
local Lambda = wickerrequire "paradigms.functional"
local Pred = wickerrequire "lib.predicates"
local Tree = wickerrequire "utils.table.tree"
local Debuggable = wickerrequire "adjectives.debuggable"
local default_attack_levels = {
intro={warnduration= function(... | gpl-2.0 |
xdemolish/darkstar | scripts/globals/weaponskills/tachi_fudo.lua | 1 | 1378 | -----------------------------------
-- Tachi: Fudo
-- Great Katana weapon skill
-- Skill Level: N/A
-- Deals double damage. Damage varies with TP. Masamune: Aftermath.
-- Available only when equipped with Masamune (85), Masamune (90), Masamune (95), Hiradennotachi +1 or Hiradennotachi +2.
-- Aligned with Lig... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/spells/bluemagic/frost_breath.lua | 3 | 1366 | ---------------------------------------------
-- Bad Breath
---------------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/bluemagic");
---------------------------------------------
function onMagicCastingCheck(caster,target,spell)
... | gpl-3.0 |
samael65535/quick-ng | quick/samples/tests/src/tests/framework/cryptoTest.lua | 8 | 2190 |
local CryptoTestScene = game.createSceneClass("CryptoTestScene")
function CryptoTestScene:ctor()
cc.FileUtils:getInstance():addSearchPath("src/")
self:prepare({
description = "Please check console output"
})
local items = {
"AES256",
"XXTEA",
"Base64",
"MD5Fil... | mit |
ln-zookeeper/wesnoth | data/ai/micro_ais/cas/ca_stationed_guardian.lua | 2 | 4434 | local H = wesnoth.require "helper"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local M = wesnoth.map
local function get_guardian(cfg)
local filter = H.get_child(cfg, "filter") or { id = cfg.id }
local guardian = AH.get_units_with_moves {
side = wesnoth.current.side,
{ "and", filter }
... | gpl-2.0 |
xdemolish/darkstar | scripts/zones/Lower_Delkfutts_Tower/npcs/_540.lua | 16 | 2171 | -----------------------------------
-- Area: Lower Delkfutt's Tower
-- NPC: Cermet Door
-- Cermet Door for Windy Ambassador
-- Windurst Mission 3.3 "A New Journey"
-- @pos 636 16 59 184
-----------------------------------
package.loaded["scripts/zones/Lower_Delkfutts_Tower/TextIDs"] = nil;
------------------... | gpl-3.0 |
PlexChat/premake-core | src/base/option.lua | 16 | 3399 | --
-- option.lua
-- Work with the list of registered options.
-- Copyright (c) 2002-2014 Jason Perkins and the Premake project
--
premake.option = {}
local m = premake.option
--
-- We can't control how people will type in the command line arguments, or how
-- project scripts will define their custom options, so ca... | bsd-3-clause |
omidtarh/o_m_i_dbot | plugins/id.lua | 226 | 4260 | local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
local function returnids(cb_extra, success, result)
local re... | gpl-2.0 |
lytedev/quick-td | lib/hump/vector-light.lua | 4 | 3308 | --[[
Copyright (c) 2012-2013 Matthias Richter
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... | apache-2.0 |
xdemolish/darkstar | scripts/zones/Southern_San_dOria/npcs/Ominous_Cloud.lua | 19 | 5169 | -----------------------------------
-- Area: Southern Sandoria
-- NPC: Ominous Cloud
-- Type: Traveling Merchant NPC
-- @zone: 230
-- @pos -41.550 1.999 -2.845
--
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
------------... | gpl-3.0 |
peymankhanas84877/Horror_Avatar_bot | plugins/minecraft.lua | 624 | 2605 | local usage = {
"!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565",
"!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.",
}
local ltn12 = require "ltn12"
local function mineSearch(ip, port, receiver) --25565
local responseText = ""
l... | gpl-2.0 |
yylangchen/Sample_Lua | src/anysdkConst.lua | 2 | 7269 | Plugin_type = {
kPluginAds = 16,
kPluginAnalytics = 1,
kPluginIAP = 8,
kPluginShare = 4,
kPluginUser = 32,
kPluginSocial = 2,
kPluginPush = 64
}
-- for ads
AdsResultCode = {
kAdsReceived = 0, --enum value is callbac... | mit |
lukego/snabb | src/dasm_x86.lua | 11 | 74171 | ------------------------------------------------------------------------------
-- DynASM x86/x64 module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
local x64 = rawget(_G, "x64"... | apache-2.0 |
xdemolish/darkstar | scripts/globals/equipment.lua | 14 | 3323 | require("scripts/globals/status");
-----------------------------------
-- Author: bluekirby0
-- Place convenience functions
-- related to equipment here
-----------------------------------
function isArtifactArmor(itemid)
retval = false;
if ((itemid >= 12511 and itemid <= 12520) or (itemid >= 13855 an... | gpl-3.0 |
mrbangi/mrbangi | plugins/cpu.lua | 244 | 1893 | function run_sh(msg)
name = get_name(msg)
text = ''
-- if config.sh_enabled == false then
-- text = '!sh command is disabled'
-- else
-- if is_sudo(msg) then
-- bash = msg.text:sub(4,-1)
-- text = run_bash(bash)
-- else
-- text = name .. ' you... | gpl-2.0 |
tkocisky/oxnn | test/test_SequenceOfWords.lua | 3 | 12343 | local precision = 1e-5
local t = oxnn.mytester
local function counting_net(worddim, V, seqs, double)
local mlp = nn.Sequential()
local function simple_rec()
local prev_rec = nn.Identity()()
local i = nn.Identity()()
local rec = prev_rec
if double then
local lin = nn.Linear(worddi... | bsd-3-clause |
hsiaoyi/Melo | cocos2d/cocos/scripting/lua-bindings/auto/api/Properties.lua | 11 | 14144 |
--------------------------------
-- @module Properties
-- @parent_module cc
--------------------------------
-- Returns the value of a variable that is set in this Properties object.<br>
-- Variables take on the format ${name} and are inherited from parent Property objects.<br>
-- param name Name of the variable to g... | apache-2.0 |
xdemolish/darkstar | scripts/globals/items/holy_maul_+1.lua | 16 | 1036 | -----------------------------------------
-- ID: 17114
-- Item: Holy Maul +1
-- Additional Effect: Light Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
------------------------------... | gpl-3.0 |
HybridDog/sea | seagravel/init.lua | 2 | 6514 | -- NODES
minetest.register_node("seagravel:seagravel", {
description = "Sea gravel",
tiles = {"seagravel_seagravel.png"},
is_ground_content = true,
groups = {crumbly=2, falling_node=1},
sounds = default.node_sound_dirt_defaults({
footstep = {name="default_gravel_footstep", gain=0.5},
dug = {name="default_gra... | gpl-3.0 |
czfshine/UpAndAway | code/components/ua_temperature_replica.lua | 2 | 2690 | --[[
-- This handles network sync of temperature.
--
-- It is only used for some entities. It's original purpose is to allow
-- the temperature meter for inventory items to work on clients.
--]]
local RELATIVE_THRESHOLD = netcfg("TEMPERATURE_PERCENT_DELTA_THRESHOLD")/100
---
local function getPercentage(self, curren... | gpl-2.0 |
cmotc/awesome | lib/wibox/widget/imagebox.lua | 1 | 5324 | ---------------------------------------------------------------------------
--
--@DOC_wibox_widget_defaults_imagebox_EXAMPLE@
-- @author Uli Schlachter
-- @copyright 2010 Uli Schlachter
-- @classmod wibox.widget.imagebox
---------------------------------------------------------------------------
local base = require("... | gpl-2.0 |
xdemolish/darkstar | scripts/globals/items/plate_of_octopus_sushi.lua | 35 | 1302 | -----------------------------------------
-- ID: 5693
-- Item: plate_of_octopus_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength 1
-- Accuracy % 16
-----------------------------------------
require("scripts/globals/status");
--------------------------------------... | gpl-3.0 |
samael65535/quick-ng | cocos/scripting/lua-bindings/auto/api/CardinalSplineTo.lua | 18 | 2195 |
--------------------------------
-- @module CardinalSplineTo
-- @extend ActionInterval
-- @parent_module cc
--------------------------------
-- Return a PointArray.<br>
-- return A PointArray.
-- @function [parent=#CardinalSplineTo] getPoints
-- @param self
-- @return point_table#point_table ret (return value: poin... | mit |
hsiaoyi/Melo | cocos2d/cocos/scripting/lua-bindings/auto/api/CardinalSplineTo.lua | 18 | 2195 |
--------------------------------
-- @module CardinalSplineTo
-- @extend ActionInterval
-- @parent_module cc
--------------------------------
-- Return a PointArray.<br>
-- return A PointArray.
-- @function [parent=#CardinalSplineTo] getPoints
-- @param self
-- @return point_table#point_table ret (return value: poin... | apache-2.0 |
black123456789/api | plugins/service.lua | 1 | 4720 | local triggers = {
'^###(botadded)',
'^###(added)',
'^###(botremoved)'
}
local function remove_from_kicked_list(chat, user)
local hash = 'kicked:'..chat
client:hdel(hash, user)
end
local action = function(msg, blocks, ln)
--avoid trolls
if not msg.service then
return
end
--if the bot join the cha... | gpl-2.0 |
kaadmy/pixture | mods/nav/compass.lua | 1 | 3371 |
--
-- Compass handling
--
local wield_image_0 = "nav_compass_inventory_0.png"
local wield_image_1 = "nav_compass_inventory_1.png"
function on_globalstep(dtime)
for _, player in pairs(minetest.get_connected_players()) do
local inv = player:get_inventory()
local yaw = player:get_look_horizontal()
... | lgpl-2.1 |
cmotc/awesome | tests/examples/shims/awesome.lua | 2 | 1260 | local gears_obj = require("gears.object")
-- Emulate the C API classes. They differ from C API objects as connect_signal
-- doesn't take an object as first argument and they support fallback properties
-- handlers.
local function _shim_fake_class()
local obj = gears_obj()
obj.data = {}
local meta = {
... | gpl-2.0 |
xdemolish/darkstar | scripts/zones/Dynamis-San_dOria/npcs/qm1.lua | 17 | 1336 | -----------------------------------
-- Area: Dynamis San d'Oria
-- NPC: qm1 (???)
-- Notes: Spawns when Megaboss is defeated
-----------------------------------
package.loaded["scripts/zones/Dynamis-San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require(... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Port_Windurst/TextIDs.lua | 3 | 5070 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 10962; -- Come back after sorting your inventory.
FULL_INVENTORY_AFTER_TRADE = 10964; -- Try trading again after sorting your inventory.
ITEM_OBTAINED = 10965; -- Obtained:
GIL_OBTAINED = 10966; -- Obtained <... | gpl-3.0 |
blockplanet/blockplanet | builtin/game/misc.lua | 1 | 4743 | -- Minetest: builtin/misc.lua
--
-- Misc. API functions
--
local timers = {}
local mintime
local function update_timers(delay)
mintime = false
local sub = 0
for index = 1, #timers do
index = index - sub
local timer = timers[index]
timer.time = timer.time - delay
if timer.time <= 0 then
core.set_last_run... | gpl-3.0 |
deepmind/lab2d | dmlab2d/lib/system/generators/pushbox/lua/pushbox_test.lua | 1 | 1644 | --[[ Copyright (C) 2019 The DMLab2D Authors.
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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writ... | apache-2.0 |
xdemolish/darkstar | scripts/globals/items/prized_seafood_stewpot.lua | 36 | 1865 | -----------------------------------------
-- ID: 5240
-- Item: Prized Seafood Stewpot
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% Cap 100
-- MP +20
-- Dexterity 2
-- Vitality 2
-- Agility 2
-- Mind 2
-- HP Recovered while healing 9
-- MP Recovered while he... | gpl-3.0 |
czfshine/UpAndAway | code/map/static_layouts/shopkeeper_stall.lua | 2 | 1482 | return {
version = "1.1",
luaversion = "5.1",
orientation = "orthogonal",
width = 6,
height = 6,
tilewidth = 64,
tileheight = 64,
properties = {},
tilesets = {
{
name = "ground",
firstgid = 1,
filename = "../../../../../../../../../Don't Starve Mod Tools/mod_tools/Tiled/samplelay... | gpl-2.0 |
samael65535/quick-ng | cocos/scripting/lua-bindings/auto/api/Animate.lua | 7 | 1853 |
--------------------------------
-- @module Animate
-- @extend ActionInterval
-- @parent_module cc
--------------------------------
-- @overload self
-- @overload self
-- @function [parent=#Animate] getAnimation
-- @param self
-- @return Animation#Animation ret (return value: cc.Animation)
--------... | mit |
xdemolish/darkstar | scripts/globals/items/red_curry_bun.lua | 21 | 1844 | -----------------------------------------
-- ID: 5759
-- Item: red_curry_bun
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- Health 25
-- Strength 7
-- Agility 1
-- Intelligence -2
-- Attack % 24.7
-- Attack Cap 150
-- Ranged ATT % 24.7
-- Ranged ATT Cap 150
-- Demon Killer ... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Dragons_Aery/Zone.lua | 5 | 1739 | -----------------------------------
--
-- Zone: Dragons_Aery (154)
--
-----------------------------------
package.loaded["scripts/zones/Dragons_Aery/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Dragons_Aery/T... | gpl-3.0 |
yangchaogit/ABTestingGateway | lib/abtesting/error/errcode.lua | 22 | 1583 | local modulename = 'abtestingErrorInfo'
local _M = {}
_M._VERSION = '0.0.1'
_M.info = {
-- index code desc
-- SUCCESS
["SUCCESS"] = { 200, 'success '},
-- System Level ERROR
['REDIS_ERROR'] = { 40101, 'redis error for '},
['POLICY_DB_ERROR'] = { 40102, 'policy in db error '... | mit |
Whit3Tig3R/Telegram-Bot | bot/utils.lua | 646 | 23489 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
black123456789/api | plugins/mediasettings.lua | 1 | 1816 | local triggers = {
'^/(kick) (.*)$',
'^/(ban) (.*)$',
'^/(allow) (.*)$',
'^/(media list)$',
'^/(media)$'
}
local action = function(msg, blocks, ln)
if msg.chat.type == 'private' then
api.sendMessage(msg.chat.id, lang[ln].pv)
return
end
if not is_mod(msg) then
return nil
end
local list = {'image',... | gpl-2.0 |
ForgedAddons/HunterAnnouncer | libs/AceComm-3.0/ChatThrottleLib.lua | 4 | 14616 | --
-- ChatThrottleLib by Mikk
--
-- Manages AddOn chat output to keep player from getting kicked off.
--
-- ChatThrottleLib:SendChatMessage/:SendAddonMessage functions that accept
-- a Priority ("BULK", "NORMAL", "ALERT") as well as prefix for SendChatMessage.
--
-- Priorities get an equal share of available bandwidth... | apache-2.0 |
yylangchen/Sample_Lua | src/cocos/cocos2d/DrawPrimitives.lua | 98 | 12024 |
local dp_initialized = false
local dp_shader = nil
local dp_colorLocation = -1
local dp_color = { 1.0, 1.0, 1.0, 1.0 }
local dp_pointSizeLocation = -1
local dp_pointSize = 1.0
local SHADER_NAME_POSITION_U_COLOR = "ShaderPosition_uColor"
local targetPlatform = cc.Application:getInstance():getTargetPlatform()
lo... | mit |
yylangchen/Sample_Lua | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/TransitionFadeTR.lua | 10 | 1043 |
--------------------------------
-- @module TransitionFadeTR
-- @extend TransitionScene,TransitionEaseScene
-- @parent_module cc
--------------------------------
--
-- @function [parent=#TransitionFadeTR] easeActionWithAction
-- @param self
-- @param #cc.ActionInterval action
-- @return ActionInterval#ActionInterva... | mit |
xdemolish/darkstar | scripts/zones/Lufaise_Meadows/mobs/Leshy.lua | 29 | 1618 | -----------------------------------
-- Area: Lufaise Meadows
-- MOB: Leshy
-----------------------------------
function onMobRoam(mob)
local Colorful_Leshy = 16875762;
local Colorful_Leshy_PH = 0;
local Colorful_Leshy_PH_Table =
{
16875754,
16875755,
16875756,
16875757,
16875758,
... | gpl-3.0 |
kaadmy/pixture | mods/book/init.lua | 1 | 1675 | --
-- Editable books
-- Code based off the books_plus mod
-- By Kaadmy, for Pixture
--
minetest.register_craftitem(
":default:book",
{
description = "Unnamed Book",
inventory_image = "default_book.png",
stack_max = 1,
on_use = function(itemstack, player, pointed_thing)
local nam... | lgpl-2.1 |
sywoon/object-lua | test/TestMixins.lua | 1 | 2519 | --
-- Note: In the current implementation, mixins are intended to be the smallest element of code reuse after the function.
-- So you cannot subclass mixins, and a mixin cannot include another mixin.
--
require "luaunit"
local Object = require 'objectlua.Object'
local Class = require 'objectlua.Class'
local Mixin = req... | mit |
xdemolish/darkstar | scripts/zones/Port_Bastok/npcs/Panana.lua | 19 | 1118 | -----------------------------------
-- Area: Port Bastok
-- NPC: Panana
-- Involved in Quest: Out of One's Shell
-----------------------------------
require("scripts/globals/quests");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,tr... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/items/silken_squeeze.lua | 36 | 1215 | -----------------------------------------
-- ID: 5630
-- Item: Silken Squeeze
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP Recovered while healing +4
-- MP Recovered while healing +5
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Apollyon/mobs/Kerkopes.lua | 17 | 1575 | -----------------------------------
-- Area: Apollyon NE
-- NPC: Kerkopes
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
--------------------------... | gpl-3.0 |
PlexChat/premake-core | tests/actions/vstudio/vc2010/test_globals.lua | 4 | 4622 | --
-- tests/actions/vstudio/vc2010/test_globals.lua
-- Validate generation of the Globals property group.
-- Copyright (c) 2011-2014 Jason Perkins and the Premake project
--
local suite = test.declare("vstudio_vs2010_globals")
local vc2010 = premake.vstudio.vc2010
--
-- Setup
--
local wks, prj
... | bsd-3-clause |
xdemolish/darkstar | scripts/zones/Palborough_Mines/npcs/Mining_Point.lua | 1 | 1111 | -----------------------------------
-- Area: Palborough Mines
-- NPC: Mining Point
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/mining");
require("scripts/zones/Palborough_Mines/TextIDs");
... | gpl-3.0 |
deepmind/lab2d | dmlab2d/lib/game_scripts/common/image_helpers.lua | 1 | 4357 | --[[ Copyright (C) 2018-2019 The DMLab2D Authors.
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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | apache-2.0 |
Kalafina/papercrop | luna_mainlib.lua | 15 | 12484 |
array.pushBack(gen_lua.number_types, 'ushort')
array.pushBack(gen_lua.number_types, 'uint')
bindTargetMainLib={
classes={
{
name='SelectionRectangle',
decl='class SelectionRectangle;',
ctors={'()'},
wrapperCode=[[
static double left(SelectionRectangle& w){ return w.p1.x;}
stati... | gpl-2.0 |
yylangchen/Sample_Lua | frameworks/cocos2d-x/tests/lua-tests/src/MenuTest/MenuTest.lua | 16 | 18464 | local kTagMenu = 1
local kTagMenu0 = 0
local kTagMenu1 = 1
local MID_CALLBACK = 1000
local MID_CALLBACK2 = 1001
local MID_DISABLED = 1002
local MID_ENABLE = 1003
local MID_CONFIG = 1004
local MID_QUIT = 1005
local MID_OPACITY = 1006
local MID_ALIGN = 1007
local MID_C... | mit |
xdemolish/darkstar | scripts/zones/Empyreal_Paradox/mobs/Selh'teus.lua | 6 | 1571 | -----------------------------------
-- Area: Empyreal Paradox
-- NPC: Selh'teus
-- Chains of Promathia 8-4 BCNM Fight
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("/scripts/zones/Empyreal_Paradox/TextIDs");
function onMobInitialize(mob)
mob:addM... | gpl-3.0 |
felixonmars/app | extensions/Scribunto/engines/LuaCommon/lualib/mw.message.lua | 4 | 4677 | local message = {}
local php
local util = require 'libraryUtil'
local checkType = util.checkType
local valuemt = {
__tostring = function ( t )
return tostring( t.raw or t.num )
end
}
local function checkScalar( name, argIdx, arg, level, valuemtOk )
local tp = type( arg )
-- If special params are ok, detect th... | gpl-2.0 |
xdemolish/darkstar | scripts/zones/Upper_Jeuno/npcs/Paya-Sabya.lua | 19 | 1333 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Paya-Sabya
-- Involved in Mission: Magicite
-- @zone 244
-- @pos 9 1 70
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
re... | gpl-3.0 |
Javaxio/BadRotations | Rotations/Priest/Shadow/ShadowCuteOne.lua | 1 | 65855 | local rotationName = "CuteOne"
---------------
--- Toggles ---
---------------
local function createToggles()
-- Rotation Button
RotationModes = {
[1] = { mode = "Auto", value = 1 , overlay = "Automatic Rotation", tip = "Swaps between Single and Multiple based on number of targets in range.", highlight... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/weaponskills/hexa_strike.lua | 1 | 1270 | -----------------------------------
-- Hexa Strike
-- Club weapon skill
-- Skill level: 220
-- Delivers a six-hit attack. Chance of params.critical varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Flame Gorget & Light Gorget.
-- Aligned with the Flame Belt & Light Belt.
-- Element: N... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Yorcia_Weald_U/Zone.lua | 36 | 1119 | -----------------------------------
--
-- Zone: Yorcia Weald U
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Yorcia_Weald_U/TextIDs"] = nil;
require("scripts/zones/Yorcia_Weald_U/TextIDs");
-----------------------------------
-- onInitialize
-... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Windurst_Woods/npcs/Cha_Lebagta.lua | 19 | 1937 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Cha Lebagta
-- Type: Standard NPC
-- @zone: 241
-- @pos 58.385 -6.249 216.670
-- Involved in Quests: As Thick as Thieves, Mihgo's Amigo
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-------------... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Metalworks/npcs/Mih_Ketto.lua | 38 | 1037 | -----------------------------------
-- Area: Metalworks
-- NPC: Mih Ketto
-- Type: Standard NPC
-- @zone: 237
-- @pos 24.046 -17 32.751
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
require("scripts/zone... | gpl-3.0 |
hsiaoyi/Melo | cocos2d/cocos/scripting/lua-bindings/auto/api/Shaky3D.lua | 8 | 1997 |
--------------------------------
-- @module Shaky3D
-- @extend Grid3DAction
-- @parent_module cc
--------------------------------
-- brief Initializes the action with a range, shake Z vertices, grid size and duration.<br>
-- param duration Specify the duration of the Shaky3D action. It's a value in seconds.<br>
-- pa... | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.