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
dretay/seneschal
server/nginx/lua/pl/class.lua
29
7674
--- Provides a reuseable and convenient framework for creating classes in Lua. -- Two possible notations: -- -- B = class(A) -- class.B(A) -- -- The latter form creates a named class within the current environment. Note -- that this implicitly brings in `pl.utils` as a dependency. -- -- See the Guide for further ...
gpl-2.0
MNKgod/darkstar
scripts/zones/Jugner_Forest_[S]/npcs/Cavernous_Maw.lua
29
1473
----------------------------------- -- Area: Jugner Forest [S] -- NPC: Cavernous Maw -- @pos -118 -8 -520 82 -- Teleports Players to Jugner Forest ----------------------------------- package.loaded["scripts/zones/Jugner_Forest_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/...
gpl-3.0
DhavalKapil/elasticsearch-lua
src/elasticsearch/connection/Connection.lua
1
6424
------------------------------------------------------------------------------- -- Importing module ------------------------------------------------------------------------------- local http = require "socket.http" local url = require "socket.url" local table = require "table" local ltn12 = require "ltn12" -----------...
mit
MNKgod/darkstar
scripts/zones/The_Eldieme_Necropolis_[S]/Zone.lua
28
1342
----------------------------------- -- -- Zone: The_Eldieme_Necropolis_[S] (175) -- ----------------------------------- package.loaded["scripts/zones/The_Eldieme_Necropolis_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/The_Eldieme_Necropol...
gpl-3.0
sujeet14108/luci
protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_dhcpv6.lua
60
1569
-- Copyright 2013 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local o = section:taboption("general", ListValue, "reqaddress", translate("Request IPv6-address")) o:value("try") o:value("force") o:value("none", "disabled") o.default = "try" ...
apache-2.0
MNKgod/darkstar
scripts/globals/spells/hyoton_ichi.lua
17
1249
----------------------------------------- -- Spell: Hyoton: Ichi -- Deals ice damage to an enemy and lowers its resistance against fire. ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ---...
gpl-3.0
RTBHOUSE/fbcunn
test/benchmark_fft.lua
9
3280
-- Copyright 2004-present Facebook. All Rights Reserved. require('fb.luaunit') require 'cunn' require 'fbcunn' torch.setdefaulttensortype('torch.FloatTensor') local test = {} -- These are used for fast, exhaustive search over the parameters space -- Can be overridden by setting problemSizes to non-{} local batchLi...
bsd-3-clause
Kisaua/nodemcu-firmware
tools/build.lua
48
28446
-- eLua build system module( ..., package.seeall ) local lfs = require "lfs" local sf = string.format utils = require "tools.utils" ------------------------------------------------------------------------------- -- Various helpers -- Return the time of the last modification of the file local function get_ftime( pat...
mit
MNKgod/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Ryo.lua
16
1194
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Ryo -- Type: ZNM -- @pos -127.086 0.999 22.693 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/besieged"); require("scripts/...
gpl-3.0
cornernote/minetest-modulator_game
mods/technical/technic/alloy_furnace.lua
1
7938
alloy_recipes ={} registered_recipes_count=1 function register_alloy_recipe (string1,count1, string2,count2, string3,count3) alloy_recipes[registered_recipes_count]={} alloy_recipes[registered_recipes_count].src1_name=string1 alloy_recipes[registered_recipes_count].src1_count=count1 alloy_recipes[registered_recipes_c...
gpl-3.0
brunominervino/forgottenserver
data/spells/scripts/support/find_person.lua
1
2993
local LEVEL_LOWER = 1 local LEVEL_SAME = 2 local LEVEL_HIGHER = 3 local DISTANCE_BESIDE = 1 local DISTANCE_CLOSE = 2 local DISTANCE_FAR = 3 local DISTANCE_VERYFAR = 4 local directions = { [DIRECTION_NORTH] = "north", [DIRECTION_SOUTH] = "south", [DIRECTION_EAST] = "east", [DIRECTION_WEST] = "west", [DIRECTION_NO...
gpl-2.0
srivignessh/waifu2x
lib/settings.lua
33
2488
require 'xlua' require 'pl' -- global settings if package.preload.settings then return package.preload.settings end -- default tensor type torch.setdefaulttensortype('torch.FloatTensor') local settings = {} local cmd = torch.CmdLine() cmd:text() cmd:text("waifu2x") cmd:text("Options:") cmd:option("-seed", 11, '...
mit
AccroGaming/Accro-DarkRP
DarkRP/entities/entities/spawned_money/init.lua
1
1060
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() self:SetModel("models/props/cs_assault/money.mdl") self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:SetUseType(SIMPLE_USE) local phys = self:GetPhysicsOb...
mpl-2.0
MNKgod/darkstar
scripts/globals/effects/int_down.lua
18
1098
----------------------------------- -- -- EFFECT_INT_DOWN -- ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) if ((target:getStat(MOD_INT) - effec...
gpl-3.0
DhavalKapil/elasticsearch-lua
src/elasticsearch/endpoints/Indices/ExistsTemplate.lua
2
1887
------------------------------------------------------------------------------- -- Importing modules ------------------------------------------------------------------------------- local IndicesEndpoint = require "elasticsearch.endpoints.Indices.IndicesEndpoint" --------------------------------------------------------...
mit
RTBHOUSE/fbcunn
test/test_HSM_speed.lua
9
6021
-- Copyright 2004-present Facebook. All Rights Reserved. -- Author: Michael Mathieu <myrhev@fb.com> require 'fbcunn' require 'fbnn' require 'math' require 'nn' require 'os' require 'sys' torch.setdefaulttensortype('torch.DoubleTensor') torch.manualSeed(111) local debugger = require 'fb.debugger' local numIters = 100...
bsd-3-clause
MNKgod/darkstar
scripts/globals/items/plate_of_squid_sushi_+1.lua
35
1529
----------------------------------------- -- ID: 5162 -- Item: plate_of_squid_sushi_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Health 30 -- Dexterity 6 -- Agility 5 -- Accuracy % 16 -- Ranged ACC % 16 -- Sleep Resist 5 ----------------------------------------- require...
gpl-3.0
MNKgod/darkstar
scripts/zones/Sea_Serpent_Grotto/TextIDs.lua
9
2312
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory FULL_INVENTORY_AFTER_TRADE = 6383; -- You cannot obtain the <item>. Try trading again after sorting your inventory ITEM_OBTAINED = 638...
gpl-3.0
MNKgod/darkstar
scripts/globals/items/flask_of_holy_water.lua
18
1808
----------------------------------------- -- ID: 4154 -- Item: Flask of Holy Water -- Item Effect: Removes curse ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ----------------------------------------- function onItemCheck(target)...
gpl-3.0
MNKgod/darkstar
scripts/zones/Davoi/npcs/!.lua
19
2445
----------------------------------- -- Area: Davoi -- NPC: ! -- Involved in Mission: The Davoi Report -- @pos 164 0.1 -21 149 ----------------------------------- package.loaded["scripts/zones/Davoi/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/globals/keyit...
gpl-3.0
MNKgod/darkstar
scripts/globals/items/garpike.lua
18
1256
----------------------------------------- -- ID: 5472 -- Item: Garpike -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 3 -- Mind -5 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -----------...
gpl-3.0
devalexx/evilrain
Android/assets/data/levels/level14.lua
1
3720
function addObjects() world:setPressingAction(PICKING_BODIES); ------------------ Ground_0 = luajava.new(Ground) Ground_0:addVertex(500.780487, 19.512192) Ground_0:addVertex(812.683, 21.46341) Ground_0:addVertex(812.683, 54.634155) Ground_0:addVertex(500.8292847, 54.634155) Ground_0:setR...
gpl-3.0
MNKgod/darkstar
scripts/zones/Jugner_Forest_[S]/npcs/Logging_Point.lua
29
1113
----------------------------------- -- Area: Jugner Forest [S] -- NPC: Logging Point ----------------------------------- package.loaded["scripts/zones/Jugner_Forest_[S]/TextIDs"] = nil; ------------------------------------- require("scripts/globals/logging"); require("scripts/zones/Jugner_Forest_[S]/TextIDs...
gpl-3.0
eyohansa/wesnoth
data/ai/micro_ais/micro_ai_self_data.lua
26
3940
-- This set of functions provides a consistent way of storing Micro AI variables -- in the AI's persistent self.data variable. These need to be stored inside -- a [micro_ai] tag, so that they are bundled together for a given Micro AI -- together with an ai_id= key. Their existence can then be checked when setting -- up...
gpl-2.0
MNKgod/darkstar
scripts/zones/Castle_Oztroja/npcs/_m74.lua
16
2227
----------------------------------- -- Area: Castle Oztroja -- NPC: _m74 (Torch Stand) -- Notes: Opens door _477 when _m72 to _m75 are lit -- @pos -59.525 -72.320 -62.379 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- ...
gpl-3.0
MNKgod/darkstar
scripts/globals/items/plate_of_beef_paella.lua
36
1503
----------------------------------------- -- ID: 5972 -- Item: Plate of Beef Paella -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- HP 40 -- Strength 5 -- Intelligence -1 -- Attack % 18 Cap 90 -- Undead Killer 5 ----------------------------------------- require("scripts/globals/status"); ...
gpl-3.0
CovertOwl/PitchBlack
Libs/PitchBlack/biters.lua
1
66867
require 'Libs/Utility/logger' require 'Libs/Utility/generic' Biters = {} --luacheck: allow defined top Biters.DefaultState = { --Meta information Name = 'BitersState_v2', --Increase permanent biter by a fixed rate ([#][2]) per second if current biter evolution is below margin ([#][1]) --2.5 hours t...
mit
MNKgod/darkstar
scripts/globals/abilities/reverse_flourish.lua
28
2357
----------------------------------- -- Ability: Reverse Flourish -- Converts remaining finishing moves into TP. Requires at least one Finishing Move. -- Obtained: Dancer Level 40 -- Finishing Moves Used: 1-5 -- Recast Time: 00:30 ----------------------------------- require("scripts/globals/settings"); require...
gpl-3.0
MNKgod/darkstar
scripts/globals/mobskills/glittering_ruby.lua
6
1057
--------------------------------------------------- -- Glittering Ruby --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); --------------------------------------------------- function onMobSkillCheck(ta...
gpl-3.0
MNKgod/darkstar
scripts/zones/Temenos/mobs/Cryptonberry_Charmer.lua
16
1142
----------------------------------- -- Area: Temenos N T -- NPC: Cryptonberry_Charmer ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); ----------------...
gpl-3.0
MNKgod/darkstar
scripts/zones/Halvung/npcs/qm3.lua
16
1151
----------------------------------- -- Area: Halvung -- NPC: ??? (Spawn Reacton(ZNM T2)) -- @pos 18 -9 213 62 ----------------------------------- package.loaded["scripts/zones/Halvung/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Halvung/TextIDs"); ----------------------------------- --...
gpl-3.0
MNKgod/darkstar
scripts/zones/Castle_Oztroja/npcs/_m71.lua
19
1188
----------------------------------- -- Area: Castle Oztroja -- NPC: _m71 (Torch Stand) -- Involved in Mission: Magicite -- @pos -99 24 -105 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); req...
gpl-3.0
gdavegdave/OpenRA
mods/cnc/maps/nod05/nod05.lua
6
11199
--[[ Copyright 2007-2017 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
MNKgod/darkstar
scripts/commands/adddynatime.lua
26
1175
--------------------------------------------------------------------------------------------------- -- func: adddynatime -- desc: Adds an amount of time to the given target. If no target; then to the current player. --------------------------------------------------------------------------------------------------- ...
gpl-3.0
AccroGaming/Accro-DarkRP
DarkRP/gamemode/fadmin/playeractions/jail/sv_init.lua
3
5588
local function Jail(ply, cmd, args) if not args[1] then return end local targets = FAdmin.FindPlayer(args[1]) if not targets or #targets == 1 and not IsValid(targets[1]) then FAdmin.Messages.SendMessage(ply, 1, "Player not found") return end local JailType = FAdmin.PlayerActions.JailTypes[tonumber(args[2])] ...
mpl-2.0
MNKgod/darkstar
scripts/globals/abilities/gallants_roll.lua
9
2787
----------------------------------- -- Ability: Gallant's Roll -- Reduces physical damage taken by party members within area of effect -- Optimal Job: Paladin -- Lucky Number: 3 -- Unlucky Number: 7 -- Level: 55 -- -- Die Roll |No PLD |With PLD -- -------- ------- ----------- -- 1 |4% |...
gpl-3.0
MNKgod/darkstar
scripts/globals/items/rolanberry.lua
35
1197
----------------------------------------- -- ID: 4365 -- Item: rolanberry -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility -4 -- Intelligence 2 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnIt...
gpl-3.0
ejoncas/kong
kong/vendor/ssl.lua
22
7805
-- Copyright (C) 2014 Yichun Zhang local ffi = require "ffi" local base = require "resty.core.base" local C = ffi.C local ffi_str = ffi.string local getfenv = getfenv local errmsg = base.get_errmsg_ptr() local get_string_buf = base.get_string_buf local get_string_buf_size = base.get_string_buf_size local get_size_p...
apache-2.0
MNKgod/darkstar
scripts/zones/North_Gustaberg_[S]/npcs/Cavernous_Maw.lua
29
1472
----------------------------------- -- Area: North Gustaberg [S] -- NPC: Cavernous Maw -- @pos 466 0 479 88 -- Teleports Players to North Gustaberg ----------------------------------- package.loaded["scripts/zones/North_Gustaberg_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globa...
gpl-3.0
MNKgod/darkstar
scripts/zones/Al_Zahbi/npcs/Biyaada.lua
38
1035
----------------------------------- -- Area: Al Zahbi -- NPC: Biyaada -- Type: Rughadjeen's Attendant -- @zone: 48 -- @pos -65.802 -6.999 69.273 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil; --------------...
gpl-3.0
MNKgod/darkstar
scripts/zones/Rabao/npcs/Edigey.lua
17
2501
----------------------------------- -- Area: Rabao -- NPC: Edigey -- Starts and Ends Quest: Don't Forget the Antidote ----------------------------------- package.loaded["scripts/zones/Rabao/TextIDs"] = nil; require("scripts/globals/titles"); require("scripts/globals/settings"); require("scripts/globals/quests...
gpl-3.0
WibbenZ/forgottenserver
data/lib/core/creature.lua
1
3718
function Creature.getClosestFreePosition(self, position, extended) local usePosition = Position(position) local tiles = { Tile(usePosition) } local length = extended and 2 or 1 local tile for y = -length, length do for x = -length, length do if x ~= 0 or y ~= 0 then usePosition.x = position.x + x use...
gpl-2.0
sshling/ABTestingGateway
lib/abtesting/diversion/uidsuffix.lua
26
2325
local modulename = "abtestingDiversionUidsuffix" local _M = {} local mt = { __index = _M } _M._VERSION = "0.0.1" local ERRORINFO = require('abtesting.error.errcode').info local k_suffix = 'suffix' local k_upstream = 'upstream' _M.new = function(self, database, policyLib) if not database then ...
mit
cthielen/epiar
data/scripts/universe.lua
1
12640
-- This is the Introduction Message that greets new players. -- Notice that we use spaces here since Label can't parse tabs. welcomeMessage = [[ Welcome to Epiar We hope you like it. We are still working on it. The Epiar controls in a nutshell: - Move the ship with the Arrow keys. - Land ...
gpl-2.0
jlegendary/Dato-Core
src/unity/python/graphlab/lua/pl/Date.lua
14
17714
--- Date and Date Format classes. -- See @{05-dates.md|the Guide}. -- -- Dependencies: `pl.class`, `pl.stringx` -- @module pl.Date -- @pragma nostrip local class = require 'pl.class' local os_time, os_date = os.time, os.date local stringx = require 'pl.stringx' local utils = require 'pl.utils' local assert_arg,assert...
agpl-3.0
cornernote/minetest-modulator_game
mods/nature/growing_trees/spawning.lua
2
3671
------------------------------------------------------------------------------- -- Growing Trees Mod by Sapier -- -- License GPLv3 -- --! @file spawning.lua --! @brief contains spawn algorithm on mapgen --! mod --! @copyright Sapier --! @author Sapier --! @date 2012-09-04 -- -- Contact sapier a t gmx net -------------...
gpl-3.0
sujeet14108/luci
applications/luci-app-p2pblock/luasrc/model/cbi/luci_fw/p2pblock.lua
60
2067
-- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local sys = require "luci.sys" m = Map("freifunk_p2pblock", translate("P2P-Block"), translate("P2P-Block is a greylisting mechanism to block various peer-to-peer protocols for non-whitelisted clients.")) s = ...
apache-2.0
MNKgod/darkstar
scripts/globals/mobskills/Venom.lua
21
1040
--------------------------------------------- -- Venom -- -- Description: Deals damage in a fan shaped area. Additional effect: poison -- Type: Magical Water -- Utsusemi/Blink absorb: Ignores shadows -- Range: 10' cone -- Notes: Additional effect can be removed with Poisona. ------------------------------...
gpl-3.0
DhavalKapil/elasticsearch-lua
src/elasticsearch/endpoints/Indices/Seal.lua
2
1729
------------------------------------------------------------------------------- -- Importing modules ------------------------------------------------------------------------------- local IndicesEndpoint = require "elasticsearch.endpoints.Indices.IndicesEndpoint" --------------------------------------------------------...
mit
MNKgod/darkstar
scripts/zones/Windurst_Waters/npcs/Panna-Donna.lua
38
1038
----------------------------------- -- Area: Windurst Waters -- NPC: Panna-Donna -- Type: Mission NPC -- @zone: 238 -- @pos -57.502 -6 229.571 -- -- Auto-Script: Requires Verification (Verfied By Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; -----------...
gpl-3.0
MNKgod/darkstar
scripts/globals/items/loaf_of_steel_bread.lua
35
1198
----------------------------------------- -- ID: 4573 -- Item: loaf_of_steel_bread -- Food Effect: 60Min, All Races ----------------------------------------- -- Health 6 -- Vitality 1 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- ...
gpl-3.0
raphaelamorim/fblualib
fblualib/util/test/stats_test.lua
5
2525
require('fb.luaunit') local _debugger = require('fb.debugger') local Stats = require('fb.util.stats') Test = { EPS = 0.0001 } function Test:testDefaultNew() local s = Stats.new() assertEquals(Stats.DEFAULT_DECAY_FACTOR, s.decay_factor); end function Test:testNewWithParams() local decay = 8.2 local s = St...
bsd-3-clause
MNKgod/darkstar
scripts/zones/Windurst_Woods/npcs/Roberta.lua
17
2132
----------------------------------- -- Area: Windurst Woods -- NPC: Roberta -- Working 100% -- @zone 241 -- @pos 21 -4 -157 ----------------------------------- require("scripts/globals/settings"); ----------------------------------- -- onTrade Action ----------------------------------- function onTr...
gpl-3.0
MNKgod/darkstar
scripts/zones/Bastok_Markets_[S]/npcs/Pagdako.lua
31
1385
----------------------------------- -- Area: Bastok Markets (S) -- NPC: Pagdako -- Quest NPC -- pos -200 -6 -93 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Bastok_Markets_[S]/TextIDs"); require("scripts...
gpl-3.0
MNKgod/darkstar
scripts/globals/mobskills/Tribulation.lua
18
1128
--------------------------------------------- -- Tribulation -- -- Description: Inflicts Bio and blinds all targets in an area of effect. -- Type: Enfeebling -- Utsusemi/Blink absorb: Ignores shadows -- Range: AoE -- Notes: Bio effect can take away up to 39/tick. ------------------------------------------...
gpl-3.0
Polkm/underdone
gamemode/core/clientfiles/menus/cl_mainmenu.lua
1
5461
GM.MainMenu = nil PANEL = {} PANEL.TargetAlpha = 0 PANEL.CurrentAlpha = 0 function PANEL:Init() self:SetSize(550, 350) self.Frame = CreateGenericFrame("", false, false) self.Frame.Paint = function() end self.Frame:SetAlpha(0) self.Frame:MakePopup() self.TabSheet = CreateGenericTabPanel(self.Frame) self.I...
mit
cornernote/minetest-modulator_game
mods/effects/ambience/14init.lua
3
12639
-------------------------------------------------------------------------------------------------------- --Ambiance Configuration for version .14 local max_frequency_all = 1000 --the larger you make this number the lest frequent ALL sounds will happen recommended values between 100-2000. --for frequencies below use a...
gpl-3.0
cornernote/minetest-modulator_game
mods/tools/throwing/init.lua
1
3057
arrows = { {"throwing:arrow", "throwing:arrow_entity"}, {"throwing:arrow_fire", "throwing:arrow_fire_entity"}, {"throwing:arrow_teleport", "throwing:arrow_teleport_entity"}, {"throwing:arrow_dig", "throwing:arrow_dig_entity"}, {"throwing:arrow_build", "throwing:arrow_build_entity"} } local throwing_shoot_arrow = ...
gpl-3.0
uspgamedev/JellyArena
entities/Attack.lua
1
4577
local Label, Timer, AttackProperties, Damage, AttackRange, BulletProperties = Component.load({"Label", "Timer", "AttackProperties", "Damage", "AttackRange", "BulletProperties"}) DefaultAttackConstructors = {} function createPlayerAttack(parent) local entity = Entity(parent) local stats = parent:get("Stats") ent...
mit
MNKgod/darkstar
scripts/zones/Kazham/npcs/Tsahbi_Ifalombo.lua
15
1099
----------------------------------- -- Area: Kazham -- NPC: Tsahbi Ifalombo -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); ----------------------------------- -- onTrade Action -------------------------...
gpl-3.0
MNKgod/darkstar
scripts/zones/Port_Bastok/npcs/Qiji.lua
36
2002
----------------------------------- -- Area: Port Bastok -- NPC: Qiji -- Starts & Ends Quest: Forever to Hold ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/quests")...
gpl-3.0
sujeet14108/luci
applications/luci-app-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo.lua
132
1057
--[[ netdiscover_devinfo - SIP Device Information (c) 2009 Daniel Dickinson 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$ ]]-- require("luci.i1...
apache-2.0
MNKgod/darkstar
scripts/zones/Balgas_Dais/mobs/Maat.lua
27
1127
----------------------------------- -- Area: Balga Dais -- NPC: Maat -- Genkai 5 Fight ----------------------------------- package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Balgas_Dais/TextIDs"); ----------------------------------- -- onM...
gpl-3.0
MNKgod/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Renten-Tonten.lua
38
1053
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Renten-Tonten -- Type: Standard NPC -- @zone: 94 -- @pos 133.840 -6.75 173.305 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = n...
gpl-3.0
MNKgod/darkstar
scripts/globals/items/bibiki_slug.lua
18
1416
----------------------------------------- -- ID: 5122 -- Item: Bibiki Slug -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity -5 -- Vitality 4 -- defense % 16 ----------------------------------------- require("scripts/globals/status"); --------------------------------...
gpl-3.0
MNKgod/darkstar
scripts/globals/items/plate_of_vegan_sautee.lua
35
1401
----------------------------------------- -- ID: 5184 -- Item: plate_of_vegan_sautee -- Food Effect: 240Min, All Races ----------------------------------------- -- Agility 1 -- Vitality -1 -- Ranged ACC % 7 -- Ranged ACC Cap 20 ----------------------------------------- require("scripts/globals/status"); ...
gpl-3.0
mahdib9/mah2
plugins/invite.lua
1111
1195
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) then -- Ignore bans send_large_msg(chat, 'User is banned.') elseif is_gbanned(result.id) then -- I...
gpl-2.0
MNKgod/darkstar
scripts/zones/The_Eldieme_Necropolis/npcs/Hume_Bones.lua
17
1988
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: Hume Bones -- Involved in Quests: Blue Ribbon Blues -- @pos 299 0.1 19 195 ----------------------------------- package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil; ----------------------------------- require("scripts...
gpl-3.0
PotcFdk/PlyLab
lua/autorun/plylab.lua
1
1359
--[[ PlyLab, Copyright 2014 PotcFdk 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 a...
apache-2.0
LuaDist2/luarepl
repl/plugins/autoreturn.lua
4
1364
-- Copyright (c) 2011-2015 Rob Hoelz <rob@hoelz.ro> -- -- 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,...
mit
mynameiscraziu/negative
plugins/remind.lua
362
1875
local filename='data/remind.lua' local cronned = load_from_file(filename) local function save_cron(msg, text,date) local origin = get_receiver(msg) if not cronned[date] then cronned[date] = {} end local arr = { origin, text } ; table.insert(cronned[date], arr) serialize_to_file(cronned, filename) re...
gpl-2.0
MNKgod/darkstar
scripts/zones/Bastok_Mines/npcs/Gerbaum.lua
17
2169
----------------------------------- -- Area: Bastok Mines -- NPC: Gerbaum -- Starts & Finishes Repeatable Quest: Minesweeper (100%) ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); require("sc...
gpl-3.0
MNKgod/darkstar
scripts/globals/items/bowl_of_zesti_zoni.lua
36
1605
----------------------------------------- -- ID: 5619 -- Item: Bowl of Zesti Zoni -- Food Effect: 4 Hrs, All Races ----------------------------------------- -- HP 10 -- MP 10 -- Strength 1 -- Dexterity 1 -- Vitality 1 -- Agility 1 -- MP Recovered while healing 1 -- HP Recovered while healing 1 -------------------------...
gpl-3.0
MNKgod/darkstar
scripts/zones/Upper_Delkfutts_Tower/TextIDs.lua
9
1183
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6414; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6419; -- Obtained: <item>. GIL_OBTAINED = 6420; -- Obtained <number> gil. KEYITEM_OBTAINED = 6422; -- Obtained...
gpl-3.0
MNKgod/darkstar
scripts/globals/items/bowl_of_brain_stew.lua
35
1482
----------------------------------------- -- ID: 4542 -- Item: Bowl of Brain Stew -- Food Effect: 180Min, All Races ----------------------------------------- -- Dexterity 5 -- Intelligence 5 -- Mind 5 -- Health Regen While Healing 3 -- Magic Regen While Healing 3 ----------------------------------------- r...
gpl-3.0
MNKgod/darkstar
scripts/zones/Southern_San_dOria/npcs/Thadiene.lua
34
1983
----------------------------------- -- Area: Southern San d'Oria -- NPC: Thadiene -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/sho...
gpl-3.0
MNKgod/darkstar
scripts/zones/Garlaige_Citadel/npcs/qm6.lua
34
1385
----------------------------------- -- Area: Garlaige Citadel -- NPC: qm6 (???) -- Involved in Quest: Hitting the Marquisate (THF AF3) -- @pos -220.039 -5.500 194.192 200 ----------------------------------- package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil; ----------------------------------- re...
gpl-3.0
MNKgod/darkstar
scripts/commands/hide.lua
62
1164
--------------------------------------------------------------------------------------------------- -- func: hide -- desc: Hides the GM from other players. --------------------------------------------------------------------------------------------------- cmdprops = { permission = 1, parameters = "s" }; funct...
gpl-3.0
AccroGaming/Accro-DarkRP
DarkRP/entities/weapons/weapon_glock2/shared.lua
1
1226
if (CLIENT) then SWEP.Author = "Rickster + FPtje" SWEP.Contact = "" SWEP.Purpose = "" SWEP.Instructions = "" SWEP.PrintName = "Glock" SWEP.Instructions = "Shoot with it" SWEP.Slot = 1 SWEP.SlotPos = 0 SWEP.IconLetter = "c" killicon.AddFont("weapon_p228","CSKillIcons",SWEP.IconLetter,Color(255,80,0,255)) end ...
mpl-2.0
schoenb/MoonGen
examples/quality-of-service-test.lua
1
7639
--- This script implements a simple QoS test by generating two flows and measuring their latencies. local dpdk = require "dpdk" local memory = require "memory" local device = require "device" local ts = require "timestamping" local filter = require "filter" local stats = require "stats" local hist = require "histog...
mit
LuaDist2/lua-path
test/test.lua
2
27696
local lunit = require "lunit" local TEST_CASE = lunit.TEST_CASE local path = require "path" local path_win = path.new('\\') local path_unx = path.new('/') local function mkfile(P, data) P = path.fullpath(P) path.mkdir(path.dirname(P)) local f, e = io.open(P, "w+b") if not f then return nil, err end if dat...
mit
BradSharp/roblox
sockets/client/socket.lua
1
6187
local requestQueueSize = 256 ------------------------------------------------- local httpService = game:GetService'HttpService' local replicatedStorage = game:GetService'ReplicatedStorage' local folder = replicatedStorage:WaitForChild'Sockets' local event = folder:WaitForChild'Event' local request = folder:WaitForCh...
mit
lopezloo/mta-csrw
csrw/server/bomb.lua
1
3990
-- Bomb object local gl_bombObj -- Bomb update timer local gl_bombBeepTimer local BOMB_BEEP_SOUND_DISTANCE = 70 local BOMB_EXPLOSION_SOUND_DISTANCE = 120 -- Player is sending request to plant bomb function onBombPlanted() if not client or client ~= source then return end if g_roundData.bomb then -- Bomb is a...
gpl-3.0
nimaghorbani/ghbotfool
plugins/antibot.lua
28
3358
local function isBotAllowed (userId, chatId) local hash = 'anti-bot:allowed:'..chatId..':'..userId local banned = redis:get(hash) return banned end local function allowBot (userId, chatId) local hash = 'anti-bot:allowed:'..chatId..':'..userId redis:set(hash, true) end local function disallowBot (userId, cha...
gpl-2.0
bradchesney79/2015BeastRouterProject
openwrt/unsquash/squashfs-root/usr/lib/lua/luci/model/cbi/admin_network/ifaces.lua
37
15435
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" local ut = require "luci.util" local pt = require "luci.tools.proto" local nw = require "luci.model.network" local fw = requ...
cc0-1.0
IntelligentBot/IntelligentBot
libs/url.lua
567
9183
--[[ 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, merge, publish, distribute,...
gpl-2.0
philsiff/Red-Vs-Blue
Red Vs. Blue Files/lua/vgui/dframe.lua
1
7367
--[[ _ ( ) _| | __ _ __ ___ ___ _ _ /'_` | /'__`\( '__)/' _ ` _ `\ /'_` ) ( (_| |( ___/| | | ( ) ( ) |( (_| | `\__,_)`\____)(_) (_) (_) (_)`\__,_) DFrame A window. --]] PANEL = {} AccessorFunc( PANEL, "m_bIsMenuComponent", ...
mit
siktirmirza/dt
plugins/id.lua
31
6231
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
ZerothAngel/FtDScripts
control/planelikedefaults-header.lua
1
1158
-- CONTROL CONFIGURATION -- This section enables/disables the control of each axis -- using a certain means: jets, dediblade spinners, or vehicle controls. -- The defaults here are suitable for airplanes -- a vehicle with only -- yaw/pitch/roll/propulsion controls. -- Control fractions dedicated to jets & spinners f...
mit
notestudio/shall-I-kill-her
assets/scripts/vendor/MiddleClass.lua
3
5740
----------------------------------------------------------------------------------- -- MiddleClass.lua -- Enrique García ( enrique.garcia.cota [AT] gmail [DOT] com ) - 19 Oct 2009 -- Based on YaciCode, from Julien Patte and LuaObject, from Sébastien Rocca-Serra ------------------------------------------------------...
apache-2.0
philsiff/Red-Vs-Blue
Red Vs. Blue Files/gamemodes/base/entities/entities/base_ai/schedules.lua
3
6018
--[[--------------------------------------------------------- Name: RunAI - Called from the engine every 0.1 seconds -----------------------------------------------------------]] function ENT:RunAI( strExp ) -- If we're running an Engine Side behaviour -- then return true and let it get on with it. if ( self:...
mit
philsiff/Red-Vs-Blue
Red Vs. Blue Files/lua/autorun/properties/npc_scale.lua
1
1521
AddCSLuaFile() properties.Add( "npc_bigger", { MenuLabel = "#biggify", Order = 1799, MenuIcon = "icon16/magnifier_zoom_in.png", Filter = function( self, ent, ply ) if ( !gamemode.Call( "CanProperty", ply, "npc_bigger", ent ) ) then return false end if ( !IsValid( ent ) ) then return false e...
mit
IntelligentBot/IntelligentBot
bot/utils.lua
91
31577
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = (loadfile "./libs/serpent.lua")() feedparser = (loadfile "./libs/feedparser.lua")() json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.l...
gpl-2.0
philsiff/Red-Vs-Blue
Red Vs. Blue Files/lua/vgui/dtree.lua
1
4777
--[[ _ ( ) _| | __ _ __ ___ ___ _ _ /'_` | /'__`\( '__)/' _ ` _ `\ /'_` ) ( (_| |( ___/| | | ( ) ( ) |( (_| | `\__,_)`\____)(_) (_) (_) (_)`\__,_) DTree --]] local PANEL = {} AccessorFunc( PANEL, "m_bShowIcons", "ShowIco...
mit
ld-test/lua-curl
lakeconfig.lua
4
5384
local io = require "io" io.stdout:setvbuf"no" io.stderr:setvbuf"no" function vc_version() local VER = lake.compiler_version() MSVC_VER = ({ [15] = '9'; [16] = '10'; })[VER.MAJOR] or '' return MSVC_VER end if not L then local function arkey(t) assert(type(t) == 'table') local keys = {} for k in ...
mit
sgraham/nope
third_party/skia/tools/lua/scrape_dashing_full.lua
159
4610
local canvas -- holds the current canvas (from startcanvas()) --[[ startcanvas() is called at the start of each picture file, passing the canvas that we will be drawing into, and the name of the file. Following this call, there will be some number of calls to accumulate(t) where t is a tabl...
bsd-3-clause
pazos/koreader
frontend/ui/data/creoptions.lua
1
29212
local Device = require("device") local Screen = Device.screen local optionsutil = require("ui/data/optionsutil") local _ = require("gettext") local C_ = _.pgettext -- Get font size numbers as a table of strings local tableOfNumbersToTableOfStrings = function(numbers) local t = {} for i, v in ipairs(numbers) do...
agpl-3.0
keyanmca/MonaServer
FunctionalTests/www/FunctionalTests/Media/main.lua
6
2375
function onConnection(client) NOTE("Connection to ", path) function client:readMedia(fileName) local response = {err="",packetType="",finished=false} if not client.publication then client.publication = mona:publish("file") if not client.publication then error("already published") en...
gpl-3.0
philsiff/Red-Vs-Blue
Red Vs. Blue Files/gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content/contenttypes/addonprops.lua
1
1209
local function AddRecursive( pnl, folder, path, wildcard ) local files, folders = file.Find( folder .. "*", path ) for k, v in pairs( files ) do if ( !string.EndsWith( v, ".mdl" ) ) then continue end local cp = spawnmenu.GetContentType( "model" ); if ( cp ) then cp( pnl, { model = folder .. v } ) ...
mit
arkana-fts/cegui
cegui/src/ScriptModules/Lua/support/tolua++bin/lua/class.lua
14
6494
-- tolua: class 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, -- enhancements, or...
mit