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
Ninjistix/darkstar
scripts/zones/QuBia_Arena/mobs/Death_Clan_Destroyer.lua
5
1663
----------------------------------- -- Area: QuBia_Arena -- MOB: Death Clan Destroyer ----------------------------------- require("scripts/zones/QuBia_Arena/MobIDs"); require("scripts/globals/status"); function onMobInitialize(mob) mob:setMobMod(MOBMOD_HP_STANDBACK, 60); end; function allHeirMobsDead(player) ...
gpl-3.0
premake/premake-4.x
src/actions/make/make_cpp.lua
3
9915
-- -- make_cpp.lua -- Generate a C/C++ project makefile. -- Copyright (c) 2002-2013 Jason Perkins and the Premake project -- premake.make.cpp = { } local cpp = premake.make.cpp local make = premake.make function premake.make_cpp(prj) -- create a shortcut to the compiler interface local cc = premake.gettool(p...
bsd-3-clause
Ninjistix/darkstar
scripts/globals/items/serving_of_menemen_+1.lua
3
1180
----------------------------------------- -- ID: 5587 -- Item: serving_of_menemen_+1 -- Food Effect: 4Hrs, All Races ----------------------------------------- -- HP 35 -- MP 35 -- Agility 2 -- Intelligence -2 -- HP recovered while healing 2 -- MP recovered while healing 2 ----------------------------------------- requi...
gpl-3.0
dinodeck/ninety_nine_days_of_dev
006_magic_menu/code/GameOverState.lua
6
2213
GameOverState = {} GameOverState.__index = GameOverState function GameOverState:Create(stack, world, won) local this = { mWorld = world, mStack = stack, mWon = false, } if won == true then this.mWon = true end setmetatable(this, self) if not...
mit
dinodeck/ninety_nine_days_of_dev
005_bitmap_text/code/GameOverState.lua
6
2213
GameOverState = {} GameOverState.__index = GameOverState function GameOverState:Create(stack, world, won) local this = { mWorld = world, mStack = stack, mWon = false, } if won == true then this.mWon = true end setmetatable(this, self) if not...
mit
istarIQ/Source
inrealm.lua
30
36636
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if is_sudo(msg) or is_realm(msg) and is_admin1(msg) then local group_creator = msg.from.print_name create_group_chat (group_creator, group_na...
gpl-2.0
Ninjistix/darkstar
scripts/zones/Fort_Karugo-Narugo_[S]/npcs/Rotih_Moalghett.lua
5
1051
---------------------------------- -- Area: Fort Karugo Narugo [S] -- NPC: Rotih_Moalghett -- Type: Quest -- @zone 96 -- !pos 280 -20 85 -- ----------------------------------- package.loaded["scripts/zones/Fort_Karugo-Narugo_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Fort_Karugo-N...
gpl-3.0
futufeld/steering-fields
scenarios/ambulate/scenario.lua
1
1991
local TableUtils = require('utils.class') local Vector2 = require('geometry.vector2') local DiskObstacle = require('geometry.disk') local SegSeqObstacle = require('geometry.segseq') local Obstacle = require('core.obstacle') local Vehicle = require('core.vehicle') local Seek = require...
mit
Ninjistix/darkstar
scripts/zones/Bastok_Mines/npcs/Pavvke.lua
5
1838
----------------------------------- -- Area: Bastok Mines -- NPC: Pavvke -- Starts Quests: Fallen Comrades (100%) ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/settings"); r...
gpl-3.0
chroteus/clay
lib/middleclass.lua
10
5996
local middleclass = { _VERSION = 'middleclass v3.0.0', _DESCRIPTION = 'Object Orientation for Lua', _LICENSE = [[ MIT LICENSE Copyright (c) 2011 Enrique García Cota Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation ...
gpl-2.0
Ninjistix/darkstar
scripts/globals/items/chocobiscuit.lua
3
1226
----------------------------------------- -- ID: 5934 -- Item: Chocobiscuit -- Food Effect: 3Min, All Races ----------------------------------------- -- Magic Regen While Healing 3 -- Charisma 3 -- Evasion 2 -- Aquan Killer 10 -- Silence Resist 10 ----------------------------------------- require("scripts/globals/statu...
gpl-3.0
TRex22/hawkthorne-journey
src/flyin.lua
1
3084
local app = require 'app' local Gamestate = require 'vendor/gamestate' local window = require 'window' local fonts = require 'fonts' local TunnelParticles = require "tunnelparticles" local flyin = Gamestate.new() local sound = require 'vendor/TEsound' local Timer = require 'vendor/timer' local Character = require 'char...
mit
ccyphers/kong
kong/plugins/http-log/handler.lua
1
3736
local basic_serializer = require "kong.plugins.log-serializers.basic" local BasePlugin = require "kong.plugins.base_plugin" local cjson = require "cjson" local url = require "socket.url" local HttpLogHandler = BasePlugin:extend() HttpLogHandler.PRIORITY = 1 local HTTP = "http" local HTTPS = "https" -- Generates the...
apache-2.0
Ninjistix/darkstar
scripts/zones/Windurst_Waters/npcs/Upih_Khachla.lua
5
1876
----------------------------------- -- Area: Windurst Waters -- NPC: Upih Khachla -- Standard Merchant NPC -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/events/harvest_festivals") require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loaded["s...
gpl-3.0
johnsoch/cuberite
Server/Plugins/APIDump/Hooks/OnSpawnedMonster.lua
44
1024
return { HOOK_SPAWNED_MONSTER = { CalledWhen = "After a monster is spawned in the world", DefaultFnName = "OnSpawnedMonster", -- also used as pagename Desc = [[ This hook is called after the server spawns a {{cMonster|monster}}. This is an information-only callback, the monster is already spawned by the ...
apache-2.0
neofob/sile
languages/lv.lua
3
119171
SILE.hyphenator.languages["lv"] = {} SILE.hyphenator.languages["lv"].patterns = { "d4z", "d4ž", "a2i", "a2u", "i2e", "e2i", "u2i", "i2u", "o2i", "o2u", "e2u", ".vi1s2a.", ".vi1s2ā.", ".vi1s2i.", ".vi1s2os.", ".vi1s2u.", ".vi1s2iem.", "o1pī", "ū1rē", "i1ta", "ū1ga", "ē1žu", "ū1to", "ā1ni", "i1rē", "i1čo", "ā1bu", "o1...
mit
Ninjistix/darkstar
scripts/zones/Port_San_dOria/npcs/Ceraulian.lua
5
5064
----------------------------------- -- Area: Port San d'Oria -- NPC: Ceraulian -- Involved in Quest: The Holy Crest -- !pos 0 -8 -122 232 ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); require("scr...
gpl-3.0
istarIQ/Source
admin.lua
41
9539
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(rec...
gpl-2.0
disslove85/NOVA-BOT
plugins/yourgrouplink.lua
6
12767
do --developed by @i9Dev local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if not is_admin(msg) then return "Você não é um Administrador." end local group_creator = msg.from.print_name create_group_chat (group_creator, group_name, ok_cb, false) return 'O grupo '..stri...
gpl-2.0
Ninjistix/darkstar
scripts/globals/items/loaf_of_homemade_bread.lua
3
1513
----------------------------------------- -- ID: 5228 -- Item: loaf_of_homemade_bread -- Food Effect: 30Min, All Races ----------------------------------------- -- hMP +1 -- Accuracy +12% (cap 80) -- Attack +10% (cap 40) -- Ranged Accuracy +12% (cap 80) -- Ranged Attack +10% (cap 40) -----------------------------------...
gpl-3.0
Ninjistix/darkstar
scripts/globals/weaponskills/torcleaver.lua
26
1602
----------------------------------- -- Torcleaver -- Skill Level: N/A -- Description: Deals triple damage. Damage varies with TP. Caladbolg: Aftermath. -- Available only when equipped with Caladbolg (85)/(90)/(95) or Espafut +1/+2/+3. -- Aligned with the Light Gorget, Aqua Gorget & Snow Gorget. -- Aligned with the Ligh...
gpl-3.0
AlexisBRENON/awesome
spec/awful/util_spec.lua
12
2693
--------------------------------------------------------------------------- -- @author Uli Schlachter -- @copyright 2015 Uli Schlachter --------------------------------------------------------------------------- local util = require("awful.util") local say = require("say") describe("awful.util", function() it("ta...
gpl-2.0
Ninjistix/darkstar
scripts/globals/items/margherita_pizza.lua
3
1112
----------------------------------------- -- ID: 5695 -- Item: margherita_pizza -- Food Effect: 3 hours, all Races ----------------------------------------- -- HP +30 -- Accuracy +10% (cap 8) -- Attack +10% (cap 10) ----------------------------------------- require("scripts/globals/status"); ---------------------------...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Sea_Serpent_Grotto/npcs/Treasure_Coffer.lua
5
4638
----------------------------------- -- Area: Sea Serpent Grotto -- NPC: Treasure Coffer -- @zone 176 -- !pos 184 18 -107 ----------------------------------- package.loaded["scripts/zones/Sea_Serpent_Grotto/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/global...
gpl-3.0
dinodeck/ninety_nine_days_of_dev
005_bitmap_text/code/CombatActions.lua
2
4683
local function AddAnimEffect(state, entity, def, spf) local x = entity.mX local y = entity.mY + (entity.mHeight * 0.75) local effect = AnimEntityFx:Create(x, y, def, def.frames, spf) state:AddEffect(effect) end local function AddTextNumberEffect(state, entity, num, color) local x = entity.mX l...
mit
SvenRoederer/openwrt-packages
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/netclass.lua
21
3068
local ubus = require "ubus" -- reference/further reading: -- - node_exporter netclass_linux (upstream metrics): https://github.com/prometheus/node_exporter/blob/master/collector/netclass_linux.go -- - relevant sysfs files: https://github.com/prometheus/procfs/blob/5f46783c017ef6a934fc8cfa6d1a2206db21401b/sysfs/net_cla...
gpl-2.0
dinodeck/ninety_nine_days_of_dev
005_bitmap_text/code/combat_events/CEAttack.lua
10
3876
CEAttack = {} CEAttack.__index = CEAttack function CEAttack:Create(state, owner, def, targets) print("Target", target) local this = { mState = state, mOwner = owner, mDef = def, mFinished = false, mSpeed = 0, mCharacter = state.mActorCharMap[owner], ...
mit
dinodeck/ninety_nine_days_of_dev
006_magic_menu/code/combat_events/CEAttack.lua
10
3876
CEAttack = {} CEAttack.__index = CEAttack function CEAttack:Create(state, owner, def, targets) print("Target", target) local this = { mState = state, mOwner = owner, mDef = def, mFinished = false, mSpeed = 0, mCharacter = state.mActorCharMap[owner], ...
mit
Ninjistix/darkstar
scripts/globals/mobskills/sand_pit.lua
4
1714
--------------------------------------------- -- Sand Pit -- Single target bind --------------------------------------------- require("scripts/globals/monstertpmoves"); require("scripts/globals/settings"); require("scripts/globals/status"); --------------------------------------------- function onMobSkillCheck(target,...
gpl-3.0
Ninjistix/darkstar
scripts/globals/keyitems.lua
2
144259
--------------------------------------------- -- -- KEYITEMS IDS -- --------------------------------------------- ZERUHN_REPORT = 1; PALBOROUGH_MINES_LOGS = 2; BLUE_ACIDITY_TESTER = 3; RED_ACIDITY_TESTER = 4; LETTER_TO_THE_CONSUL...
gpl-3.0
teran/deduplicator
deduplicator.lrdevplugin/FindDuplicates.lua
1
5394
--[[---------------------------------------------------------------------------- This file is a part of Deduplicator Lightroom Classic CC plugin Licenced under GPLv2 terms GIT Repository with the code: https://github.com/teran/deduplicator ----------------------------------------------------------------------------...
gpl-2.0
dinodeck/ninety_nine_days_of_dev
007_map_cure/map/map_cave.lua
6
159630
function CreateCaveMap(state) local id = "cave" local caveState = state.maps[id] local gemstoneId = 14 local keystoneId = 15 local encountersCave = { -- 0. Yellow, nearly everywhere { { oddment = 120, item = {} }, { oddment = 3, ...
mit
dinodeck/ninety_nine_days_of_dev
006_magic_menu/map/map_cave.lua
6
159630
function CreateCaveMap(state) local id = "cave" local caveState = state.maps[id] local gemstoneId = 14 local keystoneId = 15 local encountersCave = { -- 0. Yellow, nearly everywhere { { oddment = 120, item = {} }, { oddment = 3, ...
mit
RedeMinas/portal
lib_icon.lua
1
2010
function mainIcon() local icon = canvas:new("media/icon.png") canvas:attrColor(0,0,0,0) canvas:clear(0,0, GRID*32, GRID*18) canvas:compose(GRID*28,GRID*15,icon) canvas:flush() end function mainIconAnimBak() local icon = canvas:new("media/icon.png") local icon2 = canvas:new("media/icon2.png") while( M...
agpl-3.0
lukego/ljsyscall
include/types.lua
1
30637
-- Linux kernel types -- these are either simple ffi types or ffi metatypes for the kernel types -- plus some Lua metatables for types that cannot be sensibly done as Lua types eg arrays, integers -- TODO this currently requires being called with S from syscall which breaks modularity -- TODO should fix this, should j...
mit
eugenesan/openwrt-luci
applications/luci-asterisk/luasrc/model/cbi/asterisk-dialplans.lua
80
3858
--[[ 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
Xagul/forgottenserver
data/talkactions/scripts/remove_tutor.lua
41
1033
function onSay(player, words, param) if player:getAccountType() <= ACCOUNT_TYPE_TUTOR then return true end local resultId = db.storeQuery("SELECT `name`, `account_id`, (SELECT `type` FROM `accounts` WHERE `accounts`.`id` = `account_id`) AS `account_type` FROM `players` WHERE `name` = " .. db.escapeString(param)) ...
gpl-2.0
steveschnepp/OpenApoc
data/scripts/update_ufo_growth.lua
6
1531
local OA = OpenApoc local GS = OpenApoc.GameState function updateUfoGrowth() local week = GS.gameTime:getWeek() local ufo_growth = {id = 'UFO_GROWTH_' .. tostring(week)} ufo_growth.object = GS.ufo_growth_lists[ufo_growth.id] if not ufo_growth.object then ufo_growth.id = 'UFO_GROWTH_DEFAULT' ufo_growth.object =...
mit
Ninjistix/darkstar
scripts/globals/abilities/evokers_roll.lua
3
2682
----------------------------------- -- Ability: Evoker's Roll -- Gradually restores MP for party members within area of effect -- Optimal Job: Summoner -- Lucky Number: 5 -- Unlucky Number: 9 -- Level: 40 -- -- Die Roll |No SMN |With SMN -- -------- ------- ----------- -- 1 |+1 |+2 -- 2 ...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Davoi/npcs/Zantaviat.lua
5
2036
----------------------------------- -- Area: Davoi -- NPC: Zantaviat -- Involved in Mission: The Davoi Report -- !pos 215 0.1 -10 149 ----------------------------------- package.loaded["scripts/zones/Davoi/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/global...
gpl-3.0
hamrah12/hamrah_shoma
plugins/youtube.lua
644
1722
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end function get_yt_data (yt_code) local url = 'https://www.googleapis.com/yo...
gpl-2.0
area31/telegram-bot
plugins/youtube.lua
644
1722
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end function get_yt_data (yt_code) local url = 'https://www.googleapis.com/yo...
gpl-2.0
Inorizushi/DDR-SN1HD
Graphics/ScreenSelectPlayCourseMode scroller/Oni.lua
3
1729
return Def.ActorFrame { InitCommand=cmd(zoom,1.3); LoadActor("Choice Oni B")..{ InitCommand=cmd(x,50;y,90;zoom,1); LoseFocusCommand=cmd(stoptweening;stopeffect;diffusealpha,0;zoom,1;linear,0.05;diffusealpha,1;zoom,1;x,60); GainFocusCommand=cmd(stoptweening;linear,0.05;diffusealpha,0;zoom,1;x,50); OffFocusedCo...
gpl-3.0
dinodeck/ninety_nine_days_of_dev
001_cancel_textboxes/code/Util.lua
4
1361
function GenerateUVs(tileWidth, tileHeight, texture) -- This is the table we'll fill with uvs and return. local uvs = {} local textureWidth = texture:GetWidth() local textureHeight = texture:GetHeight() local width = tileWidth / textureWidth local height = tileHeight / textureHeight ...
mit
dinodeck/ninety_nine_days_of_dev
006_magic_menu/code/FollowPathState.lua
10
1453
FollowPathState = { mName = "follow_path" } FollowPathState.__index = FollowPathState function FollowPathState:Create(character, map) local this = { mCharacter = character, mMap = map, mEntity = character.mEntity, mController = character.mController, } setme...
mit
dinodeck/ninety_nine_days_of_dev
001_cancel_textboxes/code/FollowPathState.lua
10
1453
FollowPathState = { mName = "follow_path" } FollowPathState.__index = FollowPathState function FollowPathState:Create(character, map) local this = { mCharacter = character, mMap = map, mEntity = character.mEntity, mController = character.mController, } setme...
mit
MoltenPlastic/nersis
luajit/dynasm/dasm_x86.lua
116
58970
------------------------------------------------------------------------------ -- DynASM x86/x64 module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ local x64 = x64 -- Module i...
mit
edvb54/ratium
packs/default/data/map.lua
2
2985
math.randomseed(os.time()) math.random(); math.random(); math.random() -- TODO: add weighting depending on number of available tiles in chunk calc_rarity = function (rarity) return math.random(1,100) <= rarity*100 end place_block = function(b) local tries = 0 repeat x = math.random(0, MAX_X-1) y = math.random(...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Bibiki_Bay/npcs/Clamming_Point.lua
5
6270
----------------------------------- -- Area: Bibiki Bay -- NPC: Clamming Point ----------------------------------- package.loaded["scripts/zones/Bibiki_Bay/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Bibiki_Bay/TextIDs"); require("scripts/globals/keyitems"); ----------------------------...
gpl-3.0
abackwood/ProjectPorcupine
Assets/StreamingAssets/LUA/Overlay.lua
17
1968
-- 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
Ninjistix/darkstar
scripts/zones/Windurst_Waters/npcs/Foi-Mui.lua
5
1034
----------------------------------- -- Area: Windurst Waters -- NPC: Foi-Mui -- Involved in Quest: Making the Grade -- !pos 126 -6 162 238 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("s...
gpl-3.0
area31/telegram-bot
plugins/btc.lua
1
1409
-- See https://bitcoinaverage.com/api local function getBTCX(amount,currency) local base_url = 'https://api.bitcoinaverage.com/ticker/global/' -- Do request on bitcoinaverage, the final / is critical! local res,code = https.request(base_url..currency.."/") if code ~= 200 then return nil end local data = j...
gpl-2.0
Ninjistix/darkstar
scripts/globals/spells/jubaku_ichi.lua
5
1933
----------------------------------------- -- Spell: Jubaku: Ichi -- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and INT. -- taken from paralyze ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/ms...
gpl-3.0
Ninjistix/darkstar
scripts/globals/items/hellfire_sword.lua
7
1038
----------------------------------------- -- ID: 16928 -- Item: Hellfire Sword -- Additional Effect: Fire Damage ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------- function onAdditionalEffect...
gpl-3.0
yuryleb/osrm-backend
third_party/flatbuffers/tests/namespace_test/NamespaceA/NamespaceB/TableInNestedNS.lua
12
1095
-- automatically generated by the FlatBuffers compiler, do not modify -- namespace: NamespaceB local flatbuffers = require('flatbuffers') local TableInNestedNS = {} -- the module local TableInNestedNS_mt = {} -- the class metatable function TableInNestedNS.New() local o = {} setmetatable(o, {__index = Table...
bsd-2-clause
Ninjistix/darkstar
scripts/globals/items/black_eel.lua
3
1147
----------------------------------------- -- ID: 4429 -- Item: Black Eel -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Mind -4 -- Evasion 5 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- function onI...
gpl-3.0
Ninjistix/darkstar
scripts/globals/weaponskills/aeolian_edge.lua
24
1470
-- Aeolian Edge -- Dagger weapon skill -- Delivers an area attack that deals wind elemental damage. Damage varies with TP. -- Skill Level: 290 -- Aligned with the Breeze Gorget, Soil Gorget & Thunder Gorget. -- Aligned with the Breeze Belt, Soil Belt & Thunder Belt. -- Element: Wind -- Skillchain Properties: Impaction ...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Waughroon_Shrine/Zone.lua
5
1301
----------------------------------- -- -- Zone: Waughroon_Shrine (144) -- ----------------------------------- package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Waughroon_Shrine/TextIDs"); ----------------------...
gpl-3.0
Ninjistix/darkstar
scripts/globals/mobskills/cyclone_wing.lua
15
1128
--------------------------------------------- -- Cyclone Wing -- -- Description: Deals darkness damage to enemies within a very wide area of effect. Additional effect: Sleep -- Type: Magical -- Utsusemi/Blink absorb: Wipes shadows -- Range: 30' radial. -- Notes: Used only by Vrtra and Azdaja ---------------------------...
gpl-3.0
premake/premake-4.x
scripts/embed.lua
3
2440
-- -- Embed the Lua scripts into src/host/scripts.c as static data buffers. -- I embed the actual scripts, rather than Lua bytecodes, because the -- bytecodes are not portable to different architectures, which causes -- issues in Mac OS X Universal builds. -- local function stripfile(fname) local f = io.open(fname)...
bsd-3-clause
Ninjistix/darkstar
scripts/zones/Metalworks/npcs/relic.lua
5
1533
----------------------------------- -- Area: Metalworks -- NPC: <this space intentionally left blank> -- !pos -20 -11 33 237 ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Metalworks/TextIDs"); -------------------...
gpl-3.0
scan-bot/scan-bot
plugins/giphy.lua
633
1796
-- Idea by https://github.com/asdofindia/telegram-bot/ -- See http://api.giphy.com/ do local BASE_URL = 'http://api.giphy.com/v1' local API_KEY = 'dc6zaTOxFJmzC' -- public beta key local function get_image(response) local images = json:decode(response).data if #images == 0 then return nil end -- No images loca...
gpl-2.0
mohammad25253/persianguard12
plugins/giphy.lua
633
1796
-- Idea by https://github.com/asdofindia/telegram-bot/ -- See http://api.giphy.com/ do local BASE_URL = 'http://api.giphy.com/v1' local API_KEY = 'dc6zaTOxFJmzC' -- public beta key local function get_image(response) local images = json:decode(response).data if #images == 0 then return nil end -- No images loca...
gpl-2.0
DDDGamer/factorio-dz-softmod
util/Colors.lua
1
1601
-- Colors Module -- Collection of common colors -- @usage local Colors = require('util/Colors') -- ------------------------------------------------------- -- -- @author Denis Zholob (DDDGamer) -- github: https://github.com/deniszholob/factorio-softmod-pack -- ======================================================= -- ...
gpl-3.0
dafei2015/hugular_cstolua
Client/Assets/Lua/state/itemObject.lua
7
2996
------------------------------------------------ -- Copyright © 2013-2014 Hugula: Arpg game Engine -- -- author pu ------------------------------------------------ LuaItemManager={} local LuaObject =LuaObject local LuaItemManager = LuaItemManager LuaItemManager.ItemObject=class(LuaObject,function(self,name) --im...
mit
Ninjistix/darkstar
scripts/globals/abilities/angon.lua
5
1184
----------------------------------- -- Ability: Angon -- Expends an Angon to lower an enemy's defense. -- Obtained: Dragoon Level 75 -- Recast Time: 0:03:00 -- Duration: 0:00:30 (+0:00:15 for each merit, cap is 0:01:30) -- Effect: Physical defense of target approximately -20% (51/256). -- Range: 10.0 yalms -- Notes: On...
gpl-3.0
NeCarbon/vice-players
Vendor/CEGUI/cegui/src/ScriptingModules/LuaScriptModule/support/tolua++bin/lua/operator.lua
7
5790
-- tolua: operator class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id: operator.lua 1004 2006-02-27 13:03:20Z lindquist $ -- 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 prov...
gpl-3.0
hvbommel/domoticz
dzVents/runtime/Time.lua
5
31066
local utils = require('Utils') local _MS -- kind of a cache so we don't have to extract ms every time local gTimes local ruleWords = {} local isEmpty = function(v) return (v == nil or v == '') end local function getTimezone() local diff = os.difftime(os.time(), os.time(os.date("!*t"))) return ( os.date('!*t').isds...
gpl-3.0
dragoonreas/Timeless-Answers
Locales/enUS.lua
1
1445
--[[ English localisation strings for Timeless Answers. Translation Credits: http://wow.curseforge.com/addons/timeless-answers/localization/translators/ Please update http://www.wowace.com/addons/timeless-answers/localization/enUS/ for any translation additions or changes. Once reviewed, the translations will b...
gpl-3.0
DDDGamer/factorio-dz-softmod
modules/common/research-qeue.lua
1
38297
-- __NAME__ Soft Module -- __Description__ -- Uses locale __modulename__.cfg -- @usage require('modules/__folder__/__modulename__') -- @usage local ModuleName = require('modules/__folder__/__modulename__') -- ------------------------------------------------------- -- -- @author Denis Zholob (DDDGamer) -- github: https:...
gpl-3.0
Ninjistix/darkstar
scripts/globals/items/kannagi.lua
3
3285
----------------------------------------- -- ID: 19464 -- Item: Kannagi ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/msg"); require("scripts/globals/weaponskills"); require("scripts/globals/weaponskillids"); ----------------------------------- local NAME_WEAPONS...
gpl-3.0
dolio/irc-core
lua-extension/example.lua
2
3115
local extension = {} ------------------------------------------------------------------------ -- Message handlers ------------------------------------------------------------------------ local playbacks = {} -- The script can be reloaded at runtime with networks already connected for _,network in ipairs(glirc.list_n...
isc
Ninjistix/darkstar
scripts/zones/Maze_of_Shakhrami/npcs/Treasure_Chest.lua
5
3430
----------------------------------- -- Area: Maze of Shakhrami -- NPC: Treasure Chest -- Involved In Quest: The Goblin Tailor -- @zone 198 ----------------------------------- package.loaded["scripts/zones/Maze_of_Shakhrami/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); requir...
gpl-3.0
otservme/global1051
data/talkactions/scripts/ban.lua
4
1158
local banDays = 7 function onSay(cid, words, param) local player = Player(cid) if not player:getGroup():getAccess() then return true end local name = param local reason = '' local separatorPos = param:find(',') if separatorPos ~= nil then name = param:sub(0, separatorPos - 1) reason = string.trim(param:...
gpl-2.0
Ninjistix/darkstar
scripts/globals/mobskills/amon_drive.lua
33
1211
--------------------------------------------- -- Amon Drive -- -- Description: Performs an area of effect weaponskill. Additional effect: Paralysis + Petrification + Poison -- Type: Physical -- 2-3 Shadows? -- Range: Melee range radial -- Special weaponskill unique to Ark Angel TT. Deals ~100-400 damage. --------...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Horlais_Peak/bcnms/double_dragonian.lua
5
1805
----------------------------------- -- Area: Horlias peak -- Name: double_dragonian -- KSNM30 ----------------------------------- package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/quests"); require("scripts/zones/...
gpl-3.0
premake/premake-4.x
tests/actions/vstudio/cs2005/test_files.lua
57
1695
-- -- tests/actions/vstudio/cs2005/test_files.lua -- Validate generation of <Files/> block in Visual Studio 2005 .csproj -- Copyright (c) 2009-2012 Jason Perkins and the Premake project -- T.vstudio_cs2005_files = { } local suite = T.vstudio_cs2005_files local cs2005 = premake.vstudio.cs2005 -- -- Setup -- loc...
bsd-3-clause
ahmetabdi/JC2-MP-Racing
server/sRace.lua
2
9100
function Race:__init(name , raceManager , world , course) if settings.debugLevel >= 2 then print("Race:__init") end self.name = name self.raceManager = raceManager self.world = world self.world:SetTime(math.random(5, 20)) self.world:SetWeatherSeverity(math.pow(math.random() , 2.5) * 2) -- A race should n...
mit
Ninjistix/darkstar
scripts/globals/items/slice_of_anchovy_pizza_+1.lua
3
1195
----------------------------------------- -- ID: 6218 -- Item: slice of anchovy pizza +1 -- Food Effect: 60 minutes, all Races ----------------------------------------- -- HP +35 -- DEX +2 -- Accuracy +9% (Cap 16) -- Attack +10% (Cap 21) ----------------------------------------- require("scripts/globals/status"); -----...
gpl-3.0
area31/telegram-bot
plugins/zuera.lua
1
1655
local zueras_file = './data/zueras.lua' local zueras_table function read_zueras_file() local f = io.open(zueras_file, "r+") if f == nil then print ('Created a new zueras file on '..zueras_file) serialize_to_file({}, zueras_file) else print ('Zuera loaded: '..zueras_file) f:...
gpl-2.0
kbullaughey/lstm-play
toys/lstm/model-1_layer-variable.lua
1
9194
#!/usr/bin/env th toy = require '../toy/toy' check = require '../scripts/check_gradients' require 'lstm' -- Allow for command-line control over the seed and number of examples. cmd = torch.CmdLine() cmd:text() cmd:text('Train single-layer LSTM model using toy data.') cmd:text() cmd:text('Options') cmd:option('-seed',...
mit
Ninjistix/darkstar
scripts/zones/Northern_San_dOria/npcs/Yevgeny_IM.lua
5
2536
----------------------------------- -- Area: Northern Sandoria -- NPC: Yevgeny, I.M. -- !pos 45 -1 0 231 -- X Grant Signet -- X Recharge Emperor Band, Empress Band, or Chariot Band -- X Accepts traded Crystals to fill up the Rank bar to open new Missions. -- X Sells items in exchange for Conquest Points -- X Start Sup...
gpl-3.0
istarIQ/Source
help2.lua
1
1462
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀ ▀▄ ▄▀ help2 : مساعدة2 ▀▄ ▄▀ ▀▄▀...
gpl-2.0
carnalis/Urho3D
Source/ThirdParty/toluapp/src/bin/lua/namespace.lua
49
1180
-- tolua: namespace class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 2003 -- $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, -- enhancemen...
mit
Ninjistix/darkstar
scripts/globals/items/bowl_of_shimmy_soup.lua
3
1112
----------------------------------------- -- ID: 5931 -- Item: Bowl of Shimmy Soup -- Food Effect: 4 Hrs, All Races ----------------------------------------- -- MP 32 -- Mind 5 -- HP Recovered While Healing 5 -- Enmity -5 ----------------------------------------- require("scripts/globals/status"); ---------------------...
gpl-3.0
THEGENRRAL/GENERAL
plugins/replay.lua
2
9730
-- made by { @lI_XxX_Il } do ws = {} rs = {} -- some examples of how to use this :3 ws[1] = "هلو" --msg rs[1] = " هــﮧ✥ـٍہٰٓـ๋͜لاـوات🦀❤️ " --replaY ws[2] = "تشاكي" rs[2] = " نـﮧ✥ـٍعٰٓـ๋͜م تفضل🕷❤️ " ws[3] = "هلا" rs[3] = " هــﮧ✥ـٍہٰٓـ๋͜لاـ بيك🦀❤️ " ws[4] = "شلونك" rs[4] = " تٰمـہام ⚘║␙ 🎅🏿🐾 وان...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Sea_Serpent_Grotto/npcs/qm2.lua
5
1135
----------------------------------- -- Area: Sea Serpent Grotto -- NPC: ??? Used for Norg quest "The Sahagin's Stash" -- @zone 176 -- !pos 295.276 27.129 213.043 ----------------------------------- package.loaded["scripts/zones/Sea_Serpent_Grotto/TextIDs"] = nil; ----------------------------------- require("scripts/gl...
gpl-3.0
Inorizushi/DDR-SN1HD
BGAnimations/ScreenGameplay in.lua
1
2978
local playMode = GAMESTATE:GetPlayMode() if playMode ~= 'PlayMode_Regular' and playMode ~= 'PlayMode_Rave' and playMode ~= 'PlayMode_Battle' then curStage = playMode; end; local sStage = GAMESTATE:GetCurrentStage(); local tRemap = { Stage_1st = 1, Stage_2nd = 2, Stage_3rd = 3, Stage_4th = 4, Stage_5th = 5, ...
gpl-3.0
rapthead/awesome-modular
conf/rules.lua
2
1059
local awful = require("awful") awful.rules = require("awful.rules") local bindings = require("conf.keybindings") local beautiful = require("conf.beautiful") -- {{{ Rules -- Rules to apply to new clients (through the "manage" signal). awful.rules.rules = { -- All clients will match...
gpl-2.0
ld-test/lunajson
src/lunajson/sax.lua
11
12046
local error = error local byte, char, find, gsub, match, sub = string.byte, string.char, string.find, string.gsub, string.match, string.sub local tonumber = tonumber local tostring, type, unpack = tostring, type, table.unpack or unpack -- The function that interprets JSON strings is separated into another file so as t...
mit
fmassa/torch7
random.lua
4
1367
local wrap = require 'cwrap' require 'torchcwrap' local interface = wrap.CInterface.new() interface:print( [[ #include "luaT.h" #include "TH.h" extern void torch_Generator_init(lua_State *L); extern void torch_Generator_new(lua_State *L); ]]) for _,name in ipairs({"seed", "initialSeed"}) do interface:wrap...
bsd-3-clause
mandersan/premake-core
tests/api/test_string_kind.lua
16
1400
-- -- tests/api/test_string_kind.lua -- Tests the string API value type. -- Copyright (c) 2012 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("api_string_kind") local api = p.api -- -- Setup and teardown -- function suite.setup() api.register { name = "testapi", ki...
bsd-3-clause
dinodeck/ninety_nine_days_of_dev
007_map_cure/code/Actor.lua
2
8063
Actor = { EquipSlotLabels = { "Weapon:", "Armor:", "Accessory:", "Accessory:" }, EquipSlotId = { "weapon", "armor", "acces1", "acces2" }, ActorStats = { "strength", "speed", "intelligence" }, ...
mit
fjz13/Medusa
Test/Test/Dev/Resource/Script/Medusa/Engine/Node/Scene/SceneManager.lua
3
1548
module(..., package.seeall); local extend=require("ISceneExtend"); function Push(className, flags, ...) className = className or ""; flags = flags or ml.NodePushFlags.BindScriptRecursively; local native = nil; if type(className) == "table" then return _M.PushEx("", "", className, flags, ...); else if (FileSy...
mit
SHIELDTM/shieldbot
bot/seedbot.lua
2
12902
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") VERSION = '2' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then return...
gpl-2.0
ld-test/dromozoa-http
test/test_s3.lua
1
2424
-- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com> -- -- This file is part of dromozoa-http. -- -- dromozoa-http is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -...
gpl-3.0
amir1213/tamir
plugins/location.lua
625
1564
-- Implement a command !loc [area] which uses -- the static map API to get a location image -- Not sure if this is the proper way -- Intent: get_latlong is in time.lua, we need it here -- loadfile "time.lua" -- Globals -- If you have a google api key for the geocoding/timezone api do local api_key = nil local base_...
gpl-2.0
dail8859/LuaScript
examples/StyleCSV.lua
1
1622
-- Anytime a file is switched, check to see if it needs styled npp.AddEventHandler("OnSwitchFile", function(filename, bufferid) if npp:GetExtPart() == ".csv" then -- Add the event handler for our custom style function npp.AddEventHandler("OnStyle", StyleCSV) -- Make sure to set the ...
gpl-2.0
Ninjistix/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Marquis_Nebiros.lua
7
1304
----------------------------------- -- Area: Dynamis Xarcabard -- MOB: Marquis Decarabia ----------------------------------- require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- function onMobEngaged(mob,target) end; function onMobFight(mob,targe...
gpl-3.0
wounds1/zaza2
libs/url.lua
567
9183
--[[ Copyright 2004-2007 Diego Nehab. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute,...
gpl-2.0