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/zones/LaLoff_Amphitheater/npcs/qm1_1.lua | 12 | 2355 | -----------------------------------
-- Area: LaLoff_Amphitheater
-- NPC: Shimmering Circle (BCNM Entrances)
-------------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
package.loaded["scripts/globals/bcnm"] = nil;
-------------------------------------
require("scripts/glob... | gpl-3.0 |
crabman77/minetest-minetestforfun-server | mods/colormachine/paint_roller.lua | 9 | 1870 | -- This is based upon the paint_roller mod by Krock.
minetest.register_tool("colormachine:paint_roller", {
description = "Paint roller",
inventory_image = "paint_roller.png",
on_use = function(itemstack, placer, pointed_thing)
if pointed_thing.type ~= "node" then
return
end
local idx = placer:get_wield_ind... | unlicense |
kitala1/darkstar | scripts/zones/Sacrarium/npcs/_0s8.lua | 17 | 1694 | -----------------------------------
-- NPC: _0s8 (Wooden Gate)
-- Area: Sacrarium
-- Involved in Mission: Secrets of Worship
-- @pos 45.500 -1.500 10.000 28
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
-----------------------------------
-- ... | gpl-3.0 |
Tigerism/tigerbot | resources/logger.lua | 1 | 1539 | local logger = {}
local http = require("coro-http")
local json = require("json")
local webhook = "https://discordapp.com/api/webhooks/"..client.settings.logger.status[1].."/"..client.settings.logger.status[2]
function logger:sendLog(title,description,color)
local post = {
embeds = {
{
title = title,
... | mit |
mohammadrenjer/renjer_Bot | bot/nod32bot.lua | 1 | 11885 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '2'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
return... | gpl-2.0 |
paulosalvatore/maruim_server | data/npc/lib/npcsystem/npchandler.lua | 1 | 22109 | -- Advanced NPC System by Jiddo
if NpcHandler == nil then
-- Constant talkdelay behaviors.
TALKDELAY_NONE = 0 -- No talkdelay. Npc will reply immedeatly.
TALKDELAY_ONTHINK = 1 -- Talkdelay handled through the onThink callback function. (Default)
TALKDELAY_EVENT = 2 -- Not yet implemented
-- Currently applied tal... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Ghatsad.lua | 6 | 26624 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Ghatsad
-- Standard Info NPC
-- Involved in quest: No String Attached
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/c... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/pumpkin_pie_+1.lua | 35 | 1372 | -----------------------------------------
-- ID: 4447
-- Item: pumpkin_pie_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Magic 45
-- Intelligence 4
-- Charisma -1
-- MP Recovered While Healing 1
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
paulosalvatore/maruim_server | data/actions/lib/actions.lua | 1 | 1278 | function destroyItem(player, target, toPosition)
if target == nil or not target:isItem() then
return false
end
if target.actionid == 2902 and target.itemid == 3422 then
target:transform(3421)
toPosition:sendMagicEffect(CONST_ME_POFF)
addEvent(function(posicao)
local tile = Tile(posicao)
local item = t... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Kuftal_Tunnel/MobIDs.lua | 36 | 2913 | -----------------------------------
-- Area: Kuftal Tunnel
-- Comments: -- posX, posY, posZ
--(Taken from 'mob_spawn_points' table)
-----------------------------------
-- Amemet
Amemet=17490016;
Amemet_PH={
[17490000] = '1', -- 123.046, 0.250, 18.642
[17489994] = '1', -- 112.135, -0.278, 38.281
[1749... | gpl-3.0 |
kitala1/darkstar | scripts/globals/spells/bluemagic/bad_breath.lua | 9 | 3501 | -----------------------------------------
-- Spell: Bad Breath
-- Deals earth damage that inflicts multiple status ailments on enemies within a fan-shaped area originating from the caster
-- Spell cost: 212 MP
-- Monster Type: Plantoids
-- Spell Type: Magical (Earth)
-- Blue Magic Points: 5
-- Stat Bonus: INT+2,... | gpl-3.0 |
kitala1/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 |
efiop/lxc | src/lua-lxc/lxc.lua | 26 | 10159 | --
-- lua lxc module
--
-- Copyright © 2012 Oracle.
--
-- Authors:
-- Dwight Engen <dwight.engen@oracle.com>
--
-- 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 Foundation; either
-- version 2.... | lgpl-2.1 |
kitala1/darkstar | scripts/globals/items/imperial_omelette.lua | 35 | 2869 |
-----------------------------------------
-- ID: 4331
-- Item: imperial_omelette
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Non Elvaan Stats
-- Strength 5
-- Dexterity 2
-- Intelligence -3
-- Mind 4
-- Attack % 22
-- Attack Cap 70
-- Ranged ATT % 22
-- Ranged ATT Cap 7... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/purple_polypore.lua | 36 | 1156 | -----------------------------------------
-- ID: 5682
-- Item: Purple Polypore
-- Food Effect: 5 Min, All Races
-----------------------------------------
-- Strength -6
-- Mind +4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck... | gpl-3.0 |
fqrouter/luci | contrib/luadoc/lua/luadoc/util.lua | 93 | 5826 | -------------------------------------------------------------------------------
-- General utilities.
-- @release $Id: util.lua,v 1.16 2008/02/17 06:42:51 jasonsantos Exp $
-------------------------------------------------------------------------------
local posix = require "nixio.fs"
local type, table, string, io, as... | apache-2.0 |
kitala1/darkstar | scripts/zones/Beaucedine_Glacier/mobs/Tundra_Tiger.lua | 23 | 1425 | -----------------------------------
-- Area: Beaucedine Glacier
-- MOB: Tundra Tiger
-- Note: PH for Nue, Kirata
-----------------------------------
require("scripts/globals/fieldsofvalor");
require("scripts/zones/Beaucedine_Glacier/MobIDs");
-----------------------------------
-- onMobDeath
----... | gpl-3.0 |
kitala1/darkstar | scripts/zones/RuLude_Gardens/npcs/Marshal.lua | 38 | 1032 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Marshal
-- Type: Marshal
-- @zone: 243
-- @pos 41.143 -0.998 -26.566
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------... | gpl-3.0 |
minetest-australopithecus/minetest-australopithecus-utils | mods/utils/stringutil.lua | 2 | 5154 | --[[
Copyright (c) 2014, Robert 'Bobby' Zenz
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the fo... | bsd-2-clause |
kitala1/darkstar | scripts/zones/Apollyon/mobs/Light_Elemental.lua | 119 | 2423 | -----------------------------------
-- Area: Apollyon SW
-- NPC: elemental
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
--------------------------... | gpl-3.0 |
LuaDist2/lua_cliargs | src/cliargs/printer.lua | 2 | 7200 | local wordwrap = require('cliargs.utils.wordwrap')
local filter = require('cliargs.utils.filter')
local K = require('cliargs.constants')
local MAX_COLS = 72
local _
local function create_printer(get_parser_state)
local printer = {}
function printer.print(msg)
return _G.print(msg)
end
local function get_m... | mit |
kitala1/darkstar | scripts/zones/Bostaunieux_Oubliette/npcs/Grounds_Tome.lua | 34 | 1160 | -----------------------------------
-- Area: Bostaunieux Oubliette
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function o... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/serving_of_patriarch_sautee.lua | 36 | 1253 | -----------------------------------------
-- ID: 5677
-- Item: Serving of Patriarch Sautee
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- MP 60
-- Mind 7
-- MP Recovered While Healing 7
-----------------------------------------
require("scripts/globals/status");
-------------------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Fort_Karugo-Narugo_[S]/npcs/Mortimer.lua | 35 | 1055 | ----------------------------------
-- Area: Fort Karugo Narugo [S]
-- NPC: Mortimer
-- Type: Item Deliverer
-- @zone: 96
-- @pos -24.08 -68.508 93.88
--
-----------------------------------
package.loaded["scripts/zones/Fort_Karugo-Narugo_[S]/TextIDs"] = nil;
require("scripts/zones/Fort_Karugo-Narugo_[S]/TextIDs")... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Dragons_Aery/mobs/Fafnir.lua | 15 | 1715 | -----------------------------------
-- Area: Dragons Aery
-- HNM: Fafnir
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize Action
----------------------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Quicksand_Caves/npcs/_5s0.lua | 19 | 1270 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Ornate Door
-- Door blocked by Weight system
-- @pos -21 0 -60 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Caves... | gpl-3.0 |
kitala1/darkstar | scripts/globals/abilities/pets/stone_ii.lua | 20 | 1150 | ---------------------------------------------------
-- Stone 2
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/globals/magic");
---------------------------------------------... | gpl-3.0 |
fqrouter/luci | applications/luci-statistics/luasrc/statistics/rrdtool/definitions/disk.lua | 86 | 1449 | --[[
Luci statistics - df plugin diagram definition
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
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.... | apache-2.0 |
fqrouter/luci | applications/luci-pbx/luasrc/model/cbi/pbx-google.lua | 146 | 5490 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | apache-2.0 |
d-o/LUA-LIB | src/rinLibrary/GenericLCD.lua | 2 | 29973 | -------------------------------------------------------------------------------
--- LCD Services.
-- Functions to configure the LCD
-- @module rinLibrary.Device.LCD
-- @author Darren Pearson
-- @author Merrick Heley
-- @copyright 2014 Rinstrum Pty Ltd
--------------------------------------------------------------------... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/dish_of_spag_nero_di_seppia_+1.lua | 35 | 1798 | -----------------------------------------
-- ID: 5202
-- Item: dish_of_spag_nero_di_seppia_+1
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP % 17 (cap 140)
-- Dexterity 3
-- Vitality 2
-- Agility -1
-- Mind -2
-- Charisma -1
-- Double Attack 1
-- Store TP 6
---------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Zeruhn_Mines/npcs/Zelman.lua | 34 | 1737 | -----------------------------------
-- Area: Zeruhn Mines
-- NPC: Zelman
-- Involved In Quest: Groceries
-----------------------------------
package.loaded["scripts/zones/Zeruhn_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings");
... | gpl-3.0 |
apletnev/koreader | spec/unit/random_spec.lua | 15 | 1031 | describe("random package tests", function()
local random
local function is_magic_char(c)
return c == "8" or c == "9" or c == "A" or c == "B"
end
setup(function()
random = require("frontend/random")
end)
it("should generate uuid without dash", function()
for i = 1, 1000... | agpl-3.0 |
kitala1/darkstar | scripts/globals/spells/pyrohelix.lua | 22 | 1717 | --------------------------------------
-- Spell: Pyrohelix
-- Deals fire damage that gradually reduces
-- a target's HP. Damage dealt is greatly affected by the weather.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/... | gpl-3.0 |
apletnev/koreader | frontend/version.lua | 4 | 1613 | --[[--
This module helps with retrieving version information.
]]
local Version = {}
--- Returns current KOReader git-rev.
-- @treturn string full KOReader git-rev such `v2015.11-982-g704d4238`
function Version:getCurrentRevision()
if not self.rev then
local rev_file = io.open("git-rev", "r")
if re... | agpl-3.0 |
kitala1/darkstar | scripts/zones/Inner_Horutoto_Ruins/npcs/_5cr.lua | 17 | 2435 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: _5cr (Magical Gizmo) #3
-- Involved In Mission: The Horutoto Ruins Experiment
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/... | gpl-3.0 |
kitala1/darkstar | scripts/globals/settings.lua | 2 | 12206 | -----------------------------------------------
------------- GLOBAL SETTINGS -------------
-----------------------------------------------
-- This is to allow server operators to further customize their servers. As more features are added to pXI, the list will surely expand.
-- Anything scripted can be cust... | gpl-3.0 |
apletnev/koreader | plugins/goodreads.koplugin/goodreadsbook.lua | 2 | 8372 | local Blitbuffer = require("ffi/blitbuffer")
local CenterContainer = require("ui/widget/container/centercontainer")
local CloseButton = require("ui/widget/closebutton")
local FrameContainer = require("ui/widget/container/framecontainer")
local Geom = require("ui/geometry")
local Font = require("ui/font")
local Horizont... | agpl-3.0 |
leezhongshan/skynet | lualib/skynet/manager.lua | 72 | 1923 | local skynet = require "skynet"
local c = require "skynet.core"
function skynet.launch(...)
local addr = c.command("LAUNCH", table.concat({...}," "))
if addr then
return tonumber("0x" .. string.sub(addr , 2))
end
end
function skynet.kill(name)
if type(name) == "number" then
skynet.send(".launcher","lua","REMO... | mit |
kitala1/darkstar | scripts/zones/Beaucedine_Glacier/npcs/Luck_Rune.lua | 34 | 1089 | -----------------------------------
-- Area: Beaucedine Glacier
-- NPC: Luck Rune
-- Involved in Quest: Mhaura Fortune
-- @pos 70.736 -37.778 149.624 111
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier/TextIDs"] = nil;
-------------------------------------
require("sc... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Windurst_Waters/npcs/Shohrun-Tuhrun.lua | 36 | 1960 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Shohrun-Tuhrun
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
require("scripts/zones/Windurst... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Geltpix.lua | 36 | 1165 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Geltpix
-- @zone 80
-- @pos 154 -2 103
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
-------------------------------... | gpl-3.0 |
fastmailops/prosody | tests/modulemanager_option_conversion.lua | 2 | 2379 | package.path = "../?.lua;"..package.path;
local api = require "core.modulemanager".api;
local module = setmetatable({}, {__index = api});
local opt = nil;
function module:log() end
function module:get_option(name)
if name == "opt" then
return opt;
else
return nil;
end
end
function test_value(value, returns)
... | mit |
liweitianux/dotfiles | _config/vis/themes/base16-solarized-dark.lua | 1 | 2310 | -- base16-vis (https://github.com/pshevtsov/base16-vis)
-- by Petr Shevtsov
-- Solarized Dark scheme by Ethan Schoonover (http://ethanschoonover.com/solarized)
local lexers = vis.lexers
local colors = {
['base00'] = '#002b36',
['base01'] = '#073642',
['base02'] = '#586e75',
['base03'] = '#657b83',
['base04'] = '... | mit |
kitala1/darkstar | scripts/zones/Bastok_Markets_[S]/npcs/HomePoint#1.lua | 12 | 1276 | -----------------------------------
-- Area: Bastok_Markets_[S]
-- NPC: HomePoint#1
-- @pos -293.048 -10.000 -102.558 87
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Bastok_Markets_[S]/TextID... | gpl-3.0 |
nicodinh/cuberite | MCServer/Plugins/APIDump/Hooks/OnPluginsLoaded.lua | 44 | 2702 | return
{
HOOK_PLUGINS_LOADED =
{
CalledWhen = "All the enabled plugins have been loaded",
DefaultFnName = "OnPluginsLoaded", -- also used as pagename
Desc = [[
This callback gets called when the server finishes loading and initializing plugins. This is the
perfect occasion for a plugin to query other plu... | apache-2.0 |
JacobFischer/Joueur.lua | games/spiders/ai.lua | 2 | 2974 | -- This is where you build your AI for the Spiders game.
local class = require("joueur.utilities.class")
local BaseAI = require("joueur.baseAI")
-- <<-- Creer-Merge: requires -->> - Code you add between this comment and the end comment will be preserved between Creer re-runs.
-- you can add additional require(s) here... | mit |
kitala1/darkstar | scripts/zones/Ordelles_Caves/npcs/qm3.lua | 19 | 1568 | -----------------------------------
-- Area: Ordelle's Caves
-- NPC: ??? (qm3)
-- Involved in Quest: A Squire's Test II
-- @pos -139 0.1 264 193
-------------------------------------
package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/settings")... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Windurst_Woods/npcs/Varun.lua | 19 | 2170 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Varun
-- Type: Standard NPC
-- @zone: 241
-- @pos 7.800 -3.5 -10.064
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
require("scripts/z... | gpl-3.0 |
hanxi/cocos2d-x-v3.1 | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Repeat.lua | 6 | 1435 |
--------------------------------
-- @module Repeat
-- @extend ActionInterval
--------------------------------
-- @function [parent=#Repeat] setInnerAction
-- @param self
-- @param #cc.FiniteTimeAction finitetimeaction
--------------------------------
-- @function [parent=#Repeat] getInnerAction
-- @param s... | mit |
kitala1/darkstar | scripts/zones/Sea_Serpent_Grotto/npcs/Grounds_Tome.lua | 34 | 1151 | -----------------------------------
-- Area: Sea Serpent Grotto
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTr... | gpl-3.0 |
bmcAD/Apache | modules/zip.lua | 1 | 7195 | local ffi = require('ffi')
local Zlib = require('zlib_native')
-- Local File Header
local LFH = ffi.typeof("struct zip_LFH")
-- Central Directory File Header
local CDFH = ffi.typeof("struct zip_CDFH")
-- End of Central Directory
local EoCD = ffi.typeof("struct zip_EoCD")
-- Given a path like /foo/bar and foo//bar/ re... | apache-2.0 |
crabman77/minetest-minetestforfun-server | mods/plantlife_modpack/ferns/init.lua | 9 | 2911 | -----------------------------------------------------------------------------------------------
local title = "Ferns" -- former "Archae Plantae"
local version = "0.2.0"
local mname = "ferns" -- former "archaeplantae"
-----------------------------------------------------------------------------------------------
-- (... | unlicense |
kitala1/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Nivorajean.lua | 38 | 1048 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Nivorajean
-- Type: Standard NPC
-- @zone: 26
-- @pos 15.890 -22.999 13.322
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Dynamis-Jeuno/mobs/Goblin_Statue.lua | 17 | 5156 | -----------------------------------
-- Area: Dynamis Jeuno
-- NPC: Goblin Statue
-- Map1 Position: http://images3.wikia.nocookie.net/__cb20090312005127/ffxi/images/b/bb/Jeu1.jpg
-- Map2 Position: http://images4.wikia.nocookie.net/__cb20090312005155/ffxi/images/3/31/Jeu2.jpg
-- Vanguard Position: http://faranim.li... | gpl-3.0 |
apletnev/koreader | plugins/timesync.koplugin/main.lua | 4 | 1909 | local Device = require("device")
local command
-- TODO(hzj-jie): Does pocketbook provide ntpdate?
if Device:isKobo() then
command = "ntpd -q -n -p pool.ntp.org"
elseif Device:isKindle() or Device:isPocketBook() then
command = "ntpdate pool.ntp.org"
else
return { disabled = true, }
end
local InfoMessage = ... | agpl-3.0 |
kitala1/darkstar | scripts/zones/Northern_San_dOria/npcs/Achantere_TK.lua | 28 | 4907 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Achatere, T.K.
-- 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 ... | gpl-3.0 |
apletnev/koreader | frontend/ui/plugin/switch_plugin.lua | 9 | 3125 | --[[--
SwitchPlugin creates a plugin with a switch to enable or disable it.
See spec/unit/switch_plugin_spec.lua for the usage.
]]
local ConfirmBox = require("ui/widget/confirmbox")
local DataStorage = require("datastorage")
local LuaSettings = require("luasettings")
local UIManager = require("ui/uimanager")
local Wid... | agpl-3.0 |
Taracque/epgp | libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua | 6 | 5620 | --[[-----------------------------------------------------------------------------
ColorPicker Widget
-------------------------------------------------------------------------------]]
local Type, Version = "ColorPicker", 22
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVer... | bsd-3-clause |
kitala1/darkstar | scripts/zones/Palborough_Mines/npcs/HomePoint#1.lua | 12 | 1260 | -----------------------------------
-- Area: Palborough_Mines
-- NPC: HomePoint#1
-- @pos 109 -38.5 -147 143
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Palborough_Mines/TextIDs");
require("s... | gpl-3.0 |
king98tm/mohammadking98 | plugins/groupmanager.lua | 1 | 110255 | local function modadd(msg)
local hash = "gp_lang:"..msg.to.id
local lang = redis:get(hash)
-- superuser and admins only (because sudo are always has privilege)
if not is_admin(msg) then
if not lang then
return '_You are not bot admin_'
else
return 'کاربر گرامی شما سازنده نیستی '
end
end
... | gpl-3.0 |
theonlywild/erfaaan | plugins/chat.lua | 1 | 1626 | local function run(msg)
if msg.text == "سلام" then
return "سلام"
end
if msg.text == "خوبی" then
return "بخوبیت تو خوبی؟"
end
if msg.text == "مرسی" then
return "😊"
end
if msg.text == "روح سوار" then
return "بله"
end
if msg.text == "عرفان" then
return "کارش داری بهم بگو بهش میگممم"
end
if msg.text == "بای روح سوار"... | gpl-2.0 |
mohammads15/new-super | plugins/infull.lua | 9 | 8304 | do
local gorg sefat = 67559249 --put your id here(BOT OWNER ID)
local function setrank(msg, name, value) -- setrank function
local hash = nil
if msg.to.type == 'chat' or msg.to.type == 'channel' then
hash = 'rank:'..msg.to.id..':variables'
end
if hash then
redis:hset(hash, name, value)
return send_m... | gpl-2.0 |
kitala1/darkstar | scripts/globals/items/sandfish.lua | 17 | 1317 | -----------------------------------------
-- ID: 4291
-- Item: sandfish
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 3
-- Mind -5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemChec... | gpl-3.0 |
crabman77/minetest-minetestforfun-server | mods/moreblocks/stairsplus/conversion.lua | 9 | 4118 | --[[
More Blocks: conversion
Copyright (c) 2011-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
-- Function to convert all stairs/slabs/etc nodes from
-- inverted, wall, etc to regular + 6d facedir
local dirs1 = {21, 20, 23, 22, 21}
local dirs2 = {15, 8, 17, ... | unlicense |
JacobFischer/Joueur.lua | games/spiders/weaver.lua | 1 | 5131 | -- Weaver: A Spiderling that can alter existing Webs by weaving to add or remove silk from the Webs, thus altering its strength.
-- 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 func... | mit |
apletnev/koreader | frontend/device/kindle/device.lua | 2 | 20256 | local Generic = require("device/generic/device")
local logger = require("logger")
local function yes() return true end
local function no() return false end -- luacheck: ignore
local function kindleEnableWifi(toggle)
local haslipc, lipc = pcall(require, "liblipclua")
local lipc_handle = nil
if haslipc and... | agpl-3.0 |
lvdmaaten/nn | View.lua | 41 | 2232 | local View, parent = torch.class('nn.View', 'nn.Module')
function View:__init(...)
parent.__init(self)
if select('#', ...) == 1 and torch.typename(select(1, ...)) == 'torch.LongStorage' then
self.size = select(1, ...)
else
self.size = torch.LongStorage({...})
end
self.numElements = 1
loc... | bsd-3-clause |
ld-test/xssfilter | lua/xssfilter.lua | 2 | 11873 | -----------------------------------------------------------------------------
-- Filters XHTML removing all tags that are not explicitly allowed.
--
-- The function parse_xml() is adapted from Roberto Ierusalmischy's collect()
-- (see http://lua-users.org/wiki/LuaXml).
--
-- (c) 2007, 2008 Yuri Takhteyev (yuri@freewis... | mit |
kitala1/darkstar | scripts/zones/Dynamis-Beaucedine/mobs/Angra_Mainyu.lua | 19 | 2392 | -----------------------------------
-- Area: Dynamis Beaucedine
-- NPC: Angra Mainyu
-- Mega Boss
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/keyitems");
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize Action
--... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Dynamis-Beaucedine/mobs/Serjeant_Tombstone.lua | 16 | 3392 | -----------------------------------
-- Area: Dynamis Beaucedine
-- NPC: Serjeant Tombstone
-- Map Position: http://images1.wikia.nocookie.net/__cb20090312005233/ffxi/images/thumb/b/b6/Bea.jpg/375px-Bea.jpg
-----------------------------------
package.loaded["scripts/zones/Dynamis-Beaucedine/TextIDs"] = nil;
-----... | gpl-3.0 |
kitala1/darkstar | scripts/commands/giveitem.lua | 27 | 1612 | ---------------------------------------------------------------------------------------------------
-- func: @giveitem <player> <itemId> <amount> <aug1> <v1> <aug2> <v2> <aug3> <v3> <aug4> <v4>
-- desc: Gives an item to the target player.
------------------------------------------------------------------------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Castle_Oztroja/npcs/Kaa_Toru_the_Just.lua | 19 | 1579 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: Kaa Toru the Just
-- Type: Mission NPC [ Windurst Mission 6-2 NPC ]~
-- @pos -100.188 -62.125 145.422 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
requir... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Dynamis-Valkurm/mobs/Serjeant_Tombstone.lua | 17 | 2167 | -----------------------------------
-- Area: Dynamis Valkurm
-- NPC: Serjeant_Tombstone
-----------------------------------
package.loaded["scripts/zones/Dynamis-Valkurm/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Valkurm/TextIDs");... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Temple_of_Uggalepih/npcs/_mf1.lua | 8 | 1363 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: Granite Door
-- Notes: Door blocked by Temple Guardian
-- @pos -62 0 -99 159
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
-----------------------------------
require("scripts/glo... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/_0rw.lua | 17 | 1303 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: _0rw (Oil Lamp)
-- Notes: Opens south door at J-9 from inside.
-- @pos 103.703 -26.180 83.000 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
re... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Metalworks/npcs/Mighty_Fist.lua | 17 | 2528 | -----------------------------------
-- Area: Metalworks
-- NPC: Mighty Fist
-- Starts & Finishes Quest: The Darksmith (R)
-- Involved in Quest: Dark Legacy
-- @pos -47 2 -30 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
... | gpl-3.0 |
crabman77/minetest-minetestforfun-server | mods/more_chests/secret.lua | 8 | 3850 | local function has_locked_chest_privilege(meta, player)
if player:get_player_name() ~= meta:get_string("owner") then
return false
end
return true
end
local open = "size[8,10]"..
"list[current_name;main;0,0;8,4;]"..
"list[current_player;main;0,5;8,4;]"..
"listring[current_name;main]" ..
"listring[current_play... | unlicense |
kitala1/darkstar | scripts/zones/Carpenters_Landing/Zone.lua | 27 | 3518 | -----------------------------------
--
-- Zone: Carpenters_Landing (2)
--
-----------------------------------
package.loaded["scripts/zones/Carpenters_Landing/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require("scripts/globals/settings");
req... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Outer_Horutoto_Ruins/npcs/_5ei.lua | 19 | 3305 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Ancient Magical Gizmo #5 (I out of E, F, G, H, I, J)
-- Involved In Mission: The Heart of the Matter
-----------------------------------
package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Ordelles_Caves/TextIDs.lua | 5 | 1991 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6538; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6541; -- Obtained: <item>.
GIL_OBTAINED = 6542; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6544; -- Obtained... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Port_Windurst/npcs/Guruna-Maguruna.lua | 36 | 1747 | -----------------------------------
-- Area: Port Windurst
-- NPC: Guruna-Maguruna
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts/zones/Port_Windurs... | gpl-3.0 |
fpkaliii/kdrugs | lua/entities/kdrug_ing/cl_init.lua | 1 | 1196 | include("shared.lua")
function ENT:Draw()
self:DrawModel()
local min, max = self:GetCollisionBounds()
local angles = self:GetAngles()
local text = "meme"
local usedin = {}
if self.ingredient then
text = self.ingredient[1]
if kdrugs then
for id, drug in next, kdrugs.drugs do
for _id, ing in next, drug.i... | mit |
kitala1/darkstar | scripts/zones/The_Garden_of_RuHmet/npcs/_0z0.lua | 12 | 1882 | -----------------------------------
-- Area: The_Garden_of_RuHmet
-- NPC: _0z0
-----------------------------------
package.loaded["scripts/zones/The_Garden_of_RuHmet/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/The_Garden_of_RuHmet/TextIDs");... | gpl-3.0 |
lvdmaaten/nn | SparseJacobian.lua | 61 | 8618 | nn.SparseJacobian = {}
function nn.SparseJacobian.backward (module, input, param, dparam)
local doparam = 0
if param then
doparam = 1
end
-- output deriv
module:forward(input)
local dout = module.output.new():resizeAs(module.output)
-- 1D view
local sdout = module.output.new(dout:stor... | bsd-3-clause |
kitala1/darkstar | scripts/globals/items/handful_of_roasted_almonds.lua | 36 | 1079 | -----------------------------------------
-- ID: 5649
-- Item: Handful of Roasted Almonds
-- Food Effect: 5Min, All Races
-----------------------------------------
-- HP 30
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----------... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/dish_of_spaghetti_boscaiola.lua | 35 | 1721 | -----------------------------------------
-- ID: 5192
-- Item: dish_of_spaghetti_boscaiola
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health % 18
-- Health Cap 120
-- Magic 35
-- Strength -5
-- Dexterity -2
-- Vitality 2
-- Mind 4
-- Magic Regen While Healing 1
----------... | gpl-3.0 |
Tieske/mod11 | spec/mod11_spec.lua | 3 | 4889 |
local mod11 = require("mod11")
describe("modulo 11 tests", function()
it("tests 'new' and '__call'", function()
local v, a = "23456789","/-"
local m = mod11(v, a) -- module call
assert.are_equal(v, m:getverify())
local m = mod11.new(v, a) -- . notation
assert.are_equal(v, m:getverify())
... | mit |
crabman77/minetest-minetestforfun-server | mods/mesecons/mesecons_extrawires/tjunction.lua | 8 | 2331 | local tjunction_nodebox = {
type = "fixed",
fixed = {{ -16/32-0.001, -17/32, -3/32, 16/32+0.001, -13/32, 3/32 },
{ -3/32, -17/32, -16/32+0.001, 3/32, -13/32, -3/32},}
}
local tjunction_selectionbox = {
type = "fixed",
fixed = { -16/32-0.001, -18/32, -16/32, 16/32+0.001, -12/32, 7/32 },
}
local tjunction_get_... | unlicense |
hanxi/cocos2d-x-v3.1 | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Ripple3D.lua | 3 | 1514 |
--------------------------------
-- @module Ripple3D
-- @extend Grid3DAction
--------------------------------
-- @function [parent=#Ripple3D] setAmplitudeRate
-- @param self
-- @param #float float
--------------------------------
-- @function [parent=#Ripple3D] getAmplitudeRate
-- @param self
-- @return fl... | mit |
kitala1/darkstar | scripts/zones/Port_Jeuno/npcs/Chudigrimane.lua | 29 | 1189 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Chudigrimane
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
require("scripts/zones/Port_Jeuno/TextIDs");
-----------------------------------
-- onTrade Action
--------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Grand_Palace_of_HuXzoi/Zone.lua | 19 | 4371 | -----------------------------------
--
-- Zone: Grand_Palace_of_HuXzoi (34)
--
-----------------------------------
package.loaded["scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Grand_Palace_of_HuXzoi/TextID... | gpl-3.0 |
kaustavha/rackspace-monitoring-agent | tests/test-check.lua | 3 | 19819 | --[[
Copyright 2015 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | apache-2.0 |
adiyoss/DeepWDM | back_end/loss.lua | 1 | 1137 | ----------------------------------------------------------------------
require 'torch' -- torch
require 'nn' -- provides all sorts of loss functions
----------------------------------------------------------------------
-- parse command line arguments
if not opt then
print '==> processing options'
cmd = ... | mit |
kitala1/darkstar | scripts/zones/Temenos/bcnms/Temenos_Western_Tower.lua | 13 | 1038 | -----------------------------------
-- Area: Temenos
-- Name:
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[Temenos_W_Tower]UniqueID",GenerateLimbusKey());
HideArmouryCrates(GetInstanceRegion(1298),TEMENOS);... | gpl-3.0 |
Taracque/epgp | libs/LibJSON-1.0/Tests/base.lua | 1 | 3273 | local function escape_char(c)
return ("\\%03d"):format(c:byte())
end
local function table_len(t)
for i = 1, #t do
if t[i] == nil then
return i-1
end
end
return #t
end
function pprint(...)
print(ptostring(...))
end
local function key_sort(alpha, bravo)
local type_alpha, type_bravo = typ... | bsd-3-clause |
darrenatdesignory/CG | scripts/fontbox.lua | 1 | 34579 | --[[---------------------------------------------------------------------------
--------------------------------- DESCRIPTION ---------------------------------
Fontbox version 1.1
Copyright Torben Ratzlaff
-------------------------------------------------------------------------------
----------------------------------... | mit |
tetoali605/THETETOO_A7A | plugins/en-supergroup.lua | 3 | 109352 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY tetoo ▀▄ ▄▀
▀▄ ▄▀ BY nmore (@l_l_lo) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY l_l_ll ▀▄ ▄▀
▀▄ ▄▀ broadcast : الســوبر ▀▄ ▄▀
▀▄▀▀▄▄▀▀▄▄▀▄▄▀... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Temenos/mobs/Ice_Elemental.lua | 17 | 1719 | -----------------------------------
-- Area: Temenos E T
-- NPC: Ice_Elemental
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
------------------------... | gpl-3.0 |
MrUnknownGamer/pointshop | lua/pointshop/cl_init.lua | 4 | 4700 | --[[
pointshop/cl_init.lua
first file included clientside.
]]--
include "sh_init.lua"
include "cl_player_extension.lua"
include "vgui/DPointShopMenu.lua"
include "vgui/DPointShopItem.lua"
include "vgui/DPointShopPreview.lua"
include "vgui/DPointShopColorChooser.lua"
include "vgui/DPointShopGivePoints.lua"
PS.ShopM... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.