repo_name stringlengths 6 69 | path stringlengths 6 178 | copies stringclasses 278
values | size stringlengths 4 7 | content stringlengths 671 917k | license stringclasses 15
values |
|---|---|---|---|---|---|
Squeakz/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Yasmina.lua | 13 | 1073 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Yasmina
-- Type: Chocobo Renter
-- @zone: 94
-- @pos -34.972 -5.815 221.845
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;... | gpl-3.0 |
Squeakz/darkstar | scripts/globals/spells/poison_ii.lua | 26 | 1374 | -----------------------------------------
-- Spell: Poison
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,spel... | gpl-3.0 |
Squeakz/darkstar | scripts/zones/Gustav_Tunnel/mobs/Goblin_Mercenary.lua | 4 | 1053 | ----------------------------------
-- Area: Gustav Tunnel
-- MOB: Goblin Mercenary
-- Note: Place holder Wyvernpoacher Drachlox
-----------------------------------
require("scripts/globals/groundsofvalor");
require("scripts/zones/Gustav_Tunnel/MobIDs");
-----------------------------------
-- onMobDeath
-------------... | gpl-3.0 |
alireza98/z | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
yvan-sraka/cutorch | test/test.lua | 1 | 115041 | local runtests = false
if not cutorch then
require 'cutorch'
runtests = true
end
local test = {}
local minsize = 100
local maxsize = 500
local minvalue = 2
local maxvalue = 20
local nloop = 100
local test_tolerance = 1e-5
local unpack = unpack or table.unpack
--e.g. unit test cmd: th -lcutorch -e "cutorch.test{'... | bsd-3-clause |
jlcvp/otxserver | data/monster/mammals/ghost_wolf.lua | 2 | 2123 | local mType = Game.createMonsterType("Ghost Wolf")
local monster = {}
monster.description = "a ghost wolf"
monster.experience = 65
monster.outfit = {
lookType = 730,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.raceId = 1148
monster.Bestiary = {
class = "Unde... | gpl-2.0 |
Squeakz/darkstar | scripts/zones/Al_Zahbi/npcs/Famatar.lua | 27 | 3042 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Famatar
-- Type: Imperial Gate Guard
-- @pos -105.538 0.999 75.456 48
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/global... | gpl-3.0 |
ddumont/darkstar | scripts/globals/items/goblin_pie.lua | 12 | 1685 | -----------------------------------------
-- ID: 4539
-- Item: goblin_pie
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 12
-- Magic 12
-- Dexterity -1
-- Agility 3
-- Vitality -1
-- Charisma -5
-- Defense % 9 (cap 100)
-----------------------------------------
require("scripts/gl... | gpl-3.0 |
Squeakz/darkstar | scripts/zones/Abyssea-Attohwa/npcs/qm19.lua | 17 | 1523 | -----------------------------------
-- Zone: Abyssea-Attohwa
-- NPC: ???
-- Spawns: Ulhuadshi
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/keyitems");
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(pla... | gpl-3.0 |
jlcvp/otxserver | data/monster/humans/angry_adventurer.lua | 2 | 1847 | local mType = Game.createMonsterType("Angry Adventurer")
local monster = {}
monster.description = "an angry adventurer"
monster.experience = 50
monster.outfit = {
lookType = 129,
lookHead = 92,
lookBody = 15,
lookLegs = 92,
lookFeet = 82,
lookAddons = 0,
lookMount = 0
}
monster.health = 65
monster.maxHealth = ... | gpl-2.0 |
Lapys/gamecode4 | Assets/Scripts/TeapotStates.lua | 44 | 13650 | --========================================================================
-- ActorManager.lua : Defines all the states for an AI controlled teapot
--
-- Part of the GameCode4 Application
--
-- GameCode4 is the sample application that encapsulates much of the source code
-- discussed in "Game Coding Complete - 4t... | lgpl-3.0 |
jlcvp/otxserver | data/monster/demons/dark_torturer.lua | 2 | 3768 | local mType = Game.createMonsterType("Dark Torturer")
local monster = {}
monster.description = "a dark torturer"
monster.experience = 4650
monster.outfit = {
lookType = 234,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.raceId = 285
monster.Bestiary = {
class ... | gpl-2.0 |
ddumont/darkstar | scripts/globals/mobskills/Sickle_Slash.lua | 34 | 1178 | ---------------------------------------------------
-- Sickle Slash
-- Deals critical damage. Chance of critical hit varies with TP.
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
------------------... | gpl-3.0 |
smartdevicelink/sdl_atf_test_scripts | test_scripts/RC/MultipleModules/ModulesAllocation/058_GetInteriorVehicleDataConsent_all_correct_one_module.lua | 1 | 4848 | ---------------------------------------------------------------------------------------------------
-- Proposal:
-- https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0221-multiple-modules.md
-- Description:
-- Check of GetInteriorVehicleDataConsent RPC processing with one moduleId and module alloc... | bsd-3-clause |
jchuang1977/luci-1 | applications/luci-app-shairplay/luasrc/model/cbi/shairplay.lua | 78 | 1789 | -- Copyright 2014 Álvaro Fernández Rojas <noltari@gmail.com>
-- Licensed to the public under the Apache License 2.0.
m = Map("shairplay", "Shairplay", translate("Shairplay is a simple AirPlay server implementation, here you can configure the settings."))
s = m:section(TypedSection, "shairplay", "")
s.addremove = true... | apache-2.0 |
Squeakz/darkstar | scripts/globals/spells/absorb-int.lua | 17 | 1359 | --------------------------------------
-- Spell: Absorb-INT
-- Steals an enemy's intelligence.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-------------... | gpl-3.0 |
Squeakz/darkstar | scripts/globals/items/windurst_taco.lua | 18 | 1552 | -----------------------------------------
-- ID: 5172
-- Item: windurst_taco
-- Food Effect: 30Min, All Races
-----------------------------------------
-- MP 20
-- Vitality -1
-- Agility 5
-- MP Recovered While Healing 1
-- Ranged Accuracy % 8 (cap 10)
-----------------------------------------
require("scripts/globals... | gpl-3.0 |
ddumont/darkstar | scripts/globals/spells/knights_minne_iii.lua | 27 | 1498 | -----------------------------------------
-- Spell: Knight's Minne III
-- Grants Defense bonus to all allies.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(ca... | gpl-3.0 |
Squeakz/darkstar | scripts/globals/spells/knights_minne_iii.lua | 27 | 1498 | -----------------------------------------
-- Spell: Knight's Minne III
-- Grants Defense bonus to all allies.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(ca... | gpl-3.0 |
Squeakz/darkstar | scripts/zones/Sacrarium/npcs/qm6.lua | 13 | 1803 | -----------------------------------
-- Area: Sacrarium
-- NPC: qm6 (???)
-- Notes: Used to spawn Old Prof. Mariselle
-- @pos 62.668 -3.111 -127.310 28
-----------------------------------
package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Sacrarium/Tex... | gpl-3.0 |
yeewang/openwrt-luci | applications/luci-samba/luasrc/model/cbi/samba.lua | 79 | 2602 | --[[
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 |
Squeakz/darkstar | scripts/zones/Bastok_Markets_[S]/TextIDs.lua | 10 | 1074 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 11209; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6384; -- Obtained: <item>
GIL_OBTAINED = 6385; -- Obtained <number> gil
KEYITEM_OBTAINED = 6387; -- Obtai... | gpl-3.0 |
ForrestMarkX/glua-ZombieMaster | entities/entities/game_text/init.lua | 1 | 3142 | ENT.Type = "point"
local SF_ENVTEXT_ALLPLAYERS = 0x0001
function ENT:Initialize()
end
function ENT:KeyValue(key, value)
key = string.lower(key)
if key == "color" then
local r, g, b = value:match("(%d+) (%d+) (%d+)")
self.Color1 = Color(r, g, b) or self.Color1
elseif key == "color2" then
... | apache-2.0 |
ddumont/darkstar | scripts/zones/Abyssea-Vunkerl/npcs/qm12.lua | 14 | 1350 | -----------------------------------
-- Zone: Abyssea-Vunkerl
-- NPC: qm12 (???)
-- Spawns Gnawtooth Gary
-- @pos ? ? ? 217
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade... | gpl-3.0 |
smartdevicelink/sdl_atf_test_scripts | test_scripts/API/VehicleData/GpsShiftSupport/009_GetInteriorVehicleData_stationLocation_shift_after_subscription.lua | 1 | 3705 | ---------------------------------------------------------------------------------------------------
-- Proposal:
-- https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0199-Adding-GPS-Shift-support.md
-- Description:
-- In case:
-- 1) Mobile sends GetInteriorVehicleData request with subscribe=true
--... | bsd-3-clause |
smartdevicelink/sdl_atf_test_scripts | test_scripts/API/PutFile/005_PutFile_with_negative_crc_singleFrame.lua | 1 | 1597 | ---------------------------------------------------------------------------------------------------
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0037-Expand-Mobile-putfile-RPC.md
-- User story:TBD
-- Use case:TBD
--
-- Requirement summary:
-- TBD
--
-- Description:
-- In case:
-- ... | bsd-3-clause |
jlcvp/otxserver | data/monster/quests/forgotten_knowledge/shadow_tentacle.lua | 2 | 2566 | local mType = Game.createMonsterType("Shadow Tentacle")
local monster = {}
monster.description = "a shadow tentacle"
monster.experience = 0
monster.outfit = {
lookType = 681,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.health = 22500
monster.maxHealth = 22500... | gpl-2.0 |
ddumont/darkstar | scripts/zones/Windurst_Woods/npcs/Nikkoko.lua | 53 | 1835 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Nikkoko
-- Type: Clothcraft Image Support
-- @pos -32.810 -3.25 -113.680 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
requ... | gpl-3.0 |
Squeakz/darkstar | scripts/globals/items/bowl_of_seafood_stew.lua | 18 | 1455 | -----------------------------------------
-- ID: 4561
-- Item: Bowl of Seafood Stew
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 20
-- Dexterity 1
-- Vitality 5
-- Defense % 25
-- Defense Cap 120
-----------------------------------------
require("scripts/globals/status");
----... | gpl-3.0 |
Squeakz/darkstar | scripts/globals/items/stick_of_pepperoni.lua | 18 | 1588 | -----------------------------------------
-- ID: 5660
-- Item: stick_of_pepperoni
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP % 3 (assuming 3% from testing, no known cap)
-- Strength 3
-- Intelligence -1
-- Attack % 60 (assuming 60%, cap 30)
-----------------------------------------... | gpl-3.0 |
roysc/awesome | lib/wibox/layout/align.lua | 2 | 9861 | ---------------------------------------------------------------------------
-- @author Uli Schlachter
-- @copyright 2010 Uli Schlachter
-- @release @AWESOME_VERSION@
-- @classmod wibox.layout.align
---------------------------------------------------------------------------
local setmetatable = setmetatable
local table... | gpl-2.0 |
sql2/MySQL_Redis_Plugin_Dev | plugin/innodb_redis/innodb_redis/deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | gpl-2.0 |
jomanmuk/vlc-2.1 | share/lua/meta/fetcher/tvrage.lua | 48 | 2571 | --[[
Gets metas for tv episode using tvrage.
$Id$
Copyright © 2010 the VideoLAN team
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 2 of the License, or
(at your option) any l... | lgpl-2.1 |
Squeakz/darkstar | scripts/zones/Windurst_Waters/npcs/Orez-Ebrez.lua | 17 | 1793 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Orez-Ebrez
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
require("scripts/zones/Windurst_Waters/TextI... | gpl-3.0 |
Squeakz/darkstar | scripts/globals/abilities/penury.lua | 27 | 1096 | -----------------------------------
-- Ability: Penury
-- Reduces the MP cost of your next white magic spell by 50%.
-- Obtained: Scholar Level 10
-- Recast Time: Stratagem Charge
-- Duration: 1 white magic spell or 60 seconds, whichever occurs first
--
-- Level |Charges |Recharge Time per Charge
-- ----- -------- ... | gpl-3.0 |
cp1337/devland | data/npc/scripts/Olfera/eq.lua | 1 | 12074 | local focus = 0
local talk_start = 0
local target = 0
local following = false
local attacking = false
local buyit = 0
local count = 0
function onThingMove(creature, thing, oldpos, oldstackpos)
end
function onCreatureAppear(creature)
end
function onCreatureDisappear(cid, pos)
if focus == cid... | gpl-2.0 |
evgeni/sysdig | userspace/sysdig/chisels/fdbytes_by.lua | 18 | 1508 | --[[
Copyright (C) 2013-2014 Draios inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without... | gpl-2.0 |
smartdevicelink/sdl_atf_test_scripts | test_scripts/Resumption/Handling_errors_from_HMI/053_Another_RPC_IVD_delayed_response_from_HMI.lua | 1 | 4011 | ---------------------------------------------------------------------------------------------------
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0190-resumption-data-error-handling.md
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0188-get-inte... | bsd-3-clause |
smartdevicelink/sdl_atf_test_scripts | test_scripts/RC/CLIMATE_RADIO/GetInteriorVehicleData/009_Success_flow_in_case_moduleType_is_an_empty_array_in_LPT.lua | 1 | 1770 | ---------------------------------------------------------------------------------------------------
-- User story: https://github.com/smartdevicelink/sdl_requirements/issues/2
-- Use case: https://github.com/smartdevicelink/sdl_requirements/blob/master/detailed_docs/current_module_status_data.md
-- Item: Use Case 1: Ma... | bsd-3-clause |
Squeakz/darkstar | scripts/zones/Nashmau/npcs/Yohj_Dukonlhy.lua | 15 | 1397 | -----------------------------------
-- Area: Nashmau
-- NPC: Yohj Dukonlhy
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
-----------------------------------
-- onTrade Action... | gpl-3.0 |
jorgifumi/luci | modules/luci-base/luasrc/model/cbi/admin_network/proto_static.lua | 60 | 2460 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local ifc = net:get_interface()
local ipaddr, netmask, gateway, broadcast, dns, accept_ra, send_rs, ip6addr, ip6gw
local mtu, metric
ipaddr = section:taboption("general", Value, ... | apache-2.0 |
ddumont/darkstar | scripts/zones/Port_Windurst/npcs/Chipmy-Popmy.lua | 17 | 1288 | -----------------------------------
-- Area: Port Windurst
-- NPC: Chipmy-Popmy
-- Working 100%
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/missions");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(playe... | gpl-3.0 |
Squeakz/darkstar | scripts/globals/items/serving_of_bavarois_+1.lua | 18 | 1196 | -----------------------------------------
-- ID: 5730
-- Item: Serving of Bavarois +1
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- HP 25
-- Intelligence 4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCh... | gpl-3.0 |
slyon/MoonGen | test/proto/testIPv4.lua | 5 | 2123 | describe("IPv4 class", function()
local ffi = require "ffi"
local pkt = require "packet"
it("should parse", function()
local ip = parseIP4Address("1.2.3.4")
assert.are.same(ip, 0x01020304)
end)
it("should return in correct byteorder", function()
local ipString = "123.56.200.42"
local ip = ffi.new("union ip... | mit |
yeewang/openwrt-luci | applications/luci-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua | 76 | 3146 | --[[
Luci diag - Diagnostics controller module
(c) 2009 Daniel Dickinson
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
]]--
module("luci.cont... | apache-2.0 |
smartdevicelink/sdl_atf_test_scripts | test_scripts/API/ServiceStatusUpdateToHMI/006_Unprotected_service_GetSystemTime_invalid_response_INVALID_TIME.lua | 1 | 3369 | -----------------------------------------------------------------------------------------------------------------------
-- Proposal:
-- https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0211-ServiceStatusUpdateToHMI.md
--------------------------------------------------------------------------------... | bsd-3-clause |
ddumont/darkstar | scripts/zones/Empyreal_Paradox/mobs/Promathia_2.lua | 23 | 2582 | -----------------------------------
-- Area: Empyreal Paradox
-- MOB: Promathia (phase 2)
-----------------------------------
package.loaded["scripts/zones/Empyreal_Paradox/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Empyreal_Paradox/TextIDs");
require("scripts/globals/status");
require... | gpl-3.0 |
ddumont/darkstar | scripts/globals/abilities/pets/attachments/tension_spring.lua | 27 | 1089 | -----------------------------------
-- Attachment: Tension Spring
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onUseAbility
-----------------------------------
function onEquip(pet)
pet:addMod(MOD_ATTP, 3)
pet:addMod(MOD_RATTP, 3)
end
function... | gpl-3.0 |
ddumont/darkstar | scripts/zones/Lower_Jeuno/npcs/Chululu.lua | 25 | 5445 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Chululu
-- Starts and Finishes Quests: Collect Tarut Cards, Rubbish Day
-- Optional Cutscene at end of Quest: Searching for the Right Words
-- @pos -13 -6 -42 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = n... | gpl-3.0 |
smartdevicelink/sdl_atf_test_scripts | test_scripts/Smoke/API/056_SendHapticData_PositiveCase_SUCCESS.lua | 1 | 2208 | ---------------------------------------------------------------------------------------------------
-- User story: Smoke
-- Use case: SendHapticData
-- Item: Happy path
--
-- Requirement summary:
-- [SendHapticData] SUCCESS: getting SUCCESS:UI.SendHapticData()
--
-- Description:
-- Mobile application sends valid SendHa... | bsd-3-clause |
Squeakz/darkstar | scripts/zones/Garlaige_Citadel/Zone.lua | 13 | 4132 | -----------------------------------
--
-- Zone: Garlaige_Citadel (200)
--
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Garlaige_Citadel... | gpl-3.0 |
elverion/rom-bot | classes/pawn.lua | 1 | 29216 | PT_NONE = 0;
PT_PLAYER = 1;
PT_MONSTER = 2;
PT_SIGIL = 3;
PT_NPC = 4;
PT_NODE = 4;
RACE_HUMAN = 0;
RACE_ELF = 1;
RACE_DWARF = 2;
CLASS_NONE = -1;
CLASS_GM = 0;
CLASS_WARRIOR = 1;
CLASS_SCOUT = 2;
CLASS_ROGUE = 3;
CLASS_MAGE = 4;
CLASS_PRIEST = 5;
CLASS_KNIGHT = 6;
CLASS_WARDEN = 7;
CLASS_DRUID = 8... | mit |
Squeakz/darkstar | scripts/globals/items/silken_siesta.lua | 18 | 1238 | -----------------------------------------
-- ID: 5626
-- Item: Silken Siesta
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP Recoverd while healing 2
-- MP Recovered while healing 5
-----------------------------------------
require("scripts/globals/status");
----... | gpl-3.0 |
ff-kbu/fff-luci | applications/luci-firewall/luasrc/model/cbi/firewall/forwards.lua | 85 | 3942 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010-2012 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
htt... | apache-2.0 |
ddumont/darkstar | scripts/zones/Newton_Movalpolos/Zone.lua | 13 | 1778 | -----------------------------------
--
-- Zone: Newton_Movalpolos (12)
--
-----------------------------------
package.loaded["scripts/zones/Newton_Movalpolos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Newton_Movalpolos/TextIDs");
------------------... | gpl-3.0 |
ddumont/darkstar | scripts/globals/items/bowl_of_vegetable_gruel.lua | 12 | 1502 | -----------------------------------------
-- ID: 4489
-- Item: bowl_of_vegetable_gruel
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- Vitality -1
-- Agility 2
-- Ranged Accuracy % 15 (cap 10)
-- HP Recovered While Healing 4
-----------------------------------------
require("scripts/global... | gpl-3.0 |
ddumont/darkstar | scripts/globals/items/cone_calamary.lua | 12 | 1328 | -----------------------------------------
-- ID: 5128
-- Item: Cone Calamary
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 3
-- Mind -5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----... | gpl-3.0 |
Squeakz/darkstar | scripts/zones/Quicksand_Caves/npcs/_5s1.lua | 13 | 1251 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Ornate Door
-- Door blocked by Weight system
-- @pos 21 0 -180 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Caves/TextIDs"... | gpl-3.0 |
Squeakz/darkstar | scripts/zones/Kazham/npcs/Nti_Badolsoma.lua | 15 | 1053 | -----------------------------------
-- Area: Kazham
-- NPC: Nti Badolsoma
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
f... | gpl-3.0 |
rodoviario/wordgrinder | src/lua/export/troff.lua | 3 | 3298 | -- © 2008 David Given.
-- WordGrinder is licensed under the MIT open source license. See the COPYING
-- file in this distribution for the full text.
local NextCharInWord = wg.nextcharinword
local ReadU8 = wg.readu8
local string_len = string.len
local string_char = string.char
local string_format = string.format
local ... | mit |
nubick/QuikSharp | tests/Profiler/lua/qscallbacks.lua | 1 | 1825 | --~ Copyright Ⓒ 2014 Victor Baybekov
package.path = package.path..";"..".\\?.lua;"..".\\?.luac"
package.cpath = package.cpath..";"..'.\\clibs\\?.dll'
local util = require("qsutils")
local qscallbacks = {}
function OnQuikSharpDisconnected()
-- TODO any recovery or risk management logic here
end
--- Функция вызы... | apache-2.0 |
albmarvil/The-Eternal-Sorrow | Exes/media/LUA/Managers/Enemigos/MinionSummonUniDirElite.lua | 2 | 2256 |
-------------------------------TABLA MinionSummonUniDirElite---------------------------
MinionSummonUniDirElite = {
--variables del enemigo
id = 1,
tier = 5,
Archetype = "MinionSummonUniDirElite",
vida = function (x)
return 0.01*x*x + 0.75*x + 4
end,
ataque = function (x)
return 0.5*x + 3
end,
vel_mo... | apache-2.0 |
EnigmaTeam/EnigmaBot | libs/serpent.lua | 656 | 7877 | local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
local badtype = {thread = true, userdata = true, cdata = true}
lo... | gpl-2.0 |
jlcvp/otxserver | data/monster/aquatics/quara_hydromancer_scout.lua | 2 | 4058 | local mType = Game.createMonsterType("Quara Hydromancer Scout")
local monster = {}
monster.description = "a quara hydromancer scout"
monster.experience = 800
monster.outfit = {
lookType = 47,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.raceId = 244
monster.Be... | gpl-2.0 |
ddumont/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/_0rw.lua | 14 | 1315 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: _0rw (Oil Lamp)
-- Notes: Opens south door at J-9 from inside.
-- @pos 103.703 -26.180 83.000 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
require("sc... | gpl-3.0 |
ddumont/darkstar | scripts/globals/spells/bluemagic/maelstrom.lua | 25 | 1815 | -----------------------------------------
-- Spell: Maelstrom
-- Deals water damage to enemies within range. Additional effect: STR Down
-- Spell cost: 162 MP
-- Monster Type: Aquans
-- Spell Type: Magical (Water)
-- Blue Magic Points: 5
-- Stat Bonus: Mind +2
-- Level: 61
-- Casting Time: 6 seconds
-- Recast Time: 39 ... | gpl-3.0 |
anewell/pose-hg-train | src/main.lua | 1 | 1256 | require 'paths'
paths.dofile('ref.lua') -- Parse command line input and do global variable initialization
paths.dofile('model.lua') -- Read in network model
paths.dofile('train.lua') -- Load up training/testing functions
-- Set up data loader
torch.setnumthreads(1)
local Dataloader = paths.dofile('util/dataloa... | bsd-3-clause |
Planimeter/grid-sdk | maps/test_01.lua | 1 | 32277 | return {
version = "1.1",
luaversion = "5.1",
tiledversion = "0.16.1",
orientation = "orthogonal",
renderorder = "right-down",
width = 100,
height = 100,
tilewidth = 16,
tileheight = 16,
nextobjectid = 225,
properties = {},
tilesets = {
{
name = "Developer",
firstgid = 1,
f... | mit |
Squeakz/darkstar | scripts/globals/weaponskills/shockwave.lua | 10 | 1454 | -----------------------------------
-- Shockwave
-- Great Sword weapon skill
-- Skill level: 150
-- Delivers an area of effect attack. Sleeps enemies. Duration of effect varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Aqua Gorget.
-- Aligned with the Aqua Belt.
-- Element: None
-- Modifiers: STR:30... | gpl-3.0 |
Squeakz/darkstar | scripts/zones/Xarcabard/npcs/Pilcha_RK.lua | 13 | 3316 | -----------------------------------
-- Area: Xarcabard
-- NPC: Pilcha, R.K.
-- Type: Border Conquest Guards
-- @pos -133.678 -22.517 112.224 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
require... | gpl-3.0 |
smartdevicelink/sdl_atf_test_scripts | test_scripts/RC/CLIMATE_RADIO/OnInteriorVehicleData/002_Disallow_flow_by_policy_CLIMATE.lua | 1 | 1949 | ---------------------------------------------------------------------------------------------------
-- User story: https://github.com/smartdevicelink/sdl_requirements/issues/7
-- Use case: https://github.com/smartdevicelink/sdl_requirements/blob/master/detailed_docs/RC/Policy_Support_of_basic_RC_functionality.md
-- Ite... | bsd-3-clause |
Squeakz/darkstar | scripts/globals/weaponskills/true_strike.lua | 11 | 1463 | -----------------------------------
-- True Strike
-- Club weapon skill
-- Skill level: 175
-- Deals params.critical damage. params.accuracy varies with TP.
-- 100% Critical Hit Rate. Has a substantial accuracy penalty at 100TP. http://www.bg-wiki.com/bg/True_Strike
-- Will stack with Sneak Attack.
-- Aligned with the ... | gpl-3.0 |
ddumont/darkstar | scripts/globals/items/anchovy_pizza.lua | 12 | 1552 | -----------------------------------------
-- ID: 5699
-- Item: anchovy_pizza
-- Food Effect: 3hours, All Races
-----------------------------------------
-- HP +30
-- DEX +1
-- Accuracy +9% (Cap 15)
-- Attack +10% (Cap 20)
-----------------------------------------
require("scripts/globals/status");
-------------------... | gpl-3.0 |
Squeakz/darkstar | scripts/globals/abilities/scholars_roll.lua | 19 | 2280 | -----------------------------------
-- Ability: Scholar's Roll
-- Enhances Conserve MP effect for party members within area of effect
-- Optimal Job: Scholar
-- Lucky Number: 2
-- Unlucky Number: 6
-- Level: 64
--
-- Data unknown
-----------------------------------
require("scripts/globals/settings");
require("scripts... | gpl-3.0 |
Squeakz/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Scotwick.lua | 13 | 1081 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Scotwick
-- Type: Allied Notes Notorious Monsters
-- @zone: 94
-- @pos 153.785 -3.134 9.895
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/... | gpl-3.0 |
elverion/rom-bot | classes/inventoryitem.lua | 1 | 4793 | include("item.lua");
CInventoryItem = class(CItem,
function( self, slotnumber )
self.Location = "inventory"
self.Available = false; -- If slot is in unrented bag then = false
self.SlotNumber = slotnumber
self.BagId = nil;
if self.SlotNumber ~= nil and self.SlotNumber >= 0 then
self:update()
... | mit |
rogerpueyo/openwrt-packages | utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/nat_traffic.lua | 79 | 1251 | local function scrape()
-- documetation about nf_conntrack:
-- https://www.frozentux.net/iptables-tutorial/chunkyhtml/x1309.html
nat_metric = metric("node_nat_traffic", "gauge" )
for e in io.lines("/proc/net/nf_conntrack") do
-- output(string.format("%s\n",e ))
local fields = space_split(e)
local ... | gpl-2.0 |
yeewang/openwrt-luci | applications/luci-radvd/luasrc/model/cbi/radvd/dnssl.lua | 82 | 2276 | --[[
LuCI - Lua Configuration Interface
Copyright 2010 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: rdnss.lu... | apache-2.0 |
smartdevicelink/sdl_atf_test_scripts | test_scripts/Protocol/NACKReason/003_Second_Protected_RPC_Service_NACK.lua | 1 | 3961 | ---------------------------------------------------------------------------------------------------
-- Precondition:
-- 1) Initialize the client side certifcate file for SDL
-- 2) Start SDL, HMI, connect Mobile device
-- 3) Register App_1 on SDL.
--
-- Steps:
-- 1) Send StartService Request(with protocol version ... | bsd-3-clause |
Squeakz/darkstar | scripts/globals/items/salmon_sub_sandwich.lua | 18 | 1492 | -----------------------------------------
-- ID: 4355
-- Item: salmon_sub_sandwich
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 2
-- Agility 1
-- Vitality 1
-- Intelligence 2
-- Mind -2
-- Ranged ACC 2
-----------------------------------------
require("scripts/globals/status"... | gpl-3.0 |
Squeakz/darkstar | scripts/globals/items/pestle.lua | 41 | 1123 | -----------------------------------------
-- ID: 18599
-- Item: Pestle
-- Additional effect: MP Drain
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-----------------------------------
fun... | gpl-3.0 |
roysc/awesome | spec/wibox/test_utils.lua | 1 | 3151 | ---------------------------------------------------------------------------
-- @author Uli Schlachter
-- @copyright 2014 Uli Schlachter
---------------------------------------------------------------------------
local object = require("gears.object")
local cache = require("gears.cache")
local wbase = require("wibox.wi... | gpl-2.0 |
teto/home | config/mpv/scripts_backup/zones.lua | 2 | 6292 | -- zones.lua: mpv script for handling commands depending on where the mouse pointer is at,
-- mostly for mouse wheel handling, by configuring it via input.conf, e.g.:
--
-- Ported from avih's ( https://github.com/avih ) zones.js
--
-- Vertical positions can be top, middle, bottom or "*" to represent the ... | gpl-2.0 |
ddumont/darkstar | scripts/zones/Windurst_Woods/npcs/Wani_Casdohry.lua | 17 | 1310 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Wani Casdohry
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Windurst_Woods/TextIDs");
------------------... | gpl-3.0 |
LuaDist2/validate-args | tests/callback.lua | 1 | 2815 | local va = require( 'validate.args' )
local validate = va.validate
local validate_opts = va.validate_opts
local setup = require 'setup'
describe( "callbacks:", function ()
before_each( setup )
describe( "pre:", function ()
it( "static", function ()
local value
local name
local template = ... | gpl-3.0 |
ddumont/darkstar | scripts/zones/Cloister_of_Frost/npcs/Cermet_Headstone.lua | 14 | 2769 | -----------------------------------
-- Area: Cloister of Frost
-- NPC: Cermet Headstone
-- Involved in Mission: ZM5 Headstone Pilgrimage (Ice Fragment)
-- @pos 566 0 606 203
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Frost/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
jlcvp/otxserver | data/lib/core/spectators.lua | 2 | 4063 | ---@author @Glatharth
---@version 1.2
---@since 1.0
Spectators = {}
setmetatable(Spectators, {
__call = function(self)
local spectators_data = {
only_player = true,
multi_floor = false,
blacklist_pos = {},
creature_detect = {}
}
return setmetatable(spectators_data,... | gpl-2.0 |
patrikrm13/soupergroup | plugins/rss.lua | 700 | 5434 | local function get_base_redis(id, option, extra)
local ex = ''
if option ~= nil then
ex = ex .. ':' .. option
if extra ~= nil then
ex = ex .. ':' .. extra
end
end
return 'rss:' .. id .. ex
end
local function prot_url(url)
local url, h = string.gsub(url, "http://", "")
local... | gpl-2.0 |
alireza98/z | plugins/rss.lua | 700 | 5434 | local function get_base_redis(id, option, extra)
local ex = ''
if option ~= nil then
ex = ex .. ':' .. option
if extra ~= nil then
ex = ex .. ':' .. extra
end
end
return 'rss:' .. id .. ex
end
local function prot_url(url)
local url, h = string.gsub(url, "http://", "")
local... | gpl-2.0 |
ddumont/darkstar | scripts/zones/Sealions_Den/mobs/Tenzen.lua | 23 | 1173 | -----------------------------------
-- Area: Sealion den
-- NPC: Tenzen
-----------------------------------
-----------------------------------
-- onMobSpawn
-----------------------------------
function onMobSpawn(mob)
end;
-----------------------------------
-- onMobEngaged
-----------------------------------
fun... | gpl-3.0 |
lemonkit/VisualCocos | src/cocos/cocos2d/Cocos2d.lua | 11 | 14147 |
cc = cc or {}
function cc.clampf(value, min_inclusive, max_inclusive)
-- body
local temp = 0
if min_inclusive > max_inclusive then
temp = min_inclusive
min_inclusive = max_inclusive
max_inclusive = temp
end
if value < min_inclusive then
return min_inclusive
el... | mit |
lemonkit/VisualCocos | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Physics3DRigidBody.lua | 11 | 12856 |
--------------------------------
-- @module Physics3DRigidBody
-- @extend Physics3DObject
-- @parent_module cc
--------------------------------
-- Set the acceleration.
-- @function [parent=#Physics3DRigidBody] setGravity
-- @param self
-- @param #vec3_table acceleration
-- @return Physics3DRigidBody#Physics3DRigi... | mit |
ddumont/darkstar | scripts/zones/Southern_San_dOria/npcs/Parvipon.lua | 13 | 2490 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Parvipon
-- Starts and Finishes Quest: The Merchant's Bidding (R)
-- @zone 230
-- @pos -169 -1 13
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("s... | gpl-3.0 |
Squeakz/darkstar | scripts/zones/Port_San_dOria/npcs/Coullave.lua | 13 | 1938 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Coullave
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/quests");
require("scrip... | gpl-3.0 |
ddumont/darkstar | scripts/zones/Temple_of_Uggalepih/npcs/Tome_of_Magic.lua | 14 | 1154 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: Tome of Magic
-- Involved In Windurst Mission 7-2 (Optional Dialogue)
-- @pos 346 0 343 159 <many>
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
ddumont/darkstar | scripts/zones/Yughott_Grotto/npcs/HomePoint#1.lua | 27 | 1271 | -----------------------------------
-- Area: Yughott_Grotto
-- NPC: HomePoint#1
-- @pos 434 -40.299 171 142
-----------------------------------
package.loaded["scripts/zones/Yughott_Grotto/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Yughott_Grotto/TextIDs");
require("scripts/globals/... | gpl-3.0 |
ddumont/darkstar | scripts/zones/Buburimu_Peninsula/npcs/Mashasha_WW.lua | 14 | 3343 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Mashasha, W.W.
-- Border Conquest Guards
-- @pos -599.903 -41.441 165.776 118
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conqu... | gpl-3.0 |
jlcvp/otxserver | data/monster/quests/the_new_frontier/fatality.lua | 2 | 1869 | local mType = Game.createMonsterType("Fatality")
local monster = {}
monster.description = "Fatality"
monster.experience = 3250
monster.outfit = {
lookType = 113,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.health = 6000
monster.maxHealth = 6000
monster.race =... | gpl-2.0 |
elverion/rom-bot | classes/player.lua | 1 | 134493 | include("pawn.lua");
include("skill.lua");
WF_NONE = 0; -- We didn't fail
WF_TARGET = 1; -- Failed waypoint because we have a target
WF_DIST = 2; -- Broke because our distance somehow increased. It happens.
WF_STUCK = 3; -- Failed waypoint because we are stuck on something.
WF_COMBAT = 4; -- stopped waypoi... | mit |
Squeakz/darkstar | scripts/zones/Bastok_Markets/npcs/Nbu_Latteh.lua | 26 | 3365 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Nbu Latteh
-- Starts & Finishes Quest: Mom, The Adventurer?
-- Starts Quest: The Signpost Marks the Spot
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scr... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.