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 |
|---|---|---|---|---|---|
abriasffxi/darkstar | scripts/globals/weaponskills/metatron_torment.lua | 19 | 2291 | -----------------------------------
-- Metatron Torment
-- Hand-to-Hand Skill level: 5 Description: Delivers a threefold attack. Damage varies wit weapon skill
-- Great Axe Weapon Skill
-- Skill Level: N/A
-- Lowers target's defense. Additional effect: temporarily lowers damage taken from enemies.
-- Defense Down effec... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/bcnm.lua | 1 | 42794 | require("scripts/globals/status");
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("scripts/globals/quests");
-- NEW SYSTEM BCNM NOTES
-- The "core" functions TradeBCNM EventUpdateBCNM EventTriggerBCNM EventFinishBCNM all return TRUE if the action performed is covered by the function.... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Mhaura/npcs/Pikini-Mikini.lua | 36 | 1448 | -----------------------------------
-- Area: Mhaura
-- NPC: Pikini-Mikini
-- Standard Merchant NPC
-- @pos -48 -4 30 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/Mhaur... | gpl-3.0 |
otify/ProjectPorcupine | Assets/StreamingAssets/LUA/Overlay.lua | 5 | 1884 | -- Example of overlay function
-- Input: tile, the current tile for which the
-- overlay wants to display the data
-- Input: world, world class
-- Return: an integer (by default should be scaled between 0 and 255)
function oxygenValueAt(tile)
if tile == nil then
return 0
end
room = tile.room
if ... | gpl-3.0 |
isalnikov/Algorithm-Implementations | Gale_Shapely/Lua/Yonaba/gale_shapely_test.lua | 53 | 1896 | -- Tests for binary_search.lua
local binary_search = require 'binary_search'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1... | mit |
abriasffxi/darkstar | scripts/zones/Ordelles_Caves/npcs/Treasure_Chest.lua | 17 | 4280 | -----------------------------------
-- Area: Ordelles Caves
-- NPC: Treasure Chest
-- Involved In Quest: Signed In Blood and The Goblin Tailor
-- @zone 193
-----------------------------------
package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/key... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Windurst_Woods/npcs/Mushuhi-Metahi.lua | 59 | 1052 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Mushuhi-Metahi
-- Type: Weather Reporter
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Windurst_Woods/T... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Tavnazian_Safehold/npcs/_0q1.lua | 17 | 1908 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Sewer Entrance
-- @pos 28 -12 44 26
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/m... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/The_Garden_of_RuHmet/npcs/_0z0.lua | 17 | 1917 | -----------------------------------
-- Area: The_Garden_of_RuHmet
-- NPC: _0z0
-----------------------------------
package.loaded["scripts/zones/The_Garden_of_RuHmet/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/The_Garden_of_RuHmet/TextIDs");
require... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Al_Zahbi/npcs/Iphaaf.lua | 38 | 1025 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Iphaaf
-- Type: Mihli's Attendant
-- @zone: 48
-- @pos -28.014 -7 64.371
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
------------------------... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Quicksand_Caves/mobs/Centurio_IV-VII.lua | 11 | 1351 | -----------------------------------
-- Area: Quicksand Caves
-- MOB: Centurio IV-VII
-- Pops in Bastok mission 8-1 "The Chains that Bind Us"
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Caves/Text... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Nashmau/npcs/Chichiroon.lua | 17 | 1298 | -----------------------------------
-- Area: Nashmau
-- NPC: Chichiroon
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
require("scripts/globals/shop");
-------------------... | gpl-3.0 |
Ezak91/CST-TMDB-Plugin | var/plugins/tmdb.lua | 1 | 8949 | --TMDB LUA Plugin
--From Ezak for coolstream.to
--READ LICENSE on https://github.com/Ezak91/CST-TMDB-Plugin.git
--2014
-- Aktuelle ChannelID für EPG Funktion ermitteln
function GetchannelID()
local fname = "../tmp/tmdb_channelid.txt"
os.execute("wget -q -O " .. fname .. " http://127.0.0.1/control/zapto" )
loc... | mit |
Armyluix/darkstar | scripts/globals/abilities/pets/flaming_crush.lua | 25 | 1343 | ---------------------------------------------------
-- Flaming Crush M=10, 2, 2? (STILL don't know)
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/summon");
require("scripts/globals/magic");
require("scripts/g... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Balgas_Dais/npcs/Burning_Circle.lua | 17 | 2294 | -----------------------------------
-- Area: Balga's Dais
-- NPC: Burning Circle
-- Balga's Dais Burning Circle
-- @pos 299 -123 345 146
-------------------------------------
package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/keyitems");
... | gpl-3.0 |
tfryett/S4 | examples/magneto/halfspace.lua | 7 | 1758 | -- Infinite halfspace of magneto-optic material.
-- Assume the permittivity tensor in the receiving halfspace is
-- [ e ie' 0 ]
-- [ -ie' e 0 ]
-- [ 0 0 e ]
-- Then solving the wave equation gives two circular polarization modes:
-- E = (1, i)/sqrt(2), km = omega sqrt(e-ie)
-- E = (1,-i)/sqrt... | gpl-2.0 |
ElectroDuk/QuackWars | garrysmod/gamemodes/Basewars(Broken}/gamemode/cl_buymenu.lua | 1 | 3000 | local Panel = vgui.Create( "DFrame" )
Panel:Hide()
hook.Add( "PopulateBasewars", "AddEntityContent", function( pnlContent, tree, node )
local Categorised = {}
-- Add this list into the tormoil
local SpawnableEntities = scripted_ents.GetSpawnable()
for k,v in pairs(SpawnableEntities) do --Rem... | mit |
jameshilliard/WM2500RP-V1.0.0.34_gpl_src | package/uci/trigger/lib/trigger.lua | 40 | 8391 | module("uci.trigger", package.seeall)
require("posix")
require("uci")
local path = "/lib/config/trigger"
local triggers = nil
local tmp_cursor = nil
function load_modules()
if triggers ~= nil then
return
end
triggers = {
list = {},
uci = {},
active = {}
}
local modules = posix.glob(path .. "/*.lua")
if ... | gpl-2.0 |
ElectroDuk/QuackWars | garrysmod/gamemodes/Basewars/entities(maybe_outdated)/entities/radartower/init.lua | 2 | 5152 | -- ============================================
-- = =
-- = Crate SENT by Mahalis =
-- = =
-- ============================================
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include('shared.lua')
f... | mit |
Whit3Tig3R/ZeDspammbot | plugins/all.lua | 264 | 4202 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
Armyluix/darkstar | scripts/zones/Garlaige_Citadel/npcs/Mashira.lua | 17 | 2099 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: Mashira
-- Involved in Quests: Rubbish day, Making Amens!
-- @pos 141 -6 138 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("scripts/globa... | gpl-3.0 |
dimrain/ABTestingGateway | lib/abtesting/userinfo/ipParser.lua | 25 | 1259 |
local _M = {
_VERSION = '0.01'
}
local ffi = require("ffi")
ffi.cdef[[
struct in_addr {
uint32_t s_addr;
};
int inet_aton(const char *cp, struct in_addr *inp);
uint32_t ntohl(uint32_t netlong);
char *inet_ntoa(struct in_addr in);
uint32_t htonl(uint32_t hostlong);
]]
local C = ffi.C
local ip2long = funct... | mit |
abriasffxi/darkstar | scripts/zones/Kamihr_Drifts/npcs/LiseranDoorEntrance.lua | 27 | 1210 | -----------------------------------
-- Area: Kamihr Drifts
-- NPC: Liseran Door Entrance
-- Zones to Outer Ra'Kaznar (zone 274)
-- @zone 274
-- @pos -34.549 -181.334 -20.031
-----------------------------------
package.loaded["scripts/zones/Kamihr_Drifts/TextIDs"] = nil;
-----------------------------------
require("scr... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/weaponskills/herculean_slash.lua | 18 | 1592 | -----------------------------------
-- Herculean Slash
-- Great Sword weapon skill
-- Skill Level: 290
-- Paralyzes target. Duration of effect varies with TP.
-- Aligned with the Snow Gorget, Thunder Gorget & Breeze Gorget.
-- Aligned with the Snow Belt, Thunder Belt & Breeze Belt.
-- Element: Ice
-- Modifiers: VIT:60%... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Castle_Oztroja/npcs/Treasure_Coffer.lua | 13 | 4293 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: Treasure Coffer
-- @zone 151
-- @pos
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
requ... | gpl-3.0 |
sum2012/mame | 3rdparty/genie/tests/actions/codeblocks/codeblocks_files.lua | 21 | 1664 | --
-- tests/actions/codeblocks/codeblocks_files.lua
-- Validate generation of files block in CodeLite C/C++ projects.
-- Copyright (c) 2011 Jason Perkins and the Premake project
--
T.codeblocks_files = { }
local suite = T.codeblocks_files
local codeblocks = premake.codeblocks
--
-- Setup
--
local sln, prj
f... | gpl-2.0 |
minin43/nzombies | gamemodes/nzombies/gamemode/player_class/sh_player_create.lua | 2 | 1241 | DEFINE_BASECLASS( "player_default" )
local PLAYER = {}
--
-- See gamemodes/base/player_class/player_default.lua for all overridable variables
--
PLAYER.WalkSpeed = 300
PLAYER.RunSpeed = 600
PLAYER.CanUseFlashlight = true
function PLAYER:SetupDataTables()
self.Player:NetworkVar("Bool", 0, "UsingSpecialWeap... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Sealions_Den/npcs/_0w0.lua | 14 | 1998 | -----------------------------------
-- Area: Sealion's Den
-- NPC: Iron Gate
-- @pos 612 132 774 32
-----------------------------------
package.loaded["scripts/zones/Sealions_Den/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/missions");
require("scripts... | gpl-3.0 |
hamed9898/i4bot | bot/utils.lua | 239 | 13499 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
http.TIMEOUT = 10
funct... | gpl-2.0 |
b0oh/mal | lua/reader.lua | 36 | 3921 | local rex = require('rex_pcre')
local string = require('string')
local table = require('table')
local types = require('types')
local throw, Nil, Symbol, List = types.throw, types.Nil,
types.Symbol, types.List
local M = {}
Reader = {}
function Reader:new(tokens)
local newObj = {tok... | mpl-2.0 |
Armyluix/darkstar | scripts/zones/Bastok_Markets/npcs/Gwill.lua | 17 | 2884 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Gwill
-- Starts & Ends Quest: The Return of the Adventurer
-- Involved in Quests: The Cold Light of Day, Riding on the Clouds
-- @zone 235
-- @pos 0 0 0
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"]... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/spells/paralyze_ii.lua | 7 | 2316 | -----------------------------------------
-- Spell: Paralyze II
-- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and MND.
-- caster:getMerit() returns a value which is equal to the number of merit points TIMES the value of each point
-- Paralyze II value per point is '1' This is a co... | gpl-3.0 |
b0oh/mal | lua/printer.lua | 14 | 1741 | local string = require('string')
local table = require('table')
local types = require('types')
local utils = require('utils')
local M = {}
function M._pr_str(obj, print_readably)
local _r = print_readably
if utils.instanceOf(obj, types.Symbol) then
return obj.val
elseif types._list_Q(obj) then
... | mpl-2.0 |
xpol/luainstaller | lua/versions/luajit-2.1/dynasm/dasm_x86.lua | 32 | 71256 | ------------------------------------------------------------------------------
-- DynASM x86/x64 module.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
local x64 = x64
-- Module i... | mit |
sum2012/mame | scripts/src/main.lua | 1 | 10848 | -- license:BSD-3-Clause
-- copyright-holders:MAMEdev Team
---------------------------------------------------------------------------
--
-- main.lua
--
-- Rules for building main binary
--
---------------------------------------------------------------------------
function mainProject(_target, _subtarget)
if (_OP... | gpl-2.0 |
abriasffxi/darkstar | scripts/zones/The_Sanctuary_of_ZiTah/npcs/Credaurion_RK.lua | 14 | 3393 | -----------------------------------
-- Area: The Sanctuary of Zi'Tah
-- NPC: Credaurion, R.K.
-- Outpost Conquest Guards
-- @pos -40.079 -0.642 -148.785 121
-----------------------------------
package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
cjtallman/LDoc | ldoc/builtin/os.lua | 7 | 4824 | --- Operating System facilities like date, time and program execution.
-- @module os
local os = {}
---
-- Returns an approximation of the amount in seconds of CPU time used by
-- the program.
function os.clock() end
---
-- Returns a string or a table containing date and time, formatted according
-- to th... | mit |
jebenexer/kong | kong/templates/kong_defaults.lua | 1 | 2201 | return [[
prefix = /usr/local/kong/
log_level = notice
proxy_access_log = logs/access.log
proxy_error_log = logs/error.log
admin_access_log = logs/admin_access.log
admin_error_log = logs/error.log
custom_plugins = NONE
anonymous_reports = on
proxy_listen = 0.0.0.0:8000
proxy_listen_ssl = 0.0.0.0:8443
admin_listen = 12... | apache-2.0 |
abriasffxi/darkstar | scripts/zones/Bastok_Mines/npcs/Christina.lua | 14 | 1047 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Christina
-- Type: Special Event Coordinator
-- @zone 234
-- @pos 23.703 -1 -86.034
--
-- Auto-Script: Requires Verification
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scripts/zones/Basto... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Gusgen_Mines/npcs/_5g7.lua | 14 | 2970 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: Strange Apparatus
-- @pos 219 -39 255 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
require("scripts/zones/Gusgen_Mines/TextIDs");
require("scripts/globals/strangeapparatus");
---------------------... | gpl-3.0 |
uspgamedev/backdoor | game/gamestates/user_turn.lua | 1 | 9159 | --- MODULE FOR THE GAMESTATE: PLAYER TURN
-- This gamestate rolls out when the player's turn arrives. It pops the action
-- the player chose to do.
-- luacheck: globals SWITCHER GS, no self
local DEFS = require 'domain.definitions'
local DIR = require 'domain.definitions.dir'
local ACTION ... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Morimar_Basalt_Fields/Zone.lua | 34 | 1267 | -----------------------------------
--
-- Zone: Morimar Basalt Fields
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Morimar_Basalt_Fields/TextIDs"] = nil;
require("scripts/zones/Morimar_Basalt_Fields/TextIDs");
-----------------------------------... | gpl-3.0 |
ElectroDuk/QuackWars | garrysmod/addons/ulib/lua/ulib/server/phys.lua | 3 | 4105 | --[[
Title: Physics Helpers
Various functions to make dealing with the HL2 physics engine a little easier.
]]
--[[
Function: applyAccel
Parameters:
ent - The entity to apply the acceleration to
magnitude - The amount of acceleration ( Use nil if the magnitude is specified in the direction )
direction - T... | mit |
Armyluix/darkstar | scripts/globals/weaponskills/decimation.lua | 30 | 1511 | -----------------------------------
-- Decimation
-- Axe weapon skill
-- Skill level: 240
-- In order to obtain Decimation, the quest Axe the Competition must be completed.
-- Delivers a three-hit attack. params.accuracy varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Flame Gorget, Light Gor... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/spells/bluemagic/disseverment.lua | 28 | 2124 | -----------------------------------------
-- Spell: Disseverment
-- Delivers a fivefold attack. Additional effect: Poison. Accuracy varies with TP
-- Spell cost: 74 MP
-- Monster Type: Luminians
-- Spell Type: Physical (Piercing)
-- Blue Magic Points: 5
-- Stat Bonus: INT+1, MND-1
-- Level: 72
-- Casting Time:... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Davoi/Zone.lua | 17 | 3157 | -----------------------------------
--
-- Zone: Davoi (149)
--
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/missions");
require("scripts/globals/quests");
require("sc... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Port_San_dOria/npcs/_6g7.lua | 17 | 1145 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Door: Arrivals Entrance
-- @zone 232
-- @pos -24 -8 15
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scri... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Upper_Jeuno/npcs/_6s1.lua | 17 | 4057 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Marble Bridge Eatery (Door)
-- @pos -96.6 -0.2 92.3 244
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/glo... | gpl-3.0 |
urueedi/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/olsrd.lua | 43 | 1470 | -- Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("OLSRd Plugin Configuration"),
translate("The OLSRd plugin reads information about meshed networks from the txtinfo plugin of OLSRd."))
s = m:section(NamedSection,... | apache-2.0 |
abriasffxi/darkstar | scripts/zones/Meriphataud_Mountains/npcs/Mushosho.lua | 14 | 1935 | -----------------------------------
-- Area: Meriphataud Mountains
-- NPC: Mushosho
-- Type: Outpost Vendor
-- @pos -290 16 415 119
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scr... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Gusgen_Mines/npcs/_5g3.lua | 14 | 1103 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: _5g3 (Door F)
-- @pos 44 -22.399 174.494 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Gusgen_Mines/TextIDs");
---------------------------... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Eastern_Altepa_Desert/npcs/qm2.lua | 17 | 1773 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: qm2 (???)
-- Involved In Quest: 20 in Pirate Years
-- @pos 47.852 -7.808 403.391 114
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require(... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Northern_San_dOria/npcs/Mulaujeant.lua | 27 | 2466 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Mulaujeant
-- Involved in Quests: Missionary Man
-- @zone 231
-- @pos -175 0 181
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/s... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Qufim_Island/npcs/Hieroglyphics.lua | 17 | 2172 | -----------------------------------
-- Area: Qufim_Island
-- NPC: Hieroglyphics
-- Dynamis Qufim Entrance
-- @pos 117 -10 133 172 118
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
requi... | gpl-3.0 |
dios-game/dios-cocos | src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/ParticleMeteor.lua | 11 | 1380 |
--------------------------------
-- @module ParticleMeteor
-- @extend ParticleSystemQuad
-- @parent_module cc
--------------------------------
--
-- @function [parent=#ParticleMeteor] init
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
--
-- @function [parent... | mit |
shodoco/bcc | tests/lua/test_uprobes.lua | 4 | 1645 | local suite = require("test_helper")
local ffi = require("ffi")
local TestUprobes = {}
ffi.cdef[[
int getpid(void);
void malloc_stats(void);
]]
function TestUprobes:test_simple_library()
local text = [[
#include <uapi/linux/ptrace.h>
BPF_ARRAY(stats, u64, 1);
static void incr(int idx) {
u64 *ptr = stats.loo... | apache-2.0 |
Armyluix/darkstar | scripts/zones/Sealions_Den/npcs/_0w0.lua | 12 | 1945 | -----------------------------------
-- Area: Sealion's Den
-- NPC: Iron Gate
-- @pos 612 132 774 32
-----------------------------------
package.loaded["scripts/zones/Sealions_Den/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/missions");
requir... | gpl-3.0 |
rigeirani/oto | plugins/dice.lua | 16 | 1228 | local command = 'roll <nDr>'
local doc = [[```
/roll <nDr>
Returns a set of dice rolls, where n is the number of rolls and r is the range. If only a range is given, returns only one roll.
```]]
local triggers = {
'^/roll[@'..bot.username..']*'
}
local action = function(msg)
local input = msg.text_lower:input()
if... | gpl-2.0 |
ennorehling/tolua | src/bin/lua/enumerate.lua | 14 | 1815 | -- tolua: enumerate class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: enumerate.lua,v 1.3 2009/11/24 16:45:13 fabraham Exp $
-- 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... | mit |
Armyluix/darkstar | scripts/zones/Alzadaal_Undersea_Ruins/npcs/qm3.lua | 16 | 1199 | -----------------------------------
-- Area: Alzadaal Undersea Ruins
-- NPC: ??? (Spawn Armed Gears(ZNM T3))
-- @pos -42 -4 -169 72
-----------------------------------
package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Alzadaal_Undersea_Ru... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/spells/bluemagic/temporal_shift.lua | 18 | 1436 | -----------------------------------------
-- Spell: Temporal Shift
-- Enemies within range are temporarily prevented from acting
-- Spell cost: 48 MP
-- Monster Type: Luminians
-- Spell Type: Magical (Lightning)
-- Blue Magic Points: 5
-- Stat Bonus: HP+10, MP+15
-- Level: 73
-- Casting Time: 0.5 seconds
-- R... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Quicksand_Caves/npcs/qm7.lua | 17 | 1904 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: ???
-- Involved in Mission: The Mithra and the Crystal (Zilart 12)
-- @pos -504 20 -419 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/The_Garden_of_RuHmet/npcs/qm2.lua | 24 | 2318 | -----------------------------------
-- Area: The_Garden_of_RuHmet
-- NPC: ??? (Ix'aern (Dark Knight) Spawn)
-- Allows players to spawn the Ix'aern (Dark Knight) by checking ??? only after killing the required mobs in the same room as the ???.
-- @pos ,-560 5 239
-----------------------------------
package.loaded["scri... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Nashmau/npcs/Pipiroon.lua | 17 | 1224 | -----------------------------------
-- Area: Nashmau
-- NPC: Pipiroon
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
require("scripts/globals/shop");
---------------------... | gpl-3.0 |
dios-game/dios-cocos | src/apps/lua-tests/Resources/src/IntervalTest/IntervalTest.lua | 17 | 4556 | local scheduler = cc.Director:getInstance():getScheduler()
local SID_STEP1 = 100
local SID_STEP2 = 101
local SID_STEP3 = 102
local IDC_PAUSE = 200
local function IntervalLayer()
local ret = cc.Layer:create()
local m_time0 = 0
local m_time1 = 0
local m_time2 = 0
local m_time3 = 0
loc... | mit |
dios-game/dios-cocos | src/oslibs/cocos/cocos-src/tests/lua-tests/src/IntervalTest/IntervalTest.lua | 17 | 4556 | local scheduler = cc.Director:getInstance():getScheduler()
local SID_STEP1 = 100
local SID_STEP2 = 101
local SID_STEP3 = 102
local IDC_PAUSE = 200
local function IntervalLayer()
local ret = cc.Layer:create()
local m_time0 = 0
local m_time1 = 0
local m_time2 = 0
local m_time3 = 0
loc... | mit |
Armyluix/darkstar | scripts/zones/Sacrarium/npcs/qm3.lua | 17 | 1738 | -----------------------------------
-- Area: Sacrarium
-- NPC: qm3 (???)
-- Notes: Used to spawn Old Prof. Mariselle
-- @pos 62.668 -3.111 127.288 28
-----------------------------------
package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Sacra... | gpl-3.0 |
urueedi/luci | modules/luci-base/luasrc/sys/zoneinfo/tzoffset.lua | 14 | 4023 | -- Licensed to the public under the Apache License 2.0.
module "luci.sys.zoneinfo.tzoffset"
OFFSET = {
gmt = 0, -- GMT
eat = 10800, -- EAT
cet = 3600, -- CET
wat = 3600, -- WAT
cat = 7200, -- CAT
eet = 7200, -- EET
wet = 0, -- WET
sast = 7200, -- SAST
hst = -36000, -- HS... | apache-2.0 |
abriasffxi/darkstar | scripts/globals/spells/gravity_ii.lua | 27 | 1102 | -----------------------------------------
-- Spell: Gravity II
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,s... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/items/marinara_pizza.lua | 18 | 1599 | -----------------------------------------
-- ID: 5743
-- Item: marinara_pizza
-- Food Effect: 3hours, All Races
-----------------------------------------
-- Health Points 20
-- Attack +20% (cap 50 @ 250 base attack)
-- Accuracy +10% (54)
-- Undead Killer
-----------------------------------------
require("scripts/globa... | gpl-3.0 |
dios-game/dios-cocos | src/oslibs/cocos/cocos-src/tests/lua-tests/src/ByteCodeEncryptTest/ByteCodeEncryptTest.lua | 4 | 3906 | local targetPlatform = cc.Application:getInstance():getTargetPlatform()
local is64BitIOSDevice = cc.Application:getInstance():is64BitIOSDevice()
if cc.PLATFORM_OS_LINUX ~= targetPlatform and is64BitIOSDevice ~= true then
require("ByteCodeEncryptTest/ByteCodeTest")
require("ByteCodeEncryptTest/ByteCodeAndEncryptTes... | mit |
abriasffxi/darkstar | scripts/zones/Abyssea-Konschtat/mobs/Turul.lua | 17 | 2144 | -----------------------------------
-- Area: Abyssea - Konschtat (15)
-- Mob: Turul
-----------------------------------
require("scripts/globals/status");
mixins = { require("scripts/mixins/families/amphiptere") }
-----------------------------------
-- onMobInitialize
-----------------------------------
function ... | gpl-3.0 |
rdlaitila/LURE | src/__legacy__/rom/__legacy__/objects/lure_rom_nodelist.lua | 1 | 3584 | lure.rom.nodeListObj = {}
-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
function lure.rom.nodeListObj.new()
local self = {}
local self_mt = {}
setmetatable(self, self_mt)
--===================================================================
-- OBJECT METATABLE ... | mit |
Armyluix/darkstar | scripts/zones/Lower_Delkfutts_Tower/npcs/Grounds_Tome.lua | 34 | 1149 | -----------------------------------
-- Area: Lower Delkfutt's Tower
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function ... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/effects/magic_shield.lua | 17 | 1752 | -----------------------------------
--
-- Magic Shield BLOCKS all magic attacks
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
if (effect:get... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Bastok_Markets/TextIDs.lua | 9 | 5351 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; --Come back after sorting your inventory.
FULL_INVENTORY_AFTER_TRADE = 6383; --Try trading again after sorting your inventory.
ITEM_OBTAINED = 6384; --Obtained: <<<Unknown Parameter (Type: 80) 1>>><<<Possible Spec... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Port_Jeuno/npcs/Kochahy-Muwachahy.lua | 13 | 3641 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Kochahy-Muwachahy
-- @pos 40 0 6 246
-------------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scri... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/VeLugannon_Palace/TextIDs.lua | 9 | 1036 | -- 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 = 6384; -- Obtained: <item>
GIL_OBTAINED = 6385; -- Obtained <number> gil
KEYITEM_OBTAINED = 6387; -- Obtain... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/The_Sanctuary_of_ZiTah/npcs/Beastmen_s_Banner.lua | 14 | 1050 | -----------------------------------
-- Area: The_Sanctuary_of_ZiTah
-- NPC: Beastmen_s_Banner
-- @pos -399.822 0.161 -168.998 121
-----------------------------------
package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Sanctuary_of_ZiTah/T... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Lufaise_Meadows/npcs/Teldo-Moroldo_WW.lua | 14 | 3342 | -----------------------------------
-- Area: Lufaise Meadows
-- NPC: Teldo-Moroldo, W.W.
-- Outpost Conquest Guards
-- @pos -542.418 -7.124 -53.521 24
-----------------------------------
package.loaded["scripts/zones/Lufaise_Meadows/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conques... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Eastern_Altepa_Desert/npcs/Telepoint.lua | 17 | 1706 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: Telepoint
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/Eastern_Altepa_Desert/TextIDs");... | gpl-3.0 |
jonese1234/PokeBotBad | BizHawk-1.11.6/Lua/SNES/Congo's Caper.lua | 7 | 2866 | -- Congo Caper's Collision Box Viewer
-- Author: Pasky13
camx = 0
camy = 0
memory.usememorydomain("CARTROM")
function findbit(p)
return 2 ^ (p - 1)
end
function hasbit(x, p)
return x % (p + p) >= p
end
local function RetrieveBox(obase, switch)
if switch == 1 then
pointer = mainmemory.read_u8(obase + 0x19)
... | mit |
jonese1234/PokeBotBad | BizHawk-1.11.6/Lua/UnitTests/Joypad_RoundTrip.lua | 7 | 3118 | console.clear()
console.writeline("Unit test for joypad.get and joypad.set")
console.writeline("Core Required: NES (or any multi-player core with U,D,L,R,select,start,A,B as buttons)")
console.writeline("")
local test_event
local test_function
local test_frame = 0
function test_1()
-- clear previous input
if test... | mit |
abriasffxi/darkstar | scripts/zones/Garlaige_Citadel/npcs/qm10.lua | 14 | 1384 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: qm10 (???)
-- Involved in Quest: Hitting the Marquisate (THF AF3)
-- @pos -139.895 -5.500 154.513 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("s... | gpl-3.0 |
imrandomizer/Algorithm-Implementations | Bresenham_Based_Supercover_Line/Lua/Yonaba/bresenham_based_supercover_test.lua | 27 | 1151 | -- Tests for bresenham.lua
local supercover_line = require 'bresenham_based_supercover'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass ... | mit |
abriasffxi/darkstar | scripts/zones/Bastok_Mines/npcs/Proud_Beard.lua | 17 | 1688 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Proud Beard
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
require("scripts/zones/Bastok_Mines/TextIDs");
require("scripts/globals/events/harvest_... | gpl-3.0 |
sum2012/mame | 3rdparty/genie/tests/actions/vstudio/cs2005/propertygroup.lua | 47 | 1157 | --
-- tests/actions/vstudio/cs2005/propertygroup.lua
-- Validate configuration <PropertyGroup/> elements in Visual Studio 2005+ .csproj
-- Copyright (c) 2009-2011 Jason Perkins and the Premake project
--
T.vstudio_cs2005_propertygroup = { }
local suite = T.vstudio_cs2005_propertygroup
local cs2005 = premake.vstudio... | gpl-2.0 |
dvv/luvit-cjson | test.lua | 1 | 1321 | #!/usr/bin/env luvit
local JSON = require('./')
assert(not _G.json)
assert(JSON.stringify)
assert(JSON.parse)
assert(JSON.null)
local obj, serialized, content
obj = { 1, 2, 3, 4 }
p(obj)
serialized = JSON.stringify(obj)
p(serialized)
content = JSON.parse(serialized)
p(content)
assert(obj[2] == content[2])
obj = { a... | mit |
dios-game/dios-cocos | src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/EaseQuinticActionOut.lua | 9 | 1432 |
--------------------------------
-- @module EaseQuinticActionOut
-- @extend ActionEase
-- @parent_module cc
--------------------------------
-- brief Create the action with the inner action.<br>
-- param action The pointer of the inner action.<br>
-- return A pointer of EaseQuinticActionOut action. If creation failed... | mit |
JKGDevs/JediKnightGalaxies | JKGalaxies/glua/maps/jkg_arena_tatooine_night/events.lua | 3 | 4447 | --[[ ------------------------------------------------
Jedi Knight Galaxies Lua Code
Tatooine arena backend: events
Written by BobaFett
--------------------------------------------------]]
local backend = JKG.ArenaBackend
local controls = backend.Controls
local evt = backend.Events -- For higher speed and quicker ... | gpl-2.0 |
girvo/textadept-config | modules/textredux/fs.lua | 1 | 16237 | --[[--
textredux.fs provides file system related functions and a text based file
browser for Textadept.
It features traditional directory browsing, snapopen functionality, completely
keyboard driven interaction, and provides powerful narrow to search
functionality.
Some tips on using the file browser
----------------... | mit |
abriasffxi/darkstar | scripts/zones/Sealions_Den/mobs/Mammet-22_Zeta.lua | 23 | 4284 | -----------------------------------
-- Area: Sealions Den
-- Mob: Mammet-22_Zeta
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize(mob)
end;
------------------------------... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Zeruhn_Mines/npcs/Zelman.lua | 17 | 1793 | -----------------------------------
-- Area: Zeruhn Mines
-- NPC: Zelman
-- Involved In Quest: Groceries
-----------------------------------
package.loaded["scripts/zones/Zeruhn_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Zeruhn_Mines/TextIDs");
require("scripts/globals/keyitems")... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/items/lungfish.lua | 18 | 1304 | -----------------------------------------
-- ID: 4315
-- Item: Lungfish
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity -2
-- Mind 4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
----------... | gpl-3.0 |
ElectroDuk/QuackWars | garrysmod/gamemodes/Basewars/entities(maybe_outdated)/effects/super_explosion2/uncloak/init.lua | 5 | 1076 | -- simple unloack effect :/
--Initializes the effect. The data is a table of data
--which was passed from the server.
function EFFECT:Init( data )
self.Position = data:GetOrigin()
local Pos = self.Position
local Norm = Vector(0,0,1)
Pos = Pos + Norm * 6
local emitter = ParticleEmitter( Pos )
for i=1,m... | mit |
abriasffxi/darkstar | scripts/zones/Jugner_Forest_[S]/npcs/Gate_Sentry.lua | 14 | 1042 | -----------------------------------
-- Area: Jugner Forest (S)
-- NPC: Gate Sentry
-- Type: Standard NPC
-- @pos -265.235 -2.399 405.246 82
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Jugner_Forest_[... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/abilities/building_flourish.lua | 28 | 2817 | -----------------------------------
-- Ability: Building Flourish
-- Enhances potency of your next weapon skill. Requires at least one Finishing Move.
-- Obtained: Dancer Level 50
-- Finishing Moves Used: 1-3
-- Recast Time: 00:10
-- Duration: 01:00
--
-- Using one Finishing Move boosts the Accuracy of your nex... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/abilities/pets/somnolence.lua | 12 | 1384 | ---------------------------------------------------
-- Somnolence
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/globals/magic");
---------------------------------------------------... | gpl-3.0 |
urueedi/luci | applications/luci-app-upnp/luasrc/controller/upnp.lua | 20 | 1886 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.upnp", package.seeall)
function index()
if not nixio.fs.access("/etc/config/upnpd") then
return
end
local page
page = entry({"... | apache-2.0 |
Whit3Tig3R/ZeDspammbot | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.