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
Cloudef/darkstar
scripts/globals/teleports.lua
1
40834
----------------------------------- -- A collection of frequently needed teleport shortcuts. ----------------------------------- ----------------------------------- -- TELEPORT NAMES ----------------------------------- TELEPORT_DEM = 1; TELEPORT_HOLLA = 2; TELEPORT_YHOAT = 3; TELEPORT_VAHZL ...
gpl-3.0
kawaz/lua-httpd-cors
cors.lua
1
4069
require 'apache2' -- CORSを許可したいOriginホスト名を列挙します, サブドメインも許可されます, "*"が指定された場合全てのOriginを許可します AllowOrigins = { "example.com", "example.jp" } -- localhost, .local, プライベートIP などのローカルなOriginを許可します AllowPrivateOrigins = true -- GET,POST,HEAD以外のメソッドを利用する場合はtrueにします AllowRequestMethod = true -- 追加のリクエストヘッダを利用する場合はtrueにします Allow...
mit
Cloudef/darkstar
scripts/zones/RuAun_Gardens/TextIDs.lua
5
1619
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item>. Come back after sorting your inventory. FULL_INVENTORY_AFTER_TRADE = 6384; -- You cannot obtain the <item>. Try trading again after sorting your inventory. ITEM_OBTAINED = 638...
gpl-3.0
Cloudef/darkstar
scripts/globals/items/orange_snow_cone.lua
2
1134
----------------------------------------- -- ID: 5713 -- Item: orange_snow_cone -- Food Effect: 5 Min, All Races ----------------------------------------- -- MP +20% (cap 20) -- AGI -1 -- INT +1 -- Wind resistance +5 ----------------------------------------- require("scripts/globals/status"); --------------------------...
gpl-3.0
Cloudef/darkstar
scripts/zones/Southern_San_dOria/npcs/Coderiant.lua
5
1156
----------------------------------- -- Area: Southern San d'Oria -- NPC: Coderiant -- General Info NPC -- @zone 230 -- !pos -111 -2 33 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Southern_San_dOria/...
gpl-3.0
mehrpouya81/iranspammer
plugins/plugins.lua
325
6164
do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( ...
gpl-2.0
rastin45/botrider12
plugins/plugins.lua
325
6164
do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( ...
gpl-2.0
tst2005googlecode/fbclient
lua/fbclient/service_class.lua
2
18634
--[=[ Service Manager API, objectual interface based on service.lua connect([hostname],[username],[password],[timeout_sec],[libname|fbapi],[svc_class]) -> svo connect_ex([hostname],[spb_options_t],[libname|fbapi],[svc_class) -> svo service_class -> the LOOP class that svo objects inherit. svo.sv -> the status_v...
mit
Cloudef/darkstar
scripts/globals/mobskills/flame_thrower.lua
2
1350
--------------------------------------------------- -- Flame_Thrower -- Description: Uses a flamethrower that deals Fire damage to players in a fan-shaped area of effect. Additional effect: Plague -- Type: Magical --------------------------------------------- require("scripts/globals/monstertpmoves"); require("scripts/...
gpl-3.0
Cloudef/darkstar
scripts/globals/spells/burn.lua
2
2098
----------------------------------------- -- Spell: Burn -- Deals fire damage that lowers an enemy's intelligence and gradually reduces its HP. ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg...
gpl-3.0
Cloudef/darkstar
scripts/globals/items/dark_bass.lua
2
1087
----------------------------------------- -- ID: 4428 -- Item: dark_bass -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Mind -4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- function onItemCheck(targ...
gpl-3.0
n0la/fimbul
fimbul/lich/item_plugin.lua
1
1491
-- LICH plugin for fimbul -- local plugin = require('lich.plugin') local item_plugin = plugin:new() local repository = require('fimbul.repository') local log = require('lich.log') local base = _G function item_plugin:new(config) local neu = plugin:new(config) setmetatable(neu, self) self.__index = self ...
bsd-2-clause
jomanmuk/vlc-2.2
share/lua/playlist/pinkbike.lua
97
2080
--[[ $Id$ Copyright © 2009 the VideoLAN team Authors: Konstantin Pavlov (thresh@videolan.org) 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 2 of the License, or (at your opt...
lgpl-2.1
kblease/ProductionQueue
UI/strategicview_mapplacement.lua
1
42534
if string.sub(UI.GetAppVersion(),1,9) ~= "1.0.0.262" then -- =========================================================================== -- Input for placing items on the world map. -- Copyright 2015-2016, Firaxis Games -- -- To hot-reload, save this then re-save the file that imports the file -- (e.g., Wor...
mit
Cloudef/darkstar
scripts/zones/Dynamis-Beaucedine/mobs/Serjeant_Tombstone.lua
5
1508
----------------------------------- -- Area: Dynamis Beaucedine -- MOB: Serjeant Tombstone -- Map Position: http://images1.wikia.nocookie.net/__cb20090312005233/ffxi/images/thumb/b/b6/Bea.jpg/375px-Bea.jpg ----------------------------------- require("scripts/globals/dynamis"); require("scripts/globals/status"); requir...
gpl-3.0
fgprodigal/RayUI
Interface/AddOns/RayUI/modules/actionbar/extra.lua
1
2965
---------------------------------------------------------- -- Load RayUI Environment ---------------------------------------------------------- RayUI:LoadEnv("ActionBar") local AB = _ActionBar function R:TestBossButton() if ExtraActionBarFrame:IsShown() then ExtraActionBarFrame.intro:Stop() ExtraActionBarFrame...
mit
omid1212/fgtty
plugins/banhammer.lua
27
10471
local function is_user_whitelisted(id) local hash = 'whitelist:user#id'..id local white = redis:get(hash) or false return white end local function is_chat_whitelisted(id) local hash = 'whitelist:chat#id'..id local white = redis:get(hash) or false return white end local function kick_user(user_id, chat_id)...
gpl-2.0
Wiladams/LJIT2pixman
demos/srgb-test.lua
1
2020
package.path = package.path..";../?.lua" local ffi = require("ffi") local bit = require("bit") local lshift, rshift, bor, band = bit.lshift, bit.rshift, bit.bor, bit.band local pixman = require("pixman")() local save_image = require("utils").save_image; local libc = require("libc")() local function linear_argb_to_p...
mit
Cloudef/darkstar
scripts/globals/mobskills/everyones_grudge.lua
36
1591
--------------------------------------------- -- Everyones Grudge -- -- Notes: Invokes collective hatred to spite a single target. -- Damage done is 5x the amount of tonberries you have killed! For NM's using this it is 50 x damage. --------------------------------------------- require("scripts/globals/settings");...
gpl-3.0
MinetestForFun/server-minetestforfun
mods/throwing/tools.lua
8
3119
if not DISABLE_WOODEN_BOW then throwing_register_bow ('bow_wood', 'Wooden bow', {x=1, y=1, z=0.5}, 11, 1.6, 50, false, { {'', 'default:stick', ''}, {'farming:string', '', 'default:stick'}, {'', 'default:stick', ''}, }) end if not DISABLE_LONGBOW then throwing_register_bow ('longbow', 'Longbow', {x=1, y=2....
unlicense
Cloudef/darkstar
scripts/zones/Bearclaw_Pinnacle/npcs/Wind_Pillar.lua
22
1456
----------------------------------- -- Area: Bearclaw Pinnacle -- NPC: Wind Pillar ----------------------------------- package.loaded["scripts/zones/Bearclaw_Pinnacle/TextIDs"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/globals/quests"); require("scripts/globals/missi...
gpl-3.0
MinetestForFun/server-minetestforfun
minetestforfun_game/mods/farming/statistics.lua
15
3382
local statistics = {} local ROOT_2 = math.sqrt(2.0) -- Approximations for erf(x) and erfInv(x) from -- https://en.wikipedia.org/wiki/Error_function local erf local erf_inv local A = 8 * (math.pi - 3.0)/(3.0 * math.pi * (4.0 - math.pi)) local B = 4.0 / math.pi local C = 2.0/(math.pi * A) local D = 1.0 / A erf = func...
unlicense
Cloudef/darkstar
scripts/zones/Eastern_Altepa_Desert/npcs/qm2.lua
5
1459
----------------------------------- -- Area: Eastern Altepa Desert -- NPC: qm2 (???) -- Involved In Quest: 20 in Pirate Years -- !pos 47.852 -7.808 403.391 114 ----------------------------------- package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil; ----------------------------------- require("scripts/g...
gpl-3.0
Cloudef/darkstar
scripts/globals/items/naval_rice_ball.lua
2
1125
----------------------------------------- -- ID: 4605 -- Item: Naval Rice Ball -- Food Effect: 30Min, All Races ----------------------------------------- -- HP +12 -- Dex +3 -- Vit +3 -- hHP +2 -- Effect with enhancing equipment (Note: these are latents on gear with the effect) -- Atk +40 -- Def +40 -- Arcana Killer (...
gpl-3.0
Cloudef/darkstar
scripts/zones/Yhoator_Jungle/npcs/Mugha_Dovajaiho.lua
5
1503
----------------------------------- -- Area: Yhoator Jungle -- NPC: Mugha Dovajaiho -- !pos 202 0 -82 124 ----------------------------------- package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); require("...
gpl-3.0
letoram/durden
durden/devmaps/colorschemes/dracula.lua
1
1852
-- entries marked foreground/background takes 6 values (fr, fg, fb, br, gb, bb) -- tui clients will use first set, terminal clients second, entries with an empty -- or nil table will retain whatever client default is return { {0xf8, 0xf8, 0xf2}, -- primary (base color/foreground) {}, -- secondary (alternate base col...
bsd-3-clause
fgprodigal/RayUI
Interface/AddOns/RayUI/modules/skins/blizzard/spellbook.lua
1
5786
---------------------------------------------------------- -- Load RayUI Environment ---------------------------------------------------------- RayUI:LoadEnv("Skins") local S = _Skins local function LoadSkin() S:SetBD(SpellBookFrame) S:ReskinArrow(SpellBookPrevPageButton, "left") S:ReskinArrow(SpellBookNextPageBu...
mit
MicroJOo/OpenRA
mods/cnc/maps/nod02a/nod02a.lua
15
7806
NodUnits = { "bggy", "e1", "e1", "e1", "e1", "e1", "bggy", "e1", "e1", "e1", "bggy" } NodBaseBuildings = { "hand", "fact", "nuke" } DfndActorTriggerActivator = { Refinery, Barracks, Powerplant, Yard } Atk3ActorTriggerActivator = { Guard1, Guard2, Guard3, Guard4, Guard5, Guard6, Guard7 } Atk1CellTriggerActivator = { C...
gpl-3.0
MinetestForFun/server-minetestforfun
mods/arrow_signs/init.lua
3
7189
-- more_signs by addi -- Code and Textures are under the CC by-sa 3.0 licence -- see: http://creativecommons.org/licenses/by-sa/3.0/ arrow_signs = {} arrow_signs.formspec = "field[text;Sign text:;${text}]"; arrow_signs_on_place = function(itemstack, placer, pointed_thing) local posabove = pointed_thing.above loca...
unlicense
letoram/durden
durden/menus/global/display.lua
1
21554
local function orientation_menu(name) return { { name = "default", label = "Default", description = "Set the display orientation to best for initial size", kind = "action", handler = function() display_reorient(name, 0) end }, { name = "90_cw", label = "+90", kind = "action", de...
bsd-3-clause
Whit3Tig3R/1234bot
plugins/ingroup.lua
527
44020
do -- Check Member local function check_member_autorealm(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration data[tostr...
gpl-2.0
kissg1988/packages
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/bmx6.lua
78
1115
#!/usr/bin/lua local json = require "cjson" local function interpret_suffix(rate) local value = string.sub(rate, 1, -2) local suffix = string.sub(rate, -1) if suffix == "K" then return tonumber(value) * 10^3 end if suffix == "M" then return tonumber(value) * 10^6 end if suffix == "G" then return tonumber(va...
gpl-2.0
fgprodigal/RayUI
Interface/AddOns/RayUI/mini/BonusRollPreview/encounters/Pandaria.lua
2
3148
local _, ns = ... ns.encounterInfo = ns.encounterInfo or {} ns.itemBlacklist = ns.itemBlacklist or {} -- http://www.wowhead.com/spells=0?filter=na=Bonus;cr=84:109:16;crs=1:6:5 for spellID, encounterInfo in next, { -- World [132205] = {691, 322, 3}, -- Sha of Anger [132206] = {725, 322, 3}, -- Salyis' Warband (Galle...
mit
fgprodigal/RayUI
Interface/AddOns/RayUI_Options/libs/AceGUI-3.0-SharedMediaWidgets/StatusbarWidget.lua
3
6441
-- Widget is based on the AceGUIWidget-DropDown.lua supplied with AceGUI-3.0 -- Widget created by Yssaril local AceGUI = LibStub("AceGUI-3.0") local Media = LibStub("LibSharedMedia-3.0") local AGSMW = LibStub("AceGUISharedMediaWidgets-1.0") do local widgetType = "LSM30_Statusbar" local widgetVersion = 11 local c...
mit
Cloudef/darkstar
scripts/globals/effects/overdrive.lua
1
1632
----------------------------------- -- -- dsp.effects.OVERDRIVE -- ----------------------------------- ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) target:addMod(MOD_OVERLOAD_THRESH, 5000) local pet = target:getPet() ...
gpl-3.0
tst2005googlecode/fbclient
lua/fbclient/tpb.lua
2
4346
--[[ TPB (Transaction Parameter Block) structure: encode the options for creating transactions encode(tpb_options_t) -> TPB encoded string. USAGE: - pass the encoded TPB to to isc_start_multiple() to start a transaction. - table reservation options occupy the array part of tpb_options_t, one numerical index for...
mit
fgprodigal/RayUI
Interface/AddOns/RayUI/modules/skins/blizzard/talent.lua
1
12122
---------------------------------------------------------- -- Load RayUI Environment ---------------------------------------------------------- RayUI:LoadEnv("Skins") local S = _Skins local function LoadSkin() local r, g, b = _r, _g, _b PlayerTalentFrameTalents:DisableDrawLayer("BORDER") PlayerTalentFrameTalentsB...
mit
Goodzilam/Goodzila-bot_v1.4
plugins/google.lua
336
1323
do local function googlethat(query) local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&' local parameters = 'q='..(URL.escape(query) or '') -- Do the request local res, code = https.request(url..parameters) if code ~=200 then return nil end loca...
gpl-2.0
dani-sj/danyevill
plugins/google.lua
336
1323
do local function googlethat(query) local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&' local parameters = 'q='..(URL.escape(query) or '') -- Do the request local res, code = https.request(url..parameters) if code ~=200 then return nil end loca...
gpl-2.0
Cloudef/darkstar
scripts/globals/items/prized_beef_stewpot.lua
2
1650
----------------------------------------- -- ID: 5549 -- Item: Prized Angler's Stewpot -- Food Effect: 4 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +10% Cap 100 -- MP +20 -- Strength +4 -- Agility +2 -- Mind +2 -- HP Recovered while healing +9 -- MP Recovered while healing +3 -...
gpl-3.0
DARKRPISSHITFIXTHISUPDATE/DarkRP
entities/entities/darkrp_laws/init.lua
11
4934
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") local Laws = {} local FixedLaws = {} timer.Simple(0, function() Laws = table.Copy(GAMEMODE.Config.DefaultLaws) FixedLaws = table.Copy(Laws) end) local hookCanEditLaws = {canEditLaws = function(_, ply, action, args) if not RPExt...
mit
Cloudef/darkstar
scripts/zones/Upper_Jeuno/npcs/Chocobo.lua
5
4553
----------------------------------- -- Area: Upper Jeuno -- NPC: Chocobo -- Finishes Quest: Chocobo's Wounds ----------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; package.loaded["scripts/globals/settings"] = nil; ----------------------------------- require("scripts/globals/sett...
gpl-3.0
Cloudef/darkstar
scripts/globals/spells/knights_minne_iv.lua
2
1502
----------------------------------------- -- Spell: Knight's Minne IV -- Grants Defense bonus to all allies. ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/msg"); ----------------------------------------- function onMagicCastingCheck(caster,target,spell) retur...
gpl-3.0
Cloudef/darkstar
scripts/globals/spells/bluemagic/terror_touch.lua
2
1891
----------------------------------------- -- Spell: Terror Touch -- Additional effect: Weakens attacks. Accuracy varies with TP -- Spell cost: 62 MP -- Monster Type: Undead -- Spell Type: Physical (Blunt) -- Blue Magic Points: 3 -- Stat Bonus: HP-5 MP+10 -- Level: 40 -- Casting Time: 3.25 seconds -- Recast Time: 21 sec...
gpl-3.0
bernard24/RIS
plants_learning/create_lstm_protos.lua
1
1954
function create_lstm_protos (height, width, nChannels, rnn_size, rnn_layers, filter_size, lambda, is_big) is_big = is_big or 0 local protos = {} protos.rnn = ConvLSTM.convlstm(height, width, nChannels, rnn_size, rnn_layers, filter_size) -- the initial state of the cell/hidden states init_state = {} for L=1,rnn_l...
mit
Cloudef/darkstar
scripts/globals/spells/bluemagic/radiant_breath.lua
2
2407
----------------------------------------- -- Spell: Radiant Breath -- Deals light damage to enemies within a fan-shaped area of effect originating from the caster. Additional effect: Slow and Silence. -- Spell cost: 116 MP -- Monster Type: Wyverns -- Spell Type: Magical (Light) -- Blue Magic Points: 4 -- Stat Bonus: CH...
gpl-3.0
aliazaliaz/fire1
plugins/tools.lua
1
59574
--Begin Tools.lua :) local SUDO = 323046540 -- put Your ID here! <=== function exi_files(cpath) local files = {} local pth = cpath for k, v in pairs(scandir(pth)) do table.insert(files, v) end return files end local function file_exi(name, cpath) for k,v in pairs(exi_files(cpath)) do ...
gpl-3.0
vrxfile/embox-trik
platform/ti816x_net_filter/templates/x86_test/rootfs/server/show.lua
12
3615
local CE = require "server/compat_env" getfenv=CE.getfenv setfenv=CE.setfenv print(getfenv,setfenv) -- This function conditions a key or value for display local function LclRenderStr(Obj, TruncLen) local TpStr = type(Obj) if TpStr == "string" then Obj = string.gsub(Obj, "[^%w%p ]", function(Ch) return "\\" .. strin...
bsd-2-clause
mehrpouya81/iranspammer
bot/utils.lua
356
14963
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() JSON = (loadfile "./libs/...
gpl-2.0
Cloudef/darkstar
scripts/globals/ability.lua
1
20504
----------------------------------- -- -- ABILITIES -- ----------------------------------- require("scripts/globals/status"); require("scripts/globals/msg"); ABILITY_MIGHTY_STRIKES = 0; ABILITY_HUNDRED_FISTS = 1; ABILITY_BENEDICTION = 2; ABILITY_MANAFONT = 3; ABILITY_CHAINSPELL = 4; A...
gpl-3.0
Cloudef/darkstar
scripts/zones/Davoi/npcs/_45d.lua
5
1258
----------------------------------- -- Area: Davoi -- NPC: Wall of Banishing -- Used In Quest: Whence Blows the Wind -- !pos 181 0.1 -218 149 ----------------------------------- package.loaded["scripts/zones/Davoi/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("script...
gpl-3.0
cmbug/AStar
cocos2d/plugin/luabindings/auto/api/AgentManager.lua
146
1798
-------------------------------- -- @module AgentManager -- @parent_module plugin -------------------------------- -- -- @function [parent=#AgentManager] getSocialPlugin -- @param self -- @return plugin::ProtocolSocial#plugin::ProtocolSocial ret (return value: cc.plugin::ProtocolSocial) -------------------...
gpl-3.0
Cloudef/darkstar
scripts/globals/spells/absorb-agi.lua
2
1585
-------------------------------------- -- Spell: Absorb-AGI -- Steals an enemy's agility. -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------------- function o...
gpl-3.0
kingjan123/TiagoBot
plugins/moderation.lua
3
32701
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-3.0
Cloudef/darkstar
scripts/globals/weaponskills/flash_nova.lua
23
1433
----------------------------------- -- Flash Nova -- Skill level: 290 -- Delivers light elemental damage. Additional effect: Flash. Chance of effect varies with TP. -- Generates a significant amount of Enmity. -- Does not stack with Sneak Attack -- Aligned with Aqua Gorget. -- Aligned with Aqua Belt. -- Properties: -- ...
gpl-3.0
Cloudef/darkstar
scripts/globals/mobskills/hurricane_wing.lua
4
1337
--------------------------------------------- -- Hurricane Wing -- -- Description: Deals hurricane-force wind damage to enemies within a very wide area of effect. Additional effect: Blind -- Type: Magical -- Utsusemi/Blink absorb: Wipes shadows -- Range: 30' radial. -- Notes: Used only by Dragua, Fafnir, Nidhogg,...
gpl-3.0
Cloudef/darkstar
scripts/globals/mobskills/typhoon_wing.lua
4
1337
--------------------------------------------- -- Hurricane Wing -- -- Description: Deals hurricane-force wind damage to enemies within a very wide area of effect. Additional effect: Blind -- Type: Magical -- Utsusemi/Blink absorb: Wipes shadows -- Range: 30' radial. -- Notes: Used only by Dragua, Fafnir, Nidhogg,...
gpl-3.0
david-xiao/luci
applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdiface6.lua
68
5949
-- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local util = require "luci.util" local ip = require "luci.ip" function write_float(self, section, value) local n = tonumber(value) if n ~= nil then return Value.write(self, section, "%.1f" % n) ...
apache-2.0
Owlies/server
service/debug_console.lua
6
7011
local skynet = require "skynet" local codecache = require "skynet.codecache" local core = require "skynet.core" local socket = require "socket" local snax = require "snax" local memory = require "memory" local httpd = require "http.httpd" local sockethelper = require "http.sockethelper" local port = tonumber(...) loca...
mit
Cloudef/darkstar
scripts/globals/items/grape_daifuku.lua
2
1860
----------------------------------------- -- ID: 6343 -- Item: grape_daifuku -- Food Effect: 30 Min, All Races ----------------------------------------- -- HP + 20 (Pet & Master) -- Vitality + 3 (Pet & Master) -- Master MAB + 3 , Pet MAB + 14 -- Accuracy/Ranged Accuracy +10% (cap 50 on master, cap 75 on pet) ----------...
gpl-3.0
Cloudef/darkstar
scripts/globals/items/slice_of_cockatrice_meat.lua
2
1108
----------------------------------------- -- ID: 4435 -- Item: slice_of_cockatrice_meat -- Food Effect: 5Min, Galka only ----------------------------------------- -- Strength 4 -- Intelligence -6 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- func...
gpl-3.0
Cloudef/darkstar
scripts/globals/weaponskills/shockwave.lua
2
1550
----------------------------------- -- Shockwave -- Great Sword weapon skill -- Skill level: 150 -- Delivers an area of effect attack. Sleeps enemies. Duration of effect varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Aqua Gorget. -- Aligned with the Aqua Belt. -- Element: None -- Modifiers: STR:30...
gpl-3.0
Cloudef/darkstar
scripts/zones/Ordelles_Caves/npcs/qm3.lua
5
1306
----------------------------------- -- 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
vvavva/vva
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 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
Cloudef/darkstar
scripts/globals/items/sleep_bolt.lua
2
1230
----------------------------------------- -- ID: 18149 -- Item: Sleep Bolt -- Additional Effect: Sleep ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------- -- onAdditionalEffect Action --------...
gpl-3.0
ryanjmulder/premake-4.x
tests/base/test_config.lua
57
2415
-- -- tests/test_config.lua -- Automated test suite for the configuration handling functions. -- Copyright (c) 2010 Jason Perkins and the Premake project -- T.config = { } local suite = T.config -- -- Setup/Teardown -- function suite.setup() sln = test.createsolution() end local cfg local function prepare(...
bsd-3-clause
ryanjmulder/premake-4.x
tests/actions/vstudio/cs2005/projectelement.lua
1
1904
-- -- tests/actions/vstudio/cs2005/projectelement.lua -- Validate generation of <Project/> element in Visual Studio 2005+ .csproj -- Copyright (c) 2009-2011 Jason Perkins and the Premake project -- T.vstudio_cs2005_projectelement = { } local suite = T.vstudio_cs2005_projectelement local cs2005 = premake.vstudio.cs2...
bsd-3-clause
Cloudef/darkstar
scripts/globals/weaponskills/numbing_shot.lua
2
1581
----------------------------------- -- Numbing Shot -- Marksmanship weapon skill -- Skill level: 290 -- Main of sub must be Ranger or Corsair -- Aligned with the Thunder & Breeze Gorget. -- Aligned with the Thunder Belt & Breeze Belt. -- Element: Ice -- Modifiers: AGI 80% -- 100%TP 200%TP 300%TP -- 3.00 3.00...
gpl-3.0
Cloudef/darkstar
scripts/zones/Port_Windurst/npcs/Kucha_Malkobhi.lua
5
1199
----------------------------------- -- Area: Port Windurst -- NPC: Kucha Malkobhi -- Standard Merchant NPC -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ----------------------------------- require("...
gpl-3.0
hotgloupi/zhttpd
server/parser/ticpp/premake4.lua
4
1823
--***************************************************************************** --* Author: RJP Computing <rjpcomputing@gmail.com> --* Copyright (C) 2009 RJP Computing --* --* Permission is hereby granted, free of charge, to any person obtaining a copy of --* this software and associated documentation files (the ...
bsd-3-clause
frankpaschen99/SSRP
gamemode/commands.lua
1
1710
-- most of these are for debug concommand.Add("promote", function( ply, cmd, args ) local rank = tonumber(args[1]) ply:SetTeam(rank) ply:Kill() -- for loadouts end) concommand.Add("addmoney", function(ply, cmd, args) local amt = tonumber(args[1]) if !IsValid(ply) or !amt then return end ply:AddMoney(amt) end) co...
mit
fgprodigal/RayUI
Interface/AddOns/RayUI/libs/LibSharedMedia-3.0/LibSharedMedia-3.0.lua
34
11935
--[[ Name: LibSharedMedia-3.0 Revision: $Revision: 91 $ Author: Elkano (elkano@gmx.de) Inspired By: SurfaceLib by Haste/Otravi (troeks@gmail.com) Website: http://www.wowace.com/projects/libsharedmedia-3-0/ Description: Shared handling of media data (fonts, sounds, textures, ...) between addons. Dependencies: LibStub, C...
mit
Cloudef/darkstar
scripts/zones/Garlaige_Citadel/npcs/qm19.lua
5
1808
----------------------------------- -- Area: Garlaige Citadel -- NPC: qm19 (??? - Bomb Coal Fragments) -- Involved in Quest: In Defiant Challenge -- !pos -50.175 6.264 251.669 200 ----------------------------------- package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil; ----------------------------------- req...
gpl-3.0
DARKRPISSHITFIXTHISUPDATE/DarkRP
gamemode/modules/logging/sv_logging.lua
10
1147
local function AdminLog(message, colour, allowedPlys) local RF = RecipientFilter() for k,v in pairs(allowedPlys) do local canHear = hook.Call("canSeeLogMessage", GAMEMODE, v, message, colour) if canHear then RF:AddPlayer(v) end end umsg.Start("DRPLogMsg", RF) ...
mit
nyasukun/openstackcraft
world/Plugins/HookNotify/HookNotify.lua
20
2130
-- HookNotify.lua --[[ Implements the entire plugin NOTE: This plugin is not meant for production servers. It is used mainly by developers to verify that things are working properly when implementing MCServer features. Do not enable this plugin on production servers! This plugin logs a notification for each hook th...
apache-2.0
Cloudef/darkstar
scripts/globals/abilities/fire_maneuver.lua
2
1742
----------------------------------- -- Ability: Fire Maneuver -- Enhances the effect of fire attachments. Must have animator equipped. -- Obtained: Puppetmaster level 1 -- Recast Time: 10 seconds (shared with all maneuvers) -- Duration: 1 minute ----------------------------------- require("scripts/globals/status"); req...
gpl-3.0
fgprodigal/RayUI
Interface/AddOns/RayUI/modules/combattext/combattext.lua
1
16433
---------------------------------------------------------- -- Load RayUI Environment ---------------------------------------------------------- RayUI:LoadEnv("CombatText") local CT = R:NewModule("CombatText", "AceEvent-3.0", "AceHook-3.0", "AceTimer-3.0", "AceConsole-3.0") local xCP = LibStub("xCombatParser-1.0-Ray...
mit
microcai/skynet
examples/share.lua
66
1702
local skynet = require "skynet" local sharedata = require "sharedata" local mode = ... if mode == "host" then skynet.start(function() skynet.error("new foobar") sharedata.new("foobar", { a=1, b= { "hello", "world" } }) skynet.fork(function() skynet.sleep(200) -- sleep 2s skynet.error("update foobar a = 2") ...
mit
szagoruyko/fblualib
fblualib/util/test/trace_test.lua
4
2355
-- -- Copyright (c) 2014, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. -- require('fb.lua...
bsd-3-clause
Rondoozle/MasterSight
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 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
dddaaaddd/teleseed_super
plugins/banhammer.lua
1085
11557
local function pre_process(msg) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('Checking invited user '..user_id) local banned ...
gpl-2.0
MinetestForFun/server-minetestforfun
mods/mobs/api.lua
4
60936
-- Mobs Api (4th March 2016) mobs = {} mobs.mod = "redo" -- Load settings local damage_enabled = minetest.setting_getbool("enable_damage") local peaceful_only = minetest.setting_getbool("only_peaceful_mobs") local disable_blood = minetest.setting_getbool("mobs_disable_blood") local creative = minetest.setting_getbool(...
unlicense
Owlies/server
test/testmysql.lua
28
3810
local skynet = require "skynet" local mysql = require "mysql" local function dump(obj) local getIndent, quoteStr, wrapKey, wrapVal, dumpObj getIndent = function(level) return string.rep("\t", level) end quoteStr = function(str) return '"' .. string.gsub(str, '"', '\\"') .. '"' end ...
mit
Cloudef/darkstar
scripts/zones/Lower_Jeuno/npcs/Sniggnix.lua
5
1962
----------------------------------- -- Area: Lower Jeuno -- NPC: Sniggnix -- Type: Standard NPC -- @zone 245 -- !pos -45.832 4.498 -135.029 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; ---------------------...
gpl-3.0
Cloudef/darkstar
scripts/globals/items/nirvana.lua
2
4651
----------------------------------------- -- ID: 19005 -- Item: Nirvana ----------------------------------------- require("scripts/globals/msg"); require("scripts/globals/status"); require("scripts/globals/weaponskills"); require("scripts/globals/weaponskillids"); ----------------------------------- local NAME_WEAPONS...
gpl-3.0
Cloudef/darkstar
scripts/zones/Dynamis-Bastok/Zone.lua
5
2061
----------------------------------- -- -- Zone: Dynamis-Bastok -- ----------------------------------- package.loaded["scripts/zones/Dynamis-Bastok/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); require("scripts/zones/Dynamis-Bastok/TextIDs"); ----------------------------------- ...
gpl-3.0
MicroJOo/OpenRA
mods/d2k/maps/atreides-01b/atreides01b.lua
18
4872
HarkonnenReinforcements = { } HarkonnenReinforcements["Easy"] = { { "light_inf", "light_inf" } } HarkonnenReinforcements["Normal"] = { { "light_inf", "light_inf" }, { "light_inf", "light_inf", "light_inf" }, { "light_inf", "trike" }, } HarkonnenReinforcements["Hard"] = { { "light_inf", "light_inf" }, { "trike"...
gpl-3.0
mehrpouya81/iranspammer
plugins/steam.lua
645
2117
-- See https://wiki.teamfortress.com/wiki/User:RJackson/StorefrontAPI do local BASE_URL = 'http://store.steampowered.com/api/appdetails/' local DESC_LENTH = 200 local function unescape(str) str = string.gsub( str, '&lt;', '<' ) str = string.gsub( str, '&gt;', '>' ) str = string.gsub( str, '&quot;', '"' ) str...
gpl-2.0
Cloudef/darkstar
scripts/zones/Temple_of_Uggalepih/npcs/_4fx.lua
5
1651
----------------------------------- -- Area: Temple of Uggalepih -- NPC: Granite Door -- !pos 340 0.1 329 159 ----------------------------------- package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Temple_of_Uggalepih/TextIDs"); require("scripts...
gpl-3.0
Cloudef/darkstar
scripts/zones/The_Sanctuary_of_ZiTah/npcs/qm3.lua
4
1334
----------------------------------- -- Area: The Sanctuary of Zitah -- NPC: ??? -- Involved In Quest: The Sacred Katana -- @zone 121 -- !pos -416 0 46 ----------------------------------- package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil; ----------------------------------- require("scripts/zones/The...
gpl-3.0
yujiali/ggnn
babi/seq_rnn_eval.lua
1
1447
-- Evaluate performance of thr RNN models. -- -- Yujia Li, 10/2015 -- require 'lfs' rnn = require '../rnn' eval_util = require 'eval_util' babi_data = require 'babi_data' seq_data = require 'seq_data' cmd = torch.CmdLine() cmd:option('-modeldir', '', 'Path to the root model output directory.') cmd:option('-mb', 1000,...
mit
mosavy/1bbb1
plugins/help.lua
1
2132
local function run(msg, matches) local group = load_data('bot/group.json') local addgroup = group[tostring(msg.chat_id)] if matches[1] == 'help' and is_momod(msg) or is_owner(msg) and addgroup then pm1 = [[🔴⚜🔐help lock🔐⚜🔴 🔹!lock links =>قفل لینک 🔹!lock edit =>قفل ویرایش پیام 🔹!lock fwd =>قفل فروارد 🔹!loc...
gpl-3.0
Howaner/MCServer
Server/Plugins/APIDump/Hooks/OnBlockSpread.lua
23
1545
return { HOOK_BLOCK_SPREAD = { CalledWhen = "Called when a block spreads based on world conditions", DefaultFnName = "OnBlockSpread", -- also used as pagename Desc = [[ This hook is called when a block spreads.</p> <p> The spread carries with it the type of its source - whether it's a block spreads. ...
apache-2.0
moomoomoo309/WorldEdit-CC
WE_Comms.lua
1
6620
local fileStoragePath = ".WE_Username" local function getUsernameFromFile() if not fs.exists(fileStoragePath) then fs.open(fileStoragePath, "w").close() --Make sure the file exists end local f = fs.open(fileStoragePath, "r") local username = f.readAll() f.close() return username end --...
mit
LuaDist2/lugate
src/lugate/http_statuses.lua
2
2177
---------------------- -- The lugate module. -- Lugate is a lua module for building JSON-RPC 2.0 Gateway APIs just inside of your Nginx configuration file. -- Lugate is meant to be used with [ngx\_http\_lua\_module](https://github.com/openresty/lua-nginx-module) together. -- -- @classmod lugate.http_statuses -- @author...
mit
Cloudef/darkstar
scripts/zones/PsoXja/npcs/_096.lua
5
1047
----------------------------------- -- Area: Pso'Xja -- NPC: _096 (Stone Gate) -- Notes: Spawns Gargoyle when triggered -- !pos 290.000 -1.925 -98.399 9 ----------------------------------- package.loaded["scripts/zones/PsoXja/TextIDs"] = nil; ----------------------------------- require("scripts/zones/PsoXja/globals");...
gpl-3.0
Cloudef/darkstar
scripts/zones/Southern_San_dOria_[S]/npcs/Loillie.lua
5
1337
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Loillie -- @zone 80 -- !pos 78 -8 -23 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Southern_San_dOria_[S]/TextIDs"); require...
gpl-3.0
Cloudef/darkstar
scripts/zones/Throne_Room/npcs/_4l4.lua
66
1207
----------------------------------- -- Area: Throne Room -- NPC: Ore Door ------------------------------------- require("scripts/globals/bcnm"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) if (TradeBCNM(player,player:getZoneID...
gpl-3.0
Cloudef/darkstar
scripts/zones/PsoXja/npcs/_09e.lua
5
1047
----------------------------------- -- Area: Pso'Xja -- NPC: _09e (Stone Gate) -- Notes: Spawns Gargoyle when triggered -- !pos 310.000 -1.925 -21.599 9 ----------------------------------- package.loaded["scripts/zones/PsoXja/TextIDs"] = nil; ----------------------------------- require("scripts/zones/PsoXja/globals");...
gpl-3.0
letoram/durden
durden/menus/global/terminal.lua
1
4429
-- font hint translation tables local hint_lut = { none = 0, mono = 1, light = 2, normal = 3, subpixel = 4 -- need to specify +1 in the case of rotated display }; local hint_rlut = {}; for k,v in pairs(hint_lut) do hint_rlut[v] = k; end local config_terminal_font = { { name = "font_sz", label = "Size", ki...
bsd-3-clause