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
amenophis1er/prosody-modules
mod_auth_http_async/mod_auth_http_async.lua
15
1811
-- Prosody IM -- Copyright (C) 2008-2013 Matthew Wild -- Copyright (C) 2008-2013 Waqas Hussain -- Copyright (C) 2014 Kim Alvefur -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local new_sasl = require "util.sasl".new; local base64 = require "util.e...
mit
Kthulupwns/darkstar
scripts/zones/Northern_San_dOria/npcs/HomePoint#1.lua
12
1272
----------------------------------- -- Area: Northern San dOria -- NPC: HomePoint#1 -- @pos -178.101 4.000 71.279 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Northern_San_dOria/TextIDs")...
gpl-3.0
Kthulupwns/darkstar
scripts/globals/items/pitcher_of_homemade_herbal_tea.lua
35
1140
----------------------------------------- -- ID: 5221 -- Item: pitcher_of_homemade_herbal_tea -- Food Effect: 30Min, All Races ----------------------------------------- -- Charisma 1 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- On...
gpl-3.0
Sponk/neotris
scripts/SDK/Testing/Tests.lua
1
2784
function assertVectorEquals(vec1, vec2, margin) for i = 1, #vec1, 1 do assertAlmostEquals(vec1[i], vec2[i], margin) end end Test3DSDK = {} Test2DSDK = {} function Test3DSDK:TestLight() local light = OLight() -- Test constructor assertNotNil(light) assertEquals(light:getPosition(), {0,0,0}) lig...
gpl-3.0
ningg/Atlas
lib/admin.lua
28
9387
--[[ $%BEGINLICENSE%$ Copyright (c) 2008, 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 dis...
gpl-2.0
VanessaE/minetest_game
mods/carts/rails.lua
6
1726
carts:register_rail("carts:rail", { description = "Rail", tiles = { "carts_rail_straight.png", "carts_rail_curved.png", "carts_rail_t_junction.png", "carts_rail_crossing.png" }, inventory_image = "carts_rail_straight.png", wield_image = "carts_rail_straight.png", groups = carts:get_rail_groups(), }, {}) mine...
lgpl-2.1
AGTMADCAT/naev
dat/events/flf/derelict.lua
12
3167
--[[ -- Derelict Event, spawning either the FLF prelude mission string or the Dvaered anti-FLF string. --]] lang = naev.lang() if lang == "es" then -- not translated atm else -- default english -- Text text = {} title = {} broadcastmsgDV = "SOS. This is %s. Primary systems down. Requesting assis...
gpl-3.0
telbbs/luci-0.12
protocols/ipv6/luasrc/model/cbi/admin_network/proto_6in4.lua
39
3342
--[[ 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
dreamsxin/otclient
modules/corelib/ui/uiradiogroup.lua
10
1601
-- @docclass UIRadioGroup = newclass("UIRadioGroup") function UIRadioGroup.create() local radiogroup = UIRadioGroup.internalCreate() radiogroup.widgets = {} radiogroup.selectedWidget = nil return radiogroup end function UIRadioGroup:destroy() for k,widget in pairs(self.widgets) do widget.onClick = nil ...
mit
AttacqueSuperior/Engine
mods/ra/maps/soviet-02a/soviet02a.lua
2
5729
--[[ Copyright 2007-2021 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you 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 vers...
gpl-3.0
Death15/NormalSwatch
plugins/ingroup.lua
1
43988
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
rohanp/Algorithm-Implementations
Breadth_First_Search/Lua/Yonaba/handlers/point_graph_handler.lua
182
2492
-- A point graph handler -- This handler is devised for waypoints graphs. -- Waypoints are locations represented via labelled nodes -- and are connected with edges having a positive weight. -- It assumes edges are symmetric, that is if an edge exists -- between a and b, weight(a -> b) == weight(b -> a) local PATH = ...
mit
Kthulupwns/darkstar
scripts/zones/Korroloka_Tunnel/Zone.lua
13
1756
----------------------------------- -- -- Zone: Korroloka_Tunnel (173) -- ----------------------------------- package.loaded["scripts/zones/Korroloka_Tunnel/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/zone"); require("scripts/zones/Korrol...
gpl-3.0
Kthulupwns/darkstar
scripts/globals/weaponskills/split_shot.lua
30
1554
----------------------------------- -- Split Shot -- Marksmanship weapon skill -- Skill Level: 40 -- Ignores enemy's defense. Amount ignored varies with TP. -- The amount of defense ignored is 0% @ 100TP, 35% @ 200TP and 50% @ 300TP. -- Aligned with the Aqua Gorget & Light Gorget. -- Aligned with the Aqua Belt &...
gpl-3.0
Kthulupwns/darkstar
scripts/globals/spells/poisonga_ii.lua
11
1097
----------------------------------------- -- Spell: Poisonga II ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target...
gpl-3.0
kinzhang/cocos2d-js-v3.2
frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/script/extension/ExtensionConstants.lua
39
1977
cc = cc or {} cc.CONTROL_STATE_NORMAL = 1 cc.CONTROL_STATE_HIGH_LIGHTED = 2 cc.CONTROL_STATE_DISABLED = 4 cc.CONTROL_STATE_SELECTED = 8 cc.CONTROL_STEPPER_PART_MINUS = 0 cc.CONTROL_STEPPER_PART_PLUS = 1 cc.CONTROL_STEPPER_PART_NONE = 2 cc.TABLEVIEW_FILL_TOPDOWN = 0 cc.TABLEVIEW_FILL_BOTTOMUP = 1 cc.SCROLLVIEW_S...
mit
ikoryakovskiy/grl
addons/rbdl/cfg/cart_pendulum_balance.lua
3
2408
--[[ -- Cart-pole swing-up task for Manuel's RBDL cart-pole simulation -- using MPRL-style observations and rewards. -- -- Authors: -- Wouter Caarls <wouter@caarls.org> -- Ivan Koryakovskiy <i.koryakovskiy@tudelft.nl> --]] -- Helper functions math.randomseed( os.time() ) function wrap_angle(a) a = a%(2*mat...
lgpl-3.0
jlopenwrtluci/luci
build/luadoc/luadoc/config.lua
165
1234
------------------------------------------------------------------------------- -- LuaDoc configuration file. This file contains the default options for -- luadoc operation. These options can be overriden by the command line tool -- @see luadoc.print_help -- @release $Id: config.lua,v 1.6 2007/04/18 14:28:39 tomas Exp...
apache-2.0
Kthulupwns/darkstar
scripts/zones/Promyvion-Vahzl/npcs/_0md.lua
9
1396
----------------------------------- -- Area: Promyvion vahzl -- NPC: Memory flux (2) ----------------------------------- package.loaded["scripts/zones/Promyvion-Vahzl/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zones/Promyvion-Vahzl/TextIDs"); re...
gpl-3.0
scottcs/wyx
test/test_Map.lua
1
3064
local Map = require 'wyx.map.Map' local MapNode = require 'wyx.map.MapNode' local MapType = require 'wyx.map.MapType' local FloorMapType = require 'wyx.map.FloorMapType' local WallMapType = require 'wyx.map.WallMapType' local DoorMapType = require 'wyx.map.DoorMapType' local Rect = require 'wyx.kit.Rect' context('Map'...
mit
Kthulupwns/darkstar
scripts/zones/Rabao/npcs/Generoit.lua
37
1363
----------------------------------- -- Area: Rabao -- NPC: Generoit -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Rabao/TextIDs"] = nil; require("scripts/zones/Rabao/TextIDs"); ----------------------------------- -- onTrade Actio...
gpl-3.0
FPtje/DarkRP
gamemode/modules/cppi/sh_cppi.lua
13
1157
if CPPI then return end CPPI = {} CPPI.CPPI_DEFER = 100100 --\100\100 = dd CPPI.CPPI_NOTIMPLEMENTED = 7080 function CPPI:GetName() return "DarkRP" end function CPPI:GetVersion() return CPPI.CPPI_NOTIMPLEMENTED end function CPPI:GetInterfaceVersion() return CPPI.CPPI_NOTIMPLEMENTED end function CPPI:GetN...
mit
dpino/snabb
src/apps/tap/tap.lua
3
8714
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local S = require("syscall") local link = require("core.link") local packet = require("core.packet") local counter = require("core.counter") local ethernet = require("lib.protocol.ethernet") local macaddr = requ...
apache-2.0
FPtje/DarkRP
entities/weapons/keys/cl_menu.lua
1
7941
local function AddButtonToFrame(Frame) Frame:SetTall(Frame:GetTall() + 110) local button = vgui.Create("DButton", Frame) button:SetPos(10, Frame:GetTall() - 110) button:SetSize(180, 100) Frame.buttonCount = (Frame.buttonCount or 0) + 1 Frame.lastButton = button return button end DarkRP.st...
mit
Kthulupwns/darkstar
scripts/globals/weaponskills/shark_bite.lua
30
1459
----------------------------------- -- Shark Bite -- Dagger weapon skill -- Skill level: 225 -- Delivers a twofold attack. Damage varies with TP. -- Will stack with Sneak Attack. -- Will stack with Trick Attack. -- Aligned with the Breeze Gorget & Thunder Gorget. -- Aligned with the Breeze Belt & Thunder Belt. ...
gpl-3.0
Sponk/neotris
scripts/SDK/Neo3D.lua
1
1626
--- The Neo3D Lua API -- The Neo3D Lua interface delivers an easy to use and object oriented way of -- accessing the script API. -- -- Simply include this file ('SDK/Neo3D.lua') into your Lua script to use it. -- -- This API is not installed by default in your project directory. To install it, use -- the ProjectManager...
gpl-3.0
Kthulupwns/darkstar
scripts/globals/mobskills/Vorpal_Blade.lua
5
1548
--------------------------------------------- -- Vorpal Blade -- -- Description: Delivers a four-hit attack. Chance of critical varies with TP. -- Type: Physical -- Shadow per hit -- Range: Melee --------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status")...
gpl-3.0
ZigzagAK/nginx-service-discovery
lua/dns_cache.lua
1
4934
local _M = { _VERSION = "1.0.0" } local resolver = require "resty.dns.resolver" local cjson = require "cjson" local function read_resolv_conf() local search local nameservers = {} local line local f, err = io.open("/etc/resolv.conf", "r") if not f then goto ret end search = {} while true ...
bsd-2-clause
Kthulupwns/darkstar
scripts/zones/Windurst_Walls/npcs/Selulu.lua
38
1029
---------------------------------- -- Area: Windurst Walls -- NPC: Selulu -- Type: Item Deliverer -- @zone: 239 -- @pos 58.027 -2.5 -60.548 -- ----------------------------------- package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil; require("scripts/zones/Windurst_Walls/TextIDs"); -----------------------...
gpl-3.0
bdube/infrastructure-puppet
modules/gitpubsub/files/app/JSON.lua
6
26198
-- -*- coding: utf-8 -*- -- -- Copyright 2010-2012 Jeffrey Friedl -- http://regex.info/blog/ -- local VERSION = 20111207.5 -- version history at end of file local OBJDEF = { VERSION = VERSION } -- -- Simple JSON encoding and decoding in pure Lua. -- http://www.json.org/ -- -- -- JSON = (loadfile "JSON.lua")() -- on...
apache-2.0
Kthulupwns/darkstar
scripts/zones/Windurst_Woods/npcs/Valeriano.lua
36
1752
----------------------------------- -- Area: Windurst_Woods -- NPC: Valeriano -- Standard Merchant NPC -- Working 100% -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; require("scripts/zone...
gpl-3.0
Mleaf/mleaf_luci
applications/luci-statistics/luasrc/model/cbi/luci_statistics/disk.lua
78
1202
--[[ Luci configuration model for statistics - collectd disk plugin configuration (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License ...
apache-2.0
Kthulupwns/darkstar
scripts/globals/effects/aftermath_lv2.lua
17
1393
----------------------------------- -- -- EFFECT_AFTERMATH_LV2 -- ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) local power = effect:getPower(); if...
gpl-3.0
ningg/Atlas
lib/proxy/commands.lua
43
3477
--[[ $%BEGINLICENSE%$ Copyright (c) 2007, 2008, 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 dis...
gpl-2.0
nimaghorbani/copysatan
plugins/banhammer.lua
5
12349
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
mlody1039/ModernOts
data/actions/scripts/quests/inq.lua
1
5938
function onUse(cid, item, fromPosition, itemEx, toPosition) if item.uid == 7771 then queststatus = getPlayerStorageValue(cid,6076) if queststatus == -1 then doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found an Yalahari Mask") doPlayerAddItem(cid,8890,1) setPlayerStorageValue(c...
gpl-3.0
Kthulupwns/darkstar
scripts/globals/items/yagudo_cherry.lua
35
1200
----------------------------------------- -- ID: 4445 -- Item: yagudo_cherry -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility -3 -- Intelligence 1 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- O...
gpl-3.0
Kthulupwns/darkstar
scripts/globals/items/plate_of_crab_sushi_+1.lua
35
1377
----------------------------------------- -- ID: 5722 -- Item: plate_of_crab_sushi_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Vitality 1 -- Defense 10 -- Accuracy % 13 ----------------------------------------- require("scripts/globals/status"); -----------------------...
gpl-3.0
ark120202/aabs
game/scripts/vscripts/modules/bosses/data.lua
1
5047
DROP_TABLE = { ["npc_arena_boss_freya"] = { hero = "npc_arena_hero_freya", { Item = "item_soul_of_titan", DropChance = 30, DamageWeightPct = 30, }, { Item = "item_dark_blade", DropChance = 30, DamageWeightPct = 25, }, { Item = "item_demons_paw", DropChance = 90, DamageWeightPct = 30, }, { Item = "item_demons...
mit
dpino/snabb
src/core/worker.lua
9
3303
-- worker.lua - Execute "worker" child processes to execute app networks -- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) -- API: -- start(name, luacode) -- stop(name) -- status() -> table of { name = <info> } local lib = require("core.lib") local shm = requi...
apache-2.0
Eyedema/taytay
plugins/help.lua
2
1584
-- Generate an HTML table for GitHub function html_help() local text = [[<table> <thead> <tr> <td><strong>Name</strong></td> <td><strong>Description</strong></td> <td><strong>Usage</strong></td> </tr> </thead> <tbody>]] for k,v in pairs(plugins_names()) do t = lo...
gpl-2.0
cmckain14/BossShopCreator
TheCreator.lua
1
4272
function read() input = io.read() end function check() if price == nil then price = " " end if idnumber == nil then idnumber = " " end if amount == nil then amount = " " end end Accept = "No" multiple = "Y" --Y if there is going to be more than one item iq = "Off" --Off if the reward type is "Item" pt...
mit
dpino/snabb
src/program/lisper/dev-env-perftest/count.lua
9
1033
#!snabb/src/snabb snsh io.stdout:setvbuf'no' io.stderr:setvbuf'no' local ffi = require("ffi") local app = require("core.app") local lib = require("core.lib") local packet = require("core.packet") local pci = require("lib.hardware.pci") _NAME = "" local Counter = {} local n = 0 function Counter...
apache-2.0
AttacqueSuperior/Engine
mods/ra/maps/soviet-06b/soviet06b.lua
2
4119
--[[ Copyright 2007-2021 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you 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 vers...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Kuftal_Tunnel/TextIDs.lua
3
1138
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6382; -- Obtained: <item> GIL_OBTAINED = 6383; -- Obtained <number> gil KEYITEM_OBTAINED = 6385; -- ...
gpl-3.0
mlody1039/ModernOts
data/npc/scripts/TP/boat_ankrahmun.lua
2
3835
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function ...
gpl-3.0
Kthulupwns/darkstar
scripts/globals/items/slab_of_ruszor_meat.lua
18
1288
----------------------------------------- -- ID: 5755 -- Item: Slab of Ruszor Meat -- Food Effect: 30Min, Galka only ----------------------------------------- -- Strength 5 -- Intelligence -7 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnIt...
gpl-3.0
amenophis1er/prosody-modules
mod_mam_muc_sql/mod_mam_muc_sql.lua
32
8994
-- XEP-0313: Message Archive Management for Prosody -- Copyright (C) 2011-2012 Kim Alvefur -- -- This file is MIT/X11 licensed. local xmlns_mam = "urn:xmpp:mam:tmp"; local xmlns_delay = "urn:xmpp:delay"; local xmlns_forward = "urn:xmpp:forward:0"; local st = require "util.stanza"; local rsm = module:require "mo...
mit
GabrielNicolasAvellaneda/luvit-upstream
tests/test-readdir.lua
3
1228
--[[ 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
Velkon/DarkRP
gamemode/libraries/mysqlite/mysqlite.lua
1
13367
--[[ MySQLite - Abstraction mechanism for SQLite and MySQL Why use this? - Easy to use interface for MySQL - No need to modify code when switching between SQLite and MySQL - Queued queries: execute a bunch of queries in order an run the callback when all queries are done License: L...
mit
Kthulupwns/darkstar
scripts/globals/items/melon_pie.lua
35
1269
----------------------------------------- -- ID: 4421 -- Item: melon_pie -- Food Effect: 30Min, All Races ----------------------------------------- -- Magic 25 -- Agility -1 -- Intelligence 4 ----------------------------------------- require("scripts/globals/status"); -------------------------------------...
gpl-3.0
aa65535/luci
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/netlink.lua
39
5747
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.statistics.rrdtool.definitions.netlink", package.seeall) function rrdargs( graph, plugin, plugin_instance ) -- -- traffic diagram -- local traffic = { title = "%H: Netlink...
apache-2.0
Kthulupwns/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Esoteric_Hound.lua
34
1040
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Esoteric Hound -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); ---...
gpl-3.0
AGTMADCAT/naev
dat/missions/shark/sh05_flf.lua
3
5876
--[[ This is the sixth mission of the Shark's teeth campaign. The player has to take contact with the FLF. Stages : 0) Way to Eiger/Surano 1) Way back to Darkshed --]] include "numstring.lua" lang = naev.lang() if lang == "es" then else -- default english title = {} text...
gpl-3.0
rohanp/Algorithm-Implementations
A_Star_Search/Lua/Yonaba/astar.lua
26
3905
-- Generic A* search algorithm implementation -- See : http://en.wikipedia.org/wiki/A*_search_algorithm -- Notes : this is a generic implementation of A star search algorithm. -- It is devised to be used on any type of graph (point-graph, tile-graph, -- or whatever. It expects to be initialized with a handler, which a...
mit
Kthulupwns/darkstar
scripts/zones/Port_Jeuno/TextIDs.lua
5
3021
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6382; -- Obtained: <item>. GIL_OBTAINED = 6383; -- Obtained <number> gil. KEYITEM_OBTAINED = 6385; -- Obtained...
gpl-3.0
ZeroNoFun/The-Aperture
lua/entities/ent_paint_puddle.lua
2
7774
AddCSLuaFile( ) ENT.Type = "anim" ENT.Base = "base_entity" ENT.RenderGroup = RENDERGROUP_BOTH function ENT:SetupDataTables() self:NetworkVar( "Int", 0, "GelRadius" ) end cleanup.Register( "aperture_paint" ) function ENT:Initialize() if ( SERVER ) then self:SetModel( "models/gasl/portal_gel_bubble.mdl...
mit
aidansmyth/corona_game_template
modules/fonts.lua
1
3524
--[[----------------------------------------------------------------------- Font Module File: fonts.lua Description: Date: 14/08/2013 Authors: Aidan Smyth Notes: Corona SDK version used: 2012.971 Adapted from: http://www.coronalabs.com/blog/2013/01/16/faq-wednesday-custom-fonts/ -------------------...
mit
Kthulupwns/darkstar
scripts/zones/Northern_San_dOria/npcs/Dauperiat.lua
19
3319
----------------------------------- -- Area: Northern San d'Oria -- NPC: Dauperiat -- Starts and Finishes Quest: Blackmail (R) -- @zone 231 -- @pos ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/glob...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Pashhow_Marshlands/npcs/Tahmasp.lua
17
1872
----------------------------------- -- Area: Pashhow Marshlands -- NPC: Tahmasp -- Type: Outpost Vendor -- @pos 464 24 416 109 ----------------------------------- package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("s...
gpl-3.0
dpino/snabb
src/apps/bridge/learning.lua
8
9634
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. -- This class derives from lib.bridge.base and implements a "learning -- bridge" using a MAC address table provided by apps.bridge.mac_table -- to store the set of source addresses of packets arriving on all -- ports. -- When a packet is r...
apache-2.0
AGTMADCAT/naev
dat/events/neutral/npc.lua
8
29034
--[[ -- Event for creating random characters in the spaceport bar. -- The random NPCs will tell the player things about the Naev universe in general, about their faction, or about the game itself. --]] include "dat/events/tutorial/tutorial-common.lua" lang = naev.lang() if lang == 'es' then --not translated atm else...
gpl-3.0
dios-game/dios-cocos-samples
src/lua-coin-tree/Resources/src/cocos/framework/extends/UIWidget.lua
57
1562
--[[ Copyright (c) 2011-2014 chukong-inc.com 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, merge, publish, dis...
mit
alioshii/KASBAR
plugins/robot.lua
10
1960
--[[ # For More Information ....! # Developer : Aziz < @devss_bot > #Dev # our channel: @help_tele ]] local function is_channel_disabled( receiver ) if not _config.disabled_channels then return false end if _config.disabled_channels[receiver] == nil then return false end return _config.disabled_channe...
gpl-2.0
mlody1039/ModernOts
data/npc/scripts/Kulag.lua
3
1630
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) ...
gpl-3.0
mlody1039/ModernOts
data/npc/scripts/Frans.lua
1
7571
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-3.0
kuoruan/luci
applications/luci-app-simple-adblock/luasrc/model/cbi/simple-adblock.lua
5
5955
-- Copyright 2016-2018 Stan Grishin <stangri@melmac.net> -- Licensed to the public under the Apache License 2.0. m = Map("simple-adblock", translate("Simple AdBlock Settings")) h = m:section(NamedSection, "config", "simple-adblock", translate("Service Status")) local packageName = "simple-adblock" local uci = requir...
apache-2.0
dannyfritz/projecteuler
8/8.lua
1
1625
local big_string ="73167176531330624919225119674426574742355349194934".. "96983520312774506326239578318016984801869478851843".. "85861560789112949495459501737958331952853208805511".. "12540698747158523863050715693290963295227443043557".. "668966489504452445231617318564030987111217223...
mit
Cadene/torchnet-vision
models/vggm.lua
1
1655
local argcheck = require 'argcheck' local vggm = {} vggm.__download = argcheck{ {name='filename', type='string'}, call = function(filename) os.execute('mkdir -p '..paths.dirname(filename)..';' ..'wget http://webia.lip6.fr/~cadene/Downloads/vggm.t7' ..' -O '...
bsd-3-clause
MmxBoy/Metal-bot-V.2
plugins/kickall.lua
125
1670
local function kick_user(user_id, chat_id) local chat = 'chat#id'..chat_id local user = 'user#id'..user_id chat_del_user(chat, user, ok_cb, true) end local function returnids(cb_extra, success, result) local receiver = cb_extra.receiver local chat_id = result.id local chatname = result.print_name loc...
gpl-2.0
dpino/snabb
src/apps/vhost/vhost_user.lua
9
15452
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. -- -- See http://www.virtualopensystems.com/en/solutions/guides/snabbswitch-qemu/ module(...,package.seeall) local basic_apps= require("apps.basic.basic_apps") local pcap = require("apps.pcap.pcap") local app = require("core.ap...
apache-2.0
xvaara/kong
kong/plugins/tcp-log/handler.lua
8
1346
local BasePlugin = require "kong.plugins.base_plugin" local basic_serializer = require "kong.plugins.log-serializers.basic" local cjson = require "cjson" local TcpLogHandler = BasePlugin:extend() local function log(premature, conf, message) if premature then return end local ok, err local host = conf.host ...
apache-2.0
Kthulupwns/darkstar
scripts/zones/Buburimu_Peninsula/npcs/Logging_Point.lua
29
1116
----------------------------------- -- Area: Buburimu Peninsula -- NPC: Logging Point ----------------------------------- package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil; ------------------------------------- require("scripts/globals/logging"); require("scripts/zones/Buburimu_Peninsula/Text...
gpl-3.0
hj3938/wax
lib/stdlib/helpers/init.lua
17
1569
require "wax.helpers.bit" require "wax.helpers.callback" require "wax.helpers.frame" require "wax.helpers.base64" require "wax.helpers.time" require "wax.helpers.cache" require "wax.helpers.autoload" require "wax.helpers.WaxServer" require "wax.helpers.pickView" -- Just a bunch of global helper functions function IBO...
mit
FlightControl-Master/DCS-API
DCSObject.lua
1
1906
------------------------------------------------------------------------------- -- @module DCSObject --- @type Object -- @field #Object.Category Category -- @field #Object.Desc Desc --- @type Object.Category -- @field UNIT -- @field WEAPON -- @field STATIC -- @field SCENERY -- @field BASE --- @type Obj...
gpl-3.0
Moe-/RunAway
player.lua
1
5110
class "Player" { sausages = 5; boost = 0; timer = 0; frame = 0; jumping = false; dogNextBite = 0; playNextObstacleSound = 0; } function Player:__init(world, x, y) self.world = world self.image = love.graphics.newImage("gfx/ButcherRunAnimation.png") self.image:setWrap("repeat", "repeat") self.width = self....
mit
Kthulupwns/darkstar
scripts/globals/items/keen_zaghnal.lua
37
1120
----------------------------------------- -- ID: 18067 -- Equip: Keen Zaghnal -- Enchantment: Accuracy +3 -- Enchantment will wear off if weapon is unequipped. -- Effect lasts for 30 minutes ----------------------------------------- require("scripts/globals/status"); --------------------------------------...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/PsoXja/npcs/_09e.lua
9
1609
----------------------------------- -- Area: Pso'Xja -- NPC: _09e (Stone Gate) -- Notes: Spawns Gargoyle when triggered -- @pos -330.000 14.074 -261.600 9 ----------------------------------- package.loaded["scripts/zones/PsoXja/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Pso...
gpl-3.0
mlody1039/ModernOts
data/npc/scripts/An Old Dragonlord.lua
3
1750
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 onCr...
gpl-3.0
dpino/snabb
lib/ljsyscall/syscall/abi.lua
25
2112
-- This simply returns ABI information -- Makes it easier to substitute for non-ffi solution, eg to run tests local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string = require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unp...
apache-2.0
Kthulupwns/darkstar
scripts/globals/status.lua
1
71341
------------------------------------ -- -- STATUSES AND MODS -- -- Contains variable-ized definitions of things like core enums for use in lua scripts. ------------------------------------ ------------------------------------ -- Job IDs ------------------------------------ JOB_NON = 0; JOB...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Mine_Shaft_2716/npcs/_0d0.lua
12
1980
----------------------------------- -- Area: Mine_Shaft_2716 -- NPC: Shaft entrance ----------------------------------- package.loaded["scripts/zones/Mine_Shaft_2716/TextIDs"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/globals/quests"); require("scripts/globa...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Maudaal.lua
34
1032
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Maudaal -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); ----------...
gpl-3.0
dreamsxin/otclient
modules/corelib/ui/uitabbar.lua
8
3802
-- @docclass UITabBar = extends(UIWidget, "UITabBar") -- private functions local function onTabClick(tab) tab.tabBar:selectTab(tab) end local function onTabMouseRelease(tab, mousePos, mouseButton) if mouseButton == MouseRightButton and tab:containsPoint(mousePos) then signalcall(tab.tabBar.onTabLeftClick, tab...
mit
ark120202/aabs
game/scripts/vscripts/modules/duel/duel.lua
1
10410
DOTA_DUEL_STATUS_NONE = 0 DOTA_DUEL_STATUS_WATING = 1 DOTA_DUEL_STATUS_IN_PROGRESS = 2 ModuleRequire(..., "data") if Duel == nil then _G.Duel = class({}) Duel.TimeUntilDuel = 0 Duel.DuelTimerEndTime = 0 Duel.DuelStatus = DOTA_DUEL_STATUS_NONE Duel.TimesTeamWins = {} Duel.AnnouncerCountdownCooldowns = {} Duel.Due...
mit
Kthulupwns/darkstar
scripts/zones/Misareaux_Coast/Zone.lua
32
1650
----------------------------------- -- -- Zone: Misareaux_Coast (25) -- ----------------------------------- package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Misareaux_Coast/TextIDs"); -------------...
gpl-3.0
jlopenwrtluci/luci
protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_aiccu.lua
20
4410
-- Copyright 2015 Paul Oranje <por@xs4all.nl> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... -- config read by /lib/netifd/proto/aiccu.sh local username, password, protocol, server, tunnelid, ip6prefix, requiretls, nat, heartbeat, verbose, ntpsynctimeout, ip6addr, sourcerouting...
apache-2.0
kuoruan/luci
protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_pppossh.lua
25
3875
-- Copyright (C) 2015 Yousong Zhou <yszhou4tech@gmail.com> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local sshuser, server, port, ssh_options, identity, ipaddr, peeraddr sshuser = section:taboption("general", Value, "sshuser", translate("SSH username")) server = section:t...
apache-2.0
telbbs/luci-0.12
protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua
58
4064
--[[ 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
ArcadiaGamingNetwork/AGC-DarkRP-Configuration
lua/darkrp_customthings/ammo.lua
1
1849
--[[--------------------------------------------------------------------------- Ammo types --------------------------------------------------------------------------- Ammo boxes that can be purchased in the F4 menu. Add your custom ammo types in this file. Here's the syntax: DarkRP.createAmmoType("ammoType", { nam...
mit
telergybot/telergybot
plugins/trivia.lua
647
6784
do -- Trivia plugin developed by Guy Spronck -- Returns the chat hash for storing information local function get_hash(msg) local hash = nil if msg.to.type == 'chat' then hash = 'chat:'..msg.to.id..':trivia' end if msg.to.type == 'user' then hash = 'user:'..msg.from.id..':trivia' end return hash en...
gpl-2.0
AttacqueSuperior/Engine
mods/cnc/maps/nod03a/nod03a.lua
2
2718
--[[ Copyright 2007-2021 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you 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 vers...
gpl-3.0
Kthulupwns/darkstar
scripts/globals/items/burdock_root.lua
36
1143
----------------------------------------- -- ID: 5651 -- Item: Burdock Root -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility 2 -- Vitality -4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -----...
gpl-3.0
Velkon/DarkRP
gamemode/modules/fadmin/fadmin/playeractions/chatmute/cl_init.lua
4
1305
FAdmin.StartHooks["Chatmute"] = function() FAdmin.Access.AddPrivilege("Chatmute", 2) FAdmin.Commands.AddCommand("Chatmute", nil, "<Player>") FAdmin.Commands.AddCommand("UnChatmute", nil, "<Player>") FAdmin.ScoreBoard.Player:AddActionButton(function(ply) if ply:FAdmin_GetGlobal("FAdmin_chatmuted...
mit
fegimanam/kurdbot
plugins/service_entergroup.lua
279
2147
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 = chat_name or '' chat_id = "chat#id" .. (...
gpl-2.0
billypu/lua-lab
test.lua
1
2231
#!/usr/bin/lua function coroutine_task4(str) -- body print("in coroutine_task4: ", str) print("..... hit here 5") return coroutine.yield(str + " coroutine yield") end function coroutine_task1(a) print("coroutine_task1 ", a) print("..... hit here 2") -- Return to main flow, and make 2 * a to be the return value...
mit
ark120202/aabs
game/scripts/vscripts/heroes/hero_pudge/flesh_heap.lua
1
1909
function IncreaseAbilityStacks(unit, ability) ModifyStacks(ability, unit, unit, "modifier_pudge_flesh_heap_arena_stack", 1, false) unit:CalculateStatBonus() local oldAbilityModelScale = ability.AdditionalModelScale or 0 ability.AdditionalModelScale = math.min(ability:GetAbilitySpecial("model_scale_per_stack") * uni...
mit
Kthulupwns/darkstar
scripts/globals/spells/dokumori_san.lua
11
1200
----------------------------------------- -- Spell: Dokumori: San ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,targe...
gpl-3.0
amenophis1er/prosody-modules
mod_lib_ldap/dev/prosody-posix-ldap.cfg.lua
32
2476
-- Use Include 'prosody-posix-ldap.cfg.lua' from prosody.cfg.lua to include this file authentication = 'ldap2' -- Indicate that we want to use LDAP for authentication storage = 'ldap' -- Indicate that we want to use LDAP for roster/vcard storage ldap = { hostname = 'localhost', -- L...
mit
Kthulupwns/darkstar
scripts/globals/mobskills/Dark_Wave.lua
6
1180
--------------------------------------------- -- Dark Wave -- -- Description: A wave of dark energy washes over targets in an area of effect. Additional effect: Bio -- Type: Magical -- Utsusemi/Blink absorb: Ignores shadows -- Range: 10' radial -- Notes: Severity of Bio effect varies by time of day, from 8...
gpl-3.0