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 |
|---|---|---|---|---|---|
JoMiro/arcemu | src/scripts/lua/LuaBridge/Stable Scripts/Outland/Hellfire Ramparts/BOSS_HellfireRampart_Omor.lua | 30 | 1754 | function Omor_Shadow_Bolt(Unit, event, miscunit, misc)
print "Omor Shadow Bolt"
Unit:FullCastSpellOnTarget(36987,Unit:GetClosestPlayer())
Unit:SendChatMessage(11, 0, "A Good Shadow Bolt for you...")
end
function Omor_Spell_reflect(Unit)
print "Omor Spell reflect"
Unit:FullCastSpell(33961)
... | agpl-3.0 |
jshackley/darkstar | scripts/globals/items/eggplant.lua | 35 | 1203 | -----------------------------------------
-- ID: 4388
-- Item: eggplant
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility 3
-- Vitality -5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemChec... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Ratonne.lua | 36 | 4452 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Ratonne
-- Armor Storage NPC
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/armorstorag... | gpl-3.0 |
rigeirani/arbc | bot/utils.lua | 356 | 14963 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
jshackley/darkstar | scripts/zones/Bastok_Mines/npcs/Rodellieux.lua | 36 | 1462 | -----------------------------------
-- Area: Bastok_Mines
-- NPC: Rodellieux
-- Only sells when Bastok controlls Fauregandi Region
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scri... | gpl-3.0 |
jshackley/darkstar | scripts/globals/spells/bluemagic/firespit.lua | 27 | 1478 | -----------------------------------------
-- Spell: Firespit
-- Deals fire damage to an enemy
-- Spell cost: 121 MP
-- Monster Type: Beastmen
-- Spell Type: Magical (Fire)
-- Blue Magic Points: 5
-- Stat Bonus: STR+3
-- Level: 68
-- Casting Time: 6.5 seconds
-- Recast Time: 42.75 seconds
-- Magic Bursts on: ... | gpl-3.0 |
lakers/RobloxWiki | extensions/Scribunto/engines/LuaCommon/lualib/mw.uri.lua | 4 | 13981 | local uri = {}
local urifuncs = {}
local urimt = {}
local php
local util = require 'libraryUtil'
local checkType = util.checkType
local checkTypeForIndex = util.checkTypeForIndex
function uri.setupInterface( options )
-- Boilerplate
uri.setupInterface = nil
php = mw_interface
mw_interface = nil
-- Store options... | gpl-2.0 |
m2mselect/owrt | feeds/luci/applications/luci-app-upnp/luasrc/model/cbi/upnp/upnp.lua | 56 | 3828 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("upnpd", luci.util.pcdata(translate("Universal Plug & Play")),
translate("UPnP allows clients in the local network to automatically configure the... | gpl-2.0 |
charlesjohnson/chef-server | omnibus/tests/routing/route_checks_test.lua | 11 | 4574 | local http_methods = {}
http_methods.GET = function() return "GET" end
http_methods.POST = function() return "POST" end
http_methods.PUT = function() return "PUT" end
http_methods.DELETE = function() return "DELETE " end
-- First stub out nginx stuff that our the route_checks module needs access to.
-- Note that we ca... | apache-2.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/biome_lib/init.lua | 8 | 28634 | -- Plantlife library mod by Vanessa Ezekowitz
--
-- License: WTFPL
--
-- I got the temperature map idea from "hmmmm", values used for it came from
-- Splizard's snow mod.
--
-- Various settings - most of these probably won't need to be changed
biome_lib = {}
plantslib = setmetatable({}, { __index=function(t,k) prin... | unlicense |
FFXIOrgins/FFXIOrgins | scripts/zones/Temenos/mobs/Enhanced_Dragon.lua | 17 | 1286 | -----------------------------------
-- Area: Temenos Central 1floor
-- NPC: Enhanced_Dragon
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------... | gpl-3.0 |
fartoverflow/naev | dat/factions/equip/empire.lua | 13 | 5297 | -- Generic equipping routines, helper functions and outfit definitions.
include("dat/factions/equip/generic.lua")
--[[
-- @brief Does empire pilot equipping
--
-- @param p Pilot to equip
--]]
function equip( p )
-- Start with an empty ship
p:rmOutfit("all")
p:rmOutfit("cores")
-- Get ship info
local... | gpl-3.0 |
m2mselect/owrt | feeds/luci/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/startup.lua | 74 | 2567 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2010-2012 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2010 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local sys = require "luci.sys"
local inits = { }
for _, name ... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Ilrusi_Atoll/mobs/Cursed_Chest.lua | 17 | 1378 | -----------------------------------
-- Area: Illrusi atoll
-- NPC: Cursed Chest
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInit... | gpl-3.0 |
mehrpouya81/gamer1 | plugins/spm.lua | 2 | 533583 | do
function run(msg, matches)
return " IRAN SPAMMER IS ATTACKING🤖/nIRAN SPAMMER IS ATTACKING🤖/nIRAN SPAMMER IS ATTACKING🤖/nIRAN SPAMMER IS ATTACKING🤖/nIRAN SPAMMER IS ATTACKING🤖/nIRAN SPAMMER IS ATTACKING🤖/nIRAN SPAMMER IS ATTACKING🤖/nIRAN SPAMMER IS ATTACKING🤖/nIRAN SPAMMER IS ATTACKING🤖/nIRAN SPAMMER IS A... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Northern_San_dOria/npcs/HomePoint#1.lua | 3 | 1733 | -----------------------------------
-- Area: Northern San dOria
-- NPC: HomePoint#1
-- @pos -178.101 4.000 71.279 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts... | gpl-3.0 |
sadegh1996/sword_antispam | plugins/feedback.lua | 6 | 2697 |
do
function run(msg, matches)
local fuse = 'New FeedBack!\n\nID : ' .. msg.from.id .. '\n\n Name : ' .. msg.from.print_name ..'\n\n Username : @'..msg.from.username..'\n\n\n PM:\n' .. matches[1]
local fuses = '!printf user#id' .. msg.from.id
local text = matches[1]
local chat = "chat#id"..97426604 --pu... | gpl-2.0 |
msburgess3200/PERP | gamemodes/perp/entities/weapons/weapon_perp_shotgun/shared.lua | 1 | 2563 |
if ( SERVER ) then
AddCSLuaFile( "shared.lua" )
SWEP.BackHolster = false;
end
if ( CLIENT ) then
SWEP.PrintName = "Shotgun"
SWEP.Author = "Counter-Strike"
SWEP.Slot = 3
SWEP.SlotPos = 1
SWEP.IconLetter = "k"
end
SWEP.HoldType = "ar2";
SWEP.HoldTypeNorm = "normal";
SWEP.Base = "w... | mit |
luzexi/slua-3rd-lib | build/luasocket-2.0.2/src/ftp.lua | 144 | 9120 | -----------------------------------------------------------------------------
-- FTP support for the Lua language
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: ftp.lua,v 1.45 2007/07/11 19:25:47 diego Exp $
-----------------------------------------------------------------------------
-------------------... | mit |
FFXIOrgins/FFXIOrgins | scripts/globals/spells/curaga_ii.lua | 4 | 1215 | -----------------------------------------
-- Spell: Curaga II
-- Restores HP of all party members within area of effect.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
----------------------------------------... | gpl-3.0 |
sjznxd/lc-20130127 | applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua | 68 | 4034 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008-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
htt... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Windurst_Waters_[S]/npcs/Scotwick.lua | 38 | 1066 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Scotwick
-- Type: Allied Notes Notorious Monsters
-- @zone: 94
-- @pos 153.785 -3.134 9.895
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Upper_Delkfutts_Tower/mobs/Autarch.lua | 21 | 1487 | -----------------------------------
-- Area: Upper Delkfutt's Tower
-- NM: Autarch
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize(mo... | gpl-3.0 |
hb9cwp/snabbswitch | lib/ljsyscall/test/freebsd.lua | 18 | 3723 | -- BSD specific tests
local function init(S)
local helpers = require "syscall.helpers"
local types = S.types
local c = S.c
local abi = S.abi
local bit = require "syscall.bit"
local ffi = require "ffi"
local t, pt, s = types.t, types.pt, types.s
local assert = helpers.assert
local function fork_assert(cond, err, .... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Upper_Jeuno/npcs/Mhao_Kehtsoruho.lua | 38 | 1041 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Mhao Kehtsoruho
-- Type: Past Event Watcher
-- @zone: 244
-- @pos -73.032 -1 146.919
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
--------... | gpl-3.0 |
Mogara/QSanguosha | lua/ai/maneuvering-ai.lua | 6 | 24978 | --[[********************************************************************
Copyright (c) 2013-2014 - QSanguosha-Rara
This file is part of QSanguosha-Hegemony.
This game 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... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Bastok_Markets_[S]/npcs/Karlotte.lua | 38 | 1069 | ----------------------------------
-- Area: Bastok Markets [S]
-- NPC: Karlotte
-- Type: Item Deliverer
-- @pos -191.646 -8 -36.349 87
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Markets_[S]... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Kuftal_Tunnel/npcs/qm5.lua | 7 | 1591 | -----------------------------------
-- Area: Kuftal Tunnel
-- NPC: ???
-- Involved in Mission: Bastok 8-2
-----------------------------------
package.loaded["scripts/zones/Kuftal_Tunnel/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/bowl_of_loach_gruel.lua | 36 | 1567 | -----------------------------------------
-- ID: 5670
-- Item: Bowl of Loach Gruel
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Make Group Effect
-- Dexterity 2
-- Agility 2
-- Accuracy 7% Cap 30
-- HP 7% Cap 30
-- Evasion 4
-----------------------------------------
require("scri... | gpl-3.0 |
m2mselect/owrt | feeds/luci/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/iwinfo.lua | 37 | 1612 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.iwinfo", package.seeall)
function rrdargs( graph, plugin, plugin_instance )
--
-- signal/noise diagram
--
local snr = {
title = "%H: Signal and noise on %pi",
... | gpl-2.0 |
msburgess3200/PERP | gamemodes/perp/gamemode/vgui/vehicle_cust_details.lua | 1 | 1539 | local PANEL = {};
function PANEL:Init ( )
self:SetTall(76);
self.Button = vgui.Create('DButton', self);
self.Button:SizeToContents();
self.Button:SetTall(20);
self.Button:SetWide(60);
self.Button:SetText('Customize');
self:SetSkin("ugperp")
end
function PANEL:PerformLayout ( )
self.Button:SetPos(self:GetWid... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Western_Altepa_Desert/npcs/qm2.lua | 8 | 1691 | -----------------------------------
-- Area: Western Altepa Desert
-- NPC: qm2 (???)
-- Involved in Mission: Bastok 6-1
-- @pos -325 0 -111 125
-----------------------------------
package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Sauromugue_Champaign_[S]/npcs/Cavernous_Maw.lua | 5 | 1354 | -----------------------------------
-- Cavernous Maw
-- Teleports Players to Sauromugue_Champaign
-- @pos 369 8 -227 98
-----------------------------------
package.loaded["scripts/zones/Sauromugue_Champaign_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/teleports");
require(... | gpl-3.0 |
hacker44-h44/1104 | plugins/invite.lua | 299 | 1025 | -- Invite other user to the chat group.
-- Use !invite name User_name or !invite id id_number
-- The User_name is the print_name (there are no spaces but _)
do
local function callback(extra, success, result)
vardump(success)
vardump(result)
end
local function run(msg, matches)
local user = matches[2]
-- Use... | gpl-2.0 |
Arashbrsh/copyuz | plugins/invite.lua | 299 | 1025 | -- Invite other user to the chat group.
-- Use !invite name User_name or !invite id id_number
-- The User_name is the print_name (there are no spaces but _)
do
local function callback(extra, success, result)
vardump(success)
vardump(result)
end
local function run(msg, matches)
local user = matches[2]
-- Use... | gpl-2.0 |
msburgess3200/PERP | gamemodes/perp/entities/weapons/weapon_perp_para/shared.lua | 1 | 1380 |
if( SERVER ) then
AddCSLuaFile( "shared.lua" )
SWEP.BackHolster = true
end
if( CLIENT ) then
SWEP.PrintName = "Para"
SWEP.Author = "Counter-Strike"
SWEP.Slot = 3
SWEP.SlotPos = 1
SWEP.IconLetter = "z"
SWEP.ViewModelFlip = false
end
SWEP.HoldType = "ar2"
SWEP.HoldTypeNorm = "norma... | mit |
FFXIOrgins/FFXIOrgins | scripts/globals/items/bowl_of_adoulin_soup_+1.lua | 36 | 1507 | -----------------------------------------
-- ID: 5999
-- Item: Bowl of Adoulin Soup +1
-- Food Effect: 240 Min, All Races
-----------------------------------------
-- HP % 4 Cap 45
-- Vitality 4
-- Defense % 16 Cap 75
-- HP Healing 7
-----------------------------------------
require("scripts/globals/status");
-------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Palborough_Mines/npcs/Treasure_Chest.lua | 7 | 2649 | -----------------------------------
-- Area: Palborough Mines
-- NPC: Treasure Chest
-- @zone 143
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("s... | gpl-3.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/mobs/npc_female.lua | 7 | 4196 |
-- 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 |
hnyman/packages | utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_stations.lua | 17 | 7694 | local ubus = require "ubus"
local bit32 = require "bit32"
local function get_wifi_interfaces()
local conn = ubus.connect()
local ubuslist = conn:objects()
local interfaces = {}
for _,net in ipairs(ubuslist) do
if net.find(net,"hostapd.") then
local ifname = net:gsub("hostapd.", "")
table.inser... | gpl-2.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/homedecor_modpack/plasmascreen/init.lua | 9 | 5184 | screwdriver = screwdriver or {}
minetest.register_node("plasmascreen:stand", {
description = "Plasma Screen TV Stand",
tiles = {"plasmascreen_back.png"},
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{0.5000,-0.5000,0.0625,-0.5000,-0.4375,-0.5000... | unlicense |
FFXIOrgins/FFXIOrgins | scripts/zones/Windurst_Woods/npcs/Abby_Jalunshi.lua | 38 | 1042 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Abby Jalunshi
-- Type: Moghouse Renter
-- @zone: 241
-- @pos -101.895 -5 36.172
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Port_San_dOria/npcs/Deguerendars.lua | 36 | 2054 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Deguerendars
-- Only sells when San d'Oria contrls Tavnazian Archipelago
-- Only available to those with CoP Ch. 4.1 or higher
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
------------------... | gpl-3.0 |
hb9cwp/snabbswitch | src/core/link.lua | 13 | 3092 | module(...,package.seeall)
local debug = _G.developer_debug
local shm = require("core.shm")
local ffi = require("ffi")
local C = ffi.C
local packet = require("core.packet")
require("core.packet_h")
local counter = require("core.counter")
require("core.counter_h")
require("core.link_h")
local band = require("bit")... | apache-2.0 |
xToken/CompMod | lua/CompMod/Classes/Alien/AlienCommander/client.lua | 1 | 2950 | -- Natural Selection 2 Competitive Mod
-- Source located at - https://github.com/xToken/CompMod
-- lua\CompMod\Classes\Alien\AlienCommander\client.lua
-- - Dragon
local originalAlienCommanderSendTargetedAction
originalAlienCommanderSendTargetedAction = Class_ReplaceMethod("AlienCommander", "SendTargetedAction",
fu... | mit |
moj69/m | plugins/ner.lua | 1 | 1210 | — BY MOHAMMADARAK
— AVIRABOT
— @avirateam
— @avirabot
local function get_arz()
local url = 'http://exchange.nalbandan.com/api.php?action=json'
local jstr, res = http.request(url)
local arz = json:decode(jstr)
return '📊 نرخ ارز ، طلا و سکه در:'..arz.dollar.date..'\n\n〽️ هر گرم طلای 18 عیار:'..arz.gold_per_gera... | agpl-3.0 |
KnightTeam/Knight | plugins/anti_spam.lua | 191 | 5291 | --An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id == our_id then
return msg
end
-- Save... | agpl-3.0 |
aosee1h1/AOSEE_2H2 | plugin/ingroup.lua | 47 | 60291 | do
-- Check Member
local function check_member_autorealm(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.peer_id
if member_id ~= our_id then
-- Group configuration
data[... | gpl-2.0 |
maximilianofaccone/puppy-siberian | root/.conky/Rings/rings-v1.2.lua | 1 | 6712 | --[[
Ring Meters by londonali1010 (2009)
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement on line 145 uses a del... | gpl-3.0 |
TRIEXTEAM/TaylortTG | plugins/help.lua | 1 | 4710 | do
function run(msg, matches)
local mods = [[
راهنما فارسی مدیران :
@TaylorChannel
!kick [Username | ID | Reply]
!ban [username | ID | Reply]
!unban [Username | ID | Reply]
!banlist
!id [Username | Id | Reply]
!res @username
!res [Reply]
!lock [ads | name | tag | leave | badw | member | chat | farsi | bots]
... | gpl-2.0 |
elt11bot/seed-sup | plugins/whosin.lua | 4 | 1320 | -- See who's in an event!
-- Use !whosin eventname
local _file_values = './data/events.lua'
function read_file_values( )
local f = io.open(_file_values, "r+")
-- If file doesn't exists
if f == nil then
-- Create a new empty table
print ('Created value file '.._file_values)
serialize_to_file({}, _fi... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/mobskills/Hydro_Canon.lua | 8 | 1274 | ---------------------------------------------------
-- Hydro_Canon
-- Description:
-- Type: Magical
-- additional effect : 40hp/tick Poison
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
--... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/bowl_of_sprightly_soup.lua | 36 | 1326 | -----------------------------------------
-- ID: 5930
-- Item: Bowl of Sprightly Soup
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- MP 30
-- Mind 4
-- HP Recovered While Healing 4
-- Enmity -4
-----------------------------------------
require("scripts/globals/status");
----------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Port_Jeuno/npcs/HomePoint#1.lua | 3 | 1706 | -----------------------------------
-- Area: Port Jeuno
-- NPC: HomePoint#1
-- @pos 37.076 0.001 8.831 246
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Port_Jeuno/T... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Alzadaal_Undersea_Ruins/Zone.lua | 4 | 4600 | -----------------------------------
--
-- Zone: Alzadaal_Undersea_Ruins (72)
--
-----------------------------------
package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Alzadaal_Undersea_Ruins/TextIDs");
------------------... | gpl-3.0 |
Aysegul/flattened-cnn | nn-conv1d/LateralConvolution.lua | 5 | 2076 | local LateralConvolution, parent = torch.class('nn.LateralConvolution', 'nn.Module')
function LateralConvolution:__init(nInputPlane, nOutputPlane)
parent.__init(self)
self.nInputPlane = nInputPlane
self.nOutputPlane = nOutputPlane
self.weight = torch.Tensor(nOutputPlane, nInputPlane)
self.bias = torch... | mit |
mahdmahdia/DBDB | plugins/google.lua | 3 | 1060 | local function googlethat(query)
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&"
local parameters = "q=".. (URL.escape(query) or "")
-- Do the request
local res, code = https.request(api..parameters)
if code ~=200 then return nil end
local data = json:decode(res)
local r... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Konschtat_Highlands/Zone.lua | 2 | 2017 | -----------------------------------
--
-- Zone: Konschtat_Highlands (108)
--
-----------------------------------
package.loaded["scripts/zones/Konschtat_Highlands/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Konschtat_Highlands/TextIDs");
require( "scripts/globals/icanheararainb... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/commands/capskill.lua | 4 | 3107 | ---------------------------------------------------------------------------------------------------
-- func: capskill
-- auth: <Unknown> :: Modded by atom0s.
-- desc: Caps a specific skill.
---------------------------------------------------------------------------------------------------
cmdprops =
{
perm... | gpl-3.0 |
GameHackingBook/GameHackingCode | LuaScripts/Chapter5_VerifyMap.lua | 2 | 1072 | function _verifyMap(address)
local parentItem = readInteger(address + 4) or 0
local parentLeftItem = readInteger(parentItem + 0) or 0
local parentRightItem = readInteger(parentItem + 8) or 0
local validParent =
parentLeftItem == address
or parentRightItem == address
if (not validPa... | gpl-2.0 |
TRIEXTEAM/TaylortTG | plugins/id.lua | 12 | 7187 |
do
local function scan_name(extra, success, result)
local founds = {}
for k,member in pairs(result.members) do
if extra.name then
gp_member = extra.name
fields = {'first_name', 'last_name', 'print_name'}
elseif extra.user then
gp_member = string.gsub(extra.user, '@', '')
... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Port_San_dOria/npcs/Laucimercen.lua | 36 | 1377 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Laucimercen
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Port_San_dOria/T... | gpl-3.0 |
Arashbrsh/copyuz | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
togolwb/skynet | service/cmaster.lua | 78 | 3256 | local skynet = require "skynet"
local socket = require "socket"
--[[
master manage data :
1. all the slaves address : id -> ipaddr:port
2. all the global names : name -> address
master hold connections from slaves .
protocol slave->master :
package size 1 byte
type 1 byte :
'H' : HANDSHAKE, report slav... | mit |
sjznxd/lc-20130127 | applications/luci-firewall/luasrc/tools/firewall.lua | 26 | 6073 | --[[
LuCI - Lua Configuration Interface
Copyright 2011-2012 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
]]--
mo... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/weaponskills/blade_metsu.lua | 4 | 2280 | -----------------------------------
-- Blade Metsu
-- Katana weapon skill
-- Skill Level: N/A
-- Additional effect: Paralysis
-- Hidden effect: temporarily enhances Subtle Blow effect.
-- One hit weapon skill, despite non single-hit animation.
-- This weapon skill is only available with the stage 5 relic ... | gpl-3.0 |
sjznxd/luci-0.11-aa | libs/lucid-rpc/luasrc/lucid/rpc/server.lua | 52 | 8197 | --[[
LuCI - Lua Development Framework
Copyright 2009 Steven Barth <steven@midlink.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
$Id$
]]
local ip... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Fort_Ghelsba/npcs/Treasure_Chest.lua | 7 | 2558 | -----------------------------------
-- Area: Fort Ghelsba
-- NPC: Treasure Chest
-- @zone 141
-----------------------------------
package.loaded["scripts/zones/Fort_Ghelsba/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/treasure");
require("scripts/z... | gpl-3.0 |
brianbennett/fpga_nes | sw/scripts/ppumc.lua | 3 | 7867 | ----------------------------------------------------------------------------------------------------
-- Script: ppumc.lua
-- Description: Tests ppumc block (read/write PPU memory)
----------------------------------------------------------------------------------------------------
dofile("../scripts/inc/nesdbg.lua... | bsd-2-clause |
FFXIOrgins/FFXIOrgins | scripts/zones/QuBia_Arena/npcs/Burning_Circle.lua | 4 | 2526 | -----------------------------------
-- Area: Qu'Bia Arena
-- NPC: Burning Circle
-- @pos -221 -24 19 206
-------------------------------------
package.loaded["scripts/zones/QuBia_Arena/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/missions");... | gpl-3.0 |
caidongyun/nginx-openresty-windows | lua-5.1.5/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | bsd-2-clause |
pax2you4now/wesnoth | data/ai/micro_ais/cas/ca_herding_sheep_runs_dog.lua | 26 | 1437 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local function get_next_sheep(cfg)
local sheep = AH.get_units_with_moves {
side = wesnoth.current.side,
{ "and", cfg.filter_second },
{ "filter_adjacent", { side = wesnoth.current.side, { "and", cfg... | gpl-2.0 |
devilrap978/devil_rap65 | plugins/ar-voice.lua | 16 | 1056 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ voice : الصوت ▀▄ ▄▀
▀▄▀▀... | gpl-2.0 |
unknownssassss/sudo_meti | plugins/admin.lua | 4 | 1919 | local function run(msg, matches)
if is_sudo then
if matches[1] == 'import' then
tg.importChatInviteLink('https://telegram.me/joinchat/'..matches[2])
elseif matches[1] == 'setbotname' then
if matches[3] then
text = "نام ربات به "..matches[2]..matches[3].." تغییر یافت."
tg.sendMessage(msg.chat_id_, 0, 1, text, 1,... | gpl-3.0 |
unknownssassss/sudo_meti | tg/admin.lua | 4 | 1919 | local function run(msg, matches)
if is_sudo then
if matches[1] == 'import' then
tg.importChatInviteLink('https://telegram.me/joinchat/'..matches[2])
elseif matches[1] == 'setbotname' then
if matches[3] then
text = "نام ربات به "..matches[2]..matches[3].." تغییر یافت."
tg.sendMessage(msg.chat_id_, 0, 1, text, 1,... | gpl-3.0 |
msburgess3200/PERP | gamemodes/perp/entities/entities/ent_shroom/cl_init.lua | 1 | 2509 |
include('shared.lua')
/*---------------------------------------------------------
Name: DrawTranslucent
Desc: Draw translucent
---------------------------------------------------------*/
local FullGrowthTime = 360
local MakeBrown = 720;
local StartFade = 780;
local FullDeath = 840;
function ENT:Draw()
local ... | mit |
hb9cwp/snabbswitch | lib/ljsyscall/test/ctest-linux.lua | 18 | 13141 | -- generate C test file to check type sizes etc
-- Linux specific as there are a lot of workarounds
-- luajit ctest.lua > ctest.c && cc -std=c99 ctest.c -o ctest && ./ctest
-- TODO we are replacing this with new tests against clean kernel headers, test/linux-constants.lua is first part
-- however testing against both ... | apache-2.0 |
zhouxiaoxiaoxujian/skynet | examples/login/gated.lua | 29 | 2208 | local msgserver = require "snax.msgserver"
local crypt = require "skynet.crypt"
local skynet = require "skynet"
local loginservice = tonumber(...)
local server = {}
local users = {}
local username_map = {}
local internal_id = 0
-- login server disallow multi login, so login_handler never be reentry
-- call by login ... | mit |
FFXIOrgins/FFXIOrgins | scripts/zones/Castle_Oztroja/npcs/_47b.lua | 17 | 1929 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _47b (Handle)
-- Notes: Opens Trap Door (_47a) or Brass Door (_470)
-- @pos 22.310 -1.087 -14.320 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
req... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/goblin_mushpot.lua | 35 | 1300 | -----------------------------------------
-- ID: 4543
-- Item: goblin_mushpot
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Mind 10
-- Charisma -5
-- Dark Resist 10
-----------------------------------------
require("scripts/globals/status");
-------------------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Beaucedine_Glacier_[S]/npcs/Moana_CA.lua | 38 | 1064 | -----------------------------------
-- Area: Beaucedine Glacier (S)
-- NPC: Moana, C.A.
-- Type: Campaign Arbiter
-- @zone: 136
-- @pos -27.237 -60.888 -48.111
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier_[S]/Te... | gpl-3.0 |
fartoverflow/naev | dat/events/neutral/shadow_comm.lua | 7 | 3294 | --[[
-- Comm Event for the Shadow missions
--]]
include "proximity.lua"
-- localization stuff, translators would work here
lang = naev.lang()
if lang == "es" then
else -- default english
title = {}
text = {}
title[1] = "An open invitation"
text[1] = [["Greetings, %s," the pilot of the Vendetta says t... | gpl-3.0 |
Gael-de-Sailly/minetest-minetestforfun-server | mods/pipeworks/routing_tubes.lua | 10 | 4799 | -- the default tube and default textures
pipeworks.register_tube("pipeworks:tube", "Pneumatic tube segment")
minetest.register_craft( {
output = "pipeworks:tube_1 6",
recipe = {
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
{ "", "", "" },
{ "... | unlicense |
FFXIOrgins/FFXIOrgins | 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 |
msburgess3200/PERP | gamemodes/perp/entities/entities/prop_clock/cl_init.lua | 1 | 1698 |
include('shared.lua')
local x = -100;
local y = -100;
local w = 200;
local h = 200;
local secondHand = surface.GetTextureID("perp2/clock/hand_skinny");
local minuteHand = surface.GetTextureID("perp2/clock/hand_long");
local hourHand = surface.GetTextureID("perp2/clock/hand_short");
local tickSound = Sound("perp2.5/... | mit |
caidongyun/nginx-openresty-windows | lua-resty-lock-0.02/lib/resty/lock.lua | 1 | 4671 | -- Copyright (C) 2013 Yichun Zhang (agentzh)
local ffi = require "ffi"
local ffi_new = ffi.new
local shared = ngx.shared
local sleep = ngx.sleep
local shdict_mt
local debug = ngx.config.debug
local setmetatable = setmetatable
local getmetatable = getmetatable
local tonumber = tonumber
local _M = { _VE... | bsd-2-clause |
msburgess3200/PERP | gamemodes/perp/gamemode/cl_modules/options.lua | 1 | 8905 |
GM.Options_GUIAlpha = CreateClientConVar("perp2_gui_alpha", "150", true, false);
GM.Options_HUDAlpha = CreateClientConVar("perp2_hud_alpha", "150", true, false);
GM.Options_HUDColorR = CreateClientConVar("perp2_hud_colorr", "255", true, false);
GM.Options_HUDColorG = CreateClientConVar("perp2_hud_colorg", "255", tru... | mit |
TW1STaL1CKY/pac3 | lua/pac3/libraries/webaudio/browser.lua | 2 | 11841 | -- made by Morten and CapsAdmin
pac.webaudio = pac.webaudio or {}
local webaudio = pac.webaudio
webaudio.Browser = webaudio.Browser or {}
webaudio.Browser.States =
{
Uninitialized = 0,
Initializing = 1,
Initialized = 2
}
if webaudio.Browser.Control and
webaudio.Browser.Control:IsValid () then
webaudio.Bro... | gpl-3.0 |
hb9cwp/snabbswitch | src/program/top/top.lua | 13 | 5353 | module(..., package.seeall)
local ffi = require("ffi")
local C = ffi.C
local lib = require("core.lib")
local shm = require("core.shm")
local counter = require("core.counter")
local S = require("syscall")
local usage = require("program.top.README_inc")
local long_opts = {
help = "h"
}
function clearterm () io.writ... | apache-2.0 |
zaeem998/vtbot | libs/serpent.lua | 656 | 7877 | local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
local badtype = {thread = true, userdata = true, cdata = true}
lo... | gpl-3.0 |
fartoverflow/naev | dat/factions/spawn/thurion.lua | 10 | 2742 | include("dat/factions/spawn/common.lua")
-- @brief Spawns a small patrol fleet.
function spawn_patrol ()
local pilots = {}
local r = rnd.rnd()
if r < 0.5 then
scom.addPilot( pilots, "Thurion Ingenuity", 25 );
elseif r < 0.8 then
scom.addPilot( pilots, "Empire Shark", 20 );
scom.addPilot... | gpl-3.0 |
FarzadNari/rocketrobot | plugins/spanish_lang.lua | 1 | 18516 |
local LANG = 'es'
local function run(msg, matches)
if permissions(msg.from.id, msg.to.id, "lang_install") then
-------------------------
-- Translation version --
-------------------------
set_text(LANG, 'version', '0.2')
set_text(LANG, 'versionExtended', 'Traducción versión 0.2')
-------------
-- P... | gpl-2.0 |
hb9cwp/snabbswitch | lib/ljsyscall/syscall/openbsd/constants.lua | 24 | 20467 | -- tables of constants for NetBSD
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string, select =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string, select
local abi =... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Bastok_Markets/npcs/Loulia.lua | 37 | 1076 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Loulia
-- Type: Room Renters
-- @zone: 235
-- @pos -176.212 -9 -25.049
--
-- Auto-Script: Requires Verification. Validated standard dialog - thrydwolf 12/8/2011
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/Tex... | gpl-3.0 |
joshimoo/Algorithm-Implementations | Successive_Over_Relaxation/Lua/Yonaba/sor.lua | 26 | 1264 | -- Successive Over Relaxation algorithm implementation
-- See : http://en.wikipedia.org/wiki/Successive_over-relaxation
-- Creates a vector of values
local function vector(len, v)
local x = {}
for i = 1, len do x[i] = v end
return x
end
-- Computes the norm of a given vector
local function norm(v)
local n = 0... | mit |
POPHUP/maroonhost | plugins/lock_sticker.lua | 17 | 19859 | -- data saved to data/moderation.json
do
local administrators_only = 'For administrator only!'
local moderators_only = 'For moderators only!'
local function create_group(msg)
if not is_admin(msg) then return administrators_only end
local group_creator = msg.from.print_name
create_group_chat (group_creator, grou... | gpl-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Beaucedine_Glacier/npcs/Ryunchi-Pauchi_WW.lua | 8 | 2965 | -----------------------------------
-- Area: Beaucedine Glacier
-- NPC: Ryunchi-Pauchi, W.W.
-- Type: Outpost Conquest Guards
-- @pos -24.351 -60.421 -114.215 111
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier/TextIDs"] = nil;
-----------------------------------
require("scripts/... | gpl-3.0 |
daofeng2015/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/ifaces.lua | 11 | 15480 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local ut = require "luci.util"
local pt = require "luci.tools.proto"
local nw = require "luci.model.network"
local fw = requ... | apache-2.0 |
FFXIOrgins/FFXIOrgins | scripts/zones/Metalworks/npcs/High_Bear.lua | 19 | 1764 | -----------------------------------
-- Area: Metalworks
-- NPC: High Bear
-- Type: Quest Giver
-- @zone: 237
-- @pos 25.231 -14.999 4.552
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/keyitems");
require("scripts/globals/titles");
--------------------------------... | gpl-3.0 |
FFXIOrgins/FFXIOrgins | scripts/globals/items/margherita_pizza.lua | 35 | 1220 | -----------------------------------------
-- ID: 5695
-- Item: margherita_pizza
-- Food Effect: 3hours, All Races
-----------------------------------------
-- Attack 10
-- Health Points 30
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.