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 |
|---|---|---|---|---|---|
abriasffxi/darkstar | scripts/zones/Kazham/npcs/Lulupp.lua | 14 | 6017 | -----------------------------------
-- Area: Kazham
-- NPC: Lulupp
-- Type: Standard NPC
-- @zone 250
-- @pos -26.567 -3.5 -3.544
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/globals/pathfind");
local path = {
-27.457125, -3.043032, -22.057966,
-27.3734... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/items/serving_of_vermillion_jelly.lua | 35 | 1448 | -----------------------------------------
-- ID: 5158
-- Item: Vermillion Jelly
-- Food Effect: 4 hours, All Races
-----------------------------------------
-- MP +12%(Cap: 90@750 Base MP)
-- Intelligence +6
-- MP Recovered While Healing +2
-----------------------------------------
require("scripts/globals/s... | gpl-3.0 |
ElectroDuk/QuackWars | garrysmod/gamemodes/Basewars/entities(maybe_outdated)/entities/worldslayer/init.lua | 2 | 7096 | /* ======================================
worldslayer
the big bomb nade round
====================================== */
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
function ENT:SpawnFunction( ply, tr )
if ( !tr.Hit ) then return end
local SpawnPos = tr.HitPos + tr.HitNor... | mit |
abriasffxi/darkstar | scripts/zones/Abyssea-Altepa/mobs/Rani.lua | 17 | 1277 | -----------------------------------
-- Area: Abyssea - Altepa
-- Mob: Rani
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/titles");
-----------------------------------
-- onMobInitialize
-----------------------------------
function onMobInitialize(mob)
end;
---------... | gpl-3.0 |
HotelCalifornia/oredictCC | src/api/java/assets/computercraft/lua/bios.lua | 1 | 16377 |
--[[
-- Install safe versions of various library functions
-- These will not put cfunctions on the stack, so don't break serialisation
xpcall = function( _fn, _fnErrorHandler )
local typeT = type( _fn )
assert( typeT == "function", "bad argument #1 to xpcall (function expected, got "..typeT..")" )
local co... | lgpl-2.1 |
Zokormazo/openwrt-packages | net/luci-app-clamav/files/model/cbi/clamav-cbi.lua | 100 | 6776 | --[[
LuCI ClamAV module
Copyright (C) 2015, Itus Networks, Inc.
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
Author: Marko Ratkaj <marko.ratkaj@sar... | gpl-2.0 |
Armyluix/darkstar | scripts/zones/Lower_Delkfutts_Tower/npcs/_544.lua | 17 | 1670 | -----------------------------------
-- Area: Lower Delkfutt's Tower
-- NPC: Cermet Door
-- Notes: Door opens when you trade Delkfutt Key to it
-- @pos 345 0.1 20 184
-----------------------------------
package.loaded["scripts/zones/Lower_Delkfutts_Tower/TextIDs"] = nil;
-----------------------------------
... | gpl-3.0 |
mohammadclashclash/hacker2011 | plugins/id.lua | 226 | 4260 | 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..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
local function returnids(cb_extra, success, result)
local re... | gpl-2.0 |
TyKonKet/FS17_FuelUsageDisplay | src/extensions/Cylindered.lua | 1 | 2928 | --
-- Better Fuel Usage
--
-- @author TyKonKet
-- @date 29/03/2017
function Cylindered:postPostLoad(savegame)
if not self.mrIsMrVehicle then
self.getConsumedPtoTorque = Utils.overwrittenFunction(self.getConsumedPtoTorque, Cylindered.getConsumedPtoTorque)
self.getPtoRpm = Utils.overwrittenFunction(se... | gpl-3.0 |
ifreedom/lgob | codegen/bin/update-version.lua | 1 | 4272 | #!/usr/bin/env lua
--[[
Reads function versions (since and deprecated) from a ".devhelp2" XML, and
updates .def files.
Usage: ./update lib.devhelp2 < lib.def > libfunctions.def
@author Hans Elbers
]]
require("lxp")
require("lgob.utils")
local debugi = true
local baseVersion = '0.1'
local function pr(fmt, ...... | lgpl-3.0 |
abriasffxi/darkstar | scripts/zones/Wajaom_Woodlands/mobs/Hydra.lua | 20 | 1298 | -----------------------------------
-- Area: Wajaom Woodlands
-- MOB: Hydra
-- @pos -282 -24 -1 51
-----------------------------------
require("scripts/globals/titles");
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
end;
function onMobFight(mo... | gpl-3.0 |
mahdib9/m1 | plugins/minecraft.lua | 624 | 2605 | local usage = {
"!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565",
"!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.",
}
local ltn12 = require "ltn12"
local function mineSearch(ip, port, receiver) --25565
local responseText = ""
l... | gpl-2.0 |
ElectroDuk/QuackWars | garrysmod/gamemodes/Basewars/entities(maybe_outdated)/effects/inflator_magic/init.lua | 2 | 1299 |
/*---------------------------------------------------------
Initializes the effect. The data is a table of data
which was passed from the server.
---------------------------------------------------------*/
function EFFECT:Init( data )
local vOffset = data:GetOrigin()
local NumParticles = 16
local emitt... | mit |
dios-game/dios-cocos | src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/LayerGradient.lua | 11 | 5089 |
--------------------------------
-- @module LayerGradient
-- @extend LayerColor
-- @parent_module cc
--------------------------------
-- Returns the start color of the gradient.<br>
-- return The start color.
-- @function [parent=#LayerGradient] getStartColor
-- @param self
-- @return color3b_table#color3b_table re... | mit |
abriasffxi/darkstar | scripts/zones/Abyssea-Vunkerl/Zone.lua | 33 | 1491 | -----------------------------------
--
-- Zone: Abyssea - Vunkerl
--
-----------------------------------
package.loaded["scripts/zones/Abyssea-Vunkerl/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/zones/Abyssea-Vunkerl/Te... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/RuAun_Gardens/npcs/qm1.lua | 16 | 1435 | -----------------------------------
-- Area: Ru'Aun Gardens
-- NPC: ??? (Genbu's Spawn)
-- Allows players to spawn the HNM Genbu with a Gem of the North and a Winterstone.
-- @pos 257 -70 517 130
-----------------------------------
package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil;
-------------------... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Kazham/npcs/Mijeh_Sholpoilo.lua | 15 | 1102 | -----------------------------------
-- Area: Kazham
-- NPC: Mijeh Sholpoilo
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
-------------------------... | gpl-3.0 |
CryTek-Team/CryTek | plugins/cpu.lua | 244 | 1893 | function run_sh(msg)
name = get_name(msg)
text = ''
-- if config.sh_enabled == false then
-- text = '!sh command is disabled'
-- else
-- if is_sudo(msg) then
-- bash = msg.text:sub(4,-1)
-- text = run_bash(bash)
-- else
-- text = name .. ' you... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/items/plate_of_shrimp_sushi.lua | 18 | 1544 | -----------------------------------------
-- ID: 5691
-- Item: plate_of_shrimp_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Vitality 1
-- Defense 5
-- Accuracy % 11
-- Store TP 2
-- Triple Attack 1
-----------------------------------------
require("scripts/globals/status");
----... | gpl-3.0 |
imrandomizer/Algorithm-Implementations | Rabin_Karp/Lua/Yonaba/rabin_karp.lua | 26 | 1376 | -- Rabin-Karp string searching algorithm implementation
-- See: http://en.wikipedia.org/wiki/Rabin%E2%80%93Karp_string_search_algorithm
-- Note: This implementation is based on the Python implementation of Shivam Bansal
-- See : https://github.com/kennyledet/Algorithm-Implementations/blob/master/Rabin_Karp/Python/shiv... | mit |
abriasffxi/darkstar | scripts/globals/abilities/jump.lua | 14 | 2211 | -----------------------------------
-- Ability: Jump
-- Delivers a short jumping attack on a targeted enemy.
-- Obtained: Dragoon Level 10
-- Recast Time: 1:00
-- Duration: Instant
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/weapo... | gpl-3.0 |
ifreedom/lgob | examples/Editor.lua | 1 | 10432 | #! /usr/bin/env lua
require("lgob.gtkspell")
require("lgob.gdk")
---
-- Simple text editor.
Editor = {}
local __BACK, __FORWARD, __CLOSE = 0, 1, 2
---
-- Constructor
--
-- @return A new Editor instance
function Editor.new()
local self = {}
setmetatable(self, {__index = Editor})
self.window = gtk.Window.new()
se... | lgpl-3.0 |
dios-game/dios-cocos | src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/Properties.lua | 11 | 14144 |
--------------------------------
-- @module Properties
-- @parent_module cc
--------------------------------
-- Returns the value of a variable that is set in this Properties object.<br>
-- Variables take on the format ${name} and are inherited from parent Property objects.<br>
-- param name Name of the variable to g... | mit |
abriasffxi/darkstar | scripts/zones/Mount_Zhayolm/mobs/Sarameya.lua | 20 | 3674 | -----------------------------------
-- Area: Mount Zhayolm
-- MOB: Sarameya
-- @pos 322 -14 -581 61
-- Spawned with Buffalo Corpse: @additem 2583
-- Wiki: http://ffxiclopedia.wikia.com/wiki/Sarameya
-- TODO: PostAIRewrite: Code the Howl effect and gradual resists.
-----------------------------------
require("scripts/... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/mobskills/Dragon_Breath.lua | 34 | 1375 | ---------------------------------------------
-- Dragon Breath
--
-- Description: Deals Fire damage to enemies within a fan-shaped area.
-- Type: Breath
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Unknown cone
-- Notes: Used only by Fafnir, Nidhogg, Cynoprosopi, and Wyrm. Because of the high damage output... | gpl-3.0 |
minin43/nzombies | gamemodes/nzombies/entities/entities/nz_zombie_special_dog.lua | 2 | 8315 | AddCSLuaFile()
ENT.Base = "nz_zombiebase"
ENT.PrintName = "Hellhound"
ENT.Category = "Brainz"
ENT.Author = "Lolle"
--ENT.Models = { "models/boz/killmeplease.mdl" }
ENT.Models = { "models/nz_zombie/zombie_hellhound.mdl" }
ENT.AttackRange = 80
ENT.DamageLow = 20
ENT.DamageHigh = 35
ENT.AttackSequences = {
{seq = "nz... | gpl-3.0 |
dios-game/dios-cocos | src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/Material.lua | 9 | 3797 |
--------------------------------
-- @module Material
-- @extend RenderState
-- @parent_module cc
--------------------------------
-- returns a clone (deep-copy) of the material
-- @function [parent=#Material] clone
-- @param self
-- @return Material#Material ret (return value: cc.Material)
---------------... | mit |
dios-game/dios-cocos | src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/CardinalSplineTo.lua | 18 | 2195 |
--------------------------------
-- @module CardinalSplineTo
-- @extend ActionInterval
-- @parent_module cc
--------------------------------
-- Return a PointArray.<br>
-- return A PointArray.
-- @function [parent=#CardinalSplineTo] getPoints
-- @param self
-- @return point_table#point_table ret (return value: poin... | mit |
wyozi/wmc-plus | lua/wmcp/sh_permissions.lua | 1 | 1966 | local checkPerm
if CAMI then
CAMI.RegisterPrivilege {
Name = "wmcp_playglobal",
Description = "Play songs for every player.",
MinAccess = "admin"
}
CAMI.RegisterPrivilege {
Name = "wmcp_add",
Description = "Add new songs to the global playlist",
MinAccess = "admin"
}
CAMI.RegisterPrivilege {
Name = ... | mit |
ElectroDuk/QuackWars | garrysmod/gamemodes/Basewars/entities(maybe_outdated)/entities/ent_mad_knife/init.lua | 2 | 3812 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include('shared.lua')
/*---------------------------------------------------------
Name: ENT:Initialize()
---------------------------------------------------------*/
function ENT:Initialize()
self:SetModel("models/weapons/w_knife_t.mdl")
self:PhysicsInit(SO... | mit |
abriasffxi/darkstar | scripts/zones/Al_Zahbi/npcs/Ugahar.lua | 14 | 1033 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Ugahar
-- Type: Standard NPC
-- @zone 48
-- @pos 52.262 -1 123.185
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-------------------------------... | gpl-3.0 |
bitfinder/thrift | lib/lua/TBinaryProtocol.lua | 90 | 6141 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... | apache-2.0 |
Armyluix/darkstar | scripts/globals/spells/bluemagic/asuran_claws.lua | 28 | 1798 | -----------------------------------------
-- Spell: Asuran Claws
-- Delivers a sixfold attack. Accuracy varies with TP
-- Spell cost: 81 MP
-- Monster Type: Beasts
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 2
-- Stat Bonus: AGI +3
-- Level: 70
-- Casting Time: 3 seconds
-- Recast Time: 60 seconds
... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Behemoths_Dominion/npcs/qm2.lua | 14 | 2238 | -----------------------------------
-- Area: Behemoth's Dominion
-- NPC: qm2 (???)
-- Spawns Behemoth or King Behemoth
-- @pos -267 -19 74 127
-----------------------------------
package.loaded["scripts/zones/Behemoths_Dominion/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Behemoths_Domin... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Apollyon/mobs/Barometz.lua | 17 | 1394 | -----------------------------------
-- Area: Apollyon NE
-- NPC: Barometz
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
---------------------------------... | gpl-3.0 |
ElectroDuk/QuackWars | garrysmod/addons/ulx/lua/ulx/modules/sh/rcon.lua | 2 | 4125 | -- This module holds any type of remote execution functions (IE, 'dangerous')
local CATEGORY_NAME = "Rcon"
function ulx.rcon( calling_ply, command )
ULib.consoleCommand( command .. "\n" )
ulx.fancyLogAdmin( calling_ply, true, "#A ran rcon command: #s", command )
end
local rcon = ulx.command( CATEGORY_NAME, "ulx rco... | mit |
Armyluix/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Zyfhil.lua | 34 | 1031 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Zyfhil
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
-----------... | gpl-3.0 |
wmetcalf/ironbee | lua/example.lua | 1 | 16604 | -- =========================================================================
-- =========================================================================
-- Licensed to Qualys, Inc. (QUALYS) under one or more
-- contributor license agreements. See the NOTICE file distributed with
-- this work for additional informatio... | apache-2.0 |
abriasffxi/darkstar | scripts/zones/Northern_San_dOria/npcs/Ishwar.lua | 14 | 1035 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Ishwar
-- Type: Standard Dialogue NPC
-- @zone 231
-- @pos -47.103 -1.999 -19.582
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs");
-... | gpl-3.0 |
daurnimator/lredis | lredis/commands.lua | 1 | 1583 | local methods = {}
function methods:call(...)
local resp = self:pcall(...)
local is_table = type(resp) == "table"
if is_table and resp.err then
error(resp.err, 2)
end
return resp
end
local function handle_ok_or_err(resp, lvl)
local is_table = type(resp) == "table"
if is_table and resp.ok then
return resp.o... | mit |
abriasffxi/darkstar | scripts/zones/Gustav_Tunnel/MobIDs.lua | 28 | 1592 | -----------------------------------
-- Area: Gustav Tunnel (212)
-- Comments: -- posX, posY, posZ
-- (Taken from 'mob_spawn_points' table)
-----------------------------------
Goblinsavior_Heronox = 17645609;
Goblinsavior_Heronox_PH =
{
[17645592] = '1', -- 153.000, -10.000, -53.000
[17645605] = '1', -- 152.325... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Beaucedine_Glacier/npcs/relic.lua | 14 | 1882 | -----------------------------------
-- Area: Beaucedine Glacier
-- NPC: <this space intentionally left blank>
-- @pos -89 0 -374 111
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Beaucedine_Glacier/TextI... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Xarcabard/npcs/qm2.lua | 17 | 1637 | -----------------------------------
-- Area: Xarcabard
-- NPC: qm2 (???)
-- Involved in Quests: Atop the Highest Mountains (for Boreal Tiger)
-- @pos 341 -29 370 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scrip... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Upper_Jeuno/npcs/Laila.lua | 18 | 3782 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Laila
-- Type: Job Quest Giver
-- @zone: 244
-- @pos -54.045 -1 100.996
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
package.loaded["scrip... | gpl-3.0 |
bravnsgaard/premake-core | tests/actions/make/cpp/test_wiidev.lua | 15 | 1183 | --
-- tests/actions/make/cpp/test_wiidev.lua
-- Tests for Wii homebrew support in makefiles.
-- Copyright (c) 2011-2013 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("make_wiidev")
local make = p.make
local project = p.project
--
-- Setup
--
local cfg
function suite.se... | bsd-3-clause |
ptown2/GLMVS | lua/gamemodes/gm_deathrun.lua | 1 | 1158 | local GAME = {}
GAME.ID = "deathrun"
GAME.Name = "Deathrun"
GAME.MapPrefix = {"dr"}
GAME.MapFileDB = "map_deathrun.txt"
GAME.HookRound = "OnRoundSet"
GAME.RoundsLeft = 0
function GAME:OnInitialize()
self.RoundsLeft = GetConVar("dr_total_rounds"):GetInt() or 0
function RTV.Start() end
function RTV.ChangeMap() ... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Temenos/mobs/Temenos_Aern.lua | 19 | 2374 | -----------------------------------
-- Area: Temenos
-- NPC: Temenos_Aern
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------------------------------
-... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Windurst_Walls/Zone.lua | 28 | 2946 | -----------------------------------
--
-- Zone: Windurst_Walls (239)
--
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/keyitems");
require("scripts/globals/settin... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Port_Windurst/npcs/Martin.lua | 30 | 1273 | -----------------------------------
-- Area: Port Windurst
-- NPC: Martin
-- Type: Standard NPC
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts/zones/Port_Windurst/TextIDs");
-----------------------------------
-- onTrade Action
------------------... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/items/prized_seafood_stewpot.lua | 36 | 1865 | -----------------------------------------
-- ID: 5240
-- Item: Prized Seafood Stewpot
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% Cap 100
-- MP +20
-- Dexterity 2
-- Vitality 2
-- Agility 2
-- Mind 2
-- HP Recovered while healing 9
-- MP Recovered while he... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/abilities/rogues_roll.lua | 19 | 2643 | -----------------------------------
-- Ability: Rogue's Roll
-- Improves critical hit rate for party members within area of effect
-- Optimal Job: Thief
-- Lucky Number: 5
-- Unlucky Number: 9
-- Level: 43
--
-- Die Roll |No THF |With THF
-- -------- ------- -----------
-- 1 |2% |8%
-- 2 ... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/The_Boyahda_Tree/npcs/HomePoint#1.lua | 27 | 1273 | -----------------------------------
-- Area: The Boyahda Tree
-- NPC: HomePoint#1
-- @pos 88 -15 -217 153
-----------------------------------
package.loaded["scripts/zones/The_Boyahda_Tree/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/The_Boyahda_Tree/TextIDs");
require("scripts/global... | gpl-3.0 |
minin43/nzombies | gamemodes/nzombies/gamemode/round/sv_player.lua | 2 | 3850 | local plyMeta = FindMetaTable( "Player" )
function plyMeta:ReadyUp()
if !navmesh.IsLoaded() then
PrintMessage( HUD_PRINTTALK, "Can't ready you up, because the map has not Navmesh loaded. Use the settings menu to generate a rough Navmesh or use tools in sandbox to make a proper one.")
return false
end
if nzMap... | gpl-3.0 |
ueser/FIDDLE | _deprecated/TORCHmodels/getData.lua | 2 | 5249 | require 'hdf5';
require 'torch'
require 'nn'
-- Some functions
function smoothData(dat,nw)
local nw = nw or 50
sz = dat:size()
newdat = dat:clone()
for w = nw/2+1,sz[4]-nw/2 do
newdat[{{},{},{},{w}}]=dat[{{},{},{},{w-nw/2,w+nw/2}}]:mean(4)
end
return newdat
end
function globalNormData(dat, mn, sd)
... | gpl-3.0 |
jebenexer/kong | kong/conf_loader.lua | 1 | 18897 | local kong_default_conf = require "kong.templates.kong_defaults"
local pl_stringio = require "pl.stringio"
local pl_stringx = require "pl.stringx"
local constants = require "kong.constants"
local pl_pretty = require "pl.pretty"
local pl_config = require "pl.config"
local pl_file = require "pl.file"
local pl_path = requ... | apache-2.0 |
Armyluix/darkstar | scripts/globals/items/wizard_cookie.lua | 35 | 1345 | -----------------------------------------
-- ID: 4576
-- Item: wizard_cookie
-- Food Effect: 5Min, All Races
-----------------------------------------
-- MP Recovered While Healing 7
-- Plantoid Killer 7
-- Slow Resist 7
-----------------------------------------
require("scripts/globals/status");
--------... | gpl-3.0 |
cyberix3d/Cyberix3D | Source/ThirdParty/LuaJIT/dynasm/dasm_arm.lua | 33 | 34598 | ------------------------------------------------------------------------------
-- DynASM ARM module.
--
-- Copyright (C) 2005-2016 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _in... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/The_Sanctuary_of_ZiTah/npcs/qm2.lua | 17 | 1840 | -----------------------------------
-- Area: The Sanctuary of ZiTah
-- NPC: qm2 (???)
-- Involved in Quest: Forge Your Destiny
-- @pos 639 -1 -151 121
-----------------------------------
package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Apollyon/mobs/Thunder_Elemental.lua | 119 | 2740 | -----------------------------------
-- Area: Apollyon SW
-- NPC: elemental
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
-----------------------------------
... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Apollyon/mobs/Ice_Elemental.lua | 119 | 2740 | -----------------------------------
-- Area: Apollyon SW
-- NPC: elemental
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
-----------------------------------
... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Metalworks/npcs/Grohm.lua | 14 | 3042 | -----------------------------------
-- Area: Metalworks
-- NPC: Grohm
-- Involved In Mission: Journey Abroad
-- @pos -18 -11 -27 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/z... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/La_Theine_Plateau/npcs/Deaufrain.lua | 14 | 2537 | -----------------------------------
-- 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/missions")... | gpl-3.0 |
ElectroDuk/QuackWars | garrysmod/gamemodes/Basewars/entities(maybe_outdated)/entities/money_printer_washingmachine/cl_init.lua | 2 | 1369 | include('shared.lua')
function ENT:Draw( )
self.Entity:DrawModel()
local Pos = self:GetPos()
local Ang = Angle( 0, 0, 0) -- self:GetAngles()
local upgrade = self.Entity:GetNWInt("upgrade")
local owner = self.Owner
owner = (ValidEntity(owner) and owner:Nick()) or "Unknown"
-- if ply:GetNWEntity( "drawmo... | mit |
hamed9898/i4bot | plugins/twitter_send.lua | 627 | 1555 | do
local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local client = OAuth.new(consumer_key, consumer_secret, {
RequestToken = "https://api.twitter.com/oauth/request_token",
AuthorizeUser = {"https://api.twitter.com/oauth/autho... | gpl-2.0 |
mohammadclashclash/hacker2011 | plugins/twitter_send.lua | 627 | 1555 | do
local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local client = OAuth.new(consumer_key, consumer_secret, {
RequestToken = "https://api.twitter.com/oauth/request_token",
AuthorizeUser = {"https://api.twitter.com/oauth/autho... | gpl-2.0 |
obelisk21/prosody-modules | mod_statistics/stats.lib.lua | 32 | 4506 | local it = require "util.iterators";
local log = require "util.logger".init("stats");
local has_pposix, pposix = pcall(require, "util.pposix");
local human;
do
local tostring = tostring;
local s_format = string.format;
local m_floor = math.floor;
local m_max = math.max;
local prefixes = "kMGTPEZY";
local multipli... | mit |
imrandomizer/Algorithm-Implementations | Boyer_Moore_Horspool/Lua/Yonaba/bmh_test.lua | 27 | 1111 | -- Tests for bmh.lua
local bmh = require 'bmh'
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
local status = ok and 'PA... | mit |
yuewko/themis | vendor/github.com/apache/thrift/lib/lua/TJsonProtocol.lua | 42 | 18656 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"), you ma... | apache-2.0 |
Armyluix/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Tehf_Kimasnahya.lua | 19 | 2969 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Tehf Kimasnahya
-- Type: Standard NPC
-- @pos -89.897 -1 6.199 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems")... | gpl-3.0 |
dios-game/dios-cocos | src/apps/lua-tests/Resources/src/RenderTextureTest/RenderTextureTest.lua | 15 | 17966 | -- Test #1 by Jason Booth (slipster216)
-- Test #3 by David Deaco (ddeaco)
--/**
-- * Impelmentation of RenderTextureSave
--*/
local function RenderTextureSave()
local ret = createTestLayer("Touch the screen",
"Press 'Save Image' to create an snapshot of the render texture")
... | mit |
abriasffxi/darkstar | scripts/globals/abilities/beast_roll.lua | 19 | 2633 | -----------------------------------
-- Ability: Beast Roll
-- Enhances pet attacks for party members within area of effect
-- Optimal Job: Beastmaster
-- Lucky Number: 4
-- Unlucky Number: 8
-- Level: 34
--
-- Die Roll |No BST |With BST
-- -------- -------- -----------
-- 1 |16 |41
-- 2 |20... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Mhaura/npcs/Blandine.lua | 17 | 2177 | -----------------------------------
-- Area: Mhaura
-- NPC: Blandine
-- Start Quest: The Sand Charmz
-- @pos 23 -7 41 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/global... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/East_Sarutabaruta/npcs/Taby_Canatahey.lua | 34 | 1067 | -----------------------------------
-- Area: East Sarutabaruta
-- NPC: Taby Canatahey
-- @pos -119.119 -4.106 -524.347 116
-----------------------------------
package.loaded["scripts/zones/East_Sarutabaruta/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/East_Sarutabaruta/TextIDs... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Norg/npcs/Quntsu-Nointsu.lua | 17 | 2848 | -----------------------------------
-- Area: Norg
-- NPC: Quntsu-Nointsu
-- Title Change NPC
-- @pos -67 -1 34 252
-----------------------------------
require("scripts/globals/titles");
local title2 = { HONORARY_DOCTORATE_MAJORING_IN_TONBERRIES , BUSHIDO_BLADE , BLACK_MARKETEER , CRACKER_OF_THE_SECRET_CODE ,... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Grauberg_[S]/npcs/qm1.lua | 30 | 1695 | -----------------------------------
-- Area: Grauberg [S]
-- NPC: ???
-- Quest - DNC AF1
-----------------------------------
package.loaded["scripts/zones/Grauberg_[S]/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/harvesting");
require("scripts/zones/Grauberg_[S]/TextIDs");
-----... | gpl-3.0 |
isalnikov/Algorithm-Implementations | Heap_Sort/Lua/Yonaba/heapsort_test.lua | 27 | 1353 | -- Tests for heapsort.lua
local heapsort = require 'heapsort'
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
local stat... | mit |
Armyluix/darkstar | scripts/globals/items/pumpkin_pie_+1.lua | 35 | 1372 | -----------------------------------------
-- ID: 4447
-- Item: pumpkin_pie_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Magic 45
-- Intelligence 4
-- Charisma -1
-- MP Recovered While Healing 1
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/items/hellsteak.lua | 18 | 1722 | -----------------------------------------
-- ID: 5609
-- Item: hellsteak
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 20
-- Strength 6
-- Intelligence -2
-- Health Regen While Healing 2
-- Attack % 19
-- Ranged ATT % 19
-- Dragon Killer 5
-- Demon Killer 5
----------------------... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Rabao/npcs/Waylea.lua | 38 | 1048 | -----------------------------------
-- Area: Rabao
-- NPC: Waylea
-- Type: Reputation
-- @zone: 247
-- @pos 12.384 4.658 -32.392
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/VeLugannon_Palace/mobs/Zipacna.lua | 16 | 1991 | -----------------------------------
-- Area: VeLugannon Palace
-- NPC: Zipacna
-----------------------------------
require("scripts/globals/pathfind");
local path = {
-202, 0, 391,
-209, 0, 387,
-214, 0, 381,
-238, 0, 380,
-256, 4, 381,
-261, 8, 400,
-257, 12, 417,
-240, 16, 420,
-257, 12, 417,
-261, 8, 400,
-256, 4... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/items/silken_squeeze.lua | 36 | 1215 | -----------------------------------------
-- ID: 5630
-- Item: Silken Squeeze
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP Recovered while healing +4
-- MP Recovered while healing +5
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
xpol/luainstaller | lua/versions/luajit-2.1/src/host/genminilua.lua | 47 | 12039 | ----------------------------------------------------------------------------
-- Lua script to generate a customized, minified version of Lua.
-- The resulting 'minilua' is used for the build process of LuaJIT.
----------------------------------------------------------------------------
-- Copyright (C) 2005-2017 Mike P... | mit |
Armyluix/darkstar | scripts/zones/Temple_of_Uggalepih/npcs/_4fz.lua | 17 | 1497 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: Granite Door
-- Leads to painbrush room @ F-7
-- @pos 60 0.1 8 159
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyit... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Port_Bastok/npcs/Ravorara.lua | 38 | 1028 | -----------------------------------
-- Area: Port Bastok
-- NPC: Ravorara
-- Type: Quest Giver
-- @zone: 236
-- @pos -151.062 -7 -7.243
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
---------------------... | gpl-3.0 |
gigte/glua-menu | remake/gui/panels/mainpanel.lua | 1 | 2101 |
local PANEL = {}
function PANEL:Init()
self:MakePopup()
self:SetPopupStayAtBack(true)
--self:MoveToBack()
if gui.IsConsoleVisible() then -- костыль
RunConsoleCommand("showconsole")
end
self.UpperBar = self:Add("UpperBar")
self.UpperBar:SetHeight(30)
self.GMLogo = self:Add("GMLogo")
self.NavBar = se... | isc |
Armyluix/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Porter_Moogle.lua | 41 | 1560 | -----------------------------------
-- Area: Southern San d'Oria [S]
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- @zone 80
-- @pos TODO
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/So... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/mobskills/Bloody_claw.lua | 13 | 1312 | ---------------------------------------------
-- Terror Eye
-- Family: Gargouille
-- Description: Steals an enemy's HP. Additional effect: Reduces a random stat.
-- Type: Physical
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Melee
-- Notes: Despite the attack ignoring Utsusemi, it is physical, and... | gpl-3.0 |
ElectroDuk/QuackWars | garrysmod/gamemodes/Basewars/entities(maybe_outdated)/entities/cse_ent_hegrenade/init.lua | 2 | 2914 |
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
function ENT:Initialize()
self.Entity:SetModel("models/weapons/w_eq_fraggrenade.mdl")
self.Entity:PhysicsInit( SOLID_VPHYSICS )
self.Entity:SetMoveType( MOVETYPE_VPHYSICS )
self.Entity:SetSolid( SOLID_VPHYSICS )
self.Entity:DrawSh... | mit |
Armyluix/darkstar | scripts/globals/weaponskills/shield_break.lua | 18 | 1877 | -----------------------------------
-- Shield Break
-- Great Axe weapon skill
-- Skill level: 5
-- Lowers enemy's Evasion. Duration of effect varies with TP.
-- Lowers Evasion by as much as 40 if unresisted.
-- Strong against: Bees, Beetles, Birds, Crabs, Crawlers, Flies, Lizards, Mandragora, Opo-opo, Pugils, Sab... | gpl-3.0 |
starcms/packages-mod | net/acme/files/acme-cbi.lua | 20 | 3086 | --[[
LuCI - Lua Configuration Interface
Copyright 2016 Toke Høiland-Jørgensen <toke@toke.dk>
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 3 of the License, or (at your option... | gpl-2.0 |
Armyluix/darkstar | scripts/zones/Dynamis-San_dOria/mobs/Reapertongue_Gadgquok.lua | 16 | 1064 | -----------------------------------
-- Area: Dynamis San d'Oria
-- NPC: Reapertongue Gadgquok
-- Boss Trigger for Overlord's Tombstone
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
end;
---------... | gpl-3.0 |
ElectroDuk/QuackWars | garrysmod/gamemodes/Basewars(Broken}/gamemode/Guis working on this right now/savingold.lua | 6 | 4215 | --[[
-- LOADING
--]]
function GM:InitPostEntity()
self.BaseClass:InitPostEntity()
--Do stuff you need to do
self:LoadPreviousEntData()
self:StartSavingEntData()
end
local function load_prop_physics( class, mdl, pos, ang, moveable, color, skin, solid, ownerSID )
local ent = ents.Create( class )
ent:SetM... | mit |
ElectroDuk/QuackWars | garrysmod/gamemodes/Basewars/gamemode(dk working on)/Guis working on this right now/savingold.lua | 6 | 4215 | --[[
-- LOADING
--]]
function GM:InitPostEntity()
self.BaseClass:InitPostEntity()
--Do stuff you need to do
self:LoadPreviousEntData()
self:StartSavingEntData()
end
local function load_prop_physics( class, mdl, pos, ang, moveable, color, skin, solid, ownerSID )
local ent = ents.Create( class )
ent:SetM... | mit |
abriasffxi/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Dynamis_Lord.lua | 23 | 2056 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NM: Dynamis_Lord
--
-- In OLD Dynamis, he is spawned by killing 15 Kindred NMs..
-- ..NOT by killing Ying and Yang.
--
-- In Neo Dynamis, he is spawned by trading
-- a Shrouded Bijou to the ??? in front of Castle Zvahl.
--------------------------------... | gpl-3.0 |
uspgamedev/backdoor | game/domain/definitions/aptitude.lua | 1 | 1355 |
local APT = {}
--- Calculate required upgrade points for a certain level given an aptitude.
-- For the resulting tables run
-- ```bash
-- $ make FLAGS=--test=aptitude
-- ```
function APT.REQUIRED_ATTR_UPGRADE(apt, lv)
return math.ceil((15 - 3*apt) ^ (1 + lv/10))
end
function APT.CUMULATIVE_REQUIRED_ATTR_UPGRAD... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Windurst_Waters/npcs/Foi-Mui.lua | 36 | 1418 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Foi-Mui
-- Involved in Quest: Making the Grade
-- Working 100%
-- @zone = 238
-- @pos = 126 -6 162
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Halvung/npcs/qm4.lua | 19 | 1150 | -----------------------------------
-- Area: Halvung
-- NPC: ??? (Spawn Achamoth(ZNM T3))
-- @pos -34 10 336 62
-----------------------------------
package.loaded["scripts/zones/Halvung/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Halvung/TextIDs");
-----------------------------------
... | gpl-3.0 |
mchapman/wbscaffold | lib/rails_utils.grt.lua | 1 | 2511 | --
-- Workbench Utility Plugins
--
-- ASSUMPTIONS:
-- 1 All tables have a single column primary key called id
--
--
-- standard module/plugin functions
--
function getModuleInfo()
return {
name= "WbRailsUtils",
author= "Mark Chapman",
version= "0.1",
implements= "PluginInterface",
functi... | mit |
Armyluix/darkstar | scripts/globals/items/spirit_maul.lua | 16 | 1558 | -----------------------------------------
-- ID: 18853
-- Spirit Maul
-- Additional effect: Light damage
-- Enchantment: TP+100
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
--------------... | gpl-3.0 |
dios-game/dios-cocos | src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/GridAction.lua | 11 | 1389 |
--------------------------------
-- @module GridAction
-- @extend ActionInterval
-- @parent_module cc
--------------------------------
-- brief Get the pointer of GridBase.<br>
-- return The pointer of GridBase.
-- @function [parent=#GridAction] getGrid
-- @param self
-- @return GridBase#GridBase ret (return value: ... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.