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 |
|---|---|---|---|---|---|
gwx/tome-grayswandir-hurried-halfling | data/libs/load-utils-0.3.lua | 1 | 3788 | -- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/plate_of_tentacle_sushi_+1.lua | 21 | 1828 | -----------------------------------------
-- ID: 5216
-- Item: plate_of_tentacle_sushi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- HP 20
-- Dexterity 3
-- Agility 3
-- Mind -1
-- Accuracy % 19 (no cap on HQ)
-- Ranged Accuracy % 19 (no cap on HQ)
-- Double Attack 1
-----... | gpl-3.0 |
crabman77/minetest-minetestforfun-server | mods/framedglass/init.lua | 10 | 4388 | -- Minetest 0.4.7 mod: framedglass
minetest.register_craft({
output = 'framedglass:wooden_framed_glass 4',
recipe = {
{'default:glass', 'default:glass', 'default:stick'},
{'default:glass', 'default:glass', 'default:stick'},
{'default:stick', 'default:stick', ''},
}
})
minetest.register_craft({
output = 'fra... | unlicense |
JoaoVitor123/gpm | tests/alternative/Network.lua | 1 | 4472 |
return {
Network = function(unitTest)
local roads = CellularSpace{
file = filePath("roads.shp", "gpm"),
geometry = true
}
local communities = CellularSpace{
file = filePath("communities.shp", "gpm"),
geometry = true
}
local error_func = function()
Network{
lines = 2,
target = commun... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/slice_of_ziz_meat.lua | 18 | 1283 | -----------------------------------------
-- ID: 5581
-- Item: Slice of Ziz Meat
-- Effect: 5 Minutes, food effect, Galka Only
-----------------------------------------
-- Strength +4
-- Intelligence -6
-----------------------------------------
require("scripts/globals/status");
--------------------------------------... | gpl-3.0 |
mamadtnt/edit- | plugins/all.lua | 9 | 5527 | 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 |
kitala1/darkstar | scripts/zones/Monastic_Cavern/TextIDs.lua | 5 | 1704 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6382; -- Obtained: <item>.
GIL_OBTAINED = 6383; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6385; -- Obtained... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/kazham_pineapple.lua | 35 | 1203 | -----------------------------------------
-- ID: 4432
-- Item: kazham_pineapple
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -5
-- Intelligence 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Port_Bastok/npcs/Aishah.lua | 37 | 1043 | -----------------------------------
-- Area: Port Bastok
-- NPC: Aishah
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Port_Bastok/TextIDs");
... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/cluster_of_paprika.lua | 36 | 1233 | -----------------------------------------
-- ID: 5740
-- Item: Cluster of Paprika
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility 1
-- Vitality -3
-- Defense -1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-... | gpl-3.0 |
ZenityRTS/Zenity | libs/liblobby/lobby/wrapper.lua | 1 | 11706 | local function explode(div,str)
if (div=='') then return false end
local pos,arr = 0,{}
-- for each divider found
for st,sp in function() return string.find(str,div,pos,true) end do
table.insert(arr,string.sub(str,pos,st-1)) -- Attach chars left of current divider
pos = sp + 1 -- Jump past current divider
end
t... | gpl-2.0 |
mohammads15/new-super | plugins/anti_spam.lua | 191 | 5291 | --An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id == our_id then
return msg
end
-- Save... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/qm2.lua | 34 | 1032 | -----------------------------------
-- Area: Phomiuna Aqueducts
-- NPC: qm2 (???)
-- Notes: Open south door @ F-7
-- @pos -75.329 -24.636 92.512 27
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trad... | gpl-3.0 |
hanxi/cocos2d-x-v3.1 | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Skin.lua | 3 | 2066 |
--------------------------------
-- @module Skin
-- @extend Sprite
--------------------------------
-- @function [parent=#Skin] getBone
-- @param self
-- @return Bone#Bone ret (return value: ccs.Bone)
--------------------------------
-- @function [parent=#Skin] getNodeToWorldTransformAR
-- @param self
-- @... | mit |
kitala1/darkstar | scripts/zones/Port_Windurst/npcs/Sheia_Pohrichamaha.lua | 36 | 1535 | -----------------------------------
-- Area: Port Windurst
-- NPC: Sheia Pohrichamaha
-- Only sells when Windurst controlls Fauregandi Region
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/z... | gpl-3.0 |
JacobFischer/Joueur.lua | games/newtonian/ai.lua | 2 | 5217 | -- This is where you build your AI for the Newtonian 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) he... | mit |
kitala1/darkstar | scripts/zones/Rabao/npcs/HomePoint#1.lua | 12 | 1234 | -----------------------------------
-- Area: Rabao
-- NPC: HomePoint#1
-- @pos -29.276 0.001 -76.585 247
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Rabao/TextIDs");
require("scripts/globals/homepoint")... | gpl-3.0 |
leezhongshan/skynet | examples/client.lua | 67 | 2101 | package.cpath = "luaclib/?.so"
package.path = "lualib/?.lua;examples/?.lua"
if _VERSION ~= "Lua 5.3" then
error "Use lua 5.3"
end
local socket = require "clientsocket"
local proto = require "proto"
local sproto = require "sproto"
local host = sproto.new(proto.s2c):host "package"
local request = host:attach(sproto.n... | mit |
kitala1/darkstar | scripts/zones/Port_Windurst/npcs/Kumama.lua | 36 | 1748 | -----------------------------------
-- Area: Port Windurst
-- NPC: Kumama
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts/zones/Port_Windurst/TextIDs... | gpl-3.0 |
kitala1/darkstar | scripts/globals/abilities/feral_howl.lua | 58 | 3525 | ---------------------------------------------------
-- Ability: Feral Howl
-- Terrorizes the target.
-- Obtained: Beastmaster Level 75
-- Recast Time: 0:05:00
-- Duration: Apprx. 0:00:01 - 0:00:10
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status")... | gpl-3.0 |
kitala1/darkstar | scripts/zones/AlTaieu/npcs/Auroral_Updraft.lua | 9 | 1769 | -----------------------------------
-- Area: Al'Taieu
-- NPC: Auroral Updraft
-- Type: Standard NPC
-----------------------------------
package.loaded["scripts/zones/AlTaieu/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/AlTaieu/TextIDs");
-----------------------------------... | gpl-3.0 |
kiarash14/be | plugins/gnuplot.lua | 622 | 1813 | --[[
* Gnuplot plugin by psykomantis
* dependencies:
* - gnuplot 5.00
* - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html
*
]]
-- Gnuplot needs absolute path for the plot, so i run some commands to find where we are
local outputFile = io.popen("pwd","r")
io.input(outputFile... | gpl-2.0 |
kitala1/darkstar | scripts/globals/abilities/drain_samba_ii.lua | 10 | 1470 | -----------------------------------
-- Ability: Drain Samba II
-- Inflicts the next target you strike with Drain Daze, allowing all those engaged in battle with it to drain its HP.
-- Obtained: Dancer Level 35
-- TP Required: 25%
-- Recast Time: 1:00
-- Duration: 1:30
-----------------------------------
requ... | gpl-3.0 |
kitala1/darkstar | scripts/zones/QuBia_Arena/bcnms/those_who_lurk_in_shadows.lua | 59 | 2394 | -----------------------------------
-- Area: Qu'Bia Arena
-- NPC: Those Who Lurk in Shadows
-- @pos -221 -24 19 206
-----------------------------------
package.loaded["scripts/zones/QuBia_Arena/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions"... | gpl-3.0 |
crabman77/minetest-minetestforfun-server | minetestforfun_game/mods/flowers/init.lua | 6 | 8442 | -- Minetest 0.4 mod: default
-- See README.txt for licensing and other information.
-- Namespace for functions
flowers = {}
-- Map Generation
dofile(minetest.get_modpath("flowers") .. "/mapgen.lua")
--
-- Flowers
--
-- Aliases for original flowers mod
minetest.register_alias("flowers:flower_rose", "flowers:ro... | unlicense |
kitala1/darkstar | scripts/globals/weaponskills/vorpal_scythe.lua | 25 | 1561 | -----------------------------------
-- Vorpal Scythe
-- Scythe weapon skill
-- Skill level: 150
-- Delivers a single-hit attack. params.crit varies with TP.
-- Modifiers: STR:100%
-- 100%TP 200%TP 300%TP
-- 1.0 1.0 1.0
-----------------------------------
require("scripts/globals/settings");
require("scri... | gpl-3.0 |
fqrouter/luci | applications/luci-firewall/luasrc/tools/firewall.lua | 26 | 6073 | --[[
LuCI - Lua Configuration Interface
Copyright 2011-2012 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
]]--
mo... | apache-2.0 |
kitala1/darkstar | scripts/zones/Mhaura/npcs/Panoru-Kanoru.lua | 34 | 1081 | ----------------------------------
-- Area: Mhaura
-- NPC: Panoru-Kanoru
-- Type: Item Deliverer
-- @pos 5.241 -4.035 93.891 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mhaura/TextIDs");
-------... | gpl-3.0 |
apletnev/koreader | frontend/ui/widget/notification.lua | 2 | 2428 | --[[--
Widget that displays a tiny notification at the top of the screen.
--]]
local Blitbuffer = require("ffi/blitbuffer")
local CenterContainer = require("ui/widget/container/centercontainer")
local Device = require("device")
local Font = require("ui/font")
local FrameContainer = require("ui/widget/container/frameco... | agpl-3.0 |
kitala1/darkstar | scripts/zones/Kazham-Jeuno_Airship/Zone.lua | 28 | 1458 | -----------------------------------
--
-- Zone: Kazham-Jeuno_Airship
--
-----------------------------------
-----------------------------------
-- onInitialize
-----------------------------------
function onInitialize(zone)
end;
-----------------------------------
-- onZoneIn
------------------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/The_Garden_of_RuHmet/npcs/_iz2.lua | 19 | 1961 | -----------------------------------
-- Area: The Garden of RuHmet
-- NPC: _iz2 (Ebon_Panel)
-- @pos 422.351 -5.180 -100.000 35 | Hume Tower
-----------------------------------
package.loaded["scripts/zones/The_Garden_of_RuHmet/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Garden_o... | gpl-3.0 |
kitala1/darkstar | scripts/globals/spells/bluemagic/dimensional_death.lua | 28 | 1767 | -----------------------------------------
-- Spell: Dimensional Death
-- Damage varies with TP
-- Spell cost: 48 MP
-- Monster Type: Undead
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 5
-- Stat Bonus: DEX+1, CHR+1, HP+5
-- Level: 60
-- Casting Time: 0.5 seconds
-- Recast Time: 23.75 seconds
-- Skil... | gpl-3.0 |
abcd1f2/redis_documents | deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | bsd-3-clause |
abhiklodh/redis | deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | bsd-3-clause |
kitala1/darkstar | scripts/zones/Cloister_of_Tides/mobs/Leviathan_Prime.lua | 12 | 1904 | -----------------------------------
-- Area: Cloister of Tides
-- NPC: Leviathan Prime
-- Involved in Quest: Trial by Water, Trial Size Trial by Water
-- Involved in Mission: ASA-4 Sugar Coated Directive
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems... | gpl-3.0 |
mikedowney-co-uk/nodemcu | raspberrypi/serial.lua | 1 | 1095 | -- Listen on the serial port for a colour.
-- Toggle the colour of the LED.
green=2
blue=1
red=3
gpio.mode(red,gpio.OUTPUT)
gpio.mode(green,gpio.OUTPUT)
gpio.mode(blue,gpio.OUTPUT)
-- Start with the LEDs off
gpio.write(red,gpio.LOW)
gpio.write(green,gpio.LOW)
gpio.write(blue,gpio.LOW)
uart.setup(0,115200,8, uart.PAR... | mit |
kitala1/darkstar | scripts/globals/items/kalamar.lua | 18 | 1255 | -----------------------------------------
-- ID: 5448
-- Item: Kalamar
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 3
-- Mind -5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----------... | gpl-3.0 |
Teaonly/easyLearning.js | qulogo/util.lua | 1 | 1217 | require('torch')
require('image')
local json = require('cjson')
local loadConfig = function(opt)
-- Loading dataset's config file
local fh = io.open(opt.d .. '/config.json')
local configString = fh:read("*all")
local config = json.decode(configString)
-- Computing logo black mask (zero index)
... | mit |
kitala1/darkstar | scripts/zones/Lower_Jeuno/TextIDs.lua | 3 | 5200 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6382; -- Obtained: <item>.
GIL_OBTAINED = 6383; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6385; -- Obtained... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Buburimu_Peninsula/npcs/Five_of_Spades.lua | 17 | 1482 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Five of Spades
-- Invloved in quests: A Greeting Cardian
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Buburimu_Peninsula/... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Ordelles_Caves/Zone.lua | 13 | 2039 | -----------------------------------
--
-- Zone: Ordelles_Caves (193)
--
-----------------------------------
package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Ordelles_C... | gpl-3.0 |
amirkingred/nod2 | plugins/time.lua | 94 | 3004 | -- 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 |
mohammadrenjer/renjer_Bot | plugins/time.lua | 94 | 3004 | -- 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 |
NiFiLocal/nifi-minifi-cpp | thirdparty/civetweb-1.10/test/filehandler.lua | 11 | 2399 | function send_ok()
mg.write("HTTP/1.0 200 OK\r\n")
mg.write("Connection: close\r\n")
mg.write("Date: " .. os.date("%a, %d %b %Y %H:%M:%S GMT") .. "\r\n")
end
function send_not_found()
mg.write("HTTP/1.0 404 Not Found\r\n")
mg.write("Connection: close\r\n")
mg.write("Date: " .. os.date("%a, %d %b %Y %H... | apache-2.0 |
minetest-australopithecus/minetest-australopithecus-utils | mods/utils/textureutil.lua | 2 | 3641 | --[[
Copyright (c) 2015, 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/globals/items/ogre_eel.lua | 17 | 1389 | -----------------------------------------
-- ID: 4481
-- Item: ogre_eel
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-- Evasion 5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
... | gpl-3.0 |
kitala1/darkstar | scripts/globals/mobskills/Trembling.lua | 19 | 1093 | ---------------------------------------------
-- Trembling
--
-- Description: Deals physical damage to enemies within an area of effect. Additional effect: Dispel
-- Type: Physical
-- Wipes Shadows
-- Range: 10' radial
---------------------------------------------
require("scripts/globals/settings");
require("scri... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/goblin_mushpot.lua | 35 | 1300 | -----------------------------------------
-- ID: 4543
-- Item: goblin_mushpot
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Mind 10
-- Charisma -5
-- Dark Resist 10
-----------------------------------------
require("scripts/globals/status");
-------------------------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Port_San_dOria/npcs/Nimia.lua | 36 | 1942 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Nimia
-- Only sells when San d'Oria controlls Elshimo Lowlands
-- Working 100%
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/sho... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Caedarva_Mire/npcs/Logging_Point.lua | 29 | 1101 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: Logging Point
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/logging");
require("scripts/zones/Caedarva_Mire/TextIDs");
-----... | gpl-3.0 |
leezhongshan/skynet | test/testsocket.lua | 80 | 1078 | local skynet = require "skynet"
local socket = require "socket"
local mode , id = ...
local function echo(id)
socket.start(id)
while true do
local str = socket.read(id)
if str then
socket.write(id, str)
else
socket.close(id)
return
end
end
end
if mode == "agent" then
id = tonumber(id)
skynet.... | mit |
kitala1/darkstar | scripts/zones/Gusgen_Mines/npcs/_5g7.lua | 12 | 2606 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: Strange Apparatus
-- @pos: 219 -39 255 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
require("scripts/zones/Gusgen_Mines/TextIDs");
require("scripts/globals/strangeapparatus");
--------------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Mordion_Gaol/Zone.lua | 32 | 1433 | -----------------------------------
--
-- Zone: Mordion_Gaol
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Mordion_Gaol/TextIDs"] = nil;
require("scripts/zones/Mordion_Gaol/TextIDs");
-----------------------------------
-- onInitialize
-------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Lower_Jeuno/npcs/Chetak.lua | 37 | 1430 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Chetak
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
-----------------------------------
... | gpl-3.0 |
JavidTeam/TeleJavid | libs/serpent.lua | 656 | 7877 | local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
local badtype = {thread = true, userdata = true, cdata = true}
lo... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Konschtat_Highlands/npcs/Signpost3.lua | 34 | 1034 | -----------------------------------
-- Area: Konschtat Highlands
-- NPC: Signpost
-- @pos -221 17 139 108
-----------------------------------
package.loaded["scripts/zones/Konschtat_Highlands/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Konschtat_Highlands/TextIDs");
--------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Gusgen_Mines/npcs/_5g1.lua | 34 | 1104 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: _5g1 (Door B)
-- @pos 20.002 -42.398 -25.499 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Gusgen_Mines/TextIDs");
-------------... | gpl-3.0 |
leezhongshan/skynet | lualib/cluster.lua | 48 | 1257 | local skynet = require "skynet"
local clusterd
local cluster = {}
function cluster.call(node, address, ...)
-- skynet.pack(...) will free by cluster.core.packrequest
return skynet.call(clusterd, "lua", "req", node, address, skynet.pack(...))
end
function cluster.open(port)
if type(port) == "string" then
skynet.... | mit |
kitala1/darkstar | scripts/commands/reloadglobal.lua | 26 | 1230 | ---------------------------------------------------------------------------------------------------
-- func: @reloadglobal
-- desc: Attempt to reload specified global lua without a restart.
--
-- Use with caution, some files ( like player.lua )
-- can cause you problems if you reload them using this.
-- This comm... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/crayfish.lua | 17 | 1408 | -----------------------------------------
-- ID: 4472
-- Item: crayfish
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity -3
-- Vitality 1
-- defense 10
-----------------------------------------
require("scripts/globals/status");
-------------------------------------... | gpl-3.0 |
elkingtonmcb/shogun | examples/undocumented/lua_modular/kernel_comm_ulong_string_modular.lua | 21 | 1367 | require 'modshogun'
require 'load'
traindat = load_dna('../data/fm_train_dna.dat')
testdat = load_dna('../data/fm_test_dna.dat')
parameter_list = {{traindat,testdat,3,0,false},{traindat,testdat,4,0,false}}
function kernel_comm_ulong_string_modular (fm_train_dna,fm_test_dna, order, gap, reverse)
--charfeat=modshogun... | gpl-3.0 |
kitala1/darkstar | scripts/globals/items/bunny_ball.lua | 35 | 1739 | -----------------------------------------
-- ID: 4349
-- Item: Bunny Ball
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Health 10
-- Strength 2
-- Vitality 2
-- Intelligence -1
-- Attack % 30
-- Attack Cap 25
-- Ranged ATT % 30
-- Ranged ATT Cap 25
-------------------------... | gpl-3.0 |
LuaDist2/phpass | spec/phppass_spec.lua | 3 | 1767 | -- lua-phpass, Lua implementation of the portable
-- PHP password hashing framework
-- Copyright (C) 2015 Boris Nagaev
-- See the LICENSE file for terms of use.
describe("phpass", function()
it("checks phpass hash of password test12345", function()
local phpass = require('phpass')
assert.truthy(php... | mit |
kitala1/darkstar | scripts/zones/Hall_of_the_Gods/npcs/Shimmering_Circle.lua | 17 | 1786 | -----------------------------------
-- Area: Hall of the Gods
-- NPC: Shimmering Circle
-- Lifts players up to the sky!
-- @pos 0 -20 147 251
-----------------------------------
package.loaded["scripts/zones/Hall_of_the_Gods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyite... | gpl-3.0 |
dangerrr/dangerrr | plugins/rss.lua | 700 | 5434 | local function get_base_redis(id, option, extra)
local ex = ''
if option ~= nil then
ex = ex .. ':' .. option
if extra ~= nil then
ex = ex .. ':' .. extra
end
end
return 'rss:' .. id .. ex
end
local function prot_url(url)
local url, h = string.gsub(url, "http://", "")
local... | gpl-2.0 |
rezaph/Nano-bot | plugins/welcome.lua | 190 | 3526 | local add_user_cfg = load_from_file('data/add_user_cfg.lua')
local function template_add_user(base, to_username, from_username, chat_name, chat_id)
base = base or ''
to_username = '@' .. (to_username or '')
from_username = '@' .. (from_username or '')
chat_name = string.gsub(chat_name, '_', ' ') or ''
c... | gpl-2.0 |
kitala1/darkstar | scripts/globals/items/choco-ligar.lua | 36 | 1156 | -----------------------------------------
-- ID: 5919
-- Item: Choco-ligar
-- Food Effect: 3 Min, All Races
-----------------------------------------
-- Vitality 1
-- Speed 12.5%
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----... | gpl-3.0 |
leezhongshan/skynet | service/cslave.lua | 50 | 6448 | local skynet = require "skynet"
local socket = require "socket"
require "skynet.manager" -- import skynet.launch, ...
local table = table
local slaves = {}
local connect_queue = {}
local globalname = {}
local queryname = {}
local harbor = {}
local harbor_service
local monitor = {}
local monitor_master_set = {}
local ... | mit |
cjkoenig/packages | net/prosody/files/prosody.cfg.lua | 147 | 7257 | -- Prosody Example Configuration File
--
-- Information on configuring Prosody can be found on our
-- website at http://prosody.im/doc/configure
--
-- Tip: You can check that the syntax of this file is correct
-- when you have finished by running: luac -p prosody.cfg.lua
-- If there are any errors, it will let you know... | gpl-2.0 |
tetoali605/THETETOO_A7A | plugins/en_leave.lua | 3 | 1370 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY tetoo ▀▄ ▄▀
▀▄ ▄▀ BY nmore (@l_l_lo) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY l_l_ll ▀▄ ▄▀
▀▄ ▄▀ broadcast : مغادرة البوت ▀▄ ▄▀
▀▄▀▀▄▄▀▀▄▄▀▄▄▀▀... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Northern_San_dOria/npcs/Shakir.lua | 38 | 1046 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Shakir
-- Type: Standard NPC
-- @zone: 231
-- @pos 48.952 -2.999 -16.687
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
---... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Upper_Jeuno/npcs/Coumuna.lua | 37 | 1325 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Coumuna
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
require("scripts/zones/Upper_Jeuno/TextIDs");
-----------------------------------
... | gpl-3.0 |
apletnev/koreader | frontend/ui/opdsparser.lua | 5 | 2615 | --[[
This code is derived from the LAPHLibs which can be found here:
https://github.com/Wiladams/LAPHLibs
--]]
local util = require("ffi/util")
local luxl = require("luxl")
local ffi = require("ffi")
local OPDSParser = {}
local unescape_map = {
["lt"] = "<",
["gt"] = ">",
["amp"] = "&",
["qu... | agpl-3.0 |
paulosalvatore/maruim_server | data/talkactions/scripts/mccheck.lua | 40 | 1027 | function onSay(player, words, param)
if not player:getGroup():getAccess() then
return true
end
if player:getAccountType() < ACCOUNT_TYPE_GOD then
return false
end
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Multiclient Check List:")
local ipList = {}
local players = Game.getPlayers()
for i = 1, ... | gpl-2.0 |
kitala1/darkstar | scripts/globals/mobskills/Vorpal_Blade.lua | 7 | 1544 | ---------------------------------------------
-- Vorpal Blade
--
-- Description: Delivers a four-hit attack. Chance of critical varies with TP.
-- Type: Physical
-- Shadow per hit
-- Range: Melee
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Tateeya.lua | 34 | 2468 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Tateeya
-- Automaton Attachment Unlocks
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
... | gpl-3.0 |
kitala1/darkstar | scripts/zones/West_Ronfaure/npcs/Adalefont.lua | 19 | 1064 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Adalefont
-- @pos -176.000 -61.999 377.460 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/West_Ronfa... | gpl-3.0 |
dani-sj/danyalevil | plugins/all.lua | 1321 | 4661 | 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 |
hassanhp/TOPNOB | plugins/all.lua | 1321 | 4661 | 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 |
rezaph/Nano-bot | plugins/all.lua | 1321 | 4661 | 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 |
kitala1/darkstar | scripts/zones/Port_Bastok/npcs/Steel_Bones.lua | 36 | 1727 | -----------------------------------
-- Area: Port Bastok
-- NPC: Steel Bones
-- Standard Info NPC
-- Involved in Quest: Guest of Hauteur
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
requir... | gpl-3.0 |
gwx/tome-grayswandir-hurried-halfling | hooks/load.lua | 5 | 5351 | -- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful... | gpl-3.0 |
nicodinh/cuberite | MCServer/Plugins/APIDump/Hooks/OnKilled.lua | 38 | 1204 | return
{
HOOK_KILLED =
{
CalledWhen = "A player or a mob died.",
DefaultFnName = "OnKilled",
Desc = [[
This hook is called whenever player or a mob dies. It can be used to change the death message.
]],
Params =
{
{ Name = "Victim", Type = "{{cEntity}}", Notes = "The player or mob that died" },
... | apache-2.0 |
kitala1/darkstar | scripts/globals/items/konigskuchen.lua | 35 | 1372 | -----------------------------------------
-- ID: 5614
-- Item: konigskuchen
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 8
-- Magic % 3
-- Magic Cap 13
-- Intelligence 2
-----------------------------------------
require("scripts/globals/status");
-----------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Spire_of_Dem/npcs/_0j1.lua | 36 | 1313 | -----------------------------------
-- Area: Spire_of_Dem
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Dem/TextIDs");
---------------... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Tavnazian_Safehold/Zone.lua | 7 | 3137 | -----------------------------------
--
-- Zone: Tavnazian_Safehold (26)
--
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/missions");
require("scripts/zones/Tavnazian... | gpl-3.0 |
kitala1/darkstar | scripts/zones/Dynamis-Beaucedine/mobs/Avatar_Icon.lua | 16 | 3417 | -----------------------------------
-- Area: Dynamis Beaucedine
-- NPC: Avatar Icon
-- 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 |
tynaut/EggstraClucks | scripts/creature.lua | 2 | 18785 | --------------------------------------------------------------------------------
creature = {
starvation = false,
oldage = true,
realtime = true,
furTime = 720,
maxHunger = 150,
barTicks = 8,
day = 86400,
pheromones = {
resource = 0.2,
pregnancy = 0.5,
gender = 0.5,
energy = 0.8
},
f... | apache-2.0 |
kitala1/darkstar | scripts/globals/items/balik_sis.lua | 35 | 1661 | -----------------------------------------
-- ID: 5600
-- Item: Balik Sis
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 4
-- Mind -2
-- Attack % 13
-- Attack Cap 40
-- Ranged ACC 1
-- Ranged ATT % 13
-- Ranged ATT Cap 40
-----------------------------------------
r... | gpl-3.0 |
Pulse-Eight/drivers | Control4/neo4_professional_pulse-eight/common/p8init.lua | 8 | 3010 | require "common.p8declares"
require "common.p8properties"
require "lib.c4_log"
require "lib.c4_timer"
gForceLogging = false
function ON_DRIVER_INIT.p8init()
-- Create Log Timer
gC4LogTimer = c4_timer:new("Log Timer", 45, "MINUTES", OnLogTimerExpired)
end
function OnLogTimerExpired()
LogWarn("Turning Log Mode Off... | apache-2.0 |
Pulse-Eight/drivers | Control4/cec_source_pulse-eight/common/p8init.lua | 8 | 3010 | require "common.p8declares"
require "common.p8properties"
require "lib.c4_log"
require "lib.c4_timer"
gForceLogging = false
function ON_DRIVER_INIT.p8init()
-- Create Log Timer
gC4LogTimer = c4_timer:new("Log Timer", 45, "MINUTES", OnLogTimerExpired)
end
function OnLogTimerExpired()
LogWarn("Turning Log Mode Off... | apache-2.0 |
Pulse-Eight/drivers | Control4/sky_q_ip_pulse-eight/common/p8init.lua | 8 | 3010 | require "common.p8declares"
require "common.p8properties"
require "lib.c4_log"
require "lib.c4_timer"
gForceLogging = false
function ON_DRIVER_INIT.p8init()
-- Create Log Timer
gC4LogTimer = c4_timer:new("Log Timer", 45, "MINUTES", OnLogTimerExpired)
end
function OnLogTimerExpired()
LogWarn("Turning Log Mode Off... | apache-2.0 |
Pulse-Eight/drivers | Control4/sky_hd_ip_pulse-eight/common/p8init.lua | 8 | 3010 | require "common.p8declares"
require "common.p8properties"
require "lib.c4_log"
require "lib.c4_timer"
gForceLogging = false
function ON_DRIVER_INIT.p8init()
-- Create Log Timer
gC4LogTimer = c4_timer:new("Log Timer", 45, "MINUTES", OnLogTimerExpired)
end
function OnLogTimerExpired()
LogWarn("Turning Log Mode Off... | apache-2.0 |
marczych/PeggleDamacy | sound.lua | 1 | 2505 | local mainMusic = {}
local chris = {}
local scale = {}
local isChrising
local sound = Class {
init = function(self)
chris = love.audio.newSource("assets/sounds/chris.ogg", "static")
chris:setLooping(true)
isChrising = false
table.insert(scale, love.audio.newSource("assets/sounds/pegs/c1.ogg"... | apache-2.0 |
kitala1/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Kuron-Makaron.lua | 38 | 1054 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Kuron-Makaron
-- Type: Morale Manager
-- @zone: 94
-- @pos 10.422 -2.478 24.616
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = ... | gpl-3.0 |
wilcox-liam/ageofwar | game/scripts/vscripts/lib/json.lua | 4 | 25663 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2013 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Windurst_Waters/npcs/Honoi-Gomoi.lua | 19 | 4225 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Honoi-Gumoi
-- Involved In Quest: Crying Over Onions, Hat in Hand
-- @zone = 238
-- @pos = -195 -11 -120
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
... | gpl-3.0 |
ZenityRTS/Zenity | lups/ParticleClasses/gimmick1.lua | 15 | 4559 | -- $Id: gimmick1.lua 3171 2008-11-06 09:06:29Z det $
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
local SantaHat = {}
SantaHat.__index =... | gpl-2.0 |
kitala1/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Sulbahn.lua | 24 | 2069 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Sulbahn
-- Type: Alchemy Adv. Image Support
-- @pos -10.470 -6.25 -141.700 241
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
kitala1/darkstar | scripts/zones/RuLude_Gardens/npcs/Magian_Moogle_Blue.lua | 48 | 1855 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Magian Moogle (Blue Bobble)
-- Type: Magian Trials NPC (Relic Armor)
-- @pos -6.843 2.459 121.9 64
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
package.loaded["scripts/globals/magiantrials"] = nil;... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.