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 |
|---|---|---|---|---|---|
jamiepg1/MCServer | MCServer/Plugins/MagicCarpet/plugin.lua | 2 | 1745 | local Carpets = {}
local PLUGIN
function Initialize( Plugin )
Plugin:SetName( "MagicCarpet" )
Plugin:SetVersion( 2 )
cPluginManager.AddHook(cPluginManager.HOOK_PLAYER_MOVING, OnPlayerMoving)
cPluginManager.AddHook(cPluginManager.HOOK_PLAYER_DESTROYED, OnDisconnect)
local PluginManager = cPluginManager:Get()
P... | apache-2.0 |
kazupon/kyototycoon | example/ktscrtableex.lua | 12 | 4724 | kt = __kyototycoon__
db = kt.db
-- prepare secondary indices
idxdbs = {}
for dbname, dbobj in pairs(kt.dbs) do
if kt.strbwm(dbname, ".kct") then
local prefix = kt.regex(dbname, ".*/", "")
prefix = kt.regex(dbname, ".kct$", "")
if #prefix > 0 then
idxdbs[prefix] = dbobj
end
end
en... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Kazham-Jeuno_Airship/npcs/Oslam.lua | 5 | 2001 | -----------------------------------
-- Area: Kazham-Jeuno Airship
-- NPC: Oslam
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham-Jeuno_Airship/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Kazham-Jeuno_Airship/TextIDs");
-----------------------... | gpl-3.0 |
dinodeck/ninety_nine_days_of_dev | 004_stat_numbers/code/ItemMenuState.lua | 2 | 4967 | ItemMenuState = {}
ItemMenuState.__index = ItemMenuState
function ItemMenuState:Create(parent)
local layout = Layout:Create()
layout:Contract('screen', 118, 40)
layout:SplitHorz('screen', "top", "bottom", 0.12, 2)
layout:SplitVert('top', "title", "category", 0.6, 2)
layout:SplitHorz('bottom... | mit |
dafei2015/hugular_cstolua | Client/tools/luaTools/win/lua/jit/dis_arm.lua | 74 | 19364 | ----------------------------------------------------------------------------
-- LuaJIT ARM disassembler module.
--
-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | mit |
Ninjistix/darkstar | scripts/zones/LaLoff_Amphitheater/bcnms/divine_might.lua | 5 | 3716 | -----------------------------------
-- Area: LaLoff Amphitheater
-- Name: Divine Might
-----------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
require("scripts/globals/missions");
r... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/bluemagic/animating_wail.lua | 4 | 1113 | -----------------------------------------
-- Spell: Animating Wail
-- Increases attack speed
-- Spell cost: 53 MP
-- Monster Type: Undead
-- Spell Type: Magical (Wind)
-- Blue Magic Points: 5
-- Stat Bonus: HP+20
-- Level: 79
-- Casting Time: 2 Seconds
-- Recast Time: 45 Seconds
-- 5 minutes
--
-- Combos: Dual Wield
--... | gpl-3.0 |
xboybigcampishere/Full | plugins/addpouya.lua | 1 | 1183 | do
local function callback(extra, success, result)
vardump(success)
cardump(result)
end
function run(msg, matches)
if not is_momod or not is_owner then
return "Only Owners can added POUYA X BOY!!!"
end
local user = 'user#id'
local chat = 'chat#id'..msg.to.id
chat_add_user(chat, user,... | gpl-2.0 |
kbullaughey/lstm-play | toys/lstm/model-1_layer-fixed_rock.lua | 1 | 8077 | #!/usr/bin/env th
toy = require '../toy/toy'
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',os.time(),'initial random seed (defaults to c... | mit |
Ninjistix/darkstar | scripts/zones/North_Gustaberg_[S]/npcs/Roderich.lua | 5 | 1151 | -----------------------------------
-- Area: North Gustaberg (S) (I-6)
-- NPC: Gebhardt
-- Involved in Quests: The Fighting Fourth
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg_[S]/TextIDs"] = nil;
package.loaded["scripts/globals/quests"] = nil;
-----------------------------------
r... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/items/mutton_tortilla.lua | 3 | 1375 | -----------------------------------------
-- ID: 4506
-- Item: mutton_tortilla
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Magic 10
-- Strength 3
-- Vitality 1
-- Intelligence -1
-- Attack % 27
-- Attack Cap 30
-- Ranged ATT % 27
-- Ranged ATT Cap 30
-----------------------------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Ifrits_Cauldron/npcs/qm4.lua | 5 | 1189 | -----------------------------------
-- Area: Ifrit's Cauldron
-- NPC: ???
-- Involved in Mission: Bastok 6-2
-- !pos 171 0 -25 205
-----------------------------------
package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Labyrinth_of_Onzozo/MobIDs.lua | 4 | 1944 | -----------------------------------
-- Area: Labyrinth of Onzozo (213)
-- Comments: -- posX, posY, posZ
--(Taken from 'mob_spawn_points' table)
-----------------------------------
LORD_OF_ONZOZO_PH =
{
[17649730] = 17649731, -- -39.356 14.265 -60.406
};
OSE_PH =
{
[17649813] = 17649822, -- -1.758 4.982 153.41... | gpl-3.0 |
arca1n/cocos2d-x_nextpeer_integration | samples/Lua/TestLua/Resources/luaScript/TouchesTest/Ball.lua | 4 | 2863 |
require "luaScript/extern"
require "luaScript/VisibleRect"
require "luaScript/TouchesTest/Paddle"
Ball = class("Ball", function(texture)
return cc.Sprite:createWithTexture(texture)
end)
Ball.__index = Ball
Ball.m_velocity = cc.p(0,0)
local M_PI = 3.1415926
function Ball:radius()
local size = self:getText... | mit |
codedash64/Urho3D | bin/Data/LuaScripts/19_VehicleDemo.lua | 13 | 16331 | -- Vehicle example.
-- This sample demonstrates:
-- - Creating a heightmap terrain with collision
-- - Constructing a physical vehicle with rigid bodies for the hull and the wheels, joined with constraints
-- - Saving and loading the variables of a script object, including node & component references
... | mit |
Ninjistix/darkstar | scripts/zones/Kuftal_Tunnel/TextIDs.lua | 5 | 1395 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6386; -- Obtained: <item>
GIL_OBTAINED = 6387; -- Obtained <number> gil
KEYITEM_OBTAINED = 6389; -- Obtain... | gpl-3.0 |
Ninjistix/darkstar | scripts/commands/tp.lua | 22 | 1317 | ---------------------------------------------------------------------------------------------------
-- func: tp <amount> <player>
-- desc: Sets a players tp. If they have a pet, also sets pet tp.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permis... | gpl-3.0 |
eugenesan/openwrt-luci | libs/nixio/docsrc/nixio.UnifiedIO.lua | 157 | 5891 | --- Unified high-level I/O utility API for Files, Sockets and TLS-Sockets.
-- These functions are added to the object function tables by doing <strong>
-- require "nixio.util"</strong>, can be used on all nixio IO Descriptors and
-- are based on the shared low-level read() and write() functions.
-- @cstyle instance
mo... | apache-2.0 |
ehrenbrav/FCEUX_Learning_Environment | output/luaScripts/PunchOutStats.lua | 9 | 2262 | --Mike Tyson's Punch Out!!
--Shows Oppoenent & Mac's Health and damage amounts.
--adelikat
local EHP = 0x0398 -- Enemy HP address
local EHPx= 178
local EHPy= 14
local EnemyHP = 0
local lastEHP = 0
local MHP = 0x0391 -- Mac HP address
local MHPx = 122
local MHPy = 14
local MacHP = 0
local lastMHP = 0
... | gpl-2.0 |
TRex22/hawkthorne-journey | src/nodes/pot.lua | 1 | 3875 | local anim8 = require 'vendor/anim8'
local window = require 'window'
local sound = require 'vendor/TEsound'
local Pot = {}
Pot.__index = Pot
local potImage = love.graphics.newImage('images/pot.png')
local potExplode= love.graphics.newImage('images/pot_asplode.png')
local g = anim8.newGrid(41, 30, potExplode:getWidth(... | mit |
backburn/Probably | interface/locale/enUS.lua | 1 | 3500 | -- ProbablyEngine Rotations - https://probablyengine.com/
-- Released under modified BSD, see attached LICENSE.
local pels = ProbablyEngine.locale.set
ProbablyEngine.locale.new('enUS')
-- Buttons
pels('toggle', 'Toggle')
pels('toggle_tooltip', 'Temporarily enable or disable the rotation.')
pels('cooldowns', 'Cooldow... | bsd-3-clause |
arca1n/cocos2d-x_nextpeer_integration | samples/Lua/TestLua/Resources/luaScript/OpenGLTest/OpenGLTest.lua | 4 | 45383 | require "OpenglConstants"
require "Cocos2dConstants"
require "Opengl"
local function OpenGLTestMainLayer()
local kItemTagBasic = 1000
local testCount = 16
local maxCases = testCount
local curCase = 0
local accum = 0
local labelBMFont = nil
local size = cc.Director:getInstance():getWinSiz... | mit |
Ninjistix/darkstar | scripts/zones/Jugner_Forest/npcs/Signpost.lua | 5 | 2418 | -----------------------------------
-- Area: Jugner Forest
-- NPC: Signpost
-- Involved in Quest: Grimy Signposts
-------------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
local X = playe... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/mobskills/warm-up.lua | 6 | 1732 | ---------------------------------------------
-- Warm-Up
--
-- Description: Enhances accuracy and evasion.
-- Type: Magical (Earth)
---------------------------------------------
require("scripts/globals/monstertpmoves");
require("scripts/globals/settings");
require("scripts/globals/status");
---------------------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Gun.lua | 7 | 1132 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Animated Gun
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
function onMobEngaged(mob,target)
if (mob:AnimationSub() == 3) then
... | gpl-3.0 |
dinodeck/ninety_nine_days_of_dev | 006_magic_menu/code/PlanStrollState.lua | 10 | 1628 |
PlanStrollState = { mName = "plan_stroll" }
PlanStrollState.__index = PlanStrollState
function PlanStrollState:Create(character, map)
local this =
{
mCharacter = character,
mMap = map,
mEntity = character.mEntity,
mController = character.mController,
mFrameRe... | mit |
dinodeck/ninety_nine_days_of_dev | 006_magic_menu/code/CombatFormula.lua | 10 | 5273 | --
-- The calculations for combat
--
Formula = {}
HitResult =
{
Miss = 0,
Dodge = 1,
Hit = 2,
Critical = 3
}
function Formula.MeleeAttack(state, attacker, target)
local stats = attacker.mStats
local enemyStats = target.mStats
local damage = 0
local hitResult =... | mit |
dinodeck/ninety_nine_days_of_dev | 003_combat_numbers/code/CombatFormula.lua | 10 | 5273 | --
-- The calculations for combat
--
Formula = {}
HitResult =
{
Miss = 0,
Dodge = 1,
Hit = 2,
Critical = 3
}
function Formula.MeleeAttack(state, attacker, target)
local stats = attacker.mStats
local enemyStats = target.mStats
local damage = 0
local hitResult =... | mit |
area31/telegram-bot | plugins/isX.lua | 605 | 2031 | local https = require "ssl.https"
local ltn12 = require "ltn12"
local function request(imageUrl)
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local api_key = mashape.api_key
if ... | gpl-2.0 |
mt246/mt24679 | plugins/isX.lua | 605 | 2031 | local https = require "ssl.https"
local ltn12 = require "ltn12"
local function request(imageUrl)
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local api_key = mashape.api_key
if ... | gpl-2.0 |
neofob/sile | lua-libraries/cassowary.lua | 4 | 43628 | local epsilon = 1e-8
local count = 2
local std = require("std")
if not unpack then -- Lua 5.3!
function unpack (t, i)
i = i or 1
if t[i] ~= nil then
return t[i], unpack(t, i + 1)
end
end
end
local function gPairs (t)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.so... | mit |
Ninjistix/darkstar | scripts/zones/Mhaura/npcs/Bihoro-Guhoro.lua | 5 | 1198 | -----------------------------------
-- Area: Mhaura
-- NPC: Bihoro-Guhoro
-- Involved in Quest: Riding on the Clouds
-- !pos -28 -8 41 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Western_Adoulin/npcs/Westerly_Breeze.lua | 7 | 6994 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Westerly Breeze
-- Type: Standard NPC and Quest Giver
-- Starts, Involved with, and Finishes Quests: 'Hunger Strikes'
-- 'The Starving'
-- 'Always More, Quoth ... | gpl-3.0 |
jagu-sayan/42Premake | tests/base/test_baking.lua | 6 | 3409 | --
-- tests/test_baking.lua
-- Automated test suite for the configuration baking functions.
-- Copyright (c) 2009, 2010 Jason Perkins and the Premake project
--
T.baking = { }
local suite = T.baking
--
-- Setup code
--
local prj, cfg
function suite.setup()
_ACTION = "gmake"
solution "MySolution"
configu... | bsd-3-clause |
cvfish/stnbhwd | demo/distort_mnist.lua | 2 | 2716 | -- wget 'http://torch7.s3-website-us-east-1.amazonaws.com/data/mnist.t7.tgz'
-- tar -xf mnist.t7.tgz
function distortData(foo)
local res=torch.FloatTensor(foo:size(1), 1, 42, 42):fill(0)
for i=1,foo:size(1) do
baseImg=foo:select(1,i)
distImg=res:select(1,i)
r = image.rotate(baseImg, torc... | mit |
eugenesan/openwrt-luci | applications/luci-ushare/luasrc/model/cbi/ushare.lua | 68 | 1275 | --[[
LuCI uShare
(c) 2008 Yanira <forum-2008@email.de>
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$
]]--
m = Map("ushare", translate("... | apache-2.0 |
Ninjistix/darkstar | scripts/zones/Dynamis-Tavnazia/mobs/Vanguard_Eye.lua | 5 | 1750 | -----------------------------------
-- Area: Dynamis tavnazia
-- NPC: Vanguard_Eye
-----------------------------------
package.loaded["scripts/zones/Dynamis-Tavnazia/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Tavnazia/TextIDs");
------------... | gpl-3.0 |
ccyphers/kong | spec/03-plugins/99-oauth2/03-access_spec.lua | 1 | 73801 | local cjson = require "cjson"
local helpers = require "spec.helpers"
local utils = require "kong.tools.utils"
describe("#ci Plugin: oauth2 (access)", function()
local proxy_ssl_client, proxy_client
local client1
setup(function()
local consumer = assert(helpers.dao.consumers:insert {
username = "bob"
... | apache-2.0 |
Ninjistix/darkstar | scripts/globals/mobskills/onslaught.lua | 33 | 1057 | ---------------------------------------------
-- Onslaught
--
-- Description: Lowers target's accuracy. Guttler/Ogre Killer: Temporarily increases Attack.
-- Type: Physical
-- Range: Melee
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require... | gpl-3.0 |
eugenesan/openwrt-luci | applications/luci-asterisk/luasrc/model/cbi/asterisk/phones.lua | 80 | 2946 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 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
$Id$
]]--
l... | apache-2.0 |
Ninjistix/darkstar | scripts/zones/Castle_Zvahl_Baileys/npcs/Treasure_Coffer.lua | 5 | 4508 | -----------------------------------
-- Area: Castle Zvahl Baileys
-- NPC: Treasure Coffer
-- @zone 161
-- !pos -75 0 19
-----------------------------------
package.loaded["scripts/zones/Castle_Zvahl_Baileys/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globa... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/abilities/elemental_siphon.lua | 4 | 2688 | -----------------------------------
-- Ability: Elemental Siphon
-- Drains MP from your summoned spirit.
-- Obtained: Summoner level 50
-- Recast Time: 5:00
-- Duration: Instant
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/pets");
r... | gpl-3.0 |
ccyphers/kong | spec/03-plugins/002-udp-log/01-udp-log_spec.lua | 1 | 2463 | local cjson = require "cjson"
local helpers = require "spec.helpers"
local TCP_PORT = 35000
local UDP_PORT = 35001
local HTTP_DELAY_PORT = 35003
describe("Plugin: udp-log (log)", function()
local client
setup(function()
local api2 = assert(helpers.dao.apis:insert {
name = "tests-udp-logging2",
ho... | apache-2.0 |
dmekersa/create2Dmobilegames | JSONDemo/main.lua | 1 | 1634 | -----------------------------------------------------------------------------------------
--
-- main.lua
--
-----------------------------------------------------------------------------------------
-- Your code here
-- JSON API
local json = require "json"
-- gamedata Example
gamedata = {}
gamedata.player = {}
gamed... | unlicense |
abhishyantkhare/tenshi | vm/lua/tenshi-runtime/src/lua/triggers.lua | 11 | 1676 | -- Licensed to Pioneers in Engineering under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. Pioneers in Engineering licenses
-- this file to you under the Apache License, Version 2.0 (the
-- "License"); you ... | apache-2.0 |
Ninjistix/darkstar | scripts/globals/spells/distract_ii.lua | 5 | 1106 | -----------------------------------------
-- Spell: Distract II
-----------------------------------------
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/effects/agi_boost.lua | 34 | 1026 | -----------------------------------
--
-- EFFECT_AGI_BOOST
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:addMod(MOD_AGI,effect:getPower());
end;
... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/mobskills/leaf_dagger.lua | 32 | 1202 | ---------------------------------------------
-- Leaf Dagger
--
-- Description: Deals piercing damage to a single target. Additional effect: Poison
-- Type: Physical
-- Utsusemi/Blink absorb: 2 shadows
-- Range: Melee?
-- Notes: On higher level Madragoras (Korrigans for example) the poision is 5hp/tick for about ... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Windurst_Waters/npcs/Tosuka-Porika.lua | 5 | 5703 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Tosuka-Porika
-- Starts Quests: Early Bird Catches the Bookworm, Chasing Tales
-- Involved in Quests: Hat in Hand, Past Reflections, Blessed Radiance
-- Involved in Missions: Windurst 2-1, Windurst 7-1, Windurst 8-2, CoP 3-3
-- !pos -26 -6 103 238
... | gpl-3.0 |
kbullaughey/lstm-play | toys/rnn/model-1_layer-manual_traingin.lua | 1 | 8331 | #!/usr/bin/env th
-- This is an RNN model with one hidden layer. It consists of three units,
-- each of which expects one input and the units are recursively connected.
require 'nngraph'
toy = require '../toy/toy'
-- Allow for command-line control over the seed and number of examples.
cmd = torch.CmdLine()
cmd:text(... | mit |
initialkommit/dotfiles | config/hammerspoon/grid.lua | 2 | 1501 | hs.grid.setGrid'3x3'
hs.grid.setMargins("0,0")
hs.window.animationDuration = 0
function getWin()
return hs.window.focusedWindow()
end
--- arrows: move window
hs.hotkey.bind(mash, "left", function() hs.grid.pushWindowLeft() end)
hs.hotkey.bind(mash, "right", function() hs.grid.pushWindowRight() end)
hs.hotkey.bind(m... | mit |
justDax/darkmeter | DM_Skill.lua | 1 | 13411 |
local Skill = {}
local DMUtils = Apollo.GetPackage("DarkMeter:Utils").tPackage
local DarkMeter
-- skill result codes
local deflectCode = GameLib.CodeEnumCombatResult.Avoid
local critCode = GameLib.CodeEnumCombatResult.Critical
local hitCode = GameLib.CodeEnumCombatResult.Hit
function Skill:new()
if DarkMeter == n... | mit |
Ninjistix/darkstar | scripts/globals/abilities/fire_maneuver.lua | 2 | 1717 | -----------------------------------
-- Ability: Fire Maneuver
-- Enhances the effect of fire attachments. Must have animator equipped.
-- Obtained: Puppetmaster level 1
-- Recast Time: 10 seconds (shared with all maneuvers)
-- Duration: 1 minute
-----------------------------------
require("scripts/globals/status");
req... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Jugner_Forest/mobs/Knight_Crab.lua | 5 | 1112 | -----------------------------------
-- Area: Jugner Forest
-- MOB: Knight Crab
-----------------------------------
require("scripts/zones/Jugner_Forest/MobIDs");
require("scripts/globals/status");
-----------------------------------
function onMobSpawn(mob)
-- If respawn and variable is not 0, then it respawned b... | gpl-3.0 |
jamiepg1/MCServer | MCServer/Plugins/ChunkWorx/chunkworx_web.lua | 2 | 10757 |
-- chunkworx_web.lua
-- WebAdmin-related functions
local function Buttons_Player( Name )
return "<form method='POST'><input type='hidden' name='PlayerName' value='"..Name.."'><input type='submit' name='PlayerExact' value='Exact'><input type='submit' name='Player3x3' value='3x3'></form>"
end
local function ... | apache-2.0 |
Ninjistix/darkstar | scripts/zones/Jugner_Forest/npcs/Chaplion_RK.lua | 3 | 2952 | -----------------------------------
-- Area: Jugner Forest
-- NPC: Chaplion, R.K.
-- Outpost Conquest Guards
-- !pos 54 0 -11 104
-------------------------------------
package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/conquest");
require("script... | gpl-3.0 |
dinodeck/ninety_nine_days_of_dev | 004_stat_numbers/code/CombatChoiceState.lua | 2 | 13016 | CombatChoiceState = {}
CombatChoiceState.__index = CombatChoiceState
function CombatChoiceState:Create(context, actor)
local this =
{
mStack = context.mStack,
mCombatState = context,
mActor = actor,
mCharacter = context.mActorCharMap[actor],
mUpArrow = gGame.World.mIcons:... | mit |
Ninjistix/darkstar | scripts/globals/items/bowl_of_optical_soup.lua | 3 | 1306 | -----------------------------------------
-- ID: 4340
-- Item: bowl_of_optical_soup
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- HP % 6 (cap 75)
-- Charisma -15
-- HP Recovered While Healing 5
-- Accuracy 15
-- Ranged Accuracy 15
-----------------------------------------
require("scripts... | gpl-3.0 |
soonyee91/castle_defenders | game/dota_addons/castle_defenders/scripts/vscripts/internal/gamemode.lua | 1 | 7854 | -- This function initializes the game mode and is called before anyone loads into the game
-- It can be used to pre-initialize any values/tables that will be needed later
function GameMode:_InitGameMode()
-- Setup rules
GameRules:SetCustomGameTeamMaxPlayers(DOTA_TEAM_GOODGUYS,8)
GameRules:SetCustomGameTeamMaxPlay... | apache-2.0 |
Ninjistix/darkstar | scripts/zones/Port_Bastok/npcs/Carmelo.lua | 5 | 4390 | -----------------------------------
-- Area: Port Bastok
-- NPC: Carmelo
-- Start & Finishes Quest: Love and Ice, A Test of True Love
-- Start Quest: Lovers in the Dusk
-- Involved in Quest: The Siren's Tear
-- @zone 236
-- !pos -146.476 -7.48 -10.889
-----------------------------------
require("scripts/globals/quests... | gpl-3.0 |
carnalis/Urho3D | bin/Data/LuaScripts/31_MaterialAnimation.lua | 11 | 7448 | -- Material animation example.
-- This sample is base on StaticScene, and it demonstrates:
-- - Usage of material shader animation for mush room material
require "LuaScripts/Utilities/Sample"
function Start()
-- Execute the common startup for samples
SampleStart()
-- Create the scene content
Crea... | mit |
Ninjistix/darkstar | scripts/globals/spells/bluemagic/radiant_breath.lua | 3 | 2392 | -----------------------------------------
-- Spell: Radiant Breath
-- Deals light damage to enemies within a fan-shaped area of effect originating from the caster. Additional effect: Slow and Silence.
-- Spell cost: 116 MP
-- Monster Type: Wyverns
-- Spell Type: Magical (Light)
-- Blue Magic Points: 4
-- Stat Bonus: CH... | gpl-3.0 |
Inorizushi/DDR-SN1HD | BGAnimations/ScreenWithMenuElements background/default.lua | 1 | 3341 | local t = Def.ActorFrame{
FOV=130;
};
local p = {
red = color("1,0,0,0.812"),
green = color("0,1,0,0.812"),
blue = color("0,0,1,0.812"),
yellow = color("1,1,0,0.812"),
pink = color("1,0,1,0.812"),
cyan = color("0,1,1,0.812")
}
local colorPatterns =
{
--first pattern block: YRPBCG with different sta... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Tahrongi_Canyon/npcs/Tahrongi_Cacti.lua | 7 | 1590 | -----------------------------------
-- Area: Tahrongi Canyon
-- NPC: Tahrongi Cacti
-- Involved in Quest: Say It with Flowers
--
-- !pos -308.721 7.477 264.454
-----------------------------------
package.loaded["scripts/zones/Tahrongi_Canyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/West_Ronfaure/npcs/Tottoto_WW.lua | 3 | 2967 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Tottoto, W.W.
-- Type: Border Conquest Guards
-- !pos -560.292 -0.961 -576.655 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");... | gpl-3.0 |
eugenesan/openwrt-luci | modules/admin-full/luasrc/model/cbi/admin_network/network.lua | 66 | 2693 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
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
h... | apache-2.0 |
malyutinegor/starsim | app/scripts/libs/ui/HC/gjk.lua | 23 | 5593 | --[[
Copyright (c) 2012 Matthias Richter
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, merge, publish, distribu... | gpl-3.0 |
mohammad25253/persianguard12 | plugins/anti-bot.lua | 369 | 3064 |
local function isBotAllowed (userId, chatId)
local hash = 'anti-bot:allowed:'..chatId..':'..userId
local banned = redis:get(hash)
return banned
end
local function allowBot (userId, chatId)
local hash = 'anti-bot:allowed:'..chatId..':'..userId
redis:set(hash, true)
end
local function disallowBot (userId, ch... | gpl-2.0 |
Ninjistix/darkstar | scripts/globals/items/blackened_newt.lua | 3 | 1304 | -----------------------------------------
-- ID: 4581
-- Item: Blackened Newt
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Dexterity 4
-- Mind -3
-- Attack % 18
-- Attack Cap 60
-- Virus Resist 4
-- Curse Resist 4
-----------------------------------------
require("scripts/globals/statu... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Windurst_Woods/Zone.lua | 5 | 1843 | -----------------------------------
--
-- Zone: Windurst_Woods (241)
--
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/events/harvest_festivals");
require("scripts/globals/zone");
require("scripts/globals/set... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Western_Adoulin/npcs/Ledericus.lua | 5 | 1387 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Ledericus
-- Type: Shop NPC
-- @zone 256
-- !pos 37 32 117 256
-----------------------------------
package.loaded["scripts/zones/Western_Adoulin/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/... | gpl-3.0 |
scan-bot/scan-bot | plugins/yoda.lua | 642 | 1199 | local ltn12 = require "ltn12"
local https = require "ssl.https"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function request(text)
local api = "https://yoda.p.mashape.com/yoda?"
text = ... | gpl-2.0 |
karrots/nodemcu-firmware | lua_modules/si7021/si7021-lewei.lua | 73 | 1314 |
--创建一个定时器
tmr.alarm(0, 60000, 1, function()
SDA_PIN = 6 -- sda pin, GPIO12
SCL_PIN = 5 -- scl pin, GPIO14
si7021 = require("si7021")
si7021.init(SDA_PIN, SCL_PIN)
si7021.read(OSS)
Hum = si7021.getHumidity()
Temp = si7021.getTemperature()
--定义数据变量格式
PostData = "[{\"Name\... | mit |
dinodeck/ninety_nine_days_of_dev | 007_map_cure/code/GameOverState.lua | 6 | 2213 | GameOverState = {}
GameOverState.__index = GameOverState
function GameOverState:Create(stack, world, won)
local this =
{
mWorld = world,
mStack = stack,
mWon = false,
}
if won == true then
this.mWon = true
end
setmetatable(this, self)
if not... | mit |
NeCarbon/vice-players | Vendor/CEGUI/cegui/src/ScriptingModules/LuaScriptModule/support/tolua++bin/lua/custom.lua | 41 | 1343 |
function extract_code(fn,s)
local code = ""
if fn then
code = '\n$#include "'..fn..'"\n'
end
s= "\n" .. s .. "\n" -- add blank lines as sentinels
local _,e,c,t = strfind(s, "\n([^\n]-)SCRIPT_([%w_]*)[^\n]*\n")
while e do
t = strlower(t)
if t == "bind_begin" then
_,e,c = strfind(s,"(.-)\n[^\n]*SCRIPT_BIN... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Bhaflau_Thickets/npcs/Daswil.lua | 5 | 2406 | -----------------------------------
-- Area: Bhaflau Thickets
-- NPC: Daswil
-- Type: Assault
-- !pos -208.720 -12.889 -779.713 52
-----------------------------------
package.loaded["scripts/zones/Bhaflau_Thickets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("script... | gpl-3.0 |
trixnz/lua-fmt | test/lua-5.3.4-tests/files.lua | 6 | 22064 | -- $Id: files.lua,v 1.95 2016/11/07 13:11:28 roberto Exp $
-- See Copyright Notice in file all.lua
local debug = require "debug"
local maxint = math.maxinteger
assert(type(os.getenv"PATH") == "string")
assert(io.input(io.stdin) == io.stdin)
assert(not pcall(io.input, "non-existent-file"))
assert(io.output(io.stdout... | mit |
Ninjistix/darkstar | scripts/globals/items/bowl_of_cursed_soup.lua | 3 | 1340 | -----------------------------------------
-- ID: 4235
-- Item: Bowl of Cursed Soup
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Strength -7
-- Dexterity -7
-- Agility -7
-- Vitality -7
-- Intelligence -7
-- Mind -7
-- Charisma -7
-----------------------------------------
require("scrip... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Port_Windurst/npcs/Melek.lua | 5 | 3713 | -----------------------------------
-- Area: Port Windurst
-- NPC: Melek
-- Involved in Mission 2-3
-- @zone 240
-- !pos -80 -5 158
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/... | gpl-3.0 |
soonyee91/castle_defenders | game/dota_addons/castle_defenders/scripts/vscripts/gamemode.lua | 1 | 11518 | -- This is the primary barebones gamemode script and should be used to assist in initializing your game mode
-- Set this to true if you want to see a complete debug output of all events/processes done by barebones
-- You can also change the cvar 'barebones_spew' at any time to 1 or 0 for output/no output
BAREBONES_DE... | apache-2.0 |
neofob/sile | languages/ar.lua | 2 | 15778 | SILE.hyphenator.languages["ar"] = {}
SILE.hyphenator.languages["ar"].patterns = {
"և1ա",
"և1ե",
"և1է",
"և1ը",
"և1ի",
"և1ո",
"և1օ",
"ա1բա", "ա1բե", "ա1բէ", "ա1բը", "ա1բի", "ա1բո", "ա1բօ",
"ա1գա", "ա1գե", "ա1գէ", "ա1գը", "ա1գի", "ա1գո", "ա1գօ",
"ա1դա", "ա1դե", "ա1դէ", "ա1դը", "ա1դի", "ա1դո", "ա1դօ",
"ա1զա", "ա1զե", "ա1զէ... | mit |
random-nick/Townvalds | database.lua | 2 | 2757 | function ConfigureDatabase()
-- Create tables
local sqlCreate = {
"PRAGMA foreign_keys = ON",
"CREATE TABLE IF NOT EXISTS nations (nation_id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, nation_name STRING NOT NULL UNIQUE, nation_capital INTEGER NOT NULL UNIQUE)",
"CREATE TABLE IF NOT EXISTS towns (town_id I... | agpl-3.0 |
Ninjistix/darkstar | scripts/commands/givexp.lua | 22 | 1126 | ---------------------------------------------------------------------------------------------------
-- func: givexp <amount> <player>
-- desc: Gives the GM or target player experience points.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission... | gpl-3.0 |
DEVll190ll/DEV_HR | plugins/DEV_11.lua | 1 | 2715 | --[[
BY ADOLF_HITLER (@LL190LL) BY:حسين محمد BY ADOLF_HITLER (@LLSNLL)
--]]
local function get_variables_hash(msg)
if msg.to.type == 'chat' or msg.to.type == 'channel' then
return 'chat:bot:variables'
end
end
local function get_value(msg, var_name)
local hash = get_variables_hash(msg)
if... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Bastok_Markets/npcs/Pavel.lua | 5 | 1432 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Pavel
-- Involved in Quest: Stamp Hunt
-- !pos -349.798 -10.002 -181.296 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
requi... | gpl-3.0 |
ld-test/lunajson | test/decodeparse/all-lunasax-decoder.lua | 4 | 1219 | local saxtbl = {}
local current = {}
local nullv
do
local stack = {}
local top = 1
local key = 1
local isobj
local function add(v)
if v == nil then
v = nullv
end
current[key] = v
if type(key) == 'number' then
key = key+1
end
end
local function push()
stack[top] = current
stack[top+1] = key... | mit |
Ninjistix/darkstar | scripts/zones/The_Garden_of_RuHmet/mobs/Jailer_of_Fortitude.lua | 2 | 2300 | -----------------------------------
-- Area: The Garden of Ru'Hmet
-- NM: Jailer of Fortitude
-----------------------------------
require("scripts/zones/The_Garden_of_RuHmet/MobIDs");
require("scripts/globals/settings");
require("scripts/globals/limbus");
require("scripts/globals/status");
require("scripts/globals/ma... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Cloister_of_Frost/bcnms/trial-size_trial_by_ice.lua | 7 | 2111 | -----------------------------------
-- Area: Cloister of Frost
-- BCNM: Trial-size Trial by Ice
-- !pos 558 0.1 596 203
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Frost/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/keyitems");
require("scripts/global... | gpl-3.0 |
otservme/global1051 | data/talkactions/scripts/buyhouse.lua | 11 | 1174 | function onSay(cid, words, param)
local housePrice = configManager.getNumber(configKeys.HOUSE_PRICE)
if housePrice == -1 then
return true
end
local player = Player(cid)
if player:getPremiumDays() <= 0 then
player:sendCancelMessage("You need a premium account.")
return false
end
local position = player:ge... | gpl-2.0 |
istarIQ/Source | tanslate.lua | 11 | 12600 |
local function pre_process(msg)
local data = load_data(_config.moderation.data)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Che... | gpl-2.0 |
eugenesan/openwrt-luci | applications/luci-upnp/luasrc/controller/upnp.lua | 66 | 2082 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
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
h... | apache-2.0 |
karczewa/BolScripts | ViktorMechanics.lua | 2 | 23990 | --[[
_____ _____ __ .__
/ \_______ / _ \________/ |_|__| ____ __ __ ____ ____
/ \ / \_ __ \ / /_\ \_ __ \ __\ |/ ___\| | \/ \ / _ \
/ Y \ | \/ / | \ | \/| | | \ \___| | / | ( <_> )
\____|__ /__| \___... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Mount_Zhayolm/npcs/Runic_Portal.lua | 5 | 1430 | -----------------------------------
-- Area: Mount Zhayolm
-- NPC: Runic Portal
-- Mount Zhayolm Teleporter Back to Aht Urgan Whitegate
-- !pos 688 -23 349 61
-----------------------------------
package.loaded["scripts/zones/Mount_Zhayolm/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Moun... | gpl-3.0 |
dinodeck/ninety_nine_days_of_dev | 004_stat_numbers/code/combat_events/CEAttack.lua | 10 | 3876 | CEAttack = {}
CEAttack.__index = CEAttack
function CEAttack:Create(state, owner, def, targets)
print("Target", target)
local this =
{
mState = state,
mOwner = owner,
mDef = def,
mFinished = false,
mSpeed = 0,
mCharacter = state.mActorCharMap[owner],
... | mit |
dinodeck/ninety_nine_days_of_dev | 002_bitmap_numbers/code/combat_events/CEAttack.lua | 10 | 3876 | CEAttack = {}
CEAttack.__index = CEAttack
function CEAttack:Create(state, owner, def, targets)
print("Target", target)
local this =
{
mState = state,
mOwner = owner,
mDef = def,
mFinished = false,
mSpeed = 0,
mCharacter = state.mActorCharMap[owner],
... | mit |
otservme/global1051 | data/actions/scripts/quests/quests.lua | 7 | 1497 | local annihilatorReward = {1990, 2400, 2431, 2494}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid > 1000 and item.uid <= 22670 then
local itemType = ItemType(item.itemid)
local itemWeight = itemType:getWeight(false)
local player = Player(cid)
local playerCap = player:getFreeCapacity()
... | gpl-2.0 |
Ninjistix/darkstar | scripts/globals/items/serving_of_patriarch_sautee.lua | 3 | 1036 | -----------------------------------------
-- ID: 5677
-- Item: Serving of Patriarch Sautee
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- MP 65
-- Mind 7
-- MP Recovered While Healing 7
-----------------------------------------
require("scripts/globals/status");
---------------------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/bluemagic/soporific.lua | 3 | 1448 | -----------------------------------------
-- Spell: Soporific
-- Puts all enemies within range to sleep
-- Spell cost: 38 MP
-- Monster Type: Plantoids
-- Spell Type: Magical (Dark)
-- Blue Magic Points: 4
-- Stat Bonus: HP-5, MP+5
-- Level: 24
-- Casting Time: 3 seconds
-- Recast Time: 90 seconds
-- Duration: 90 secon... | gpl-3.0 |
arca1n/cocos2d-x_nextpeer_integration | external/lua/luajit/src/src/jit/dis_mips.lua | 99 | 13222 | ----------------------------------------------------------------------------
-- LuaJIT MIPS disassembler module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT/X license. See Copyright Notice in luajit.h
---------------------------------------------------------------------------... | mit |
ehrenbrav/FCEUX_Learning_Environment | output/luaScripts/taseditor/ShowNotes.lua | 7 | 2511 | ---------------------------------------------------------------------------
-- Showing Markers' Notes on screen
-- by AnS, 2012
---------------------------------------------------------------------------
-- Showcases following functions:
-- * taseditor.getmarker()
-- * taseditor.getnote()
-- * taseditor.getselec... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.