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 |
|---|---|---|---|---|---|
HeavensSword/darkstar | scripts/globals/items/kikoku.lua | 3 | 3302 | -----------------------------------------
-- ID: 18312, 18313, 18645, 18659, 18673, 19754, 19847, 20970, 20971, 21906
-- Item: Kikoku
-- Additional Effect: Paralysis
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
require("sc... | gpl-3.0 |
404rq/GTW-RPG | [resources]/GTWclothes/clothes_c.lua | 2 | 3953 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/GTWCode/GTW-RPG
Bugtracker: https://forum.404rq.com/bug-reports
Suggestions: https://forum.404rq.com/mta-se... | bsd-2-clause |
dkorolev/tarantool | src/lua/help.lua | 8 | 2433 | local doc = require('help.en_US')
help = {}
help[1] = {}
help[1]["Help topics"] = { "Basics", "Administration" }
help[2] = "To get help on a topic, type help('topic') (with quotes)"
help[3] = "To get help on a function/object, type help(function) (without quotes)"
help[4] = "To start tutorial, type tutorial()"
tutori... | bsd-2-clause |
HeavensSword/darkstar | scripts/zones/Carpenters_Landing/mobs/Cryptonberry_Assassin.lua | 6 | 1132 | -----------------------------------
-- Area: Carpenters' Landing
-- MOB: Cryptonberry_Assassin
-----------------------------------
function onMobSpawn(mob)
end;
function onMobFight(mob,target)
end;
function onMobDeath(mob, player, isKiller)
local mobID = mob:getID();
if (player:getCurrentMission(COP) == C... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/flame_claymore.lua | 7 | 1037 | -----------------------------------------
-- ID: 16588
-- Item: Flame Claymore
-- Additional Effect: Fire Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------
function onAdditionalEffect... | gpl-3.0 |
404rq/GTW-RPG | [maps]/GTWswatbase/swat_base.lua | 2 | 10957 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/404rq/GTW-RPG/
Bugtracker: https://discuss.404rq.com/t/issues
Suggestions: https://discuss.404rq.com/t/deve... | bsd-2-clause |
404rq/GTW-RPG | [misc]/modloader/loader_s.lua | 3 | 5142 | mods = {}
meta = xmlLoadFile ( "meta.xml" )
local vehicleMods = {}
local weaponMods = {}
local skinMods = {}
addEventHandler ( "onResourceStart", resourceRoot, function ( )
setTimer ( function ( )
if getResourceName ( resource ) == "modloader" then
outputDebugString ( "It seems you use the defa... | bsd-2-clause |
HeavensSword/darkstar | scripts/globals/effects/int_boost.lua | 34 | 1027 | -----------------------------------
--
-- EFFECT_INT_BOOST
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_INT,effect:getPower());
end;
... | gpl-3.0 |
siktirmirza/selfbot | plugins/tools.lua | 22 | 7278 | --set--
local function save_value(msg, name, value)
if (not name or not value) then
return
end
local hash = nil
if msg.to.type == 'channel' then
hash = 'chat:'..msg.to.id..':variables'
end
if msg.to.type == 'chat' then
hash = 'chat:'..msg.to.id..':variables'
end
if msg.to.type == 'user' th... | gpl-2.0 |
HeavensSword/darkstar | scripts/globals/items/tavnazian_taco.lua | 3 | 1521 | -----------------------------------------
-- ID: 5174
-- Item: tavnazian_taco
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 20
-- Magic 20
-- Dexterity 4
-- Agility 4
-- Vitality 6
-- Charisma 4
-- Defense % 25
-- HP Recovered While Healing 1
-- MP Recovered While Healing 1
-- Def... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/spells/firestorm.lua | 32 | 1180 | --------------------------------------
-- Spell: Firestorm
-- Changes the weather around target party member to "hot."
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- ... | gpl-3.0 |
Openarl/PathOfBuilding | Classes/ItemListControl.lua | 1 | 4900 | -- Path of Building
--
-- Class: Item list
-- Build item list control.
--
local pairs = pairs
local t_insert = table.insert
local ItemListClass = newClass("ItemListControl", "ListControl", function(self, anchor, x, y, width, height, itemsTab)
self.ListControl(anchor, x, y, width, height, 16, false, true, itemsTab.ite... | mit |
HeavensSword/darkstar | scripts/zones/Northern_San_dOria/npcs/Ulycille.lua | 3 | 1600 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Ulycille
-- Type: Woodworking Adv. Synthesis Image Support
-- !pos -183.320 9.999 269.651 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scrip... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/spells/bluemagic/actinic_burst.lua | 5 | 1518 | -----------------------------------------
-- Spell: Actinic Burst
-- Greatly lowers the accuracy of enemies within range for a brief period of time
-- Spell cost: 24 MP
-- Monster Type: Luminions
-- Spell Type: Magical (Light)
-- Blue Magic Points: 4
-- Stat Bonus: CHR+2, HP+20
-- Level: 74
-- Casting Time: 0.5 seconds... | gpl-3.0 |
Openarl/PathOfBuilding | Modules/Build.lua | 1 | 51662 | -- Path of Building
--
-- Module: Build
-- Loads and manages the current build.
--
local pairs = pairs
local ipairs = ipairs
local t_insert = table.insert
local m_min = math.min
local m_max = math.max
local m_floor = math.floor
local m_abs = math.abs
local s_format = string.format
local normalBanditDropList = {
{ lab... | mit |
Wedmer/luci | applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/rules.lua | 8 | 4293 | -- Copyright 2017 Yousong Zhou <yszhou4tech@gmail.com>
-- Licensed to the public under the Apache License 2.0.
local ss = require("luci.model.shadowsocks-libev")
local m, s, o
m = Map("shadowsocks-libev",
translate("Redir Rules"),
translate("On this page you can configure how traffics are to be \
forwarded to ss... | apache-2.0 |
haolly/slua_source_note | jit/jit/dis_arm64.lua | 59 | 30904 | ----------------------------------------------------------------------------
-- LuaJIT ARM64 disassembler module.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
--
-- Contributed by Djordje Kovacevic and Stefan Pejic from RT-RK.com.
-- S... | mit |
mohammadclashclash/uzzbot | plugins/twitter_send.lua | 627 | 1555 | do
local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local client = OAuth.new(consumer_key, consumer_secret, {
RequestToken = "https://api.twitter.com/oauth/request_token",
AuthorizeUser = {"https://api.twitter.com/oauth/autho... | gpl-2.0 |
peymankhanas8487/Horror_Avatar | plugins/twitter_send.lua | 627 | 1555 | do
local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local client = OAuth.new(consumer_key, consumer_secret, {
RequestToken = "https://api.twitter.com/oauth/request_token",
AuthorizeUser = {"https://api.twitter.com/oauth/autho... | gpl-2.0 |
shahifaqeer/my-luci-bismark-0.11 | libs/sys/luasrc/sys/zoneinfo/tzoffset.lua | 72 | 3904 | --[[
LuCI - Autogenerated Zoneinfo Module
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
]]--
module "luci.sys.zoneinfo.tzoffset"
OFFSET = {
gmt =... | apache-2.0 |
HeavensSword/darkstar | scripts/globals/weaponskills/circle_blade.lua | 25 | 1358 | -----------------------------------
-- Circle Blade
-- Sword weapon skill
-- Skill Level: 150
-- Delivers an area of effect attack. Attack radius varies with TP.
-- Aligned with the Aqua Gorget & Thunder Gorget.
-- Aligned with the Aqua Belt & Thunder Belt.
-- Element: None
-- Modifiers: STR:35%
-- 100%TP 200%TP ... | gpl-3.0 |
thetanil/thetasynth-pi | lua/Midi.lua | 1 | 3001 | local log = require "log"
log.usecolor = false
log.level = "debug"
local pp = require('pl.pretty')
local Device = require 'Device'
local seq = require 'pl.seq'
local subst = require 'pl.template'.substitute
local devices = {}
local midiconfig = require('midiconfig')
Midi = {}
Midi.exec = function (command)
local... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/Norg/TextIDs.lua | 5 | 2427 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6402; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6408; -- Obtained: <item>.
GIL_OBTAINED = 6409; -- Obtained <number> gil.
KEYITEM_OBTAI... | gpl-3.0 |
ind9/kong | kong/resolver/handler.lua | 21 | 1037 | -- Kong resolver core-plugin
--
-- This core-plugin is executed before any other, and allows to map a Host header
-- to an API added to Kong. If the API was found, it will set the $backend_url variable
-- allowing nginx to proxy the request as defined in the nginx configuration.
--
-- Executions: 'access', 'header_filt... | apache-2.0 |
taksetareh12/mojtaba | plugins/id.lua | 50 | 4275 | local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
local function returnids(cb_extra, success, result)
local re... | gpl-2.0 |
404rq/GTW-RPG | [resources]/GTWstaff/staff_c.lua | 2 | 1766 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/404rq/GTW-RPG/
Bugtracker: https://discuss.404rq.com/t/issues
Suggestions: https://discuss.404rq.com/t/deve... | bsd-2-clause |
HeavensSword/darkstar | scripts/globals/items/serving_of_red_curry.lua | 3 | 1804 | -----------------------------------------
-- ID: 4298
-- Item: serving_of_red_curry
-- Food Effect: 3 hours, All Races
-----------------------------------------
-- HP +25
-- Strength +7
-- Agility +1
-- Intelligence -2
-- HP recovered while healing +2
-- MP recovered while healing +1
-- Attack +23% (Cap: 150@652 Base A... | gpl-3.0 |
shahifaqeer/my-luci-bismark-0.11 | modules/niu/luasrc/model/cbi/niu/network/ddns1.lua | 37 | 1993 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 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
h... | apache-2.0 |
coldsee/clua | dep/recastnavigation/RecastDemo/premake4.lua | 82 | 3551 | --
-- premake4 file to build RecastDemo
-- http://industriousone.com/premake
--
local action = _ACTION or ""
local todir = "Build/" .. action
solution "recastnavigation"
configurations {
"Debug",
"Release"
}
location (todir)
-- extra warnings, no exceptions or rtti
flags {
"ExtraWarnings",
"FloatFast"... | gpl-2.0 |
HeavensSword/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Ironbound_Gate.lua | 5 | 1174 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Ironbound Gate
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
-----------------------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Bastok_Markets/npcs/Matthias.lua | 5 | 7256 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Matthias
-- Standard Info NPC
-- Involved in Quest:
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Markets/TextIDs");
require("scripts... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Hall_of_Transference/npcs/_0e8.lua | 5 | 1366 | -----------------------------------
-- Area: Hall of Transference
-- NPC: Large Apparatus (Right) - Mea
-- !pos 290.253 -81.849 -42.381 14
-----------------------------------
package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Hall_of_Transfere... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/spells/kurayami_ichi.lua | 5 | 1329 | -----------------------------------------
-- Spell: Kurayami:Ichi
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;... | gpl-3.0 |
grmmhp/RaycastingEngine | RAYCASTER_TEST/conf.lua | 1 | 3361 | function love.conf(t)
t.identity = 'RaycastingEngine' -- The name of the save directory (string)
t.version = "0.10.2" -- The LÖVE version this game was made for (string)
t.console = true -- Attach a console (boolean, Windows only)
t.accelerometerjoystick = true -- Enable th... | gpl-3.0 |
o-lim/busted | spec/cl_failing_support.lua | 10 | 4738 |
describe('bad support functions should fail, sync test', function()
describe('bad setup should properly fail a test', function()
setup(function()
error('failing a setup method')
end)
before_each(function() end)
after_each(function() end)
teardown(function() end)
it('Tests nothing, s... | mit |
HeavensSword/darkstar | scripts/zones/Bastok_Markets/npcs/Gwill.lua | 5 | 2620 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Gwill
-- Starts & Ends Quest: The Return of the Adventurer
-- Involved in Quests: The Cold Light of Day, Riding on the Clouds
-- !pos ? ? ? 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
---------... | gpl-3.0 |
Openarl/PathOfBuilding | Data/2_6/Skills/sup_int.lua | 1 | 86142 | -- This file is automatically generated, do not edit!
-- Path of Building
--
-- Intelligence support gems
-- Skill data (c) Grinding Gear Games
--
local skills, mod, flag, skill = ...
skills["SupportAddedChaosDamage"] = {
name = "Added Chaos Damage",
color = 3,
support = true,
requireSkillTypes = { 10, 1, },
addS... | mit |
HeavensSword/darkstar | scripts/zones/Al_Zahbi/npcs/Famatar.lua | 3 | 2701 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Famatar
-- Type: Imperial Gate Guard
-- !pos -105.538 0.999 75.456 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globals... | gpl-3.0 |
icrazyboy/- | plugins/danbooru.lua | 616 | 1750 | do
local URL = "http://danbooru.donmai.us"
local URL_NEW = "/posts.json"
local URL_POP = "/explore/posts/popular.json"
local scale_day = "?scale=day"
local scale_week = "?scale=week"
local scale_month = "?scale=month"
local function get_post(url)
local b, c, h = http.request(url)
if c ~= 200 then return nil end
... | gpl-2.0 |
pd2-linux/tina | feeds/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
... | gpl-2.0 |
HeavensSword/darkstar | scripts/zones/The_Shrine_of_RuAvitau/npcs/blank_4.lua | 5 | 4692 | -----------------------------------
-- Area: The Shrine of Ru'Avitau
-- NPC: ??? divine might mission
-- !pos -40 0 -151 178
-----------------------------------
package.loaded["scripts/zones/The_Shrine_of_RuAvitau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Shrine_of_RuAvitau/TextID... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Northern_San_dOria/npcs/Grilau.lua | 5 | 5725 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Grilau
-- !pos -241.987 6.999 57.887 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyit... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Aydeewa_Subterrane/npcs/Excavation_Site.lua | 5 | 1458 | -----------------------------------
-- Area: Aydeewa Subterrane
-- NPC: Excavation Site (Olduum Ring quest)
-- !pos 390 1 349 68
-----------------------------------
package.loaded["scripts/zones/Aydeewa_Subterrane/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("script... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Al_Zahbi/npcs/Rajaaha.lua | 3 | 1978 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Rajaaha
-- Type: Goldsmithing Normal/Adv. Image Support
-- !pos 49.9 0.1 -45.2 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scr... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Qulun_Dome/Zone.lua | 5 | 1074 | -----------------------------------
--
-- Zone: Qulun_Dome (148)
--
-----------------------------------
package.loaded["scripts/zones/Qulun_Dome/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Qulun_Dome/TextIDs");
require("scripts/zones/Qulun_Dome/MobIDs");
require("scripts/globals/conquest... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Cloister_of_Tides/bcnms/trial-size_trial_by_water.lua | 5 | 2204 | -----------------------------------
-- Area: Cloister of Tides
-- BCNM: Trial by Water
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Tides/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/shop");
require("scripts/globals/q... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Port_Bastok/npcs/Evi.lua | 5 | 1886 | -----------------------------------
-- Area: Port Bastok
-- NPC: Evi
-- Starts Quests: Past Perfect (100%)
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Rabao/npcs/Shupah_Mujuuk.lua | 5 | 3386 | -----------------------------------
-- Area: Rabao
-- NPC: Shupah Mujuuk
-- Title Change NPC
-- !pos 12 8 20 247
-----------------------------------
require("scripts/globals/titles");
local title2 = { THE_IMMORTAL_FISHER_LU_SHANG , INDOMITABLE_FISHER , KUFTAL_TOURIST , ACQUIRER_OF_ANCIENT_ARCANUM , DESERT_HUNTER ,
... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Windurst_Woods/npcs/Spare_One.lua | 5 | 1235 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Spare One
-- Working 100%
-- Involved in quest: A Greeting Cardian
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/globals/quests"] = nil;
-----------------------------------
require("scripts/globals/q... | gpl-3.0 |
shahifaqeer/my-luci-bismark-0.11 | applications/luci-pbx/luasrc/model/cbi/pbx-advanced.lua | 29 | 14365 | --[[
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 |
HeavensSword/darkstar | scripts/zones/West_Ronfaure/npcs/Palcomondau.lua | 5 | 13050 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Palcomondau
-- Type: Patrol
-- !pos -349.796 -45.345 344.733 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/pathfind");
-----------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Upper_Jeuno/npcs/Rhea_Myuliah.lua | 5 | 2155 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Rhea Myuliah
-- Type: Standard NPC
-- @zone 244
-- !pos -56.220 -1 101.805
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
--------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/weaponskills/tachi_kasha.lua | 3 | 1971 | -----------------------------------
-- Tachi Kasha
-- Great Katana weapon skill
-- Skill Level: 250
-- Paralyzes target. Damage varies with TP.
-- Paralyze effect duration is 60 seconds when unresisted.
-- In order to obtain Tachi: Kasha, the quest The Potential Within must be completed.
-- Will stack with Sneak Attack... | gpl-3.0 |
Wedmer/luci | protocols/luci-proto-ncm/luasrc/model/network/proto_ncm.lua | 3 | 1450 | --[[
LuCI - Network model - NCM protocol extension
Copyright 2015 Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
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/LI... | apache-2.0 |
Max-pbot/Maxbot | plugins/inrealm.lua | 1 | 30132 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
Deiz/naev | dat/ai/empire.lua | 6 | 2899 | include("dat/ai/tpl/generic.lua")
include("dat/ai/personality/patrol.lua")
-- Settings
mem.armour_run = 40
mem.armour_return = 70
mem.aggressive = true
function create ()
-- Not too many credits.
ai.setcredits( rnd.rnd(ai.pilot():ship():price()/300, ai.pilot():ship():price()/70) )
-- Lines to annoy the pl... | gpl-3.0 |
natuan241/Algorithm-Implementations | Lempel_Ziv_Welch/Lua/Yonaba/lzw_test.lua | 26 | 1030 | -- Tests for lzw.lua
local lzw = require 'lzw'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1 end
local status = ok... | mit |
HeavensSword/darkstar | scripts/zones/Navukgo_Execution_Chamber/Zone.lua | 5 | 1145 | -----------------------------------
--
-- Zone: Navukgo_Execution_Chamber (64)
--
-----------------------------------
package.loaded["scripts/zones/Navukgo_Execution_Chamber/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/globals/settings");
require("scripts/zo... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/items/fish_mithkabob.lua | 3 | 1200 | -----------------------------------------
-- ID: 4398
-- Item: fish_mithkabob
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 1
-- Vitality 2
-- Mind -1
-- Defense % 25
-- Defense Cap 90
-----------------------------------------
require("scripts/globals/status");
----------------... | gpl-3.0 |
pd2-linux/tina | feeds/packages/net/mwan3-luci/files/usr/lib/lua/luci/controller/mwan3.lua | 29 | 10831 | module("luci.controller.mwan3", package.seeall)
sys = require "luci.sys"
ut = require "luci.util"
function index()
if not nixio.fs.access("/etc/config/mwan3") then
return
end
entry({"admin", "network", "mwan"},
alias("admin", "network", "mwan", "overview"),
_("Load Balancing"), 600)
entry({"admin", "netwo... | gpl-2.0 |
shahifaqeer/my-luci-bismark-0.11 | protocols/ipv6/luasrc/model/cbi/admin_network/proto_6to4.lua | 12 | 1276 | --[[
LuCI - Lua Configuration Interface
Copyright 2011 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
]]--
local ma... | apache-2.0 |
wsmith323/hammerspoon | extensions/inspect/init.lua | 11 | 10601 | --- === hs.inspect ===
---
--- Produce human-readable representations of Lua variables (particularly tables)
---
--- This extension is based on inspect.lua by Enrique García Cota
--- https://github.com/kikito/inspect.lua
local inspect ={
_VERSION = 'inspect.lua 3.0.0',
_URL = 'http://github.com/kikito/inspect.... | mit |
HeavensSword/darkstar | scripts/zones/Garlaige_Citadel/npcs/Mashira.lua | 5 | 1783 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: Mashira
-- Involved in Quests: Rubbish day, Making Amens!
-- !pos 141 -6 138 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/setting... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/weaponskills/wildfire.lua | 24 | 1622 | -----------------------------------
-- Wildfire
-- Skill Level: N/A
-- Description: Deals fire elemental damage. Enmity generation varies with TP. Armageddon: Aftermath.
-- Acquired permanently by completing the appropriate Walk of Echoes Weapon Skill Trials.
-- Can also be used by equipping Armageddon (85)/(90)/(95)/(... | gpl-3.0 |
WilliamBundy/contact-lost-ld26 | src/beholder.lua | 8 | 4868 | -- beholder.lua - v2.1.1 (2011-11)
-- Copyright (c) 2011 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,... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Sacrificial_Chamber/Zone.lua | 5 | 1155 | -----------------------------------
--
-- Zone: Sacrificial_Chamber (163)
--
-----------------------------------
package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/missi... | gpl-3.0 |
Max-pbot/Maxbot | plugins/admin.lua | 1 | 7178 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(rec... | gpl-2.0 |
wsmith323/hammerspoon | extensions/appfinder/init.lua | 20 | 2772 | --- === hs.appfinder ===
---
--- Easily find ```hs.application``` and ```hs.window``` objects
---
--- This module is *deprecated*; you can use `hs.window.find()`, `hs.window.get()`, `hs.application.find()`,
--- `hs.application.get()`, `hs.application:findWindow()` and `hs.application:getWindow()` instead.
local appfin... | mit |
marcoag/awesome-config | themes/dwm/theme.lua | 2 | 2340 | -- dwm, awesome3 theme
--{{{ Main
local awful = require("awful")
awful.util = require("awful.util")
theme = {}
home = os.getenv("HOME")
config = awful.util.getdir("config")
shared = "/usr/share/awesome"
if not awful.util.file_readable(shared .. "/icons/awesome16.png") then
shared = "/us... | gpl-3.0 |
zhaozg/luvi | samples/winsvc.app/main.lua | 6 | 9119 | --[[
Copyright 2015 The Luvit Authors. All Rights Reserved.
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 agr... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/Bastok_Mines/npcs/Trail_Markings.lua | 3 | 2685 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Trail Markings
-- Dynamis-Bastok Enter
-- !pos 99 1 -67 234
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/mobskills/gregale_wing_air.lua | 33 | 1081 | ---------------------------------------------
-- Gregale Wing
--
-- Description: An icy wind deals Ice damage to enemies within a very wide area of effect. Additional effect: Paralyze
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: 30' radial.
-- Notes: Used only Jormungand and Isgebind
-------... | gpl-3.0 |
404rq/GTW-RPG | [resources]/GTWtraindriver/train_c.lua | 2 | 8962 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/404rq/GTW-RPG/
Bugtracker: https://discuss.404rq.com/t/issues
Suggestions: https://discuss.404rq.com/t/deve... | bsd-2-clause |
msva/LDoc | ldoc/builtin/lpeg.lua | 6 | 9367 | --- LPeg PEG pattern matching.
-- @module lpeg
local lpeg = {}
---
-- The matching function. It attempts to match the given pattern against the
-- subject string. If the match succeeds, returns the index in the subject of
-- the first character after the match, or the captured values (if the pattern
-- captu... | mit |
HeavensSword/darkstar | scripts/zones/Windurst_Waters/npcs/Furakku-Norakku.lua | 5 | 4500 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Furakku-Norakku
-- Involved in Quests: Early Bird Catches the Bookworm, Chasing Tales, Class Reunion
-- !pos -19 -5 101 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
---------------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/mobskills/prishe_item_2.lua | 4 | 1640 | ---------------------------------------------
-- Prishe Item 2
---------------------------------------------
package.loaded["scripts/zones/Empyreal_Paradox/TextIDs"] = nil;
---------------------------------------------
require("scripts/zones/Empyreal_Paradox/TextIDs");
require("scripts/globals/monstertpmoves");
require... | gpl-3.0 |
lu-zero/vlc | share/lua/playlist/vimeo.lua | 65 | 3213 | --[[
$Id$
Copyright © 2009-2013 the VideoLAN team
Authors: Konstantin Pavlov (thresh@videolan.org)
François Revol (revol@free.fr)
Pierre Ynard
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 S... | gpl-2.0 |
404rq/GTW-RPG | [misc]/modshop/vehicle.funcs.lua | 4 | 2215 |
vehicleUpgrades = { names = { }, prices = { } }
lowriders = { [536]=true, [575]=true, [534]=true, [567]=true, [535]=true, [576]=true, [412]=true }
racers = { [562]=true, [565]=true, [559]=true, [561]=true, [560]=true, [558]=true }
_getVehicleCompatibleUpgrades = getVehicleCompatibleUpgrades
function getVehicleCompa... | bsd-2-clause |
Wedmer/luci | applications/luci-app-adblock/luasrc/controller/adblock.lua | 1 | 2186 | -- Copyright 2017-2018 Dirk Brenken (dev@brenken.org)
-- This is free software, licensed under the Apache License, Version 2.0
module("luci.controller.adblock", package.seeall)
local fs = require("nixio.fs")
local util = require("luci.util")
local templ = require("luci.template")
local i18n = require("luci.i18n"... | apache-2.0 |
legospacy/rainbow-arena | systems/03_Effects/01_CollisionEffects.lua | 1 | 3181 | --- Require ---
local Class = require("lib.hump.class")
local vector = require("lib.hump.vector")
local timer = require("lib.hump.timer")
local tiny = require("lib.tiny")
local util = require("lib.util")
local entity = require("util.entity")
--- ==== ---
--- Classes ---
local ent_Sound = require("objects.entities.... | mit |
CodeStepper/trinity | trinity/worker/Layout.lua | 1 | 5051 | --
-- Trinity Widget Library >>> http://trinity.aculo.pl
-- _____ _ _ _
-- |_ _|___|_|___|_| |_ _ _
-- | | | _| | | | _| | |
-- |_| |_| |_|_|_|_|_| |_ |
-- |___|
--
-- This file is part of Trinity Widget Library for AwesomeWM
-- Copyright (c) by sobiemir <sobiem... | gpl-2.0 |
HeavensSword/darkstar | scripts/zones/Apollyon/mobs/Fire_Elemental.lua | 35 | 2314 | -----------------------------------
-- Area: Apollyon SW
-- NPC: elemental
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
-----------------------------------
... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Apollyon/mobs/Light_Elemental.lua | 35 | 2314 | -----------------------------------
-- Area: Apollyon SW
-- NPC: elemental
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
-----------------------------------
... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/abilities/thunder_maneuver.lua | 2 | 1732 | -----------------------------------
-- Ability: Thunder Maneuver
-- Enhances the effect of thunder attachments. Must have animator equipped.
-- Obtained: Puppetmaster level 1
-- Recast Time: 10 seconds (shared with all maneuvers)
-- Duration: 1 minute
-----------------------------------
require("scripts/globals/status"... | gpl-3.0 |
Wedmer/luci | modules/luci-mod-admin-full/luasrc/controller/admin/status.lua | 3 | 4355 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.admin.status", package.seeall)
function index()
entry({"admin", "status"}, alias("admin", "status", "overview"), _("Status"), 20).ind... | apache-2.0 |
HeavensSword/darkstar | scripts/globals/items/plate_of_mushroom_risotto.lua | 3 | 1164 | -----------------------------------------
-- ID: 4434
-- Item: Plate of Mushroom Risotto
-- Food Effect: 3 Hr, All Races
-----------------------------------------
-- MP 30
-- Strength -1
-- Vitality 3
-- Mind 3
-- MP Recovered while healing 2
-- Enmity -4
-----------------------------------------
require("scripts/globa... | gpl-3.0 |
lhsazevedo/LIKO-12 | OS/DiskOS/Libraries/diskHelpers.lua | 1 | 9306 | --SpriteID, Top-left x, Top-left y, rotation in radians, scaleX, scaleY, spritesheet
function Sprite(id,x,y,r,sx,sy,sheet) (sheet or SpriteMap):draw(id,x,y,r,sx,sy) end
--Topleft SpriteID, Top-left x, Top-left y, group width in sprites, group height in sprites, scaleX, scaleY, rotatin in radian, spritesheet
function S... | mit |
shahifaqeer/my-luci-bismark-0.11 | modules/admin-full/luasrc/model/cbi/admin_system/backupfiles.lua | 8 | 2706 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2011 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://w... | apache-2.0 |
HeavensSword/darkstar | scripts/zones/RuAun_Gardens/npcs/qm4.lua | 5 | 1046 | -----------------------------------
-- Area: Ru'Aun Gardens
-- NPC: ??? (Suzaku's Spawn)
-- Allows players to spawn the HNM Suzaku with a Gem of the South and a Summerstone.
-- !pos -514 -70 -264 130
-----------------------------------
package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil;
----------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Lower_Jeuno/npcs/Yin_Pocanakhu.lua | 5 | 1034 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Yin Pocanakhu
-- Involved in Quest: Borghertz's Hands (1st quest only)
-- @zone 245
-- !pos 35 4 -43
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Konschtat_Highlands/mobs/Ghillie_Dhu.lua | 5 | 1782 | -----------------------------------
-- Area: Konschtat Highlands
-- NM: Ghillie Dhu
-----------------------------------
require("scripts/globals/fieldsofvalor");
require("scripts/globals/status");
require("scripts/globals/utils");
require("scripts/globals/msg");
-----------------------------------
function onMobInit... | gpl-3.0 |
cogwerkz/gUI4 | gUI4/libs/GP_LibFlash-1.0/GP_LibFlash-1.0.lua | 1 | 15378 | assert(GP_LibStub, "GP_LibFlash-1.0 requires GP_LibStub")
assert(GP_LibStub:GetLibrary("GP_CallbackHandler-1.0", true), "GP_LibFlash-1.0 requires GP_CallbackHandler-1.0")
local MAJOR, MINOR = "GP_LibFlash-1.0", 10
local lib = GP_LibStub:NewLibrary(MAJOR, MINOR)
if not lib then return end -- No upgrade needed
lib.numF... | mit |
HeavensSword/darkstar | scripts/globals/equipment.lua | 23 | 3247 | require("scripts/globals/status");
BaseNyzulWeapons = {
18492, -- (WAR) Sturdy Axe
18753, -- (MNK) Burning Fists
18851, -- (WHM) Werebuster
18589, -- (BLM) Mage's Staff
17742, -- (RDM) Vorpal Sword
... | gpl-3.0 |
shahifaqeer/my-luci-bismark-0.11 | applications/luci-asterisk/luasrc/model/cbi/asterisk/voicemail.lua | 11 | 1730 | --[[
LuCI - Lua Configuration Interface
Copyright 2009 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: voicemai... | apache-2.0 |
marcoag/awesome-config | themes/him/theme.lua | 2 | 5800 | -- him, awesome3 theme, by him
--{{{ Main
local awful = require("awful")
awful.util = require("awful.util")
theme = {}
home = os.getenv("HOME")
config = awful.util.getdir("config")
shared = "/usr/share/awesome"
if not awful.util.file_readable(shared .. "/icons/awesome16.png") then
shared ... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Port_San_dOria/npcs/Pomilla.lua | 5 | 1372 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Pomilla
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- !pos -38 -4 -55 232
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_Sa... | gpl-3.0 |
qwook/dpsht | core/draw.lua | 1 | 9560 |
require("core.cache")
local Feathering = 4.0
local Attraction = 4.0
local Break = 2.0
local camera1_x, camera1_y = 0, 0
local camera2_x, camera2_y = 0, 0
local CAM_MAX_HORIZONTAL = 100
local CAM_MAX_VERTICAL = 100
cameraLife = 0
function getCameraPosition()
return camera1_x, camera1_y
end
local bg_gradient =... | mit |
Deiz/naev | dat/events/neutral/shipwreck.lua | 11 | 2074 | --[[
-- Shipwreck Event
--
-- Creates a wrecked ship that asks for help. If the player boards it, the event switches to the Space Family mission.
-- See dat/missions/neutral/spacefamily.lua
--
-- 12/02/2010 - Added visibility/highlight options for use in bigsystems (Anatolis)
--]]
lang = naev.lang()
if lang == "es" ... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/spells/absorb-vit.lua | 4 | 1561 | --------------------------------------
-- Spell: Absorb-VIT
-- Steals an enemy's vitality.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function ... | gpl-3.0 |
404rq/GTW-RPG | [resources]/GTWbusdriver/data.lua | 3 | 11318 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/GTWCode/GTW-RPG
Bugtracker: https://forum.404rq.com/bug-reports
Suggestions: https://forum.404rq.com/mta-se... | bsd-2-clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.