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
Radseq/otclient
modules/game_containers/containers.lua
5
5255
function init() g_ui.importStyle('container') connect(Container, { onOpen = onContainerOpen, onClose = onContainerClose, onSizeChange = onContainerChangeSize, onUpdateItem = onContainerUpdateItem }) connect(Game, { onGameEnd = clean() }) rel...
mit
b03605079/darkstar
scripts/zones/Port_Windurst/npcs/Uli_Pehkowa.lua
36
1578
----------------------------------- -- Area: Port Windurst -- NPC: Uli Pehkowa -- Standard Merchant NPC -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; require("scripts/zones/Port_Windurst/Te...
gpl-3.0
miralireza2/gpf23
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
imashkan/telefire
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
morcmarc/blackstar
vendor/light_world/main.lua
2
9732
-- -- EXF: Example Framework -- -- This should make examples easier and more enjoyable to use. -- All examples in one application! Yaay! -- -- Updated by Dresenpai require "lib/postshader" local LightWorld = require "lib" local ProFi = require 'examples.vendor.ProFi' exf = {} exf.current = nil exf.available = {} fun...
mit
b03605079/darkstar
scripts/globals/items/loaf_of_white_bread.lua
35
1278
----------------------------------------- -- ID: 4356 -- Item: loaf_of_white_bread -- Food Effect: 30Min, All Races ----------------------------------------- -- Health 16 -- Dexterity -1 -- Vitality 3 ----------------------------------------- require("scripts/globals/status"); ----------------------------...
gpl-3.0
b03605079/darkstar
scripts/globals/abilities/pets/glittering_ruby.lua
6
1111
--------------------------------------------------- -- Glittering Ruby --------------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); require("/scripts/globals/monstertpmoves"); --------------------------------------------------- function onAbi...
gpl-3.0
arcemu/arcemu
src/scripts/lua/Stable Scripts/Azeroth/Karazhan/BOSS_Karazhan_Curator.lua
30
1319
function Curator_Evocation(Unit, event, miscunit, misc) if Unit:GetManaPct() < 1 and Didthat == 0 then print "Curator Evocation" Unit:FullCastSpell(30254) Didthat = 1 else end end function Curator_Enrage(Unit, event, miscunit, misc) if Unit:GetHealthPct() < 15 and Didthat == 1 then print "Curator_Enrage" ...
agpl-3.0
geoffleyland/rima
lua/rima/solvers/clp.lua
1
1028
-- Copyright (c) 2009-2011 Incremental IP Limited -- see LICENSE for license information local assert, ipairs, pcall = assert, ipairs, pcall local linear = require("rima.solvers.linear") local status, core = pcall(require, "rima_clp_core") module(...) --------------------------------------------------------------...
mit
b03605079/darkstar
scripts/zones/West_Ronfaure/npcs/Stone_Monument.lua
32
1287
----------------------------------- -- Area: West Ronfaure -- NPC: Stone Monument -- Involved in quest "An Explorer's Footsteps" -- @pos -183.734 -12.678 -395.722 100 ----------------------------------- package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil; ----------------------------------- requi...
gpl-3.0
imashkan/telefire
plugins/rae.lua
616
1312
do function getDulcinea( text ) -- Powered by https://github.com/javierhonduco/dulcinea local api = "http://dulcinea.herokuapp.com/api/?query=" local query_url = api..text local b, code = http.request(query_url) if code ~= 200 then return "Error: HTTP Connection" end dulcinea = json:decode(b) ...
gpl-2.0
stars2014/quick-ng
cocos/scripting/lua-bindings/script/cocostudio/DeprecatedCocoStudioFunc.lua
61
3456
if nil == ccs then return end --tip local function deprecatedTip(old_name,new_name) print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********") end --functions of GUIReader will be deprecated begin local GUIReaderDeprecated = { } function GUIReaderDeprecated.shareRe...
mit
felipeprov/premake-core
src/base/os.lua
1
12982
-- -- os.lua -- Additions to the OS namespace. -- Copyright (c) 2002-2014 Jason Perkins and the Premake project -- --- -- Extend Lua's built-in os.execute() with token expansion and -- path normalization. -- premake.override(os, "execute", function(base, cmd) cmd = path.normalize(cmd) cmd = os.tra...
bsd-3-clause
bakpakin/heroku-buildpack-moonmint
heroku/share/lua/5.1/moonmint/fs.lua
2
11552
--[[ Copyright (c) 2016 Calvin Rose 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, su...
mit
Aquanim/Zero-K
LuaRules/Utilities/GetUnitIsBuilding.lua
7
3290
-- $Id:$ ------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- -- -- Author: jK @2010 -- License: GPLv2 and later -- -------------------------------------------------------------------------------------...
gpl-2.0
WoWZon/GuildManager
libs/AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua
4
56631
--- AceConfigDialog-3.0 generates AceGUI-3.0 based windows based on option tables. -- @class file -- @name AceConfigDialog-3.0 -- @release $Id: AceConfigDialog-3.0.lua 1089 2013-09-13 14:32:35Z nevcairiel $ local LibStub = LibStub local MAJOR, MINOR = "AceConfigDialog-3.0", 58 local AceConfigDialog, oldminor = LibStub...
gpl-2.0
errorscode/code
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
b03605079/darkstar
scripts/globals/items/plate_of_witch_risotto.lua
35
1537
----------------------------------------- -- ID: 4330 -- Item: witch_risotto -- Food Effect: 4hours, All Races ----------------------------------------- -- Magic Points 35 -- Strength -1 -- Vitality 3 -- Mind 3 -- MP Recovered While Healing 2 -- Enmity -1 ----------------------------------------- require(...
gpl-3.0
morcmarc/blackstar
vendor/sti/map.lua
1
35935
--- Map object -- @module map local path = (...):gsub('%.[^%.]+$', '') .. "." local pluginPath = string.gsub(path, "[.]", "/") .. "plugins/" local Map = {} -- https://github.com/stevedonovan/Penlight/blob/master/lua/pl/path.lua#L286 local function formatPath(path) local np_gen1,np_gen2 = '[^SEP]+SEP%.%...
mit
FlightControl-Master/MOOSE_MISSIONS
AID - AI Dispatching/AID-A2G - AI A2G Dispatching/AID-A2G-902 - A fun A2G Mission/AID-A2G-902 - A fun A2G Mission.lua
1
2379
Recce_Blue = SET_GROUP:New():FilterPrefixes( "RECCE" ):FilterStart() Detection_Blue = DETECTION_AREAS:New( Recce_Blue, 3000 ) A2G_Blue = AI_A2G_DISPATCHER:New(Detection_Blue) A2G_Blue:SetTacticalDisplay( true ) -- set on using true as a parameter A2G_Blue:AddDefenseCoordinate( "Command", GROUP:FindByName(...
gpl-3.0
Aquanim/Zero-K
effects/yellow_lightning.lua
7
18483
-- yellow_lightning_bomb -- yellow_lightning_bluebolts -- yellow_lightning_groundflash -- yellow_lightning_bomb_yellowbolts -- yellow_lightning_muzzle -- yellow_lightning_yellowbolts -- yellow_lightning_bomb_bluebolts -- yellow_lightningplosion -- yellow_lightning_stormbolt local circleString = "r%.5f y10 -1 x10x10 y1...
gpl-2.0
felipeprov/premake-core
src/actions/vstudio/vs2005.lua
1
2721
-- -- actions/vstudio/vs2005.lua -- Add support for the Visual Studio 2005 project formats. -- Copyright (c) 2008-2015 Jason Perkins and the Premake project -- premake.vstudio.vs2005 = {} local p = premake local vs2005 = p.vstudio.vs2005 local vstudio = p.vstudio --- -- Register a command-line action for Visua...
bsd-3-clause
stars2014/quick-ng
quick/framework/cocos2dx/ActionEx.lua
20
7961
local cca = {} _G.cca = cca -- make it global function cc.Action:addTo(node) node:runAction(self) return self end function cc.Node:buildAction(...) local builder = cca.builder(...) builder.target = self return builder end -- instant function cca.show() return cc.Show:create() end function cca.hid...
mit
Sakura-Winkey/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
Arashbrsh/niko
plugins/id.lua
355
2795
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, resu...
gpl-2.0
b03605079/darkstar
scripts/globals/weaponskills/last_stand.lua
30
1763
----------------------------------- -- Skill Level: 357 -- Description: Attacks once or twice, depending on remaining ammunition. Damage dealt varies with TP. -- If the first shot of the weapon skill does enough damage to defeat the target, the second shot will not be used. -- To obtain Last Stand, the quest Martia...
gpl-3.0
kostik1337/Urho3D
Source/ThirdParty/toluapp/src/bin/lua/custom.lua
25
1388
function extract_code(fn,s) local code = "" if fn then code = '\n$#include "'..fn..'"\n' end s= "\n" .. s .. "\n" -- add blank lines as sentinels local _,e,c,t = strfind(s, "\n([^\n]-)SCRIPT_([%w_]*)[^\n]*\n") while e do t = strlower(t) if t == "bind_begin" then _,e,c = strfind(s,"(.-)\n[^\n]...
mit
Aquanim/Zero-K
LuaUI/Widgets/gui_epicmenu.lua
5
104827
function widget:GetInfo() return { name = "EPIC Menu", desc = "v1.439 Extremely Powerful Ingame Chili Menu.", author = "CarRepairer", date = "2009-06-02", --2014-05-3 license = "GNU GPL, v2 or later", layer = -100001, handler = true, enabled = true, alwaysStart = true, } ...
gpl-2.0
Sakura-Winkey/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...
apache-2.0
Aquanim/Zero-K
LuaUI/Widgets/dbg_ceg_spawner.lua
8
3055
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "CEG Spawner", desc = "v0.031 Spawn CEGs", author = "CarRepairer", date = "2010...
gpl-2.0
immibis/wiremod
lua/entities/gmod_wire_textreceiver.lua
10
3554
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Text Receiver" ENT.WireDebugName = "Text Receiver" if CLIENT then return end -- No more client local receivers = {} local function RegisterReceiver( ent ) receivers[ent] = true end local function RemoveReceiver( ent ) receivers[ent]...
apache-2.0
stevedonovan/Penlight
tests/test-text.lua
3
3573
local T = require 'pl.text' local utils = require 'pl.utils' local Template = T.Template local asserteq = require 'pl.test'.asserteq local OrderedMap = require 'pl.OrderedMap' local t1 = Template [[ while true do $contents end ]] assert(t1:substitute {contents = 'print "hello"'},[[ while true do print "hello"...
mit
b03605079/darkstar
scripts/zones/Apollyon/mobs/Apollyon_Scavenger.lua
17
1403
----------------------------------- -- Area: Apollyon NW -- NPC: Kaiser Behemoth ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Apollyon/TextIDs"); ----------------------------------- -- onMobSpawn Act...
gpl-3.0
arychen/GlobalCall
feeds/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...
gpl-2.0
hishamhm/dit
scripts/luacheck/core_utils.lua
5
2886
local core_utils = {} -- Calls callback with line, stack_set, index, item, ... for each item reachable from starting item. -- `stack_set` is a set of indices of items in current propogation path from root, excluding current item. -- Callback can return true to stop walking from current item. function core_utils.walk_l...
gpl-2.0
b03605079/darkstar
scripts/zones/Sacrificial_Chamber/npcs/_4j2.lua
12
1341
----------------------------------- -- Area: Sacrificial Chamber -- NPC: Mahogany Door -- @pos -260 -33 274 163 ------------------------------------- package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil; ------------------------------------- require("scripts/globals/bcnm"); require("scripts/globals/missi...
gpl-3.0
witgo/nn
Euclidean.lua
24
5711
local Euclidean, parent = torch.class('nn.Euclidean', 'nn.Module') function Euclidean:__init(inputSize,outputSize) parent.__init(self) self.weight = torch.Tensor(inputSize,outputSize) self.gradWeight = torch.Tensor(inputSize,outputSize) -- state self.gradInput:resize(inputSize) self.output:resize(o...
bsd-3-clause
Aquanim/Zero-K
scripts/turretimpulse.lua
6
2456
include "constants.lua" local WOBBLE_DIST = 2 local WOBBLE_SPEED = 2 local TURRET_AIM_SPEED = math.rad(300) local TURRET_SPIN_SPEED = math.rad(60) local RING_SPIN_SPEED = -1 * math.rad(120) local CRYSTAL_TURN_SPEED = math.rad(150) -- pieces -- local gp = piece('gp') local base = piece('base') local turret = piece('tu...
gpl-2.0
dyrock/trafficserver
plugins/lua/example/test_intercept.lua
17
1401
-- 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"); y...
apache-2.0
Anubhav652/GTW-RPG
[traffic]/npc_hlc/tasks_c.lua
3
4533
performTask = {} function performTask.walkToPos(npc,task) if isPedInVehicle(npc) then return true end local destx,desty,destz,dest_dist = task[2],task[3],task[4],task[5] local x,y = getElementPosition(npc) local distx,disty = destx-x,desty-y local dist = distx*distx+disty*disty local dest_dist = task[5] if dist...
gpl-3.0
jerryjliu/dcgan_conditioned
data/donkey_lsun.lua
2
4667
--[[ Copyright (c) 2015-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. ]]-- requi...
bsd-3-clause
Aquanim/Zero-K
LuaUI/Widgets/unit_blobshadow.lua
6
7211
-- $Id: unit_blobshadow.lua 3171 2008-11-06 09:06:29Z det $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- author: jK -- -- Copyright (C) 2007,2009. -- Licensed under the terms of the GNU GPL, v2...
gpl-2.0
b03605079/darkstar
scripts/zones/Attohwa_Chasm/npcs/Excavation_Point.lua
29
1108
----------------------------------- -- Area: Attohwa Chasm -- NPC: Excavation Point ----------------------------------- package.loaded["scripts/zones/Attohwa_Chasm/TextIDs"] = nil; ------------------------------------- require("scripts/globals/excavation"); require("scripts/zones/Attohwa_Chasm/TextIDs"); ...
gpl-3.0
arcemu/arcemu
src/scripts/lua/Stable Scripts/Outland/Arcatraz/BOSS_Arcatraz_Drakonaar.lua
30
1349
function Drakonaar_Red(Unit, event, miscunit, misc) print "Drakonaar Red" Unit:FullCastSpellOnTarget(14264,Unit:GetClosestPlayer()) Unit:SendChatMessage(11, 0, "This spell will kill you...") end function Drakonaar_Blue(Unit, event, miscunit, misc) print "Drakonaar Blue" Unit:FullCastSpellOnTarget(14261,Unit:GetCl...
agpl-3.0
b03605079/darkstar
scripts/globals/items/bowl_of_shimmy_soup.lua
36
1323
----------------------------------------- -- 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
Aquanim/Zero-K
LuaRules/Gadgets/unit_bomber_command.lua
5
29803
------------------------------------------------------------------------------ -- HOW IT WORKS: -- After firing, set ammo to 0 and look for a pad -- Find first combat order and queue rearm order before it -- If bomber idle and out of ammo (UnitIdle), give it rearm order -- When bomber is in range of airpad (GameFrame...
gpl-2.0
b03605079/darkstar
scripts/zones/Jade_Sepulcher/Zone.lua
8
1287
----------------------------------- -- -- Zone: Jade_Sepulcher (67) -- ----------------------------------- package.loaded["scripts/zones/Jade_Sepulcher/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Jade_Sepulcher/TextIDs"); ----------------------------------- -- onInitialize ...
gpl-3.0
Aquanim/Zero-K
units/shieldfelon.lua
2
4254
return { shieldfelon = { unitname = [[shieldfelon]], name = [[Felon]], description = [[Shielded Riot/Skirmisher Bot]], acceleration = 0.75, activateWhenBuilt = true, brakeRate = 1.32, buildCostMetal = 620, buildPic = [[shieldfelon.png]...
gpl-2.0
krattai/noo-ebs
docs/zeroMQ-guide2/examples/Lua/spworker.lua
2
1198
-- -- Simple Pirate worker -- Connects REQ socket to tcp://*:5556 -- Implements worker part of LRU queueing -- -- Author: Robert G. Jakabosky <bobby@sharedrealm.com> -- require"zmq" require"zmsg" math.randomseed(os.time()) local context = zmq.init(1) local worker = context:socket(zmq.REQ) -- Set random identity...
bsd-2-clause
b03605079/darkstar
scripts/globals/mobskills/Panzerfaust.lua
6
1288
--------------------------------------------- -- Panzerfaust -- -- Description: Strikes a target twice with an armored fist. Additional effect: Knockback -- Type: Physical -- Utsusemi/Blink absorb: 2 shadows -- Range: Melee -- Notes: --------------------------------------------- require("/scripts/globa...
gpl-3.0
Aquanim/Zero-K
LuaUI/Widgets/chili/Skins/Twilight/skin.lua
8
1700
--// ============================================================================= --// GlassSkin local skin = { info = { name = "Twilight", version = "0.1", author = "KingRaptor", depend = { "DarkGlass", }, } } --// ============================================================================= --/...
gpl-2.0
b03605079/darkstar
scripts/zones/Port_Windurst/npcs/Kususu.lua
36
1768
----------------------------------- -- Area: Port Windurst -- NPC: Kususu -- Standard Merchant NPC -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; require("scripts/zones/Port_Windurst/TextID...
gpl-3.0
b03605079/darkstar
scripts/zones/Spire_of_Mea/npcs/_0l2.lua
36
1313
----------------------------------- -- Area: Spire_of_Mea -- NPC: web of regret ----------------------------------- package.loaded["scripts/zones/Spire_of_Mea/TextIDs"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/zones/Spire_of_Mea/TextIDs"); ---------------...
gpl-3.0
b03605079/darkstar
scripts/zones/Spire_of_Mea/npcs/_0l3.lua
36
1313
----------------------------------- -- Area: Spire_of_Mea -- NPC: web of regret ----------------------------------- package.loaded["scripts/zones/Spire_of_Mea/TextIDs"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/zones/Spire_of_Mea/TextIDs"); ---------------...
gpl-3.0
bakpakin/heroku-buildpack-moonmint
heroku/share/lua/5.1/moonmint/deps/secure-socket/init.lua
2
1122
--[[ Copyright 2016 The Luvit Authors. All Rights Reserved. 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 applicable law or agr...
mit
leonindy/camel
Dengine/luajit-2.0/src/jit/bcsave.lua
20
18123
---------------------------------------------------------------------------- -- LuaJIT module to save/list bytecode. -- -- Copyright (C) 2005-2013 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
gpl-3.0
b03605079/darkstar
scripts/zones/Gusgen_Mines/npcs/qm4.lua
9
1435
----------------------------------- -- Area: Gusgen Mines -- NPC: qm4 (???) -- Involved In Quest: Ghosts of the Past -- @pos -174 0 369 196 ----------------------------------- package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); ...
gpl-3.0
b03605079/darkstar
scripts/zones/The_Eldieme_Necropolis/npcs/Treasure_Coffer.lua
12
4053
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: Treasure Coffer -- @zone 195 ----------------------------------- package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/...
gpl-3.0
Aquanim/Zero-K
LuaUI/Widgets/mission_results.lua
8
1806
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Mission Results Handler", desc = "What it says on the tin", author = "KingRaptor (L.J. Lim)", ...
gpl-2.0
b03605079/darkstar
scripts/globals/spells/ionohelix.lua
22
1721
-------------------------------------- -- Spell: Ionohelix -- Deals lightning 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/glob...
gpl-3.0
Sakura-Winkey/LuCI
applications/luci-app-pbx/luasrc/model/cbi/pbx-advanced.lua
99
14473
--[[ Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com> This file is part of luci-pbx. luci-pbx 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 ...
apache-2.0
cosmy1/Urho3D
bin/Data/LuaScripts/48_Hello3DUI.lua
19
9612
-- A 3D UI demonstration based on the HelloGUI sample. Renders UI alternatively -- either to a 3D scene object using UIComponent, or directly to the backbuffer. require "LuaScripts/Utilities/Sample" local window = nil local dragBeginPosition = IntVector2(0, 0) local textureRoot = nil local current = nil local renderO...
mit
b03605079/darkstar
scripts/zones/Inner_Horutoto_Ruins/npcs/_5ce.lua
34
1077
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: _5ce (Gate of Earth) -- @pos -228 0 140 192 ----------------------------------- package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Inner_Horutoto_Ruins/TextIDs...
gpl-3.0
b03605079/darkstar
scripts/globals/spells/windstorm.lua
31
1153
-------------------------------------- -- Spell: Windstorm -- Changes the weather around target party member to "windy." -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------...
gpl-3.0
stars2014/quick-ng
external/lua/luajit/luajit-2.1/src/jit/bcsave.lua
28
18091
---------------------------------------------------------------------------- -- LuaJIT module to save/list bytecode. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
mit
b03605079/darkstar
scripts/zones/Castle_Oztroja/mobs/Tzee_Xicu_the_Manifest.lua
6
1232
----------------------------------- -- Area: Castle Oztroja -- NPC: Tzee Xicu the Manifest ----------------------------------- require("scripts/globals/titles"); require("scripts/zones/Castle_Oztroja/TextIDs"); ----------------------------------- -- onMobSpawn Action ----------------------------------- ...
gpl-3.0
b03605079/darkstar
scripts/commands/changesjob.lua
3
1993
--------------------------------------------------------------------------------------------------- -- func: changesjob -- auth: <Unknown> :: Modded by atom0s. -- desc: Changes the players current subjob. --------------------------------------------------------------------------------------------------- cmdprops...
gpl-3.0
Aquanim/Zero-K
LuaUI/Widgets/chili/Controls/screen.lua
6
8975
--- Screen module --- Screen fields. -- Inherits from Object. -- @see object.Object -- @table Screen -- @int[opt = 0] x x position -- @int[opt = 0] y y position -- @int[opt = 0] width width -- @int[opt = 0] height height -- @tparam control.Control activeControl active control -- @tparam control.Control focusedControl ...
gpl-2.0
xpol/luarocks
src/luarocks/manif_core.lua
6
4153
--- Core functions for querying manifest files. -- This module requires no specific 'fs' functionality. local manif_core = {} package.loaded["luarocks.manif_core"] = manif_core local persist = require("luarocks.persist") local type_check = require("luarocks.type_check") local cfg = require("luarocks.cfg") local dir =...
mit
Anubhav652/GTW-RPG
[misc]/modloader/loader_s.lua
3
5142
mods = {} meta = xmlLoadFile ( "meta.xml" ) local vehicleMods = {} local weaponMods = {} local skinMods = {} addEventHandler ( "onResourceStart", resourceRoot, function ( ) setTimer ( function ( ) if getResourceName ( resource ) == "modloader" then outputDebugString ( "It seems you use the defa...
gpl-3.0
felipeprov/premake-core
src/actions/vstudio/vs200x_vcproj_user.lua
19
2597
-- -- vs200x_vcproj_user.lua -- Generate a Visual Studio 2002-2008 C/C++ project .user file -- Copyright (c) 2011-2015 Jason Perkins and the Premake project -- local p = premake local m = p.vstudio.vc200x -- -- Generate a Visual Studio 200x C++ user file, with support for the new platforms API. -- ...
bsd-3-clause
qweru/Telebits
bot/seedbot.lua
1
10275
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
Aquanim/Zero-K
LuaAI.lua
13
1306
-- $Id: LuaAI.lua 3171 2008-11-06 09:06:29Z det $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- LuaAI.lua -- -- List of LuaAIs supported by the mod. -- -- return { { -- to be recognised as a...
gpl-2.0
b03605079/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/HomePoint#1.lua
12
1264
----------------------------------- -- Area: Windurst_Waters_[S] -- NPC: HomePoint#1 -- @pos -32 -5 131 94 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Windurst_Waters_[S]/TextIDs"); requir...
gpl-3.0
thesrinivas/rakshak
rakshak-probe.bkup/userspace/sysdig/chisels/v_spy_users.lua
2
2287
--[[ Copyright (C) 2013-2014 Draios inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without...
gpl-2.0
PicassoCT/Journeywar
weapons/jsungodegggun.lua
1
1132
--- http://springrts.com/wiki/Weapon_Variables#Cannon_.28Plasma.29_Visuals local weaponName = "jsungodegggun" --this is the actually maschinegune of the inferno trooper local weaponDef = { name = "egglauncher", name = "SIprojectiles", weaponType = [[MissileLauncher]], Accuracy = 150, --Physic/flight pat...
gpl-3.0
Aquanim/Zero-K
LuaRules/Configs/MetalSpots/Barren.lua
8
1499
local LARGE_SPOT = 2.09 local MEDIUM_SPOT = 1.75 local SMALL_SPOT = 1.40 local TINY_SPOT = 1.04 return { spots = { {x = 1304, z = 2680, metal = MEDIUM_SPOT}, {x = 440, z = 248, metal = TINY_SPOT}, {x = 344, z = 888, metal = TINY_SPOT}, {x = 3992, z = 31...
gpl-2.0
b03605079/darkstar
scripts/globals/mobskills/Crystal_Weapon.lua
6
1039
--------------------------------------------- -- Crystal Weapon -- -- Description: Invokes the power of a crystal to deal magical damage of a random element to a single target. -- Type: Magical -- Utsusemi/Blink absorb: Ignores shadows -- Range: Unknown -- Notes: Can be Fire, Earth, Wind, or Water element....
gpl-3.0
felipeprov/premake-core
src/tools/dotnet.lua
14
6715
-- -- dotnet.lua -- Interface for the C# compilers, all of which are flag compatible. -- Copyright (c) 2002-2013 Jason Perkins and the Premake project -- premake.tools.dotnet = {} local dotnet = premake.tools.dotnet local project = premake.project local config = premake.config -- -- Examine the file and project...
bsd-3-clause
arcemu/arcemu
src/scripts/lua/Stable Scripts/Azeroth/Karazhan/BOSS_Karazhan_Malchezaar.lua
30
4212
function Malchezaar_Hellfire(Unit, event, miscunit, misc) print "Malchezaar Hellfire" Unit:FullCastSpellOnTarget(43465,Unit:GetClosestPlayer()) Unit:SendChatMessage(11, 0, "BURN...") end function Malchezaar_Thrash(Unit, event, miscunit, misc) print "Malchezaar Thrash" Unit:FullCastSpell(21919) Unit:SendChatMessa...
agpl-3.0
stone-jin/avbot
extension/luascript/luabind/examples/glut/glut_bindings.lua
38
1543
quit = false function resize_func(w, h) local ratio = w / h print('====== resize') glMatrixMode(gl.PROJECTION) glLoadIdentity() glViewport(0,0,w,h) gluPerspective(45,ratio,1,1000) glMatrixMode(gl.MODELVIEW) glLoadIdentity() end angle = 0 angle2 = 0 previous_time = 0 function display_func() if quit the...
agpl-3.0
xpol/luarocks
src/luarocks/fs/win32.lua
4
8975
--- Windows implementation of filesystem and platform abstractions. -- Download http://unxutils.sourceforge.net/ for Windows GNU utilities -- used by this module. local win32 = {} local fs = require("luarocks.fs") local cfg = require("luarocks.cfg") local dir = require("luarocks.dir") local util = require("luarocks.u...
mit
Aquanim/Zero-K
LuaRules/Configs/StartBoxes/Deserted Third v4.lua
8
4723
return { [0] = { boxes = { { {1758, 395}, {1748, 391}, {1737, 392}, {1727, 394}, {1716, 396}, {1688, 401}, {1637, 409}, {1614, 412}, {1590, 412}, {1554, 408}, {1527, 407}, {1499, 413}, {1454, 424}, {1415, 439}, {1350, 468}, {1321, 486}, {1305, 50...
gpl-2.0
Radseq/otclient
modules/corelib/ui/uispinbox.lua
9
4108
-- @docclass UISpinBox = extends(UITextEdit, "UISpinBox") function UISpinBox.create() local spinbox = UISpinBox.internalCreate() spinbox:setFocusable(false) spinbox:setValidCharacters('0123456789') spinbox.displayButtons = true spinbox.minimum = 0 spinbox.maximum = 1 spinbox.value = 0 spinbox.step = 1 ...
mit
kostik1337/Urho3D
Source/ThirdParty/LuaJIT/dynasm/dasm_arm.lua
33
34598
------------------------------------------------------------------------------ -- DynASM ARM module. -- -- Copyright (C) 2005-2016 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ -- Module information: local _in...
mit
Aquanim/Zero-K
LuaRules/Gadgets/unit_enlarger.lua
6
4575
function gadget:GetInfo() return { name = "Unit Enlarger", desc = "Scales units physically and graphically", author = "Rafal", date = "May 2015", license = "GNU LGPL, v2.1 or later", layer = 0, enabled = false } end ---------------------------------------------------------------------------...
gpl-2.0
Anubhav652/GTW-RPG
[resources]/GTWtraindriver/data.lua
1
4432
--[[ ******************************************************************************** Project owner: RageQuit community Project name: GTW-RPG Developers: Mr_Moose Source code: https://github.com/GTWCode/GTW-RPG/ Bugtracker: http://forum.404rq.com/bug-reports/ Suggestions: http://forum.404rq.com/mta-se...
gpl-3.0
pezhmanEX/first
bot/utils.lua
646
23489
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
b03605079/darkstar
scripts/zones/Southern_San_dOria/npcs/Benaige.lua
36
1982
----------------------------------- -- Area: Southern San d'Oria -- NPC: Benaige -- Standard Merchant NPC -- @zone 230 -- @pos-142,-6 47 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings...
gpl-3.0
thesrinivas/rakshak
rakshak-probe.bkup/userspace/sysdig/chisels/v_procs.lua
2
4508
--[[ Copyright (C) 2013-2015 Draios inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without...
gpl-2.0
b03605079/darkstar
scripts/zones/Alzadaal_Undersea_Ruins/npcs/qm4.lua
15
1197
----------------------------------- -- Area: Alzadaal Undersea Ruins -- NPC: ??? (Spawn Wulgaru(ZNM T2)) -- @pos -22 -4 204 72 ----------------------------------- package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Alzadaal_Undersea_Ruins/T...
gpl-3.0
Anubhav652/GTW-RPG
[resources]/GTWpolice/exports.lua
1
3529
--[[ ******************************************************************************** Project owner: RageQuit community Project name: GTW-RPG Developers: Mr_Moose Source code: https://github.com/GTWCode/GTW-RPG/ Bugtracker: http://forum.404rq.com/bug-reports/ Suggestions: http://forum.404rq.com/mta-se...
gpl-3.0
Radseq/otclient
modules/client_stats/stats.lua
7
4012
UUID = nil HOST = 'otclient.herokuapp.com' PORT = 80 FIRST_REPORT_DELAY = 15 REPORT_DELAY = 60 sendReportEvent = nil firstReportEvent = nil function initUUID() UUID = g_settings.getString('report-uuid') if not UUID or #UUID ~= 36 then UUID = g_crypt.genUUID() g_settings.set('report-uuid', UUID) end end ...
mit
PicassoCT/Journeywar
units/centrail/cnanorecon.lua
1
1324
local unitName = "cnanorecon" local unitDef = { name = "Swarming Nano Bots", Description = "harvest Ressources to call a new Citadell through a Portal <Sabotage Harass Reconquisita Unit>", objectName = "cNanoRecon.s3o", script = "cNanoReconScript.lua", buildPic = "cNanoRecon.png", moveState =3, fireState=2, --...
gpl-3.0
b03605079/darkstar
scripts/zones/Temenos/mobs/Earth_Elemental.lua
17
1708
----------------------------------- -- Area: Temenos E T -- NPC: Earth_Elemental ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); ----------------------...
gpl-3.0
Radseq/otclient
modules/corelib/ui/uiscrollbar.lua
7
8098
-- @docclass UIScrollBar = extends(UIWidget, "UIScrollBar") -- private functions local function calcValues(self) local slider = self:getChildById('sliderButton') local decrementButton = self:getChildById('decrementButton') local incrementButton = self:getChildById('incrementButton') local pxrange, center if...
mit
TorstenC/esp8266-devkit
Espressif/examples/nodemcu-firmware/lua_modules/si7021/si7021-lewei.lua
10
1273
--创建一个定时器 tmr.alarm(0, 60000, 1, function() SDA_PIN = 6 -- sda pin, GPIO12 SCL_PIN = 5 -- scl pin, GPIO14 si7021 = require("si7021") si7021.init(SDA_PIN, SCL_PIN) si7021.read(OSS) Hum = si7021.getHumidity() Temp = si7021.getTemperature() --定义数据变量格式 PostData = "[{\"Name\":\"T\",\"Valu...
gpl-3.0
thesrinivas/rakshak
rakshak-probe.bkup/userspace/sysdig/chisels/topcontainers_net.lua
18
1073
--[[ Copyright (C) 2013-2014 Draios inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without e...
gpl-2.0
b03605079/darkstar
scripts/zones/Norg/npcs/Magephaud.lua
17
2127
----------------------------------- -- Area: Norg -- NPC: Magephaud -- Standard Info NPC ----------------------------------- ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) EveryonesGrudge = player:getQuestStatus(OUTLANDS,EVERYON...
gpl-3.0
b03605079/darkstar
scripts/zones/Lufaise_Meadows/npcs/Teldo-Moroldo_WW.lua
8
2950
----------------------------------- -- Area: Lufaise Meadows -- NPC: Teldo-Moroldo, W.W. -- Outpost Conquest Guards -- @pos -542.418 -7.124 -53.521 24 ----------------------------------- package.loaded["scripts/zones/Lufaise_Meadows/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conques...
gpl-3.0