repo_name
stringlengths
6
78
path
stringlengths
4
206
copies
stringclasses
281 values
size
stringlengths
4
7
content
stringlengths
625
1.05M
license
stringclasses
15 values
comitservice/nodmcu
lua_examples/webap_toggle_pin.lua
70
1202
wifi.setmode(wifi.SOFTAP); wifi.ap.config({ssid="test",pwd="12345678"}); gpio.mode(1, gpio.OUTPUT) srv=net.createServer(net.TCP) srv:listen(80,function(conn) conn:on("receive", function(client,request) local buf = ""; local _, _, method, path, vars = string.find(request, "([A-Z]+) (.+)?(.+) HTTP")...
mit
weitjong/Urho3D
bin/Data/LuaScripts/35_SignedDistanceFieldText.lua
26
7747
-- Signed distance field text example. -- This sample demonstrates: -- - Creating a 3D scene with static content -- - Creating a 3D text use SDF Font -- - Displaying the scene using the Renderer subsystem -- - Handling keyboard and mouse input to move a freelook camera require "LuaScripts/Utilities/Sam...
mit
Murfalo/game-off-2016
xl/Background.lua
1
2102
---- -- xl/Background.lua -- -- This represents a background. Backgrounds can, and should, be added to -- Scenes. ---- local Scene = require "xl.Scene" local Background = Class("Background") Background.__lt = Scene.lessThan Background.__le = Scene.lessThan ---- -- Utility function for rounding x upwards to the near...
mit
iamliqiang/prosody-modules
mod_s2soutinjection/mod_s2soutinjection.lua
32
1798
local st = require"util.stanza"; local new_ip = require"util.ip".new_ip; local new_outgoing = require"core.s2smanager".new_outgoing; local bounce_sendq = module:depends"s2s".route_to_new_session.bounce_sendq; local s2sout = module:depends"s2s".route_to_new_session.s2sout; local injected = module:get_option("s2s_connec...
mit
emptyrivers/WeakAuras2
WeakAurasOptions/SubRegionOptions/Tick.lua
1
7612
if not WeakAuras.IsCorrectVersion() then return end local AddonName, OptionsPrivate = ... local SharedMedia = LibStub("LibSharedMedia-3.0"); local L = WeakAuras.L; local indentWidth = WeakAuras.normalWidth * 0.06 local function createOptions(parentData, data, index, subIndex) local hiddentickextras = function() ...
gpl-2.0
fegimanam/a
plugins/chat.lua
26
1577
local function run(msg) if msg.text == "سلام" then return "؟سلام عشقم خوبی" end if msg.text == "کیر" then return "تو کسس ننت" end if msg.text == "Hello" then return "Hi bb" end if msg.text == "hello" then return "Hi honey" end if msg.text == "کسس ننت" then return "کیر آقام دست ننت" end if msg.text == "Salam" then ...
gpl-2.0
m-creations/openwrt
feeds/luci/modules/luci-base/luasrc/model/firewall.lua
67
10658
-- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local type, pairs, ipairs, table, luci, math = type, pairs, ipairs, table, luci, math local tpl = require "luci.template.parser" local utl = require "luci.util" local uci = require "luci.model.uci" module "lu...
gpl-2.0
jengske/AnimalMod
lua/AnimalTypes.lua
1
19056
-- Class for all Animals -- AnimalMod: AnimalTypes.lua -- Author: Dirk Peeters -- CopyRight: (c) 2011 - 2016 Peeters Dirk -------------------------------------------------- AnimalType = {}; AnimalType_mt = Class(AnimalType, AnimalMod); InitObjectClass(AnimalType, "AnimalType", ObjectIds.OBJECT_ANIMAL); addModEventLis...
mit
AlexVPopov/mongrel2
examples/bbs/db.lua
96
1086
local strict = require 'strict' local sidereal = require 'sidereal' local table_concat = table.concat local print = print local assert = assert module 'db' local DB = assert(sidereal.connect('localhost', 6379)) function reconnect() return sidereal.connect('localhost', 6379) end local function format_message(use...
bsd-3-clause
handloomweaver/mongrel2
examples/bbs/db.lua
96
1086
local strict = require 'strict' local sidereal = require 'sidereal' local table_concat = table.concat local print = print local assert = assert module 'db' local DB = assert(sidereal.connect('localhost', 6379)) function reconnect() return sidereal.connect('localhost', 6379) end local function format_message(use...
bsd-3-clause
zhaohao/waifu2x
convert_data.lua
34
1077
require './lib/portable' require 'image' local settings = require './lib/settings' local image_loader = require './lib/image_loader' local function count_lines(file) local fp = io.open(file, "r") local count = 0 for line in fp:lines() do count = count + 1 end fp:close() return count end lo...
mit
wan-qy/waifu2x
convert_data.lua
34
1077
require './lib/portable' require 'image' local settings = require './lib/settings' local image_loader = require './lib/image_loader' local function count_lines(file) local fp = io.open(file, "r") local count = 0 for line in fp:lines() do count = count + 1 end fp:close() return count end lo...
mit
ferstar/openwrt-dreambox
feeds/packages/lang/luaexpat/files/compat-5.1r5/compat-5.1.lua
251
6391
-- -- Compat-5.1 -- Copyright Kepler Project 2004-2006 (http://www.keplerproject.org/compat) -- According to Lua 5.1 -- $Id: compat-5.1.lua,v 1.22 2006/02/20 21:12:47 carregal Exp $ -- _COMPAT51 = "Compat-5.1 R5" local LUA_DIRSEP = '/' local LUA_OFSEP = '_' local OLD_LUA_OFSEP = '' local POF = 'luaopen_' local LUA_PA...
gpl-2.0
ferstar/openwrt-dreambox
feeds/luci/luci/luci/libs/core/luasrc/ltn12.lua
13
11347
--[[ LuaSocket 2.0.2 license Copyright � 2004-2007 Diego Nehab Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, me...
gpl-2.0
m-creations/openwrt
feeds/luci/libs/luci-lib-nixio/docsrc/nixio.TLSContext.lua
173
1393
--- Transport Layer Security Context Object. -- @cstyle instance module "nixio.TLSContext" --- Create a TLS Socket from a socket descriptor. -- @class function -- @name TLSContext.create -- @param socket Socket Object -- @return TLSSocket Object --- Assign a PEM certificate to this context. -- @class function -- @nam...
gpl-2.0
LacusCon/hugula
Client/tools/luaTools/win/lua/jit/bcsave.lua
75
18123
---------------------------------------------------------------------------- -- LuaJIT module to save/list bytecode. -- -- Copyright (C) 2005-2014 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
mit
NicolaiSoeborg/manipulator-plugin
manipulator.lua
1
5704
VERSION = "1.4.0" local micro = import("micro") local config = import("micro/config") local buffer = import("micro/buffer") -- Returns Loc-tuple w/ current marked text or whole line (begin, end) function getTextLoc(c) local v = micro.CurPane() local a, b = nil, nil if c:HasSelection() then if c.Cu...
mit
MmxBoy/test2
plugins/service_entergroup.lua
355
3585
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
mamaddeveloper/uzz
plugins/service_entergroup.lua
355
3585
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
iamliqiang/prosody-modules
mod_http_altconnect/mod_http_altconnect.lua
32
1829
-- mod_http_altconnect -- XEP-0156: Discovering Alternative XMPP Connection Methods module:depends"http"; local json = require"util.json"; local st = require"util.stanza"; local array = require"util.array"; local host_modules = hosts[module.host].modules; local function get_supported() local uris = array(); if ho...
mit
frodrigo/osrm-backend
third_party/flatbuffers/tests/MyGame/Example/TestSimpleTableWithEnum.lua
10
1204
-- automatically generated by the FlatBuffers compiler, do not modify -- namespace: Example local flatbuffers = require('flatbuffers') local TestSimpleTableWithEnum = {} -- the module local TestSimpleTableWithEnum_mt = {} -- the class metatable function TestSimpleTableWithEnum.New() local o = {} setmetatabl...
bsd-2-clause
czettnersandor/dotfiles
.config/awesome/rc.lua
1
24777
-- Standard awesome library local gears = require("gears") local awful = require("awful") awful.rules = require("awful.rules") require("awful.autofocus") local blingbling = require("blingbling") -- Widget and layout library local vicious = require("vicious") local wibox = require("wibox") -- Theme handling library loca...
mit
MmxBoy/mmxanti2
plugins/torrent_search.lua
411
1622
--[[ NOT USED DUE TO SSL ERROR -- See https://getstrike.net/api/ local function strike_search(query) local strike_base = 'http://getstrike.net/api/v2/torrents/' local url = strike_base..'search/?phrase='..URL.escape(query) print(url) local b,c = http.request(url) print(b,c) local search = json:decode(b) v...
gpl-2.0
ferstar/openwrt-dreambox
feeds/luci/luci/luci/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdiface.lua
9
5925
--[[ LuCI - Lua Configuration Interface Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id: olsrdifa...
gpl-2.0
m-creations/openwrt
feeds/luci/modules/luci-mod-admin-full/luasrc/controller/admin/network.lua
36
11355
-- 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.network", package.seeall) function index() local uci = require("luci.model.uci").cursor() local page page = node("admin", "n...
gpl-2.0
LacusCon/hugula
Client/Assets/Lua/netGame.lua
7
1721
local os=os -- local pLua=PLua.instance local UPDATECOMPONENTS=UPDATECOMPONENTS local LuaObject=LuaObject local StateManager=StateManager local Net=Net local Msg=Msg ------------------------------------------------------------------------------- local Proxy=Proxy local NetMsgHelper = NetMsgHelper local NetAPIList = N...
mit
allwenandashi/1
plugins/arabic_lock.lua
234
1405
antiarabic = {}-- An empty table for solving multiple kicking problem do local function run(msg, matches) if is_momod(msg) then -- Ignore mods,owner,admins return end local data = load_data(_config.moderation.data) if data[tostring(msg.to.id)]['settings']['lock_arabic'] then if data[tostring(msg.to.id)...
gpl-2.0
werpat/MoonGen
lua/include/dpdkc.lua
1
7755
--- low-level dpdk wrapper local ffi = require "ffi" -- structs ffi.cdef[[ // core management enum rte_lcore_state_t { WAIT, RUNNING, FINISHED }; // packets/mbufs struct rte_pktmbuf { struct rte_mbuf* next; void* data; uint16_t data_len; uint8_t nb_segs; uint8_t in_port; uint32_t pkt_len; //union...
mit
otland/forgottenserver
data/scripts/actions/tools/rust_remover.lua
6
4736
local config = { [9808] = { -- Rusty Armor (Common) [1] = {id = 2464, chance = 6994}, -- Chain Armor [2] = {id = 2483, chance = 3952}, -- Scale Armor [3] = {id = 2465, chance = 1502}, -- Brass Armor [4] = {id = 2463, chance = 197} -- Plate Armor }, [9809] = { -- Rusty Armor (Semi-rare) [1] = {id = 2483, ch...
gpl-2.0
jiankers/Atlas
examples/tutorial-scramble.lua
40
1816
--[[ $%BEGINLICENSE%$ Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. 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; version 2 of the License. This program is distribut...
gpl-2.0
mofax/cardpeek
dot_cardpeek_dir/scripts/emv.lua
15
37360
-- -- This file is part of Cardpeek, the smartcard reader utility. -- -- Copyright 2009-2015 by 'L1L1' -- -- Cardpeek 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 -- (a...
gpl-3.0
m-creations/openwrt
feeds/luci/applications/luci-app-diag-devinfo/luasrc/controller/luci_diag/smap_common.lua
61
3184
-- Copyright 2009 Daniel Dickinson -- Licensed to the public under the Apache License 2.0. module("luci.controller.luci_diag.smap_common", package.seeall) require("luci.i18n") require("luci.util") require("luci.sys") require("luci.cbi") require("luci.model.uci") local translate = luci.i18n.translate local DummyValue...
gpl-2.0
loringmoore/The-Forgotten-Server
data/npc/scripts/runes.lua
1
9995
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCre...
gpl-2.0
Godfather021/best
plugins/id.lua
5
5010
--[[ Print user identification/informations by replying their post or by providing their username or print_name. !id <text> is the least reliable because it will scan trough all of members and print all member with <text> in their print_name. chat_info can be displayed on group, send it into PM, or save as file then se...
gpl-2.0
spacebuild/sbep
lua/weapons/gmod_tool/stools/sbep_door.lua
2
4798
TOOL.Category = "SBEP" TOOL.Tab = "Spacebuild" TOOL.Tab = "Spacebuild" TOOL.Name = "#Door" TOOL.Command = nil TOOL.ConfigName = "" local DoorToolModels = list.Get( "SBEP_DoorToolModels" ) if CLIENT then language.Add( "Tool.sbep_door.name" , "SBEP Door Tool" ) language.Add( "Tool.sbep_door.desc" , "Cr...
apache-2.0
Native-Software/Krea
CoronaGameEditor/bin/Debug/Lua Repository/radar.lua
4
5549
--- This module is provided as it by Native-Software for use into a Krea project. -- @author Frederic Raimondi -- @copyright Native-Software 2012- All Rights Reserved. -- @release 1.0 -- @see object -- @description Provides a Radar Object allowing to see the position of referenced displayObject into the scene -- <br>...
gpl-2.0
cochrane/OpenTomb
scripts/level/tr3/CHAMBER.lua
2
1208
-- OPENTOMB LEVEL SCRIPT -- FOR TOMB RAIDER 3, CHAMBER.TR2 print("Level script loaded (CHAMBER.lua)"); -- STATIC COLLISION FLAGS ------------------------------------------------------ -------------------------------------------------------------------------------- static_tbl[00] = {coll = COLLISION_TYPE_STATIC, shap...
lgpl-3.0
spacebuild/sbep
lua/weapons/gmod_tool/stools/sbep_docking_clamp.lua
2
5520
TOOL.Category = "SBEP" TOOL.Tab = "Spacebuild" TOOL.Name = "#Docking Clamp" TOOL.Command = nil TOOL.ConfigName = "" local DockingClampModels = list.Get( "SBEP_DockingClampModels" ) local DockClampToolModels = list.Get( "SBEP_DockClampToolModels" ) if CLIENT then language.Add( "Tool.sbep_docking_clamp.name" ,...
apache-2.0
vzaramel/kong
spec/plugins/key-auth/api_spec.lua
7
3821
local json = require "cjson" local http_client = require "kong.tools.http_client" local spec_helper = require "spec.spec_helpers" describe("Key Auth Credentials API", function() local BASE_URL, credential, consumer setup(function() spec_helper.prepare_db() spec_helper.start_kong() end) teardown(funct...
apache-2.0
iamliqiang/prosody-modules
mod_pubsub_eventsource/mod_pubsub_eventsource.lua
32
1722
module:depends("http"); module:depends("pubsub"); local streams = {}; local service = hosts[module.host].modules.pubsub.service; function client_closed(response) local node = response._eventsource_node; module:log("debug", "Destroying client for %q", node); streams[node][response] = nil; if next(streams[node]) =...
mit
greasydeal/darkstar
scripts/zones/Lower_Jeuno/npcs/Rhimonne.lua
37
1153
----------------------------------- -- Area: Lower Jeuno -- NPC: Rhimonne -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; require("scripts/zones/Lower_Jeuno/TextIDs"); -----------------------------------...
gpl-3.0
bbn1234/uzzbot
plugins/quotes.lua
651
1630
local quotes_file = './data/quotes.lua' local quotes_table function read_quotes_file() local f = io.open(quotes_file, "r+") if f == nil then print ('Created a new quotes file on '..quotes_file) serialize_to_file({}, quotes_file) else print ('Quotes loaded: '..quotes_file) f...
gpl-2.0
ibm2431/darkstar
scripts/zones/Stellar_Fulcrum/npcs/_4z1.lua
27
1030
----------------------------------- -- Area: Stellar Fulcrum -- NPC: Qe'Lov Gate ------------------------------------- require("scripts/globals/status"); ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) player:startEvent(32003); return 1; end; functi...
gpl-3.0
CuteOne/meta
Libs/LibStub/tests/test.lua
14
2014
debugstack = debug.traceback strmatch = string.match loadfile("../LibStub.lua")() local lib, oldMinor = LibStub:NewLibrary("Pants", 1) -- make a new thingy assert(lib) -- should return the library table assert(not oldMinor) -- should not return the old minor, since it didn't exist -- the following is to create data ...
gpl-3.0
LegionXI/darkstar
scripts/zones/Cape_Teriggan/npcs/Bright_Moon.lua
14
1912
----------------------------------- -- Area: Cape Teriggan -- NPC: Bright Moon -- Type: Outpost Vendor -- @pos -185 7 -63 113 ----------------------------------- package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/c...
gpl-3.0
LegionXI/darkstar
scripts/globals/mobskills/Turbofan.lua
33
1281
--------------------------------------------------- -- Turbofan -- Description: -- Type: Magical -- additional effect : Silence. --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); -------------------...
gpl-3.0
ibm2431/darkstar
scripts/zones/Apollyon/mobs/Air_Elemental.lua
9
2115
----------------------------------- -- Area: Apollyon SW -- Mob: Air Elemental ----------------------------------- require("scripts/globals/limbus"); ----------------------------------- function onMobDeath(mob, player, isKiller) end; function onMobDespawn(mob) local mobID = mob:getID(); -- print(mobID); loca...
gpl-3.0
ibm2431/darkstar
scripts/zones/Horlais_Peak/bcnms/carapace_combatants.lua
9
1065
----------------------------------- -- Carapace Combatants -- Horlais Peak BCNM30, Sky Orb -- !additem 1552 ----------------------------------- require("scripts/globals/battlefield") ----------------------------------- function onBattlefieldInitialise(battlefield) battlefield:setLocalVar("loot", 1) end function o...
gpl-3.0
LegionXI/darkstar
scripts/globals/spells/doton_san.lua
21
1275
----------------------------------------- -- Spell: Doton: San -- Deals earth damage to an enemy and lowers its resistance against wind. ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast -------------...
gpl-3.0
LegionXI/darkstar
scripts/zones/Valkurm_Dunes/TextIDs.lua
3
1951
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6401; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6406; -- Obtained: <item>. GIL_OBTAINED = 6407; -- Obtained <number> gil. KEYITEM_OBTAINED = 6409; -- Obtained...
gpl-3.0
ibm2431/darkstar
scripts/globals/spells/dia_iii.lua
11
2729
----------------------------------------- -- Spell: Dia III -- Lowers an enemy's defense and gradually deals light elemental damage. -- caster:getMerit() returns a value which is equal to the number of merit points TIMES the value of each point -- Dia III value per point is '30' This is a constant set in the table 'mer...
gpl-3.0
LegionXI/darkstar
scripts/zones/Xarcabard/npcs/Kaya_IM.lua
14
3316
----------------------------------- -- Area: Xarcabard -- NPC: Kaya, I.M. -- Type: Outpost Conquest Guards -- @pos 207.548 -24.795 -203.694 112 ----------------------------------- package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest"); require(...
gpl-3.0
Geigerkind/DPSMateTBC
DPSMate_Decurses/DPSMate_Details_Decurses.lua
1
7572
-- Global Variables DPSMate.Modules.DetailsDecurses = {} -- Local variables local DetailsArr, DetailsTotal, DmgArr, DetailUser, DetailsSelected = {}, 0, {}, "", 1 local DetailsArrComp, DetailsTotalComp, DmgArrComp, DetailUserComp, DetailsSelectedComp = {}, 0, {}, "", 1 local g, g2 local curKey = 1 local db, cbt = {}...
gpl-3.0
greasydeal/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Marquis_Decarabia.lua
19
1255
----------------------------------- -- Area: Dynamis Xarcabard -- NPC: Marquis Decarabia ----------------------------------- require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- -- onMobEngaged ----------------------------------- fun...
gpl-3.0
LegionXI/darkstar
scripts/zones/Bastok_Markets/npcs/Harmodios.lua
14
2447
----------------------------------- -- Area: Bastok Markets -- NPC: Harmodios -- Standard Merchant NPC -- @pos -79.928 -4.824 -135.114 235 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scri...
gpl-3.0
NebronTM/TeleBot
libs/feedparser.lua
31
12090
local LOM = assert(require("lxp.lom"), "LuaExpat doesn't seem to be installed. feedparser kind of needs it to work...") local XMLElement = (loadfile "./libs/XMLElement.lua")() local dateparser = (loadfile "./libs/dateparser.lua")() local URL = (loadfile "./libs/url.lua")() local tinsert, tremove, tconcat = table.insert...
gpl-3.0
alomina007/sgp
plugins/plugins.lua
13
6588
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
LegionXI/darkstar
scripts/zones/Temenos/mobs/Goblin_Fencer.lua
28
1132
----------------------------------- -- Area: Temenos N T -- NPC: Goblin_Fencer ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); -------------------------------...
gpl-3.0
naclander/tome
game/modules/tome/dialogs/CursedAuraSelect.lua
3
2609
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- 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 ...
gpl-3.0
LegionXI/darkstar
scripts/globals/status.lua
2
84689
------------------------------------ -- -- STATUSES AND MODS -- -- Contains variable-ized definitions of things like core enums for use in lua scripts. ------------------------------------ ------------------------------------ -- Job IDs ------------------------------------ JOBS = { ["NONE"] = 0, ["WAR"] = 1...
gpl-3.0
LegionXI/darkstar
scripts/zones/Windurst_Waters/npcs/HomePoint#1.lua
27
1281
----------------------------------- -- Area: Windurst Waters -- NPC: HomePoint#1 -- @pos -32.022 -5.000 131.741 238 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Windurst_Waters/TextIDs"); require("script...
gpl-3.0
greasydeal/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/HomePoint#3.lua
12
1217
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: HomePoint#3 -- @pos -108 -6 -108 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); require("s...
gpl-3.0
greasydeal/darkstar
scripts/zones/Promyvion-Dem/mobs/Memory_Receptacle.lua
12
6792
----------------------------------- -- Area: Promyvion-Dem -- MOB: Memory Receptacle ----------------------------------- package.loaded["scripts/zones/Promyvion-Dem/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); require( "scripts/zones/Promyvion-Dem/TextIDs" ); -...
gpl-3.0
LegionXI/darkstar
scripts/zones/Spire_of_Holla/Zone.lua
30
1406
----------------------------------- -- -- Zone: Spire_of_Holla (17) -- ----------------------------------- package.loaded["scripts/zones/Spire_of_Holla/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Spire_of_Holla/TextIDs"); ---------------------------...
gpl-3.0
tanghaodong25/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
dreamquster/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
ibm2431/darkstar
scripts/globals/weaponskills/gale_axe.lua
10
1350
----------------------------------- -- Gale Axe -- Axe weapon skill -- Skill level: 70 -- Chokes enemy. Duration of effect varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Breeze Gorget. -- Aligned with the Breeze Belt. -- Element: Wind -- Modifiers: STR:30% -- 100%TP 200%TP 300%TP -- 1.00 ...
gpl-3.0
ricker75/Global-Server
data/npc/scripts/Barazbaz.lua
1
4018
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHa...
gpl-2.0
LegionXI/darkstar
scripts/zones/Horlais_Peak/bcnms/dropping_like_flies.lua
30
1741
----------------------------------- -- Area: Horlias peak -- Name: Dropping Like Flies -- BCNM30 ----------------------------------- package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Horlais_Peak/TextIDs"); ----------------------------------- -- EXA...
gpl-3.0
LegionXI/darkstar
scripts/globals/items/plate_of_tentacle_sushi.lua
12
1819
----------------------------------------- -- ID: 5215 -- Item: plate_of_tentacle_sushi -- Food Effect: 30Min, All Races ----------------------------------------- -- HP 20 -- Dexterity 3 -- Agility 3 -- Mind -1 -- Accuracy % 20 (cap 18) -- Ranged Accuracy % 20 (cap 18) -- Double Attack 1 --------------------------------...
gpl-3.0
greasydeal/darkstar
scripts/zones/Yuhtunga_Jungle/mobs/Rose_Garden.lua
29
1648
----------------------------------- -- Area: Yuhtunga Jungle -- MOB: Rose Garden ----------------------------------- ----------------------------------- function onMobSpawn(mob) local Voluptuous_Vilma = 17281358; GetMobByID(Voluptuous_Vilma):setLocalVar("1",os.time() + math.random((36000), (37800))); ...
gpl-3.0
LegionXI/darkstar
scripts/zones/Abyssea-Grauberg/npcs/qm4.lua
14
1390
----------------------------------- -- Zone: Abyssea-Grauberg -- NPC: qm4 (???) -- Spawns Bomblix Flamefinger -- @pos ? ? ? 254 ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,...
gpl-3.0
LegionXI/darkstar
scripts/zones/Port_Windurst/npcs/Chipmy-Popmy.lua
17
1288
----------------------------------- -- Area: Port Windurst -- NPC: Chipmy-Popmy -- Working 100% ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/missions"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(playe...
gpl-3.0
LegionXI/darkstar
scripts/globals/items/blindfish.lua
12
1324
----------------------------------------- -- ID: 4313 -- Item: Blindfish -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Mind -4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ---------...
gpl-3.0
LegionXI/darkstar
scripts/globals/items/handful_of_bloody_chocolate.lua
12
1157
----------------------------------------- -- ID: 5646 -- Item: handful_of_bloody_chocolate -- Food Effect: 1hour, All Races ----------------------------------------- -- MP Recovered While Healing 4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -...
gpl-3.0
bacsmar/Urho3D
Source/ThirdParty/toluapp/src/bin/lua/container.lua
28
17414
-- tolua: container abstract class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id: $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation to provide maintenance, support, updates, -- e...
mit
LegionXI/darkstar
scripts/globals/abilities/wizards_roll.lua
19
2754
----------------------------------- -- Ability: Wizard's Roll -- Enhances magic attack for party members within area of effect -- Optimal Job: Black Mage -- Lucky Number: 5 -- Unlucky Number: 9 -- Level 58 -- -- Die Roll |No BLM |With BLM -- -------- -------- ----------- -- 1 |+4 |+14 -- 2 ...
gpl-3.0
naclander/tome
game/modules/tome/data/general/objects/egos/cloak.lua
1
11172
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2014 Nicolas Casalini -- -- 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 ...
gpl-3.0
greasydeal/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Hajawaa.lua
36
4458
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Hajawaa -- Armor Storage NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/armorst...
gpl-3.0
LegionXI/darkstar
scripts/zones/Caedarva_Mire/npcs/qm1.lua
30
1329
----------------------------------- -- Area: Caedarva Mire -- NPC: ??? (Spawn Verdelet(ZNM T2)) -- @pos 417 -19 -69 79 ----------------------------------- package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Caedarva_Mire/TextIDs"); require("scripts/gl...
gpl-3.0
LegionXI/darkstar
scripts/globals/items/dish_of_spaghetti_nero_di_seppia_+1.lua
12
1814
----------------------------------------- -- ID: 5202 -- Item: Dish of Spaghetti Nero Di Seppia +1 -- Food Effect: 60 Mins, All Races ----------------------------------------- -- HP % 17 (cap 140) -- Dexterity 3 -- Vitality 2 -- Agility -1 -- Mind -2 -- Charisma -1 -- Double Attack 1 -- Store TP 6 ---------------------...
gpl-3.0
ibm2431/darkstar
scripts/zones/Batallia_Downs/Zone.lua
9
1710
----------------------------------- -- -- Zone: Batallia_Downs (105) -- ----------------------------------- local ID = require("scripts/zones/Batallia_Downs/IDs") require("scripts/globals/icanheararainbow"); require("scripts/globals/chocobo_digging"); require("scripts/globals/missions"); require("scripts/globals/zone")...
gpl-3.0
LegionXI/darkstar
scripts/globals/items/piece_of_cascade_candy.lua
12
1190
----------------------------------------- -- ID: 5942 -- Item: Piece of Cascade Candy -- Food Effect: 30Min, All Races ----------------------------------------- -- Mind +4 -- Charisma +4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemChe...
gpl-3.0
LegionXI/darkstar
scripts/zones/Dynamis-Qufim/mobs/Antaeus.lua
23
2217
----------------------------------- -- Area: Dynamis Qufim -- MOB: Antaeus ----------------------------------- package.loaded["scripts/zones/Dynamis-Qufim/TextIDs"] = nil; ----------------------------------- require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Qufim/TextIDs"); require("scripts/globals/...
gpl-3.0
ibm2431/darkstar
scripts/globals/items/slice_of_giant_sheep_meat.lua
11
1068
----------------------------------------- -- ID: 4372 -- Item: slice_of_giant_sheep_meat -- Food Effect: 5Min, Galka only ----------------------------------------- -- Strength 2 -- Intelligence -4 ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ----------------...
gpl-3.0
LegionXI/darkstar
scripts/zones/Abyssea-Tahrongi/npcs/qm7.lua
14
1376
----------------------------------- -- Zone: Abyssea-Tahrongi -- NPC: qm7 (???) -- Spawns Hedetet -- @pos ? ? ? 45 ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) --[[ ...
gpl-3.0
atheurer/MoonGen
lua/include/kni.lua
2
1815
local ffi = require "ffi" local dpdkc = require "dpdkc" local dpdk = require "dpdk" require "utils" local mod = {} local mg_kni = {} mod.mg_kni = mg_kni mg_kni.__index = mg_kni ffi.cdef[[ struct rte_kni; struct rte_kni * mg_create_kni(uint8_t port_id, uint8_t core_id, void* mempool_ptr, const char name[]); unsigned ...
mit
u20024804/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
greasydeal/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
gwlim/luci
applications/luci-firewall/luasrc/model/cbi/firewall/forwards.lua
85
3942
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010-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 htt...
apache-2.0
greasydeal/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Nijaom.lua
33
1031
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Nijaom -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); -----------...
gpl-3.0
cmotc/svirfneblin-netmonitor-widget
etc/xdg/svirfneblin/netmonitor/boddy.lua
1
6062
local io = io local math = math local naughty = require("naughty") local beautiful = require("beautiful") local tonumber = tonumber local tostring = tostring local print = print local pairs = pairs local string = require("string") local table = require("table") local COMMAND_MAP_NETWORK = "sv-nm-hosts " local COMMAND_...
lgpl-3.0
ibm2431/darkstar
scripts/zones/Ghelsba_Outpost/npcs/Hut_Door.lua
9
1174
----------------------------------- -- Area: Ghelsba_Outpost -- NPC: Hut Door -- !pos -165.357 -11.672 77.771 140 ------------------------------------- require("scripts/globals/bcnm"); require("scripts/globals/titles"); require("scripts/globals/keyitems"); require("scripts/globals/quests"); require("scripts/globals/mi...
gpl-3.0
greasydeal/darkstar
scripts/zones/Windurst_Waters/npcs/Jourille.lua
36
1569
----------------------------------- -- Area: Windurst Waters -- NPC: Jourille -- Only sells when Windurst controlls Ronfaure Region -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loaded["scripts/zones/Wind...
gpl-3.0
LegionXI/darkstar
scripts/zones/Rolanberry_Fields/npcs/Field_Manual.lua
29
1061
----------------------------------- -- Area: Rolanberry Fields -- NPC: Field Manual ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/fieldsofvalor"); ----------------------------------- -- onTrigger Action ----------------------...
gpl-3.0
greasydeal/darkstar
scripts/zones/Northern_San_dOria/npcs/Phairupegiont.lua
17
1709
----------------------------------- -- Area: Northern San d'Oria -- NPC: Phairupegiont -- Involved in Quest: Lure of the Wildcat (San d'Oria) -- @pos -46 0.1 76 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- requir...
gpl-3.0
greasydeal/darkstar
scripts/zones/Navukgo_Execution_Chamber/Zone.lua
28
1358
----------------------------------- -- -- Zone: Navukgo_Execution_Chamber (64) -- ----------------------------------- package.loaded["scripts/zones/Navukgo_Execution_Chamber/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Navukgo_Execution_Chamb...
gpl-3.0
ibm2431/darkstar
scripts/zones/Windurst_Walls/npcs/Raamimi.lua
9
2736
----------------------------------- -- Area: Windurst Walls -- Location: X:-81 Y:-9 Z:103 -- NPC: Raamimi -- Working 100% -- Involved in Quest: To Bee or Not to Bee? ----------------------------------- local ID = require("scripts/zones/Windurst_Walls/IDs"); require("scripts/globals/settings"); require("scripts/glo...
gpl-3.0
LegionXI/darkstar
scripts/zones/Lower_Jeuno/npcs/Rhimonne.lua
17
1137
----------------------------------- -- Area: Lower Jeuno -- NPC: Rhimonne -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; require("scripts/zones/Lower_Jeuno/TextIDs"); ----------------------------------- -- onTrad...
gpl-3.0
LegionXI/darkstar
scripts/zones/The_Eldieme_Necropolis/npcs/_5fr.lua
14
2656
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: South Plate -- @pos 180 -34 -31 195 ----------------------------------- ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; ----------------------------------- -...
gpl-3.0