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 |
|---|---|---|---|---|---|
ibm2431/darkstar | scripts/zones/Temenos/npcs/Particle_Gate.lua | 10 | 3409 | -----------------------------------
-- Area: Temenos
-- NPC: Particle_Gate
-----------------------------------
require("scripts/globals/limbus");
require("scripts/globals/keyitems");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
--... | gpl-3.0 |
greasydeal/darkstar | scripts/globals/weaponskills/hexa_strike.lua | 30 | 1465 | -----------------------------------
-- Hexa Strike
-- Club weapon skill
-- Skill level: 220
-- Delivers a six-hit attack. Chance of params.critical varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Flame Gorget & Light Gorget.
-- Aligned with the Flame Belt & Light Belt.
-- Element: None
-- ... | gpl-3.0 |
lbthomsen/openwrt-luci | modules/luci-compat/luasrc/cbi/datatypes.lua | 3 | 9137 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2017 Dan Luedtke <mail@danrl.com>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local ip = require "luci.ip"
local math = require "math"
local util = require "luci.util"
local tonumber, tostring, type, unpack, sele... | apache-2.0 |
greasydeal/darkstar | scripts/globals/items/mithran_tomato.lua | 35 | 1201 | -----------------------------------------
-- ID: 4390
-- Item: mithran_tomato
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -3
-- Intelligence 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- ... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/Alzadaal_Undersea_Ruins/npcs/qm2.lua | 8 | 1215 | -----------------------------------
-- Area: Alzadaal Undersea Ruins
-- NPC: ??? (Spawn Cheese Hoarder Gigiroon(ZNM T1))
-- @pos -184 -8 24 72
-----------------------------------
package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Alzadaal_... | gpl-3.0 |
howard0su/cslua | tests/bitwise.lua | 10 | 3941 | print("testing bitwise operations")
assert(bit32.band() == bit32.bnot(0))
assert(bit32.btest() == true)
assert(bit32.bor() == 0)
assert(bit32.bxor() == 0)
assert(bit32.band() == bit32.band(0xffffffff))
assert(bit32.band(1,2) == 0)
-- out-of-range numbers
assert(bit32.band(-1) == 0xffffffff)
assert(bit32.band(2^33 -... | bsd-2-clause |
LegionXI/darkstar | scripts/zones/Southern_San_dOria/npcs/Alivatand.lua | 11 | 3103 | -----------------------------------
-- Area: South San d'Oria
-- NPC: Alivatand
-- Type: Guildworker's Union Representative
-- @zone 230
-- @pos -179.458 -1 15.857
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scrip... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Kazham/npcs/Gatih_Mijurabi.lua | 14 | 1875 | -----------------------------------
-- Area: Kazham
-- NPC: Gatih Mijurabi
-- Type: Standard NPC
-- @zone 250
-- @pos 58.249 -13.086 -49.084
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
---------------------... | gpl-3.0 |
lache/RacingKingLee | crazyclient/frameworks/cocos2d-x/cocos/scripting/lua-bindings/script/cocos2d/bitExtend.lua | 104 | 1590 | -- bit operation
bit = bit or {}
bit.data32 = {}
for i=1,32 do
bit.data32[i]=2^(32-i)
end
function bit._b2d(arg)
local nr=0
for i=1,32 do
if arg[i] ==1 then
nr=nr+bit.data32[i]
end
end
return nr
end
function bit._d2b(arg)
arg = arg >= 0 and arg or (0xFFFFFFFF + a... | mit |
greasydeal/darkstar | scripts/zones/Selbina/npcs/Bretta.lua | 34 | 1105 | -----------------------------------
-- Area: Selbina
-- NPC: Bretta
-- @zone
-- @pos
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
-----------------------------------
-- onTrade Actio... | gpl-3.0 |
naclander/tome | game/engines/default/engine/generator/actor/Random.lua | 1 | 4155 | -- TE4 - T-Engine 4
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Abyssea-Tahrongi/npcs/qm9.lua | 14 | 1378 | -----------------------------------
-- Zone: Abyssea-Tahrongi
-- NPC: qm9 (???)
-- Spawns Alectryon
-- @pos ? ? ? 45
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
--[[... | gpl-3.0 |
LegionXI/darkstar | scripts/globals/items/crepe_caprice.lua | 12 | 1576 | -----------------------------------------
-- ID: 5776
-- Item: Crepe Caprice
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- HP +5% (cap20)
-- MP Healing 3
-- Magic Accuracy +21% (cap 40)
-- Magic Defense +2
-----------------------------------------
require("scripts/globals/status");
--... | gpl-3.0 |
naclander/tome | game/modules/tome/data/chats/slasul.lua | 3 | 5178 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
naclander/tome | game/modules/tome/data/general/events/old-battle-field.lua | 1 | 6541 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
greasydeal/darkstar | scripts/globals/items/berry_snowcone.lua | 39 | 1200 | -----------------------------------------
-- ID: 5710
-- Item: Berry Snowcone
-- Food Effect: 5 Min, All Races
-----------------------------------------
-- MP % 30 Cap 30
-- Intelligence 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemC... | gpl-3.0 |
evrooije/beerarchy | mods/00_bt_mobs/mobs_redo/mount.lua | 3 | 9146 |
-- lib_mount by Blert2112 (edited by TenPlus1)
local enable_crash = true
local crash_threshold = 6.5 -- ignored if enable_crash=false
------------------------------------------------------------------------------
--
-- Helper functions
--
local function node_is(pos)
local node = minetest.get_node(pos)
if node.... | lgpl-2.1 |
LegionXI/darkstar | scripts/globals/mobskills/Kick_Out.lua | 15 | 1135 | ---------------------------------------------
-- Kick Out
--
-- Description: Deals heavy damage and inflicts blind to any target behind user.
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range: Unknown cone, backwards
-- Notes: Only used when the Behemoth is attacking with its tail.
---------------------... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/Halvung/npcs/qm2.lua | 8 | 1156 | -----------------------------------
-- Area: Halvung
-- NPC: ??? (Spawn Dextrose(ZNM T2))
-- @pos -144 11 464 62
-----------------------------------
package.loaded["scripts/zones/Halvung/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Halvung/TextIDs");
-----------------------------------... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Tahrongi_Canyon/npcs/Field_Manual.lua | 29 | 1055 | -----------------------------------
-- Area: Tahrongi Canyon
-- NPC: Field Manual
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/fieldsofvalor");
-----------------------------------
-- onTrigger Action
------------------------... | gpl-3.0 |
ibm2431/darkstar | scripts/zones/Heavens_Tower/npcs/Rakano-Marukano.lua | 1 | 1718 | -----------------------------------
-- Area: Heavens Tower
-- NPC: Rakano-Marukano
-- Type: Immigration NPC
-- !pos 6.174 -1 32.285 242
-----------------------------------
require("scripts/globals/conquest");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/Castle_Zvahl_Keep/Zone.lua | 28 | 4006 | -----------------------------------
--
-- Zone: Castle_Zvahl_Keep (162)
--
-----------------------------------
package.loaded["scripts/zones/Castle_Zvahl_Keep/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Castle_Zvahl_Keep/TextIDs");
------... | gpl-3.0 |
greasydeal/darkstar | scripts/globals/effects/healing.lua | 32 | 1675 | -----------------------------------
--
-- EFFECT_HEALING
--
-- Activated through the /heal command
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/San_dOria-Jeuno_Airship/npcs/Ricaldo.lua | 30 | 2318 | -----------------------------------
-- Area: San d'Oria-Jeuno Airship
-- NPC: Ricaldo
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/San_dOria-Jeuno_Airship/TextIDs"] = nil;
require("scripts/zones/San_dOria-Jeuno_Airship/TextIDs");
-----------------------------------
-- onTra... | gpl-3.0 |
naclander/tome | game/modules/tome/data/talents/cunning/traps.lua | 1 | 26793 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
lache/RacingKingLee | crazyclient/src/cocos/cocos2d/json.lua | 106 | 15353 | -----------------------------------------------------------------------------
-- JSON4Lua: JSON encoding / decoding support for the Lua language.
-- json Module.
-- Author: Craig Mason-Jones
-- Homepage: http://json.luaforge.net/
-- Version: 0.9.40
-- This module is released under the MIT License (MIT).
-- Please see L... | mit |
ricker75/Global-Server | data/actions/scripts/elemental spheres quest/elemental_machine.lua | 2 | 1130 | local aids = {
[4129] = {voc = 5, item = 8304, pos = {x = 33263, y = 31810, z = 12}},
[4130] = {voc = 6, item = 8305, pos = {x = 33263, y = 31860, z = 12}},
[4131] = {voc = 7, item = 8300, pos = {x = 33292, y = 31831, z = 12}},
[4132] = {voc = 8, item = 8306, pos = {x = 33243, y = 31831, z = 12}},
}
function onUse... | gpl-2.0 |
ricker75/Global-Server | data/npc/lib/npcsystem/keywordhandler.lua | 2 | 5105 | -- Advanced NPC System by Jiddo
if KeywordHandler == nil then
KeywordNode = {
keywords = nil,
callback = nil,
parameters = nil,
children = nil,
parent = nil
}
-- Created a new keywordnode with the given keywords, callback function and parameters and without any childNodes.
function KeywordNode:new(keys,... | gpl-2.0 |
LegionXI/darkstar | scripts/zones/Mhaura/npcs/Jikka-Abukka.lua | 14 | 1539 | -----------------------------------
-- Area: Mhaura
-- NPC: Jikka-Abukka
-- Involved in Quest: Riding on the Clouds
-- @pos -13 -15 58 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts... | gpl-3.0 |
istr/busted | spec/core_spec.lua | 2 | 13900 | --ensure environment is set up
assert(type(file) == 'nil')
assert(type(describe) == 'function')
assert(type(context) == 'function')
assert(type(it) == 'function')
assert(type(spec) == 'function')
assert(type(test) == 'function')
assert(type(before_each) == 'function')
assert(type(after_each) == 'function')
assert(type(... | mit |
greasydeal/darkstar | scripts/zones/Castle_Oztroja/npcs/Treasure_Coffer.lua | 12 | 3626 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: Treasure Coffer
-- @zone 151
-- @pos
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyite... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Windurst_Woods/npcs/Varun.lua | 13 | 2386 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Varun
-- Type: Standard NPC
-- @zone 241
-- @pos 7.800 -3.5 -10.064
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
require("scripts/zone... | gpl-3.0 |
minetest-australopithecus/minetest-australopithecus-worldgen-utils | mods/worldgen_utils/pyramids/pyramidutil.lua | 2 | 3679 | --[[
Copyright (c) 2015, Robert 'Bobby' Zenz
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the fo... | bsd-2-clause |
wpbest/UWP | sdl/premake/premake4.lua | 5 | 19887 | -- Copyright (C) 1997-2015 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 any purp... | mit |
naclander/tome | src/luajit2/dynasm/dasm_ppc.lua | 74 | 37064 | ------------------------------------------------------------------------------
-- DynASM PPC module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _in... | gpl-3.0 |
ibm2431/darkstar | scripts/globals/mobskills/hexidiscs.lua | 11 | 1182 | ---------------------------------------------
-- Hexidiscs
--
-- Description: A sixfold attack damages targets in a fan-shaped area of effect.
-- Type: Physical
-- Utsusemi/Blink absorb: 6 shadows
-- Range: Unknown cone
-- Notes: Only used in "ball" form.
---------------------------------------------
require("scr... | gpl-3.0 |
ibm2431/darkstar | scripts/zones/Northern_San_dOria/npcs/Morjean.lua | 9 | 1198 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Morjean
-- Involved in Quest: A Squire's Test II (Optional), The Holy Crest
-- !pos 99 0 116 231
-------------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
-----------------------------------
fu... | gpl-3.0 |
Igalia/snabbswitch | src/lib/virtio/net_driver.lua | 12 | 4361 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
-- Application to connect to a virtio-net driver implementation
--
-- Licensed under the Apache 2.0 license
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Copyright (c) 2015 Virtual Open Systems
--
module(..., package.seeall)
local d... | apache-2.0 |
LegionXI/darkstar | scripts/zones/Cape_Teriggan/npcs/HomePoint#1.lua | 27 | 1265 | -----------------------------------
-- Area: Cape Teriggan
-- NPC: HomePoint#1
-- @pos -303 -8 526 113
-----------------------------------
package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Cape_Teriggan/TextIDs");
require("scripts/globals/homepo... | gpl-3.0 |
greasydeal/darkstar | scripts/globals/items/sweet_baked_apple.lua | 35 | 1318 | -----------------------------------------
-- ID: 4336
-- Item: sweet_baked_apple
-- Food Effect: 1hour, All Races
-----------------------------------------
-- Magic Points 25
-- Intelligence 4
-- MP Recovered While Healing 2
-----------------------------------------
require("scripts/globals/status");
----... | gpl-3.0 |
ibm2431/darkstar | scripts/globals/items/serving_of_snowy_rolanberry.lua | 11 | 1094 | -----------------------------------------
-- ID: 4594
-- Item: serving_of_snowy_rolanberry
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Magic % 19
-- Magic Cap 60
-- Intelligence 2
-- Wind Res 5
-----------------------------------------
require("scripts/globals/status")
require("script... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Metalworks/npcs/Romualdo.lua | 33 | 1377 | -----------------------------------
-- Area: Metalworks
-- NPC: Romualdo
-- Involved in Quest: Stamp Hunt
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Metalworks/TextIDs");
-... | gpl-3.0 |
naclander/tome | game/modules/tome/class/Object.lua | 1 | 71821 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
greasydeal/darkstar | scripts/globals/mobskills/Mijin_Gakure.lua | 7 | 1158 | ---------------------------------------------------
-- Ranged Attack
-- Deals a ranged attack to a single target.
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
-------------------------------------... | gpl-3.0 |
SIfoxDevTeam/wireshark | test/lua/pinfo.lua | 24 | 11221 | -- test script for Pinfo and Address functions
-- use with dhcp.pcap in test/captures directory
local major, minor, micro = get_version():match("(%d+)%.(%d+)%.(%d+)")
if major then
major = tonumber(major)
minor = tonumber(minor)
micro = tonumber(micro)
else
major = 99
minor = 99
micro = 99
end
... | gpl-2.0 |
naclander/tome | game/modules/tome/data/chats/jewelry-store.lua | 3 | 7636 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
ricker75/Global-Server | data/actions/scripts/other/surprisebag.lua | 2 | 1027 | local config = {
[6570] = { -- bluePresent
{2687, 10}, {6394, 3}, 6280, 6574, 6578, 6575, 6577, 6569, 6576, 6572, 2114
},
[6571] = { -- redPresent
{2152, 10}, {2152, 10}, {2152, 10}, 2153, 5944, 2112, 6568, 6566, 2492, 2520, 2195, 2114, 2114, 2114, 6394, 6394, 6576, 6576, 6578, 6578, 6574, 6574
},
[9108] = { -... | gpl-2.0 |
LegionXI/darkstar | scripts/zones/Port_Jeuno/npcs/Chaka_Skitimah.lua | 30 | 1269 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Chaka Skitimah
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
require("scripts/zones/Port_Jeuno/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------... | gpl-3.0 |
PerimeterX/perimeterx-nginx-plugin | lib/px/utils/config_loader.lua | 1 | 3913 | local _M = {}
function _M.get_configuration(px_config)
local http = require "resty.http"
local px_constants = require "px.utils.pxconstants"
local px_client = require("px.utils.pxclient").load(px_config)
local px_logger = require("px.utils.pxlogger").load(px_config)
local px_common_utils = require... | mit |
xsilium-frameworks/xsilium-engine | Library/Cegui/cegui/src/ScriptModules/Lua/support/tolua++bin/lua/variable.lua | 14 | 8569 | -- tolua: variable class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id$
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance, support, updates,
-- enhancements,... | mit |
naclander/tome | game/modules/tome/data/maps/zones/deep-bellow-last.lua | 1 | 1794 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2014 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/QuBia_Arena/mobs/Warlord_Rojgnoj.lua | 23 | 1334 | -----------------------------------
-- Area: QuBia_Arena
-- Mission 9-2 SANDO
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/missions");
require("scripts/zones/QuBia_Arena/TextIDs");
function onMobInitialize(mob)
mob:addMod(MOD_SLEEP... | gpl-3.0 |
ibm2431/darkstar | scripts/zones/RuLude_Gardens/npcs/_6r9.lua | 9 | 2610 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Audience Chamber
-- Involved in Mission: Magicite
-- !pos 0 -5 66 243
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/globals/missions")... | gpl-3.0 |
bittorf/luci | applications/luci-app-minidlna/luasrc/controller/minidlna.lua | 72 | 1242 | -- Copyright 2012 Gabor Juhos <juhosg@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.minidlna", package.seeall)
function index()
if not nixio.fs.access("/etc/config/minidlna") then
return
end
local page
page = entry({"admin", "services", "minidlna"}, cbi("minidlna... | apache-2.0 |
Igalia/snabbswitch | src/apps/csv.lua | 15 | 1667 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(...,package.seeall)
local app = require("core.app")
local ffi = require("ffi")
local C = ffi.C
-- Frequency at which lines are added to the CSV file.
-- (XXX should be an argument to the app.)
interval = 1.0
CSV = {}
function CSV... | apache-2.0 |
LegionXI/darkstar | scripts/zones/Buburimu_Peninsula/mobs/Wake_Warder_Wanda.lua | 17 | 1236 | -----------------------------------
-- Area: Buburimi Peninsula
-- MOB: Wake Warder Wanda
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize(mob)
mob:setMobMod(MOBMOD_MA... | gpl-3.0 |
ashkanpj/sajad | plugins/invite.lua | 1111 | 1195 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
mohammad25253/samanxx | plugins/invite.lua | 1111 | 1195 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
ibm2431/darkstar | scripts/zones/Quicksand_Caves/npcs/qm6.lua | 9 | 1524 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: ??? (qm6)
-- Bastok Mission 8.1 "The Chains That Bind Us"
-- !pos -469 0 620 208
-----------------------------------
local ID = require("scripts/zones/Quicksand_Caves/IDs");
require("scripts/globals/missions");
function onTrade(player,npc,trade)
end... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/Heavens_Tower/npcs/Kupipi.lua | 6 | 6505 | -----------------------------------
-- Area: Heaven's Tower
-- NPC: Kupipi
-- Involved in Mission 2-3
-- Involved in Quest: Riding on the Clouds
-- @pos 2 0.1 30 242
-----------------------------------
package.loaded["scripts/zones/Heavens_Tower/TextIDs"] = nil;
-----------------------------------
require("... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Port_Windurst/npcs/Pichichi.lua | 17 | 2793 | -----------------------------------
-- Area: Port Windurst
-- NPC: Pichichi
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scripts/zones/Port_Windurst/T... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Windurst_Walls/npcs/Kobunono.lua | 14 | 1052 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Kobunono
-- Type: Adv. Assistant
-- @zone 239
-- @pos 52.042 -3.499 -57.588
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
------------... | gpl-3.0 |
LegionXI/darkstar | scripts/globals/items/plate_of_bream_risotto.lua | 12 | 1665 | -----------------------------------------
-- ID: 4550
-- Item: plate_of_bream_risotto
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 40
-- Dexterity 6
-- Agility 3
-- Mind -4
-- Health Regen While Healing 1
-- Ranged Accuracy % 6
-- Ranged Accuracy Cap 15
-------------------------... | gpl-3.0 |
wizardbottttt/wizard | plugins/remind.lua | 362 | 1875 | local filename='data/remind.lua'
local cronned = load_from_file(filename)
local function save_cron(msg, text,date)
local origin = get_receiver(msg)
if not cronned[date] then
cronned[date] = {}
end
local arr = { origin, text } ;
table.insert(cronned[date], arr)
serialize_to_file(cronned, filename)
re... | gpl-2.0 |
LegionXI/darkstar | scripts/globals/items/prized_angler_stewpot.lua | 12 | 2110 | -----------------------------------------
-- ID: 5613
-- Item: Prized Angler's Stewpot
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% (cap 200)
-- MP +20
-- Dexterity 4
-- Agility 2
-- Mind 2
-- HP Recovered while healing 9
-- MP Recovered while healing 3
-- ... | gpl-3.0 |
ibm2431/darkstar | scripts/globals/items/maringna.lua | 11 | 1035 | -----------------------------------------
-- ID: 5888
-- Item: maringna
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP +9% (cap 160)
-- Increases rate of combat skill gains by 80%
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")... | gpl-3.0 |
alireza1998/mega1 | plugins/owners.lua | 71 | 12458 |
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 |
ricker75/Global-Server | data/npc/scripts/Izsh.lua | 2 | 2420 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcH... | gpl-2.0 |
Igalia/snabbswitch | src/program/snabbnfv/neutron_sync_master/neutron_sync_master.lua | 10 | 2393 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(..., package.seeall)
local lib = require("core.lib")
local syscall = require("syscall")
local usage = require("program.snabbnfv.neutron_sync_master.README_inc")
local script = require("program.snabbnfv.neutron_sync_master.neutron_s... | apache-2.0 |
LegionXI/darkstar | scripts/zones/Abyssea-Attohwa/npcs/qm13.lua | 9 | 1385 | -----------------------------------
-- Zone: Abyssea-Attohwa
-- NPC: qm13 (???)
-- Spawns Smok
-- @pos ? ? ? 215
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/status");
-----------------------------------
-- onTrigger Action
-----------------------------------
func... | gpl-3.0 |
greasydeal/darkstar | scripts/globals/effects/int_down.lua | 19 | 1095 | -----------------------------------
--
-- EFFECT_INT_DOWN
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
if((target:getStat(MOD_INT) - effect... | gpl-3.0 |
LegionXI/darkstar | scripts/globals/spells/sword_madrigal.lua | 27 | 1566 | -----------------------------------------
-- Spell: Sword Madrigal
-- Gives party members accuracy
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target... | gpl-3.0 |
nicholas-leonard/rnn | examples/simple-recurrent-network.lua | 7 | 2314 | require 'rnn'
-- hyper-parameters
batchSize = 8
rho = 5 -- sequence length
hiddenSize = 7
nIndex = 10
lr = 0.1
-- build simple recurrent neural network
local r = nn.Recurrent(
hiddenSize, nn.LookupTable(nIndex, hiddenSize),
nn.Linear(hiddenSize, hiddenSize), nn.Sigmoid(),
rho
)
local rnn = nn.Sequential... | bsd-3-clause |
LegionXI/darkstar | scripts/zones/Metalworks/npcs/Kaela.lua | 14 | 1445 | -----------------------------------
-- Area: Metalworks
-- NPC: Kaela
-- Type: Adventurer's Assistant
-- @pos 40.167 -14.999 16.073 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scrip... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/Northern_San_dOria/npcs/Rodaillece.lua | 38 | 1029 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Rodaillece
-- Type: Standard Dialogue NPC
-- @zone: 231
-- @pos -246.943 7.000 46.836
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs"... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/Selbina/npcs/Aleria.lua | 34 | 1076 | -----------------------------------
-- Area: Selbina
-- NPC: Aleria
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
-----------------------------------
-- onTrade Ac... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Southern_San_dOria/npcs/Diary.lua | 14 | 2170 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Diary
-- Involved in Quest: To Cure a Cough
-- @zone 230
-- @pos -75 -12 65
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settin... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/PsoXja/npcs/_09h.lua | 17 | 1206 | -----------------------------------
-- Area: Pso'Xja
-- NPC: Avatars Gate
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/PsoXja/TextIDs");
require("scripts/globals/keyitems");
--... | gpl-3.0 |
ibm2431/darkstar | scripts/globals/weaponskills/blade_retsu.lua | 10 | 2076 | -----------------------------------
-- Blade Retsu
-- Katana weapon skill
-- Skill Level: 30
-- Delivers a two-hit attack. Paralyzes enemy. Duration of paralysis varies with TP.
-- Proc rate of Paralyze seems to be based on your level in comparison to the targets level. The higher level you are compared to your target,... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Windurst_Woods/npcs/Miiri-Wohri.lua | 14 | 1050 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Miiri-Wohri
-- Type: Standard NPC
-- @zone 241
-- @pos 106.766 -6 -30.492
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
--------------... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/Abyssea-Konschtat/TextIDs.lua | 4 | 3322 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6383; -- Obtained: <item>
GIL_OBTAINED = 6384; -- Obtained <number> gil
KEYITEM_OBTAINED = 6385; -- Obtain... | gpl-3.0 |
ibm2431/darkstar | scripts/zones/Arrapago_Remnants/npcs/Armoury_Crate.lua | 11 | 1092 | -----------------------------------
-- Area: Arrapago Remnants
-- NPC: Armoury Crate (Arrapago)
-----------------------------------
require("scripts/globals/status")
-----------------------------------
function onTrigger(player, npc)
local instance = npc:getInstance()
local npc = npc:getID()
local FIRST = ... | gpl-3.0 |
herrbrave/RTS_Engine | RTS/RTS/Games/Potion 'Sploder/Bones_Missle.lua | 2 | 1514 | registrar = {
ASSET = 0,
DRAWABLE = 1,
ENTITY = 1,
FACTORY = 1,
PHYSICS = 1,
ANIMATION = 0,
INPUT = 0,
SCRIPT = 1,
ASSET = 0,
CAMERA = 0,
MOUSE_MOVE = 0,
UI = 0,
WORLD = 0,
}
function setup()
print("setup Bones Missle", tostring(entityId))
setCircleCollision(entityId, 24)
setTag(entityId, "BONES_MISS... | mit |
ibm2431/darkstar | scripts/mixins/rage.lua | 12 | 1894 | --[[
Mobs that enter rage mode after a specified amount of time in combat. Controlled by following vars that can be set onMobSpawn:
localVar default description
-------- ------- -----------
rageTimer 1200 seconds into combat at which point the mob will rage.
https://ffxiclopedia.fandom.com/wiki... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Meriphataud_Mountains/npcs/Field_Manual.lua | 29 | 1053 | -----------------------------------
-- Area: Meriphataud Mountains
-- NPC: Field Manual
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/fieldsofvalor");
-----------------------------------
-- onTrigger Action
----------------------... | gpl-3.0 |
greasydeal/darkstar | scripts/zones/PsoXja/npcs/_09b.lua | 8 | 1608 | -----------------------------------
-- Area: Pso'Xja
-- NPC: _09b (Stone Gate)
-- Notes: Spawns Gargoyle when triggered
-- @pos -330.000 14.074 -261.600 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Pso... | gpl-3.0 |
LegionXI/darkstar | scripts/zones/Southern_San_dOria/npcs/HomePoint#3.lua | 27 | 1277 | -----------------------------------
-- Area: Southern San dOria
-- NPC: HomePoint#3
-- @pos 140 -2 123 230
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Southern_San_dOria/TextIDs");
require("scripts/g... | gpl-3.0 |
bittorf/luci | applications/luci-app-radvd/luasrc/model/cbi/radvd/route.lua | 61 | 2294 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local sid = arg[1]
local utl = require "luci.util"
m = Map("radvd", translatef("Radvd - Route"),
translate("Radvd is a router advertisement daemon for IPv6. " ..
"It listens to router solicitations and sends... | apache-2.0 |
BackupGGCode/teebx | misc/lua/sde/desc.lua | 4 | 2537 | -- --- T2-COPYRIGHT-NOTE-BEGIN ---
-- This copyright note is auto-generated by ./scripts/Create-CopyPatch.
--
-- T2 SDE: misc/lua/sde/desc.lua
-- Copyright (C) 2005 - 2006 The T2 SDE Project
-- Copyright (C) 2005 - 2006 Juergen "George" Sawinski
--
-- More information can be found in the files COPYING and README.
-- ... | gpl-2.0 |
LegionXI/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/qm10.lua | 14 | 1037 | -----------------------------------
-- Area: Phomiuna Aqueducts
-- NPC: qm10 (???)
-- Notes: Opens south door @ J-7
-- @pos 113.474 -26.000 91.610 27
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
... | gpl-3.0 |
LegionXI/darkstar | scripts/globals/items/piece_of_raisin_bread.lua | 12 | 1270 | -----------------------------------------
-- ID: 4546
-- Item: piece_of_raisin_bread
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 20
-- Dexterity -1
-- Vitality 4
-----------------------------------------
require("scripts/globals/status");
--------------------------------------... | gpl-3.0 |
ibm2431/darkstar | scripts/globals/spells/curaga.lua | 12 | 1389 | -----------------------------------------
-- Spell: Curaga
-- Restores HP of all party members within area of effect.
-----------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
--------------------------... | gpl-3.0 |
LegionXI/darkstar | scripts/globals/weaponskills/penta_thrust.lua | 26 | 1300 | -----------------------------------
-- Penta Thrust
-- Polearm weapon skill
-- Skill Level: 150
-- Delivers a five-hit attack. params.accuracy varies with TP.
-- 0.875 Attack penalty
-- Will stack with Sneak Attack.
-- Aligned with the Shadow Gorget.
-- Aligned with the Shadow Belt.
-- Element: None
-- Modifiers: STR:2... | gpl-3.0 |
yetsky/luci | modules/base/luasrc/http.lua | 27 | 8237 | --[[
LuCI - HTTP-Interaction
Description:
HTTP-Header manipulator and form variable preprocessor
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the Lice... | apache-2.0 |
ld-test/dromozoa-prl | cut_image.lua | 3 | 1336 | -- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com>
--
-- This file is part of dromozoa-prl.
--
-- dromozoa-prl 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 |
yetsky/luci | applications/luci-statistics/luasrc/statistics/datatree.lua | 77 | 4394 | --[[
Luci statistics - rrd data tree builder
(c) 2008 Freifunk Leipzig / 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
http://www.apache.org/licenses/... | apache-2.0 |
philsiff/Red-Vs-Blue | Red Vs. Blue Files/lua/postprocess/dof.lua | 1 | 1761 |
CreateClientConVar( "pp_dof", "0", false, false )
local pp_dof_initlength = CreateClientConVar( "pp_dof_initlength", "256", false, false )
local pp_dof_spacing = CreateClientConVar( "pp_dof_spacing", "512", false, false )
-- Global table to hold the DoF effect
DOF_Ents = {}
DOF_SPACING = 0
DOF_OFFSET = 0
local... | mit |
VisionLabs/torch-opencv | cv/videoio/init.lua | 1 | 6753 | local cv = require 'cv._env'
local ffi = require 'ffi'
local C = ffi.load(cv.libPath('videoio'))
--- ***************** Classes *****************
require 'cv.Classes'
-- VideoCapture
ffi.cdef[[
struct PtrWrapper VideoCapture_ctor_default();
struct PtrWrapper VideoCapture_ctor_device(int device);
struct PtrWrapper... | mit |
pazos/koreader | spec/unit/touch_probe_spec.lua | 13 | 2044 | describe("touch probe module", function()
local x, y
setup(function()
require("commonrequire")
end)
it("should probe properly for kobo touch", function()
local Device = require("device")
local TouchProbe = require("tools/kobo_touch_probe"):new{}
local need_to_switch_xy
... | agpl-3.0 |
NatWeiss/RGP | src/cocos2d-js/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/PhysicsShapeCircle.lua | 10 | 2331 |
--------------------------------
-- @module PhysicsShapeCircle
-- @extend PhysicsShape
-- @parent_module cc
--------------------------------
-- Get the circle's radius.<br>
-- return A float number.
-- @function [parent=#PhysicsShapeCircle] getRadius
-- @param self
-- @return float#float ret (return value: float)
... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.