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 |
|---|---|---|---|---|---|
Ninjistix/darkstar | scripts/globals/spells/bluemagic/bomb_toss.lua | 36 | 1438 | -----------------------------------------
-- Spell: Bomb Toss
-- Throws a bomb at an enemy
-- Spell cost: 42 MP
-- Monster Type: Beastmen
-- Spell Type: Magical (Fire)
-- Blue Magic Points: 3
-- Stat Bonus: STR+2
-- Level: 28
-- Casting Time: 3.75 seconds
-- Recast Time: 24.5 seconds
-- Magic Bursts on: Liquefaction, F... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/items/broiled_pipira.lua | 3 | 1304 | -----------------------------------------
-- ID: 4585
-- Item: Broiled Pipira
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Dexterity 4
-- Mind -1
-- Attack % 14 (cap 80)
-- Ranged ATT % 14 (cap 80)
-----------------------------------------
require("scripts/globals/status");
------------... | gpl-3.0 |
Inorizushi/DDR-SN1HD | Scripts/Branches.lua | 1 | 4282 | function SMOnlineScreen()
for pn in ivalues(GAMESTATE:GetHumanPlayers()) do
if not IsSMOnlineLoggedIn(pn) then
return "ScreenSMOnlineLogin"
end
end
return "ScreenNetRoom"
end
function CorrectSSM()
Trace "Yes, we get called"
if IsStarterMode() then
return "ScreenSelectMusicStarter"
else
l... | gpl-3.0 |
disslove85/NOVA-BOT | plugins/groupmanager.lua | 9 | 17511 | -- data saved to moderation.json
-- check moderation plugin
-- make sure to set with value that not higher than stats.lua
local NUM_MSG_MAX = 3
local TIME_CHECK = 4 -- seconds
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if not is_admin(msg) then
return... | gpl-2.0 |
bluetomatoes/ExploreTimelines | Code/1776USA.lua | 1 | 5306 | W,H = display.contentWidth, display.contentHeight
local storyboard = require "storyboard"
local scene = storyboard.newScene()
foldername = "1776 USA"
function scene:createScene(event)
end
function scene:enterScene(event)
group = display.newGroup()
storyboard.removeAll()
-- background = display.newRect(0,0... | mit |
Ninjistix/darkstar | scripts/globals/spells/bluemagic/firespit.lua | 35 | 1451 | -----------------------------------------
-- 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: Liquefactio... | gpl-3.0 |
SPARKTEA/sparkteam1 | plugins/owners.lua | 194 | 23755 | 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)]['settings'... | gpl-3.0 |
wounds1/zaza2 | plugins/owners.lua | 194 | 23755 | 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)]['settings'... | gpl-2.0 |
neofob/sile | lua-libraries/repl/init.lua | 4 | 9885 | -- Copyright (c) 2011-2014 Rob Hoelz <rob@hoelz.ro>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy of
-- this software and associated documentation files (the "Software"), to deal in
-- the Software without restriction, including without limitation the rights to
-- use, copy, modify,... | mit |
pfirsich/kraidGUI | kraidGUI/widgets/scrollbar.lua | 1 | 1602 | function getModule(gui)
local Scrollbar = gui.internal.class(gui.widgets.Base)
function Scrollbar:init(params)
self.type = "Scrollbar"
self.position = {0, 0}
self.vertical = true -- should this be two different widgets?
self.value = 0.0
self.scrollDelta = 0.1
se... | mit |
mamad-ali/xilibot | plugins/trivia.lua | 647 | 6784 | do
-- Trivia plugin developed by Guy Spronck
-- Returns the chat hash for storing information
local function get_hash(msg)
local hash = nil
if msg.to.type == 'chat' then
hash = 'chat:'..msg.to.id..':trivia'
end
if msg.to.type == 'user' then
hash = 'user:'..msg.from.id..':trivia'
end
return hash
en... | gpl-2.0 |
abosalah22/zak | plugins/aboshosho1.lua | 2 | 5016 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ help1 : مساعدة ▀▄ ▄▀
▀▄▀... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/King_Ranperres_Tomb/npcs/_5a0.lua | 5 | 2134 | -----------------------------------
-- Area: King Ranperre's Tomb
-- DOOR: _5a0 (Heavy Stone Door)
-- !pos -39.000 4.823 20.000 190
-----------------------------------
package.loaded["scripts/zones/King_Ranperres_Tomb/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/King_Ranperres_Tomb/TextID... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Sanraku.lua | 4 | 9448 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Sanraku
-- Type: Zeni NM pop item and trophy management.
-- !pos -125.724 0.999 22.136 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("script... | gpl-3.0 |
mandersan/premake-core | modules/vstudio/tests/vc200x/test_configuration.lua | 15 | 2175 | --
-- tests/actions/vstudio/vc200x/test_configuration.lua
-- Test the Visual Studio 2002-2008 project's Configuration block
-- Copyright (c) 2009-2013 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vstudio_vc200x_configuration")
local vstudio = p.vstudio
local vc200x = p.vst... | bsd-3-clause |
Ninjistix/darkstar | scripts/globals/abilities/tabula_rasa.lua | 2 | 1119 | -----------------------------------
-- Ability: Tabula Rasa
-- Optimizes both white and black magic capabilities while allowing charge-free stratagem use.
-- Obtained: Scholar Level 1
-- Recast Time: 1:00:00
-- Duration: 0:03:00
-----------------------------------
require("scripts/globals/settings");
require("scripts/g... | gpl-3.0 |
fmassa/torch7 | init.lua | 2 | 3523 |
-- We are using paths.require to appease mkl
-- Make this work with LuaJIT in Lua 5.2 compatibility mode, which
-- renames string.gfind (already deprecated in 5.1)
if not string.gfind then
string.gfind = string.gmatch
end
require "paths"
paths.require "libtorch"
--- package stuff
function torch.packageLuaPath(n... | bsd-3-clause |
TRex22/hawkthorne-journey | src/positions/chang.lua | 4 | 4238 | return {
hand_left = {
{ {9, 40}, {11, 36}, {11, 37}, {11, 36}, {0, 0}, {9, 40}, {9, 40}, {10, 40}, {10, 39}, {10, 39}, {0, 40}, {-10, 40}, },
{ {9, 40}, {9, 36}, {9, 37}, {9, 36}, {0, 0}, {9, 40}, {9, 40}, {-10, 40}, {-10, 39}, {-10, 39}, {-2, 40}, {-9, 40}, },
{ {11, 34}, {0, 0}, {0, 0}, {9, 40}, ... | mit |
studio666/cust-live-deb | scripts/settings/binary/xmpv/xmpv-tmsu.lua | 3 | 2126 | -----------------------------------------------------------------------------
-- Tmsu class will manipulate TMSU application.
-----------------------------------------------------------------------------
require 'xmpv-utils'
require 'xmpv-msg'
-- ***** Variables *****
Tmsu = {
msg = Msg:new(),
}
-- 'Constructor'... | gpl-2.0 |
Ninjistix/darkstar | scripts/globals/weaponskills/iron_tempest.lua | 25 | 1382 | -----------------------------------
-- Iron Tempest
-- Great Axe weapon skill
-- Skill Level: 40
-- Delivers a single-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Soil Gorget.
-- Aligned with the Soil Belt.
-- Element: None
-- Modifiers: STR:30%
-- 100%TP 200%TP 300%TP
-... | gpl-3.0 |
DarkRing/TeleDarkRing | plugins/translate.lua | 1 | 1345 | do
function translate(source_lang, target_lang, text)
local path = "http://translate.google.com/translate_a/single"
-- URL query parameters
local params = {
client = "gtx",
ie = "UTF-8",
oe = "UTF-8",
hl = "en",
dt = "t",
tl = target_lang or "en",
sl = source_lang or "auto",
q = URL.escape(text)
}
local ... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Carpenters_Landing/npcs/relic.lua | 5 | 1555 | -----------------------------------
-- Area: Carpenter's Landing
-- NPC: <this space intentionally left blank>
-- !pos -99 -0 -514 2
-----------------------------------
package.loaded["scripts/zones/Carpenters_Landing/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Carpenters_Landing/TextID... | gpl-3.0 |
jagu-sayan/42Premake | tests/actions/vstudio/test_vs2010_filters.lua | 3 | 8232 | T.vs2010_filters = { }
local vs10_filters = T.vs2010_filters
local vs10_helpers = premake.vstudio.vs10_helpers
local sln, prj
function vs10_filters.setup()
_ACTION = "vs2010"
sln = solution "MySolution"
configurations { "Debug" }
platforms {}
prj = project "MyProject"
language "C++"
kind ... | bsd-3-clause |
BooM-amour/bomb | plugins/lock_eng.lua | 52 | 1075 |
antienglish = {}-- An empty table for solving multiple kicking problem
do
local function run(msg, matches)
if msg.to.type == 'chat' then
if is_momod(msg) then -- Ignore mods,owner,admins
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)]['settings']['lock_eng'] then
... | gpl-2.0 |
drhelius/bstone-ios | dependencies/SDL-1bc5372ee27f/premake/util/sdl_gen_config.lua | 7 | 2700 | -- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for an... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Northern_San_dOria/npcs/Chapal-Afal_WW.lua | 5 | 2547 | -----------------------------------
-- Area: Northern Sand Oria
-- NPC: Chapal-Afal, W.W.
-- !pos -55 -2 31 231
-- X Grant Signet
-- X Recharge Emperor Band, Empress Band, or Chariot Band
-- X Accepts traded Crystals to fill up the Rank bar to open new Missions.
-- X Sells items in exchange for Conquest Points
-- X St... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Renadile.lua | 4 | 3977 | -----------------------------------
-- Area: Southern San d'Oria [S]
-- NPC: Renadile
-- Armor Storage NPC
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/armorstora... | gpl-3.0 |
ccyphers/kong | kong/templates/kong_defaults.lua | 1 | 1482 | return [[
prefix = /usr/local/kong/
log_level = notice
custom_plugins = NONE
anonymous_reports = on
proxy_listen = 0.0.0.0:8000
proxy_listen_ssl = 0.0.0.0:8443
admin_listen = 0.0.0.0:8001
admin_listen_ssl = 0.0.0.0:8444
nginx_worker_processes = auto
nginx_optimizations = on
nginx_daemon = on
mem_cache_size = 128m
ssl ... | apache-2.0 |
Ninjistix/darkstar | scripts/zones/Port_Windurst/npcs/Kuroido-Moido.lua | 5 | 3716 | -----------------------------------
-- Area: Port Windurst
-- NPC: Kuriodo-Moido
-- Involved In Quest: Making Amends, Wonder Wands
-- Starts and Finishes: Making Amens!
-- Working 100%
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Marquis_Sabnak.lua | 7 | 1298 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Marquis Sabnak
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
function onMobEngaged(mob,target)
end;
function onMobFight(mob,target)
... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/mobskills/plague_swipe.lua | 33 | 1185 | ---------------------------------------------
-- Plague Swipe
--
-- Description: Delivers a threefold attack in an cone effect behind user. Additional effect: Bio + Plague
-- Type: Physical
-- 2-3 Shadows
-- Range: Backward Arc
---------------------------------------------
require("scripts/globals/settings");
requ... | gpl-3.0 |
neofob/sile | core/nodefactory.lua | 1 | 14026 | -- Just boxes
_box = std.object {
_type = "Box",
height= 0,
depth= 0,
width= 0,
misfit = false,
type="special",
explicit = false,
discardable = false,
value=nil,
__tostring = function (s) return s.type end,
__concat = function (x,y) return tostring(x)..tostring(y) end,
init = function(self) ret... | mit |
Ninjistix/darkstar | scripts/globals/items/flask_of_holy_water.lua | 4 | 1511 | -----------------------------------------
-- ID: 4154
-- Item: Flask of Holy Water
-- Item Effect: Removes curse
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/msg");
function onItemCheck(target)
return 0;
end;
function onItemUse(target)
local curse = tar... | gpl-3.0 |
Ninjistix/darkstar | scripts/commands/raise.lua | 21 | 1536 | -----------------------------------------------------------------------
-- func: raise <power> <player>
-- desc: Sends raise menu to GM or target player.
-----------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "ss"
};
function error(player, msg)
pl... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/items/bastore_sweeper.lua | 3 | 1158 | -----------------------------------------
-- ID: 5473
-- Item: Bastore Sweeper
-- Food Effect: 5 Min, Mithra only
-----------------------------------------
-- Dexterity -5
-- Vitality +3
-- Defense +15% Cap 50
-----------------------------------------
require("scripts/globals/status");
---------------------------------... | gpl-3.0 |
jagu-sayan/42Premake | src/actions/codeblocks/codeblocks_cbp.lua | 7 | 4449 | --
-- codeblocks_cbp.lua
-- Generate a Code::Blocks C/C++ project.
-- Copyright (c) 2009 Jason Perkins and the Premake project
--
function premake.codeblocks_cbp(prj)
-- alias the C/C++ compiler interface
local cc = premake.gettool(prj)
_p('<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>')
_p('<Co... | bsd-3-clause |
Ninjistix/darkstar | scripts/zones/Meriphataud_Mountains/npcs/Chegourt_RK.lua | 3 | 2985 | -----------------------------------
-- Area: Meriphataud Mountains
-- NPC: Chegourt, R.K.
-- Type: Outpost Conquest Guards
-- !pos -295 16 418 119
-------------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
--------------------------------------
require("scripts/globals/c... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/abilities/fire_shot.lua | 2 | 3036 | -----------------------------------
-- Ability: Fire Shot
-- Consumes a Fire Card to enhance fire-based debuffs. Deals fire-based magic damage
-- Burn effect: Enhanced DoT and INT-
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic"... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/slow_ii.lua | 5 | 1904 | -----------------------------------------
-- Spell: Slow II
-- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and MND.
-- caster:getMerit() returns a value which is equal to the number of merit points TIMES the value of each point
-- Slow II value per point is '1' This is a constant s... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Port_Bastok/npcs/Belka.lua | 5 | 1288 | -----------------------------------
-- Area: Port Bastok
-- NPC: Belka
-- Only sells when Bastok controlls Derfland Region
-- Confirmed shop stock, August 2013
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/horde_lullaby.lua | 5 | 1276 | -----------------------------------------
-- Spell: Horde Lullaby
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;... | gpl-3.0 |
wangyi0226/skynet | test/testselect.lua | 10 | 1813 | local skynet = require "skynet"
local mode = ...
if mode == "slave" then
local COMMAND = {}
function COMMAND.ping(ti, str)
skynet.sleep(ti)
return str
end
function COMMAND.error()
error "ERROR"
end
function COMMAND.exit()
skynet.exit()
end
skynet.start(function()
skynet.dispatch("lua", function(_,_, cmd, ..... | mit |
Ninjistix/darkstar | scripts/globals/weaponskills/bora_axe.lua | 3 | 1974 | -----------------------------------
-- Bora Axe
-- Axe weapon skill
-- Skill level: 290
-- Delivers a single-hit ranged attack at a maximum distance of 15.7'. Chance of binding varies with TP
-- Bind doesn't always break from hitting mob.
-- This Weapon Skill's first hit params.ftp is duplicated for all additional hits... | gpl-3.0 |
kbullaughey/lstm-play | toys/lstm/model-1_layer-variable-reversed.lua | 1 | 9791 | #!/usr/bin/env th
toy = require '../toy/toy'
check = require '../scripts/check_gradients'
require 'lstm'
-- Allow for command-line control over the seed and number of examples.
cmd = torch.CmdLine()
cmd:text()
cmd:text('Train single-layer LSTM model using toy data.')
cmd:text()
cmd:text('Options')
cmd:option('-seed',... | mit |
Ninjistix/darkstar | scripts/zones/Nashmau/npcs/Fhe_Maksojha.lua | 5 | 1880 | -----------------------------------
-- Area: Nashmau
-- NPC: Fhe Maksojha
-- Type: Standard NPC
-- !pos 19.084 -7 71.287 53
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/abilities/double-up.lua | 4 | 2574 | -----------------------------------
-- Ability: Double Up
-- Enhances an active Phantom Roll effect that is eligible for Double-Up.
-- Obtained: Corsair Level 5
-- Recast Time: 8 seconds
-- Duration: Instant
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/ability");
req... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Temple_of_Uggalepih/mobs/Manipulator.lua | 5 | 2254 | ----------------------------------
-- Area: Temple of Uggalipeh
-- NM: Manipulator
-- Notes: Paths around the 2 staircases
-----------------------------------
local path =
{
-17.930, -8.500, -93.215,
-18.553, -7.713, -91.224,
-20.226, -6.250, -89.091,
-21.651, -5.005, -87.401,
-23.137, -3.917, -... | gpl-3.0 |
eugenesan/openwrt-luci | applications/luci-statistics/luasrc/statistics/rrdtool/definitions/nut.lua | 76 | 2595 | --[[
Luci statistics - ups plugin diagram definition
Copyright © 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Copyright © 2012 David Woodhouse <dwmw2@infradead.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You... | apache-2.0 |
premake/premake-4.x | tests/actions/vstudio/vc2010/test_filters.lua | 10 | 4344 | --
-- tests/actions/vstudio/vc2010/test_filters.lua
-- Validate generation of filter blocks in Visual Studio 2010 C/C++ projects.
-- Copyright (c) 2011 Jason Perkins and the Premake project
--
T.vs2010_filters = { }
local suite = T.vs2010_filters
local vc2010 = premake.vstudio.vc2010
--
-- Setup/tear... | bsd-3-clause |
Ninjistix/darkstar | scripts/zones/Rolanberry_Fields/npcs/qm1.lua | 5 | 1040 | -----------------------------------
-- Area: Rolanberry Fields
-- NPC: qm1 (???)
-- !pos -686.216 -31.556 -369.723 110
-- Notes: Spawns Chuglix Berrypaws for ACP mission "Gatherer of Light (I)"
-----------------------------------
package.loaded["scripts/zones/Rolanberry_Fields/TextIDs"] = nil;
------------------------... | gpl-3.0 |
Xagul/forgottenserver | data/creaturescripts/scripts/offlinetraining.lua | 17 | 2368 | function onLogin(player)
local lastLogout = player:getLastLogout()
local offlineTime = lastLogout ~= 0 and math.min(os.time() - lastLogout, 86400 * 21) or 0
local offlineTrainingSkill = player:getOfflineTrainingSkill()
if offlineTrainingSkill == -1 then
player:addOfflineTrainingTime(offlineTime * 1000)
return t... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Bastok_Mines/npcs/Wahid.lua | 5 | 1636 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Wahid
-- Start & Finishes Quest: The Siren's Tear
-- @zone 234
-- !pos 26.305 -1 -66.403
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests"... | gpl-3.0 |
BooM-amour/bomb | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
Ninjistix/darkstar | scripts/globals/spells/dokumori_ichi.lua | 5 | 1412 | -----------------------------------------
-- Spell: Dokumori: Ichi
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/virus.lua | 3 | 1172 | -----------------------------------------
-- Spell: Virus
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
fun... | gpl-3.0 |
EliasOenal/blobby | data/rules/default.lua | 3 | 2859 | -- most simple ruleset: for each mistake, the opponent gets a point
-- includes comments for documentation purposes
__AUTHOR__ = "Blobby Volley 2 Developers"
__TITLE__ = "BV2 Default Rules"
-- rules.lua doc
-- function IsWinning
-- IMPLEMENTED BY rules.lua
-- called when it is determined whether a player has won
... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Meriphataud_Mountains_[S]/Zone.lua | 4 | 1191 | -----------------------------------
--
-- Zone: Meriphataud_Mountains_[S] (97)
--
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Meriphataud_Mountains_[S]/TextIDs");
require("scripts/zones/Meriphatau... | gpl-3.0 |
carnalis/Urho3D | bin/Data/LuaScripts/05_AnimatingScene.lua | 24 | 6673 | -- Animating 3D scene example.
-- This sample demonstrates:
-- - Creating a 3D scene and using a script component to animate the objects
-- - Controlling scene ambience with the Zone component
-- - Attaching a light to an object (the camera)
require "LuaScripts/Utilities/Sample"
function Start()
... | mit |
Ninjistix/darkstar | scripts/zones/Leujaoam_Sanctum/IDs.lua | 6 | 4728 | Leujaoam = {
text = {
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6381, -- You cannot obtain the <item>. Come back after sorting your inventory.
FULL_INVENTORY_AFTER_TRADE = 6385, -- You cannot obtain the <item>. Try trading again after sorting your inventory.
ITEM_OBTAINED ... | gpl-3.0 |
punisherbot/mr.punisher | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
dinodeck/ninety_nine_days_of_dev | 001_cancel_textboxes/manifest.lua | 1 | 13803 | --
-- A manifest of all the game's assets
--
manifest =
{
scripts =
{
['Actions.lua'] =
{
path = "code/Actions.lua"
},
['Character.lua'] =
{
path = "code/Character.lua"
},
['CaptionState.lua'] =
{
... | mit |
Ninjistix/darkstar | scripts/zones/Windurst_Walls/npcs/_6n2.lua | 5 | 5404 | -----------------------------------
-- Area: Windurst Walls
-- Door: House of the Hero
-- Involved in Mission 2-1
-- Involved In Quest: Know One's Onions, Onion Rings, The Puppet Master, Class Reunion
-- !pos -26 -13 260 239
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = ni... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Mazween.lua | 5 | 1347 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Mazween
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
require("scripts/... | gpl-3.0 |
kbullaughey/lstm-play | lstm/D.lua | 1 | 2679 | -- D works like an nn.Identity node, can emit logging information
--
-- It can also permute tensors (if the node takes a single tensor as input).
-- When permuting is enabled, it will permute the first dimension, when
-- enabled, which is assumed to be the batch dimension. The purpose is to screw
-- up the relevance of... | mit |
JimmyS83/packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/policyconfig.lua | 104 | 1918 | -- ------ extra functions ------ --
function policyCheck() -- check to see if this policy's name exceed the maximum of 15 characters
policyNameLength = string.len(arg[1])
if policyNameLength > 15 then
nameTooLong = 1
end
end
function policyWarn() -- display status and warning messages at the top of the page
if ... | gpl-2.0 |
mohammadtofani/fox | plugins/ingroup.lua | 14 | 43892 | 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.id
if member_id ~= our_id then
-- Group configuration
data[tostr... | gpl-2.0 |
mamad-majhol/TeleSecret | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
jokersso3/joker | system/libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
Ninjistix/darkstar | scripts/globals/abilities/pets/attachments/volt_gun.lua | 4 | 1355 | -----------------------------------
-- Attachment: Volt Gun
-----------------------------------
require("scripts/globals/status");
function onEquip(pet)
local skill = math.max(pet:getSkillLevel(22), pet:getSkillLevel(23), pet:getSkillLevel(24))
pet:addMod(MOD_ENSPELL, 6)
pet:addMod(MOD_ENSPELL_DMG, skill *... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Temenos/mobs/Enhanced_Vulture.lua | 28 | 1448 | -----------------------------------
-- Area: Temenos W T
-- NPC: Enhanced_Vulture
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
----------------------------... | gpl-3.0 |
jagu-sayan/42Premake | src/actions/example/example_solution.lua | 71 | 1266 | -- An example solution generator; see _example.lua for action description
--
-- The solution generation function, attached to the action in _example.lua.
-- By now, premake.generate() has created the solution file using the name
-- provided in _example.lua, and redirected input to this new file.
--
function premake... | bsd-3-clause |
dafei2015/hugular_cstolua | Client/Assets/Lua/game/moban.lua | 6 | 1362 | ---------------------------------------------------------------------------------------------------
--===============================================================================================--
--filename: moban.lua
--data:2014.xx.xx
--author:xxx
--desc:xx功能
--=====================================================... | mit |
mamad-majhol/TeleSecret | plugins/feedback.lua | 1 | 1046 | do
function run(msg, matches)
local fuse = '#DearAdmin😜 we have recived a new feedback just now : #newfeedback \n\nID▶️ : ' .. msg.from.id .. '\n\nName▶ : ' .. msg.from.print_name ..'\n\nusername▶️ :@ ' .. msg.from.username ..'\n\n🅿️♏️ :\n\n\n' .. matches[1]
local fuses = '!printf user#id' .. msg.from.id
loc... | gpl-2.0 |
Ninjistix/darkstar | scripts/globals/items/plate_of_tentacle_sushi.lua | 3 | 1460 | -----------------------------------------
-- ID: 5215
-- Item: plate_of_tentacle_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP 20
-- Dexterity 3
-- Agility 3
-- Mind -1
-- Accuracy % 20 (cap 18)
-- Ranged Accuracy % 20 (cap 18)
-- Double Attack 1
--------------------------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/items/slice_of_giant_sheep_meat.lua | 3 | 1094 | -----------------------------------------
-- ID: 4372
-- Item: slice_of_giant_sheep_meat
-- Food Effect: 5Min, Galka only
-----------------------------------------
-- Strength 2
-- Intelligence -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
fun... | gpl-3.0 |
MattSeen/Love2d-examples | GameOfLife/game/tween/spec/tween_spec.lua | 1 | 20240 | local tween = require 'tween'
describe('tween', function()
local counter = 0
local function count(x)
x = x or 1
counter = counter + x
end
local function assert_table_equal(t1, t2)
local type1, type2 = type(t1), type(t2)
assert_equal(type1, type2)
if type(t1)=='table' then
for k,v in... | mit |
hvbommel/domoticz | dzVents/runtime/device-adapters/security_device.lua | 19 | 1034 | local TimedCommand = require('TimedCommand')
return {
baseType = 'device',
name = 'Switch device adapter',
matches = function (device, adapterManager)
local res = (device.deviceType == 'Security' and device.deviceSubType == 'Security Panel')
if (not res) then
adapterManager.addDummyMethod(device, 'disarm'... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/RuAun_Gardens/npcs/relic.lua | 5 | 1543 | -----------------------------------
-- Area: Ru'Aun Gardens
-- NPC: <this space intentionally left blank>
-- !pos -241 -12 332 130
-----------------------------------
package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/RuAun_Gardens/TextIDs");
-------... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Mhaura/npcs/Dieh_Yamilsiah.lua | 4 | 1892 | -----------------------------------
-- Area: Mhaura
-- NPC: Dieh Yamilsiah
-- Reports the time remaining before boat arrival.
-- !pos 7.057 -2.364 2.489 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mhaura/TextID... | gpl-3.0 |
dafei2015/hugular_cstolua | Client/Assets/Lua/core/asset.lua | 7 | 2006 | ------------------------------------------------
-- Copyright © 2013-2014 Hugula: Arpg game Engine
-- asset
-- author pu
------------------------------------------------
local CUtils=CUtils
local LuaHelper=LuaHelper
local GAMEOBJECT_ATLAS = GAMEOBJECT_ATLAS
Asset = class(function(self,url,names)
self.base = fal... | mit |
ccyphers/kong | kong/api/crud_helpers.lua | 1 | 5425 | local utils = require "kong.tools.utils"
local cjson = require "cjson"
local responses = require "kong.tools.responses"
local app_helpers = require "lapis.application"
local _M = {}
function _M.find_api_by_name_or_id(self, dao_factory, helpers)
local filter_keys = {
[utils.is_valid_uuid(self.params.name_or_id) ... | apache-2.0 |
Ninjistix/darkstar | scripts/globals/items/plate_of_felicifruit_gelatin.lua | 3 | 1028 | -----------------------------------------
-- ID: 5978
-- Item: Plate of Felicifruit Gelatin
-- Food Effect: 180 Min, All Races
-----------------------------------------
-- MP % 5 Cap 100
-- Intelligence +7
-- MP Healing +3
-----------------------------------------
require("scripts/globals/status");
--------------------... | gpl-3.0 |
znuh/mktray | mktest.lua | 1 | 1828 | --[[
mktest.lua - custom tray generator for pick&place machines
URL: https://github.com/znuh/mktray
Copyright (C) 2014 Benedikt Heinz, <hunz@mailbox.org>
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 Sof... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Kazham/npcs/Toji_Mumosulah.lua | 5 | 1372 | -----------------------------------
-- Area: Kazham
-- NPC: Toji Mumosulah
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Kazham/TextIDs");
-------------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/abilities/pets/healing_breath.lua | 5 | 1502 | ---------------------------------------------
-- Healing Breath I
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/globals/msg");
---------------------------------------------
function onAbi... | gpl-3.0 |
ld-test/dromozoa-http | dromozoa/http/aws4.lua | 3 | 5455 | -- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com>
--
-- This file is part of dromozoa-http.
--
-- dromozoa-http 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
-... | gpl-3.0 |
copystudy/squish | minify/optparser.lua | 3 | 18422 | --[[--------------------------------------------------------------------
optparser.lua: does parser-based optimizations
This file is part of LuaSrcDiet.
Copyright (c) 2008 Kein-Hong Man <khman@users.sf.net>
The COPYRIGHT file describes the conditions
under which this software may be distributed.
See the ... | mit |
tele911/xy-test | plugins/inpm.lua | 53 | 3081 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
bluetomatoes/ExploreTimelines | CodeSamples/SnapShapes 2/SnapShapes_START/dmc_gesture.lua | 7 | 7358 | --===================================================================--
-- dmc_touch.lua
--
-- by David McCuskey
-- Documentation: http://docs.davidmccuskey.com/display/docs/dmc_touch.lua
--===================================================================--
--[[
Copyright (C) 2012 David McCuskey. All Rights Reserve... | mit |
dinodeck/ninety_nine_days_of_dev | 007_map_cure/code/InGameMenuState.lua | 3 | 1296 | InGameMenuState = {}
InGameMenuState.__index = InGameMenuState
function InGameMenuState:Create(stack, mapDef)
local this =
{
mMapDef = mapDef,
mStack = stack,
mTitleSize = 1.2,
mLabelSize = 0.88,
mTextSize = 1,
}
this.mStateMachine = StateMachine:Crea... | mit |
Ninjistix/darkstar | scripts/globals/items/kohlrouladen.lua | 3 | 1555 | -----------------------------------------
-- ID: 5760
-- Item: kohlrouladen
-- Food Effect: 3hr, All Races
-----------------------------------------
-- Strength 3
-- Agility 3
-- Intelligence -5
-- RACC +8% (cap 60)
-- RATT +14% (cap 65)
-- Enmity -4
-- Subtle Blow +5
-----------------------------------------
require("... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Selbina/npcs/Yulon-Polon.lua | 5 | 3587 | -----------------------------------
-- Area: Selbina
-- NPC: Yulon-Polon
-- Type: Title Change NPC
-- !pos 45.998 -16.273 15.739 248
-----------------------------------
require("scripts/globals/titles");
local title2 = { CORDON_BLEU_FISHER , ECOLOGIST , LIL_CUPID , ACE_ANGLER , GOLD_HOOK , MYTHRIL_HOOK , SILVER_HOOK ... | gpl-3.0 |
davidbuzz/ardupilot | libraries/AP_Scripting/examples/ahrs-source.lua | 19 | 10311 | -- switches between AHRS/EKF sources based on the pilot's source selection switch or using an automatic source selection algorithm
-- this script is intended to help vehicles move between GPS and Non-GPS environments
--
-- setup RCx_OPTION = 90 (EKF Pos Source) to select the source (low=primary, middle=secondary, high=... | gpl-3.0 |
otservme/global1051 | data/talkactions/scripts/add_skill.lua | 7 | 1741 | local function getSkillId(skillName)
if skillName == "club" then
return SKILL_CLUB
elseif skillName == "sword" then
return SKILL_SWORD
elseif skillName == "axe" then
return SKILL_AXE
elseif skillName:sub(1, 4) == "dist" then
return SKILL_DISTANCE
elseif skillName:sub(1, 6) == "shield" then
return SKILL_S... | gpl-2.0 |
mandersan/premake-core | modules/xcode/xcode_project.lua | 3 | 8050 | ---
-- xcode/xcode4_project.lua
-- Generate an Xcode project file.
-- Author Jason Perkins
-- Modified by Mihai Sebea
-- Copyright (c) 2009-2015 Jason Perkins and the Premake project
---
local p = premake
local m = p.modules.xcode
local xcode = p.modules.xcode
local project = p.project
local config ... | bsd-3-clause |
lukego/ljsyscall | luaunit.lua | 4 | 18171 | --[[
luaunit.lua
Description: A unit testing framework
Homepage: http://phil.freehackers.org/luaunit/
Initial author: Ryu, Gwang (http://www.gpgstudy.com/gpgiki/LuaUnit)
Lot of improvements by Philippe Fremy <phil@freehackers.org>
More improvements by Ryan P. <rjpcomputing@gmail.com>
Version: 2.0
License: X11 Licen... | mit |
premake/premake-4.x | tests/actions/xcode/test_file_references.lua | 31 | 1192 | --
-- tests/actions/xcode/test_file_references.lua
-- Verify generation of PBXFileReference section of Xcode project
-- Copyright (c) 2011 Jason Perkins and the Premake project
--
T.xcode3_filerefs = { }
local suite = T.xcode3_filerefs
local xcode = premake.xcode
--
-- Setup and teardown
--
local sln
functio... | bsd-3-clause |
Ninjistix/darkstar | scripts/zones/Riverne-Site_B01/Zone.lua | 3 | 1298 | -----------------------------------
--
-- Zone: Riverne-Site_B01
--
-----------------------------------
package.loaded["scripts/zones/Riverne-Site_B01/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Riverne-Site_B01/TextIDs");
require("scripts/globals/settings");
require("scripts/globals/sta... | gpl-3.0 |
ld-test/lunajson | src/lunajson/_str_lib_lua53.lua | 12 | 2290 | local inf = math.huge
local byte, char, sub = string.byte, string.char, string.sub
local setmetatable = setmetatable
local _ENV = nil
local hextbl = {
0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, inf, inf, inf, inf, inf, inf,
inf, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF, inf, inf, inf, inf, inf, inf, inf, inf, inf,
inf,... | mit |
dinodeck/ninety_nine_days_of_dev | 002_bitmap_numbers/code/Tween.lua | 9 | 4637 | --
-- Dan Schuller: Tween Class based on Flash
--
Tween = {}
Tween.__index = Tween
function Tween:IsFinished()
return self.isFinished
end
function Tween:Value()
return self.current
end
function Tween.EaseInQuad(t, b, c, d)
t = t / d
return c * t * t + b
end
function Tween.EaseOutQuad(t, b, ... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.