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 |
|---|---|---|---|---|---|
kitala1/darkstar | scripts/globals/spells/regen_iii.lua | 13 | 1389 | -----------------------------------------
-- Spell: Regen III
-- Gradually restores target's HP.
-----------------------------------------
-- Cleric's Briault enhances the effect
-- Scale down duration based on level
-- Composure increases duration 3x
-----------------------------------------
require("scripts... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/slice_of_dragon_meat.lua | 17 | 1347 | -----------------------------------------
-- ID: 4272
-- Item: slice_of_dragon_meat
-- Food Effect: 5Min, Galka only
-----------------------------------------
-- Strength 6
-- Intelligence -8
-----------------------------------------
require("scripts/globals/status");
--------------------------------------... | gpl-3.0 |
ZenityRTS/Zenity | libs/i18n/i18nlib/spec/i18n_interpolate_spec.lua | 21 | 2228 | require 'spec.fixPackagePath'
local interpolate = require 'i18n.interpolate'
describe('i18n.interpolate', function()
it("exists", function()
assert_equal('function', type(interpolate))
end)
it("performs standard interpolation via string.format", function()
assert_equal("My name is John, I am 13", inter... | gpl-2.0 |
JacobFischer/Joueur.lua | games/saloon/player.lua | 2 | 3446 | -- Player: A player in this game. Every AI controls one player.
-- DO NOT MODIFY THIS FILE
-- Never try to directly create an instance of this class, or modify its member variables.
-- Instead, you should only be reading its variables and calling its functions.
local class = require("joueur.utilities.class")
local Ga... | mit |
kitala1/darkstar | scripts/zones/RuLude_Gardens/npcs/Magian_Moogle_Orange.lua | 48 | 2326 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Magian Moogle (Orange Bobble)
-- Type: Magian Trials NPC (Weapon/Empyrean Armor)
-- @pos -11 2.453 118 64
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
requi... | gpl-3.0 |
jjimenezg93/ai-state_machines | moai/3rdparty/luasocket-2.0.2/src/socket.lua | 146 | 4061 | -----------------------------------------------------------------------------
-- LuaSocket helper module
-- Author: Diego Nehab
-- RCS ID: $Id: socket.lua,v 1.22 2005/11/22 08:33:29 diego Exp $
-----------------------------------------------------------------------------
-----------------------------------------------... | mit |
libcg/gSquare | game/levels/rose3.lua | 1 | 1487 | function getInfo()
-- Title
local title = {
"Day 26.\n\nWhere she can escape unlike you",
"Jour 26.\n\nOù elle peut s'échapper contrairement à vous" }
levelText(title[getLanguageID()+1])
end
function setGame()
-- Music
setMusic("./audio/c418-sometimesimakevideogamemusic.mp3")
-- Player
varPlayerX(1... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/flask_of_panacea.lua | 70 | 1742 | -----------------------------------------
-- ID: 4163
-- Item: Panacea
-- Item Effect: Removes any number of status effects
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----------------------------------------
function onItemCh... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Beaucedine_Glacier_[S]/npcs/Gray_Colossus_LC.lua | 38 | 1071 | -----------------------------------
-- Area: Beaucedine Glacier (S)
-- NPC: Gray Colossus, L.C.
-- Type: Campaign Arbiter
-- @zone: 136
-- @pos 76.178 -60.763 -48.775
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Lower_Jeuno/npcs/Navisse.lua | 34 | 4871 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Navisse
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
require("scripts/globals/pathfind");
local path = {
-- -59.562683, 6.000... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/zucchini.lua | 36 | 1223 | -----------------------------------------
-- ID: 5726
-- Item: Zucchini
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility 1
-- Vitality -3
-- Defense -1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCh... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Mhaura/npcs/Celestina.lua | 17 | 2597 | -----------------------------------
-- Area: Mhaura
-- NPC: Celestina
-- Finish Quest: The Sand Charm
-- Involved in Quest: Riding on the Clouds
-- Guild Merchant NPC: Goldsmithing Guild
-- @pos -37.624 -16.050 75.681 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil... | gpl-3.0 |
marczych/PeggleDamacy | hump/vector.lua | 12 | 5276 | --[[
Copyright (c) 2010-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 |
csfrancis/lua-cityhash | test/cityhash_test.lua | 1 | 1468 | require("luarocks.loader")
describe("cityhash tests", function()
local cityhash
setup(function()
cityhash = require("cityhash")
data = "this is a test hash string"
end)
it("hash64 should return a hex string", function()
str = cityhash.hash64(data, data:len(), true)
assert.is_nil(str:find("[^0... | mit |
kitala1/darkstar | scripts/zones/Northern_San_dOria/npcs/Arachagnon.lua | 36 | 1818 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Arachagnon
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/... | gpl-3.0 |
apletnev/koreader | spec/unit/hook_container_spec.lua | 14 | 2931 | describe("HookContainer tests", function()
setup(function()
require("commonrequire")
end)
it("should register and unregister functions", function()
local HookContainer = require("ui/hook_container"):new()
local f1 = spy.new(function() end)
local f2 = spy.new(function() end)
... | agpl-3.0 |
kitala1/darkstar | scripts/zones/Windurst_Waters/npcs/Amagusa-Chigurusa.lua | 38 | 1418 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Amagusa-Chigurusa
-- Type: Standard NPC
-- @pos -28.746 -4.5 61.954 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
req... | gpl-3.0 |
amirkingred/nod2 | plugins/plugins.lua | 88 | 6304 | 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 |
crabman77/minetest-minetestforfun-server | minetestforfun_game/mods/farming/corn.lua | 10 | 3067 |
--[[
Original textures from GeMinecraft
http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/wip-mods/1440575-1-2-5-generation-minecraft-beta-1-2-farming-and
]]
local S = farming.intllib
-- corn
minetest.register_craftitem("farming:corn", {
description = S("Corn"),
inventory_image = "farming_c... | unlicense |
d-o/LUA-LIB | tests/unit/csv.lua | 2 | 26536 | -------------------------------------------------------------------------------
-- CSV unit tests.
-- @author Pauli
-- @copyright 2014 Rinstrum Pty Ltd
-------------------------------------------------------------------------------
describe("CSV tests #csv", function()
local dbg = require "rinLibrary.rinDebug"
... | gpl-3.0 |
kitala1/darkstar | scripts/globals/weaponskills/nightmare_scythe.lua | 11 | 1605 | -----------------------------------
-- Nightmare Scythe
-- Scythe weapon skill
-- Skill Level: 100
-- Blinds enemy. Duration of effect varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Shadow Gorget & Soil Gorget.
-- Aligned with the Shadow Belt & Soil Belt.
-- Element: None
-- Modifiers: ST... | gpl-3.0 |
dangerrr/dangerrr | plugins/media.lua | 376 | 1679 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Port_San_dOria/npcs/Parcarin.lua | 17 | 1694 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Parcarin
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- @pos -9 -13 -151 232
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
hassanhp/TOPNOB | plugins/ingroup.lua | 371 | 44212 | do
-- Check Member
local function check_member_autorealm(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
-- Group configuration
data[tostr... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Temenos/bcnms/Central_Temenos_3rd_Floor.lua | 13 | 1075 | -----------------------------------
-- Area: Temenos
-- Name:
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[C_Temenos_3rd]UniqueID",GenerateLimbusKey());
HideArmouryCrates(GetInstanceRegion(1305),TEMENOS); ... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Selbina/npcs/Romeo.lua | 17 | 2409 | -----------------------------------
-- Area: Selbina
-- NPC: Romeo
-- Starts and Finishes Quest: Donate to Recycling
-- @zone 248
-- @pos -11 -11 -6
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/T... | gpl-3.0 |
Eternym/psychoactive2 | data/actions/scripts/quests/quests.lua | 9 | 1489 | local annihilatorReward = {1990, 2400, 2431, 2494}
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if item.uid <= 1250 or item.uid >= 30000 then
return false
end
local itemType = ItemType(item.uid)
if itemType:getId() == 0 then
return false
end
local itemWeight = itemType:getWeight(... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Apollyon/mobs/Grave_Digger.lua | 33 | 1024 | -----------------------------------
-- Area: Apollyon SE
-- NPC: Grave_Digger
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Apollyon/TextIDs");
-----------------------------------
-- onMobSpawn Action... | gpl-3.0 |
d-o/LUA-LIB | K400Examples/printCopy.lua | 2 | 2997 | #!/usr/bin/env lua
-------------------------------------------------------------------------------
-- Print Copy
--
-- Application to print Carbon copy
--
-- Copy this file to your project directory and insert the specific code of
-- your application
---------------------------------------------------------------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Temenos/mobs/Kindred_Dark_Knight.lua | 17 | 1115 | -----------------------------------
-- Area: Temenos N T
-- NPC: Kindred_Dark_Knight
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------------... | gpl-3.0 |
apletnev/koreader | frontend/ui/widget/screensaverwidget.lua | 3 | 2270 | local Device = require("device")
local Geom = require("ui/geometry")
local GestureRange = require("ui/gesturerange")
local FrameContainer = require("ui/widget/container/framecontainer")
local InputContainer = require("ui/widget/container/inputcontainer")
local UIManager = require("ui/uimanager")
local Screen = Device.s... | agpl-3.0 |
kitala1/darkstar | scripts/globals/mobskills/Sickle_Slash.lua | 7 | 1264 | ---------------------------------------------------
-- Sickle Slash
-- Deals critical damage. Chance of critical hit varies with TP.
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------... | gpl-3.0 |
Wiladams/LJIT2libusb | testy/macros.lua | 1 | 5270 | local libc = require("libc")
local bit = require("bit")
local lshift, rshift = bit.lshift, bit.rshift;
local bor, band = bit.bor, bit.band;
-- async I/O
local function libusb_control_transfer_get_data(transfer)
return transfer.buffer + LIBUSB_CONTROL_SETUP_SIZE;
end
local function libusb_control_transfer_get_setup(t... | mit |
fqrouter/luci | modules/admin-full/luasrc/model/cbi/admin_system/fstab/swap.lua | 84 | 1922 | --[[
LuCI - Lua Configuration Interface
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
lo... | apache-2.0 |
aminkinghakerlifee/wolf-team | plugins/inchat.lua | 4 | 4537 | local function index_function2(chat_id)
for k,v in pairs(_chats.chats) do
if chat_id == v[1] then
print(k)
return k
end
end
-- If not found
return false
end
local function addchat(chat)
if not index_function2(chat.to.id) then
table.insert(_chats.chats, {tonumber(chat.to.id), string.gsub(c... | gpl-3.0 |
sylvanaar/IDLua | testdata/non-test-system-files/lua5.1-tests/nextvar.lua | 20 | 8553 | print('testing tables, next, and for')
local a = {}
-- make sure table has lots of space in hash part
for i=1,100 do a[i.."+"] = true end
for i=1,100 do a[i.."+"] = nil end
-- fill hash part with numeric indices testing size operator
for i=1,100 do
a[i] = true
assert(#a == i)
end
if T then
-- testing table size... | apache-2.0 |
apletnev/koreader | frontend/apps/reader/modules/readermenu.lua | 2 | 11660 | local CenterContainer = require("ui/widget/container/centercontainer")
local Device = require("device")
local Event = require("ui/event")
local InputContainer = require("ui/widget/container/inputcontainer")
local Screensaver = require("ui/screensaver")
local UIManager = require("ui/uimanager")
local logger = require("l... | agpl-3.0 |
kitala1/darkstar | scripts/zones/Qufim_Island/npcs/Jiwon.lua | 17 | 1857 | -----------------------------------
-- Area: Qufim Island
-- NPC: Jiwon
-- Type: Outpost Vendor
-- @pos -249 -19 300 126
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/globa... | gpl-3.0 |
Taracque/epgp | libs/AceGUI-3.0/widgets/AceGUIContainer-SimpleGroup.lua | 15 | 1959 | --[[-----------------------------------------------------------------------------
SimpleGroup Container
Simple container widget that just groups widgets.
-------------------------------------------------------------------------------]]
local Type, Version = "SimpleGroup", 20
local AceGUI = LibStub and LibStub("Ace... | bsd-3-clause |
EmmanuelOga/easing | examples/love/easing.lua | 2 | 9828 | --
-- Adapted from
-- Tweener's easing functions (Penner's Easing Equations)
-- and http://code.google.com/p/tweener/ (jstweener javascript version)
--
--[[
Disclaimer for Robert Penner's Easing Equations license:
TERMS OF USE - EASING EQUATIONS
Open source under the BSD License.
Copyright © 2001 Robert Penner
All ... | mit |
iotcafe/nodemcu-firmware-lua5.3.0 | lua_modules/ds3231/ds3231.lua | 16 | 1865 | --------------------------------------------------------------------------------
-- DS3231 I2C module for NODEMCU
-- NODEMCU TEAM
-- LICENCE: http://opensource.org/licenses/MIT
-- Tobie Booth <tbooth@hindbra.in>
--------------------------------------------------------------------------------
local moduleName = ...
loc... | mit |
kitala1/darkstar | scripts/globals/mobskills/Hyper_Pulse.lua | 8 | 1327 | ---------------------------------------------------
-- Hyper_Pulse
--
-- Description: 300 magic damage, Gravity and short Bind, wipes Utsusemi
-- Type: Magical
--
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/... | gpl-3.0 |
mahdi1062/avira | plugins/ID.lua | 4 | 2824 | do
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, r... | gpl-2.0 |
kitala1/darkstar | scripts/globals/items/silkworm_egg.lua | 36 | 1132 | -----------------------------------------
-- ID: 4526
-- Item: Silkworm Egg
-- Food Effect: 5 Mins, All Races
-----------------------------------------
-- HP 12
-- MP 12
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
--------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Maze_of_Shakhrami/npcs/qm2.lua | 8 | 1839 | -----------------------------------
-- Area: Maze of Shakhrami
-- NPC: qm2
-- Type: Quest NPC
-- @pos 143 9 -219 198
-----------------------------------
package.loaded["scripts/zones/Maze_of_Shakhrami/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Maze_of_Shakhrami/TextIDs");... | gpl-3.0 |
mickael9/cut-and-paste | settings.lua | 1 | 1183 | require('defines')
data:extend{
{
type = "string-setting",
name = mod.setting_names.replace_mode,
setting_type = "runtime-per-user",
default_value = mod.setting_values.replace_mode.when_different,
allowed_values = {
mod.setting_values.replace_mode.when_different,
mod.setting_values.replace_mode.always... | mit |
kitala1/darkstar | scripts/zones/Port_San_dOria/npcs/Ilgusin.lua | 38 | 1038 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Ilgusin
-- Type: Standard NPC
-- @zone: 232
-- @pos -68.313 -6.5 -36.985
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Lower_Delkfutts_Tower/npcs/_542.lua | 16 | 2173 | -----------------------------------
-- Area: Lower Delkfutt's Tower
-- NPC: Cermet Door
-- Cermet Door for Basty Ambassador
-- Bastok Mission 3.3 "Appointment to Jeuno"
-- @pos 596 16 -19 184
-----------------------------------
package.loaded["scripts/zones/Lower_Delkfutts_Tower/TextIDs"] = nil;
------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/_0rs.lua | 17 | 1615 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: Oil lamp
-- @pos -60 -23 60 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Phomiuna... | gpl-3.0 |
kitala1/darkstar | scripts/globals/groundsofvalor.lua | 12 | 27737 | -------------------------------------------------
-- Largely based on the existing fieldsofvalor.lua
--
-- Info from:
-- http://www.bg-wiki.com/bg/Grounds_Tome
-- http://wiki.ffxiclopedia.org/wiki/Grounds_Tome
--
-------------------------------------------------
require("scripts/globals/settings");
requi... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Riverne-Site_B01/npcs/_0t1.lua | 19 | 1338 | -----------------------------------
-- Area: Riverne Site #B01
-- NPC: Unstable Displacement
-----------------------------------
package.loaded["scripts/zones/Riverne-Site_B01/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Riverne-Site_B01/Text... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Bastok_Markets/npcs/HomePoint#1.lua | 12 | 1261 | -----------------------------------
-- Area: Bastok Markets
-- NPC: HomePoint#1
-- @pos -293.048 -10 -102.558 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Bastok_Markets/TextIDs");
require("... | gpl-3.0 |
kitala1/darkstar | scripts/zones/RuLude_Gardens/npcs/Radeivepart.lua | 10 | 2892 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Radeivepart
-- Starts and Finishes Quest: Northward
-- Involved in Quests: Save the Clock Tower
-- @zone 243
-- @pos 5 9 -39
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
package.loaded["sc... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Xarcabard/npcs/Pilcha_RK.lua | 30 | 3043 | -----------------------------------
-- Area: Xarcabard
-- NPC: Pilcha, R.K.
-- Type: Border Conquest Guards
-- @pos -133.678 -22.517 112.224 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
require... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/plate_of_boiled_barnacles_+1.lua | 36 | 1282 | -----------------------------------------
-- ID: 5981
-- Item: Plate of Boiled Barnacles +1
-- Food Effect: 60 Mins, All Races
-----------------------------------------
-- Charisma -2
-- Defense % 26 Cap 135
-----------------------------------------
require("scripts/globals/status");
---------------------------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Bastok_Markets/npcs/Rabid_Wolf_IM.lua | 28 | 4892 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Rabid Wolf, I.M.
-- X Grant Signet
-- X Recharge Emperor Band, Empress Band, or Chariot Band
-- X Accepts traded Crystals to fill up the Rank bar to open new Missions.
-- X Sells items in exchange for Conquest Points
-- X Start Supply Run Mis... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Lower_Jeuno/npcs/Chimh_Dlesbah.lua | 38 | 1042 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Chimh Dlesbah
-- Type: Event Scene Replayer
-- @zone: 245
-- @pos -71.995 -1 -115.882
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-------... | gpl-3.0 |
amirkingred/nod2 | plugins/owners.lua | 94 | 12617 |
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 |
kitala1/darkstar | scripts/zones/The_Celestial_Nexus/Zone.lua | 32 | 1663 | -----------------------------------
--
-- Zone: The_Celestial_Nexus (181)
--
-----------------------------------
package.loaded["scripts/zones/The_Celestial_Nexus/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/The_Celestial_Nexus/TextIDs");
... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Bastok_Markets/npcs/Brygid.lua | 11 | 6277 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Brygid
-- Start & Finishes Quest: Brygid the Stylist & Brygid the Stylist Returns
-- Involved in Quests: Riding on the Clouds
-- @zone 235
-- @pos -90 -4 -108
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/Tex... | gpl-3.0 |
Taracque/epgp | epgp.lua | 1 | 30459 | -- This is the core addon. It implements all functions dealing with
-- administering and configuring EPGP. It implements the following
-- functions:
--
-- StandingsSort(order): Sorts the standings list using the specified
-- sort order. Valid values are: NAME, EP, GP, PR. If order is nil it
-- returns the current... | bsd-3-clause |
kitala1/darkstar | scripts/zones/Norg/npcs/Verctissa.lua | 17 | 2961 | -----------------------------------
-- Area: Norg
-- NPC: Verctissa
-- Starts Quest: Trial Size Trial By Water
-- @pos -13 1 -20 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scrip... | gpl-3.0 |
hanxi/cocos2d-x-v3.1 | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/LayoutParameter.lua | 4 | 1150 |
--------------------------------
-- @module LayoutParameter
-- @extend Ref
--------------------------------
-- @function [parent=#LayoutParameter] clone
-- @param self
-- @return LayoutParameter#LayoutParameter ret (return value: ccui.LayoutParameter)
--------------------------------
-- @function [parent=#L... | mit |
lvdmaaten/nn | TemporalSubSampling.lua | 44 | 1378 | local TemporalSubSampling, parent = torch.class('nn.TemporalSubSampling', 'nn.Module')
function TemporalSubSampling:__init(inputFrameSize, kW, dW)
parent.__init(self)
dW = dW or 1
self.inputFrameSize = inputFrameSize
self.kW = kW
self.dW = dW
self.weight = torch.Tensor(inputFrameSize)
self.bias... | bsd-3-clause |
kitala1/darkstar | scripts/globals/weaponskills/hard_slash.lua | 25 | 1564 | -----------------------------------
-- Hard Slash
-- Great Sword weapon skill
-- Skill level: 5
-- Delivers a single-hit attack. Damage varies with TP.
-- Modifiers: STR:30%
-- 100%TP 200%TP 300%TP
-- 1.5 1.75 2.0
-----------------------------------
require("scripts/globals/settings");
require("scripts/g... | gpl-3.0 |
DangerCove/libquvi-scripts | share/lua/website/tube8.lua | 4 | 1929 |
-- libquvi-scripts
-- Copyright (C) 2010-2012 quvi project
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library 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 Foundatio... | lgpl-2.1 |
omideblisss/omid | plugins/anti_chat.lua | 62 | 1069 |
antichat = {}-- An empty table for solving multiple kicking problem
do
local function run(msg, matches)
if is_momod(msg) then -- Ignore mods,owner,admins
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)]['settings']['lock_chat'] then
if data[tostring(msg.to.id)]['... | gpl-2.0 |
kitala1/darkstar | scripts/globals/shop.lua | 16 | 2301 | -----------------------------------
-- Author: Dia
--
-- Functions for Shop system
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/conquest");
-----------------------------------
-- Nations
-----------------------------------
SANDORIA = 0;
BASTOK = 1;... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Rabao/npcs/Shiny_Teeth.lua | 36 | 1675 | -----------------------------------
-- Area: Rabao
-- NPC: Shiny Teeth
-- Standard Merchant NPC
-- @pos -30 8 99 247
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/Rabao/Text... | gpl-3.0 |
kitala1/darkstar | scripts/globals/spells/armys_paeon_iii.lua | 31 | 1391 | -----------------------------------------
-- Spell: Army's Paeon III
-- Gradually restores target's HP.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingChe... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Bastok_Mines/npcs/Odoba.lua | 19 | 1144 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Odoba
-- Guild Merchant NPC: Alchemy Guild
-- @pos 108.473 5.017 1.089 234
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require(... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Metalworks/npcs/Glarociquet_TK.lua | 30 | 4750 | -----------------------------------
-- Area: Metalworks
-- NPC: Glarociquet, T.K.
-- @pos 19 -16 -28 237
-- X Grant Signet
-- X Recharge Emperor Band, Empress Band, or Chariot Band
-- X Accepts traded Crystals to fill up the Rank bar to open new Missions.
-- X Sells items in exchange for Conquest Points
-- X Start Sup... | gpl-3.0 |
selaselah/thrift | lib/lua/TSocket.lua | 113 | 2996 | ---- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you may... | apache-2.0 |
d-o/LUA-LIB | K400Examples/recipe.lua | 2 | 4522 | #!/usr/local/bin/lua
-------------------------------------------------------------------------------
-- recipe
--
-- Sample recipe application showing the manipulation of registers and other
-- values and the saving and restoring of these from a database.
----------------------------------------------------------------... | gpl-3.0 |
hanxi/cocos2d-x-v3.1 | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ArmatureDataManager.lua | 6 | 3601 |
--------------------------------
-- @module ArmatureDataManager
-- @extend Ref
--------------------------------
-- @function [parent=#ArmatureDataManager] getAnimationDatas
-- @param self
-- @return map_table#map_table ret (return value: map_table)
--------------------------------
-- @function [parent=#Arma... | mit |
CaptainMaelstrom/duke | src/scripts/libs/gamera.lua | 2 | 5828 | -- gamera.lua v1.0.1
-- Copyright (c) 2012 Enrique García Cota
-- 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,... | mit |
kitala1/darkstar | scripts/zones/Waughroon_Shrine/bcnms/shattering_stars.lua | 13 | 1930 | -----------------------------------
-- Area: Waughroon Shrine
-- Name: Shattering stars - Maat Fight
-- @pos -345 104 -260 144
-----------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Waughroon_Shrine/TextIDs");
----... | gpl-3.0 |
d-o/LUA-LIB | src/rinLibrary/K400Users.lua | 2 | 8293 | -------------------------------------------------------------------------------
--- User related Functions.
-- Functions to read and write user information
-- @module rinLibrary.Device.Users
-- @author Pauli
-- @copyright 2014 Rinstrum Pty Ltd
----------------------------------------------------------------------------... | gpl-3.0 |
Eternym/psychoactive2 | data/spells/lib/spells.lua | 6 | 6574 | --Pre-made areas
--Waves
AREA_WAVE3 = {
{1, 1, 1},
{1, 1, 1},
{0, 3, 0}
}
AREA_WAVE4 = {
{1, 1, 1, 1, 1},
{0, 1, 1, 1, 0},
{0, 1, 1, 1, 0},
{0, 0, 3, 0, 0}
}
AREA_WAVE6 = {
{0, 0, 0, 0, 0},
{0, 1, 3, 1, 0},
{0, 0, 0, 0, 0}
}
AREA_SQUAREWAVE5 = {
{1, 1, 1},
{1, 1, 1},
{1, 1, 1},
{0, 1, 0},
{0, 3, 0}
}
AREA_SQUAREWA... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Mathlouq.lua | 37 | 1029 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Mathlouq
-- Type: Standard NPC
-- @pos -92.892 -7 129.277 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_White... | gpl-3.0 |
IBYoung/oceanbase | oceanbase_0.4/tools/mysql_stress/simple.lua | 12 | 1105 | -- `stress_sqls' table list all sqls used to stress
stress_sqls = {
{
sql = "select id, number from simple_table where id=?;",
params = {
{type = "int", range_min = 1, range_max = 100},
},
weight = 1
},
{
sql = "select /*+ read_static */ id, number from simple_table where id>=?... | gpl-2.0 |
kitala1/darkstar | scripts/globals/spells/bluemagic/animating_wail.lua | 10 | 1202 | -----------------------------------------
-- Spell: Animating Wail
-- Increases attack speed
-- Spell cost: 53 MP
-- Monster Type: Undead
-- Spell Type: Magical (Wind)
-- Blue Magic Points: 5
-- Stat Bonus: HP+20
-- Level: 79
-- Casting Time: 2 Seconds
-- Recast Time: 45 Seconds
-- 5 minutes
--
-- Combos:... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Mhaura/npcs/Blandine.lua | 17 | 2169 | -----------------------------------
-- Area: Mhaura
-- NPC: Blandine
-- Start Quest: The Sand Charmz
-- @pos 23 -7 41 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/global... | gpl-3.0 |
umbrellaTG/sphero | bot/utils.lua | 1 | 26014 | 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... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Port_Windurst/npcs/Alizabe.lua | 36 | 1828 | -----------------------------------
-- Area: Port Windurst
-- NPC: Alizabe
-- Only sells when Windurst controls the Tavnazian Archipelago
-- Only available to those with CoP Ch. 4.1 or higher
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("sc... | gpl-3.0 |
apletnev/koreader | frontend/document/djvudocument.lua | 2 | 4772 | local Blitbuffer = require("ffi/blitbuffer")
local Document = require("document/document")
local DrawContext = require("ffi/drawcontext")
local KoptOptions = require("ui/data/koptoptions")
local DjvuDocument = Document:new{
_document = false,
-- libdjvulibre manages its own additional cache, default value is h... | agpl-3.0 |
kitala1/darkstar | scripts/zones/Ship_bound_for_Mhaura/Zone.lua | 34 | 1464 | -----------------------------------
--
-- Zone: Ship_bound_for_Mhaura (221)
--
-----------------------------------
package.loaded["scripts/zones/Ship_bound_for_Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Ship_bound_for_Mhaura/TextID... | gpl-3.0 |
crabman77/minetest-minetestforfun-server | minetestforfun_game/mods/farming/statistics.lua | 15 | 3382 | local statistics = {}
local ROOT_2 = math.sqrt(2.0)
-- Approximations for erf(x) and erfInv(x) from
-- https://en.wikipedia.org/wiki/Error_function
local erf
local erf_inv
local A = 8 * (math.pi - 3.0)/(3.0 * math.pi * (4.0 - math.pi))
local B = 4.0 / math.pi
local C = 2.0/(math.pi * A)
local D = 1.0 / A
erf = func... | unlicense |
mohammads15/new-super | libs/fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-2.0 |
king98tm/mohammadking98 | libs/fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Monastic_Cavern/npcs/Altar.lua | 27 | 1815 | -----------------------------------
-- Area: Monastic Cavern
-- NPC: Altar
-- Involved in Quests: The Circle of Time
-- @pos 109 -3 -145 150
-----------------------------------
package.loaded["scripts/zones/Monastic_Cavern/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Hadayah.lua | 24 | 1799 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Hadayah
-- Type: Alchemy Image Support
-- @pos -10.470 -6.25 -141.700 241
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/glob... | gpl-3.0 |
ZenityRTS/Zenity | libs/liblobby/api_lobby.lua | 2 | 1486 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "LibLobby API",
desc = "LibLobby GUI Framework",
author = "gajop",
date = "WIP"... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Caedarva_Mire/npcs/HomePoint#1.lua | 12 | 1180 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: HomePoint#1
-- @pos
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Caedarva_Mire/TextIDs");
require("scripts/globals/homepoint");
-------... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/greedie.lua | 17 | 1316 | -----------------------------------------
-- ID: 4500
-- Item: greedie
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 1
-- Mind -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck... | gpl-3.0 |
ZenityRTS/Zenity | libs/chiliui/luaui/chili/chili/controls/combobox.lua | 3 | 4357 | --//=============================================================================
--- ComboBox module
--- ComboBox fields.
-- Inherits from Control.
-- @see control.Control
-- @table ComboBox
-- @tparam {"item1","item2",...} items table of items in the ComboBox, (default {"items"})
-- @int[opt=1] selected id of the s... | gpl-2.0 |
lvdmaaten/nn | SpatialAveragePooling.lua | 37 | 1063 | local SpatialAveragePooling, parent = torch.class('nn.SpatialAveragePooling', 'nn.Module')
function SpatialAveragePooling:__init(kW, kH, dW, dH)
parent.__init(self)
self.kW = kW
self.kH = kH
self.dW = dW or 1
self.dH = dH or 1
self.divide = true
end
function SpatialAveragePooling:updateOutput(input... | bsd-3-clause |
mohammads15/new-super | plugins/lock-forward.lua | 18 | 1291 | do
local function pre_process(msg)
local hash = 'mate:'..msg.to.id
if redis:get(hash) and msg.fwd_from and not is_momod(msg) then
channel_kick_user('channel#id'..msg.to.id,'user#id'..msg.from.id, ok_cb, false)
return "forward has been locked"
end
return msg
end
... | gpl-2.0 |
kiarash14/be | plugins/media.lua | 297 | 1590 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
Mechaniston/FibaroHC_mechHomeBcfg | T_light (147, maxInst = 2).lua | 1 | 5902 | --[[
%% properties
375 value
35 value
%% globals
--]]
--[[
WARNING!
In "ArmedMode" you need to exclude DOOR device from Alarm System!
In "VarMode" (armedMode == false) you need have the global var!
--]]
-- CONSTS
local debugMode = false;
-- Devices ID's
local doorID = 375;
local lightID = 35;
local buttonID = 57... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.