repo_name
stringlengths
6
78
path
stringlengths
4
206
copies
stringclasses
281 values
size
stringlengths
4
7
content
stringlengths
625
1.05M
license
stringclasses
15 values
ppissanetzky/AndThen
AndThen.lua
1
10076
--============================================================================= -- Platform specific --============================================================================= local function doafter(ms, f) dolater(ms, f) end --============================================================================= local ...
mit
Ninjistix/darkstar
scripts/zones/Fort_Karugo-Narugo_[S]/npcs/qm6.lua
5
1410
---------------------------------- -- Area: Fort Karugo Narugo [S] -- NPC: ??? -- Type: Quest -- @zone 96 -- !pos -63 -75 4 -- ----------------------------------- package.loaded["scripts/zones/Fort_Karugo-Narugo_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Fort_Karugo-Narugo_[S]/Tex...
gpl-3.0
Ninjistix/darkstar
scripts/globals/items/plate_of_octopus_sushi_+1.lua
3
1230
----------------------------------------- -- ID: 5694 -- Item: plate_of_octopus_sushi_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Strength 2 -- Accuracy % 15 (cap 72) -- Ranged Accuracy % 15 (cap 72) -- Resist Sleep +2 ----------------------------------------- require("scripts/globa...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Al_Zahbi/npcs/Dahaaba.lua
3
1414
----------------------------------- -- Area: Al Zahbi -- NPC: Dahaaba -- Type: Chocobo Renter -- !pos -65.309 -1 -39.585 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require("scripts/globals/chocobo"); require("scripts/globals/status"); -----------------...
gpl-3.0
copystudy/squish
gzip/squish.gzip.lua
3
1786
function gzip_file(infile_fn, outfile_fn) local infile, err = io.open(infile_fn); if not infile then print_err("Can't open input file for reading: "..tostring(err)); return; end local outfile, err = io.open(outfile_fn..".gzipped", "wb+"); if not outfile then print_err("Can't open output file for writing: "...
mit
Ninjistix/darkstar
scripts/zones/La_Theine_Plateau/npcs/Chocobo_Tracks.lua
5
1027
----------------------------------- -- Area: La Theine Plateau -- NPC: Chocobo Tracks -- Involved in quest: Chocobo on the Loose! -- !pos -556 0 523 102 ----------------------------------- package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil; ----------------------------------- require("scripts/zones/La_The...
gpl-3.0
mt246/mt24679
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
Ninjistix/darkstar
scripts/globals/mobskills/necrobane.lua
3
1075
--------------------------------------------- -- Necrobane --------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); --------------------------------------------- function onMobSkillCheck(target,mob,skill) if(mob:g...
gpl-3.0
dinodeck/ninety_nine_days_of_dev
003_combat_numbers/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
bagobor/cpp2lua-buindings-battle
external/LuaJIT-2.0.4/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
Ninjistix/darkstar
scripts/zones/Lower_Jeuno/npcs/Stinknix.lua
5
1050
----------------------------------- -- Area: Lower Jeuno -- NPC: Stinknix -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Lower_Jeuno/TextIDs"); ----------...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Chateau_dOraguille/npcs/Rahal.lua
5
5964
----------------------------------- -- Area: Chateau d'Oraguille -- NPC: Rahal -- Involved in Quests: The Holy Crest, Lure of the Wildcat (San d'Oria) -- !pos -28 0.1 -6 233 ----------------------------------- package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil; ----------------------------------- require...
gpl-3.0
arca1n/cocos2d-x_nextpeer_integration
external/lua/luajit/src/src/jit/dis_ppc.lua
99
20319
---------------------------------------------------------------------------- -- LuaJIT PPC disassembler module. -- -- Copyright (C) 2005-2013 Mike Pall. All rights reserved. -- Released under the MIT/X license. See Copyright Notice in luajit.h ----------------------------------------------------------------------------...
mit
Xagul/forgottenserver
data/actions/scripts/other/bed_modification_kits.lua
12
1624
local beds = { [7904] = {{7811, 7812}, {7813, 7814}}, -- green kit [7905] = {{7819, 7820}, {7821, 7822}}, -- yellow kit [7906] = {{7815, 7816}, {7817, 7818}}, -- red kit [7907] = {{1754, 1755}, {1760, 1761}}, -- removal kit [20252] = {{20197, 20198}, {20199, 20200}} -- canopy kit } local function internalBedTrans...
gpl-2.0
Ninjistix/darkstar
scripts/zones/Jugner_Forest_[S]/npcs/Cavernous_Maw.lua
5
1073
----------------------------------- -- Area: Jugner Forest [S] -- NPC: Cavernous Maw -- !pos -118 -8 -520 82 -- Teleports Players to Jugner Forest ----------------------------------- package.loaded["scripts/zones/Jugner_Forest_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems")...
gpl-3.0
Ninjistix/darkstar
scripts/globals/abilities/pets/attachments/heat_seeker.lua
2
2130
----------------------------------- -- Attachment: Heat Seeker ----------------------------------- require("scripts/globals/status") function onEquip(pet) pet:addListener("ENGAGE", "AUTO_HEAT_SEEKER_ENGAGE", function(pet, target) pet:setLocalVar("heatseekertick", VanadielTime()) end) pet:addListene...
gpl-3.0
pfirsich/kraidGUI
conf.lua
2
2661
function love.conf(t) t.window.width = 1600 -- The window width (number) t.window.height = 900 -- The window height (number) t.window.vsync = false -- Enable vertical sync (true/false) t.window.fullscreen = false -- Enable fullscreen (true/false) t.window.fsaa = 0 -- The number of samples to us...
mit
Ninjistix/darkstar
scripts/zones/Cloister_of_Tremors/Zone.lua
5
1085
----------------------------------- -- -- Zone: Cloister_of_Tremors (209) -- ----------------------------------- package.loaded["scripts/zones/Cloister_of_Tremors/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Cloister_of_Tremors/TextIDs"); -------------...
gpl-3.0
dmekersa/create2Dmobilegames
Transitions/main.lua
1
1340
----------------------------------------------------------------------------------------- -- -- main.lua -- ----------------------------------------------------------------------------------------- -- Your code here -- local ball = display.newCircle( 20, 20, 10 ) -- transition.from( ball, { x=300, y=400, time=4000 ...
unlicense
ogahara/esp8266-devkit
Espressif/examples/nodemcu-firmware/lua_examples/mqtt/mqtt_file.lua
68
1667
-- test transfer files over mqtt. m_dis={} function dispatch(m,t,pl) if pl~=nil and m_dis[t] then m_dis[t](m,pl) end end function pubfile(m,filename) file.close() file.open(filename) repeat local pl=file.read(1024) if pl then m:publish("/topic2",pl,0,0) end until not pl file.close() end -- payload...
gpl-3.0
gmorishere/s
plugins/stats.lua
4
3994
do -- Returns a table with `name` and `msgs` 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_prin...
gpl-2.0
mandersan/premake-core
binmodules/luasocket/src/ftp.lua
42
10640
----------------------------------------------------------------------------- -- FTP support for the Lua language -- LuaSocket toolkit. -- Author: Diego Nehab ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- -- D...
bsd-3-clause
amir1213/tamir
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
xitrum-framework/FrameworkBenchmarks
frameworks/Lua/openresty/app.lua
37
2424
local mysql = mysql local encode = encode local random = math.random local min = math.min local insert = table.insert local sort = table.sort local template = require'resty.template' template.caching(false) -- Compile template, disable cache, enable plain text view to skip filesystem loading local view = template.comp...
bsd-3-clause
TRex22/hawkthorne-journey
src/positions/jeff.lua
2
4157
return { hand_right = { { {-9, 37}, {-11, 31}, {-6, 32}, {-13, 28}, {0, 0}, {-9, 37}, {-9, 37}, {-9, 37}, {-9, 33}, {-10, 33}, {-1, 34}, {6, 37}, }, { {8, 37}, {10, 31}, {6, 32}, {12, 28}, {0, 0}, {8, 37}, {7, 37}, {8, 37}, {7, 36}, {9, 36}, {-1, 34}, {8, 37}, }, { {-14, 15}, {0, 0}, {0, 0}, {11, 30...
mit
ocurr/hammerspoon
extensions/drawing/init.lua
1
6651
local imagemod = require("hs.image") -- make sure we know about hsimage userdata for image functions local module = require("hs.drawing.internal") module.color = require("hs.drawing.color") local styledtext = require("hs.styledtext") local _kMetaTable = {} _kMetaTable._k = {} _kMetaTable.__index = func...
mit
PetarTilevRusev/EndlessWar
game/scripts/vscripts/examples/notificationsExample.lua
17
2113
-- Send a notification to all players that displays up top for 5 seconds Notifications:TopToAll({text="Top Notification for 5 seconds ", duration=5.0}) -- Send a notification to playerID 0 which will display up top for 9 seconds and be green, on the same line as the previous notification Notifications:Top(0, {text="GRE...
mit
bmddota/ContainersPlayground
game/dota_addons/containersplayground/scripts/vscripts/examples/notificationsExample.lua
17
2113
-- Send a notification to all players that displays up top for 5 seconds Notifications:TopToAll({text="Top Notification for 5 seconds ", duration=5.0}) -- Send a notification to playerID 0 which will display up top for 9 seconds and be green, on the same line as the previous notification Notifications:Top(0, {text="GRE...
apache-2.0
Ninjistix/darkstar
scripts/zones/AlTaieu/npcs/_0x3.lua
5
1844
----------------------------------- -- Area: Al'Taieu -- NPC: Rubious Crystal (East Tower) -- !pos 683.718 -6.250 -222.167 33 ----------------------------------- package.loaded["scripts/zones/AlTaieu/TextIDs"] = nil; ----------------------------------- require("scripts/zones/AlTaieu/TextIDs"); require("scripts/zones/A...
gpl-3.0
eugenesan/openwrt-luci
contrib/luadoc/lua/luadoc/config.lua
165
1234
------------------------------------------------------------------------------- -- LuaDoc configuration file. This file contains the default options for -- luadoc operation. These options can be overriden by the command line tool -- @see luadoc.print_help -- @release $Id: config.lua,v 1.6 2007/04/18 14:28:39 tomas Exp...
apache-2.0
Ninjistix/darkstar
scripts/zones/Northern_San_dOria/npcs/Macuillie.lua
5
2359
----------------------------------- -- Area: Northern San d'Oria -- NPC: Macuillie -- Type: Guildworker's Union Representative -- @zone 231 -- !pos -191.738 11.001 138.656 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require(...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Temple_of_Uggalepih/npcs/qm8.lua
5
1258
----------------------------------- -- Area: Temple of Uggalepih (159) -- NPC: qm8 (???) -- Notes: Used to spawn Habetrot -- !pos -57.434 -8.484 55.317 0 ----------------------------------- package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Tem...
gpl-3.0
abackwood/ProjectPorcupine
Assets/StreamingAssets/LUA/Furniture.lua
7
26972
------------------------------------------------------- -- Project Porcupine Copyright(C) 2016 Team Porcupine -- This program comes with ABSOLUTELY NO WARRANTY; This is free software, -- and you are welcome to redistribute it under certain conditions; See -- file LICENSE, which is part of this source code package, for ...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Garlaige_Citadel/npcs/_nke.lua
5
2876
----------------------------------- -- Area: Garlaige Citadel -- NPC: Strange Apparatus -- !pos 255 0 19 200 ----------------------------------- package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Garlaige_Citadel/TextIDs"); require("scripts/global...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Temple_of_Uggalepih/npcs/_mf8.lua
5
1076
----------------------------------- -- Area: Temple of Uggalepih -- NPC: _mf8 (Granite Door) -- Notes: Opens with Prelate Key -- !pos -11 -8 -99 159 ----------------------------------- package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Temple_o...
gpl-3.0
bluetomatoes/ExploreTimelines
CodeSamples/Storyboard-Sample-master/scene4.lua
2
3532
--------------------------------------------------------------------------------- -- -- testscreen4.lua -- --------------------------------------------------------------------------------- local storyboard = require( "storyboard" ) local scene = storyboard.newScene() --------------------------------------------------...
mit
DEVll190ll/DEV_HR
plugins/DEV_13.lua
1
1441
--[[ BY ADOLF_HITLER (@LL190LL) BY:حسين محمد BY ADOLF_HITLER (@LLSNLL) —]] do local function callbackres(extra, success, result) --vardump(result) local user = 'user#id'..result.peer_id local chat = 'chat#id'..extra.chatid local channel = 'channel#id'..extra.chatid if is_banned(result.id...
gpl-2.0
Ninjistix/darkstar
scripts/commands/addquest.lua
7
1500
--------------------------------------------------------------------------------------------------- -- func: addquest <logID> <questID> <player> -- desc: Adds a quest to the given targets log. --------------------------------------------------------------------------------------------------- require("scripts/globals/q...
gpl-3.0
ccyphers/kong
kong/plugins/oauth2/migrations/postgres.lua
2
5368
return { { name = "2015-08-03-132400_init_oauth2", up = [[ CREATE TABLE IF NOT EXISTS oauth2_credentials( id uuid, name text, consumer_id uuid REFERENCES consumers (id) ON DELETE CASCADE, client_id text UNIQUE, client_secret text UNIQUE, redirect_uri text,...
apache-2.0
bluetomatoes/ExploreTimelines
Code/PowerChange.lua
3
3073
-- This file is for use with Corona SDK -- -- It is intended for use with the image sheet and sprite API's -- -- This module writes no global values, not even the module table -- -- Usage example: ---local options = --{ -- frames = require("ArrowSprites").frames, --} --local imageSheet = graphics.newIm...
mit
dail8859/LuaScript
examples/LuaAutoIndent.lua
1
2964
-- Regexs to determine when to indent or unindent -- From: https://github.com/sublimehq/Packages/blob/master/Lua/Indent.tmPreferences local decreaseIndentPattern = [[^\s*(elseif|else|end|\})\s*$]] local increaseIndentPattern = [[^\s*(else|elseif|for|(local\s+)?function|if|repeat|until|while)\b((?!end).)*$|\{\s*$]] loc...
gpl-2.0
Ninjistix/darkstar
scripts/zones/Mount_Zhayolm/mobs/Wamoura_Prince.lua
8
1275
----------------------------------- -- Area: Mount Zhayolm -- MOB: Wamoura Prince ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- TODO: Damage resistances in streched and curled stances. Halting movement during stance change. Morph into Wamoura. function o...
gpl-3.0
mohammadtofani/fox
bot/seedbot.lua
1
9780
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 = '1.0' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then retu...
gpl-2.0
abhishyantkhare/tenshi
vm/lua/tenshi-runtime/src/lua/sensor_actor.lua
10
1607
-- Licensed to Pioneers in Engineering under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. Pioneers in Engineering licenses -- this file to you under the Apache License, Version 2.0 (the -- "License"); you ...
apache-2.0
Xamla/torch-ros
lua/actionlib/SimpleActionClient.lua
1
12821
local ros = require 'ros.env' require 'ros.actionlib.ActionClient' local GoalStatus = require 'ros.actionlib.GoalStatus' local std = ros.std local actionlib = ros.actionlib local SimpleActionClient = torch.class('ros.actionlib.SimpleActionClient', actionlib) local CommState = actionlib.CommState local ZERO_DURATION ...
bsd-3-clause
Ninjistix/darkstar
scripts/zones/Apollyon/Zone.lua
3
11630
----------------------------------- -- -- Zone: Apollyon -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; require("scripts/zones/Apollyon/TextIDs"); require("scripts/globals/limbus"); ----------------------------------- -- onInitiali...
gpl-3.0
Ninjistix/darkstar
scripts/zones/East_Sarutabaruta/npcs/Signpost.lua
5
1810
----------------------------------- -- Area: East Sarutabaruta -- NPC: Signpost ----------------------------------- package.loaded["scripts/zones/East_Sarutabaruta/TextIDs"] = nil; ----------------------------------- require("scripts/zones/East_Sarutabaruta/TextIDs"); ----------------------------------- function onTr...
gpl-3.0
TRex22/hawkthorne-journey
src/nodes/enemies/fish.lua
3
1457
local tween = require 'vendor/tween' return { name = 'fish', die_sound = 'acorn_squeak', height = 24, width = 24, position_offset = { x = 13, y = 50 }, bb_width = 12, bb_height = 20, bb_offset = {x=0, y=2}, damage = 1, hp = 1, jumpkill = false, antigravity = true, ea...
mit
Ninjistix/darkstar
scripts/globals/abilities/tame.lua
5
1713
----------------------------------- -- Ability: Tame -- Makes target docile and more susceptible to charm. -- Obtained: Beastmaster Level 30 -- Recast Time: 10:00 -- Duration: Instant ----------------------------------- require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/magic...
gpl-3.0
scan-bot/scan-bot
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
TEAMvirus/ViRuS
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
jokersso3/joker
system/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
Ninjistix/darkstar
scripts/zones/Southern_San_dOria/npcs/Anxaberoute.lua
5
1171
----------------------------------- -- Area: Southern San dOria -- NPC: Anxaberoute -- Type: Standard Info NPC -- @zone 230 -- !pos 108.892 0.000 -49.038 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Sout...
gpl-3.0
TRex22/hawkthorne-journey
src/positions/buddy.lua
2
4153
return { hand_left = { { {10, 37}, {10, 36}, {10, 37}, {10, 36}, {10, 37}, {10, 37}, {10, 37}, {10, 37}, {9, 35}, {8, 36}, {-4, 39}, {-11, 37}, }, { {9, 37}, {9, 36}, {9, 37}, {9, 36}, {9, 37}, {9, 37}, {9, 37}, {-11, 37}, {-9, 37}, {-11, 36}, {2, 39}, {-9, 37}, }, { {4, 22}, {0, 0}, {0, 0}, {10, 37...
mit
sina021/xy
plugins/invite.lua
393
1225
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) then -- Ignore bans send_large_msg(chat, 'User is banned.') elseif is_gbanned(result.id) then -- I...
gpl-2.0
scan-bot/scan-bot
plugins/tweet.lua
634
7120
local OAuth = require "OAuth" local consumer_key = "" local consumer_secret = "" local access_token = "" local access_token_secret = "" local twitter_url = "https://api.twitter.com/1.1/statuses/user_timeline.json" local client = OAuth.new(consumer_key, consumer_secret, ...
gpl-2.0
Ninjistix/darkstar
scripts/zones/Northern_San_dOria/npcs/Matildie.lua
5
1370
----------------------------------- -- Area: Northern San d'Oria -- NPC: Matildie -- Adventurer's Assistant ------------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Northern_San_dOria/TextIDs"); require("scripts/g...
gpl-3.0
premake/premake-4.x
src/actions/xcode/xcode_project.lua
26
5307
-- -- xcode_project.lua -- Generate an Xcode C/C++ project. -- Copyright (c) 2009 Jason Perkins and the Premake project -- local xcode = premake.xcode local tree = premake.tree -- -- Create a tree corresponding to what is shown in the Xcode project browser -- pane, with nodes for files and folders, resources, frame...
bsd-3-clause
Ninjistix/darkstar
scripts/globals/weaponskills/spirits_within.lua
8
2200
----------------------------------- -- Spirits Within -- Sword weapon skill -- Spirits Within Sword Weapon Skill -- TrolandAdded by Troland -- Skill Level: 175 -- Delivers an unavoidable attack. Damage varies with HP and TP. -- Not aligned with any "elemental gorgets" or "elemental belts" due to it's absence of Skillch...
gpl-3.0
BooM-amour/bomb
plugins/invite.lua
18
1191
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) then -- Ignore bans send_large_msg(chat, 'User is banned.') elseif is_gbanned(result.id) then -- I...
gpl-2.0
mohammadtofani/fox
plugins/invite.lua
18
1191
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) then -- Ignore bans send_large_msg(chat, 'User is banned.') elseif is_gbanned(result.id) then -- I...
gpl-2.0
LuaDist2/dromozoa-chunk
test_writer.lua
3
1700
-- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com> -- -- This file is part of dromozoa-chunk. -- -- dromozoa-chunk 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
backburn/Probably
external/LibDispellable-1.0/LibDispellable-1.0.lua
1
13317
--[[ LibDispellable-1.0 - Test whether the player can really dispell a buff or debuff, given its talents. Copyright (C) 2009-2013 Adirelle (adirelle@gmail.com) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are...
bsd-3-clause
Ninjistix/darkstar
scripts/globals/items/slice_of_dhalmel_meat.lua
3
1090
----------------------------------------- -- ID: 4359 -- Item: slice_of_dhalmel_meat -- Food Effect: 5Min, Galka only ----------------------------------------- -- Strength 3 -- Intelligence -5 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- functio...
gpl-3.0
mandersan/premake-core
binmodules/luasocket/samples/tinyirc.lua
44
2711
----------------------------------------------------------------------------- -- Select sample: simple text line server -- LuaSocket sample files. -- Author: Diego Nehab ----------------------------------------------------------------------------- local socket = require("socket") host = host or "*" port1 = port1 or 808...
bsd-3-clause
Ninjistix/darkstar
scripts/zones/Bastok_Mines/npcs/Elki.lua
5
2352
----------------------------------- -- Area: Bastok Mines -- NPC: Elki -- Starts Quests: Hearts of Mythril, The Eleventh's Hour ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals...
gpl-3.0
premake/premake-4.x
tests/test_gmake_cs.lua
57
1459
-- -- tests/test_gmake_cs.lua -- Automated test suite for GNU Make C/C++ project generation. -- Copyright (c) 2009 Jason Perkins and the Premake project -- T.gmake_cs = { } -- -- Configure a solution for testing -- local sln, prj function T.gmake_cs.setup() _ACTION = "gmake" _OPTIONS.os = "linux" sln = sol...
bsd-3-clause
premake/premake-4.x
tests/actions/vstudio/vc2010/test_pch.lua
57
1388
-- -- tests/actions/vstudio/vc2010/test_pch.lua -- Validate generation of files block in Visual Studio 2010 C/C++ projects. -- Copyright (c) 2011 Jason Perkins and the Premake project -- T.vstudio_vs2010_pch = { } local suite = T.vstudio_vs2010_pch local vc2010 = premake.vstudio.vc2010 -- -- Setup -- local sln...
bsd-3-clause
mandersan/premake-core
modules/vstudio/tests/sln2005/test_nested_projects.lua
16
2083
-- -- tests/actions/vstudio/sln2005/test_nested_projects.lua -- Check Visual Studio 2005+ Nested Projects solution block. -- Copyright (c) 2012-2015 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("vstudio_sln2005_nested_projects") local sln2005 = p.vstudio.sln2005 -- -- Setu...
bsd-3-clause
dan-cleinmark/nodemcu-firmware
lua_examples/onewire-ds18b20.lua
60
1505
--' -- 18b20 one wire example for NODEMCU -- NODEMCU TEAM -- LICENCE: http://opensource.org/licenses/MIT -- Vowstar <vowstar@nodemcu.com> --' pin = 9 ow.setup(pin) count = 0 repeat count = count + 1 addr = ow.reset_search(pin) addr = ow.search(pin) tmr.wdclr() until((addr ~= nil) or (count > 100)) if (addr ==...
mit
Ninjistix/darkstar
scripts/globals/items/dish_of_hydra_kofte_+1.lua
3
1525
----------------------------------------- -- ID: 5603 -- Item: dish_of_hydra_kofte_+1 -- Food Effect: 240Min, All Races ----------------------------------------- -- Strength 8 -- Intelligence -4 -- Attack % 20 -- Attack Cap 160 -- Defense % 25 -- Defense Cap 75 -- Ranged ATT % 20 -- Ranged ATT Cap 160 -- Poison Resist ...
gpl-3.0
mandersan/premake-core
tests/base/test_versions.lua
23
4042
-- -- tests/base/test_versions.lua -- Verify the version comparisons. -- Copyright (c) 2015 Jason Perkins and the Premake project -- local suite = test.declare("premake_versions") local p = premake -- -- If only major version is specified, anything after should pass. -- function suite.pass_majorOnly_sameMajor()...
bsd-3-clause
neofob/sile
languages/tr.lua
1
5293
-- Quotes may be part of a word in Turkish SILE.nodeMakers.tr = SILE.nodeMakers.unicode { isWordType = { cm = true, qu = true }, } SILE.hyphenator.languages["tr"] = {} SILE.hyphenator.languages["tr"].patterns = { "2a1", "2â1", "2e1", "2ı1", "2i1", "2î1", "2o1", "2ö1", "2u1", "2ü1", "2û1", -- allow hyphen either s...
mit
Ninjistix/darkstar
scripts/globals/mobskills/spirits_within.lua
6
1838
--------------------------------------------- -- Spirits Within -- -- Description: Delivers an unavoidable attack. Damage varies with HP and TP. -- Type: Magical/Breath -- Utsusemi/Blink absorb: Ignores shadows and most damage reduction. -- Range: Melee --------------------------------------------- require("scripts/glo...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Southern_San_dOria/npcs/Collione.lua
5
1353
----------------------------------- -- Area: Southern San d'Oria -- NPC: Collione -- General Info NPC -- @zone 230 -- !pos 10 2 -66 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Southern_San_dOria/Tex...
gpl-3.0
Ninjistix/darkstar
scripts/globals/spells/pyrohelix.lua
3
1984
-------------------------------------- -- Spell: Pyrohelix -- Deals fire damage that gradually reduces -- a target's HP. Damage dealt is greatly affected by the weather. -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/ma...
gpl-3.0
dinodeck/ninety_nine_days_of_dev
001_cancel_textboxes/code/Actions.lua
4
9088
Actions = { -- Teleport an entity from the current position to the given position Teleport = function(map, tileX, tileY, layer) layer = layer or 1 return function(trigger, entity, tX, tY, tLayer) entity:SetTilePos(tileX, tileY, layer, map) end end, AddNPC =...
mit
Ninjistix/darkstar
scripts/zones/Inner_Horutoto_Ruins/npcs/_5cs.lua
5
2222
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: _5cs (Magical Gizmo) #4 -- Involved In Mission: The Horutoto Ruins Experiment ----------------------------------- package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil; ----------------------------------- require("scripts/globals/m...
gpl-3.0
bagobor/cpp2lua-buindings-battle
external/LuaJIT-2.0.4/src/jit/dis_mips.lua
88
13222
---------------------------------------------------------------------------- -- LuaJIT MIPS disassembler module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT/X license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------...
mit
dinodeck/ninety_nine_days_of_dev
004_stat_numbers/code/Entity.lua
10
2481
Entity = {} Entity.__index = Entity function Entity:Create(def) local this = { mSprite = Sprite.Create(), mTexture = Texture.Find(def.texture), mHeight = def.height, mWidth = def.width, mTileX = def.tileX, mTileY = def.tileY, mLayer = def.layer,...
mit
Ninjistix/darkstar
scripts/zones/Northern_San_dOria/npcs/Esqualea.lua
5
1120
----------------------------------- -- Area: Northern San d'Oria -- NPC: Esqualea -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Northern_San_dOria/TextIDs"); require("scripts/globals/...
gpl-3.0
Ninjistix/darkstar
scripts/zones/The_Eldieme_Necropolis/npcs/Sarcophagus.lua
5
4320
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: Sarcophagus -- Involved in Quests: The Requiem (BARD AF2), A New Dawn (BST AF3) -- !pos -420 8 500 195 ----------------------------------- package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil; ----------------------------------...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Temenos/mobs/Air_Elemental.lua
28
1787
----------------------------------- -- Area: Temenos E T -- NPC: Air_Elemental ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); -------------------------------...
gpl-3.0
ccyphers/kong
kong/plugins/tcp-log/handler.lua
8
1346
local BasePlugin = require "kong.plugins.base_plugin" local basic_serializer = require "kong.plugins.log-serializers.basic" local cjson = require "cjson" local TcpLogHandler = BasePlugin:extend() local function log(premature, conf, message) if premature then return end local ok, err local host = conf.host ...
apache-2.0
arca1n/cocos2d-x_nextpeer_integration
cocos/scripting/lua/script/json.lua
60
15380
----------------------------------------------------------------------------- -- JSON4Lua: JSON encoding / decoding support for the Lua language. -- json Module. -- Author: Craig Mason-Jones -- Homepage: http://json.luaforge.net/ -- Version: 0.9.40 -- This module is released under the MIT License (MIT). -- Please see L...
mit
Ninjistix/darkstar
scripts/globals/spells/bluemagic/dimensional_death.lua
33
1738
----------------------------------------- -- Spell: Dimensional Death -- Damage varies with TP -- Spell cost: 48 MP -- Monster Type: Undead -- Spell Type: Physical (Blunt) -- Blue Magic Points: 5 -- Stat Bonus: DEX+1, CHR+1, HP+5 -- Level: 60 -- Casting Time: 0.5 seconds -- Recast Time: 23.75 seconds -- Skillchain Prop...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Upper_Jeuno/npcs/Monberaux.lua
5
5534
----------------------------------- -- Area: Upper Jeuno -- NPC: Monberaux -- Starts and Finishes Quest: The Lost Cardian (finish), The kind cardian (start) -- Involved in Quests: Save the Clock Tower -- !pos -43 0 -1 244 ----------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; pa...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Southern_San_dOria/npcs/Esmallegue.lua
5
1196
----------------------------------- -- Area: Southern San d'Oria -- NPC: Esmallegue -- General Info NPC -- @zone 230 -- !pos 0 2 -83 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Southern_San_dOria/Te...
gpl-3.0
Ninjistix/darkstar
scripts/globals/items/bowl_of_adoulinian_soup.lua
3
1299
----------------------------------------- -- ID: 5998 -- Item: Bowl of Adoulin Soup -- Food Effect: 180 Min, All Races ----------------------------------------- -- HP % 3 Cap 40 -- Vitality 3 -- Defense % 15 Cap 70 -- HP Healing 6 ----------------------------------------- require("scripts/globals/status"); ------------...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Davoi/npcs/_45i.lua
3
1924
----------------------------------- -- Area: Davoi -- NPC: Wailing Pond -- Used In Quest: Whence Blows the Wind -- !pos 380 0.1 -181 149 ----------------------------------- package.loaded["scripts/zones/Davoi/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/glo...
gpl-3.0
otservme/global1051
data/creaturescripts/scripts/playerdeath.lua
6
3139
local deathListEnabled = true local maxDeathRecords = 5 function onDeath(cid, corpse, killer, mostDamage, unjustified, mostDamage_unjustified) local player = Player(cid) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You are dead.") if not deathListEnabled then return end local byPlayer = 0 local killerCreat...
gpl-2.0
Ninjistix/darkstar
scripts/zones/Bostaunieux_Oubliette/Zone.lua
5
1690
----------------------------------- -- -- Zone: Bostaunieux_Oubliette (167) -- ----------------------------------- package.loaded["scripts/zones/Bostaunieux_Oubliette/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Bostaunieux_Oubliette/TextIDs"); require("scripts/zones/Bostaunieux_Oubliette...
gpl-3.0
Ninjistix/darkstar
scripts/globals/spells/bluemagic/jet_stream.lua
33
1738
----------------------------------------- -- Spell: Jet Stream -- Delivers a threefold attack. Accuracy varies with TP -- Spell cost: 47 MP -- Monster Type: Birds -- Spell Type: Physical (Blunt) -- Blue Magic Points: 4 -- Stat Bonus: DEX+2 -- Level: 38 -- Casting Time: 0.5 seconds -- Recast Time: 23 seconds -- Skillcha...
gpl-3.0
malyutinegor/starsim
app/scripts/libs/ui/HC/class.lua
26
3446
--[[ Copyright (c) 2010-2011 Matthias Richter Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dis...
gpl-3.0
mamad-ali/xilibot
plugins/twitter.lua
632
2555
local OAuth = require "OAuth" -- EDIT data/twitter.lua with the API keys local twitter_config = load_from_file('data/twitter.lua', { -- DON'T EDIT HERE. consumer_key = "", consumer_secret = "", access_token = "", access_token_secret = "" }) local client = OAuth.new(twitter_config.consumer_key, twitter_c...
gpl-2.0
random-nick/Townvalds
plots.lua
2
5574
function PlotClaim(Split, Player) local UUID = Player:GetUUID(); local sql = "SELECT town_id FROM town_residents WHERE player_uuid = ?"; local parameter = {UUID}; local resident = ExecuteStatement(sql, parameter)[1]; local sql = "SELECT townChunk_id, town_id, owner FROM plots WHERE chunkX = ? AND chunkZ = ? AND ...
agpl-3.0
Ninjistix/darkstar
scripts/zones/Temenos/npcs/Particle_Gate.lua
64
3548
----------------------------------- -- Area: Temenos -- NPC: Particle_Gate ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/globals/keyitems"); require("scripts/zones/Temenos/TextIDs"); -...
gpl-3.0
Ninjistix/darkstar
scripts/globals/mobskills/chains_of_envy.lua
5
1321
--------------------------------------------- -- Chains of Envy -- --------------------------------------------- package.loaded["scripts/zones/Empyreal_Paradox/TextIDs"] = nil; --------------------------------------------- require("scripts/zones/Empyreal_Paradox/TextIDs"); require("scripts/globals/monstertpmoves"); req...
gpl-3.0
blackman1380/antispam
plugins/supergroupfa.lua
7
77988
--Begin supergrpup.lua --Check members #Add supergroup local function check_member_super(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg if success == 0 then send_large_msg(receiver, "Promote me to admin first!") end for k,v in pairs(result)...
gpl-2.0
Xagul/forgottenserver
data/npc/lib/npcsystem/keywordhandler.lua
19
5024
-- Advanced NPC System by Jiddo if KeywordHandler == nil then KeywordNode = { keywords = nil, callback = nil, parameters = nil, children = nil, parent = nil } -- Created a new keywordnode with the given keywords, callback function and parameters and without any childNodes. function KeywordNode:new(keys,...
gpl-2.0