repo_name stringlengths 6 69 | path stringlengths 6 178 | copies stringclasses 278
values | size stringlengths 4 7 | content stringlengths 671 917k | license stringclasses 15
values |
|---|---|---|---|---|---|
Armyluix/darkstar | scripts/zones/Mordion_Gaol/Zone.lua | 32 | 1433 | -----------------------------------
--
-- Zone: Mordion_Gaol
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Mordion_Gaol/TextIDs"] = nil;
require("scripts/zones/Mordion_Gaol/TextIDs");
-----------------------------------
-- onInitialize
-------... | gpl-3.0 |
TelewildV3/telewild | plugins/linkpv.lua | 107 | 31031 | 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 |
minin43/nzombies | gamemodes/nzombies/entities/effects/zombie_soul/init.lua | 2 | 1653 | function EFFECT:Init( data )
self.Start = data:GetOrigin()
self.Catcher = data:GetEntity()
self.ParticleDelay = 0.1
self.MoveSpeed = 50
self.DistToCatch = 100 -- Squared (10)
self.NextParticle = CurTime()
self.Emitter = ParticleEmitter( self.Start )
print(self.Emitter, self.NextParticle, self, self.Catch... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Windurst_Waters/npcs/Jourille.lua | 36 | 1569 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Jourille
-- Only sells when Windurst controlls Ronfaure Region
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Wind... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/spells/bluemagic/enervation.lua | 18 | 2037 | -----------------------------------------
-- Spell: Enervation
-- Lowers the defense and magical defense of enemies within range
-- Spell cost: 48 MP
-- Monster Type: Beastmen
-- Spell Type: Magical (Dark)
-- Blue Magic Points: 5
-- Stat Bonus: HP-5, MP+5
-- Level: 67
-- Casting Time: 6 seconds
-- Recast Time... | gpl-3.0 |
jebenexer/kong | spec/fixtures/shm-stub.lua | 11 | 1932 |
-- DICT Proxy
-- https://github.com/bsm/fakengx/blob/master/fakengx.lua
local SharedDict = {}
local function set(data, key, value)
data[key] = {
value = value,
info = {expired = false}
}
end
function SharedDict:new()
return setmetatable({data = {}}, {__index = self})
end
function SharedDict:get(key)
... | apache-2.0 |
abriasffxi/darkstar | scripts/globals/spells/blade_madrigal.lua | 27 | 1568 | -----------------------------------------
-- Spell: Blade Madrigal
-- Gives party members accuracy
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5fr.lua | 14 | 2656 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: South Plate
-- @pos 180 -34 -31 195
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Outer_Horutoto_Ruins/npcs/_5ej.lua | 17 | 3739 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Ancient Magical Gizmo #6 (J out of E, F, G, H, I, J)
-- Involved In Mission: The Heart of the Matter
-----------------------------------
package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
re... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/chocobo_digging.lua | 46 | 7397 | -- chocobo_digging.lua
require("scripts/globals/status");
require("scripts/globals/utils");
require("scripts/globals/settings");
-----------------------------------
-- DIG REQUIREMENTS
-----------------------------------
DIGREQ_NONE = 0;
DIGREQ_BURROW = 1;
DIGREQ_BORE = 2;
DIGREQ_MODIFIER = 4;
DIGREQ_NIGHT ... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Palborough_Mines/npcs/_3z7.lua | 58 | 1142 | -----------------------------------
-- Elevator in Palborough
-- Notes: Used to operate Elevator @3z0
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/settings");
re... | gpl-3.0 |
ElectroDuk/QuackWars | garrysmod/gamemodes/Basewars/entities(maybe_outdated)/weapons/weapon_doorcharge/cl_init.lua | 4 | 1481 | include('shared.lua')
SWEP.PrintName = "EXPLOSIVE CHARGE" // 'Nice' Weapon name (Shown on HUD)
SWEP.Slot = 4 // Slot in the weapon selection menu
SWEP.SlotPos = 1 // Position in the slot
SWEP.Ghost = NULL
// Override this in your SWEP to set the icon in the weapon selection
if (file.Exists... | mit |
dios-game/dios-cocos | src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/ClippingNode.lua | 3 | 4257 |
--------------------------------
-- @module ClippingNode
-- @extend Node
-- @parent_module cc
--------------------------------
-- If stencil has no childre it will not be drawn.<br>
-- If you have custom stencil-based node with stencil drawing mechanics other then children-based,<br>
-- then this method should retur... | mit |
Armyluix/darkstar | scripts/globals/icanheararainbow.lua | 29 | 7834 | -- Functions below used in quest: I Can Hear a Rainbow
require( "scripts/globals/status");
require( "scripts/globals/quests");
require( "scripts/globals/weather");
colorsAvailable = { 102, 103, 104, 105, 106, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 123, 124, 125}; -- Zone IDs
--... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/weaponskills/double_thrust.lua | 30 | 1320 | -----------------------------------
-- Double Thrust
-- Polearm weapon skill
-- Skill Level: 5
-- Delivers a two-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Light Gorget.
-- Aligned with the Light Belt.
-- Element: None
-- Modifiers: STR:30%
-- 100%TP 200%TP 3... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Toraimarai_Canal/npcs/_4pc.lua | 7 | 1861 | -----------------------------------
-- Area: Toraimarai Canal
-- NPC: Marble Door
-- Involved In Windurst Mission 7-1
-- @pos 132 12 -19 169 169
-----------------------------------
package.loaded["scripts/zones/Toraimarai_Canal/TextIDs"] = nil;
require("scripts/zones/Toraimarai_Canal/TextIDs");
-----------------------... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/items/loaf_of_homemade_bread.lua | 35 | 1131 | -----------------------------------------
-- ID: 5228
-- Item: loaf_of_homemade_bread
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Agility 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck... | gpl-3.0 |
ElectroDuk/QuackWars | garrysmod/gamemodes/Basewars14/entities/entities/hydroponics/init.lua | 1 | 2060 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include('shared.lua')
function ENT:SetupDataTables()
self:NetworkVar( "Float", 0, "Amount" );
self:NetworkVar( "String", 1, "Buyer");
end
function ENT:Initialize()
self.Entity:SetModel( self.Model )
self.Entity:PhysicsInit(SOLID_VPHYSICS)
self.Entity:SetMove... | mit |
erdincay/OSCeleton | liblo-0.26-modified/build/premake4.lua | 5 | 5326 | ----------------------------------------------------------------------
-- Premake4 configuration script for LibLo
-- Adapted from ODE's build script by Jason Perkins.
-- For more information on Premake: http://industriousone.com/premake
----------------------------------------------------------------------
-----... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Bastok_Mines/npcs/Wobke.lua | 14 | 1053 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Wobke
-- Type: Quest NPC
-- @zone 234
-- @pos 29.028 -0.126 -111.626
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scripts/zones... | gpl-3.0 |
mikewrock/phd_backup_full | src/panel/configuration_files/wrock_2d.lua | 1 | 3427 | -- Copyright 2016 The Cartographer Authors
--
-- 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... | apache-2.0 |
Armyluix/darkstar | scripts/zones/Windurst_Woods/npcs/Nhobi_Zalkia.lua | 30 | 1614 | -----------------------------------
-- Area: Windurst_Woods
-- NPC: Nhobi Zalkia
-- Only sells when Windurst controlls Kuzotz Region
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/events/harvest_festivals")
require("scripts/globals/shop");
require("scripts/g... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Pashhow_Marshlands/npcs/Luck_Rune.lua | 14 | 1069 | -----------------------------------
-- Area: Pashhow Marshlands
-- NPC: Luck Rune
-- Involved in Quest: Mhaura Fortune
-- @pos 573.245 24.999 199.560 109
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil;
-------------------------------------
require("scripts/zone... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Port_Windurst/npcs/Gold_Skull.lua | 17 | 2228 | -----------------------------------
-- Area: Port Windurst
-- NPC: Gold Skull
-- Mission NPC
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require(... | gpl-3.0 |
bravnsgaard/premake-core | modules/d/actions/gmake.lua | 1 | 9858 | --
-- d/actions/gmake.lua
-- Define the D makefile action(s).
-- Copyright (c) 2013-2015 Andrew Gough, Manu Evans, and the Premake project
--
local p = premake
local m = p.modules.d
m.make = {}
local dmake = m.make
local make = p.make
local cpp = p.make.cpp
local project = p.project
local config = p.config
... | bsd-3-clause |
abriasffxi/darkstar | scripts/globals/weaponskills/seraph_blade.lua | 23 | 1356 | -----------------------------------
-- Seraph Blade
-- Sword weapon skill
-- Skill Level: 125
-- Deals light elemental damage to enemy. Damage varies with TP.
-- Ignores shadows.
-- Aligned with the Soil Gorget.
-- Aligned with the Soil Belt.
-- Element: Light
-- Modifiers: STR:40% ; MND:40%
-- 100%TP 200%TP 300%... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Windurst_Woods/npcs/Wani_Casdohry.lua | 17 | 1310 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Wani Casdohry
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Windurst_Woods/TextIDs");
------------------... | gpl-3.0 |
xpol/luainstaller | lua/versions/luajit-2.0/src/jit/dis_arm.lua | 10 | 19345 | ----------------------------------------------------------------------------
-- LuaJIT ARM disassembler module.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | mit |
mohammadclashclash/hacker2011 | plugins/rss.lua | 700 | 5434 | local function get_base_redis(id, option, extra)
local ex = ''
if option ~= nil then
ex = ex .. ':' .. option
if extra ~= nil then
ex = ex .. ':' .. extra
end
end
return 'rss:' .. id .. ex
end
local function prot_url(url)
local url, h = string.gsub(url, "http://", "")
local... | gpl-2.0 |
abriasffxi/darkstar | scripts/zones/Bastok_Markets/npcs/Pavel.lua | 30 | 1775 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Pavel
-- Involved in Quest: Stamp Hunt
-- @pos -349.798 -10.002 -181.296 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
requi... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Upper_Jeuno/npcs/Rhea_Myuliah.lua | 14 | 2497 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Rhea Myuliah
-- Type: Standard NPC
-- @zone 244
-- @pos -56.220 -1 101.805
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/items/plate_of_flapanos_paella.lua | 36 | 1435 | -----------------------------------------
-- ID: 5975
-- Item: Plate of Flapano's Paella
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- HP 45
-- Vitality 6
-- Defense % 26 Cap 155
-- Undead Killer 6
-----------------------------------------
require("scripts/globals/status");
-----------... | gpl-3.0 |
starcms/packages-mod | net/prosody/files/prosody.cfg.lua | 147 | 7257 | -- Prosody Example Configuration File
--
-- Information on configuring Prosody can be found on our
-- website at http://prosody.im/doc/configure
--
-- Tip: You can check that the syntax of this file is correct
-- when you have finished by running: luac -p prosody.cfg.lua
-- If there are any errors, it will let you know... | gpl-2.0 |
abriasffxi/darkstar | scripts/zones/Castle_Oztroja/npcs/Kaa_Toru_the_Just.lua | 14 | 1655 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: Kaa Toru the Just
-- Type: Mission NPC [ Windurst Mission 6-2 NPC ]~
-- @pos -100.188 -62.125 145.422 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
dios-game/dios-cocos | src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/NavMeshObstacle.lua | 10 | 2763 |
--------------------------------
-- @module NavMeshObstacle
-- @extend Component
-- @parent_module cc
--------------------------------
--
-- @function [parent=#NavMeshObstacle] getSyncFlag
-- @param self
-- @return int#int ret (return value: int)
--------------------------------
--
-- @function [parent=#N... | mit |
abriasffxi/darkstar | scripts/zones/Southern_San_dOria/npcs/Aubejart.lua | 14 | 1489 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Aubejart
-- General Info NPC
-- @zone 230
-- @pos 3 -2 46
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria/TextI... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Upper_Jeuno/npcs/Coumuna.lua | 37 | 1325 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Coumuna
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
require("scripts/zones/Upper_Jeuno/TextIDs");
-----------------------------------
... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/items/nopales_salad_+1.lua | 18 | 1170 | -----------------------------------------
-- ID: 5702
-- Item: Nopales Salad +1
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- Strength 2
-- Agility 7
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
---... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Riverne-Site_B01/mobs/Nimbus_Hippogryph.lua | 23 | 1357 | -----------------------------------
-- Area: Riverne - Site B01
-- MOB: Nimbus Hippogryph
-- Note: Place holder Imdugud
-----------------------------------
require("scripts/zones/Riverne-Site_B01/MobIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
funct... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/items/dil.lua | 18 | 1304 | -----------------------------------------
-- ID: 5457
-- Item: Dil
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 4
-- Mind -6
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
--------------... | gpl-3.0 |
jbittel/Obsessed | main.lua | 1 | 1177 | --[[
----------------------------------------------------
obsessed - a card game of mystery and intrigue
----------------------------------------------------
Copyright (c) 2014 Jason Bittel <jason.bittel@gmail.com>
--]]
require 'lib.middleclass'
require 'button'
require 'util'
function love.load()
scre... | gpl-2.0 |
urueedi/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/proto_ahcp.lua | 84 | 2006 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local device, apn, service, pincode, username, password
local ipv6, maxwait, defaultroute, metric, peerdns, dns,
keepalive_failure, keepalive_interval, demand
mca = s:tabop... | apache-2.0 |
cubox-i/android_external_skia | tools/lua/skia.lua | 207 | 1863 | -- Experimental helpers for skia --
function string.startsWith(String,Start)
return string.sub(String,1,string.len(Start))==Start
end
function string.endsWith(String,End)
return End=='' or string.sub(String,-string.len(End))==End
end
Sk = {}
function Sk.isFinite(x)
return x * 0 == 0
end
----------------... | bsd-3-clause |
abriasffxi/darkstar | scripts/zones/Western_Adoulin/npcs/Porter_Moogle.lua | 14 | 1533 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- @zone 256
-- @pos TODO
-----------------------------------
package.loaded["scripts/zones/Western_Adoulin/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Western_Adoulin/T... | gpl-3.0 |
zozaiq/dev_zoza | libs/lua-redis.lua | 580 | 35599 | local redis = {
_VERSION = 'redis-lua 2.0.4',
_DESCRIPTION = 'A Lua client library for the redis key value storage system.',
_COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri',
}
-- The following line is used for backwards compatibility in order to keep the `Redis`
-- global module name. Using... | gpl-2.0 |
Armyluix/darkstar | scripts/globals/items/m&p_doner_kabob.lua | 36 | 1132 | -----------------------------------------
-- ID: 5717
-- Item: M&P Doner Kabob
-- Food Effect: 5Min, All Races
-----------------------------------------
-- HP 5%
-- MP 5%
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-------------... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/AlTaieu/npcs/Dimensional_Portal.lua | 15 | 1646 | -----------------------------------
-- Area: AlTaieu
-- NPC: Dimensional Portal
-----------------------------------
package.loaded["scripts/zones/AlTaieu/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/AlTaieu/TextIDs");
-----------------------------------
-- onTrade Action
--------------... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Beaucedine_Glacier/npcs/Akane_IM.lua | 28 | 3168 | -----------------------------------
-- Area: Beaucedine Glacier
-- NPC: Akane, I.M.
-- Type: Outpost Conquest Guards
-- @pos -24.351 -60.421 -114.215 111
-------------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier/TextIDs"] = nil;
-------------------------------------
require("scri... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Lufaise_Meadows/mobs/Splinterspine_Grukjuk.lua | 37 | 1181 | -----------------------------------
-- Area: Lufaise Meadows (24)
-- Mob: Splinterspine_Grukjuk
-----------------------------------
package.loaded["scripts/zones/Lufaise_Meadows/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scri... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Temenos/mobs/Goblin_Warlord.lua | 16 | 1189 | -----------------------------------
-- Area: Temenos N T
-- NPC: Goblin_Warlord
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-------------------------... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Kazham/npcs/Vanono.lua | 19 | 1423 | -----------------------------------
-- Area: Kazham
-- NPC: Vanono
-- Type: Standard NPC
-- @zone: 250
-- @pos -23.140 -5 -23.101
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
-------------------------------... | gpl-3.0 |
dios-game/dios-cocos | src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/FadeIn.lua | 11 | 1229 |
--------------------------------
-- @module FadeIn
-- @extend FadeTo
-- @parent_module cc
--------------------------------
-- js NA
-- @function [parent=#FadeIn] setReverseAction
-- @param self
-- @param #cc.FadeTo ac
-- @return FadeIn#FadeIn self (return value: cc.FadeIn)
--------------------------------
-... | mit |
Nyaa-tan/colony-sim-30 | lib/luigi/luigi/widget/stepper.lua | 3 | 2407 | --[[--
A stepper.
This widget is composed of two buttons and a content area.
Upon creation, this widget's children are moved into the
`items` attribute. The items are displayed one at a time in
the content area. Pressing the buttons cycles through the
item displayed in the content area.
@widget stepper
--]]--
return... | mpl-2.0 |
Armyluix/darkstar | scripts/globals/items/serving_of_salmon_roe.lua | 35 | 1341 | -----------------------------------------
-- ID: 5218
-- Item: serving_of_salmon_roe
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 8
-- Magic 8
-- Dexterity 2
-- Mind -1
-----------------------------------------
require("scripts/globals/status");
-------------------... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/RaKaznar_Inner_Court/Zone.lua | 32 | 1345 | -----------------------------------
--
-- Zone: Ra’Kanzar Inner Court (276)
--
-----------------------------------
package.loaded["scripts/zones/RaKaznar_Inner_Court/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/RaKaznar_Inner_Court/TextIDs");... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/FeiYin/npcs/qm1.lua | 17 | 1507 | -----------------------------------
-- Area: FeiYin
-- NPC: qm1 (???)
-- Involved In Quest: Pieuje's Decision
-- @pos -55 -16 69 204
-----------------------------------
package.loaded["scripts/zones/FeiYin/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scr... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/abilities/violent_flourish.lua | 26 | 3715 | -----------------------------------
-- Ability: Violent Flourish
-- Stuns target with a low rate of success. Requires one Finishing Move.
-- Obtained: Dancer Level 45
-- Finishing Moves Used: 1
-- Recast Time: 0:20
-- Duration: ??
-----------------------------------
require("scripts/globals/settings");
require("script... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/weaponskills/tachi_ageha.lua | 30 | 1716 | -----------------------------------
-- Tachi Ageha
-- Great Katana weapon skill
-- Skill Level: 300
-- Lowers target's defense. Chance of lowering target's defense varies with TP.
-- 30% Defense Down
-- Duration of effect is exactly 3 minutes.
-- Aligned with the Shadow Gorget, Soil Gorget.
-- Aligned with the ... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Abyssea-Tahrongi/npcs/qm11.lua | 14 | 1379 | -----------------------------------
-- Zone: Abyssea-Tahrongi
-- NPC: qm11 (???)
-- Spawns Muscaliet
-- @pos ? ? ? 45
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
--[... | gpl-3.0 |
kinbei/Lua-Code-Snippets | counted_table.lua | 3 | 1597 | local function CountedTable(x)
assert(type(x) == 'table', 'bad parameter #1: must be table')
local new_t = {}
local mt = {}
-- `all` will represent the number of both
local all = 0
for k, v in pairs(x) do
all = all + 1
end
mt.__newindex = function(t, k, v)
... | mit |
Nyaa-tan/colony-sim-30 | lib/luigi/utf8.lua | 3 | 9168 | -- modified for partial compatibility with Lua 5.3
--utf8 module (Cosmin Apreutesei, public domain).
--byte indices are i's, char (codepoint) indices are ci's.
--invalid characters are counted as 1-byte chars so they don't get lost. validate/sanitize beforehand as needed.
local utf8 = {}
--byte index of the next cha... | mpl-2.0 |
Vamic/waifu2x | lib/image_loader.lua | 32 | 2887 | local gm = require 'graphicsmagick'
local ffi = require 'ffi'
require 'pl'
local image_loader = {}
function image_loader.decode_float(blob)
local im, alpha = image_loader.decode_byte(blob)
if im then
im = im:float():div(255)
end
return im, alpha
end
function image_loader.encode_png(rgb, alpha)
if... | mit |
abriasffxi/darkstar | scripts/zones/Abyssea-Altepa/npcs/qm7.lua | 14 | 1340 | -----------------------------------
-- Zone: Abyssea-Altepa
-- NPC: qm7 (???)
-- Spawns Waugyl
-- @pos ? ? ? 218
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
--[[
... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/spells/dragonfoe_mambo.lua | 27 | 1611 | -----------------------------------------
-- Spell: Dragonfoe Mambo
-- Grants evasion bonus to all members.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(cast... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Garlaige_Citadel/npcs/qm1.lua | 17 | 1630 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: qm1 (???)
-- Involved In Quest: Altana's Sorrow
-- @pos -282.339 0.001 261.707 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("scripts/glo... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/weaponskills/blade_chi.lua | 30 | 1380 | -----------------------------------
-- Blade Chi
-- Katana weapon skill
-- Skill Level: 150
-- Delivers a two-hit earth elemental attack. Damage varies with TP.
-- Aligned with the Thunder Gorget & Light Gorget.
-- Aligned with the Thunder Belt & Light Belt.
-- Element: Earth
-- Modifiers: STR:30% ; INT:30%
--... | gpl-3.0 |
imrandomizer/Algorithm-Implementations | Negamax/Lua/Yonaba/negamax_test.lua | 26 | 1129 | -- Tests for alpha_beta_pruning.lua
local negamax = require 'negamax'
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 ... | mit |
Armyluix/darkstar | scripts/zones/RuLude_Gardens/npcs/Harith.lua | 19 | 3201 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Harith
-- Type: Standard NPC
-- @pos -4.349 1 134.014 243
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globa... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/mobskills/Mow.lua | 25 | 1073 | ---------------------------------------------
-- Mow
--
-- Description: Deals damage in an area of effect. Additional effect: Poison
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range: Unknown radial
-- Notes: Poison can take around 10HP/tick
---------------------------------------------
re... | gpl-3.0 |
sum2012/mame | 3rdparty/genie/src/base/tree.lua | 22 | 5157 | --
-- tree.lua
-- Functions for working with the source code tree.
-- Copyright (c) 2009 Jason Perkins and the Premake project
--
premake.tree = { }
local tree = premake.tree
--
-- Create a new tree.
--
-- @param n
-- The name of the tree, applied to the root node (optional).
--
function premake.tree.new(n)
... | gpl-2.0 |
abriasffxi/darkstar | scripts/zones/Marjami_Ravine/Zone.lua | 17 | 1221 | -----------------------------------
--
-- Zone: Marjami Ravine
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Marjami_Ravine/TextIDs"] = nil;
require("scripts/zones/Marjami_Ravine/TextIDs");
-----------------------------------
-- onInitialize
-------------... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Jugner_Forest/npcs/Cavernous_Maw_2.lua | 29 | 1957 | -----------------------------------
-- Area: Jugner Forest
-- NPC: Cavernous Maw
-- @pos 246.318, -0.709, 5.706 104
-- Teleports Players to Abyssea - Vunkerl
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil;
-----------------------------------
require("scripts/g... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Abyssea-Tahrongi/npcs/Cavernous_Maw.lua | 29 | 1190 | -----------------------------------
-- Area: Abyssea - Tahrongi
-- NPC: Cavernous Maw
-- @pos -31.000, 47.000, -681.000 45
-- Teleports Players to Tahrongi Canyon
-----------------------------------
package.loaded["scripts/zones/Abyssea-Tahrongi/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Ilrusi_Atoll/npcs/Ancient_Lockbox.lua | 14 | 1179 | -----------------------------------
-- Area:
-- NPC: ancient lockbox
-- @zone illrusi atoll
-- @pos
-----------------------------------
package.loaded["scripts/zones/Ilrusi_Atoll/TextIDs"] = nil;
package.loaded["scripts/globals/bcnm"] = nil;
-------------------------------------
require("scripts/globals/bcnm");
requ... | gpl-3.0 |
sum2012/mame | 3rdparty/genie/tests/baking/test_merging.lua | 57 | 2096 | --
-- tests/baking/test_merging.lua
-- Verifies different field types are merged properly during baking.
-- Copyright (c) 2011 Jason Perkins and the Premake project
--
T.baking_merging = { }
local suite = T.baking_merging
--
-- Setup code
--
local sln, prj, cfg
function suite.setup()
sln = solution "MySolution... | gpl-2.0 |
Armyluix/darkstar | scripts/globals/abilities/elemental_siphon.lua | 11 | 2885 | -----------------------------------
-- Ability: Elemental Siphon
-- Drains MP from your summoned spirit.
-- Obtained: Summoner level 50
-- Recast Time: 5:00
-- Duration: Instant
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Valkurm_Dunes/npcs/Swirling_Vortex.lua | 14 | 1353 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: Swirling Vortex
-- Entrance to Lufaise Meadows
-- @pos 420.057 0.000 -199.905 103
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/tele... | gpl-3.0 |
rigeirani/oto | plugins/urbandictionary.lua | 16 | 1309 | local command = 'urbandictionary <query>'
local doc = [[```
/urbandictionary <query>
Returns a definition from Urban Dictionary.
Aliases: /ud, /urban
```]]
local triggers = {
'^/urbandictionary[@'..bot.username..']*',
'^/ud[@'..bot.username..']*$',
'^/ud[@'..bot.username..']* ',
'^/urban[@'..bot.username..']*'
}
... | gpl-2.0 |
deniz1a/OpenRA | mods/ra/maps/soviet-05/AI.lua | 26 | 4192 | IdleHunt = function(unit) if not unit.IsDead then Trigger.OnIdle(unit, unit.Hunt) end end
IdlingUnits = function()
local lazyUnits = Map.ActorsInBox(NWIdlePoint.CenterPosition, Map.BottomRight, function(actor)
return actor.HasProperty("Hunt") and (actor.Owner == GoodGuy or actor.Owner == Greece) end)
Utils.Do(laz... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/items/prime_beef_stewpot.lua | 18 | 1971 | -----------------------------------------
-- ID: 5548
-- Item: Prime Beef Stewpot
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% Cap 75
-- MP +15
-- Strength +2
-- Agility +1
-- Mind +1
-- HP Recovered while healing +7
-- MP Recovered while healing +2
-- Atta... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/items/san_dorian_carrot.lua | 35 | 1200 | -----------------------------------------
-- ID: 4389
-- Item: san_dorian_carrot
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility 2
-- Vitality -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- O... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Outer_RaKaznar/npcs/Liseran_Door_Exit.lua | 17 | 1227 | -----------------------------------
-- Area: Outer Ra'Kaznar
-- NPC: Liseran Door Exit
-- Zones out to Kamihr Drifts (zone 267)
-- @zone 274
-- @pos -34.549 -181.334 -20.031
-----------------------------------
package.loaded["scripts/zones/Outer_RaKaznar/TextIDs"] = nil;
-----------------------------------
r... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Hall_of_Transference/npcs/_0e0.lua | 32 | 1340 | -----------------------------------
-- Area: Hall of Transference
-- NPC: Cermet Gate - Holla
-- @pos -219 -6 280 14
-----------------------------------
package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/H... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/effects/addendum_black.lua | 74 | 1952 | -----------------------------------
--
--
--
-----------------------------------
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:recalculateAbilitiesTable();
local bonus = effect:getPower();
local helix = effect... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/The_Garden_of_RuHmet/mobs/Kf_ghrah_whm.lua | 23 | 1894 | -----------------------------------
-- Area: Grand Palace of Hu'Xzoi
-- MOB: Kf'ghrah WHM
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic"); -- no spells are currently set due to lack of info
-----------------------------------
-- onMobSpawn
-- Set core Skin and m... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/East_Ronfaure/TextIDs.lua | 9 | 1413 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6393; -- You cannot obtain the item <item> come back again after sorting your inventory.
ITEM_OBTAINED = 6398; -- Obtained: <item>.
GIL_OBTAINED = 6399; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6401; -- Obt... | gpl-3.0 |
dios-game/dios-cocos | src/apps/lua-tests/Resources/src/ActionManagerTest/ActionManagerTest.lua | 16 | 6352 | local kTagNode = 0
local kTagGrossini = 1
local kTagSequence = 2
local scheduler = cc.Director:getInstance():getScheduler()
--------------------------------------------------------------------
--
-- Test1
--
--------------------------------------------------------------------
local function CrashTest()
... | mit |
CryTek-Team/CryTek | plugins/plugins.lua | 2 | 5893 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-3.0 |
uspgamedev/backdoor | game/resources/tileset.lua | 1 | 1328 |
local SCHEMATICS = require 'domain.definitions.schematics'
local TileSet = {}
local _cache = {}
local function _initTileset(info, texture)
local g = love.graphics -- luacheck: globals love
local w, h = texture:getDimensions()
local mapping = info.mapping
local quads = {}
local offsets = {}
local weights =... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Bastok_Mines/npcs/Vaghron.lua | 38 | 1396 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Vaghron
-- Type: Adventurer's Assistant
-- @pos -39.162 -1 -92.147 234
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("s... | gpl-3.0 |
imrandomizer/Algorithm-Implementations | Sudoku/Lua/Yonaba/sudoku.lua | 26 | 2101 | -- Sudoku solver implementation
-- Uses Backtracking and recursion
-- See : http://en.wikipedia.org/wiki/Sudoku
-- Checks if num exists on a row
local function rowHasNotNum(sudoku, row, num)
for column = 1,9 do
if sudoku[row][column] == num then
return false
end
end
return true
end
-- Checks if nu... | mit |
abriasffxi/darkstar | scripts/zones/Apollyon/npcs/Radiant_Aureole.lua | 13 | 6358 | -----------------------------------
-- Area: Appolyon
-- NPC: Radiant_Aureole
-- @pos
-----------------------------------
require("scripts/globals/limbus");
require("scripts/globals/keyitems");
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Apollyon... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Cloister_of_Frost/bcnms/sugar-coated_directive.lua | 19 | 1726 | ----------------------------------------
-- Area: Cloister of Frost
-- BCNM: Sugar Coated Directive (ASA-4)
-- @pos -721 0 -598 207
----------------------------------------
package.loaded["scripts/zones/Cloister_of_Frost/TextIDs"] = nil;
----------------------------------------
require("scripts/globals/keyitems");
req... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/abilities/pets/healing_breath_iii.lua | 18 | 1884 | ---------------------------------------------------
-- Healing Breath III
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
function onAbi... | gpl-3.0 |
mohammadclashclash/hacker2011 | plugins/search_youtube.lua | 674 | 1270 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
mynameiscraziu/crazy | plugins/search_youtube.lua | 674 | 1270 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
abriasffxi/darkstar | scripts/zones/Southern_San_dOria/npcs/Machielle.lua | 17 | 1881 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Machielle
-- Only sells when Bastok controls Norvallen Region
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria/TextI... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Southern_San_dOria/npcs/Femitte.lua | 17 | 3110 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Femitte
-- Involved in Quest: Lure of the Wildcat (San d'Oria), Distant Loyalties
-- @pos -17 2 10 230
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
----------------------------... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Abyssea-Attohwa/npcs/Cavernous_Maw.lua | 29 | 1199 | -----------------------------------
-- Area: Abyssea - Attohwa
-- NPC: Cavernous Maw
-- @pos -133.197 20.242 -181.658 215
-- Notes: Teleports Players to Buburimu Peninsula
-----------------------------------
package.loaded["scripts/zones/Abyssea-Attohwa/TextIDs"] = nil;
-----------------------------------
require("sc... | gpl-3.0 |
Nyaa-tan/colony-sim-30 | lib/luigi/mosaic.lua | 3 | 3057 | --[[--
Mosiac, drawable class for 9-slice images.
@classmod Mosiac
--]]--
local ROOT = (...):gsub('[^.]*$', '')
local Backend = require(ROOT .. 'backend')
local Base = require(ROOT .. 'base')
local Mosaic = Base:extend()
local imageCache = {}
local sliceCache = {}
local function loadImage (path)
if not imageCa... | mpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.