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 |
|---|---|---|---|---|---|
Mizugola/MeltingSaga | engine/Lib/Extlibs/pl/luabalanced.lua | 8 | 7990 | --- Extract delimited Lua sequences from strings.
-- Inspired by Damian Conway's Text::Balanced in Perl. <br/>
-- <ul>
-- <li>[1] <a href="http://lua-users.org/wiki/LuaBalanced">Lua Wiki Page</a></li>
-- <li>[2] http://search.cpan.org/dist/Text-Balanced/lib/Text/Balanced.pm</li>
-- </ul> <br/>
-- <pre class=example... | mit |
jshackley/darkstar | scripts/globals/items/bowl_of_sutlac_+1.lua | 36 | 1318 | -----------------------------------------
-- ID: 5578
-- Item: Bowl of Sutlac
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10
-- MP +10
-- INT +2
-- MP Recovered while healing +2
-----------------------------------------
require("scripts/globals/status");
---... | gpl-3.0 |
kidaa/turbo | turbo/platform.lua | 11 | 1395 | --- Turbo.lua C Platform / OS variables.
--
-- Copyright 2014 John Abrahamsen
--
-- 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... | apache-2.0 |
josetaas/YokiRaidCursor | Tests/CursorTest.lua | 1 | 1061 | local Class = YokiRaidCursor.Class
local Test = YokiRaidCursor.Testing.Test
local CursorTest = Class('CursorTest', Test)
function CursorTest:Initialize()
Test:Register(CursorTest.Move_WithValidFrame_CentersOnFrame)
Test:Register(CursorTest.Move_WithValidFrame_SetsTargetToFrame)
end
function CursorTest:Move_Wi... | mit |
sugiartocokrowibowo/Algorithm-Implementations | Weighted_Random_Distribution/Lua/Yonaba/weighted_random.lua | 27 | 1445 | -- Weighted/Biased random distribution implementation
-- See : http://codetheory.in/weighted-biased-random-number-generation-with-javascript-based-on-probability/
-- Note: The sum of weights should be 1. That is, all
-- weights are decimal values lower than 1.
-- Note: As all the implementations given below uses
-- ... | mit |
jshackley/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/_1ee.lua | 34 | 1045 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Door: Kokba Hostel
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
... | gpl-3.0 |
KiloSierraCharlie/UsefulScripts | DarkRP/darkrpmodificationmaster/lua/darkrp_modules/propkillanouncer/sh_propkillanouncer.lua | 2 | 1753 | local killercolour = Color(255,0,0) // Prop killer's name color
local victimcolour = Color(0,0,255) // Victim's name color
local adminnoticeonly = true // Weather the notice should be admin only, or for everyone.
local staffgroups = { "superadmin", "admin", "operator" } // ULX Group names, for those who should be notif... | unlicense |
iofun/treehouse | luerl/0635ca2c31ba6fce9cb1008f846795a6.lua | 1 | 2065 | -- Our unit function table
local this_unit = {}
-- Where we are and fast we move
local x, y, dx, dy
-- Our name
local name = "Protoss_Stargate"
-- Our color
local color = "yellow"
-- Our BWAPI unit type
local type = 167
-- Size of a clock tick msec
local tick
-- It's me, the unit structure
local me = unit.self()
--... | agpl-3.0 |
ByteFun/Starbound_mods | smount/tech/mech/mount91g.lua | 1 | 38443 | function checkCollision(position)
local boundBox = mcontroller.boundBox()
boundBox[1] = boundBox[1] - mcontroller.position()[1] + position[1]
boundBox[2] = boundBox[2] - mcontroller.position()[2] + position[2]
boundBox[3] = boundBox[3] - mcontroller.position()[1] + position[1]
boundBox[4] = boundBox[4] - mcon... | gpl-2.0 |
VincentGong/chess | cocos2d-x/cocos/scripting/lua-bindings/auto/api/PhysicsJointRatchet.lua | 6 | 1308 |
--------------------------------
-- @module PhysicsJointRatchet
-- @extend PhysicsJoint
--------------------------------
-- @function [parent=#PhysicsJointRatchet] getAngle
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
-- @function [parent=#PhysicsJointRatc... | mit |
jshackley/darkstar | scripts/zones/Western_Altepa_Desert/TextIDs.lua | 15 | 1562 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
FULL_INVENTORY_AFTER_TRADE = 6383; -- You cannot obtain the <item>. Try trading again after sorting your inventory.
ITEM_OBTAINED = 6384; ... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Lower_Jeuno/npcs/Naruru.lua | 17 | 3726 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Naruru
-- Starts and Finishes Quests: Cook's Pride
-- @pos -56 0.1 -138 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
package.loaded["scripts/globals/settings"] = nil;
-------------------------... | gpl-3.0 |
jshackley/darkstar | scripts/globals/weaponskills/skewer.lua | 30 | 1368 | -----------------------------------
-- Skewer
-- Polearm weapon skill
-- Skill Level: 200
-- Delivers a three-hit attack. Chance of params.critical hit varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Light Gorget & Thunder Gorget.
-- Aligned with the Light Belt & Thunder Belt.
-- Element: N... | gpl-3.0 |
kjmac123/metabuilder | metabuilder/metabase/msvctadp_common_android.lua | 1 | 3052 | import "metabase_common.lua"
import "platform_android.lua"
supportedplatforms
{
"TADP",
}
writer "writer_msvc.lua"
option("msvc", "customwriter", "/writer_msvctadp_android.lua")
option("msvc", "platform", "Tegra-Android")
option("msvconfiguration", "AndroidArch", "armv7-a")
option("msvccompile"... | mit |
SpRoXx/GTW-RPG | [resources]/GTWtraindriver/train_s.lua | 1 | 8533 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/GTWCode/GTW-RPG/
Bugtracker: http://forum.404rq.com/bug-reports/
Suggestions: http://forum.404rq.com/mta-se... | bsd-2-clause |
jshackley/darkstar | scripts/zones/Cloister_of_Frost/mobs/Shiva_Prime.lua | 1 | 1736 | -----------------------------------
-- Area: Cloister of Frost
-- MOB: Shiva Prime
-- Involved in Quest: Trial by Ice
-- Involved in Mission: ASA-4 Sugar Coated Directive
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/status");
-... | gpl-3.0 |
jshackley/darkstar | scripts/globals/abilities/box_step.lua | 28 | 7984 | -----------------------------------
-- Ability: Box Step
-- Lowers target's defense. If successful, you will earn two Finishing Moves.
-- Obtained: Dancer Level 30
-- TP Required: 10%
-- Recast Time: 00:05
-- Duration: First Step lasts 1 minute, each following Step extends its current duration by 30 seconds.
---... | gpl-3.0 |
sp3ctum/lean | tests/lua/tc_bug1.lua | 4 | 2343 | local env = environment()
local N = Const("N")
local p = Const("p")
local q = Const("q")
local a = Const("a")
local b = Const("b")
local f = Const("f")
local H1 = Const("H1")
local H2 = Const("H2")
local And = Const("and")
local and_intro = Const("and_intro")
local A = Local("A", Prop)
local B = Local... | apache-2.0 |
jshackley/darkstar | scripts/globals/spells/katon_san.lua | 17 | 1616 | -----------------------------------------
-- Spell: Katon: San
-- Deals fire damage to an enemy and lowers its resistance against water.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
---... | gpl-3.0 |
jshackley/darkstar | scripts/globals/items/crab_stewpot.lua | 36 | 1675 | -----------------------------------------
-- ID: 5544
-- Item: Crab Stewpot
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% Cap 50
-- MP +10
-- HP Recoverd while healing 5
-- MP Recovered while healing 1
-- Defense +15% Cap 50
-- Evasion +5
-------------------... | gpl-3.0 |
Victek/wrt1900ac-aa | veriksystems/luci-0.11/applications/luci-asterisk/luasrc/model/cbi/asterisk-sip-connections.lua | 11 | 3982 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | gpl-2.0 |
jshackley/darkstar | scripts/globals/effects/accuracy_boost.lua | 18 | 1090 | -----------------------------------
--
-- EFFECT_ACCURACY_BOOST
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
if (effect:getPower()>100) then
... | gpl-3.0 |
jshackley/darkstar | scripts/globals/items/dish_of_spaghetti_melanzane.lua | 35 | 1401 | -----------------------------------------
-- ID: 5213
-- Item: dish_of_spaghetti_melanzane
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health % 25
-- Health Cap 100
-- Vitality 2
-- Store TP 4
-----------------------------------------
require("scripts/globals/status");
-... | gpl-3.0 |
jshackley/darkstar | scripts/zones/West_Ronfaure/npcs/qm2.lua | 34 | 1498 | -----------------------------------
-- Area: West Ronfaure
-- NPC: qm2 (???)
-- Involved in Quest: The Dismayed Customer
-- @pos -550 -0 -542 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/s... | gpl-3.0 |
LiberatorUSA/GUCEF | tools/ArchiveDiff/premake5.lua | 1 | 3723 | --------------------------------------------------------------------
-- This file was automatically generated by ProjectGenerator
-- which is tooling part the build system designed for GUCEF
-- (Galaxy Unlimited Framework)
-- For the latest info, see http://www.VanvelzenSoftware.com/
--
-- The contents of this file... | apache-2.0 |
jshackley/darkstar | scripts/zones/Yhoator_Jungle/npcs/Harvesting_Point.lua | 29 | 1116 | -----------------------------------
-- Area: Yhoator Jungle
-- NPC: Harvesting Point
-----------------------------------
package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/harvesting");
require("scripts/zones/Yhoator_Jungle/TextIDs");... | gpl-3.0 |
a1ive/grub2-filemanager | boot/grubfm/g4d_path.lua | 1 | 1376 | #!lua
-- Grub2-FileManager
-- Copyright (C) 2018, 2019, 2020 A1ive.
--
-- Grub2-FileManager 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 |
Ombridride/minetest-minetestforfun-server | mods/mobs/npc.lua | 7 | 3971 |
-- Npc by TenPlus1
mobs.npc_drops = { "farming:meat", "farming:donut", "farming:bread", "default:apple", "default:sapling", "default:junglesapling",
"shields:shield_enhanced_wood", "3d_armor:chestplate_cactus", "3d_armor:boots_bronze",
"default:sword_steel", "default:pick_steel", "default:shovel_steel", "d... | unlicense |
jshackley/darkstar | scripts/zones/Qufim_Island/npcs/Singing_Blade_IM.lua | 30 | 3053 | -----------------------------------
-- Area: Qufim Island
-- NPC: Singing Blade, I.M.
-- Type: Border Conquest Guards
-- @pos 179.093 -21.575 -15.282 126
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conques... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Labyrinth_of_Onzozo/mobs/Goblin_Alchemist.lua | 2 | 1028 | -----------------------------------
-- Area: Labyrinth of Onzozo
-- MOB: Goblin Alchemist
-- Note: Place holder Soulstealer Skullnix
-----------------------------------
require("scripts/zones/Labyrinth_of_Onzozo/MobIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
function... | gpl-3.0 |
LiberatorUSA/GUCEF | dependencies/agar/ada-gui/GENERATION/bindings_c.lua | 4 | 3564 | #!/usr/bin/env lua
local ts = tostring
io.write ([[
void
agar_gui_widget_bind_pointer (AG_Widget *w, const char *binding, void **p)
{
AG_BindPointer (w, binding, p);
}
void
agar_gui_widget_bind_boolean (AG_Widget *w, const char *binding, int *var)
{
AG_BindBool (w, binding, var);
}
void
agar_gui_widget_bind_int... | apache-2.0 |
jshackley/darkstar | scripts/zones/Korroloka_Tunnel/npcs/Excavation_Point.lua | 29 | 1117 | -----------------------------------
-- Area: Korroloka Tunnel
-- NPC: Excavation Point
-----------------------------------
package.loaded["scripts/zones/Korroloka_Tunnel/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/excavation");
require("scripts/zones/Korroloka_Tunnel/Text... | gpl-3.0 |
jshackley/darkstar | scripts/globals/spells/bluemagic/flying_hip_press.lua | 27 | 1410 | -----------------------------------------
-- Spell: Flying Hip Press
-- Deals wind damage to enemies within range
-- Spell cost: 125 MP
-- Monster Type: Beastmen
-- Spell Type: Magical (Wind)
-- Blue Magic Points: 3
-- Stat Bonus: AGI+1
-- Level: 58
-- Casting Time: 5.75 seconds
-- Recast Time: 34.5 seconds
... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Western_Adoulin/Zone.lua | 33 | 1246 | -----------------------------------
--
-- Zone: Western Adoulin
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Western_Adoulin/TextIDs"] = nil;
require("scripts/zones/Western_Adoulin/TextIDs");
-----------------------------------
-- onInitialize... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Upper_Jeuno/npcs/Mejuone.lua | 37 | 1157 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Mejuone
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
require("scripts/zones/Upper_Jeuno/TextIDs");
-----------------------------------
... | gpl-3.0 |
Ombridride/minetest-minetestforfun-server | mods/watershed/init.lua | 3 | 24366 | -- Parameters
local YMIN = -33000 -- Approximate base of realm stone
local YMAX = 33000 -- Approximate top of atmosphere / mountains / floatlands
local TERCEN = -128 -- Terrain zero level, average seabed
local YWAT = 1 -- Sea surface y
local YSAV = 5 -- Average sandline y, dune grasses above this
local SAMP = 3 -- San... | unlicense |
jshackley/darkstar | scripts/globals/items/boneworkers_belt.lua | 30 | 1207 | -----------------------------------------
-- ID: 15449
-- Item: Boneworker's belt
-- Enchantment: Synthesis image support
-- 2Min, All Races
-----------------------------------------
-- Enchantment: Synthesis image support
-- Duration: 2Min
-- Bonecraft Skill +3
-----------------------------------------
req... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Castle_Oztroja_[S]/Zone.lua | 28 | 1334 | -----------------------------------
--
-- Zone: Castle_Oztroja_[S] (99)
--
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Castle_Oztroja_[S]/TextIDs");
----... | gpl-3.0 |
drhelius/Gearboy | platforms/ios/dependencies/SDL-2.0.4-9174/premake/util/sdl_gen_config.lua | 7 | 2700 | -- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for an... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/weaponskills/freezebite.lua | 6 | 1231 | -----------------------------------
-- Freezebite
-- Great Sword weapon skill
-- Skill Level: 100
-- Delivers an ice elemental attack. Damage varies with TP.
-- Aligned with the Snow Gorget & Breeze Gorget.
-- Aligned with the Snow Belt & Breeze Belt.
-- Element: Ice
-- Modifiers: STR:30% ; INT:20%
--... | gpl-3.0 |
teahouse/FWServer | skynet/lualib/skynet/manager.lua | 72 | 1923 | local skynet = require "skynet"
local c = require "skynet.core"
function skynet.launch(...)
local addr = c.command("LAUNCH", table.concat({...}," "))
if addr then
return tonumber("0x" .. string.sub(addr , 2))
end
end
function skynet.kill(name)
if type(name) == "number" then
skynet.send(".launcher","lua","REMO... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Beaucedine_Glacier/npcs/Luck_Rune.lua | 34 | 1089 | -----------------------------------
-- Area: Beaucedine Glacier
-- NPC: Luck Rune
-- Involved in Quest: Mhaura Fortune
-- @pos 70.736 -37.778 149.624 111
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier/TextIDs"] = nil;
-------------------------------------
require("sc... | gpl-3.0 |
sjznxd/luci-0.11-aa | applications/luci-pbx/luasrc/model/cbi/pbx-advanced.lua | 29 | 14365 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | apache-2.0 |
Distroformo/SSO-English-patch | script/i18n/skill.lua | 1 | 22229 | --[[ @i18n skill ]]
local _t = require("i18n").context("skill")
module("STRING_TABLE")
----------------------
--生产相关
PRODUCE_SKILL_NEED_LEARN = _t"^ff0000您还没有学会生产技能,"
PRODUCE_SKILL_LEVEL = _t"%dLv."
PRODUCE_SKILL_LEVEL_AND_EXP = _t"%dLv. (%d / %d)"
PRODUCE_SKILL_NAME_LEVEL_AND... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/vehicles/speedo.lua | 1 | 2152 |
VEHICLE = {};
VEHICLE.ID = 'f';
VEHICLE.FID = '6';
VEHICLE.Name = "Speedo";
VEHICLE.Make = "Vapid ST";
VEHICLE.Model = "Speedo";
VEHICLE.Script = "speedo";
VEHICLE.Cost = 65000;
VEHICLE.PaintJobCost = 4500;
VEHICLE.DF = true;
VEHICLE.CustomBodyGroup = nil;
VEHICLE.PaintJobs = {
... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Windurst_Woods/npcs/Apururu.lua | 11 | 5650 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Apururu
-- Involved in Quests: The Kind Cardian, Can Cardians Cry?
-- @zone 241
-- @pos -11 -2 13
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
package.loaded["scripts/globals/missions"] = ni... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Windurst_Waters_[S]/npcs/Ezura-Romazura.lua | 34 | 1541 | -----------------------------------
-- Area: Windurst Waters [S]
-- NPC: Ezura-Romazura
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/Wi... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Port_Jeuno/npcs/Challoux.lua | 37 | 1148 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Challoux
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
require("scripts/zones/Port_Jeuno/TextIDs");
-----------------------------------
-... | gpl-3.0 |
PioneerMakeTeam/Cretaceous | wicker/lib/searchspace.lua | 6 | 1536 | --[[
Copyright (C) 2013 simplex
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that ... | mit |
sadegh1996/sword_antispam | plugins/plugins.lua | 10 | 8430 | 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 |
FFXIOrgins/FFXIOrgins | scripts/zones/South_Gustaberg/Zone.lua | 2 | 2783 | -----------------------------------
--
-- Zone: South_Gustaberg (107)
--
-----------------------------------
package.loaded["scripts/zones/South_Gustaberg/TextIDs"] = nil;
require("scripts/globals/missions");
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scripts/zones/South... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Bhaflau_Remnants/Zone.lua | 36 | 1125 | -----------------------------------
--
-- Zone: Bhaflau_Remnants
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Bhaflau_Remnants/TextIDs"] = nil;
require("scripts/zones/Bhaflau_Remnants/TextIDs");
-----------------------------------
-- onInitial... | gpl-3.0 |
JulianVolodia/awesome | lib/awful/completion.lua | 11 | 7193 | ---------------------------------------------------------------------------
--- Completion module.
--
-- This module store a set of function using shell to complete commands name.
--
-- @author Julien Danjou <julien@danjou.info>
-- @author Sébastien Gross <seb-awesome@chezwam.org>
-- @copyright 2008 Julien ... | gpl-2.0 |
hb9cwp/snabbswitch | src/dynasm.lua | 2 | 37530 | ------------------------------------------------------------------------------
-- DynASM. A dynamic assembler for code generation engines.
-- Originally designed and implemented for LuaJIT.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- See below for full copyright notice.
----------------------------... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Temenos/mobs/Airi.lua | 17 | 1277 | -----------------------------------
-- Area: Temenos Central 1floor
-- NPC: Airi
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
----------------------... | gpl-3.0 |
subzrk/BadRotations | Libs/DiesalGUI-1.0/Objects/Window.lua | 1 | 12116 | -- $Id: Window.lua 60 2016-11-04 01:34:23Z diesal2010 $
local DiesalGUI = LibStub("DiesalGUI-1.0")
-- | Libraries |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
local DiesalTools = LibStub("DiesalTools-1.0")
local DiesalStyle = Lib... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/galette_des_rois.lua | 39 | 1322 | -----------------------------------------
-- ID: 5875
-- Item: Galette Des Rois
-- Food Effect: 180 Min, All Races
-----------------------------------------
-- MP % 1
-- Intelligence +2
-- Random Jewel
-----------------------------------------
require("scripts/globals/status");
require("scripts/zones/Bastok_Mines/Text... | gpl-3.0 |
sjznxd/luci-0.11-aa | protocols/ipv6/luasrc/model/cbi/admin_network/proto_6to4.lua | 12 | 1276 | --[[
LuCI - Lua Configuration Interface
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
local ma... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Dynamis-Xarcabard/mobs/Marquis_Gamygyn.lua | 19 | 1256 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Marquis Gamygyn
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
funct... | gpl-3.0 |
togolwb/skynet | lualib/sharemap.lua | 78 | 1496 | local stm = require "stm"
local sprotoloader = require "sprotoloader"
local sproto = require "sproto"
local setmetatable = setmetatable
local sharemap = {}
function sharemap.register(protofile)
-- use global slot 0 for type define
sprotoloader.register(protofile, 0)
end
local sprotoobj
local function loadsp()
if ... | mit |
teahouse/FWServer | skynet/lualib/sharemap.lua | 78 | 1496 | local stm = require "stm"
local sprotoloader = require "sprotoloader"
local sproto = require "sproto"
local setmetatable = setmetatable
local sharemap = {}
function sharemap.register(protofile)
-- use global slot 0 for type define
sprotoloader.register(protofile, 0)
end
local sprotoobj
local function loadsp()
if ... | mit |
gitfancode/skynet | lualib/sharemap.lua | 78 | 1496 | local stm = require "stm"
local sprotoloader = require "sprotoloader"
local sproto = require "sproto"
local setmetatable = setmetatable
local sharemap = {}
function sharemap.register(protofile)
-- use global slot 0 for type define
sprotoloader.register(protofile, 0)
end
local sprotoobj
local function loadsp()
if ... | mit |
joshimoo/Algorithm-Implementations | Derivative/Lua/Yonaba/derivative_test.lua | 26 | 1356 | -- Tests for derivative.lua
local drv = require 'derivative'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1 end
loc... | mit |
msburgess3200/PERP | gamemodes/perp/gamemode/sv_modules/sv_mixing.lua | 1 | 7289 | MixRange = 150
local combineSound = Sound("buttons/button19.wav")
local function MixItems(objPl, _, tblArgs)
local iID = tonumber(tblArgs[1])
local tblMixture
for k, v in pairs(MIXTURE_DATABASE) do
if(v.ID == iID) then
tblMixture = v
end
end
if(not tblMixture) then
objPl:Notify("Invalid mixture!")
... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Southern_San_dOria/npcs/Raimbroy.lua | 17 | 3316 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Raimbroy
-- Starts and Finishes Quest: The Sweetest Things
-- @zone 230
-- @pos
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scrip... | gpl-3.0 |
Arashbrsh/copyuz | plugins/stats.lua | 458 | 4098 | -- Saves the number of messages from a user
-- Can check the number of messages with !stats
do
local NUM_MSG_MAX = 5
local TIME_CHECK = 4 -- seconds
local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name.... | gpl-2.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/items/furniture_fence.lua | 1 | 1216 |
local ITEM = {};
ITEM.ID = 55;
ITEM.Reference = "furniture_fence";
ITEM.Name = "Wooden Fence";
ITEM.Description = "Designed for both privacy and protection.\n\nLeft click to spawn as prop.";
ITEM.Weight = 10;
ITEM.Cost = 400;
ITEM.MaxStack = 100;
ITEM.InventoryModel = "models/... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Temenos/mobs/Light_Elemental.lua | 17 | 1674 | -----------------------------------
-- Area: Temenos E T
-- NPC: Light_Elemental
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
----------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Ghelsba_Outpost/bcnms/toadal_recall.lua | 10 | 1477 | -----------------------------------
-- Area: Ghelsba Outpost
-- Name: toadal_recall BCNM30
-- @pos -162 -11 78 140
-----------------------------------
package.loaded["scripts/zones/Ghelsba_Outpost/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/keyitems"... | gpl-3.0 |
gitfancode/skynet | examples/login/msgagent.lua | 58 | 1165 | local skynet = require "skynet"
skynet.register_protocol {
name = "client",
id = skynet.PTYPE_CLIENT,
unpack = skynet.tostring,
}
local gate
local userid, subid
local CMD = {}
function CMD.login(source, uid, sid, secret)
-- you may use secret to make a encrypted data stream
skynet.error(string.format("%s is lo... | mit |
MAXtgBOT/Telemax-TG | plugins/setrank-global rank.lua | 1 | 8848 | do
local ramin = 205903314 --put your id here(BOT OWNER ID)
local function setrank(msg, name, value) -- setrank function
local hash = nil
if msg.to.type == 'chat' then
hash = 'rank:variables'
end
if hash then
redis:hset(hash, name, value)
return send_msg('chat#id'..msg.to.id, 'مقام کاربر ('..name..') ... | gpl-2.0 |
joshimoo/Algorithm-Implementations | Best_First_Search/Lua/Yonaba/bfs_test.lua | 26 | 2639 | -- Tests for bfs.lua
local BFS = require 'bfs'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function same(t, p, comp)
for k,v in ipairs(t) do
if not comp(v, p[k]) then return false end
end
return true
end
... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Phomiuna_Aqueducts/npcs/qm3.lua | 34 | 1033 | -----------------------------------
-- Area: Phomiuna Aqueducts
-- NPC: qm3 (???)
-- Notes: Opens north door @ J-9
-- @pos 116.743 -24.636 27.518 27
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,tra... | gpl-3.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/moreblocks/stairsplus/conversion.lua | 9 | 4118 | --[[
More Blocks: conversion
Copyright (c) 2011-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
-- Function to convert all stairs/slabs/etc nodes from
-- inverted, wall, etc to regular + 6d facedir
local dirs1 = {21, 20, 23, 22, 21}
local dirs2 = {15, 8, 17, ... | unlicense |
Ali-2h/lwl | plugins/ingroup.lua | 37 | 31653 | do
local function check_member(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[tostring(msg.to.id)] = {
... | gpl-2.0 |
daofeng2015/luci | applications/luci-app-pbx/luasrc/model/cbi/pbx-advanced.lua | 18 | 14476 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | apache-2.0 |
subzrk/BadRotations | Libs/DiesalGUI-1.0/Objects/CheckBox.lua | 1 | 5756 | -- $Id: CheckBox.lua 60 2016-11-04 01:34:23Z diesal2010 $
local DiesalGUI = LibStub("DiesalGUI-1.0")
-- ~~| Libraries |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
local DiesalTools = LibStub("DiesalTools-1.0")
local Diesa... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Aht_Urhgan_Whitegate/npcs/Zarfhid.lua | 34 | 1034 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Zarfhid
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
--------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Monarch_Linn/bcnms/ancient_vows.lua | 4 | 2608 | -----------------------------------
-- Area: Monarch Linn
-- Name: Ancient Vows
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/missions");
-- After registering the BCNM via bcnmRegister(bcnmid)
function OnBcnmRegister(player,instance)
-- initialize timers if... | gpl-3.0 |
hagish/lua-debugger | remdebug/src/controller.lua | 1 | 7901 | --
-- RemDebug 1.0 Beta
-- Copyright Kepler Project 2005 (http://www.keplerproject.org/remdebug)
--
local socket = require"socket"
print("Lua Remote Debugger")
print("Run the program you wish to debug")
local server = socket.bind("*", 8171)
local client = server:accept()
local breakpoints = {}
local watches = {}
c... | mit |
Gael-de-Sailly/minetest-minetestforfun-server | mods/vector_extras/vector_meta.lua | 8 | 4424 | vector.meta = vector.meta or {}
vector.meta.nodes = {}
vector.meta.nodes_file = {
load = function()
local nodesfile = io.open(minetest.get_worldpath()..'/vector_nodes.txt', "r")
if nodesfile then
local contents = nodesfile:read('*all')
io.close(nodesfile)
if contents ~= nil then
local lines = string.... | unlicense |
FFXIOrgins/FFXIOrgins | scripts/zones/Windurst_Waters/npcs/Piketo-Puketo.lua | 12 | 1991 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Piketo-Puketo
-- Type: Cooking Guild Master
-- @pos -124.012 -2.999 59.998 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/crafting")... | gpl-3.0 |
MOSAVI17/Gbot | plugins/face.lua | 641 | 3073 | local https = require("ssl.https")
local ltn12 = require "ltn12"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function request(imageUrl)
local api_key = mashape.api_key
if api_key:isempt... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Al_Zahbi/npcs/Banjanu.lua | 38 | 1025 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Banjanu
-- Type: Standard NPC
-- @zone: 48
-- @pos -75.954 0.999 105.367
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
------------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Phomiuna_Aqueducts/npcs/_0rw.lua | 17 | 1303 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: _0rw (Oil Lamp)
-- Notes: Opens south door at J-9 from inside.
-- @pos 103.703 -26.180 83.000 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
re... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Southern_San_dOria/npcs/Katharina.lua | 37 | 1095 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Katharina
-- General Info NPC
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Southe... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Caedarva_Mire/npcs/Kwadaaf.lua | 23 | 1347 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: Kwadaaf
-- Type: Entry to Alzadaal Undersea Ruins
-- @pos -639.000 12.323 -260.000 79
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitem... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/La_Theine_Plateau/npcs/Deaufrain.lua | 17 | 2302 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Deaufrain
-- Involved in Mission: The Rescue Drill
-- @pos -304 28 339 102
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/m... | gpl-3.0 |
kastnerkyle/MemNN | MemN2N-lang-model/data.lua | 18 | 1101 | -- Copyright (c) 2015-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
require('paths')
... | bsd-3-clause |
bitemyapp/MemNN | MemN2N-lang-model/data.lua | 18 | 1101 | -- Copyright (c) 2015-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
require('paths')
... | bsd-3-clause |
FFXIOrgins/FFXIOrgins | scripts/zones/The_Celestial_Nexus/mobs/Orbital.lua | 19 | 2130 | -----------------------------------
-- Area: The Celestial Nexus
-- NPC: Orbital
-- Zilart Mission 16 BCNM Fight
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/magic");
function onMobInitialize(mob)
mob:addMod(MOD_REGAIN, 50);
end... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/weaponskills/shell_crusher.lua | 6 | 1519 | -----------------------------------
-- Shell Crusher
-- Staff weapon skill
-- Skill Level: 175
-- Lowers target's defense. Duration of effect varies with TP.
-- If unresisted, lowers target defense by 25%.
-- Will stack with Sneak Attack.
-- Aligned with the Breeze Gorget.
-- Aligned with the Breeze Bel... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Windurst_Walls/Zone.lua | 4 | 2810 | -----------------------------------
--
-- Zone: Windurst_Walls (239)
--
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
require("scripts/globals/quests");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
require("scripts/zones/... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/crepe_caprice.lua | 36 | 1318 | -----------------------------------------
-- ID: 5776
-- Item: Crepe Caprice
-- Food Effect: 60 Min, All Races
-----------------------------------------
-- HP +20
-- MP Healing 3
-- Magic Accuracy +5
-- Magic Defense +2
-----------------------------------------
require("scripts/globals/status");
---------------------... | gpl-3.0 |
mehrpouya81/gamer1 | plugins/stats.lua | 236 | 3989 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/FeiYin/TextIDs.lua | 3 | 2300 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6557; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6560; -- Obtained: <item>
GIL_OBTAINED = 6561; -- Obtained <number> gil
KEYITEM_OBTAINED = 6563; -- Obtain... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Bastok_Markets/npcs/Gwill.lua | 17 | 2876 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Gwill
-- Starts & Ends Quest: The Return of the Adventurer
-- Involved in Quests: The Cold Light of Day, Riding on the Clouds
-- @zone 235
-- @pos 0 0 0
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"]... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/dish_of_spaghetti_boscaiola.lua | 35 | 1721 | -----------------------------------------
-- ID: 5192
-- Item: dish_of_spaghetti_boscaiola
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health % 18
-- Health Cap 120
-- Magic 35
-- Strength -5
-- Dexterity -2
-- Vitality 2
-- Mind 4
-- Magic Regen While Healing 1
----------... | gpl-3.0 |
velukh/MplusLedger | DataBroker.lua | 1 | 4003 | local ldb = LibStub:GetLibrary("LibDataBroker-1.1", true)
local MplusLedger = MplusLedger
local UiUtils = MplusLedgerUiUtils
local AceConfigDialog = LibStub("AceConfigDialog-3.0")
local ldbPlugin = ldb:NewDataObject("MplusLedger", {
type = "data source",
text = "0",
icon = "Interface\\ICONS\\INV_Relics_Hourglass... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Kazham/npcs/Mumupp.lua | 19 | 1873 | -----------------------------------
-- Area: Kazham
-- NPC: Mumupp
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
local path = {
94.732452, -15.000000, -114.034622,
94.210846, -15.000000, -114.989388,
... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.