repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
Arcscion/Shadowlyre | scripts/zones/Windurst_Waters_[S]/npcs/Ampiro-Mapiro.lua | 3 | 1065 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Ampiro-Mapiro
-- Type: Standard NPC
-- @zone 94
-- !pos 131.380 -6.75 174.169
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;... | gpl-3.0 |
aospo/platform_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 |
Arcscion/Shadowlyre | scripts/globals/spells/foe_requiem_ii.lua | 5 | 1801 | -----------------------------------------
-- Spell: Foe Requiem II
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end... | gpl-3.0 |
wissam3/bot.ahvaz | 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 |
jono659/enko | scripts/zones/West_Ronfaure/npcs/Adalefont.lua | 19 | 1064 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Adalefont
-- @pos -176.000 -61.999 377.460 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/West_Ronfa... | gpl-3.0 |
sevenbot/antispamsevenn | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
rigeirani/LNT | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
Arcscion/Shadowlyre | scripts/globals/items/rolsin.lua | 12 | 1192 | -----------------------------------------
-- ID: 5673
-- Item: rolsin
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -3
-- Intelligence 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
--------... | gpl-3.0 |
arcemu-ng/arcemu | src/scripts/lua/LuaBridge/Stable Scripts/Outland/Hellfire Peninsula/BOSS_Hellfire_Lord_Kazzak.lua | 30 | 1954 | local Didthat = 0
function Kazzak_Enrage(Unit, event, miscunit, misc)
if Unit:GetHealthPct() < 30 and Didthat == 0 then
Unit:FullCastSpell(34670)
Didthat = 1
else
end
end
function Kazzak_Shadow_Bolt(Unit, event, miscunit, misc)
print "Kazzak Shadow Bolt"
Unit:FullCastSpellOnTarget(29924,Unit:GetClosestPlayer(... | agpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/Buburimu_Peninsula/npcs/Wise_Turtle_IM.lua | 3 | 3342 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Wise Turtle, I.M.
-- Border Conquest Guards
-- !pos -599.903 -41.441 165.776 118
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/co... | gpl-3.0 |
NiLuJe/koreader-base | ffi/SDL2_0.lua | 2 | 18040 | --[[--
Module for interfacing SDL 2.0 video/input facilities
This module is intended to provide input/output facilities on a
typical desktop (rather than a dedicated e-ink reader, for which
there would probably be raw framebuffer/input device access
instead).
@module ffi.sdl2_0
]]
local bit = require("bit")
local ff... | agpl-3.0 |
jono659/enko | 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 |
hypnoscope/let-s-code-an-indie-game | episode_13/src/graphics/view.lua | 5 | 1088 | local view = {}
local scale = function (self)
return love.graphics.getWidth() / self.gameWidth
end
local clamp = function (min, n, max)
if n < min then return min end
if n > max then return max end
return n
end
local viewOffset = 10
local update = function (self, game)
local currentRoom = game.map:current... | mit |
jono659/enko | scripts/zones/Northern_San_dOria/npcs/Chasalvige.lua | 19 | 1701 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Chasalvige
-- Type: Standard Info NPC
-- Involved in Mission: The Road Forks
-- Involved in Mission: Promathia Mission 5 - Three Paths
-- @zone: 231
-- @pos 96.432 -0.520 134.046
--
-----------------------------------
require("scripts/globa... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/Windurst_Waters_[S]/npcs/Dhea_Prandoleh.lua | 3 | 2351 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Dhea Prandoleh
-- Type: Standard NPC
-- @zone 94
-- !pos 1 -1 15
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
------------... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/RuLude_Gardens/npcs/Radeivepart.lua | 3 | 2934 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Radeivepart
-- Starts and Finishes Quest: Northward
-- Involved in Quests: Save the Clock Tower
-- @zone 243
-- !pos 5 9 -39
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
---------------------------... | gpl-3.0 |
jono659/enko | scripts/zones/Alzadaal_Undersea_Ruins/Zone.lua | 7 | 5502 | -----------------------------------
--
-- Zone: Alzadaal_Undersea_Ruins (72)
--
-----------------------------------
package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Alzadaal_Undersea_Ruins/Tex... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/The_Celestial_Nexus/Zone.lua | 30 | 1741 | -----------------------------------
--
-- Zone: The_Celestial_Nexus (181)
--
-----------------------------------
package.loaded["scripts/zones/The_Celestial_Nexus/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/The_Celestial_Nexus/TextIDs");
-----------... | gpl-3.0 |
jono659/enko | scripts/zones/Mount_Zhayolm/npcs/_1p6.lua | 23 | 1050 | -----------------------------------
-- Area: Mount Zhayolm
-- NPC: Engraved Tablet
-- @pos 320 -15.35 -379 61
-----------------------------------
require("scripts/globals/keyitems");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
--... | gpl-3.0 |
jono659/enko | scripts/zones/The_Sanctuary_of_ZiTah/npcs/qm2.lua | 9 | 1836 | -----------------------------------
-- 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 |
Arcscion/Shadowlyre | scripts/zones/Cloister_of_Flames/bcnms/trial-size_trial_by_fire.lua | 3 | 2144 | -----------------------------------
-- Area: Cloister of Flames
-- BCNM: Trial-size Trial by Fire
-- !pos -721 0 -598 207
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Flames/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/keyitems");
require("scripts/glo... | gpl-3.0 |
ereizertmbot/siss | plugins/sticker2photo.lua | 15 | 1070 | local function tosticker(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = '/root/robot/data/stickers/'..msg.from.id..'.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
send_photo(get_receiver(msg), file, ok_cb, f... | gpl-2.0 |
Arcscion/Shadowlyre | scripts/zones/Tavnazian_Safehold/npcs/qm2.lua | 3 | 1677 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: ???
-- Involved in Quest: Unforgiven
-- @zone 26
-- !pos 110.714 -40.856 -53.154
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
require("scripts/zones/Tavnazian_Safehold/TextIDs")
require("scri... | gpl-3.0 |
n1ghtmare/Algorithm-Implementations | Josephus_Problem/Lua/Yonaba/josephus.lua | 26 | 1689 | -- Josephus problem implementation
-- See: http://en.wikipedia.org/wiki/Josephus_problem
-- Returns the survivor
-- n : the initial number of people
-- k : the count for each step
-- returns : the survivor's number
local function josephus_recursive(n, k)
if n == 1 then return 1
else
return ((joseph... | mit |
jono659/enko | scripts/zones/Castle_Zvahl_Keep_[S]/Zone.lua | 28 | 1341 | -----------------------------------
--
-- Zone: Castle_Zvahl_Keep_[S] (155)
--
-----------------------------------
package.loaded["scripts/zones/Castle_Zvahl_Keep_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Castle_Zvahl_Keep_[S]/TextIDs"... | gpl-3.0 |
imanmafi/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 |
jsharf/mal | lua/step6_file.lua | 3 | 3379 | #!/usr/bin/env lua
local table = require('table')
local readline = require('readline')
local utils = require('utils')
local types = require('types')
local reader = require('reader')
local printer = require('printer')
local Env = require('env')
local core = require('core')
local List, Vector, HashMap = types.List, typ... | mpl-2.0 |
arcemu-ng/arcemu | src/scripts/lua/LuaBridge/0Misc/0LCF_Includes/LCF_Global.lua | 13 | 3939 | --[[
* ArcEmu MMORPG Server
* Copyright (C) 2005-2007 Ascent Team <http://www.ascentemu.com/>
* Copyright (C) 2008-2010 <http://www.ArcEmu.org/>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Softwa... | agpl-3.0 |
Configi/configi | tests/lua-module-exec.lua | 1 | 2700 | package.path="vendor/lua/?.lua"
local lib = require "lib"
local file = lib.file
local util = lib.util
local random = util.random_string
local T = require "u-test"
local exec = require"exec"
T["exec.context"] = function()
local s = random(12)
local touch = exec.ctx"touch"
touch(s)
T.equal(true, file.test(s))
o... | mit |
Arcscion/Shadowlyre | scripts/zones/Vunkerl_Inlet_[S]/Zone.lua | 10 | 2225 | -----------------------------------
--
-- Zone: Vunkerl_Inlet_[S] (83)
--
-----------------------------------
package.loaded["scripts/zones/Vunkerl_Inlet_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Vunkerl_Inlet_[S]/TextIDs");
require("scripts/globals/settings");
require("scripts/gl... | gpl-3.0 |
jono659/enko | scripts/zones/Ordelles_Caves/npcs/qm2.lua | 17 | 1484 | -----------------------------------
-- Area: Ordelle's Caves
-- NPC: ??? (qm2)
-- Involved in Quest: A Squire's Test II
-- @pos -94 1 273 193
-------------------------------------
package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/sett... | gpl-3.0 |
jono659/enko | scripts/zones/Bhaflau_Thickets/npcs/qm1.lua | 15 | 1188 | -----------------------------------
-- Area: Bhaflau Thickets
-- NPC: ??? (Spawn Lividroot Amooshah(ZNM T2))
-- @pos 334 -10 184 52
-----------------------------------
package.loaded["scripts/zones/Bhaflau_Thickets/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bhaflau_Thickets/TextIDs");... | gpl-3.0 |
N0U/Zero-K | LuaUI/Widgets/gui_chili_proconsole_test.lua | 2 | 46906 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Chili Pro Console",
desc = "v0.016 Chili Chat Pro Console.",
author = "CarRepairer",
... | gpl-2.0 |
jono659/enko | scripts/zones/Dynamis-Bastok/mobs/Gu_Dha_Effigy.lua | 11 | 1040 | -----------------------------------
-- Area: Dynamis Bastok
-- NPC: Gu'Dha Effigy
-- Mega Boss
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/titles");
require("scripts/globals/dynamis");
-----------------------------------
-- onMobSpawn Action
-------------... | gpl-3.0 |
N0U/Zero-K | LuaUI/Configs/customCmdTypes.lua | 3 | 8909 | -- This is the list of name ("action name") related to unit command. This name won't work using command line (eg: /fight, won't activate FIGHT command) but it can be binded to a key (eg: /bind f fight, will activate FIGHT when f is pressed)
-- In reverse, one can use Spring.GetActionHotkey(name) to get the key binded t... | gpl-2.0 |
Configi/configi | bin/cfg.lua | 1 | 5409 | local start = os.time()
local cstart = os.clock()
local argparse = require "argparse"
local parser = argparse("cfg", "Configi. A wrapper to rerun, for lightweight configuration management.")
parser:argument("script", "Script to load.")
parser:flag("-v --verbose", "Verbose output.")
parser:flag("-i --inline", "Inline ST... | mit |
LouisK130/Orange-Cosmos-Roleplay | ocrp/gamemode/client/crafting.lua | 1 | 16556 | OCRP_CRAFTINGMENU = nil
function OpenCraftingMenu()
local frame = vgui.Create("OCRP_BaseMenu")
frame:SetSize(585, 400)
frame:Center()
frame:SetOCRPTitle("Crafting")
frame:MakePopup()
OCRP_CRAFTINGMENU = frame
local itemList = vgui.Create("DPanelList", frame)
itemList:EnableVe... | mit |
markofu/scripts | nmap/nmap/nselib/gps.lua | 3 | 3165 | local bit = require "bit"
local os = require "os"
local package = require "package"
local stdnse = require "stdnse"
local string = require "string"
_ENV = stdnse.module("gps", stdnse.seeall)
---
-- A smallish gps parsing module.
-- Currently does GPRMC NMEA decoding
--
-- @author "Patrik Karlsson <patrik@cqure.net>"
-... | gpl-2.0 |
Arcscion/Shadowlyre | scripts/globals/abilities/martyr.lua | 4 | 1804 | -----------------------------------
-- Ability: Martyr
-- Sacrifices HP to heal a party member double the amount.
-- Obtained: White Mage Level 75
-- Recast Time: 0:10:00
-- Duration: Instant
-- Target: Party member, cannot target self.
-----------------------------------
require("scripts/globals/status");
require("scr... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/Buburimu_Peninsula/npcs/Lobho_Ukipturi.lua | 3 | 1764 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Lobho Ukipturi
-- !pos -485 -31 50 118
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/Inner_Horutoto_Ruins/npcs/_5ce.lua | 3 | 1053 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: _5ce (Gate of Earth)
-- !pos -228 0 140 192
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Inner_Horutoto_Ruins/TextIDs");
----... | gpl-3.0 |
MostTheBest/Nod-32 | plugins/google.lua | 94 | 1176 | 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 |
jono659/enko | scripts/zones/Buburimu_Peninsula/npcs/Signpost.lua | 13 | 1351 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Signpost
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Buburimu_Peninsula/TextIDs");
-----------------------------------
-- onTrad... | gpl-3.0 |
jono659/enko | scripts/zones/Selbina/npcs/Elfriede.lua | 17 | 1951 | -----------------------------------
-- Area: Selbina
-- NPC: Elfriede
-- Involved In Quest: The Tenshodo Showdown
-- @pos 61 -15 10 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
req... | gpl-3.0 |
tdzl2003/fbmake | fbmake/fbmake_version.lua | 1 | 1625 | -- NOTICE:
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTOR... | bsd-3-clause |
Arcscion/Shadowlyre | scripts/zones/Abyssea-Attohwa/npcs/qm1.lua | 3 | 1348 | -----------------------------------
-- Zone: Abyssea-Attohwa
-- NPC: qm1 (???)
-- Spawns Granite Borer
-- !pos ? ? ? 215
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/globals/abilities/altruism.lua | 4 | 1181 | -----------------------------------
-- Ability: Altruism
-- Increases the accuracy of your next White Magic spell.
-- Obtained: Scholar Level 75 Tier 2 Merit Points
-- Recast Time: Stratagem Charge
-- Duration: 1 white magic spell or 60 seconds, whichever occurs first
--
-- Level |Charges |Recharge Time per Charge
--... | gpl-3.0 |
jono659/enko | scripts/globals/items/bunch_of_gysahl_greens.lua | 18 | 1506 | -----------------------------------------
-- ID: 4545
-- Item: Bunch of Gysahl Greens
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility +3
-- Vitality -5
-- Additional Effect with Chocobo Shirt
-- Agility +10
-----------------------------------------
require("scripts/globals/status")... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/Garlaige_Citadel/npcs/qm10.lua | 3 | 1371 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: qm10 (???)
-- Involved in Quest: Hitting the Marquisate (THF AF3)
-- !pos -139.895 -5.500 154.513 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("s... | gpl-3.0 |
hypnoscope/let-s-code-an-indie-game | episode_29/src/logic/rooms/tilemap.lua | 1 | 1716 | local tilemap = {}
local getTile = function (self, x, y, tileSize)
local i = (math.floor(x / tileSize) + math.floor(y / tileSize) * self.tilesWide) + 1
self.lastGotTile = i
return self.map:sub(i,i)
end
local draw = function (self, view, tilesheet)
if self.background then
view:inBackgroundContext(functio... | mit |
jono659/enko | scripts/globals/weaponskills/tachi_yukikaze.lua | 30 | 1722 | -----------------------------------
-- Tachi Yukikaze
-- Great Katana weapon skill
-- Skill Level: 200 (Samurai only.)
-- Blinds target. Damage varies with TP.
-- Blind effect duration is 60 seconds when unresisted.
-- Will stack with Sneak Attack.
-- Tachi: Yukikaze appears to have an attack bonus of 50%. http:... | gpl-3.0 |
zhaoxx063/snort3 | src/managers/snort_config.lua | 5 | 3043 | ---------------------------------------------------------------------------
-- Copyright (C) 2014-2015 Cisco and/or its affiliates. All rights reserved.
--
-- This program is free software; you can redistribute it and/or modify it
-- under the terms of the GNU General Public License Version 2 as published
-- by the Fre... | gpl-2.0 |
Arcscion/Shadowlyre | scripts/zones/North_Gustaberg/npcs/Heavy_Fog_IM.lua | 3 | 3335 | -----------------------------------
-- Area: North Gustaberg
-- NPC: Heavy Fog, I.M.
-- Type: Border Conquest Guards
-- !pos -520.704 38.75 560.258 106
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conque... | gpl-3.0 |
Shekeen/wesnoth | data/ai/micro_ais/micro_ai_wml_tag.lua | 17 | 25773 | local H = wesnoth.require "lua/helper.lua"
local W = H.set_wml_action_metatable {}
local MAIH = wesnoth.require("ai/micro_ais/micro_ai_helper.lua")
function wesnoth.wml_actions.micro_ai(cfg)
local CA_path = 'ai/micro_ais/cas/'
cfg = cfg.__parsed
-- Add translation for old-syntax animal MAIs to new syntax... | gpl-2.0 |
Arcscion/Shadowlyre | scripts/globals/items/serving_of_zaru_soba.lua | 12 | 1394 | -----------------------------------------
-- ID: 5727
-- Item: serving_of_zaru_soba
-- Food Effect: 30Min?, All Races
-----------------------------------------
-- Agility 3
-- HP % 12 (cap 180)
-- Resist Sleep +5
-----------------------------------------
require("scripts/globals/status");
----------------------------... | gpl-3.0 |
DEVASL/DEVASL-V1 | plugins/msg_checks.lua | 1 | 11673 | --Begin msg_checks.lua
--Begin pre_process function
local function pre_process(msg)
-- Begin 'RondoMsgChecks' text checks by @rondoozle
if is_chat_msg(msg) or is_super_group(msg) then
if msg and not is_momod(msg) and not is_whitelisted(msg.from.id) then --if regular user
local data = load_data(_config.moderatio... | gpl-3.0 |
jono659/enko | scripts/zones/Port_Bastok/npcs/HomePoint#2.lua | 12 | 1242 | -----------------------------------
-- Area: Port_Bastok
-- NPC: HomePoint#2
-- @pos 42 8.5 -244 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Port_Bastok/TextIDs");
require("scripts/globals/hom... | gpl-3.0 |
marvinkopf/cuberite | Server/Plugins/APIDump/Hooks/OnChunkGenerating.lua | 44 | 1623 | return
{
HOOK_CHUNK_GENERATING =
{
CalledWhen = "A chunk is about to be generated. Plugin can override the built-in generator.",
DefaultFnName = "OnChunkGenerating", -- also used as pagename
Desc = [[
This hook is called before the world generator starts generating a chunk. The plugin may provide
some or... | apache-2.0 |
jono659/enko | scripts/zones/Chamber_of_Oracles/npcs/Pedestal_of_Dark.lua | 12 | 2257 | -----------------------------------
-- Area: Chamber of Oracles
-- NPC: Pedestal of Dark
-- Involved in Zilart Mission 7
-- @pos 199 -2 36 168
-------------------------------------
package.loaded["scripts/zones/Chamber_of_Oracles/TextIDs"] = nil;
-------------------------------------
require("scripts/globals... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/Qulun_Dome/npcs/The_Mute.lua | 3 | 1124 | -----------------------------------
-- Area: Qulun Dome
-- NPC: The Mute
-- @zone 148
-- !pos <many>
-----------------------------------
package.loaded["scripts/zones/Beadeaux/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Beadeaux/TextIDs");
-----------------------------------
-- onTrad... | gpl-3.0 |
jono659/enko | scripts/zones/Windurst_Woods/npcs/Lih_Pituu.lua | 3 | 1828 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Lih Pituu
-- Type: Bonecraft Adv. Image Support
-- @pos -5.471 -6.25 -141.211 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Windurs... | gpl-3.0 |
jono659/enko | scripts/globals/items/excalibur.lua | 9 | 1183 | -----------------------------------------
-- ID: 18276
-- Item: Excalibur
-- Additional Effect: Damage proportionate to current HP (25% Current HP)
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/weaponskills");
-----------------------------------
-- onAdd... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/PsoXja/npcs/_098.lua | 3 | 2848 | -----------------------------------
-- Area: Pso'Xja
-- NPC: _098 (Stone Gate)
-- Notes: Spawns Gargoyle when triggered
-- !pos 258.399 -1.925 -70.000 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
re... | gpl-3.0 |
N0U/Zero-K | scripts/shieldbomb.lua | 5 | 5056 |
--by Chris Mackey
--include "lua/test.lua"
--pieces
local body = piece "body"
local digger = piece "digger"
local jet = piece "jet"
local lf_leg = piece "legflup"
local lf_knee = piece "legflmid"
local lf_foot = piece "legflshin"
local rf_leg = piece "legfrup"
local rf_knee = piece "legfrmid"
local rf_foot = piece... | gpl-2.0 |
maysam0111/nn | bot/seedbot.lua | 1 | 13940 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()
-- This function is ... | gpl-2.0 |
Arcscion/Shadowlyre | scripts/zones/Labyrinth_of_Onzozo/npcs/Treasure_Chest.lua | 17 | 4123 | -----------------------------------
-- Area: Labyrinth of Onzozo
-- NPC: Treasure Chest
-- @zone 213
-----------------------------------
package.loaded["scripts/zones/Labyrinth_of_Onzozo/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
requ... | gpl-3.0 |
jono659/enko | scripts/zones/Northern_San_dOria/npcs/Mevaloud.lua | 36 | 1427 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Mevaloud
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/Dynamis-San_dOria/mobs/Overlord_s_Tombstone.lua | 22 | 1435 | -----------------------------------
-- Area: Dynamis San d'Oria
-- MOB: Overlord's Tombstone
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/dynamis");
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/Windurst_Woods/npcs/Ronana.lua | 3 | 1810 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Ronana
-- Type: Bonecraft Image Support
-- !pos -1.540 -6.25 -144.517 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require... | gpl-3.0 |
jono659/enko | scripts/zones/Eastern_Altepa_Desert/npcs/Telepoint.lua | 18 | 1640 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: Telepoint
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/Eastern_Altepa_Desert/Te... | gpl-3.0 |
kami22/iran-bat | plugins/owners.lua | 284 | 12473 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
srvz/telegram-bot | plugins/boobs.lua | 731 | 1601 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
N0U/Zero-K | scripts/spideraa.lua | 11 | 4807 | include "spider_walking.lua"
include "constants.lua"
--------------------------------------------------------------------------------
-- pieces
--------------------------------------------------------------------------------
local base = piece 'base'
local turret = piece 'turret'
local barrel = piece 'barrel'
local... | gpl-2.0 |
ANONYMOUSE4/DevABBAS_ALSAIDI | plugins/textphoto.lua | 1 | 1680 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY ABBAS ALSAIDI ▀▄ ▄▀
▀▄ ▄▀ WRITER ABBAS ▀▄ ▄▀
▀▄ ▄▀ Dev@Abbas9_9 ▀▄ ▄▀
▀▄ ▄▀ Chage The Picture To Stickr ▀▄ ▄▀
▀▄ ▄▀ ... | gpl-2.0 |
Arcscion/Shadowlyre | scripts/zones/Arrapago_Remnants/IDs.lua | 13 | 1635 | Arrapago = {
text = {
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379, -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6384, -- Obtained: <item>
GIL_OBTAINED = 6385, -- Obtained <number> gil
KEYITEM_OBTAINED = 6387, -- Obtain... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/Bostaunieux_Oubliette/Zone.lua | 1 | 2284 | -----------------------------------
--
-- Zone: Bostaunieux_Oubliette (167)
--
-----------------------------------
package.loaded["scripts/zones/Bostaunieux_Oubliette/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bostaunieux_Oubliette/TextIDs");
require("scripts/zones/Bostaunieux_Oubliette... | gpl-3.0 |
AegisEmu/AegisEmu | src/scripts/LuaScripts/Unit - HillsbradFoothills - Mobs.lua | 1 | 1856 | --[[
******************************************************************
* _____ ___ _ *
* ( _ ) ( _`\ _ ( )_ *
* | (_) | _ __ ___ | (_(_) ___ _ __ (_) _ _ | ,_) *
* | _ |( '__)/'___)`\__ \ /'___)... | agpl-3.0 |
jono659/enko | scripts/globals/items/balik_sandvici.lua | 35 | 1435 | -----------------------------------------
-- ID: 5590
-- Item: Balik Sandvici
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 3
-- Agility 1
-- Intelligence 3
-- Mind -2
-- Ranged ACC 5
-----------------------------------------
require("scripts/globals/status");
-... | gpl-3.0 |
jono659/enko | scripts/globals/items/plate_of_salmon_sushi_+1.lua | 35 | 1480 | -----------------------------------------
-- ID: 5664
-- Item: plate_of_salmon_sushi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Strength 2
-- Accuracy % 15
-- Ranged ACC % 15
-----------------------------------------
require("scripts/globals/status");
----------------... | gpl-3.0 |
jono659/enko | scripts/globals/spells/bluemagic/Yawn.lua | 7 | 1454 | -----------------------------------------
-- Spell: Yawn
-- Puts all enemies within range to sleep
-- Spell cost: 55 MP
-- Monster Type: Birds
-- Spell Type: Magical (Light)
-- Blue Magic Points: 3
-- Stat Bonus: CHR+1, HP+5
-- Level: 64
-- Casting Time: 3 seconds
-- Recast Time: 60 seconds
-- Duration: 90 s... | gpl-3.0 |
abasshacker/aliend0 | plugins/add_bot.lua | 189 | 1492 | --[[
Bot can join into a group by replying a message contain an invite link or by
typing !add [invite link].
URL.parse cannot parsing complicated message. So, this plugin only works for
single [invite link] in a post.
[invite link] may be preceeded but must not followed by another characters.
--]]
do
local function... | gpl-2.0 |
joewalker/prosody-modules | mod_auth_custom_http/mod_auth_custom_http.lua | 32 | 1346 | -- Prosody IM
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local new_sasl = require "util.sasl".new;
local json_encode = require "util.json";
local http = require "socket.http";
local options = module:get... | mit |
N0U/Zero-K | scripts/commsupport.lua | 12 | 16403 | include "constants.lua"
local spSetUnitShieldState = Spring.SetUnitShieldState
-- pieces
local base = piece 'base'
local pelvis = piece 'pelvis'
local turret = piece 'turret'
local torso = piece 'torso'
local head = piece 'head'
local armhold = piece 'armhold'
local ruparm = piece 'ruparm'
local rarm = piece '... | gpl-2.0 |
jono659/enko | scripts/zones/Windurst_Woods/npcs/Manyny.lua | 36 | 1453 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Manyny
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
require("scripts/zones/Windurst_Woods/Tex... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/globals/mobskills/necrobane.lua | 43 | 1075 | ---------------------------------------------
-- Necrobane
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------
function onMobSkillCheck(target,mob,skill)
if(mob:g... | gpl-3.0 |
jono659/enko | scripts/globals/mobskills/Auroral_Drape.lua | 6 | 1030 | ---------------------------------------------
-- Auroral Drape
--
-- Description: Silence and Blind Area of Effect (10.0')
-- Type: Enfeebling
-- Utsusemi/Blink absorb: Ignores shadows
---------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/s... | gpl-3.0 |
imanmafi/Algorithm-Implementations | Euclidean_algorithm/Lua/Yonaba/euclidian.lua | 27 | 1312 | -- Checks if a is an integer value
local function isInt(a)
return math.floor(a) == a
end
-- Performs checks and provides early exit
-- a, b must be positive integers
-- handles GCD(a,0) = a, GCD(0,b) = b
-- GCD(0,0) do not exist
-- See: http://en.wikipedia.org/wiki/Binary_GCD_algorithm#Algorithm
local function checkA... | mit |
adib1380/anti | plugins/get.lua | 613 | 1067 | local function get_variables_hash(msg)
if msg.to.type == 'chat' then
return 'chat:'..msg.to.id..':variables'
end
if msg.to.type == 'user' then
return 'user:'..msg.from.id..':variables'
end
end
local function list_variables(msg)
local hash = get_variables_hash(msg)
if hash then
local names =... | gpl-2.0 |
Arcscion/Shadowlyre | scripts/zones/The_Celestial_Nexus/mobs/Orbital.lua | 23 | 2360 | -----------------------------------
-- Area: The Celestial Nexus
-- NPC: Orbital
-- Zilart Mission 16 BCNM Fight
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onMobInitialize Action
--... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/Apollyon/Zone.lua | 31 | 11702 | -----------------------------------
--
-- Zone: Apollyon
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
require("scripts/zones/Apollyon/TextIDs");
require("scripts/globals/limbus");
-----------------------------------
-- onInitiali... | gpl-3.0 |
jono659/enko | scripts/zones/Tavnazian_Safehold/npcs/Aligi-Kufongi.lua | 15 | 2993 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Aligi-Kufongi
-- Title Change NPC
-- @pos -23 -21 15 26
-----------------------------------
require("scripts/globals/titles");
local title2 = { TAVNAZIAN_SQUIRE ,PUTRID_PURVEYOR_OF_PUNGENT_PETALS , MONARCH_LINN_PATROL_GUARD , SIN_HUNTER_... | gpl-3.0 |
hypnoscope/let-s-code-an-indie-game | episode_30/src/logic/gamestate.lua | 4 | 1289 | local map = require("src.logic.rooms.map")
local gamestate = {}
local modulate = function (self)
return (self.updates % 2) == 0
end
local addEntity = function (self, entity)
table.insert(self.entities, entity)
end
local update = function (self, dt)
self.updates = self.updates + 1
self.dt = dt
self.map:upd... | mit |
hypnoscope/let-s-code-an-indie-game | episode_31/src/logic/gamestate.lua | 4 | 1289 | local map = require("src.logic.rooms.map")
local gamestate = {}
local modulate = function (self)
return (self.updates % 2) == 0
end
local addEntity = function (self, entity)
table.insert(self.entities, entity)
end
local update = function (self, dt)
self.updates = self.updates + 1
self.dt = dt
self.map:upd... | mit |
Arcscion/Shadowlyre | scripts/globals/weaponskills/blast_arrow.lua | 10 | 1384 | -----------------------------------
-- Blast Arrow
-- Archery weapon skill
-- Skill level: 200
-- Delivers a melee-distance ranged attack. params.accuracy varies with TP.
-- Aligned with the Snow Gorget & Light Gorget.
-- Aligned with the Snow Belt & Light Belt.
-- Element: None
-- Modifiers: STR:16% ; AGI:25%
-- 100%T... | gpl-3.0 |
N0U/Zero-K | scripts/turretgauss.lua | 3 | 4665 | include "constants.lua"
--pieces
local concrete, belt = piece('Concrete','Belt');
local wheel, arm, hand, cannon = piece('Wheel', 'Arm','Hand', 'Cannon');
local barrel1, barrel2, barrel3, muzzle = piece("Barrel1","Barrel2","Barrel3","Muzzle");
local lidLeft, lidRight = piece("lidLeft","lidRight");
local aimProxy = pie... | gpl-2.0 |
Arcscion/Shadowlyre | scripts/globals/weaponskills/ukkos_fury.lua | 19 | 1877 | -----------------------------------
-- Ukko's Fury
-- Great Axe Weapon Skill
-- Skill Level: N/A
-- Description: Delivers a twofold attack that slows target. Chance of params.critical hit varies with TP. Ukonvasara: Aftermath.
-- Available only when equipped with Ukonvasara (85), Ukonvasara (90), Ukonvasara (95), Masch... | gpl-3.0 |
kostyll/node9 | LuaJIT-2.0.4/src/jit/dump.lua | 84 | 19509 | ----------------------------------------------------------------------------
-- LuaJIT compiler dump module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
-... | mit |
Arcscion/Shadowlyre | scripts/globals/weaponskills/rudras_storm.lua | 22 | 1737 | -----------------------------------
-- Rudra's Storm
-- Dagger weapon skill
-- Skill level: N/A
-- Deals triple damage and weighs target down (duration: 60s). Damage varies with TP.
-- Aligned with the Aqua Gorget, Snow Gorget & Shadow Gorget.
-- Aligned with the Aqua Belt, Snow Belt & Shadow Belt.
-- Element: None
-- ... | gpl-3.0 |
maysam0111/nn | plugins/bot_manager.lua | 89 | 6427 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(receiver, '... | gpl-2.0 |
Arcscion/Shadowlyre | scripts/globals/items/blowfish.lua | 12 | 1323 | -----------------------------------------
-- ID: 5812
-- Item: Blowfish
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 1
-- Mind -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
----------... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.