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
FFXIOrgins/FFXIOrgins
scripts/globals/items/zafmlug_bass.lua
17
1321
----------------------------------------- -- ID: 4385 -- Item: zafmlug_bass -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Mind -4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItem...
gpl-3.0
msburgess3200/PERP
gamemodes/perp/gamemode/vgui/vehicle_owned_details.lua
1
1388
local PANEL = {}; function PANEL:Init ( ) self:SetTall(76); self.Button = vgui.Create('DButton', self); self.Button:SizeToContents(); self.Button:SetTall(20); self.Button:SetWide(60); self.Button:SetText('Claim'); self:SetSkin("ugperp") end function PANEL:PerformLayout ( ) self.Button:SetPos(self:GetWide...
mit
wectoreya/alahvaz.bot
plugins/ahvaz.lua
3
1622
--[[ ▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY ANWAR @xXxDev_iqxXx ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMED LEADER @Hamapaiz ▀▄ ▄▀ ▀▄ ▄▀ BY CHNEALL @Dev_faed ▀▄ ▄▀ ▀▄ ▄▀ ...
gpl-3.0
Phoib/OpenRA
mods/cnc/maps/gdi04b/gdi04b.lua
2
4614
NodxTemplate = { {HandOfNod, {"e1", "e1", "e3", "e3"}} } AutoTemplate = { {HandOfNod, {"e1", "e1", "e1", "e3", "e3"}} } KillsUntilReinforcements = 12 kills = 0 KillCounter = function() kills = kills + 1 end GDIReinforcements = {"e2", "e2", "e2", "e2"} GDIReinforcementsWaypoints = {GDIReinforcementsEntry, GDIReinforce...
gpl-3.0
yongju-hong/thrift
lib/lua/TCompactProtocol.lua
9
13116
-- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); you ma...
apache-2.0
aosee1h1/AOSEE_2H2
plugin/addtime.lua
8
4803
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ add : تفعيل ▀▄ ▄▀ ▀▄▀▀▄▄▀▀▄▄▀...
gpl-2.0
soroushwilson/wilson1
plugins/tosticker.lua
1
1127
local function tosticker(msg, success, result) local receiver = get_receiver(msg) if success then local file = './data/photos/'..msg.from.id..'.webp' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) send_document(get_receiver(msg), file, ok_cb, false) ...
gpl-2.0
fartoverflow/naev
dat/ai/include/atk_fighter.lua
9
4835
--[[This file contains the attack profiles by ship type. --commonly used range and condition-based attack patterns are found in another file --Think functions for determining who to attack are found in another file --]] -- Initializes the fighter function atk_fighter_init () mem.atk_think = atk_fighter_think me...
gpl-3.0
msburgess3200/PERP
gamemodes/perp/gamemode/npcs/char_sex.lua
1
2782
local NPC = {}; NPC.Name = "Dr. M. Ingebag"; NPC.ID = 10; NPC.Model = Model("models/kleiner.mdl"); NPC.Invisible = false; // Used for ATM Machines, Casino Tables, etc. NPC.Location = Vector(-9942.3193, 9720.0342, 72.0313); NPC.Angles = Angle(0, 178.9973, 0.000000); NPC.ShowChatBubble = "Normal"; NPC.Sequence = ...
mit
FFXIOrgins/FFXIOrgins
scripts/zones/Chateau_dOraguille/npcs/Perfaumand.lua
19
1642
----------------------------------- -- Area: Chateau d'Oraguille -- NPC: Perfaumand -- Involved in Quest: Lure of the Wildcat (San d'Oria) -- @pos -39 -3 69 233 ----------------------------------- package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil; ----------------------------------- require("scripts/gl...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/weaponskills/tachi_rana.lua
4
4535
----------------------------------- -- Tachi Rana -- Great Katana weapon skill -- Skill Level: N/A -- Delivers a three-fold attack. params.accuracy varies with TP. Aftermath effect varies with TP. See Kogarasumaru. -- In order to obtain Tachi: Rana, the Unlocking a Myth (Samurai) quest must be completed. --...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/spells/regen_iii.lua
3
1389
----------------------------------------- -- Spell: Regen III -- Gradually restores target's HP. ----------------------------------------- -- Cleric's Briault enhances the effect -- Scale down duration based on level -- Composure increases duration 3x ----------------------------------------- require("scripts...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Windurst_Walls/npcs/Scavnix.lua
17
1226
----------------------------------- -- Area: Windurst Walls -- NPC: Scavnix -- Standard merchant, though he acts like a guild merchant -- @pos 17.731 0.106 239.626 239 ----------------------------------- package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil; ----------------------------------- require(...
gpl-3.0
TW1STaL1CKY/pac3
lua/pac3/core/client/parts/decal.lua
2
1423
--!lc util.DecalEx(Material("sprites/key_0"), this:IsValid() and this or Entity(0), there + trace.Normal, -trace.HitNormal, Color(255,255,255,255), 0.5,0.5) local PART = {} PART.ClassName = "decal" PART.Group = 'effects' PART.Icon = 'icon16/paintbrush.png' pac.StartStorableVars() pac.GetSet(PART, "Color", Vector(25...
gpl-3.0
sjznxd/lc-20130127
applications/luci-wshaper/luasrc/model/cbi/wshaper.lua
53
2056
--[[ LuCI - Lua Configuration Interface Copyright 2011 Manuel Munz <freifunk at somakoma dot de> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ]]-- r...
apache-2.0
torch/graph
init.lua
4
6566
require 'torch' graph = {} require('graph.graphviz') require('graph.Node') require('graph.Edge') --[[ Defines a graph and general operations on grpahs like topsort, connected components, ... uses two tables, one for nodes, one for edges ]]-- local Graph = torch.class('graph.Graph') function Graph:__init() self....
bsd-3-clause
FFXIOrgins/FFXIOrgins
scripts/globals/spells/curaga_v.lua
4
1247
----------------------------------------- -- Spell: Curaga V -- Restores HP of all party members within area of effect. ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); -----------------------------------------...
gpl-3.0
xopxe/rong
test2.lua
1
2428
--require "strict" --look for packages one folder up. package.path = package.path .. ";;;../?.lua;../?/init.lua" local sched = require 'lumen.sched' local log = require 'lumen.log' log.setlevel('ALL', 'RONG') --log.setlevel('ALL', 'RON') log.setlevel('ALL', 'TRW') --log.setlevel('DETAIL', 'RWALK') --log.setlevel('ALL'...
mit
dtorop/darktable
tools/lua_doc/old_api/dt_api210dev.lua
7
247029
API = { ["__text"] = [==[To access the darktable specific functions you must load the darktable environment:<code>darktable = require "darktable"</code>All functions and data are accessed through the darktable module. This documentation for API version 2.1.0-dev.]==], ["__attributes"] = { ["reported_type"] = [==[docume...
gpl-3.0
rxi/tick
tick.lua
1
3637
-- -- tick -- -- Copyright (c) 2015 rxi -- -- This library is free software; you can redistribute it and/or modify it -- under the terms of the MIT license. See LICENSE for details. -- local tick = { _version = "0.1.1" } tick.__index = tick local iscallable = function(x) if type(x) == "function" then...
mit
FFXIOrgins/FFXIOrgins
scripts/zones/Windurst_Waters/npcs/Anja-Enja.lua
37
1052
----------------------------------- -- Area: Windurst Waters -- NPC: Anja-Enja -- Adventurer's Assistant -- Working 100% ------------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; require("scripts/zones/Windurst_Waters/TextIDs"); ...
gpl-3.0
facebook/fbnn
fbnn/FasterLookup.lua
1
1649
local FasterLookup, parent = torch.class('nn.FasterLookup', 'nn.Module') function FasterLookup:__init( nIndex, dim, skipBoundChecking, scaleGradByFreq, concurrentUpdates) parent.__init(self) self.count = torch.IntTensor(nIndex); self.weight = torch.Tensor(nIndex, dim) self.gradWeight = torch.Tensor() -- do ...
bsd-3-clause
FFXIOrgins/FFXIOrgins
scripts/zones/Northern_San_dOria/TextIDs.lua
3
7624
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6578; -- Come back after sorting your inventory. ITEM_OBTAINED = 6581; -- Obtained: <<<Unknown Parameter (Type: 80) 1>>><<<Possible Special Code: 01>>><<<Possible Special Code: 05>>> GIL_OBTAINED = 6582;...
gpl-3.0
zhouxiaoxiaoxujian/skynet
lualib/snax/gateserver.lua
16
3320
local skynet = require "skynet" local netpack = require "skynet.netpack" local socketdriver = require "skynet.socketdriver" local gateserver = {} local socket -- listen socket local queue -- message queue local maxclient -- max client local client_number = 0 local CMD = setmetatable({}, { __gc = function() netpack.c...
mit
FFXIOrgins/FFXIOrgins
scripts/zones/Xarcabard/npcs/qm1.lua
9
1407
----------------------------------- -- Area: Xarcabard -- NPC: qm1 (???) -- Involved in Quests: The Three Magi (for Boreal Hound) -- @pos -331 -29 -49 112 ----------------------------------- package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil; ----------------------------------- require("scripts/globals/...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Northern_San_dOria/npcs/Miageau.lua
17
2458
----------------------------------- -- Area: Northern San d'Oria -- NPC: Miageau -- Type: Quest Giver NPC -- @zone: 231 -- @pos 115 0 108 -- -- Starts and Finishes: Waters of Cheval ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ---------------------...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Halvung/npcs/Mining_Point.lua
6
1076
----------------------------------- -- Area: Halvung -- NPC: Mining Point ----------------------------------- package.loaded["scripts/zones/Halvung/TextIDs"] = nil; ------------------------------------- require("scripts/globals/mining"); require("scripts/zones/Halvung/TextIDs"); -------------------------...
gpl-3.0
JulianVolodia/awesome
spec/wibox/widget/textbox_spec.lua
3
3968
--------------------------------------------------------------------------- -- @author Uli Schlachter -- @copyright 2015 Uli Schlachter --------------------------------------------------------------------------- -- Grml... _G.awesome = { xrdb_get_value = function(a, b) if a ~= "" then error() end i...
gpl-2.0
FFXIOrgins/FFXIOrgins
scripts/globals/items/naval_rice_ball.lua
14
1813
----------------------------------------- -- ID: 4605 -- Item: naval_rice_ball -- Food Effect: 30Min, All Races ----------------------------------------- -- HP +26, Dex +3, Vit +4, hHP +2 (Atk +40, Def +40, Arcana Killer)*enhances rice ball effect ----------------------------------------- require("scripts/glob...
gpl-3.0
Gael-de-Sailly/minetest-minetestforfun-server
mods/sea/noairblocks/init.lua
8
7236
-- NODES minetest.register_node("noairblocks:water_flowingx", { description = "Flowing Waterx", inventory_image = minetest.inventorycube("default_water.png"), drawtype = "flowingliquid", tiles = {"default_water.png"}, special_tiles = { { image="default_water_flowing_animated.png", backface_culling=false, ...
unlicense
sjznxd/luci-0.11-aa
applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-app.lua
137
15546
cbimap = Map("asterisk", "asterisk", "") module = cbimap:section(TypedSection, "module", "Modules", "") module.anonymous = true app_alarmreceiver = module:option(ListValue, "app_alarmreceiver", "Alarm Receiver Application", "") app_alarmreceiver:value("yes", "Load") app_alarmreceiver:value("no", "Do Not Load") app_al...
apache-2.0
FFXIOrgins/FFXIOrgins
scripts/zones/Mhaura/npcs/Graine.lua
34
1595
----------------------------------- -- Area: Mhaura -- NPC: Graine -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Mhaura/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Mhaura/TextIDs"); require("scripts/globals/shop"); ---------------...
gpl-3.0
hb9cwp/snabbswitch
lib/ljsyscall/syscall/bsd/types.lua
24
9241
-- BSD shared types local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string = require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string local function init(c, types) local abi ...
apache-2.0
dargosch/home_center_2_addons
Utilities/time.lua
1
5716
--- Functions that manages the defined time of day. -- @section timeofday --- An example time of day scheme that may be used as a default -- or altered to fit the indivdual's need. DEFAULT_TIME_OF_DAY = { {["days"]={2,3,4,5,6},["time"]="06:30",["tod"]="Morning"}, {["days"]={1,7},["time"]="06:30",["tod"]="Morning"},...
gpl-3.0
arman022/spamer-
bot/utils.lua
473
24167
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")() JSON = (loadfile "./libs/...
gpl-2.0
aosee1h1/AOSEE_2H2
plugin/textphoto.lua
16
1343
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ text photo: تحويل الصورة الى ملصق ▀▄ ▄▀ ▀▄...
gpl-2.0
daofeng2015/luci
applications/luci-app-ltqtapi/luasrc/controller/ltqtapi.lua
73
1071
-- Copyright 2019 John Crispin <blogic@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.ltqtapi", package.seeall) function index() if not nixio.fs.access("/etc/config/telephony") then return end page = node("admin", "telephony") page.target = firstchild() page.title...
apache-2.0
FFXIOrgins/FFXIOrgins
scripts/globals/abilities/pets/lightning_breath.lua
6
1265
--------------------------------------------------- -- Lightning Breath --------------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); require("/scripts/globals/monstertpmoves"); --------------------------------------------------- function OnAb...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/West_Sarutabaruta/npcs/Harvesting_Point.lua
6
1123
----------------------------------- -- Area: West Sarutabaruta -- NPC: Harvesting Point ----------------------------------- package.loaded["scripts/zones/West_Sarutabaruta/TextIDs"] = nil; ------------------------------------- require("scripts/globals/harvesting"); require("scripts/zones/West_Sarutabaruta/T...
gpl-3.0
fartoverflow/naev
dat/ai/soromid.lua
4
2365
include("dat/ai/tpl/generic.lua") include("dat/ai/personality/patrol.lua") -- Settings mem.armour_run = 40 mem.armour_return = 70 mem.aggressive = true function create () -- Not too many credits. ai.setcredits( rnd.rnd(ai.pilot():ship():price()/300, ai.pilot():ship():price()/70) ) -- Get refuel chance ...
gpl-3.0
punisherbot/test
plugins/img_google.lua
660
3196
do local mime = require("mime") local google_config = load_from_file('data/google.lua') local cache = {} --[[ local function send_request(url) local t = {} local options = { url = url, sink = ltn12.sink.table(t), method = "GET" } local a, code, headers, status = http.request(options) return tabl...
gpl-2.0
FFXIOrgins/FFXIOrgins
scripts/zones/Xarcabard/npcs/Luck_Rune.lua
34
1062
----------------------------------- -- Area: Xarcabard -- NPC: Luck Rune -- Involved in Quest: Mhaura Fortune -- @pos 576.117 -0.164 -16.935 112 ----------------------------------- package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil; ------------------------------------- require("scripts/zones/Xarcab...
gpl-3.0
lytedev/worldspark
conf.lua
1
4641
--[[ File: conf.lua Author: Daniel "lytedev" Flanagan Website: http://dmf.me Sets the default configuration values for the LOVE2D framework. ]]-- function love.run() math.randomseed(os.time()) if love.load then love.load(arg) end local dt = 0 -- Main loop time. while tr...
apache-2.0
shahabsaf1/DaLTon-bot-test2
plugins/domaintools.lua
359
1494
local ltn12 = require "ltn12" local https = require "ssl.https" -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local mashape = load_from_file('data/mashape.lua', { api_key = '' }) local function check(name) local api = "https://domainsearch.p.mashape.com/index.php?"...
gpl-2.0
FFXIOrgins/FFXIOrgins
scripts/zones/Yuhtunga_Jungle/npcs/Logging_Point.lua
6
1105
----------------------------------- -- Area: Yuhtunga Jungle -- NPC: Logging Point ----------------------------------- package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil; ------------------------------------- require("scripts/globals/logging"); require("scripts/zones/Yuhtunga_Jungle/TextIDs"); ...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/items/piscators_skewer.lua
36
1339
----------------------------------------- -- ID: 5983 -- Item: Piscator's Skewer -- Food Effect: 60 Mins, All Races ----------------------------------------- -- Dexterity 3 -- Vitality 4 -- Defense % 26 Cap 155 ----------------------------------------- require("scripts/globals/status"); ------------------------------...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/items/ojo_rice_ball.lua
15
1749
----------------------------------------- -- ID: 5929 -- Item: Ojo Rice Ball -- Food Effect: 60 Mins, All Races ----------------------------------------- -- HP 50 -- Dexterity 5 -- Vitality 5 -- Character 5 -- Effect with enhancing equipment -- Attack +60 -- Defense +40 -- Triple Attack 2 ------------------------------...
gpl-3.0
TRIEXTEAM/TaylortTG
plugins/download_media.lua
12
2704
local function callback(extra, success, result) -- Calback for load_photo in line 17 if success then print('File downloaded to:', result) else print('Error downloading: '..extra) end end local function run(msg, matches) if not is_momod(msg) then -- Will download images only from mods,owner and admins ...
gpl-2.0
msburgess3200/PERP
gamemodes/perp/gamemode/sh_modules/system_payday.lua
1
4280
if SERVER then local classToUpkeep ={} classToUpkeep[TEAM_POLICE] = GM.UpkeepCost_PoliceCar classToUpkeep[TEAM_FIREMAN] = GM.UpkeepCost_Firetruck classToUpkeep[TEAM_SWAT] = GM.UpkeepCost_SWATVan classToUpkeep[TEAM_MEDIC] = GM.UpkeepCost_Ambulance classToUpkeep[TEAM_SECRET_SERVICE] = GM.UpkeepCost_Stretch loca...
mit
sadegh1996/sword_antispam
plugins/time.lua
771
2865
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
MOSAVI17/Gbot
plugins/time.lua
771
2865
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
mahdikord/mahdibaryaji
plugins/time.lua
771
2865
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
Arashbrsh/copyuz
plugins/time.lua
771
2865
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
TW1STaL1CKY/pac3
lua/pac3/core/client/parts/halo.lua
2
1517
local Color = Color local Vector = Vector local PART = {} PART.ClassName = "halo" PART.NonPhysical = true PART.ThinkTime = 0 PART.Group = {'effects', 'model'} PART.Icon = 'icon16/shading.png' pac.StartStorableVars() pac.SetPropertyGroup() pac.GetSet(PART, "BlurX", 2) pac.GetSet(PART, "BlurY", 2) pac.GetSet(PA...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/spells/bluemagic/hydro_shot.lua
6
1066
require("scripts/globals/magic"); require("scripts/globals/status"); require("scripts/globals/bluemagic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function OnMagicCastingCheck(caster,target,spell) return 0; end; function onSpellCast(caster,target,sp...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Yuhtunga_Jungle/Zone.lua
2
2111
----------------------------------- -- -- Zone: Yuhtunga_Jungle (123) -- ----------------------------------- package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Yuhtunga_Jungle/TextIDs"); require("scripts/globals/icanheararainbow"); ----...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Windurst_Woods/npcs/Anillah.lua
12
1765
----------------------------------- -- Area: Windurst Woods -- NPC: Anillah -- Type: Clothcraft Image Support -- @pos -34.800 -2.25 -119.950 241 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Windurst_Woo...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/weaponskills/seraph_blade.lua
6
1226
----------------------------------- -- Seraph Blade -- Sword weapon skill -- Skill Level: 125 -- Deals light elemental damage to enemy. Damage varies with TP. -- Ignores shadows. -- Aligned with the Soil Gorget. -- Aligned with the Soil Belt. -- Element: Light -- Modifiers: STR:30% ; MND:30% -- 100%...
gpl-3.0
msburgess3200/PERP
gamemodes/perp/gamemode/vehicles/lincoln.lua
1
2378
VEHICLE = {}; VEHICLE.ID = 'g'; VEHICLE.FID = '7'; VEHICLE.Name = "Lincoln MK4"; VEHICLE.Make = "Ford Lincoln"; VEHICLE.Model = "Lincoln MK4"; VEHICLE.Script = "lincoln"; VEHICLE.Cost = 65000; VEHICLE.PaintJobCost = 5000; VEHICLE.DF = true; VEHICLE.CustomBodyGroup = nil; VEHICLE....
mit
FFXIOrgins/FFXIOrgins
scripts/zones/Northern_San_dOria/npcs/Antonian.lua
4
2149
----------------------------------- -- Area: Northern San d'Oria -- NPC: Antonian -- Regional Marchant NPC -- Only sells when San d'Oria controlls Aragoneu. ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("script...
gpl-3.0
caidongyun/nginx-openresty-windows
lua-resty-core-0.0.3/lib/resty/core/ctx.lua
1
1956
-- Copyright (C) 2013 Yichun Zhang (agentzh) local ffi = require 'ffi' local debug = require 'debug' local base = require "resty.core.base" local misc = require "resty.core.misc" local register_getter = misc.register_ngx_magic_key_getter local register_setter = misc.register_ngx_magic_key_setter local re...
bsd-2-clause
FFXIOrgins/FFXIOrgins
scripts/zones/Port_Bastok/npcs/Rosswald.lua
36
1683
----------------------------------- -- Area: Port Bastok -- NPC: Rosswald -- Only sells when Bastok controlls Zulkheim Region -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loaded["scripts/zones/Port_Bastok...
gpl-3.0
m2mselect/owrt
feeds/luci/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6to4.lua
72
1073
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local ipaddr, defaultroute, metric, ttl, mtu ipaddr = section:taboption("general", Value, "ipaddr", translate("Local IPv4 address"), translate("Leave empty to use the current W...
gpl-2.0
aqasaeed/hacked
plugins/stats.lua
866
4001
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
daofeng2015/luci
protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6to4.lua
72
1073
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local ipaddr, defaultroute, metric, ttl, mtu ipaddr = section:taboption("general", Value, "ipaddr", translate("Local IPv4 address"), translate("Leave empty to use the current W...
apache-2.0
Ali-2h/lwl
plugins/Location.lua
185
1565
-- 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
JulianVolodia/awesome
lib/naughty/dbus.lua
5
9979
--------------------------------------------------------------------------- -- DBUS/Notification support -- Notify -- -- @author koniu &lt;gkusnierz@gmail.com&gt; -- @copyright 2008 koniu -- @release @AWESOME_VERSION@ -- @module naughty.dbus --------------------------------------------------------------------------- a...
gpl-2.0
daofeng2015/luci
libs/luci-lib-nixio/docsrc/nixio.lua
151
15824
--- General POSIX IO library. module "nixio" --- Look up a hostname and service via DNS. -- @class function -- @name nixio.getaddrinfo -- @param host hostname to lookup (optional) -- @param family address family [<strong>"any"</strong>, "inet", "inet6"] -- @param service service name or port (optional) -- @return ...
apache-2.0
PioneerMakeTeam/Cretaceous
wicker/paradigms/functional/iterator.lua
5
5528
--[[ -- Iterator tools. --]] --[[ Copyright (C) 2013 simplex This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is...
mit
shahabsaf1/DaLTon-bot-test2
plugins/moderation.lua
336
9979
do local function check_member(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then local username = v.username data[tostring(m...
gpl-2.0
joshimoo/Algorithm-Implementations
Golden_Ratio_Algorithms/Lua/Yonaba/golden_ratio_test.lua
26
1059
-- Tests for golden_ratio.lua local GN = require 'golden_ratio' 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 end ...
mit
sjznxd/luci-0.11-aa
libs/core/luasrc/model/firewall.lua
84
11156
--[[ LuCI - Firewall model Copyright 2009 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applica...
apache-2.0
Phoib/OpenRA
mods/common/lua/map.lua
3
3191
Map = { } Map.GetFacing = function(vec, currentFacing) return Internal.GetFacing(vec, currentFacing) end Map.GetRandomCell = function() return Internal.GetRandomCell() end Map.GetRandomEdgeCell = function() return Internal.GetRandomEdgeCell() end Map.IsNamedActor = function(actor) return Internal.IsNamedActor(a...
gpl-3.0
fartoverflow/naev
dat/gui/brushed.lua
5
24499
--[[ The new "brushed" UI. --]] function create() --Get Player pp = player.pilot() pp = player.pilot() pfact = pp:faction() pname = player.name() pship = pp:ship() --Get sizes screen_w, screen_h = gfx.dim() deffont_h = gfx.fontSize() smallfont_h = gfx.fontSize(true) --Co...
gpl-3.0
m2mselect/owrt
feeds/luci/applications/luci-app-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo.lua
141
1038
--[[ smap_devinfo - SIP Device Information (c) 2009 Daniel Dickinson Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- require("luci.i18n") re...
gpl-2.0
daofeng2015/luci
modules/luci-mod-admin-mini/luasrc/model/cbi/mini/system.lua
78
2244
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. require("luci.sys") require("luci.sys.zoneinfo") require("luci.tools.webadmin") require("luci.util") m = Map("system", translate("System"), translate("Here you can configure the basic aspects of your device li...
apache-2.0
gitfancode/skynet
lualib/snax.lua
59
3683
local skynet = require "skynet" local snax_interface = require "snax.interface" local snax = {} local typeclass = {} local interface_g = skynet.getenv("snax_interface_g") local G = interface_g and require (interface_g) or { require = function() end } interface_g = nil skynet.register_protocol { name = "snax", id =...
mit
daofeng2015/luci
modules/luci-base/luasrc/ltn12.lua
84
8954
--[[ LuaSocket 2.0.2 license 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, me...
apache-2.0
dtorop/darktable
tools/lua_doc/core.lua
14
22677
local table = require "table" local dt = require "darktable" local debug = require "debug" local dump = require("darktable.debug").dump local M={} local meta_node = {__index = {}} ---------------------------------------- -- INTERNAL : PARSING OF SOURCE TREE -- ---------------------------------------- local create_nod...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/spells/bluemagic/head_butt.lua
6
1183
require("scripts/globals/magic"); require("scripts/globals/status"); require("scripts/globals/bluemagic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function OnMagicCastingCheck(caster,target,spell) return 0; end; function onSpellCast(caster,target,sp...
gpl-3.0
subzrk/BadRotations
Libs/DiesalGUI-1.0/Objects/Accordian.lua
6
2763
local DiesalGUI = LibStub("DiesalGUI-1.0") -- ~~| Libraries |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ local DiesalTools = LibStub("DiesalTools-1.0") local DiesalStyle = LibStub("DiesalStyle-1.0") -- | Lua Upvalues |~~~~...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Cloister_of_Gales/mobs/Ogmios.lua
4
1270
----------------------------------- -- Area: Cloister of Gales -- NPC: Ogmios -- Involved in Quest: Carbuncle Debacle ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); ----------------------------------- -- OnMobSpawn Action --------------------------------...
gpl-3.0
mahdikord/mahdibaryaji
plugins/id.lua
226
4260
local function user_print_name(user) if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name..' ' end if user.lastname then text = text..user.last_name end return text end local function returnids(cb_extra, success, result) local re...
gpl-2.0
m2mselect/owrt
feeds/luci/modules/luci-base/luasrc/sys/zoneinfo/tzdata.lua
10
17279
-- Licensed to the public under the Apache License 2.0. module "luci.sys.zoneinfo.tzdata" TZ = { { 'Africa/Abidjan', 'GMT0' }, { 'Africa/Accra', 'GMT0' }, { 'Africa/Addis Ababa', 'EAT-3' }, { 'Africa/Algiers', 'CET-1' }, { 'Africa/Asmara', 'EAT-3' }, { 'Africa/Bamako', 'GMT0' }, { 'Africa/Bangui', 'WAT-1' }, ...
gpl-2.0
m2mselect/owrt
feeds/routing/bird-openwrt/bird6-openwrt/src/model/gen_proto.lua
7
6429
--[[ Copyright (C) 2014 - Eloi Carbó Solé (GSoC2014) BGP/Bird integration with OpenWRT and QMP This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) a...
gpl-2.0
Distroformo/SSO-English-patch
script/i18n/init.lua
1
1148
------------------------ -- 客户端字符串资源 ------------------------ local function load_string_table(file) dofile_show_err("script/i18n/" .. file .. ".lua") end -- 服务器错误码字符 load_string_table "server_error" -- 客户端相关字符 load_string_table "url" -- 载入其它字符串表 module("STRING_TABLE", package.seeall) load_string_t...
gpl-3.0
KnightTeam/Knight
bot/bot.lua
1
13697
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") local f = assert(io.popen('/usr/bin/git describe --tags', 'r')) VERSION = assert(f:read('*a')) f:close() -- This function is ...
agpl-3.0
togolwb/skynet
test/testredis2.lua
82
1043
local skynet = require "skynet" local redis = require "redis" local db function add1(key, count) local t = {} for i = 1, count do t[2*i -1] = "key" ..i t[2*i] = "value" .. i end db:hmset(key, table.unpack(t)) end function add2(key, count) local t = {} for i = 1, count do ...
mit
ho3einkj/boti
plugins/instagram.lua
1
3962
--[[ # # # # ]] local access_token = "3084249803.280d5d7.999310365c8248f8948ee0f6929c2f02" -- your api key local function instagramUser(msg, query) local receiver = get_receiver(msg) local url = "https://api.instagram.com/v1/users/search?q="..URL.escape(query).."&access_token="..access_token local...
gpl-2.0
ho3einkj/boti
plugins/location.lua
93
1704
-- 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
Gael-de-Sailly/minetest-minetestforfun-server
mods/mobs/creeper.lua
7
1502
-- Creeper by Davedevils (from his subgame MineClone) mobs:register_mob("mobs:creeper", { -- animal, monster, npc, barbarian type = "monster", -- agressive, does 21 damage to player when explode passive = false, attack_type = "explode", pathfinding = false, damage = 21, -- health & armor hp_min = 30, hp_max ...
unlicense
subzrk/BadRotations
System/Libs/LibRangeCheck-2.0/LibStub-1.0/tests/test2.lua
100
1112
debugstack = debug.traceback strmatch = string.match loadfile("../LibStub.lua")() for major, library in LibStub:IterateLibraries() do -- check that MyLib doesn't exist yet, by iterating through all the libraries assert(major ~= "MyLib") end assert(not LibStub:GetLibrary("MyLib", true)) -- check that MyLib doesn't ...
gpl-3.0
gadLinux/thrift
test/lua/test_basic_client.lua
30
5926
-- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); you may n...
apache-2.0
fartoverflow/naev
dat/snd/music.lua
10
6708
--[[ -- music will get called with a string parameter indicating status -- valid parameters: -- load - game is loading -- land - player landed -- takeoff - player took off -- combat - player just got a hostile onscreen -- idle - current playing music ran out ]]-- last = "idle" -- Faction-specific songs...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Horlais_Peak/bcnms/hostile_herbivores.lua
6
1701
----------------------------------- -- Area: Horlias peak -- Name: Hostile Herbivores -- BCNM50 ----------------------------------- package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Horlais_Peak/TextIDs"); ----------------------------------- -- EXAM...
gpl-3.0
xopxe/rong
lib/queue_set.lua
1
1294
local QueueSet = {} function QueueSet.new () local inventory = {} return setmetatable( {first = 0, last = -1, inventory=inventory}, {__index = QueueSet} ) end function QueueSet.pushleft (list, value) if list.inventory[value] then return end local first = list.first - 1 list.first = first ...
mit
Aethaeryn/wesnoth-umc
Aethaeryns_Mod/lua/inventory.lua
1
7211
#define MOD_LUA_INVENTORY << containers = {} mod_inventory = {} game_object = {} local SELL_PRICE_MODIFIER = 0.8 local SMALL_HEALING_QUANTITY = 6 local NORMAL_HEALING_QUANTITY = 14 function mod_inventory.transfer_item(unit, x, y, name, quantity) if quantity <= unit.variables[name] then local target_unit = we...
gpl-2.0
dcelasun/thrift
lib/lua/TBinaryProtocol.lua
90
6141
-- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); you ma...
apache-2.0
FFXIOrgins/FFXIOrgins
scripts/globals/dynamis.lua
4
50201
require("scripts/globals/status"); require("scripts/globals/keyitems"); ----------------------------------- -- Dynamis-Bastok ----------------------------------- -- 1: BST Vanguard Beasttender + Vanguard's Scorpion -- 2: WHM Vanguard Constable -- 3: PLD Vanguard Defender -- 4: DRG Vanguard Drakekeeper +...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Cloister_of_Frost/npcs/Ice_Protocrystal.lua
4
1495
----------------------------------- -- Area: Cloister of Frost -- NPC: Ice Protocrystal -- Involved in Quests: Trial by Ice, Trial Size Trial by Ice -- @pos 558 0 596 203 ----------------------------------- package.loaded["scripts/zones/Cloister_of_Frost/TextIDs"] = nil; ------------------------------------- ...
gpl-3.0